2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libffi 3.0.8.
5 # Report bugs to <http://gcc.gnu.org/bugs.html>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
24 DUALCASE
=1; export DUALCASE
# for MKS sh
26 # Support unset when possible.
27 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C
; export $as_var
53 # Required to use basename.
54 if expr a
: '\(a\)' >/dev
/null
2>&1; then
60 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me
=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits
='0123456789'
86 as_cr_alnum
=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
104 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself
=$0 ;;
111 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir
=.
116 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x
; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
133 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir
=.
137 for as_base
in sh bash ksh sh5
; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
146 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
147 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
148 CONFIG_SHELL
=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x
$as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c
*,-n*) ECHO_N
= ECHO_C
='
192 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
193 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
196 if expr a
: '\(a\)' >/dev
/null
2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.
file
204 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe
; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.
file conf$$
2>/dev
/null
; then
218 rm -f conf$$ conf$$.exe conf$$.
file
220 if mkdir
-p .
2>/dev
/null
; then
223 test -d .
/-p && rmdir .
/-p
227 as_executable_p
="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # Check that we are running under the correct shell.
248 SHELL
=${CONFIG_SHELL-/bin/sh}
252 # Remove one level of quotation (which was required for Make).
253 ECHO
=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
258 if test "X$1" = X--no-reexec
; then
259 # Discard the --no-reexec flag, and continue.
261 elif test "X$1" = X--fallback-echo
; then
262 # Avoid inline document here, it may be left over
264 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $ECHO works!
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
272 if test "X$1" = X--fallback-echo
; then
273 # used as fallback echo
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
283 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
285 if test -z "$lt_ECHO"; then
286 if test "X${echo_test_string+set}" != Xset
; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if { echo_test_string
=`eval $cmd`; } 2>/dev
/null
&&
291 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev
/null
298 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
299 echo_testing_string
=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
300 test "X$echo_testing_string" = "X$echo_test_string"; then
303 # The Solaris, AIX, and Digital Unix default echo programs unquote
304 # backslashes. This makes it impossible to quote backslashes using
305 # echo "$something" | sed 's/\\/\\\\/g'
307 # So, first we look for a working echo in the user's PATH.
309 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
310 for dir
in $PATH /usr
/ucb
; do
312 if (test -f $dir/echo ||
test -f $dir/echo$ac_exeext) &&
313 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315 test "X$echo_testing_string" = "X$echo_test_string"; then
322 if test "X$ECHO" = Xecho
; then
323 # We didn't find a better echo, so look for alternatives.
324 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
325 echo_testing_string
=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
326 test "X$echo_testing_string" = "X$echo_test_string"; then
327 # This shell has a builtin print -r that does the trick.
329 elif { test -f /bin
/ksh ||
test -f /bin
/ksh
$ac_exeext; } &&
330 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
331 # If we have ksh, try running configure again with it.
332 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
333 export ORIGINAL_CONFIG_SHELL
334 CONFIG_SHELL
=/bin
/ksh
336 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
341 echo_testing_string
=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
342 test "X$echo_testing_string" = "X$echo_test_string"; then
345 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346 test "X$echo_testing_string" = 'X\t' &&
347 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348 test "X$echo_testing_string" = "X$echo_test_string"; then
349 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
351 SHELL
="$CONFIG_SHELL"
353 ECHO
="$CONFIG_SHELL $0 --fallback-echo"
354 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 ECHO
="$CONFIG_SHELL $0 --fallback-echo"
360 # maybe with a smaller string...
363 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev
/null
371 if test "$prev" != 'sed 50q "$0"'; then
372 echo_test_string
=`eval $prev`
373 export echo_test_string
374 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376 # Oops. We lost completely, so just stick with echo.
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
388 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389 lt_ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
397 # so uname gets run too.
398 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
405 ac_default_prefix
=/usr
/local
406 ac_config_libobj_dir
=.
411 SHELL
=${CONFIG_SHELL-/bin/sh}
413 # Maximum number of lines to put in a shell here document.
414 # This variable seems obsolete. It should probably be removed, and
415 # only ac_max_sed_lines should be used.
416 : ${ac_max_here_lines=38}
418 # Identity of this package.
419 PACKAGE_NAME
='libffi'
420 PACKAGE_TARNAME
='libffi'
421 PACKAGE_VERSION
='3.0.8'
422 PACKAGE_STRING
='libffi 3.0.8'
423 PACKAGE_BUGREPORT
='http://gcc.gnu.org/bugs.html'
425 # Factoring default headers for most tests.
426 ac_includes_default
="\
429 # include <sys/types.h>
432 # include <sys/stat.h>
443 # if !STDC_HEADERS && HAVE_MEMORY_H
449 # include <strings.h>
452 # include <inttypes.h>
462 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS multi_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS CCAS CCASFLAGS LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S OBJDUMP ac_ct_OBJDUMP AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 CPP CPPFLAGS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT TESTSUBDIR_TRUE TESTSUBDIR_FALSE AM_RUNTESTFLAGS MIPS_TRUE MIPS_FALSE SPARC_TRUE SPARC_FALSE X86_TRUE X86_FALSE X86_FREEBSD_TRUE X86_FREEBSD_FALSE X86_WIN32_TRUE X86_WIN32_FALSE X86_DARWIN_TRUE X86_DARWIN_FALSE ALPHA_TRUE ALPHA_FALSE IA64_TRUE IA64_FALSE M32R_TRUE M32R_FALSE M68K_TRUE M68K_FALSE POWERPC_TRUE POWERPC_FALSE POWERPC_AIX_TRUE POWERPC_AIX_FALSE POWERPC_DARWIN_TRUE POWERPC_DARWIN_FALSE POWERPC_FREEBSD_TRUE POWERPC_FREEBSD_FALSE ARM_TRUE ARM_FALSE LIBFFI_CRIS_TRUE LIBFFI_CRIS_FALSE FRV_TRUE FRV_FALSE S390_TRUE S390_FALSE X86_64_TRUE X86_64_FALSE SH_TRUE SH_FALSE SH64_TRUE SH64_FALSE PA_LINUX_TRUE PA_LINUX_FALSE PA_HPUX_TRUE PA_HPUX_FALSE PA64_HPUX_TRUE PA64_HPUX_FALSE ALLOCA HAVE_LONG_DOUBLE TARGET TARGETDIR toolexecdir toolexeclibdir LIBOBJS LTLIBOBJS'
466 # Initialize some variables set by options.
468 ac_init_version
=false
469 # The variables have the same names as the options, with
470 # dashes changed to underlines.
478 program_transform_name
=s
,x
,x
,
486 # Installation directory options.
487 # These are left unexpanded so users can "make install exec_prefix=/foo"
488 # and all the variables that are supposed to be based on exec_prefix
489 # by default will actually change.
490 # Use braces instead of parens because sh, perl, etc. also accept them.
491 bindir
='${exec_prefix}/bin'
492 sbindir
='${exec_prefix}/sbin'
493 libexecdir
='${exec_prefix}/libexec'
494 datadir
='${prefix}/share'
495 sysconfdir
='${prefix}/etc'
496 sharedstatedir
='${prefix}/com'
497 localstatedir
='${prefix}/var'
498 libdir
='${exec_prefix}/lib'
499 includedir
='${prefix}/include'
500 oldincludedir
='/usr/include'
501 infodir
='${prefix}/info'
502 mandir
='${prefix}/man'
507 # If the previous option needs an argument, assign it.
508 if test -n "$ac_prev"; then
509 eval "$ac_prev=\$ac_option"
514 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
516 # Accept the important Cygnus configure options, so we can diagnose typos.
520 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
522 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
525 -build |
--build |
--buil |
--bui |
--bu)
526 ac_prev
=build_alias
;;
527 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
528 build_alias
=$ac_optarg ;;
530 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
531 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
532 ac_prev
=cache_file
;;
533 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
534 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
535 cache_file
=$ac_optarg ;;
538 cache_file
=config.cache
;;
540 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
542 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
544 datadir
=$ac_optarg ;;
546 -disable-* |
--disable-*)
547 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
548 # Reject names that are not valid shell variable names.
549 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
550 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
551 { (exit 1); exit 1; }; }
552 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
553 eval "enable_$ac_feature=no" ;;
555 -enable-* |
--enable-*)
556 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
557 # Reject names that are not valid shell variable names.
558 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
559 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
560 { (exit 1); exit 1; }; }
561 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
563 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
566 eval "enable_$ac_feature='$ac_optarg'" ;;
568 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
569 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
570 |
--exec |
--exe |
--ex)
571 ac_prev
=exec_prefix
;;
572 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
573 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
574 |
--exec=* |
--exe=* |
--ex=*)
575 exec_prefix
=$ac_optarg ;;
577 -gas |
--gas |
--ga |
--g)
578 # Obsolete; use --with-gas.
581 -help |
--help |
--hel |
--he |
-h)
583 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
584 ac_init_help
=recursive
;;
585 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
586 ac_init_help
=short
;;
588 -host |
--host |
--hos |
--ho)
589 ac_prev
=host_alias
;;
590 -host=* |
--host=* |
--hos=* |
--ho=*)
591 host_alias
=$ac_optarg ;;
593 -includedir |
--includedir |
--includedi |
--included |
--include \
594 |
--includ |
--inclu |
--incl |
--inc)
595 ac_prev
=includedir
;;
596 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
597 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
598 includedir
=$ac_optarg ;;
600 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
602 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
603 infodir
=$ac_optarg ;;
605 -libdir |
--libdir |
--libdi |
--libd)
607 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
610 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
611 |
--libexe |
--libex |
--libe)
612 ac_prev
=libexecdir
;;
613 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
614 |
--libexe=* |
--libex=* |
--libe=*)
615 libexecdir
=$ac_optarg ;;
617 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
618 |
--localstate |
--localstat |
--localsta |
--localst \
619 |
--locals |
--local |
--loca |
--loc |
--lo)
620 ac_prev
=localstatedir
;;
621 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
622 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
623 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
624 localstatedir
=$ac_optarg ;;
626 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
628 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
632 # Obsolete; use --without-fp.
635 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
636 |
--no-cr |
--no-c |
-n)
639 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
640 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
643 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
644 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
645 |
--oldin |
--oldi |
--old |
--ol |
--o)
646 ac_prev
=oldincludedir
;;
647 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
648 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
649 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
650 oldincludedir
=$ac_optarg ;;
652 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
654 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
657 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
658 |
--program-pre |
--program-pr |
--program-p)
659 ac_prev
=program_prefix
;;
660 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
661 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
662 program_prefix
=$ac_optarg ;;
664 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
665 |
--program-suf |
--program-su |
--program-s)
666 ac_prev
=program_suffix
;;
667 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
668 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
669 program_suffix
=$ac_optarg ;;
671 -program-transform-name |
--program-transform-name \
672 |
--program-transform-nam |
--program-transform-na \
673 |
--program-transform-n |
--program-transform- \
674 |
--program-transform |
--program-transfor \
675 |
--program-transfo |
--program-transf \
676 |
--program-trans |
--program-tran \
677 |
--progr-tra |
--program-tr |
--program-t)
678 ac_prev
=program_transform_name
;;
679 -program-transform-name=* |
--program-transform-name=* \
680 |
--program-transform-nam=* |
--program-transform-na=* \
681 |
--program-transform-n=* |
--program-transform-=* \
682 |
--program-transform=* |
--program-transfor=* \
683 |
--program-transfo=* |
--program-transf=* \
684 |
--program-trans=* |
--program-tran=* \
685 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
686 program_transform_name
=$ac_optarg ;;
688 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
689 |
-silent |
--silent |
--silen |
--sile |
--sil)
692 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
694 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
696 sbindir
=$ac_optarg ;;
698 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
699 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
700 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
702 ac_prev
=sharedstatedir
;;
703 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
704 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
705 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
707 sharedstatedir
=$ac_optarg ;;
709 -site |
--site |
--sit)
711 -site=* |
--site=* |
--sit=*)
714 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
716 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
719 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
720 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
721 ac_prev
=sysconfdir
;;
722 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
723 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
724 sysconfdir
=$ac_optarg ;;
726 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
727 ac_prev
=target_alias
;;
728 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
729 target_alias
=$ac_optarg ;;
731 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
734 -version |
--version |
--versio |
--versi |
--vers |
-V)
738 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
739 # Reject names that are not valid shell variable names.
740 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
741 { echo "$as_me: error: invalid package name: $ac_package" >&2
742 { (exit 1); exit 1; }; }
743 ac_package
=`echo $ac_package| sed 's/-/_/g'`
745 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
748 eval "with_$ac_package='$ac_optarg'" ;;
750 -without-* |
--without-*)
751 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
752 # Reject names that are not valid shell variable names.
753 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
754 { echo "$as_me: error: invalid package name: $ac_package" >&2
755 { (exit 1); exit 1; }; }
756 ac_package
=`echo $ac_package | sed 's/-/_/g'`
757 eval "with_$ac_package=no" ;;
760 # Obsolete; use --with-x.
763 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
764 |
--x-incl |
--x-inc |
--x-in |
--x-i)
765 ac_prev
=x_includes
;;
766 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
767 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
768 x_includes
=$ac_optarg ;;
770 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
771 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
772 ac_prev
=x_libraries
;;
773 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
774 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
775 x_libraries
=$ac_optarg ;;
777 -*) { echo "$as_me: error: unrecognized option: $ac_option
778 Try \`$0 --help' for more information." >&2
779 { (exit 1); exit 1; }; }
783 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
784 # Reject names that are not valid shell variable names.
785 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
786 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
787 { (exit 1); exit 1; }; }
788 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
789 eval "$ac_envvar='$ac_optarg'"
793 # FIXME: should be removed in autoconf 3.0.
794 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
795 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
796 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
797 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803 if test -n "$ac_prev"; then
804 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
805 { echo "$as_me: error: missing argument to $ac_option" >&2
806 { (exit 1); exit 1; }; }
809 # Be sure to have absolute paths.
810 for ac_var
in exec_prefix prefix
812 eval ac_val
=$
`echo $ac_var`
814 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
815 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
816 { (exit 1); exit 1; }; };;
820 # Be sure to have absolute paths.
821 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
822 localstatedir libdir includedir oldincludedir infodir mandir
824 eval ac_val
=$
`echo $ac_var`
826 [\\/$
]* | ?
:[\\/]* ) ;;
827 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828 { (exit 1); exit 1; }; };;
832 # There might be people who depend on the old broken behavior: `$host'
833 # used to hold the argument of --host etc.
834 # FIXME: To remove some day.
839 # FIXME: To remove some day.
840 if test "x$host_alias" != x
; then
841 if test "x$build_alias" = x
; then
842 cross_compiling
=maybe
843 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
844 If a cross compiler is detected then cross compile mode will be used." >&2
845 elif test "x$build_alias" != "x$host_alias"; then
851 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
853 test "$silent" = yes && exec 6>/dev
/null
856 # Find the source files, if location was not specified.
857 if test -z "$srcdir"; then
858 ac_srcdir_defaulted
=yes
859 # Try the directory containing this script, then its parent.
860 ac_confdir
=`(dirname "$0") 2>/dev/null ||
861 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
862 X"$0" : 'X\(//\)[^/]' \| \
863 X"$0" : 'X\(//\)$' \| \
864 X"$0" : 'X\(/\)' \| \
865 . : '\(.\)' 2>/dev/null ||
867 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
868 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
869 /^X\(\/\/\)$/{ s//\1/; q; }
870 /^X\(\/\).*/{ s//\1/; q; }
873 if test ! -r $srcdir/$ac_unique_file; then
877 ac_srcdir_defaulted
=no
879 if test ! -r $srcdir/$ac_unique_file; then
880 if test "$ac_srcdir_defaulted" = yes; then
881 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
882 { (exit 1); exit 1; }; }
884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
885 { (exit 1); exit 1; }; }
888 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
889 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
890 { (exit 1); exit 1; }; }
891 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
892 ac_env_build_alias_set
=${build_alias+set}
893 ac_env_build_alias_value
=$build_alias
894 ac_cv_env_build_alias_set
=${build_alias+set}
895 ac_cv_env_build_alias_value
=$build_alias
896 ac_env_host_alias_set
=${host_alias+set}
897 ac_env_host_alias_value
=$host_alias
898 ac_cv_env_host_alias_set
=${host_alias+set}
899 ac_cv_env_host_alias_value
=$host_alias
900 ac_env_target_alias_set
=${target_alias+set}
901 ac_env_target_alias_value
=$target_alias
902 ac_cv_env_target_alias_set
=${target_alias+set}
903 ac_cv_env_target_alias_value
=$target_alias
904 ac_env_CCAS_set
=${CCAS+set}
905 ac_env_CCAS_value
=$CCAS
906 ac_cv_env_CCAS_set
=${CCAS+set}
907 ac_cv_env_CCAS_value
=$CCAS
908 ac_env_CCASFLAGS_set
=${CCASFLAGS+set}
909 ac_env_CCASFLAGS_value
=$CCASFLAGS
910 ac_cv_env_CCASFLAGS_set
=${CCASFLAGS+set}
911 ac_cv_env_CCASFLAGS_value
=$CCASFLAGS
912 ac_env_CPP_set
=${CPP+set}
913 ac_env_CPP_value
=$CPP
914 ac_cv_env_CPP_set
=${CPP+set}
915 ac_cv_env_CPP_value
=$CPP
916 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
917 ac_env_CPPFLAGS_value
=$CPPFLAGS
918 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
919 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
922 # Report the --help message.
924 if test "$ac_init_help" = "long"; then
925 # Omit some internal or obsolete options to make the list less imposing.
926 # This message is too long to be a string in the A/UX 3.1 sh.
928 \`configure' configures libffi 3.0.8 to adapt to many kinds of systems.
930 Usage: $0 [OPTION]... [VAR=VALUE]...
932 To assign environment variables (e.g., CC, CFLAGS...), specify them as
933 VAR=VALUE. See below for descriptions of some of the useful variables.
935 Defaults for the options are specified in brackets.
938 -h, --help display this help and exit
939 --help=short display options specific to this package
940 --help=recursive display the short help of all the included packages
941 -V, --version display version information and exit
942 -q, --quiet, --silent do not print \`checking...' messages
943 --cache-file=FILE cache test results in FILE [disabled]
944 -C, --config-cache alias for \`--cache-file=config.cache'
945 -n, --no-create do not create output files
946 --srcdir=DIR find the sources in DIR [configure dir or \`..']
951 Installation directories:
952 --prefix=PREFIX install architecture-independent files in PREFIX
954 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
957 By default, \`make install' will install all the files in
958 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
959 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
960 for instance \`--prefix=\$HOME'.
962 For better control, use the options below.
964 Fine tuning of the installation directories:
965 --bindir=DIR user executables [EPREFIX/bin]
966 --sbindir=DIR system admin executables [EPREFIX/sbin]
967 --libexecdir=DIR program executables [EPREFIX/libexec]
968 --datadir=DIR read-only architecture-independent data [PREFIX/share]
969 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
970 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
971 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
972 --libdir=DIR object code libraries [EPREFIX/lib]
973 --includedir=DIR C header files [PREFIX/include]
974 --oldincludedir=DIR C header files for non-gcc [/usr/include]
975 --infodir=DIR info documentation [PREFIX/info]
976 --mandir=DIR man documentation [PREFIX/man]
982 --program-prefix=PREFIX prepend PREFIX to installed program names
983 --program-suffix=SUFFIX append SUFFIX to installed program names
984 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
987 --build=BUILD configure
for building on BUILD
[guessed
]
988 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
989 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
993 if test -n "$ac_init_help"; then
994 case $ac_init_help in
995 short | recursive
) echo "Configuration of libffi 3.0.8:";;
1000 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1001 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1002 --enable-multilib build many library versions
(default
)
1003 --disable-dependency-tracking speeds up one-time build
1004 --enable-dependency-tracking do not reject slow dependency extractors
1005 --enable-shared[=PKGS
]
1006 build shared libraries
[default
=yes]
1007 --enable-static[=PKGS
]
1008 build static libraries
[default
=yes]
1009 --enable-fast-install[=PKGS
]
1010 optimize
for fast installation
[default
=yes]
1011 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1012 --enable-maintainer-mode enable make rules and dependencies not useful
1013 (and sometimes confusing
) to the casual installer
1014 --enable-debug debugging mode
1015 --disable-structs omit code
for struct support
1016 --disable-raw-api make the raw api unavailable
1017 --enable-purify-safety purify-safe mode
1020 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1021 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1022 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1024 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1026 Some influential environment variables
:
1027 CC C compiler
command
1028 CFLAGS C compiler flags
1029 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1030 nonstandard directory
<lib dir
>
1031 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
1032 headers
in a nonstandard directory
<include dir
>
1033 CCAS assembler compiler
command (defaults to CC
)
1034 CCASFLAGS assembler compiler flags
(defaults to CFLAGS
)
1037 Use these variables to override the choices made by
`configure' or to help
1038 it to find libraries and programs with nonstandard names/locations.
1040 Report bugs to <http://gcc.gnu.org/bugs.html>.
1044 if test "$ac_init_help" = "recursive"; then
1045 # If there are subdirs, report their specific --help.
1047 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1048 test -d $ac_dir || continue
1051 if test "$ac_dir" != .; then
1052 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1053 # A "../" for each directory in $ac_dir_suffix.
1054 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
1056 ac_dir_suffix= ac_top_builddir=
1060 .) # No --srcdir option. We are building in place.
1062 if test -z "$ac_top_builddir"; then
1065 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
1067 [\\/]* | ?:[\\/]* ) # Absolute path.
1068 ac_srcdir=$srcdir$ac_dir_suffix;
1069 ac_top_srcdir=$srcdir ;;
1071 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1072 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1075 # Do not use `cd foo
&& pwd` to compute absolute paths, because
1076 # the directories may not exist.
1078 .) ac_abs_builddir="$ac_dir";;
1081 .) ac_abs_builddir=`pwd`;;
1082 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1083 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1086 case $ac_abs_builddir in
1087 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1089 case ${ac_top_builddir}. in
1090 .) ac_abs_top_builddir=$ac_abs_builddir;;
1091 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1092 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1095 case $ac_abs_builddir in
1096 .) ac_abs_srcdir=$ac_srcdir;;
1099 .) ac_abs_srcdir=$ac_abs_builddir;;
1100 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1101 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1104 case $ac_abs_builddir in
1105 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1107 case $ac_top_srcdir in
1108 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1109 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1110 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1115 # Check for guested configure; otherwise get Cygnus style configure.
1116 if test -f $ac_srcdir/configure.gnu; then
1118 $SHELL $ac_srcdir/configure.gnu --help=recursive
1119 elif test -f $ac_srcdir/configure; then
1121 $SHELL $ac_srcdir/configure --help=recursive
1122 elif test -f $ac_srcdir/configure.ac ||
1123 test -f $ac_srcdir/configure.in; then
1125 $ac_configure --help
1127 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1133 test -n "$ac_init_help" && exit 0
1134 if $ac_init_version; then
1136 libffi configure 3.0.8
1137 generated by GNU Autoconf 2.59
1139 Copyright (C) 2003 Free Software Foundation, Inc.
1140 This configure script is free software; the Free Software Foundation
1141 gives unlimited permission to copy, distribute and modify it.
1147 This file contains any messages produced by compilers while
1148 running configure, to aid debugging if configure makes a mistake.
1150 It was created by libffi $as_me 3.0.8, which was
1151 generated by GNU Autoconf 2.59. Invocation command line was
1162 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1163 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1164 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1165 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1166 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1168 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1169 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1171 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1172 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1173 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1174 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1175 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1176 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1177 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1185 test -z "$as_dir" && as_dir=.
1186 echo "PATH: $as_dir"
1201 # Keep a trace of the command line.
1202 # Strip out --no-create and --no-recursion so they do not pile up.
1203 # Strip out --silent because we don't want to record it for future runs.
1204 # Also quote any args containing shell meta-characters.
1205 # Make two passes to allow for proper duplicate-argument suppression.
1210 ac_must_keep_next=false
1216 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218 | -silent | --silent | --silen | --sile | --sil)
1220 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1221 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1224 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1226 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1227 if test $ac_must_keep_next = true; then
1228 ac_must_keep_next=false # Got value, back to normal.
1231 *=* | --config-cache | -C | -disable-* | --disable-* \
1232 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1233 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1234 | -with-* | --with-* | -without-* | --without-* | --x)
1235 case "$ac_configure_args0 " in
1236 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1239 -* ) ac_must_keep_next=true ;;
1242 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1243 # Get rid of the leading space.
1249 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1250 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1252 # When interrupted or exit'd, cleanup temporary files, and complete
1253 # config.log. We remove comments because anyway the quotes in there
1254 # would cause problems or look ugly.
1255 # WARNING: Be sure not to use single quotes in there, as some shells,
1256 # such as our DU 5.0 friend, will then `close
' the trap.
1257 trap 'exit_status
=$?
1258 # Save into config.log some information that might help in debugging.
1263 ## ---------------- ##
1264 ## Cache variables. ##
1265 ## ---------------- ##
1268 # The following way of writing the cache mishandles newlines in values,
1271 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1274 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1275 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1279 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1286 ## ----------------- ##
1287 ## Output variables. ##
1288 ## ----------------- ##
1291 for ac_var
in $ac_subst_vars
1293 eval ac_val
=$
`echo $ac_var`
1294 echo "$ac_var='"'"'$ac_val'"'"'"
1298 if test -n "$ac_subst_files"; then
1305 for ac_var
in $ac_subst_files
1307 eval ac_val
=$
`echo $ac_var`
1308 echo "$ac_var='"'"'$ac_val'"'"'"
1313 if test -s confdefs.h
; then
1320 sed "/^$/d" confdefs.h |
sort
1323 test "$ac_signal" != 0 &&
1324 echo "$as_me: caught signal $ac_signal"
1325 echo "$as_me: exit $exit_status"
1327 rm -f core
*.core
&&
1328 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1331 for ac_signal in 1 2 13 15; do
1332 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1336 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1337 rm -rf conftest* confdefs.h
1338 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1341 # Predefined preprocessor variables.
1343 cat >>confdefs.h <<_ACEOF
1344 #define PACKAGE_NAME "$PACKAGE_NAME"
1348 cat >>confdefs.h <<_ACEOF
1349 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1353 cat >>confdefs.h <<_ACEOF
1354 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1358 cat >>confdefs.h <<_ACEOF
1359 #define PACKAGE_STRING "$PACKAGE_STRING"
1363 cat >>confdefs.h <<_ACEOF
1364 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1368 # Let the site file select an alternate cache file if it wants to.
1369 # Prefer explicitly selected file to automatically selected ones.
1370 if test -z "$CONFIG_SITE"; then
1371 if test "x$prefix" != xNONE; then
1372 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1374 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1377 for ac_site_file in $CONFIG_SITE; do
1378 if test -r "$ac_site_file"; then
1379 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1380 echo "$as_me: loading site script $ac_site_file" >&6;}
1381 sed 's
/^
/|
/' "$ac_site_file" >&5
1386 if test -r "$cache_file"; then
1387 # Some versions of bash will fail to source /dev/null (special
1388 # files actually), so we avoid doing that.
1389 if test -f "$cache_file"; then
1390 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1391 echo "$as_me: loading cache $cache_file" >&6;}
1393 [\\/]* | ?:[\\/]* ) . $cache_file;;
1394 *) . ./$cache_file;;
1398 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1399 echo "$as_me: creating cache $cache_file" >&6;}
1403 # Check that the precious variables saved in the cache have kept the same
1405 ac_cache_corrupted=false
1406 for ac_var in `(set) 2>&1 |
1407 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1408 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1409 eval ac_new_set=\$ac_env_${ac_var}_set
1410 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1411 eval ac_new_val="\$ac_env_${ac_var}_value"
1412 case $ac_old_set,$ac_new_set in
1414 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1415 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1416 ac_cache_corrupted=: ;;
1418 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1419 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1420 ac_cache_corrupted=: ;;
1423 if test "x$ac_old_val" != "x$ac_new_val"; then
1424 # differences in whitespace do not lead to failure.
1425 ac_old_val_w=`echo x $ac_old_val`
1426 ac_new_val_w=`echo x $ac_new_val`
1427 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1428 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1429 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1430 ac_cache_corrupted=:
1432 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1433 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run
:" >&2;}
1434 eval $ac_var=\$ac_old_val
1436 { echo "$as_me:$LINENO: former value
: \
`$ac_old_val'" >&5
1437 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1438 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1439 echo "$as_me: current value
: \
`$ac_new_val'" >&2;}
1442 # Pass precious variables to config.status.
1443 if test "$ac_new_set" = set; then
1445 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1446 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1447 *) ac_arg=$ac_var=$ac_new_val ;;
1449 case " $ac_configure_args " in
1450 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1451 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1455 if $ac_cache_corrupted; then
1456 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1457 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1458 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1459 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1460 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1461 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1462 { (exit 1); exit 1; }; }
1466 ac_cpp='$CPP $CPPFLAGS'
1467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1500 ac_config_headers="$ac_config_headers fficonfig.h"
1503 # Default to --enable-multilib
1504 # Check whether --enable-multilib or --disable-multilib was given.
1505 if test "${enable_multilib+set}" = set; then
1506 enableval="$enable_multilib"
1507 case "$enableval" in
1508 yes) multilib=yes ;;
1510 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1511 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1512 { (exit 1); exit 1; }; } ;;
1518 # We may get other options which we leave undocumented:
1519 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1520 # See config-ml.in if you want the gory details.
1522 if test "$srcdir" = "."; then
1523 if test "$with_target_subdir" != "."; then
1524 multi_basedir="$srcdir/$with_multisrctop../.."
1526 multi_basedir="$srcdir/$with_multisrctop.."
1529 multi_basedir="$srcdir/.."
1533 # Even if the default multilib is not a cross compilation,
1534 # it may be that some of the other multilibs are.
1535 if test $cross_compiling = no && test $multilib = yes \
1536 && test "x${with_multisubdir}" != x ; then
1537 cross_compiling=maybe
1540 ac_config_commands="$ac_config_commands default-1"
1544 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1545 if test -f $ac_dir/install-sh; then
1547 ac_install_sh="$ac_aux_dir/install-sh -c"
1549 elif test -f $ac_dir/install.sh; then
1551 ac_install_sh="$ac_aux_dir/install.sh -c"
1553 elif test -f $ac_dir/shtool; then
1555 ac_install_sh="$ac_aux_dir/shtool install -c"
1559 if test -z "$ac_aux_dir"; then
1560 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1561 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1562 { (exit 1); exit 1; }; }
1564 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1565 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1566 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1568 # Make sure we can run config.sub.
1569 $ac_config_sub sun4 >/dev/null 2>&1 ||
1570 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1571 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1572 { (exit 1); exit 1; }; }
1574 echo "$as_me:$LINENO: checking build system type" >&5
1575 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1576 if test "${ac_cv_build+set}" = set; then
1577 echo $ECHO_N "(cached) $ECHO_C" >&6
1579 ac_cv_build_alias=$build_alias
1580 test -z "$ac_cv_build_alias" &&
1581 ac_cv_build_alias=`$ac_config_guess`
1582 test -z "$ac_cv_build_alias" &&
1583 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1584 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1585 { (exit 1); exit 1; }; }
1586 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1587 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1588 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1589 { (exit 1); exit 1; }; }
1592 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1593 echo "${ECHO_T}$ac_cv_build" >&6
1595 build_cpu=`echo $ac_cv_build |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1596 build_vendor=`echo $ac_cv_build |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1597 build_os=`echo $ac_cv_build |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1600 echo "$as_me:$LINENO: checking host system type" >&5
1601 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1602 if test "${ac_cv_host+set}" = set; then
1603 echo $ECHO_N "(cached) $ECHO_C" >&6
1605 ac_cv_host_alias=$host_alias
1606 test -z "$ac_cv_host_alias" &&
1607 ac_cv_host_alias=$ac_cv_build_alias
1608 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1609 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1610 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1611 { (exit 1); exit 1; }; }
1614 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1615 echo "${ECHO_T}$ac_cv_host" >&6
1617 host_cpu=`echo $ac_cv_host |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1618 host_vendor=`echo $ac_cv_host |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1619 host_os=`echo $ac_cv_host |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1622 echo "$as_me:$LINENO: checking target system type" >&5
1623 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1624 if test "${ac_cv_target+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1627 ac_cv_target_alias=$target_alias
1628 test "x$ac_cv_target_alias" = "x" &&
1629 ac_cv_target_alias=$ac_cv_host_alias
1630 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1631 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1632 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1633 { (exit 1); exit 1; }; }
1636 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1637 echo "${ECHO_T}$ac_cv_target" >&6
1638 target=$ac_cv_target
1639 target_cpu=`echo $ac_cv_target |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1640 target_vendor=`echo $ac_cv_target |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1641 target_os=`echo $ac_cv_target |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1644 # The aliases save the names the user supplied, while $host etc.
1645 # will get canonicalized.
1646 test -n "$target_alias" &&
1647 test "$program_prefix$program_suffix$program_transform_name" = \
1649 program_prefix=${target_alias}-
1650 target_alias=${target_alias-$host_alias}
1652 . ${srcdir}/configure.host
1654 am__api_version="1.9"
1655 # Find a good install program. We prefer a C program (faster),
1656 # so one script is as good as another. But avoid the broken or
1657 # incompatible versions:
1658 # SysV /etc/install, /usr/sbin/install
1659 # SunOS /usr/etc/install
1660 # IRIX /sbin/install
1662 # AmigaOS /C/install, which installs bootblocks on floppy discs
1663 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1664 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1665 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1666 # OS/2's system install, which has a completely different semantic
1667 # ./install, which can be erroneously created by make from ./install.sh.
1668 # Reject install programs that cannot install multiple files.
1669 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1670 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1671 if test -z "$INSTALL"; then
1672 if test "${ac_cv_path_install+set}" = set; then
1673 echo $ECHO_N "(cached) $ECHO_C" >&6
1675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1679 test -z "$as_dir" && as_dir=.
1680 # Account for people who put trailing slashes in PATH elements.
1682 ./ | .// | /cC/* | \
1683 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1684 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1687 # OSF1 and SCO ODT 3.0 have their own names for install.
1688 # Don't use installbsd from OSF since it installs stuff as root
1690 for ac_prog in ginstall scoinst install; do
1691 for ac_exec_ext in '' $ac_executable_extensions; do
1692 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1693 if test $ac_prog = install &&
1694 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1695 # AIX install. It has an incompatible calling convention.
1697 elif test $ac_prog = install &&
1698 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1699 # program-specific install script used by HP pwplus--don't use.
1702 rm -rf conftest.one conftest.two conftest.dir
1703 echo one > conftest.one
1704 echo two > conftest.two
1706 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1707 test -s conftest.one && test -s conftest.two &&
1708 test -s conftest.dir/conftest.one &&
1709 test -s conftest.dir/conftest.two
1711 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1722 rm -rf conftest.one conftest.two conftest.dir
1725 if test "${ac_cv_path_install+set}" = set; then
1726 INSTALL=$ac_cv_path_install
1728 # As a last resort, use the slow shell script. Don't cache a
1729 # value for INSTALL within a source directory, because that will
1730 # break other packages using the cache if that directory is
1731 # removed, or if the value is a relative name.
1732 INSTALL=$ac_install_sh
1735 echo "$as_me:$LINENO: result: $INSTALL" >&5
1736 echo "${ECHO_T}$INSTALL" >&6
1738 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1739 # It thinks the first close brace ends the variable substitution.
1740 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1742 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1744 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1746 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1747 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1750 echo timestamp > conftest.file
1751 # Do `set' in a subshell so we don't clobber the current shell
's
1752 # arguments. Must try -L first in case configure is actually a
1753 # symlink; some systems play weird games with the mod time of symlinks
1754 # (eg FreeBSD returns the mod time of the symlink's containing
1757 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1758 if test "$*" = "X"; then
1760 set X
`ls -t $srcdir/configure conftest.file`
1763 if test "$*" != "X $srcdir/configure conftest.file" \
1764 && test "$*" != "X conftest.file $srcdir/configure"; then
1766 # If neither matched, then we have a broken ls. This can happen
1767 # if, for instance, CONFIG_SHELL is bash and it inherits a
1768 # broken ls alias from the environment. This has actually
1769 # happened. Such a system could not be considered "sane".
1770 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1771 alias in your environment" >&5
1772 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1773 alias in your environment" >&2;}
1774 { (exit 1); exit 1; }; }
1777 test "$2" = conftest.
file
1783 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1784 Check your system clock" >&5
1785 echo "$as_me: error: newly created file is older than distributed files!
1786 Check your system clock" >&2;}
1787 { (exit 1); exit 1; }; }
1789 echo "$as_me:$LINENO: result: yes" >&5
1790 echo "${ECHO_T}yes" >&6
1791 test "$program_prefix" != NONE
&&
1792 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1793 # Use a double $ so make ignores it.
1794 test "$program_suffix" != NONE
&&
1795 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1796 # Double any \ or $. echo might interpret backslashes.
1797 # By default was `s,x,x', remove it if useless.
1798 cat <<\_ACEOF
>conftest.
sed
1799 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1801 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1804 # expand $ac_aux_dir to an absolute path
1805 am_aux_dir
=`cd $ac_aux_dir && pwd`
1807 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
1808 # Use eval to expand $SHELL
1809 if eval "$MISSING --run true"; then
1810 am_missing_run
="$MISSING --run "
1813 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1814 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1817 if mkdir
-p --version .
>/dev
/null
2>&1 && test ! -d .
/--version; then
1818 # We used to keeping the `.' as first argument, in order to
1819 # allow $(mkdir_p) to be used without argument. As in
1820 # $(mkdir_p) $(somedir)
1821 # where $(somedir) is conditionally defined. However this is wrong
1823 # 1. if the package is installed by a user who cannot write `.'
1824 # make install will fail,
1825 # 2. the above comment should most certainly read
1826 # $(mkdir_p) $(DESTDIR)$(somedir)
1827 # so it does not work when $(somedir) is undefined and
1828 # $(DESTDIR) is not.
1829 # To support the latter case, we have to write
1830 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1831 # so the `.' trick is pointless.
1832 mkdir_p
='mkdir -p --'
1834 # On NextStep and OpenStep, the `mkdir' command does not
1835 # recognize any option. It will interpret all options as
1836 # directories to create, and then abort because `.' already
1838 for d
in .
/-p .
/--version;
1840 test -d $d && rmdir $d
1842 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1843 if test -f "$ac_aux_dir/mkinstalldirs"; then
1844 mkdir_p
='$(mkinstalldirs)'
1846 mkdir_p
='$(install_sh) -d'
1850 for ac_prog
in gawk mawk nawk
awk
1852 # Extract the first word of "$ac_prog", so it can be a program name with args.
1853 set dummy
$ac_prog; ac_word
=$2
1854 echo "$as_me:$LINENO: checking for $ac_word" >&5
1855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1856 if test "${ac_cv_prog_AWK+set}" = set; then
1857 echo $ECHO_N "(cached) $ECHO_C" >&6
1859 if test -n "$AWK"; then
1860 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1862 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1866 test -z "$as_dir" && as_dir
=.
1867 for ac_exec_ext
in '' $ac_executable_extensions; do
1868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1869 ac_cv_prog_AWK
="$ac_prog"
1870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1879 if test -n "$AWK"; then
1880 echo "$as_me:$LINENO: result: $AWK" >&5
1881 echo "${ECHO_T}$AWK" >&6
1883 echo "$as_me:$LINENO: result: no" >&5
1884 echo "${ECHO_T}no" >&6
1887 test -n "$AWK" && break
1890 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1891 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1892 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
1893 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1894 echo $ECHO_N "(cached) $ECHO_C" >&6
1896 cat >conftest.
make <<\_ACEOF
1898 @
echo 'ac_maketemp="$(MAKE)"'
1900 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1901 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1902 if test -n "$ac_maketemp"; then
1903 eval ac_cv_prog_make_
${ac_make}_set
=yes
1905 eval ac_cv_prog_make_
${ac_make}_set
=no
1909 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1910 echo "$as_me:$LINENO: result: yes" >&5
1911 echo "${ECHO_T}yes" >&6
1914 echo "$as_me:$LINENO: result: no" >&5
1915 echo "${ECHO_T}no" >&6
1916 SET_MAKE
="MAKE=${MAKE-make}"
1919 rm -rf .tst
2>/dev
/null
1920 mkdir .tst
2>/dev
/null
1921 if test -d .tst
; then
1926 rmdir .tst
2>/dev
/null
1928 # test to see if srcdir already configured
1929 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1930 test -f $srcdir/config.status
; then
1931 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1932 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1933 { (exit 1); exit 1; }; }
1936 # test whether we have cygpath
1937 if test -z "$CYGPATH_W"; then
1938 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
1939 CYGPATH_W
='cygpath -w'
1946 # Define the identity of the package.
1951 cat >>confdefs.h
<<_ACEOF
1952 #define PACKAGE "$PACKAGE"
1956 cat >>confdefs.h
<<_ACEOF
1957 #define VERSION "$VERSION"
1960 # Some tools Automake needs.
1962 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1965 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
1968 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1971 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
1974 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
1976 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
1978 # Installed binaries are usually stripped using `strip' when the user
1979 # run `make install-strip'. However `strip' might not be the right
1980 # tool to use in cross-compilation environments, therefore Automake
1981 # will honor the `STRIP' environment variable to overrule this program.
1982 if test "$cross_compiling" != no
; then
1983 if test -n "$ac_tool_prefix"; then
1984 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1985 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1986 echo "$as_me:$LINENO: checking for $ac_word" >&5
1987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1988 if test "${ac_cv_prog_STRIP+set}" = set; then
1989 echo $ECHO_N "(cached) $ECHO_C" >&6
1991 if test -n "$STRIP"; then
1992 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1994 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1998 test -z "$as_dir" && as_dir
=.
1999 for ac_exec_ext
in '' $ac_executable_extensions; do
2000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2001 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2010 STRIP
=$ac_cv_prog_STRIP
2011 if test -n "$STRIP"; then
2012 echo "$as_me:$LINENO: result: $STRIP" >&5
2013 echo "${ECHO_T}$STRIP" >&6
2015 echo "$as_me:$LINENO: result: no" >&5
2016 echo "${ECHO_T}no" >&6
2020 if test -z "$ac_cv_prog_STRIP"; then
2022 # Extract the first word of "strip", so it can be a program name with args.
2023 set dummy strip
; ac_word
=$2
2024 echo "$as_me:$LINENO: checking for $ac_word" >&5
2025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2026 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2027 echo $ECHO_N "(cached) $ECHO_C" >&6
2029 if test -n "$ac_ct_STRIP"; then
2030 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2032 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2036 test -z "$as_dir" && as_dir
=.
2037 for ac_exec_ext
in '' $ac_executable_extensions; do
2038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2039 ac_cv_prog_ac_ct_STRIP
="strip"
2040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2046 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
2049 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2050 if test -n "$ac_ct_STRIP"; then
2051 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2052 echo "${ECHO_T}$ac_ct_STRIP" >&6
2054 echo "$as_me:$LINENO: result: no" >&5
2055 echo "${ECHO_T}no" >&6
2060 STRIP
="$ac_cv_prog_STRIP"
2064 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
2066 # We need awk for the "check" target. The system "awk" is bad on
2068 # Always define AMTAR for backward compatibility.
2070 AMTAR
=${AMTAR-"${am_missing_run}tar"}
2072 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
2079 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2080 # We must force CC to /not/ be precious variables; otherwise
2081 # the wrong, non-multilib-adjusted value will be used in multilibs.
2082 # As a side effect, we have to subst CFLAGS ourselves.
2087 ac_cpp
='$CPP $CPPFLAGS'
2088 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2089 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2090 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2091 if test -n "$ac_tool_prefix"; then
2092 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2093 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2094 echo "$as_me:$LINENO: checking for $ac_word" >&5
2095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2096 if test "${ac_cv_prog_CC+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
2099 if test -n "$CC"; then
2100 ac_cv_prog_CC
="$CC" # Let the user override the test.
2102 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2106 test -z "$as_dir" && as_dir
=.
2107 for ac_exec_ext
in '' $ac_executable_extensions; do
2108 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2109 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2119 if test -n "$CC"; then
2120 echo "$as_me:$LINENO: result: $CC" >&5
2121 echo "${ECHO_T}$CC" >&6
2123 echo "$as_me:$LINENO: result: no" >&5
2124 echo "${ECHO_T}no" >&6
2128 if test -z "$ac_cv_prog_CC"; then
2130 # Extract the first word of "gcc", so it can be a program name with args.
2131 set dummy gcc
; ac_word
=$2
2132 echo "$as_me:$LINENO: checking for $ac_word" >&5
2133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2134 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2137 if test -n "$ac_ct_CC"; then
2138 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2140 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2144 test -z "$as_dir" && as_dir
=.
2145 for ac_exec_ext
in '' $ac_executable_extensions; do
2146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2147 ac_cv_prog_ac_ct_CC
="gcc"
2148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2156 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2157 if test -n "$ac_ct_CC"; then
2158 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2159 echo "${ECHO_T}$ac_ct_CC" >&6
2161 echo "$as_me:$LINENO: result: no" >&5
2162 echo "${ECHO_T}no" >&6
2170 if test -z "$CC"; then
2171 if test -n "$ac_tool_prefix"; then
2172 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2173 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2174 echo "$as_me:$LINENO: checking for $ac_word" >&5
2175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2176 if test "${ac_cv_prog_CC+set}" = set; then
2177 echo $ECHO_N "(cached) $ECHO_C" >&6
2179 if test -n "$CC"; then
2180 ac_cv_prog_CC
="$CC" # Let the user override the test.
2182 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2186 test -z "$as_dir" && as_dir
=.
2187 for ac_exec_ext
in '' $ac_executable_extensions; do
2188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2189 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2199 if test -n "$CC"; then
2200 echo "$as_me:$LINENO: result: $CC" >&5
2201 echo "${ECHO_T}$CC" >&6
2203 echo "$as_me:$LINENO: result: no" >&5
2204 echo "${ECHO_T}no" >&6
2208 if test -z "$ac_cv_prog_CC"; then
2210 # Extract the first word of "cc", so it can be a program name with args.
2211 set dummy cc
; ac_word
=$2
2212 echo "$as_me:$LINENO: checking for $ac_word" >&5
2213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2214 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2215 echo $ECHO_N "(cached) $ECHO_C" >&6
2217 if test -n "$ac_ct_CC"; then
2218 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2220 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2224 test -z "$as_dir" && as_dir
=.
2225 for ac_exec_ext
in '' $ac_executable_extensions; do
2226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2227 ac_cv_prog_ac_ct_CC
="cc"
2228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2236 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2237 if test -n "$ac_ct_CC"; then
2238 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2239 echo "${ECHO_T}$ac_ct_CC" >&6
2241 echo "$as_me:$LINENO: result: no" >&5
2242 echo "${ECHO_T}no" >&6
2251 if test -z "$CC"; then
2252 # Extract the first word of "cc", so it can be a program name with args.
2253 set dummy cc
; ac_word
=$2
2254 echo "$as_me:$LINENO: checking for $ac_word" >&5
2255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2256 if test "${ac_cv_prog_CC+set}" = set; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
2259 if test -n "$CC"; then
2260 ac_cv_prog_CC
="$CC" # Let the user override the test.
2263 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2267 test -z "$as_dir" && as_dir
=.
2268 for ac_exec_ext
in '' $ac_executable_extensions; do
2269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2270 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2271 ac_prog_rejected
=yes
2275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2281 if test $ac_prog_rejected = yes; then
2282 # We found a bogon in the path, so make sure we never use it.
2283 set dummy
$ac_cv_prog_CC
2285 if test $# != 0; then
2286 # We chose a different compiler from the bogus one.
2287 # However, it has the same basename, so the bogon will be chosen
2288 # first if we set CC to just the basename; use the full file name.
2290 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2296 if test -n "$CC"; then
2297 echo "$as_me:$LINENO: result: $CC" >&5
2298 echo "${ECHO_T}$CC" >&6
2300 echo "$as_me:$LINENO: result: no" >&5
2301 echo "${ECHO_T}no" >&6
2305 if test -z "$CC"; then
2306 if test -n "$ac_tool_prefix"; then
2309 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2310 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2311 echo "$as_me:$LINENO: checking for $ac_word" >&5
2312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2313 if test "${ac_cv_prog_CC+set}" = set; then
2314 echo $ECHO_N "(cached) $ECHO_C" >&6
2316 if test -n "$CC"; then
2317 ac_cv_prog_CC
="$CC" # Let the user override the test.
2319 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2323 test -z "$as_dir" && as_dir
=.
2324 for ac_exec_ext
in '' $ac_executable_extensions; do
2325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2326 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2336 if test -n "$CC"; then
2337 echo "$as_me:$LINENO: result: $CC" >&5
2338 echo "${ECHO_T}$CC" >&6
2340 echo "$as_me:$LINENO: result: no" >&5
2341 echo "${ECHO_T}no" >&6
2344 test -n "$CC" && break
2347 if test -z "$CC"; then
2351 # Extract the first word of "$ac_prog", so it can be a program name with args.
2352 set dummy
$ac_prog; ac_word
=$2
2353 echo "$as_me:$LINENO: checking for $ac_word" >&5
2354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2355 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2356 echo $ECHO_N "(cached) $ECHO_C" >&6
2358 if test -n "$ac_ct_CC"; then
2359 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2361 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2365 test -z "$as_dir" && as_dir
=.
2366 for ac_exec_ext
in '' $ac_executable_extensions; do
2367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2368 ac_cv_prog_ac_ct_CC
="$ac_prog"
2369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2377 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2378 if test -n "$ac_ct_CC"; then
2379 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2380 echo "${ECHO_T}$ac_ct_CC" >&6
2382 echo "$as_me:$LINENO: result: no" >&5
2383 echo "${ECHO_T}no" >&6
2386 test -n "$ac_ct_CC" && break
2395 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2396 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2397 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2398 See \`config.log' for more details." >&5
2399 echo "$as_me: error: no acceptable C compiler found in \$PATH
2400 See \`config.log' for more details." >&2;}
2401 { (exit 1); exit 1; }; }; }
2403 # Provide some information about the compiler.
2404 echo "$as_me:$LINENO:" \
2405 "checking for C compiler version" >&5
2406 ac_compiler
=`set X $ac_compile; echo $2`
2407 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2408 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }
2412 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2413 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }
2417 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2418 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }
2423 cat >conftest.
$ac_ext <<_ACEOF
2426 cat confdefs.h
>>conftest.
$ac_ext
2427 cat >>conftest.
$ac_ext <<_ACEOF
2428 /* end confdefs.h. */
2438 ac_clean_files_save
=$ac_clean_files
2439 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
2440 # Try to create an executable without -o first, disregard a.out.
2441 # It will help us diagnose broken compilers, and finding out an intuition
2443 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2444 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2445 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2446 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2447 (eval $ac_link_default) 2>&5
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; then
2451 # Find the output, starting from the most likely. This scheme is
2452 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2455 # Be careful to initialize this variable, since it used to be cached.
2456 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2458 # b.out is created by i960 compilers.
2459 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
2461 test -f "$ac_file" ||
continue
2463 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
2466 # This is the source file.
2469 # We found the default executable, but exeext='' is most
2473 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2474 # FIXME: I believe we export ac_cv_exeext for Libtool,
2475 # but it would be cool to find out if it's true. Does anybody
2476 # maintain Libtool? --akim.
2484 echo "$as_me: failed program was:" >&5
2485 sed 's/^/| /' conftest.
$ac_ext >&5
2487 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2488 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2489 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2490 See \`config.log' for more details." >&5
2491 echo "$as_me: error: C compiler cannot create executables
2492 See \`config.log' for more details." >&2;}
2493 { (exit 77); exit 77; }; }; }
2496 ac_exeext
=$ac_cv_exeext
2497 echo "$as_me:$LINENO: result: $ac_file" >&5
2498 echo "${ECHO_T}$ac_file" >&6
2500 # Check the compiler produces executables we can run. If not, either
2501 # the compiler is broken, or we cross compile.
2502 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2503 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2504 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2505 # If not cross compiling, check that we can run a simple program.
2506 if test "$cross_compiling" != yes; then
2507 if { ac_try
='./$ac_file'
2508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; }; then
2515 if test "$cross_compiling" = maybe
; then
2518 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2519 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2520 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2521 If you meant to cross compile, use \`--host'.
2522 See \`config.log' for more details." >&5
2523 echo "$as_me: error: cannot run C compiled programs.
2524 If you meant to cross compile, use \`--host'.
2525 See \`config.log' for more details." >&2;}
2526 { (exit 1); exit 1; }; }; }
2530 echo "$as_me:$LINENO: result: yes" >&5
2531 echo "${ECHO_T}yes" >&6
2533 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
2534 ac_clean_files
=$ac_clean_files_save
2535 # Check the compiler produces executables we can run. If not, either
2536 # the compiler is broken, or we cross compile.
2537 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2538 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2539 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2540 echo "${ECHO_T}$cross_compiling" >&6
2542 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2543 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2545 (eval $ac_link) 2>&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; then
2549 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2550 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2551 # work properly (i.e., refer to `conftest.exe'), while it won't with
2553 for ac_file
in conftest.exe conftest conftest.
*; do
2554 test -f "$ac_file" ||
continue
2556 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
2557 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2564 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2565 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2566 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2567 See \`config.log' for more details." >&5
2568 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2569 See \`config.log' for more details." >&2;}
2570 { (exit 1); exit 1; }; }; }
2573 rm -f conftest
$ac_cv_exeext
2574 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2575 echo "${ECHO_T}$ac_cv_exeext" >&6
2577 rm -f conftest.
$ac_ext
2578 EXEEXT
=$ac_cv_exeext
2580 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2581 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2582 if test "${ac_cv_objext+set}" = set; then
2583 echo $ECHO_N "(cached) $ECHO_C" >&6
2585 cat >conftest.
$ac_ext <<_ACEOF
2588 cat confdefs.h
>>conftest.
$ac_ext
2589 cat >>conftest.
$ac_ext <<_ACEOF
2590 /* end confdefs.h. */
2600 rm -f conftest.o conftest.obj
2601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2602 (eval $ac_compile) 2>&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; then
2606 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2608 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
2609 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2614 echo "$as_me: failed program was:" >&5
2615 sed 's/^/| /' conftest.
$ac_ext >&5
2617 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2618 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2619 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2620 See \`config.log' for more details." >&5
2621 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2622 See \`config.log' for more details." >&2;}
2623 { (exit 1); exit 1; }; }; }
2626 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2628 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2629 echo "${ECHO_T}$ac_cv_objext" >&6
2630 OBJEXT
=$ac_cv_objext
2632 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2633 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2634 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2635 echo $ECHO_N "(cached) $ECHO_C" >&6
2637 cat >conftest.
$ac_ext <<_ACEOF
2640 cat confdefs.h
>>conftest.
$ac_ext
2641 cat >>conftest.
$ac_ext <<_ACEOF
2642 /* end confdefs.h. */
2655 rm -f conftest.
$ac_objext
2656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2657 (eval $ac_compile) 2>conftest.er1
2659 grep -v '^ *+' conftest.er1
>conftest.err
2661 cat conftest.err
>&5
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); } &&
2664 { ac_try
='test -z "$ac_c_werror_flag"
2665 || test ! -s conftest.err'
2666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }; } &&
2671 { ac_try
='test -s conftest.$ac_objext'
2672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }; }; then
2679 echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.
$ac_ext >&5
2684 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2685 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2688 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2689 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2690 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2691 ac_test_CFLAGS
=${CFLAGS+set}
2692 ac_save_CFLAGS
=$CFLAGS
2694 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2695 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2696 if test "${ac_cv_prog_cc_g+set}" = set; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2699 cat >conftest.
$ac_ext <<_ACEOF
2702 cat confdefs.h
>>conftest.
$ac_ext
2703 cat >>conftest.
$ac_ext <<_ACEOF
2704 /* end confdefs.h. */
2714 rm -f conftest.
$ac_objext
2715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2716 (eval $ac_compile) 2>conftest.er1
2718 grep -v '^ *+' conftest.er1
>conftest.err
2720 cat conftest.err
>&5
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); } &&
2723 { ac_try
='test -z "$ac_c_werror_flag"
2724 || test ! -s conftest.err'
2725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }; } &&
2730 { ac_try
='test -s conftest.$ac_objext'
2731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); }; }; then
2738 echo "$as_me: failed program was:" >&5
2739 sed 's/^/| /' conftest.
$ac_ext >&5
2743 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2745 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2746 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2747 if test "$ac_test_CFLAGS" = set; then
2748 CFLAGS
=$ac_save_CFLAGS
2749 elif test $ac_cv_prog_cc_g = yes; then
2750 if test "$GCC" = yes; then
2756 if test "$GCC" = yes; then
2762 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2763 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2764 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2765 echo $ECHO_N "(cached) $ECHO_C" >&6
2767 ac_cv_prog_cc_stdc
=no
2769 cat >conftest.
$ac_ext <<_ACEOF
2772 cat confdefs.h
>>conftest.
$ac_ext
2773 cat >>conftest.
$ac_ext <<_ACEOF
2774 /* end confdefs.h. */
2777 #include <sys/types.h>
2778 #include <sys/stat.h>
2779 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2780 struct buf { int x; };
2781 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2782 static char *e (p, i)
2788 static char *f (char * (*g) (char **, int), char **p, ...)
2793 s = g (p, va_arg (v,int));
2798 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2799 function prototypes and stuff, but not '\xHH' hex character constants.
2800 These don't provoke an error unfortunately, instead are silently treated
2801 as 'x'. The following induces an error, until -std1 is added to get
2802 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2803 array size at least. It's necessary to write '\x00'==0 to get something
2804 that's true only with -std1. */
2805 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2807 int test (int i, double x);
2808 struct s1 {int (*f) (int a);};
2809 struct s2 {int (*f) (double a);};
2810 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2816 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2821 # Don't try gcc -ansi; that turns off useful extensions and
2822 # breaks some systems' header files.
2823 # AIX -qlanglvl=ansi
2824 # Ultrix and OSF/1 -std1
2825 # HP-UX 10.20 and later -Ae
2826 # HP-UX older versions -Aa -D_HPUX_SOURCE
2827 # SVR4 -Xc -D__EXTENSIONS__
2828 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2830 CC
="$ac_save_CC $ac_arg"
2831 rm -f conftest.
$ac_objext
2832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2833 (eval $ac_compile) 2>conftest.er1
2835 grep -v '^ *+' conftest.er1
>conftest.err
2837 cat conftest.err
>&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); } &&
2840 { ac_try
='test -z "$ac_c_werror_flag"
2841 || test ! -s conftest.err'
2842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; } &&
2847 { ac_try
='test -s conftest.$ac_objext'
2848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }; }; then
2853 ac_cv_prog_cc_stdc
=$ac_arg
2856 echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.
$ac_ext >&5
2860 rm -f conftest.err conftest.
$ac_objext
2862 rm -f conftest.
$ac_ext conftest.
$ac_objext
2867 case "x$ac_cv_prog_cc_stdc" in
2869 echo "$as_me:$LINENO: result: none needed" >&5
2870 echo "${ECHO_T}none needed" >&6 ;;
2872 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2873 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2874 CC
="$CC $ac_cv_prog_cc_stdc" ;;
2877 # Some people use a C++ compiler to compile C. Since we use `exit',
2878 # in C++ we need to declare it. In case someone uses the same compiler
2879 # for both compiling C and C++ we need to have the C++ compiler decide
2880 # the declaration of exit, since it's the most demanding environment.
2881 cat >conftest.
$ac_ext <<_ACEOF
2886 rm -f conftest.
$ac_objext
2887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2888 (eval $ac_compile) 2>conftest.er1
2890 grep -v '^ *+' conftest.er1
>conftest.err
2892 cat conftest.err
>&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); } &&
2895 { ac_try
='test -z "$ac_c_werror_flag"
2896 || test ! -s conftest.err'
2897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }; } &&
2902 { ac_try
='test -s conftest.$ac_objext'
2903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }; }; then
2908 for ac_declaration
in \
2910 'extern "C" void std::exit (int) throw (); using std::exit;' \
2911 'extern "C" void std::exit (int); using std::exit;' \
2912 'extern "C" void exit (int) throw ();' \
2913 'extern "C" void exit (int);' \
2916 cat >conftest.
$ac_ext <<_ACEOF
2919 cat confdefs.h
>>conftest.
$ac_ext
2920 cat >>conftest.
$ac_ext <<_ACEOF
2921 /* end confdefs.h. */
2932 rm -f conftest.
$ac_objext
2933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2934 (eval $ac_compile) 2>conftest.er1
2936 grep -v '^ *+' conftest.er1
>conftest.err
2938 cat conftest.err
>&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); } &&
2941 { ac_try
='test -z "$ac_c_werror_flag"
2942 || test ! -s conftest.err'
2943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); }; } &&
2948 { ac_try
='test -s conftest.$ac_objext'
2949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); }; }; then
2956 echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.
$ac_ext >&5
2961 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
2962 cat >conftest.
$ac_ext <<_ACEOF
2965 cat confdefs.h
>>conftest.
$ac_ext
2966 cat >>conftest.
$ac_ext <<_ACEOF
2967 /* end confdefs.h. */
2977 rm -f conftest.
$ac_objext
2978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2979 (eval $ac_compile) 2>conftest.er1
2981 grep -v '^ *+' conftest.er1
>conftest.err
2983 cat conftest.err
>&5
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); } &&
2986 { ac_try
='test -z "$ac_c_werror_flag"
2987 || test ! -s conftest.err'
2988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); }; } &&
2993 { ac_try
='test -s conftest.$ac_objext'
2994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); }; }; then
3001 echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.
$ac_ext >&5
3005 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3008 if test -n "$ac_declaration"; then
3009 echo '#ifdef __cplusplus' >>confdefs.h
3010 echo $ac_declaration >>confdefs.h
3011 echo '#endif' >>confdefs.h
3015 echo "$as_me: failed program was:" >&5
3016 sed 's/^/| /' conftest.
$ac_ext >&5
3019 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
3021 ac_cpp
='$CPP $CPPFLAGS'
3022 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3023 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3024 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3025 DEPDIR
="${am__leading_dot}deps"
3027 ac_config_commands
="$ac_config_commands depfiles"
3030 am_make
=${MAKE-make}
3031 cat > confinc
<< 'END'
3036 # If we don't find an include directive, just comment out the code.
3037 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3038 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3042 # First try GNU make style include.
3043 echo "include confinc" > confmf
3044 # We grep out `Entering directory' and `Leaving directory'
3045 # messages which can occur if `w' ends up in MAKEFLAGS.
3046 # In particular we don't look at `^make:' because GNU make might
3047 # be invoked under some other name (usually "gmake"), in which
3048 # case it prints its new name instead of `make'.
3049 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3054 # Now try BSD make style include.
3055 if test "$am__include" = "#"; then
3056 echo '.include "confinc"' > confmf
3057 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3058 am__include
=.include
3065 echo "$as_me:$LINENO: result: $_am_result" >&5
3066 echo "${ECHO_T}$_am_result" >&6
3067 rm -f confinc confmf
3069 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3070 if test "${enable_dependency_tracking+set}" = set; then
3071 enableval
="$enable_dependency_tracking"
3074 if test "x$enable_dependency_tracking" != xno
; then
3075 am_depcomp
="$ac_aux_dir/depcomp"
3080 if test "x$enable_dependency_tracking" != xno; then
3091 depcc
="$CC" am_compiler_list
=
3093 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3094 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3095 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3096 echo $ECHO_N "(cached) $ECHO_C" >&6
3098 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3099 # We make a subdir and do the tests there. Otherwise we can end up
3100 # making bogus files that we don't know about and never remove. For
3101 # instance it was reported that on HP-UX the gcc test will end up
3102 # making a dummy file named `D' -- because `-MD' means `put the output
3105 # Copy depcomp to subdir because otherwise we won't find it if we're
3106 # using a relative directory.
3107 cp "$am_depcomp" conftest.dir
3109 # We will build objects and dependencies in a subdirectory because
3110 # it helps to detect inapplicable dependency modes. For instance
3111 # both Tru64's cc and ICC support -MD to output dependencies as a
3112 # side effect of compilation, but ICC will put the dependencies in
3113 # the current directory while Tru64 will put them in the object
3117 am_cv_CC_dependencies_compiler_type
=none
3118 if test "$am_compiler_list" = ""; then
3119 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3121 for depmode
in $am_compiler_list; do
3122 # Setup a source with many dependencies, because some compilers
3123 # like to wrap large dependency lists on column 80 (with \), and
3124 # we should not choose a depcomp mode which is confused by this.
3126 # We need to recreate these files for each test, as the compiler may
3127 # overwrite some of them when testing with obscure command lines.
3128 # This happens at least with the AIX C compiler.
3130 for i
in 1 2 3 4 5 6; do
3131 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3132 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3133 # Solaris 8's {/usr,}/bin/sh.
3134 touch sub
/conftst
$i.h
3136 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3140 # after this tag, mechanisms are not by side-effect, so they'll
3141 # only be used when explicitly requested
3142 if test "x$enable_dependency_tracking" = xyes
; then
3150 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3151 # mode. It turns out that the SunPro C++ compiler does not properly
3152 # handle `-M -o', and we need to detect this.
3153 if depmode
=$depmode \
3154 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3155 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3156 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3157 >/dev
/null
2>conftest.err
&&
3158 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3159 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3160 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3161 # icc doesn't choke on unknown options, it will just issue warnings
3162 # or remarks (even with -Werror). So we grep stderr for any message
3163 # that says an option was ignored or not supported.
3164 # When given -MP, icc 7.0 and 7.1 complain thusly:
3165 # icc: Command line warning: ignoring option '-M'; no argument required
3166 # The diagnosis changed in icc 8.0:
3167 # icc: Command line remark: option '-MP' not supported
3168 if (grep 'ignoring option' conftest.err ||
3169 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3170 am_cv_CC_dependencies_compiler_type
=$depmode
3179 am_cv_CC_dependencies_compiler_type
=none
3183 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3184 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3185 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3190 test "x$enable_dependency_tracking" != xno \
3191 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3193 am__fastdepCC_FALSE
='#'
3195 am__fastdepCC_TRUE
='#'
3196 am__fastdepCC_FALSE
=
3204 # By default we simply use the C compiler to build assembly code.
3206 test "${CCAS+set}" = set || CCAS
=$CC
3207 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
3211 if test "x$CC" != xcc
; then
3212 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3213 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3215 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3216 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3218 set dummy
$CC; ac_cc
=`echo $2 |
3219 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3220 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3221 echo $ECHO_N "(cached) $ECHO_C" >&6
3223 cat >conftest.
$ac_ext <<_ACEOF
3226 cat confdefs.h
>>conftest.
$ac_ext
3227 cat >>conftest.
$ac_ext <<_ACEOF
3228 /* end confdefs.h. */
3238 # Make sure it works both with $CC and with simple cc.
3239 # We do the test twice because some compilers refuse to overwrite an
3240 # existing .o file with -o, though they will create one.
3241 ac_try
='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3242 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); } &&
3247 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); };
3253 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
3254 if test "x$CC" != xcc
; then
3255 # Test first that cc exists at all.
3256 if { ac_try
='cc -c conftest.$ac_ext >&5'
3257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); }; }; then
3262 ac_try
='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3263 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); } &&
3268 test -f conftest.
$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); };
3277 # cc exists but doesn't like -o.
3278 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
3283 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
3288 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3289 echo "$as_me:$LINENO: result: yes" >&5
3290 echo "${ECHO_T}yes" >&6
3292 echo "$as_me:$LINENO: result: no" >&5
3293 echo "${ECHO_T}no" >&6
3295 cat >>confdefs.h
<<\_ACEOF
3296 #define NO_MINUS_C_MINUS_O 1
3301 # FIXME: we rely on the cache variable name because
3302 # there is no other way.
3304 ac_cc
=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3305 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3306 # Losing compiler, so override with the script.
3307 # FIXME: It is wrong to rewrite CC.
3308 # But if we don't then we get into trouble of one sort or another.
3309 # A longer-term fix would be to have automake use am__CC in this case,
3310 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3311 CC
="$am_aux_dir/compile $CC"
3316 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3317 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3322 macro_version
='2.2.6'
3323 macro_revision
='1.3012'
3337 ltmain
="$ac_aux_dir/ltmain.sh"
3339 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3340 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3341 if test "${lt_cv_path_SED+set}" = set; then
3342 echo $ECHO_N "(cached) $ECHO_C" >&6
3344 # Loop through the user's path and test for sed and gsed.
3345 # Then use that list of sed's as ones to test for truncation.
3346 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3350 test -z "$as_dir" && as_dir
=.
3351 for lt_ac_prog
in sed gsed
; do
3352 for ac_exec_ext
in '' $ac_executable_extensions; do
3353 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3354 lt_ac_sed_list
="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3362 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3363 # along with /bin/sed that truncates output.
3364 for lt_ac_sed
in $lt_ac_sed_list /usr
/xpg
4/bin
/sed; do
3365 test ! -f $lt_ac_sed && continue
3366 cat /dev
/null
> conftest.
in
3368 echo $ECHO_N "0123456789$ECHO_C" >conftest.
in
3369 # Check for GNU sed and select it if it is found.
3370 if "$lt_ac_sed" --version 2>&1 < /dev
/null |
grep 'GNU' > /dev
/null
; then
3371 lt_cv_path_SED
=$lt_ac_sed
3375 cat conftest.
in conftest.
in >conftest.tmp
3376 mv conftest.tmp conftest.
in
3377 cp conftest.
in conftest.
nl
3379 $lt_ac_sed -e 's/a$//' < conftest.
nl >conftest.out ||
break
3380 cmp -s conftest.out conftest.
nl ||
break
3381 # 10000 chars as input seems more than enough
3382 test $lt_ac_count -gt 10 && break
3383 lt_ac_count
=`expr $lt_ac_count + 1`
3384 if test $lt_ac_count -gt $lt_ac_max; then
3385 lt_ac_max
=$lt_ac_count
3386 lt_cv_path_SED
=$lt_ac_sed
3395 echo "$as_me:$LINENO: result: $SED" >&5
3396 echo "${ECHO_T}$SED" >&6
3398 test -z "$SED" && SED
=sed
3399 Xsed
="$SED -e 1s/^X//"
3411 echo "$as_me:$LINENO: checking for egrep" >&5
3412 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3413 if test "${ac_cv_prog_egrep+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3416 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
3417 then ac_cv_prog_egrep
='grep -E'
3418 else ac_cv_prog_egrep
='egrep'
3421 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3422 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3423 EGREP
=$ac_cv_prog_egrep
3426 echo "$as_me:$LINENO: checking for fgrep" >&5
3427 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3428 if test "${ac_cv_prog_fgrep+set}" = set; then
3429 echo $ECHO_N "(cached) $ECHO_C" >&6
3431 if echo 'ab*c' |
(grep -F 'ab*c') >/dev
/null
2>&1
3432 then ac_cv_prog_fgrep
='grep -F'
3433 else ac_cv_prog_fgrep
='fgrep'
3436 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3437 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3438 FGREP
=$ac_cv_prog_fgrep
3441 test -z "$GREP" && GREP
=grep
3461 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3462 if test "${with_gnu_ld+set}" = set; then
3463 withval
="$with_gnu_ld"
3464 test "$withval" = no || with_gnu_ld
=yes
3469 if test "$GCC" = yes; then
3470 # Check if gcc -print-prog-name=ld gives a path.
3471 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3472 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3475 # gcc leaves a trailing carriage return which upsets mingw
3476 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3478 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
3481 # Accept absolute paths.
3483 re_direlt
='/[^/][^/]*/\.\./'
3484 # Canonicalize the pathname of ld
3485 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3486 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
3487 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3489 test -z "$LD" && LD
="$ac_prog"
3492 # If it fails, then pretend we aren't using GCC.
3496 # If it is relative, then search for the first ld in PATH.
3500 elif test "$with_gnu_ld" = yes; then
3501 echo "$as_me:$LINENO: checking for GNU ld" >&5
3502 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3504 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3505 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3507 if test "${lt_cv_path_LD+set}" = set; then
3508 echo $ECHO_N "(cached) $ECHO_C" >&6
3510 if test -z "$LD"; then
3511 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
3512 for ac_dir
in $PATH; do
3514 test -z "$ac_dir" && ac_dir
=.
3515 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
3516 lt_cv_path_LD
="$ac_dir/$ac_prog"
3517 # Check to see if the program is GNU ld. I'd rather use --version,
3518 # but apparently some variants of GNU ld only accept -v.
3519 # Break only if it was the GNU/non-GNU ld that we prefer.
3520 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3521 *GNU
* |
*'with BFD'*)
3522 test "$with_gnu_ld" != no
&& break
3525 test "$with_gnu_ld" != yes && break
3532 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
3537 if test -n "$LD"; then
3538 echo "$as_me:$LINENO: result: $LD" >&5
3539 echo "${ECHO_T}$LD" >&6
3541 echo "$as_me:$LINENO: result: no" >&5
3542 echo "${ECHO_T}no" >&6
3544 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3545 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3546 { (exit 1); exit 1; }; }
3547 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3548 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3549 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3550 echo $ECHO_N "(cached) $ECHO_C" >&6
3552 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3553 case `$LD -v 2>&1 </dev/null` in
3554 *GNU
* |
*'with BFD'*)
3555 lt_cv_prog_gnu_ld
=yes
3558 lt_cv_prog_gnu_ld
=no
3562 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3563 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3564 with_gnu_ld
=$lt_cv_prog_gnu_ld
3574 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3575 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
3576 if test "${lt_cv_path_NM+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3579 if test -n "$NM"; then
3580 # Let the user override the test.
3583 lt_nm_to_check
="${ac_tool_prefix}nm"
3584 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3585 lt_nm_to_check
="$lt_nm_to_check nm"
3587 for lt_tmp_nm
in $lt_nm_to_check; do
3588 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
3589 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
3591 test -z "$ac_dir" && ac_dir
=.
3592 tmp_nm
="$ac_dir/$lt_tmp_nm"
3593 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
3594 # Check to see if the nm accepts a BSD-compat flag.
3595 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3596 # nm: unknown option "B" ignored
3597 # Tru64's nm complains that /dev/null is an invalid object file
3598 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3599 */dev
/null
* |
*'Invalid file or object type'*)
3600 lt_cv_path_NM
="$tmp_nm -B"
3604 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3606 lt_cv_path_NM
="$tmp_nm -p"
3610 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3611 continue # so that we can try to find one that supports BSD flags
3620 : ${lt_cv_path_NM=no}
3623 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3624 echo "${ECHO_T}$lt_cv_path_NM" >&6
3625 if test "$lt_cv_path_NM" != "no"; then
3628 # Didn't find any BSD compatible name lister, look for dumpbin.
3629 if test -n "$ac_tool_prefix"; then
3630 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
3632 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3633 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3634 echo "$as_me:$LINENO: checking for $ac_word" >&5
3635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3636 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3637 echo $ECHO_N "(cached) $ECHO_C" >&6
3639 if test -n "$DUMPBIN"; then
3640 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
3642 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3646 test -z "$as_dir" && as_dir
=.
3647 for ac_exec_ext
in '' $ac_executable_extensions; do
3648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3649 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
3650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3658 DUMPBIN
=$ac_cv_prog_DUMPBIN
3659 if test -n "$DUMPBIN"; then
3660 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3661 echo "${ECHO_T}$DUMPBIN" >&6
3663 echo "$as_me:$LINENO: result: no" >&5
3664 echo "${ECHO_T}no" >&6
3667 test -n "$DUMPBIN" && break
3670 if test -z "$DUMPBIN"; then
3671 ac_ct_DUMPBIN
=$DUMPBIN
3672 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
3674 # Extract the first word of "$ac_prog", so it can be a program name with args.
3675 set dummy
$ac_prog; ac_word
=$2
3676 echo "$as_me:$LINENO: checking for $ac_word" >&5
3677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3678 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3681 if test -n "$ac_ct_DUMPBIN"; then
3682 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
3684 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3688 test -z "$as_dir" && as_dir
=.
3689 for ac_exec_ext
in '' $ac_executable_extensions; do
3690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3691 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
3692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3700 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
3701 if test -n "$ac_ct_DUMPBIN"; then
3702 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3703 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
3705 echo "$as_me:$LINENO: result: no" >&5
3706 echo "${ECHO_T}no" >&6
3709 test -n "$ac_ct_DUMPBIN" && break
3711 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN
=":"
3713 DUMPBIN
=$ac_ct_DUMPBIN
3717 if test "$DUMPBIN" != ":"; then
3721 test -z "$NM" && NM
=nm
3728 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3729 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
3730 if test "${lt_cv_nm_interface+set}" = set; then
3731 echo $ECHO_N "(cached) $ECHO_C" >&6
3733 lt_cv_nm_interface
="BSD nm"
3734 echo "int some_variable = 0;" > conftest.
$ac_ext
3735 (eval echo "\"\$as_me:3735: $ac_compile\"" >&5)
3736 (eval "$ac_compile" 2>conftest.err
)
3737 cat conftest.err
>&5
3738 (eval echo "\"\$as_me:3738: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3739 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
3740 cat conftest.err
>&5
3741 (eval echo "\"\$as_me:3741: output\"" >&5)
3742 cat conftest.out
>&5
3743 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
3744 lt_cv_nm_interface
="MS dumpbin"
3748 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3749 echo "${ECHO_T}$lt_cv_nm_interface" >&6
3751 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3752 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3754 if test "$LN_S" = "ln -s"; then
3755 echo "$as_me:$LINENO: result: yes" >&5
3756 echo "${ECHO_T}yes" >&6
3758 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3759 echo "${ECHO_T}no, using $LN_S" >&6
3762 # find the maximum length of command line arguments
3763 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3764 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3765 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3773 # On DJGPP, this test can blow up pretty badly due to problems in libc
3774 # (any single argument exceeding 2000 bytes causes a buffer overrun
3775 # during glob expansion). Even if it were fixed, the result of this
3776 # check would be larger than it should be.
3777 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
3781 # Under GNU Hurd, this test is not required because there is
3782 # no limit to the length of command line arguments.
3783 # Libtool will interpret -1 as no limit whatsoever
3784 lt_cv_sys_max_cmd_len
=-1;
3787 cygwin
* | mingw
* | cegcc
*)
3788 # On Win9x/ME, this test blows up -- it succeeds, but takes
3789 # about 5 minutes as the teststring grows exponentially.
3790 # Worse, since 9x/ME are not pre-emptively multitasking,
3791 # you end up with a "frozen" computer, even though with patience
3792 # the test eventually succeeds (with a max line length of 256k).
3793 # Instead, let's just punt: use the minimum linelength reported by
3794 # all of the supported platforms: 8192 (on NT/2K/XP).
3795 lt_cv_sys_max_cmd_len
=8192;
3799 # On AmigaOS with pdksh, this test takes hours, literally.
3800 # So we just punt and use a minimum line length of 8192.
3801 lt_cv_sys_max_cmd_len
=8192;
3804 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
3805 # This has been around since 386BSD, at least. Likely further.
3806 if test -x /sbin
/sysctl
; then
3807 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
3808 elif test -x /usr
/sbin
/sysctl
; then
3809 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
3811 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
3813 # And add a safety zone
3814 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
3815 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
3819 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3820 lt_cv_sys_max_cmd_len
=196608
3824 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3825 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3826 # nice to cause kernel panics so lets avoid the loop below.
3827 # First set a reasonable default.
3828 lt_cv_sys_max_cmd_len
=16384
3830 if test -x /sbin
/sysconfig
; then
3831 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3832 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
3837 lt_cv_sys_max_cmd_len
=102400
3839 sysv5
* | sco5v6
* | sysv4.2uw2
*)
3840 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3841 if test -n "$kargmax"; then
3842 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
3844 lt_cv_sys_max_cmd_len
=32768
3848 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
3849 if test -n "$lt_cv_sys_max_cmd_len"; then
3850 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
3851 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
3853 # Make teststring a little bigger before we do anything with it.
3854 # a 1K string should be a reasonable start.
3855 for i
in 1 2 3 4 5 6 7 8 ; do
3856 teststring
=$teststring$teststring
3858 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
3859 # If test is not a shell built-in, we'll probably end up computing a
3860 # maximum length that is only half of the actual maximum length, but
3862 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3863 = "XX$teststring$teststring"; } >/dev
/null
2>&1 &&
3864 test $i != 17 # 1/2 MB should be enough
3867 teststring
=$teststring$teststring
3869 # Only check the string length outside the loop.
3870 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
3872 # Add a significant safety factor because C++ compilers can tack on
3873 # massive amounts of additional arguments before passing them to the
3874 # linker. It appears as though 1/2 is a usable value.
3875 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
3882 if test -n $lt_cv_sys_max_cmd_len ; then
3883 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3884 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3886 echo "$as_me:$LINENO: result: none" >&5
3887 echo "${ECHO_T}none" >&6
3889 max_cmd_len
=$lt_cv_sys_max_cmd_len
3900 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3901 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
3902 # Try some XSI features
3905 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3907 && eval 'test $(( 1 + 1 )) -eq 2 \
3908 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
3910 echo "$as_me:$LINENO: result
: $xsi_shell" >&5
3911 echo "${ECHO_T}$xsi_shell" >&6
3914 echo "$as_me:$LINENO: checking whether the shell understands
\"+=\"" >&5
3915 echo $ECHO_N "checking whether the shell understands
\"+=\"...
$ECHO_C" >&6
3917 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
3919 && lt_shell_append=yes
3920 echo "$as_me:$LINENO: result
: $lt_shell_append" >&5
3921 echo "${ECHO_T}$lt_shell_append" >&6
3924 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3934 # test EBCDIC or ASCII
3935 case `echo X|tr X '\101'` in
3936 A) # ASCII based system
3937 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3938 lt_SP2NL='tr \040 \012'
3939 lt_NL2SP='tr \015\012 \040\040'
3941 *) # EBCDIC based system
3942 lt_SP2NL='tr \100 \n'
3943 lt_NL2SP='tr \r\n \100\100'
3955 echo "$as_me:$LINENO: checking
for $LD option to reload object files
" >&5
3956 echo $ECHO_N "checking
for $LD option to reload object files...
$ECHO_C" >&6
3957 if test "${lt_cv_ld_reload_flag+set}" = set; then
3958 echo $ECHO_N "(cached
) $ECHO_C" >&6
3960 lt_cv_ld_reload_flag='-r'
3962 echo "$as_me:$LINENO: result
: $lt_cv_ld_reload_flag" >&5
3963 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3964 reload_flag=$lt_cv_ld_reload_flag
3965 case $reload_flag in
3967 *) reload_flag=" $reload_flag" ;;
3969 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3972 if test "$GCC" = yes; then
3973 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3975 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3988 if test -n "$ac_tool_prefix"; then
3989 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
3990 set dummy ${ac_tool_prefix}objdump; ac_word=$2
3991 echo "$as_me:$LINENO: checking
for $ac_word" >&5
3992 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
3993 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
3994 echo $ECHO_N "(cached
) $ECHO_C" >&6
3996 if test -n "$OBJDUMP"; then
3997 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003 test -z "$as_dir" && as_dir=.
4004 for ac_exec_ext in '' $ac_executable_extensions; do
4005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4006 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
4007 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
4015 OBJDUMP=$ac_cv_prog_OBJDUMP
4016 if test -n "$OBJDUMP"; then
4017 echo "$as_me:$LINENO: result
: $OBJDUMP" >&5
4018 echo "${ECHO_T}$OBJDUMP" >&6
4020 echo "$as_me:$LINENO: result
: no
" >&5
4021 echo "${ECHO_T}no
" >&6
4025 if test -z "$ac_cv_prog_OBJDUMP"; then
4026 ac_ct_OBJDUMP=$OBJDUMP
4027 # Extract the first word of "objdump
", so it can be a program name with args.
4028 set dummy objdump; ac_word=$2
4029 echo "$as_me:$LINENO: checking
for $ac_word" >&5
4030 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
4031 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4032 echo $ECHO_N "(cached
) $ECHO_C" >&6
4034 if test -n "$ac_ct_OBJDUMP"; then
4035 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4041 test -z "$as_dir" && as_dir=.
4042 for ac_exec_ext in '' $ac_executable_extensions; do
4043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4044 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
4045 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
4051 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false
"
4054 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4055 if test -n "$ac_ct_OBJDUMP"; then
4056 echo "$as_me:$LINENO: result
: $ac_ct_OBJDUMP" >&5
4057 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4059 echo "$as_me:$LINENO: result
: no
" >&5
4060 echo "${ECHO_T}no
" >&6
4063 OBJDUMP=$ac_ct_OBJDUMP
4065 OBJDUMP="$ac_cv_prog_OBJDUMP"
4068 test -z "$OBJDUMP" && OBJDUMP=objdump
4078 echo "$as_me:$LINENO: checking how to recognize dependent libraries
" >&5
4079 echo $ECHO_N "checking how to recognize dependent libraries...
$ECHO_C" >&6
4080 if test "${lt_cv_deplibs_check_method+set}" = set; then
4081 echo $ECHO_N "(cached
) $ECHO_C" >&6
4083 lt_cv_file_magic_cmd='$MAGIC_CMD'
4084 lt_cv_file_magic_test_file=
4085 lt_cv_deplibs_check_method='unknown'
4086 # Need to set the preceding variable on all platforms that support
4087 # interlibrary dependencies.
4088 # 'none' -- dependencies not supported.
4089 # `unknown' -- same as none, but documents that we really don't know.
4090 # 'pass_all' -- all dependencies passed with no checks.
4091 # 'test_compile' -- check by making test program.
4092 # 'file_magic [[regex]]' -- check by looking for files in library path
4093 # which responds to the $file_magic_cmd with a given extended regex.
4094 # If you have `file' or equivalent on your system and you're not sure
4095 # whether `pass_all' will *always* work, you probably want this one.
4099 lt_cv_deplibs_check_method=pass_all
4103 lt_cv_deplibs_check_method=pass_all
4107 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4108 lt_cv_file_magic_cmd='/usr/bin/file -L'
4109 lt_cv_file_magic_test_file=/shlib/libc.so
4113 # func_win32_libid is a shell function defined in ltmain.sh
4114 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4115 lt_cv_file_magic_cmd='func_win32_libid'
4119 # Base MSYS/MinGW do not provide the 'file' command needed by
4120 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4121 # unless we find 'file', for example because we are cross-compiling.
4122 if ( file / ) >/dev/null 2>&1; then
4123 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4124 lt_cv_file_magic_cmd='func_win32_libid'
4126 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4127 lt_cv_file_magic_cmd='$OBJDUMP -f'
4132 # use the weaker test based on 'objdump'. See mingw*.
4133 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4134 lt_cv_file_magic_cmd='$OBJDUMP -f'
4137 darwin* | rhapsody*)
4138 lt_cv_deplibs_check_method=pass_all
4141 freebsd* | dragonfly*)
4142 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4145 # Not sure whether the presence of OpenBSD here was a mistake.
4146 # Let's accept both of them until this is cleared up.
4147 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4148 lt_cv_file_magic_cmd=/usr/bin/file
4149 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4153 lt_cv_deplibs_check_method=pass_all
4158 lt_cv_deplibs_check_method=pass_all
4161 hpux10.20* | hpux11*)
4162 lt_cv_file_magic_cmd=/usr/bin/file
4165 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4166 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4169 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4170 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4173 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4174 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4180 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4181 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4184 irix5* | irix6* | nonstopux*)
4186 *-32|*"-32 ") libmagic=32-bit;;
4187 *-n32|*"-n32 ") libmagic=N32;;
4188 *-64|*"-64 ") libmagic=64-bit;;
4189 *) libmagic=never-match;;
4191 lt_cv_deplibs_check_method=pass_all
4194 # This must be Linux ELF.
4195 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4196 lt_cv_deplibs_check_method=pass_all
4200 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4201 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4203 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4208 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4209 lt_cv_file_magic_cmd=/usr/bin/file
4210 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4214 lt_cv_deplibs_check_method=pass_all
4218 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
4219 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4221 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4225 osf3* | osf4* | osf5*)
4226 lt_cv_deplibs_check_method=pass_all
4230 lt_cv_deplibs_check_method=pass_all
4234 lt_cv_deplibs_check_method=pass_all
4237 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4238 lt_cv_deplibs_check_method=pass_all
4242 case $host_vendor in
4244 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]'
4245 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4248 lt_cv_deplibs_check_method=pass_all
4251 lt_cv_file_magic_cmd='/bin/file'
4252 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4255 lt_cv_file_magic_cmd='/bin/file'
4256 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
4257 lt_cv_file_magic_test_file=/lib/libc.so
4260 lt_cv_deplibs_check_method=pass_all
4263 lt_cv_deplibs_check_method=pass_all
4269 lt_cv_deplibs_check_method=pass_all
4274 echo "$as_me:$LINENO: result
: $lt_cv_deplibs_check_method" >&5
4275 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4276 file_magic_cmd=$lt_cv_file_magic_cmd
4277 deplibs_check_method=$lt_cv_deplibs_check_method
4278 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4291 if test -n "$ac_tool_prefix"; then
4292 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4293 set dummy ${ac_tool_prefix}ar; ac_word=$2
4294 echo "$as_me:$LINENO: checking
for $ac_word" >&5
4295 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
4296 if test "${ac_cv_prog_AR+set}" = set; then
4297 echo $ECHO_N "(cached
) $ECHO_C" >&6
4299 if test -n "$AR"; then
4300 ac_cv_prog_AR="$AR" # Let the user override the test.
4302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306 test -z "$as_dir" && as_dir=.
4307 for ac_exec_ext in '' $ac_executable_extensions; do
4308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4309 ac_cv_prog_AR="${ac_tool_prefix}ar"
4310 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
4319 if test -n "$AR"; then
4320 echo "$as_me:$LINENO: result
: $AR" >&5
4321 echo "${ECHO_T}$AR" >&6
4323 echo "$as_me:$LINENO: result
: no
" >&5
4324 echo "${ECHO_T}no
" >&6
4328 if test -z "$ac_cv_prog_AR"; then
4330 # Extract the first word of "ar", so it can be a program name with args.
4331 set dummy ar; ac_word=$2
4332 echo "$as_me:$LINENO: checking
for $ac_word" >&5
4333 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
4334 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4335 echo $ECHO_N "(cached
) $ECHO_C" >&6
4337 if test -n "$ac_ct_AR"; then
4338 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344 test -z "$as_dir" && as_dir=.
4345 for ac_exec_ext in '' $ac_executable_extensions; do
4346 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4347 ac_cv_prog_ac_ct_AR="ar"
4348 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
4354 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false
"
4357 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4358 if test -n "$ac_ct_AR"; then
4359 echo "$as_me:$LINENO: result
: $ac_ct_AR" >&5
4360 echo "${ECHO_T}$ac_ct_AR" >&6
4362 echo "$as_me:$LINENO: result
: no
" >&5
4363 echo "${ECHO_T}no
" >&6
4371 test -z "$AR" && AR=ar
4372 test -z "$AR_FLAGS" && AR_FLAGS=cru
4384 if test -n "$ac_tool_prefix"; then
4385 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
4386 set dummy ${ac_tool_prefix}strip; ac_word=$2
4387 echo "$as_me:$LINENO: checking
for $ac_word" >&5
4388 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
4389 if test "${ac_cv_prog_STRIP+set}" = set; then
4390 echo $ECHO_N "(cached
) $ECHO_C" >&6
4392 if test -n "$STRIP"; then
4393 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399 test -z "$as_dir" && as_dir=.
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4402 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
4403 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
4411 STRIP=$ac_cv_prog_STRIP
4412 if test -n "$STRIP"; then
4413 echo "$as_me:$LINENO: result
: $STRIP" >&5
4414 echo "${ECHO_T}$STRIP" >&6
4416 echo "$as_me:$LINENO: result
: no
" >&5
4417 echo "${ECHO_T}no
" >&6
4421 if test -z "$ac_cv_prog_STRIP"; then
4423 # Extract the first word of "strip
", so it can be a program name with args.
4424 set dummy strip; ac_word=$2
4425 echo "$as_me:$LINENO: checking
for $ac_word" >&5
4426 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
4427 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4428 echo $ECHO_N "(cached
) $ECHO_C" >&6
4430 if test -n "$ac_ct_STRIP"; then
4431 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437 test -z "$as_dir" && as_dir=.
4438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4440 ac_cv_prog_ac_ct_STRIP="strip
"
4441 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
4447 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4450 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4451 if test -n "$ac_ct_STRIP"; then
4452 echo "$as_me:$LINENO: result
: $ac_ct_STRIP" >&5
4453 echo "${ECHO_T}$ac_ct_STRIP" >&6
4455 echo "$as_me:$LINENO: result
: no
" >&5
4456 echo "${ECHO_T}no
" >&6
4461 STRIP="$ac_cv_prog_STRIP"
4464 test -z "$STRIP" && STRIP=:
4471 if test -n "$ac_tool_prefix"; then
4472 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
4473 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4474 echo "$as_me:$LINENO: checking
for $ac_word" >&5
4475 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
4476 if test "${ac_cv_prog_RANLIB+set}" = set; then
4477 echo $ECHO_N "(cached
) $ECHO_C" >&6
4479 if test -n "$RANLIB"; then
4480 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486 test -z "$as_dir" && as_dir=.
4487 for ac_exec_ext in '' $ac_executable_extensions; do
4488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4489 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
4490 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
4498 RANLIB=$ac_cv_prog_RANLIB
4499 if test -n "$RANLIB"; then
4500 echo "$as_me:$LINENO: result
: $RANLIB" >&5
4501 echo "${ECHO_T}$RANLIB" >&6
4503 echo "$as_me:$LINENO: result
: no
" >&5
4504 echo "${ECHO_T}no
" >&6
4508 if test -z "$ac_cv_prog_RANLIB"; then
4509 ac_ct_RANLIB=$RANLIB
4510 # Extract the first word of "ranlib
", so it can be a program name with args.
4511 set dummy ranlib; ac_word=$2
4512 echo "$as_me:$LINENO: checking
for $ac_word" >&5
4513 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
4514 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4515 echo $ECHO_N "(cached
) $ECHO_C" >&6
4517 if test -n "$ac_ct_RANLIB"; then
4518 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524 test -z "$as_dir" && as_dir=.
4525 for ac_exec_ext in '' $ac_executable_extensions; do
4526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4527 ac_cv_prog_ac_ct_RANLIB="ranlib
"
4528 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
4534 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4537 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4538 if test -n "$ac_ct_RANLIB"; then
4539 echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
4540 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4542 echo "$as_me:$LINENO: result
: no
" >&5
4543 echo "${ECHO_T}no
" >&6
4546 RANLIB=$ac_ct_RANLIB
4548 RANLIB="$ac_cv_prog_RANLIB"
4551 test -z "$RANLIB" && RANLIB=:
4558 # Determine commands to create old-style static archives.
4559 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4560 old_postinstall_cmds='chmod 644 $oldlib'
4561 old_postuninstall_cmds=
4563 if test -n "$RANLIB"; then
4566 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
4569 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
4572 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
4608 # If no C compiler was specified, use CC.
4611 # If no C compiler flags were specified, use CFLAGS.
4612 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4614 # Allow CC to be a program name with arguments.
4618 # Check for command to grab the raw symbol name followed by C symbol from nm.
4619 echo "$as_me:$LINENO: checking
command to parse
$NM output from
$compiler object
" >&5
4620 echo $ECHO_N "checking
command to parse
$NM output from
$compiler object...
$ECHO_C" >&6
4621 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4622 echo $ECHO_N "(cached
) $ECHO_C" >&6
4625 # These are sane defaults that work on at least a few old systems.
4626 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4628 # Character class describing NM global symbol codes.
4629 symcode='[BCDEGRST]'
4631 # Regexp to match symbols that can be accessed directly from C.
4632 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4634 # Define system-specific variables.
4639 cygwin* | mingw* | pw32* | cegcc*)
4640 symcode='[ABCDGISTW]'
4643 if test "$host_cpu" = ia64; then
4644 symcode='[ABCDEGRST]'
4648 symcode='[BCDEGRST]'
4651 symcode='[BCDEGQRST]'
4662 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4670 # If we're using GNU nm, then use its standard symbol codes.
4671 case `$NM -V 2>&1` in
4672 *GNU* | *'with BFD'*)
4673 symcode='[ABCDGIRSTW]' ;;
4676 # Transform an extracted symbol line into a proper C declaration.
4677 # Some systems (esp. on ia64) link data and code symbols differently,
4678 # so use this general approach.
4679 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4681 # Transform an extracted symbol line into symbol name and symbol address
4682 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4683 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'"
4685 # Handle CRLF in mingw tool chain
4689 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4693 # Try without a prefix underscore, then with it.
4694 for ac_symprfx in "" "_
"; do
4696 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4697 symxfrm="\\1 $ac_symprfx\\2 \\2"
4699 # Write the raw and C identifiers.
4700 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
4701 # Fake it for dumpbin and say T for any non-static function
4702 # and D for any global variable.
4703 # Also find C++ and __fastcall symbols from MSVC++,
4704 # which start with @ or ?.
4705 lt_cv_sys_global_symbol_pipe="$AWK '"\
4706 " {last_section=section; section=\$ 3};"\
4707 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4708 " \$ 0!~/External *\|/{next};"\
4709 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4710 " {if(hide[section]) next};"\
4711 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4712 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4713 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
4714 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4715 " ' prfx
=^
$ac_symprfx"
4717 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4720 # Check to see that the pipe works correctly.
4724 cat > conftest.$ac_ext <<_LT_EOF
4729 void nm_test_func(void);
4730 void nm_test_func(void){}
4734 int main(){nm_test_var='a';nm_test_func();return(0);}
4737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4738 (eval $ac_compile) 2>&5
4740 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4741 (exit $ac_status); }; then
4742 # Now try to grab the symbols.
4744 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist\"") >&5
4745 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4747 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4748 (exit $ac_status); } && test -s "$nlist"; then
4749 # Try sorting and uniquifying the output.
4750 if sort "$nlist" | uniq > "$nlist"T; then
4751 mv -f "$nlist"T "$nlist"
4756 # Make sure that we snagged all the symbols we need.
4757 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4758 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4759 cat <<_LT_EOF > conftest.$ac_ext
4765 # Now generate the symbol file.
4766 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4768 cat <<_LT_EOF >> conftest.$ac_ext
4770 /* The mapping between symbol names and symbols. */
4775 lt__PROGRAM__LTX_preloaded_symbols[] =
4777 { "@PROGRAM@
", (void *) 0 },
4779 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4780 cat <<\_LT_EOF >> conftest.$ac_ext
4784 /* This works around a problem in FreeBSD linker */
4785 #ifdef FREEBSD_WORKAROUND
4786 static const void *lt_preloaded_setup() {
4787 return lt__PROGRAM__LTX_preloaded_symbols;
4795 # Now try linking the two files.
4796 mv conftest.$ac_objext conftstm.$ac_objext
4797 lt_save_LIBS="$LIBS"
4798 lt_save_CFLAGS="$CFLAGS"
4799 LIBS="conftstm.
$ac_objext"
4800 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4802 (eval $ac_link) 2>&5
4804 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4805 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4808 LIBS="$lt_save_LIBS"
4809 CFLAGS="$lt_save_CFLAGS"
4811 echo "cannot
find nm_test_func
in $nlist" >&5
4814 echo "cannot
find nm_test_var
in $nlist" >&5
4817 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
4820 echo "$progname: failed program was
:" >&5
4821 cat conftest.$ac_ext >&5
4823 rm -rf conftest* conftst*
4825 # Do not use the global_symbol_pipe unless it works.
4826 if test "$pipe_works" = yes; then
4829 lt_cv_sys_global_symbol_pipe=
4835 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4836 lt_cv_sys_global_symbol_to_cdecl=
4838 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4839 echo "$as_me:$LINENO: result
: failed
" >&5
4840 echo "${ECHO_T}failed
" >&6
4842 echo "$as_me:$LINENO: result
: ok
" >&5
4843 echo "${ECHO_T}ok
" >&6
4868 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4869 if test "${enable_libtool_lock+set}" = set; then
4870 enableval="$enable_libtool_lock"
4873 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
4875 # Some flags need to be propagated to the compiler or linker for good
4879 # Find out which ABI we are using.
4880 echo 'int i;' > conftest.$ac_ext
4881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4882 (eval $ac_compile) 2>&5
4884 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4885 (exit $ac_status); }; then
4886 case `/usr/bin/file conftest.$ac_objext` in
4898 # Find out which ABI we are using.
4899 echo '#line 4899 "configure
"' > conftest.$ac_ext
4900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4901 (eval $ac_compile) 2>&5
4903 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4904 (exit $ac_status); }; then
4905 if test "$lt_cv_prog_gnu_ld" = yes; then
4906 case `/usr/bin/file conftest.$ac_objext` in
4908 LD="${LD-ld} -melf32bsmip"
4911 LD="${LD-ld} -melf32bmipn32"
4914 LD="${LD-ld} -melf64bmip"
4918 case `/usr/bin/file conftest.$ac_objext` in
4934 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4935 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
4936 # Find out which ABI we are using.
4937 echo 'int i;' > conftest.$ac_ext
4938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4939 (eval $ac_compile) 2>&5
4941 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4942 (exit $ac_status); }; then
4943 case `/usr/bin/file conftest.o` in
4946 x86_64-*kfreebsd*-gnu)
4947 LD="${LD-ld} -m elf_i386_fbsd
"
4950 LD="${LD-ld} -m elf_i386
"
4952 ppc64-*linux*|powerpc64-*linux*)
4953 LD="${LD-ld} -m elf32ppclinux
"
4956 LD="${LD-ld} -m elf_s390
"
4959 LD="${LD-ld} -m elf32_sparc
"
4965 x86_64-*kfreebsd*-gnu)
4966 LD="${LD-ld} -m elf_x86_64_fbsd
"
4969 LD="${LD-ld} -m elf_x86_64
"
4971 ppc*-*linux*|powerpc*-*linux*)
4972 LD="${LD-ld} -m elf64ppc
"
4974 s390*-*linux*|s390*-*tpf*)
4975 LD="${LD-ld} -m elf64_s390
"
4978 LD="${LD-ld} -m elf64_sparc
"
4988 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4989 SAVE_CFLAGS="$CFLAGS"
4990 CFLAGS="$CFLAGS -belf"
4991 echo "$as_me:$LINENO: checking whether the C compiler needs
-belf" >&5
4992 echo $ECHO_N "checking whether the C compiler needs
-belf...
$ECHO_C" >&6
4993 if test "${lt_cv_cc_needs_belf+set}" = set; then
4994 echo $ECHO_N "(cached
) $ECHO_C" >&6
4997 ac_cpp='$CPP $CPPFLAGS'
4998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5002 cat >conftest.$ac_ext <<_ACEOF
5005 cat confdefs.h >>conftest.$ac_ext
5006 cat >>conftest.$ac_ext <<_ACEOF
5007 /* end confdefs.h. */
5017 rm -f conftest.$ac_objext conftest$ac_exeext
5018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5019 (eval $ac_link) 2>conftest.er1
5021 grep -v '^ *+' conftest.er1 >conftest.err
5023 cat conftest.err >&5
5024 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5025 (exit $ac_status); } &&
5026 { ac_try='test -z "$ac_c_werror_flag"
5027 || test ! -s conftest.err'
5028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5031 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5032 (exit $ac_status); }; } &&
5033 { ac_try='test -s conftest$ac_exeext'
5034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5037 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5038 (exit $ac_status); }; }; then
5039 lt_cv_cc_needs_belf=yes
5041 echo "$as_me: failed program was
:" >&5
5042 sed 's/^/| /' conftest.$ac_ext >&5
5044 lt_cv_cc_needs_belf=no
5046 rm -f conftest.err conftest.$ac_objext \
5047 conftest$ac_exeext conftest.$ac_ext
5049 ac_cpp='$CPP $CPPFLAGS'
5050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5055 echo "$as_me:$LINENO: result
: $lt_cv_cc_needs_belf" >&5
5056 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5057 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5058 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5059 CFLAGS="$SAVE_CFLAGS"
5063 # Find out which ABI we are using.
5064 echo 'int i;' > conftest.$ac_ext
5065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5066 (eval $ac_compile) 2>&5
5068 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5069 (exit $ac_status); }; then
5070 case `/usr/bin/file conftest.o` in
5072 case $lt_cv_prog_gnu_ld in
5073 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
5075 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5087 need_locks="$enable_libtool_lock"
5091 rhapsody* | darwin*)
5092 if test -n "$ac_tool_prefix"; then
5093 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
5094 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5095 echo "$as_me:$LINENO: checking
for $ac_word" >&5
5096 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
5097 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
5098 echo $ECHO_N "(cached
) $ECHO_C" >&6
5100 if test -n "$DSYMUTIL"; then
5101 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107 test -z "$as_dir" && as_dir=.
5108 for ac_exec_ext in '' $ac_executable_extensions; do
5109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5110 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
5111 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5119 DSYMUTIL=$ac_cv_prog_DSYMUTIL
5120 if test -n "$DSYMUTIL"; then
5121 echo "$as_me:$LINENO: result
: $DSYMUTIL" >&5
5122 echo "${ECHO_T}$DSYMUTIL" >&6
5124 echo "$as_me:$LINENO: result
: no
" >&5
5125 echo "${ECHO_T}no
" >&6
5129 if test -z "$ac_cv_prog_DSYMUTIL"; then
5130 ac_ct_DSYMUTIL=$DSYMUTIL
5131 # Extract the first word of "dsymutil
", so it can be a program name with args.
5132 set dummy dsymutil; ac_word=$2
5133 echo "$as_me:$LINENO: checking
for $ac_word" >&5
5134 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
5135 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
5136 echo $ECHO_N "(cached
) $ECHO_C" >&6
5138 if test -n "$ac_ct_DSYMUTIL"; then
5139 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5145 test -z "$as_dir" && as_dir=.
5146 for ac_exec_ext in '' $ac_executable_extensions; do
5147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5148 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
5149 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5155 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
5158 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5159 if test -n "$ac_ct_DSYMUTIL"; then
5160 echo "$as_me:$LINENO: result
: $ac_ct_DSYMUTIL" >&5
5161 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
5163 echo "$as_me:$LINENO: result
: no
" >&5
5164 echo "${ECHO_T}no
" >&6
5167 DSYMUTIL=$ac_ct_DSYMUTIL
5169 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5172 if test -n "$ac_tool_prefix"; then
5173 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
5174 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5175 echo "$as_me:$LINENO: checking
for $ac_word" >&5
5176 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
5177 if test "${ac_cv_prog_NMEDIT+set}" = set; then
5178 echo $ECHO_N "(cached
) $ECHO_C" >&6
5180 if test -n "$NMEDIT"; then
5181 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 test -z "$as_dir" && as_dir=.
5188 for ac_exec_ext in '' $ac_executable_extensions; do
5189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5190 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
5191 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5199 NMEDIT=$ac_cv_prog_NMEDIT
5200 if test -n "$NMEDIT"; then
5201 echo "$as_me:$LINENO: result
: $NMEDIT" >&5
5202 echo "${ECHO_T}$NMEDIT" >&6
5204 echo "$as_me:$LINENO: result
: no
" >&5
5205 echo "${ECHO_T}no
" >&6
5209 if test -z "$ac_cv_prog_NMEDIT"; then
5210 ac_ct_NMEDIT=$NMEDIT
5211 # Extract the first word of "nmedit
", so it can be a program name with args.
5212 set dummy nmedit; ac_word=$2
5213 echo "$as_me:$LINENO: checking
for $ac_word" >&5
5214 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
5215 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
5216 echo $ECHO_N "(cached
) $ECHO_C" >&6
5218 if test -n "$ac_ct_NMEDIT"; then
5219 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225 test -z "$as_dir" && as_dir=.
5226 for ac_exec_ext in '' $ac_executable_extensions; do
5227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5228 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
5229 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5235 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
5238 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5239 if test -n "$ac_ct_NMEDIT"; then
5240 echo "$as_me:$LINENO: result
: $ac_ct_NMEDIT" >&5
5241 echo "${ECHO_T}$ac_ct_NMEDIT" >&6
5243 echo "$as_me:$LINENO: result
: no
" >&5
5244 echo "${ECHO_T}no
" >&6
5247 NMEDIT=$ac_ct_NMEDIT
5249 NMEDIT="$ac_cv_prog_NMEDIT"
5252 if test -n "$ac_tool_prefix"; then
5253 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
5254 set dummy ${ac_tool_prefix}lipo; ac_word=$2
5255 echo "$as_me:$LINENO: checking
for $ac_word" >&5
5256 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
5257 if test "${ac_cv_prog_LIPO+set}" = set; then
5258 echo $ECHO_N "(cached
) $ECHO_C" >&6
5260 if test -n "$LIPO"; then
5261 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5267 test -z "$as_dir" && as_dir=.
5268 for ac_exec_ext in '' $ac_executable_extensions; do
5269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5270 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
5271 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5279 LIPO=$ac_cv_prog_LIPO
5280 if test -n "$LIPO"; then
5281 echo "$as_me:$LINENO: result
: $LIPO" >&5
5282 echo "${ECHO_T}$LIPO" >&6
5284 echo "$as_me:$LINENO: result
: no
" >&5
5285 echo "${ECHO_T}no
" >&6
5289 if test -z "$ac_cv_prog_LIPO"; then
5291 # Extract the first word of "lipo
", so it can be a program name with args.
5292 set dummy lipo; ac_word=$2
5293 echo "$as_me:$LINENO: checking
for $ac_word" >&5
5294 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
5295 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
5296 echo $ECHO_N "(cached
) $ECHO_C" >&6
5298 if test -n "$ac_ct_LIPO"; then
5299 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305 test -z "$as_dir" && as_dir=.
5306 for ac_exec_ext in '' $ac_executable_extensions; do
5307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5308 ac_cv_prog_ac_ct_LIPO="lipo
"
5309 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5315 test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":"
5318 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5319 if test -n "$ac_ct_LIPO"; then
5320 echo "$as_me:$LINENO: result
: $ac_ct_LIPO" >&5
5321 echo "${ECHO_T}$ac_ct_LIPO" >&6
5323 echo "$as_me:$LINENO: result
: no
" >&5
5324 echo "${ECHO_T}no
" >&6
5329 LIPO="$ac_cv_prog_LIPO"
5332 if test -n "$ac_tool_prefix"; then
5333 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
5334 set dummy ${ac_tool_prefix}otool; ac_word=$2
5335 echo "$as_me:$LINENO: checking
for $ac_word" >&5
5336 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
5337 if test "${ac_cv_prog_OTOOL+set}" = set; then
5338 echo $ECHO_N "(cached
) $ECHO_C" >&6
5340 if test -n "$OTOOL"; then
5341 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347 test -z "$as_dir" && as_dir=.
5348 for ac_exec_ext in '' $ac_executable_extensions; do
5349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5350 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
5351 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5359 OTOOL=$ac_cv_prog_OTOOL
5360 if test -n "$OTOOL"; then
5361 echo "$as_me:$LINENO: result
: $OTOOL" >&5
5362 echo "${ECHO_T}$OTOOL" >&6
5364 echo "$as_me:$LINENO: result
: no
" >&5
5365 echo "${ECHO_T}no
" >&6
5369 if test -z "$ac_cv_prog_OTOOL"; then
5371 # Extract the first word of "otool
", so it can be a program name with args.
5372 set dummy otool; ac_word=$2
5373 echo "$as_me:$LINENO: checking
for $ac_word" >&5
5374 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
5375 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
5376 echo $ECHO_N "(cached
) $ECHO_C" >&6
5378 if test -n "$ac_ct_OTOOL"; then
5379 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5385 test -z "$as_dir" && as_dir=.
5386 for ac_exec_ext in '' $ac_executable_extensions; do
5387 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5388 ac_cv_prog_ac_ct_OTOOL="otool
"
5389 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5395 test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":"
5398 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5399 if test -n "$ac_ct_OTOOL"; then
5400 echo "$as_me:$LINENO: result
: $ac_ct_OTOOL" >&5
5401 echo "${ECHO_T}$ac_ct_OTOOL" >&6
5403 echo "$as_me:$LINENO: result
: no
" >&5
5404 echo "${ECHO_T}no
" >&6
5409 OTOOL="$ac_cv_prog_OTOOL"
5412 if test -n "$ac_tool_prefix"; then
5413 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
5414 set dummy ${ac_tool_prefix}otool64; ac_word=$2
5415 echo "$as_me:$LINENO: checking
for $ac_word" >&5
5416 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
5417 if test "${ac_cv_prog_OTOOL64+set}" = set; then
5418 echo $ECHO_N "(cached
) $ECHO_C" >&6
5420 if test -n "$OTOOL64"; then
5421 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427 test -z "$as_dir" && as_dir=.
5428 for ac_exec_ext in '' $ac_executable_extensions; do
5429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5430 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
5431 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5439 OTOOL64=$ac_cv_prog_OTOOL64
5440 if test -n "$OTOOL64"; then
5441 echo "$as_me:$LINENO: result
: $OTOOL64" >&5
5442 echo "${ECHO_T}$OTOOL64" >&6
5444 echo "$as_me:$LINENO: result
: no
" >&5
5445 echo "${ECHO_T}no
" >&6
5449 if test -z "$ac_cv_prog_OTOOL64"; then
5450 ac_ct_OTOOL64=$OTOOL64
5451 # Extract the first word of "otool64
", so it can be a program name with args.
5452 set dummy otool64; ac_word=$2
5453 echo "$as_me:$LINENO: checking
for $ac_word" >&5
5454 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6
5455 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
5456 echo $ECHO_N "(cached
) $ECHO_C" >&6
5458 if test -n "$ac_ct_OTOOL64"; then
5459 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5465 test -z "$as_dir" && as_dir=.
5466 for ac_exec_ext in '' $ac_executable_extensions; do
5467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5468 ac_cv_prog_ac_ct_OTOOL64="otool64
"
5469 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5475 test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":"
5478 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5479 if test -n "$ac_ct_OTOOL64"; then
5480 echo "$as_me:$LINENO: result
: $ac_ct_OTOOL64" >&5
5481 echo "${ECHO_T}$ac_ct_OTOOL64" >&6
5483 echo "$as_me:$LINENO: result
: no
" >&5
5484 echo "${ECHO_T}no
" >&6
5487 OTOOL64=$ac_ct_OTOOL64
5489 OTOOL64="$ac_cv_prog_OTOOL64"
5518 echo "$as_me:$LINENO: checking
for -single_module linker flag
" >&5
5519 echo $ECHO_N "checking
for -single_module linker flag...
$ECHO_C" >&6
5520 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
5521 echo $ECHO_N "(cached
) $ECHO_C" >&6
5523 lt_cv_apple_cc_single_mod=no
5524 if test -z "${LT_MULTI_MODULE}"; then
5525 # By default we will add the -single_module flag. You can override
5526 # by either setting the environment variable LT_MULTI_MODULE
5527 # non-empty at configure time, or by adding -multi_module to the
5529 rm -rf libconftest.dylib*
5530 echo "int foo
(void
){return 1;}" > conftest.c
5531 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5532 -dynamiclib -Wl,-single_module conftest.c
" >&5
5533 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5534 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5536 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5537 lt_cv_apple_cc_single_mod=yes
5539 cat conftest.err >&5
5541 rm -rf libconftest.dylib*
5545 echo "$as_me:$LINENO: result
: $lt_cv_apple_cc_single_mod" >&5
5546 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
5547 echo "$as_me:$LINENO: checking
for -exported_symbols_list linker flag
" >&5
5548 echo $ECHO_N "checking
for -exported_symbols_list linker flag...
$ECHO_C" >&6
5549 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
5550 echo $ECHO_N "(cached
) $ECHO_C" >&6
5552 lt_cv_ld_exported_symbols_list=no
5553 save_LDFLAGS=$LDFLAGS
5554 echo "_main
" > conftest.sym
5555 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
5556 cat >conftest.$ac_ext <<_ACEOF
5559 cat confdefs.h >>conftest.$ac_ext
5560 cat >>conftest.$ac_ext <<_ACEOF
5561 /* end confdefs.h. */
5571 rm -f conftest.$ac_objext conftest$ac_exeext
5572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5573 (eval $ac_link) 2>conftest.er1
5575 grep -v '^ *+' conftest.er1 >conftest.err
5577 cat conftest.err >&5
5578 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5579 (exit $ac_status); } &&
5580 { ac_try='test -z "$ac_c_werror_flag"
5581 || test ! -s conftest.err'
5582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5585 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5586 (exit $ac_status); }; } &&
5587 { ac_try='test -s conftest$ac_exeext'
5588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5591 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5592 (exit $ac_status); }; }; then
5593 lt_cv_ld_exported_symbols_list=yes
5595 echo "$as_me: failed program was
:" >&5
5596 sed 's/^/| /' conftest.$ac_ext >&5
5598 lt_cv_ld_exported_symbols_list=no
5600 rm -f conftest.err conftest.$ac_objext \
5601 conftest$ac_exeext conftest.$ac_ext
5602 LDFLAGS="$save_LDFLAGS"
5605 echo "$as_me:$LINENO: result
: $lt_cv_ld_exported_symbols_list" >&5
5606 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
5608 rhapsody* | darwin1.[012])
5609 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5611 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5612 darwin*) # darwin 5.x on
5613 # if running on 10.5 or later, the deployment target defaults
5614 # to the OS version, if on x86, and 10.4, the deployment
5615 # target defaults to 10.4. Don't you love it?
5616 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5617 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5618 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5620 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5622 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5626 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5627 _lt_dar_single_mod='$single_module'
5629 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5630 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5632 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5634 if test "$DSYMUTIL" != ":"; then
5635 _lt_dsymutil='~$DSYMUTIL $lib || :'
5643 ac_cpp='$CPP $CPPFLAGS'
5644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5647 echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
5648 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6
5649 # On Suns, sometimes $CPP names a directory.
5650 if test -n "$CPP" && test -d "$CPP"; then
5653 if test -z "$CPP"; then
5654 if test "${ac_cv_prog_CPP+set}" = set; then
5655 echo $ECHO_N "(cached
) $ECHO_C" >&6
5657 # Double quotes because CPP needs to be expanded
5658 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
5661 for ac_c_preproc_warn_flag in '' yes
5663 # Use a header file that comes with gcc, so configuring glibc
5664 # with a fresh cross-compiler works.
5665 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5666 # <limits.h> exists even on freestanding compilers.
5667 # On the NeXT, cc -E runs the code through the compiler's parser,
5668 # not just through cpp. "Syntax error
" is here to catch this case.
5669 cat >conftest.$ac_ext <<_ACEOF
5672 cat confdefs.h >>conftest.$ac_ext
5673 cat >>conftest.$ac_ext <<_ACEOF
5674 /* end confdefs.h. */
5676 # include <limits.h>
5678 # include <assert.h>
5682 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.
$ac_ext\"") >&5
5683 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5685 grep -v '^ *+' conftest.er1 >conftest.err
5687 cat conftest.err >&5
5688 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5689 (exit $ac_status); } >/dev/null; then
5690 if test -s conftest.err; then
5691 ac_cpp_err=$ac_c_preproc_warn_flag
5692 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5699 if test -z "$ac_cpp_err"; then
5702 echo "$as_me: failed program was
:" >&5
5703 sed 's/^/| /' conftest.$ac_ext >&5
5705 # Broken: fails on valid input.
5708 rm -f conftest.err conftest.$ac_ext
5710 # OK, works on sane cases. Now check whether non-existent headers
5711 # can be detected and how.
5712 cat >conftest.$ac_ext <<_ACEOF
5715 cat confdefs.h >>conftest.$ac_ext
5716 cat >>conftest.$ac_ext <<_ACEOF
5717 /* end confdefs.h. */
5718 #include <ac_nonexistent.h>
5720 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.
$ac_ext\"") >&5
5721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5723 grep -v '^ *+' conftest.er1 >conftest.err
5725 cat conftest.err >&5
5726 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5727 (exit $ac_status); } >/dev/null; then
5728 if test -s conftest.err; then
5729 ac_cpp_err=$ac_c_preproc_warn_flag
5730 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5737 if test -z "$ac_cpp_err"; then
5738 # Broken: success on invalid input.
5741 echo "$as_me: failed program was
:" >&5
5742 sed 's/^/| /' conftest.$ac_ext >&5
5744 # Passes both tests.
5748 rm -f conftest.err conftest.$ac_ext
5751 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5752 rm -f conftest.err conftest.$ac_ext
5753 if $ac_preproc_ok; then
5765 echo "$as_me:$LINENO: result
: $CPP" >&5
5766 echo "${ECHO_T}$CPP" >&6
5768 for ac_c_preproc_warn_flag in '' yes
5770 # Use a header file that comes with gcc, so configuring glibc
5771 # with a fresh cross-compiler works.
5772 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5773 # <limits.h> exists even on freestanding compilers.
5774 # On the NeXT, cc -E runs the code through the compiler's parser,
5775 # not just through cpp. "Syntax error
" is here to catch this case.
5776 cat >conftest.$ac_ext <<_ACEOF
5779 cat confdefs.h >>conftest.$ac_ext
5780 cat >>conftest.$ac_ext <<_ACEOF
5781 /* end confdefs.h. */
5783 # include <limits.h>
5785 # include <assert.h>
5789 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.
$ac_ext\"") >&5
5790 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5792 grep -v '^ *+' conftest.er1 >conftest.err
5794 cat conftest.err >&5
5795 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5796 (exit $ac_status); } >/dev/null; then
5797 if test -s conftest.err; then
5798 ac_cpp_err=$ac_c_preproc_warn_flag
5799 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5806 if test -z "$ac_cpp_err"; then
5809 echo "$as_me: failed program was
:" >&5
5810 sed 's/^/| /' conftest.$ac_ext >&5
5812 # Broken: fails on valid input.
5815 rm -f conftest.err conftest.$ac_ext
5817 # OK, works on sane cases. Now check whether non-existent headers
5818 # can be detected and how.
5819 cat >conftest.$ac_ext <<_ACEOF
5822 cat confdefs.h >>conftest.$ac_ext
5823 cat >>conftest.$ac_ext <<_ACEOF
5824 /* end confdefs.h. */
5825 #include <ac_nonexistent.h>
5827 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.
$ac_ext\"") >&5
5828 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5830 grep -v '^ *+' conftest.er1 >conftest.err
5832 cat conftest.err >&5
5833 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5834 (exit $ac_status); } >/dev/null; then
5835 if test -s conftest.err; then
5836 ac_cpp_err=$ac_c_preproc_warn_flag
5837 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5844 if test -z "$ac_cpp_err"; then
5845 # Broken: success on invalid input.
5848 echo "$as_me: failed program was
:" >&5
5849 sed 's/^/| /' conftest.$ac_ext >&5
5851 # Passes both tests.
5855 rm -f conftest.err conftest.$ac_ext
5858 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5859 rm -f conftest.err conftest.$ac_ext
5860 if $ac_preproc_ok; then
5863 { { echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
5864 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5865 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5866 See \`config.log' for more details.
" >&5
5867 echo "$as_me: error
: C preprocessor
\"$CPP\" fails sanity check
5868 See \
`config.log' for more details." >&2;}
5869 { (exit 1); exit 1; }; }; }
5873 ac_cpp='$CPP $CPPFLAGS'
5874 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5875 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5876 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5879 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5880 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5881 if test "${ac_cv_header_stdc+set}" = set; then
5882 echo $ECHO_N "(cached) $ECHO_C" >&6
5884 cat >conftest.$ac_ext <<_ACEOF
5887 cat confdefs.h >>conftest.$ac_ext
5888 cat >>conftest.$ac_ext <<_ACEOF
5889 /* end confdefs.h. */
5903 rm -f conftest.$ac_objext
5904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5905 (eval $ac_compile) 2>conftest.er1
5907 grep -v '^ *+' conftest.er1 >conftest.err
5909 cat conftest.err >&5
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); } &&
5912 { ac_try='test -z "$ac_c_werror_flag"
5913 || test ! -s conftest.err'
5914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); }; } &&
5919 { ac_try='test -s conftest.$ac_objext'
5920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); }; }; then
5925 ac_cv_header_stdc=yes
5927 echo "$as_me: failed program was:" >&5
5928 sed 's/^/| /' conftest.$ac_ext >&5
5930 ac_cv_header_stdc=no
5932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5934 if test $ac_cv_header_stdc = yes; then
5935 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5936 cat >conftest.$ac_ext <<_ACEOF
5939 cat confdefs.h >>conftest.$ac_ext
5940 cat >>conftest.$ac_ext <<_ACEOF
5941 /* end confdefs.h. */
5945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5946 $EGREP "memchr" >/dev/null 2>&1; then
5949 ac_cv_header_stdc=no
5955 if test $ac_cv_header_stdc = yes; then
5956 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5957 cat >conftest.$ac_ext <<_ACEOF
5960 cat confdefs.h >>conftest.$ac_ext
5961 cat >>conftest.$ac_ext <<_ACEOF
5962 /* end confdefs.h. */
5966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5967 $EGREP "free" >/dev/null 2>&1; then
5970 ac_cv_header_stdc=no
5976 if test $ac_cv_header_stdc = yes; then
5977 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5978 if test "$cross_compiling" = yes; then
5981 cat >conftest.$ac_ext <<_ACEOF
5984 cat confdefs.h >>conftest.$ac_ext
5985 cat >>conftest.$ac_ext <<_ACEOF
5986 /* end confdefs.h. */
5988 #if ((' ' & 0x0FF) == 0x020)
5989 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5990 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5992 # define ISLOWER(c) \
5993 (('a' <= (c) && (c) <= 'i') \
5994 || ('j' <= (c) && (c) <= 'r') \
5995 || ('s' <= (c) && (c) <= 'z'))
5996 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5999 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6004 for (i = 0; i < 256; i++)
6005 if (XOR (islower (i), ISLOWER (i))
6006 || toupper (i) != TOUPPER (i))
6011 rm -f conftest$ac_exeext
6012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6013 (eval $ac_link) 2>&5
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; }; then
6024 echo "$as_me: program exited with status $ac_status" >&5
6025 echo "$as_me: failed program was:" >&5
6026 sed 's/^/| /' conftest.$ac_ext >&5
6029 ac_cv_header_stdc=no
6031 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6035 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6036 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6037 if test $ac_cv_header_stdc = yes; then
6039 cat >>confdefs.h <<\_ACEOF
6040 #define STDC_HEADERS 1
6045 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6055 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6056 inttypes.h stdint.h unistd.h
6058 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6059 echo "$as_me:$LINENO: checking for $ac_header" >&5
6060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6061 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6064 cat >conftest.$ac_ext <<_ACEOF
6067 cat confdefs.h >>conftest.$ac_ext
6068 cat >>conftest.$ac_ext <<_ACEOF
6069 /* end confdefs.h. */
6070 $ac_includes_default
6072 #include <$ac_header>
6074 rm -f conftest.$ac_objext
6075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6076 (eval $ac_compile) 2>conftest.er1
6078 grep -v '^ *+' conftest.er1 >conftest.err
6080 cat conftest.err >&5
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); } &&
6083 { ac_try='test -z "$ac_c_werror_flag"
6084 || test ! -s conftest.err'
6085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); }; } &&
6090 { ac_try='test -s conftest.$ac_objext'
6091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); }; }; then
6096 eval "$as_ac_Header=yes"
6098 echo "$as_me: failed program was:" >&5
6099 sed 's/^/| /' conftest.$ac_ext >&5
6101 eval "$as_ac_Header=no"
6103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6105 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6106 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6107 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6108 cat >>confdefs.h <<_ACEOF
6109 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6118 for ac_header in dlfcn.h
6120 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6121 echo "$as_me:$LINENO: checking for $ac_header" >&5
6122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
6126 cat >conftest.$ac_ext <<_ACEOF
6129 cat confdefs.h >>conftest.$ac_ext
6130 cat >>conftest.$ac_ext <<_ACEOF
6131 /* end confdefs.h. */
6132 $ac_includes_default
6134 #include <$ac_header>
6136 rm -f conftest.$ac_objext
6137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6138 (eval $ac_compile) 2>conftest.er1
6140 grep -v '^ *+' conftest.er1 >conftest.err
6142 cat conftest.err >&5
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); } &&
6145 { ac_try='test -z "$ac_c_werror_flag"
6146 || test ! -s conftest.err'
6147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); }; } &&
6152 { ac_try='test -s conftest.$ac_objext'
6153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); }; }; then
6158 eval "$as_ac_Header=yes"
6160 echo "$as_me: failed program was:" >&5
6161 sed 's/^/| /' conftest.$ac_ext >&5
6163 eval "$as_ac_Header=no"
6165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6168 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6169 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6170 cat >>confdefs.h <<_ACEOF
6171 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6190 # Check whether --enable-shared or --disable-shared was given.
6191 if test "${enable_shared+set}" = set; then
6192 enableval="$enable_shared"
6193 p=${PACKAGE-default}
6195 yes) enable_shared=yes ;;
6196 no) enable_shared=no ;;
6199 # Look at the argument we got. We use all the common list separators.
6200 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6201 for pkg in $enableval; do
6203 if test "X$pkg" = "X$p"; then
6221 # Check whether --enable-static or --disable-static was given.
6222 if test "${enable_static+set}" = set; then
6223 enableval="$enable_static"
6224 p=${PACKAGE-default}
6226 yes) enable_static=yes ;;
6227 no) enable_static=no ;;
6230 # Look at the argument we got. We use all the common list separators.
6231 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6232 for pkg in $enableval; do
6234 if test "X$pkg" = "X$p"; then
6253 # Check whether --with-pic or --without-pic was given.
6254 if test "${with_pic+set}" = set; then
6261 test -z "$pic_mode" && pic_mode=default
6269 # Check whether --enable-fast-install or --disable-fast-install was given.
6270 if test "${enable_fast_install+set}" = set; then
6271 enableval="$enable_fast_install"
6272 p=${PACKAGE-default}
6274 yes) enable_fast_install=yes ;;
6275 no) enable_fast_install=no ;;
6277 enable_fast_install=no
6278 # Look at the argument we got. We use all the common list separators.
6279 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6280 for pkg in $enableval; do
6282 if test "X$pkg" = "X$p"; then
6283 enable_fast_install=yes
6290 enable_fast_install=yes
6302 # This can be used to rebuild libtool when needed
6303 LIBTOOL_DEPS="$ltmain"
6305 # Always use our own libtool.
6306 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6332 test -z "$LN_S" && LN_S="ln -s"
6347 if test -n "${ZSH_VERSION+set}" ; then
6348 setopt NO_GLOB_SUBST
6351 echo "$as_me:$LINENO: checking for objdir" >&5
6352 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6353 if test "${lt_cv_objdir+set}" = set; then
6354 echo $ECHO_N "(cached) $ECHO_C" >&6
6356 rm -f .libs 2>/dev/null
6357 mkdir .libs 2>/dev/null
6358 if test -d .libs; then
6361 # MS-DOS does not allow filenames that begin with a dot.
6364 rmdir .libs 2>/dev/null
6366 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6367 echo "${ECHO_T}$lt_cv_objdir" >&6
6368 objdir=$lt_cv_objdir
6374 cat >>confdefs.h <<_ACEOF
6375 #define LT_OBJDIR "$lt_cv_objdir/"
6396 # AIX sometimes has problems with the GCC collect2 program. For some
6397 # reason, if we set the COLLECT_NAMES environment variable, the problems
6398 # vanish in a puff of smoke.
6399 if test "X${COLLECT_NAMES+set}" != Xset; then
6401 export COLLECT_NAMES
6406 # Sed substitution that helps us do robust quoting. It backslashifies
6407 # metacharacters that are still active within double-quoted strings.
6408 sed_quote_subst='s/\(["`$
\\]\
)/\\\
1/g
'
6410 # Same as above, but do not quote variable references.
6411 double_quote_subst='s
/\
(["`\\]\)/\\\1/g'
6413 # Sed substitution to delay expansion of an escaped shell variable in a
6414 # double_quote_subst'ed string.
6415 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6417 # Sed substitution to delay expansion of an escaped single quote.
6418 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6420 # Sed substitution to avoid accidental globbing in evaled expressions
6421 no_glob_subst='s/\*/\\\*/g'
6425 can_build_shared=yes
6427 # All known linkers require a `.a' archive for static linking (except MSVC,
6428 # which needs '.lib').
6431 with_gnu_ld="$lt_cv_prog_gnu_ld"
6434 old_CFLAGS="$CFLAGS"
6436 # Set sane defaults for various variables
6437 test -z "$CC" && CC=cc
6438 test -z "$LTCC" && LTCC=$CC
6439 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6440 test -z "$LD" && LD=ld
6441 test -z "$ac_objext" && ac_objext=o
6443 for cc_temp in $compiler""; do
6445 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6446 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6451 cc_basename=`$ECHO "X
$cc_temp" | $Xsed -e 's%.*/%%' -e "s
%^
$host_alias-%%"`
6454 # Only perform the check for file, if the check method requires it
6455 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6456 case $deplibs_check_method in
6458 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6459 echo "$as_me:$LINENO: checking
for ${ac_tool_prefix}file" >&5
6460 echo $ECHO_N "checking
for ${ac_tool_prefix}file...
$ECHO_C" >&6
6461 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6462 echo $ECHO_N "(cached
) $ECHO_C" >&6
6466 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6469 lt_save_MAGIC_CMD="$MAGIC_CMD"
6470 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6471 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
6472 for ac_dir in $ac_dummy; do
6474 test -z "$ac_dir" && ac_dir=.
6475 if test -f $ac_dir/${ac_tool_prefix}file; then
6476 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6477 if test -n "$file_magic_test_file"; then
6478 case $deplibs_check_method in
6480 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
6481 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6482 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6483 $EGREP "$file_magic_regex" > /dev/null; then
6488 *** Warning: the command libtool uses to detect shared libraries,
6489 *** $file_magic_cmd, produces output that libtool cannot recognize.
6490 *** The result is that libtool may fail to recognize shared libraries
6491 *** as such. This will affect the creation of libtool libraries that
6492 *** depend on shared libraries, but programs linked with such libtool
6493 *** libraries will work regardless of this problem. Nevertheless, you
6494 *** may want to report the problem to your system manager and/or to
6495 *** bug-libtool@gnu.org
6505 MAGIC_CMD="$lt_save_MAGIC_CMD"
6510 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6511 if test -n "$MAGIC_CMD"; then
6512 echo "$as_me:$LINENO: result
: $MAGIC_CMD" >&5
6513 echo "${ECHO_T}$MAGIC_CMD" >&6
6515 echo "$as_me:$LINENO: result
: no
" >&5
6516 echo "${ECHO_T}no
" >&6
6523 if test -z "$lt_cv_path_MAGIC_CMD"; then
6524 if test -n "$ac_tool_prefix"; then
6525 echo "$as_me:$LINENO: checking
for file" >&5
6526 echo $ECHO_N "checking
for file...
$ECHO_C" >&6
6527 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6528 echo $ECHO_N "(cached
) $ECHO_C" >&6
6532 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6535 lt_save_MAGIC_CMD="$MAGIC_CMD"
6536 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6537 ac_dummy="/usr
/bin
$PATH_SEPARATOR$PATH"
6538 for ac_dir in $ac_dummy; do
6540 test -z "$ac_dir" && ac_dir=.
6541 if test -f $ac_dir/file; then
6542 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6543 if test -n "$file_magic_test_file"; then
6544 case $deplibs_check_method in
6546 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \
(.
*\
)"`
6547 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6548 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6549 $EGREP "$file_magic_regex" > /dev/null; then
6554 *** Warning: the command libtool uses to detect shared libraries,
6555 *** $file_magic_cmd, produces output that libtool cannot recognize.
6556 *** The result is that libtool may fail to recognize shared libraries
6557 *** as such. This will affect the creation of libtool libraries that
6558 *** depend on shared libraries, but programs linked with such libtool
6559 *** libraries will work regardless of this problem. Nevertheless, you
6560 *** may want to report the problem to your system manager and/or to
6561 *** bug-libtool@gnu.org
6571 MAGIC_CMD="$lt_save_MAGIC_CMD"
6576 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6577 if test -n "$MAGIC_CMD"; then
6578 echo "$as_me:$LINENO: result
: $MAGIC_CMD" >&5
6579 echo "${ECHO_T}$MAGIC_CMD" >&6
6581 echo "$as_me:$LINENO: result
: no
" >&5
6582 echo "${ECHO_T}no
" >&6
6595 # Use C for the default configuration in the libtool script
6599 ac_cpp='$CPP $CPPFLAGS'
6600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6605 # Source file extension for C test sources.
6608 # Object file extension for compiled C test sources.
6612 # Code to be used in simple compile tests
6613 lt_simple_compile_test_code="int some_variable
= 0;"
6615 # Code to be used in simple link tests
6616 lt_simple_link_test_code='int main(){return(0);}'
6624 # If no C compiler was specified, use CC.
6627 # If no C compiler flags were specified, use CFLAGS.
6628 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6630 # Allow CC to be a program name with arguments.
6633 # Save the default compiler, since it gets overwritten when the other
6634 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6635 compiler_DEFAULT=$CC
6637 # save warnings/boilerplate of simple test code
6638 ac_outfile=conftest.$ac_objext
6639 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6640 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6641 _lt_compiler_boilerplate=`cat conftest.err`
6644 ac_outfile=conftest.$ac_objext
6645 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6646 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6647 _lt_linker_boilerplate=`cat conftest.err`
6652 ## There is no encapsulation within the following macros, do not change
6653 ## the running order or otherwise move them around unless you know exactly
6654 ## what you are doing...
6655 if test -n "$compiler"; then
6657 lt_prog_compiler_no_builtin_flag=
6659 if test "$GCC" = yes; then
6660 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6662 echo "$as_me:$LINENO: checking
if $compiler supports
-fno-rtti -fno-exceptions" >&5
6663 echo $ECHO_N "checking
if $compiler supports
-fno-rtti -fno-exceptions...
$ECHO_C" >&6
6664 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6665 echo $ECHO_N "(cached
) $ECHO_C" >&6
6667 lt_cv_prog_compiler_rtti_exceptions=no
6668 ac_outfile=conftest.$ac_objext
6669 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6670 lt_compiler_flag="-fno-rtti -fno-exceptions"
6671 # Insert the option either (1) after the last *FLAGS variable, or
6672 # (2) before a word containing "conftest.
", or (3) at the end.
6673 # Note that $ac_compile itself does not contain backslashes and begins
6674 # with a dollar sign (not a hyphen), so the echo should work correctly.
6675 # The option is referenced via a variable to avoid confusing sed.
6676 lt_compile=`echo "$ac_compile" | $SED \
6677 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6678 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6679 -e 's:$: $lt_compiler_flag:'`
6680 (eval echo "\"\
$as_me:6680: $lt_compile\"" >&5)
6681 (eval "$lt_compile" 2>conftest.err)
6683 cat conftest.err >&5
6684 echo "$as_me:6684: \$?
= $ac_status" >&5
6685 if (exit $ac_status) && test -s "$ac_outfile"; then
6686 # The compiler can only warn and ignore the option if not recognized
6687 # So say no if there are warnings other than the usual output.
6688 $ECHO "X
$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6689 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6690 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6691 lt_cv_prog_compiler_rtti_exceptions=yes
6697 echo "$as_me:$LINENO: result
: $lt_cv_prog_compiler_rtti_exceptions" >&5
6698 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6700 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6701 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6713 lt_prog_compiler_wl=
6714 lt_prog_compiler_pic=
6715 lt_prog_compiler_static=
6717 echo "$as_me:$LINENO: checking
for $compiler option to produce PIC
" >&5
6718 echo $ECHO_N "checking
for $compiler option to produce PIC...
$ECHO_C" >&6
6720 if test "$GCC" = yes; then
6721 lt_prog_compiler_wl='-Wl,'
6722 lt_prog_compiler_static='-static'
6726 # All AIX code is PIC.
6727 if test "$host_cpu" = ia64; then
6728 # AIX 5 now supports IA64 processor
6729 lt_prog_compiler_static='-Bstatic'
6736 # see comment about AmigaOS4 .so support
6737 lt_prog_compiler_pic='-fPIC'
6740 # FIXME: we need at least 68020 code to build shared libraries, but
6741 # adding the `-m68020' flag to GCC prevents building anything better,
6743 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6748 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6749 # PIC is the default for these OSes.
6752 mingw* | cygwin* | pw32* | os2* | cegcc*)
6753 # This hack is so that the source file can tell whether it is being
6754 # built for inclusion in a dll (and should export symbols for example).
6755 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6756 # (--disable-auto-import) libraries
6757 lt_prog_compiler_pic='-DDLL_EXPORT'
6760 darwin* | rhapsody*)
6761 # PIC is the default on this platform
6762 # Common symbols not allowed in MH_DYLIB files
6763 lt_prog_compiler_pic='-fno-common'
6767 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6768 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6769 # sets the default TLS model and affects inlining.
6775 lt_prog_compiler_pic='-fPIC'
6781 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6782 # Instead, we relocate shared libraries at runtime.
6786 # Just because we use GCC doesn't mean we suddenly get shared libraries
6787 # on systems that don't support them.
6788 lt_prog_compiler_can_build_shared=no
6793 # QNX uses GNU C++, but need to define -shared option too, otherwise
6795 lt_prog_compiler_pic='-fPIC -shared'
6799 if test -d /usr/nec; then
6800 lt_prog_compiler_pic=-Kconform_pic
6805 lt_prog_compiler_pic='-fPIC'
6809 # PORTME Check for flag to pass linker flags through the system compiler.
6812 lt_prog_compiler_wl='-Wl,'
6813 if test "$host_cpu" = ia64; then
6814 # AIX 5 now supports IA64 processor
6815 lt_prog_compiler_static='-Bstatic'
6817 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6821 mingw* | cygwin* | pw32* | os2* | cegcc*)
6822 # This hack is so that the source file can tell whether it is being
6823 # built for inclusion in a dll (and should export symbols for example).
6824 lt_prog_compiler_pic='-DDLL_EXPORT'
6827 hpux9* | hpux10* | hpux11*)
6828 lt_prog_compiler_wl='-Wl,'
6829 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6836 lt_prog_compiler_pic='+Z'
6839 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6840 lt_prog_compiler_static='${wl}-a ${wl}archive'
6843 irix5* | irix6* | nonstopux*)
6844 lt_prog_compiler_wl='-Wl,'
6845 # PIC (with -KPIC) is the default.
6846 lt_prog_compiler_static='-non_shared'
6849 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6850 case $cc_basename in
6851 # old Intel for x86_64 which still supported -KPIC.
6853 lt_prog_compiler_wl='-Wl,'
6854 lt_prog_compiler_pic='-KPIC'
6855 lt_prog_compiler_static='-static'
6857 # icc used to be incompatible with GCC.
6858 # ICC 10 doesn't accept -KPIC any more.
6860 lt_prog_compiler_wl='-Wl,'
6861 lt_prog_compiler_pic='-fPIC'
6862 lt_prog_compiler_static='-static'
6864 # Lahey Fortran 8.1.
6866 lt_prog_compiler_wl='-Wl,'
6867 lt_prog_compiler_pic='--shared'
6868 lt_prog_compiler_static='--static'
6870 pgcc* | pgf77* | pgf90* | pgf95*)
6871 # Portland Group compilers (*not* the Pentium gcc compiler,
6872 # which looks to be a dead project)
6873 lt_prog_compiler_wl='-Wl,'
6874 lt_prog_compiler_pic='-fpic'
6875 lt_prog_compiler_static='-Bstatic'
6878 lt_prog_compiler_wl='-Wl,'
6879 # All Alpha code is PIC.
6880 lt_prog_compiler_static='-non_shared'
6883 # IBM XL C 8.0/Fortran 10.1 on PPC
6884 lt_prog_compiler_wl='-Wl,'
6885 lt_prog_compiler_pic='-qpic'
6886 lt_prog_compiler_static='-qstaticlink'
6889 case `$CC -V 2>&1 | sed 5q` in
6892 lt_prog_compiler_pic='-KPIC'
6893 lt_prog_compiler_static='-Bstatic'
6894 lt_prog_compiler_wl='-Wl,'
6897 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6898 lt_prog_compiler_pic='-KPIC'
6899 lt_prog_compiler_static='-Bstatic'
6900 lt_prog_compiler_wl=''
6908 lt_prog_compiler_pic='-KPIC'
6909 lt_prog_compiler_static='-Bstatic'
6913 # QNX uses GNU C++, but need to define -shared option too, otherwise
6915 lt_prog_compiler_pic='-fPIC -shared'
6918 osf3* | osf4* | osf5*)
6919 lt_prog_compiler_wl='-Wl,'
6920 # All OSF/1 code is PIC.
6921 lt_prog_compiler_static='-non_shared'
6925 lt_prog_compiler_static='-non_shared'
6929 lt_prog_compiler_pic='-KPIC'
6930 lt_prog_compiler_static='-Bstatic'
6931 case $cc_basename in
6933 lt_prog_compiler_wl='-Qoption ld ';;
6935 lt_prog_compiler_wl='-Wl,';;
6940 lt_prog_compiler_wl='-Qoption ld '
6941 lt_prog_compiler_pic='-PIC'
6942 lt_prog_compiler_static='-Bstatic'
6945 sysv4 | sysv4.2uw2* | sysv4.3*)
6946 lt_prog_compiler_wl='-Wl,'
6947 lt_prog_compiler_pic='-KPIC'
6948 lt_prog_compiler_static='-Bstatic'
6952 if test -d /usr/nec ;then
6953 lt_prog_compiler_pic='-Kconform_pic'
6954 lt_prog_compiler_static='-Bstatic'
6958 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6959 lt_prog_compiler_wl='-Wl,'
6960 lt_prog_compiler_pic='-KPIC'
6961 lt_prog_compiler_static='-Bstatic'
6965 lt_prog_compiler_wl='-Wl,'
6966 lt_prog_compiler_can_build_shared=no
6970 lt_prog_compiler_pic='-pic'
6971 lt_prog_compiler_static='-Bstatic'
6975 lt_prog_compiler_can_build_shared=no
6981 # For platforms which do not support PIC, -DPIC is meaningless:
6983 lt_prog_compiler_pic=
6986 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6989 echo "$as_me:$LINENO: result
: $lt_prog_compiler_pic" >&5
6990 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6998 # Check to make sure the PIC flag actually works.
7000 if test -n "$lt_prog_compiler_pic"; then
7001 echo "$as_me:$LINENO: checking
if $compiler PIC flag
$lt_prog_compiler_pic works
" >&5
7002 echo $ECHO_N "checking
if $compiler PIC flag
$lt_prog_compiler_pic works...
$ECHO_C" >&6
7003 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7004 echo $ECHO_N "(cached
) $ECHO_C" >&6
7006 lt_cv_prog_compiler_pic_works=no
7007 ac_outfile=conftest.$ac_objext
7008 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7009 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7010 # Insert the option either (1) after the last *FLAGS variable, or
7011 # (2) before a word containing "conftest.
", or (3) at the end.
7012 # Note that $ac_compile itself does not contain backslashes and begins
7013 # with a dollar sign (not a hyphen), so the echo should work correctly.
7014 # The option is referenced via a variable to avoid confusing sed.
7015 lt_compile=`echo "$ac_compile" | $SED \
7016 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7017 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7018 -e 's:$: $lt_compiler_flag:'`
7019 (eval echo "\"\
$as_me:7019: $lt_compile\"" >&5)
7020 (eval "$lt_compile" 2>conftest.err)
7022 cat conftest.err >&5
7023 echo "$as_me:7023: \$?
= $ac_status" >&5
7024 if (exit $ac_status) && test -s "$ac_outfile"; then
7025 # The compiler can only warn and ignore the option if not recognized
7026 # So say no if there are warnings other than the usual output.
7027 $ECHO "X
$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7028 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7029 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7030 lt_cv_prog_compiler_pic_works=yes
7036 echo "$as_me:$LINENO: result
: $lt_cv_prog_compiler_pic_works" >&5
7037 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
7039 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7040 case $lt_prog_compiler_pic in
7042 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7045 lt_prog_compiler_pic=
7046 lt_prog_compiler_can_build_shared=no
7057 # Check to make sure the static flag actually works.
7059 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7060 echo "$as_me:$LINENO: checking
if $compiler static flag
$lt_tmp_static_flag works
" >&5
7061 echo $ECHO_N "checking
if $compiler static flag
$lt_tmp_static_flag works...
$ECHO_C" >&6
7062 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7063 echo $ECHO_N "(cached
) $ECHO_C" >&6
7065 lt_cv_prog_compiler_static_works=no
7066 save_LDFLAGS="$LDFLAGS"
7067 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7068 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7069 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7070 # The linker can only warn and ignore the option if not recognized
7071 # So say no if there are warnings
7072 if test -s conftest.err; then
7073 # Append any errors to the config.log.
7074 cat conftest.err 1>&5
7075 $ECHO "X
$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7076 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7077 if diff conftest.exp conftest.er2 >/dev/null; then
7078 lt_cv_prog_compiler_static_works=yes
7081 lt_cv_prog_compiler_static_works=yes
7085 LDFLAGS="$save_LDFLAGS"
7088 echo "$as_me:$LINENO: result
: $lt_cv_prog_compiler_static_works" >&5
7089 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
7091 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7094 lt_prog_compiler_static=
7103 echo "$as_me:$LINENO: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
7104 echo $ECHO_N "checking
if $compiler supports
-c -o file.
$ac_objext...
$ECHO_C" >&6
7105 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7106 echo $ECHO_N "(cached
) $ECHO_C" >&6
7108 lt_cv_prog_compiler_c_o=no
7109 $RM -r conftest 2>/dev/null
7113 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7115 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
7116 # Insert the option either (1) after the last *FLAGS variable, or
7117 # (2) before a word containing "conftest.
", or (3) at the end.
7118 # Note that $ac_compile itself does not contain backslashes and begins
7119 # with a dollar sign (not a hyphen), so the echo should work correctly.
7120 lt_compile=`echo "$ac_compile" | $SED \
7121 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7122 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7123 -e 's:$: $lt_compiler_flag:'`
7124 (eval echo "\"\
$as_me:7124: $lt_compile\"" >&5)
7125 (eval "$lt_compile" 2>out/conftest.err)
7127 cat out/conftest.err >&5
7128 echo "$as_me:7128: \$?
= $ac_status" >&5
7129 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7131 # The compiler can only warn and ignore the option if not recognized
7132 # So say no if there are warnings
7133 $ECHO "X
$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7134 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7135 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7136 lt_cv_prog_compiler_c_o=yes
7141 # SGI C++ compiler will create directory out/ii_files/ for
7142 # template instantiation
7143 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7144 $RM out/* && rmdir out
7150 echo "$as_me:$LINENO: result
: $lt_cv_prog_compiler_c_o" >&5
7151 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7158 echo "$as_me:$LINENO: checking
if $compiler supports
-c -o file.
$ac_objext" >&5
7159 echo $ECHO_N "checking
if $compiler supports
-c -o file.
$ac_objext...
$ECHO_C" >&6
7160 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7161 echo $ECHO_N "(cached
) $ECHO_C" >&6
7163 lt_cv_prog_compiler_c_o=no
7164 $RM -r conftest 2>/dev/null
7168 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7170 lt_compiler_flag="-o out
/conftest2.
$ac_objext"
7171 # Insert the option either (1) after the last *FLAGS variable, or
7172 # (2) before a word containing "conftest.
", or (3) at the end.
7173 # Note that $ac_compile itself does not contain backslashes and begins
7174 # with a dollar sign (not a hyphen), so the echo should work correctly.
7175 lt_compile=`echo "$ac_compile" | $SED \
7176 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7177 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7178 -e 's:$: $lt_compiler_flag:'`
7179 (eval echo "\"\
$as_me:7179: $lt_compile\"" >&5)
7180 (eval "$lt_compile" 2>out/conftest.err)
7182 cat out/conftest.err >&5
7183 echo "$as_me:7183: \$?
= $ac_status" >&5
7184 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7186 # The compiler can only warn and ignore the option if not recognized
7187 # So say no if there are warnings
7188 $ECHO "X
$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7189 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7190 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7191 lt_cv_prog_compiler_c_o=yes
7196 # SGI C++ compiler will create directory out/ii_files/ for
7197 # template instantiation
7198 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7199 $RM out/* && rmdir out
7205 echo "$as_me:$LINENO: result
: $lt_cv_prog_compiler_c_o" >&5
7206 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7211 hard_links="nottested
"
7212 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7213 # do not overwrite the value of need_locks provided by the user
7214 echo "$as_me:$LINENO: checking
if we can lock with hard links
" >&5
7215 echo $ECHO_N "checking
if we can lock with hard links...
$ECHO_C" >&6
7218 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7220 ln conftest.a conftest.b 2>&5 || hard_links=no
7221 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7222 echo "$as_me:$LINENO: result
: $hard_links" >&5
7223 echo "${ECHO_T}$hard_links" >&6
7224 if test "$hard_links" = no; then
7225 { echo "$as_me:$LINENO: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&5
7226 echo "$as_me: WARNING
: \
`$CC' does not support \`-c -o', so \`make -j' may be unsafe
" >&2;}
7238 echo "$as_me:$LINENO: checking whether the
$compiler linker
($LD) supports shared libraries
" >&5
7239 echo $ECHO_N "checking whether the
$compiler linker
($LD) supports shared libraries...
$ECHO_C" >&6
7242 allow_undefined_flag=
7243 always_export_symbols=no
7245 archive_expsym_cmds=
7246 compiler_needs_object=no
7247 enable_shared_with_static_runtimes=no
7248 export_dynamic_flag_spec=
7249 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7250 hardcode_automatic=no
7252 hardcode_direct_absolute=no
7253 hardcode_libdir_flag_spec=
7254 hardcode_libdir_flag_spec_ld=
7255 hardcode_libdir_separator=
7257 hardcode_shlibpath_var=unsupported
7259 link_all_deplibs=unknown
7262 old_archive_from_new_cmds=
7263 old_archive_from_expsyms_cmds=
7264 thread_safe_flag_spec=
7265 whole_archive_flag_spec=
7266 # include_expsyms should be a list of space-separated symbols to be *always*
7267 # included in the symbol list
7269 # exclude_expsyms can be an extended regexp of symbols to exclude
7270 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7271 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7272 # as well as any symbol that contains `d'.
7273 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7274 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7275 # platforms (ab)use it in PIC code, but their linkers get confused if
7276 # the symbol is explicitly referenced. Since portable code cannot
7277 # rely on this symbol name, it's probably fine to never include it in
7278 # preloaded symbol tables.
7279 # Exclude shared library initialization/finalization symbols.
7280 extract_expsyms_cmds=
7283 cygwin* | mingw* | pw32* | cegcc*)
7284 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7285 # When not using gcc, we currently assume that we are using
7286 # Microsoft Visual C++.
7287 if test "$GCC" != yes; then
7292 # we just hope/assume this is gcc and not c89 (= MSVC++)
7301 if test "$with_gnu_ld" = yes; then
7302 # If archive_cmds runs LD, not CC, wlarc should be empty
7305 # Set some defaults for GNU ld with shared library support. These
7306 # are reset later if shared libraries are not supported. Putting them
7307 # here allows them to be overridden if necessary.
7308 runpath_var=LD_RUN_PATH
7309 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7310 export_dynamic_flag_spec='${wl}--export-dynamic'
7311 # ancient GNU ld didn't support --whole-archive et. al.
7312 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7313 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7315 whole_archive_flag_spec=
7317 supports_anon_versioning=no
7318 case `$LD -v 2>&1` in
7319 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7320 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7321 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7322 *\ 2.11.*) ;; # other 2.11 versions
7323 *) supports_anon_versioning=yes ;;
7326 # See if GNU ld supports shared libraries.
7329 # On AIX/PPC, the GNU linker is very broken
7330 if test "$host_cpu" != ia64; then
7334 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7335 *** to be unable to reliably create shared libraries on AIX.
7336 *** Therefore, libtool is disabling shared libraries support. If you
7337 *** really care for shared libraries, you may want to modify your PATH
7338 *** so that a non-GNU linker is found, and then restart.
7347 # see comment about AmigaOS4 .so support
7348 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7349 archive_expsym_cmds=''
7352 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)'
7353 hardcode_libdir_flag_spec
='-L$libdir'
7354 hardcode_minus_L
=yes
7360 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
7361 allow_undefined_flag
=unsupported
7362 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7363 # support --undefined. This deserves some investigation. FIXME
7364 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7370 cygwin
* | mingw
* | pw32
* | cegcc
*)
7371 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7372 # as there is no search path for DLLs.
7373 hardcode_libdir_flag_spec
='-L$libdir'
7374 allow_undefined_flag
=unsupported
7375 always_export_symbols
=no
7376 enable_shared_with_static_runtimes
=yes
7377 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7379 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
7380 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7381 # If the export-symbols file already is a .def file (1st line
7382 # is EXPORTS), use it as is; otherwise, prepend...
7383 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7384 cp $export_symbols $output_objdir/$soname.def;
7386 echo EXPORTS > $output_objdir/$soname.def;
7387 cat $export_symbols >> $output_objdir/$soname.def;
7389 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7397 hardcode_shlibpath_var
=no
7398 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
7399 export_dynamic_flag_spec
='${wl}-E'
7400 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7401 # Instead, shared libraries are loaded at an image base (0x10000000 by
7402 # default) and relocated if they conflict, which is a slow very memory
7403 # consuming and fragmenting process. To avoid this, we pick a random,
7404 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7405 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7406 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7407 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'
7410 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
7412 if test "$host_os" = linux-dietlibc
; then
7413 case $cc_basename in
7414 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
7417 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
7418 && test "$tmp_diet" = no
7421 tmp_sharedflag
='-shared'
7422 case $cc_basename,$host_cpu in
7423 pgcc
*) # Portland Group C compiler
7424 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7425 tmp_addflag
=' $pic_flag'
7427 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
7428 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7429 tmp_addflag
=' $pic_flag -Mnomain' ;;
7430 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
7431 tmp_addflag
=' -i_dynamic' ;;
7432 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
7433 tmp_addflag
=' -i_dynamic -nofor_main' ;;
7434 ifc
* | ifort
*) # Intel Fortran compiler
7435 tmp_addflag
=' -nofor_main' ;;
7436 lf95
*) # Lahey Fortran 8.1
7437 whole_archive_flag_spec
=
7438 tmp_sharedflag
='--shared' ;;
7439 xl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7440 tmp_sharedflag
='-qmkshrobj'
7443 case `$CC -V 2>&1 | sed 5q` in
7444 *Sun\ C
*) # Sun C 5.9
7445 whole_archive_flag_spec
='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
7446 compiler_needs_object
=yes
7447 tmp_sharedflag
='-G' ;;
7448 *Sun\ F
*) # Sun Fortran 8.3
7449 tmp_sharedflag
='-G' ;;
7451 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7453 if test "x$supports_anon_versioning" = xyes
; then
7454 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
7455 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7456 echo "local: *; };" >> $output_objdir/$libname.ver~
7457 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7460 case $cc_basename in
7462 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7463 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
7464 hardcode_libdir_flag_spec
=
7465 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
7466 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7467 if test "x$supports_anon_versioning" = xyes
; then
7468 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
7469 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7470 echo "local: *; };" >> $output_objdir/$libname.ver~
7471 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7481 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
7482 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7485 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7486 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7491 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
7495 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7496 *** create shared libraries on Solaris systems. Therefore, libtool
7497 *** is disabling shared libraries support. We urge you to upgrade GNU
7498 *** binutils to release 2.9.1 or newer. Another option is to modify
7499 *** your PATH or compiler configuration so that the native linker is
7500 *** used, and then restart.
7503 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
7504 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7505 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7511 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
7512 case `$LD -v 2>&1` in
7513 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
7517 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7518 *** reliably create shared libraries on SCO systems. Therefore, libtool
7519 *** is disabling shared libraries support. We urge you to upgrade GNU
7520 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7521 *** your PATH or compiler configuration so that the native linker is
7522 *** used, and then restart.
7527 # For security reasons, it is highly recommended that you always
7528 # use absolute paths for naming shared libraries, and exclude the
7529 # DT_RUNPATH tag from executables and libraries. But doing so
7530 # requires that you compile everything twice, which is a pain.
7531 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
7532 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
7533 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7534 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7543 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7546 hardcode_shlibpath_var
=no
7550 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
7551 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7552 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7559 if test "$ld_shlibs" = no
; then
7561 hardcode_libdir_flag_spec
=
7562 export_dynamic_flag_spec
=
7563 whole_archive_flag_spec
=
7566 # PORTME fill in a description of your system's linker (not GNU ld)
7569 allow_undefined_flag
=unsupported
7570 always_export_symbols
=yes
7571 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'
7572 # Note: this linker hardcodes the directories in LIBPATH if there
7573 # are no directories specified by -L.
7574 hardcode_minus_L
=yes
7575 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7576 # Neither direct hardcoding nor static linking is supported with a
7578 hardcode_direct
=unsupported
7583 if test "$host_cpu" = ia64
; then
7584 # On IA64, the linker does run time linking by default, so we don't
7585 # have to do anything special.
7586 aix_use_runtimelinking
=no
7587 exp_sym_flag
='-Bexport'
7590 # If we're using GNU nm, then we don't want the "-C" option.
7591 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7592 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
7593 export_symbols_cmds
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
7595 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'
7597 aix_use_runtimelinking
=no
7599 # Test if we are trying to use run time linking or normal
7600 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7601 # need to do runtime linking.
7602 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
7603 for ld_flag
in $LDFLAGS; do
7604 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
7605 aix_use_runtimelinking
=yes
7612 exp_sym_flag
='-bexport'
7613 no_entry_flag
='-bnoentry'
7616 # When large executables or shared objects are built, AIX ld can
7617 # have problems creating the table of contents. If linking a library
7618 # or program results in "error TOC overflow" add -mminimal-toc to
7619 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7620 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7624 hardcode_direct_absolute
=yes
7625 hardcode_libdir_separator
=':'
7626 link_all_deplibs
=yes
7627 file_list_spec
='${wl}-f,'
7629 if test "$GCC" = yes; then
7630 case $host_os in aix4.
[012]|aix4.
[012].
*)
7631 # We only want to do this on AIX 4.2 and lower, the check
7632 # below for broken collect2 doesn't work under 4.3+
7633 collect2name
=`${CC} -print-prog-name=collect2`
7634 if test -f "$collect2name" &&
7635 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
7637 # We have reworked collect2
7640 # We have old collect2
7641 hardcode_direct
=unsupported
7642 # It fails to find uninstalled libraries when the uninstalled
7643 # path is not listed in the libpath. Setting hardcode_minus_L
7644 # to unsupported forces relinking
7645 hardcode_minus_L
=yes
7646 hardcode_libdir_flag_spec
='-L$libdir'
7647 hardcode_libdir_separator
=
7651 shared_flag
='-shared'
7652 if test "$aix_use_runtimelinking" = yes; then
7653 shared_flag
="$shared_flag "'${wl}-G'
7657 if test "$host_cpu" = ia64
; then
7658 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7659 # chokes on -Wl,-G. The following line is correct:
7662 if test "$aix_use_runtimelinking" = yes; then
7663 shared_flag
='${wl}-G'
7665 shared_flag
='${wl}-bM:SRE'
7670 export_dynamic_flag_spec
='${wl}-bexpall'
7671 # It seems that -bexpall does not export symbols beginning with
7672 # underscore (_), so it is better to generate a list of symbols to export.
7673 always_export_symbols
=yes
7674 if test "$aix_use_runtimelinking" = yes; then
7675 # Warning - without using the other runtime loading flags (-brtl),
7676 # -berok will link without error, but may produce a broken library.
7677 allow_undefined_flag
='-berok'
7678 # Determine the default libpath from the value encoded in an
7680 cat >conftest.
$ac_ext <<_ACEOF
7683 cat confdefs.h
>>conftest.
$ac_ext
7684 cat >>conftest.
$ac_ext <<_ACEOF
7685 /* end confdefs.h. */
7695 rm -f conftest.
$ac_objext conftest
$ac_exeext
7696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7697 (eval $ac_link) 2>conftest.er1
7699 grep -v '^ *+' conftest.er1
>conftest.err
7701 cat conftest.err
>&5
7702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703 (exit $ac_status); } &&
7704 { ac_try
='test -z "$ac_c_werror_flag"
7705 || test ! -s conftest.err'
7706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); }; } &&
7711 { ac_try
='test -s conftest$ac_exeext'
7712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); }; }; then
7718 lt_aix_libpath_sed
='
7719 /Import File Strings/,/^$/ {
7725 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7726 # Check for a 64-bit object if we didn't find anything.
7727 if test -z "$aix_libpath"; then
7728 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7731 echo "$as_me: failed program was:" >&5
7732 sed 's/^/| /' conftest.
$ac_ext >&5
7735 rm -f conftest.err conftest.
$ac_objext \
7736 conftest
$ac_exeext conftest.
$ac_ext
7737 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
7739 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
7740 archive_expsym_cmds
='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7742 if test "$host_cpu" = ia64
; then
7743 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
7744 allow_undefined_flag
="-z nodefs"
7745 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"
7747 # Determine the default libpath from the value encoded in an
7749 cat >conftest.
$ac_ext <<_ACEOF
7752 cat confdefs.h
>>conftest.
$ac_ext
7753 cat >>conftest.
$ac_ext <<_ACEOF
7754 /* end confdefs.h. */
7764 rm -f conftest.
$ac_objext conftest
$ac_exeext
7765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7766 (eval $ac_link) 2>conftest.er1
7768 grep -v '^ *+' conftest.er1
>conftest.err
7770 cat conftest.err
>&5
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); } &&
7773 { ac_try
='test -z "$ac_c_werror_flag"
7774 || test ! -s conftest.err'
7775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779 (exit $ac_status); }; } &&
7780 { ac_try
='test -s conftest$ac_exeext'
7781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); }; }; then
7787 lt_aix_libpath_sed
='
7788 /Import File Strings/,/^$/ {
7794 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7795 # Check for a 64-bit object if we didn't find anything.
7796 if test -z "$aix_libpath"; then
7797 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7800 echo "$as_me: failed program was:" >&5
7801 sed 's/^/| /' conftest.
$ac_ext >&5
7804 rm -f conftest.err conftest.
$ac_objext \
7805 conftest
$ac_exeext conftest.
$ac_ext
7806 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
7808 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
7809 # Warning - without using the other run time loading flags,
7810 # -berok will link without error, but may produce a broken library.
7811 no_undefined_flag
=' ${wl}-bernotok'
7812 allow_undefined_flag
=' ${wl}-berok'
7813 # Exported symbols can be pulled into shared objects from archives
7814 whole_archive_flag_spec
='$convenience'
7815 archive_cmds_need_lc
=yes
7816 # This is similar to how AIX traditionally builds its shared libraries.
7817 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'
7825 # see comment about AmigaOS4 .so support
7826 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7827 archive_expsym_cmds
=''
7830 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)'
7831 hardcode_libdir_flag_spec
='-L$libdir'
7832 hardcode_minus_L
=yes
7838 export_dynamic_flag_spec
=-rdynamic
7841 cygwin
* | mingw
* | pw32
* | cegcc
*)
7842 # When not using gcc, we currently assume that we are using
7843 # Microsoft Visual C++.
7844 # hardcode_libdir_flag_spec is actually meaningless, as there is
7845 # no search path for DLLs.
7846 hardcode_libdir_flag_spec
=' '
7847 allow_undefined_flag
=unsupported
7848 # Tell ltmain to make .lib files, not .a files.
7850 # Tell ltmain to make .dll files, not .so files.
7852 # FIXME: Setting linknames here is a bad hack.
7853 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7854 # The linker will automatically build a .lib file if we build a DLL.
7855 old_archive_from_new_cmds
='true'
7856 # FIXME: Should let the user specify the lib program.
7857 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
7858 fix_srcfile_path
='`cygpath -w "$srcfile"`'
7859 enable_shared_with_static_runtimes
=yes
7862 darwin
* | rhapsody
*)
7865 archive_cmds_need_lc
=no
7867 hardcode_automatic
=yes
7868 hardcode_shlibpath_var
=unsupported
7869 whole_archive_flag_spec
=''
7870 link_all_deplibs
=yes
7871 allow_undefined_flag
="$_lt_dar_allow_undefined"
7872 case $cc_basename in
7873 ifort
*) _lt_dar_can_shared
=yes ;;
7874 *) _lt_dar_can_shared
=$GCC ;;
7876 if test "$_lt_dar_can_shared" = "yes"; then
7877 output_verbose_link_cmd
=echo
7878 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7879 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7880 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}"
7881 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}"
7890 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7891 hardcode_libdir_flag_spec
='-L$libdir'
7892 hardcode_shlibpath_var
=no
7899 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7900 # support. Future versions do this automatically, but an explicit c++rt0.o
7901 # does not break anything, and helps significantly (at the cost of a little
7904 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7905 hardcode_libdir_flag_spec
='-R$libdir'
7907 hardcode_shlibpath_var
=no
7910 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7912 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7914 hardcode_minus_L
=yes
7915 hardcode_shlibpath_var
=no
7918 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7919 freebsd
* | dragonfly
*)
7920 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7921 hardcode_libdir_flag_spec
='-R$libdir'
7923 hardcode_shlibpath_var
=no
7927 if test "$GCC" = yes; then
7928 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'
7930 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'
7932 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
7933 hardcode_libdir_separator
=:
7936 # hardcode_minus_L: Not really in the search PATH,
7937 # but as the default location of the library.
7938 hardcode_minus_L
=yes
7939 export_dynamic_flag_spec
='${wl}-E'
7943 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
7944 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7946 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7948 if test "$with_gnu_ld" = no
; then
7949 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
7950 hardcode_libdir_flag_spec_ld
='+b $libdir'
7951 hardcode_libdir_separator
=:
7953 hardcode_direct_absolute
=yes
7954 export_dynamic_flag_spec
='${wl}-E'
7955 # hardcode_minus_L: Not really in the search PATH,
7956 # but as the default location of the library.
7957 hardcode_minus_L
=yes
7962 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
7965 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7968 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7971 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7977 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7980 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7983 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7987 if test "$with_gnu_ld" = no
; then
7988 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
7989 hardcode_libdir_separator
=:
7994 hardcode_shlibpath_var
=no
7998 hardcode_direct_absolute
=yes
7999 export_dynamic_flag_spec
='${wl}-E'
8001 # hardcode_minus_L: Not really in the search PATH,
8002 # but as the default location of the library.
8003 hardcode_minus_L
=yes
8009 irix5
* | irix6
* | nonstopux
*)
8010 if test "$GCC" = yes; then
8011 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8012 # Try to use the -exported_symbol ld option, if it does not
8013 # work, assume that -exports_file does not work either and
8014 # implicitly export all symbols.
8015 save_LDFLAGS
="$LDFLAGS"
8016 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8017 cat >conftest.
$ac_ext <<_ACEOF
8020 rm -f conftest.
$ac_objext conftest
$ac_exeext
8021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8022 (eval $ac_link) 2>conftest.er1
8024 grep -v '^ *+' conftest.er1
>conftest.err
8026 cat conftest.err
>&5
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); } &&
8029 { ac_try
='test -z "$ac_c_werror_flag"
8030 || test ! -s conftest.err'
8031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8035 (exit $ac_status); }; } &&
8036 { ac_try
='test -s conftest$ac_exeext'
8037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); }; }; then
8042 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8045 echo "$as_me: failed program was:" >&5
8046 sed 's/^/| /' conftest.
$ac_ext >&5
8049 rm -f conftest.err conftest.
$ac_objext \
8050 conftest
$ac_exeext conftest.
$ac_ext
8051 LDFLAGS
="$save_LDFLAGS"
8053 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8054 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8056 archive_cmds_need_lc
='no'
8057 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8058 hardcode_libdir_separator
=:
8060 link_all_deplibs
=yes
8064 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
8065 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8067 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8069 hardcode_libdir_flag_spec
='-R$libdir'
8071 hardcode_shlibpath_var
=no
8075 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8077 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8078 hardcode_libdir_separator
=:
8079 hardcode_shlibpath_var
=no
8086 if test -f /usr
/libexec
/ld.so
; then
8088 hardcode_shlibpath_var
=no
8089 hardcode_direct_absolute
=yes
8090 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8091 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8092 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8093 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8094 export_dynamic_flag_spec
='${wl}-E'
8097 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
8098 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8099 hardcode_libdir_flag_spec
='-R$libdir'
8102 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8103 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8113 hardcode_libdir_flag_spec
='-L$libdir'
8114 hardcode_minus_L
=yes
8115 allow_undefined_flag
=unsupported
8116 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'
8117 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8121 if test "$GCC" = yes; then
8122 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
8123 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8125 allow_undefined_flag
=' -expect_unresolved \*'
8126 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8128 archive_cmds_need_lc
='no'
8129 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8130 hardcode_libdir_separator
=:
8133 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
8134 if test "$GCC" = yes; then
8135 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
8136 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8137 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8139 allow_undefined_flag
=' -expect_unresolved \*'
8140 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8141 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~
8142 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8144 # Both c and cxx compiler support -rpath directly
8145 hardcode_libdir_flag_spec
='-rpath $libdir'
8147 archive_cmds_need_lc
='no'
8148 hardcode_libdir_separator
=:
8152 no_undefined_flag
=' -z defs'
8153 if test "$GCC" = yes; then
8155 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8156 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8157 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8159 case `$CC -V 2>&1` in
8162 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8163 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8164 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8168 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8169 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8170 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8174 hardcode_libdir_flag_spec
='-R$libdir'
8175 hardcode_shlibpath_var
=no
8177 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
8179 # The compiler driver will combine and reorder linker options,
8180 # but understands `-z linker_flag'. GCC discards it without `$wl',
8181 # but is careful enough not to reorder.
8182 # Supported since Solaris 2.6 (maybe 2.5.1?)
8183 if test "$GCC" = yes; then
8184 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8186 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
8190 link_all_deplibs
=yes
8194 if test "x$host_vendor" = xsequent
; then
8195 # Use $CC to link under sequent, because it throws in some extra .o
8196 # files that make .init and .fini sections work.
8197 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8199 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8201 hardcode_libdir_flag_spec
='-L$libdir'
8203 hardcode_minus_L
=yes
8204 hardcode_shlibpath_var
=no
8208 case $host_vendor in
8210 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8211 hardcode_direct
=yes # is this really true???
8214 ## LD is ld it makes a PLAMLIB
8215 ## CC just makes a GrossModule.
8216 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8217 reload_cmds
='$CC -r -o $output$reload_objs'
8221 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8222 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
8225 runpath_var
='LD_RUN_PATH'
8226 hardcode_shlibpath_var
=no
8230 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8231 hardcode_shlibpath_var
=no
8232 export_dynamic_flag_spec
='-Bexport'
8236 if test -d /usr
/nec
; then
8237 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8238 hardcode_shlibpath_var
=no
8239 runpath_var
=LD_RUN_PATH
8240 hardcode_runpath_var
=yes
8245 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
8246 no_undefined_flag
='${wl}-z,text'
8247 archive_cmds_need_lc
=no
8248 hardcode_shlibpath_var
=no
8249 runpath_var
='LD_RUN_PATH'
8251 if test "$GCC" = yes; then
8252 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8253 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8255 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8256 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8260 sysv5
* | sco3.2v5
* | sco5v6
*)
8261 # Note: We can NOT use -z defs as we might desire, because we do not
8262 # link with -lc, and that would cause any symbols used from libc to
8263 # always be unresolved, which means just about no library would
8264 # ever link correctly. If we're not using GNU ld we use -z text
8265 # though, which does catch some bad symbols but isn't as heavy-handed
8267 no_undefined_flag
='${wl}-z,text'
8268 allow_undefined_flag
='${wl}-z,nodefs'
8269 archive_cmds_need_lc
=no
8270 hardcode_shlibpath_var
=no
8271 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
8272 hardcode_libdir_separator
=':'
8273 link_all_deplibs
=yes
8274 export_dynamic_flag_spec
='${wl}-Bexport'
8275 runpath_var
='LD_RUN_PATH'
8277 if test "$GCC" = yes; then
8278 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8279 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8281 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8282 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8287 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8288 hardcode_libdir_flag_spec
='-L$libdir'
8289 hardcode_shlibpath_var
=no
8297 if test x
$host_vendor = xsni
; then
8299 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
8300 export_dynamic_flag_spec
='${wl}-Blargedynsym'
8306 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8307 echo "${ECHO_T}$ld_shlibs" >&6
8308 test "$ld_shlibs" = no
&& can_build_shared
=no
8310 with_gnu_ld
=$with_gnu_ld
8327 # Do we need to explicitly link libc?
8329 case "x$archive_cmds_need_lc" in
8331 # Assume -lc should be added
8332 archive_cmds_need_lc
=yes
8334 if test "$enable_shared" = yes && test "$GCC" = yes; then
8335 case $archive_cmds in
8337 # FIXME: we may have to deal with multi-command sequences.
8340 # Test whether the compiler implicitly links with -lc since on some
8341 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8342 # to ld, don't add -lc before -lgcc.
8343 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8344 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8345 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
8346 echo $ECHO_N "(cached) $ECHO_C" >&6
8349 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8352 (eval $ac_compile) 2>&5
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); } 2>conftest.err
; then
8358 libobjs
=conftest.
$ac_objext
8360 wl
=$lt_prog_compiler_wl
8361 pic_flag
=$lt_prog_compiler_pic
8367 lt_save_allow_undefined_flag
=$allow_undefined_flag
8368 allow_undefined_flag
=
8369 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
8370 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); }
8375 lt_cv_archive_cmds_need_lc
=no
8377 lt_cv_archive_cmds_need_lc
=yes
8379 allow_undefined_flag
=$lt_save_allow_undefined_flag
8381 cat conftest.err
1>&5
8386 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
8387 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
8388 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
8551 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8552 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8554 if test "$GCC" = yes; then
8556 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
8557 *) lt_awk_arg
="/^libraries:/" ;;
8559 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8560 if $ECHO "$lt_search_path_spec" |
$GREP ';' >/dev
/null
; then
8561 # if the path contains ";" then we assume it to be the separator
8562 # otherwise default to the standard path separator (i.e. ":") - it is
8563 # assumed that no part of a normal pathname contains ";" but that should
8564 # okay in the real world where ";" in dirpaths is itself problematic.
8565 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8567 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8569 # Ok, now we have the path, separated by spaces, we can step through it
8570 # and add multilib dir if necessary.
8571 lt_tmp_lt_search_path_spec
=
8572 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8573 for lt_sys_path
in $lt_search_path_spec; do
8574 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8575 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8577 test -d "$lt_sys_path" && \
8578 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
8581 lt_search_path_spec
=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8582 BEGIN {RS=" "; FS="/|\n";} {
8585 for (lt_i = NF; lt_i > 0; lt_i--) {
8586 if ($lt_i != "" && $lt_i != ".") {
8587 if ($lt_i == "..") {
8590 if (lt_count == 0) {
8591 lt_foo="/" $lt_i lt_foo;
8598 if (lt_foo != "") { lt_freq[lt_foo]++; }
8599 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8601 sys_lib_search_path_spec
=`$ECHO $lt_search_path_spec`
8603 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
8606 libname_spec
='lib$name'
8614 shlibpath_overrides_runpath
=unknown
8616 dynamic_linker
="$host_os ld.so"
8617 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
8618 need_lib_prefix
=unknown
8619 hardcode_into_libs
=no
8621 # when you set need_version to no, make sure it does not cause -set_version
8622 # flags to be left without arguments
8623 need_version
=unknown
8628 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
8629 shlibpath_var
=LIBPATH
8631 # AIX 3 has no versioning support, so we append a major version to the name.
8632 soname_spec
='${libname}${release}${shared_ext}$major'
8639 hardcode_into_libs
=yes
8640 if test "$host_cpu" = ia64
; then
8641 # AIX 5 supports IA64
8642 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8643 shlibpath_var
=LD_LIBRARY_PATH
8645 # With GCC up to 2.95.x, collect2 would create an import file
8646 # for dependence libraries. The import file would start with
8647 # the line `#! .'. This would cause the generated library to
8648 # depend on `.', always an invalid library. This was fixed in
8649 # development snapshots of GCC prior to 3.0.
8651 aix4 | aix4.
[01] | aix4.
[01].
*)
8652 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8654 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
8661 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8662 # soname into executable. Probably we can add versioning support to
8663 # collect2, so additional links can be useful in future.
8664 if test "$aix_use_runtimelinking" = yes; then
8665 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8666 # instead of lib<name>.a to let people know that these are not
8667 # typical AIX shared libraries.
8668 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8670 # We preserve .a as extension for shared libraries through AIX4.2
8671 # and later when we are not doing run time linking.
8672 library_names_spec
='${libname}${release}.a $libname.a'
8673 soname_spec
='${libname}${release}${shared_ext}$major'
8675 shlibpath_var
=LIBPATH
8682 # Since July 2007 AmigaOS4 officially supports .so libraries.
8683 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8684 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8687 library_names_spec
='$libname.ixlibrary $libname.a'
8688 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8689 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
8695 library_names_spec
='${libname}${shared_ext}'
8696 dynamic_linker
="$host_os ld.so"
8697 shlibpath_var
=LIBRARY_PATH
8703 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8704 soname_spec
='${libname}${release}${shared_ext}$major'
8705 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
8706 shlibpath_var
=LD_LIBRARY_PATH
8707 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8708 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
8709 # the default ld.so.conf also contains /usr/contrib/lib and
8710 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8711 # libtool to hard-code these into programs
8714 cygwin
* | mingw
* | pw32
* | cegcc
*)
8715 version_type
=windows
8720 case $GCC,$host_os in
8721 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
8722 library_names_spec
='$libname.dll.a'
8723 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8724 postinstall_cmds
='base_file=`basename \${file}`~
8725 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8726 dldir=$destdir/`dirname \$dlpath`~
8727 test -d \$dldir || mkdir -p \$dldir~
8728 $install_prog $dir/$dlname \$dldir/$dlname~
8729 chmod a+x \$dldir/$dlname~
8730 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8731 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8733 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8734 dlpath=$dir/\$dldll~
8736 shlibpath_overrides_runpath
=yes
8740 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8741 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8742 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
8745 # MinGW DLLs use traditional 'lib' prefix
8746 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8747 sys_lib_search_path_spec
=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8748 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
8749 # It is most probably a Windows format PATH printed by
8750 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8751 # path with ; separators, and with drive letters. We can handle the
8752 # drive letters (cygwin fileutils understands them), so leave them,
8753 # especially as we might pass files found there to a mingw objdump,
8754 # which wouldn't understand a cygwinified path. Ahh.
8755 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8757 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8761 # pw32 DLLs use 'pw' prefix rather than 'lib'
8762 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8768 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8771 dynamic_linker
='Win32 ld.exe'
8772 # FIXME: first we should search . and the directory the executable is in
8776 darwin
* | rhapsody
*)
8777 dynamic_linker
="$host_os dyld"
8781 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8782 soname_spec
='${libname}${release}${major}$shared_ext'
8783 shlibpath_overrides_runpath
=yes
8784 shlibpath_var
=DYLD_LIBRARY_PATH
8785 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
8787 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
8788 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
8795 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8796 soname_spec
='${libname}${release}${shared_ext}$major'
8797 shlibpath_var
=LD_LIBRARY_PATH
8804 freebsd
* | dragonfly
*)
8805 # DragonFly does not have aout. When/if they implement a new
8806 # versioning mechanism, adjust this.
8807 if test -x /usr
/bin
/objformat
; then
8808 objformat
=`/usr/bin/objformat`
8811 freebsd
[123]*) objformat
=aout
;;
8815 version_type
=freebsd-
$objformat
8816 case $version_type in
8818 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8823 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8827 shlibpath_var
=LD_LIBRARY_PATH
8830 shlibpath_overrides_runpath
=yes
8832 freebsd3.
[01]* | freebsdelf3.
[01]*)
8833 shlibpath_overrides_runpath
=yes
8834 hardcode_into_libs
=yes
8836 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
8837 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
8838 shlibpath_overrides_runpath
=no
8839 hardcode_into_libs
=yes
8841 *) # from 4.6 on, and DragonFly
8842 shlibpath_overrides_runpath
=yes
8843 hardcode_into_libs
=yes
8852 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8853 soname_spec
='${libname}${release}${shared_ext}$major'
8854 shlibpath_var
=LD_LIBRARY_PATH
8855 hardcode_into_libs
=yes
8858 hpux9
* | hpux10
* | hpux11
*)
8859 # Give a soname corresponding to the major version so that dld.sl refuses to
8860 # link against other versions.
8867 hardcode_into_libs
=yes
8868 dynamic_linker
="$host_os dld.so"
8869 shlibpath_var
=LD_LIBRARY_PATH
8870 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
8871 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8872 soname_spec
='${libname}${release}${shared_ext}$major'
8873 if test "X$HPUX_IA64_MODE" = X32
; then
8874 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8876 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
8878 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
8882 hardcode_into_libs
=yes
8883 dynamic_linker
="$host_os dld.sl"
8884 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
8885 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
8886 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8887 soname_spec
='${libname}${release}${shared_ext}$major'
8888 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8889 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
8893 dynamic_linker
="$host_os dld.sl"
8894 shlibpath_var
=SHLIB_PATH
8895 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
8896 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8897 soname_spec
='${libname}${release}${shared_ext}$major'
8900 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8901 postinstall_cmds
='chmod 555 $lib'
8908 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8909 soname_spec
='${libname}${release}${shared_ext}$major'
8910 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
8911 shlibpath_var
=LD_LIBRARY_PATH
8912 shlibpath_overrides_runpath
=no
8913 hardcode_into_libs
=yes
8916 irix5
* | irix6
* | nonstopux
*)
8918 nonstopux
*) version_type
=nonstopux
;;
8920 if test "$lt_cv_prog_gnu_ld" = yes; then
8928 soname_spec
='${libname}${release}${shared_ext}$major'
8929 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8931 irix5
* | nonstopux
*)
8935 case $LD in # libtool.m4 will add one of these switches to LD
8936 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
8937 libsuff
= shlibsuff
= libmagic
=32-bit;;
8938 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
8939 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
8940 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
8941 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
8942 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
8946 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
8947 shlibpath_overrides_runpath
=no
8948 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8949 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
8950 hardcode_into_libs
=yes
8953 # No shared lib support for Linux oldld, aout, or coff.
8954 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
8958 # This must be Linux ELF.
8959 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8963 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8964 soname_spec
='${libname}${release}${shared_ext}$major'
8965 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8966 shlibpath_var
=LD_LIBRARY_PATH
8967 shlibpath_overrides_runpath
=no
8969 # Some binutils ld are patched to set DT_RUNPATH
8970 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
8971 echo $ECHO_N "(cached) $ECHO_C" >&6
8973 lt_cv_shlibpath_overrides_runpath
=no
8974 save_LDFLAGS
=$LDFLAGS
8976 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8977 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8978 cat >conftest.
$ac_ext <<_ACEOF
8981 cat confdefs.h
>>conftest.
$ac_ext
8982 cat >>conftest.
$ac_ext <<_ACEOF
8983 /* end confdefs.h. */
8993 rm -f conftest.
$ac_objext conftest
$ac_exeext
8994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8995 (eval $ac_link) 2>conftest.er1
8997 grep -v '^ *+' conftest.er1
>conftest.err
8999 cat conftest.err
>&5
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); } &&
9002 { ac_try
='test -z "$ac_c_werror_flag"
9003 || test ! -s conftest.err'
9004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); }; } &&
9009 { ac_try
='test -s conftest$ac_exeext'
9010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9014 (exit $ac_status); }; }; then
9015 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then
9016 lt_cv_shlibpath_overrides_runpath
=yes
9020 echo "$as_me: failed program was:" >&5
9021 sed 's/^/| /' conftest.
$ac_ext >&5
9024 rm -f conftest.err conftest.
$ac_objext \
9025 conftest
$ac_exeext conftest.
$ac_ext
9026 LDFLAGS
=$save_LDFLAGS
9031 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
9033 # This implies no fast_install, which is unacceptable.
9034 # Some rework will be needed to allow for fast_install
9035 # before this can be enabled.
9036 hardcode_into_libs
=yes
9038 # Append ld.so.conf contents to the search path
9039 if test -f /etc
/ld.so.conf
; then
9040 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;/^$/d' | tr '\n' ' '`
9041 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
9044 # We used to test for /lib/ld.so.1 and disable shared libraries on
9045 # powerpc, because MkLinux only supported shared libraries with the
9046 # GNU dynamic linker. Since this was broken with cross compilers,
9047 # most powerpc-linux boxes support dynamic linking these days and
9048 # people can always --disable-shared, the test was removed, and we
9049 # assume the GNU/Linux dynamic linker is in use.
9050 dynamic_linker
='GNU/Linux ld.so'
9057 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9058 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9059 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9060 dynamic_linker
='NetBSD (a.out) ld.so'
9062 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9063 soname_spec
='${libname}${release}${shared_ext}$major'
9064 dynamic_linker
='NetBSD ld.elf_so'
9066 shlibpath_var
=LD_LIBRARY_PATH
9067 shlibpath_overrides_runpath
=yes
9068 hardcode_into_libs
=yes
9073 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9074 shlibpath_var
=LD_LIBRARY_PATH
9075 shlibpath_overrides_runpath
=yes
9082 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9083 soname_spec
='${libname}${release}${shared_ext}$major'
9084 shlibpath_var
=LD_LIBRARY_PATH
9085 shlibpath_overrides_runpath
=no
9086 hardcode_into_libs
=yes
9087 dynamic_linker
='ldqnx.so'
9092 sys_lib_dlsearch_path_spec
="/usr/lib"
9094 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9096 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
9097 *) need_version
=no
;;
9099 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9100 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9101 shlibpath_var
=LD_LIBRARY_PATH
9102 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9104 openbsd2.
[89] | openbsd2.
[89].
*)
9105 shlibpath_overrides_runpath
=no
9108 shlibpath_overrides_runpath
=yes
9112 shlibpath_overrides_runpath
=yes
9117 libname_spec
='$name'
9120 library_names_spec
='$libname${shared_ext} $libname.a'
9121 dynamic_linker
='OS/2 ld.exe'
9122 shlibpath_var
=LIBPATH
9125 osf3
* | osf4
* | osf5
*)
9129 soname_spec
='${libname}${release}${shared_ext}$major'
9130 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9131 shlibpath_var
=LD_LIBRARY_PATH
9132 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9133 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
9144 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9145 soname_spec
='${libname}${release}${shared_ext}$major'
9146 shlibpath_var
=LD_LIBRARY_PATH
9147 shlibpath_overrides_runpath
=yes
9148 hardcode_into_libs
=yes
9149 # ldd complains unless libraries are executable
9150 postinstall_cmds
='chmod +x $lib'
9155 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9156 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9157 shlibpath_var
=LD_LIBRARY_PATH
9158 shlibpath_overrides_runpath
=yes
9159 if test "$with_gnu_ld" = yes; then
9167 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9168 soname_spec
='${libname}${release}${shared_ext}$major'
9169 shlibpath_var
=LD_LIBRARY_PATH
9170 case $host_vendor in
9172 shlibpath_overrides_runpath
=no
9174 runpath_var
=LD_RUN_PATH
9182 shlibpath_overrides_runpath
=no
9183 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
9189 if test -d /usr
/nec
;then
9191 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9192 soname_spec
='$libname${shared_ext}.$major'
9193 shlibpath_var
=LD_LIBRARY_PATH
9197 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
9198 version_type
=freebsd-elf
9201 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9202 soname_spec
='${libname}${release}${shared_ext}$major'
9203 shlibpath_var
=LD_LIBRARY_PATH
9204 shlibpath_overrides_runpath
=yes
9205 hardcode_into_libs
=yes
9206 if test "$with_gnu_ld" = yes; then
9207 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9209 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
9212 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
9216 sys_lib_dlsearch_path_spec
='/usr/lib'
9220 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9224 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9225 shlibpath_var
=LD_LIBRARY_PATH
9226 shlibpath_overrides_runpath
=no
9227 hardcode_into_libs
=yes
9232 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9233 soname_spec
='${libname}${release}${shared_ext}$major'
9234 shlibpath_var
=LD_LIBRARY_PATH
9241 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9242 echo "${ECHO_T}$dynamic_linker" >&6
9243 test "$dynamic_linker" = no
&& can_build_shared
=no
9245 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
9246 if test "$GCC" = yes; then
9247 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9250 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9251 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
9253 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9254 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
9343 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9344 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9346 if test -n "$hardcode_libdir_flag_spec" ||
9347 test -n "$runpath_var" ||
9348 test "X$hardcode_automatic" = "Xyes" ; then
9350 # We can hardcode non-existent directories.
9351 if test "$hardcode_direct" != no
&&
9352 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9353 # have to relink, otherwise we might link with an installed library
9354 # when we should be linking with a yet-to-be-installed one
9355 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9356 test "$hardcode_minus_L" != no
; then
9357 # Linking always hardcodes the temporary library directory.
9358 hardcode_action
=relink
9360 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9361 hardcode_action
=immediate
9364 # We cannot hardcode anything, or else we can only hardcode existing
9366 hardcode_action
=unsupported
9368 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9369 echo "${ECHO_T}$hardcode_action" >&6
9371 if test "$hardcode_action" = relink ||
9372 test "$inherit_rpath" = yes; then
9373 # Fast installation is not supported
9374 enable_fast_install
=no
9375 elif test "$shlibpath_overrides_runpath" = yes ||
9376 test "$enable_shared" = no
; then
9377 # Fast installation is not necessary
9378 enable_fast_install
=needless
9386 if test "x$enable_dlopen" != xyes
; then
9387 enable_dlopen
=unknown
9388 enable_dlopen_self
=unknown
9389 enable_dlopen_self_static
=unknown
9396 lt_cv_dlopen
="load_add_on"
9398 lt_cv_dlopen_self
=yes
9401 mingw
* | pw32
* | cegcc
*)
9402 lt_cv_dlopen
="LoadLibrary"
9407 lt_cv_dlopen
="dlopen"
9412 # if libdl is installed we need to link against it
9413 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9414 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9415 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9416 echo $ECHO_N "(cached) $ECHO_C" >&6
9418 ac_check_lib_save_LIBS
=$LIBS
9420 cat >conftest.
$ac_ext <<_ACEOF
9423 cat confdefs.h
>>conftest.
$ac_ext
9424 cat >>conftest.
$ac_ext <<_ACEOF
9425 /* end confdefs.h. */
9427 /* Override any gcc2 internal prototype to avoid an error. */
9431 /* We use char because int might match the return type of a gcc2
9432 builtin and then its argument prototype would still apply. */
9442 rm -f conftest.
$ac_objext conftest
$ac_exeext
9443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9444 (eval $ac_link) 2>conftest.er1
9446 grep -v '^ *+' conftest.er1
>conftest.err
9448 cat conftest.err
>&5
9449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450 (exit $ac_status); } &&
9451 { ac_try
='test -z "$ac_c_werror_flag"
9452 || test ! -s conftest.err'
9453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); }; } &&
9458 { ac_try
='test -s conftest$ac_exeext'
9459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463 (exit $ac_status); }; }; then
9464 ac_cv_lib_dl_dlopen
=yes
9466 echo "$as_me: failed program was:" >&5
9467 sed 's/^/| /' conftest.
$ac_ext >&5
9469 ac_cv_lib_dl_dlopen
=no
9471 rm -f conftest.err conftest.
$ac_objext \
9472 conftest
$ac_exeext conftest.
$ac_ext
9473 LIBS
=$ac_check_lib_save_LIBS
9475 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9476 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9477 if test $ac_cv_lib_dl_dlopen = yes; then
9478 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
9483 lt_cv_dlopen_self
=yes
9490 echo "$as_me:$LINENO: checking for shl_load" >&5
9491 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9492 if test "${ac_cv_func_shl_load+set}" = set; then
9493 echo $ECHO_N "(cached) $ECHO_C" >&6
9495 cat >conftest.
$ac_ext <<_ACEOF
9498 cat confdefs.h
>>conftest.
$ac_ext
9499 cat >>conftest.
$ac_ext <<_ACEOF
9500 /* end confdefs.h. */
9501 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9503 #define shl_load innocuous_shl_load
9505 /* System header to define __stub macros and hopefully few prototypes,
9506 which can conflict with char shl_load (); below.
9507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9508 <limits.h> exists even on freestanding compilers. */
9511 # include <limits.h>
9513 # include <assert.h>
9518 /* Override any gcc2 internal prototype to avoid an error. */
9523 /* We use char because int might match the return type of a gcc2
9524 builtin and then its argument prototype would still apply. */
9526 /* The GNU C library defines this for functions which it implements
9527 to always fail with ENOSYS. Some functions are actually named
9528 something starting with __ and the normal name is an alias. */
9529 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9532 char (*f) () = shl_load;
9541 return f != shl_load;
9546 rm -f conftest.
$ac_objext conftest
$ac_exeext
9547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9548 (eval $ac_link) 2>conftest.er1
9550 grep -v '^ *+' conftest.er1
>conftest.err
9552 cat conftest.err
>&5
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); } &&
9555 { ac_try
='test -z "$ac_c_werror_flag"
9556 || test ! -s conftest.err'
9557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); }; } &&
9562 { ac_try
='test -s conftest$ac_exeext'
9563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); }; }; then
9568 ac_cv_func_shl_load
=yes
9570 echo "$as_me: failed program was:" >&5
9571 sed 's/^/| /' conftest.
$ac_ext >&5
9573 ac_cv_func_shl_load
=no
9575 rm -f conftest.err conftest.
$ac_objext \
9576 conftest
$ac_exeext conftest.
$ac_ext
9578 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9579 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9580 if test $ac_cv_func_shl_load = yes; then
9581 lt_cv_dlopen
="shl_load"
9583 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9584 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9585 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9586 echo $ECHO_N "(cached) $ECHO_C" >&6
9588 ac_check_lib_save_LIBS
=$LIBS
9590 cat >conftest.
$ac_ext <<_ACEOF
9593 cat confdefs.h
>>conftest.
$ac_ext
9594 cat >>conftest.
$ac_ext <<_ACEOF
9595 /* end confdefs.h. */
9597 /* Override any gcc2 internal prototype to avoid an error. */
9601 /* We use char because int might match the return type of a gcc2
9602 builtin and then its argument prototype would still apply. */
9612 rm -f conftest.
$ac_objext conftest
$ac_exeext
9613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9614 (eval $ac_link) 2>conftest.er1
9616 grep -v '^ *+' conftest.er1
>conftest.err
9618 cat conftest.err
>&5
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); } &&
9621 { ac_try
='test -z "$ac_c_werror_flag"
9622 || test ! -s conftest.err'
9623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627 (exit $ac_status); }; } &&
9628 { ac_try
='test -s conftest$ac_exeext'
9629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); }; }; then
9634 ac_cv_lib_dld_shl_load
=yes
9636 echo "$as_me: failed program was:" >&5
9637 sed 's/^/| /' conftest.
$ac_ext >&5
9639 ac_cv_lib_dld_shl_load
=no
9641 rm -f conftest.err conftest.
$ac_objext \
9642 conftest
$ac_exeext conftest.
$ac_ext
9643 LIBS
=$ac_check_lib_save_LIBS
9645 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9646 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9647 if test $ac_cv_lib_dld_shl_load = yes; then
9648 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
9650 echo "$as_me:$LINENO: checking for dlopen" >&5
9651 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9652 if test "${ac_cv_func_dlopen+set}" = set; then
9653 echo $ECHO_N "(cached) $ECHO_C" >&6
9655 cat >conftest.
$ac_ext <<_ACEOF
9658 cat confdefs.h
>>conftest.
$ac_ext
9659 cat >>conftest.
$ac_ext <<_ACEOF
9660 /* end confdefs.h. */
9661 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9663 #define dlopen innocuous_dlopen
9665 /* System header to define __stub macros and hopefully few prototypes,
9666 which can conflict with char dlopen (); below.
9667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9668 <limits.h> exists even on freestanding compilers. */
9671 # include <limits.h>
9673 # include <assert.h>
9678 /* Override any gcc2 internal prototype to avoid an error. */
9683 /* We use char because int might match the return type of a gcc2
9684 builtin and then its argument prototype would still apply. */
9686 /* The GNU C library defines this for functions which it implements
9687 to always fail with ENOSYS. Some functions are actually named
9688 something starting with __ and the normal name is an alias. */
9689 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9692 char (*f) () = dlopen;
9706 rm -f conftest.
$ac_objext conftest
$ac_exeext
9707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9708 (eval $ac_link) 2>conftest.er1
9710 grep -v '^ *+' conftest.er1
>conftest.err
9712 cat conftest.err
>&5
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); } &&
9715 { ac_try
='test -z "$ac_c_werror_flag"
9716 || test ! -s conftest.err'
9717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); }; } &&
9722 { ac_try
='test -s conftest$ac_exeext'
9723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727 (exit $ac_status); }; }; then
9728 ac_cv_func_dlopen
=yes
9730 echo "$as_me: failed program was:" >&5
9731 sed 's/^/| /' conftest.
$ac_ext >&5
9733 ac_cv_func_dlopen
=no
9735 rm -f conftest.err conftest.
$ac_objext \
9736 conftest
$ac_exeext conftest.
$ac_ext
9738 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9739 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9740 if test $ac_cv_func_dlopen = yes; then
9741 lt_cv_dlopen
="dlopen"
9743 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9744 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9745 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9746 echo $ECHO_N "(cached) $ECHO_C" >&6
9748 ac_check_lib_save_LIBS
=$LIBS
9750 cat >conftest.
$ac_ext <<_ACEOF
9753 cat confdefs.h
>>conftest.
$ac_ext
9754 cat >>conftest.
$ac_ext <<_ACEOF
9755 /* end confdefs.h. */
9757 /* Override any gcc2 internal prototype to avoid an error. */
9761 /* We use char because int might match the return type of a gcc2
9762 builtin and then its argument prototype would still apply. */
9772 rm -f conftest.
$ac_objext conftest
$ac_exeext
9773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9774 (eval $ac_link) 2>conftest.er1
9776 grep -v '^ *+' conftest.er1
>conftest.err
9778 cat conftest.err
>&5
9779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); } &&
9781 { ac_try
='test -z "$ac_c_werror_flag"
9782 || test ! -s conftest.err'
9783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); }; } &&
9788 { ac_try
='test -s conftest$ac_exeext'
9789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); }; }; then
9794 ac_cv_lib_dl_dlopen
=yes
9796 echo "$as_me: failed program was:" >&5
9797 sed 's/^/| /' conftest.
$ac_ext >&5
9799 ac_cv_lib_dl_dlopen
=no
9801 rm -f conftest.err conftest.
$ac_objext \
9802 conftest
$ac_exeext conftest.
$ac_ext
9803 LIBS
=$ac_check_lib_save_LIBS
9805 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9806 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9807 if test $ac_cv_lib_dl_dlopen = yes; then
9808 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
9810 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9811 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9812 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9813 echo $ECHO_N "(cached) $ECHO_C" >&6
9815 ac_check_lib_save_LIBS
=$LIBS
9817 cat >conftest.
$ac_ext <<_ACEOF
9820 cat confdefs.h
>>conftest.
$ac_ext
9821 cat >>conftest.
$ac_ext <<_ACEOF
9822 /* end confdefs.h. */
9824 /* Override any gcc2 internal prototype to avoid an error. */
9828 /* We use char because int might match the return type of a gcc2
9829 builtin and then its argument prototype would still apply. */
9839 rm -f conftest.
$ac_objext conftest
$ac_exeext
9840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9841 (eval $ac_link) 2>conftest.er1
9843 grep -v '^ *+' conftest.er1
>conftest.err
9845 cat conftest.err
>&5
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); } &&
9848 { ac_try
='test -z "$ac_c_werror_flag"
9849 || test ! -s conftest.err'
9850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); }; } &&
9855 { ac_try
='test -s conftest$ac_exeext'
9856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); }; }; then
9861 ac_cv_lib_svld_dlopen
=yes
9863 echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.
$ac_ext >&5
9866 ac_cv_lib_svld_dlopen
=no
9868 rm -f conftest.err conftest.
$ac_objext \
9869 conftest
$ac_exeext conftest.
$ac_ext
9870 LIBS
=$ac_check_lib_save_LIBS
9872 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9873 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9874 if test $ac_cv_lib_svld_dlopen = yes; then
9875 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
9877 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9878 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9879 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9880 echo $ECHO_N "(cached) $ECHO_C" >&6
9882 ac_check_lib_save_LIBS
=$LIBS
9884 cat >conftest.
$ac_ext <<_ACEOF
9887 cat confdefs.h
>>conftest.
$ac_ext
9888 cat >>conftest.
$ac_ext <<_ACEOF
9889 /* end confdefs.h. */
9891 /* Override any gcc2 internal prototype to avoid an error. */
9895 /* We use char because int might match the return type of a gcc2
9896 builtin and then its argument prototype would still apply. */
9906 rm -f conftest.
$ac_objext conftest
$ac_exeext
9907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9908 (eval $ac_link) 2>conftest.er1
9910 grep -v '^ *+' conftest.er1
>conftest.err
9912 cat conftest.err
>&5
9913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 (exit $ac_status); } &&
9915 { ac_try
='test -z "$ac_c_werror_flag"
9916 || test ! -s conftest.err'
9917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); }; } &&
9922 { ac_try
='test -s conftest$ac_exeext'
9923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); }; }; then
9928 ac_cv_lib_dld_dld_link
=yes
9930 echo "$as_me: failed program was:" >&5
9931 sed 's/^/| /' conftest.
$ac_ext >&5
9933 ac_cv_lib_dld_dld_link
=no
9935 rm -f conftest.err conftest.
$ac_objext \
9936 conftest
$ac_exeext conftest.
$ac_ext
9937 LIBS
=$ac_check_lib_save_LIBS
9939 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9940 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9941 if test $ac_cv_lib_dld_dld_link = yes; then
9942 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
9963 if test "x$lt_cv_dlopen" != xno
; then
9969 case $lt_cv_dlopen in
9971 save_CPPFLAGS
="$CPPFLAGS"
9972 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
9974 save_LDFLAGS
="$LDFLAGS"
9975 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
9978 LIBS
="$lt_cv_dlopen_libs $LIBS"
9980 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9981 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9982 if test "${lt_cv_dlopen_self+set}" = set; then
9983 echo $ECHO_N "(cached) $ECHO_C" >&6
9985 if test "$cross_compiling" = yes; then :
9986 lt_cv_dlopen_self
=cross
9988 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
9989 lt_status
=$lt_dlunknown
9990 cat > conftest.
$ac_ext <<_LT_EOF
9991 #line 9991 "configure"
9992 #include "confdefs.h"
10001 # define LT_DLGLOBAL RTLD_GLOBAL
10004 # define LT_DLGLOBAL DL_GLOBAL
10006 # define LT_DLGLOBAL 0
10010 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10011 find out it does not work in some platform. */
10012 #ifndef LT_DLLAZY_OR_NOW
10014 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10017 # define LT_DLLAZY_OR_NOW DL_LAZY
10020 # define LT_DLLAZY_OR_NOW RTLD_NOW
10023 # define LT_DLLAZY_OR_NOW DL_NOW
10025 # define LT_DLLAZY_OR_NOW 0
10032 void fnord() { int i=42;}
10035 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10036 int status = $lt_dlunknown;
10040 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10041 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10042 /* dlclose (self); */
10050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10051 (eval $ac_link) 2>&5
10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
10055 (.
/conftest
; exit; ) >&5 2>/dev
/null
10057 case x
$lt_status in
10058 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
10059 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
10060 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
10063 # compilation failed
10064 lt_cv_dlopen_self
=no
10071 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10072 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10074 if test "x$lt_cv_dlopen_self" = xyes
; then
10075 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
10076 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10077 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10078 if test "${lt_cv_dlopen_self_static+set}" = set; then
10079 echo $ECHO_N "(cached) $ECHO_C" >&6
10081 if test "$cross_compiling" = yes; then :
10082 lt_cv_dlopen_self_static
=cross
10084 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
10085 lt_status
=$lt_dlunknown
10086 cat > conftest.
$ac_ext <<_LT_EOF
10087 #line 10087 "configure"
10088 #include "confdefs.h"
10097 # define LT_DLGLOBAL RTLD_GLOBAL
10100 # define LT_DLGLOBAL DL_GLOBAL
10102 # define LT_DLGLOBAL 0
10106 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10107 find out it does not work in some platform. */
10108 #ifndef LT_DLLAZY_OR_NOW
10110 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10113 # define LT_DLLAZY_OR_NOW DL_LAZY
10116 # define LT_DLLAZY_OR_NOW RTLD_NOW
10119 # define LT_DLLAZY_OR_NOW DL_NOW
10121 # define LT_DLLAZY_OR_NOW 0
10128 void fnord() { int i=42;}
10131 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10132 int status = $lt_dlunknown;
10136 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10137 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10138 /* dlclose (self); */
10146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10147 (eval $ac_link) 2>&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
10151 (.
/conftest
; exit; ) >&5 2>/dev
/null
10153 case x
$lt_status in
10154 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
10155 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
10156 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
10159 # compilation failed
10160 lt_cv_dlopen_self_static
=no
10167 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10168 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10171 CPPFLAGS
="$save_CPPFLAGS"
10172 LDFLAGS
="$save_LDFLAGS"
10177 case $lt_cv_dlopen_self in
10178 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
10179 *) enable_dlopen_self
=unknown
;;
10182 case $lt_cv_dlopen_self_static in
10183 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
10184 *) enable_dlopen_self_static
=unknown
;;
10206 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10207 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10208 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
10209 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
10210 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
10211 echo "$as_me:$LINENO: result: yes" >&5
10212 echo "${ECHO_T}yes" >&6
10214 # FIXME - insert some real tests, host_os isn't really good enough
10217 if test -n "$STRIP" ; then
10218 striplib
="$STRIP -x"
10219 old_striplib
="$STRIP -S"
10220 echo "$as_me:$LINENO: result: yes" >&5
10221 echo "${ECHO_T}yes" >&6
10223 echo "$as_me:$LINENO: result: no" >&5
10224 echo "${ECHO_T}no" >&6
10228 echo "$as_me:$LINENO: result: no" >&5
10229 echo "${ECHO_T}no" >&6
10245 # Report which library types will actually be built
10246 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10247 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10248 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10249 echo "${ECHO_T}$can_build_shared" >&6
10251 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10252 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10253 test "$can_build_shared" = "no" && enable_shared
=no
10255 # On AIX, shared libraries and static libraries use the same namespace, and
10256 # are all built from PIC.
10259 test "$enable_shared" = yes && enable_static
=no
10260 if test -n "$RANLIB"; then
10261 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
10262 postinstall_cmds
='$RANLIB $lib'
10267 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
10268 test "$enable_shared" = yes && enable_static
=no
10272 echo "$as_me:$LINENO: result: $enable_shared" >&5
10273 echo "${ECHO_T}$enable_shared" >&6
10275 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10276 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10277 # Make sure either enable_shared or enable_static is yes.
10278 test "$enable_shared" = yes || enable_static
=yes
10279 echo "$as_me:$LINENO: result: $enable_static" >&5
10280 echo "${ECHO_T}$enable_static" >&6
10287 ac_cpp
='$CPP $CPPFLAGS'
10288 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10289 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10290 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10306 ac_config_commands
="$ac_config_commands libtool"
10311 # Only expand once:
10315 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10316 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
10317 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
10318 if test "${enable_maintainer_mode+set}" = set; then
10319 enableval
="$enable_maintainer_mode"
10320 USE_MAINTAINER_MODE
=$enableval
10322 USE_MAINTAINER_MODE
=no
10324 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10325 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
10328 if test $USE_MAINTAINER_MODE = yes; then
10329 MAINTAINER_MODE_TRUE
=
10330 MAINTAINER_MODE_FALSE
='#'
10332 MAINTAINER_MODE_TRUE
='#'
10333 MAINTAINER_MODE_FALSE
=
10336 MAINT
=$MAINTAINER_MODE_TRUE
10341 for ac_header
in sys
/mman.h
10343 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10345 echo "$as_me:$LINENO: checking for $ac_header" >&5
10346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10347 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10348 echo $ECHO_N "(cached) $ECHO_C" >&6
10350 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10351 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10353 # Is the header compilable?
10354 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10355 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10356 cat >conftest.
$ac_ext <<_ACEOF
10359 cat confdefs.h
>>conftest.
$ac_ext
10360 cat >>conftest.
$ac_ext <<_ACEOF
10361 /* end confdefs.h. */
10362 $ac_includes_default
10363 #include <$ac_header>
10365 rm -f conftest.
$ac_objext
10366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10367 (eval $ac_compile) 2>conftest.er1
10369 grep -v '^ *+' conftest.er1
>conftest.err
10371 cat conftest.err
>&5
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); } &&
10374 { ac_try
='test -z "$ac_c_werror_flag"
10375 || test ! -s conftest.err'
10376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10377 (eval $ac_try) 2>&5
10379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); }; } &&
10381 { ac_try
='test -s conftest.$ac_objext'
10382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10383 (eval $ac_try) 2>&5
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); }; }; then
10387 ac_header_compiler
=yes
10389 echo "$as_me: failed program was:" >&5
10390 sed 's/^/| /' conftest.
$ac_ext >&5
10392 ac_header_compiler
=no
10394 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10395 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10396 echo "${ECHO_T}$ac_header_compiler" >&6
10398 # Is the header present?
10399 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10400 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10401 cat >conftest.
$ac_ext <<_ACEOF
10404 cat confdefs.h
>>conftest.
$ac_ext
10405 cat >>conftest.
$ac_ext <<_ACEOF
10406 /* end confdefs.h. */
10407 #include <$ac_header>
10409 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10410 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10412 grep -v '^ *+' conftest.er1
>conftest.err
10414 cat conftest.err
>&5
10415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416 (exit $ac_status); } >/dev
/null
; then
10417 if test -s conftest.err
; then
10418 ac_cpp_err
=$ac_c_preproc_warn_flag
10419 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10426 if test -z "$ac_cpp_err"; then
10427 ac_header_preproc
=yes
10429 echo "$as_me: failed program was:" >&5
10430 sed 's/^/| /' conftest.
$ac_ext >&5
10432 ac_header_preproc
=no
10434 rm -f conftest.err conftest.
$ac_ext
10435 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10436 echo "${ECHO_T}$ac_header_preproc" >&6
10438 # So? What about this header?
10439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10441 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10442 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10444 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10445 ac_header_preproc
=yes
10448 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10449 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10450 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10451 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10452 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10453 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10454 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10455 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10457 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10458 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10459 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10462 ## ------------------------------------------- ##
10463 ## Report this to http://gcc.gnu.org/bugs.html ##
10464 ## ------------------------------------------- ##
10467 sed "s/^/$as_me: WARNING: /" >&2
10470 echo "$as_me:$LINENO: checking for $ac_header" >&5
10471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10472 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10473 echo $ECHO_N "(cached) $ECHO_C" >&6
10475 eval "$as_ac_Header=\$ac_header_preproc"
10477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10478 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10482 cat >>confdefs.h
<<_ACEOF
10483 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10491 for ac_func
in mmap
10493 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10494 echo "$as_me:$LINENO: checking for $ac_func" >&5
10495 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10496 if eval "test \"\${$as_ac_var+set}\" = set"; then
10497 echo $ECHO_N "(cached) $ECHO_C" >&6
10499 cat >conftest.
$ac_ext <<_ACEOF
10502 cat confdefs.h
>>conftest.
$ac_ext
10503 cat >>conftest.
$ac_ext <<_ACEOF
10504 /* end confdefs.h. */
10505 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10507 #define $ac_func innocuous_$ac_func
10509 /* System header to define __stub macros and hopefully few prototypes,
10510 which can conflict with char $ac_func (); below.
10511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10512 <limits.h> exists even on freestanding compilers. */
10515 # include <limits.h>
10517 # include <assert.h>
10522 /* Override any gcc2 internal prototype to avoid an error. */
10527 /* We use char because int might match the return type of a gcc2
10528 builtin and then its argument prototype would still apply. */
10530 /* The GNU C library defines this for functions which it implements
10531 to always fail with ENOSYS. Some functions are actually named
10532 something starting with __ and the normal name is an alias. */
10533 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10536 char (*f) () = $ac_func;
10545 return f != $ac_func;
10550 rm -f conftest.
$ac_objext conftest
$ac_exeext
10551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10552 (eval $ac_link) 2>conftest.er1
10554 grep -v '^ *+' conftest.er1
>conftest.err
10556 cat conftest.err
>&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); } &&
10559 { ac_try
='test -z "$ac_c_werror_flag"
10560 || test ! -s conftest.err'
10561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10562 (eval $ac_try) 2>&5
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); }; } &&
10566 { ac_try
='test -s conftest$ac_exeext'
10567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10568 (eval $ac_try) 2>&5
10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); }; }; then
10572 eval "$as_ac_var=yes"
10574 echo "$as_me: failed program was:" >&5
10575 sed 's/^/| /' conftest.
$ac_ext >&5
10577 eval "$as_ac_var=no"
10579 rm -f conftest.err conftest.
$ac_objext \
10580 conftest
$ac_exeext conftest.
$ac_ext
10582 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10583 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10584 if test `eval echo '${'$as_ac_var'}'` = yes; then
10585 cat >>confdefs.h
<<_ACEOF
10586 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10593 if test "${ac_cv_header_sys_mman_h+set}" = set; then
10594 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
10595 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
10596 if test "${ac_cv_header_sys_mman_h+set}" = set; then
10597 echo $ECHO_N "(cached) $ECHO_C" >&6
10599 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
10600 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
10602 # Is the header compilable?
10603 echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
10604 echo $ECHO_N "checking sys/mman.h usability... $ECHO_C" >&6
10605 cat >conftest.
$ac_ext <<_ACEOF
10608 cat confdefs.h
>>conftest.
$ac_ext
10609 cat >>conftest.
$ac_ext <<_ACEOF
10610 /* end confdefs.h. */
10611 $ac_includes_default
10612 #include <sys/mman.h>
10614 rm -f conftest.
$ac_objext
10615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10616 (eval $ac_compile) 2>conftest.er1
10618 grep -v '^ *+' conftest.er1
>conftest.err
10620 cat conftest.err
>&5
10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); } &&
10623 { ac_try
='test -z "$ac_c_werror_flag"
10624 || test ! -s conftest.err'
10625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10626 (eval $ac_try) 2>&5
10628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); }; } &&
10630 { ac_try
='test -s conftest.$ac_objext'
10631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10632 (eval $ac_try) 2>&5
10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); }; }; then
10636 ac_header_compiler
=yes
10638 echo "$as_me: failed program was:" >&5
10639 sed 's/^/| /' conftest.
$ac_ext >&5
10641 ac_header_compiler
=no
10643 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10644 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10645 echo "${ECHO_T}$ac_header_compiler" >&6
10647 # Is the header present?
10648 echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
10649 echo $ECHO_N "checking sys/mman.h presence... $ECHO_C" >&6
10650 cat >conftest.
$ac_ext <<_ACEOF
10653 cat confdefs.h
>>conftest.
$ac_ext
10654 cat >>conftest.
$ac_ext <<_ACEOF
10655 /* end confdefs.h. */
10656 #include <sys/mman.h>
10658 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10659 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10661 grep -v '^ *+' conftest.er1
>conftest.err
10663 cat conftest.err
>&5
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); } >/dev
/null
; then
10666 if test -s conftest.err
; then
10667 ac_cpp_err
=$ac_c_preproc_warn_flag
10668 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10675 if test -z "$ac_cpp_err"; then
10676 ac_header_preproc
=yes
10678 echo "$as_me: failed program was:" >&5
10679 sed 's/^/| /' conftest.
$ac_ext >&5
10681 ac_header_preproc
=no
10683 rm -f conftest.err conftest.
$ac_ext
10684 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10685 echo "${ECHO_T}$ac_header_preproc" >&6
10687 # So? What about this header?
10688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10690 { echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
10691 echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10692 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
10693 echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
10694 ac_header_preproc
=yes
10697 { echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
10698 echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
10699 { echo "$as_me:$LINENO: WARNING: sys/mman.h: check for missing prerequisite headers?" >&5
10700 echo "$as_me: WARNING: sys/mman.h: check for missing prerequisite headers?" >&2;}
10701 { echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
10702 echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
10703 { echo "$as_me:$LINENO: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&5
10704 echo "$as_me: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&2;}
10705 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
10706 echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
10707 { echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
10708 echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
10711 ## ------------------------------------------- ##
10712 ## Report this to http://gcc.gnu.org/bugs.html ##
10713 ## ------------------------------------------- ##
10716 sed "s/^/$as_me: WARNING: /" >&2
10719 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
10720 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
10721 if test "${ac_cv_header_sys_mman_h+set}" = set; then
10722 echo $ECHO_N "(cached) $ECHO_C" >&6
10724 ac_cv_header_sys_mman_h
=$ac_header_preproc
10726 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
10727 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
10730 if test $ac_cv_header_sys_mman_h = yes; then
10731 libffi_header_sys_mman_h
=yes
10733 libffi_header_sys_mman_h
=no
10737 echo "$as_me:$LINENO: checking for mmap" >&5
10738 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
10739 if test "${ac_cv_func_mmap+set}" = set; then
10740 echo $ECHO_N "(cached) $ECHO_C" >&6
10742 cat >conftest.
$ac_ext <<_ACEOF
10745 cat confdefs.h
>>conftest.
$ac_ext
10746 cat >>conftest.
$ac_ext <<_ACEOF
10747 /* end confdefs.h. */
10748 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
10749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10750 #define mmap innocuous_mmap
10752 /* System header to define __stub macros and hopefully few prototypes,
10753 which can conflict with char mmap (); below.
10754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10755 <limits.h> exists even on freestanding compilers. */
10758 # include <limits.h>
10760 # include <assert.h>
10765 /* Override any gcc2 internal prototype to avoid an error. */
10770 /* We use char because int might match the return type of a gcc2
10771 builtin and then its argument prototype would still apply. */
10773 /* The GNU C library defines this for functions which it implements
10774 to always fail with ENOSYS. Some functions are actually named
10775 something starting with __ and the normal name is an alias. */
10776 #if defined (__stub_mmap) || defined (__stub___mmap)
10779 char (*f) () = mmap;
10793 rm -f conftest.
$ac_objext conftest
$ac_exeext
10794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10795 (eval $ac_link) 2>conftest.er1
10797 grep -v '^ *+' conftest.er1
>conftest.err
10799 cat conftest.err
>&5
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); } &&
10802 { ac_try
='test -z "$ac_c_werror_flag"
10803 || test ! -s conftest.err'
10804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10805 (eval $ac_try) 2>&5
10807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); }; } &&
10809 { ac_try
='test -s conftest$ac_exeext'
10810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10811 (eval $ac_try) 2>&5
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); }; }; then
10815 ac_cv_func_mmap
=yes
10817 echo "$as_me: failed program was:" >&5
10818 sed 's/^/| /' conftest.
$ac_ext >&5
10822 rm -f conftest.err conftest.
$ac_objext \
10823 conftest
$ac_exeext conftest.
$ac_ext
10825 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
10826 echo "${ECHO_T}$ac_cv_func_mmap" >&6
10827 if test $ac_cv_func_mmap = yes; then
10828 libffi_func_mmap
=yes
10830 libffi_func_mmap
=no
10833 if test "$libffi_header_sys_mman_h" != yes \
10834 ||
test "$libffi_func_mmap" != yes; then
10835 ac_cv_func_mmap_file
=no
10836 ac_cv_func_mmap_dev_zero
=no
10837 ac_cv_func_mmap_anon
=no
10839 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
10840 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
10841 if test "${ac_cv_func_mmap_file+set}" = set; then
10842 echo $ECHO_N "(cached) $ECHO_C" >&6
10844 # Add a system to this blacklist if
10845 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10846 # memory area containing the same data that you'd get if you applied
10847 # read() to the same fd. The only system known to have a problem here
10848 # is VMS, where text files have record structure.
10851 ac_cv_func_mmap_file
=no
;;
10853 ac_cv_func_mmap_file
=yes;;
10856 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
10857 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
10858 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
10859 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
10860 if test "${ac_cv_func_mmap_dev_zero+set}" = set; then
10861 echo $ECHO_N "(cached) $ECHO_C" >&6
10863 # Add a system to this blacklist if it has mmap() but /dev/zero
10864 # does not exist, or if mmapping /dev/zero does not give anonymous
10865 # zeroed pages with both the following properties:
10866 # 1. If you map N consecutive pages in with one call, and then
10867 # unmap any subset of those pages, the pages that were not
10868 # explicitly unmapped remain accessible.
10869 # 2. If you map two adjacent blocks of memory and then unmap them
10870 # both at once, they must both go away.
10871 # Systems known to be in this category are Windows (all variants),
10874 vms
* | cygwin
* | pe | mingw
* | darwin
* | ultrix
* | hpux10
* | hpux11.00
)
10875 ac_cv_func_mmap_dev_zero
=no
;;
10877 ac_cv_func_mmap_dev_zero
=yes;;
10880 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_dev_zero" >&5
10881 echo "${ECHO_T}$ac_cv_func_mmap_dev_zero" >&6
10883 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10884 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
10885 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
10886 if test "${ac_cv_decl_map_anon+set}" = set; then
10887 echo $ECHO_N "(cached) $ECHO_C" >&6
10889 cat >conftest.
$ac_ext <<_ACEOF
10892 cat confdefs.h
>>conftest.
$ac_ext
10893 cat >>conftest.
$ac_ext <<_ACEOF
10894 /* end confdefs.h. */
10895 #include <sys/types.h>
10896 #include <sys/mman.h>
10897 #include <unistd.h>
10899 #ifndef MAP_ANONYMOUS
10900 #define MAP_ANONYMOUS MAP_ANON
10906 int n = MAP_ANONYMOUS;
10911 rm -f conftest.
$ac_objext
10912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10913 (eval $ac_compile) 2>conftest.er1
10915 grep -v '^ *+' conftest.er1
>conftest.err
10917 cat conftest.err
>&5
10918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919 (exit $ac_status); } &&
10920 { ac_try
='test -z "$ac_c_werror_flag"
10921 || test ! -s conftest.err'
10922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10923 (eval $ac_try) 2>&5
10925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); }; } &&
10927 { ac_try
='test -s conftest.$ac_objext'
10928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10929 (eval $ac_try) 2>&5
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); }; }; then
10933 ac_cv_decl_map_anon
=yes
10935 echo "$as_me: failed program was:" >&5
10936 sed 's/^/| /' conftest.
$ac_ext >&5
10938 ac_cv_decl_map_anon
=no
10940 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10942 echo "$as_me:$LINENO: result: $ac_cv_decl_map_anon" >&5
10943 echo "${ECHO_T}$ac_cv_decl_map_anon" >&6
10945 if test $ac_cv_decl_map_anon = no
; then
10946 ac_cv_func_mmap_anon
=no
10948 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10949 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
10950 if test "${ac_cv_func_mmap_anon+set}" = set; then
10951 echo $ECHO_N "(cached) $ECHO_C" >&6
10953 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10954 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10955 # doesn't give anonymous zeroed pages with the same properties listed
10956 # above for use of /dev/zero.
10957 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10959 vms
* | cygwin
* | pe | mingw
* | sco
* | udk
* )
10960 ac_cv_func_mmap_anon
=no
;;
10962 ac_cv_func_mmap_anon
=yes;;
10965 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_anon" >&5
10966 echo "${ECHO_T}$ac_cv_func_mmap_anon" >&6
10970 if test $ac_cv_func_mmap_file = yes; then
10972 cat >>confdefs.h
<<\_ACEOF
10973 #define HAVE_MMAP_FILE 1
10977 if test $ac_cv_func_mmap_dev_zero = yes; then
10979 cat >>confdefs.h
<<\_ACEOF
10980 #define HAVE_MMAP_DEV_ZERO 1
10984 if test $ac_cv_func_mmap_anon = yes; then
10986 cat >>confdefs.h
<<\_ACEOF
10987 #define HAVE_MMAP_ANON 1
10995 if test -d $srcdir/testsuite
; then
10997 TESTSUBDIR_FALSE
='#'
10999 TESTSUBDIR_TRUE
='#'
11004 TARGETDIR
="unknown"
11007 TARGET
=ALPHA
; TARGETDIR
=alpha
;
11008 # Support 128-bit long double, changable via command-line switch.
11009 HAVE_LONG_DOUBLE
='defined(__LONG_DOUBLE_128__)'
11013 TARGET
=ARM
; TARGETDIR
=arm
11017 TARGET
=X86_64
; TARGETDIR
=x86
11021 TARGET
=LIBFFI_CRIS
; TARGETDIR
=cris
11025 TARGET
=FRV
; TARGETDIR
=frv
11028 hppa
*-*-linux* | parisc
*-*-linux*)
11029 TARGET
=PA_LINUX
; TARGETDIR
=pa
11032 TARGET
=PA64_HPUX
; TARGETDIR
=pa
11035 TARGET
=PA_HPUX
; TARGETDIR
=pa
11038 i386-
*-freebsd* | i386-
*-openbsd*)
11039 TARGET
=X86_FREEBSD
; TARGETDIR
=x86
11041 i?
86-win32* | i?
86-*-cygwin* | i?
86-*-mingw*)
11042 TARGET
=X86_WIN32
; TARGETDIR
=x86
11045 TARGET
=X86_DARWIN
; TARGETDIR
=x86
11047 i?
86-*-solaris2.1
[0-9]*)
11048 TARGET
=X86_64
; TARGETDIR
=x86
11051 TARGET
=X86
; TARGETDIR
=x86
11055 TARGET
=IA64
; TARGETDIR
=ia64
11059 TARGET
=M32R
; TARGETDIR
=m32r
11063 TARGET
=M68K
; TARGETDIR
=m68k
11066 mips-sgi-irix5.
* | mips-sgi-irix6.
*)
11067 TARGET
=MIPS
; TARGETDIR
=mips
11070 TARGET
=MIPS
; TARGETDIR
=mips
11073 powerpc
*-*-linux* | powerpc-
*-sysv*)
11074 TARGET
=POWERPC
; TARGETDIR
=powerpc
11077 TARGET
=POWERPC
; TARGETDIR
=powerpc
11080 TARGET
=POWERPC_DARWIN
; TARGETDIR
=powerpc
11082 powerpc-
*-aix* | rs6000-
*-aix*)
11083 TARGET
=POWERPC_AIX
; TARGETDIR
=powerpc
11085 powerpc-
*-freebsd*)
11086 TARGET
=POWERPC_FREEBSD
; TARGETDIR
=powerpc
11089 TARGET
=POWERPC
; TARGETDIR
=powerpc
11092 s390-
*-* | s390x-
*-*)
11093 TARGET
=S390
; TARGETDIR
=s390
11096 sh-
*-* | sh
[34]*-*-*)
11097 TARGET
=SH
; TARGETDIR
=sh
11099 sh64-
*-* | sh5
*-*-*)
11100 TARGET
=SH64
; TARGETDIR
=sh64
11104 TARGET
=SPARC
; TARGETDIR
=sparc
11108 TARGET
=X86_DARWIN
; TARGETDIR
=x86
11110 x86_64-
*-cygwin* | x86_64-
*-mingw*)
11113 TARGET
=X86_64
; TARGETDIR
=x86
11119 if test $TARGETDIR = unknown
; then
11120 { { echo "$as_me:$LINENO: error: \"libffi has not been ported to $host.\"" >&5
11121 echo "$as_me: error: \"libffi has not been ported to $host.\"" >&2;}
11122 { (exit 1); exit 1; }; }
11127 if test x
$TARGET = xMIPS
; then
11137 if test x
$TARGET = xSPARC
; then
11147 if test x
$TARGET = xX86
; then
11157 if test x
$TARGET = xX86_FREEBSD
; then
11159 X86_FREEBSD_FALSE
='#'
11161 X86_FREEBSD_TRUE
='#'
11167 if test x
$TARGET = xX86_WIN32
; then
11169 X86_WIN32_FALSE
='#'
11177 if test x
$TARGET = xX86_DARWIN
; then
11179 X86_DARWIN_FALSE
='#'
11181 X86_DARWIN_TRUE
='#'
11187 if test x
$TARGET = xALPHA
; then
11197 if test x
$TARGET = xIA64
; then
11207 if test x
$TARGET = xM32R
; then
11217 if test x
$TARGET = xM68K
; then
11227 if test x
$TARGET = xPOWERPC
; then
11237 if test x
$TARGET = xPOWERPC_AIX
; then
11239 POWERPC_AIX_FALSE
='#'
11241 POWERPC_AIX_TRUE
='#'
11247 if test x
$TARGET = xPOWERPC_DARWIN
; then
11248 POWERPC_DARWIN_TRUE
=
11249 POWERPC_DARWIN_FALSE
='#'
11251 POWERPC_DARWIN_TRUE
='#'
11252 POWERPC_DARWIN_FALSE
=
11257 if test x
$TARGET = xPOWERPC_FREEBSD
; then
11258 POWERPC_FREEBSD_TRUE
=
11259 POWERPC_FREEBSD_FALSE
='#'
11261 POWERPC_FREEBSD_TRUE
='#'
11262 POWERPC_FREEBSD_FALSE
=
11267 if test x
$TARGET = xARM
; then
11277 if test x
$TARGET = xLIBFFI_CRIS
; then
11279 LIBFFI_CRIS_FALSE
='#'
11281 LIBFFI_CRIS_TRUE
='#'
11287 if test x
$TARGET = xFRV
; then
11297 if test x
$TARGET = xS390
; then
11307 if test x
$TARGET = xX86_64
; then
11317 if test x
$TARGET = xSH
; then
11327 if test x
$TARGET = xSH64
; then
11337 if test x
$TARGET = xPA_LINUX
; then
11347 if test x
$TARGET = xPA_HPUX
; then
11357 if test x
$TARGET = xPA64_HPUX
; then
11359 PA64_HPUX_FALSE
='#'
11366 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11367 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11368 if test "${ac_cv_header_stdc+set}" = set; then
11369 echo $ECHO_N "(cached) $ECHO_C" >&6
11371 cat >conftest.
$ac_ext <<_ACEOF
11374 cat confdefs.h
>>conftest.
$ac_ext
11375 cat >>conftest.
$ac_ext <<_ACEOF
11376 /* end confdefs.h. */
11377 #include <stdlib.h>
11378 #include <stdarg.h>
11379 #include <string.h>
11390 rm -f conftest.
$ac_objext
11391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11392 (eval $ac_compile) 2>conftest.er1
11394 grep -v '^ *+' conftest.er1
>conftest.err
11396 cat conftest.err
>&5
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); } &&
11399 { ac_try
='test -z "$ac_c_werror_flag"
11400 || test ! -s conftest.err'
11401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11402 (eval $ac_try) 2>&5
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); }; } &&
11406 { ac_try
='test -s conftest.$ac_objext'
11407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11408 (eval $ac_try) 2>&5
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); }; }; then
11412 ac_cv_header_stdc
=yes
11414 echo "$as_me: failed program was:" >&5
11415 sed 's/^/| /' conftest.
$ac_ext >&5
11417 ac_cv_header_stdc
=no
11419 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
11421 if test $ac_cv_header_stdc = yes; then
11422 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11423 cat >conftest.
$ac_ext <<_ACEOF
11426 cat confdefs.h
>>conftest.
$ac_ext
11427 cat >>conftest.
$ac_ext <<_ACEOF
11428 /* end confdefs.h. */
11429 #include <string.h>
11432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11433 $EGREP "memchr" >/dev
/null
2>&1; then
11436 ac_cv_header_stdc
=no
11442 if test $ac_cv_header_stdc = yes; then
11443 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11444 cat >conftest.
$ac_ext <<_ACEOF
11447 cat confdefs.h
>>conftest.
$ac_ext
11448 cat >>conftest.
$ac_ext <<_ACEOF
11449 /* end confdefs.h. */
11450 #include <stdlib.h>
11453 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11454 $EGREP "free" >/dev
/null
2>&1; then
11457 ac_cv_header_stdc
=no
11463 if test $ac_cv_header_stdc = yes; then
11464 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11465 if test "$cross_compiling" = yes; then
11468 cat >conftest.
$ac_ext <<_ACEOF
11471 cat confdefs.h
>>conftest.
$ac_ext
11472 cat >>conftest.
$ac_ext <<_ACEOF
11473 /* end confdefs.h. */
11475 #if ((' ' & 0x0FF) == 0x020)
11476 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11477 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11479 # define ISLOWER(c) \
11480 (('a' <= (c) && (c) <= 'i') \
11481 || ('j' <= (c) && (c) <= 'r') \
11482 || ('s' <= (c) && (c) <= 'z'))
11483 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11486 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11491 for (i = 0; i < 256; i++)
11492 if (XOR (islower (i), ISLOWER (i))
11493 || toupper (i) != TOUPPER (i))
11498 rm -f conftest
$ac_exeext
11499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11500 (eval $ac_link) 2>&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11505 (eval $ac_try) 2>&5
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); }; }; then
11511 echo "$as_me: program exited with status $ac_status" >&5
11512 echo "$as_me: failed program was:" >&5
11513 sed 's/^/| /' conftest.
$ac_ext >&5
11515 ( exit $ac_status )
11516 ac_cv_header_stdc
=no
11518 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11522 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11523 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11524 if test $ac_cv_header_stdc = yes; then
11526 cat >>confdefs.h
<<\_ACEOF
11527 #define STDC_HEADERS 1
11533 for ac_func
in memcpy
11535 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11536 echo "$as_me:$LINENO: checking for $ac_func" >&5
11537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11538 if eval "test \"\${$as_ac_var+set}\" = set"; then
11539 echo $ECHO_N "(cached) $ECHO_C" >&6
11541 cat >conftest.
$ac_ext <<_ACEOF
11544 cat confdefs.h
>>conftest.
$ac_ext
11545 cat >>conftest.
$ac_ext <<_ACEOF
11546 /* end confdefs.h. */
11547 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11549 #define $ac_func innocuous_$ac_func
11551 /* System header to define __stub macros and hopefully few prototypes,
11552 which can conflict with char $ac_func (); below.
11553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11554 <limits.h> exists even on freestanding compilers. */
11557 # include <limits.h>
11559 # include <assert.h>
11564 /* Override any gcc2 internal prototype to avoid an error. */
11569 /* We use char because int might match the return type of a gcc2
11570 builtin and then its argument prototype would still apply. */
11572 /* The GNU C library defines this for functions which it implements
11573 to always fail with ENOSYS. Some functions are actually named
11574 something starting with __ and the normal name is an alias. */
11575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11578 char (*f) () = $ac_func;
11587 return f != $ac_func;
11592 rm -f conftest.
$ac_objext conftest
$ac_exeext
11593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11594 (eval $ac_link) 2>conftest.er1
11596 grep -v '^ *+' conftest.er1
>conftest.err
11598 cat conftest.err
>&5
11599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600 (exit $ac_status); } &&
11601 { ac_try
='test -z "$ac_c_werror_flag"
11602 || test ! -s conftest.err'
11603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11604 (eval $ac_try) 2>&5
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); }; } &&
11608 { ac_try
='test -s conftest$ac_exeext'
11609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11610 (eval $ac_try) 2>&5
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); }; }; then
11614 eval "$as_ac_var=yes"
11616 echo "$as_me: failed program was:" >&5
11617 sed 's/^/| /' conftest.
$ac_ext >&5
11619 eval "$as_ac_var=no"
11621 rm -f conftest.err conftest.
$ac_objext \
11622 conftest
$ac_exeext conftest.
$ac_ext
11624 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11625 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11626 if test `eval echo '${'$as_ac_var'}'` = yes; then
11627 cat >>confdefs.h
<<_ACEOF
11628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11634 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11635 # for constant arguments. Useless!
11636 echo "$as_me:$LINENO: checking for working alloca.h" >&5
11637 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
11638 if test "${ac_cv_working_alloca_h+set}" = set; then
11639 echo $ECHO_N "(cached) $ECHO_C" >&6
11641 cat >conftest.
$ac_ext <<_ACEOF
11644 cat confdefs.h
>>conftest.
$ac_ext
11645 cat >>conftest.
$ac_ext <<_ACEOF
11646 /* end confdefs.h. */
11647 #include <alloca.h>
11651 char *p = (char *) alloca (2 * sizeof (int));
11656 rm -f conftest.
$ac_objext conftest
$ac_exeext
11657 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11658 (eval $ac_link) 2>conftest.er1
11660 grep -v '^ *+' conftest.er1
>conftest.err
11662 cat conftest.err
>&5
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); } &&
11665 { ac_try
='test -z "$ac_c_werror_flag"
11666 || test ! -s conftest.err'
11667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11668 (eval $ac_try) 2>&5
11670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671 (exit $ac_status); }; } &&
11672 { ac_try
='test -s conftest$ac_exeext'
11673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11674 (eval $ac_try) 2>&5
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); }; }; then
11678 ac_cv_working_alloca_h
=yes
11680 echo "$as_me: failed program was:" >&5
11681 sed 's/^/| /' conftest.
$ac_ext >&5
11683 ac_cv_working_alloca_h
=no
11685 rm -f conftest.err conftest.
$ac_objext \
11686 conftest
$ac_exeext conftest.
$ac_ext
11688 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11689 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
11690 if test $ac_cv_working_alloca_h = yes; then
11692 cat >>confdefs.h
<<\_ACEOF
11693 #define HAVE_ALLOCA_H 1
11698 echo "$as_me:$LINENO: checking for alloca" >&5
11699 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
11700 if test "${ac_cv_func_alloca_works+set}" = set; then
11701 echo $ECHO_N "(cached) $ECHO_C" >&6
11703 cat >conftest.
$ac_ext <<_ACEOF
11706 cat confdefs.h
>>conftest.
$ac_ext
11707 cat >>conftest.
$ac_ext <<_ACEOF
11708 /* end confdefs.h. */
11710 # define alloca __builtin_alloca
11713 # include <malloc.h>
11714 # define alloca _alloca
11717 # include <alloca.h>
11722 # ifndef alloca /* predefined by HP cc +Olibcalls */
11733 char *p = (char *) alloca (1);
11738 rm -f conftest.
$ac_objext conftest
$ac_exeext
11739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11740 (eval $ac_link) 2>conftest.er1
11742 grep -v '^ *+' conftest.er1
>conftest.err
11744 cat conftest.err
>&5
11745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11746 (exit $ac_status); } &&
11747 { ac_try
='test -z "$ac_c_werror_flag"
11748 || test ! -s conftest.err'
11749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11750 (eval $ac_try) 2>&5
11752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11753 (exit $ac_status); }; } &&
11754 { ac_try
='test -s conftest$ac_exeext'
11755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11756 (eval $ac_try) 2>&5
11758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 (exit $ac_status); }; }; then
11760 ac_cv_func_alloca_works
=yes
11762 echo "$as_me: failed program was:" >&5
11763 sed 's/^/| /' conftest.
$ac_ext >&5
11765 ac_cv_func_alloca_works
=no
11767 rm -f conftest.err conftest.
$ac_objext \
11768 conftest
$ac_exeext conftest.
$ac_ext
11770 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11771 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
11773 if test $ac_cv_func_alloca_works = yes; then
11775 cat >>confdefs.h
<<\_ACEOF
11776 #define HAVE_ALLOCA 1
11780 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11781 # that cause trouble. Some versions do not even contain alloca or
11782 # contain a buggy version. If you still want to use their alloca,
11783 # use ar to extract alloca.o from them instead of compiling alloca.c.
11785 ALLOCA
=alloca.
$ac_objext
11787 cat >>confdefs.h
<<\_ACEOF
11792 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
11793 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
11794 if test "${ac_cv_os_cray+set}" = set; then
11795 echo $ECHO_N "(cached) $ECHO_C" >&6
11797 cat >conftest.
$ac_ext <<_ACEOF
11800 cat confdefs.h
>>conftest.
$ac_ext
11801 cat >>conftest.
$ac_ext <<_ACEOF
11802 /* end confdefs.h. */
11803 #if defined(CRAY) && ! defined(CRAY2)
11810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11811 $EGREP "webecray" >/dev
/null
2>&1; then
11819 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
11820 echo "${ECHO_T}$ac_cv_os_cray" >&6
11821 if test $ac_cv_os_cray = yes; then
11822 for ac_func
in _getb67 GETB67 getb67
; do
11823 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11824 echo "$as_me:$LINENO: checking for $ac_func" >&5
11825 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11826 if eval "test \"\${$as_ac_var+set}\" = set"; then
11827 echo $ECHO_N "(cached) $ECHO_C" >&6
11829 cat >conftest.
$ac_ext <<_ACEOF
11832 cat confdefs.h
>>conftest.
$ac_ext
11833 cat >>conftest.
$ac_ext <<_ACEOF
11834 /* end confdefs.h. */
11835 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11837 #define $ac_func innocuous_$ac_func
11839 /* System header to define __stub macros and hopefully few prototypes,
11840 which can conflict with char $ac_func (); below.
11841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11842 <limits.h> exists even on freestanding compilers. */
11845 # include <limits.h>
11847 # include <assert.h>
11852 /* Override any gcc2 internal prototype to avoid an error. */
11857 /* We use char because int might match the return type of a gcc2
11858 builtin and then its argument prototype would still apply. */
11860 /* The GNU C library defines this for functions which it implements
11861 to always fail with ENOSYS. Some functions are actually named
11862 something starting with __ and the normal name is an alias. */
11863 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11866 char (*f) () = $ac_func;
11875 return f != $ac_func;
11880 rm -f conftest.
$ac_objext conftest
$ac_exeext
11881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11882 (eval $ac_link) 2>conftest.er1
11884 grep -v '^ *+' conftest.er1
>conftest.err
11886 cat conftest.err
>&5
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); } &&
11889 { ac_try
='test -z "$ac_c_werror_flag"
11890 || test ! -s conftest.err'
11891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11892 (eval $ac_try) 2>&5
11894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11895 (exit $ac_status); }; } &&
11896 { ac_try
='test -s conftest$ac_exeext'
11897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11898 (eval $ac_try) 2>&5
11900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901 (exit $ac_status); }; }; then
11902 eval "$as_ac_var=yes"
11904 echo "$as_me: failed program was:" >&5
11905 sed 's/^/| /' conftest.
$ac_ext >&5
11907 eval "$as_ac_var=no"
11909 rm -f conftest.err conftest.
$ac_objext \
11910 conftest
$ac_exeext conftest.
$ac_ext
11912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11913 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11914 if test `eval echo '${'$as_ac_var'}'` = yes; then
11916 cat >>confdefs.h
<<_ACEOF
11917 #define CRAY_STACKSEG_END $ac_func
11926 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
11927 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
11928 if test "${ac_cv_c_stack_direction+set}" = set; then
11929 echo $ECHO_N "(cached) $ECHO_C" >&6
11931 if test "$cross_compiling" = yes; then
11932 ac_cv_c_stack_direction
=0
11934 cat >conftest.
$ac_ext <<_ACEOF
11937 cat confdefs.h
>>conftest.
$ac_ext
11938 cat >>conftest.
$ac_ext <<_ACEOF
11939 /* end confdefs.h. */
11941 find_stack_direction ()
11943 static char *addr = 0;
11948 return find_stack_direction ();
11951 return (&dummy > addr) ? 1 : -1;
11957 exit (find_stack_direction () < 0);
11960 rm -f conftest
$ac_exeext
11961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11962 (eval $ac_link) 2>&5
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
11966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11967 (eval $ac_try) 2>&5
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); }; }; then
11971 ac_cv_c_stack_direction
=1
11973 echo "$as_me: program exited with status $ac_status" >&5
11974 echo "$as_me: failed program was:" >&5
11975 sed 's/^/| /' conftest.
$ac_ext >&5
11977 ( exit $ac_status )
11978 ac_cv_c_stack_direction
=-1
11980 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
11983 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11984 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
11986 cat >>confdefs.h
<<_ACEOF
11987 #define STACK_DIRECTION $ac_cv_c_stack_direction
11994 echo "$as_me:$LINENO: checking for double" >&5
11995 echo $ECHO_N "checking for double... $ECHO_C" >&6
11996 if test "${ac_cv_type_double+set}" = set; then
11997 echo $ECHO_N "(cached) $ECHO_C" >&6
11999 cat >conftest.
$ac_ext <<_ACEOF
12002 cat confdefs.h
>>conftest.
$ac_ext
12003 cat >>conftest.
$ac_ext <<_ACEOF
12004 /* end confdefs.h. */
12005 $ac_includes_default
12011 if (sizeof (double))
12017 rm -f conftest.
$ac_objext
12018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12019 (eval $ac_compile) 2>conftest.er1
12021 grep -v '^ *+' conftest.er1
>conftest.err
12023 cat conftest.err
>&5
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); } &&
12026 { ac_try
='test -z "$ac_c_werror_flag"
12027 || test ! -s conftest.err'
12028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12029 (eval $ac_try) 2>&5
12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032 (exit $ac_status); }; } &&
12033 { ac_try
='test -s conftest.$ac_objext'
12034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12035 (eval $ac_try) 2>&5
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); }; }; then
12039 ac_cv_type_double
=yes
12041 echo "$as_me: failed program was:" >&5
12042 sed 's/^/| /' conftest.
$ac_ext >&5
12044 ac_cv_type_double
=no
12046 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12048 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
12049 echo "${ECHO_T}$ac_cv_type_double" >&6
12051 echo "$as_me:$LINENO: checking size of double" >&5
12052 echo $ECHO_N "checking size of double... $ECHO_C" >&6
12053 if test "${ac_cv_sizeof_double+set}" = set; then
12054 echo $ECHO_N "(cached) $ECHO_C" >&6
12056 if test "$ac_cv_type_double" = yes; then
12057 # The cast to unsigned long works around a bug in the HP C Compiler
12058 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12059 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12060 # This bug is HP SR number 8606223364.
12061 if test "$cross_compiling" = yes; then
12062 # Depending upon the size, compute the lo and hi bounds.
12063 cat >conftest.
$ac_ext <<_ACEOF
12066 cat confdefs.h
>>conftest.
$ac_ext
12067 cat >>conftest.
$ac_ext <<_ACEOF
12068 /* end confdefs.h. */
12069 $ac_includes_default
12073 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
12080 rm -f conftest.
$ac_objext
12081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12082 (eval $ac_compile) 2>conftest.er1
12084 grep -v '^ *+' conftest.er1
>conftest.err
12086 cat conftest.err
>&5
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); } &&
12089 { ac_try
='test -z "$ac_c_werror_flag"
12090 || test ! -s conftest.err'
12091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12092 (eval $ac_try) 2>&5
12094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095 (exit $ac_status); }; } &&
12096 { ac_try
='test -s conftest.$ac_objext'
12097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12098 (eval $ac_try) 2>&5
12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); }; }; then
12104 cat >conftest.
$ac_ext <<_ACEOF
12107 cat confdefs.h
>>conftest.
$ac_ext
12108 cat >>conftest.
$ac_ext <<_ACEOF
12109 /* end confdefs.h. */
12110 $ac_includes_default
12114 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
12121 rm -f conftest.
$ac_objext
12122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12123 (eval $ac_compile) 2>conftest.er1
12125 grep -v '^ *+' conftest.er1
>conftest.err
12127 cat conftest.err
>&5
12128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12129 (exit $ac_status); } &&
12130 { ac_try
='test -z "$ac_c_werror_flag"
12131 || test ! -s conftest.err'
12132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12133 (eval $ac_try) 2>&5
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); }; } &&
12137 { ac_try
='test -s conftest.$ac_objext'
12138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12139 (eval $ac_try) 2>&5
12141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); }; }; then
12143 ac_hi
=$ac_mid; break
12145 echo "$as_me: failed program was:" >&5
12146 sed 's/^/| /' conftest.
$ac_ext >&5
12148 ac_lo
=`expr $ac_mid + 1`
12149 if test $ac_lo -le $ac_mid; then
12153 ac_mid
=`expr 2 '*' $ac_mid + 1`
12155 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12158 echo "$as_me: failed program was:" >&5
12159 sed 's/^/| /' conftest.
$ac_ext >&5
12161 cat >conftest.
$ac_ext <<_ACEOF
12164 cat confdefs.h
>>conftest.
$ac_ext
12165 cat >>conftest.
$ac_ext <<_ACEOF
12166 /* end confdefs.h. */
12167 $ac_includes_default
12171 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
12178 rm -f conftest.
$ac_objext
12179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12180 (eval $ac_compile) 2>conftest.er1
12182 grep -v '^ *+' conftest.er1
>conftest.err
12184 cat conftest.err
>&5
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); } &&
12187 { ac_try
='test -z "$ac_c_werror_flag"
12188 || test ! -s conftest.err'
12189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12190 (eval $ac_try) 2>&5
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); }; } &&
12194 { ac_try
='test -s conftest.$ac_objext'
12195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12196 (eval $ac_try) 2>&5
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); }; }; then
12202 cat >conftest.
$ac_ext <<_ACEOF
12205 cat confdefs.h
>>conftest.
$ac_ext
12206 cat >>conftest.
$ac_ext <<_ACEOF
12207 /* end confdefs.h. */
12208 $ac_includes_default
12212 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
12219 rm -f conftest.
$ac_objext
12220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12221 (eval $ac_compile) 2>conftest.er1
12223 grep -v '^ *+' conftest.er1
>conftest.err
12225 cat conftest.err
>&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); } &&
12228 { ac_try
='test -z "$ac_c_werror_flag"
12229 || test ! -s conftest.err'
12230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12231 (eval $ac_try) 2>&5
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); }; } &&
12235 { ac_try
='test -s conftest.$ac_objext'
12236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12237 (eval $ac_try) 2>&5
12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); }; }; then
12241 ac_lo
=$ac_mid; break
12243 echo "$as_me: failed program was:" >&5
12244 sed 's/^/| /' conftest.
$ac_ext >&5
12246 ac_hi
=`expr '(' $ac_mid ')' - 1`
12247 if test $ac_mid -le $ac_hi; then
12251 ac_mid
=`expr 2 '*' $ac_mid`
12253 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12256 echo "$as_me: failed program was:" >&5
12257 sed 's/^/| /' conftest.
$ac_ext >&5
12261 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12263 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12264 # Binary search between lo and hi bounds.
12265 while test "x$ac_lo" != "x$ac_hi"; do
12266 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12267 cat >conftest.
$ac_ext <<_ACEOF
12270 cat confdefs.h
>>conftest.
$ac_ext
12271 cat >>conftest.
$ac_ext <<_ACEOF
12272 /* end confdefs.h. */
12273 $ac_includes_default
12277 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
12284 rm -f conftest.
$ac_objext
12285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12286 (eval $ac_compile) 2>conftest.er1
12288 grep -v '^ *+' conftest.er1
>conftest.err
12290 cat conftest.err
>&5
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292 (exit $ac_status); } &&
12293 { ac_try
='test -z "$ac_c_werror_flag"
12294 || test ! -s conftest.err'
12295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12296 (eval $ac_try) 2>&5
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); }; } &&
12300 { ac_try
='test -s conftest.$ac_objext'
12301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12302 (eval $ac_try) 2>&5
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); }; }; then
12308 echo "$as_me: failed program was:" >&5
12309 sed 's/^/| /' conftest.
$ac_ext >&5
12311 ac_lo
=`expr '(' $ac_mid ')' + 1`
12313 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12316 ?
*) ac_cv_sizeof_double
=$ac_lo;;
12317 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12318 echo "$as_me: error: in \`$ac_pwd':" >&2;}
12319 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
12320 See \`config.log' for more details." >&5
12321 echo "$as_me: error: cannot compute sizeof (double), 77
12322 See \`config.log' for more details." >&2;}
12323 { (exit 1); exit 1; }; }; } ;;
12326 if test "$cross_compiling" = yes; then
12327 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12328 echo "$as_me: error: in \`$ac_pwd':" >&2;}
12329 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12330 See \`config.log' for more details." >&5
12331 echo "$as_me: error: cannot run test program while cross compiling
12332 See \`config.log' for more details." >&2;}
12333 { (exit 1); exit 1; }; }; }
12335 cat >conftest.
$ac_ext <<_ACEOF
12338 cat confdefs.h
>>conftest.
$ac_ext
12339 cat >>conftest.
$ac_ext <<_ACEOF
12340 /* end confdefs.h. */
12341 $ac_includes_default
12342 long longval () { return (long) (sizeof (double)); }
12343 unsigned long ulongval () { return (long) (sizeof (double)); }
12345 #include <stdlib.h>
12350 FILE *f = fopen ("conftest.val", "w");
12353 if (((long) (sizeof (double))) < 0)
12355 long i = longval ();
12356 if (i != ((long) (sizeof (double))))
12358 fprintf (f, "%ld\n", i);
12362 unsigned long i = ulongval ();
12363 if (i != ((long) (sizeof (double))))
12365 fprintf (f, "%lu\n", i);
12367 exit (ferror (f) || fclose (f) != 0);
12373 rm -f conftest
$ac_exeext
12374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12375 (eval $ac_link) 2>&5
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12380 (eval $ac_try) 2>&5
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 (exit $ac_status); }; }; then
12384 ac_cv_sizeof_double
=`cat conftest.val`
12386 echo "$as_me: program exited with status $ac_status" >&5
12387 echo "$as_me: failed program was:" >&5
12388 sed 's/^/| /' conftest.
$ac_ext >&5
12390 ( exit $ac_status )
12391 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12392 echo "$as_me: error: in \`$ac_pwd':" >&2;}
12393 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
12394 See \`config.log' for more details." >&5
12395 echo "$as_me: error: cannot compute sizeof (double), 77
12396 See \`config.log' for more details." >&2;}
12397 { (exit 1); exit 1; }; }; }
12399 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12404 ac_cv_sizeof_double
=0
12407 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
12408 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
12409 cat >>confdefs.h
<<_ACEOF
12410 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
12414 echo "$as_me:$LINENO: checking for long double" >&5
12415 echo $ECHO_N "checking for long double... $ECHO_C" >&6
12416 if test "${ac_cv_type_long_double+set}" = set; then
12417 echo $ECHO_N "(cached) $ECHO_C" >&6
12419 cat >conftest.
$ac_ext <<_ACEOF
12422 cat confdefs.h
>>conftest.
$ac_ext
12423 cat >>conftest.
$ac_ext <<_ACEOF
12424 /* end confdefs.h. */
12425 $ac_includes_default
12429 if ((long double *) 0)
12431 if (sizeof (long double))
12437 rm -f conftest.
$ac_objext
12438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12439 (eval $ac_compile) 2>conftest.er1
12441 grep -v '^ *+' conftest.er1
>conftest.err
12443 cat conftest.err
>&5
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); } &&
12446 { ac_try
='test -z "$ac_c_werror_flag"
12447 || test ! -s conftest.err'
12448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12449 (eval $ac_try) 2>&5
12451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 (exit $ac_status); }; } &&
12453 { ac_try
='test -s conftest.$ac_objext'
12454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12455 (eval $ac_try) 2>&5
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); }; }; then
12459 ac_cv_type_long_double
=yes
12461 echo "$as_me: failed program was:" >&5
12462 sed 's/^/| /' conftest.
$ac_ext >&5
12464 ac_cv_type_long_double
=no
12466 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12468 echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
12469 echo "${ECHO_T}$ac_cv_type_long_double" >&6
12471 echo "$as_me:$LINENO: checking size of long double" >&5
12472 echo $ECHO_N "checking size of long double... $ECHO_C" >&6
12473 if test "${ac_cv_sizeof_long_double+set}" = set; then
12474 echo $ECHO_N "(cached) $ECHO_C" >&6
12476 if test "$ac_cv_type_long_double" = yes; then
12477 # The cast to unsigned long works around a bug in the HP C Compiler
12478 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12479 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12480 # This bug is HP SR number 8606223364.
12481 if test "$cross_compiling" = yes; then
12482 # Depending upon the size, compute the lo and hi bounds.
12483 cat >conftest.
$ac_ext <<_ACEOF
12486 cat confdefs.h
>>conftest.
$ac_ext
12487 cat >>conftest.
$ac_ext <<_ACEOF
12488 /* end confdefs.h. */
12489 $ac_includes_default
12493 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= 0)];
12500 rm -f conftest.
$ac_objext
12501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12502 (eval $ac_compile) 2>conftest.er1
12504 grep -v '^ *+' conftest.er1
>conftest.err
12506 cat conftest.err
>&5
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); } &&
12509 { ac_try
='test -z "$ac_c_werror_flag"
12510 || test ! -s conftest.err'
12511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12512 (eval $ac_try) 2>&5
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); }; } &&
12516 { ac_try
='test -s conftest.$ac_objext'
12517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12518 (eval $ac_try) 2>&5
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); }; }; then
12524 cat >conftest.
$ac_ext <<_ACEOF
12527 cat confdefs.h
>>conftest.
$ac_ext
12528 cat >>conftest.
$ac_ext <<_ACEOF
12529 /* end confdefs.h. */
12530 $ac_includes_default
12534 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
12541 rm -f conftest.
$ac_objext
12542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12543 (eval $ac_compile) 2>conftest.er1
12545 grep -v '^ *+' conftest.er1
>conftest.err
12547 cat conftest.err
>&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); } &&
12550 { ac_try
='test -z "$ac_c_werror_flag"
12551 || test ! -s conftest.err'
12552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553 (eval $ac_try) 2>&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; } &&
12557 { ac_try
='test -s conftest.$ac_objext'
12558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12559 (eval $ac_try) 2>&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); }; }; then
12563 ac_hi
=$ac_mid; break
12565 echo "$as_me: failed program was:" >&5
12566 sed 's/^/| /' conftest.
$ac_ext >&5
12568 ac_lo
=`expr $ac_mid + 1`
12569 if test $ac_lo -le $ac_mid; then
12573 ac_mid
=`expr 2 '*' $ac_mid + 1`
12575 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12578 echo "$as_me: failed program was:" >&5
12579 sed 's/^/| /' conftest.
$ac_ext >&5
12581 cat >conftest.
$ac_ext <<_ACEOF
12584 cat confdefs.h
>>conftest.
$ac_ext
12585 cat >>conftest.
$ac_ext <<_ACEOF
12586 /* end confdefs.h. */
12587 $ac_includes_default
12591 static int test_array [1 - 2 * !(((long) (sizeof (long double))) < 0)];
12598 rm -f conftest.
$ac_objext
12599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12600 (eval $ac_compile) 2>conftest.er1
12602 grep -v '^ *+' conftest.er1
>conftest.err
12604 cat conftest.err
>&5
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); } &&
12607 { ac_try
='test -z "$ac_c_werror_flag"
12608 || test ! -s conftest.err'
12609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12610 (eval $ac_try) 2>&5
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); }; } &&
12614 { ac_try
='test -s conftest.$ac_objext'
12615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12616 (eval $ac_try) 2>&5
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); }; }; then
12622 cat >conftest.
$ac_ext <<_ACEOF
12625 cat confdefs.h
>>conftest.
$ac_ext
12626 cat >>conftest.
$ac_ext <<_ACEOF
12627 /* end confdefs.h. */
12628 $ac_includes_default
12632 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= $ac_mid)];
12639 rm -f conftest.
$ac_objext
12640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12641 (eval $ac_compile) 2>conftest.er1
12643 grep -v '^ *+' conftest.er1
>conftest.err
12645 cat conftest.err
>&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); } &&
12648 { ac_try
='test -z "$ac_c_werror_flag"
12649 || test ! -s conftest.err'
12650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12651 (eval $ac_try) 2>&5
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); }; } &&
12655 { ac_try
='test -s conftest.$ac_objext'
12656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12657 (eval $ac_try) 2>&5
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); }; }; then
12661 ac_lo
=$ac_mid; break
12663 echo "$as_me: failed program was:" >&5
12664 sed 's/^/| /' conftest.
$ac_ext >&5
12666 ac_hi
=`expr '(' $ac_mid ')' - 1`
12667 if test $ac_mid -le $ac_hi; then
12671 ac_mid
=`expr 2 '*' $ac_mid`
12673 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12676 echo "$as_me: failed program was:" >&5
12677 sed 's/^/| /' conftest.
$ac_ext >&5
12681 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12683 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12684 # Binary search between lo and hi bounds.
12685 while test "x$ac_lo" != "x$ac_hi"; do
12686 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12687 cat >conftest.
$ac_ext <<_ACEOF
12690 cat confdefs.h
>>conftest.
$ac_ext
12691 cat >>conftest.
$ac_ext <<_ACEOF
12692 /* end confdefs.h. */
12693 $ac_includes_default
12697 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
12704 rm -f conftest.
$ac_objext
12705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12706 (eval $ac_compile) 2>conftest.er1
12708 grep -v '^ *+' conftest.er1
>conftest.err
12710 cat conftest.err
>&5
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); } &&
12713 { ac_try
='test -z "$ac_c_werror_flag"
12714 || test ! -s conftest.err'
12715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12716 (eval $ac_try) 2>&5
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); }; } &&
12720 { ac_try
='test -s conftest.$ac_objext'
12721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12722 (eval $ac_try) 2>&5
12724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725 (exit $ac_status); }; }; then
12728 echo "$as_me: failed program was:" >&5
12729 sed 's/^/| /' conftest.
$ac_ext >&5
12731 ac_lo
=`expr '(' $ac_mid ')' + 1`
12733 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12736 ?
*) ac_cv_sizeof_long_double
=$ac_lo;;
12737 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12738 echo "$as_me: error: in \`$ac_pwd':" >&2;}
12739 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
12740 See \`config.log' for more details." >&5
12741 echo "$as_me: error: cannot compute sizeof (long double), 77
12742 See \`config.log' for more details." >&2;}
12743 { (exit 1); exit 1; }; }; } ;;
12746 if test "$cross_compiling" = yes; then
12747 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12748 echo "$as_me: error: in \`$ac_pwd':" >&2;}
12749 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12750 See \`config.log' for more details." >&5
12751 echo "$as_me: error: cannot run test program while cross compiling
12752 See \`config.log' for more details." >&2;}
12753 { (exit 1); exit 1; }; }; }
12755 cat >conftest.
$ac_ext <<_ACEOF
12758 cat confdefs.h
>>conftest.
$ac_ext
12759 cat >>conftest.
$ac_ext <<_ACEOF
12760 /* end confdefs.h. */
12761 $ac_includes_default
12762 long longval () { return (long) (sizeof (long double)); }
12763 unsigned long ulongval () { return (long) (sizeof (long double)); }
12765 #include <stdlib.h>
12770 FILE *f = fopen ("conftest.val", "w");
12773 if (((long) (sizeof (long double))) < 0)
12775 long i = longval ();
12776 if (i != ((long) (sizeof (long double))))
12778 fprintf (f, "%ld\n", i);
12782 unsigned long i = ulongval ();
12783 if (i != ((long) (sizeof (long double))))
12785 fprintf (f, "%lu\n", i);
12787 exit (ferror (f) || fclose (f) != 0);
12793 rm -f conftest
$ac_exeext
12794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12795 (eval $ac_link) 2>&5
12797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12800 (eval $ac_try) 2>&5
12802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12803 (exit $ac_status); }; }; then
12804 ac_cv_sizeof_long_double
=`cat conftest.val`
12806 echo "$as_me: program exited with status $ac_status" >&5
12807 echo "$as_me: failed program was:" >&5
12808 sed 's/^/| /' conftest.
$ac_ext >&5
12810 ( exit $ac_status )
12811 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12812 echo "$as_me: error: in \`$ac_pwd':" >&2;}
12813 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
12814 See \`config.log' for more details." >&5
12815 echo "$as_me: error: cannot compute sizeof (long double), 77
12816 See \`config.log' for more details." >&2;}
12817 { (exit 1); exit 1; }; }; }
12819 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12824 ac_cv_sizeof_long_double
=0
12827 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12828 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6
12829 cat >>confdefs.h
<<_ACEOF
12830 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12835 # Also AC_SUBST this variable for ffi.h.
12836 if test -z "$HAVE_LONG_DOUBLE"; then
12838 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
12839 if test $ac_cv_sizeof_long_double != 0; then
12842 cat >>confdefs.h
<<\_ACEOF
12843 #define HAVE_LONG_DOUBLE 1
12851 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
12852 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
12853 if test "${ac_cv_c_bigendian+set}" = set; then
12854 echo $ECHO_N "(cached) $ECHO_C" >&6
12856 # See if sys/param.h defines the BYTE_ORDER macro.
12857 cat >conftest.
$ac_ext <<_ACEOF
12860 cat confdefs.h
>>conftest.
$ac_ext
12861 cat >>conftest.
$ac_ext <<_ACEOF
12862 /* end confdefs.h. */
12863 #include <sys/types.h>
12864 #include <sys/param.h>
12869 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12870 bogus endian macros
12877 rm -f conftest.
$ac_objext
12878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12879 (eval $ac_compile) 2>conftest.er1
12881 grep -v '^ *+' conftest.er1
>conftest.err
12883 cat conftest.err
>&5
12884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12885 (exit $ac_status); } &&
12886 { ac_try
='test -z "$ac_c_werror_flag"
12887 || test ! -s conftest.err'
12888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12889 (eval $ac_try) 2>&5
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); }; } &&
12893 { ac_try
='test -s conftest.$ac_objext'
12894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12895 (eval $ac_try) 2>&5
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); }; }; then
12899 # It does; now see whether it defined to BIG_ENDIAN or not.
12900 cat >conftest.
$ac_ext <<_ACEOF
12903 cat confdefs.h
>>conftest.
$ac_ext
12904 cat >>conftest.
$ac_ext <<_ACEOF
12905 /* end confdefs.h. */
12906 #include <sys/types.h>
12907 #include <sys/param.h>
12912 #if BYTE_ORDER != BIG_ENDIAN
12920 rm -f conftest.
$ac_objext
12921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12922 (eval $ac_compile) 2>conftest.er1
12924 grep -v '^ *+' conftest.er1
>conftest.err
12926 cat conftest.err
>&5
12927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12928 (exit $ac_status); } &&
12929 { ac_try
='test -z "$ac_c_werror_flag"
12930 || test ! -s conftest.err'
12931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12932 (eval $ac_try) 2>&5
12934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935 (exit $ac_status); }; } &&
12936 { ac_try
='test -s conftest.$ac_objext'
12937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12938 (eval $ac_try) 2>&5
12940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941 (exit $ac_status); }; }; then
12942 ac_cv_c_bigendian
=yes
12944 echo "$as_me: failed program was:" >&5
12945 sed 's/^/| /' conftest.
$ac_ext >&5
12947 ac_cv_c_bigendian
=no
12949 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
12951 echo "$as_me: failed program was:" >&5
12952 sed 's/^/| /' conftest.
$ac_ext >&5
12954 # It does not; compile a test program.
12955 if test "$cross_compiling" = yes; then
12956 # try to guess the endianness by grepping values into an object file
12957 ac_cv_c_bigendian
=unknown
12958 cat >conftest.
$ac_ext <<_ACEOF
12961 cat confdefs.h
>>conftest.
$ac_ext
12962 cat >>conftest.
$ac_ext <<_ACEOF
12963 /* end confdefs.h. */
12964 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12965 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12966 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
12967 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12968 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12969 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
12973 _ascii (); _ebcdic ();
12978 rm -f conftest.
$ac_objext
12979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12980 (eval $ac_compile) 2>conftest.er1
12982 grep -v '^ *+' conftest.er1
>conftest.err
12984 cat conftest.err
>&5
12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); } &&
12987 { ac_try
='test -z "$ac_c_werror_flag"
12988 || test ! -s conftest.err'
12989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12990 (eval $ac_try) 2>&5
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); }; } &&
12994 { ac_try
='test -s conftest.$ac_objext'
12995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12996 (eval $ac_try) 2>&5
12998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999 (exit $ac_status); }; }; then
13000 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
13001 ac_cv_c_bigendian
=yes
13003 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
13004 if test "$ac_cv_c_bigendian" = unknown
; then
13005 ac_cv_c_bigendian
=no
13007 # finding both strings is unlikely to happen, but who knows?
13008 ac_cv_c_bigendian
=unknown
13012 echo "$as_me: failed program was:" >&5
13013 sed 's/^/| /' conftest.
$ac_ext >&5
13016 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13018 cat >conftest.
$ac_ext <<_ACEOF
13021 cat confdefs.h
>>conftest.
$ac_ext
13022 cat >>conftest.
$ac_ext <<_ACEOF
13023 /* end confdefs.h. */
13027 /* Are we little or big endian? From Harbison&Steele. */
13031 char c[sizeof (long)];
13034 exit (u.c[sizeof (long) - 1] == 1);
13037 rm -f conftest
$ac_exeext
13038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13039 (eval $ac_link) 2>&5
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
13043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13044 (eval $ac_try) 2>&5
13046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); }; }; then
13048 ac_cv_c_bigendian
=no
13050 echo "$as_me: program exited with status $ac_status" >&5
13051 echo "$as_me: failed program was:" >&5
13052 sed 's/^/| /' conftest.
$ac_ext >&5
13054 ( exit $ac_status )
13055 ac_cv_c_bigendian
=yes
13057 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
13060 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13062 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13063 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
13064 case $ac_cv_c_bigendian in
13067 cat >>confdefs.h
<<\_ACEOF
13068 #define WORDS_BIGENDIAN 1
13074 { { echo "$as_me:$LINENO: error: unknown endianness
13075 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13076 echo "$as_me: error: unknown endianness
13077 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13078 { (exit 1); exit 1; }; } ;;
13082 echo "$as_me:$LINENO: checking assembler .cfi pseudo-op support" >&5
13083 echo $ECHO_N "checking assembler .cfi pseudo-op support... $ECHO_C" >&6
13084 if test "${libffi_cv_as_cfi_pseudo_op+set}" = set; then
13085 echo $ECHO_N "(cached) $ECHO_C" >&6
13088 libffi_cv_as_cfi_pseudo_op
=unknown
13089 cat >conftest.
$ac_ext <<_ACEOF
13092 cat confdefs.h
>>conftest.
$ac_ext
13093 cat >>conftest.
$ac_ext <<_ACEOF
13094 /* end confdefs.h. */
13095 asm (".cfi_startproc\n\t.cfi_endproc");
13104 rm -f conftest.
$ac_objext
13105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13106 (eval $ac_compile) 2>conftest.er1
13108 grep -v '^ *+' conftest.er1
>conftest.err
13110 cat conftest.err
>&5
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); } &&
13113 { ac_try
='test -z "$ac_c_werror_flag"
13114 || test ! -s conftest.err'
13115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13116 (eval $ac_try) 2>&5
13118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 (exit $ac_status); }; } &&
13120 { ac_try
='test -s conftest.$ac_objext'
13121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13122 (eval $ac_try) 2>&5
13124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125 (exit $ac_status); }; }; then
13126 libffi_cv_as_cfi_pseudo_op
=yes
13128 echo "$as_me: failed program was:" >&5
13129 sed 's/^/| /' conftest.
$ac_ext >&5
13131 libffi_cv_as_cfi_pseudo_op
=no
13133 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13136 echo "$as_me:$LINENO: result: $libffi_cv_as_cfi_pseudo_op" >&5
13137 echo "${ECHO_T}$libffi_cv_as_cfi_pseudo_op" >&6
13138 if test "x$libffi_cv_as_cfi_pseudo_op" = xyes
; then
13140 cat >>confdefs.h
<<\_ACEOF
13141 #define HAVE_AS_CFI_PSEUDO_OP 1
13146 if test x
$TARGET = xSPARC
; then
13147 echo "$as_me:$LINENO: checking assembler and linker support unaligned pc related relocs" >&5
13148 echo $ECHO_N "checking assembler and linker support unaligned pc related relocs... $ECHO_C" >&6
13149 if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then
13150 echo $ECHO_N "(cached) $ECHO_C" >&6
13153 save_CFLAGS
="$CFLAGS"
13154 save_LDFLAGS
="$LDFLAGS"
13155 CFLAGS
="$CFLAGS -fpic"
13156 LDFLAGS
="$LDFLAGS -shared"
13157 cat >conftest.
$ac_ext <<_ACEOF
13160 cat confdefs.h
>>conftest.
$ac_ext
13161 cat >>conftest.
$ac_ext <<_ACEOF
13162 /* end confdefs.h. */
13163 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
13172 rm -f conftest.
$ac_objext conftest
$ac_exeext
13173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13174 (eval $ac_link) 2>conftest.er1
13176 grep -v '^ *+' conftest.er1
>conftest.err
13178 cat conftest.err
>&5
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); } &&
13181 { ac_try
='test -z "$ac_c_werror_flag"
13182 || test ! -s conftest.err'
13183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13184 (eval $ac_try) 2>&5
13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 (exit $ac_status); }; } &&
13188 { ac_try
='test -s conftest$ac_exeext'
13189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13190 (eval $ac_try) 2>&5
13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); }; }; then
13194 libffi_cv_as_sparc_ua_pcrel
=yes
13196 echo "$as_me: failed program was:" >&5
13197 sed 's/^/| /' conftest.
$ac_ext >&5
13199 libffi_cv_as_sparc_ua_pcrel
=no
13201 rm -f conftest.err conftest.
$ac_objext \
13202 conftest
$ac_exeext conftest.
$ac_ext
13203 CFLAGS
="$save_CFLAGS"
13204 LDFLAGS
="$save_LDFLAGS"
13206 echo "$as_me:$LINENO: result: $libffi_cv_as_sparc_ua_pcrel" >&5
13207 echo "${ECHO_T}$libffi_cv_as_sparc_ua_pcrel" >&6
13208 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes
; then
13210 cat >>confdefs.h
<<\_ACEOF
13211 #define HAVE_AS_SPARC_UA_PCREL 1
13216 echo "$as_me:$LINENO: checking assembler .register pseudo-op support" >&5
13217 echo $ECHO_N "checking assembler .register pseudo-op support... $ECHO_C" >&6
13218 if test "${libffi_cv_as_register_pseudo_op+set}" = set; then
13219 echo $ECHO_N "(cached) $ECHO_C" >&6
13222 libffi_cv_as_register_pseudo_op
=unknown
13223 # Check if we have .register
13224 cat >conftest.
$ac_ext <<_ACEOF
13227 cat confdefs.h
>>conftest.
$ac_ext
13228 cat >>conftest.
$ac_ext <<_ACEOF
13229 /* end confdefs.h. */
13230 asm (".register %g2, #scratch");
13239 rm -f conftest.
$ac_objext
13240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13241 (eval $ac_compile) 2>conftest.er1
13243 grep -v '^ *+' conftest.er1
>conftest.err
13245 cat conftest.err
>&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); } &&
13248 { ac_try
='test -z "$ac_c_werror_flag"
13249 || test ! -s conftest.err'
13250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13251 (eval $ac_try) 2>&5
13253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254 (exit $ac_status); }; } &&
13255 { ac_try
='test -s conftest.$ac_objext'
13256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13257 (eval $ac_try) 2>&5
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); }; }; then
13261 libffi_cv_as_register_pseudo_op
=yes
13263 echo "$as_me: failed program was:" >&5
13264 sed 's/^/| /' conftest.
$ac_ext >&5
13266 libffi_cv_as_register_pseudo_op
=no
13268 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
13271 echo "$as_me:$LINENO: result: $libffi_cv_as_register_pseudo_op" >&5
13272 echo "${ECHO_T}$libffi_cv_as_register_pseudo_op" >&6
13273 if test "x$libffi_cv_as_register_pseudo_op" = xyes
; then
13275 cat >>confdefs.h
<<\_ACEOF
13276 #define HAVE_AS_REGISTER_PSEUDO_OP 1
13282 if test x
$TARGET = xX86 ||
test x
$TARGET = xX86_WIN32 ||
test x
$TARGET = xX86_64
; then
13283 echo "$as_me:$LINENO: checking assembler supports pc related relocs" >&5
13284 echo $ECHO_N "checking assembler supports pc related relocs... $ECHO_C" >&6
13285 if test "${libffi_cv_as_x86_pcrel+set}" = set; then
13286 echo $ECHO_N "(cached) $ECHO_C" >&6
13289 libffi_cv_as_x86_pcrel
=yes
13290 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
13291 if $CC $CFLAGS -c conftest.s
2>&1 |
grep -i warning
> /dev
/null
; then
13292 libffi_cv_as_x86_pcrel
=no
13296 echo "$as_me:$LINENO: result: $libffi_cv_as_x86_pcrel" >&5
13297 echo "${ECHO_T}$libffi_cv_as_x86_pcrel" >&6
13298 if test "x$libffi_cv_as_x86_pcrel" = xyes
; then
13300 cat >>confdefs.h
<<\_ACEOF
13301 #define HAVE_AS_X86_PCREL 1
13307 echo "$as_me:$LINENO: checking whether .eh_frame section should be read-only" >&5
13308 echo $ECHO_N "checking whether .eh_frame section should be read-only... $ECHO_C" >&6
13309 if test "${libffi_cv_ro_eh_frame+set}" = set; then
13310 echo $ECHO_N "(cached) $ECHO_C" >&6
13313 libffi_cv_ro_eh_frame
=no
13314 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
13315 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c
> /dev
/null
2>&1; then
13316 if grep '.section.*eh_frame.*"a"' conftest.s
> /dev
/null
; then
13317 libffi_cv_ro_eh_frame
=yes
13318 elif grep '.section.*eh_frame.*#alloc' conftest.c \
13319 |
grep -v '#write' > /dev
/null
; then
13320 libffi_cv_ro_eh_frame
=yes
13326 echo "$as_me:$LINENO: result: $libffi_cv_ro_eh_frame" >&5
13327 echo "${ECHO_T}$libffi_cv_ro_eh_frame" >&6
13328 if test "x$libffi_cv_ro_eh_frame" = xyes
; then
13330 cat >>confdefs.h
<<\_ACEOF
13331 #define HAVE_RO_EH_FRAME 1
13335 cat >>confdefs.h
<<\_ACEOF
13336 #define EH_FRAME_FLAGS "a"
13341 cat >>confdefs.h
<<\_ACEOF
13342 #define EH_FRAME_FLAGS "aw"
13347 echo "$as_me:$LINENO: checking for __attribute__((visibility(\"hidden\")))" >&5
13348 echo $ECHO_N "checking for __attribute__((visibility(\"hidden\")))... $ECHO_C" >&6
13349 if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then
13350 echo $ECHO_N "(cached) $ECHO_C" >&6
13353 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
13354 libffi_cv_hidden_visibility_attribute
=no
13355 if { ac_try
='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
13356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13357 (eval $ac_try) 2>&5
13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); }; }; then
13361 if grep '\.hidden.*foo' conftest.s
>/dev
/null
; then
13362 libffi_cv_hidden_visibility_attribute
=yes
13368 echo "$as_me:$LINENO: result: $libffi_cv_hidden_visibility_attribute" >&5
13369 echo "${ECHO_T}$libffi_cv_hidden_visibility_attribute" >&6
13370 if test $libffi_cv_hidden_visibility_attribute = yes; then
13372 cat >>confdefs.h
<<\_ACEOF
13373 #define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1
13386 # Check whether --enable-debug or --disable-debug was given.
13387 if test "${enable_debug+set}" = set; then
13388 enableval
="$enable_debug"
13389 if test "$enable_debug" = "yes"; then
13391 cat >>confdefs.h
<<\_ACEOF
13392 #define FFI_DEBUG 1
13398 # Check whether --enable-structs or --disable-structs was given.
13399 if test "${enable_structs+set}" = set; then
13400 enableval
="$enable_structs"
13401 if test "$enable_structs" = "no"; then
13403 cat >>confdefs.h
<<\_ACEOF
13404 #define FFI_NO_STRUCTS 1
13410 # Check whether --enable-raw-api or --disable-raw-api was given.
13411 if test "${enable_raw_api+set}" = set; then
13412 enableval
="$enable_raw_api"
13413 if test "$enable_raw_api" = "no"; then
13415 cat >>confdefs.h
<<\_ACEOF
13416 #define FFI_NO_RAW_API 1
13422 # Check whether --enable-purify-safety or --disable-purify-safety was given.
13423 if test "${enable_purify_safety+set}" = set; then
13424 enableval
="$enable_purify_safety"
13425 if test "$enable_purify_safety" = "yes"; then
13427 cat >>confdefs.h
<<\_ACEOF
13428 #define USING_PURIFY 1
13434 if test -n "$with_cross_host" &&
13435 test x
"$with_cross_host" != x
"no"; then
13436 toolexecdir
='$(exec_prefix)/$(target_alias)'
13437 toolexeclibdir
='$(toolexecdir)/lib'
13439 toolexecdir
='$(libdir)/gcc-lib/$(target_alias)'
13440 toolexeclibdir
='$(libdir)'
13442 multi_os_directory
=`$CC -print-multi-os-directory`
13443 case $multi_os_directory in
13444 .
) ;; # Avoid trailing /.
13445 *) toolexeclibdir
=$toolexeclibdir/$multi_os_directory ;;
13450 if test "${multilib}" = "yes"; then
13451 multilib_arg
="--enable-multilib"
13456 ac_config_commands
="$ac_config_commands include"
13458 ac_config_commands
="$ac_config_commands src"
13461 ac_config_links
="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
13464 ac_config_files
="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile"
13467 cat >confcache
<<\_ACEOF
13468 # This file is a shell script that caches the results of configure
13469 # tests run on this system so they can be shared between configure
13470 # scripts and configure runs, see configure's option --config-cache.
13471 # It is not useful on other systems. If it contains results you don't
13472 # want to keep, you may remove or edit it.
13474 # config.status only pays attention to the cache file if you give it
13475 # the --recheck option to rerun configure.
13477 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13478 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13479 # following values.
13483 # The following way of writing the cache mishandles newlines in values,
13484 # but we know of no workaround that is simple, portable, and efficient.
13485 # So, don't put newlines in cache variables' values.
13486 # Ultrix sh set writes to stderr and can't be redirected directly,
13487 # and sets the high bit in the cache file unless we assign to the vars.
13490 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13492 # `set' does not quote correctly, so add quotes (double-quote
13493 # substitution turns \\\\ into \\, and sed turns \\ into \).
13496 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13499 # `set' quotes correctly as required by POSIX, so do not add quotes.
13501 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13508 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13510 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13512 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
13513 if test -w $cache_file; then
13514 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13515 cat confcache
>$cache_file
13517 echo "not updating unwritable cache $cache_file"
13522 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
13523 # Let make expand exec_prefix.
13524 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
13526 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13527 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13528 # trailing colons and then remove the whole line if VPATH becomes empty
13529 # (actually we leave an empty line to preserve line numbers).
13530 if test "x$srcdir" = x.
; then
13531 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
13532 s/:*\$(srcdir):*/:/;
13533 s/:*\${srcdir}:*/:/;
13535 s/^\([^=]*=[ ]*\):*/\1/;
13541 DEFS
=-DHAVE_CONFIG_H
13545 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
13546 # 1. Remove the extension, and $U if already installed.
13547 ac_i
=`echo "$ac_i" |
13548 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13550 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
13551 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
13553 LIBOBJS
=$ac_libobjs
13555 LTLIBOBJS
=$ac_ltlibobjs
13558 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13559 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13560 Usually this means the macro was only invoked conditionally." >&5
13561 echo "$as_me: error: conditional \"AMDEP\" was never defined.
13562 Usually this means the macro was only invoked conditionally." >&2;}
13563 { (exit 1); exit 1; }; }
13565 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13566 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13567 Usually this means the macro was only invoked conditionally." >&5
13568 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13569 Usually this means the macro was only invoked conditionally." >&2;}
13570 { (exit 1); exit 1; }; }
13572 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13573 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
13574 Usually this means the macro was only invoked conditionally." >&5
13575 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
13576 Usually this means the macro was only invoked conditionally." >&2;}
13577 { (exit 1); exit 1; }; }
13579 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
13580 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
13581 Usually this means the macro was only invoked conditionally." >&5
13582 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
13583 Usually this means the macro was only invoked conditionally." >&2;}
13584 { (exit 1); exit 1; }; }
13586 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
13587 { { echo "$as_me:$LINENO: error: conditional \"MIPS\" was never defined.
13588 Usually this means the macro was only invoked conditionally." >&5
13589 echo "$as_me: error: conditional \"MIPS\" was never defined.
13590 Usually this means the macro was only invoked conditionally." >&2;}
13591 { (exit 1); exit 1; }; }
13593 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
13594 { { echo "$as_me:$LINENO: error: conditional \"SPARC\" was never defined.
13595 Usually this means the macro was only invoked conditionally." >&5
13596 echo "$as_me: error: conditional \"SPARC\" was never defined.
13597 Usually this means the macro was only invoked conditionally." >&2;}
13598 { (exit 1); exit 1; }; }
13600 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
13601 { { echo "$as_me:$LINENO: error: conditional \"X86\" was never defined.
13602 Usually this means the macro was only invoked conditionally." >&5
13603 echo "$as_me: error: conditional \"X86\" was never defined.
13604 Usually this means the macro was only invoked conditionally." >&2;}
13605 { (exit 1); exit 1; }; }
13607 if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
13608 { { echo "$as_me:$LINENO: error: conditional \"X86_FREEBSD\" was never defined.
13609 Usually this means the macro was only invoked conditionally." >&5
13610 echo "$as_me: error: conditional \"X86_FREEBSD\" was never defined.
13611 Usually this means the macro was only invoked conditionally." >&2;}
13612 { (exit 1); exit 1; }; }
13614 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
13615 { { echo "$as_me:$LINENO: error: conditional \"X86_WIN32\" was never defined.
13616 Usually this means the macro was only invoked conditionally." >&5
13617 echo "$as_me: error: conditional \"X86_WIN32\" was never defined.
13618 Usually this means the macro was only invoked conditionally." >&2;}
13619 { (exit 1); exit 1; }; }
13621 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
13622 { { echo "$as_me:$LINENO: error: conditional \"X86_DARWIN\" was never defined.
13623 Usually this means the macro was only invoked conditionally." >&5
13624 echo "$as_me: error: conditional \"X86_DARWIN\" was never defined.
13625 Usually this means the macro was only invoked conditionally." >&2;}
13626 { (exit 1); exit 1; }; }
13628 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
13629 { { echo "$as_me:$LINENO: error: conditional \"ALPHA\" was never defined.
13630 Usually this means the macro was only invoked conditionally." >&5
13631 echo "$as_me: error: conditional \"ALPHA\" was never defined.
13632 Usually this means the macro was only invoked conditionally." >&2;}
13633 { (exit 1); exit 1; }; }
13635 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
13636 { { echo "$as_me:$LINENO: error: conditional \"IA64\" was never defined.
13637 Usually this means the macro was only invoked conditionally." >&5
13638 echo "$as_me: error: conditional \"IA64\" was never defined.
13639 Usually this means the macro was only invoked conditionally." >&2;}
13640 { (exit 1); exit 1; }; }
13642 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
13643 { { echo "$as_me:$LINENO: error: conditional \"M32R\" was never defined.
13644 Usually this means the macro was only invoked conditionally." >&5
13645 echo "$as_me: error: conditional \"M32R\" was never defined.
13646 Usually this means the macro was only invoked conditionally." >&2;}
13647 { (exit 1); exit 1; }; }
13649 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
13650 { { echo "$as_me:$LINENO: error: conditional \"M68K\" was never defined.
13651 Usually this means the macro was only invoked conditionally." >&5
13652 echo "$as_me: error: conditional \"M68K\" was never defined.
13653 Usually this means the macro was only invoked conditionally." >&2;}
13654 { (exit 1); exit 1; }; }
13656 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
13657 { { echo "$as_me:$LINENO: error: conditional \"POWERPC\" was never defined.
13658 Usually this means the macro was only invoked conditionally." >&5
13659 echo "$as_me: error: conditional \"POWERPC\" was never defined.
13660 Usually this means the macro was only invoked conditionally." >&2;}
13661 { (exit 1); exit 1; }; }
13663 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
13664 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_AIX\" was never defined.
13665 Usually this means the macro was only invoked conditionally." >&5
13666 echo "$as_me: error: conditional \"POWERPC_AIX\" was never defined.
13667 Usually this means the macro was only invoked conditionally." >&2;}
13668 { (exit 1); exit 1; }; }
13670 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
13671 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_DARWIN\" was never defined.
13672 Usually this means the macro was only invoked conditionally." >&5
13673 echo "$as_me: error: conditional \"POWERPC_DARWIN\" was never defined.
13674 Usually this means the macro was only invoked conditionally." >&2;}
13675 { (exit 1); exit 1; }; }
13677 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
13678 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_FREEBSD\" was never defined.
13679 Usually this means the macro was only invoked conditionally." >&5
13680 echo "$as_me: error: conditional \"POWERPC_FREEBSD\" was never defined.
13681 Usually this means the macro was only invoked conditionally." >&2;}
13682 { (exit 1); exit 1; }; }
13684 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
13685 { { echo "$as_me:$LINENO: error: conditional \"ARM\" was never defined.
13686 Usually this means the macro was only invoked conditionally." >&5
13687 echo "$as_me: error: conditional \"ARM\" was never defined.
13688 Usually this means the macro was only invoked conditionally." >&2;}
13689 { (exit 1); exit 1; }; }
13691 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
13692 { { echo "$as_me:$LINENO: error: conditional \"LIBFFI_CRIS\" was never defined.
13693 Usually this means the macro was only invoked conditionally." >&5
13694 echo "$as_me: error: conditional \"LIBFFI_CRIS\" was never defined.
13695 Usually this means the macro was only invoked conditionally." >&2;}
13696 { (exit 1); exit 1; }; }
13698 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
13699 { { echo "$as_me:$LINENO: error: conditional \"FRV\" was never defined.
13700 Usually this means the macro was only invoked conditionally." >&5
13701 echo "$as_me: error: conditional \"FRV\" was never defined.
13702 Usually this means the macro was only invoked conditionally." >&2;}
13703 { (exit 1); exit 1; }; }
13705 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
13706 { { echo "$as_me:$LINENO: error: conditional \"S390\" was never defined.
13707 Usually this means the macro was only invoked conditionally." >&5
13708 echo "$as_me: error: conditional \"S390\" was never defined.
13709 Usually this means the macro was only invoked conditionally." >&2;}
13710 { (exit 1); exit 1; }; }
13712 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
13713 { { echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
13714 Usually this means the macro was only invoked conditionally." >&5
13715 echo "$as_me: error: conditional \"X86_64\" was never defined.
13716 Usually this means the macro was only invoked conditionally." >&2;}
13717 { (exit 1); exit 1; }; }
13719 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
13720 { { echo "$as_me:$LINENO: error: conditional \"SH\" was never defined.
13721 Usually this means the macro was only invoked conditionally." >&5
13722 echo "$as_me: error: conditional \"SH\" was never defined.
13723 Usually this means the macro was only invoked conditionally." >&2;}
13724 { (exit 1); exit 1; }; }
13726 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
13727 { { echo "$as_me:$LINENO: error: conditional \"SH64\" was never defined.
13728 Usually this means the macro was only invoked conditionally." >&5
13729 echo "$as_me: error: conditional \"SH64\" was never defined.
13730 Usually this means the macro was only invoked conditionally." >&2;}
13731 { (exit 1); exit 1; }; }
13733 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
13734 { { echo "$as_me:$LINENO: error: conditional \"PA_LINUX\" was never defined.
13735 Usually this means the macro was only invoked conditionally." >&5
13736 echo "$as_me: error: conditional \"PA_LINUX\" was never defined.
13737 Usually this means the macro was only invoked conditionally." >&2;}
13738 { (exit 1); exit 1; }; }
13740 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
13741 { { echo "$as_me:$LINENO: error: conditional \"PA_HPUX\" was never defined.
13742 Usually this means the macro was only invoked conditionally." >&5
13743 echo "$as_me: error: conditional \"PA_HPUX\" was never defined.
13744 Usually this means the macro was only invoked conditionally." >&2;}
13745 { (exit 1); exit 1; }; }
13747 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
13748 { { echo "$as_me:$LINENO: error: conditional \"PA64_HPUX\" was never defined.
13749 Usually this means the macro was only invoked conditionally." >&5
13750 echo "$as_me: error: conditional \"PA64_HPUX\" was never defined.
13751 Usually this means the macro was only invoked conditionally." >&2;}
13752 { (exit 1); exit 1; }; }
13755 : ${CONFIG_STATUS=./config.status}
13756 ac_clean_files_save
=$ac_clean_files
13757 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
13758 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13759 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13760 cat >$CONFIG_STATUS <<_ACEOF
13762 # Generated by $as_me.
13763 # Run this file to recreate the current configuration.
13764 # Compiler output produced by configure, useful for debugging
13765 # configure, is in config.log if it exists.
13768 ac_cs_recheck=false
13770 SHELL=\${CONFIG_SHELL-$SHELL}
13773 cat >>$CONFIG_STATUS <<\_ACEOF
13774 ## --------------------- ##
13775 ## M4sh Initialization. ##
13776 ## --------------------- ##
13778 # Be Bourne compatible
13779 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
13782 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13783 # is contrary to our usage. Disable this feature.
13784 alias -g '${1+"$@"}'='"$@"'
13785 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
13788 DUALCASE
=1; export DUALCASE
# for MKS sh
13790 # Support unset when possible.
13791 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
13798 # Work around bugs in pre-3.0 UWIN ksh.
13799 $as_unset ENV MAIL MAILPATH
13806 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13807 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13808 LC_TELEPHONE LC_TIME
13810 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13811 eval $as_var=C
; export $as_var
13817 # Required to use basename.
13818 if expr a
: '\(a\)' >/dev
/null
2>&1; then
13824 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
13825 as_basename
=basename
13831 # Name of the executable.
13832 as_me
=`$as_basename "$0" ||
13833 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13834 X"$0" : 'X\(//\)$' \| \
13835 X"$0" : 'X\(/\)$' \| \
13836 . : '\(.\)' 2>/dev/null ||
13838 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13839 /^X\/\(\/\/\)$/{ s//\1/; q; }
13840 /^X\/\(\/\).*/{ s//\1/; q; }
13844 # PATH needs CR, and LINENO needs CR and PATH.
13845 # Avoid depending upon Character Ranges.
13846 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
13847 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13848 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
13849 as_cr_digits
='0123456789'
13850 as_cr_alnum
=$as_cr_Letters$as_cr_digits
13852 # The user is always right.
13853 if test "${PATH_SEPARATOR+set}" != set; then
13854 echo "#! /bin/sh" >conf$$.sh
13855 echo "exit 0" >>conf$$.sh
13857 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
13866 as_lineno_1
=$LINENO
13867 as_lineno_2
=$LINENO
13868 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
13869 test "x$as_lineno_1" != "x$as_lineno_2" &&
13870 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
13871 # Find who we are. Look in the path if we contain no path at all
13874 *[\\/]* ) as_myself
=$0 ;;
13875 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13876 for as_dir
in $PATH
13879 test -z "$as_dir" && as_dir
=.
13880 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
13885 # We did not find ourselves, most probably we were run as `sh COMMAND'
13886 # in which case we are not to be found in the path.
13887 if test "x$as_myself" = x
; then
13890 if test ! -f "$as_myself"; then
13891 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13892 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13893 { (exit 1); exit 1; }; }
13895 case $CONFIG_SHELL in
13897 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13898 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
13901 test -z "$as_dir" && as_dir
=.
13902 for as_base
in sh bash ksh sh5
; do
13905 if ("$as_dir/$as_base" -c '
13906 as_lineno_1=$LINENO
13907 as_lineno_2=$LINENO
13908 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13909 test "x$as_lineno_1" != "x$as_lineno_2" &&
13910 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
13911 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
13912 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
13913 CONFIG_SHELL
=$as_dir/$as_base
13914 export CONFIG_SHELL
13915 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13923 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13924 # uniformly replaced by the line number. The first 'sed' inserts a
13925 # line-number line before each line; the second 'sed' does the real
13926 # work. The second script uses 'N' to pair each line-number line
13927 # with the numbered line, and appends trailing '-' during
13928 # substitution so that $LINENO is not a special case at line end.
13929 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13930 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13931 sed '=' <$as_myself |
13936 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13939 s,^['$as_cr_digits']*\n,,
13940 ' >$as_me.lineno
&&
13941 chmod +x
$as_me.lineno ||
13942 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13943 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13944 { (exit 1); exit 1; }; }
13946 # Don't try to exec as it changes $[0], causing all sort of problems
13947 # (the dirname of $[0] is not the place where we might find the
13948 # original and so on. Autoconf is especially sensible to this).
13950 # Exit status is that of the last command.
13955 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13956 *c
*,-n*) ECHO_N
= ECHO_C
='
13958 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
13959 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
13962 if expr a
: '\(a\)' >/dev
/null
2>&1; then
13968 rm -f conf$$ conf$$.exe conf$$.
file
13970 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
13971 # We could just check for DJGPP; but this test a) works b) is more generic
13972 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13973 if test -f conf$$.exe
; then
13974 # Don't use ln at all; we don't have any links
13979 elif ln conf$$.
file conf$$
2>/dev
/null
; then
13984 rm -f conf$$ conf$$.exe conf$$.
file
13986 if mkdir
-p .
2>/dev
/null
; then
13989 test -d .
/-p && rmdir .
/-p
13993 as_executable_p
="test -f"
13995 # Sed expression to map a string onto a valid CPP name.
13996 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13998 # Sed expression to map a string onto a valid variable name.
13999 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14003 # We need space, tab and new line, in precisely that order.
14013 # Open the log real soon, to keep \$[0] and so on meaningful, and to
14014 # report actual input values of CONFIG_FILES etc. instead of their
14015 # values after options handling. Logging --version etc. is OK.
14019 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14020 ## Running $as_me. ##
14025 This file was extended by libffi $as_me 3.0.8, which was
14026 generated by GNU Autoconf 2.59. Invocation command line was
14028 CONFIG_FILES = $CONFIG_FILES
14029 CONFIG_HEADERS = $CONFIG_HEADERS
14030 CONFIG_LINKS = $CONFIG_LINKS
14031 CONFIG_COMMANDS = $CONFIG_COMMANDS
14035 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14039 # Files that config.status was made for.
14040 if test -n "$ac_config_files"; then
14041 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14044 if test -n "$ac_config_headers"; then
14045 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14048 if test -n "$ac_config_links"; then
14049 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14052 if test -n "$ac_config_commands"; then
14053 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14056 cat >>$CONFIG_STATUS <<\_ACEOF
14059 \`$as_me' instantiates files from templates according to the
14060 current configuration.
14062 Usage: $0 [OPTIONS] [FILE]...
14064 -h, --help print this help, then exit
14065 -V, --version print version number, then exit
14066 -q, --quiet do not print progress messages
14067 -d, --debug don't remove temporary files
14068 --recheck update $as_me by reconfiguring in the same conditions
14069 --file=FILE[:TEMPLATE]
14070 instantiate the configuration file FILE
14071 --header=FILE[:TEMPLATE]
14072 instantiate the configuration header FILE
14074 Configuration files:
14077 Configuration headers:
14080 Configuration links:
14083 Configuration commands:
14086 Report bugs to <bug-autoconf@gnu.org>."
14089 cat >>$CONFIG_STATUS <<_ACEOF
14091 libffi config.status 3.0.8
14092 configured by $0, generated by GNU Autoconf 2.59,
14093 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14095 Copyright (C) 2003 Free Software Foundation, Inc.
14096 This config.status script is free software; the Free Software Foundation
14097 gives unlimited permission to copy, distribute and modify it."
14102 cat >>$CONFIG_STATUS <<\_ACEOF
14103 # If no file are specified by the user, then we need to provide default
14104 # value. By we need to know if files were specified by the user.
14110 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
14111 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
14119 *) # This is not an option, so the user has probably given explicit
14122 ac_need_defaults
=false
;;
14126 # Handling of the options.
14128 cat >>$CONFIG_STATUS <<\_ACEOF
14129 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
14131 --version |
--vers* |
-V )
14132 echo "$ac_cs_version"; exit 0 ;;
14134 # Conflict between --help and --header
14135 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14136 Try \`$0 --help' for more information." >&5
14137 echo "$as_me: error: ambiguous option: $1
14138 Try \`$0 --help' for more information." >&2;}
14139 { (exit 1); exit 1; }; };;
14140 --help |
--hel |
-h )
14141 echo "$ac_cs_usage"; exit 0 ;;
14142 --debug |
--d* |
-d )
14144 --file |
--fil |
--fi |
--f )
14146 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
14147 ac_need_defaults
=false
;;
14148 --header |
--heade |
--head |
--hea )
14150 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
14151 ac_need_defaults
=false
;;
14152 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
14153 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
14156 # This is an error.
14157 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14158 Try \`$0 --help' for more information." >&5
14159 echo "$as_me: error: unrecognized option: $1
14160 Try \`$0 --help' for more information." >&2;}
14161 { (exit 1); exit 1; }; } ;;
14163 *) ac_config_targets
="$ac_config_targets $1" ;;
14169 ac_configure_extra_args
=
14171 if $ac_cs_silent; then
14173 ac_configure_extra_args
="$ac_configure_extra_args --silent"
14177 cat >>$CONFIG_STATUS <<_ACEOF
14178 if \$ac_cs_recheck; then
14179 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14180 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14185 cat >>$CONFIG_STATUS <<_ACEOF
14187 # INIT-COMMANDS section.
14194 with_multisubdir="$with_multisubdir"
14195 with_multisrctop="$with_multisrctop"
14196 with_target_subdir="$with_target_subdir"
14197 ac_configure_args="${multilib_arg} ${ac_configure_args}"
14198 multi_basedir="$multi_basedir"
14199 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
14201 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14204 # The HP-UX ksh and POSIX shell print the target directory to stdout
14205 # if CDPATH is set.
14206 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14208 sed_quote_subst='$sed_quote_subst'
14209 double_quote_subst='$double_quote_subst'
14210 delay_variable_subst='$delay_variable_subst'
14211 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14212 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14213 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14214 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14215 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14216 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14217 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14218 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14219 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14220 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14221 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14222 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14223 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14224 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14225 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14226 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14227 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14228 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14229 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14230 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14231 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14232 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14233 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14234 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14235 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14236 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14237 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14238 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14239 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14240 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14241 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14242 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14243 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14244 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14245 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14246 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14247 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14248 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14249 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14250 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14251 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14252 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14253 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14254 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14255 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
14256 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14257 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14258 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14259 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14260 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14261 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14262 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14263 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14264 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14265 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14266 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14267 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14268 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14269 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14270 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14271 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14272 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14273 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14274 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14275 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14276 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14277 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14278 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14279 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14280 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14281 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14282 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14283 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14284 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14285 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14286 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14287 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14288 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14289 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14290 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14291 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14292 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14293 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14294 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14295 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14296 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14297 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14298 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14299 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14300 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14301 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14302 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14303 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14304 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14305 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14306 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14307 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14308 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14309 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14310 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14311 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14312 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14313 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14314 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14315 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14316 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14317 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14318 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14319 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14320 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14321 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14322 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14323 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14324 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14325 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14326 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14327 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14328 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14331 LTCFLAGS='$LTCFLAGS'
14332 compiler='$compiler_DEFAULT'
14334 # Quote evaled strings.
14346 deplibs_check_method \
14355 lt_cv_sys_global_symbol_pipe \
14356 lt_cv_sys_global_symbol_to_cdecl \
14357 lt_cv_sys_global_symbol_to_c_name_address \
14358 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14361 lt_prog_compiler_no_builtin_flag \
14362 lt_prog_compiler_wl \
14363 lt_prog_compiler_pic \
14364 lt_prog_compiler_static \
14365 lt_cv_prog_compiler_c_o \
14373 export_dynamic_flag_spec \
14374 whole_archive_flag_spec \
14375 compiler_needs_object \
14377 allow_undefined_flag \
14378 no_undefined_flag \
14379 hardcode_libdir_flag_spec \
14380 hardcode_libdir_flag_spec_ld \
14381 hardcode_libdir_separator \
14386 variables_saved_for_relink \
14388 library_names_spec \
14393 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14394 *[\\\\\\\`\\"\\\$]*)
14395 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14398 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14403 # Double-quote double-evaled strings.
14404 for var in reload_cmds \
14405 old_postinstall_cmds \
14406 old_postuninstall_cmds \
14408 extract_expsyms_cmds \
14409 old_archive_from_new_cmds \
14410 old_archive_from_expsyms_cmds \
14412 archive_expsym_cmds \
14414 module_expsym_cmds \
14415 export_symbols_cmds \
14418 postuninstall_cmds \
14420 sys_lib_search_path_spec \
14421 sys_lib_dlsearch_path_spec; do
14422 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14423 *[\\\\\\\`\\"\\\$]*)
14424 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14427 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14432 # Fix-up fallback echo if it was mangled by the above quoting rules.
14434 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14438 ac_aux_dir='$ac_aux_dir'
14439 xsi_shell='$xsi_shell'
14440 lt_shell_append='$lt_shell_append'
14442 # See if we are running on zsh, and set the options which allow our
14443 # commands through without removal of \ escapes INIT.
14444 if test -n "\${ZSH_VERSION+set}" ; then
14445 setopt NO_GLOB_SUBST
14451 TIMESTAMP='$TIMESTAMP'
14457 TARGETDIR="$TARGETDIR"
14463 cat >>$CONFIG_STATUS <<\_ACEOF
14464 for ac_config_target
in $ac_config_targets
14466 case "$ac_config_target" in
14467 # Handling of arguments.
14468 "include/Makefile" ) CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
14469 "include/ffi.h" ) CONFIG_FILES
="$CONFIG_FILES include/ffi.h" ;;
14470 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
14471 "testsuite/Makefile" ) CONFIG_FILES
="$CONFIG_FILES testsuite/Makefile" ;;
14472 "man/Makefile" ) CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
14473 "include/ffitarget.h" ) CONFIG_LINKS
="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
14474 "default-1" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
14475 "depfiles" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
14476 "libtool" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
14477 "include" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS include" ;;
14478 "src" ) CONFIG_COMMANDS
="$CONFIG_COMMANDS src" ;;
14479 "fficonfig.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS fficonfig.h" ;;
14480 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14481 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14482 { (exit 1); exit 1; }; };;
14486 # If the user did not use the arguments to specify the items to instantiate,
14487 # then the envvar interface is used. Set only those that are not.
14488 # We use the long form for the default assignment because of an extremely
14489 # bizarre bug on SunOS 4.1.3.
14490 if $ac_need_defaults; then
14491 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
14492 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
14493 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
14494 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
14497 # Have a temporary directory for convenience. Make it in the build tree
14498 # simply because there is no reason to put it here, and in addition,
14499 # creating and moving files from /tmp can sometimes cause problems.
14500 # Create a temporary directory, and hook for its removal unless debugging.
14503 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14504 trap '{ (exit 1); exit 1; }' 1 2 13 15
14507 # Create a (secure) tmp directory for tmp files.
14510 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14511 test -n "$tmp" && test -d "$tmp"
14514 tmp
=.
/confstat$$
-$RANDOM
14515 (umask 077 && mkdir
$tmp)
14518 echo "$me: cannot create a temporary directory in ." >&2
14519 { (exit 1); exit 1; }
14524 cat >>$CONFIG_STATUS <<_ACEOF
14527 # CONFIG_FILES section.
14530 # No need to generate the scripts if there are no CONFIG_FILES.
14531 # This happens for instance when ./config.status config.h
14532 if test -n "\$CONFIG_FILES"; then
14533 # Protect against being on the right side of a sed subst in config.status.
14534 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14535 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14536 s,@SHELL@,$SHELL,;t t
14537 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14538 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14539 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14540 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14541 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14542 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14543 s,@exec_prefix@,$exec_prefix,;t t
14544 s,@prefix@,$prefix,;t t
14545 s,@program_transform_name@,$program_transform_name,;t t
14546 s,@bindir@,$bindir,;t t
14547 s,@sbindir@,$sbindir,;t t
14548 s,@libexecdir@,$libexecdir,;t t
14549 s,@datadir@,$datadir,;t t
14550 s,@sysconfdir@,$sysconfdir,;t t
14551 s,@sharedstatedir@,$sharedstatedir,;t t
14552 s,@localstatedir@,$localstatedir,;t t
14553 s,@libdir@,$libdir,;t t
14554 s,@includedir@,$includedir,;t t
14555 s,@oldincludedir@,$oldincludedir,;t t
14556 s,@infodir@,$infodir,;t t
14557 s,@mandir@,$mandir,;t t
14558 s,@build_alias@,$build_alias,;t t
14559 s,@host_alias@,$host_alias,;t t
14560 s,@target_alias@,$target_alias,;t t
14561 s,@DEFS@,$DEFS,;t t
14562 s,@ECHO_C@,$ECHO_C,;t t
14563 s,@ECHO_N@,$ECHO_N,;t t
14564 s,@ECHO_T@,$ECHO_T,;t t
14565 s,@LIBS@,$LIBS,;t t
14566 s,@multi_basedir@,$multi_basedir,;t t
14567 s,@build@,$build,;t t
14568 s,@build_cpu@,$build_cpu,;t t
14569 s,@build_vendor@,$build_vendor,;t t
14570 s,@build_os@,$build_os,;t t
14571 s,@host@,$host,;t t
14572 s,@host_cpu@,$host_cpu,;t t
14573 s,@host_vendor@,$host_vendor,;t t
14574 s,@host_os@,$host_os,;t t
14575 s,@target@,$target,;t t
14576 s,@target_cpu@,$target_cpu,;t t
14577 s,@target_vendor@,$target_vendor,;t t
14578 s,@target_os@,$target_os,;t t
14579 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14580 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14581 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14582 s,@CYGPATH_W@,$CYGPATH_W,;t t
14583 s,@PACKAGE@,$PACKAGE,;t t
14584 s,@VERSION@,$VERSION,;t t
14585 s,@ACLOCAL@,$ACLOCAL,;t t
14586 s,@AUTOCONF@,$AUTOCONF,;t t
14587 s,@AUTOMAKE@,$AUTOMAKE,;t t
14588 s,@AUTOHEADER@,$AUTOHEADER,;t t
14589 s,@MAKEINFO@,$MAKEINFO,;t t
14590 s,@install_sh@,$install_sh,;t t
14591 s,@STRIP@,$STRIP,;t t
14592 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14593 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
14594 s,@mkdir_p@,$mkdir_p,;t t
14596 s,@SET_MAKE@,$SET_MAKE,;t t
14597 s,@am__leading_dot@,$am__leading_dot,;t t
14598 s,@AMTAR@,$AMTAR,;t t
14599 s,@am__tar@,$am__tar,;t t
14600 s,@am__untar@,$am__untar,;t t
14602 s,@ac_ct_CC@,$ac_ct_CC,;t t
14603 s,@EXEEXT@,$EXEEXT,;t t
14604 s,@OBJEXT@,$OBJEXT,;t t
14605 s,@DEPDIR@,$DEPDIR,;t t
14606 s,@am__include@,$am__include,;t t
14607 s,@am__quote@,$am__quote,;t t
14608 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
14609 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
14610 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
14611 s,@CCDEPMODE@,$CCDEPMODE,;t t
14612 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
14613 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
14614 s,@CFLAGS@,$CFLAGS,;t t
14615 s,@CCAS@,$CCAS,;t t
14616 s,@CCASFLAGS@,$CCASFLAGS,;t t
14617 s,@LIBTOOL@,$LIBTOOL,;t t
14619 s,@EGREP@,$EGREP,;t t
14620 s,@FGREP@,$FGREP,;t t
14621 s,@GREP@,$GREP,;t t
14623 s,@DUMPBIN@,$DUMPBIN,;t t
14624 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
14626 s,@LN_S@,$LN_S,;t t
14627 s,@OBJDUMP@,$OBJDUMP,;t t
14628 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
14630 s,@ac_ct_AR@,$ac_ct_AR,;t t
14631 s,@RANLIB@,$RANLIB,;t t
14632 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14633 s,@lt_ECHO@,$lt_ECHO,;t t
14634 s,@DSYMUTIL@,$DSYMUTIL,;t t
14635 s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
14636 s,@NMEDIT@,$NMEDIT,;t t
14637 s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
14638 s,@LIPO@,$LIPO,;t t
14639 s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t
14640 s,@OTOOL@,$OTOOL,;t t
14641 s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t
14642 s,@OTOOL64@,$OTOOL64,;t t
14643 s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t
14645 s,@CPPFLAGS@,$CPPFLAGS,;t t
14646 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
14647 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
14648 s,@MAINT@,$MAINT,;t t
14649 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
14650 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
14651 s,@AM_RUNTESTFLAGS@,$AM_RUNTESTFLAGS,;t t
14652 s,@MIPS_TRUE@,$MIPS_TRUE,;t t
14653 s,@MIPS_FALSE@,$MIPS_FALSE,;t t
14654 s,@SPARC_TRUE@,$SPARC_TRUE,;t t
14655 s,@SPARC_FALSE@,$SPARC_FALSE,;t t
14656 s,@X86_TRUE@,$X86_TRUE,;t t
14657 s,@X86_FALSE@,$X86_FALSE,;t t
14658 s,@X86_FREEBSD_TRUE@,$X86_FREEBSD_TRUE,;t t
14659 s,@X86_FREEBSD_FALSE@,$X86_FREEBSD_FALSE,;t t
14660 s,@X86_WIN32_TRUE@,$X86_WIN32_TRUE,;t t
14661 s,@X86_WIN32_FALSE@,$X86_WIN32_FALSE,;t t
14662 s,@X86_DARWIN_TRUE@,$X86_DARWIN_TRUE,;t t
14663 s,@X86_DARWIN_FALSE@,$X86_DARWIN_FALSE,;t t
14664 s,@ALPHA_TRUE@,$ALPHA_TRUE,;t t
14665 s,@ALPHA_FALSE@,$ALPHA_FALSE,;t t
14666 s,@IA64_TRUE@,$IA64_TRUE,;t t
14667 s,@IA64_FALSE@,$IA64_FALSE,;t t
14668 s,@M32R_TRUE@,$M32R_TRUE,;t t
14669 s,@M32R_FALSE@,$M32R_FALSE,;t t
14670 s,@M68K_TRUE@,$M68K_TRUE,;t t
14671 s,@M68K_FALSE@,$M68K_FALSE,;t t
14672 s,@POWERPC_TRUE@,$POWERPC_TRUE,;t t
14673 s,@POWERPC_FALSE@,$POWERPC_FALSE,;t t
14674 s,@POWERPC_AIX_TRUE@,$POWERPC_AIX_TRUE,;t t
14675 s,@POWERPC_AIX_FALSE@,$POWERPC_AIX_FALSE,;t t
14676 s,@POWERPC_DARWIN_TRUE@,$POWERPC_DARWIN_TRUE,;t t
14677 s,@POWERPC_DARWIN_FALSE@,$POWERPC_DARWIN_FALSE,;t t
14678 s,@POWERPC_FREEBSD_TRUE@,$POWERPC_FREEBSD_TRUE,;t t
14679 s,@POWERPC_FREEBSD_FALSE@,$POWERPC_FREEBSD_FALSE,;t t
14680 s,@ARM_TRUE@,$ARM_TRUE,;t t
14681 s,@ARM_FALSE@,$ARM_FALSE,;t t
14682 s,@LIBFFI_CRIS_TRUE@,$LIBFFI_CRIS_TRUE,;t t
14683 s,@LIBFFI_CRIS_FALSE@,$LIBFFI_CRIS_FALSE,;t t
14684 s,@FRV_TRUE@,$FRV_TRUE,;t t
14685 s,@FRV_FALSE@,$FRV_FALSE,;t t
14686 s,@S390_TRUE@,$S390_TRUE,;t t
14687 s,@S390_FALSE@,$S390_FALSE,;t t
14688 s,@X86_64_TRUE@,$X86_64_TRUE,;t t
14689 s,@X86_64_FALSE@,$X86_64_FALSE,;t t
14690 s,@SH_TRUE@,$SH_TRUE,;t t
14691 s,@SH_FALSE@,$SH_FALSE,;t t
14692 s,@SH64_TRUE@,$SH64_TRUE,;t t
14693 s,@SH64_FALSE@,$SH64_FALSE,;t t
14694 s,@PA_LINUX_TRUE@,$PA_LINUX_TRUE,;t t
14695 s,@PA_LINUX_FALSE@,$PA_LINUX_FALSE,;t t
14696 s,@PA_HPUX_TRUE@,$PA_HPUX_TRUE,;t t
14697 s,@PA_HPUX_FALSE@,$PA_HPUX_FALSE,;t t
14698 s,@PA64_HPUX_TRUE@,$PA64_HPUX_TRUE,;t t
14699 s,@PA64_HPUX_FALSE@,$PA64_HPUX_FALSE,;t t
14700 s,@ALLOCA@,$ALLOCA,;t t
14701 s,@HAVE_LONG_DOUBLE@,$HAVE_LONG_DOUBLE,;t t
14702 s,@TARGET@,$TARGET,;t t
14703 s,@TARGETDIR@,$TARGETDIR,;t t
14704 s,@toolexecdir@,$toolexecdir,;t t
14705 s,@toolexeclibdir@,$toolexeclibdir,;t t
14706 s,@LIBOBJS@,$LIBOBJS,;t t
14707 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
14712 cat >>$CONFIG_STATUS <<\_ACEOF
14713 # Split the substitutions into bite-sized pieces for seds with
14714 # small command number limits, like on Digital OSF/1 and HP-UX.
14715 ac_max_sed_lines
=48
14716 ac_sed_frag
=1 # Number of current file.
14717 ac_beg
=1 # First line for current file.
14718 ac_end
=$ac_max_sed_lines # Line after last line for current file.
14721 while $ac_more_lines; do
14722 if test $ac_beg -gt 1; then
14723 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
14725 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
14727 if test ! -s $tmp/subs.frag
; then
14728 ac_more_lines
=false
14730 # The purpose of the label and of the branching condition is to
14731 # speed up the sed processing (if there are no `@' at all, there
14732 # is no need to browse any of the substitutions).
14733 # These are the two extra sed commands mentioned above.
14735 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
14736 if test -z "$ac_sed_cmds"; then
14737 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
14739 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14741 ac_sed_frag
=`expr $ac_sed_frag + 1`
14743 ac_end
=`expr $ac_end + $ac_max_sed_lines`
14746 if test -z "$ac_sed_cmds"; then
14749 fi # test -n "$CONFIG_FILES"
14752 cat >>$CONFIG_STATUS <<\_ACEOF
14753 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
14754 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14756 - |
*:- |
*:-:* ) # input from stdin
14758 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
14759 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
14760 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
14761 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
14762 * ) ac_file_in
=$ac_file.
in ;;
14765 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14766 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
14767 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14768 X"$ac_file" : 'X\(//\)[^/]' \| \
14769 X"$ac_file" : 'X\(//\)$' \| \
14770 X"$ac_file" : 'X\(/\)' \| \
14771 . : '\(.\)' 2>/dev/null ||
14773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14774 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14775 /^X\(\/\/\)$/{ s//\1/; q; }
14776 /^X\(\/\).*/{ s//\1/; q; }
14778 { if $as_mkdir_p; then
14783 while test ! -d "$as_dir"; do
14784 as_dirs
="$as_dir $as_dirs"
14785 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
14786 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14787 X"$as_dir" : 'X\(//\)[^/]' \| \
14788 X"$as_dir" : 'X\(//\)$' \| \
14789 X"$as_dir" : 'X\(/\)' \| \
14790 . : '\(.\)' 2>/dev/null ||
14792 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14793 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14794 /^X\(\/\/\)$/{ s//\1/; q; }
14795 /^X\(\/\).*/{ s//\1/; q; }
14798 test ! -n "$as_dirs" || mkdir
$as_dirs
14799 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14800 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14801 { (exit 1); exit 1; }; }; }
14805 if test "$ac_dir" != .
; then
14806 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14807 # A "../" for each directory in $ac_dir_suffix.
14808 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14810 ac_dir_suffix
= ac_top_builddir
=
14814 .
) # No --srcdir option. We are building in place.
14816 if test -z "$ac_top_builddir"; then
14819 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
14821 [\\/]* | ?
:[\\/]* ) # Absolute path.
14822 ac_srcdir
=$srcdir$ac_dir_suffix;
14823 ac_top_srcdir
=$srcdir ;;
14824 *) # Relative path.
14825 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
14826 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
14829 # Do not use `cd foo && pwd` to compute absolute paths, because
14830 # the directories may not exist.
14832 .
) ac_abs_builddir
="$ac_dir";;
14835 .
) ac_abs_builddir
=`pwd`;;
14836 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
14837 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
14840 case $ac_abs_builddir in
14841 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
14843 case ${ac_top_builddir}.
in
14844 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
14845 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
14846 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
14849 case $ac_abs_builddir in
14850 .
) ac_abs_srcdir
=$ac_srcdir;;
14853 .
) ac_abs_srcdir
=$ac_abs_builddir;;
14854 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
14855 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
14858 case $ac_abs_builddir in
14859 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
14861 case $ac_top_srcdir in
14862 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
14863 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
14864 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
14870 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
14871 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
14874 if test x
"$ac_file" != x-
; then
14875 { echo "$as_me:$LINENO: creating $ac_file" >&5
14876 echo "$as_me: creating $ac_file" >&6;}
14879 # Let's still pretend it is `configure' which instantiates (i.e., don't
14880 # use $as_me), people would be surprised to read:
14881 # /* config.h. Generated by config.status. */
14882 if test x
"$ac_file" = x-
; then
14885 configure_input
="$ac_file. "
14887 configure_input
=$configure_input"Generated from `echo $ac_file_in |
14888 sed 's,.*/,,'` by configure."
14890 # First look for the input files in the build tree, otherwise in the
14892 ac_file_inputs
=`IFS=:
14893 for f in $ac_file_in; do
14895 -) echo $tmp/stdin ;;
14897 # Absolute (can't be DOS-style, as IFS=:)
14898 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14899 echo "$as_me: error: cannot find input file: $f" >&2;}
14900 { (exit 1); exit 1; }; }
14903 if test -f "$f"; then
14906 elif test -f "$srcdir/$f"; then
14911 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14912 echo "$as_me: error: cannot find input file: $f" >&2;}
14913 { (exit 1); exit 1; }; }
14916 done` ||
{ (exit 1); exit 1; }
14918 cat >>$CONFIG_STATUS <<_ACEOF
14922 cat >>$CONFIG_STATUS <<\_ACEOF
14924 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
14925 s
,@configure_input@
,$configure_input,;t t
14926 s
,@srcdir@
,$ac_srcdir,;t t
14927 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
14928 s
,@top_srcdir@
,$ac_top_srcdir,;t t
14929 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
14930 s
,@builddir@
,$ac_builddir,;t t
14931 s
,@abs_builddir@
,$ac_abs_builddir,;t t
14932 s
,@top_builddir@
,$ac_top_builddir,;t t
14933 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
14934 s
,@INSTALL@
,$ac_INSTALL,;t t
14935 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14937 if test x"$ac_file" != x-; then
14938 mv $tmp/out $ac_file
14946 cat >>$CONFIG_STATUS <<\_ACEOF
14949 # CONFIG_HEADER section.
14952 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
14953 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14955 # ac_d sets the value in "#define NAME VALUE" lines.
14956 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14957 ac_dB
='[ ].*$,\1#\2'
14960 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14961 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14962 ac_uB
='$,\1#\2define\3'
14966 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
14967 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14969 - |
*:- |
*:-:* ) # input from stdin
14971 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
14972 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
14973 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
14974 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
14975 * ) ac_file_in
=$ac_file.
in ;;
14978 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
14979 echo "$as_me: creating $ac_file" >&6;}
14981 # First look for the input files in the build tree, otherwise in the
14983 ac_file_inputs
=`IFS=:
14984 for f in $ac_file_in; do
14986 -) echo $tmp/stdin ;;
14988 # Absolute (can't be DOS-style, as IFS=:)
14989 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14990 echo "$as_me: error: cannot find input file: $f" >&2;}
14991 { (exit 1); exit 1; }; }
14992 # Do quote $f, to prevent DOS paths from being IFS'd.
14995 if test -f "$f"; then
14998 elif test -f "$srcdir/$f"; then
15003 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15004 echo "$as_me: error: cannot find input file: $f" >&2;}
15005 { (exit 1); exit 1; }; }
15008 done` ||
{ (exit 1); exit 1; }
15009 # Remove the trailing spaces.
15010 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
15014 # Transform confdefs.h into two sed scripts, `conftest.defines' and
15015 # `conftest.undefs', that substitutes the proper values into
15016 # config.h.in to produce config.h. The first handles `#define'
15017 # templates, and the second `#undef' templates.
15018 # And first: Protect against being on the right side of a sed subst in
15019 # config.status. Protect against being in an unquoted here document
15020 # in config.status.
15021 rm -f conftest.defines conftest.undefs
15022 # Using a here document instead of a string reduces the quoting nightmare.
15023 # Putting comments in sed scripts is not portable.
15025 # `end' is used to avoid that the second main sed command (meant for
15026 # 0-ary CPP macros) applies to n-ary macro definitions.
15027 # See the Autoconf documentation for `clear'.
15028 cat >confdef2sed.
sed <<\_ACEOF
15033 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15035 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15038 # If some macros were called several times there might be several times
15039 # the same #defines, which is useless. Nevertheless, we may not want to
15040 # sort them, since we want the *last* AC-DEFINE to be honored.
15041 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15042 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15043 rm -f confdef2sed.sed
15045 # This sed command replaces #undef with comments. This is necessary, for
15046 # example, in the case of _POSIX_SOURCE, which is predefined and required
15047 # on some systems where configure will not decide to define it.
15048 cat >>conftest.undefs <<\_ACEOF
15049 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15052 # Break up conftest.defines because some shells have a limit on the size
15053 # of here documents, and old seds have small limits too (100 cmds).
15054 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15055 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15056 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15057 echo ' :' >>$CONFIG_STATUS
15058 rm -f conftest.tail
15059 while grep . conftest.defines >/dev/null
15061 # Write a limited-size here document to $tmp/defines.sed.
15062 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15063 # Speed up: don't consider the non `#define' lines.
15064 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
15065 # Work around the forget-to-reset-the-flag bug.
15066 echo 't clr' >>$CONFIG_STATUS
15067 echo ': clr' >>$CONFIG_STATUS
15068 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
15070 sed -f $tmp/defines.sed $tmp/in >$tmp/out
15072 mv $tmp/out $tmp/in
15074 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
15075 rm -f conftest.defines
15076 mv conftest.
tail conftest.defines
15078 rm -f conftest.defines
15079 echo ' fi # grep' >>$CONFIG_STATUS
15080 echo >>$CONFIG_STATUS
15082 # Break up conftest.undefs because some shells have a limit on the size
15083 # of here documents, and old seds have small limits too (100 cmds).
15084 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
15085 rm -f conftest.
tail
15086 while grep . conftest.undefs
>/dev
/null
15088 # Write a limited-size here document to $tmp/undefs.sed.
15089 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15090 # Speed up: don't consider the non
`#undef'
15091 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
15092 # Work around the forget-to-reset-the-flag bug.
15093 echo 't clr' >>$CONFIG_STATUS
15094 echo ': clr' >>$CONFIG_STATUS
15095 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15097 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15099 mv $tmp/out $tmp/in
15101 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15102 rm -f conftest.undefs
15103 mv conftest.tail conftest.undefs
15105 rm -f conftest.undefs
15107 cat >>$CONFIG_STATUS <<\_ACEOF
15108 # Let's still pretend it is `configure
' which instantiates (i.e., don't
15109 # use $as_me), people would be surprised to read:
15110 # /* config.h. Generated by config.status. */
15111 if test x
"$ac_file" = x-
; then
15112 echo "/* Generated by configure. */" >$tmp/config.h
15114 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
15116 cat $tmp/in >>$tmp/config.h
15118 if test x
"$ac_file" != x-
; then
15119 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
15120 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15121 echo "$as_me: $ac_file is unchanged" >&6;}
15123 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
15124 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15125 X"$ac_file" : 'X\(//\)[^/]' \| \
15126 X"$ac_file" : 'X\(//\)$' \| \
15127 X"$ac_file" : 'X\(/\)' \| \
15128 . : '\(.\)' 2>/dev/null ||
15130 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15131 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15132 /^X\(\/\/\)$/{ s//\1/; q; }
15133 /^X\(\/\).*/{ s//\1/; q; }
15135 { if $as_mkdir_p; then
15140 while test ! -d "$as_dir"; do
15141 as_dirs
="$as_dir $as_dirs"
15142 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
15143 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15144 X"$as_dir" : 'X\(//\)[^/]' \| \
15145 X"$as_dir" : 'X\(//\)$' \| \
15146 X"$as_dir" : 'X\(/\)' \| \
15147 . : '\(.\)' 2>/dev/null ||
15149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15150 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15151 /^X\(\/\/\)$/{ s//\1/; q; }
15152 /^X\(\/\).*/{ s//\1/; q; }
15155 test ! -n "$as_dirs" || mkdir
$as_dirs
15156 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15157 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15158 { (exit 1); exit 1; }; }; }
15161 mv $tmp/config.h
$ac_file
15165 rm -f $tmp/config.h
15167 # Compute $ac_file's index in $config_headers.
15169 for _am_header
in $config_headers :; do
15170 case $_am_header in
15171 $ac_file |
$ac_file:* )
15174 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
15177 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
15178 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15179 X$ac_file : 'X\(//\)[^/]' \| \
15180 X$ac_file : 'X\(//\)$' \| \
15181 X$ac_file : 'X\(/\)' \| \
15182 . : '\(.\)' 2>/dev/null ||
15184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15185 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15186 /^X\(\/\/\)$/{ s//\1/; q; }
15187 /^X\(\/\).*/{ s//\1/; q; }
15188 s/.*/./; q'`/stamp-h
$_am_stamp_count
15191 cat >>$CONFIG_STATUS <<\_ACEOF
15194 # CONFIG_LINKS section.
15197 for ac_file
in : $CONFIG_LINKS; do test "x$ac_file" = x
: && continue
15198 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
15199 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
15201 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
15202 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
15204 if test ! -r $srcdir/$ac_source; then
15205 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
15206 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
15207 { (exit 1); exit 1; }; }
15211 # Make relative symlinks.
15212 ac_dest_dir
=`(dirname "$ac_dest") 2>/dev/null ||
15213 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15214 X"$ac_dest" : 'X\(//\)[^/]' \| \
15215 X"$ac_dest" : 'X\(//\)$' \| \
15216 X"$ac_dest" : 'X\(/\)' \| \
15217 . : '\(.\)' 2>/dev/null ||
15219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15220 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15221 /^X\(\/\/\)$/{ s//\1/; q; }
15222 /^X\(\/\).*/{ s//\1/; q; }
15224 { if $as_mkdir_p; then
15225 mkdir
-p "$ac_dest_dir"
15227 as_dir
="$ac_dest_dir"
15229 while test ! -d "$as_dir"; do
15230 as_dirs
="$as_dir $as_dirs"
15231 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
15232 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15233 X"$as_dir" : 'X\(//\)[^/]' \| \
15234 X"$as_dir" : 'X\(//\)$' \| \
15235 X"$as_dir" : 'X\(/\)' \| \
15236 . : '\(.\)' 2>/dev/null ||
15238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15239 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15240 /^X\(\/\/\)$/{ s//\1/; q; }
15241 /^X\(\/\).*/{ s//\1/; q; }
15244 test ! -n "$as_dirs" || mkdir
$as_dirs
15245 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
15246 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
15247 { (exit 1); exit 1; }; }; }
15251 if test "$ac_dest_dir" != .
; then
15252 ac_dir_suffix
=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
15253 # A "../" for each directory in $ac_dir_suffix.
15254 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15256 ac_dir_suffix
= ac_top_builddir
=
15260 .
) # No --srcdir option. We are building in place.
15262 if test -z "$ac_top_builddir"; then
15265 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
15267 [\\/]* | ?
:[\\/]* ) # Absolute path.
15268 ac_srcdir
=$srcdir$ac_dir_suffix;
15269 ac_top_srcdir
=$srcdir ;;
15270 *) # Relative path.
15271 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
15272 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
15275 # Do not use `cd foo && pwd` to compute absolute paths, because
15276 # the directories may not exist.
15278 .
) ac_abs_builddir
="$ac_dest_dir";;
15280 case "$ac_dest_dir" in
15281 .
) ac_abs_builddir
=`pwd`;;
15282 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dest_dir";;
15283 *) ac_abs_builddir
=`pwd`/"$ac_dest_dir";;
15286 case $ac_abs_builddir in
15287 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
15289 case ${ac_top_builddir}.
in
15290 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
15291 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
15292 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
15295 case $ac_abs_builddir in
15296 .
) ac_abs_srcdir
=$ac_srcdir;;
15299 .
) ac_abs_srcdir
=$ac_abs_builddir;;
15300 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
15301 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
15304 case $ac_abs_builddir in
15305 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
15307 case $ac_top_srcdir in
15308 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
15309 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
15310 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
15316 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
15317 *) ac_rel_source
=$ac_top_builddir$srcdir/$ac_source ;;
15320 # Try a symlink, then a hard link, then a copy.
15321 ln -s $ac_rel_source $ac_dest 2>/dev
/null ||
15322 ln $srcdir/$ac_source $ac_dest 2>/dev
/null ||
15323 cp -p $srcdir/$ac_source $ac_dest ||
15324 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
15325 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
15326 { (exit 1); exit 1; }; }
15329 cat >>$CONFIG_STATUS <<\_ACEOF
15332 # CONFIG_COMMANDS section.
15334 for ac_file
in : $CONFIG_COMMANDS; do test "x$ac_file" = x
: && continue
15335 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
15336 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
15337 ac_dir
=`(dirname "$ac_dest") 2>/dev/null ||
15338 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15339 X"$ac_dest" : 'X\(//\)[^/]' \| \
15340 X"$ac_dest" : 'X\(//\)$' \| \
15341 X"$ac_dest" : 'X\(/\)' \| \
15342 . : '\(.\)' 2>/dev/null ||
15344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15345 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15346 /^X\(\/\/\)$/{ s//\1/; q; }
15347 /^X\(\/\).*/{ s//\1/; q; }
15349 { if $as_mkdir_p; then
15354 while test ! -d "$as_dir"; do
15355 as_dirs
="$as_dir $as_dirs"
15356 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
15357 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15358 X"$as_dir" : 'X\(//\)[^/]' \| \
15359 X"$as_dir" : 'X\(//\)$' \| \
15360 X"$as_dir" : 'X\(/\)' \| \
15361 . : '\(.\)' 2>/dev/null ||
15363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15364 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15365 /^X\(\/\/\)$/{ s//\1/; q; }
15366 /^X\(\/\).*/{ s//\1/; q; }
15369 test ! -n "$as_dirs" || mkdir
$as_dirs
15370 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15371 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15372 { (exit 1); exit 1; }; }; }
15376 if test "$ac_dir" != .
; then
15377 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15378 # A "../" for each directory in $ac_dir_suffix.
15379 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15381 ac_dir_suffix
= ac_top_builddir
=
15385 .
) # No --srcdir option. We are building in place.
15387 if test -z "$ac_top_builddir"; then
15390 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
15392 [\\/]* | ?
:[\\/]* ) # Absolute path.
15393 ac_srcdir
=$srcdir$ac_dir_suffix;
15394 ac_top_srcdir
=$srcdir ;;
15395 *) # Relative path.
15396 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
15397 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
15400 # Do not use `cd foo && pwd` to compute absolute paths, because
15401 # the directories may not exist.
15403 .
) ac_abs_builddir
="$ac_dir";;
15406 .
) ac_abs_builddir
=`pwd`;;
15407 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
15408 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
15411 case $ac_abs_builddir in
15412 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
15414 case ${ac_top_builddir}.
in
15415 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
15416 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
15417 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
15420 case $ac_abs_builddir in
15421 .
) ac_abs_srcdir
=$ac_srcdir;;
15424 .
) ac_abs_srcdir
=$ac_abs_builddir;;
15425 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
15426 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
15429 case $ac_abs_builddir in
15430 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
15432 case $ac_top_srcdir in
15433 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
15434 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
15435 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
15440 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15441 echo "$as_me: executing $ac_dest commands" >&6;}
15444 # Only add multilib support code if we just rebuilt the top-level
15446 case " $CONFIG_FILES " in
15448 ac_file
=Makefile .
${multi_basedir}/config-ml.
in
15451 depfiles
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
15452 # Strip MF so we end up with the name of the file.
15453 mf
=`echo "$mf" | sed -e 's/:.*$//'`
15454 # Check whether this is an Automake generated Makefile or not.
15455 # We used to match only the files named `Makefile.in', but
15456 # some people rename them; so instead we look at the file content.
15457 # Grep'ing the first line is not enough: some people post-process
15458 # each Makefile.in and add a new line on top of each file to say so.
15459 # So let's grep whole file.
15460 if grep '^#.*generated by automake' $mf > /dev
/null
2>&1; then
15461 dirpart
=`(dirname "$mf") 2>/dev/null ||
15462 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15463 X"$mf" : 'X\(//\)[^/]' \| \
15464 X"$mf" : 'X\(//\)$' \| \
15465 X"$mf" : 'X\(/\)' \| \
15466 . : '\(.\)' 2>/dev/null ||
15468 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15469 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15470 /^X\(\/\/\)$/{ s//\1/; q; }
15471 /^X\(\/\).*/{ s//\1/; q; }
15476 # Extract the definition of DEPDIR, am__include, and am__quote
15477 # from the Makefile without running `make'.
15478 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
15479 test -z "$DEPDIR" && continue
15480 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
15481 test -z "am__include" && continue
15482 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
15483 # When using ansi2knr, U may be empty or an underscore; expand it
15484 U
=`sed -n 's/^U = //p' < "$mf"`
15485 # Find all dependency output files, they are included files with
15486 # $(DEPDIR) in their names. We invoke sed twice because it is the
15487 # simplest approach to changing $(DEPDIR) to its actual value in the
15489 for file in `sed -n "
15490 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15491 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15492 # Make sure the directory exists.
15493 test -f "$dirpart/$file" && continue
15494 fdir
=`(dirname "$file") 2>/dev/null ||
15495 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15496 X"$file" : 'X\(//\)[^/]' \| \
15497 X"$file" : 'X\(//\)$' \| \
15498 X"$file" : 'X\(/\)' \| \
15499 . : '\(.\)' 2>/dev/null ||
15501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15502 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15503 /^X\(\/\/\)$/{ s//\1/; q; }
15504 /^X\(\/\).*/{ s//\1/; q; }
15506 { if $as_mkdir_p; then
15507 mkdir
-p $dirpart/$fdir
15509 as_dir
=$dirpart/$fdir
15511 while test ! -d "$as_dir"; do
15512 as_dirs
="$as_dir $as_dirs"
15513 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
15514 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15515 X"$as_dir" : 'X\(//\)[^/]' \| \
15516 X"$as_dir" : 'X\(//\)$' \| \
15517 X"$as_dir" : 'X\(/\)' \| \
15518 . : '\(.\)' 2>/dev/null ||
15520 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15521 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15522 /^X\(\/\/\)$/{ s//\1/; q; }
15523 /^X\(\/\).*/{ s//\1/; q; }
15526 test ! -n "$as_dirs" || mkdir
$as_dirs
15527 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
15528 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
15529 { (exit 1); exit 1; }; }; }
15531 # echo "creating $dirpart/$file"
15532 echo '# dummy' > "$dirpart/$file"
15538 # See if we are running on zsh, and set the options which allow our
15539 # commands through without removal of \ escapes.
15540 if test -n "${ZSH_VERSION+set}" ; then
15541 setopt NO_GLOB_SUBST
15544 cfgfile
="${ofile}T"
15545 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15548 cat <<_LT_EOF >> "$cfgfile"
15551 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15552 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15553 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15554 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15556 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15557 # 2006, 2007, 2008 Free Software Foundation, Inc.
15558 # Written by Gordon Matzigkeit, 1996
15560 # This file is part of GNU Libtool.
15562 # GNU Libtool is free software; you can redistribute it and/or
15563 # modify it under the terms of the GNU General Public License as
15564 # published by the Free Software Foundation; either version 2 of
15565 # the License, or (at your option) any later version.
15567 # As a special exception to the GNU General Public License,
15568 # if you distribute this file as part of a program or library that
15569 # is built using GNU Libtool, you may include this file under the
15570 # same distribution terms that you use for the rest of that program.
15572 # GNU Libtool is distributed in the hope that it will be useful,
15573 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15574 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15575 # GNU General Public License for more details.
15577 # You should have received a copy of the GNU General Public License
15578 # along with GNU Libtool; see the file COPYING. If not, a copy
15579 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15580 # obtained by writing to the Free Software Foundation, Inc.,
15581 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15584 # The names of the tagged configurations supported by this script.
15587 # ### BEGIN LIBTOOL CONFIG
15589 # Which release of libtool.m4 was used?
15590 macro_version=$macro_version
15591 macro_revision=$macro_revision
15593 # Whether or not to build shared libraries.
15594 build_libtool_libs=$enable_shared
15596 # Whether or not to build static libraries.
15597 build_old_libs=$enable_static
15599 # What type of objects to build.
15602 # Whether or not to optimize for fast installation.
15603 fast_install=$enable_fast_install
15606 host_alias=$host_alias
15610 # The build system.
15611 build_alias=$build_alias
15615 # A sed program that does not truncate output.
15618 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15619 Xsed="\$SED -e 1s/^X//"
15621 # A grep program that handles long lines.
15627 # A literal string matcher.
15630 # A BSD- or MS-compatible name lister.
15633 # Whether we need soft or hard links.
15636 # What is the maximum length of a command?
15637 max_cmd_len=$max_cmd_len
15639 # Object file suffix (normally "o").
15642 # Executable file suffix (normally "").
15645 # whether the shell understands "unset".
15648 # turn spaces into newlines.
15651 # turn newlines into spaces.
15654 # How to create reloadable object files.
15655 reload_flag=$lt_reload_flag
15656 reload_cmds=$lt_reload_cmds
15658 # An object symbol dumper.
15659 OBJDUMP=$lt_OBJDUMP
15661 # Method to check whether dependent libraries are shared objects.
15662 deplibs_check_method=$lt_deplibs_check_method
15664 # Command to use when deplibs_check_method == "file_magic".
15665 file_magic_cmd=$lt_file_magic_cmd
15669 AR_FLAGS=$lt_AR_FLAGS
15671 # A symbol stripping program.
15674 # Commands used to install an old-style archive.
15676 old_postinstall_cmds=$lt_old_postinstall_cmds
15677 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15682 # LTCC compiler flags.
15683 LTCFLAGS=$lt_CFLAGS
15685 # Take the output of nm and produce a listing of raw symbols and C names.
15686 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15688 # Transform the output of nm in a proper C declaration.
15689 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15691 # Transform the output of nm in a C name address pair.
15692 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15694 # Transform the output of nm in a C name address pair when lib prefix is needed.
15695 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15697 # The name of the directory that contains temporary libtool files.
15700 # Shell to use when invoking shell scripts.
15703 # An echo program that does not interpret backslashes.
15706 # Used to examine libraries when file_magic_cmd begins with "file".
15707 MAGIC_CMD=$MAGIC_CMD
15709 # Must we lock files when doing compilation?
15710 need_locks=$lt_need_locks
15712 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15713 DSYMUTIL=$lt_DSYMUTIL
15715 # Tool to change global to local symbols on Mac OS X.
15718 # Tool to manipulate fat objects and archives on Mac OS X.
15721 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15724 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15725 OTOOL64=$lt_OTOOL64
15727 # Old archive suffix (normally "a").
15730 # Shared library suffix (normally ".so").
15731 shrext_cmds=$lt_shrext_cmds
15733 # The commands to extract the exported symbol list from a shared archive.
15734 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15736 # Variables whose values should be saved in libtool wrapper scripts and
15737 # restored at link time.
15738 variables_saved_for_relink=$lt_variables_saved_for_relink
15740 # Do we need the "lib" prefix for modules?
15741 need_lib_prefix=$need_lib_prefix
15743 # Do we need a version for libraries?
15744 need_version=$need_version
15746 # Library versioning type.
15747 version_type=$version_type
15749 # Shared library runtime path variable.
15750 runpath_var=$runpath_var
15752 # Shared library path variable.
15753 shlibpath_var=$shlibpath_var
15755 # Is shlibpath searched before the hard-coded library search path?
15756 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15758 # Format of library name prefix.
15759 libname_spec=$lt_libname_spec
15761 # List of archive names. First name is the real one, the rest are links.
15762 # The last name is the one that the linker finds with -lNAME
15763 library_names_spec=$lt_library_names_spec
15765 # The coded name of the library, if different from the real name.
15766 soname_spec=$lt_soname_spec
15768 # Command to use after installation of a shared archive.
15769 postinstall_cmds=$lt_postinstall_cmds
15771 # Command to use after uninstallation of a shared archive.
15772 postuninstall_cmds=$lt_postuninstall_cmds
15774 # Commands used to finish a libtool library installation in a directory.
15775 finish_cmds=$lt_finish_cmds
15777 # As "finish_cmds", except a single script fragment to be evaled but
15779 finish_eval=$lt_finish_eval
15781 # Whether we should hardcode library paths into libraries.
15782 hardcode_into_libs=$hardcode_into_libs
15784 # Compile-time system search path for libraries.
15785 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15787 # Run-time system search path for libraries.
15788 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15790 # Whether dlopen is supported.
15791 dlopen_support=$enable_dlopen
15793 # Whether dlopen of programs is supported.
15794 dlopen_self=$enable_dlopen_self
15796 # Whether dlopen of statically linked programs is supported.
15797 dlopen_self_static=$enable_dlopen_self_static
15799 # Commands to strip libraries.
15800 old_striplib=$lt_old_striplib
15801 striplib=$lt_striplib
15804 # The linker used to build libraries.
15807 # Commands used to build an old-style archive.
15808 old_archive_cmds=$lt_old_archive_cmds
15810 # A language specific compiler.
15813 # Is the compiler the GNU compiler?
15816 # Compiler flag to turn off builtin functions.
15817 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15819 # How to pass a linker flag through the compiler.
15820 wl=$lt_lt_prog_compiler_wl
15822 # Additional compiler flags for building library objects.
15823 pic_flag=$lt_lt_prog_compiler_pic
15825 # Compiler flag to prevent dynamic linking.
15826 link_static_flag=$lt_lt_prog_compiler_static
15828 # Does compiler simultaneously support -c and -o options?
15829 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15831 # Whether or not to add -lc for building shared libraries.
15832 build_libtool_need_lc=$archive_cmds_need_lc
15834 # Whether or not to disallow shared libs when runtime libs are static.
15835 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15837 # Compiler flag to allow reflexive dlopens.
15838 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15840 # Compiler flag to generate shared objects directly from archives.
15841 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15843 # Whether the compiler copes with passing no objects directly.
15844 compiler_needs_object=$lt_compiler_needs_object
15846 # Create an old-style archive from a shared archive.
15847 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15849 # Create a temporary old-style archive to link instead of a shared archive.
15850 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15852 # Commands used to build a shared archive.
15853 archive_cmds=$lt_archive_cmds
15854 archive_expsym_cmds=$lt_archive_expsym_cmds
15856 # Commands used to build a loadable module if different from building
15857 # a shared archive.
15858 module_cmds=$lt_module_cmds
15859 module_expsym_cmds=$lt_module_expsym_cmds
15861 # Whether we are building with GNU ld or not.
15862 with_gnu_ld=$lt_with_gnu_ld
15864 # Flag that allows shared libraries with undefined symbols to be built.
15865 allow_undefined_flag=$lt_allow_undefined_flag
15867 # Flag that enforces no undefined symbols.
15868 no_undefined_flag=$lt_no_undefined_flag
15870 # Flag to hardcode \$libdir into a binary during linking.
15871 # This must work even if \$libdir does not exist
15872 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15874 # If ld is used when linking, flag to hardcode \$libdir into a binary
15875 # during linking. This must work even if \$libdir does not exist.
15876 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15878 # Whether we need a single "-rpath" flag with a separated argument.
15879 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15881 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15882 # DIR into the resulting binary.
15883 hardcode_direct=$hardcode_direct
15885 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15886 # DIR into the resulting binary and the resulting library dependency is
15887 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15888 # library is relocated.
15889 hardcode_direct_absolute=$hardcode_direct_absolute
15891 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15892 # into the resulting binary.
15893 hardcode_minus_L=$hardcode_minus_L
15895 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15896 # into the resulting binary.
15897 hardcode_shlibpath_var=$hardcode_shlibpath_var
15899 # Set to "yes" if building a shared library automatically hardcodes DIR
15900 # into the library and all subsequent libraries and executables linked
15902 hardcode_automatic=$hardcode_automatic
15904 # Set to yes if linker adds runtime paths of dependent libraries
15905 # to runtime path list.
15906 inherit_rpath=$inherit_rpath
15908 # Whether libtool must link a program against all its dependency libraries.
15909 link_all_deplibs=$link_all_deplibs
15911 # Fix the shell variable \$srcfile for the compiler.
15912 fix_srcfile_path=$lt_fix_srcfile_path
15914 # Set to "yes" if exported symbols are required.
15915 always_export_symbols=$always_export_symbols
15917 # The commands to list exported symbols.
15918 export_symbols_cmds=$lt_export_symbols_cmds
15920 # Symbols that should not be listed in the preloaded symbols.
15921 exclude_expsyms=$lt_exclude_expsyms
15923 # Symbols that must always be exported.
15924 include_expsyms=$lt_include_expsyms
15926 # Commands necessary for linking programs (against libraries) with templates.
15927 prelink_cmds=$lt_prelink_cmds
15929 # Specify filename containing input files.
15930 file_list_spec=$lt_file_list_spec
15932 # How to hardcode a shared library path into an executable.
15933 hardcode_action=$hardcode_action
15935 # ### END LIBTOOL CONFIG
15941 cat <<\_LT_EOF
>> "$cfgfile"
15942 # AIX sometimes has problems with the GCC collect2 program. For some
15943 # reason, if we set the COLLECT_NAMES environment variable, the problems
15944 # vanish in a puff of smoke.
15945 if test "X${COLLECT_NAMES+set}" != Xset
; then
15947 export COLLECT_NAMES
15954 ltmain
="$ac_aux_dir/ltmain.sh"
15957 # We use sed instead of cat because bash on DJGPP gets confused if
15958 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15959 # text mode, it properly converts lines to CR/LF. This bash problem
15960 # is reportedly fixed, but why not run on old versions too?
15961 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15962 ||
(rm -f "$cfgfile"; exit 1)
15966 cat << \_LT_EOF
>> "$cfgfile"
15968 # func_dirname file append nondir_replacement
15969 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15970 # otherwise set result to NONDIR_REPLACEMENT.
15974 */*) func_dirname_result
="${1%/*}${2}" ;;
15975 * ) func_dirname_result
="${3}" ;;
15979 # func_basename file
15982 func_basename_result
="${1##*/}"
15985 # func_dirname_and_basename file append nondir_replacement
15986 # perform func_basename and func_dirname in a single function
15988 # dirname: Compute the dirname of FILE. If nonempty,
15989 # add APPEND to the result, otherwise set result
15990 # to NONDIR_REPLACEMENT.
15991 # value returned in "$func_dirname_result"
15992 # basename: Compute filename of FILE.
15993 # value retuned in "$func_basename_result"
15994 # Implementation must be kept synchronized with func_dirname
15995 # and func_basename. For efficiency, we do not delegate to
15996 # those functions but instead duplicate the functionality here.
15997 func_dirname_and_basename
()
16000 */*) func_dirname_result
="${1%/*}${2}" ;;
16001 * ) func_dirname_result
="${3}" ;;
16003 func_basename_result
="${1##*/}"
16006 # func_stripname prefix suffix name
16007 # strip PREFIX and SUFFIX off of NAME.
16008 # PREFIX and SUFFIX must not contain globbing or regex special
16009 # characters, hashes, percent signs, but SUFFIX may contain a leading
16010 # dot (in which case that matches only a dot).
16013 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16014 # positional parameters, so assign one to ordinary parameter first.
16015 func_stripname_result
=${3}
16016 func_stripname_result
=${func_stripname_result#"${1}"}
16017 func_stripname_result
=${func_stripname_result%"${2}"}
16023 func_opt_split_opt
=${1%%=*}
16024 func_opt_split_arg
=${1#*=}
16031 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
16032 *) func_lo2o_result
=${1} ;;
16036 # func_xform libobj-or-source
16039 func_xform_result
=${1%.*}.lo
16042 # func_arith arithmetic-term...
16045 func_arith_result
=$
(( $
* ))
16049 # STRING may not start with a hyphen.
16052 func_len_result
=${#1}
16057 *) # Bourne compatible functions.
16058 cat << \_LT_EOF
>> "$cfgfile"
16060 # func_dirname file append nondir_replacement
16061 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16062 # otherwise set result to NONDIR_REPLACEMENT.
16065 # Extract subdirectory from the argument.
16066 func_dirname_result
=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16067 if test "X$func_dirname_result" = "X${1}"; then
16068 func_dirname_result
="${3}"
16070 func_dirname_result
="$func_dirname_result${2}"
16074 # func_basename file
16077 func_basename_result
=`$ECHO "X${1}" | $Xsed -e "$basename"`
16081 # func_stripname prefix suffix name
16082 # strip PREFIX and SUFFIX off of NAME.
16083 # PREFIX and SUFFIX must not contain globbing or regex special
16084 # characters, hashes, percent signs, but SUFFIX may contain a leading
16085 # dot (in which case that matches only a dot).
16086 # func_strip_suffix prefix name
16090 .
*) func_stripname_result
=`$ECHO "X${3}" \
16091 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16092 *) func_stripname_result
=`$ECHO "X${3}" \
16093 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16098 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
16099 my_sed_long_arg
='1s/^-[^=]*=//'
16104 func_opt_split_opt
=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16105 func_opt_split_arg
=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16111 func_lo2o_result
=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16114 # func_xform libobj-or-source
16117 func_xform_result
=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16120 # func_arith arithmetic-term...
16123 func_arith_result
=`expr "$@"`
16127 # STRING may not start with a hyphen.
16130 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16136 case $lt_shell_append in
16138 cat << \_LT_EOF
>> "$cfgfile"
16140 # func_append var value
16141 # Append VALUE to the end of shell variable VAR.
16149 cat << \_LT_EOF
>> "$cfgfile"
16151 # func_append var value
16152 # Append VALUE to the end of shell variable VAR.
16163 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16164 ||
(rm -f "$cfgfile"; exit 1)
16166 mv -f "$cfgfile" "$ofile" ||
16167 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16171 include
) test -d include || mkdir include
;;
16173 test -d src || mkdir src
16174 test -d src
/$TARGETDIR || mkdir src
/$TARGETDIR
16180 cat >>$CONFIG_STATUS <<\_ACEOF
16182 { (exit 0); exit 0; }
16184 chmod +x
$CONFIG_STATUS
16185 ac_clean_files
=$ac_clean_files_save
16188 # configure is writing to config.log, and then calls config.status.
16189 # config.status does its own redirection, appending to config.log.
16190 # Unfortunately, on DOS this fails, as config.log is still kept open
16191 # by configure, so config.status won't be able to write to it; its
16192 # output is simply discarded. So we exec the FD to /dev/null,
16193 # effectively closing config.log, so it can be properly (re)opened and
16194 # appended to by config.status. When coming back to configure, we
16195 # need to make the FD available again.
16196 if test "$no_create" != yes; then
16198 ac_config_status_args
=
16199 test "$silent" = yes &&
16200 ac_config_status_args
="$ac_config_status_args --quiet"
16202 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16204 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16205 # would make configure fail if this is the last instruction.
16206 $ac_cs_success ||
{ (exit 1); exit 1; }