2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for libffi 3.0.8.
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.8'
563 PACKAGE_STRING='libffi 3.0.8'
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
635 POWERPC_FREEBSD_FALSE
669 MAINTAINER_MODE_FALSE
690 am__fastdepCCAS_FALSE
719 INSTALL_STRIP_PROGRAM
774 program_transform_name
787 enable_option_checking
789 enable_dependency_tracking
796 enable_maintainer_mode
802 ac_precious_vars='build_alias
811 # Initialize some variables set by options.
813 ac_init_version=false
814 ac_unrecognized_opts=
816 # The variables have the same names as the options, with
817 # dashes changed to underlines.
825 program_transform_name=s,x,x,
833 # Installation directory options.
834 # These are left unexpanded so users can "make install exec_prefix=/foo"
835 # and all the variables that are supposed to be based on exec_prefix
836 # by default will actually change.
837 # Use braces instead of parens because sh, perl, etc. also accept them.
838 # (The list follows the same order as the GNU Coding Standards.)
839 bindir='${exec_prefix}/bin'
840 sbindir='${exec_prefix}/sbin'
841 libexecdir='${exec_prefix}/libexec'
842 datarootdir='${prefix}/share'
843 datadir='${datarootdir}'
844 sysconfdir='${prefix}/etc'
845 sharedstatedir='${prefix}/com'
846 localstatedir='${prefix}/var'
847 includedir='${prefix}/include'
848 oldincludedir='/usr/include'
849 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
850 infodir='${datarootdir}/info'
855 libdir='${exec_prefix}/lib'
856 localedir='${datarootdir}/locale'
857 mandir='${datarootdir}/man'
863 # If the previous option needs an argument, assign it.
864 if test -n "$ac_prev"; then
865 eval $ac_prev=\$ac_option
871 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
875 # Accept the important Cygnus configure options, so we can diagnose typos.
877 case $ac_dashdash$ac_option in
881 -bindir | --bindir | --bindi | --bind | --bin | --bi)
883 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
886 -build | --build | --buil | --bui | --bu)
887 ac_prev=build_alias ;;
888 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
889 build_alias=$ac_optarg ;;
891 -cache-file | --cache-file | --cache-fil | --cache-fi \
892 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
893 ac_prev=cache_file ;;
894 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
895 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
896 cache_file=$ac_optarg ;;
899 cache_file=config.cache ;;
901 -datadir | --datadir | --datadi | --datad)
903 -datadir=* | --datadir=* | --datadi=* | --datad=*)
904 datadir=$ac_optarg ;;
906 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
907 | --dataroo | --dataro | --datar)
908 ac_prev=datarootdir ;;
909 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
910 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
911 datarootdir=$ac_optarg ;;
913 -disable-* | --disable-*)
914 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
915 # Reject names that are not valid shell variable names.
916 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917 as_fn_error "invalid feature name: $ac_useropt"
918 ac_useropt_orig=$ac_useropt
919 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
920 case $ac_user_opts in
924 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
925 ac_unrecognized_sep=', ';;
927 eval enable_$ac_useropt=no ;;
929 -docdir | --docdir | --docdi | --doc | --do)
931 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
934 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
939 -enable-* | --enable-*)
940 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943 as_fn_error "invalid feature name: $ac_useropt"
944 ac_useropt_orig=$ac_useropt
945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
951 ac_unrecognized_sep=', ';;
953 eval enable_$ac_useropt=\$ac_optarg ;;
955 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
956 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
957 | --exec | --exe | --ex)
958 ac_prev=exec_prefix ;;
959 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
960 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
961 | --exec=* | --exe=* | --ex=*)
962 exec_prefix=$ac_optarg ;;
964 -gas | --gas | --ga | --g)
965 # Obsolete; use --with-gas.
968 -help | --help | --hel | --he | -h)
970 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
971 ac_init_help=recursive ;;
972 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
973 ac_init_help=short ;;
975 -host | --host | --hos | --ho)
976 ac_prev=host_alias ;;
977 -host=* | --host=* | --hos=* | --ho=*)
978 host_alias=$ac_optarg ;;
980 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
982 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
984 htmldir=$ac_optarg ;;
986 -includedir | --includedir | --includedi | --included | --include \
987 | --includ | --inclu | --incl | --inc)
988 ac_prev=includedir ;;
989 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
990 | --includ=* | --inclu=* | --incl=* | --inc=*)
991 includedir=$ac_optarg ;;
993 -infodir | --infodir | --infodi | --infod | --info | --inf)
995 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
996 infodir=$ac_optarg ;;
998 -libdir | --libdir | --libdi | --libd)
1000 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1001 libdir=$ac_optarg ;;
1003 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1004 | --libexe | --libex | --libe)
1005 ac_prev=libexecdir ;;
1006 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1007 | --libexe=* | --libex=* | --libe=*)
1008 libexecdir=$ac_optarg ;;
1010 -localedir | --localedir | --localedi | --localed | --locale)
1011 ac_prev=localedir ;;
1012 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1013 localedir=$ac_optarg ;;
1015 -localstatedir | --localstatedir | --localstatedi | --localstated \
1016 | --localstate | --localstat | --localsta | --localst | --locals)
1017 ac_prev=localstatedir ;;
1018 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1019 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1020 localstatedir=$ac_optarg ;;
1022 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1024 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1025 mandir=$ac_optarg ;;
1027 -nfp | --nfp | --nf)
1028 # Obsolete; use --without-fp.
1031 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1032 | --no-cr | --no-c | -n)
1035 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1036 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1039 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1040 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1041 | --oldin | --oldi | --old | --ol | --o)
1042 ac_prev=oldincludedir ;;
1043 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1044 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1045 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1046 oldincludedir=$ac_optarg ;;
1048 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1050 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1051 prefix=$ac_optarg ;;
1053 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1054 | --program-pre | --program-pr | --program-p)
1055 ac_prev=program_prefix ;;
1056 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1057 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1058 program_prefix=$ac_optarg ;;
1060 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1061 | --program-suf | --program-su | --program-s)
1062 ac_prev=program_suffix ;;
1063 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1064 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1065 program_suffix=$ac_optarg ;;
1067 -program-transform-name | --program-transform-name \
1068 | --program-transform-nam | --program-transform-na \
1069 | --program-transform-n | --program-transform- \
1070 | --program-transform | --program-transfor \
1071 | --program-transfo | --program-transf \
1072 | --program-trans | --program-tran \
1073 | --progr-tra | --program-tr | --program-t)
1074 ac_prev=program_transform_name ;;
1075 -program-transform-name=* | --program-transform-name=* \
1076 | --program-transform-nam=* | --program-transform-na=* \
1077 | --program-transform-n=* | --program-transform-=* \
1078 | --program-transform=* | --program-transfor=* \
1079 | --program-transfo=* | --program-transf=* \
1080 | --program-trans=* | --program-tran=* \
1081 | --progr-tra=* | --program-tr=* | --program-t=*)
1082 program_transform_name=$ac_optarg ;;
1084 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1086 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1087 pdfdir=$ac_optarg ;;
1089 -psdir | --psdir | --psdi | --psd | --ps)
1091 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095 | -silent | --silent | --silen | --sile | --sil)
1098 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1100 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1102 sbindir=$ac_optarg ;;
1104 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1105 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1106 | --sharedst | --shareds | --shared | --share | --shar \
1108 ac_prev=sharedstatedir ;;
1109 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1110 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1111 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1113 sharedstatedir=$ac_optarg ;;
1115 -site | --site | --sit)
1117 -site=* | --site=* | --sit=*)
1120 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1122 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1123 srcdir=$ac_optarg ;;
1125 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1126 | --syscon | --sysco | --sysc | --sys | --sy)
1127 ac_prev=sysconfdir ;;
1128 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1129 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1130 sysconfdir=$ac_optarg ;;
1132 -target | --target | --targe | --targ | --tar | --ta | --t)
1133 ac_prev=target_alias ;;
1134 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1135 target_alias=$ac_optarg ;;
1137 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1140 -version | --version | --versio | --versi | --vers | -V)
1141 ac_init_version=: ;;
1144 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147 as_fn_error "invalid package name: $ac_useropt"
1148 ac_useropt_orig=$ac_useropt
1149 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150 case $ac_user_opts in
1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1155 ac_unrecognized_sep=', ';;
1157 eval with_$ac_useropt=\$ac_optarg ;;
1159 -without-* | --without-*)
1160 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1161 # Reject names that are not valid shell variable names.
1162 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1163 as_fn_error "invalid package name: $ac_useropt"
1164 ac_useropt_orig=$ac_useropt
1165 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1166 case $ac_user_opts in
1170 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1171 ac_unrecognized_sep=', ';;
1173 eval with_$ac_useropt=no ;;
1176 # Obsolete; use --with-x.
1179 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1180 | --x-incl | --x-inc | --x-in | --x-i)
1181 ac_prev=x_includes ;;
1182 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1183 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1184 x_includes=$ac_optarg ;;
1186 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1187 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1188 ac_prev=x_libraries ;;
1189 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1190 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1191 x_libraries=$ac_optarg ;;
1193 -*) as_fn_error "unrecognized option: \`$ac_option'
1194 Try \`$0 --help' for more information."
1198 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1199 # Reject names that are not valid shell variable names.
1200 case $ac_envvar in #(
1201 '' | [0-9]* | *[!_$as_cr_alnum]* )
1202 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1204 eval $ac_envvar=\$ac_optarg
1205 export $ac_envvar ;;
1208 # FIXME: should be removed in autoconf 3.0.
1209 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1210 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1211 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1212 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1218 if test -n "$ac_prev"; then
1219 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1220 as_fn_error "missing argument to $ac_option"
1223 if test -n "$ac_unrecognized_opts"; then
1224 case $enable_option_checking in
1226 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1227 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1231 # Check all directory arguments for consistency.
1232 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1233 datadir sysconfdir sharedstatedir localstatedir includedir \
1234 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1235 libdir localedir mandir
1237 eval ac_val=\$$ac_var
1238 # Remove trailing slashes.
1241 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1242 eval $ac_var=\$ac_val;;
1244 # Be sure to have absolute directory names.
1246 [\\/$]* | ?:[\\/]* ) continue;;
1247 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1249 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1252 # There might be people who depend on the old broken behavior: `$host'
1253 # used to hold the argument of --host etc.
1254 # FIXME: To remove some day.
1257 target=$target_alias
1259 # FIXME: To remove some day.
1260 if test "x$host_alias" != x; then
1261 if test "x$build_alias" = x; then
1262 cross_compiling=maybe
1263 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1264 If a cross compiler is detected then cross compile mode will be used." >&2
1265 elif test "x$build_alias" != "x$host_alias"; then
1271 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1273 test "$silent" = yes && exec 6>/dev/null
1276 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1277 ac_ls_di=`ls -di .` &&
1278 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1279 as_fn_error "working directory cannot be determined"
1280 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1281 as_fn_error "pwd does not report name of working directory"
1284 # Find the source files, if location was not specified.
1285 if test -z "$srcdir"; then
1286 ac_srcdir_defaulted=yes
1287 # Try the directory containing this script, then the parent directory.
1288 ac_confdir=`$as_dirname -- "$as_myself" ||
1289 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1290 X"$as_myself" : 'X\(//\)[^/]' \| \
1291 X"$as_myself" : 'X\(//\)$' \| \
1292 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1293 $as_echo X"$as_myself" |
1294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1312 if test ! -r "$srcdir/$ac_unique_file"; then
1316 ac_srcdir_defaulted=no
1318 if test ! -r "$srcdir/$ac_unique_file"; then
1319 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1320 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1322 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1324 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1326 # When building in place, set srcdir=.
1327 if test "$ac_abs_confdir" = "$ac_pwd"; then
1330 # Remove unnecessary trailing slashes from srcdir.
1331 # Double slashes in file names in object file debugging info
1332 # mess up M-x gdb in Emacs.
1334 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1336 for ac_var in $ac_precious_vars; do
1337 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1338 eval ac_env_${ac_var}_value=\$${ac_var}
1339 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1340 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1344 # Report the --help message.
1346 if test "$ac_init_help" = "long"; then
1347 # Omit some internal or obsolete options to make the list less imposing.
1348 # This message is too long to be a string in the A/UX 3.1 sh.
1350 \`configure' configures libffi 3.0.8 to adapt to many kinds of systems.
1352 Usage: $0 [OPTION]... [VAR=VALUE]...
1354 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1355 VAR=VALUE. See below for descriptions of some of the useful variables.
1357 Defaults for the options are specified in brackets.
1360 -h, --help display this help and exit
1361 --help=short display options specific to this package
1362 --help=recursive display the short help of all the included packages
1363 -V, --version display version information and exit
1364 -q, --quiet, --silent do not print \`checking...' messages
1365 --cache-file=FILE cache test results in FILE [disabled]
1366 -C, --config-cache alias for \`--cache-file=config.cache'
1367 -n, --no-create do not create output files
1368 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1370 Installation directories:
1371 --prefix=PREFIX install architecture-independent files in PREFIX
1372 [$ac_default_prefix]
1373 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1376 By default, \`make install' will install all the files in
1377 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1378 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1379 for instance \`--prefix=\$HOME'.
1381 For better control, use the options below.
1383 Fine tuning of the installation directories:
1384 --bindir=DIR user executables [EPREFIX/bin]
1385 --sbindir=DIR system admin executables [EPREFIX/sbin]
1386 --libexecdir=DIR program executables [EPREFIX/libexec]
1387 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1388 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1389 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1390 --libdir=DIR object code libraries [EPREFIX/lib]
1391 --includedir=DIR C header files [PREFIX/include]
1392 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1393 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1394 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1395 --infodir=DIR info documentation [DATAROOTDIR/info]
1396 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1397 --mandir=DIR man documentation [DATAROOTDIR/man]
1398 --docdir=DIR documentation root [DATAROOTDIR/doc/libffi]
1399 --htmldir=DIR html documentation [DOCDIR]
1400 --dvidir=DIR dvi documentation [DOCDIR]
1401 --pdfdir=DIR pdf documentation [DOCDIR]
1402 --psdir=DIR ps documentation [DOCDIR]
1408 --program-prefix=PREFIX prepend PREFIX to installed program names
1409 --program-suffix=SUFFIX append SUFFIX to installed program names
1410 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1413 --build=BUILD configure for building on BUILD [guessed]
1414 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1415 --target=TARGET configure for building compilers for TARGET [HOST]
1419 if test -n "$ac_init_help"; then
1420 case $ac_init_help in
1421 short | recursive ) echo "Configuration of libffi 3.0.8:";;
1426 --disable-option-checking ignore unrecognized --enable/--with options
1427 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1428 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1429 --enable-multilib build many library versions (default)
1430 --disable-dependency-tracking speeds up one-time build
1431 --enable-dependency-tracking do not reject slow dependency extractors
1432 --enable-shared[=PKGS] build shared libraries [default=yes]
1433 --enable-static[=PKGS] build static libraries [default=yes]
1434 --enable-fast-install[=PKGS]
1435 optimize for fast installation [default=yes]
1436 --disable-libtool-lock avoid locking (might break parallel builds)
1437 --enable-maintainer-mode enable make rules and dependencies not useful
1438 (and sometimes confusing) to the casual installer
1439 --enable-debug debugging mode
1440 --disable-structs omit code for struct support
1441 --disable-raw-api make the raw api unavailable
1442 --enable-purify-safety purify-safe mode
1445 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1446 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1447 --with-pic try to use only PIC/non-PIC objects [default=use
1449 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1451 Some influential environment variables:
1452 CC C compiler command
1453 CFLAGS C compiler flags
1454 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1455 nonstandard directory <lib dir>
1456 LIBS libraries to pass to the linker, e.g. -l<library>
1457 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1458 you have headers in a nonstandard directory <include dir>
1459 CCAS assembler compiler command (defaults to CC)
1460 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1463 Use these variables to override the choices made by `configure' or to help
1464 it to find libraries and programs with nonstandard names/locations.
1466 Report bugs to <http://gcc.gnu.org/bugs.html>.
1471 if test "$ac_init_help" = "recursive"; then
1472 # If there are subdirs, report their specific --help.
1473 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1474 test -d "$ac_dir" ||
1475 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1480 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1482 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1483 # A ".." for each directory in $ac_dir_suffix.
1484 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1485 case $ac_top_builddir_sub in
1486 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1487 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1490 ac_abs_top_builddir=$ac_pwd
1491 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1492 # for backward compatibility:
1493 ac_top_builddir=$ac_top_build_prefix
1496 .) # We are building in place.
1498 ac_top_srcdir=$ac_top_builddir_sub
1499 ac_abs_top_srcdir=$ac_pwd ;;
1500 [\\/]* | ?:[\\/]* ) # Absolute name.
1501 ac_srcdir=$srcdir$ac_dir_suffix;
1502 ac_top_srcdir=$srcdir
1503 ac_abs_top_srcdir=$srcdir ;;
1505 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1506 ac_top_srcdir=$ac_top_build_prefix$srcdir
1507 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1509 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1511 cd "$ac_dir" || { ac_status=$?; continue; }
1512 # Check for guested configure.
1513 if test -f "$ac_srcdir/configure.gnu"; then
1515 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1516 elif test -f "$ac_srcdir/configure"; then
1518 $SHELL "$ac_srcdir/configure" --help=recursive
1520 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1522 cd "$ac_pwd" || { ac_status=$?; break; }
1526 test -n "$ac_init_help" && exit $ac_status
1527 if $ac_init_version; then
1529 libffi configure 3.0.8
1530 generated by GNU Autoconf 2.64
1532 Copyright (C) 2009 Free Software Foundation, Inc.
1533 This configure script is free software; the Free Software Foundation
1534 gives unlimited permission to copy, distribute and modify it.
1539 ## ------------------------ ##
1540 ## Autoconf initialization. ##
1541 ## ------------------------ ##
1543 # ac_fn_c_try_compile LINENO
1544 # --------------------------
1545 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1546 ac_fn_c_try_compile ()
1548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1549 rm -f conftest.$ac_objext
1550 if { { ac_try="$ac_compile"
1552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1553 *) ac_try_echo=$ac_try;;
1555 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1556 $as_echo "$ac_try_echo"; } >&5
1557 (eval "$ac_compile") 2>conftest.err
1559 if test -s conftest.err; then
1560 grep -v '^ *+' conftest.err >conftest.er1
1561 cat conftest.er1 >&5
1562 mv -f conftest.er1 conftest.err
1564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1565 test $ac_status = 0; } && {
1566 test -z "$ac_c_werror_flag" ||
1567 test ! -s conftest.err
1568 } && test -s conftest.$ac_objext; then :
1571 $as_echo "$as_me: failed program was:" >&5
1572 sed 's/^/| /' conftest.$ac_ext >&5
1576 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1579 } # ac_fn_c_try_compile
1581 # ac_fn_c_try_link LINENO
1582 # -----------------------
1583 # Try to link conftest.$ac_ext, and return whether this succeeded.
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 rm -f conftest.$ac_objext conftest$ac_exeext
1588 if { { ac_try="$ac_link"
1590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591 *) ac_try_echo=$ac_try;;
1593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594 $as_echo "$ac_try_echo"; } >&5
1595 (eval "$ac_link") 2>conftest.err
1597 if test -s conftest.err; then
1598 grep -v '^ *+' conftest.err >conftest.er1
1599 cat conftest.er1 >&5
1600 mv -f conftest.er1 conftest.err
1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603 test $ac_status = 0; } && {
1604 test -z "$ac_c_werror_flag" ||
1605 test ! -s conftest.err
1606 } && test -s conftest$ac_exeext && {
1607 test "$cross_compiling" = yes ||
1608 $as_test_x conftest$ac_exeext
1612 $as_echo "$as_me: failed program was:" >&5
1613 sed 's/^/| /' conftest.$ac_ext >&5
1617 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1618 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1619 # interfere with the next link command; also delete a directory that is
1620 # left behind by Apple's compiler. We do this before executing the actions.
1621 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1622 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1625 } # ac_fn_c_try_link
1627 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1628 # -------------------------------------------------------
1629 # Tests whether HEADER exists and can be compiled using the include files in
1630 # INCLUDES, setting the cache variable VAR accordingly.
1631 ac_fn_c_check_header_compile ()
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1635 $as_echo_n "checking for $2... " >&6; }
1636 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1637 $as_echo_n "(cached) " >&6
1639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1640 /* end confdefs.h. */
1644 if ac_fn_c_try_compile "$LINENO"; then :
1649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1653 $as_echo "$ac_res" >&6; }
1654 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1656 } # ac_fn_c_check_header_compile
1658 # ac_fn_c_try_cpp LINENO
1659 # ----------------------
1660 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 if { { ac_try="$ac_cpp conftest.$ac_ext"
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1673 if test -s conftest.err; then
1674 grep -v '^ *+' conftest.err >conftest.er1
1675 cat conftest.er1 >&5
1676 mv -f conftest.er1 conftest.err
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } >/dev/null && {
1680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1681 test ! -s conftest.err
1685 $as_echo "$as_me: failed program was:" >&5
1686 sed 's/^/| /' conftest.$ac_ext >&5
1690 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1695 # ac_fn_c_try_run LINENO
1696 # ----------------------
1697 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1698 # that executables *can* be run.
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 if { { ac_try="$ac_link"
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_link") 2>&5
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1713 { { case "(($ac_try" in
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_try") 2>&5
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; }; }; then :
1725 $as_echo "$as_me: program exited with status $ac_status" >&5
1726 $as_echo "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1729 ac_retval=$ac_status
1731 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1732 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1737 # ac_fn_c_check_func LINENO FUNC VAR
1738 # ----------------------------------
1739 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1740 ac_fn_c_check_func ()
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1744 $as_echo_n "checking for $2... " >&6; }
1745 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1746 $as_echo_n "(cached) " >&6
1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749 /* end confdefs.h. */
1750 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1752 #define $2 innocuous_$2
1754 /* System header to define __stub macros and hopefully few prototypes,
1755 which can conflict with char $2 (); below.
1756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1757 <limits.h> exists even on freestanding compilers. */
1760 # include <limits.h>
1762 # include <assert.h>
1767 /* Override any GCC internal prototype to avoid an error.
1768 Use char because int might match the return type of a GCC
1769 builtin and then its argument prototype would still apply. */
1774 /* The GNU C library defines this for functions which it implements
1775 to always fail with ENOSYS. Some functions are actually named
1776 something starting with __ and the normal name is an alias. */
1777 #if defined __stub_$2 || defined __stub___$2
1789 if ac_fn_c_try_link "$LINENO"; then :
1794 rm -f core conftest.err conftest.$ac_objext \
1795 conftest$ac_exeext conftest.$ac_ext
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1799 $as_echo "$ac_res" >&6; }
1800 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1802 } # ac_fn_c_check_func
1804 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1805 # -------------------------------------------------------
1806 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1807 # the include files in INCLUDES and setting the cache variable VAR
1809 ac_fn_c_check_header_mongrel ()
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814 $as_echo_n "checking for $2... " >&6; }
1815 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1816 $as_echo_n "(cached) " >&6
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820 $as_echo "$ac_res" >&6; }
1822 # Is the header compilable?
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1824 $as_echo_n "checking $2 usability... " >&6; }
1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826 /* end confdefs.h. */
1830 if ac_fn_c_try_compile "$LINENO"; then :
1831 ac_header_compiler=yes
1833 ac_header_compiler=no
1835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1837 $as_echo "$ac_header_compiler" >&6; }
1839 # Is the header present?
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1841 $as_echo_n "checking $2 presence... " >&6; }
1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843 /* end confdefs.h. */
1846 if ac_fn_c_try_cpp "$LINENO"; then :
1847 ac_header_preproc=yes
1849 ac_header_preproc=no
1851 rm -f conftest.err conftest.$ac_ext
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1853 $as_echo "$ac_header_preproc" >&6; }
1855 # So? What about this header?
1856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1859 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1861 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1865 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1867 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1869 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1871 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1873 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1875 ## ------------------------------------------- ##
1876 ## Report this to http://gcc.gnu.org/bugs.html ##
1877 ## ------------------------------------------- ##
1879 ) | sed "s/^/$as_me: WARNING: /" >&2
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883 $as_echo_n "checking for $2... " >&6; }
1884 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1885 $as_echo_n "(cached) " >&6
1887 eval "$3=\$ac_header_compiler"
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891 $as_echo "$ac_res" >&6; }
1893 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1895 } # ac_fn_c_check_header_mongrel
1897 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1898 # --------------------------------------------
1899 # Tries to find the compile-time value of EXPR in a program that includes
1900 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1902 ac_fn_c_compute_int ()
1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905 if test "$cross_compiling" = yes; then
1906 # Depending upon the size, compute the lo and hi bounds.
1907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h. */
1913 static int test_array [1 - 2 * !(($2) >= 0)];
1920 if ac_fn_c_try_compile "$LINENO"; then :
1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924 /* end confdefs.h. */
1929 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1936 if ac_fn_c_try_compile "$LINENO"; then :
1937 ac_hi=$ac_mid; break
1939 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1940 if test $ac_lo -le $ac_mid; then
1944 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h. */
1955 static int test_array [1 - 2 * !(($2) < 0)];
1962 if ac_fn_c_try_compile "$LINENO"; then :
1965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1966 /* end confdefs.h. */
1971 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1978 if ac_fn_c_try_compile "$LINENO"; then :
1979 ac_lo=$ac_mid; break
1981 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1982 if test $ac_mid -le $ac_hi; then
1986 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996 # Binary search between lo and hi bounds.
1997 while test "x$ac_lo" != "x$ac_hi"; do
1998 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000 /* end confdefs.h. */
2005 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2012 if ac_fn_c_try_compile "$LINENO"; then :
2015 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2020 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h. */
2027 static long int longval () { return $2; }
2028 static unsigned long int ulongval () { return $2; }
2035 FILE *f = fopen ("conftest.val", "w");
2040 long int i = longval ();
2043 fprintf (f, "%ld", i);
2047 unsigned long int i = ulongval ();
2050 fprintf (f, "%lu", i);
2052 /* Do not output a trailing newline, as this causes \r\n confusion
2053 on some platforms. */
2054 return ferror (f) || fclose (f) != 0;
2060 if ac_fn_c_try_run "$LINENO"; then :
2061 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2066 conftest.$ac_objext conftest.beam conftest.$ac_ext
2070 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2073 } # ac_fn_c_compute_int
2074 cat >config.log <<_ACEOF
2075 This file contains any messages produced by compilers while
2076 running configure, to aid debugging if configure makes a mistake.
2078 It was created by libffi $as_me 3.0.8, which was
2079 generated by GNU Autoconf 2.64. Invocation command line was
2091 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2092 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2093 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2094 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2095 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2097 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2098 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2100 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2101 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2102 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2103 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2104 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2105 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2106 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2114 test -z "$as_dir" && as_dir=.
2115 $as_echo "PATH: $as_dir"
2131 # Keep a trace of the command line.
2132 # Strip out --no-create and --no-recursion so they do not pile up.
2133 # Strip out --silent because we don't want to record it for future runs.
2134 # Also quote any args containing shell meta-characters.
2135 # Make two passes to allow for proper duplicate-argument suppression.
2139 ac_must_keep_next=false
2145 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2147 | -silent | --silent | --silen | --sile | --sil)
2150 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2153 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2155 as_fn_append ac_configure_args1 " '$ac_arg'"
2156 if test $ac_must_keep_next = true; then
2157 ac_must_keep_next=false # Got value, back to normal.
2160 *=* | --config-cache | -C | -disable-* | --disable-* \
2161 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2162 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2163 | -with-* | --with-* | -without-* | --without-* | --x)
2164 case "$ac_configure_args0 " in
2165 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2168 -* ) ac_must_keep_next=true ;;
2171 as_fn_append ac_configure_args " '$ac_arg'"
2176 { ac_configure_args0=; unset ac_configure_args0;}
2177 { ac_configure_args1=; unset ac_configure_args1;}
2179 # When interrupted or exit'd, cleanup temporary files, and complete
2180 # config.log. We remove comments because anyway the quotes in there
2181 # would cause problems or look ugly.
2182 # WARNING: Use '\'' to represent an apostrophe within the trap.
2183 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2184 trap 'exit_status=$?
2185 # Save into config.log some information that might help in debugging.
2190 ## ---------------- ##
2191 ## Cache variables. ##
2192 ## ---------------- ##
2195 # The following way of writing the cache mishandles newlines in values,
2197 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2198 eval ac_val=\$$ac_var
2202 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2203 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2206 _ | IFS | as_nl) ;; #(
2207 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2208 *) { eval $ac_var=; unset $ac_var;} ;;
2213 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2214 *${as_nl}ac_space=\ *)
2216 "s/'\''/'\''\\\\'\'''\''/g;
2217 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2220 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2228 ## ----------------- ##
2229 ## Output variables. ##
2230 ## ----------------- ##
2233 for ac_var in $ac_subst_vars
2235 eval ac_val=\$$ac_var
2237 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2239 $as_echo "$ac_var='\''$ac_val'\''"
2243 if test -n "$ac_subst_files"; then
2245 ## ------------------- ##
2246 ## File substitutions. ##
2247 ## ------------------- ##
2250 for ac_var in $ac_subst_files
2252 eval ac_val=\$$ac_var
2254 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2256 $as_echo "$ac_var='\''$ac_val'\''"
2261 if test -s confdefs.h; then
2271 test "$ac_signal" != 0 &&
2272 $as_echo "$as_me: caught signal $ac_signal"
2273 $as_echo "$as_me: exit $exit_status"
2275 rm -f core *.core core.conftest.* &&
2276 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2279 for ac_signal in 1 2 13 15; do
2280 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2284 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2285 rm -f -r conftest* confdefs.h
2287 $as_echo "/* confdefs.h */" > confdefs.h
2289 # Predefined preprocessor variables.
2291 cat >>confdefs.h <<_ACEOF
2292 #define PACKAGE_NAME "$PACKAGE_NAME"
2295 cat >>confdefs.h <<_ACEOF
2296 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2299 cat >>confdefs.h <<_ACEOF
2300 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2303 cat >>confdefs.h <<_ACEOF
2304 #define PACKAGE_STRING "$PACKAGE_STRING"
2307 cat >>confdefs.h <<_ACEOF
2308 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2311 cat >>confdefs.h <<_ACEOF
2312 #define PACKAGE_URL "$PACKAGE_URL"
2316 # Let the site file select an alternate cache file if it wants to.
2317 # Prefer an explicitly selected file to automatically selected ones.
2320 if test -n "$CONFIG_SITE"; then
2321 ac_site_file1=$CONFIG_SITE
2322 elif test "x$prefix" != xNONE; then
2323 ac_site_file1=$prefix/share/config.site
2324 ac_site_file2=$prefix/etc/config.site
2326 ac_site_file1=$ac_default_prefix/share/config.site
2327 ac_site_file2=$ac_default_prefix/etc/config.site
2329 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2331 test "x$ac_site_file" = xNONE && continue
2332 if test -r "$ac_site_file"; then
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2334 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2335 sed 's/^/| /' "$ac_site_file" >&5
2340 if test -r "$cache_file"; then
2341 # Some versions of bash will fail to source /dev/null (special
2342 # files actually), so we avoid doing that.
2343 if test -f "$cache_file"; then
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2345 $as_echo "$as_me: loading cache $cache_file" >&6;}
2347 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2348 *) . "./$cache_file";;
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2353 $as_echo "$as_me: creating cache $cache_file" >&6;}
2357 # Check that the precious variables saved in the cache have kept the same
2359 ac_cache_corrupted=false
2360 for ac_var in $ac_precious_vars; do
2361 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2362 eval ac_new_set=\$ac_env_${ac_var}_set
2363 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2364 eval ac_new_val=\$ac_env_${ac_var}_value
2365 case $ac_old_set,$ac_new_set in
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2368 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2369 ac_cache_corrupted=: ;;
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2372 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2373 ac_cache_corrupted=: ;;
2376 if test "x$ac_old_val" != "x$ac_new_val"; then
2377 # differences in whitespace do not lead to failure.
2378 ac_old_val_w=`echo x $ac_old_val`
2379 ac_new_val_w=`echo x $ac_new_val`
2380 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2382 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2383 ac_cache_corrupted=:
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2386 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2387 eval $ac_var=\$ac_old_val
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2390 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2392 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2395 # Pass precious variables to config.status.
2396 if test "$ac_new_set" = set; then
2398 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2399 *) ac_arg=$ac_var=$ac_new_val ;;
2401 case " $ac_configure_args " in
2402 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2403 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2407 if $ac_cache_corrupted; then
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2411 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2412 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2414 ## -------------------- ##
2415 ## Main body of script. ##
2416 ## -------------------- ##
2419 ac_cpp='$CPP $CPPFLAGS'
2420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2428 ac_config_headers="$ac_config_headers fficonfig.h"
2431 # Default to --enable-multilib
2432 # Check whether --enable-multilib was given.
2433 if test "${enable_multilib+set}" = set; then :
2434 enableval=$enable_multilib; case "$enableval" in
2435 yes) multilib=yes ;;
2437 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2444 # We may get other options which we leave undocumented:
2445 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2446 # See config-ml.in if you want the gory details.
2448 if test "$srcdir" = "."; then
2449 if test "$with_target_subdir" != "."; then
2450 multi_basedir="$srcdir/$with_multisrctop../.."
2452 multi_basedir="$srcdir/$with_multisrctop.."
2455 multi_basedir="$srcdir/.."
2459 # Even if the default multilib is not a cross compilation,
2460 # it may be that some of the other multilibs are.
2461 if test $cross_compiling = no && test $multilib = yes \
2462 && test "x${with_multisubdir}" != x ; then
2463 cross_compiling=maybe
2466 ac_config_commands="$ac_config_commands default-1"
2470 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2471 for ac_t in install-sh install.sh shtool; do
2472 if test -f "$ac_dir/$ac_t"; then
2474 ac_install_sh="$ac_aux_dir/$ac_t -c"
2479 if test -z "$ac_aux_dir"; then
2480 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2483 # These three variables are undocumented and unsupported,
2484 # and are intended to be withdrawn in a future Autoconf release.
2485 # They can cause serious problems if a builder's source tree is in a directory
2486 # whose full name contains unusual characters.
2487 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2488 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2489 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2492 # Make sure we can run config.sub.
2493 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2494 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2497 $as_echo_n "checking build system type... " >&6; }
2498 if test "${ac_cv_build+set}" = set; then :
2499 $as_echo_n "(cached) " >&6
2501 ac_build_alias=$build_alias
2502 test "x$ac_build_alias" = x &&
2503 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2504 test "x$ac_build_alias" = x &&
2505 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2506 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2507 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2511 $as_echo "$ac_cv_build" >&6; }
2512 case $ac_cv_build in
2514 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2517 ac_save_IFS=$IFS; IFS='-'
2523 # Remember, the first character of IFS is used to create $*,
2524 # except with old shells:
2527 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2531 $as_echo_n "checking host system type... " >&6; }
2532 if test "${ac_cv_host+set}" = set; then :
2533 $as_echo_n "(cached) " >&6
2535 if test "x$host_alias" = x; then
2536 ac_cv_host=$ac_cv_build
2538 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2539 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2544 $as_echo "$ac_cv_host" >&6; }
2547 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2550 ac_save_IFS=$IFS; IFS='-'
2556 # Remember, the first character of IFS is used to create $*,
2557 # except with old shells:
2560 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2564 $as_echo_n "checking target system type... " >&6; }
2565 if test "${ac_cv_target+set}" = set; then :
2566 $as_echo_n "(cached) " >&6
2568 if test "x$target_alias" = x; then
2569 ac_cv_target=$ac_cv_host
2571 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2572 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2577 $as_echo "$ac_cv_target" >&6; }
2578 case $ac_cv_target in
2580 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2582 target=$ac_cv_target
2583 ac_save_IFS=$IFS; IFS='-'
2589 # Remember, the first character of IFS is used to create $*,
2590 # except with old shells:
2593 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2596 # The aliases save the names the user supplied, while $host etc.
2597 # will get canonicalized.
2598 test -n "$target_alias" &&
2599 test "$program_prefix$program_suffix$program_transform_name" = \
2601 program_prefix=${target_alias}-
2603 target_alias=${target_alias-$host_alias}
2605 . ${srcdir}/configure.host
2607 am__api_version='1.11'
2609 # Find a good install program. We prefer a C program (faster),
2610 # so one script is as good as another. But avoid the broken or
2611 # incompatible versions:
2612 # SysV /etc/install, /usr/sbin/install
2613 # SunOS /usr/etc/install
2614 # IRIX /sbin/install
2616 # AmigaOS /C/install, which installs bootblocks on floppy discs
2617 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2618 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2619 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2620 # OS/2's system install, which has a completely different semantic
2621 # ./install, which can be erroneously created by make from ./install.sh.
2622 # Reject install programs that cannot install multiple files.
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2624 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2625 if test -z "$INSTALL"; then
2626 if test "${ac_cv_path_install+set}" = set; then :
2627 $as_echo_n "(cached) " >&6
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633 test -z "$as_dir" && as_dir=.
2634 # Account for people who put trailing slashes in PATH elements.
2635 case $as_dir/ in #((
2636 ./ | .// | /[cC]/* | \
2637 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2638 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2641 # OSF1 and SCO ODT 3.0 have their own names for install.
2642 # Don't use installbsd from OSF since it installs stuff as root
2644 for ac_prog in ginstall scoinst install; do
2645 for ac_exec_ext in '' $ac_executable_extensions; do
2646 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2647 if test $ac_prog = install &&
2648 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2649 # AIX install. It has an incompatible calling convention.
2651 elif test $ac_prog = install &&
2652 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2653 # program-specific install script used by HP pwplus--don't use.
2656 rm -rf conftest.one conftest.two conftest.dir
2657 echo one > conftest.one
2658 echo two > conftest.two
2660 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2661 test -s conftest.one && test -s conftest.two &&
2662 test -s conftest.dir/conftest.one &&
2663 test -s conftest.dir/conftest.two
2665 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2678 rm -rf conftest.one conftest.two conftest.dir
2681 if test "${ac_cv_path_install+set}" = set; then
2682 INSTALL=$ac_cv_path_install
2684 # As a last resort, use the slow shell script. Don't cache a
2685 # value for INSTALL within a source directory, because that will
2686 # break other packages using the cache if that directory is
2687 # removed, or if the value is a relative name.
2688 INSTALL=$ac_install_sh
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2692 $as_echo "$INSTALL" >&6; }
2694 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2695 # It thinks the first close brace ends the variable substitution.
2696 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2698 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2700 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2703 $as_echo_n "checking whether build environment is sane... " >&6; }
2706 echo timestamp > conftest.file
2707 # Reject unsafe characters in $srcdir or the absolute working directory
2708 # name. Accept space and tab only in the latter.
2712 *[\\\"\#\$\&\'\`$am_lf]*)
2713 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2716 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2717 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2720 # Do `set' in a subshell so we don't clobber the current shell's
2721 # arguments. Must try -L first in case configure is actually a
2722 # symlink; some systems play weird games with the mod time of symlinks
2723 # (eg FreeBSD returns the mod time of the symlink's containing
2726 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2727 if test "$*" = "X"; then
2729 set X `ls -t "$srcdir/configure" conftest.file`
2732 if test "$*" != "X $srcdir/configure conftest.file" \
2733 && test "$*" != "X conftest.file $srcdir/configure"; then
2735 # If neither matched, then we have a broken ls. This can happen
2736 # if, for instance, CONFIG_SHELL is bash and it inherits a
2737 # broken ls alias from the environment. This has actually
2738 # happened. Such a system could not be considered "sane".
2739 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2740 alias in your environment" "$LINENO" 5
2743 test "$2" = conftest.file
2749 as_fn_error "newly created file is older than distributed files!
2750 Check your system clock" "$LINENO" 5
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2753 $as_echo "yes" >&6; }
2754 test "$program_prefix" != NONE &&
2755 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2756 # Use a double $ so make ignores it.
2757 test "$program_suffix" != NONE &&
2758 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2759 # Double any \ or $.
2760 # By default was `s,x,x', remove it if useless.
2761 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2762 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2764 # expand $ac_aux_dir to an absolute path
2765 am_aux_dir=`cd $ac_aux_dir && pwd`
2767 if test x"${MISSING+set}" != xset; then
2770 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2772 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2775 # Use eval to expand $SHELL
2776 if eval "$MISSING --run true"; then
2777 am_missing_run="$MISSING --run "
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2781 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2784 if test x"${install_sh}" != xset; then
2787 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2789 install_sh="\${SHELL} $am_aux_dir/install-sh"
2793 # Installed binaries are usually stripped using `strip' when the user
2794 # run `make install-strip'. However `strip' might not be the right
2795 # tool to use in cross-compilation environments, therefore Automake
2796 # will honor the `STRIP' environment variable to overrule this program.
2797 if test "$cross_compiling" != no; then
2798 if test -n "$ac_tool_prefix"; then
2799 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2800 set dummy ${ac_tool_prefix}strip; ac_word=$2
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2802 $as_echo_n "checking for $ac_word... " >&6; }
2803 if test "${ac_cv_prog_STRIP+set}" = set; then :
2804 $as_echo_n "(cached) " >&6
2806 if test -n "$STRIP"; then
2807 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813 test -z "$as_dir" && as_dir=.
2814 for ac_exec_ext in '' $ac_executable_extensions; do
2815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2816 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2826 STRIP=$ac_cv_prog_STRIP
2827 if test -n "$STRIP"; then
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2829 $as_echo "$STRIP" >&6; }
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2832 $as_echo "no" >&6; }
2837 if test -z "$ac_cv_prog_STRIP"; then
2839 # Extract the first word of "strip", so it can be a program name with args.
2840 set dummy strip; ac_word=$2
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2842 $as_echo_n "checking for $ac_word... " >&6; }
2843 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2844 $as_echo_n "(cached) " >&6
2846 if test -n "$ac_ct_STRIP"; then
2847 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 test -z "$as_dir" && as_dir=.
2854 for ac_exec_ext in '' $ac_executable_extensions; do
2855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2856 ac_cv_prog_ac_ct_STRIP="strip"
2857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2866 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2867 if test -n "$ac_ct_STRIP"; then
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2869 $as_echo "$ac_ct_STRIP" >&6; }
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2872 $as_echo "no" >&6; }
2875 if test "x$ac_ct_STRIP" = x; then
2878 case $cross_compiling:$ac_tool_warned in
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2881 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2882 ac_tool_warned=yes ;;
2887 STRIP="$ac_cv_prog_STRIP"
2891 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2894 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2895 if test -z "$MKDIR_P"; then
2896 if test "${ac_cv_path_mkdir+set}" = set; then :
2897 $as_echo_n "(cached) " >&6
2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2903 test -z "$as_dir" && as_dir=.
2904 for ac_prog in mkdir gmkdir; do
2905 for ac_exec_ext in '' $ac_executable_extensions; do
2906 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2907 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2908 'mkdir (GNU coreutils) '* | \
2909 'mkdir (coreutils) '* | \
2910 'mkdir (fileutils) '4.1*)
2911 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2921 if test "${ac_cv_path_mkdir+set}" = set; then
2922 MKDIR_P="$ac_cv_path_mkdir -p"
2924 # As a last resort, use the slow shell script. Don't cache a
2925 # value for MKDIR_P within a source directory, because that will
2926 # break other packages using the cache if that directory is
2927 # removed, or if the value is a relative name.
2928 test -d ./--version && rmdir ./--version
2929 MKDIR_P="$ac_install_sh -d"
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2933 $as_echo "$MKDIR_P" >&6; }
2937 [\\/$]* | ?:[\\/]*) ;;
2938 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2941 for ac_prog in gawk mawk nawk awk
2943 # Extract the first word of "$ac_prog", so it can be a program name with args.
2944 set dummy $ac_prog; ac_word=$2
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2946 $as_echo_n "checking for $ac_word... " >&6; }
2947 if test "${ac_cv_prog_AWK+set}" = set; then :
2948 $as_echo_n "(cached) " >&6
2950 if test -n "$AWK"; then
2951 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957 test -z "$as_dir" && as_dir=.
2958 for ac_exec_ext in '' $ac_executable_extensions; do
2959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2960 ac_cv_prog_AWK="$ac_prog"
2961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2971 if test -n "$AWK"; then
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2973 $as_echo "$AWK" >&6; }
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976 $as_echo "no" >&6; }
2980 test -n "$AWK" && break
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2984 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2986 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2987 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2988 $as_echo_n "(cached) " >&6
2990 cat >conftest.make <<\_ACEOF
2993 @echo '@@@%%%=$(MAKE)=@@@%%%'
2995 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2996 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2998 eval ac_cv_prog_make_${ac_make}_set=yes;;
3000 eval ac_cv_prog_make_${ac_make}_set=no;;
3004 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3006 $as_echo "yes" >&6; }
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3010 $as_echo "no" >&6; }
3011 SET_MAKE="MAKE=${MAKE-make}"
3014 rm -rf .tst 2>/dev/null
3015 mkdir .tst 2>/dev/null
3016 if test -d .tst; then
3021 rmdir .tst 2>/dev/null
3023 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3024 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3025 # is not polluted with repeated "-I."
3026 am__isrc=' -I$(srcdir)'
3027 # test to see if srcdir already configured
3028 if test -f $srcdir/config.status; then
3029 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3033 # test whether we have cygpath
3034 if test -z "$CYGPATH_W"; then
3035 if (cygpath --version) >/dev/null 2>/dev/null; then
3036 CYGPATH_W='cygpath -w'
3043 # Define the identity of the package.
3048 cat >>confdefs.h <<_ACEOF
3049 #define PACKAGE "$PACKAGE"
3053 cat >>confdefs.h <<_ACEOF
3054 #define VERSION "$VERSION"
3057 # Some tools Automake needs.
3059 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3062 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3065 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3068 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3071 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3073 # We need awk for the "check" target. The system "awk" is bad on
3075 # Always define AMTAR for backward compatibility.
3077 AMTAR=${AMTAR-"${am_missing_run}tar"}
3079 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3086 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3087 # We must force CC to /not/ be precious variables; otherwise
3088 # the wrong, non-multilib-adjusted value will be used in multilibs.
3089 # As a side effect, we have to subst CFLAGS ourselves.
3094 ac_cpp='$CPP $CPPFLAGS'
3095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3098 if test -n "$ac_tool_prefix"; then
3099 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3100 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3102 $as_echo_n "checking for $ac_word... " >&6; }
3103 if test "${ac_cv_prog_CC+set}" = set; then :
3104 $as_echo_n "(cached) " >&6
3106 if test -n "$CC"; then
3107 ac_cv_prog_CC="$CC" # Let the user override the test.
3109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113 test -z "$as_dir" && as_dir=.
3114 for ac_exec_ext in '' $ac_executable_extensions; do
3115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3116 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3127 if test -n "$CC"; then
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3129 $as_echo "$CC" >&6; }
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3132 $as_echo "no" >&6; }
3137 if test -z "$ac_cv_prog_CC"; then
3139 # Extract the first word of "gcc", so it can be a program name with args.
3140 set dummy gcc; ac_word=$2
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3142 $as_echo_n "checking for $ac_word... " >&6; }
3143 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3144 $as_echo_n "(cached) " >&6
3146 if test -n "$ac_ct_CC"; then
3147 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3153 test -z "$as_dir" && as_dir=.
3154 for ac_exec_ext in '' $ac_executable_extensions; do
3155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3156 ac_cv_prog_ac_ct_CC="gcc"
3157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3166 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3167 if test -n "$ac_ct_CC"; then
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3169 $as_echo "$ac_ct_CC" >&6; }
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172 $as_echo "no" >&6; }
3175 if test "x$ac_ct_CC" = x; then
3178 case $cross_compiling:$ac_tool_warned in
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3181 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3182 ac_tool_warned=yes ;;
3190 if test -z "$CC"; then
3191 if test -n "$ac_tool_prefix"; then
3192 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3193 set dummy ${ac_tool_prefix}cc; ac_word=$2
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3195 $as_echo_n "checking for $ac_word... " >&6; }
3196 if test "${ac_cv_prog_CC+set}" = set; then :
3197 $as_echo_n "(cached) " >&6
3199 if test -n "$CC"; then
3200 ac_cv_prog_CC="$CC" # Let the user override the test.
3202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206 test -z "$as_dir" && as_dir=.
3207 for ac_exec_ext in '' $ac_executable_extensions; do
3208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3209 ac_cv_prog_CC="${ac_tool_prefix}cc"
3210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3220 if test -n "$CC"; then
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3222 $as_echo "$CC" >&6; }
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225 $as_echo "no" >&6; }
3231 if test -z "$CC"; then
3232 # Extract the first word of "cc", so it can be a program name with args.
3233 set dummy cc; ac_word=$2
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3235 $as_echo_n "checking for $ac_word... " >&6; }
3236 if test "${ac_cv_prog_CC+set}" = set; then :
3237 $as_echo_n "(cached) " >&6
3239 if test -n "$CC"; then
3240 ac_cv_prog_CC="$CC" # Let the user override the test.
3243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247 test -z "$as_dir" && as_dir=.
3248 for ac_exec_ext in '' $ac_executable_extensions; do
3249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3250 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3251 ac_prog_rejected=yes
3255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3262 if test $ac_prog_rejected = yes; then
3263 # We found a bogon in the path, so make sure we never use it.
3264 set dummy $ac_cv_prog_CC
3266 if test $# != 0; then
3267 # We chose a different compiler from the bogus one.
3268 # However, it has the same basename, so the bogon will be chosen
3269 # first if we set CC to just the basename; use the full file name.
3271 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3277 if test -n "$CC"; then
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3279 $as_echo "$CC" >&6; }
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282 $as_echo "no" >&6; }
3287 if test -z "$CC"; then
3288 if test -n "$ac_tool_prefix"; then
3289 for ac_prog in cl.exe
3291 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3292 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3294 $as_echo_n "checking for $ac_word... " >&6; }
3295 if test "${ac_cv_prog_CC+set}" = set; then :
3296 $as_echo_n "(cached) " >&6
3298 if test -n "$CC"; then
3299 ac_cv_prog_CC="$CC" # Let the user override the test.
3301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3305 test -z "$as_dir" && as_dir=.
3306 for ac_exec_ext in '' $ac_executable_extensions; do
3307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3308 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3319 if test -n "$CC"; then
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3321 $as_echo "$CC" >&6; }
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3324 $as_echo "no" >&6; }
3328 test -n "$CC" && break
3331 if test -z "$CC"; then
3333 for ac_prog in cl.exe
3335 # Extract the first word of "$ac_prog", so it can be a program name with args.
3336 set dummy $ac_prog; ac_word=$2
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3338 $as_echo_n "checking for $ac_word... " >&6; }
3339 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3340 $as_echo_n "(cached) " >&6
3342 if test -n "$ac_ct_CC"; then
3343 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349 test -z "$as_dir" && as_dir=.
3350 for ac_exec_ext in '' $ac_executable_extensions; do
3351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3352 ac_cv_prog_ac_ct_CC="$ac_prog"
3353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3362 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3363 if test -n "$ac_ct_CC"; then
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3365 $as_echo "$ac_ct_CC" >&6; }
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3368 $as_echo "no" >&6; }
3372 test -n "$ac_ct_CC" && break
3375 if test "x$ac_ct_CC" = x; then
3378 case $cross_compiling:$ac_tool_warned in
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3382 ac_tool_warned=yes ;;
3391 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3392 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3393 as_fn_error "no acceptable C compiler found in \$PATH
3394 See \`config.log' for more details." "$LINENO" 5; }
3396 # Provide some information about the compiler.
3397 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3400 for ac_option in --version -v -V -qversion; do
3401 { { ac_try="$ac_compiler $ac_option >&5"
3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404 *) ac_try_echo=$ac_try;;
3406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3407 $as_echo "$ac_try_echo"; } >&5
3408 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3410 if test -s conftest.err; then
3412 ... rest of stderr output deleted ...
3413 10q' conftest.err >conftest.er1
3414 cat conftest.er1 >&5
3415 rm -f conftest.er1 conftest.err
3417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3418 test $ac_status = 0; }
3421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3422 /* end confdefs.h. */
3432 ac_clean_files_save=$ac_clean_files
3433 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3434 # Try to create an executable without -o first, disregard a.out.
3435 # It will help us diagnose broken compilers, and finding out an intuition
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3438 $as_echo_n "checking for C compiler default output file name... " >&6; }
3439 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3441 # The possible output files:
3442 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3445 for ac_file in $ac_files
3448 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3449 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3454 if { { ac_try="$ac_link_default"
3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457 *) ac_try_echo=$ac_try;;
3459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3460 $as_echo "$ac_try_echo"; } >&5
3461 (eval "$ac_link_default") 2>&5
3463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3464 test $ac_status = 0; }; then :
3465 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3466 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3467 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3468 # so that the user can short-circuit this test for compilers unknown to
3470 for ac_file in $ac_files ''
3472 test -f "$ac_file" || continue
3474 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3477 # We found the default executable, but exeext='' is most
3481 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3483 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3485 # We set ac_cv_exeext here because the later test for it is not
3486 # safe: cross compilers may not add the suffix if given an `-o'
3487 # argument, so we may need to know it at that point already.
3488 # Even if this section looks crufty: it has the advantage of
3495 test "$ac_cv_exeext" = no && ac_cv_exeext=
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3501 $as_echo "$ac_file" >&6; }
3502 if test -z "$ac_file"; then :
3503 $as_echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.$ac_ext >&5
3506 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3508 { as_fn_set_status 77
3509 as_fn_error "C compiler cannot create executables
3510 See \`config.log' for more details." "$LINENO" 5; }; }
3512 ac_exeext=$ac_cv_exeext
3514 # Check that the compiler produces executables we can run. If not, either
3515 # the compiler is broken, or we cross compile.
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3517 $as_echo_n "checking whether the C compiler works... " >&6; }
3518 # If not cross compiling, check that we can run a simple program.
3519 if test "$cross_compiling" != yes; then
3520 if { ac_try='./$ac_file'
3521 { { case "(($ac_try" in
3522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523 *) ac_try_echo=$ac_try;;
3525 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3526 $as_echo "$ac_try_echo"; } >&5
3527 (eval "$ac_try") 2>&5
3529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3530 test $ac_status = 0; }; }; then
3533 if test "$cross_compiling" = maybe; then
3536 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3538 as_fn_error "cannot run C compiled programs.
3539 If you meant to cross compile, use \`--host'.
3540 See \`config.log' for more details." "$LINENO" 5; }
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3545 $as_echo "yes" >&6; }
3547 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3548 ac_clean_files=$ac_clean_files_save
3549 # Check that the compiler produces executables we can run. If not, either
3550 # the compiler is broken, or we cross compile.
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3552 $as_echo_n "checking whether we are cross compiling... " >&6; }
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3554 $as_echo "$cross_compiling" >&6; }
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3557 $as_echo_n "checking for suffix of executables... " >&6; }
3558 if { { ac_try="$ac_link"
3560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561 *) ac_try_echo=$ac_try;;
3563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3564 $as_echo "$ac_try_echo"; } >&5
3565 (eval "$ac_link") 2>&5
3567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3568 test $ac_status = 0; }; then :
3569 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3570 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3571 # work properly (i.e., refer to `conftest.exe'), while it won't with
3573 for ac_file in conftest.exe conftest conftest.*; do
3574 test -f "$ac_file" || continue
3576 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3577 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3585 as_fn_error "cannot compute suffix of executables: cannot compile and link
3586 See \`config.log' for more details." "$LINENO" 5; }
3588 rm -f conftest$ac_cv_exeext
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3590 $as_echo "$ac_cv_exeext" >&6; }
3592 rm -f conftest.$ac_ext
3593 EXEEXT=$ac_cv_exeext
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3596 $as_echo_n "checking for suffix of object files... " >&6; }
3597 if test "${ac_cv_objext+set}" = set; then :
3598 $as_echo_n "(cached) " >&6
3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h. */
3611 rm -f conftest.o conftest.obj
3612 if { { ac_try="$ac_compile"
3614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615 *) ac_try_echo=$ac_try;;
3617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3618 $as_echo "$ac_try_echo"; } >&5
3619 (eval "$ac_compile") 2>&5
3621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3622 test $ac_status = 0; }; then :
3623 for ac_file in conftest.o conftest.obj conftest.*; do
3624 test -f "$ac_file" || continue;
3626 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3627 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3632 $as_echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3637 as_fn_error "cannot compute suffix of object files: cannot compile
3638 See \`config.log' for more details." "$LINENO" 5; }
3640 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3643 $as_echo "$ac_cv_objext" >&6; }
3644 OBJEXT=$ac_cv_objext
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3647 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3648 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3649 $as_echo_n "(cached) " >&6
3651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652 /* end confdefs.h. */
3665 if ac_fn_c_try_compile "$LINENO"; then :
3670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3671 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3675 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3676 if test $ac_compiler_gnu = yes; then
3681 ac_test_CFLAGS=${CFLAGS+set}
3682 ac_save_CFLAGS=$CFLAGS
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3684 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3685 if test "${ac_cv_prog_cc_g+set}" = set; then :
3686 $as_echo_n "(cached) " >&6
3688 ac_save_c_werror_flag=$ac_c_werror_flag
3689 ac_c_werror_flag=yes
3692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3693 /* end confdefs.h. */
3703 if ac_fn_c_try_compile "$LINENO"; then :
3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h. */
3718 if ac_fn_c_try_compile "$LINENO"; then :
3721 ac_c_werror_flag=$ac_save_c_werror_flag
3723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3724 /* end confdefs.h. */
3734 if ac_fn_c_try_compile "$LINENO"; then :
3737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3742 ac_c_werror_flag=$ac_save_c_werror_flag
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3745 $as_echo "$ac_cv_prog_cc_g" >&6; }
3746 if test "$ac_test_CFLAGS" = set; then
3747 CFLAGS=$ac_save_CFLAGS
3748 elif test $ac_cv_prog_cc_g = yes; then
3749 if test "$GCC" = yes; then
3755 if test "$GCC" = yes; then
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3762 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3763 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3764 $as_echo_n "(cached) " >&6
3766 ac_cv_prog_cc_c89=no
3768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3769 /* end confdefs.h. */
3772 #include <sys/types.h>
3773 #include <sys/stat.h>
3774 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3775 struct buf { int x; };
3776 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3777 static char *e (p, i)
3783 static char *f (char * (*g) (char **, int), char **p, ...)
3788 s = g (p, va_arg (v,int));
3793 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3794 function prototypes and stuff, but not '\xHH' hex character constants.
3795 These don't provoke an error unfortunately, instead are silently treated
3796 as 'x'. The following induces an error, until -std is added to get
3797 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3798 array size at least. It's necessary to write '\x00'==0 to get something
3799 that's true only with -std. */
3800 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3802 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3803 inside strings and character constants. */
3805 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3807 int test (int i, double x);
3808 struct s1 {int (*f) (int a);};
3809 struct s2 {int (*f) (double a);};
3810 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3816 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3821 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3822 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3824 CC="$ac_save_CC $ac_arg"
3825 if ac_fn_c_try_compile "$LINENO"; then :
3826 ac_cv_prog_cc_c89=$ac_arg
3828 rm -f core conftest.err conftest.$ac_objext
3829 test "x$ac_cv_prog_cc_c89" != "xno" && break
3831 rm -f conftest.$ac_ext
3836 case "x$ac_cv_prog_cc_c89" in
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3839 $as_echo "none needed" >&6; } ;;
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3842 $as_echo "unsupported" >&6; } ;;
3844 CC="$CC $ac_cv_prog_cc_c89"
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3846 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3848 if test "x$ac_cv_prog_cc_c89" != xno; then :
3853 ac_cpp='$CPP $CPPFLAGS'
3854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3857 DEPDIR="${am__leading_dot}deps"
3859 ac_config_commands="$ac_config_commands depfiles"
3862 am_make=${MAKE-make}
3863 cat > confinc << 'END'
3865 @echo this is the am__doit target
3868 # If we don't find an include directive, just comment out the code.
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3870 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3874 # First try GNU make style include.
3875 echo "include confinc" > confmf
3876 # Ignore all kinds of additional output from `make'.
3877 case `$am_make -s -f confmf 2> /dev/null` in #(
3878 *the\ am__doit\ target*)
3884 # Now try BSD make style include.
3885 if test "$am__include" = "#"; then
3886 echo '.include "confinc"' > confmf
3887 case `$am_make -s -f confmf 2> /dev/null` in #(
3888 *the\ am__doit\ target*)
3889 am__include=.include
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3898 $as_echo "$_am_result" >&6; }
3899 rm -f confinc confmf
3901 # Check whether --enable-dependency-tracking was given.
3902 if test "${enable_dependency_tracking+set}" = set; then :
3903 enableval=$enable_dependency_tracking;
3906 if test "x$enable_dependency_tracking" != xno; then
3907 am_depcomp="$ac_aux_dir/depcomp"
3910 if test "x$enable_dependency_tracking" != xno; then
3920 depcc="$CC" am_compiler_list=
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3923 $as_echo_n "checking dependency style of $depcc... " >&6; }
3924 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3925 $as_echo_n "(cached) " >&6
3927 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3928 # We make a subdir and do the tests there. Otherwise we can end up
3929 # making bogus files that we don't know about and never remove. For
3930 # instance it was reported that on HP-UX the gcc test will end up
3931 # making a dummy file named `D' -- because `-MD' means `put the output
3934 # Copy depcomp to subdir because otherwise we won't find it if we're
3935 # using a relative directory.
3936 cp "$am_depcomp" conftest.dir
3938 # We will build objects and dependencies in a subdirectory because
3939 # it helps to detect inapplicable dependency modes. For instance
3940 # both Tru64's cc and ICC support -MD to output dependencies as a
3941 # side effect of compilation, but ICC will put the dependencies in
3942 # the current directory while Tru64 will put them in the object
3946 am_cv_CC_dependencies_compiler_type=none
3947 if test "$am_compiler_list" = ""; then
3948 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3951 case " $depcc " in #(
3952 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3955 for depmode in $am_compiler_list; do
3956 # Setup a source with many dependencies, because some compilers
3957 # like to wrap large dependency lists on column 80 (with \), and
3958 # we should not choose a depcomp mode which is confused by this.
3960 # We need to recreate these files for each test, as the compiler may
3961 # overwrite some of them when testing with obscure command lines.
3962 # This happens at least with the AIX C compiler.
3964 for i in 1 2 3 4 5 6; do
3965 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3966 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3967 # Solaris 8's {/usr,}/bin/sh.
3968 touch sub/conftst$i.h
3970 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3972 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3973 # mode. It turns out that the SunPro C++ compiler does not properly
3974 # handle `-M -o', and we need to detect this. Also, some Intel
3975 # versions had trouble with output in subdirs
3976 am__obj=sub/conftest.${OBJEXT-o}
3977 am__minus_obj="-o $am__obj"
3980 # This depmode causes a compiler race in universal mode.
3981 test "$am__universal" = false || continue
3984 # after this tag, mechanisms are not by side-effect, so they'll
3985 # only be used when explicitly requested
3986 if test "x$enable_dependency_tracking" = xyes; then
3992 msvisualcpp | msvcmsys)
3993 # This compiler won't grok `-c -o', but also, the minuso test has
3994 # not run yet. These depmodes are late enough in the game, and
3995 # so weak that their functioning should not be impacted.
3996 am__obj=conftest.${OBJEXT-o}
4001 if depmode=$depmode \
4002 source=sub/conftest.c object=$am__obj \
4003 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4004 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4005 >/dev/null 2>conftest.err &&
4006 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4007 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4008 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4009 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4010 # icc doesn't choke on unknown options, it will just issue warnings
4011 # or remarks (even with -Werror). So we grep stderr for any message
4012 # that says an option was ignored or not supported.
4013 # When given -MP, icc 7.0 and 7.1 complain thusly:
4014 # icc: Command line warning: ignoring option '-M'; no argument required
4015 # The diagnosis changed in icc 8.0:
4016 # icc: Command line remark: option '-MP' not supported
4017 if (grep 'ignoring option' conftest.err ||
4018 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4019 am_cv_CC_dependencies_compiler_type=$depmode
4028 am_cv_CC_dependencies_compiler_type=none
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4033 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4034 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4037 test "x$enable_dependency_tracking" != xno \
4038 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4040 am__fastdepCC_FALSE='#'
4042 am__fastdepCC_TRUE='#'
4043 am__fastdepCC_FALSE=
4051 # By default we simply use the C compiler to build assembly code.
4053 test "${CCAS+set}" = set || CCAS=$CC
4054 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4058 depcc="$CCAS" am_compiler_list=
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4061 $as_echo_n "checking dependency style of $depcc... " >&6; }
4062 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4063 $as_echo_n "(cached) " >&6
4065 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4066 # We make a subdir and do the tests there. Otherwise we can end up
4067 # making bogus files that we don't know about and never remove. For
4068 # instance it was reported that on HP-UX the gcc test will end up
4069 # making a dummy file named `D' -- because `-MD' means `put the output
4072 # Copy depcomp to subdir because otherwise we won't find it if we're
4073 # using a relative directory.
4074 cp "$am_depcomp" conftest.dir
4076 # We will build objects and dependencies in a subdirectory because
4077 # it helps to detect inapplicable dependency modes. For instance
4078 # both Tru64's cc and ICC support -MD to output dependencies as a
4079 # side effect of compilation, but ICC will put the dependencies in
4080 # the current directory while Tru64 will put them in the object
4084 am_cv_CCAS_dependencies_compiler_type=none
4085 if test "$am_compiler_list" = ""; then
4086 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4091 for depmode in $am_compiler_list; do
4092 # Setup a source with many dependencies, because some compilers
4093 # like to wrap large dependency lists on column 80 (with \), and
4094 # we should not choose a depcomp mode which is confused by this.
4096 # We need to recreate these files for each test, as the compiler may
4097 # overwrite some of them when testing with obscure command lines.
4098 # This happens at least with the AIX C compiler.
4100 for i in 1 2 3 4 5 6; do
4101 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4102 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4103 # Solaris 8's {/usr,}/bin/sh.
4104 touch sub/conftst$i.h
4106 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4108 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4109 # mode. It turns out that the SunPro C++ compiler does not properly
4110 # handle `-M -o', and we need to detect this. Also, some Intel
4111 # versions had trouble with output in subdirs
4112 am__obj=sub/conftest.${OBJEXT-o}
4113 am__minus_obj="-o $am__obj"
4116 # This depmode causes a compiler race in universal mode.
4117 test "$am__universal" = false || continue
4120 # after this tag, mechanisms are not by side-effect, so they'll
4121 # only be used when explicitly requested
4122 if test "x$enable_dependency_tracking" = xyes; then
4128 msvisualcpp | msvcmsys)
4129 # This compiler won't grok `-c -o', but also, the minuso test has
4130 # not run yet. These depmodes are late enough in the game, and
4131 # so weak that their functioning should not be impacted.
4132 am__obj=conftest.${OBJEXT-o}
4137 if depmode=$depmode \
4138 source=sub/conftest.c object=$am__obj \
4139 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4140 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4141 >/dev/null 2>conftest.err &&
4142 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4143 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4144 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4145 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4146 # icc doesn't choke on unknown options, it will just issue warnings
4147 # or remarks (even with -Werror). So we grep stderr for any message
4148 # that says an option was ignored or not supported.
4149 # When given -MP, icc 7.0 and 7.1 complain thusly:
4150 # icc: Command line warning: ignoring option '-M'; no argument required
4151 # The diagnosis changed in icc 8.0:
4152 # icc: Command line remark: option '-MP' not supported
4153 if (grep 'ignoring option' conftest.err ||
4154 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4155 am_cv_CCAS_dependencies_compiler_type=$depmode
4164 am_cv_CCAS_dependencies_compiler_type=none
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4169 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4170 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4173 test "x$enable_dependency_tracking" != xno \
4174 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4175 am__fastdepCCAS_TRUE=
4176 am__fastdepCCAS_FALSE='#'
4178 am__fastdepCCAS_TRUE='#'
4179 am__fastdepCCAS_FALSE=
4183 if test "x$CC" != xcc; then
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4185 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4188 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4190 set dummy $CC; ac_cc=`$as_echo "$2" |
4191 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4192 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4193 $as_echo_n "(cached) " >&6
4195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196 /* end confdefs.h. */
4206 # Make sure it works both with $CC and with simple cc.
4207 # We do the test twice because some compilers refuse to overwrite an
4208 # existing .o file with -o, though they will create one.
4209 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4211 if { { case "(($ac_try" in
4212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4213 *) ac_try_echo=$ac_try;;
4215 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4216 $as_echo "$ac_try_echo"; } >&5
4217 (eval "$ac_try") 2>&5
4219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4220 test $ac_status = 0; } &&
4221 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4223 *) ac_try_echo=$ac_try;;
4225 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4226 $as_echo "$ac_try_echo"; } >&5
4227 (eval "$ac_try") 2>&5
4229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4230 test $ac_status = 0; };
4232 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4233 if test "x$CC" != xcc; then
4234 # Test first that cc exists at all.
4235 if { ac_try='cc -c conftest.$ac_ext >&5'
4236 { { case "(($ac_try" in
4237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4238 *) ac_try_echo=$ac_try;;
4240 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4241 $as_echo "$ac_try_echo"; } >&5
4242 (eval "$ac_try") 2>&5
4244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4245 test $ac_status = 0; }; }; then
4246 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4248 if { { case "(($ac_try" in
4249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4250 *) ac_try_echo=$ac_try;;
4252 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4253 $as_echo "$ac_try_echo"; } >&5
4254 (eval "$ac_try") 2>&5
4256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4257 test $ac_status = 0; } &&
4258 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260 *) ac_try_echo=$ac_try;;
4262 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4263 $as_echo "$ac_try_echo"; } >&5
4264 (eval "$ac_try") 2>&5
4266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4267 test $ac_status = 0; };
4272 # cc exists but doesn't like -o.
4273 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4278 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4280 rm -f core conftest*
4283 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4285 $as_echo "yes" >&6; }
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4288 $as_echo "no" >&6; }
4290 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4294 # FIXME: we rely on the cache variable name because
4295 # there is no other way.
4297 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4298 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4299 if test "$am_t" != yes; then
4300 # Losing compiler, so override with the script.
4301 # FIXME: It is wrong to rewrite CC.
4302 # But if we don't then we get into trouble of one sort or another.
4303 # A longer-term fix would be to have automake use am__CC in this case,
4304 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4305 CC="$am_aux_dir/compile $CC"
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4312 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4317 macro_version='2.2.7a'
4318 macro_revision='1.3134'
4332 ltmain="$ac_aux_dir/ltmain.sh"
4334 # Backslashify metacharacters that are still active within
4335 # double-quoted strings.
4336 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4338 # Same as above, but do not quote variable references.
4339 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4341 # Sed substitution to delay expansion of an escaped shell variable in a
4342 # double_quote_subst'ed string.
4343 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4345 # Sed substitution to delay expansion of an escaped single quote.
4346 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4348 # Sed substitution to avoid accidental globbing in evaled expressions
4349 no_glob_subst='s/\*/\\\*/g'
4351 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4352 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4353 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4356 $as_echo_n "checking how to print strings... " >&6; }
4357 # Test print first, because it will be a builtin if present.
4358 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4359 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4361 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4364 # Use this function as a fallback that always works.
4365 func_fallback_echo ()
4367 eval 'cat <<_LTECHO_EOF
4371 ECHO='func_fallback_echo'
4374 # func_echo_all arg...
4375 # Invoke $ECHO with all args, space-separated.
4382 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4383 $as_echo "printf" >&6; } ;;
4384 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4385 $as_echo "print -r" >&6; } ;;
4386 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4387 $as_echo "cat" >&6; } ;;
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4404 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4405 if test "${ac_cv_path_SED+set}" = set; then :
4406 $as_echo_n "(cached) " >&6
4408 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4409 for ac_i in 1 2 3 4 5 6 7; do
4410 ac_script="$ac_script$as_nl$ac_script"
4412 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4413 { ac_script=; unset ac_script;}
4414 if test -z "$SED"; then
4415 ac_path_SED_found=false
4416 # Loop through the user's path and test for each of PROGNAME-LIST
4417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421 test -z "$as_dir" && as_dir=.
4422 for ac_prog in sed gsed; do
4423 for ac_exec_ext in '' $ac_executable_extensions; do
4424 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4425 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4426 # Check for GNU ac_path_SED and select it if it is found.
4427 # Check for GNU $ac_path_SED
4428 case `"$ac_path_SED" --version 2>&1` in
4430 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4433 $as_echo_n 0123456789 >"conftest.in"
4436 cat "conftest.in" "conftest.in" >"conftest.tmp"
4437 mv "conftest.tmp" "conftest.in"
4438 cp "conftest.in" "conftest.nl"
4439 $as_echo '' >> "conftest.nl"
4440 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4441 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4442 as_fn_arith $ac_count + 1 && ac_count=$as_val
4443 if test $ac_count -gt ${ac_path_SED_max-0}; then
4444 # Best one so far, save it but keep looking for a better one
4445 ac_cv_path_SED="$ac_path_SED"
4446 ac_path_SED_max=$ac_count
4448 # 10*(2^10) chars as input seems more than enough
4449 test $ac_count -gt 10 && break
4451 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4454 $ac_path_SED_found && break 3
4459 if test -z "$ac_cv_path_SED"; then
4460 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4468 $as_echo "$ac_cv_path_SED" >&6; }
4469 SED="$ac_cv_path_SED"
4472 test -z "$SED" && SED=sed
4473 Xsed="$SED -e 1s/^X//"
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4486 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4487 if test "${ac_cv_path_GREP+set}" = set; then :
4488 $as_echo_n "(cached) " >&6
4490 if test -z "$GREP"; then
4491 ac_path_GREP_found=false
4492 # Loop through the user's path and test for each of PROGNAME-LIST
4493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4494 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4497 test -z "$as_dir" && as_dir=.
4498 for ac_prog in grep ggrep; do
4499 for ac_exec_ext in '' $ac_executable_extensions; do
4500 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4501 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4502 # Check for GNU ac_path_GREP and select it if it is found.
4503 # Check for GNU $ac_path_GREP
4504 case `"$ac_path_GREP" --version 2>&1` in
4506 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4509 $as_echo_n 0123456789 >"conftest.in"
4512 cat "conftest.in" "conftest.in" >"conftest.tmp"
4513 mv "conftest.tmp" "conftest.in"
4514 cp "conftest.in" "conftest.nl"
4515 $as_echo 'GREP' >> "conftest.nl"
4516 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4517 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4518 as_fn_arith $ac_count + 1 && ac_count=$as_val
4519 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4520 # Best one so far, save it but keep looking for a better one
4521 ac_cv_path_GREP="$ac_path_GREP"
4522 ac_path_GREP_max=$ac_count
4524 # 10*(2^10) chars as input seems more than enough
4525 test $ac_count -gt 10 && break
4527 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4530 $ac_path_GREP_found && break 3
4535 if test -z "$ac_cv_path_GREP"; then
4536 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4539 ac_cv_path_GREP=$GREP
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4544 $as_echo "$ac_cv_path_GREP" >&6; }
4545 GREP="$ac_cv_path_GREP"
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4549 $as_echo_n "checking for egrep... " >&6; }
4550 if test "${ac_cv_path_EGREP+set}" = set; then :
4551 $as_echo_n "(cached) " >&6
4553 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4554 then ac_cv_path_EGREP="$GREP -E"
4556 if test -z "$EGREP"; then
4557 ac_path_EGREP_found=false
4558 # Loop through the user's path and test for each of PROGNAME-LIST
4559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4563 test -z "$as_dir" && as_dir=.
4564 for ac_prog in egrep; do
4565 for ac_exec_ext in '' $ac_executable_extensions; do
4566 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4567 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4568 # Check for GNU ac_path_EGREP and select it if it is found.
4569 # Check for GNU $ac_path_EGREP
4570 case `"$ac_path_EGREP" --version 2>&1` in
4572 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4575 $as_echo_n 0123456789 >"conftest.in"
4578 cat "conftest.in" "conftest.in" >"conftest.tmp"
4579 mv "conftest.tmp" "conftest.in"
4580 cp "conftest.in" "conftest.nl"
4581 $as_echo 'EGREP' >> "conftest.nl"
4582 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4583 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4584 as_fn_arith $ac_count + 1 && ac_count=$as_val
4585 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4586 # Best one so far, save it but keep looking for a better one
4587 ac_cv_path_EGREP="$ac_path_EGREP"
4588 ac_path_EGREP_max=$ac_count
4590 # 10*(2^10) chars as input seems more than enough
4591 test $ac_count -gt 10 && break
4593 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4596 $ac_path_EGREP_found && break 3
4601 if test -z "$ac_cv_path_EGREP"; then
4602 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4605 ac_cv_path_EGREP=$EGREP
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4611 $as_echo "$ac_cv_path_EGREP" >&6; }
4612 EGREP="$ac_cv_path_EGREP"
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4616 $as_echo_n "checking for fgrep... " >&6; }
4617 if test "${ac_cv_path_FGREP+set}" = set; then :
4618 $as_echo_n "(cached) " >&6
4620 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4621 then ac_cv_path_FGREP="$GREP -F"
4623 if test -z "$FGREP"; then
4624 ac_path_FGREP_found=false
4625 # Loop through the user's path and test for each of PROGNAME-LIST
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4630 test -z "$as_dir" && as_dir=.
4631 for ac_prog in fgrep; do
4632 for ac_exec_ext in '' $ac_executable_extensions; do
4633 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4634 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4635 # Check for GNU ac_path_FGREP and select it if it is found.
4636 # Check for GNU $ac_path_FGREP
4637 case `"$ac_path_FGREP" --version 2>&1` in
4639 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4642 $as_echo_n 0123456789 >"conftest.in"
4645 cat "conftest.in" "conftest.in" >"conftest.tmp"
4646 mv "conftest.tmp" "conftest.in"
4647 cp "conftest.in" "conftest.nl"
4648 $as_echo 'FGREP' >> "conftest.nl"
4649 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4650 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4651 as_fn_arith $ac_count + 1 && ac_count=$as_val
4652 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4653 # Best one so far, save it but keep looking for a better one
4654 ac_cv_path_FGREP="$ac_path_FGREP"
4655 ac_path_FGREP_max=$ac_count
4657 # 10*(2^10) chars as input seems more than enough
4658 test $ac_count -gt 10 && break
4660 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4663 $ac_path_FGREP_found && break 3
4668 if test -z "$ac_cv_path_FGREP"; then
4669 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4672 ac_cv_path_FGREP=$FGREP
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4678 $as_echo "$ac_cv_path_FGREP" >&6; }
4679 FGREP="$ac_cv_path_FGREP"
4682 test -z "$GREP" && GREP=grep
4702 # Check whether --with-gnu-ld was given.
4703 if test "${with_gnu_ld+set}" = set; then :
4704 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4710 if test "$GCC" = yes; then
4711 # Check if gcc -print-prog-name=ld gives a path.
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4713 $as_echo_n "checking for ld used by $CC... " >&6; }
4716 # gcc leaves a trailing carriage return which upsets mingw
4717 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4719 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4722 # Accept absolute paths.
4724 re_direlt='/[^/][^/]*/\.\./'
4725 # Canonicalize the pathname of ld
4726 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4727 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4728 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4730 test -z "$LD" && LD="$ac_prog"
4733 # If it fails, then pretend we aren't using GCC.
4737 # If it is relative, then search for the first ld in PATH.
4741 elif test "$with_gnu_ld" = yes; then
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4743 $as_echo_n "checking for GNU ld... " >&6; }
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4746 $as_echo_n "checking for non-GNU ld... " >&6; }
4748 if test "${lt_cv_path_LD+set}" = set; then :
4749 $as_echo_n "(cached) " >&6
4751 if test -z "$LD"; then
4752 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4753 for ac_dir in $PATH; do
4755 test -z "$ac_dir" && ac_dir=.
4756 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4757 lt_cv_path_LD="$ac_dir/$ac_prog"
4758 # Check to see if the program is GNU ld. I'd rather use --version,
4759 # but apparently some variants of GNU ld only accept -v.
4760 # Break only if it was the GNU/non-GNU ld that we prefer.
4761 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4762 *GNU* | *'with BFD'*)
4763 test "$with_gnu_ld" != no && break
4766 test "$with_gnu_ld" != yes && break
4773 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4778 if test -n "$LD"; then
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4780 $as_echo "$LD" >&6; }
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4783 $as_echo "no" >&6; }
4785 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4787 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4788 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4789 $as_echo_n "(cached) " >&6
4791 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4792 case `$LD -v 2>&1 </dev/null` in
4793 *GNU* | *'with BFD'*)
4794 lt_cv_prog_gnu_ld=yes
4797 lt_cv_prog_gnu_ld=no
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4802 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4803 with_gnu_ld=$lt_cv_prog_gnu_ld
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4814 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4815 if test "${lt_cv_path_NM+set}" = set; then :
4816 $as_echo_n "(cached) " >&6
4818 if test -n "$NM"; then
4819 # Let the user override the test.
4822 lt_nm_to_check="${ac_tool_prefix}nm"
4823 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4824 lt_nm_to_check="$lt_nm_to_check nm"
4826 for lt_tmp_nm in $lt_nm_to_check; do
4827 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4828 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4830 test -z "$ac_dir" && ac_dir=.
4831 tmp_nm="$ac_dir/$lt_tmp_nm"
4832 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4833 # Check to see if the nm accepts a BSD-compat flag.
4834 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4835 # nm: unknown option "B" ignored
4836 # Tru64's nm complains that /dev/null is an invalid object file
4837 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4838 */dev/null* | *'Invalid file or object type'*)
4839 lt_cv_path_NM="$tmp_nm -B"
4843 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4845 lt_cv_path_NM="$tmp_nm -p"
4849 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4850 continue # so that we can try to find one that supports BSD flags
4859 : ${lt_cv_path_NM=no}
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4863 $as_echo "$lt_cv_path_NM" >&6; }
4864 if test "$lt_cv_path_NM" != "no"; then
4867 # Didn't find any BSD compatible name lister, look for dumpbin.
4868 if test -n "$DUMPBIN"; then :
4869 # Let the user override the test.
4871 if test -n "$ac_tool_prefix"; then
4872 for ac_prog in dumpbin "link -dump"
4874 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4875 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4877 $as_echo_n "checking for $ac_word... " >&6; }
4878 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4879 $as_echo_n "(cached) " >&6
4881 if test -n "$DUMPBIN"; then
4882 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4888 test -z "$as_dir" && as_dir=.
4889 for ac_exec_ext in '' $ac_executable_extensions; do
4890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4891 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4901 DUMPBIN=$ac_cv_prog_DUMPBIN
4902 if test -n "$DUMPBIN"; then
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4904 $as_echo "$DUMPBIN" >&6; }
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4907 $as_echo "no" >&6; }
4911 test -n "$DUMPBIN" && break
4914 if test -z "$DUMPBIN"; then
4915 ac_ct_DUMPBIN=$DUMPBIN
4916 for ac_prog in dumpbin "link -dump"
4918 # Extract the first word of "$ac_prog", so it can be a program name with args.
4919 set dummy $ac_prog; ac_word=$2
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4921 $as_echo_n "checking for $ac_word... " >&6; }
4922 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4923 $as_echo_n "(cached) " >&6
4925 if test -n "$ac_ct_DUMPBIN"; then
4926 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4932 test -z "$as_dir" && as_dir=.
4933 for ac_exec_ext in '' $ac_executable_extensions; do
4934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4935 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4945 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4946 if test -n "$ac_ct_DUMPBIN"; then
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4948 $as_echo "$ac_ct_DUMPBIN" >&6; }
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4951 $as_echo "no" >&6; }
4955 test -n "$ac_ct_DUMPBIN" && break
4958 if test "x$ac_ct_DUMPBIN" = x; then
4961 case $cross_compiling:$ac_tool_warned in
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4964 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4965 ac_tool_warned=yes ;;
4967 DUMPBIN=$ac_ct_DUMPBIN
4971 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4973 DUMPBIN="$DUMPBIN -symbols"
4981 if test "$DUMPBIN" != ":"; then
4985 test -z "$NM" && NM=nm
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4993 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4994 if test "${lt_cv_nm_interface+set}" = set; then :
4995 $as_echo_n "(cached) " >&6
4997 lt_cv_nm_interface="BSD nm"
4998 echo "int some_variable = 0;" > conftest.$ac_ext
4999 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5000 (eval "$ac_compile" 2>conftest.err)
5001 cat conftest.err >&5
5002 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5003 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5004 cat conftest.err >&5
5005 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5006 cat conftest.out >&5
5007 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5008 lt_cv_nm_interface="MS dumpbin"
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5013 $as_echo "$lt_cv_nm_interface" >&6; }
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5016 $as_echo_n "checking whether ln -s works... " >&6; }
5018 if test "$LN_S" = "ln -s"; then
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5020 $as_echo "yes" >&6; }
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5023 $as_echo "no, using $LN_S" >&6; }
5026 # find the maximum length of command line arguments
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5028 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5029 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5030 $as_echo_n "(cached) " >&6
5037 # On DJGPP, this test can blow up pretty badly due to problems in libc
5038 # (any single argument exceeding 2000 bytes causes a buffer overrun
5039 # during glob expansion). Even if it were fixed, the result of this
5040 # check would be larger than it should be.
5041 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5045 # Under GNU Hurd, this test is not required because there is
5046 # no limit to the length of command line arguments.
5047 # Libtool will interpret -1 as no limit whatsoever
5048 lt_cv_sys_max_cmd_len=-1;
5051 cygwin* | mingw* | cegcc*)
5052 # On Win9x/ME, this test blows up -- it succeeds, but takes
5053 # about 5 minutes as the teststring grows exponentially.
5054 # Worse, since 9x/ME are not pre-emptively multitasking,
5055 # you end up with a "frozen" computer, even though with patience
5056 # the test eventually succeeds (with a max line length of 256k).
5057 # Instead, let's just punt: use the minimum linelength reported by
5058 # all of the supported platforms: 8192 (on NT/2K/XP).
5059 lt_cv_sys_max_cmd_len=8192;
5063 # On MiNT this can take a long time and run out of memory.
5064 lt_cv_sys_max_cmd_len=8192;
5068 # On AmigaOS with pdksh, this test takes hours, literally.
5069 # So we just punt and use a minimum line length of 8192.
5070 lt_cv_sys_max_cmd_len=8192;
5073 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5074 # This has been around since 386BSD, at least. Likely further.
5075 if test -x /sbin/sysctl; then
5076 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5077 elif test -x /usr/sbin/sysctl; then
5078 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5080 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5082 # And add a safety zone
5083 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5084 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5088 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5089 lt_cv_sys_max_cmd_len=196608
5093 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5094 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5095 # nice to cause kernel panics so lets avoid the loop below.
5096 # First set a reasonable default.
5097 lt_cv_sys_max_cmd_len=16384
5099 if test -x /sbin/sysconfig; then
5100 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5101 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5106 lt_cv_sys_max_cmd_len=102400
5108 sysv5* | sco5v6* | sysv4.2uw2*)
5109 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5110 if test -n "$kargmax"; then
5111 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5113 lt_cv_sys_max_cmd_len=32768
5117 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5118 if test -n "$lt_cv_sys_max_cmd_len"; then
5119 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5120 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5122 # Make teststring a little bigger before we do anything with it.
5123 # a 1K string should be a reasonable start.
5124 for i in 1 2 3 4 5 6 7 8 ; do
5125 teststring=$teststring$teststring
5127 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5128 # If test is not a shell built-in, we'll probably end up computing a
5129 # maximum length that is only half of the actual maximum length, but
5131 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5132 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5133 test $i != 17 # 1/2 MB should be enough
5136 teststring=$teststring$teststring
5138 # Only check the string length outside the loop.
5139 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5141 # Add a significant safety factor because C++ compilers can tack on
5142 # massive amounts of additional arguments before passing them to the
5143 # linker. It appears as though 1/2 is a usable value.
5144 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5151 if test -n $lt_cv_sys_max_cmd_len ; then
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5153 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5156 $as_echo "none" >&6; }
5158 max_cmd_len=$lt_cv_sys_max_cmd_len
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5170 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5171 # Try some XSI features
5174 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5176 && eval 'test $(( 1 + 1 )) -eq 2 \
5177 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5180 $as_echo "$xsi_shell" >&6; }
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5184 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5186 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5188 && lt_shell_append=yes
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5190 $as_echo "$lt_shell_append" >&6; }
5193 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5203 # test EBCDIC or ASCII
5204 case `echo X|tr X '\101'` in
5205 A) # ASCII based system
5206 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5207 lt_SP2NL='tr \040 \012'
5208 lt_NL2SP='tr \015\012 \040\040'
5210 *) # EBCDIC based system
5211 lt_SP2NL='tr \100 \n'
5212 lt_NL2SP='tr \r\n \100\100'
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5225 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5226 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5227 $as_echo_n "(cached) " >&6
5229 lt_cv_ld_reload_flag='-r'
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5232 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5233 reload_flag=$lt_cv_ld_reload_flag
5234 case $reload_flag in
5236 *) reload_flag=" $reload_flag" ;;
5238 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5241 if test "$GCC" = yes; then
5242 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5244 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5257 if test -n "$ac_tool_prefix"; then
5258 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5259 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5261 $as_echo_n "checking for $ac_word... " >&6; }
5262 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5263 $as_echo_n "(cached) " >&6
5265 if test -n "$OBJDUMP"; then
5266 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272 test -z "$as_dir" && as_dir=.
5273 for ac_exec_ext in '' $ac_executable_extensions; do
5274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5275 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5285 OBJDUMP=$ac_cv_prog_OBJDUMP
5286 if test -n "$OBJDUMP"; then
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5288 $as_echo "$OBJDUMP" >&6; }
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5291 $as_echo "no" >&6; }
5296 if test -z "$ac_cv_prog_OBJDUMP"; then
5297 ac_ct_OBJDUMP=$OBJDUMP
5298 # Extract the first word of "objdump", so it can be a program name with args.
5299 set dummy objdump; ac_word=$2
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5301 $as_echo_n "checking for $ac_word... " >&6; }
5302 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5303 $as_echo_n "(cached) " >&6
5305 if test -n "$ac_ct_OBJDUMP"; then
5306 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5312 test -z "$as_dir" && as_dir=.
5313 for ac_exec_ext in '' $ac_executable_extensions; do
5314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5315 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5325 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5326 if test -n "$ac_ct_OBJDUMP"; then
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5328 $as_echo "$ac_ct_OBJDUMP" >&6; }
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5331 $as_echo "no" >&6; }
5334 if test "x$ac_ct_OBJDUMP" = x; then
5337 case $cross_compiling:$ac_tool_warned in
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5340 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5341 ac_tool_warned=yes ;;
5343 OBJDUMP=$ac_ct_OBJDUMP
5346 OBJDUMP="$ac_cv_prog_OBJDUMP"
5349 test -z "$OBJDUMP" && OBJDUMP=objdump
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5360 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5361 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5362 $as_echo_n "(cached) " >&6
5364 lt_cv_file_magic_cmd='$MAGIC_CMD'
5365 lt_cv_file_magic_test_file=
5366 lt_cv_deplibs_check_method='unknown'
5367 # Need to set the preceding variable on all platforms that support
5368 # interlibrary dependencies.
5369 # 'none' -- dependencies not supported.
5370 # `unknown' -- same as none, but documents that we really don't know.
5371 # 'pass_all' -- all dependencies passed with no checks.
5372 # 'test_compile' -- check by making test program.
5373 # 'file_magic [[regex]]' -- check by looking for files in library path
5374 # which responds to the $file_magic_cmd with a given extended regex.
5375 # If you have `file' or equivalent on your system and you're not sure
5376 # whether `pass_all' will *always* work, you probably want this one.
5380 lt_cv_deplibs_check_method=pass_all
5384 lt_cv_deplibs_check_method=pass_all
5388 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5389 lt_cv_file_magic_cmd='/usr/bin/file -L'
5390 lt_cv_file_magic_test_file=/shlib/libc.so
5394 # func_win32_libid is a shell function defined in ltmain.sh
5395 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5396 lt_cv_file_magic_cmd='func_win32_libid'
5400 # Base MSYS/MinGW do not provide the 'file' command needed by
5401 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5402 # unless we find 'file', for example because we are cross-compiling.
5403 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5404 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5405 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5406 lt_cv_file_magic_cmd='func_win32_libid'
5408 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5409 lt_cv_file_magic_cmd='$OBJDUMP -f'
5414 # use the weaker test based on 'objdump'. See mingw*.
5415 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5416 lt_cv_file_magic_cmd='$OBJDUMP -f'
5419 darwin* | rhapsody*)
5420 lt_cv_deplibs_check_method=pass_all
5423 freebsd* | dragonfly*)
5424 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5427 # Not sure whether the presence of OpenBSD here was a mistake.
5428 # Let's accept both of them until this is cleared up.
5429 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5430 lt_cv_file_magic_cmd=/usr/bin/file
5431 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5435 lt_cv_deplibs_check_method=pass_all
5440 lt_cv_deplibs_check_method=pass_all
5444 lt_cv_deplibs_check_method=pass_all
5447 hpux10.20* | hpux11*)
5448 lt_cv_file_magic_cmd=/usr/bin/file
5451 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5452 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5455 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]'
5456 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5459 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5460 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5466 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5467 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5470 irix5* | irix6* | nonstopux*)
5472 *-32|*"-32 ") libmagic=32-bit;;
5473 *-n32|*"-n32 ") libmagic=N32;;
5474 *-64|*"-64 ") libmagic=64-bit;;
5475 *) libmagic=never-match;;
5477 lt_cv_deplibs_check_method=pass_all
5480 # This must be Linux ELF.
5481 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5482 lt_cv_deplibs_check_method=pass_all
5486 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5487 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5489 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5494 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5495 lt_cv_file_magic_cmd=/usr/bin/file
5496 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5500 lt_cv_deplibs_check_method=pass_all
5504 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5505 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5507 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5511 osf3* | osf4* | osf5*)
5512 lt_cv_deplibs_check_method=pass_all
5516 lt_cv_deplibs_check_method=pass_all
5520 lt_cv_deplibs_check_method=pass_all
5523 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5524 lt_cv_deplibs_check_method=pass_all
5528 case $host_vendor in
5530 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]'
5531 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5534 lt_cv_deplibs_check_method=pass_all
5537 lt_cv_file_magic_cmd='/bin/file'
5538 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5541 lt_cv_file_magic_cmd='/bin/file'
5542 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5543 lt_cv_file_magic_test_file=/lib/libc.so
5546 lt_cv_deplibs_check_method=pass_all
5549 lt_cv_deplibs_check_method=pass_all
5555 lt_cv_deplibs_check_method=pass_all
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5561 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5562 file_magic_cmd=$lt_cv_file_magic_cmd
5563 deplibs_check_method=$lt_cv_deplibs_check_method
5564 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5577 if test -n "$ac_tool_prefix"; then
5578 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5579 set dummy ${ac_tool_prefix}ar; ac_word=$2
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5581 $as_echo_n "checking for $ac_word... " >&6; }
5582 if test "${ac_cv_prog_AR+set}" = set; then :
5583 $as_echo_n "(cached) " >&6
5585 if test -n "$AR"; then
5586 ac_cv_prog_AR="$AR" # Let the user override the test.
5588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5592 test -z "$as_dir" && as_dir=.
5593 for ac_exec_ext in '' $ac_executable_extensions; do
5594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5595 ac_cv_prog_AR="${ac_tool_prefix}ar"
5596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5606 if test -n "$AR"; then
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5608 $as_echo "$AR" >&6; }
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5611 $as_echo "no" >&6; }
5616 if test -z "$ac_cv_prog_AR"; then
5618 # Extract the first word of "ar", so it can be a program name with args.
5619 set dummy ar; ac_word=$2
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5621 $as_echo_n "checking for $ac_word... " >&6; }
5622 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5623 $as_echo_n "(cached) " >&6
5625 if test -n "$ac_ct_AR"; then
5626 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5632 test -z "$as_dir" && as_dir=.
5633 for ac_exec_ext in '' $ac_executable_extensions; do
5634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5635 ac_cv_prog_ac_ct_AR="ar"
5636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5645 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5646 if test -n "$ac_ct_AR"; then
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5648 $as_echo "$ac_ct_AR" >&6; }
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5651 $as_echo "no" >&6; }
5654 if test "x$ac_ct_AR" = x; then
5657 case $cross_compiling:$ac_tool_warned in
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5661 ac_tool_warned=yes ;;
5669 test -z "$AR" && AR=ar
5670 test -z "$AR_FLAGS" && AR_FLAGS=cru
5682 if test -n "$ac_tool_prefix"; then
5683 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5684 set dummy ${ac_tool_prefix}strip; ac_word=$2
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5686 $as_echo_n "checking for $ac_word... " >&6; }
5687 if test "${ac_cv_prog_STRIP+set}" = set; then :
5688 $as_echo_n "(cached) " >&6
5690 if test -n "$STRIP"; then
5691 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5697 test -z "$as_dir" && as_dir=.
5698 for ac_exec_ext in '' $ac_executable_extensions; do
5699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5700 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5710 STRIP=$ac_cv_prog_STRIP
5711 if test -n "$STRIP"; then
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5713 $as_echo "$STRIP" >&6; }
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5716 $as_echo "no" >&6; }
5721 if test -z "$ac_cv_prog_STRIP"; then
5723 # Extract the first word of "strip", so it can be a program name with args.
5724 set dummy strip; ac_word=$2
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5726 $as_echo_n "checking for $ac_word... " >&6; }
5727 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5728 $as_echo_n "(cached) " >&6
5730 if test -n "$ac_ct_STRIP"; then
5731 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737 test -z "$as_dir" && as_dir=.
5738 for ac_exec_ext in '' $ac_executable_extensions; do
5739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5740 ac_cv_prog_ac_ct_STRIP="strip"
5741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5750 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5751 if test -n "$ac_ct_STRIP"; then
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5753 $as_echo "$ac_ct_STRIP" >&6; }
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5756 $as_echo "no" >&6; }
5759 if test "x$ac_ct_STRIP" = x; then
5762 case $cross_compiling:$ac_tool_warned in
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5766 ac_tool_warned=yes ;;
5771 STRIP="$ac_cv_prog_STRIP"
5774 test -z "$STRIP" && STRIP=:
5781 if test -n "$ac_tool_prefix"; then
5782 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5783 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5785 $as_echo_n "checking for $ac_word... " >&6; }
5786 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5787 $as_echo_n "(cached) " >&6
5789 if test -n "$RANLIB"; then
5790 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5796 test -z "$as_dir" && as_dir=.
5797 for ac_exec_ext in '' $ac_executable_extensions; do
5798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5799 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5809 RANLIB=$ac_cv_prog_RANLIB
5810 if test -n "$RANLIB"; then
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5812 $as_echo "$RANLIB" >&6; }
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5815 $as_echo "no" >&6; }
5820 if test -z "$ac_cv_prog_RANLIB"; then
5821 ac_ct_RANLIB=$RANLIB
5822 # Extract the first word of "ranlib", so it can be a program name with args.
5823 set dummy ranlib; ac_word=$2
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5825 $as_echo_n "checking for $ac_word... " >&6; }
5826 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5827 $as_echo_n "(cached) " >&6
5829 if test -n "$ac_ct_RANLIB"; then
5830 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5836 test -z "$as_dir" && as_dir=.
5837 for ac_exec_ext in '' $ac_executable_extensions; do
5838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5839 ac_cv_prog_ac_ct_RANLIB="ranlib"
5840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5849 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5850 if test -n "$ac_ct_RANLIB"; then
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5852 $as_echo "$ac_ct_RANLIB" >&6; }
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5855 $as_echo "no" >&6; }
5858 if test "x$ac_ct_RANLIB" = x; then
5861 case $cross_compiling:$ac_tool_warned in
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5865 ac_tool_warned=yes ;;
5867 RANLIB=$ac_ct_RANLIB
5870 RANLIB="$ac_cv_prog_RANLIB"
5873 test -z "$RANLIB" && RANLIB=:
5880 # Determine commands to create old-style static archives.
5881 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5882 old_postinstall_cmds='chmod 644 $oldlib'
5883 old_postuninstall_cmds=
5885 if test -n "$RANLIB"; then
5888 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5891 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5894 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5899 lock_old_archive_extraction=yes ;;
5901 lock_old_archive_extraction=no ;;
5942 # If no C compiler was specified, use CC.
5945 # If no C compiler flags were specified, use CFLAGS.
5946 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5948 # Allow CC to be a program name with arguments.
5952 # Check for command to grab the raw symbol name followed by C symbol from nm.
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5954 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5955 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5956 $as_echo_n "(cached) " >&6
5959 # These are sane defaults that work on at least a few old systems.
5960 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5962 # Character class describing NM global symbol codes.
5963 symcode='[BCDEGRST]'
5965 # Regexp to match symbols that can be accessed directly from C.
5966 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5968 # Define system-specific variables.
5973 cygwin* | mingw* | pw32* | cegcc*)
5974 symcode='[ABCDGISTW]'
5977 if test "$host_cpu" = ia64; then
5978 symcode='[ABCDEGRST]'
5982 symcode='[BCDEGRST]'
5985 symcode='[BCDEGQRST]'
5996 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6004 # If we're using GNU nm, then use its standard symbol codes.
6005 case `$NM -V 2>&1` in
6006 *GNU* | *'with BFD'*)
6007 symcode='[ABCDGIRSTW]' ;;
6010 # Transform an extracted symbol line into a proper C declaration.
6011 # Some systems (esp. on ia64) link data and code symbols differently,
6012 # so use this general approach.
6013 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6015 # Transform an extracted symbol line into symbol name and symbol address
6016 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6017 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'"
6019 # Handle CRLF in mingw tool chain
6023 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6027 # Try without a prefix underscore, then with it.
6028 for ac_symprfx in "" "_"; do
6030 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6031 symxfrm="\\1 $ac_symprfx\\2 \\2"
6033 # Write the raw and C identifiers.
6034 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6035 # Fake it for dumpbin and say T for any non-static function
6036 # and D for any global variable.
6037 # Also find C++ and __fastcall symbols from MSVC++,
6038 # which start with @ or ?.
6039 lt_cv_sys_global_symbol_pipe="$AWK '"\
6040 " {last_section=section; section=\$ 3};"\
6041 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6042 " \$ 0!~/External *\|/{next};"\
6043 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6044 " {if(hide[section]) next};"\
6045 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6046 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6047 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6048 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6049 " ' prfx=^$ac_symprfx"
6051 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6054 # Check to see that the pipe works correctly.
6058 cat > conftest.$ac_ext <<_LT_EOF
6063 void nm_test_func(void);
6064 void nm_test_func(void){}
6068 int main(){nm_test_var='a';nm_test_func();return(0);}
6071 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6072 (eval $ac_compile) 2>&5
6074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6075 test $ac_status = 0; }; then
6076 # Now try to grab the symbols.
6078 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6079 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6082 test $ac_status = 0; } && test -s "$nlist"; then
6083 # Try sorting and uniquifying the output.
6084 if sort "$nlist" | uniq > "$nlist"T; then
6085 mv -f "$nlist"T "$nlist"
6090 # Make sure that we snagged all the symbols we need.
6091 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6092 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6093 cat <<_LT_EOF > conftest.$ac_ext
6099 # Now generate the symbol file.
6100 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6102 cat <<_LT_EOF >> conftest.$ac_ext
6104 /* The mapping between symbol names and symbols. */
6109 lt__PROGRAM__LTX_preloaded_symbols[] =
6111 { "@PROGRAM@", (void *) 0 },
6113 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6114 cat <<\_LT_EOF >> conftest.$ac_ext
6118 /* This works around a problem in FreeBSD linker */
6119 #ifdef FREEBSD_WORKAROUND
6120 static const void *lt_preloaded_setup() {
6121 return lt__PROGRAM__LTX_preloaded_symbols;
6129 # Now try linking the two files.
6130 mv conftest.$ac_objext conftstm.$ac_objext
6131 lt_save_LIBS="$LIBS"
6132 lt_save_CFLAGS="$CFLAGS"
6133 LIBS="conftstm.$ac_objext"
6134 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6135 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6136 (eval $ac_link) 2>&5
6138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6139 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6142 LIBS="$lt_save_LIBS"
6143 CFLAGS="$lt_save_CFLAGS"
6145 echo "cannot find nm_test_func in $nlist" >&5
6148 echo "cannot find nm_test_var in $nlist" >&5
6151 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6154 echo "$progname: failed program was:" >&5
6155 cat conftest.$ac_ext >&5
6157 rm -rf conftest* conftst*
6159 # Do not use the global_symbol_pipe unless it works.
6160 if test "$pipe_works" = yes; then
6163 lt_cv_sys_global_symbol_pipe=
6169 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6170 lt_cv_sys_global_symbol_to_cdecl=
6172 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6174 $as_echo "failed" >&6; }
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6177 $as_echo "ok" >&6; }
6202 # Check whether --enable-libtool-lock was given.
6203 if test "${enable_libtool_lock+set}" = set; then :
6204 enableval=$enable_libtool_lock;
6207 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6209 # Some flags need to be propagated to the compiler or linker for good
6213 # Find out which ABI we are using.
6214 echo 'int i;' > conftest.$ac_ext
6215 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6216 (eval $ac_compile) 2>&5
6218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6219 test $ac_status = 0; }; then
6220 case `/usr/bin/file conftest.$ac_objext` in
6232 # Find out which ABI we are using.
6233 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6234 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6235 (eval $ac_compile) 2>&5
6237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6238 test $ac_status = 0; }; then
6239 if test "$lt_cv_prog_gnu_ld" = yes; then
6240 case `/usr/bin/file conftest.$ac_objext` in
6242 LD="${LD-ld} -melf32bsmip"
6245 LD="${LD-ld} -melf32bmipn32"
6248 LD="${LD-ld} -melf64bmip"
6252 case `/usr/bin/file conftest.$ac_objext` in
6268 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6269 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6270 # Find out which ABI we are using.
6271 echo 'int i;' > conftest.$ac_ext
6272 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6273 (eval $ac_compile) 2>&5
6275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6276 test $ac_status = 0; }; then
6277 case `/usr/bin/file conftest.o` in
6280 x86_64-*kfreebsd*-gnu)
6281 LD="${LD-ld} -m elf_i386_fbsd"
6284 LD="${LD-ld} -m elf_i386"
6286 ppc64-*linux*|powerpc64-*linux*)
6287 LD="${LD-ld} -m elf32ppclinux"
6290 LD="${LD-ld} -m elf_s390"
6293 LD="${LD-ld} -m elf32_sparc"
6299 x86_64-*kfreebsd*-gnu)
6300 LD="${LD-ld} -m elf_x86_64_fbsd"
6303 LD="${LD-ld} -m elf_x86_64"
6305 ppc*-*linux*|powerpc*-*linux*)
6306 LD="${LD-ld} -m elf64ppc"
6308 s390*-*linux*|s390*-*tpf*)
6309 LD="${LD-ld} -m elf64_s390"
6312 LD="${LD-ld} -m elf64_sparc"
6322 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6323 SAVE_CFLAGS="$CFLAGS"
6324 CFLAGS="$CFLAGS -belf"
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6326 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6327 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6328 $as_echo_n "(cached) " >&6
6331 ac_cpp='$CPP $CPPFLAGS'
6332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6337 /* end confdefs.h. */
6347 if ac_fn_c_try_link "$LINENO"; then :
6348 lt_cv_cc_needs_belf=yes
6350 lt_cv_cc_needs_belf=no
6352 rm -f core conftest.err conftest.$ac_objext \
6353 conftest$ac_exeext conftest.$ac_ext
6355 ac_cpp='$CPP $CPPFLAGS'
6356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6362 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6363 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6364 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6365 CFLAGS="$SAVE_CFLAGS"
6369 # Find out which ABI we are using.
6370 echo 'int i;' > conftest.$ac_ext
6371 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6372 (eval $ac_compile) 2>&5
6374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6375 test $ac_status = 0; }; then
6376 case `/usr/bin/file conftest.o` in
6378 case $lt_cv_prog_gnu_ld in
6379 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6381 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6393 need_locks="$enable_libtool_lock"
6397 rhapsody* | darwin*)
6398 if test -n "$ac_tool_prefix"; then
6399 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6400 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6402 $as_echo_n "checking for $ac_word... " >&6; }
6403 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6404 $as_echo_n "(cached) " >&6
6406 if test -n "$DSYMUTIL"; then
6407 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6413 test -z "$as_dir" && as_dir=.
6414 for ac_exec_ext in '' $ac_executable_extensions; do
6415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6416 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6426 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6427 if test -n "$DSYMUTIL"; then
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6429 $as_echo "$DSYMUTIL" >&6; }
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6432 $as_echo "no" >&6; }
6437 if test -z "$ac_cv_prog_DSYMUTIL"; then
6438 ac_ct_DSYMUTIL=$DSYMUTIL
6439 # Extract the first word of "dsymutil", so it can be a program name with args.
6440 set dummy dsymutil; ac_word=$2
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6442 $as_echo_n "checking for $ac_word... " >&6; }
6443 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6444 $as_echo_n "(cached) " >&6
6446 if test -n "$ac_ct_DSYMUTIL"; then
6447 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453 test -z "$as_dir" && as_dir=.
6454 for ac_exec_ext in '' $ac_executable_extensions; do
6455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6456 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6466 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6467 if test -n "$ac_ct_DSYMUTIL"; then
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6469 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6472 $as_echo "no" >&6; }
6475 if test "x$ac_ct_DSYMUTIL" = x; then
6478 case $cross_compiling:$ac_tool_warned in
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6482 ac_tool_warned=yes ;;
6484 DSYMUTIL=$ac_ct_DSYMUTIL
6487 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6490 if test -n "$ac_tool_prefix"; then
6491 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6492 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6494 $as_echo_n "checking for $ac_word... " >&6; }
6495 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6496 $as_echo_n "(cached) " >&6
6498 if test -n "$NMEDIT"; then
6499 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6505 test -z "$as_dir" && as_dir=.
6506 for ac_exec_ext in '' $ac_executable_extensions; do
6507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6508 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6518 NMEDIT=$ac_cv_prog_NMEDIT
6519 if test -n "$NMEDIT"; then
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6521 $as_echo "$NMEDIT" >&6; }
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6524 $as_echo "no" >&6; }
6529 if test -z "$ac_cv_prog_NMEDIT"; then
6530 ac_ct_NMEDIT=$NMEDIT
6531 # Extract the first word of "nmedit", so it can be a program name with args.
6532 set dummy nmedit; ac_word=$2
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6534 $as_echo_n "checking for $ac_word... " >&6; }
6535 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6536 $as_echo_n "(cached) " >&6
6538 if test -n "$ac_ct_NMEDIT"; then
6539 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6545 test -z "$as_dir" && as_dir=.
6546 for ac_exec_ext in '' $ac_executable_extensions; do
6547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6548 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6558 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6559 if test -n "$ac_ct_NMEDIT"; then
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6561 $as_echo "$ac_ct_NMEDIT" >&6; }
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6564 $as_echo "no" >&6; }
6567 if test "x$ac_ct_NMEDIT" = x; then
6570 case $cross_compiling:$ac_tool_warned in
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6574 ac_tool_warned=yes ;;
6576 NMEDIT=$ac_ct_NMEDIT
6579 NMEDIT="$ac_cv_prog_NMEDIT"
6582 if test -n "$ac_tool_prefix"; then
6583 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6584 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6586 $as_echo_n "checking for $ac_word... " >&6; }
6587 if test "${ac_cv_prog_LIPO+set}" = set; then :
6588 $as_echo_n "(cached) " >&6
6590 if test -n "$LIPO"; then
6591 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6597 test -z "$as_dir" && as_dir=.
6598 for ac_exec_ext in '' $ac_executable_extensions; do
6599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6600 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6610 LIPO=$ac_cv_prog_LIPO
6611 if test -n "$LIPO"; then
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6613 $as_echo "$LIPO" >&6; }
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6616 $as_echo "no" >&6; }
6621 if test -z "$ac_cv_prog_LIPO"; then
6623 # Extract the first word of "lipo", so it can be a program name with args.
6624 set dummy lipo; ac_word=$2
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6626 $as_echo_n "checking for $ac_word... " >&6; }
6627 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6628 $as_echo_n "(cached) " >&6
6630 if test -n "$ac_ct_LIPO"; then
6631 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6637 test -z "$as_dir" && as_dir=.
6638 for ac_exec_ext in '' $ac_executable_extensions; do
6639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6640 ac_cv_prog_ac_ct_LIPO="lipo"
6641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6650 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6651 if test -n "$ac_ct_LIPO"; then
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6653 $as_echo "$ac_ct_LIPO" >&6; }
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6656 $as_echo "no" >&6; }
6659 if test "x$ac_ct_LIPO" = x; then
6662 case $cross_compiling:$ac_tool_warned in
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6666 ac_tool_warned=yes ;;
6671 LIPO="$ac_cv_prog_LIPO"
6674 if test -n "$ac_tool_prefix"; then
6675 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6676 set dummy ${ac_tool_prefix}otool; ac_word=$2
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6678 $as_echo_n "checking for $ac_word... " >&6; }
6679 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6680 $as_echo_n "(cached) " >&6
6682 if test -n "$OTOOL"; then
6683 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6689 test -z "$as_dir" && as_dir=.
6690 for ac_exec_ext in '' $ac_executable_extensions; do
6691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6692 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6702 OTOOL=$ac_cv_prog_OTOOL
6703 if test -n "$OTOOL"; then
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6705 $as_echo "$OTOOL" >&6; }
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6708 $as_echo "no" >&6; }
6713 if test -z "$ac_cv_prog_OTOOL"; then
6715 # Extract the first word of "otool", so it can be a program name with args.
6716 set dummy otool; ac_word=$2
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6718 $as_echo_n "checking for $ac_word... " >&6; }
6719 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6720 $as_echo_n "(cached) " >&6
6722 if test -n "$ac_ct_OTOOL"; then
6723 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729 test -z "$as_dir" && as_dir=.
6730 for ac_exec_ext in '' $ac_executable_extensions; do
6731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6732 ac_cv_prog_ac_ct_OTOOL="otool"
6733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6742 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6743 if test -n "$ac_ct_OTOOL"; then
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6745 $as_echo "$ac_ct_OTOOL" >&6; }
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6748 $as_echo "no" >&6; }
6751 if test "x$ac_ct_OTOOL" = x; then
6754 case $cross_compiling:$ac_tool_warned in
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6758 ac_tool_warned=yes ;;
6763 OTOOL="$ac_cv_prog_OTOOL"
6766 if test -n "$ac_tool_prefix"; then
6767 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6768 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6770 $as_echo_n "checking for $ac_word... " >&6; }
6771 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6772 $as_echo_n "(cached) " >&6
6774 if test -n "$OTOOL64"; then
6775 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781 test -z "$as_dir" && as_dir=.
6782 for ac_exec_ext in '' $ac_executable_extensions; do
6783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6784 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6794 OTOOL64=$ac_cv_prog_OTOOL64
6795 if test -n "$OTOOL64"; then
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6797 $as_echo "$OTOOL64" >&6; }
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6800 $as_echo "no" >&6; }
6805 if test -z "$ac_cv_prog_OTOOL64"; then
6806 ac_ct_OTOOL64=$OTOOL64
6807 # Extract the first word of "otool64", so it can be a program name with args.
6808 set dummy otool64; ac_word=$2
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6810 $as_echo_n "checking for $ac_word... " >&6; }
6811 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6812 $as_echo_n "(cached) " >&6
6814 if test -n "$ac_ct_OTOOL64"; then
6815 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6821 test -z "$as_dir" && as_dir=.
6822 for ac_exec_ext in '' $ac_executable_extensions; do
6823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6824 ac_cv_prog_ac_ct_OTOOL64="otool64"
6825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6834 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6835 if test -n "$ac_ct_OTOOL64"; then
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6837 $as_echo "$ac_ct_OTOOL64" >&6; }
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6840 $as_echo "no" >&6; }
6843 if test "x$ac_ct_OTOOL64" = x; then
6846 case $cross_compiling:$ac_tool_warned in
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6850 ac_tool_warned=yes ;;
6852 OTOOL64=$ac_ct_OTOOL64
6855 OTOOL64="$ac_cv_prog_OTOOL64"
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6885 $as_echo_n "checking for -single_module linker flag... " >&6; }
6886 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6887 $as_echo_n "(cached) " >&6
6889 lt_cv_apple_cc_single_mod=no
6890 if test -z "${LT_MULTI_MODULE}"; then
6891 # By default we will add the -single_module flag. You can override
6892 # by either setting the environment variable LT_MULTI_MODULE
6893 # non-empty at configure time, or by adding -multi_module to the
6895 rm -rf libconftest.dylib*
6896 echo "int foo(void){return 1;}" > conftest.c
6897 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6898 -dynamiclib -Wl,-single_module conftest.c" >&5
6899 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6900 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6902 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6903 lt_cv_apple_cc_single_mod=yes
6905 cat conftest.err >&5
6907 rm -rf libconftest.dylib*
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6912 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6914 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6915 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6916 $as_echo_n "(cached) " >&6
6918 lt_cv_ld_exported_symbols_list=no
6919 save_LDFLAGS=$LDFLAGS
6920 echo "_main" > conftest.sym
6921 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6923 /* end confdefs.h. */
6933 if ac_fn_c_try_link "$LINENO"; then :
6934 lt_cv_ld_exported_symbols_list=yes
6936 lt_cv_ld_exported_symbols_list=no
6938 rm -f core conftest.err conftest.$ac_objext \
6939 conftest$ac_exeext conftest.$ac_ext
6940 LDFLAGS="$save_LDFLAGS"
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6944 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6946 $as_echo_n "checking for -force_load linker flag... " >&6; }
6947 if test "${lt_cv_ld_force_load+set}" = set; then :
6948 $as_echo_n "(cached) " >&6
6950 lt_cv_ld_force_load=no
6951 cat > conftest.c << _LT_EOF
6952 int forced_loaded() { return 2;}
6954 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6955 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6956 echo "$AR cru libconftest.a conftest.o" >&5
6957 $AR cru libconftest.a conftest.o 2>&5
6958 cat > conftest.c << _LT_EOF
6959 int main() { return 0;}
6961 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6962 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6964 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6965 lt_cv_ld_force_load=yes
6967 cat conftest.err >&5
6969 rm -f conftest.err libconftest.a conftest conftest.c
6970 rm -rf conftest.dSYM
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6974 $as_echo "$lt_cv_ld_force_load" >&6; }
6976 rhapsody* | darwin1.[012])
6977 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6979 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6980 darwin*) # darwin 5.x on
6981 # if running on 10.5 or later, the deployment target defaults
6982 # to the OS version, if on x86, and 10.4, the deployment
6983 # target defaults to 10.4. Don't you love it?
6984 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6985 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6986 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6988 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6990 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6994 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6995 _lt_dar_single_mod='$single_module'
6997 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6998 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7000 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7002 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7003 _lt_dsymutil='~$DSYMUTIL $lib || :'
7011 ac_cpp='$CPP $CPPFLAGS'
7012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7016 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7017 # On Suns, sometimes $CPP names a directory.
7018 if test -n "$CPP" && test -d "$CPP"; then
7021 if test -z "$CPP"; then
7022 if test "${ac_cv_prog_CPP+set}" = set; then :
7023 $as_echo_n "(cached) " >&6
7025 # Double quotes because CPP needs to be expanded
7026 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7029 for ac_c_preproc_warn_flag in '' yes
7031 # Use a header file that comes with gcc, so configuring glibc
7032 # with a fresh cross-compiler works.
7033 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7034 # <limits.h> exists even on freestanding compilers.
7035 # On the NeXT, cc -E runs the code through the compiler's parser,
7036 # not just through cpp. "Syntax error" is here to catch this case.
7037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7038 /* end confdefs.h. */
7040 # include <limits.h>
7042 # include <assert.h>
7046 if ac_fn_c_try_cpp "$LINENO"; then :
7049 # Broken: fails on valid input.
7052 rm -f conftest.err conftest.$ac_ext
7054 # OK, works on sane cases. Now check whether nonexistent headers
7055 # can be detected and how.
7056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7057 /* end confdefs.h. */
7058 #include <ac_nonexistent.h>
7060 if ac_fn_c_try_cpp "$LINENO"; then :
7061 # Broken: success on invalid input.
7064 # Passes both tests.
7068 rm -f conftest.err conftest.$ac_ext
7071 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7072 rm -f conftest.err conftest.$ac_ext
7073 if $ac_preproc_ok; then :
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7086 $as_echo "$CPP" >&6; }
7088 for ac_c_preproc_warn_flag in '' yes
7090 # Use a header file that comes with gcc, so configuring glibc
7091 # with a fresh cross-compiler works.
7092 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7093 # <limits.h> exists even on freestanding compilers.
7094 # On the NeXT, cc -E runs the code through the compiler's parser,
7095 # not just through cpp. "Syntax error" is here to catch this case.
7096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7097 /* end confdefs.h. */
7099 # include <limits.h>
7101 # include <assert.h>
7105 if ac_fn_c_try_cpp "$LINENO"; then :
7108 # Broken: fails on valid input.
7111 rm -f conftest.err conftest.$ac_ext
7113 # OK, works on sane cases. Now check whether nonexistent headers
7114 # can be detected and how.
7115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7116 /* end confdefs.h. */
7117 #include <ac_nonexistent.h>
7119 if ac_fn_c_try_cpp "$LINENO"; then :
7120 # Broken: success on invalid input.
7123 # Passes both tests.
7127 rm -f conftest.err conftest.$ac_ext
7130 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7131 rm -f conftest.err conftest.$ac_ext
7132 if $ac_preproc_ok; then :
7135 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7137 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7138 See \`config.log' for more details." "$LINENO" 5; }
7142 ac_cpp='$CPP $CPPFLAGS'
7143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7149 $as_echo_n "checking for ANSI C header files... " >&6; }
7150 if test "${ac_cv_header_stdc+set}" = set; then :
7151 $as_echo_n "(cached) " >&6
7153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7154 /* end confdefs.h. */
7168 if ac_fn_c_try_compile "$LINENO"; then :
7169 ac_cv_header_stdc=yes
7171 ac_cv_header_stdc=no
7173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7175 if test $ac_cv_header_stdc = yes; then
7176 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7178 /* end confdefs.h. */
7182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7183 $EGREP "memchr" >/dev/null 2>&1; then :
7186 ac_cv_header_stdc=no
7192 if test $ac_cv_header_stdc = yes; then
7193 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7195 /* end confdefs.h. */
7199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7200 $EGREP "free" >/dev/null 2>&1; then :
7203 ac_cv_header_stdc=no
7209 if test $ac_cv_header_stdc = yes; then
7210 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7211 if test "$cross_compiling" = yes; then :
7214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7215 /* end confdefs.h. */
7218 #if ((' ' & 0x0FF) == 0x020)
7219 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7220 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7222 # define ISLOWER(c) \
7223 (('a' <= (c) && (c) <= 'i') \
7224 || ('j' <= (c) && (c) <= 'r') \
7225 || ('s' <= (c) && (c) <= 'z'))
7226 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7229 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7234 for (i = 0; i < 256; i++)
7235 if (XOR (islower (i), ISLOWER (i))
7236 || toupper (i) != TOUPPER (i))
7241 if ac_fn_c_try_run "$LINENO"; then :
7244 ac_cv_header_stdc=no
7246 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7247 conftest.$ac_objext conftest.beam conftest.$ac_ext
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7253 $as_echo "$ac_cv_header_stdc" >&6; }
7254 if test $ac_cv_header_stdc = yes; then
7256 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7260 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7261 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7262 inttypes.h stdint.h unistd.h
7264 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7265 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7267 eval as_val=\$$as_ac_Header
7268 if test "x$as_val" = x""yes; then :
7269 cat >>confdefs.h <<_ACEOF
7270 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7278 for ac_header in dlfcn.h
7280 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7282 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7283 cat >>confdefs.h <<_ACEOF
7284 #define HAVE_DLFCN_H 1
7305 # Check whether --enable-shared was given.
7306 if test "${enable_shared+set}" = set; then :
7307 enableval=$enable_shared; p=${PACKAGE-default}
7309 yes) enable_shared=yes ;;
7310 no) enable_shared=no ;;
7313 # Look at the argument we got. We use all the common list separators.
7314 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7315 for pkg in $enableval; do
7317 if test "X$pkg" = "X$p"; then
7336 # Check whether --enable-static was given.
7337 if test "${enable_static+set}" = set; then :
7338 enableval=$enable_static; p=${PACKAGE-default}
7340 yes) enable_static=yes ;;
7341 no) enable_static=no ;;
7344 # Look at the argument we got. We use all the common list separators.
7345 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7346 for pkg in $enableval; do
7348 if test "X$pkg" = "X$p"; then
7368 # Check whether --with-pic was given.
7369 if test "${with_pic+set}" = set; then :
7370 withval=$with_pic; pic_mode="$withval"
7376 test -z "$pic_mode" && pic_mode=default
7384 # Check whether --enable-fast-install was given.
7385 if test "${enable_fast_install+set}" = set; then :
7386 enableval=$enable_fast_install; p=${PACKAGE-default}
7388 yes) enable_fast_install=yes ;;
7389 no) enable_fast_install=no ;;
7391 enable_fast_install=no
7392 # Look at the argument we got. We use all the common list separators.
7393 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7394 for pkg in $enableval; do
7396 if test "X$pkg" = "X$p"; then
7397 enable_fast_install=yes
7404 enable_fast_install=yes
7417 # This can be used to rebuild libtool when needed
7418 LIBTOOL_DEPS="$ltmain"
7420 # Always use our own libtool.
7421 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7448 test -z "$LN_S" && LN_S="ln -s"
7463 if test -n "${ZSH_VERSION+set}" ; then
7464 setopt NO_GLOB_SUBST
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7468 $as_echo_n "checking for objdir... " >&6; }
7469 if test "${lt_cv_objdir+set}" = set; then :
7470 $as_echo_n "(cached) " >&6
7472 rm -f .libs 2>/dev/null
7473 mkdir .libs 2>/dev/null
7474 if test -d .libs; then
7477 # MS-DOS does not allow filenames that begin with a dot.
7480 rmdir .libs 2>/dev/null
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7483 $as_echo "$lt_cv_objdir" >&6; }
7484 objdir=$lt_cv_objdir
7490 cat >>confdefs.h <<_ACEOF
7491 #define LT_OBJDIR "$lt_cv_objdir/"
7499 # AIX sometimes has problems with the GCC collect2 program. For some
7500 # reason, if we set the COLLECT_NAMES environment variable, the problems
7501 # vanish in a puff of smoke.
7502 if test "X${COLLECT_NAMES+set}" != Xset; then
7504 export COLLECT_NAMES
7511 can_build_shared=yes
7513 # All known linkers require a `.a' archive for static linking (except MSVC,
7514 # which needs '.lib').
7517 with_gnu_ld="$lt_cv_prog_gnu_ld"
7520 old_CFLAGS="$CFLAGS"
7522 # Set sane defaults for various variables
7523 test -z "$CC" && CC=cc
7524 test -z "$LTCC" && LTCC=$CC
7525 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7526 test -z "$LD" && LD=ld
7527 test -z "$ac_objext" && ac_objext=o
7529 for cc_temp in $compiler""; do
7531 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7532 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7537 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7540 # Only perform the check for file, if the check method requires it
7541 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7542 case $deplibs_check_method in
7544 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7546 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7547 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7548 $as_echo_n "(cached) " >&6
7552 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7555 lt_save_MAGIC_CMD="$MAGIC_CMD"
7556 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7557 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7558 for ac_dir in $ac_dummy; do
7560 test -z "$ac_dir" && ac_dir=.
7561 if test -f $ac_dir/${ac_tool_prefix}file; then
7562 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7563 if test -n "$file_magic_test_file"; then
7564 case $deplibs_check_method in
7566 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7567 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7568 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7569 $EGREP "$file_magic_regex" > /dev/null; then
7574 *** Warning: the command libtool uses to detect shared libraries,
7575 *** $file_magic_cmd, produces output that libtool cannot recognize.
7576 *** The result is that libtool may fail to recognize shared libraries
7577 *** as such. This will affect the creation of libtool libraries that
7578 *** depend on shared libraries, but programs linked with such libtool
7579 *** libraries will work regardless of this problem. Nevertheless, you
7580 *** may want to report the problem to your system manager and/or to
7581 *** bug-libtool@gnu.org
7591 MAGIC_CMD="$lt_save_MAGIC_CMD"
7596 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7597 if test -n "$MAGIC_CMD"; then
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7599 $as_echo "$MAGIC_CMD" >&6; }
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7602 $as_echo "no" >&6; }
7609 if test -z "$lt_cv_path_MAGIC_CMD"; then
7610 if test -n "$ac_tool_prefix"; then
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7612 $as_echo_n "checking for file... " >&6; }
7613 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7614 $as_echo_n "(cached) " >&6
7618 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7621 lt_save_MAGIC_CMD="$MAGIC_CMD"
7622 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7623 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7624 for ac_dir in $ac_dummy; do
7626 test -z "$ac_dir" && ac_dir=.
7627 if test -f $ac_dir/file; then
7628 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7629 if test -n "$file_magic_test_file"; then
7630 case $deplibs_check_method in
7632 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7633 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7634 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7635 $EGREP "$file_magic_regex" > /dev/null; then
7640 *** Warning: the command libtool uses to detect shared libraries,
7641 *** $file_magic_cmd, produces output that libtool cannot recognize.
7642 *** The result is that libtool may fail to recognize shared libraries
7643 *** as such. This will affect the creation of libtool libraries that
7644 *** depend on shared libraries, but programs linked with such libtool
7645 *** libraries will work regardless of this problem. Nevertheless, you
7646 *** may want to report the problem to your system manager and/or to
7647 *** bug-libtool@gnu.org
7657 MAGIC_CMD="$lt_save_MAGIC_CMD"
7662 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7663 if test -n "$MAGIC_CMD"; then
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7665 $as_echo "$MAGIC_CMD" >&6; }
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7668 $as_echo "no" >&6; }
7681 # Use C for the default configuration in the libtool script
7685 ac_cpp='$CPP $CPPFLAGS'
7686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7691 # Source file extension for C test sources.
7694 # Object file extension for compiled C test sources.
7698 # Code to be used in simple compile tests
7699 lt_simple_compile_test_code="int some_variable = 0;"
7701 # Code to be used in simple link tests
7702 lt_simple_link_test_code='int main(){return(0);}'
7710 # If no C compiler was specified, use CC.
7713 # If no C compiler flags were specified, use CFLAGS.
7714 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7716 # Allow CC to be a program name with arguments.
7719 # Save the default compiler, since it gets overwritten when the other
7720 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7721 compiler_DEFAULT=$CC
7723 # save warnings/boilerplate of simple test code
7724 ac_outfile=conftest.$ac_objext
7725 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7726 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7727 _lt_compiler_boilerplate=`cat conftest.err`
7730 ac_outfile=conftest.$ac_objext
7731 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7732 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7733 _lt_linker_boilerplate=`cat conftest.err`
7738 ## There is no encapsulation within the following macros, do not change
7739 ## the running order or otherwise move them around unless you know exactly
7740 ## what you are doing...
7741 if test -n "$compiler"; then
7743 lt_prog_compiler_no_builtin_flag=
7745 if test "$GCC" = yes; then
7746 case $cc_basename in
7748 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7750 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7754 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7755 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7756 $as_echo_n "(cached) " >&6
7758 lt_cv_prog_compiler_rtti_exceptions=no
7759 ac_outfile=conftest.$ac_objext
7760 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7761 lt_compiler_flag="-fno-rtti -fno-exceptions"
7762 # Insert the option either (1) after the last *FLAGS variable, or
7763 # (2) before a word containing "conftest.", or (3) at the end.
7764 # Note that $ac_compile itself does not contain backslashes and begins
7765 # with a dollar sign (not a hyphen), so the echo should work correctly.
7766 # The option is referenced via a variable to avoid confusing sed.
7767 lt_compile=`echo "$ac_compile" | $SED \
7768 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7769 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7770 -e 's:$: $lt_compiler_flag:'`
7771 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7772 (eval "$lt_compile" 2>conftest.err)
7774 cat conftest.err >&5
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 if (exit $ac_status) && test -s "$ac_outfile"; then
7777 # The compiler can only warn and ignore the option if not recognized
7778 # So say no if there are warnings other than the usual output.
7779 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7780 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7781 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7782 lt_cv_prog_compiler_rtti_exceptions=yes
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7789 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7791 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7792 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7804 lt_prog_compiler_wl=
7805 lt_prog_compiler_pic=
7806 lt_prog_compiler_static=
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7809 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7811 if test "$GCC" = yes; then
7812 lt_prog_compiler_wl='-Wl,'
7813 lt_prog_compiler_static='-static'
7817 # All AIX code is PIC.
7818 if test "$host_cpu" = ia64; then
7819 # AIX 5 now supports IA64 processor
7820 lt_prog_compiler_static='-Bstatic'
7827 # see comment about AmigaOS4 .so support
7828 lt_prog_compiler_pic='-fPIC'
7831 # FIXME: we need at least 68020 code to build shared libraries, but
7832 # adding the `-m68020' flag to GCC prevents building anything better,
7834 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7839 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7840 # PIC is the default for these OSes.
7843 mingw* | cygwin* | pw32* | os2* | cegcc*)
7844 # This hack is so that the source file can tell whether it is being
7845 # built for inclusion in a dll (and should export symbols for example).
7846 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7847 # (--disable-auto-import) libraries
7848 lt_prog_compiler_pic='-DDLL_EXPORT'
7851 darwin* | rhapsody*)
7852 # PIC is the default on this platform
7853 # Common symbols not allowed in MH_DYLIB files
7854 lt_prog_compiler_pic='-fno-common'
7858 # PIC is the default for Haiku.
7859 # The "-static" flag exists, but is broken.
7860 lt_prog_compiler_static=
7864 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7865 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7866 # sets the default TLS model and affects inlining.
7872 lt_prog_compiler_pic='-fPIC'
7878 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7879 # Instead, we relocate shared libraries at runtime.
7883 # Just because we use GCC doesn't mean we suddenly get shared libraries
7884 # on systems that don't support them.
7885 lt_prog_compiler_can_build_shared=no
7890 # QNX uses GNU C++, but need to define -shared option too, otherwise
7892 lt_prog_compiler_pic='-fPIC -shared'
7896 if test -d /usr/nec; then
7897 lt_prog_compiler_pic=-Kconform_pic
7902 lt_prog_compiler_pic='-fPIC'
7906 case $cc_basename in
7907 nvcc*) # Cuda Compiler Driver 2.2
7908 lt_prog_compiler_wl='-Xlinker '
7909 lt_prog_compiler_pic='-Xcompiler -fPIC'
7913 # PORTME Check for flag to pass linker flags through the system compiler.
7916 lt_prog_compiler_wl='-Wl,'
7917 if test "$host_cpu" = ia64; then
7918 # AIX 5 now supports IA64 processor
7919 lt_prog_compiler_static='-Bstatic'
7921 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7925 mingw* | cygwin* | pw32* | os2* | cegcc*)
7926 # This hack is so that the source file can tell whether it is being
7927 # built for inclusion in a dll (and should export symbols for example).
7928 lt_prog_compiler_pic='-DDLL_EXPORT'
7931 hpux9* | hpux10* | hpux11*)
7932 lt_prog_compiler_wl='-Wl,'
7933 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7940 lt_prog_compiler_pic='+Z'
7943 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7944 lt_prog_compiler_static='${wl}-a ${wl}archive'
7947 irix5* | irix6* | nonstopux*)
7948 lt_prog_compiler_wl='-Wl,'
7949 # PIC (with -KPIC) is the default.
7950 lt_prog_compiler_static='-non_shared'
7953 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7954 case $cc_basename in
7955 # old Intel for x86_64 which still supported -KPIC.
7957 lt_prog_compiler_wl='-Wl,'
7958 lt_prog_compiler_pic='-KPIC'
7959 lt_prog_compiler_static='-static'
7961 # icc used to be incompatible with GCC.
7962 # ICC 10 doesn't accept -KPIC any more.
7964 lt_prog_compiler_wl='-Wl,'
7965 lt_prog_compiler_pic='-fPIC'
7966 lt_prog_compiler_static='-static'
7968 # Lahey Fortran 8.1.
7970 lt_prog_compiler_wl='-Wl,'
7971 lt_prog_compiler_pic='--shared'
7972 lt_prog_compiler_static='--static'
7974 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7975 # Portland Group compilers (*not* the Pentium gcc compiler,
7976 # which looks to be a dead project)
7977 lt_prog_compiler_wl='-Wl,'
7978 lt_prog_compiler_pic='-fpic'
7979 lt_prog_compiler_static='-Bstatic'
7982 lt_prog_compiler_wl='-Wl,'
7983 # All Alpha code is PIC.
7984 lt_prog_compiler_static='-non_shared'
7986 xl* | bgxl* | bgf* | mpixl*)
7987 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7988 lt_prog_compiler_wl='-Wl,'
7989 lt_prog_compiler_pic='-qpic'
7990 lt_prog_compiler_static='-qstaticlink'
7993 case `$CC -V 2>&1 | sed 5q` in
7994 *Sun\ F* | *Sun*Fortran*)
7995 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7996 lt_prog_compiler_pic='-KPIC'
7997 lt_prog_compiler_static='-Bstatic'
7998 lt_prog_compiler_wl=''
8002 lt_prog_compiler_pic='-KPIC'
8003 lt_prog_compiler_static='-Bstatic'
8004 lt_prog_compiler_wl='-Wl,'
8012 lt_prog_compiler_pic='-KPIC'
8013 lt_prog_compiler_static='-Bstatic'
8017 # QNX uses GNU C++, but need to define -shared option too, otherwise
8019 lt_prog_compiler_pic='-fPIC -shared'
8022 osf3* | osf4* | osf5*)
8023 lt_prog_compiler_wl='-Wl,'
8024 # All OSF/1 code is PIC.
8025 lt_prog_compiler_static='-non_shared'
8029 lt_prog_compiler_static='-non_shared'
8033 lt_prog_compiler_pic='-KPIC'
8034 lt_prog_compiler_static='-Bstatic'
8035 case $cc_basename in
8037 lt_prog_compiler_wl='-Qoption ld ';;
8039 lt_prog_compiler_wl='-Wl,';;
8044 lt_prog_compiler_wl='-Qoption ld '
8045 lt_prog_compiler_pic='-PIC'
8046 lt_prog_compiler_static='-Bstatic'
8049 sysv4 | sysv4.2uw2* | sysv4.3*)
8050 lt_prog_compiler_wl='-Wl,'
8051 lt_prog_compiler_pic='-KPIC'
8052 lt_prog_compiler_static='-Bstatic'
8056 if test -d /usr/nec ;then
8057 lt_prog_compiler_pic='-Kconform_pic'
8058 lt_prog_compiler_static='-Bstatic'
8062 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8063 lt_prog_compiler_wl='-Wl,'
8064 lt_prog_compiler_pic='-KPIC'
8065 lt_prog_compiler_static='-Bstatic'
8069 lt_prog_compiler_wl='-Wl,'
8070 lt_prog_compiler_can_build_shared=no
8074 lt_prog_compiler_pic='-pic'
8075 lt_prog_compiler_static='-Bstatic'
8079 lt_prog_compiler_can_build_shared=no
8085 # For platforms which do not support PIC, -DPIC is meaningless:
8087 lt_prog_compiler_pic=
8090 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8094 $as_echo "$lt_prog_compiler_pic" >&6; }
8102 # Check to make sure the PIC flag actually works.
8104 if test -n "$lt_prog_compiler_pic"; then
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8106 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8107 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8108 $as_echo_n "(cached) " >&6
8110 lt_cv_prog_compiler_pic_works=no
8111 ac_outfile=conftest.$ac_objext
8112 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8113 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8114 # Insert the option either (1) after the last *FLAGS variable, or
8115 # (2) before a word containing "conftest.", or (3) at the end.
8116 # Note that $ac_compile itself does not contain backslashes and begins
8117 # with a dollar sign (not a hyphen), so the echo should work correctly.
8118 # The option is referenced via a variable to avoid confusing sed.
8119 lt_compile=`echo "$ac_compile" | $SED \
8120 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8121 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8122 -e 's:$: $lt_compiler_flag:'`
8123 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8124 (eval "$lt_compile" 2>conftest.err)
8126 cat conftest.err >&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 if (exit $ac_status) && test -s "$ac_outfile"; then
8129 # The compiler can only warn and ignore the option if not recognized
8130 # So say no if there are warnings other than the usual output.
8131 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8132 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8133 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8134 lt_cv_prog_compiler_pic_works=yes
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8141 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8143 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8144 case $lt_prog_compiler_pic in
8146 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8149 lt_prog_compiler_pic=
8150 lt_prog_compiler_can_build_shared=no
8161 # Check to make sure the static flag actually works.
8163 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8165 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8166 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8167 $as_echo_n "(cached) " >&6
8169 lt_cv_prog_compiler_static_works=no
8170 save_LDFLAGS="$LDFLAGS"
8171 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8172 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8173 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8174 # The linker can only warn and ignore the option if not recognized
8175 # So say no if there are warnings
8176 if test -s conftest.err; then
8177 # Append any errors to the config.log.
8178 cat conftest.err 1>&5
8179 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8180 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8181 if diff conftest.exp conftest.er2 >/dev/null; then
8182 lt_cv_prog_compiler_static_works=yes
8185 lt_cv_prog_compiler_static_works=yes
8189 LDFLAGS="$save_LDFLAGS"
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8193 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8195 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8198 lt_prog_compiler_static=
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8208 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8209 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8210 $as_echo_n "(cached) " >&6
8212 lt_cv_prog_compiler_c_o=no
8213 $RM -r conftest 2>/dev/null
8217 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8219 lt_compiler_flag="-o out/conftest2.$ac_objext"
8220 # Insert the option either (1) after the last *FLAGS variable, or
8221 # (2) before a word containing "conftest.", or (3) at the end.
8222 # Note that $ac_compile itself does not contain backslashes and begins
8223 # with a dollar sign (not a hyphen), so the echo should work correctly.
8224 lt_compile=`echo "$ac_compile" | $SED \
8225 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8226 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8227 -e 's:$: $lt_compiler_flag:'`
8228 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8229 (eval "$lt_compile" 2>out/conftest.err)
8231 cat out/conftest.err >&5
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8235 # The compiler can only warn and ignore the option if not recognized
8236 # So say no if there are warnings
8237 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8238 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8239 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8240 lt_cv_prog_compiler_c_o=yes
8245 # SGI C++ compiler will create directory out/ii_files/ for
8246 # template instantiation
8247 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8248 $RM out/* && rmdir out
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8255 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8263 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8264 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8265 $as_echo_n "(cached) " >&6
8267 lt_cv_prog_compiler_c_o=no
8268 $RM -r conftest 2>/dev/null
8272 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8274 lt_compiler_flag="-o out/conftest2.$ac_objext"
8275 # Insert the option either (1) after the last *FLAGS variable, or
8276 # (2) before a word containing "conftest.", or (3) at the end.
8277 # Note that $ac_compile itself does not contain backslashes and begins
8278 # with a dollar sign (not a hyphen), so the echo should work correctly.
8279 lt_compile=`echo "$ac_compile" | $SED \
8280 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8281 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8282 -e 's:$: $lt_compiler_flag:'`
8283 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8284 (eval "$lt_compile" 2>out/conftest.err)
8286 cat out/conftest.err >&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8290 # The compiler can only warn and ignore the option if not recognized
8291 # So say no if there are warnings
8292 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8293 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8294 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8295 lt_cv_prog_compiler_c_o=yes
8300 # SGI C++ compiler will create directory out/ii_files/ for
8301 # template instantiation
8302 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8303 $RM out/* && rmdir out
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8310 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8315 hard_links="nottested"
8316 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8317 # do not overwrite the value of need_locks provided by the user
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8319 $as_echo_n "checking if we can lock with hard links... " >&6; }
8322 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8324 ln conftest.a conftest.b 2>&5 || hard_links=no
8325 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8327 $as_echo "$hard_links" >&6; }
8328 if test "$hard_links" = no; then
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8330 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8343 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8346 allow_undefined_flag=
8347 always_export_symbols=no
8349 archive_expsym_cmds=
8350 compiler_needs_object=no
8351 enable_shared_with_static_runtimes=no
8352 export_dynamic_flag_spec=
8353 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8354 hardcode_automatic=no
8356 hardcode_direct_absolute=no
8357 hardcode_libdir_flag_spec=
8358 hardcode_libdir_flag_spec_ld=
8359 hardcode_libdir_separator=
8361 hardcode_shlibpath_var=unsupported
8363 link_all_deplibs=unknown
8366 old_archive_from_new_cmds=
8367 old_archive_from_expsyms_cmds=
8368 thread_safe_flag_spec=
8369 whole_archive_flag_spec=
8370 # include_expsyms should be a list of space-separated symbols to be *always*
8371 # included in the symbol list
8373 # exclude_expsyms can be an extended regexp of symbols to exclude
8374 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8375 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8376 # as well as any symbol that contains `d'.
8377 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8378 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8379 # platforms (ab)use it in PIC code, but their linkers get confused if
8380 # the symbol is explicitly referenced. Since portable code cannot
8381 # rely on this symbol name, it's probably fine to never include it in
8382 # preloaded symbol tables.
8383 # Exclude shared library initialization/finalization symbols.
8384 extract_expsyms_cmds=
8387 cygwin* | mingw* | pw32* | cegcc*)
8388 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8389 # When not using gcc, we currently assume that we are using
8390 # Microsoft Visual C++.
8391 if test "$GCC" != yes; then
8396 # we just hope/assume this is gcc and not c89 (= MSVC++)
8406 # On some targets, GNU ld is compatible enough with the native linker
8407 # that we're better off using the native interface for both.
8408 lt_use_gnu_ld_interface=no
8409 if test "$with_gnu_ld" = yes; then
8412 # The AIX port of GNU ld has always aspired to compatibility
8413 # with the native linker. However, as the warning in the GNU ld
8414 # block says, versions before 2.19.5* couldn't really create working
8415 # shared libraries, regardless of the interface used.
8416 case `$LD -v 2>&1` in
8417 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8418 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8419 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8421 lt_use_gnu_ld_interface=yes
8426 lt_use_gnu_ld_interface=yes
8431 if test "$lt_use_gnu_ld_interface" = yes; then
8432 # If archive_cmds runs LD, not CC, wlarc should be empty
8435 # Set some defaults for GNU ld with shared library support. These
8436 # are reset later if shared libraries are not supported. Putting them
8437 # here allows them to be overridden if necessary.
8438 runpath_var=LD_RUN_PATH
8439 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8440 export_dynamic_flag_spec='${wl}--export-dynamic'
8441 # ancient GNU ld didn't support --whole-archive et. al.
8442 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8443 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8445 whole_archive_flag_spec=
8447 supports_anon_versioning=no
8448 case `$LD -v 2>&1` in
8449 *GNU\ gold*) supports_anon_versioning=yes ;;
8450 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8451 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8452 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8453 *\ 2.11.*) ;; # other 2.11 versions
8454 *) supports_anon_versioning=yes ;;
8457 # See if GNU ld supports shared libraries.
8460 # On AIX/PPC, the GNU linker is very broken
8461 if test "$host_cpu" != ia64; then
8465 *** Warning: the GNU linker, at least up to release 2.19, is reported
8466 *** to be unable to reliably create shared libraries on AIX.
8467 *** Therefore, libtool is disabling shared libraries support. If you
8468 *** really care for shared libraries, you may want to install binutils
8469 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8470 *** You will then need to restart the configuration process.
8479 # see comment about AmigaOS4 .so support
8480 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8481 archive_expsym_cmds=''
8484 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)'
8485 hardcode_libdir_flag_spec='-L$libdir'
8486 hardcode_minus_L=yes
8492 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8493 allow_undefined_flag=unsupported
8494 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8495 # support --undefined. This deserves some investigation. FIXME
8496 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8502 cygwin* | mingw* | pw32* | cegcc*)
8503 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8504 # as there is no search path for DLLs.
8505 hardcode_libdir_flag_spec='-L$libdir'
8506 export_dynamic_flag_spec='${wl}--export-all-symbols'
8507 allow_undefined_flag=unsupported
8508 always_export_symbols=no
8509 enable_shared_with_static_runtimes=yes
8510 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8512 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8513 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8514 # If the export-symbols file already is a .def file (1st line
8515 # is EXPORTS), use it as is; otherwise, prepend...
8516 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8517 cp $export_symbols $output_objdir/$soname.def;
8519 echo EXPORTS > $output_objdir/$soname.def;
8520 cat $export_symbols >> $output_objdir/$soname.def;
8522 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8529 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8530 link_all_deplibs=yes
8535 hardcode_shlibpath_var=no
8536 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8537 export_dynamic_flag_spec='${wl}-E'
8538 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8539 # Instead, shared libraries are loaded at an image base (0x10000000 by
8540 # default) and relocated if they conflict, which is a slow very memory
8541 # consuming and fragmenting process. To avoid this, we pick a random,
8542 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8543 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8544 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8545 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'
8548 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8550 if test "$host_os" = linux-dietlibc; then
8551 case $cc_basename in
8552 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8555 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8556 && test "$tmp_diet" = no
8559 tmp_sharedflag='-shared'
8560 case $cc_basename,$host_cpu in
8561 pgcc*) # Portland Group C compiler
8562 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'
8563 tmp_addflag=' $pic_flag'
8565 pgf77* | pgf90* | pgf95* | pgfortran*)
8566 # Portland Group f77 and f90 compilers
8567 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'
8568 tmp_addflag=' $pic_flag -Mnomain' ;;
8569 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8570 tmp_addflag=' -i_dynamic' ;;
8571 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8572 tmp_addflag=' -i_dynamic -nofor_main' ;;
8573 ifc* | ifort*) # Intel Fortran compiler
8574 tmp_addflag=' -nofor_main' ;;
8575 lf95*) # Lahey Fortran 8.1
8576 whole_archive_flag_spec=
8577 tmp_sharedflag='--shared' ;;
8578 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8579 tmp_sharedflag='-qmkshrobj'
8581 nvcc*) # Cuda Compiler Driver 2.2
8582 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'
8583 compiler_needs_object=yes
8586 case `$CC -V 2>&1 | sed 5q` in
8587 *Sun\ C*) # Sun C 5.9
8588 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'
8589 compiler_needs_object=yes
8590 tmp_sharedflag='-G' ;;
8591 *Sun\ F*) # Sun Fortran 8.3
8592 tmp_sharedflag='-G' ;;
8594 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8596 if test "x$supports_anon_versioning" = xyes; then
8597 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8598 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8599 echo "local: *; };" >> $output_objdir/$libname.ver~
8600 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8603 case $cc_basename in
8604 xlf* | bgf* | bgxlf* | mpixlf*)
8605 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8606 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8607 hardcode_libdir_flag_spec=
8608 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8609 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8610 if test "x$supports_anon_versioning" = xyes; then
8611 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8612 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8613 echo "local: *; };" >> $output_objdir/$libname.ver~
8614 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8624 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8625 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8628 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8629 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8634 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8638 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8639 *** create shared libraries on Solaris systems. Therefore, libtool
8640 *** is disabling shared libraries support. We urge you to upgrade GNU
8641 *** binutils to release 2.9.1 or newer. Another option is to modify
8642 *** your PATH or compiler configuration so that the native linker is
8643 *** used, and then restart.
8646 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8647 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8648 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8654 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8655 case `$LD -v 2>&1` in
8656 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8660 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8661 *** reliably create shared libraries on SCO systems. Therefore, libtool
8662 *** is disabling shared libraries support. We urge you to upgrade GNU
8663 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8664 *** your PATH or compiler configuration so that the native linker is
8665 *** used, and then restart.
8670 # For security reasons, it is highly recommended that you always
8671 # use absolute paths for naming shared libraries, and exclude the
8672 # DT_RUNPATH tag from executables and libraries. But doing so
8673 # requires that you compile everything twice, which is a pain.
8674 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8675 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8676 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8677 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8686 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8689 hardcode_shlibpath_var=no
8693 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8694 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8695 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8702 if test "$ld_shlibs" = no; then
8704 hardcode_libdir_flag_spec=
8705 export_dynamic_flag_spec=
8706 whole_archive_flag_spec=
8709 # PORTME fill in a description of your system's linker (not GNU ld)
8712 allow_undefined_flag=unsupported
8713 always_export_symbols=yes
8714 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'
8715 # Note: this linker hardcodes the directories in LIBPATH if there
8716 # are no directories specified by -L.
8717 hardcode_minus_L=yes
8718 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8719 # Neither direct hardcoding nor static linking is supported with a
8721 hardcode_direct=unsupported
8726 if test "$host_cpu" = ia64; then
8727 # On IA64, the linker does run time linking by default, so we don't
8728 # have to do anything special.
8729 aix_use_runtimelinking=no
8730 exp_sym_flag='-Bexport'
8733 # If we're using GNU nm, then we don't want the "-C" option.
8734 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8735 # Also, AIX nm treats weak defined symbols like other global
8736 # defined symbols, whereas GNU nm marks them as "W".
8737 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8738 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'
8740 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'
8742 aix_use_runtimelinking=no
8744 # Test if we are trying to use run time linking or normal
8745 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8746 # need to do runtime linking.
8747 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8748 for ld_flag in $LDFLAGS; do
8749 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8750 aix_use_runtimelinking=yes
8757 exp_sym_flag='-bexport'
8758 no_entry_flag='-bnoentry'
8761 # When large executables or shared objects are built, AIX ld can
8762 # have problems creating the table of contents. If linking a library
8763 # or program results in "error TOC overflow" add -mminimal-toc to
8764 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8765 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8769 hardcode_direct_absolute=yes
8770 hardcode_libdir_separator=':'
8771 link_all_deplibs=yes
8772 file_list_spec='${wl}-f,'
8774 if test "$GCC" = yes; then
8775 case $host_os in aix4.[012]|aix4.[012].*)
8776 # We only want to do this on AIX 4.2 and lower, the check
8777 # below for broken collect2 doesn't work under 4.3+
8778 collect2name=`${CC} -print-prog-name=collect2`
8779 if test -f "$collect2name" &&
8780 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8782 # We have reworked collect2
8785 # We have old collect2
8786 hardcode_direct=unsupported
8787 # It fails to find uninstalled libraries when the uninstalled
8788 # path is not listed in the libpath. Setting hardcode_minus_L
8789 # to unsupported forces relinking
8790 hardcode_minus_L=yes
8791 hardcode_libdir_flag_spec='-L$libdir'
8792 hardcode_libdir_separator=
8796 shared_flag='-shared'
8797 if test "$aix_use_runtimelinking" = yes; then
8798 shared_flag="$shared_flag "'${wl}-G'
8802 if test "$host_cpu" = ia64; then
8803 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8804 # chokes on -Wl,-G. The following line is correct:
8807 if test "$aix_use_runtimelinking" = yes; then
8808 shared_flag='${wl}-G'
8810 shared_flag='${wl}-bM:SRE'
8815 export_dynamic_flag_spec='${wl}-bexpall'
8816 # It seems that -bexpall does not export symbols beginning with
8817 # underscore (_), so it is better to generate a list of symbols to export.
8818 always_export_symbols=yes
8819 if test "$aix_use_runtimelinking" = yes; then
8820 # Warning - without using the other runtime loading flags (-brtl),
8821 # -berok will link without error, but may produce a broken library.
8822 allow_undefined_flag='-berok'
8823 # Determine the default libpath from the value encoded in an
8825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8826 /* end confdefs.h. */
8836 if ac_fn_c_try_link "$LINENO"; then :
8838 lt_aix_libpath_sed='
8839 /Import File Strings/,/^$/ {
8845 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8846 # Check for a 64-bit object if we didn't find anything.
8847 if test -z "$aix_libpath"; then
8848 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8851 rm -f core conftest.err conftest.$ac_objext \
8852 conftest$ac_exeext conftest.$ac_ext
8853 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8855 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8856 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"
8858 if test "$host_cpu" = ia64; then
8859 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8860 allow_undefined_flag="-z nodefs"
8861 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"
8863 # Determine the default libpath from the value encoded in an
8865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8866 /* end confdefs.h. */
8876 if ac_fn_c_try_link "$LINENO"; then :
8878 lt_aix_libpath_sed='
8879 /Import File Strings/,/^$/ {
8885 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8886 # Check for a 64-bit object if we didn't find anything.
8887 if test -z "$aix_libpath"; then
8888 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8891 rm -f core conftest.err conftest.$ac_objext \
8892 conftest$ac_exeext conftest.$ac_ext
8893 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8895 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8896 # Warning - without using the other run time loading flags,
8897 # -berok will link without error, but may produce a broken library.
8898 no_undefined_flag=' ${wl}-bernotok'
8899 allow_undefined_flag=' ${wl}-berok'
8900 if test "$with_gnu_ld" = yes; then
8901 # We only use this code for GNU lds that support --whole-archive.
8902 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8904 # Exported symbols can be pulled into shared objects from archives
8905 whole_archive_flag_spec='$convenience'
8907 archive_cmds_need_lc=yes
8908 # This is similar to how AIX traditionally builds its shared libraries.
8909 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'
8917 # see comment about AmigaOS4 .so support
8918 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8919 archive_expsym_cmds=''
8922 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)'
8923 hardcode_libdir_flag_spec='-L$libdir'
8924 hardcode_minus_L=yes
8930 export_dynamic_flag_spec=-rdynamic
8933 cygwin* | mingw* | pw32* | cegcc*)
8934 # When not using gcc, we currently assume that we are using
8935 # Microsoft Visual C++.
8936 # hardcode_libdir_flag_spec is actually meaningless, as there is
8937 # no search path for DLLs.
8938 hardcode_libdir_flag_spec=' '
8939 allow_undefined_flag=unsupported
8940 # Tell ltmain to make .lib files, not .a files.
8942 # Tell ltmain to make .dll files, not .so files.
8944 # FIXME: Setting linknames here is a bad hack.
8945 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8946 # The linker will automatically build a .lib file if we build a DLL.
8947 old_archive_from_new_cmds='true'
8948 # FIXME: Should let the user specify the lib program.
8949 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8950 fix_srcfile_path='`cygpath -w "$srcfile"`'
8951 enable_shared_with_static_runtimes=yes
8954 darwin* | rhapsody*)
8957 archive_cmds_need_lc=no
8959 hardcode_automatic=yes
8960 hardcode_shlibpath_var=unsupported
8961 if test "$lt_cv_ld_force_load" = "yes"; then
8962 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\"`'
8964 whole_archive_flag_spec=''
8966 link_all_deplibs=yes
8967 allow_undefined_flag="$_lt_dar_allow_undefined"
8968 case $cc_basename in
8969 ifort*) _lt_dar_can_shared=yes ;;
8970 *) _lt_dar_can_shared=$GCC ;;
8972 if test "$_lt_dar_can_shared" = "yes"; then
8973 output_verbose_link_cmd=func_echo_all
8974 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8975 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8976 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}"
8977 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}"
8986 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8987 hardcode_libdir_flag_spec='-L$libdir'
8988 hardcode_shlibpath_var=no
8995 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8996 # support. Future versions do this automatically, but an explicit c++rt0.o
8997 # does not break anything, and helps significantly (at the cost of a little
9000 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9001 hardcode_libdir_flag_spec='-R$libdir'
9003 hardcode_shlibpath_var=no
9006 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9008 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9010 hardcode_minus_L=yes
9011 hardcode_shlibpath_var=no
9014 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9015 freebsd* | dragonfly*)
9016 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9017 hardcode_libdir_flag_spec='-R$libdir'
9019 hardcode_shlibpath_var=no
9023 if test "$GCC" = yes; then
9024 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'
9026 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'
9028 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9029 hardcode_libdir_separator=:
9032 # hardcode_minus_L: Not really in the search PATH,
9033 # but as the default location of the library.
9034 hardcode_minus_L=yes
9035 export_dynamic_flag_spec='${wl}-E'
9039 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9040 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9042 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9044 if test "$with_gnu_ld" = no; then
9045 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9046 hardcode_libdir_flag_spec_ld='+b $libdir'
9047 hardcode_libdir_separator=:
9049 hardcode_direct_absolute=yes
9050 export_dynamic_flag_spec='${wl}-E'
9051 # hardcode_minus_L: Not really in the search PATH,
9052 # but as the default location of the library.
9053 hardcode_minus_L=yes
9058 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9061 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9064 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9067 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9073 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9076 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9080 # Older versions of the 11.00 compiler do not understand -b yet
9081 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9083 $as_echo_n "checking if $CC understands -b... " >&6; }
9084 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9085 $as_echo_n "(cached) " >&6
9087 lt_cv_prog_compiler__b=no
9088 save_LDFLAGS="$LDFLAGS"
9089 LDFLAGS="$LDFLAGS -b"
9090 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9091 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9092 # The linker can only warn and ignore the option if not recognized
9093 # So say no if there are warnings
9094 if test -s conftest.err; then
9095 # Append any errors to the config.log.
9096 cat conftest.err 1>&5
9097 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9098 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9099 if diff conftest.exp conftest.er2 >/dev/null; then
9100 lt_cv_prog_compiler__b=yes
9103 lt_cv_prog_compiler__b=yes
9107 LDFLAGS="$save_LDFLAGS"
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9111 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9113 if test x"$lt_cv_prog_compiler__b" = xyes; then
9114 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9116 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9122 if test "$with_gnu_ld" = no; then
9123 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9124 hardcode_libdir_separator=:
9129 hardcode_shlibpath_var=no
9133 hardcode_direct_absolute=yes
9134 export_dynamic_flag_spec='${wl}-E'
9136 # hardcode_minus_L: Not really in the search PATH,
9137 # but as the default location of the library.
9138 hardcode_minus_L=yes
9144 irix5* | irix6* | nonstopux*)
9145 if test "$GCC" = yes; then
9146 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'
9147 # Try to use the -exported_symbol ld option, if it does not
9148 # work, assume that -exports_file does not work either and
9149 # implicitly export all symbols.
9150 save_LDFLAGS="$LDFLAGS"
9151 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9153 /* end confdefs.h. */
9156 if ac_fn_c_try_link "$LINENO"; then :
9157 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'
9160 rm -f core conftest.err conftest.$ac_objext \
9161 conftest$ac_exeext conftest.$ac_ext
9162 LDFLAGS="$save_LDFLAGS"
9164 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'
9165 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'
9167 archive_cmds_need_lc='no'
9168 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9169 hardcode_libdir_separator=:
9171 link_all_deplibs=yes
9175 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9176 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9178 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9180 hardcode_libdir_flag_spec='-R$libdir'
9182 hardcode_shlibpath_var=no
9186 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9188 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9189 hardcode_libdir_separator=:
9190 hardcode_shlibpath_var=no
9197 if test -f /usr/libexec/ld.so; then
9199 hardcode_shlibpath_var=no
9200 hardcode_direct_absolute=yes
9201 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9202 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9203 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9204 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9205 export_dynamic_flag_spec='${wl}-E'
9208 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9209 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9210 hardcode_libdir_flag_spec='-R$libdir'
9213 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9214 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9224 hardcode_libdir_flag_spec='-L$libdir'
9225 hardcode_minus_L=yes
9226 allow_undefined_flag=unsupported
9227 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'
9228 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9232 if test "$GCC" = yes; then
9233 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9234 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'
9236 allow_undefined_flag=' -expect_unresolved \*'
9237 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'
9239 archive_cmds_need_lc='no'
9240 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9241 hardcode_libdir_separator=:
9244 osf4* | osf5*) # as osf3* with the addition of -msym flag
9245 if test "$GCC" = yes; then
9246 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9247 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'
9248 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9250 allow_undefined_flag=' -expect_unresolved \*'
9251 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'
9252 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~
9253 $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'
9255 # Both c and cxx compiler support -rpath directly
9256 hardcode_libdir_flag_spec='-rpath $libdir'
9258 archive_cmds_need_lc='no'
9259 hardcode_libdir_separator=:
9263 no_undefined_flag=' -z defs'
9264 if test "$GCC" = yes; then
9266 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9267 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9268 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9270 case `$CC -V 2>&1` in
9273 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9274 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9275 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9279 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9280 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9281 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9285 hardcode_libdir_flag_spec='-R$libdir'
9286 hardcode_shlibpath_var=no
9288 solaris2.[0-5] | solaris2.[0-5].*) ;;
9290 # The compiler driver will combine and reorder linker options,
9291 # but understands `-z linker_flag'. GCC discards it without `$wl',
9292 # but is careful enough not to reorder.
9293 # Supported since Solaris 2.6 (maybe 2.5.1?)
9294 if test "$GCC" = yes; then
9295 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9297 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9301 link_all_deplibs=yes
9305 if test "x$host_vendor" = xsequent; then
9306 # Use $CC to link under sequent, because it throws in some extra .o
9307 # files that make .init and .fini sections work.
9308 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9310 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9312 hardcode_libdir_flag_spec='-L$libdir'
9314 hardcode_minus_L=yes
9315 hardcode_shlibpath_var=no
9319 case $host_vendor in
9321 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9322 hardcode_direct=yes # is this really true???
9325 ## LD is ld it makes a PLAMLIB
9326 ## CC just makes a GrossModule.
9327 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9328 reload_cmds='$CC -r -o $output$reload_objs'
9332 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9333 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9336 runpath_var='LD_RUN_PATH'
9337 hardcode_shlibpath_var=no
9341 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9342 hardcode_shlibpath_var=no
9343 export_dynamic_flag_spec='-Bexport'
9347 if test -d /usr/nec; then
9348 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9349 hardcode_shlibpath_var=no
9350 runpath_var=LD_RUN_PATH
9351 hardcode_runpath_var=yes
9356 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9357 no_undefined_flag='${wl}-z,text'
9358 archive_cmds_need_lc=no
9359 hardcode_shlibpath_var=no
9360 runpath_var='LD_RUN_PATH'
9362 if test "$GCC" = yes; then
9363 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9364 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9366 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9367 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9371 sysv5* | sco3.2v5* | sco5v6*)
9372 # Note: We can NOT use -z defs as we might desire, because we do not
9373 # link with -lc, and that would cause any symbols used from libc to
9374 # always be unresolved, which means just about no library would
9375 # ever link correctly. If we're not using GNU ld we use -z text
9376 # though, which does catch some bad symbols but isn't as heavy-handed
9378 no_undefined_flag='${wl}-z,text'
9379 allow_undefined_flag='${wl}-z,nodefs'
9380 archive_cmds_need_lc=no
9381 hardcode_shlibpath_var=no
9382 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9383 hardcode_libdir_separator=':'
9384 link_all_deplibs=yes
9385 export_dynamic_flag_spec='${wl}-Bexport'
9386 runpath_var='LD_RUN_PATH'
9388 if test "$GCC" = yes; then
9389 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9390 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9392 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9393 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9398 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9399 hardcode_libdir_flag_spec='-L$libdir'
9400 hardcode_shlibpath_var=no
9408 if test x$host_vendor = xsni; then
9410 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9411 export_dynamic_flag_spec='${wl}-Blargedynsym'
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9418 $as_echo "$ld_shlibs" >&6; }
9419 test "$ld_shlibs" = no && can_build_shared=no
9421 with_gnu_ld=$with_gnu_ld
9438 # Do we need to explicitly link libc?
9440 case "x$archive_cmds_need_lc" in
9442 # Assume -lc should be added
9443 archive_cmds_need_lc=yes
9445 if test "$enable_shared" = yes && test "$GCC" = yes; then
9446 case $archive_cmds in
9448 # FIXME: we may have to deal with multi-command sequences.
9451 # Test whether the compiler implicitly links with -lc since on some
9452 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9453 # to ld, don't add -lc before -lgcc.
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9455 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9456 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9457 $as_echo_n "(cached) " >&6
9460 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9462 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9463 (eval $ac_compile) 2>&5
9465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9466 test $ac_status = 0; } 2>conftest.err; then
9469 libobjs=conftest.$ac_objext
9471 wl=$lt_prog_compiler_wl
9472 pic_flag=$lt_prog_compiler_pic
9478 lt_save_allow_undefined_flag=$allow_undefined_flag
9479 allow_undefined_flag=
9480 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9481 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9484 test $ac_status = 0; }
9486 lt_cv_archive_cmds_need_lc=no
9488 lt_cv_archive_cmds_need_lc=yes
9490 allow_undefined_flag=$lt_save_allow_undefined_flag
9492 cat conftest.err 1>&5
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9498 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9499 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9663 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9665 if test "$GCC" = yes; then
9667 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9668 *) lt_awk_arg="/^libraries:/" ;;
9671 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9672 *) lt_sed_strip_eq="s,=/,/,g" ;;
9674 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9675 case $lt_search_path_spec in
9677 # if the path contains ";" then we assume it to be the separator
9678 # otherwise default to the standard path separator (i.e. ":") - it is
9679 # assumed that no part of a normal pathname contains ";" but that should
9680 # okay in the real world where ";" in dirpaths is itself problematic.
9681 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9684 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9687 # Ok, now we have the path, separated by spaces, we can step through it
9688 # and add multilib dir if necessary.
9689 lt_tmp_lt_search_path_spec=
9690 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9691 for lt_sys_path in $lt_search_path_spec; do
9692 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9693 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9695 test -d "$lt_sys_path" && \
9696 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9699 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9700 BEGIN {RS=" "; FS="/|\n";} {
9703 for (lt_i = NF; lt_i > 0; lt_i--) {
9704 if ($lt_i != "" && $lt_i != ".") {
9705 if ($lt_i == "..") {
9708 if (lt_count == 0) {
9709 lt_foo="/" $lt_i lt_foo;
9716 if (lt_foo != "") { lt_freq[lt_foo]++; }
9717 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9719 # AWK program above erroneously prepends '/' to C:/dos/paths
9722 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9723 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9725 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9727 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9730 libname_spec='lib$name'
9738 shlibpath_overrides_runpath=unknown
9740 dynamic_linker="$host_os ld.so"
9741 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9742 need_lib_prefix=unknown
9743 hardcode_into_libs=no
9745 # when you set need_version to no, make sure it does not cause -set_version
9746 # flags to be left without arguments
9747 need_version=unknown
9752 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9753 shlibpath_var=LIBPATH
9755 # AIX 3 has no versioning support, so we append a major version to the name.
9756 soname_spec='${libname}${release}${shared_ext}$major'
9763 hardcode_into_libs=yes
9764 if test "$host_cpu" = ia64; then
9765 # AIX 5 supports IA64
9766 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9767 shlibpath_var=LD_LIBRARY_PATH
9769 # With GCC up to 2.95.x, collect2 would create an import file
9770 # for dependence libraries. The import file would start with
9771 # the line `#! .'. This would cause the generated library to
9772 # depend on `.', always an invalid library. This was fixed in
9773 # development snapshots of GCC prior to 3.0.
9775 aix4 | aix4.[01] | aix4.[01].*)
9776 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9778 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9785 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9786 # soname into executable. Probably we can add versioning support to
9787 # collect2, so additional links can be useful in future.
9788 if test "$aix_use_runtimelinking" = yes; then
9789 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9790 # instead of lib<name>.a to let people know that these are not
9791 # typical AIX shared libraries.
9792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9794 # We preserve .a as extension for shared libraries through AIX4.2
9795 # and later when we are not doing run time linking.
9796 library_names_spec='${libname}${release}.a $libname.a'
9797 soname_spec='${libname}${release}${shared_ext}$major'
9799 shlibpath_var=LIBPATH
9806 # Since July 2007 AmigaOS4 officially supports .so libraries.
9807 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9811 library_names_spec='$libname.ixlibrary $libname.a'
9812 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9813 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'
9819 library_names_spec='${libname}${shared_ext}'
9820 dynamic_linker="$host_os ld.so"
9821 shlibpath_var=LIBRARY_PATH
9827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9828 soname_spec='${libname}${release}${shared_ext}$major'
9829 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9830 shlibpath_var=LD_LIBRARY_PATH
9831 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9832 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9833 # the default ld.so.conf also contains /usr/contrib/lib and
9834 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9835 # libtool to hard-code these into programs
9838 cygwin* | mingw* | pw32* | cegcc*)
9839 version_type=windows
9844 case $GCC,$host_os in
9845 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9846 library_names_spec='$libname.dll.a'
9847 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9848 postinstall_cmds='base_file=`basename \${file}`~
9849 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9850 dldir=$destdir/`dirname \$dlpath`~
9851 test -d \$dldir || mkdir -p \$dldir~
9852 $install_prog $dir/$dlname \$dldir/$dlname~
9853 chmod a+x \$dldir/$dlname~
9854 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9855 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9857 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9858 dlpath=$dir/\$dldll~
9860 shlibpath_overrides_runpath=yes
9864 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9865 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9867 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9870 # MinGW DLLs use traditional 'lib' prefix
9871 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9874 # pw32 DLLs use 'pw' prefix rather than 'lib'
9875 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9881 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9884 dynamic_linker='Win32 ld.exe'
9885 # FIXME: first we should search . and the directory the executable is in
9889 darwin* | rhapsody*)
9890 dynamic_linker="$host_os dyld"
9894 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9895 soname_spec='${libname}${release}${major}$shared_ext'
9896 shlibpath_overrides_runpath=yes
9897 shlibpath_var=DYLD_LIBRARY_PATH
9898 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9900 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9901 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9909 soname_spec='${libname}${release}${shared_ext}$major'
9910 shlibpath_var=LD_LIBRARY_PATH
9917 freebsd* | dragonfly*)
9918 # DragonFly does not have aout. When/if they implement a new
9919 # versioning mechanism, adjust this.
9920 if test -x /usr/bin/objformat; then
9921 objformat=`/usr/bin/objformat`
9924 freebsd[123]*) objformat=aout ;;
9928 version_type=freebsd-$objformat
9929 case $version_type in
9931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9936 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9940 shlibpath_var=LD_LIBRARY_PATH
9943 shlibpath_overrides_runpath=yes
9945 freebsd3.[01]* | freebsdelf3.[01]*)
9946 shlibpath_overrides_runpath=yes
9947 hardcode_into_libs=yes
9949 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9950 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9951 shlibpath_overrides_runpath=no
9952 hardcode_into_libs=yes
9954 *) # from 4.6 on, and DragonFly
9955 shlibpath_overrides_runpath=yes
9956 hardcode_into_libs=yes
9965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9966 soname_spec='${libname}${release}${shared_ext}$major'
9967 shlibpath_var=LD_LIBRARY_PATH
9968 hardcode_into_libs=yes
9975 dynamic_linker="$host_os runtime_loader"
9976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9977 soname_spec='${libname}${release}${shared_ext}$major'
9978 shlibpath_var=LIBRARY_PATH
9979 shlibpath_overrides_runpath=yes
9980 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9981 hardcode_into_libs=yes
9984 hpux9* | hpux10* | hpux11*)
9985 # Give a soname corresponding to the major version so that dld.sl refuses to
9986 # link against other versions.
9993 hardcode_into_libs=yes
9994 dynamic_linker="$host_os dld.so"
9995 shlibpath_var=LD_LIBRARY_PATH
9996 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9998 soname_spec='${libname}${release}${shared_ext}$major'
9999 if test "X$HPUX_IA64_MODE" = X32; then
10000 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10002 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10004 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10008 hardcode_into_libs=yes
10009 dynamic_linker="$host_os dld.sl"
10010 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10011 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10013 soname_spec='${libname}${release}${shared_ext}$major'
10014 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10015 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10019 dynamic_linker="$host_os dld.sl"
10020 shlibpath_var=SHLIB_PATH
10021 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10023 soname_spec='${libname}${release}${shared_ext}$major'
10026 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10027 postinstall_cmds='chmod 555 $lib'
10028 # or fails outright, so override atomically:
10029 install_override_mode=555
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'
10038 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10039 shlibpath_var=LD_LIBRARY_PATH
10040 shlibpath_overrides_runpath=no
10041 hardcode_into_libs=yes
10044 irix5* | irix6* | nonstopux*)
10046 nonstopux*) version_type=nonstopux ;;
10048 if test "$lt_cv_prog_gnu_ld" = yes; then
10056 soname_spec='${libname}${release}${shared_ext}$major'
10057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10059 irix5* | nonstopux*)
10060 libsuff= shlibsuff=
10063 case $LD in # libtool.m4 will add one of these switches to LD
10064 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10065 libsuff= shlibsuff= libmagic=32-bit;;
10066 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10067 libsuff=32 shlibsuff=N32 libmagic=N32;;
10068 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10069 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10070 *) libsuff= shlibsuff= libmagic=never-match;;
10074 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10075 shlibpath_overrides_runpath=no
10076 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10077 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10078 hardcode_into_libs=yes
10081 # No shared lib support for Linux oldld, aout, or coff.
10082 linux*oldld* | linux*aout* | linux*coff*)
10086 # This must be Linux ELF.
10087 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10092 soname_spec='${libname}${release}${shared_ext}$major'
10093 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10094 shlibpath_var=LD_LIBRARY_PATH
10095 shlibpath_overrides_runpath=no
10097 # Some binutils ld are patched to set DT_RUNPATH
10098 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10099 $as_echo_n "(cached) " >&6
10101 lt_cv_shlibpath_overrides_runpath=no
10102 save_LDFLAGS=$LDFLAGS
10103 save_libdir=$libdir
10104 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10105 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10107 /* end confdefs.h. */
10117 if ac_fn_c_try_link "$LINENO"; then :
10118 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10119 lt_cv_shlibpath_overrides_runpath=yes
10122 rm -f core conftest.err conftest.$ac_objext \
10123 conftest$ac_exeext conftest.$ac_ext
10124 LDFLAGS=$save_LDFLAGS
10125 libdir=$save_libdir
10129 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10131 # This implies no fast_install, which is unacceptable.
10132 # Some rework will be needed to allow for fast_install
10133 # before this can be enabled.
10134 hardcode_into_libs=yes
10136 # Append ld.so.conf contents to the search path
10137 if test -f /etc/ld.so.conf; then
10138 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' ' '`
10139 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10142 # We used to test for /lib/ld.so.1 and disable shared libraries on
10143 # powerpc, because MkLinux only supported shared libraries with the
10144 # GNU dynamic linker. Since this was broken with cross compilers,
10145 # most powerpc-linux boxes support dynamic linking these days and
10146 # people can always --disable-shared, the test was removed, and we
10147 # assume the GNU/Linux dynamic linker is in use.
10148 dynamic_linker='GNU/Linux ld.so'
10155 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10157 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10158 dynamic_linker='NetBSD (a.out) ld.so'
10160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10161 soname_spec='${libname}${release}${shared_ext}$major'
10162 dynamic_linker='NetBSD ld.elf_so'
10164 shlibpath_var=LD_LIBRARY_PATH
10165 shlibpath_overrides_runpath=yes
10166 hardcode_into_libs=yes
10171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10172 shlibpath_var=LD_LIBRARY_PATH
10173 shlibpath_overrides_runpath=yes
10180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10181 soname_spec='${libname}${release}${shared_ext}$major'
10182 shlibpath_var=LD_LIBRARY_PATH
10183 shlibpath_overrides_runpath=no
10184 hardcode_into_libs=yes
10185 dynamic_linker='ldqnx.so'
10190 sys_lib_dlsearch_path_spec="/usr/lib"
10192 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10194 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10195 *) need_version=no ;;
10197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10198 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10199 shlibpath_var=LD_LIBRARY_PATH
10200 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10202 openbsd2.[89] | openbsd2.[89].*)
10203 shlibpath_overrides_runpath=no
10206 shlibpath_overrides_runpath=yes
10210 shlibpath_overrides_runpath=yes
10215 libname_spec='$name'
10218 library_names_spec='$libname${shared_ext} $libname.a'
10219 dynamic_linker='OS/2 ld.exe'
10220 shlibpath_var=LIBPATH
10223 osf3* | osf4* | osf5*)
10227 soname_spec='${libname}${release}${shared_ext}$major'
10228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10229 shlibpath_var=LD_LIBRARY_PATH
10230 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10231 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10243 soname_spec='${libname}${release}${shared_ext}$major'
10244 shlibpath_var=LD_LIBRARY_PATH
10245 shlibpath_overrides_runpath=yes
10246 hardcode_into_libs=yes
10247 # ldd complains unless libraries are executable
10248 postinstall_cmds='chmod +x $lib'
10253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10254 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10255 shlibpath_var=LD_LIBRARY_PATH
10256 shlibpath_overrides_runpath=yes
10257 if test "$with_gnu_ld" = yes; then
10265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10266 soname_spec='${libname}${release}${shared_ext}$major'
10267 shlibpath_var=LD_LIBRARY_PATH
10268 case $host_vendor in
10270 shlibpath_overrides_runpath=no
10272 runpath_var=LD_RUN_PATH
10280 shlibpath_overrides_runpath=no
10281 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10287 if test -d /usr/nec ;then
10289 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10290 soname_spec='$libname${shared_ext}.$major'
10291 shlibpath_var=LD_LIBRARY_PATH
10295 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10296 version_type=freebsd-elf
10299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10300 soname_spec='${libname}${release}${shared_ext}$major'
10301 shlibpath_var=LD_LIBRARY_PATH
10302 shlibpath_overrides_runpath=yes
10303 hardcode_into_libs=yes
10304 if test "$with_gnu_ld" = yes; then
10305 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10307 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10310 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10314 sys_lib_dlsearch_path_spec='/usr/lib'
10318 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10323 shlibpath_var=LD_LIBRARY_PATH
10324 shlibpath_overrides_runpath=no
10325 hardcode_into_libs=yes
10330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10331 soname_spec='${libname}${release}${shared_ext}$major'
10332 shlibpath_var=LD_LIBRARY_PATH
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10340 $as_echo "$dynamic_linker" >&6; }
10341 test "$dynamic_linker" = no && can_build_shared=no
10343 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10344 if test "$GCC" = yes; then
10345 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10348 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10349 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10351 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10352 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10447 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10449 if test -n "$hardcode_libdir_flag_spec" ||
10450 test -n "$runpath_var" ||
10451 test "X$hardcode_automatic" = "Xyes" ; then
10453 # We can hardcode non-existent directories.
10454 if test "$hardcode_direct" != no &&
10455 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10456 # have to relink, otherwise we might link with an installed library
10457 # when we should be linking with a yet-to-be-installed one
10458 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10459 test "$hardcode_minus_L" != no; then
10460 # Linking always hardcodes the temporary library directory.
10461 hardcode_action=relink
10463 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10464 hardcode_action=immediate
10467 # We cannot hardcode anything, or else we can only hardcode existing
10469 hardcode_action=unsupported
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10472 $as_echo "$hardcode_action" >&6; }
10474 if test "$hardcode_action" = relink ||
10475 test "$inherit_rpath" = yes; then
10476 # Fast installation is not supported
10477 enable_fast_install=no
10478 elif test "$shlibpath_overrides_runpath" = yes ||
10479 test "$enable_shared" = no; then
10480 # Fast installation is not necessary
10481 enable_fast_install=needless
10489 if test "x$enable_dlopen" != xyes; then
10490 enable_dlopen=unknown
10491 enable_dlopen_self=unknown
10492 enable_dlopen_self_static=unknown
10499 lt_cv_dlopen="load_add_on"
10501 lt_cv_dlopen_self=yes
10504 mingw* | pw32* | cegcc*)
10505 lt_cv_dlopen="LoadLibrary"
10510 lt_cv_dlopen="dlopen"
10515 # if libdl is installed we need to link against it
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10517 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10518 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10519 $as_echo_n "(cached) " >&6
10521 ac_check_lib_save_LIBS=$LIBS
10523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10524 /* end confdefs.h. */
10526 /* Override any GCC internal prototype to avoid an error.
10527 Use char because int might match the return type of a GCC
10528 builtin and then its argument prototype would still apply. */
10541 if ac_fn_c_try_link "$LINENO"; then :
10542 ac_cv_lib_dl_dlopen=yes
10544 ac_cv_lib_dl_dlopen=no
10546 rm -f core conftest.err conftest.$ac_objext \
10547 conftest$ac_exeext conftest.$ac_ext
10548 LIBS=$ac_check_lib_save_LIBS
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10551 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10552 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10553 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10556 lt_cv_dlopen="dyld"
10558 lt_cv_dlopen_self=yes
10565 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10566 if test "x$ac_cv_func_shl_load" = x""yes; then :
10567 lt_cv_dlopen="shl_load"
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10570 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10571 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10572 $as_echo_n "(cached) " >&6
10574 ac_check_lib_save_LIBS=$LIBS
10576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10577 /* end confdefs.h. */
10579 /* Override any GCC internal prototype to avoid an error.
10580 Use char because int might match the return type of a GCC
10581 builtin and then its argument prototype would still apply. */
10589 return shl_load ();
10594 if ac_fn_c_try_link "$LINENO"; then :
10595 ac_cv_lib_dld_shl_load=yes
10597 ac_cv_lib_dld_shl_load=no
10599 rm -f core conftest.err conftest.$ac_objext \
10600 conftest$ac_exeext conftest.$ac_ext
10601 LIBS=$ac_check_lib_save_LIBS
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10604 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10605 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10606 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10608 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10609 if test "x$ac_cv_func_dlopen" = x""yes; then :
10610 lt_cv_dlopen="dlopen"
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10613 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10614 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10615 $as_echo_n "(cached) " >&6
10617 ac_check_lib_save_LIBS=$LIBS
10619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10620 /* end confdefs.h. */
10622 /* Override any GCC internal prototype to avoid an error.
10623 Use char because int might match the return type of a GCC
10624 builtin and then its argument prototype would still apply. */
10637 if ac_fn_c_try_link "$LINENO"; then :
10638 ac_cv_lib_dl_dlopen=yes
10640 ac_cv_lib_dl_dlopen=no
10642 rm -f core conftest.err conftest.$ac_objext \
10643 conftest$ac_exeext conftest.$ac_ext
10644 LIBS=$ac_check_lib_save_LIBS
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10647 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10648 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10649 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10652 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10653 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10654 $as_echo_n "(cached) " >&6
10656 ac_check_lib_save_LIBS=$LIBS
10657 LIBS="-lsvld $LIBS"
10658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10659 /* end confdefs.h. */
10661 /* Override any GCC internal prototype to avoid an error.
10662 Use char because int might match the return type of a GCC
10663 builtin and then its argument prototype would still apply. */
10676 if ac_fn_c_try_link "$LINENO"; then :
10677 ac_cv_lib_svld_dlopen=yes
10679 ac_cv_lib_svld_dlopen=no
10681 rm -f core conftest.err conftest.$ac_objext \
10682 conftest$ac_exeext conftest.$ac_ext
10683 LIBS=$ac_check_lib_save_LIBS
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10686 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10687 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10688 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10691 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10692 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10693 $as_echo_n "(cached) " >&6
10695 ac_check_lib_save_LIBS=$LIBS
10697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10698 /* end confdefs.h. */
10700 /* Override any GCC internal prototype to avoid an error.
10701 Use char because int might match the return type of a GCC
10702 builtin and then its argument prototype would still apply. */
10710 return dld_link ();
10715 if ac_fn_c_try_link "$LINENO"; then :
10716 ac_cv_lib_dld_dld_link=yes
10718 ac_cv_lib_dld_dld_link=no
10720 rm -f core conftest.err conftest.$ac_objext \
10721 conftest$ac_exeext conftest.$ac_ext
10722 LIBS=$ac_check_lib_save_LIBS
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10725 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10726 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10727 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10748 if test "x$lt_cv_dlopen" != xno; then
10754 case $lt_cv_dlopen in
10756 save_CPPFLAGS="$CPPFLAGS"
10757 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10759 save_LDFLAGS="$LDFLAGS"
10760 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10763 LIBS="$lt_cv_dlopen_libs $LIBS"
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10766 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10767 if test "${lt_cv_dlopen_self+set}" = set; then :
10768 $as_echo_n "(cached) " >&6
10770 if test "$cross_compiling" = yes; then :
10771 lt_cv_dlopen_self=cross
10773 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10774 lt_status=$lt_dlunknown
10775 cat > conftest.$ac_ext <<_LT_EOF
10776 #line 10776 "configure"
10777 #include "confdefs.h"
10786 # define LT_DLGLOBAL RTLD_GLOBAL
10789 # define LT_DLGLOBAL DL_GLOBAL
10791 # define LT_DLGLOBAL 0
10795 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10796 find out it does not work in some platform. */
10797 #ifndef LT_DLLAZY_OR_NOW
10799 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10802 # define LT_DLLAZY_OR_NOW DL_LAZY
10805 # define LT_DLLAZY_OR_NOW RTLD_NOW
10808 # define LT_DLLAZY_OR_NOW DL_NOW
10810 # define LT_DLLAZY_OR_NOW 0
10817 /* When -fvisbility=hidden is used, assume the code has been annotated
10818 correspondingly for the symbols needed. */
10819 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10820 void fnord () __attribute__((visibility("default")));
10823 void fnord () { int i=42; }
10826 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10827 int status = $lt_dlunknown;
10831 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10834 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10835 else puts (dlerror ());
10837 /* dlclose (self); */
10845 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10846 (eval $ac_link) 2>&5
10848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10849 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10850 (./conftest; exit; ) >&5 2>/dev/null
10852 case x$lt_status in
10853 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10854 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10855 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10858 # compilation failed
10859 lt_cv_dlopen_self=no
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10867 $as_echo "$lt_cv_dlopen_self" >&6; }
10869 if test "x$lt_cv_dlopen_self" = xyes; then
10870 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10872 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10873 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10874 $as_echo_n "(cached) " >&6
10876 if test "$cross_compiling" = yes; then :
10877 lt_cv_dlopen_self_static=cross
10879 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10880 lt_status=$lt_dlunknown
10881 cat > conftest.$ac_ext <<_LT_EOF
10882 #line 10882 "configure"
10883 #include "confdefs.h"
10892 # define LT_DLGLOBAL RTLD_GLOBAL
10895 # define LT_DLGLOBAL DL_GLOBAL
10897 # define LT_DLGLOBAL 0
10901 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10902 find out it does not work in some platform. */
10903 #ifndef LT_DLLAZY_OR_NOW
10905 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10908 # define LT_DLLAZY_OR_NOW DL_LAZY
10911 # define LT_DLLAZY_OR_NOW RTLD_NOW
10914 # define LT_DLLAZY_OR_NOW DL_NOW
10916 # define LT_DLLAZY_OR_NOW 0
10923 /* When -fvisbility=hidden is used, assume the code has been annotated
10924 correspondingly for the symbols needed. */
10925 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10926 void fnord () __attribute__((visibility("default")));
10929 void fnord () { int i=42; }
10932 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10933 int status = $lt_dlunknown;
10937 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10940 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10941 else puts (dlerror ());
10943 /* dlclose (self); */
10951 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10952 (eval $ac_link) 2>&5
10954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10955 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10956 (./conftest; exit; ) >&5 2>/dev/null
10958 case x$lt_status in
10959 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10960 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10961 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10964 # compilation failed
10965 lt_cv_dlopen_self_static=no
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10973 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10976 CPPFLAGS="$save_CPPFLAGS"
10977 LDFLAGS="$save_LDFLAGS"
10982 case $lt_cv_dlopen_self in
10983 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10984 *) enable_dlopen_self=unknown ;;
10987 case $lt_cv_dlopen_self_static in
10988 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10989 *) enable_dlopen_self_static=unknown ;;
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11012 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11013 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11014 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11015 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11017 $as_echo "yes" >&6; }
11019 # FIXME - insert some real tests, host_os isn't really good enough
11022 if test -n "$STRIP" ; then
11023 striplib="$STRIP -x"
11024 old_striplib="$STRIP -S"
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11026 $as_echo "yes" >&6; }
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11029 $as_echo "no" >&6; }
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11034 $as_echo "no" >&6; }
11050 # Report which library types will actually be built
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11052 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11054 $as_echo "$can_build_shared" >&6; }
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11057 $as_echo_n "checking whether to build shared libraries... " >&6; }
11058 test "$can_build_shared" = "no" && enable_shared=no
11060 # On AIX, shared libraries and static libraries use the same namespace, and
11061 # are all built from PIC.
11064 test "$enable_shared" = yes && enable_static=no
11065 if test -n "$RANLIB"; then
11066 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11067 postinstall_cmds='$RANLIB $lib'
11072 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11073 test "$enable_shared" = yes && enable_static=no
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11078 $as_echo "$enable_shared" >&6; }
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11081 $as_echo_n "checking whether to build static libraries... " >&6; }
11082 # Make sure either enable_shared or enable_static is yes.
11083 test "$enable_shared" = yes || enable_static=yes
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11085 $as_echo "$enable_static" >&6; }
11092 ac_cpp='$CPP $CPPFLAGS'
11093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11111 ac_config_commands="$ac_config_commands libtool"
11116 # Only expand once:
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11122 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11123 # Check whether --enable-maintainer-mode was given.
11124 if test "${enable_maintainer_mode+set}" = set; then :
11125 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11127 USE_MAINTAINER_MODE=no
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11131 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11132 if test $USE_MAINTAINER_MODE = yes; then
11133 MAINTAINER_MODE_TRUE=
11134 MAINTAINER_MODE_FALSE='#'
11136 MAINTAINER_MODE_TRUE='#'
11137 MAINTAINER_MODE_FALSE=
11140 MAINT=$MAINTAINER_MODE_TRUE
11144 for ac_header in sys/mman.h
11146 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11147 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
11148 cat >>confdefs.h <<_ACEOF
11149 #define HAVE_SYS_MMAN_H 1
11156 for ac_func in mmap
11158 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11159 if test "x$ac_cv_func_mmap" = x""yes; then :
11160 cat >>confdefs.h <<_ACEOF
11161 #define HAVE_MMAP 1
11168 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11169 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
11170 libffi_header_sys_mman_h=yes
11172 libffi_header_sys_mman_h=no
11176 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11177 if test "x$ac_cv_func_mmap" = x""yes; then :
11178 libffi_func_mmap=yes
11180 libffi_func_mmap=no
11183 if test "$libffi_header_sys_mman_h" != yes \
11184 || test "$libffi_func_mmap" != yes; then
11185 ac_cv_func_mmap_file=no
11186 ac_cv_func_mmap_dev_zero=no
11187 ac_cv_func_mmap_anon=no
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
11190 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
11191 if test "${ac_cv_func_mmap_file+set}" = set; then :
11192 $as_echo_n "(cached) " >&6
11194 # Add a system to this blacklist if
11195 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
11196 # memory area containing the same data that you'd get if you applied
11197 # read() to the same fd. The only system known to have a problem here
11198 # is VMS, where text files have record structure.
11201 ac_cv_func_mmap_file=no ;;
11203 ac_cv_func_mmap_file=yes;;
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
11207 $as_echo "$ac_cv_func_mmap_file" >&6; }
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
11209 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
11210 if test "${ac_cv_func_mmap_dev_zero+set}" = set; then :
11211 $as_echo_n "(cached) " >&6
11213 # Add a system to this blacklist if it has mmap() but /dev/zero
11214 # does not exist, or if mmapping /dev/zero does not give anonymous
11215 # zeroed pages with both the following properties:
11216 # 1. If you map N consecutive pages in with one call, and then
11217 # unmap any subset of those pages, the pages that were not
11218 # explicitly unmapped remain accessible.
11219 # 2. If you map two adjacent blocks of memory and then unmap them
11220 # both at once, they must both go away.
11221 # Systems known to be in this category are Windows (all variants),
11224 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
11225 ac_cv_func_mmap_dev_zero=no ;;
11227 ac_cv_func_mmap_dev_zero=yes;;
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
11231 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
11233 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
11235 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
11236 if test "${ac_cv_decl_map_anon+set}" = set; then :
11237 $as_echo_n "(cached) " >&6
11239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11240 /* end confdefs.h. */
11241 #include <sys/types.h>
11242 #include <sys/mman.h>
11243 #include <unistd.h>
11245 #ifndef MAP_ANONYMOUS
11246 #define MAP_ANONYMOUS MAP_ANON
11252 int n = MAP_ANONYMOUS;
11257 if ac_fn_c_try_compile "$LINENO"; then :
11258 ac_cv_decl_map_anon=yes
11260 ac_cv_decl_map_anon=no
11262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
11265 $as_echo "$ac_cv_decl_map_anon" >&6; }
11267 if test $ac_cv_decl_map_anon = no; then
11268 ac_cv_func_mmap_anon=no
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
11271 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
11272 if test "${ac_cv_func_mmap_anon+set}" = set; then :
11273 $as_echo_n "(cached) " >&6
11275 # Add a system to this blacklist if it has mmap() and MAP_ANON or
11276 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
11277 # doesn't give anonymous zeroed pages with the same properties listed
11278 # above for use of /dev/zero.
11279 # Systems known to be in this category are Windows, VMS, and SCO Unix.
11281 vms* | cygwin* | pe | mingw* | sco* | udk* )
11282 ac_cv_func_mmap_anon=no ;;
11284 ac_cv_func_mmap_anon=yes;;
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
11288 $as_echo "$ac_cv_func_mmap_anon" >&6; }
11292 if test $ac_cv_func_mmap_file = yes; then
11294 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
11297 if test $ac_cv_func_mmap_dev_zero = yes; then
11299 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
11302 if test $ac_cv_func_mmap_anon = yes; then
11304 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
11309 if test -d $srcdir/testsuite; then
11311 TESTSUBDIR_FALSE='#'
11313 TESTSUBDIR_TRUE='#'
11318 TARGETDIR="unknown"
11321 TARGET=ALPHA; TARGETDIR=alpha;
11322 # Support 128-bit long double, changable via command-line switch.
11323 HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
11327 TARGET=ARM; TARGETDIR=arm
11331 TARGET=X86_64; TARGETDIR=x86
11335 TARGET=AVR32; TARGETDIR=avr32
11339 TARGET=LIBFFI_CRIS; TARGETDIR=cris
11343 TARGET=FRV; TARGETDIR=frv
11346 hppa*-*-linux* | parisc*-*-linux*)
11347 TARGET=PA_LINUX; TARGETDIR=pa
11350 TARGET=PA64_HPUX; TARGETDIR=pa
11353 TARGET=PA_HPUX; TARGETDIR=pa
11356 i?86-*-freebsd* | i?86-*-openbsd*)
11357 TARGET=X86_FREEBSD; TARGETDIR=x86
11359 i?86-win32* | i?86-*-cygwin* | i?86-*-mingw*)
11360 TARGET=X86_WIN32; TARGETDIR=x86
11363 TARGET=X86_DARWIN; TARGETDIR=x86
11365 i?86-*-solaris2.1[0-9]*)
11366 TARGET=X86_64; TARGETDIR=x86
11369 TARGET=X86; TARGETDIR=x86
11373 TARGET=IA64; TARGETDIR=ia64
11377 TARGET=M32R; TARGETDIR=m32r
11381 TARGET=M68K; TARGETDIR=m68k
11384 mips-sgi-irix5.* | mips-sgi-irix6.*)
11385 TARGET=MIPS; TARGETDIR=mips
11388 TARGET=MIPS; TARGETDIR=mips
11391 powerpc*-*-linux* | powerpc-*-sysv*)
11392 TARGET=POWERPC; TARGETDIR=powerpc
11395 TARGET=POWERPC; TARGETDIR=powerpc
11398 TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
11400 powerpc-*-aix* | rs6000-*-aix*)
11401 TARGET=POWERPC_AIX; TARGETDIR=powerpc
11403 powerpc-*-freebsd*)
11404 TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
11407 TARGET=POWERPC; TARGETDIR=powerpc
11410 s390-*-* | s390x-*-*)
11411 TARGET=S390; TARGETDIR=s390
11414 sh-*-* | sh[34]*-*-*)
11415 TARGET=SH; TARGETDIR=sh
11417 sh64-*-* | sh5*-*-*)
11418 TARGET=SH64; TARGETDIR=sh64
11422 TARGET=SPARC; TARGETDIR=sparc
11426 TARGET=X86_DARWIN; TARGETDIR=x86
11429 x86_64-*-cygwin* | x86_64-*-mingw*)
11430 TARGET=X86_WIN64; TARGETDIR=x86
11434 TARGET=X86_64; TARGETDIR=x86
11440 if test $TARGETDIR = unknown; then
11441 as_fn_error "\"libffi has not been ported to $host.\"" "$LINENO" 5
11444 if test x$TARGET = xMIPS; then
11452 if test x$TARGET = xSPARC; then
11460 if test x$TARGET = xX86; then
11468 if test x$TARGET = xX86_FREEBSD; then
11470 X86_FREEBSD_FALSE='#'
11472 X86_FREEBSD_TRUE='#'
11476 if test x$TARGET = xX86_WIN32; then
11478 X86_WIN32_FALSE='#'
11484 if test x$TARGET = xX86_WIN64; then
11486 X86_WIN64_FALSE='#'
11492 if test x$TARGET = xX86_DARWIN; then
11494 X86_DARWIN_FALSE='#'
11496 X86_DARWIN_TRUE='#'
11500 if test x$TARGET = xALPHA; then
11508 if test x$TARGET = xIA64; then
11516 if test x$TARGET = xM32R; then
11524 if test x$TARGET = xM68K; then
11532 if test x$TARGET = xPOWERPC; then
11540 if test x$TARGET = xPOWERPC_AIX; then
11542 POWERPC_AIX_FALSE='#'
11544 POWERPC_AIX_TRUE='#'
11548 if test x$TARGET = xPOWERPC_DARWIN; then
11549 POWERPC_DARWIN_TRUE=
11550 POWERPC_DARWIN_FALSE='#'
11552 POWERPC_DARWIN_TRUE='#'
11553 POWERPC_DARWIN_FALSE=
11556 if test x$TARGET = xPOWERPC_FREEBSD; then
11557 POWERPC_FREEBSD_TRUE=
11558 POWERPC_FREEBSD_FALSE='#'
11560 POWERPC_FREEBSD_TRUE='#'
11561 POWERPC_FREEBSD_FALSE=
11564 if test x$TARGET = xARM; then
11572 if test x$TARGET = xAVR32; then
11580 if test x$TARGET = xLIBFFI_CRIS; then
11582 LIBFFI_CRIS_FALSE='#'
11584 LIBFFI_CRIS_TRUE='#'
11588 if test x$TARGET = xFRV; then
11596 if test x$TARGET = xS390; then
11604 if test x$TARGET = xX86_64; then
11612 if test x$TARGET = xSH; then
11620 if test x$TARGET = xSH64; then
11628 if test x$TARGET = xPA_LINUX; then
11636 if test x$TARGET = xPA_HPUX; then
11644 if test x$TARGET = xPA64_HPUX; then
11646 PA64_HPUX_FALSE='#'
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11654 $as_echo_n "checking for ANSI C header files... " >&6; }
11655 if test "${ac_cv_header_stdc+set}" = set; then :
11656 $as_echo_n "(cached) " >&6
11658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11659 /* end confdefs.h. */
11660 #include <stdlib.h>
11661 #include <stdarg.h>
11662 #include <string.h>
11673 if ac_fn_c_try_compile "$LINENO"; then :
11674 ac_cv_header_stdc=yes
11676 ac_cv_header_stdc=no
11678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11680 if test $ac_cv_header_stdc = yes; then
11681 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11683 /* end confdefs.h. */
11684 #include <string.h>
11687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11688 $EGREP "memchr" >/dev/null 2>&1; then :
11691 ac_cv_header_stdc=no
11697 if test $ac_cv_header_stdc = yes; then
11698 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11700 /* end confdefs.h. */
11701 #include <stdlib.h>
11704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11705 $EGREP "free" >/dev/null 2>&1; then :
11708 ac_cv_header_stdc=no
11714 if test $ac_cv_header_stdc = yes; then
11715 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11716 if test "$cross_compiling" = yes; then :
11719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11720 /* end confdefs.h. */
11722 #include <stdlib.h>
11723 #if ((' ' & 0x0FF) == 0x020)
11724 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11725 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11727 # define ISLOWER(c) \
11728 (('a' <= (c) && (c) <= 'i') \
11729 || ('j' <= (c) && (c) <= 'r') \
11730 || ('s' <= (c) && (c) <= 'z'))
11731 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11734 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11739 for (i = 0; i < 256; i++)
11740 if (XOR (islower (i), ISLOWER (i))
11741 || toupper (i) != TOUPPER (i))
11746 if ac_fn_c_try_run "$LINENO"; then :
11749 ac_cv_header_stdc=no
11751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11752 conftest.$ac_objext conftest.beam conftest.$ac_ext
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11758 $as_echo "$ac_cv_header_stdc" >&6; }
11759 if test $ac_cv_header_stdc = yes; then
11761 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11765 for ac_func in memcpy
11767 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
11768 if test "x$ac_cv_func_memcpy" = x""yes; then :
11769 cat >>confdefs.h <<_ACEOF
11770 #define HAVE_MEMCPY 1
11776 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11777 # for constant arguments. Useless!
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11779 $as_echo_n "checking for working alloca.h... " >&6; }
11780 if test "${ac_cv_working_alloca_h+set}" = set; then :
11781 $as_echo_n "(cached) " >&6
11783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11784 /* end confdefs.h. */
11785 #include <alloca.h>
11789 char *p = (char *) alloca (2 * sizeof (int));
11795 if ac_fn_c_try_link "$LINENO"; then :
11796 ac_cv_working_alloca_h=yes
11798 ac_cv_working_alloca_h=no
11800 rm -f core conftest.err conftest.$ac_objext \
11801 conftest$ac_exeext conftest.$ac_ext
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11804 $as_echo "$ac_cv_working_alloca_h" >&6; }
11805 if test $ac_cv_working_alloca_h = yes; then
11807 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11812 $as_echo_n "checking for alloca... " >&6; }
11813 if test "${ac_cv_func_alloca_works+set}" = set; then :
11814 $as_echo_n "(cached) " >&6
11816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11817 /* end confdefs.h. */
11819 # define alloca __builtin_alloca
11822 # include <malloc.h>
11823 # define alloca _alloca
11825 # ifdef HAVE_ALLOCA_H
11826 # include <alloca.h>
11831 # ifndef alloca /* predefined by HP cc +Olibcalls */
11842 char *p = (char *) alloca (1);
11848 if ac_fn_c_try_link "$LINENO"; then :
11849 ac_cv_func_alloca_works=yes
11851 ac_cv_func_alloca_works=no
11853 rm -f core conftest.err conftest.$ac_objext \
11854 conftest$ac_exeext conftest.$ac_ext
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11857 $as_echo "$ac_cv_func_alloca_works" >&6; }
11859 if test $ac_cv_func_alloca_works = yes; then
11861 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11864 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11865 # that cause trouble. Some versions do not even contain alloca or
11866 # contain a buggy version. If you still want to use their alloca,
11867 # use ar to extract alloca.o from them instead of compiling alloca.c.
11869 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
11871 $as_echo "#define C_ALLOCA 1" >>confdefs.h
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11875 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11876 if test "${ac_cv_os_cray+set}" = set; then :
11877 $as_echo_n "(cached) " >&6
11879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11880 /* end confdefs.h. */
11881 #if defined CRAY && ! defined CRAY2
11888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11889 $EGREP "webecray" >/dev/null 2>&1; then :
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
11898 $as_echo "$ac_cv_os_cray" >&6; }
11899 if test $ac_cv_os_cray = yes; then
11900 for ac_func in _getb67 GETB67 getb67; do
11901 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11902 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11903 eval as_val=\$$as_ac_var
11904 if test "x$as_val" = x""yes; then :
11906 cat >>confdefs.h <<_ACEOF
11907 #define CRAY_STACKSEG_END $ac_func
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11917 $as_echo_n "checking stack direction for C alloca... " >&6; }
11918 if test "${ac_cv_c_stack_direction+set}" = set; then :
11919 $as_echo_n "(cached) " >&6
11921 if test "$cross_compiling" = yes; then :
11922 ac_cv_c_stack_direction=0
11924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11925 /* end confdefs.h. */
11926 $ac_includes_default
11928 find_stack_direction ()
11930 static char *addr = 0;
11935 return find_stack_direction ();
11938 return (&dummy > addr) ? 1 : -1;
11944 return find_stack_direction () < 0;
11947 if ac_fn_c_try_run "$LINENO"; then :
11948 ac_cv_c_stack_direction=1
11950 ac_cv_c_stack_direction=-1
11952 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11953 conftest.$ac_objext conftest.beam conftest.$ac_ext
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11958 $as_echo "$ac_cv_c_stack_direction" >&6; }
11959 cat >>confdefs.h <<_ACEOF
11960 #define STACK_DIRECTION $ac_cv_c_stack_direction
11967 # The cast to long int works around a bug in the HP C Compiler
11968 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11969 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11970 # This bug is HP SR number 8606223364.
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
11972 $as_echo_n "checking size of double... " >&6; }
11973 if test "${ac_cv_sizeof_double+set}" = set; then :
11974 $as_echo_n "(cached) " >&6
11976 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
11979 if test "$ac_cv_type_double" = yes; then
11980 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11982 { as_fn_set_status 77
11983 as_fn_error "cannot compute sizeof (double)
11984 See \`config.log' for more details." "$LINENO" 5; }; }
11986 ac_cv_sizeof_double=0
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
11992 $as_echo "$ac_cv_sizeof_double" >&6; }
11996 cat >>confdefs.h <<_ACEOF
11997 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
12001 # The cast to long int works around a bug in the HP C Compiler
12002 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12003 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12004 # This bug is HP SR number 8606223364.
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
12006 $as_echo_n "checking size of long double... " >&6; }
12007 if test "${ac_cv_sizeof_long_double+set}" = set; then :
12008 $as_echo_n "(cached) " >&6
12010 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
12013 if test "$ac_cv_type_long_double" = yes; then
12014 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12016 { as_fn_set_status 77
12017 as_fn_error "cannot compute sizeof (long double)
12018 See \`config.log' for more details." "$LINENO" 5; }; }
12020 ac_cv_sizeof_long_double=0
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
12026 $as_echo "$ac_cv_sizeof_long_double" >&6; }
12030 cat >>confdefs.h <<_ACEOF
12031 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12036 # Also AC_SUBST this variable for ffi.h.
12037 if test -z "$HAVE_LONG_DOUBLE"; then
12039 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
12040 if test $ac_cv_sizeof_long_double != 0; then
12043 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12051 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12052 if test "${ac_cv_c_bigendian+set}" = set; then :
12053 $as_echo_n "(cached) " >&6
12055 ac_cv_c_bigendian=unknown
12056 # See if we're dealing with a universal compiler.
12057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12058 /* end confdefs.h. */
12059 #ifndef __APPLE_CC__
12060 not a universal capable compiler
12065 if ac_fn_c_try_compile "$LINENO"; then :
12067 # Check for potential -arch flags. It is not universal unless
12068 # there are at least two -arch flags with different values.
12071 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12072 if test -n "$ac_prev"; then
12074 i?86 | x86_64 | ppc | ppc64)
12075 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12078 ac_cv_c_bigendian=universal
12084 elif test "x$ac_word" = "x-arch"; then
12089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12090 if test $ac_cv_c_bigendian = unknown; then
12091 # See if sys/param.h defines the BYTE_ORDER macro.
12092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12093 /* end confdefs.h. */
12094 #include <sys/types.h>
12095 #include <sys/param.h>
12100 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12101 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12103 bogus endian macros
12110 if ac_fn_c_try_compile "$LINENO"; then :
12111 # It does; now see whether it defined to BIG_ENDIAN or not.
12112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12113 /* end confdefs.h. */
12114 #include <sys/types.h>
12115 #include <sys/param.h>
12120 #if BYTE_ORDER != BIG_ENDIAN
12128 if ac_fn_c_try_compile "$LINENO"; then :
12129 ac_cv_c_bigendian=yes
12131 ac_cv_c_bigendian=no
12133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12137 if test $ac_cv_c_bigendian = unknown; then
12138 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12140 /* end confdefs.h. */
12141 #include <limits.h>
12146 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12147 bogus endian macros
12154 if ac_fn_c_try_compile "$LINENO"; then :
12155 # It does; now see whether it defined to _BIG_ENDIAN or not.
12156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12157 /* end confdefs.h. */
12158 #include <limits.h>
12163 #ifndef _BIG_ENDIAN
12171 if ac_fn_c_try_compile "$LINENO"; then :
12172 ac_cv_c_bigendian=yes
12174 ac_cv_c_bigendian=no
12176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12180 if test $ac_cv_c_bigendian = unknown; then
12181 # Compile a test program.
12182 if test "$cross_compiling" = yes; then :
12183 # Try to guess by grepping values from an object file.
12184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12185 /* end confdefs.h. */
12186 short int ascii_mm[] =
12187 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12188 short int ascii_ii[] =
12189 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12190 int use_ascii (int i) {
12191 return ascii_mm[i] + ascii_ii[i];
12193 short int ebcdic_ii[] =
12194 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12195 short int ebcdic_mm[] =
12196 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12197 int use_ebcdic (int i) {
12198 return ebcdic_mm[i] + ebcdic_ii[i];
12205 return use_ascii (foo) == use_ebcdic (foo);
12210 if ac_fn_c_try_compile "$LINENO"; then :
12211 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12212 ac_cv_c_bigendian=yes
12214 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12215 if test "$ac_cv_c_bigendian" = unknown; then
12216 ac_cv_c_bigendian=no
12218 # finding both strings is unlikely to happen, but who knows?
12219 ac_cv_c_bigendian=unknown
12223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12226 /* end confdefs.h. */
12227 $ac_includes_default
12232 /* Are we little or big endian? From Harbison&Steele. */
12236 char c[sizeof (long int)];
12239 return u.c[sizeof (long int) - 1] == 1;
12245 if ac_fn_c_try_run "$LINENO"; then :
12246 ac_cv_c_bigendian=no
12248 ac_cv_c_bigendian=yes
12250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12251 conftest.$ac_objext conftest.beam conftest.$ac_ext
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12257 $as_echo "$ac_cv_c_bigendian" >&6; }
12258 case $ac_cv_c_bigendian in #(
12260 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12266 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12270 as_fn_error "unknown endianness
12271 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
12276 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
12277 if test "${libffi_cv_as_cfi_pseudo_op+set}" = set; then :
12278 $as_echo_n "(cached) " >&6
12281 libffi_cv_as_cfi_pseudo_op=unknown
12282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12283 /* end confdefs.h. */
12284 asm (".cfi_startproc\n\t.cfi_endproc");
12293 if ac_fn_c_try_compile "$LINENO"; then :
12294 libffi_cv_as_cfi_pseudo_op=yes
12296 libffi_cv_as_cfi_pseudo_op=no
12298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_cfi_pseudo_op" >&5
12302 $as_echo "$libffi_cv_as_cfi_pseudo_op" >&6; }
12303 if test "x$libffi_cv_as_cfi_pseudo_op" = xyes; then
12305 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
12309 if test x$TARGET = xSPARC; then
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
12311 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
12312 if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then :
12313 $as_echo_n "(cached) " >&6
12316 save_CFLAGS="$CFLAGS"
12317 save_LDFLAGS="$LDFLAGS"
12318 CFLAGS="$CFLAGS -fpic"
12319 LDFLAGS="$LDFLAGS -shared"
12320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12321 /* end confdefs.h. */
12322 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
12331 if ac_fn_c_try_link "$LINENO"; then :
12332 libffi_cv_as_sparc_ua_pcrel=yes
12334 libffi_cv_as_sparc_ua_pcrel=no
12336 rm -f core conftest.err conftest.$ac_objext \
12337 conftest$ac_exeext conftest.$ac_ext
12338 CFLAGS="$save_CFLAGS"
12339 LDFLAGS="$save_LDFLAGS"
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
12342 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
12343 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
12345 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
12350 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
12351 if test "${libffi_cv_as_register_pseudo_op+set}" = set; then :
12352 $as_echo_n "(cached) " >&6
12355 libffi_cv_as_register_pseudo_op=unknown
12356 # Check if we have .register
12357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12358 /* end confdefs.h. */
12359 asm (".register %g2, #scratch");
12368 if ac_fn_c_try_compile "$LINENO"; then :
12369 libffi_cv_as_register_pseudo_op=yes
12371 libffi_cv_as_register_pseudo_op=no
12373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
12377 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
12378 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
12380 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
12385 if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
12387 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
12388 if test "${libffi_cv_as_x86_pcrel+set}" = set; then :
12389 $as_echo_n "(cached) " >&6
12392 libffi_cv_as_x86_pcrel=yes
12393 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
12394 if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
12395 libffi_cv_as_x86_pcrel=no
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
12400 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
12401 if test "x$libffi_cv_as_x86_pcrel" = xyes; then
12403 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
12409 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
12410 if test "${libffi_cv_ro_eh_frame+set}" = set; then :
12411 $as_echo_n "(cached) " >&6
12414 libffi_cv_ro_eh_frame=no
12415 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
12416 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
12417 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
12418 libffi_cv_ro_eh_frame=yes
12419 elif grep '.section.*eh_frame.*#alloc' conftest.c \
12420 | grep -v '#write' > /dev/null; then
12421 libffi_cv_ro_eh_frame=yes
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
12428 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
12429 if test "x$libffi_cv_ro_eh_frame" = xyes; then
12431 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
12434 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
12438 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
12443 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
12444 if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then :
12445 $as_echo_n "(cached) " >&6
12448 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
12449 libffi_cv_hidden_visibility_attribute=no
12450 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
12451 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12452 (eval $ac_try) 2>&5
12454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12455 test $ac_status = 0; }; }; then
12456 if grep '\.hidden.*foo' conftest.s >/dev/null; then
12457 libffi_cv_hidden_visibility_attribute=yes
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
12464 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
12465 if test $libffi_cv_hidden_visibility_attribute = yes; then
12467 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
12478 # Check whether --enable-debug was given.
12479 if test "${enable_debug+set}" = set; then :
12480 enableval=$enable_debug; if test "$enable_debug" = "yes"; then
12482 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
12488 # Check whether --enable-structs was given.
12489 if test "${enable_structs+set}" = set; then :
12490 enableval=$enable_structs; if test "$enable_structs" = "no"; then
12492 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
12498 # Check whether --enable-raw-api was given.
12499 if test "${enable_raw_api+set}" = set; then :
12500 enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
12502 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
12508 # Check whether --enable-purify-safety was given.
12509 if test "${enable_purify_safety+set}" = set; then :
12510 enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
12512 $as_echo "#define USING_PURIFY 1" >>confdefs.h
12518 if test -n "$with_cross_host" &&
12519 test x"$with_cross_host" != x"no"; then
12520 toolexecdir='$(exec_prefix)/$(target_alias)'
12521 toolexeclibdir='$(toolexecdir)/lib'
12523 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
12524 toolexeclibdir='$(libdir)'
12526 multi_os_directory=`$CC -print-multi-os-directory`
12527 case $multi_os_directory in
12528 .) ;; # Avoid trailing /.
12529 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
12534 if test "${multilib}" = "yes"; then
12535 multilib_arg="--enable-multilib"
12540 ac_config_commands="$ac_config_commands include"
12542 ac_config_commands="$ac_config_commands src"
12545 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
12548 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile"
12551 cat >confcache <<\_ACEOF
12552 # This file is a shell script that caches the results of configure
12553 # tests run on this system so they can be shared between configure
12554 # scripts and configure runs, see configure's option --config-cache.
12555 # It is not useful on other systems. If it contains results you don't
12556 # want to keep, you may remove or edit it.
12558 # config.status only pays attention to the cache file if you give it
12559 # the --recheck option to rerun configure.
12561 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12562 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12563 # following values.
12567 # The following way of writing the cache mishandles newlines in values,
12568 # but we know of no workaround that is simple, portable, and efficient.
12569 # So, we kill variables containing newlines.
12570 # Ultrix sh set writes to stderr and can't be redirected directly,
12571 # and sets the high bit in the cache file unless we assign to the vars.
12573 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12574 eval ac_val=\$$ac_var
12578 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12579 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12582 _ | IFS | as_nl) ;; #(
12583 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12584 *) { eval $ac_var=; unset $ac_var;} ;;
12590 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12591 *${as_nl}ac_space=\ *)
12592 # `set' does not quote correctly, so add quotes: double-quote
12593 # substitution turns \\\\ into \\, and sed turns \\ into \.
12596 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12599 # `set' quotes correctly as required by POSIX, so do not add quotes.
12600 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12609 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12611 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12613 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12614 if test -w "$cache_file"; then
12615 test "x$cache_file" != "x/dev/null" &&
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12617 $as_echo "$as_me: updating cache $cache_file" >&6;}
12618 cat confcache >$cache_file
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12621 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12626 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12627 # Let make expand exec_prefix.
12628 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12630 DEFS=-DHAVE_CONFIG_H
12634 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12635 # 1. Remove the extension, and $U if already installed.
12636 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12637 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12638 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12639 # will be set to the directory where LIBOBJS objects are built.
12640 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12641 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12643 LIBOBJS=$ac_libobjs
12645 LTLIBOBJS=$ac_ltlibobjs
12648 if test -n "$EXEEXT"; then
12650 am__EXEEXT_FALSE='#'
12652 am__EXEEXT_TRUE='#'
12656 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12657 as_fn_error "conditional \"AMDEP\" was never defined.
12658 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12660 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12661 as_fn_error "conditional \"am__fastdepCC\" was never defined.
12662 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12664 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
12665 as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
12666 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12668 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12669 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12670 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12672 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
12673 as_fn_error "conditional \"TESTSUBDIR\" was never defined.
12674 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12676 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
12677 as_fn_error "conditional \"MIPS\" was never defined.
12678 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12680 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
12681 as_fn_error "conditional \"SPARC\" was never defined.
12682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12684 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
12685 as_fn_error "conditional \"X86\" was never defined.
12686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12688 if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
12689 as_fn_error "conditional \"X86_FREEBSD\" was never defined.
12690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12692 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
12693 as_fn_error "conditional \"X86_WIN32\" was never defined.
12694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12696 if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
12697 as_fn_error "conditional \"X86_WIN64\" was never defined.
12698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12700 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
12701 as_fn_error "conditional \"X86_DARWIN\" was never defined.
12702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12704 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
12705 as_fn_error "conditional \"ALPHA\" was never defined.
12706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12708 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
12709 as_fn_error "conditional \"IA64\" was never defined.
12710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12712 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
12713 as_fn_error "conditional \"M32R\" was never defined.
12714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12716 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
12717 as_fn_error "conditional \"M68K\" was never defined.
12718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12720 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
12721 as_fn_error "conditional \"POWERPC\" was never defined.
12722 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12724 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
12725 as_fn_error "conditional \"POWERPC_AIX\" was never defined.
12726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12728 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
12729 as_fn_error "conditional \"POWERPC_DARWIN\" was never defined.
12730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12732 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
12733 as_fn_error "conditional \"POWERPC_FREEBSD\" was never defined.
12734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12736 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
12737 as_fn_error "conditional \"ARM\" was never defined.
12738 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12740 if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
12741 as_fn_error "conditional \"AVR32\" was never defined.
12742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12744 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
12745 as_fn_error "conditional \"LIBFFI_CRIS\" was never defined.
12746 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12748 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
12749 as_fn_error "conditional \"FRV\" was never defined.
12750 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12752 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
12753 as_fn_error "conditional \"S390\" was never defined.
12754 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12756 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
12757 as_fn_error "conditional \"X86_64\" was never defined.
12758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12760 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
12761 as_fn_error "conditional \"SH\" was never defined.
12762 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12764 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
12765 as_fn_error "conditional \"SH64\" was never defined.
12766 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12768 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
12769 as_fn_error "conditional \"PA_LINUX\" was never defined.
12770 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12772 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
12773 as_fn_error "conditional \"PA_HPUX\" was never defined.
12774 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12776 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
12777 as_fn_error "conditional \"PA64_HPUX\" was never defined.
12778 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12782 : ${CONFIG_STATUS=./config.status}
12784 ac_clean_files_save=$ac_clean_files
12785 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12787 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12789 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12791 # Generated by $as_me.
12792 # Run this file to recreate the current configuration.
12793 # Compiler output produced by configure, useful for debugging
12794 # configure, is in config.log if it exists.
12797 ac_cs_recheck=false
12800 SHELL=\${CONFIG_SHELL-$SHELL}
12803 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12804 ## -------------------- ##
12805 ## M4sh Initialization. ##
12806 ## -------------------- ##
12808 # Be more Bourne compatible
12809 DUALCASE=1; export DUALCASE # for MKS sh
12810 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12813 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12814 # is contrary to our usage. Disable this feature.
12815 alias -g '${1+"$@"}'='"$@"'
12816 setopt NO_GLOB_SUBST
12818 case `(set -o) 2>/dev/null` in #(
12830 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12831 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12832 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12833 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12834 # Prefer a ksh shell builtin over an external printf program on Solaris,
12835 # but without wasting forks for bash or zsh.
12836 if test -z "$BASH_VERSION$ZSH_VERSION" \
12837 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12838 as_echo='print -r --'
12839 as_echo_n='print -rn --'
12840 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12841 as_echo='printf %s\n'
12842 as_echo_n='printf %s'
12844 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12845 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12846 as_echo_n='/usr/ucb/echo -n'
12848 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12849 as_echo_n_body='eval
12853 expr "X$arg" : "X\\(.*\\)$as_nl";
12854 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12856 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12858 export as_echo_n_body
12859 as_echo_n='sh -c $as_echo_n_body as_echo'
12861 export as_echo_body
12862 as_echo='sh -c $as_echo_body as_echo'
12865 # The user is always right.
12866 if test "${PATH_SEPARATOR+set}" != set; then
12868 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12869 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12876 # We need space, tab and new line, in precisely that order. Quoting is
12877 # there to prevent editors from complaining about space-tab.
12878 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12879 # splitting by setting IFS to empty value.)
12882 # Find who we are. Look in the path if we contain no directory separator.
12884 *[\\/]* ) as_myself=$0 ;;
12885 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12886 for as_dir in $PATH
12889 test -z "$as_dir" && as_dir=.
12890 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12896 # We did not find ourselves, most probably we were run as `sh COMMAND'
12897 # in which case we are not to be found in the path.
12898 if test "x$as_myself" = x; then
12901 if test ! -f "$as_myself"; then
12902 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12906 # Unset variables that we do not need and which cause bugs (e.g. in
12907 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12908 # suppresses any "Segmentation fault" message there. '((' could
12909 # trigger a bug in pdksh 5.2.14.
12910 for as_var in BASH_ENV ENV MAIL MAILPATH
12911 do eval test x\${$as_var+set} = xset \
12912 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12925 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12928 # as_fn_error ERROR [LINENO LOG_FD]
12929 # ---------------------------------
12930 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12931 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12932 # script with status $?, using 1 if that was 0.
12935 as_status=$?; test $as_status -eq 0 && as_status=1
12937 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12938 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12940 $as_echo "$as_me: error: $1" >&2
12941 as_fn_exit $as_status
12945 # as_fn_set_status STATUS
12946 # -----------------------
12947 # Set $? to STATUS, without forking.
12948 as_fn_set_status ()
12951 } # as_fn_set_status
12953 # as_fn_exit STATUS
12954 # -----------------
12955 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12959 as_fn_set_status $1
12965 # Portably unset VAR.
12968 { eval $1=; unset $1;}
12970 as_unset=as_fn_unset
12971 # as_fn_append VAR VALUE
12972 # ----------------------
12973 # Append the text in VALUE to the end of the definition contained in VAR. Take
12974 # advantage of any shell optimizations that allow amortized linear growth over
12975 # repeated appends, instead of the typical quadratic growth present in naive
12977 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12978 eval 'as_fn_append ()
12989 # as_fn_arith ARG...
12990 # ------------------
12991 # Perform arithmetic evaluation on the ARGs, and store the result in the
12992 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12993 # must be portable across $(()) and expr.
12994 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12995 eval 'as_fn_arith ()
13002 as_val=`expr "$@" || test $? -eq 1`
13007 if expr a : '\(a\)' >/dev/null 2>&1 &&
13008 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13014 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13015 as_basename=basename
13020 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13026 as_me=`$as_basename -- "$0" ||
13027 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13028 X"$0" : 'X\(//\)$' \| \
13029 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13031 sed '/^.*\/\([^/][^/]*\)\/*$/{
13045 # Avoid depending upon Character Ranges.
13046 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13047 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13048 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13049 as_cr_digits='0123456789'
13050 as_cr_alnum=$as_cr_Letters$as_cr_digits
13052 ECHO_C= ECHO_N= ECHO_T=
13053 case `echo -n x` in #(((((
13055 case `echo 'xy\c'` in
13056 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13058 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13065 rm -f conf$$ conf$$.exe conf$$.file
13066 if test -d conf$$.dir; then
13067 rm -f conf$$.dir/conf$$.file
13070 mkdir conf$$.dir 2>/dev/null
13072 if (echo >conf$$.file) 2>/dev/null; then
13073 if ln -s conf$$.file conf$$ 2>/dev/null; then
13075 # ... but there are two gotchas:
13076 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13077 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13078 # In both cases, we have to default to `cp -p'.
13079 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13081 elif ln conf$$.file conf$$ 2>/dev/null; then
13089 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13090 rmdir conf$$.dir 2>/dev/null
13095 # Create "$as_dir" as a directory, including parents if necessary.
13100 -*) as_dir=./$as_dir;;
13102 test -d "$as_dir" || eval $as_mkdir_p || {
13106 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13107 *) as_qdir=$as_dir;;
13109 as_dirs="'$as_qdir' $as_dirs"
13110 as_dir=`$as_dirname -- "$as_dir" ||
13111 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13112 X"$as_dir" : 'X\(//\)[^/]' \| \
13113 X"$as_dir" : 'X\(//\)$' \| \
13114 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13115 $as_echo X"$as_dir" |
13116 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13120 /^X\(\/\/\)[^/].*/{
13133 test -d "$as_dir" && break
13135 test -z "$as_dirs" || eval "mkdir $as_dirs"
13136 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13140 if mkdir -p . 2>/dev/null; then
13141 as_mkdir_p='mkdir -p "$as_dir"'
13143 test -d ./-p && rmdir ./-p
13147 if test -x / >/dev/null 2>&1; then
13148 as_test_x='test -x'
13150 if ls -dL / >/dev/null 2>&1; then
13157 if test -d "$1"; then
13163 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13164 ???[sx]*):;;*)false;;esac;fi
13168 as_executable_p=$as_test_x
13170 # Sed expression to map a string onto a valid CPP name.
13171 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13173 # Sed expression to map a string onto a valid variable name.
13174 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13178 ## ----------------------------------- ##
13179 ## Main body of $CONFIG_STATUS script. ##
13180 ## ----------------------------------- ##
13182 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13185 # Save the log message, to keep $0 and so on meaningful, and to
13186 # report actual input values of CONFIG_FILES etc. instead of their
13187 # values after options handling.
13189 This file was extended by libffi $as_me 3.0.8, which was
13190 generated by GNU Autoconf 2.64. Invocation command line was
13192 CONFIG_FILES = $CONFIG_FILES
13193 CONFIG_HEADERS = $CONFIG_HEADERS
13194 CONFIG_LINKS = $CONFIG_LINKS
13195 CONFIG_COMMANDS = $CONFIG_COMMANDS
13198 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13203 case $ac_config_files in *"
13204 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13207 case $ac_config_headers in *"
13208 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13212 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13213 # Files that config.status was made for.
13214 config_files="$ac_config_files"
13215 config_headers="$ac_config_headers"
13216 config_links="$ac_config_links"
13217 config_commands="$ac_config_commands"
13221 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13223 \`$as_me' instantiates files and other configuration actions
13224 from templates according to the current configuration. Unless the files
13225 and actions are specified as TAGs, all are instantiated by default.
13227 Usage: $0 [OPTION]... [TAG]...
13229 -h, --help print this help, then exit
13230 -V, --version print version number and configuration settings, then exit
13231 -q, --quiet, --silent
13232 do not print progress messages
13233 -d, --debug don't remove temporary files
13234 --recheck update $as_me by reconfiguring in the same conditions
13235 --file=FILE[:TEMPLATE]
13236 instantiate the configuration file FILE
13237 --header=FILE[:TEMPLATE]
13238 instantiate the configuration header FILE
13240 Configuration files:
13243 Configuration headers:
13246 Configuration links:
13249 Configuration commands:
13252 Report bugs to <http://gcc.gnu.org/bugs.html>."
13255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13257 libffi config.status 3.0.8
13258 configured by $0, generated by GNU Autoconf 2.64,
13259 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13261 Copyright (C) 2009 Free Software Foundation, Inc.
13262 This config.status script is free software; the Free Software Foundation
13263 gives unlimited permission to copy, distribute and modify it."
13270 test -n "\$AWK" || AWK=awk
13273 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13274 # The default lists apply if the user does not specify any file.
13280 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13281 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13292 # Handling of the options.
13293 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13295 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13296 $as_echo "$ac_cs_version"; exit ;;
13297 --debug | --debu | --deb | --de | --d | -d )
13299 --file | --fil | --fi | --f )
13302 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13304 as_fn_append CONFIG_FILES " '$ac_optarg'"
13305 ac_need_defaults=false;;
13306 --header | --heade | --head | --hea )
13309 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13311 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13312 ac_need_defaults=false;;
13314 # Conflict between --help and --header
13315 as_fn_error "ambiguous option: \`$1'
13316 Try \`$0 --help' for more information.";;
13317 --help | --hel | -h )
13318 $as_echo "$ac_cs_usage"; exit ;;
13319 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13320 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13323 # This is an error.
13324 -*) as_fn_error "unrecognized option: \`$1'
13325 Try \`$0 --help' for more information." ;;
13327 *) as_fn_append ac_config_targets " $1"
13328 ac_need_defaults=false ;;
13334 ac_configure_extra_args=
13336 if $ac_cs_silent; then
13338 ac_configure_extra_args="$ac_configure_extra_args --silent"
13342 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13343 if \$ac_cs_recheck; then
13344 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13346 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13347 CONFIG_SHELL='$SHELL'
13348 export CONFIG_SHELL
13353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13357 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13358 ## Running $as_me. ##
13364 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13372 with_multisubdir="$with_multisubdir"
13373 with_multisrctop="$with_multisrctop"
13374 with_target_subdir="$with_target_subdir"
13375 ac_configure_args="${multilib_arg} ${ac_configure_args}"
13376 multi_basedir="$multi_basedir"
13377 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13380 GFORTRAN="$GFORTRAN"
13382 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13385 # The HP-UX ksh and POSIX shell print the target directory to stdout
13386 # if CDPATH is set.
13387 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13389 sed_quote_subst='$sed_quote_subst'
13390 double_quote_subst='$double_quote_subst'
13391 delay_variable_subst='$delay_variable_subst'
13392 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13393 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13394 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13395 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13396 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13397 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13398 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13399 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13400 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13401 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13402 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13403 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13404 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13405 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13406 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13407 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13408 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13409 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13410 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13411 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13412 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13413 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13414 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13415 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13416 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13417 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13418 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13419 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13420 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13421 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13422 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13423 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13424 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13425 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13426 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13427 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13428 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13429 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13430 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13431 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13432 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13433 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13434 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13435 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13436 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13437 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13438 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13439 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13440 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"`'
13441 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13442 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13443 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13444 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13445 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13446 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13447 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13448 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13449 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13450 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13451 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13452 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13453 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13454 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13455 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13456 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13457 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13458 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13459 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13460 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13461 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13462 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13463 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13464 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13465 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13466 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13467 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13468 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13469 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13470 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13471 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13472 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13473 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13474 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13475 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13476 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13477 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13478 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13479 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13480 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13481 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13482 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13483 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13484 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13485 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13486 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13487 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13488 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13489 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13490 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13491 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13492 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13493 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13494 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13495 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13496 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13497 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13498 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13499 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13500 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13501 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13502 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13503 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13504 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13505 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13506 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13507 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13508 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13509 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13510 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13511 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13514 LTCFLAGS='$LTCFLAGS'
13515 compiler='$compiler_DEFAULT'
13517 # A function that is used when there is no print builtin or printf.
13518 func_fallback_echo ()
13520 eval 'cat <<_LTECHO_EOF
13525 # Quote evaled strings.
13539 deplibs_check_method \
13548 lt_cv_sys_global_symbol_pipe \
13549 lt_cv_sys_global_symbol_to_cdecl \
13550 lt_cv_sys_global_symbol_to_c_name_address \
13551 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13552 lt_prog_compiler_no_builtin_flag \
13553 lt_prog_compiler_wl \
13554 lt_prog_compiler_pic \
13555 lt_prog_compiler_static \
13556 lt_cv_prog_compiler_c_o \
13564 export_dynamic_flag_spec \
13565 whole_archive_flag_spec \
13566 compiler_needs_object \
13568 allow_undefined_flag \
13569 no_undefined_flag \
13570 hardcode_libdir_flag_spec \
13571 hardcode_libdir_flag_spec_ld \
13572 hardcode_libdir_separator \
13577 variables_saved_for_relink \
13579 library_names_spec \
13581 install_override_mode \
13585 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13586 *[\\\\\\\`\\"\\\$]*)
13587 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13590 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13595 # Double-quote double-evaled strings.
13596 for var in reload_cmds \
13597 old_postinstall_cmds \
13598 old_postuninstall_cmds \
13600 extract_expsyms_cmds \
13601 old_archive_from_new_cmds \
13602 old_archive_from_expsyms_cmds \
13604 archive_expsym_cmds \
13606 module_expsym_cmds \
13607 export_symbols_cmds \
13610 postuninstall_cmds \
13612 sys_lib_search_path_spec \
13613 sys_lib_dlsearch_path_spec; do
13614 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13615 *[\\\\\\\`\\"\\\$]*)
13616 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13619 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13624 ac_aux_dir='$ac_aux_dir'
13625 xsi_shell='$xsi_shell'
13626 lt_shell_append='$lt_shell_append'
13628 # See if we are running on zsh, and set the options which allow our
13629 # commands through without removal of \ escapes INIT.
13630 if test -n "\${ZSH_VERSION+set}" ; then
13631 setopt NO_GLOB_SUBST
13637 TIMESTAMP='$TIMESTAMP'
13643 TARGETDIR="$TARGETDIR"
13647 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13649 # Handling of arguments.
13650 for ac_config_target in $ac_config_targets
13652 case $ac_config_target in
13653 "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
13654 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13655 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13656 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13657 "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
13658 "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
13659 "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
13660 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13661 "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
13662 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13663 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
13664 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13666 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13671 # If the user did not use the arguments to specify the items to instantiate,
13672 # then the envvar interface is used. Set only those that are not.
13673 # We use the long form for the default assignment because of an extremely
13674 # bizarre bug on SunOS 4.1.3.
13675 if $ac_need_defaults; then
13676 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13677 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13678 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
13679 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13682 # Have a temporary directory for convenience. Make it in the build tree
13683 # simply because there is no reason against having it here, and in addition,
13684 # creating and moving files from /tmp can sometimes cause problems.
13685 # Hook for its removal unless debugging.
13686 # Note that there is a small window in which the directory will not be cleaned:
13687 # after its creation but before its name has been assigned to `$tmp'.
13691 trap 'exit_status=$?
13692 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13694 trap 'as_fn_exit 1' 1 2 13 15
13696 # Create a (secure) tmp directory for tmp files.
13699 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13700 test -n "$tmp" && test -d "$tmp"
13703 tmp=./conf$$-$RANDOM
13704 (umask 077 && mkdir "$tmp")
13705 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13707 # Set up the scripts for CONFIG_FILES section.
13708 # No need to generate them if there are no CONFIG_FILES.
13709 # This happens for instance with `./config.status config.h'.
13710 if test -n "$CONFIG_FILES"; then
13713 ac_cr=`echo X | tr X '\015'`
13714 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13715 # But we know of no other shell where ac_cr would be empty at this
13716 # point, so we can use a bashism as a fallback.
13717 if test "x$ac_cr" = x; then
13718 eval ac_cr=\$\'\\r\'
13720 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13721 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13724 ac_cs_awk_cr=$ac_cr
13727 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13732 echo "cat >conf$$subs.awk <<_ACEOF" &&
13733 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13735 } >conf$$subs.sh ||
13736 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13737 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13739 for ac_last_try in false false false false false :; do
13740 . ./conf$$subs.sh ||
13741 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13743 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13744 if test $ac_delim_n = $ac_delim_num; then
13746 elif $ac_last_try; then
13747 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13749 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13752 rm -f conf$$subs.sh
13754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13755 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13759 s/^/S["/; s/!.*/"]=/
13769 s/\(.\{148\}\).*/\1/
13771 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13776 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13783 s/\(.\{148\}\).*/\1/
13785 s/["\\]/\\&/g; s/^/"/; s/$/"/
13789 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13794 ' <conf$$subs.awk | sed '
13799 ' >>$CONFIG_STATUS || ac_write_fail=1
13800 rm -f conf$$subs.awk
13801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13803 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13804 for (key in S) S_is_set[key] = 1
13810 nfields = split(line, field, "@")
13812 len = length(field[1])
13813 for (i = 2; i < nfields; i++) {
13815 keylen = length(key)
13816 if (S_is_set[key]) {
13818 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13819 len += length(value) + length(field[++i])
13830 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13831 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13832 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13835 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13836 || as_fn_error "could not setup config files machinery" "$LINENO" 5
13839 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13840 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13841 # trailing colons and then remove the whole line if VPATH becomes empty
13842 # (actually we leave an empty line to preserve line numbers).
13843 if test "x$srcdir" = x.; then
13844 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13845 s/:*\$(srcdir):*/:/
13846 s/:*\${srcdir}:*/:/
13848 s/^\([^=]*=[ ]*\):*/\1/
13854 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13855 fi # test -n "$CONFIG_FILES"
13857 # Set up the scripts for CONFIG_HEADERS section.
13858 # No need to generate them if there are no CONFIG_HEADERS.
13859 # This happens for instance with `./config.status Makefile'.
13860 if test -n "$CONFIG_HEADERS"; then
13861 cat >"$tmp/defines.awk" <<\_ACAWK ||
13865 # Transform confdefs.h into an awk script `defines.awk', embedded as
13866 # here-document in config.status, that substitutes the proper values into
13867 # config.h.in to produce config.h.
13869 # Create a delimiter string that does not exist in confdefs.h, to ease
13870 # handling of long lines.
13872 for ac_last_try in false false :; do
13873 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13874 if test -z "$ac_t"; then
13876 elif $ac_last_try; then
13877 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13879 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13883 # For the awk script, D is an array of macro values keyed by name,
13884 # likewise P contains macro parameters if any. Preserve backslash
13885 # newline sequences.
13887 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13889 s/.\{148\}/&'"$ac_delim"'/g
13892 s/^[ ]*#[ ]*define[ ][ ]*/ /
13899 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13901 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13905 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13906 D["\1"]=" \3\\\\\\n"\\/p
13908 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13913 s/.\{148\}/&'"$ac_delim"'/g
13918 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13921 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13923 ' <confdefs.h | sed '
13924 s/'"$ac_delim"'/"\\\
13925 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13927 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13928 for (key in D) D_is_set[key] = 1
13931 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13933 split(line, arg, " ")
13934 if (arg[1] == "#") {
13938 defundef = substr(arg[1], 2)
13941 split(mac1, mac2, "(") #)
13943 prefix = substr(line, 1, index(line, defundef) - 1)
13944 if (D_is_set[macro]) {
13945 # Preserve the white space surrounding the "#".
13946 print prefix "define", macro P[macro] D[macro]
13949 # Replace #undef with comments. This is necessary, for example,
13950 # in the case of _POSIX_SOURCE, which is predefined and required
13951 # on some systems where configure will not decide to define it.
13952 if (defundef == "undef") {
13953 print "/*", prefix defundef, macro, "*/"
13961 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13962 as_fn_error "could not setup config headers machinery" "$LINENO" 5
13963 fi # test -n "$CONFIG_HEADERS"
13966 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
13971 :[FHLC]) ac_mode=$ac_tag; continue;;
13973 case $ac_mode$ac_tag in
13975 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13976 :[FH]-) ac_tag=-:-;;
13977 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13994 -) ac_f="$tmp/stdin";;
13995 *) # Look for the file first in the build tree, then in the source tree
13996 # (if the path is not absolute). The absolute path cannot be DOS-style,
13997 # because $ac_f cannot contain `:'.
14001 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14003 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14005 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14006 as_fn_append ac_file_inputs " '$ac_f'"
14009 # Let's still pretend it is `configure' which instantiates (i.e., don't
14010 # use $as_me), people would be surprised to read:
14011 # /* config.h. Generated by config.status. */
14012 configure_input='Generated from '`
14013 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14015 if test x"$ac_file" != x-; then
14016 configure_input="$ac_file. $configure_input"
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14018 $as_echo "$as_me: creating $ac_file" >&6;}
14020 # Neutralize special characters interpreted by sed in replacement strings.
14021 case $configure_input in #(
14022 *\&* | *\|* | *\\* )
14023 ac_sed_conf_input=`$as_echo "$configure_input" |
14024 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14025 *) ac_sed_conf_input=$configure_input;;
14029 *:-:* | *:-) cat >"$tmp/stdin" \
14030 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14035 ac_dir=`$as_dirname -- "$ac_file" ||
14036 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14037 X"$ac_file" : 'X\(//\)[^/]' \| \
14038 X"$ac_file" : 'X\(//\)$' \| \
14039 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14040 $as_echo X"$ac_file" |
14041 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14045 /^X\(\/\/\)[^/].*/{
14058 as_dir="$ac_dir"; as_fn_mkdir_p
14062 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14064 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14065 # A ".." for each directory in $ac_dir_suffix.
14066 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14067 case $ac_top_builddir_sub in
14068 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14069 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14072 ac_abs_top_builddir=$ac_pwd
14073 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14074 # for backward compatibility:
14075 ac_top_builddir=$ac_top_build_prefix
14078 .) # We are building in place.
14080 ac_top_srcdir=$ac_top_builddir_sub
14081 ac_abs_top_srcdir=$ac_pwd ;;
14082 [\\/]* | ?:[\\/]* ) # Absolute name.
14083 ac_srcdir=$srcdir$ac_dir_suffix;
14084 ac_top_srcdir=$srcdir
14085 ac_abs_top_srcdir=$srcdir ;;
14086 *) # Relative name.
14087 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14088 ac_top_srcdir=$ac_top_build_prefix$srcdir
14089 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14091 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14101 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14102 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14104 ac_MKDIR_P=$MKDIR_P
14106 [\\/$]* | ?:[\\/]* ) ;;
14107 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14112 # If the template does not know about datarootdir, expand it.
14113 # FIXME: This hack should be removed a few years after 2.60.
14114 ac_datarootdir_hack=; ac_datarootdir_seen=
14125 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14126 *datarootdir*) ac_datarootdir_seen=yes;;
14127 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14129 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14132 ac_datarootdir_hack='
14133 s&@datadir@&$datadir&g
14134 s&@docdir@&$docdir&g
14135 s&@infodir@&$infodir&g
14136 s&@localedir@&$localedir&g
14137 s&@mandir@&$mandir&g
14138 s&\\\${datarootdir}&$datarootdir&g' ;;
14142 # Neutralize VPATH when `$srcdir' = `.'.
14143 # Shell code in configure.ac might set extrasub.
14144 # FIXME: do we really want to maintain this feature?
14145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14146 ac_sed_extra="$ac_vpsub
14149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14151 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14152 s|@configure_input@|$ac_sed_conf_input|;t t
14153 s&@top_builddir@&$ac_top_builddir_sub&;t t
14154 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14155 s&@srcdir@&$ac_srcdir&;t t
14156 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14157 s&@top_srcdir@&$ac_top_srcdir&;t t
14158 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14159 s&@builddir@&$ac_builddir&;t t
14160 s&@abs_builddir@&$ac_abs_builddir&;t t
14161 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14162 s&@INSTALL@&$ac_INSTALL&;t t
14163 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14164 $ac_datarootdir_hack
14166 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14167 || as_fn_error "could not create $ac_file" "$LINENO" 5
14169 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14170 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14171 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14173 which seems to be undefined. Please make sure it is defined." >&5
14174 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14175 which seems to be undefined. Please make sure it is defined." >&2;}
14179 -) cat "$tmp/out" && rm -f "$tmp/out";;
14180 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14182 || as_fn_error "could not create $ac_file" "$LINENO" 5
14188 if test x"$ac_file" != x-; then
14190 $as_echo "/* $configure_input */" \
14191 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14192 } >"$tmp/config.h" \
14193 || as_fn_error "could not create $ac_file" "$LINENO" 5
14194 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14196 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14199 mv "$tmp/config.h" "$ac_file" \
14200 || as_fn_error "could not create $ac_file" "$LINENO" 5
14203 $as_echo "/* $configure_input */" \
14204 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14205 || as_fn_error "could not create -" "$LINENO" 5
14207 # Compute "$ac_file"'s index in $config_headers.
14210 for _am_header in $config_headers :; do
14211 case $_am_header in
14212 $_am_arg | $_am_arg:* )
14215 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14218 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14219 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14220 X"$_am_arg" : 'X\(//\)[^/]' \| \
14221 X"$_am_arg" : 'X\(//\)$' \| \
14222 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14223 $as_echo X"$_am_arg" |
14224 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14228 /^X\(\/\/\)[^/].*/{
14240 s/.*/./; q'`/stamp-h$_am_stamp_count
14247 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
14250 # Prefer the file from the source tree if names are identical.
14251 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
14252 ac_source=$srcdir/$ac_source
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
14256 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
14258 if test ! -r "$ac_source"; then
14259 as_fn_error "$ac_source: file not found" "$LINENO" 5
14263 # Try a relative symlink, then a hard link, then a copy.
14265 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
14266 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
14268 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
14269 ln "$ac_source" "$ac_file" 2>/dev/null ||
14270 cp -p "$ac_source" "$ac_file" ||
14271 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
14274 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14275 $as_echo "$as_me: executing $ac_file commands" >&6;}
14280 case $ac_file$ac_mode in
14282 # Only add multilib support code if we just rebuilt the top-level
14284 case " $CONFIG_FILES " in
14286 ac_file=Makefile . ${multi_basedir}/config-ml.in
14289 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14290 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14291 # are listed without --file. Let's play safe and only enable the eval
14292 # if we detect the quoting.
14293 case $CONFIG_FILES in
14294 *\'*) eval set x "$CONFIG_FILES" ;;
14295 *) set x $CONFIG_FILES ;;
14300 # Strip MF so we end up with the name of the file.
14301 mf=`echo "$mf" | sed -e 's/:.*$//'`
14302 # Check whether this is an Automake generated Makefile or not.
14303 # We used to match only the files named `Makefile.in', but
14304 # some people rename them; so instead we look at the file content.
14305 # Grep'ing the first line is not enough: some people post-process
14306 # each Makefile.in and add a new line on top of each file to say so.
14307 # Grep'ing the whole file is not good either: AIX grep has a line
14308 # limit of 2048, but all sed's we know have understand at least 4000.
14309 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14310 dirpart=`$as_dirname -- "$mf" ||
14311 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14312 X"$mf" : 'X\(//\)[^/]' \| \
14313 X"$mf" : 'X\(//\)$' \| \
14314 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14320 /^X\(\/\/\)[^/].*/{
14336 # Extract the definition of DEPDIR, am__include, and am__quote
14337 # from the Makefile without running `make'.
14338 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14339 test -z "$DEPDIR" && continue
14340 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14341 test -z "am__include" && continue
14342 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14343 # When using ansi2knr, U may be empty or an underscore; expand it
14344 U=`sed -n 's/^U = //p' < "$mf"`
14345 # Find all dependency output files, they are included files with
14346 # $(DEPDIR) in their names. We invoke sed twice because it is the
14347 # simplest approach to changing $(DEPDIR) to its actual value in the
14349 for file in `sed -n "
14350 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14351 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14352 # Make sure the directory exists.
14353 test -f "$dirpart/$file" && continue
14354 fdir=`$as_dirname -- "$file" ||
14355 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14356 X"$file" : 'X\(//\)[^/]' \| \
14357 X"$file" : 'X\(//\)$' \| \
14358 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14359 $as_echo X"$file" |
14360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14364 /^X\(\/\/\)[^/].*/{
14377 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14378 # echo "creating $dirpart/$file"
14379 echo '# dummy' > "$dirpart/$file"
14386 # See if we are running on zsh, and set the options which allow our
14387 # commands through without removal of \ escapes.
14388 if test -n "${ZSH_VERSION+set}" ; then
14389 setopt NO_GLOB_SUBST
14392 cfgfile="${ofile}T"
14393 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14396 cat <<_LT_EOF >> "$cfgfile"
14399 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14400 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14401 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14402 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14404 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14405 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14406 # Written by Gordon Matzigkeit, 1996
14408 # This file is part of GNU Libtool.
14410 # GNU Libtool is free software; you can redistribute it and/or
14411 # modify it under the terms of the GNU General Public License as
14412 # published by the Free Software Foundation; either version 2 of
14413 # the License, or (at your option) any later version.
14415 # As a special exception to the GNU General Public License,
14416 # if you distribute this file as part of a program or library that
14417 # is built using GNU Libtool, you may include this file under the
14418 # same distribution terms that you use for the rest of that program.
14420 # GNU Libtool is distributed in the hope that it will be useful,
14421 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14422 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14423 # GNU General Public License for more details.
14425 # You should have received a copy of the GNU General Public License
14426 # along with GNU Libtool; see the file COPYING. If not, a copy
14427 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14428 # obtained by writing to the Free Software Foundation, Inc.,
14429 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14432 # The names of the tagged configurations supported by this script.
14435 # ### BEGIN LIBTOOL CONFIG
14437 # Which release of libtool.m4 was used?
14438 macro_version=$macro_version
14439 macro_revision=$macro_revision
14441 # Whether or not to build shared libraries.
14442 build_libtool_libs=$enable_shared
14444 # Whether or not to build static libraries.
14445 build_old_libs=$enable_static
14447 # What type of objects to build.
14450 # Whether or not to optimize for fast installation.
14451 fast_install=$enable_fast_install
14453 # Shell to use when invoking shell scripts.
14456 # An echo program that protects backslashes.
14460 host_alias=$host_alias
14464 # The build system.
14465 build_alias=$build_alias
14469 # A sed program that does not truncate output.
14472 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14473 Xsed="\$SED -e 1s/^X//"
14475 # A grep program that handles long lines.
14481 # A literal string matcher.
14484 # A BSD- or MS-compatible name lister.
14487 # Whether we need soft or hard links.
14490 # What is the maximum length of a command?
14491 max_cmd_len=$max_cmd_len
14493 # Object file suffix (normally "o").
14496 # Executable file suffix (normally "").
14499 # whether the shell understands "unset".
14502 # turn spaces into newlines.
14505 # turn newlines into spaces.
14508 # An object symbol dumper.
14509 OBJDUMP=$lt_OBJDUMP
14511 # Method to check whether dependent libraries are shared objects.
14512 deplibs_check_method=$lt_deplibs_check_method
14514 # Command to use when deplibs_check_method == "file_magic".
14515 file_magic_cmd=$lt_file_magic_cmd
14519 AR_FLAGS=$lt_AR_FLAGS
14521 # A symbol stripping program.
14524 # Commands used to install an old-style archive.
14526 old_postinstall_cmds=$lt_old_postinstall_cmds
14527 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14529 # Whether to use a lock for old archive extraction.
14530 lock_old_archive_extraction=$lock_old_archive_extraction
14535 # LTCC compiler flags.
14536 LTCFLAGS=$lt_CFLAGS
14538 # Take the output of nm and produce a listing of raw symbols and C names.
14539 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14541 # Transform the output of nm in a proper C declaration.
14542 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14544 # Transform the output of nm in a C name address pair.
14545 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14547 # Transform the output of nm in a C name address pair when lib prefix is needed.
14548 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14550 # The name of the directory that contains temporary libtool files.
14553 # Used to examine libraries when file_magic_cmd begins with "file".
14554 MAGIC_CMD=$MAGIC_CMD
14556 # Must we lock files when doing compilation?
14557 need_locks=$lt_need_locks
14559 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14560 DSYMUTIL=$lt_DSYMUTIL
14562 # Tool to change global to local symbols on Mac OS X.
14565 # Tool to manipulate fat objects and archives on Mac OS X.
14568 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14571 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14572 OTOOL64=$lt_OTOOL64
14574 # Old archive suffix (normally "a").
14577 # Shared library suffix (normally ".so").
14578 shrext_cmds=$lt_shrext_cmds
14580 # The commands to extract the exported symbol list from a shared archive.
14581 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14583 # Variables whose values should be saved in libtool wrapper scripts and
14584 # restored at link time.
14585 variables_saved_for_relink=$lt_variables_saved_for_relink
14587 # Do we need the "lib" prefix for modules?
14588 need_lib_prefix=$need_lib_prefix
14590 # Do we need a version for libraries?
14591 need_version=$need_version
14593 # Library versioning type.
14594 version_type=$version_type
14596 # Shared library runtime path variable.
14597 runpath_var=$runpath_var
14599 # Shared library path variable.
14600 shlibpath_var=$shlibpath_var
14602 # Is shlibpath searched before the hard-coded library search path?
14603 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14605 # Format of library name prefix.
14606 libname_spec=$lt_libname_spec
14608 # List of archive names. First name is the real one, the rest are links.
14609 # The last name is the one that the linker finds with -lNAME
14610 library_names_spec=$lt_library_names_spec
14612 # The coded name of the library, if different from the real name.
14613 soname_spec=$lt_soname_spec
14615 # Permission mode override for installation of shared libraries.
14616 install_override_mode=$lt_install_override_mode
14618 # Command to use after installation of a shared archive.
14619 postinstall_cmds=$lt_postinstall_cmds
14621 # Command to use after uninstallation of a shared archive.
14622 postuninstall_cmds=$lt_postuninstall_cmds
14624 # Commands used to finish a libtool library installation in a directory.
14625 finish_cmds=$lt_finish_cmds
14627 # As "finish_cmds", except a single script fragment to be evaled but
14629 finish_eval=$lt_finish_eval
14631 # Whether we should hardcode library paths into libraries.
14632 hardcode_into_libs=$hardcode_into_libs
14634 # Compile-time system search path for libraries.
14635 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14637 # Run-time system search path for libraries.
14638 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14640 # Whether dlopen is supported.
14641 dlopen_support=$enable_dlopen
14643 # Whether dlopen of programs is supported.
14644 dlopen_self=$enable_dlopen_self
14646 # Whether dlopen of statically linked programs is supported.
14647 dlopen_self_static=$enable_dlopen_self_static
14649 # Commands to strip libraries.
14650 old_striplib=$lt_old_striplib
14651 striplib=$lt_striplib
14654 # The linker used to build libraries.
14657 # How to create reloadable object files.
14658 reload_flag=$lt_reload_flag
14659 reload_cmds=$lt_reload_cmds
14661 # Commands used to build an old-style archive.
14662 old_archive_cmds=$lt_old_archive_cmds
14664 # A language specific compiler.
14667 # Is the compiler the GNU compiler?
14670 # Compiler flag to turn off builtin functions.
14671 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14673 # How to pass a linker flag through the compiler.
14674 wl=$lt_lt_prog_compiler_wl
14676 # Additional compiler flags for building library objects.
14677 pic_flag=$lt_lt_prog_compiler_pic
14679 # Compiler flag to prevent dynamic linking.
14680 link_static_flag=$lt_lt_prog_compiler_static
14682 # Does compiler simultaneously support -c and -o options?
14683 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14685 # Whether or not to add -lc for building shared libraries.
14686 build_libtool_need_lc=$archive_cmds_need_lc
14688 # Whether or not to disallow shared libs when runtime libs are static.
14689 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14691 # Compiler flag to allow reflexive dlopens.
14692 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14694 # Compiler flag to generate shared objects directly from archives.
14695 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14697 # Whether the compiler copes with passing no objects directly.
14698 compiler_needs_object=$lt_compiler_needs_object
14700 # Create an old-style archive from a shared archive.
14701 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14703 # Create a temporary old-style archive to link instead of a shared archive.
14704 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14706 # Commands used to build a shared archive.
14707 archive_cmds=$lt_archive_cmds
14708 archive_expsym_cmds=$lt_archive_expsym_cmds
14710 # Commands used to build a loadable module if different from building
14711 # a shared archive.
14712 module_cmds=$lt_module_cmds
14713 module_expsym_cmds=$lt_module_expsym_cmds
14715 # Whether we are building with GNU ld or not.
14716 with_gnu_ld=$lt_with_gnu_ld
14718 # Flag that allows shared libraries with undefined symbols to be built.
14719 allow_undefined_flag=$lt_allow_undefined_flag
14721 # Flag that enforces no undefined symbols.
14722 no_undefined_flag=$lt_no_undefined_flag
14724 # Flag to hardcode \$libdir into a binary during linking.
14725 # This must work even if \$libdir does not exist
14726 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14728 # If ld is used when linking, flag to hardcode \$libdir into a binary
14729 # during linking. This must work even if \$libdir does not exist.
14730 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14732 # Whether we need a single "-rpath" flag with a separated argument.
14733 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14735 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14736 # DIR into the resulting binary.
14737 hardcode_direct=$hardcode_direct
14739 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14740 # DIR into the resulting binary and the resulting library dependency is
14741 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14742 # library is relocated.
14743 hardcode_direct_absolute=$hardcode_direct_absolute
14745 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14746 # into the resulting binary.
14747 hardcode_minus_L=$hardcode_minus_L
14749 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14750 # into the resulting binary.
14751 hardcode_shlibpath_var=$hardcode_shlibpath_var
14753 # Set to "yes" if building a shared library automatically hardcodes DIR
14754 # into the library and all subsequent libraries and executables linked
14756 hardcode_automatic=$hardcode_automatic
14758 # Set to yes if linker adds runtime paths of dependent libraries
14759 # to runtime path list.
14760 inherit_rpath=$inherit_rpath
14762 # Whether libtool must link a program against all its dependency libraries.
14763 link_all_deplibs=$link_all_deplibs
14765 # Fix the shell variable \$srcfile for the compiler.
14766 fix_srcfile_path=$lt_fix_srcfile_path
14768 # Set to "yes" if exported symbols are required.
14769 always_export_symbols=$always_export_symbols
14771 # The commands to list exported symbols.
14772 export_symbols_cmds=$lt_export_symbols_cmds
14774 # Symbols that should not be listed in the preloaded symbols.
14775 exclude_expsyms=$lt_exclude_expsyms
14777 # Symbols that must always be exported.
14778 include_expsyms=$lt_include_expsyms
14780 # Commands necessary for linking programs (against libraries) with templates.
14781 prelink_cmds=$lt_prelink_cmds
14783 # Specify filename containing input files.
14784 file_list_spec=$lt_file_list_spec
14786 # How to hardcode a shared library path into an executable.
14787 hardcode_action=$hardcode_action
14789 # ### END LIBTOOL CONFIG
14795 cat <<\_LT_EOF >> "$cfgfile"
14796 # AIX sometimes has problems with the GCC collect2 program. For some
14797 # reason, if we set the COLLECT_NAMES environment variable, the problems
14798 # vanish in a puff of smoke.
14799 if test "X${COLLECT_NAMES+set}" != Xset; then
14801 export COLLECT_NAMES
14808 ltmain="$ac_aux_dir/ltmain.sh"
14811 # We use sed instead of cat because bash on DJGPP gets confused if
14812 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14813 # text mode, it properly converts lines to CR/LF. This bash problem
14814 # is reportedly fixed, but why not run on old versions too?
14815 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14816 || (rm -f "$cfgfile"; exit 1)
14820 cat << \_LT_EOF >> "$cfgfile"
14822 # func_dirname file append nondir_replacement
14823 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14824 # otherwise set result to NONDIR_REPLACEMENT.
14828 */*) func_dirname_result="${1%/*}${2}" ;;
14829 * ) func_dirname_result="${3}" ;;
14833 # func_basename file
14836 func_basename_result="${1##*/}"
14839 # func_dirname_and_basename file append nondir_replacement
14840 # perform func_basename and func_dirname in a single function
14842 # dirname: Compute the dirname of FILE. If nonempty,
14843 # add APPEND to the result, otherwise set result
14844 # to NONDIR_REPLACEMENT.
14845 # value returned in "$func_dirname_result"
14846 # basename: Compute filename of FILE.
14847 # value retuned in "$func_basename_result"
14848 # Implementation must be kept synchronized with func_dirname
14849 # and func_basename. For efficiency, we do not delegate to
14850 # those functions but instead duplicate the functionality here.
14851 func_dirname_and_basename ()
14854 */*) func_dirname_result="${1%/*}${2}" ;;
14855 * ) func_dirname_result="${3}" ;;
14857 func_basename_result="${1##*/}"
14860 # func_stripname prefix suffix name
14861 # strip PREFIX and SUFFIX off of NAME.
14862 # PREFIX and SUFFIX must not contain globbing or regex special
14863 # characters, hashes, percent signs, but SUFFIX may contain a leading
14864 # dot (in which case that matches only a dot).
14867 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14868 # positional parameters, so assign one to ordinary parameter first.
14869 func_stripname_result=${3}
14870 func_stripname_result=${func_stripname_result#"${1}"}
14871 func_stripname_result=${func_stripname_result%"${2}"}
14877 func_opt_split_opt=${1%%=*}
14878 func_opt_split_arg=${1#*=}
14885 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14886 *) func_lo2o_result=${1} ;;
14890 # func_xform libobj-or-source
14893 func_xform_result=${1%.*}.lo
14896 # func_arith arithmetic-term...
14899 func_arith_result=$(( $* ))
14903 # STRING may not start with a hyphen.
14906 func_len_result=${#1}
14911 *) # Bourne compatible functions.
14912 cat << \_LT_EOF >> "$cfgfile"
14914 # func_dirname file append nondir_replacement
14915 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14916 # otherwise set result to NONDIR_REPLACEMENT.
14919 # Extract subdirectory from the argument.
14920 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14921 if test "X$func_dirname_result" = "X${1}"; then
14922 func_dirname_result="${3}"
14924 func_dirname_result="$func_dirname_result${2}"
14928 # func_basename file
14931 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14935 # func_stripname prefix suffix name
14936 # strip PREFIX and SUFFIX off of NAME.
14937 # PREFIX and SUFFIX must not contain globbing or regex special
14938 # characters, hashes, percent signs, but SUFFIX may contain a leading
14939 # dot (in which case that matches only a dot).
14940 # func_strip_suffix prefix name
14944 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14945 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14950 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14951 my_sed_long_arg='1s/^-[^=]*=//'
14956 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14957 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14963 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14966 # func_xform libobj-or-source
14969 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14972 # func_arith arithmetic-term...
14975 func_arith_result=`expr "$@"`
14979 # STRING may not start with a hyphen.
14982 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14988 case $lt_shell_append in
14990 cat << \_LT_EOF >> "$cfgfile"
14992 # func_append var value
14993 # Append VALUE to the end of shell variable VAR.
15001 cat << \_LT_EOF >> "$cfgfile"
15003 # func_append var value
15004 # Append VALUE to the end of shell variable VAR.
15015 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15016 || (rm -f "$cfgfile"; exit 1)
15018 mv -f "$cfgfile" "$ofile" ||
15019 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15023 "include":C) test -d include || mkdir include ;;
15025 test -d src || mkdir src
15026 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
15035 ac_clean_files=$ac_clean_files_save
15037 test $ac_write_fail = 0 ||
15038 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15041 # configure is writing to config.log, and then calls config.status.
15042 # config.status does its own redirection, appending to config.log.
15043 # Unfortunately, on DOS this fails, as config.log is still kept open
15044 # by configure, so config.status won't be able to write to it; its
15045 # output is simply discarded. So we exec the FD to /dev/null,
15046 # effectively closing config.log, so it can be properly (re)opened and
15047 # appended to by config.status. When coming back to configure, we
15048 # need to make the FD available again.
15049 if test "$no_create" != yes; then
15051 ac_config_status_args=
15052 test "$silent" = yes &&
15053 ac_config_status_args="$ac_config_status_args --quiet"
15055 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15057 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15058 # would make configure fail if this is the last instruction.
15059 $ac_cs_success || as_fn_exit $?
15061 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15063 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}