Makefile.tpl (restrap): Call `make all' using double-colon rules.
[official-gcc.git] / libffi / configure
blobd5c389f4308f39685e21e01e9d7f5f1d9818dd7a
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libffi 2.1.
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
16 emulate sh
17 NULLCMD=:
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
22 set -o posix
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
28 as_unset=unset
29 else
30 as_unset=false
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
40 # NLS nuisances.
41 for as_var in \
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 \
44 LC_TELEPHONE LC_TIME
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
51 done
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
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 ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; 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
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
98 rm -f conf$$.sh
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
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
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
120 esac
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
124 as_myself=$0
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
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
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
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
156 esac
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 |
167 sed '
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
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).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >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
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
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'"
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
240 IFS=" $as_nl"
242 # CDPATH.
243 $as_unset CDPATH
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
250 case X$lt_ECHO in
251 X*--fallback-echo)
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
255 esac
257 ECHO=${lt_ECHO-echo}
258 if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
260 shift
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!
267 else
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
274 shift
275 cat <<_LT_EOF
277 _LT_EOF
278 exit 0
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 # if CDPATH is set.
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
292 then
293 break
295 done
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
302 else
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
311 IFS="$lt_save_ifs"
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
316 ECHO="$dir/echo"
317 break
319 done
320 IFS="$lt_save_ifs"
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.
328 ECHO='print -r'
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
335 export CONFIG_SHELL
336 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337 else
338 # Try using printf.
339 ECHO='printf %s\n'
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
343 # Cool, printf works
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
350 export CONFIG_SHELL
351 SHELL="$CONFIG_SHELL"
352 export 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"
359 else
360 # maybe with a smaller string...
361 prev=:
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
365 then
366 break
368 prev="$cmd"
369 done
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+"$@"}
375 else
376 # Oops. We lost completely, so just stick with echo.
377 ECHO=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.
387 lt_ECHO=$ECHO
388 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
395 # Name of the host.
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`
400 exec 6>&1
403 # Initializations.
405 ac_default_prefix=/usr/local
406 ac_config_libobj_dir=.
407 cross_compiling=no
408 subdirs=
409 MFLAGS=
410 MAKEFLAGS=
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='2.1'
422 PACKAGE_STRING='libffi 2.1'
423 PACKAGE_BUGREPORT='http://gcc.gnu.org/bugs.html'
425 # Factoring default headers for most tests.
426 ac_includes_default="\
427 #include <stdio.h>
428 #if HAVE_SYS_TYPES_H
429 # include <sys/types.h>
430 #endif
431 #if HAVE_SYS_STAT_H
432 # include <sys/stat.h>
433 #endif
434 #if STDC_HEADERS
435 # include <stdlib.h>
436 # include <stddef.h>
437 #else
438 # if HAVE_STDLIB_H
439 # include <stdlib.h>
440 # endif
441 #endif
442 #if HAVE_STRING_H
443 # if !STDC_HEADERS && HAVE_MEMORY_H
444 # include <memory.h>
445 # endif
446 # include <string.h>
447 #endif
448 #if HAVE_STRINGS_H
449 # include <strings.h>
450 #endif
451 #if HAVE_INTTYPES_H
452 # include <inttypes.h>
453 #else
454 # if HAVE_STDINT_H
455 # include <stdint.h>
456 # endif
457 #endif
458 #if HAVE_UNISTD_H
459 # include <unistd.h>
460 #endif"
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 AR ac_ct_AR RANLIB ac_ct_RANLIB lt_ECHO 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_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'
463 ac_subst_files=''
465 # Initialize some variables set by options.
466 ac_init_help=
467 ac_init_version=false
468 # The variables have the same names as the options, with
469 # dashes changed to underlines.
470 cache_file=/dev/null
471 exec_prefix=NONE
472 no_create=
473 no_recursion=
474 prefix=NONE
475 program_prefix=NONE
476 program_suffix=NONE
477 program_transform_name=s,x,x,
478 silent=
479 site=
480 srcdir=
481 verbose=
482 x_includes=NONE
483 x_libraries=NONE
485 # Installation directory options.
486 # These are left unexpanded so users can "make install exec_prefix=/foo"
487 # and all the variables that are supposed to be based on exec_prefix
488 # by default will actually change.
489 # Use braces instead of parens because sh, perl, etc. also accept them.
490 bindir='${exec_prefix}/bin'
491 sbindir='${exec_prefix}/sbin'
492 libexecdir='${exec_prefix}/libexec'
493 datadir='${prefix}/share'
494 sysconfdir='${prefix}/etc'
495 sharedstatedir='${prefix}/com'
496 localstatedir='${prefix}/var'
497 libdir='${exec_prefix}/lib'
498 includedir='${prefix}/include'
499 oldincludedir='/usr/include'
500 infodir='${prefix}/info'
501 mandir='${prefix}/man'
503 ac_prev=
504 for ac_option
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
509 ac_prev=
510 continue
513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
515 # Accept the important Cygnus configure options, so we can diagnose typos.
517 case $ac_option in
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
522 bindir=$ac_optarg ;;
524 -build | --build | --buil | --bui | --bu)
525 ac_prev=build_alias ;;
526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
527 build_alias=$ac_optarg ;;
529 -cache-file | --cache-file | --cache-fil | --cache-fi \
530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531 ac_prev=cache_file ;;
532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
534 cache_file=$ac_optarg ;;
536 --config-cache | -C)
537 cache_file=config.cache ;;
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 ac_prev=datadir ;;
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 | --da=*)
543 datadir=$ac_optarg ;;
545 -disable-* | --disable-*)
546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
547 # Reject names that are not valid shell variable names.
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
554 -enable-* | --enable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 case $ac_option in
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
563 *) ac_optarg=yes ;;
564 esac
565 eval "enable_$ac_feature='$ac_optarg'" ;;
567 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569 | --exec | --exe | --ex)
570 ac_prev=exec_prefix ;;
571 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573 | --exec=* | --exe=* | --ex=*)
574 exec_prefix=$ac_optarg ;;
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
580 -help | --help | --hel | --he | -h)
581 ac_init_help=long ;;
582 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583 ac_init_help=recursive ;;
584 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585 ac_init_help=short ;;
587 -host | --host | --hos | --ho)
588 ac_prev=host_alias ;;
589 -host=* | --host=* | --hos=* | --ho=*)
590 host_alias=$ac_optarg ;;
592 -includedir | --includedir | --includedi | --included | --include \
593 | --includ | --inclu | --incl | --inc)
594 ac_prev=includedir ;;
595 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596 | --includ=* | --inclu=* | --incl=* | --inc=*)
597 includedir=$ac_optarg ;;
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
602 infodir=$ac_optarg ;;
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
607 libdir=$ac_optarg ;;
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
614 libexecdir=$ac_optarg ;;
616 -localstatedir | --localstatedir | --localstatedi | --localstated \
617 | --localstate | --localstat | --localsta | --localst \
618 | --locals | --local | --loca | --loc | --lo)
619 ac_prev=localstatedir ;;
620 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
623 localstatedir=$ac_optarg ;;
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
628 mandir=$ac_optarg ;;
630 -nfp | --nfp | --nf)
631 # Obsolete; use --without-fp.
632 with_fp=no ;;
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
635 | --no-cr | --no-c | -n)
636 no_create=yes ;;
638 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640 no_recursion=yes ;;
642 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644 | --oldin | --oldi | --old | --ol | --o)
645 ac_prev=oldincludedir ;;
646 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
649 oldincludedir=$ac_optarg ;;
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
654 prefix=$ac_optarg ;;
656 -program-prefix | --program-prefix | --program-prefi | --program-pref \
657 | --program-pre | --program-pr | --program-p)
658 ac_prev=program_prefix ;;
659 -program-prefix=* | --program-prefix=* | --program-prefi=* \
660 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
661 program_prefix=$ac_optarg ;;
663 -program-suffix | --program-suffix | --program-suffi | --program-suff \
664 | --program-suf | --program-su | --program-s)
665 ac_prev=program_suffix ;;
666 -program-suffix=* | --program-suffix=* | --program-suffi=* \
667 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
668 program_suffix=$ac_optarg ;;
670 -program-transform-name | --program-transform-name \
671 | --program-transform-nam | --program-transform-na \
672 | --program-transform-n | --program-transform- \
673 | --program-transform | --program-transfor \
674 | --program-transfo | --program-transf \
675 | --program-trans | --program-tran \
676 | --progr-tra | --program-tr | --program-t)
677 ac_prev=program_transform_name ;;
678 -program-transform-name=* | --program-transform-name=* \
679 | --program-transform-nam=* | --program-transform-na=* \
680 | --program-transform-n=* | --program-transform-=* \
681 | --program-transform=* | --program-transfor=* \
682 | --program-transfo=* | --program-transf=* \
683 | --program-trans=* | --program-tran=* \
684 | --progr-tra=* | --program-tr=* | --program-t=*)
685 program_transform_name=$ac_optarg ;;
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
689 silent=yes ;;
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 ac_prev=sbindir ;;
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 | --sbi=* | --sb=*)
695 sbindir=$ac_optarg ;;
697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699 | --sharedst | --shareds | --shared | --share | --shar \
700 | --sha | --sh)
701 ac_prev=sharedstatedir ;;
702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705 | --sha=* | --sh=*)
706 sharedstatedir=$ac_optarg ;;
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
711 site=$ac_optarg ;;
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
716 srcdir=$ac_optarg ;;
718 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719 | --syscon | --sysco | --sysc | --sys | --sy)
720 ac_prev=sysconfdir ;;
721 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
723 sysconfdir=$ac_optarg ;;
725 -target | --target | --targe | --targ | --tar | --ta | --t)
726 ac_prev=target_alias ;;
727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
728 target_alias=$ac_optarg ;;
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
736 -with-* | --with-*)
737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
738 # Reject names that are not valid shell variable names.
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
742 ac_package=`echo $ac_package| sed 's/-/_/g'`
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
745 *) ac_optarg=yes ;;
746 esac
747 eval "with_$ac_package='$ac_optarg'" ;;
749 -without-* | --without-*)
750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
751 # Reject names that are not valid shell variable names.
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
758 --x)
759 # Obsolete; use --with-x.
760 with_x=yes ;;
762 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763 | --x-incl | --x-inc | --x-in | --x-i)
764 ac_prev=x_includes ;;
765 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
767 x_includes=$ac_optarg ;;
769 -x-libraries | --x-libraries | --x-librarie | --x-librari \
770 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771 ac_prev=x_libraries ;;
772 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
774 x_libraries=$ac_optarg ;;
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777 Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
781 *=*)
782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
789 export $ac_envvar ;;
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
799 esac
800 done
802 if test -n "$ac_prev"; then
803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
808 # Be sure to have absolute paths.
809 for ac_var in exec_prefix prefix
811 eval ac_val=$`echo $ac_var`
812 case $ac_val in
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
816 esac
817 done
819 # Be sure to have absolute paths.
820 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
823 eval ac_val=$`echo $ac_var`
824 case $ac_val in
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
828 esac
829 done
831 # There might be people who depend on the old broken behavior: `$host'
832 # used to hold the argument of --host etc.
833 # FIXME: To remove some day.
834 build=$build_alias
835 host=$host_alias
836 target=$target_alias
838 # FIXME: To remove some day.
839 if test "x$host_alias" != x; then
840 if test "x$build_alias" = x; then
841 cross_compiling=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
845 cross_compiling=yes
849 ac_tool_prefix=
850 test -n "$host_alias" && ac_tool_prefix=$host_alias-
852 test "$silent" = yes && exec 6>/dev/null
855 # Find the source files, if location was not specified.
856 if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
865 echo X"$0" |
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
870 s/.*/./; q'`
871 srcdir=$ac_confdir
872 if test ! -r $srcdir/$ac_unique_file; then
873 srcdir=..
875 else
876 ac_srcdir_defaulted=no
878 if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
882 else
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
887 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891 ac_env_build_alias_set=${build_alias+set}
892 ac_env_build_alias_value=$build_alias
893 ac_cv_env_build_alias_set=${build_alias+set}
894 ac_cv_env_build_alias_value=$build_alias
895 ac_env_host_alias_set=${host_alias+set}
896 ac_env_host_alias_value=$host_alias
897 ac_cv_env_host_alias_set=${host_alias+set}
898 ac_cv_env_host_alias_value=$host_alias
899 ac_env_target_alias_set=${target_alias+set}
900 ac_env_target_alias_value=$target_alias
901 ac_cv_env_target_alias_set=${target_alias+set}
902 ac_cv_env_target_alias_value=$target_alias
903 ac_env_CCAS_set=${CCAS+set}
904 ac_env_CCAS_value=$CCAS
905 ac_cv_env_CCAS_set=${CCAS+set}
906 ac_cv_env_CCAS_value=$CCAS
907 ac_env_CCASFLAGS_set=${CCASFLAGS+set}
908 ac_env_CCASFLAGS_value=$CCASFLAGS
909 ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set}
910 ac_cv_env_CCASFLAGS_value=$CCASFLAGS
911 ac_env_CPP_set=${CPP+set}
912 ac_env_CPP_value=$CPP
913 ac_cv_env_CPP_set=${CPP+set}
914 ac_cv_env_CPP_value=$CPP
915 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916 ac_env_CPPFLAGS_value=$CPPFLAGS
917 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
921 # Report the --help message.
923 if test "$ac_init_help" = "long"; then
924 # Omit some internal or obsolete options to make the list less imposing.
925 # This message is too long to be a string in the A/UX 3.1 sh.
926 cat <<_ACEOF
927 \`configure' configures libffi 2.1 to adapt to many kinds of systems.
929 Usage: $0 [OPTION]... [VAR=VALUE]...
931 To assign environment variables (e.g., CC, CFLAGS...), specify them as
932 VAR=VALUE. See below for descriptions of some of the useful variables.
934 Defaults for the options are specified in brackets.
936 Configuration:
937 -h, --help display this help and exit
938 --help=short display options specific to this package
939 --help=recursive display the short help of all the included packages
940 -V, --version display version information and exit
941 -q, --quiet, --silent do not print \`checking...' messages
942 --cache-file=FILE cache test results in FILE [disabled]
943 -C, --config-cache alias for \`--cache-file=config.cache'
944 -n, --no-create do not create output files
945 --srcdir=DIR find the sources in DIR [configure dir or \`..']
947 _ACEOF
949 cat <<_ACEOF
950 Installation directories:
951 --prefix=PREFIX install architecture-independent files in PREFIX
952 [$ac_default_prefix]
953 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
954 [PREFIX]
956 By default, \`make install' will install all the files in
957 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
958 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
959 for instance \`--prefix=\$HOME'.
961 For better control, use the options below.
963 Fine tuning of the installation directories:
964 --bindir=DIR user executables [EPREFIX/bin]
965 --sbindir=DIR system admin executables [EPREFIX/sbin]
966 --libexecdir=DIR program executables [EPREFIX/libexec]
967 --datadir=DIR read-only architecture-independent data [PREFIX/share]
968 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
969 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
970 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
971 --libdir=DIR object code libraries [EPREFIX/lib]
972 --includedir=DIR C header files [PREFIX/include]
973 --oldincludedir=DIR C header files for non-gcc [/usr/include]
974 --infodir=DIR info documentation [PREFIX/info]
975 --mandir=DIR man documentation [PREFIX/man]
976 _ACEOF
978 cat <<\_ACEOF
980 Program names:
981 --program-prefix=PREFIX prepend PREFIX to installed program names
982 --program-suffix=SUFFIX append SUFFIX to installed program names
983 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
985 System types:
986 --build=BUILD configure for building on BUILD [guessed]
987 --host=HOST cross-compile to build programs to run on HOST [BUILD]
988 --target=TARGET configure for building compilers for TARGET [HOST]
989 _ACEOF
992 if test -n "$ac_init_help"; then
993 case $ac_init_help in
994 short | recursive ) echo "Configuration of libffi 2.1:";;
995 esac
996 cat <<\_ACEOF
998 Optional Features:
999 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1000 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1001 --enable-multilib build many library versions (default)
1002 --disable-dependency-tracking speeds up one-time build
1003 --enable-dependency-tracking do not reject slow dependency extractors
1004 --enable-shared[=PKGS]
1005 build shared libraries [default=yes]
1006 --enable-static[=PKGS]
1007 build static libraries [default=yes]
1008 --enable-fast-install[=PKGS]
1009 optimize for fast installation [default=yes]
1010 --disable-libtool-lock avoid locking (might break parallel builds)
1011 --enable-maintainer-mode enable make rules and dependencies not useful
1012 (and sometimes confusing) to the casual installer
1013 --enable-debug debugging mode
1014 --disable-structs omit code for struct support
1015 --disable-raw-api make the raw api unavailable
1016 --enable-purify-safety purify-safe mode
1018 Optional Packages:
1019 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1020 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1021 --with-pic try to use only PIC/non-PIC objects [default=use
1022 both]
1023 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1025 Some influential environment variables:
1026 CC C compiler command
1027 CFLAGS C compiler flags
1028 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1029 nonstandard directory <lib dir>
1030 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1031 headers in a nonstandard directory <include dir>
1032 CCAS assembler compiler command (defaults to CC)
1033 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1034 CPP C preprocessor
1036 Use these variables to override the choices made by `configure' or to help
1037 it to find libraries and programs with nonstandard names/locations.
1039 Report bugs to <http://gcc.gnu.org/bugs.html>.
1040 _ACEOF
1043 if test "$ac_init_help" = "recursive"; then
1044 # If there are subdirs, report their specific --help.
1045 ac_popdir=`pwd`
1046 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1047 test -d $ac_dir || continue
1048 ac_builddir=.
1050 if test "$ac_dir" != .; then
1051 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1052 # A "../" for each directory in $ac_dir_suffix.
1053 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1054 else
1055 ac_dir_suffix= ac_top_builddir=
1058 case $srcdir in
1059 .) # No --srcdir option. We are building in place.
1060 ac_srcdir=.
1061 if test -z "$ac_top_builddir"; then
1062 ac_top_srcdir=.
1063 else
1064 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1065 fi ;;
1066 [\\/]* | ?:[\\/]* ) # Absolute path.
1067 ac_srcdir=$srcdir$ac_dir_suffix;
1068 ac_top_srcdir=$srcdir ;;
1069 *) # Relative path.
1070 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1071 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1072 esac
1074 # Do not use `cd foo && pwd` to compute absolute paths, because
1075 # the directories may not exist.
1076 case `pwd` in
1077 .) ac_abs_builddir="$ac_dir";;
1079 case "$ac_dir" in
1080 .) ac_abs_builddir=`pwd`;;
1081 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1082 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1083 esac;;
1084 esac
1085 case $ac_abs_builddir in
1086 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1088 case ${ac_top_builddir}. in
1089 .) ac_abs_top_builddir=$ac_abs_builddir;;
1090 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1091 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1092 esac;;
1093 esac
1094 case $ac_abs_builddir in
1095 .) ac_abs_srcdir=$ac_srcdir;;
1097 case $ac_srcdir in
1098 .) ac_abs_srcdir=$ac_abs_builddir;;
1099 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1100 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1101 esac;;
1102 esac
1103 case $ac_abs_builddir in
1104 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1106 case $ac_top_srcdir in
1107 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1108 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1109 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1110 esac;;
1111 esac
1113 cd $ac_dir
1114 # Check for guested configure; otherwise get Cygnus style configure.
1115 if test -f $ac_srcdir/configure.gnu; then
1116 echo
1117 $SHELL $ac_srcdir/configure.gnu --help=recursive
1118 elif test -f $ac_srcdir/configure; then
1119 echo
1120 $SHELL $ac_srcdir/configure --help=recursive
1121 elif test -f $ac_srcdir/configure.ac ||
1122 test -f $ac_srcdir/configure.in; then
1123 echo
1124 $ac_configure --help
1125 else
1126 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1128 cd $ac_popdir
1129 done
1132 test -n "$ac_init_help" && exit 0
1133 if $ac_init_version; then
1134 cat <<\_ACEOF
1135 libffi configure 2.1
1136 generated by GNU Autoconf 2.59
1138 Copyright (C) 2003 Free Software Foundation, Inc.
1139 This configure script is free software; the Free Software Foundation
1140 gives unlimited permission to copy, distribute and modify it.
1141 _ACEOF
1142 exit 0
1144 exec 5>config.log
1145 cat >&5 <<_ACEOF
1146 This file contains any messages produced by compilers while
1147 running configure, to aid debugging if configure makes a mistake.
1149 It was created by libffi $as_me 2.1, which was
1150 generated by GNU Autoconf 2.59. Invocation command line was
1152 $ $0 $@
1154 _ACEOF
1156 cat <<_ASUNAME
1157 ## --------- ##
1158 ## Platform. ##
1159 ## --------- ##
1161 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1167 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1170 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1171 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1172 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1174 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1175 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1176 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1178 _ASUNAME
1180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1181 for as_dir in $PATH
1183 IFS=$as_save_IFS
1184 test -z "$as_dir" && as_dir=.
1185 echo "PATH: $as_dir"
1186 done
1188 } >&5
1190 cat >&5 <<_ACEOF
1193 ## ----------- ##
1194 ## Core tests. ##
1195 ## ----------- ##
1197 _ACEOF
1200 # Keep a trace of the command line.
1201 # Strip out --no-create and --no-recursion so they do not pile up.
1202 # Strip out --silent because we don't want to record it for future runs.
1203 # Also quote any args containing shell meta-characters.
1204 # Make two passes to allow for proper duplicate-argument suppression.
1205 ac_configure_args=
1206 ac_configure_args0=
1207 ac_configure_args1=
1208 ac_sep=
1209 ac_must_keep_next=false
1210 for ac_pass in 1 2
1212 for ac_arg
1214 case $ac_arg in
1215 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217 | -silent | --silent | --silen | --sile | --sil)
1218 continue ;;
1219 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1221 esac
1222 case $ac_pass in
1223 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1225 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226 if test $ac_must_keep_next = true; then
1227 ac_must_keep_next=false # Got value, back to normal.
1228 else
1229 case $ac_arg in
1230 *=* | --config-cache | -C | -disable-* | --disable-* \
1231 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233 | -with-* | --with-* | -without-* | --without-* | --x)
1234 case "$ac_configure_args0 " in
1235 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1236 esac
1238 -* ) ac_must_keep_next=true ;;
1239 esac
1241 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242 # Get rid of the leading space.
1243 ac_sep=" "
1245 esac
1246 done
1247 done
1248 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1251 # When interrupted or exit'd, cleanup temporary files, and complete
1252 # config.log. We remove comments because anyway the quotes in there
1253 # would cause problems or look ugly.
1254 # WARNING: Be sure not to use single quotes in there, as some shells,
1255 # such as our DU 5.0 friend, will then `close' the trap.
1256 trap 'exit_status=$?
1257 # Save into config.log some information that might help in debugging.
1259 echo
1261 cat <<\_ASBOX
1262 ## ---------------- ##
1263 ## Cache variables. ##
1264 ## ---------------- ##
1265 _ASBOX
1266 echo
1267 # The following way of writing the cache mishandles newlines in values,
1269 (set) 2>&1 |
1270 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1271 *ac_space=\ *)
1272 sed -n \
1273 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1277 sed -n \
1278 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1280 esac;
1282 echo
1284 cat <<\_ASBOX
1285 ## ----------------- ##
1286 ## Output variables. ##
1287 ## ----------------- ##
1288 _ASBOX
1289 echo
1290 for ac_var in $ac_subst_vars
1292 eval ac_val=$`echo $ac_var`
1293 echo "$ac_var='"'"'$ac_val'"'"'"
1294 done | sort
1295 echo
1297 if test -n "$ac_subst_files"; then
1298 cat <<\_ASBOX
1299 ## ------------- ##
1300 ## Output files. ##
1301 ## ------------- ##
1302 _ASBOX
1303 echo
1304 for ac_var in $ac_subst_files
1306 eval ac_val=$`echo $ac_var`
1307 echo "$ac_var='"'"'$ac_val'"'"'"
1308 done | sort
1309 echo
1312 if test -s confdefs.h; then
1313 cat <<\_ASBOX
1314 ## ----------- ##
1315 ## confdefs.h. ##
1316 ## ----------- ##
1317 _ASBOX
1318 echo
1319 sed "/^$/d" confdefs.h | sort
1320 echo
1322 test "$ac_signal" != 0 &&
1323 echo "$as_me: caught signal $ac_signal"
1324 echo "$as_me: exit $exit_status"
1325 } >&5
1326 rm -f core *.core &&
1327 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1328 exit $exit_status
1330 for ac_signal in 1 2 13 15; do
1331 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1332 done
1333 ac_signal=0
1335 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1336 rm -rf conftest* confdefs.h
1337 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1338 echo >confdefs.h
1340 # Predefined preprocessor variables.
1342 cat >>confdefs.h <<_ACEOF
1343 #define PACKAGE_NAME "$PACKAGE_NAME"
1344 _ACEOF
1347 cat >>confdefs.h <<_ACEOF
1348 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1349 _ACEOF
1352 cat >>confdefs.h <<_ACEOF
1353 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1354 _ACEOF
1357 cat >>confdefs.h <<_ACEOF
1358 #define PACKAGE_STRING "$PACKAGE_STRING"
1359 _ACEOF
1362 cat >>confdefs.h <<_ACEOF
1363 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1364 _ACEOF
1367 # Let the site file select an alternate cache file if it wants to.
1368 # Prefer explicitly selected file to automatically selected ones.
1369 if test -z "$CONFIG_SITE"; then
1370 if test "x$prefix" != xNONE; then
1371 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1372 else
1373 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1376 for ac_site_file in $CONFIG_SITE; do
1377 if test -r "$ac_site_file"; then
1378 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379 echo "$as_me: loading site script $ac_site_file" >&6;}
1380 sed 's/^/| /' "$ac_site_file" >&5
1381 . "$ac_site_file"
1383 done
1385 if test -r "$cache_file"; then
1386 # Some versions of bash will fail to source /dev/null (special
1387 # files actually), so we avoid doing that.
1388 if test -f "$cache_file"; then
1389 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390 echo "$as_me: loading cache $cache_file" >&6;}
1391 case $cache_file in
1392 [\\/]* | ?:[\\/]* ) . $cache_file;;
1393 *) . ./$cache_file;;
1394 esac
1396 else
1397 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398 echo "$as_me: creating cache $cache_file" >&6;}
1399 >$cache_file
1402 # Check that the precious variables saved in the cache have kept the same
1403 # value.
1404 ac_cache_corrupted=false
1405 for ac_var in `(set) 2>&1 |
1406 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408 eval ac_new_set=\$ac_env_${ac_var}_set
1409 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410 eval ac_new_val="\$ac_env_${ac_var}_value"
1411 case $ac_old_set,$ac_new_set in
1412 set,)
1413 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415 ac_cache_corrupted=: ;;
1416 ,set)
1417 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419 ac_cache_corrupted=: ;;
1420 ,);;
1422 if test "x$ac_old_val" != "x$ac_new_val"; then
1423 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1424 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1425 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1426 echo "$as_me: former value: $ac_old_val" >&2;}
1427 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1428 echo "$as_me: current value: $ac_new_val" >&2;}
1429 ac_cache_corrupted=:
1430 fi;;
1431 esac
1432 # Pass precious variables to config.status.
1433 if test "$ac_new_set" = set; then
1434 case $ac_new_val in
1435 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1437 *) ac_arg=$ac_var=$ac_new_val ;;
1438 esac
1439 case " $ac_configure_args " in
1440 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1441 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1442 esac
1444 done
1445 if $ac_cache_corrupted; then
1446 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1447 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1448 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1449 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1450 { (exit 1); exit 1; }; }
1453 ac_ext=c
1454 ac_cpp='$CPP $CPPFLAGS'
1455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1485 ac_config_headers="$ac_config_headers fficonfig.h"
1488 # Default to --enable-multilib
1489 # Check whether --enable-multilib or --disable-multilib was given.
1490 if test "${enable_multilib+set}" = set; then
1491 enableval="$enable_multilib"
1492 case "$enableval" in
1493 yes) multilib=yes ;;
1494 no) multilib=no ;;
1495 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1496 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1497 { (exit 1); exit 1; }; } ;;
1498 esac
1499 else
1500 multilib=yes
1503 # We may get other options which we leave undocumented:
1504 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1505 # See config-ml.in if you want the gory details.
1507 if test "$srcdir" = "."; then
1508 if test "$with_target_subdir" != "."; then
1509 multi_basedir="$srcdir/$with_multisrctop../.."
1510 else
1511 multi_basedir="$srcdir/$with_multisrctop.."
1513 else
1514 multi_basedir="$srcdir/.."
1518 # Even if the default multilib is not a cross compilation,
1519 # it may be that some of the other multilibs are.
1520 if test $cross_compiling = no && test $multilib = yes \
1521 && test "x${with_multisubdir}" != x ; then
1522 cross_compiling=maybe
1525 ac_config_commands="$ac_config_commands default-1"
1528 ac_aux_dir=
1529 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1530 if test -f $ac_dir/install-sh; then
1531 ac_aux_dir=$ac_dir
1532 ac_install_sh="$ac_aux_dir/install-sh -c"
1533 break
1534 elif test -f $ac_dir/install.sh; then
1535 ac_aux_dir=$ac_dir
1536 ac_install_sh="$ac_aux_dir/install.sh -c"
1537 break
1538 elif test -f $ac_dir/shtool; then
1539 ac_aux_dir=$ac_dir
1540 ac_install_sh="$ac_aux_dir/shtool install -c"
1541 break
1543 done
1544 if test -z "$ac_aux_dir"; then
1545 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1546 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1547 { (exit 1); exit 1; }; }
1549 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1550 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1551 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1553 # Make sure we can run config.sub.
1554 $ac_config_sub sun4 >/dev/null 2>&1 ||
1555 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1556 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1557 { (exit 1); exit 1; }; }
1559 echo "$as_me:$LINENO: checking build system type" >&5
1560 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1561 if test "${ac_cv_build+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1563 else
1564 ac_cv_build_alias=$build_alias
1565 test -z "$ac_cv_build_alias" &&
1566 ac_cv_build_alias=`$ac_config_guess`
1567 test -z "$ac_cv_build_alias" &&
1568 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1569 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1570 { (exit 1); exit 1; }; }
1571 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1572 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1573 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1574 { (exit 1); exit 1; }; }
1577 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1578 echo "${ECHO_T}$ac_cv_build" >&6
1579 build=$ac_cv_build
1580 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1581 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1582 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1585 echo "$as_me:$LINENO: checking host system type" >&5
1586 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1587 if test "${ac_cv_host+set}" = set; then
1588 echo $ECHO_N "(cached) $ECHO_C" >&6
1589 else
1590 ac_cv_host_alias=$host_alias
1591 test -z "$ac_cv_host_alias" &&
1592 ac_cv_host_alias=$ac_cv_build_alias
1593 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1594 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1595 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1596 { (exit 1); exit 1; }; }
1599 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1600 echo "${ECHO_T}$ac_cv_host" >&6
1601 host=$ac_cv_host
1602 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1603 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1604 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1607 echo "$as_me:$LINENO: checking target system type" >&5
1608 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1609 if test "${ac_cv_target+set}" = set; then
1610 echo $ECHO_N "(cached) $ECHO_C" >&6
1611 else
1612 ac_cv_target_alias=$target_alias
1613 test "x$ac_cv_target_alias" = "x" &&
1614 ac_cv_target_alias=$ac_cv_host_alias
1615 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1616 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1617 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1618 { (exit 1); exit 1; }; }
1621 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1622 echo "${ECHO_T}$ac_cv_target" >&6
1623 target=$ac_cv_target
1624 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1625 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1626 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1629 # The aliases save the names the user supplied, while $host etc.
1630 # will get canonicalized.
1631 test -n "$target_alias" &&
1632 test "$program_prefix$program_suffix$program_transform_name" = \
1633 NONENONEs,x,x, &&
1634 program_prefix=${target_alias}-
1635 target_alias=${target_alias-$host_alias}
1637 . ${srcdir}/configure.host
1639 am__api_version="1.9"
1640 # Find a good install program. We prefer a C program (faster),
1641 # so one script is as good as another. But avoid the broken or
1642 # incompatible versions:
1643 # SysV /etc/install, /usr/sbin/install
1644 # SunOS /usr/etc/install
1645 # IRIX /sbin/install
1646 # AIX /bin/install
1647 # AmigaOS /C/install, which installs bootblocks on floppy discs
1648 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1649 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1650 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1651 # OS/2's system install, which has a completely different semantic
1652 # ./install, which can be erroneously created by make from ./install.sh.
1653 # Reject install programs that cannot install multiple files.
1654 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1655 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1656 if test -z "$INSTALL"; then
1657 if test "${ac_cv_path_install+set}" = set; then
1658 echo $ECHO_N "(cached) $ECHO_C" >&6
1659 else
1660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1661 for as_dir in $PATH
1663 IFS=$as_save_IFS
1664 test -z "$as_dir" && as_dir=.
1665 # Account for people who put trailing slashes in PATH elements.
1666 case $as_dir/ in
1667 ./ | .// | /cC/* | \
1668 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1669 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1670 /usr/ucb/* ) ;;
1672 # OSF1 and SCO ODT 3.0 have their own names for install.
1673 # Don't use installbsd from OSF since it installs stuff as root
1674 # by default.
1675 for ac_prog in ginstall scoinst install; do
1676 for ac_exec_ext in '' $ac_executable_extensions; do
1677 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1678 if test $ac_prog = install &&
1679 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1680 # AIX install. It has an incompatible calling convention.
1682 elif test $ac_prog = install &&
1683 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1684 # program-specific install script used by HP pwplus--don't use.
1686 else
1687 rm -rf conftest.one conftest.two conftest.dir
1688 echo one > conftest.one
1689 echo two > conftest.two
1690 mkdir conftest.dir
1691 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1692 test -s conftest.one && test -s conftest.two &&
1693 test -s conftest.dir/conftest.one &&
1694 test -s conftest.dir/conftest.two
1695 then
1696 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1697 break 3
1701 done
1702 done
1704 esac
1705 done
1707 rm -rf conftest.one conftest.two conftest.dir
1710 if test "${ac_cv_path_install+set}" = set; then
1711 INSTALL=$ac_cv_path_install
1712 else
1713 # As a last resort, use the slow shell script. Don't cache a
1714 # value for INSTALL within a source directory, because that will
1715 # break other packages using the cache if that directory is
1716 # removed, or if the value is a relative name.
1717 INSTALL=$ac_install_sh
1720 echo "$as_me:$LINENO: result: $INSTALL" >&5
1721 echo "${ECHO_T}$INSTALL" >&6
1723 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1724 # It thinks the first close brace ends the variable substitution.
1725 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1727 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1729 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1731 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1732 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1733 # Just in case
1734 sleep 1
1735 echo timestamp > conftest.file
1736 # Do `set' in a subshell so we don't clobber the current shell's
1737 # arguments. Must try -L first in case configure is actually a
1738 # symlink; some systems play weird games with the mod time of symlinks
1739 # (eg FreeBSD returns the mod time of the symlink's containing
1740 # directory).
1741 if (
1742 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1743 if test "$*" = "X"; then
1744 # -L didn't work.
1745 set X `ls -t $srcdir/configure conftest.file`
1747 rm -f conftest.file
1748 if test "$*" != "X $srcdir/configure conftest.file" \
1749 && test "$*" != "X conftest.file $srcdir/configure"; then
1751 # If neither matched, then we have a broken ls. This can happen
1752 # if, for instance, CONFIG_SHELL is bash and it inherits a
1753 # broken ls alias from the environment. This has actually
1754 # happened. Such a system could not be considered "sane".
1755 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1756 alias in your environment" >&5
1757 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1758 alias in your environment" >&2;}
1759 { (exit 1); exit 1; }; }
1762 test "$2" = conftest.file
1764 then
1765 # Ok.
1767 else
1768 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1769 Check your system clock" >&5
1770 echo "$as_me: error: newly created file is older than distributed files!
1771 Check your system clock" >&2;}
1772 { (exit 1); exit 1; }; }
1774 echo "$as_me:$LINENO: result: yes" >&5
1775 echo "${ECHO_T}yes" >&6
1776 test "$program_prefix" != NONE &&
1777 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1778 # Use a double $ so make ignores it.
1779 test "$program_suffix" != NONE &&
1780 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1781 # Double any \ or $. echo might interpret backslashes.
1782 # By default was `s,x,x', remove it if useless.
1783 cat <<\_ACEOF >conftest.sed
1784 s/[\\$]/&&/g;s/;s,x,x,$//
1785 _ACEOF
1786 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1787 rm conftest.sed
1789 # expand $ac_aux_dir to an absolute path
1790 am_aux_dir=`cd $ac_aux_dir && pwd`
1792 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1793 # Use eval to expand $SHELL
1794 if eval "$MISSING --run true"; then
1795 am_missing_run="$MISSING --run "
1796 else
1797 am_missing_run=
1798 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1799 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1802 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1803 # We used to keeping the `.' as first argument, in order to
1804 # allow $(mkdir_p) to be used without argument. As in
1805 # $(mkdir_p) $(somedir)
1806 # where $(somedir) is conditionally defined. However this is wrong
1807 # for two reasons:
1808 # 1. if the package is installed by a user who cannot write `.'
1809 # make install will fail,
1810 # 2. the above comment should most certainly read
1811 # $(mkdir_p) $(DESTDIR)$(somedir)
1812 # so it does not work when $(somedir) is undefined and
1813 # $(DESTDIR) is not.
1814 # To support the latter case, we have to write
1815 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1816 # so the `.' trick is pointless.
1817 mkdir_p='mkdir -p --'
1818 else
1819 # On NextStep and OpenStep, the `mkdir' command does not
1820 # recognize any option. It will interpret all options as
1821 # directories to create, and then abort because `.' already
1822 # exists.
1823 for d in ./-p ./--version;
1825 test -d $d && rmdir $d
1826 done
1827 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1828 if test -f "$ac_aux_dir/mkinstalldirs"; then
1829 mkdir_p='$(mkinstalldirs)'
1830 else
1831 mkdir_p='$(install_sh) -d'
1835 for ac_prog in gawk mawk nawk awk
1837 # Extract the first word of "$ac_prog", so it can be a program name with args.
1838 set dummy $ac_prog; ac_word=$2
1839 echo "$as_me:$LINENO: checking for $ac_word" >&5
1840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1841 if test "${ac_cv_prog_AWK+set}" = set; then
1842 echo $ECHO_N "(cached) $ECHO_C" >&6
1843 else
1844 if test -n "$AWK"; then
1845 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1846 else
1847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1848 for as_dir in $PATH
1850 IFS=$as_save_IFS
1851 test -z "$as_dir" && as_dir=.
1852 for ac_exec_ext in '' $ac_executable_extensions; do
1853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1854 ac_cv_prog_AWK="$ac_prog"
1855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1856 break 2
1858 done
1859 done
1863 AWK=$ac_cv_prog_AWK
1864 if test -n "$AWK"; then
1865 echo "$as_me:$LINENO: result: $AWK" >&5
1866 echo "${ECHO_T}$AWK" >&6
1867 else
1868 echo "$as_me:$LINENO: result: no" >&5
1869 echo "${ECHO_T}no" >&6
1872 test -n "$AWK" && break
1873 done
1875 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1876 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1877 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1878 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1879 echo $ECHO_N "(cached) $ECHO_C" >&6
1880 else
1881 cat >conftest.make <<\_ACEOF
1882 all:
1883 @echo 'ac_maketemp="$(MAKE)"'
1884 _ACEOF
1885 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1886 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1887 if test -n "$ac_maketemp"; then
1888 eval ac_cv_prog_make_${ac_make}_set=yes
1889 else
1890 eval ac_cv_prog_make_${ac_make}_set=no
1892 rm -f conftest.make
1894 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1895 echo "$as_me:$LINENO: result: yes" >&5
1896 echo "${ECHO_T}yes" >&6
1897 SET_MAKE=
1898 else
1899 echo "$as_me:$LINENO: result: no" >&5
1900 echo "${ECHO_T}no" >&6
1901 SET_MAKE="MAKE=${MAKE-make}"
1904 rm -rf .tst 2>/dev/null
1905 mkdir .tst 2>/dev/null
1906 if test -d .tst; then
1907 am__leading_dot=.
1908 else
1909 am__leading_dot=_
1911 rmdir .tst 2>/dev/null
1913 # test to see if srcdir already configured
1914 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1915 test -f $srcdir/config.status; then
1916 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1917 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1918 { (exit 1); exit 1; }; }
1921 # test whether we have cygpath
1922 if test -z "$CYGPATH_W"; then
1923 if (cygpath --version) >/dev/null 2>/dev/null; then
1924 CYGPATH_W='cygpath -w'
1925 else
1926 CYGPATH_W=echo
1931 # Define the identity of the package.
1932 PACKAGE='libffi'
1933 VERSION='2.1'
1936 cat >>confdefs.h <<_ACEOF
1937 #define PACKAGE "$PACKAGE"
1938 _ACEOF
1941 cat >>confdefs.h <<_ACEOF
1942 #define VERSION "$VERSION"
1943 _ACEOF
1945 # Some tools Automake needs.
1947 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1950 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1953 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1956 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1959 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1961 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1963 # Installed binaries are usually stripped using `strip' when the user
1964 # run `make install-strip'. However `strip' might not be the right
1965 # tool to use in cross-compilation environments, therefore Automake
1966 # will honor the `STRIP' environment variable to overrule this program.
1967 if test "$cross_compiling" != no; then
1968 if test -n "$ac_tool_prefix"; then
1969 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1970 set dummy ${ac_tool_prefix}strip; ac_word=$2
1971 echo "$as_me:$LINENO: checking for $ac_word" >&5
1972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1973 if test "${ac_cv_prog_STRIP+set}" = set; then
1974 echo $ECHO_N "(cached) $ECHO_C" >&6
1975 else
1976 if test -n "$STRIP"; then
1977 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1978 else
1979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1980 for as_dir in $PATH
1982 IFS=$as_save_IFS
1983 test -z "$as_dir" && as_dir=.
1984 for ac_exec_ext in '' $ac_executable_extensions; do
1985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1986 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1988 break 2
1990 done
1991 done
1995 STRIP=$ac_cv_prog_STRIP
1996 if test -n "$STRIP"; then
1997 echo "$as_me:$LINENO: result: $STRIP" >&5
1998 echo "${ECHO_T}$STRIP" >&6
1999 else
2000 echo "$as_me:$LINENO: result: no" >&5
2001 echo "${ECHO_T}no" >&6
2005 if test -z "$ac_cv_prog_STRIP"; then
2006 ac_ct_STRIP=$STRIP
2007 # Extract the first word of "strip", so it can be a program name with args.
2008 set dummy strip; ac_word=$2
2009 echo "$as_me:$LINENO: checking for $ac_word" >&5
2010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2011 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2012 echo $ECHO_N "(cached) $ECHO_C" >&6
2013 else
2014 if test -n "$ac_ct_STRIP"; then
2015 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2016 else
2017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2018 for as_dir in $PATH
2020 IFS=$as_save_IFS
2021 test -z "$as_dir" && as_dir=.
2022 for ac_exec_ext in '' $ac_executable_extensions; do
2023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2024 ac_cv_prog_ac_ct_STRIP="strip"
2025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2026 break 2
2028 done
2029 done
2031 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2034 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2035 if test -n "$ac_ct_STRIP"; then
2036 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2037 echo "${ECHO_T}$ac_ct_STRIP" >&6
2038 else
2039 echo "$as_me:$LINENO: result: no" >&5
2040 echo "${ECHO_T}no" >&6
2043 STRIP=$ac_ct_STRIP
2044 else
2045 STRIP="$ac_cv_prog_STRIP"
2049 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2051 # We need awk for the "check" target. The system "awk" is bad on
2052 # some platforms.
2053 # Always define AMTAR for backward compatibility.
2055 AMTAR=${AMTAR-"${am_missing_run}tar"}
2057 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2064 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2065 # We must force CC to /not/ be precious variables; otherwise
2066 # the wrong, non-multilib-adjusted value will be used in multilibs.
2067 # As a side effect, we have to subst CFLAGS ourselves.
2071 ac_ext=c
2072 ac_cpp='$CPP $CPPFLAGS'
2073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2076 if test -n "$ac_tool_prefix"; then
2077 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2078 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2079 echo "$as_me:$LINENO: checking for $ac_word" >&5
2080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2081 if test "${ac_cv_prog_CC+set}" = set; then
2082 echo $ECHO_N "(cached) $ECHO_C" >&6
2083 else
2084 if test -n "$CC"; then
2085 ac_cv_prog_CC="$CC" # Let the user override the test.
2086 else
2087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2088 for as_dir in $PATH
2090 IFS=$as_save_IFS
2091 test -z "$as_dir" && as_dir=.
2092 for ac_exec_ext in '' $ac_executable_extensions; do
2093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2094 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2096 break 2
2098 done
2099 done
2103 CC=$ac_cv_prog_CC
2104 if test -n "$CC"; then
2105 echo "$as_me:$LINENO: result: $CC" >&5
2106 echo "${ECHO_T}$CC" >&6
2107 else
2108 echo "$as_me:$LINENO: result: no" >&5
2109 echo "${ECHO_T}no" >&6
2113 if test -z "$ac_cv_prog_CC"; then
2114 ac_ct_CC=$CC
2115 # Extract the first word of "gcc", so it can be a program name with args.
2116 set dummy gcc; ac_word=$2
2117 echo "$as_me:$LINENO: checking for $ac_word" >&5
2118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2119 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2120 echo $ECHO_N "(cached) $ECHO_C" >&6
2121 else
2122 if test -n "$ac_ct_CC"; then
2123 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2124 else
2125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2126 for as_dir in $PATH
2128 IFS=$as_save_IFS
2129 test -z "$as_dir" && as_dir=.
2130 for ac_exec_ext in '' $ac_executable_extensions; do
2131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2132 ac_cv_prog_ac_ct_CC="gcc"
2133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2134 break 2
2136 done
2137 done
2141 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2142 if test -n "$ac_ct_CC"; then
2143 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2144 echo "${ECHO_T}$ac_ct_CC" >&6
2145 else
2146 echo "$as_me:$LINENO: result: no" >&5
2147 echo "${ECHO_T}no" >&6
2150 CC=$ac_ct_CC
2151 else
2152 CC="$ac_cv_prog_CC"
2155 if test -z "$CC"; then
2156 if test -n "$ac_tool_prefix"; then
2157 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2158 set dummy ${ac_tool_prefix}cc; ac_word=$2
2159 echo "$as_me:$LINENO: checking for $ac_word" >&5
2160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2161 if test "${ac_cv_prog_CC+set}" = set; then
2162 echo $ECHO_N "(cached) $ECHO_C" >&6
2163 else
2164 if test -n "$CC"; then
2165 ac_cv_prog_CC="$CC" # Let the user override the test.
2166 else
2167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2168 for as_dir in $PATH
2170 IFS=$as_save_IFS
2171 test -z "$as_dir" && as_dir=.
2172 for ac_exec_ext in '' $ac_executable_extensions; do
2173 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2174 ac_cv_prog_CC="${ac_tool_prefix}cc"
2175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2176 break 2
2178 done
2179 done
2183 CC=$ac_cv_prog_CC
2184 if test -n "$CC"; then
2185 echo "$as_me:$LINENO: result: $CC" >&5
2186 echo "${ECHO_T}$CC" >&6
2187 else
2188 echo "$as_me:$LINENO: result: no" >&5
2189 echo "${ECHO_T}no" >&6
2193 if test -z "$ac_cv_prog_CC"; then
2194 ac_ct_CC=$CC
2195 # Extract the first word of "cc", so it can be a program name with args.
2196 set dummy cc; ac_word=$2
2197 echo "$as_me:$LINENO: checking for $ac_word" >&5
2198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2199 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2200 echo $ECHO_N "(cached) $ECHO_C" >&6
2201 else
2202 if test -n "$ac_ct_CC"; then
2203 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2204 else
2205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2206 for as_dir in $PATH
2208 IFS=$as_save_IFS
2209 test -z "$as_dir" && as_dir=.
2210 for ac_exec_ext in '' $ac_executable_extensions; do
2211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2212 ac_cv_prog_ac_ct_CC="cc"
2213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2214 break 2
2216 done
2217 done
2221 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2222 if test -n "$ac_ct_CC"; then
2223 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2224 echo "${ECHO_T}$ac_ct_CC" >&6
2225 else
2226 echo "$as_me:$LINENO: result: no" >&5
2227 echo "${ECHO_T}no" >&6
2230 CC=$ac_ct_CC
2231 else
2232 CC="$ac_cv_prog_CC"
2236 if test -z "$CC"; then
2237 # Extract the first word of "cc", so it can be a program name with args.
2238 set dummy cc; ac_word=$2
2239 echo "$as_me:$LINENO: checking for $ac_word" >&5
2240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2241 if test "${ac_cv_prog_CC+set}" = set; then
2242 echo $ECHO_N "(cached) $ECHO_C" >&6
2243 else
2244 if test -n "$CC"; then
2245 ac_cv_prog_CC="$CC" # Let the user override the test.
2246 else
2247 ac_prog_rejected=no
2248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2249 for as_dir in $PATH
2251 IFS=$as_save_IFS
2252 test -z "$as_dir" && as_dir=.
2253 for ac_exec_ext in '' $ac_executable_extensions; do
2254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2255 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2256 ac_prog_rejected=yes
2257 continue
2259 ac_cv_prog_CC="cc"
2260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2261 break 2
2263 done
2264 done
2266 if test $ac_prog_rejected = yes; then
2267 # We found a bogon in the path, so make sure we never use it.
2268 set dummy $ac_cv_prog_CC
2269 shift
2270 if test $# != 0; then
2271 # We chose a different compiler from the bogus one.
2272 # However, it has the same basename, so the bogon will be chosen
2273 # first if we set CC to just the basename; use the full file name.
2274 shift
2275 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2280 CC=$ac_cv_prog_CC
2281 if test -n "$CC"; then
2282 echo "$as_me:$LINENO: result: $CC" >&5
2283 echo "${ECHO_T}$CC" >&6
2284 else
2285 echo "$as_me:$LINENO: result: no" >&5
2286 echo "${ECHO_T}no" >&6
2290 if test -z "$CC"; then
2291 if test -n "$ac_tool_prefix"; then
2292 for ac_prog in cl
2294 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2295 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2296 echo "$as_me:$LINENO: checking for $ac_word" >&5
2297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2298 if test "${ac_cv_prog_CC+set}" = set; then
2299 echo $ECHO_N "(cached) $ECHO_C" >&6
2300 else
2301 if test -n "$CC"; then
2302 ac_cv_prog_CC="$CC" # Let the user override the test.
2303 else
2304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2305 for as_dir in $PATH
2307 IFS=$as_save_IFS
2308 test -z "$as_dir" && as_dir=.
2309 for ac_exec_ext in '' $ac_executable_extensions; do
2310 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2311 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2313 break 2
2315 done
2316 done
2320 CC=$ac_cv_prog_CC
2321 if test -n "$CC"; then
2322 echo "$as_me:$LINENO: result: $CC" >&5
2323 echo "${ECHO_T}$CC" >&6
2324 else
2325 echo "$as_me:$LINENO: result: no" >&5
2326 echo "${ECHO_T}no" >&6
2329 test -n "$CC" && break
2330 done
2332 if test -z "$CC"; then
2333 ac_ct_CC=$CC
2334 for ac_prog in cl
2336 # Extract the first word of "$ac_prog", so it can be a program name with args.
2337 set dummy $ac_prog; ac_word=$2
2338 echo "$as_me:$LINENO: checking for $ac_word" >&5
2339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2340 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2341 echo $ECHO_N "(cached) $ECHO_C" >&6
2342 else
2343 if test -n "$ac_ct_CC"; then
2344 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2345 else
2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347 for as_dir in $PATH
2349 IFS=$as_save_IFS
2350 test -z "$as_dir" && as_dir=.
2351 for ac_exec_ext in '' $ac_executable_extensions; do
2352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2353 ac_cv_prog_ac_ct_CC="$ac_prog"
2354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2355 break 2
2357 done
2358 done
2362 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2363 if test -n "$ac_ct_CC"; then
2364 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2365 echo "${ECHO_T}$ac_ct_CC" >&6
2366 else
2367 echo "$as_me:$LINENO: result: no" >&5
2368 echo "${ECHO_T}no" >&6
2371 test -n "$ac_ct_CC" && break
2372 done
2374 CC=$ac_ct_CC
2380 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2381 See \`config.log' for more details." >&5
2382 echo "$as_me: error: no acceptable C compiler found in \$PATH
2383 See \`config.log' for more details." >&2;}
2384 { (exit 1); exit 1; }; }
2386 # Provide some information about the compiler.
2387 echo "$as_me:$LINENO:" \
2388 "checking for C compiler version" >&5
2389 ac_compiler=`set X $ac_compile; echo $2`
2390 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2391 (eval $ac_compiler --version </dev/null >&5) 2>&5
2392 ac_status=$?
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); }
2395 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2396 (eval $ac_compiler -v </dev/null >&5) 2>&5
2397 ac_status=$?
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }
2400 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2401 (eval $ac_compiler -V </dev/null >&5) 2>&5
2402 ac_status=$?
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }
2406 cat >conftest.$ac_ext <<_ACEOF
2407 /* confdefs.h. */
2408 _ACEOF
2409 cat confdefs.h >>conftest.$ac_ext
2410 cat >>conftest.$ac_ext <<_ACEOF
2411 /* end confdefs.h. */
2414 main ()
2418 return 0;
2420 _ACEOF
2421 ac_clean_files_save=$ac_clean_files
2422 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2423 # Try to create an executable without -o first, disregard a.out.
2424 # It will help us diagnose broken compilers, and finding out an intuition
2425 # of exeext.
2426 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2427 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2428 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2429 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2430 (eval $ac_link_default) 2>&5
2431 ac_status=$?
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); }; then
2434 # Find the output, starting from the most likely. This scheme is
2435 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2436 # resort.
2438 # Be careful to initialize this variable, since it used to be cached.
2439 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2440 ac_cv_exeext=
2441 # b.out is created by i960 compilers.
2442 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2444 test -f "$ac_file" || continue
2445 case $ac_file in
2446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2448 conftest.$ac_ext )
2449 # This is the source file.
2451 [ab].out )
2452 # We found the default executable, but exeext='' is most
2453 # certainly right.
2454 break;;
2455 *.* )
2456 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2457 # FIXME: I believe we export ac_cv_exeext for Libtool,
2458 # but it would be cool to find out if it's true. Does anybody
2459 # maintain Libtool? --akim.
2460 export ac_cv_exeext
2461 break;;
2463 break;;
2464 esac
2465 done
2466 else
2467 echo "$as_me: failed program was:" >&5
2468 sed 's/^/| /' conftest.$ac_ext >&5
2470 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2471 See \`config.log' for more details." >&5
2472 echo "$as_me: error: C compiler cannot create executables
2473 See \`config.log' for more details." >&2;}
2474 { (exit 77); exit 77; }; }
2477 ac_exeext=$ac_cv_exeext
2478 echo "$as_me:$LINENO: result: $ac_file" >&5
2479 echo "${ECHO_T}$ac_file" >&6
2481 # Check the compiler produces executables we can run. If not, either
2482 # the compiler is broken, or we cross compile.
2483 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2484 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2485 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2486 # If not cross compiling, check that we can run a simple program.
2487 if test "$cross_compiling" != yes; then
2488 if { ac_try='./$ac_file'
2489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2490 (eval $ac_try) 2>&5
2491 ac_status=$?
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); }; }; then
2494 cross_compiling=no
2495 else
2496 if test "$cross_compiling" = maybe; then
2497 cross_compiling=yes
2498 else
2499 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2500 If you meant to cross compile, use \`--host'.
2501 See \`config.log' for more details." >&5
2502 echo "$as_me: error: cannot run C compiled programs.
2503 If you meant to cross compile, use \`--host'.
2504 See \`config.log' for more details." >&2;}
2505 { (exit 1); exit 1; }; }
2509 echo "$as_me:$LINENO: result: yes" >&5
2510 echo "${ECHO_T}yes" >&6
2512 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2513 ac_clean_files=$ac_clean_files_save
2514 # Check the compiler produces executables we can run. If not, either
2515 # the compiler is broken, or we cross compile.
2516 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2517 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2518 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2519 echo "${ECHO_T}$cross_compiling" >&6
2521 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2522 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2524 (eval $ac_link) 2>&5
2525 ac_status=$?
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; then
2528 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2529 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2530 # work properly (i.e., refer to `conftest.exe'), while it won't with
2531 # `rm'.
2532 for ac_file in conftest.exe conftest conftest.*; do
2533 test -f "$ac_file" || continue
2534 case $ac_file in
2535 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2536 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2537 export ac_cv_exeext
2538 break;;
2539 * ) break;;
2540 esac
2541 done
2542 else
2543 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2544 See \`config.log' for more details." >&5
2545 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2546 See \`config.log' for more details." >&2;}
2547 { (exit 1); exit 1; }; }
2550 rm -f conftest$ac_cv_exeext
2551 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2552 echo "${ECHO_T}$ac_cv_exeext" >&6
2554 rm -f conftest.$ac_ext
2555 EXEEXT=$ac_cv_exeext
2556 ac_exeext=$EXEEXT
2557 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2558 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2559 if test "${ac_cv_objext+set}" = set; then
2560 echo $ECHO_N "(cached) $ECHO_C" >&6
2561 else
2562 cat >conftest.$ac_ext <<_ACEOF
2563 /* confdefs.h. */
2564 _ACEOF
2565 cat confdefs.h >>conftest.$ac_ext
2566 cat >>conftest.$ac_ext <<_ACEOF
2567 /* end confdefs.h. */
2570 main ()
2574 return 0;
2576 _ACEOF
2577 rm -f conftest.o conftest.obj
2578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2579 (eval $ac_compile) 2>&5
2580 ac_status=$?
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; then
2583 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2584 case $ac_file in
2585 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2586 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2587 break;;
2588 esac
2589 done
2590 else
2591 echo "$as_me: failed program was:" >&5
2592 sed 's/^/| /' conftest.$ac_ext >&5
2594 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2595 See \`config.log' for more details." >&5
2596 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2597 See \`config.log' for more details." >&2;}
2598 { (exit 1); exit 1; }; }
2601 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2603 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2604 echo "${ECHO_T}$ac_cv_objext" >&6
2605 OBJEXT=$ac_cv_objext
2606 ac_objext=$OBJEXT
2607 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2608 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2609 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2610 echo $ECHO_N "(cached) $ECHO_C" >&6
2611 else
2612 cat >conftest.$ac_ext <<_ACEOF
2613 /* confdefs.h. */
2614 _ACEOF
2615 cat confdefs.h >>conftest.$ac_ext
2616 cat >>conftest.$ac_ext <<_ACEOF
2617 /* end confdefs.h. */
2620 main ()
2622 #ifndef __GNUC__
2623 choke me
2624 #endif
2627 return 0;
2629 _ACEOF
2630 rm -f conftest.$ac_objext
2631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2632 (eval $ac_compile) 2>conftest.er1
2633 ac_status=$?
2634 grep -v '^ *+' conftest.er1 >conftest.err
2635 rm -f conftest.er1
2636 cat conftest.err >&5
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); } &&
2639 { ac_try='test -z "$ac_c_werror_flag"
2640 || test ! -s conftest.err'
2641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2642 (eval $ac_try) 2>&5
2643 ac_status=$?
2644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645 (exit $ac_status); }; } &&
2646 { ac_try='test -s conftest.$ac_objext'
2647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2648 (eval $ac_try) 2>&5
2649 ac_status=$?
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); }; }; then
2652 ac_compiler_gnu=yes
2653 else
2654 echo "$as_me: failed program was:" >&5
2655 sed 's/^/| /' conftest.$ac_ext >&5
2657 ac_compiler_gnu=no
2659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2660 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2663 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2664 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2665 GCC=`test $ac_compiler_gnu = yes && echo yes`
2666 ac_test_CFLAGS=${CFLAGS+set}
2667 ac_save_CFLAGS=$CFLAGS
2668 CFLAGS="-g"
2669 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2670 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2671 if test "${ac_cv_prog_cc_g+set}" = set; then
2672 echo $ECHO_N "(cached) $ECHO_C" >&6
2673 else
2674 cat >conftest.$ac_ext <<_ACEOF
2675 /* confdefs.h. */
2676 _ACEOF
2677 cat confdefs.h >>conftest.$ac_ext
2678 cat >>conftest.$ac_ext <<_ACEOF
2679 /* end confdefs.h. */
2682 main ()
2686 return 0;
2688 _ACEOF
2689 rm -f conftest.$ac_objext
2690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2691 (eval $ac_compile) 2>conftest.er1
2692 ac_status=$?
2693 grep -v '^ *+' conftest.er1 >conftest.err
2694 rm -f conftest.er1
2695 cat conftest.err >&5
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); } &&
2698 { ac_try='test -z "$ac_c_werror_flag"
2699 || test ! -s conftest.err'
2700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701 (eval $ac_try) 2>&5
2702 ac_status=$?
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); }; } &&
2705 { ac_try='test -s conftest.$ac_objext'
2706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2707 (eval $ac_try) 2>&5
2708 ac_status=$?
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }; }; then
2711 ac_cv_prog_cc_g=yes
2712 else
2713 echo "$as_me: failed program was:" >&5
2714 sed 's/^/| /' conftest.$ac_ext >&5
2716 ac_cv_prog_cc_g=no
2718 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2720 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2721 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2722 if test "$ac_test_CFLAGS" = set; then
2723 CFLAGS=$ac_save_CFLAGS
2724 elif test $ac_cv_prog_cc_g = yes; then
2725 if test "$GCC" = yes; then
2726 CFLAGS="-g -O2"
2727 else
2728 CFLAGS="-g"
2730 else
2731 if test "$GCC" = yes; then
2732 CFLAGS="-O2"
2733 else
2734 CFLAGS=
2737 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2738 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2739 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2740 echo $ECHO_N "(cached) $ECHO_C" >&6
2741 else
2742 ac_cv_prog_cc_stdc=no
2743 ac_save_CC=$CC
2744 cat >conftest.$ac_ext <<_ACEOF
2745 /* confdefs.h. */
2746 _ACEOF
2747 cat confdefs.h >>conftest.$ac_ext
2748 cat >>conftest.$ac_ext <<_ACEOF
2749 /* end confdefs.h. */
2750 #include <stdarg.h>
2751 #include <stdio.h>
2752 #include <sys/types.h>
2753 #include <sys/stat.h>
2754 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2755 struct buf { int x; };
2756 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2757 static char *e (p, i)
2758 char **p;
2759 int i;
2761 return p[i];
2763 static char *f (char * (*g) (char **, int), char **p, ...)
2765 char *s;
2766 va_list v;
2767 va_start (v,p);
2768 s = g (p, va_arg (v,int));
2769 va_end (v);
2770 return s;
2773 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2774 function prototypes and stuff, but not '\xHH' hex character constants.
2775 These don't provoke an error unfortunately, instead are silently treated
2776 as 'x'. The following induces an error, until -std1 is added to get
2777 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2778 array size at least. It's necessary to write '\x00'==0 to get something
2779 that's true only with -std1. */
2780 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2782 int test (int i, double x);
2783 struct s1 {int (*f) (int a);};
2784 struct s2 {int (*f) (double a);};
2785 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2786 int argc;
2787 char **argv;
2789 main ()
2791 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2793 return 0;
2795 _ACEOF
2796 # Don't try gcc -ansi; that turns off useful extensions and
2797 # breaks some systems' header files.
2798 # AIX -qlanglvl=ansi
2799 # Ultrix and OSF/1 -std1
2800 # HP-UX 10.20 and later -Ae
2801 # HP-UX older versions -Aa -D_HPUX_SOURCE
2802 # SVR4 -Xc -D__EXTENSIONS__
2803 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2805 CC="$ac_save_CC $ac_arg"
2806 rm -f conftest.$ac_objext
2807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2808 (eval $ac_compile) 2>conftest.er1
2809 ac_status=$?
2810 grep -v '^ *+' conftest.er1 >conftest.err
2811 rm -f conftest.er1
2812 cat conftest.err >&5
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); } &&
2815 { ac_try='test -z "$ac_c_werror_flag"
2816 || test ! -s conftest.err'
2817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2818 (eval $ac_try) 2>&5
2819 ac_status=$?
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); }; } &&
2822 { ac_try='test -s conftest.$ac_objext'
2823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2824 (eval $ac_try) 2>&5
2825 ac_status=$?
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); }; }; then
2828 ac_cv_prog_cc_stdc=$ac_arg
2829 break
2830 else
2831 echo "$as_me: failed program was:" >&5
2832 sed 's/^/| /' conftest.$ac_ext >&5
2835 rm -f conftest.err conftest.$ac_objext
2836 done
2837 rm -f conftest.$ac_ext conftest.$ac_objext
2838 CC=$ac_save_CC
2842 case "x$ac_cv_prog_cc_stdc" in
2843 x|xno)
2844 echo "$as_me:$LINENO: result: none needed" >&5
2845 echo "${ECHO_T}none needed" >&6 ;;
2847 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2848 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2849 CC="$CC $ac_cv_prog_cc_stdc" ;;
2850 esac
2852 # Some people use a C++ compiler to compile C. Since we use `exit',
2853 # in C++ we need to declare it. In case someone uses the same compiler
2854 # for both compiling C and C++ we need to have the C++ compiler decide
2855 # the declaration of exit, since it's the most demanding environment.
2856 cat >conftest.$ac_ext <<_ACEOF
2857 #ifndef __cplusplus
2858 choke me
2859 #endif
2860 _ACEOF
2861 rm -f conftest.$ac_objext
2862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2863 (eval $ac_compile) 2>conftest.er1
2864 ac_status=$?
2865 grep -v '^ *+' conftest.er1 >conftest.err
2866 rm -f conftest.er1
2867 cat conftest.err >&5
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); } &&
2870 { ac_try='test -z "$ac_c_werror_flag"
2871 || test ! -s conftest.err'
2872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873 (eval $ac_try) 2>&5
2874 ac_status=$?
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); }; } &&
2877 { ac_try='test -s conftest.$ac_objext'
2878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2879 (eval $ac_try) 2>&5
2880 ac_status=$?
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }; }; then
2883 for ac_declaration in \
2884 '' \
2885 'extern "C" void std::exit (int) throw (); using std::exit;' \
2886 'extern "C" void std::exit (int); using std::exit;' \
2887 'extern "C" void exit (int) throw ();' \
2888 'extern "C" void exit (int);' \
2889 'void exit (int);'
2891 cat >conftest.$ac_ext <<_ACEOF
2892 /* confdefs.h. */
2893 _ACEOF
2894 cat confdefs.h >>conftest.$ac_ext
2895 cat >>conftest.$ac_ext <<_ACEOF
2896 /* end confdefs.h. */
2897 $ac_declaration
2898 #include <stdlib.h>
2900 main ()
2902 exit (42);
2904 return 0;
2906 _ACEOF
2907 rm -f conftest.$ac_objext
2908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2909 (eval $ac_compile) 2>conftest.er1
2910 ac_status=$?
2911 grep -v '^ *+' conftest.er1 >conftest.err
2912 rm -f conftest.er1
2913 cat conftest.err >&5
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); } &&
2916 { ac_try='test -z "$ac_c_werror_flag"
2917 || test ! -s conftest.err'
2918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2919 (eval $ac_try) 2>&5
2920 ac_status=$?
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); }; } &&
2923 { ac_try='test -s conftest.$ac_objext'
2924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2925 (eval $ac_try) 2>&5
2926 ac_status=$?
2927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2928 (exit $ac_status); }; }; then
2930 else
2931 echo "$as_me: failed program was:" >&5
2932 sed 's/^/| /' conftest.$ac_ext >&5
2934 continue
2936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2937 cat >conftest.$ac_ext <<_ACEOF
2938 /* confdefs.h. */
2939 _ACEOF
2940 cat confdefs.h >>conftest.$ac_ext
2941 cat >>conftest.$ac_ext <<_ACEOF
2942 /* end confdefs.h. */
2943 $ac_declaration
2945 main ()
2947 exit (42);
2949 return 0;
2951 _ACEOF
2952 rm -f conftest.$ac_objext
2953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2954 (eval $ac_compile) 2>conftest.er1
2955 ac_status=$?
2956 grep -v '^ *+' conftest.er1 >conftest.err
2957 rm -f conftest.er1
2958 cat conftest.err >&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); } &&
2961 { ac_try='test -z "$ac_c_werror_flag"
2962 || test ! -s conftest.err'
2963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2964 (eval $ac_try) 2>&5
2965 ac_status=$?
2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 (exit $ac_status); }; } &&
2968 { ac_try='test -s conftest.$ac_objext'
2969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2970 (eval $ac_try) 2>&5
2971 ac_status=$?
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }; }; then
2974 break
2975 else
2976 echo "$as_me: failed program was:" >&5
2977 sed 's/^/| /' conftest.$ac_ext >&5
2980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2981 done
2982 rm -f conftest*
2983 if test -n "$ac_declaration"; then
2984 echo '#ifdef __cplusplus' >>confdefs.h
2985 echo $ac_declaration >>confdefs.h
2986 echo '#endif' >>confdefs.h
2989 else
2990 echo "$as_me: failed program was:" >&5
2991 sed 's/^/| /' conftest.$ac_ext >&5
2994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2995 ac_ext=c
2996 ac_cpp='$CPP $CPPFLAGS'
2997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3000 DEPDIR="${am__leading_dot}deps"
3002 ac_config_commands="$ac_config_commands depfiles"
3005 am_make=${MAKE-make}
3006 cat > confinc << 'END'
3007 am__doit:
3008 @echo done
3009 .PHONY: am__doit
3011 # If we don't find an include directive, just comment out the code.
3012 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3013 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3014 am__include="#"
3015 am__quote=
3016 _am_result=none
3017 # First try GNU make style include.
3018 echo "include confinc" > confmf
3019 # We grep out `Entering directory' and `Leaving directory'
3020 # messages which can occur if `w' ends up in MAKEFLAGS.
3021 # In particular we don't look at `^make:' because GNU make might
3022 # be invoked under some other name (usually "gmake"), in which
3023 # case it prints its new name instead of `make'.
3024 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3025 am__include=include
3026 am__quote=
3027 _am_result=GNU
3029 # Now try BSD make style include.
3030 if test "$am__include" = "#"; then
3031 echo '.include "confinc"' > confmf
3032 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3033 am__include=.include
3034 am__quote="\""
3035 _am_result=BSD
3040 echo "$as_me:$LINENO: result: $_am_result" >&5
3041 echo "${ECHO_T}$_am_result" >&6
3042 rm -f confinc confmf
3044 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3045 if test "${enable_dependency_tracking+set}" = set; then
3046 enableval="$enable_dependency_tracking"
3049 if test "x$enable_dependency_tracking" != xno; then
3050 am_depcomp="$ac_aux_dir/depcomp"
3051 AMDEPBACKSLASH='\'
3055 if test "x$enable_dependency_tracking" != xno; then
3056 AMDEP_TRUE=
3057 AMDEP_FALSE='#'
3058 else
3059 AMDEP_TRUE='#'
3060 AMDEP_FALSE=
3066 depcc="$CC" am_compiler_list=
3068 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3069 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3070 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3071 echo $ECHO_N "(cached) $ECHO_C" >&6
3072 else
3073 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3074 # We make a subdir and do the tests there. Otherwise we can end up
3075 # making bogus files that we don't know about and never remove. For
3076 # instance it was reported that on HP-UX the gcc test will end up
3077 # making a dummy file named `D' -- because `-MD' means `put the output
3078 # in D'.
3079 mkdir conftest.dir
3080 # Copy depcomp to subdir because otherwise we won't find it if we're
3081 # using a relative directory.
3082 cp "$am_depcomp" conftest.dir
3083 cd conftest.dir
3084 # We will build objects and dependencies in a subdirectory because
3085 # it helps to detect inapplicable dependency modes. For instance
3086 # both Tru64's cc and ICC support -MD to output dependencies as a
3087 # side effect of compilation, but ICC will put the dependencies in
3088 # the current directory while Tru64 will put them in the object
3089 # directory.
3090 mkdir sub
3092 am_cv_CC_dependencies_compiler_type=none
3093 if test "$am_compiler_list" = ""; then
3094 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3096 for depmode in $am_compiler_list; do
3097 # Setup a source with many dependencies, because some compilers
3098 # like to wrap large dependency lists on column 80 (with \), and
3099 # we should not choose a depcomp mode which is confused by this.
3101 # We need to recreate these files for each test, as the compiler may
3102 # overwrite some of them when testing with obscure command lines.
3103 # This happens at least with the AIX C compiler.
3104 : > sub/conftest.c
3105 for i in 1 2 3 4 5 6; do
3106 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3107 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3108 # Solaris 8's {/usr,}/bin/sh.
3109 touch sub/conftst$i.h
3110 done
3111 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3113 case $depmode in
3114 nosideeffect)
3115 # after this tag, mechanisms are not by side-effect, so they'll
3116 # only be used when explicitly requested
3117 if test "x$enable_dependency_tracking" = xyes; then
3118 continue
3119 else
3120 break
3123 none) break ;;
3124 esac
3125 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3126 # mode. It turns out that the SunPro C++ compiler does not properly
3127 # handle `-M -o', and we need to detect this.
3128 if depmode=$depmode \
3129 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3130 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3131 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3132 >/dev/null 2>conftest.err &&
3133 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3134 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3135 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3136 # icc doesn't choke on unknown options, it will just issue warnings
3137 # or remarks (even with -Werror). So we grep stderr for any message
3138 # that says an option was ignored or not supported.
3139 # When given -MP, icc 7.0 and 7.1 complain thusly:
3140 # icc: Command line warning: ignoring option '-M'; no argument required
3141 # The diagnosis changed in icc 8.0:
3142 # icc: Command line remark: option '-MP' not supported
3143 if (grep 'ignoring option' conftest.err ||
3144 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3145 am_cv_CC_dependencies_compiler_type=$depmode
3146 break
3149 done
3151 cd ..
3152 rm -rf conftest.dir
3153 else
3154 am_cv_CC_dependencies_compiler_type=none
3158 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3159 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3160 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3165 test "x$enable_dependency_tracking" != xno \
3166 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3167 am__fastdepCC_TRUE=
3168 am__fastdepCC_FALSE='#'
3169 else
3170 am__fastdepCC_TRUE='#'
3171 am__fastdepCC_FALSE=
3179 # By default we simply use the C compiler to build assembly code.
3181 test "${CCAS+set}" = set || CCAS=$CC
3182 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3186 if test "x$CC" != xcc; then
3187 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3188 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3189 else
3190 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3191 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3193 set dummy $CC; ac_cc=`echo $2 |
3194 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3195 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3196 echo $ECHO_N "(cached) $ECHO_C" >&6
3197 else
3198 cat >conftest.$ac_ext <<_ACEOF
3199 /* confdefs.h. */
3200 _ACEOF
3201 cat confdefs.h >>conftest.$ac_ext
3202 cat >>conftest.$ac_ext <<_ACEOF
3203 /* end confdefs.h. */
3206 main ()
3210 return 0;
3212 _ACEOF
3213 # Make sure it works both with $CC and with simple cc.
3214 # We do the test twice because some compilers refuse to overwrite an
3215 # existing .o file with -o, though they will create one.
3216 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3217 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3218 (eval $ac_try) 2>&5
3219 ac_status=$?
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); } &&
3222 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3223 (eval $ac_try) 2>&5
3224 ac_status=$?
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); };
3227 then
3228 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3229 if test "x$CC" != xcc; then
3230 # Test first that cc exists at all.
3231 if { ac_try='cc -c conftest.$ac_ext >&5'
3232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3233 (eval $ac_try) 2>&5
3234 ac_status=$?
3235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236 (exit $ac_status); }; }; then
3237 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3238 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3239 (eval $ac_try) 2>&5
3240 ac_status=$?
3241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242 (exit $ac_status); } &&
3243 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3244 (eval $ac_try) 2>&5
3245 ac_status=$?
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); };
3248 then
3249 # cc works too.
3251 else
3252 # cc exists but doesn't like -o.
3253 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3257 else
3258 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3260 rm -f conftest*
3263 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3264 echo "$as_me:$LINENO: result: yes" >&5
3265 echo "${ECHO_T}yes" >&6
3266 else
3267 echo "$as_me:$LINENO: result: no" >&5
3268 echo "${ECHO_T}no" >&6
3270 cat >>confdefs.h <<\_ACEOF
3271 #define NO_MINUS_C_MINUS_O 1
3272 _ACEOF
3276 # FIXME: we rely on the cache variable name because
3277 # there is no other way.
3278 set dummy $CC
3279 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3280 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3281 # Losing compiler, so override with the script.
3282 # FIXME: It is wrong to rewrite CC.
3283 # But if we don't then we get into trouble of one sort or another.
3284 # A longer-term fix would be to have automake use am__CC in this case,
3285 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3286 CC="$am_aux_dir/compile $CC"
3291 macro_version='2.1a'
3292 macro_revision='1.2435'
3305 ltmain="$ac_aux_dir/ltmain.sh"
3307 # Set options
3309 enable_dlopen=no
3312 enable_win32_dll=no
3315 # Check whether --enable-shared or --disable-shared was given.
3316 if test "${enable_shared+set}" = set; then
3317 enableval="$enable_shared"
3318 p=${PACKAGE-default}
3319 case $enableval in
3320 yes) enable_shared=yes ;;
3321 no) enable_shared=no ;;
3323 enable_shared=no
3324 # Look at the argument we got. We use all the common list separators.
3325 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3326 for pkg in $enableval; do
3327 IFS="$lt_save_ifs"
3328 if test "X$pkg" = "X$p"; then
3329 enable_shared=yes
3331 done
3332 IFS="$lt_save_ifs"
3334 esac
3335 else
3336 enable_shared=yes
3346 # Check whether --enable-static or --disable-static was given.
3347 if test "${enable_static+set}" = set; then
3348 enableval="$enable_static"
3349 p=${PACKAGE-default}
3350 case $enableval in
3351 yes) enable_static=yes ;;
3352 no) enable_static=no ;;
3354 enable_static=no
3355 # Look at the argument we got. We use all the common list separators.
3356 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3357 for pkg in $enableval; do
3358 IFS="$lt_save_ifs"
3359 if test "X$pkg" = "X$p"; then
3360 enable_static=yes
3362 done
3363 IFS="$lt_save_ifs"
3365 esac
3366 else
3367 enable_static=yes
3378 # Check whether --with-pic or --without-pic was given.
3379 if test "${with_pic+set}" = set; then
3380 withval="$with_pic"
3381 pic_mode="$withval"
3382 else
3383 pic_mode=default
3386 test -z "$pic_mode" && pic_mode=default
3394 # Check whether --enable-fast-install or --disable-fast-install was given.
3395 if test "${enable_fast_install+set}" = set; then
3396 enableval="$enable_fast_install"
3397 p=${PACKAGE-default}
3398 case $enableval in
3399 yes) enable_fast_install=yes ;;
3400 no) enable_fast_install=no ;;
3402 enable_fast_install=no
3403 # Look at the argument we got. We use all the common list separators.
3404 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3405 for pkg in $enableval; do
3406 IFS="$lt_save_ifs"
3407 if test "X$pkg" = "X$p"; then
3408 enable_fast_install=yes
3410 done
3411 IFS="$lt_save_ifs"
3413 esac
3414 else
3415 enable_fast_install=yes
3425 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3426 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3427 if test "${lt_cv_path_SED+set}" = set; then
3428 echo $ECHO_N "(cached) $ECHO_C" >&6
3429 else
3430 # Loop through the user's path and test for sed and gsed.
3431 # Then use that list of sed's as ones to test for truncation.
3432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433 for as_dir in $PATH
3435 IFS=$as_save_IFS
3436 test -z "$as_dir" && as_dir=.
3437 for lt_ac_prog in sed gsed; do
3438 for ac_exec_ext in '' $ac_executable_extensions; do
3439 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3440 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3442 done
3443 done
3444 done
3445 IFS=$as_save_IFS
3446 lt_ac_max=0
3447 lt_ac_count=0
3448 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3449 # along with /bin/sed that truncates output.
3450 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3451 test ! -f $lt_ac_sed && continue
3452 cat /dev/null > conftest.in
3453 lt_ac_count=0
3454 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3455 # Check for GNU sed and select it if it is found.
3456 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3457 lt_cv_path_SED=$lt_ac_sed
3458 break
3460 while true; do
3461 cat conftest.in conftest.in >conftest.tmp
3462 mv conftest.tmp conftest.in
3463 cp conftest.in conftest.nl
3464 echo >>conftest.nl
3465 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3466 cmp -s conftest.out conftest.nl || break
3467 # 10000 chars as input seems more than enough
3468 test $lt_ac_count -gt 10 && break
3469 lt_ac_count=`expr $lt_ac_count + 1`
3470 if test $lt_ac_count -gt $lt_ac_max; then
3471 lt_ac_max=$lt_ac_count
3472 lt_cv_path_SED=$lt_ac_sed
3474 done
3475 done
3479 SED=$lt_cv_path_SED
3481 echo "$as_me:$LINENO: result: $SED" >&5
3482 echo "${ECHO_T}$SED" >&6
3484 test -z "$SED" && SED=sed
3485 Xsed="$SED -e 1s/^X//"
3497 echo "$as_me:$LINENO: checking for egrep" >&5
3498 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3499 if test "${ac_cv_prog_egrep+set}" = set; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
3501 else
3502 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3503 then ac_cv_prog_egrep='grep -E'
3504 else ac_cv_prog_egrep='egrep'
3507 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3508 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3509 EGREP=$ac_cv_prog_egrep
3512 echo "$as_me:$LINENO: checking for fgrep" >&5
3513 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3514 if test "${ac_cv_prog_fgrep+set}" = set; then
3515 echo $ECHO_N "(cached) $ECHO_C" >&6
3516 else
3517 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3518 then ac_cv_prog_fgrep='grep -F'
3519 else ac_cv_prog_fgrep='fgrep'
3522 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3523 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3524 FGREP=$ac_cv_prog_fgrep
3527 test -z "$GREP" && GREP=grep
3547 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3548 if test "${with_gnu_ld+set}" = set; then
3549 withval="$with_gnu_ld"
3550 test "$withval" = no || with_gnu_ld=yes
3551 else
3552 with_gnu_ld=no
3554 ac_prog=ld
3555 if test "$GCC" = yes; then
3556 # Check if gcc -print-prog-name=ld gives a path.
3557 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3558 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3559 case $host in
3560 *-*-mingw*)
3561 # gcc leaves a trailing carriage return which upsets mingw
3562 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3564 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3565 esac
3566 case $ac_prog in
3567 # Accept absolute paths.
3568 [\\/]* | ?:[\\/]*)
3569 re_direlt='/[^/][^/]*/\.\./'
3570 # Canonicalize the pathname of ld
3571 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3572 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3573 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3574 done
3575 test -z "$LD" && LD="$ac_prog"
3578 # If it fails, then pretend we aren't using GCC.
3579 ac_prog=ld
3582 # If it is relative, then search for the first ld in PATH.
3583 with_gnu_ld=unknown
3585 esac
3586 elif test "$with_gnu_ld" = yes; then
3587 echo "$as_me:$LINENO: checking for GNU ld" >&5
3588 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3589 else
3590 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3591 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3593 if test "${lt_cv_path_LD+set}" = set; then
3594 echo $ECHO_N "(cached) $ECHO_C" >&6
3595 else
3596 if test -z "$LD"; then
3597 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3598 for ac_dir in $PATH; do
3599 IFS="$lt_save_ifs"
3600 test -z "$ac_dir" && ac_dir=.
3601 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3602 lt_cv_path_LD="$ac_dir/$ac_prog"
3603 # Check to see if the program is GNU ld. I'd rather use --version,
3604 # but apparently some variants of GNU ld only accept -v.
3605 # Break only if it was the GNU/non-GNU ld that we prefer.
3606 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3607 *GNU* | *'with BFD'*)
3608 test "$with_gnu_ld" != no && break
3611 test "$with_gnu_ld" != yes && break
3613 esac
3615 done
3616 IFS="$lt_save_ifs"
3617 else
3618 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3622 LD="$lt_cv_path_LD"
3623 if test -n "$LD"; then
3624 echo "$as_me:$LINENO: result: $LD" >&5
3625 echo "${ECHO_T}$LD" >&6
3626 else
3627 echo "$as_me:$LINENO: result: no" >&5
3628 echo "${ECHO_T}no" >&6
3630 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3631 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3632 { (exit 1); exit 1; }; }
3633 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3634 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3635 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3636 echo $ECHO_N "(cached) $ECHO_C" >&6
3637 else
3638 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3639 case `$LD -v 2>&1 </dev/null` in
3640 *GNU* | *'with BFD'*)
3641 lt_cv_prog_gnu_ld=yes
3644 lt_cv_prog_gnu_ld=no
3646 esac
3648 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3649 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3650 with_gnu_ld=$lt_cv_prog_gnu_ld
3661 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3662 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
3663 if test "${lt_cv_path_NM+set}" = set; then
3664 echo $ECHO_N "(cached) $ECHO_C" >&6
3665 else
3666 if test -n "$NM"; then
3667 # Let the user override the test.
3668 lt_cv_path_NM="$NM"
3669 else
3670 lt_nm_to_check="${ac_tool_prefix}nm"
3671 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3672 lt_nm_to_check="$lt_nm_to_check nm"
3674 for lt_tmp_nm in $lt_nm_to_check; do
3675 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3676 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3677 IFS="$lt_save_ifs"
3678 test -z "$ac_dir" && ac_dir=.
3679 tmp_nm="$ac_dir/$lt_tmp_nm"
3680 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3681 # Check to see if the nm accepts a BSD-compat flag.
3682 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3683 # nm: unknown option "B" ignored
3684 # Tru64's nm complains that /dev/null is an invalid object file
3685 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3686 */dev/null* | *'Invalid file or object type'*)
3687 lt_cv_path_NM="$tmp_nm -B"
3688 break
3691 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3692 */dev/null*)
3693 lt_cv_path_NM="$tmp_nm -p"
3694 break
3697 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3698 continue # so that we can try to find one that supports BSD flags
3700 esac
3702 esac
3704 done
3705 IFS="$lt_save_ifs"
3706 done
3707 : ${lt_cv_path_NM=no}
3710 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3711 echo "${ECHO_T}$lt_cv_path_NM" >&6
3712 if test "$lt_cv_path_NM" != "no"; then
3713 NM="$lt_cv_path_NM"
3714 else
3715 # Didn't find any BSD compatible name lister, look for dumpbin.
3716 if test -n "$ac_tool_prefix"; then
3717 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3719 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3720 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3721 echo "$as_me:$LINENO: checking for $ac_word" >&5
3722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3723 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3724 echo $ECHO_N "(cached) $ECHO_C" >&6
3725 else
3726 if test -n "$DUMPBIN"; then
3727 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3728 else
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 for as_dir in $PATH
3732 IFS=$as_save_IFS
3733 test -z "$as_dir" && as_dir=.
3734 for ac_exec_ext in '' $ac_executable_extensions; do
3735 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3736 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3738 break 2
3740 done
3741 done
3745 DUMPBIN=$ac_cv_prog_DUMPBIN
3746 if test -n "$DUMPBIN"; then
3747 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3748 echo "${ECHO_T}$DUMPBIN" >&6
3749 else
3750 echo "$as_me:$LINENO: result: no" >&5
3751 echo "${ECHO_T}no" >&6
3754 test -n "$DUMPBIN" && break
3755 done
3757 if test -z "$DUMPBIN"; then
3758 ac_ct_DUMPBIN=$DUMPBIN
3759 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3761 # Extract the first word of "$ac_prog", so it can be a program name with args.
3762 set dummy $ac_prog; ac_word=$2
3763 echo "$as_me:$LINENO: checking for $ac_word" >&5
3764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3765 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3767 else
3768 if test -n "$ac_ct_DUMPBIN"; then
3769 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3770 else
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772 for as_dir in $PATH
3774 IFS=$as_save_IFS
3775 test -z "$as_dir" && as_dir=.
3776 for ac_exec_ext in '' $ac_executable_extensions; do
3777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3778 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3780 break 2
3782 done
3783 done
3787 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3788 if test -n "$ac_ct_DUMPBIN"; then
3789 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3790 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
3791 else
3792 echo "$as_me:$LINENO: result: no" >&5
3793 echo "${ECHO_T}no" >&6
3796 test -n "$ac_ct_DUMPBIN" && break
3797 done
3798 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
3800 DUMPBIN=$ac_ct_DUMPBIN
3804 if test "$DUMPBIN" != ":"; then
3805 NM="$DUMPBIN"
3808 test -z "$NM" && NM=nm
3815 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3816 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
3817 if test "${lt_cv_nm_interface+set}" = set; then
3818 echo $ECHO_N "(cached) $ECHO_C" >&6
3819 else
3820 lt_cv_nm_interface="BSD nm"
3821 echo "int some_variable = 0;" > conftest.$ac_ext
3822 (eval echo "\"\$as_me:3822: $ac_compile\"" >&5)
3823 (eval "$ac_compile" 2>conftest.err)
3824 cat conftest.err >&5
3825 (eval echo "\"\$as_me:3825: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3826 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3827 cat conftest.err >&5
3828 (eval echo "\"\$as_me:3828: output\"" >&5)
3829 cat conftest.out >&5
3830 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3831 lt_cv_nm_interface="MS dumpbin"
3833 rm -f conftest*
3835 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3836 echo "${ECHO_T}$lt_cv_nm_interface" >&6
3838 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3839 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3840 LN_S=$as_ln_s
3841 if test "$LN_S" = "ln -s"; then
3842 echo "$as_me:$LINENO: result: yes" >&5
3843 echo "${ECHO_T}yes" >&6
3844 else
3845 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3846 echo "${ECHO_T}no, using $LN_S" >&6
3849 # find the maximum length of command line arguments
3850 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3851 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3852 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3853 echo $ECHO_N "(cached) $ECHO_C" >&6
3854 else
3856 teststring="ABCD"
3858 case $build_os in
3859 msdosdjgpp*)
3860 # On DJGPP, this test can blow up pretty badly due to problems in libc
3861 # (any single argument exceeding 2000 bytes causes a buffer overrun
3862 # during glob expansion). Even if it were fixed, the result of this
3863 # check would be larger than it should be.
3864 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3867 gnu*)
3868 # Under GNU Hurd, this test is not required because there is
3869 # no limit to the length of command line arguments.
3870 # Libtool will interpret -1 as no limit whatsoever
3871 lt_cv_sys_max_cmd_len=-1;
3874 cygwin* | mingw*)
3875 # On Win9x/ME, this test blows up -- it succeeds, but takes
3876 # about 5 minutes as the teststring grows exponentially.
3877 # Worse, since 9x/ME are not pre-emptively multitasking,
3878 # you end up with a "frozen" computer, even though with patience
3879 # the test eventually succeeds (with a max line length of 256k).
3880 # Instead, let's just punt: use the minimum linelength reported by
3881 # all of the supported platforms: 8192 (on NT/2K/XP).
3882 lt_cv_sys_max_cmd_len=8192;
3885 amigaos*)
3886 # On AmigaOS with pdksh, this test takes hours, literally.
3887 # So we just punt and use a minimum line length of 8192.
3888 lt_cv_sys_max_cmd_len=8192;
3891 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3892 # This has been around since 386BSD, at least. Likely further.
3893 if test -x /sbin/sysctl; then
3894 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3895 elif test -x /usr/sbin/sysctl; then
3896 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3897 else
3898 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3900 # And add a safety zone
3901 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3902 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3905 interix*)
3906 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3907 lt_cv_sys_max_cmd_len=196608
3910 osf*)
3911 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3912 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3913 # nice to cause kernel panics so lets avoid the loop below.
3914 # First set a reasonable default.
3915 lt_cv_sys_max_cmd_len=16384
3917 if test -x /sbin/sysconfig; then
3918 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3919 *1*) lt_cv_sys_max_cmd_len=-1 ;;
3920 esac
3923 sco3.2v5*)
3924 lt_cv_sys_max_cmd_len=102400
3926 sysv5* | sco5v6* | sysv4.2uw2*)
3927 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3928 if test -n "$kargmax"; then
3929 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
3930 else
3931 lt_cv_sys_max_cmd_len=32768
3935 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
3936 if test -n $lt_cv_sys_max_cmd_len; then
3937 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3938 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3939 else
3940 # Make teststring a little bigger before we do anything with it.
3941 # a 1K string should be a reasonable start.
3942 for i in 1 2 3 4 5 6 7 8 ; do
3943 teststring=$teststring$teststring
3944 done
3945 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3946 # If test is not a shell built-in, we'll probably end up computing a
3947 # maximum length that is only half of the actual maximum length, but
3948 # we can't tell.
3949 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3950 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3951 test $i != 17 # 1/2 MB should be enough
3953 i=`expr $i + 1`
3954 teststring=$teststring$teststring
3955 done
3956 # Only check the string length outside the loop.
3957 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3958 teststring=
3959 # Add a significant safety factor because C++ compilers can tack on
3960 # massive amounts of additional arguments before passing them to the
3961 # linker. It appears as though 1/2 is a usable value.
3962 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3965 esac
3969 if test -n $lt_cv_sys_max_cmd_len ; then
3970 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3971 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3972 else
3973 echo "$as_me:$LINENO: result: none" >&5
3974 echo "${ECHO_T}none" >&6
3976 max_cmd_len=$lt_cv_sys_max_cmd_len
3984 : ${CP="cp -f"}
3985 : ${MV="mv -f"}
3986 : ${RM="rm -f"}
3988 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3989 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
3990 # Try some XSI features
3991 xsi_shell=no
3992 ( _lt_dummy="a/b/c"
3993 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3994 = c,a/b,, ) >/dev/null 2>&1 \
3995 && xsi_shell=yes
3996 echo "$as_me:$LINENO: result: $xsi_shell" >&5
3997 echo "${ECHO_T}$xsi_shell" >&6
4000 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4001 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4002 lt_shell_append=no
4003 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4004 >/dev/null 2>&1 \
4005 && lt_shell_append=yes
4006 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4007 echo "${ECHO_T}$lt_shell_append" >&6
4010 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4011 lt_unset=unset
4012 else
4013 lt_unset=false
4020 # test EBCDIC or ASCII
4021 case `echo X|tr X '\101'` in
4022 A) # ASCII based system
4023 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4024 lt_SP2NL='tr \040 \012'
4025 lt_NL2SP='tr \015\012 \040\040'
4027 *) # EBCDIC based system
4028 lt_SP2NL='tr \100 \n'
4029 lt_NL2SP='tr \r\n \100\100'
4031 esac
4041 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4042 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4043 if test "${lt_cv_ld_reload_flag+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4045 else
4046 lt_cv_ld_reload_flag='-r'
4048 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4049 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4050 reload_flag=$lt_cv_ld_reload_flag
4051 case $reload_flag in
4052 "" | " "*) ;;
4053 *) reload_flag=" $reload_flag" ;;
4054 esac
4055 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4056 case $host_os in
4057 darwin*)
4058 if test "$GCC" = yes; then
4059 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4060 else
4061 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4064 esac
4075 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4076 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4077 if test "${lt_cv_deplibs_check_method+set}" = set; then
4078 echo $ECHO_N "(cached) $ECHO_C" >&6
4079 else
4080 lt_cv_file_magic_cmd='$MAGIC_CMD'
4081 lt_cv_file_magic_test_file=
4082 lt_cv_deplibs_check_method='unknown'
4083 # Need to set the preceding variable on all platforms that support
4084 # interlibrary dependencies.
4085 # 'none' -- dependencies not supported.
4086 # `unknown' -- same as none, but documents that we really don't know.
4087 # 'pass_all' -- all dependencies passed with no checks.
4088 # 'test_compile' -- check by making test program.
4089 # 'file_magic [[regex]]' -- check by looking for files in library path
4090 # which responds to the $file_magic_cmd with a given extended regex.
4091 # If you have `file' or equivalent on your system and you're not sure
4092 # whether `pass_all' will *always* work, you probably want this one.
4094 case $host_os in
4095 aix[4-9]*)
4096 lt_cv_deplibs_check_method=pass_all
4099 beos*)
4100 lt_cv_deplibs_check_method=pass_all
4103 bsdi[45]*)
4104 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4105 lt_cv_file_magic_cmd='/usr/bin/file -L'
4106 lt_cv_file_magic_test_file=/shlib/libc.so
4109 cygwin*)
4110 # func_win32_libid is a shell function defined in ltmain.sh
4111 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4112 lt_cv_file_magic_cmd='func_win32_libid'
4115 mingw* | pw32*)
4116 # Base MSYS/MinGW do not provide the 'file' command needed by
4117 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4118 # unless we find 'file', for example because we are cross-compiling.
4119 if ( file / ) >/dev/null 2>&1; then
4120 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4121 lt_cv_file_magic_cmd='func_win32_libid'
4122 else
4123 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4124 lt_cv_file_magic_cmd='$OBJDUMP -f'
4128 darwin* | rhapsody*)
4129 lt_cv_deplibs_check_method=pass_all
4132 freebsd* | dragonfly*)
4133 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4134 case $host_cpu in
4135 i*86 )
4136 # Not sure whether the presence of OpenBSD here was a mistake.
4137 # Let's accept both of them until this is cleared up.
4138 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4139 lt_cv_file_magic_cmd=/usr/bin/file
4140 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4142 esac
4143 else
4144 lt_cv_deplibs_check_method=pass_all
4148 gnu*)
4149 lt_cv_deplibs_check_method=pass_all
4152 hpux10.20* | hpux11*)
4153 lt_cv_file_magic_cmd=/usr/bin/file
4154 case $host_cpu in
4155 ia64*)
4156 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4157 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4159 hppa*64*)
4160 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]'
4161 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4164 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4165 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4167 esac
4170 interix[3-9]*)
4171 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4172 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4175 irix5* | irix6* | nonstopux*)
4176 case $LD in
4177 *-32|*"-32 ") libmagic=32-bit;;
4178 *-n32|*"-n32 ") libmagic=N32;;
4179 *-64|*"-64 ") libmagic=64-bit;;
4180 *) libmagic=never-match;;
4181 esac
4182 lt_cv_deplibs_check_method=pass_all
4185 # This must be Linux ELF.
4186 linux* | k*bsd*-gnu)
4187 lt_cv_deplibs_check_method=pass_all
4190 netbsd*)
4191 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4192 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4193 else
4194 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4198 newos6*)
4199 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4200 lt_cv_file_magic_cmd=/usr/bin/file
4201 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4204 *nto* | *qnx*)
4205 lt_cv_deplibs_check_method=pass_all
4208 openbsd*)
4209 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4210 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4211 else
4212 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4216 osf3* | osf4* | osf5*)
4217 lt_cv_deplibs_check_method=pass_all
4220 rdos*)
4221 lt_cv_deplibs_check_method=pass_all
4224 solaris*)
4225 lt_cv_deplibs_check_method=pass_all
4228 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4229 lt_cv_deplibs_check_method=pass_all
4232 sysv4 | sysv4.3*)
4233 case $host_vendor in
4234 motorola)
4235 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]'
4236 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4238 ncr)
4239 lt_cv_deplibs_check_method=pass_all
4241 sequent)
4242 lt_cv_file_magic_cmd='/bin/file'
4243 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4245 sni)
4246 lt_cv_file_magic_cmd='/bin/file'
4247 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4248 lt_cv_file_magic_test_file=/lib/libc.so
4250 siemens)
4251 lt_cv_deplibs_check_method=pass_all
4254 lt_cv_deplibs_check_method=pass_all
4256 esac
4259 tpf*)
4260 lt_cv_deplibs_check_method=pass_all
4262 esac
4265 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4266 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4267 file_magic_cmd=$lt_cv_file_magic_cmd
4268 deplibs_check_method=$lt_cv_deplibs_check_method
4269 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4282 if test -n "$ac_tool_prefix"; then
4283 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4284 set dummy ${ac_tool_prefix}ar; ac_word=$2
4285 echo "$as_me:$LINENO: checking for $ac_word" >&5
4286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4287 if test "${ac_cv_prog_AR+set}" = set; then
4288 echo $ECHO_N "(cached) $ECHO_C" >&6
4289 else
4290 if test -n "$AR"; then
4291 ac_cv_prog_AR="$AR" # Let the user override the test.
4292 else
4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294 for as_dir in $PATH
4296 IFS=$as_save_IFS
4297 test -z "$as_dir" && as_dir=.
4298 for ac_exec_ext in '' $ac_executable_extensions; do
4299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4300 ac_cv_prog_AR="${ac_tool_prefix}ar"
4301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4302 break 2
4304 done
4305 done
4309 AR=$ac_cv_prog_AR
4310 if test -n "$AR"; then
4311 echo "$as_me:$LINENO: result: $AR" >&5
4312 echo "${ECHO_T}$AR" >&6
4313 else
4314 echo "$as_me:$LINENO: result: no" >&5
4315 echo "${ECHO_T}no" >&6
4319 if test -z "$ac_cv_prog_AR"; then
4320 ac_ct_AR=$AR
4321 # Extract the first word of "ar", so it can be a program name with args.
4322 set dummy ar; ac_word=$2
4323 echo "$as_me:$LINENO: checking for $ac_word" >&5
4324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4325 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4326 echo $ECHO_N "(cached) $ECHO_C" >&6
4327 else
4328 if test -n "$ac_ct_AR"; then
4329 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4330 else
4331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332 for as_dir in $PATH
4334 IFS=$as_save_IFS
4335 test -z "$as_dir" && as_dir=.
4336 for ac_exec_ext in '' $ac_executable_extensions; do
4337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4338 ac_cv_prog_ac_ct_AR="ar"
4339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4340 break 2
4342 done
4343 done
4345 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
4348 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4349 if test -n "$ac_ct_AR"; then
4350 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4351 echo "${ECHO_T}$ac_ct_AR" >&6
4352 else
4353 echo "$as_me:$LINENO: result: no" >&5
4354 echo "${ECHO_T}no" >&6
4357 AR=$ac_ct_AR
4358 else
4359 AR="$ac_cv_prog_AR"
4362 test -z "$AR" && AR=ar
4363 test -z "$AR_FLAGS" && AR_FLAGS=cru
4375 if test -n "$ac_tool_prefix"; then
4376 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4377 set dummy ${ac_tool_prefix}strip; ac_word=$2
4378 echo "$as_me:$LINENO: checking for $ac_word" >&5
4379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4380 if test "${ac_cv_prog_STRIP+set}" = set; then
4381 echo $ECHO_N "(cached) $ECHO_C" >&6
4382 else
4383 if test -n "$STRIP"; then
4384 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4385 else
4386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387 for as_dir in $PATH
4389 IFS=$as_save_IFS
4390 test -z "$as_dir" && as_dir=.
4391 for ac_exec_ext in '' $ac_executable_extensions; do
4392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4393 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4395 break 2
4397 done
4398 done
4402 STRIP=$ac_cv_prog_STRIP
4403 if test -n "$STRIP"; then
4404 echo "$as_me:$LINENO: result: $STRIP" >&5
4405 echo "${ECHO_T}$STRIP" >&6
4406 else
4407 echo "$as_me:$LINENO: result: no" >&5
4408 echo "${ECHO_T}no" >&6
4412 if test -z "$ac_cv_prog_STRIP"; then
4413 ac_ct_STRIP=$STRIP
4414 # Extract the first word of "strip", so it can be a program name with args.
4415 set dummy strip; ac_word=$2
4416 echo "$as_me:$LINENO: checking for $ac_word" >&5
4417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4418 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4419 echo $ECHO_N "(cached) $ECHO_C" >&6
4420 else
4421 if test -n "$ac_ct_STRIP"; then
4422 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4423 else
4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 for as_dir in $PATH
4427 IFS=$as_save_IFS
4428 test -z "$as_dir" && as_dir=.
4429 for ac_exec_ext in '' $ac_executable_extensions; do
4430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4431 ac_cv_prog_ac_ct_STRIP="strip"
4432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4433 break 2
4435 done
4436 done
4438 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4441 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4442 if test -n "$ac_ct_STRIP"; then
4443 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4444 echo "${ECHO_T}$ac_ct_STRIP" >&6
4445 else
4446 echo "$as_me:$LINENO: result: no" >&5
4447 echo "${ECHO_T}no" >&6
4450 STRIP=$ac_ct_STRIP
4451 else
4452 STRIP="$ac_cv_prog_STRIP"
4455 test -z "$STRIP" && STRIP=:
4462 if test -n "$ac_tool_prefix"; then
4463 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4464 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4465 echo "$as_me:$LINENO: checking for $ac_word" >&5
4466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4467 if test "${ac_cv_prog_RANLIB+set}" = set; then
4468 echo $ECHO_N "(cached) $ECHO_C" >&6
4469 else
4470 if test -n "$RANLIB"; then
4471 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4472 else
4473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474 for as_dir in $PATH
4476 IFS=$as_save_IFS
4477 test -z "$as_dir" && as_dir=.
4478 for ac_exec_ext in '' $ac_executable_extensions; do
4479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4480 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4482 break 2
4484 done
4485 done
4489 RANLIB=$ac_cv_prog_RANLIB
4490 if test -n "$RANLIB"; then
4491 echo "$as_me:$LINENO: result: $RANLIB" >&5
4492 echo "${ECHO_T}$RANLIB" >&6
4493 else
4494 echo "$as_me:$LINENO: result: no" >&5
4495 echo "${ECHO_T}no" >&6
4499 if test -z "$ac_cv_prog_RANLIB"; then
4500 ac_ct_RANLIB=$RANLIB
4501 # Extract the first word of "ranlib", so it can be a program name with args.
4502 set dummy ranlib; ac_word=$2
4503 echo "$as_me:$LINENO: checking for $ac_word" >&5
4504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4505 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4507 else
4508 if test -n "$ac_ct_RANLIB"; then
4509 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4510 else
4511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512 for as_dir in $PATH
4514 IFS=$as_save_IFS
4515 test -z "$as_dir" && as_dir=.
4516 for ac_exec_ext in '' $ac_executable_extensions; do
4517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4518 ac_cv_prog_ac_ct_RANLIB="ranlib"
4519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4520 break 2
4522 done
4523 done
4525 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4528 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4529 if test -n "$ac_ct_RANLIB"; then
4530 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4531 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4532 else
4533 echo "$as_me:$LINENO: result: no" >&5
4534 echo "${ECHO_T}no" >&6
4537 RANLIB=$ac_ct_RANLIB
4538 else
4539 RANLIB="$ac_cv_prog_RANLIB"
4542 test -z "$RANLIB" && RANLIB=:
4549 # Determine commands to create old-style static archives.
4550 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4551 old_postinstall_cmds='chmod 644 $oldlib'
4552 old_postuninstall_cmds=
4554 if test -n "$RANLIB"; then
4555 case $host_os in
4556 openbsd*)
4557 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4560 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4562 esac
4563 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4599 # If no C compiler was specified, use CC.
4600 LTCC=${LTCC-"$CC"}
4602 # If no C compiler flags were specified, use CFLAGS.
4603 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4605 # Allow CC to be a program name with arguments.
4606 compiler=$CC
4609 # Check for command to grab the raw symbol name followed by C symbol from nm.
4610 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4611 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4612 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4613 echo $ECHO_N "(cached) $ECHO_C" >&6
4614 else
4616 # These are sane defaults that work on at least a few old systems.
4617 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4619 # Character class describing NM global symbol codes.
4620 symcode='[BCDEGRST]'
4622 # Regexp to match symbols that can be accessed directly from C.
4623 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4625 # Define system-specific variables.
4626 case $host_os in
4627 aix*)
4628 symcode='[BCDT]'
4630 cygwin* | mingw* | pw32*)
4631 symcode='[ABCDGISTW]'
4633 hpux*)
4634 if test "$host_cpu" = ia64; then
4635 symcode='[ABCDEGRST]'
4638 irix* | nonstopux*)
4639 symcode='[BCDEGRST]'
4641 osf*)
4642 symcode='[BCDEGQRST]'
4644 solaris*)
4645 symcode='[BDRT]'
4647 sco3.2v5*)
4648 symcode='[DT]'
4650 sysv4.2uw2*)
4651 symcode='[DT]'
4653 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4654 symcode='[ABDT]'
4656 sysv4)
4657 symcode='[DFNSTU]'
4659 esac
4661 # If we're using GNU nm, then use its standard symbol codes.
4662 case `$NM -V 2>&1` in
4663 *GNU* | *'with BFD'*)
4664 symcode='[ABCDGIRSTW]' ;;
4665 esac
4667 # Transform an extracted symbol line into a proper C declaration.
4668 # Some systems (esp. on ia64) link data and code symbols differently,
4669 # so use this general approach.
4670 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4672 # Transform an extracted symbol line into symbol name and symbol address
4673 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4675 # Handle CRLF in mingw tool chain
4676 opt_cr=
4677 case $build_os in
4678 mingw*)
4679 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4681 esac
4683 # Try without a prefix underscore, then with it.
4684 for ac_symprfx in "" "_"; do
4686 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4687 symxfrm="\\1 $ac_symprfx\\2 \\2"
4689 # Write the raw and C identifiers.
4690 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4691 # Fake it for dumpbin and say T for any non-static function
4692 # and D for any global variable.
4693 # Also find C++ and __fastcall symbols from MSVC++,
4694 # which start with @ or ?.
4695 lt_cv_sys_global_symbol_pipe="$AWK '"\
4696 " {last_section=section; section=\$ 3};"\
4697 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4698 " \$ 0!~/External *\|/{next};"\
4699 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4700 " {if(hide[section]) next};"\
4701 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4702 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4703 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
4704 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4705 " ' prfx=^$ac_symprfx"
4706 else
4707 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4710 # Check to see that the pipe works correctly.
4711 pipe_works=no
4713 rm -f conftest*
4714 cat > conftest.$ac_ext <<_LT_EOF
4715 #ifdef __cplusplus
4716 extern "C" {
4717 #endif
4718 char nm_test_var;
4719 void nm_test_func(void);
4720 void nm_test_func(void){}
4721 #ifdef __cplusplus
4723 #endif
4724 int main(){nm_test_var='a';nm_test_func();return(0);}
4725 _LT_EOF
4727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4728 (eval $ac_compile) 2>&5
4729 ac_status=$?
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); }; then
4732 # Now try to grab the symbols.
4733 nlist=conftest.nm
4734 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4735 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4736 ac_status=$?
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); } && test -s "$nlist"; then
4739 # Try sorting and uniquifying the output.
4740 if sort "$nlist" | uniq > "$nlist"T; then
4741 mv -f "$nlist"T "$nlist"
4742 else
4743 rm -f "$nlist"T
4746 # Make sure that we snagged all the symbols we need.
4747 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4748 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4749 cat <<_LT_EOF > conftest.$ac_ext
4750 #ifdef __cplusplus
4751 extern "C" {
4752 #endif
4754 _LT_EOF
4755 # Now generate the symbol file.
4756 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4758 cat <<_LT_EOF >> conftest.$ac_ext
4760 /* The mapping between symbol names and symbols. */
4761 const struct {
4762 const char *name;
4763 void *address;
4765 lt__PROGRAM__LTX_preloaded_symbols[] =
4767 { "@PROGRAM@", (void *) 0 },
4768 _LT_EOF
4769 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4770 cat <<\_LT_EOF >> conftest.$ac_ext
4771 {0, (void *) 0}
4774 /* This works around a problem in FreeBSD linker */
4775 #ifdef FREEBSD_WORKAROUND
4776 static const void *lt_preloaded_setup() {
4777 return lt__PROGRAM__LTX_preloaded_symbols;
4779 #endif
4781 #ifdef __cplusplus
4783 #endif
4784 _LT_EOF
4785 # Now try linking the two files.
4786 mv conftest.$ac_objext conftstm.$ac_objext
4787 lt_save_LIBS="$LIBS"
4788 lt_save_CFLAGS="$CFLAGS"
4789 LIBS="conftstm.$ac_objext"
4790 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4792 (eval $ac_link) 2>&5
4793 ac_status=$?
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4796 pipe_works=yes
4798 LIBS="$lt_save_LIBS"
4799 CFLAGS="$lt_save_CFLAGS"
4800 else
4801 echo "cannot find nm_test_func in $nlist" >&5
4803 else
4804 echo "cannot find nm_test_var in $nlist" >&5
4806 else
4807 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4809 else
4810 echo "$progname: failed program was:" >&5
4811 cat conftest.$ac_ext >&5
4813 rm -f conftest* conftst*
4815 # Do not use the global_symbol_pipe unless it works.
4816 if test "$pipe_works" = yes; then
4817 break
4818 else
4819 lt_cv_sys_global_symbol_pipe=
4821 done
4825 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4826 lt_cv_sys_global_symbol_to_cdecl=
4828 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4829 echo "$as_me:$LINENO: result: failed" >&5
4830 echo "${ECHO_T}failed" >&6
4831 else
4832 echo "$as_me:$LINENO: result: ok" >&5
4833 echo "${ECHO_T}ok" >&6
4853 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4854 if test "${enable_libtool_lock+set}" = set; then
4855 enableval="$enable_libtool_lock"
4858 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4860 # Some flags need to be propagated to the compiler or linker for good
4861 # libtool support.
4862 case $host in
4863 ia64-*-hpux*)
4864 # Find out which ABI we are using.
4865 echo 'int i;' > conftest.$ac_ext
4866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4867 (eval $ac_compile) 2>&5
4868 ac_status=$?
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); }; then
4871 case `/usr/bin/file conftest.$ac_objext` in
4872 *ELF-32*)
4873 HPUX_IA64_MODE="32"
4875 *ELF-64*)
4876 HPUX_IA64_MODE="64"
4878 esac
4880 rm -rf conftest*
4882 *-*-irix6*)
4883 # Find out which ABI we are using.
4884 echo '#line 4884 "configure"' > conftest.$ac_ext
4885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4886 (eval $ac_compile) 2>&5
4887 ac_status=$?
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); }; then
4890 if test "$lt_cv_prog_gnu_ld" = yes; then
4891 case `/usr/bin/file conftest.$ac_objext` in
4892 *32-bit*)
4893 LD="${LD-ld} -melf32bsmip"
4895 *N32*)
4896 LD="${LD-ld} -melf32bmipn32"
4898 *64-bit*)
4899 LD="${LD-ld} -melf64bmip"
4901 esac
4902 else
4903 case `/usr/bin/file conftest.$ac_objext` in
4904 *32-bit*)
4905 LD="${LD-ld} -32"
4907 *N32*)
4908 LD="${LD-ld} -n32"
4910 *64-bit*)
4911 LD="${LD-ld} -64"
4913 esac
4916 rm -rf conftest*
4919 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4920 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
4921 # Find out which ABI we are using.
4922 echo 'int i;' > conftest.$ac_ext
4923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4924 (eval $ac_compile) 2>&5
4925 ac_status=$?
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); }; then
4928 case `/usr/bin/file conftest.o` in
4929 *32-bit*)
4930 case $host in
4931 x86_64-*kfreebsd*-gnu)
4932 LD="${LD-ld} -m elf_i386_fbsd"
4934 x86_64-*linux*)
4935 LD="${LD-ld} -m elf_i386"
4937 ppc64-*linux*|powerpc64-*linux*)
4938 LD="${LD-ld} -m elf32ppclinux"
4940 s390x-*linux*)
4941 LD="${LD-ld} -m elf_s390"
4943 sparc64-*linux*)
4944 LD="${LD-ld} -m elf32_sparc"
4946 esac
4948 *64-bit*)
4949 case $host in
4950 x86_64-*kfreebsd*-gnu)
4951 LD="${LD-ld} -m elf_x86_64_fbsd"
4953 x86_64-*linux*)
4954 LD="${LD-ld} -m elf_x86_64"
4956 ppc*-*linux*|powerpc*-*linux*)
4957 LD="${LD-ld} -m elf64ppc"
4959 s390*-*linux*|s390*-*tpf*)
4960 LD="${LD-ld} -m elf64_s390"
4962 sparc*-*linux*)
4963 LD="${LD-ld} -m elf64_sparc"
4965 esac
4967 esac
4969 rm -rf conftest*
4972 *-*-sco3.2v5*)
4973 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4974 SAVE_CFLAGS="$CFLAGS"
4975 CFLAGS="$CFLAGS -belf"
4976 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4977 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4978 if test "${lt_cv_cc_needs_belf+set}" = set; then
4979 echo $ECHO_N "(cached) $ECHO_C" >&6
4980 else
4981 ac_ext=c
4982 ac_cpp='$CPP $CPPFLAGS'
4983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4987 cat >conftest.$ac_ext <<_ACEOF
4988 /* confdefs.h. */
4989 _ACEOF
4990 cat confdefs.h >>conftest.$ac_ext
4991 cat >>conftest.$ac_ext <<_ACEOF
4992 /* end confdefs.h. */
4995 main ()
4999 return 0;
5001 _ACEOF
5002 rm -f conftest.$ac_objext conftest$ac_exeext
5003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5004 (eval $ac_link) 2>conftest.er1
5005 ac_status=$?
5006 grep -v '^ *+' conftest.er1 >conftest.err
5007 rm -f conftest.er1
5008 cat conftest.err >&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); } &&
5011 { ac_try='test -z "$ac_c_werror_flag"
5012 || test ! -s conftest.err'
5013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5014 (eval $ac_try) 2>&5
5015 ac_status=$?
5016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017 (exit $ac_status); }; } &&
5018 { ac_try='test -s conftest$ac_exeext'
5019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5020 (eval $ac_try) 2>&5
5021 ac_status=$?
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; }; then
5024 lt_cv_cc_needs_belf=yes
5025 else
5026 echo "$as_me: failed program was:" >&5
5027 sed 's/^/| /' conftest.$ac_ext >&5
5029 lt_cv_cc_needs_belf=no
5031 rm -f conftest.err conftest.$ac_objext \
5032 conftest$ac_exeext conftest.$ac_ext
5033 ac_ext=c
5034 ac_cpp='$CPP $CPPFLAGS'
5035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5040 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5041 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5042 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5043 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5044 CFLAGS="$SAVE_CFLAGS"
5047 sparc*-*solaris*)
5048 # Find out which ABI we are using.
5049 echo 'int i;' > conftest.$ac_ext
5050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5051 (eval $ac_compile) 2>&5
5052 ac_status=$?
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); }; then
5055 case `/usr/bin/file conftest.o` in
5056 *64-bit*)
5057 case $lt_cv_prog_gnu_ld in
5058 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5059 *) LD="${LD-ld} -64" ;;
5060 esac
5062 esac
5064 rm -rf conftest*
5066 esac
5068 need_locks="$enable_libtool_lock"
5070 ac_ext=c
5071 ac_cpp='$CPP $CPPFLAGS'
5072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5075 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5076 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5077 # On Suns, sometimes $CPP names a directory.
5078 if test -n "$CPP" && test -d "$CPP"; then
5079 CPP=
5081 if test -z "$CPP"; then
5082 if test "${ac_cv_prog_CPP+set}" = set; then
5083 echo $ECHO_N "(cached) $ECHO_C" >&6
5084 else
5085 # Double quotes because CPP needs to be expanded
5086 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5088 ac_preproc_ok=false
5089 for ac_c_preproc_warn_flag in '' yes
5091 # Use a header file that comes with gcc, so configuring glibc
5092 # with a fresh cross-compiler works.
5093 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5094 # <limits.h> exists even on freestanding compilers.
5095 # On the NeXT, cc -E runs the code through the compiler's parser,
5096 # not just through cpp. "Syntax error" is here to catch this case.
5097 cat >conftest.$ac_ext <<_ACEOF
5098 /* confdefs.h. */
5099 _ACEOF
5100 cat confdefs.h >>conftest.$ac_ext
5101 cat >>conftest.$ac_ext <<_ACEOF
5102 /* end confdefs.h. */
5103 #ifdef __STDC__
5104 # include <limits.h>
5105 #else
5106 # include <assert.h>
5107 #endif
5108 Syntax error
5109 _ACEOF
5110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5112 ac_status=$?
5113 grep -v '^ *+' conftest.er1 >conftest.err
5114 rm -f conftest.er1
5115 cat conftest.err >&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); } >/dev/null; then
5118 if test -s conftest.err; then
5119 ac_cpp_err=$ac_c_preproc_warn_flag
5120 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5121 else
5122 ac_cpp_err=
5124 else
5125 ac_cpp_err=yes
5127 if test -z "$ac_cpp_err"; then
5129 else
5130 echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5133 # Broken: fails on valid input.
5134 continue
5136 rm -f conftest.err conftest.$ac_ext
5138 # OK, works on sane cases. Now check whether non-existent headers
5139 # can be detected and how.
5140 cat >conftest.$ac_ext <<_ACEOF
5141 /* confdefs.h. */
5142 _ACEOF
5143 cat confdefs.h >>conftest.$ac_ext
5144 cat >>conftest.$ac_ext <<_ACEOF
5145 /* end confdefs.h. */
5146 #include <ac_nonexistent.h>
5147 _ACEOF
5148 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5149 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5150 ac_status=$?
5151 grep -v '^ *+' conftest.er1 >conftest.err
5152 rm -f conftest.er1
5153 cat conftest.err >&5
5154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155 (exit $ac_status); } >/dev/null; then
5156 if test -s conftest.err; then
5157 ac_cpp_err=$ac_c_preproc_warn_flag
5158 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5159 else
5160 ac_cpp_err=
5162 else
5163 ac_cpp_err=yes
5165 if test -z "$ac_cpp_err"; then
5166 # Broken: success on invalid input.
5167 continue
5168 else
5169 echo "$as_me: failed program was:" >&5
5170 sed 's/^/| /' conftest.$ac_ext >&5
5172 # Passes both tests.
5173 ac_preproc_ok=:
5174 break
5176 rm -f conftest.err conftest.$ac_ext
5178 done
5179 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5180 rm -f conftest.err conftest.$ac_ext
5181 if $ac_preproc_ok; then
5182 break
5185 done
5186 ac_cv_prog_CPP=$CPP
5189 CPP=$ac_cv_prog_CPP
5190 else
5191 ac_cv_prog_CPP=$CPP
5193 echo "$as_me:$LINENO: result: $CPP" >&5
5194 echo "${ECHO_T}$CPP" >&6
5195 ac_preproc_ok=false
5196 for ac_c_preproc_warn_flag in '' yes
5198 # Use a header file that comes with gcc, so configuring glibc
5199 # with a fresh cross-compiler works.
5200 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5201 # <limits.h> exists even on freestanding compilers.
5202 # On the NeXT, cc -E runs the code through the compiler's parser,
5203 # not just through cpp. "Syntax error" is here to catch this case.
5204 cat >conftest.$ac_ext <<_ACEOF
5205 /* confdefs.h. */
5206 _ACEOF
5207 cat confdefs.h >>conftest.$ac_ext
5208 cat >>conftest.$ac_ext <<_ACEOF
5209 /* end confdefs.h. */
5210 #ifdef __STDC__
5211 # include <limits.h>
5212 #else
5213 # include <assert.h>
5214 #endif
5215 Syntax error
5216 _ACEOF
5217 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5218 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5219 ac_status=$?
5220 grep -v '^ *+' conftest.er1 >conftest.err
5221 rm -f conftest.er1
5222 cat conftest.err >&5
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); } >/dev/null; then
5225 if test -s conftest.err; then
5226 ac_cpp_err=$ac_c_preproc_warn_flag
5227 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5228 else
5229 ac_cpp_err=
5231 else
5232 ac_cpp_err=yes
5234 if test -z "$ac_cpp_err"; then
5236 else
5237 echo "$as_me: failed program was:" >&5
5238 sed 's/^/| /' conftest.$ac_ext >&5
5240 # Broken: fails on valid input.
5241 continue
5243 rm -f conftest.err conftest.$ac_ext
5245 # OK, works on sane cases. Now check whether non-existent headers
5246 # can be detected and how.
5247 cat >conftest.$ac_ext <<_ACEOF
5248 /* confdefs.h. */
5249 _ACEOF
5250 cat confdefs.h >>conftest.$ac_ext
5251 cat >>conftest.$ac_ext <<_ACEOF
5252 /* end confdefs.h. */
5253 #include <ac_nonexistent.h>
5254 _ACEOF
5255 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5256 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5257 ac_status=$?
5258 grep -v '^ *+' conftest.er1 >conftest.err
5259 rm -f conftest.er1
5260 cat conftest.err >&5
5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262 (exit $ac_status); } >/dev/null; then
5263 if test -s conftest.err; then
5264 ac_cpp_err=$ac_c_preproc_warn_flag
5265 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5266 else
5267 ac_cpp_err=
5269 else
5270 ac_cpp_err=yes
5272 if test -z "$ac_cpp_err"; then
5273 # Broken: success on invalid input.
5274 continue
5275 else
5276 echo "$as_me: failed program was:" >&5
5277 sed 's/^/| /' conftest.$ac_ext >&5
5279 # Passes both tests.
5280 ac_preproc_ok=:
5281 break
5283 rm -f conftest.err conftest.$ac_ext
5285 done
5286 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5287 rm -f conftest.err conftest.$ac_ext
5288 if $ac_preproc_ok; then
5290 else
5291 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5292 See \`config.log' for more details." >&5
5293 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5294 See \`config.log' for more details." >&2;}
5295 { (exit 1); exit 1; }; }
5298 ac_ext=c
5299 ac_cpp='$CPP $CPPFLAGS'
5300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5305 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5306 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5307 if test "${ac_cv_header_stdc+set}" = set; then
5308 echo $ECHO_N "(cached) $ECHO_C" >&6
5309 else
5310 cat >conftest.$ac_ext <<_ACEOF
5311 /* confdefs.h. */
5312 _ACEOF
5313 cat confdefs.h >>conftest.$ac_ext
5314 cat >>conftest.$ac_ext <<_ACEOF
5315 /* end confdefs.h. */
5316 #include <stdlib.h>
5317 #include <stdarg.h>
5318 #include <string.h>
5319 #include <float.h>
5322 main ()
5326 return 0;
5328 _ACEOF
5329 rm -f conftest.$ac_objext
5330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5331 (eval $ac_compile) 2>conftest.er1
5332 ac_status=$?
5333 grep -v '^ *+' conftest.er1 >conftest.err
5334 rm -f conftest.er1
5335 cat conftest.err >&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); } &&
5338 { ac_try='test -z "$ac_c_werror_flag"
5339 || test ! -s conftest.err'
5340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5341 (eval $ac_try) 2>&5
5342 ac_status=$?
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); }; } &&
5345 { ac_try='test -s conftest.$ac_objext'
5346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5347 (eval $ac_try) 2>&5
5348 ac_status=$?
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); }; }; then
5351 ac_cv_header_stdc=yes
5352 else
5353 echo "$as_me: failed program was:" >&5
5354 sed 's/^/| /' conftest.$ac_ext >&5
5356 ac_cv_header_stdc=no
5358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5360 if test $ac_cv_header_stdc = yes; then
5361 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5362 cat >conftest.$ac_ext <<_ACEOF
5363 /* confdefs.h. */
5364 _ACEOF
5365 cat confdefs.h >>conftest.$ac_ext
5366 cat >>conftest.$ac_ext <<_ACEOF
5367 /* end confdefs.h. */
5368 #include <string.h>
5370 _ACEOF
5371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5372 $EGREP "memchr" >/dev/null 2>&1; then
5374 else
5375 ac_cv_header_stdc=no
5377 rm -f conftest*
5381 if test $ac_cv_header_stdc = yes; then
5382 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5383 cat >conftest.$ac_ext <<_ACEOF
5384 /* confdefs.h. */
5385 _ACEOF
5386 cat confdefs.h >>conftest.$ac_ext
5387 cat >>conftest.$ac_ext <<_ACEOF
5388 /* end confdefs.h. */
5389 #include <stdlib.h>
5391 _ACEOF
5392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5393 $EGREP "free" >/dev/null 2>&1; then
5395 else
5396 ac_cv_header_stdc=no
5398 rm -f conftest*
5402 if test $ac_cv_header_stdc = yes; then
5403 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5404 if test "$cross_compiling" = yes; then
5406 else
5407 cat >conftest.$ac_ext <<_ACEOF
5408 /* confdefs.h. */
5409 _ACEOF
5410 cat confdefs.h >>conftest.$ac_ext
5411 cat >>conftest.$ac_ext <<_ACEOF
5412 /* end confdefs.h. */
5413 #include <ctype.h>
5414 #if ((' ' & 0x0FF) == 0x020)
5415 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5416 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5417 #else
5418 # define ISLOWER(c) \
5419 (('a' <= (c) && (c) <= 'i') \
5420 || ('j' <= (c) && (c) <= 'r') \
5421 || ('s' <= (c) && (c) <= 'z'))
5422 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5423 #endif
5425 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5427 main ()
5429 int i;
5430 for (i = 0; i < 256; i++)
5431 if (XOR (islower (i), ISLOWER (i))
5432 || toupper (i) != TOUPPER (i))
5433 exit(2);
5434 exit (0);
5436 _ACEOF
5437 rm -f conftest$ac_exeext
5438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5439 (eval $ac_link) 2>&5
5440 ac_status=$?
5441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5444 (eval $ac_try) 2>&5
5445 ac_status=$?
5446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447 (exit $ac_status); }; }; then
5449 else
5450 echo "$as_me: program exited with status $ac_status" >&5
5451 echo "$as_me: failed program was:" >&5
5452 sed 's/^/| /' conftest.$ac_ext >&5
5454 ( exit $ac_status )
5455 ac_cv_header_stdc=no
5457 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5461 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5462 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5463 if test $ac_cv_header_stdc = yes; then
5465 cat >>confdefs.h <<\_ACEOF
5466 #define STDC_HEADERS 1
5467 _ACEOF
5471 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5481 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5482 inttypes.h stdint.h unistd.h
5484 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5485 echo "$as_me:$LINENO: checking for $ac_header" >&5
5486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5488 echo $ECHO_N "(cached) $ECHO_C" >&6
5489 else
5490 cat >conftest.$ac_ext <<_ACEOF
5491 /* confdefs.h. */
5492 _ACEOF
5493 cat confdefs.h >>conftest.$ac_ext
5494 cat >>conftest.$ac_ext <<_ACEOF
5495 /* end confdefs.h. */
5496 $ac_includes_default
5498 #include <$ac_header>
5499 _ACEOF
5500 rm -f conftest.$ac_objext
5501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5502 (eval $ac_compile) 2>conftest.er1
5503 ac_status=$?
5504 grep -v '^ *+' conftest.er1 >conftest.err
5505 rm -f conftest.er1
5506 cat conftest.err >&5
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); } &&
5509 { ac_try='test -z "$ac_c_werror_flag"
5510 || test ! -s conftest.err'
5511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5512 (eval $ac_try) 2>&5
5513 ac_status=$?
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); }; } &&
5516 { ac_try='test -s conftest.$ac_objext'
5517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5518 (eval $ac_try) 2>&5
5519 ac_status=$?
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); }; }; then
5522 eval "$as_ac_Header=yes"
5523 else
5524 echo "$as_me: failed program was:" >&5
5525 sed 's/^/| /' conftest.$ac_ext >&5
5527 eval "$as_ac_Header=no"
5529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5532 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5533 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5534 cat >>confdefs.h <<_ACEOF
5535 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5536 _ACEOF
5540 done
5544 for ac_header in dlfcn.h
5546 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5547 echo "$as_me:$LINENO: checking for $ac_header" >&5
5548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5550 echo $ECHO_N "(cached) $ECHO_C" >&6
5551 else
5552 cat >conftest.$ac_ext <<_ACEOF
5553 /* confdefs.h. */
5554 _ACEOF
5555 cat confdefs.h >>conftest.$ac_ext
5556 cat >>conftest.$ac_ext <<_ACEOF
5557 /* end confdefs.h. */
5558 $ac_includes_default
5560 #include <$ac_header>
5561 _ACEOF
5562 rm -f conftest.$ac_objext
5563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5564 (eval $ac_compile) 2>conftest.er1
5565 ac_status=$?
5566 grep -v '^ *+' conftest.er1 >conftest.err
5567 rm -f conftest.er1
5568 cat conftest.err >&5
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); } &&
5571 { ac_try='test -z "$ac_c_werror_flag"
5572 || test ! -s conftest.err'
5573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5574 (eval $ac_try) 2>&5
5575 ac_status=$?
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); }; } &&
5578 { ac_try='test -s conftest.$ac_objext'
5579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5580 (eval $ac_try) 2>&5
5581 ac_status=$?
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); }; }; then
5584 eval "$as_ac_Header=yes"
5585 else
5586 echo "$as_me: failed program was:" >&5
5587 sed 's/^/| /' conftest.$ac_ext >&5
5589 eval "$as_ac_Header=no"
5591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5594 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5596 cat >>confdefs.h <<_ACEOF
5597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5598 _ACEOF
5602 done
5606 # This can be used to rebuild libtool when needed
5607 LIBTOOL_DEPS="$ltmain"
5609 # Always use our own libtool.
5610 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5636 test -z "$LN_S" && LN_S="ln -s"
5651 if test -n "${ZSH_VERSION+set}" ; then
5652 setopt NO_GLOB_SUBST
5655 echo "$as_me:$LINENO: checking for objdir" >&5
5656 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5657 if test "${lt_cv_objdir+set}" = set; then
5658 echo $ECHO_N "(cached) $ECHO_C" >&6
5659 else
5660 rm -f .libs 2>/dev/null
5661 mkdir .libs 2>/dev/null
5662 if test -d .libs; then
5663 lt_cv_objdir=.libs
5664 else
5665 # MS-DOS does not allow filenames that begin with a dot.
5666 lt_cv_objdir=_libs
5668 rmdir .libs 2>/dev/null
5670 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5671 echo "${ECHO_T}$lt_cv_objdir" >&6
5672 objdir=$lt_cv_objdir
5678 cat >>confdefs.h <<_ACEOF
5679 #define LT_OBJDIR "$lt_cv_objdir/"
5680 _ACEOF
5698 case $host_os in
5699 aix3*)
5700 # AIX sometimes has problems with the GCC collect2 program. For some
5701 # reason, if we set the COLLECT_NAMES environment variable, the problems
5702 # vanish in a puff of smoke.
5703 if test "X${COLLECT_NAMES+set}" != Xset; then
5704 COLLECT_NAMES=
5705 export COLLECT_NAMES
5708 esac
5710 # Sed substitution that helps us do robust quoting. It backslashifies
5711 # metacharacters that are still active within double-quoted strings.
5712 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5714 # Same as above, but do not quote variable references.
5715 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5717 # Sed substitution to delay expansion of an escaped shell variable in a
5718 # double_quote_subst'ed string.
5719 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5721 # Sed substitution to delay expansion of an escaped single quote.
5722 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5724 # Sed substitution to avoid accidental globbing in evaled expressions
5725 no_glob_subst='s/\*/\\\*/g'
5727 # Global variables:
5728 ofile=libtool
5729 can_build_shared=yes
5731 # All known linkers require a `.a' archive for static linking (except MSVC,
5732 # which needs '.lib').
5733 libext=a
5735 with_gnu_ld="$lt_cv_prog_gnu_ld"
5737 old_CC="$CC"
5738 old_CFLAGS="$CFLAGS"
5740 # Set sane defaults for various variables
5741 test -z "$CC" && CC=cc
5742 test -z "$LTCC" && LTCC=$CC
5743 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5744 test -z "$LD" && LD=ld
5745 test -z "$ac_objext" && ac_objext=o
5747 for cc_temp in $compiler""; do
5748 case $cc_temp in
5749 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5750 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5751 \-*) ;;
5752 *) break;;
5753 esac
5754 done
5755 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5758 # Only perform the check for file, if the check method requires it
5759 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5760 case $deplibs_check_method in
5761 file_magic*)
5762 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5763 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5764 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5765 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5766 echo $ECHO_N "(cached) $ECHO_C" >&6
5767 else
5768 case $MAGIC_CMD in
5769 [\\/*] | ?:[\\/]*)
5770 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5773 lt_save_MAGIC_CMD="$MAGIC_CMD"
5774 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5775 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5776 for ac_dir in $ac_dummy; do
5777 IFS="$lt_save_ifs"
5778 test -z "$ac_dir" && ac_dir=.
5779 if test -f $ac_dir/${ac_tool_prefix}file; then
5780 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5781 if test -n "$file_magic_test_file"; then
5782 case $deplibs_check_method in
5783 "file_magic "*)
5784 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5785 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5786 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5787 $EGREP "$file_magic_regex" > /dev/null; then
5789 else
5790 cat <<_LT_EOF 1>&2
5792 *** Warning: the command libtool uses to detect shared libraries,
5793 *** $file_magic_cmd, produces output that libtool cannot recognize.
5794 *** The result is that libtool may fail to recognize shared libraries
5795 *** as such. This will affect the creation of libtool libraries that
5796 *** depend on shared libraries, but programs linked with such libtool
5797 *** libraries will work regardless of this problem. Nevertheless, you
5798 *** may want to report the problem to your system manager and/or to
5799 *** bug-libtool@gnu.org
5801 _LT_EOF
5802 fi ;;
5803 esac
5805 break
5807 done
5808 IFS="$lt_save_ifs"
5809 MAGIC_CMD="$lt_save_MAGIC_CMD"
5811 esac
5814 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5815 if test -n "$MAGIC_CMD"; then
5816 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5817 echo "${ECHO_T}$MAGIC_CMD" >&6
5818 else
5819 echo "$as_me:$LINENO: result: no" >&5
5820 echo "${ECHO_T}no" >&6
5827 if test -z "$lt_cv_path_MAGIC_CMD"; then
5828 if test -n "$ac_tool_prefix"; then
5829 echo "$as_me:$LINENO: checking for file" >&5
5830 echo $ECHO_N "checking for file... $ECHO_C" >&6
5831 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
5833 else
5834 case $MAGIC_CMD in
5835 [\\/*] | ?:[\\/]*)
5836 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5839 lt_save_MAGIC_CMD="$MAGIC_CMD"
5840 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5841 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5842 for ac_dir in $ac_dummy; do
5843 IFS="$lt_save_ifs"
5844 test -z "$ac_dir" && ac_dir=.
5845 if test -f $ac_dir/file; then
5846 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5847 if test -n "$file_magic_test_file"; then
5848 case $deplibs_check_method in
5849 "file_magic "*)
5850 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5851 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5852 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5853 $EGREP "$file_magic_regex" > /dev/null; then
5855 else
5856 cat <<_LT_EOF 1>&2
5858 *** Warning: the command libtool uses to detect shared libraries,
5859 *** $file_magic_cmd, produces output that libtool cannot recognize.
5860 *** The result is that libtool may fail to recognize shared libraries
5861 *** as such. This will affect the creation of libtool libraries that
5862 *** depend on shared libraries, but programs linked with such libtool
5863 *** libraries will work regardless of this problem. Nevertheless, you
5864 *** may want to report the problem to your system manager and/or to
5865 *** bug-libtool@gnu.org
5867 _LT_EOF
5868 fi ;;
5869 esac
5871 break
5873 done
5874 IFS="$lt_save_ifs"
5875 MAGIC_CMD="$lt_save_MAGIC_CMD"
5877 esac
5880 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5881 if test -n "$MAGIC_CMD"; then
5882 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5883 echo "${ECHO_T}$MAGIC_CMD" >&6
5884 else
5885 echo "$as_me:$LINENO: result: no" >&5
5886 echo "${ECHO_T}no" >&6
5890 else
5891 MAGIC_CMD=:
5897 esac
5899 # Use C for the default configuration in the libtool script
5901 lt_save_CC="$CC"
5902 ac_ext=c
5903 ac_cpp='$CPP $CPPFLAGS'
5904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5909 # Source file extension for C test sources.
5910 ac_ext=c
5912 # Object file extension for compiled C test sources.
5913 objext=o
5914 objext=$objext
5916 # Code to be used in simple compile tests
5917 lt_simple_compile_test_code="int some_variable = 0;"
5919 # Code to be used in simple link tests
5920 lt_simple_link_test_code='int main(){return(0);}'
5928 # If no C compiler was specified, use CC.
5929 LTCC=${LTCC-"$CC"}
5931 # If no C compiler flags were specified, use CFLAGS.
5932 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5934 # Allow CC to be a program name with arguments.
5935 compiler=$CC
5937 # Save the default compiler, since it gets overwritten when the other
5938 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5939 compiler_DEFAULT=$CC
5941 # save warnings/boilerplate of simple test code
5942 ac_outfile=conftest.$ac_objext
5943 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
5944 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5945 _lt_compiler_boilerplate=`cat conftest.err`
5946 $RM conftest*
5948 ac_outfile=conftest.$ac_objext
5949 echo "$lt_simple_link_test_code" >conftest.$ac_ext
5950 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5951 _lt_linker_boilerplate=`cat conftest.err`
5952 $RM conftest*
5955 ## CAVEAT EMPTOR:
5956 ## There is no encapsulation within the following macros, do not change
5957 ## the running order or otherwise move them around unless you know exactly
5958 ## what you are doing...
5959 if test -n "$compiler"; then
5961 lt_prog_compiler_no_builtin_flag=
5963 if test "$GCC" = yes; then
5964 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5966 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5967 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5968 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5969 echo $ECHO_N "(cached) $ECHO_C" >&6
5970 else
5971 lt_cv_prog_compiler_rtti_exceptions=no
5972 ac_outfile=conftest.$ac_objext
5973 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5974 lt_compiler_flag="-fno-rtti -fno-exceptions"
5975 # Insert the option either (1) after the last *FLAGS variable, or
5976 # (2) before a word containing "conftest.", or (3) at the end.
5977 # Note that $ac_compile itself does not contain backslashes and begins
5978 # with a dollar sign (not a hyphen), so the echo should work correctly.
5979 # The option is referenced via a variable to avoid confusing sed.
5980 lt_compile=`echo "$ac_compile" | $SED \
5981 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
5982 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5983 -e 's:$: $lt_compiler_flag:'`
5984 (eval echo "\"\$as_me:5984: $lt_compile\"" >&5)
5985 (eval "$lt_compile" 2>conftest.err)
5986 ac_status=$?
5987 cat conftest.err >&5
5988 echo "$as_me:5988: \$? = $ac_status" >&5
5989 if (exit $ac_status) && test -s "$ac_outfile"; then
5990 # The compiler can only warn and ignore the option if not recognized
5991 # So say no if there are warnings other than the usual output.
5992 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
5993 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
5994 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
5995 lt_cv_prog_compiler_rtti_exceptions=yes
5998 $RM conftest*
6001 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6002 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6004 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6005 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6006 else
6017 lt_prog_compiler_wl=
6018 lt_prog_compiler_pic=
6019 lt_prog_compiler_static=
6021 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6022 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6024 if test "$GCC" = yes; then
6025 lt_prog_compiler_wl='-Wl,'
6026 lt_prog_compiler_static='-static'
6028 case $host_os in
6029 aix*)
6030 # All AIX code is PIC.
6031 if test "$host_cpu" = ia64; then
6032 # AIX 5 now supports IA64 processor
6033 lt_prog_compiler_static='-Bstatic'
6037 amigaos*)
6038 if test "$host_cpu" = m68k; then
6039 # FIXME: we need at least 68020 code to build shared libraries, but
6040 # adding the `-m68020' flag to GCC prevents building anything better,
6041 # like `-m68040'.
6042 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6046 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6047 # PIC is the default for these OSes.
6050 mingw* | cygwin* | pw32* | os2*)
6051 # This hack is so that the source file can tell whether it is being
6052 # built for inclusion in a dll (and should export symbols for example).
6053 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6054 # (--disable-auto-import) libraries
6055 lt_prog_compiler_pic='-DDLL_EXPORT'
6058 darwin* | rhapsody*)
6059 # PIC is the default on this platform
6060 # Common symbols not allowed in MH_DYLIB files
6061 lt_prog_compiler_pic='-fno-common'
6064 hpux*)
6065 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6066 # not for PA HP-UX.
6067 case $host_cpu in
6068 hppa*64*|ia64*)
6069 # +Z the default
6072 lt_prog_compiler_pic='-fPIC'
6074 esac
6077 interix[3-9]*)
6078 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6079 # Instead, we relocate shared libraries at runtime.
6082 msdosdjgpp*)
6083 # Just because we use GCC doesn't mean we suddenly get shared libraries
6084 # on systems that don't support them.
6085 lt_prog_compiler_can_build_shared=no
6086 enable_shared=no
6089 *nto* | *qnx*)
6090 # QNX uses GNU C++, but need to define -shared option too, otherwise
6091 # it will coredump.
6092 lt_prog_compiler_pic='-fPIC -shared'
6095 sysv4*MP*)
6096 if test -d /usr/nec; then
6097 lt_prog_compiler_pic=-Kconform_pic
6102 lt_prog_compiler_pic='-fPIC'
6104 esac
6105 else
6106 # PORTME Check for flag to pass linker flags through the system compiler.
6107 case $host_os in
6108 aix*)
6109 lt_prog_compiler_wl='-Wl,'
6110 if test "$host_cpu" = ia64; then
6111 # AIX 5 now supports IA64 processor
6112 lt_prog_compiler_static='-Bstatic'
6113 else
6114 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6117 darwin*)
6118 # PIC is the default on this platform
6119 # Common symbols not allowed in MH_DYLIB files
6120 case $cc_basename in
6121 xlc*)
6122 lt_prog_compiler_pic='-qnocommon'
6123 lt_prog_compiler_wl='-Wl,'
6125 esac
6128 mingw* | cygwin* | pw32* | os2*)
6129 # This hack is so that the source file can tell whether it is being
6130 # built for inclusion in a dll (and should export symbols for example).
6131 lt_prog_compiler_pic='-DDLL_EXPORT'
6134 hpux9* | hpux10* | hpux11*)
6135 lt_prog_compiler_wl='-Wl,'
6136 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6137 # not for PA HP-UX.
6138 case $host_cpu in
6139 hppa*64*|ia64*)
6140 # +Z the default
6143 lt_prog_compiler_pic='+Z'
6145 esac
6146 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6147 lt_prog_compiler_static='${wl}-a ${wl}archive'
6150 irix5* | irix6* | nonstopux*)
6151 lt_prog_compiler_wl='-Wl,'
6152 # PIC (with -KPIC) is the default.
6153 lt_prog_compiler_static='-non_shared'
6156 linux* | k*bsd*-gnu)
6157 case $cc_basename in
6158 icc* | ecc*)
6159 lt_prog_compiler_wl='-Wl,'
6160 lt_prog_compiler_pic='-KPIC'
6161 lt_prog_compiler_static='-static'
6163 pgcc* | pgf77* | pgf90* | pgf95*)
6164 # Portland Group compilers (*not* the Pentium gcc compiler,
6165 # which looks to be a dead project)
6166 lt_prog_compiler_wl='-Wl,'
6167 lt_prog_compiler_pic='-fpic'
6168 lt_prog_compiler_static='-Bstatic'
6170 ccc*)
6171 lt_prog_compiler_wl='-Wl,'
6172 # All Alpha code is PIC.
6173 lt_prog_compiler_static='-non_shared'
6176 case `$CC -V 2>&1 | sed 5q` in
6177 *Sun\ C*)
6178 # Sun C 5.9
6179 lt_prog_compiler_pic='-KPIC'
6180 lt_prog_compiler_static='-Bstatic'
6181 lt_prog_compiler_wl='-Wl,'
6183 *Sun\ F*)
6184 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6185 lt_prog_compiler_pic='-KPIC'
6186 lt_prog_compiler_static='-Bstatic'
6187 lt_prog_compiler_wl=''
6189 esac
6191 esac
6194 newsos6)
6195 lt_prog_compiler_pic='-KPIC'
6196 lt_prog_compiler_static='-Bstatic'
6199 *nto* | *qnx*)
6200 # QNX uses GNU C++, but need to define -shared option too, otherwise
6201 # it will coredump.
6202 lt_prog_compiler_pic='-fPIC -shared'
6205 osf3* | osf4* | osf5*)
6206 lt_prog_compiler_wl='-Wl,'
6207 # All OSF/1 code is PIC.
6208 lt_prog_compiler_static='-non_shared'
6211 rdos*)
6212 lt_prog_compiler_static='-non_shared'
6215 solaris*)
6216 lt_prog_compiler_pic='-KPIC'
6217 lt_prog_compiler_static='-Bstatic'
6218 case $cc_basename in
6219 f77* | f90* | f95*)
6220 lt_prog_compiler_wl='-Qoption ld ';;
6222 lt_prog_compiler_wl='-Wl,';;
6223 esac
6226 sunos4*)
6227 lt_prog_compiler_wl='-Qoption ld '
6228 lt_prog_compiler_pic='-PIC'
6229 lt_prog_compiler_static='-Bstatic'
6232 sysv4 | sysv4.2uw2* | sysv4.3*)
6233 lt_prog_compiler_wl='-Wl,'
6234 lt_prog_compiler_pic='-KPIC'
6235 lt_prog_compiler_static='-Bstatic'
6238 sysv4*MP*)
6239 if test -d /usr/nec ;then
6240 lt_prog_compiler_pic='-Kconform_pic'
6241 lt_prog_compiler_static='-Bstatic'
6245 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6246 lt_prog_compiler_wl='-Wl,'
6247 lt_prog_compiler_pic='-KPIC'
6248 lt_prog_compiler_static='-Bstatic'
6251 unicos*)
6252 lt_prog_compiler_wl='-Wl,'
6253 lt_prog_compiler_can_build_shared=no
6256 uts4*)
6257 lt_prog_compiler_pic='-pic'
6258 lt_prog_compiler_static='-Bstatic'
6262 lt_prog_compiler_can_build_shared=no
6264 esac
6267 case $host_os in
6268 # For platforms which do not support PIC, -DPIC is meaningless:
6269 *djgpp*)
6270 lt_prog_compiler_pic=
6273 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6275 esac
6276 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6277 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6285 # Check to make sure the PIC flag actually works.
6287 if test -n "$lt_prog_compiler_pic"; then
6288 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6289 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6290 if test "${lt_prog_compiler_pic_works+set}" = set; then
6291 echo $ECHO_N "(cached) $ECHO_C" >&6
6292 else
6293 lt_prog_compiler_pic_works=no
6294 ac_outfile=conftest.$ac_objext
6295 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6296 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6297 # Insert the option either (1) after the last *FLAGS variable, or
6298 # (2) before a word containing "conftest.", or (3) at the end.
6299 # Note that $ac_compile itself does not contain backslashes and begins
6300 # with a dollar sign (not a hyphen), so the echo should work correctly.
6301 # The option is referenced via a variable to avoid confusing sed.
6302 lt_compile=`echo "$ac_compile" | $SED \
6303 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6305 -e 's:$: $lt_compiler_flag:'`
6306 (eval echo "\"\$as_me:6306: $lt_compile\"" >&5)
6307 (eval "$lt_compile" 2>conftest.err)
6308 ac_status=$?
6309 cat conftest.err >&5
6310 echo "$as_me:6310: \$? = $ac_status" >&5
6311 if (exit $ac_status) && test -s "$ac_outfile"; then
6312 # The compiler can only warn and ignore the option if not recognized
6313 # So say no if there are warnings other than the usual output.
6314 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6315 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6316 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6317 lt_prog_compiler_pic_works=yes
6320 $RM conftest*
6323 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6324 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6326 if test x"$lt_prog_compiler_pic_works" = xyes; then
6327 case $lt_prog_compiler_pic in
6328 "" | " "*) ;;
6329 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6330 esac
6331 else
6332 lt_prog_compiler_pic=
6333 lt_prog_compiler_can_build_shared=no
6344 # Check to make sure the static flag actually works.
6346 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6347 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6348 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6349 if test "${lt_prog_compiler_static_works+set}" = set; then
6350 echo $ECHO_N "(cached) $ECHO_C" >&6
6351 else
6352 lt_prog_compiler_static_works=no
6353 save_LDFLAGS="$LDFLAGS"
6354 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6355 echo "$lt_simple_link_test_code" > conftest.$ac_ext
6356 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6357 # The linker can only warn and ignore the option if not recognized
6358 # So say no if there are warnings
6359 if test -s conftest.err; then
6360 # Append any errors to the config.log.
6361 cat conftest.err 1>&5
6362 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6363 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6364 if diff conftest.exp conftest.er2 >/dev/null; then
6365 lt_prog_compiler_static_works=yes
6367 else
6368 lt_prog_compiler_static_works=yes
6371 $RM conftest*
6372 LDFLAGS="$save_LDFLAGS"
6375 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6376 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6378 if test x"$lt_prog_compiler_static_works" = xyes; then
6380 else
6381 lt_prog_compiler_static=
6390 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6391 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6392 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6393 echo $ECHO_N "(cached) $ECHO_C" >&6
6394 else
6395 lt_cv_prog_compiler_c_o=no
6396 $RM -r conftest 2>/dev/null
6397 mkdir conftest
6398 cd conftest
6399 mkdir out
6400 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6402 lt_compiler_flag="-o out/conftest2.$ac_objext"
6403 # Insert the option either (1) after the last *FLAGS variable, or
6404 # (2) before a word containing "conftest.", or (3) at the end.
6405 # Note that $ac_compile itself does not contain backslashes and begins
6406 # with a dollar sign (not a hyphen), so the echo should work correctly.
6407 lt_compile=`echo "$ac_compile" | $SED \
6408 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6409 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6410 -e 's:$: $lt_compiler_flag:'`
6411 (eval echo "\"\$as_me:6411: $lt_compile\"" >&5)
6412 (eval "$lt_compile" 2>out/conftest.err)
6413 ac_status=$?
6414 cat out/conftest.err >&5
6415 echo "$as_me:6415: \$? = $ac_status" >&5
6416 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6417 then
6418 # The compiler can only warn and ignore the option if not recognized
6419 # So say no if there are warnings
6420 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6421 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6422 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6423 lt_cv_prog_compiler_c_o=yes
6426 chmod u+w . 2>&5
6427 $RM conftest*
6428 # SGI C++ compiler will create directory out/ii_files/ for
6429 # template instantiation
6430 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6431 $RM out/* && rmdir out
6432 cd ..
6433 $RM -r conftest
6434 $RM conftest*
6437 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6438 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6445 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6446 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6447 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6448 echo $ECHO_N "(cached) $ECHO_C" >&6
6449 else
6450 lt_cv_prog_compiler_c_o=no
6451 $RM -r conftest 2>/dev/null
6452 mkdir conftest
6453 cd conftest
6454 mkdir out
6455 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6457 lt_compiler_flag="-o out/conftest2.$ac_objext"
6458 # Insert the option either (1) after the last *FLAGS variable, or
6459 # (2) before a word containing "conftest.", or (3) at the end.
6460 # Note that $ac_compile itself does not contain backslashes and begins
6461 # with a dollar sign (not a hyphen), so the echo should work correctly.
6462 lt_compile=`echo "$ac_compile" | $SED \
6463 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6464 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6465 -e 's:$: $lt_compiler_flag:'`
6466 (eval echo "\"\$as_me:6466: $lt_compile\"" >&5)
6467 (eval "$lt_compile" 2>out/conftest.err)
6468 ac_status=$?
6469 cat out/conftest.err >&5
6470 echo "$as_me:6470: \$? = $ac_status" >&5
6471 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6472 then
6473 # The compiler can only warn and ignore the option if not recognized
6474 # So say no if there are warnings
6475 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6476 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6477 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6478 lt_cv_prog_compiler_c_o=yes
6481 chmod u+w . 2>&5
6482 $RM conftest*
6483 # SGI C++ compiler will create directory out/ii_files/ for
6484 # template instantiation
6485 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6486 $RM out/* && rmdir out
6487 cd ..
6488 $RM -r conftest
6489 $RM conftest*
6492 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6493 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6498 hard_links="nottested"
6499 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6500 # do not overwrite the value of need_locks provided by the user
6501 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6502 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6503 hard_links=yes
6504 $RM conftest*
6505 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6506 touch conftest.a
6507 ln conftest.a conftest.b 2>&5 || hard_links=no
6508 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6509 echo "$as_me:$LINENO: result: $hard_links" >&5
6510 echo "${ECHO_T}$hard_links" >&6
6511 if test "$hard_links" = no; then
6512 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6513 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6514 need_locks=warn
6516 else
6517 need_locks=no
6525 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6526 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6528 runpath_var=
6529 allow_undefined_flag=
6530 always_export_symbols=no
6531 archive_cmds=
6532 archive_expsym_cmds=
6533 compiler_needs_object=no
6534 enable_shared_with_static_runtimes=no
6535 export_dynamic_flag_spec=
6536 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6537 hardcode_automatic=no
6538 hardcode_direct=no
6539 hardcode_direct_absolute=no
6540 hardcode_libdir_flag_spec=
6541 hardcode_libdir_flag_spec_ld=
6542 hardcode_libdir_separator=
6543 hardcode_minus_L=no
6544 hardcode_shlibpath_var=unsupported
6545 inherit_rpath=no
6546 link_all_deplibs=unknown
6547 module_cmds=
6548 module_expsym_cmds=
6549 old_archive_from_new_cmds=
6550 old_archive_from_expsyms_cmds=
6551 thread_safe_flag_spec=
6552 whole_archive_flag_spec=
6553 # include_expsyms should be a list of space-separated symbols to be *always*
6554 # included in the symbol list
6555 include_expsyms=
6556 # exclude_expsyms can be an extended regexp of symbols to exclude
6557 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6558 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6559 # as well as any symbol that contains `d'.
6560 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6561 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6562 # platforms (ab)use it in PIC code, but their linkers get confused if
6563 # the symbol is explicitly referenced. Since portable code cannot
6564 # rely on this symbol name, it's probably fine to never include it in
6565 # preloaded symbol tables.
6566 extract_expsyms_cmds=
6568 case $host_os in
6569 cygwin* | mingw* | pw32*)
6570 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6571 # When not using gcc, we currently assume that we are using
6572 # Microsoft Visual C++.
6573 if test "$GCC" != yes; then
6574 with_gnu_ld=no
6577 interix*)
6578 # we just hope/assume this is gcc and not c89 (= MSVC++)
6579 with_gnu_ld=yes
6581 openbsd*)
6582 with_gnu_ld=no
6584 esac
6586 ld_shlibs=yes
6587 if test "$with_gnu_ld" = yes; then
6588 # If archive_cmds runs LD, not CC, wlarc should be empty
6589 wlarc='${wl}'
6591 # Set some defaults for GNU ld with shared library support. These
6592 # are reset later if shared libraries are not supported. Putting them
6593 # here allows them to be overridden if necessary.
6594 runpath_var=LD_RUN_PATH
6595 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6596 export_dynamic_flag_spec='${wl}--export-dynamic'
6597 # ancient GNU ld didn't support --whole-archive et. al.
6598 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
6599 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6600 else
6601 whole_archive_flag_spec=
6603 supports_anon_versioning=no
6604 case `$LD -v 2>&1` in
6605 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6606 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6607 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6608 *\ 2.11.*) ;; # other 2.11 versions
6609 *) supports_anon_versioning=yes ;;
6610 esac
6612 # See if GNU ld supports shared libraries.
6613 case $host_os in
6614 aix[3-9]*)
6615 # On AIX/PPC, the GNU linker is very broken
6616 if test "$host_cpu" != ia64; then
6617 ld_shlibs=no
6618 cat <<_LT_EOF 1>&2
6620 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6621 *** to be unable to reliably create shared libraries on AIX.
6622 *** Therefore, libtool is disabling shared libraries support. If you
6623 *** really care for shared libraries, you may want to modify your PATH
6624 *** so that a non-GNU linker is found, and then restart.
6626 _LT_EOF
6630 amigaos*)
6631 if test "$host_cpu" = m68k; then
6632 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)'
6633 hardcode_libdir_flag_spec='-L$libdir'
6634 hardcode_minus_L=yes
6637 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6638 # that the semantics of dynamic libraries on AmigaOS, at least up
6639 # to version 4, is to share data among multiple programs linked
6640 # with the same dynamic library. Since this doesn't match the
6641 # behavior of shared libraries on other platforms, we can't use
6642 # them.
6643 ld_shlibs=no
6646 beos*)
6647 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6648 allow_undefined_flag=unsupported
6649 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6650 # support --undefined. This deserves some investigation. FIXME
6651 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6652 else
6653 ld_shlibs=no
6657 cygwin* | mingw* | pw32*)
6658 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6659 # as there is no search path for DLLs.
6660 hardcode_libdir_flag_spec='-L$libdir'
6661 allow_undefined_flag=unsupported
6662 always_export_symbols=no
6663 enable_shared_with_static_runtimes=yes
6664 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
6666 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6667 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6668 # If the export-symbols file already is a .def file (1st line
6669 # is EXPORTS), use it as is; otherwise, prepend...
6670 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6671 cp $export_symbols $output_objdir/$soname.def;
6672 else
6673 echo EXPORTS > $output_objdir/$soname.def;
6674 cat $export_symbols >> $output_objdir/$soname.def;
6676 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6677 else
6678 ld_shlibs=no
6682 interix[3-9]*)
6683 hardcode_direct=no
6684 hardcode_shlibpath_var=no
6685 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6686 export_dynamic_flag_spec='${wl}-E'
6687 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6688 # Instead, shared libraries are loaded at an image base (0x10000000 by
6689 # default) and relocated if they conflict, which is a slow very memory
6690 # consuming and fragmenting process. To avoid this, we pick a random,
6691 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6692 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6693 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6694 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'
6697 gnu* | linux* | tpf* | k*bsd*-gnu)
6698 tmp_diet=no
6699 if test "$host_os" = linux-dietlibc; then
6700 case $cc_basename in
6701 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
6702 esac
6704 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
6705 && test "$tmp_diet" = no
6706 then
6707 tmp_addflag=
6708 case $cc_basename,$host_cpu in
6709 pgcc*) # Portland Group C compiler
6710 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'
6711 tmp_addflag=' $pic_flag'
6713 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6714 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'
6715 tmp_addflag=' $pic_flag -Mnomain' ;;
6716 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6717 tmp_addflag=' -i_dynamic' ;;
6718 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6719 tmp_addflag=' -i_dynamic -nofor_main' ;;
6720 ifc* | ifort*) # Intel Fortran compiler
6721 tmp_addflag=' -nofor_main' ;;
6722 esac
6723 case `$CC -V 2>&1 | sed 5q` in
6724 *Sun\ C*) # Sun C 5.9
6725 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'
6726 compiler_needs_object=yes
6727 tmp_sharedflag='-G' ;;
6728 *Sun\ F*) # Sun Fortran 8.3
6729 tmp_sharedflag='-G' ;;
6731 tmp_sharedflag='-shared' ;;
6732 esac
6733 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6735 if test "x$supports_anon_versioning" = xyes; then
6736 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
6737 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6738 echo "local: *; };" >> $output_objdir/$libname.ver~
6739 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6741 else
6742 ld_shlibs=no
6746 netbsd*)
6747 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6748 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6749 wlarc=
6750 else
6751 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6752 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6756 solaris*)
6757 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
6758 ld_shlibs=no
6759 cat <<_LT_EOF 1>&2
6761 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6762 *** create shared libraries on Solaris systems. Therefore, libtool
6763 *** is disabling shared libraries support. We urge you to upgrade GNU
6764 *** binutils to release 2.9.1 or newer. Another option is to modify
6765 *** your PATH or compiler configuration so that the native linker is
6766 *** used, and then restart.
6768 _LT_EOF
6769 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6770 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6771 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6772 else
6773 ld_shlibs=no
6777 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6778 case `$LD -v 2>&1` in
6779 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6780 ld_shlibs=no
6781 cat <<_LT_EOF 1>&2
6783 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6784 *** reliably create shared libraries on SCO systems. Therefore, libtool
6785 *** is disabling shared libraries support. We urge you to upgrade GNU
6786 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6787 *** your PATH or compiler configuration so that the native linker is
6788 *** used, and then restart.
6790 _LT_EOF
6793 # For security reasons, it is highly recommended that you always
6794 # use absolute paths for naming shared libraries, and exclude the
6795 # DT_RUNPATH tag from executables and libraries. But doing so
6796 # requires that you compile everything twice, which is a pain.
6797 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6798 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6799 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6800 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6801 else
6802 ld_shlibs=no
6805 esac
6808 sunos4*)
6809 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6810 wlarc=
6811 hardcode_direct=yes
6812 hardcode_shlibpath_var=no
6816 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6817 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6818 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6819 else
6820 ld_shlibs=no
6823 esac
6825 if test "$ld_shlibs" = no; then
6826 runpath_var=
6827 hardcode_libdir_flag_spec=
6828 export_dynamic_flag_spec=
6829 whole_archive_flag_spec=
6831 else
6832 # PORTME fill in a description of your system's linker (not GNU ld)
6833 case $host_os in
6834 aix3*)
6835 allow_undefined_flag=unsupported
6836 always_export_symbols=yes
6837 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'
6838 # Note: this linker hardcodes the directories in LIBPATH if there
6839 # are no directories specified by -L.
6840 hardcode_minus_L=yes
6841 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6842 # Neither direct hardcoding nor static linking is supported with a
6843 # broken collect2.
6844 hardcode_direct=unsupported
6848 aix[4-9]*)
6849 if test "$host_cpu" = ia64; then
6850 # On IA64, the linker does run time linking by default, so we don't
6851 # have to do anything special.
6852 aix_use_runtimelinking=no
6853 exp_sym_flag='-Bexport'
6854 no_entry_flag=""
6855 else
6856 # If we're using GNU nm, then we don't want the "-C" option.
6857 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6858 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
6859 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'
6860 else
6861 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'
6863 aix_use_runtimelinking=no
6865 # Test if we are trying to use run time linking or normal
6866 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6867 # need to do runtime linking.
6868 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
6869 for ld_flag in $LDFLAGS; do
6870 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6871 aix_use_runtimelinking=yes
6872 break
6874 done
6876 esac
6878 exp_sym_flag='-bexport'
6879 no_entry_flag='-bnoentry'
6882 # When large executables or shared objects are built, AIX ld can
6883 # have problems creating the table of contents. If linking a library
6884 # or program results in "error TOC overflow" add -mminimal-toc to
6885 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6886 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6888 archive_cmds=''
6889 hardcode_direct=yes
6890 hardcode_direct_absolute=yes
6891 hardcode_libdir_separator=':'
6892 link_all_deplibs=yes
6893 file_list_spec='${wl}-f,'
6895 if test "$GCC" = yes; then
6896 case $host_os in aix4.[012]|aix4.[012].*)
6897 # We only want to do this on AIX 4.2 and lower, the check
6898 # below for broken collect2 doesn't work under 4.3+
6899 collect2name=`${CC} -print-prog-name=collect2`
6900 if test -f "$collect2name" &&
6901 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6902 then
6903 # We have reworked collect2
6905 else
6906 # We have old collect2
6907 hardcode_direct=unsupported
6908 # It fails to find uninstalled libraries when the uninstalled
6909 # path is not listed in the libpath. Setting hardcode_minus_L
6910 # to unsupported forces relinking
6911 hardcode_minus_L=yes
6912 hardcode_libdir_flag_spec='-L$libdir'
6913 hardcode_libdir_separator=
6916 esac
6917 shared_flag='-shared'
6918 if test "$aix_use_runtimelinking" = yes; then
6919 shared_flag="$shared_flag "'${wl}-G'
6921 else
6922 # not using gcc
6923 if test "$host_cpu" = ia64; then
6924 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6925 # chokes on -Wl,-G. The following line is correct:
6926 shared_flag='-G'
6927 else
6928 if test "$aix_use_runtimelinking" = yes; then
6929 shared_flag='${wl}-G'
6930 else
6931 shared_flag='${wl}-bM:SRE'
6936 # It seems that -bexpall does not export symbols beginning with
6937 # underscore (_), so it is better to generate a list of symbols to export.
6938 always_export_symbols=yes
6939 if test "$aix_use_runtimelinking" = yes; then
6940 # Warning - without using the other runtime loading flags (-brtl),
6941 # -berok will link without error, but may produce a broken library.
6942 allow_undefined_flag='-berok'
6943 # Determine the default libpath from the value encoded in an
6944 # empty executable.
6945 cat >conftest.$ac_ext <<_ACEOF
6946 /* confdefs.h. */
6947 _ACEOF
6948 cat confdefs.h >>conftest.$ac_ext
6949 cat >>conftest.$ac_ext <<_ACEOF
6950 /* end confdefs.h. */
6953 main ()
6957 return 0;
6959 _ACEOF
6960 rm -f conftest.$ac_objext conftest$ac_exeext
6961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6962 (eval $ac_link) 2>conftest.er1
6963 ac_status=$?
6964 grep -v '^ *+' conftest.er1 >conftest.err
6965 rm -f conftest.er1
6966 cat conftest.err >&5
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); } &&
6969 { ac_try='test -z "$ac_c_werror_flag"
6970 || test ! -s conftest.err'
6971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6972 (eval $ac_try) 2>&5
6973 ac_status=$?
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); }; } &&
6976 { ac_try='test -s conftest$ac_exeext'
6977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6978 (eval $ac_try) 2>&5
6979 ac_status=$?
6980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 (exit $ac_status); }; }; then
6983 lt_aix_libpath_sed='
6984 /Import File Strings/,/^$/ {
6985 /^0/ {
6986 s/^0 *\(.*\)$/\1/
6990 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6991 # Check for a 64-bit object if we didn't find anything.
6992 if test -z "$aix_libpath"; then
6993 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
6995 else
6996 echo "$as_me: failed program was:" >&5
6997 sed 's/^/| /' conftest.$ac_ext >&5
7000 rm -f conftest.err conftest.$ac_objext \
7001 conftest$ac_exeext conftest.$ac_ext
7002 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7004 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7005 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"
7006 else
7007 if test "$host_cpu" = ia64; then
7008 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7009 allow_undefined_flag="-z nodefs"
7010 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"
7011 else
7012 # Determine the default libpath from the value encoded in an
7013 # empty executable.
7014 cat >conftest.$ac_ext <<_ACEOF
7015 /* confdefs.h. */
7016 _ACEOF
7017 cat confdefs.h >>conftest.$ac_ext
7018 cat >>conftest.$ac_ext <<_ACEOF
7019 /* end confdefs.h. */
7022 main ()
7026 return 0;
7028 _ACEOF
7029 rm -f conftest.$ac_objext conftest$ac_exeext
7030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7031 (eval $ac_link) 2>conftest.er1
7032 ac_status=$?
7033 grep -v '^ *+' conftest.er1 >conftest.err
7034 rm -f conftest.er1
7035 cat conftest.err >&5
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); } &&
7038 { ac_try='test -z "$ac_c_werror_flag"
7039 || test ! -s conftest.err'
7040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7041 (eval $ac_try) 2>&5
7042 ac_status=$?
7043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044 (exit $ac_status); }; } &&
7045 { ac_try='test -s conftest$ac_exeext'
7046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7047 (eval $ac_try) 2>&5
7048 ac_status=$?
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); }; }; then
7052 lt_aix_libpath_sed='
7053 /Import File Strings/,/^$/ {
7054 /^0/ {
7055 s/^0 *\(.*\)$/\1/
7059 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7060 # Check for a 64-bit object if we didn't find anything.
7061 if test -z "$aix_libpath"; then
7062 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7064 else
7065 echo "$as_me: failed program was:" >&5
7066 sed 's/^/| /' conftest.$ac_ext >&5
7069 rm -f conftest.err conftest.$ac_objext \
7070 conftest$ac_exeext conftest.$ac_ext
7071 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7073 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7074 # Warning - without using the other run time loading flags,
7075 # -berok will link without error, but may produce a broken library.
7076 no_undefined_flag=' ${wl}-bernotok'
7077 allow_undefined_flag=' ${wl}-berok'
7078 # Exported symbols can be pulled into shared objects from archives
7079 whole_archive_flag_spec='$convenience'
7080 archive_cmds_need_lc=yes
7081 # This is similar to how AIX traditionally builds its shared libraries.
7082 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'
7087 amigaos*)
7088 if test "$host_cpu" = m68k; then
7089 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)'
7090 hardcode_libdir_flag_spec='-L$libdir'
7091 hardcode_minus_L=yes
7093 # see comment about different semantics on the GNU ld section
7094 ld_shlibs=no
7097 bsdi[45]*)
7098 export_dynamic_flag_spec=-rdynamic
7101 cygwin* | mingw* | pw32*)
7102 # When not using gcc, we currently assume that we are using
7103 # Microsoft Visual C++.
7104 # hardcode_libdir_flag_spec is actually meaningless, as there is
7105 # no search path for DLLs.
7106 hardcode_libdir_flag_spec=' '
7107 allow_undefined_flag=unsupported
7108 # Tell ltmain to make .lib files, not .a files.
7109 libext=lib
7110 # Tell ltmain to make .dll files, not .so files.
7111 shrext_cmds=".dll"
7112 # FIXME: Setting linknames here is a bad hack.
7113 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7114 # The linker will automatically build a .lib file if we build a DLL.
7115 old_archive_from_new_cmds='true'
7116 # FIXME: Should let the user specify the lib program.
7117 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7118 fix_srcfile_path='`cygpath -w "$srcfile"`'
7119 enable_shared_with_static_runtimes=yes
7122 darwin* | rhapsody*)
7123 case $host_os in
7124 rhapsody* | darwin1.[012])
7125 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7127 *) # Darwin 1.3 on
7128 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7129 10.[012])
7130 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7132 10.*)
7133 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7135 esac
7137 esac
7138 archive_cmds_need_lc=no
7139 hardcode_direct=no
7140 hardcode_automatic=yes
7141 hardcode_shlibpath_var=unsupported
7142 whole_archive_flag_spec=''
7143 link_all_deplibs=yes
7144 if test "$GCC" = yes ; then
7145 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
7147 else
7148 lt_cv_apple_cc_single_mod=no
7149 if test -z "${LT_MULTI_MODULE}"; then
7150 # By default we will add the -single_module flag. You can override
7151 # by either setting the environment variable LT_MULTI_MODULE
7152 # non-empty at configure time, or by adding -multi-module to the
7153 # link flags.
7154 echo "int foo(void){return 1;}" > conftest.c
7155 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7156 -dynamiclib ${wl}-single_module conftest.c
7157 if test -f libconftest.dylib; then
7158 lt_cv_apple_cc_single_mod=yes
7159 rm libconftest.dylib
7161 rm conftest.$ac_ext
7165 output_verbose_link_cmd=echo
7166 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7167 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7168 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7169 else
7170 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7171 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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7173 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7174 module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7175 else
7176 case $cc_basename in
7177 xlc*)
7178 output_verbose_link_cmd=echo
7179 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7180 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7181 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7182 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7183 module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7186 ld_shlibs=no
7188 esac
7192 dgux*)
7193 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7194 hardcode_libdir_flag_spec='-L$libdir'
7195 hardcode_shlibpath_var=no
7198 freebsd1*)
7199 ld_shlibs=no
7202 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7203 # support. Future versions do this automatically, but an explicit c++rt0.o
7204 # does not break anything, and helps significantly (at the cost of a little
7205 # extra space).
7206 freebsd2.2*)
7207 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7208 hardcode_libdir_flag_spec='-R$libdir'
7209 hardcode_direct=yes
7210 hardcode_shlibpath_var=no
7213 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7214 freebsd2*)
7215 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7216 hardcode_direct=yes
7217 hardcode_minus_L=yes
7218 hardcode_shlibpath_var=no
7221 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7222 freebsd* | dragonfly*)
7223 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7224 hardcode_libdir_flag_spec='-R$libdir'
7225 hardcode_direct=yes
7226 hardcode_shlibpath_var=no
7229 hpux9*)
7230 if test "$GCC" = yes; then
7231 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'
7232 else
7233 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'
7235 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7236 hardcode_libdir_separator=:
7237 hardcode_direct=yes
7239 # hardcode_minus_L: Not really in the search PATH,
7240 # but as the default location of the library.
7241 hardcode_minus_L=yes
7242 export_dynamic_flag_spec='${wl}-E'
7245 hpux10*)
7246 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7247 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7248 else
7249 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7251 if test "$with_gnu_ld" = no; then
7252 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7253 hardcode_libdir_flag_spec_ld='+b $libdir'
7254 hardcode_libdir_separator=:
7255 hardcode_direct=yes
7256 hardcode_direct_absolute=yes
7257 export_dynamic_flag_spec='${wl}-E'
7258 # hardcode_minus_L: Not really in the search PATH,
7259 # but as the default location of the library.
7260 hardcode_minus_L=yes
7264 hpux11*)
7265 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7266 case $host_cpu in
7267 hppa*64*)
7268 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7270 ia64*)
7271 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7274 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7276 esac
7277 else
7278 case $host_cpu in
7279 hppa*64*)
7280 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7282 ia64*)
7283 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7286 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7288 esac
7290 if test "$with_gnu_ld" = no; then
7291 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7292 hardcode_libdir_separator=:
7294 case $host_cpu in
7295 hppa*64*|ia64*)
7296 hardcode_direct=no
7297 hardcode_shlibpath_var=no
7300 hardcode_direct=yes
7301 hardcode_direct_absolute=yes
7302 export_dynamic_flag_spec='${wl}-E'
7304 # hardcode_minus_L: Not really in the search PATH,
7305 # but as the default location of the library.
7306 hardcode_minus_L=yes
7308 esac
7312 irix5* | irix6* | nonstopux*)
7313 if test "$GCC" = yes; then
7314 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'
7315 # Try to use the -exported_symbol ld option, if it does not
7316 # work, assume that -exports_file does not work either and
7317 # implicitly export all symbols.
7318 save_LDFLAGS="$LDFLAGS"
7319 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7320 cat >conftest.$ac_ext <<_ACEOF
7321 int foo(void) {}
7322 _ACEOF
7323 rm -f conftest.$ac_objext conftest$ac_exeext
7324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7325 (eval $ac_link) 2>conftest.er1
7326 ac_status=$?
7327 grep -v '^ *+' conftest.er1 >conftest.err
7328 rm -f conftest.er1
7329 cat conftest.err >&5
7330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331 (exit $ac_status); } &&
7332 { ac_try='test -z "$ac_c_werror_flag"
7333 || test ! -s conftest.err'
7334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7335 (eval $ac_try) 2>&5
7336 ac_status=$?
7337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 (exit $ac_status); }; } &&
7339 { ac_try='test -s conftest$ac_exeext'
7340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7341 (eval $ac_try) 2>&5
7342 ac_status=$?
7343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344 (exit $ac_status); }; }; then
7345 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'
7347 else
7348 echo "$as_me: failed program was:" >&5
7349 sed 's/^/| /' conftest.$ac_ext >&5
7352 rm -f conftest.err conftest.$ac_objext \
7353 conftest$ac_exeext conftest.$ac_ext
7354 LDFLAGS="$save_LDFLAGS"
7355 else
7356 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'
7357 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'
7359 archive_cmds_need_lc='no'
7360 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7361 hardcode_libdir_separator=:
7362 inherit_rpath=yes
7363 link_all_deplibs=yes
7366 netbsd*)
7367 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7368 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7369 else
7370 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7372 hardcode_libdir_flag_spec='-R$libdir'
7373 hardcode_direct=yes
7374 hardcode_shlibpath_var=no
7377 newsos6)
7378 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7379 hardcode_direct=yes
7380 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7381 hardcode_libdir_separator=:
7382 hardcode_shlibpath_var=no
7385 *nto* | *qnx*)
7388 openbsd*)
7389 hardcode_direct=yes
7390 hardcode_shlibpath_var=no
7391 hardcode_direct_absolute=yes
7392 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7393 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7394 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7395 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7396 export_dynamic_flag_spec='${wl}-E'
7397 else
7398 case $host_os in
7399 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7400 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7401 hardcode_libdir_flag_spec='-R$libdir'
7404 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7405 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7407 esac
7411 os2*)
7412 hardcode_libdir_flag_spec='-L$libdir'
7413 hardcode_minus_L=yes
7414 allow_undefined_flag=unsupported
7415 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'
7416 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7419 osf3*)
7420 if test "$GCC" = yes; then
7421 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7422 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'
7423 else
7424 allow_undefined_flag=' -expect_unresolved \*'
7425 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'
7427 archive_cmds_need_lc='no'
7428 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7429 hardcode_libdir_separator=:
7432 osf4* | osf5*) # as osf3* with the addition of -msym flag
7433 if test "$GCC" = yes; then
7434 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7435 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'
7436 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7437 else
7438 allow_undefined_flag=' -expect_unresolved \*'
7439 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'
7440 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~
7441 $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'
7443 # Both c and cxx compiler support -rpath directly
7444 hardcode_libdir_flag_spec='-rpath $libdir'
7446 archive_cmds_need_lc='no'
7447 hardcode_libdir_separator=:
7450 solaris*)
7451 no_undefined_flag=' -z defs'
7452 if test "$GCC" = yes; then
7453 wlarc='${wl}'
7454 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7455 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7456 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7457 else
7458 case `$CC -V 2>&1` in
7459 *"Compilers 5.0"*)
7460 wlarc=''
7461 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7462 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7463 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7466 wlarc='${wl}'
7467 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7468 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7469 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7471 esac
7473 hardcode_libdir_flag_spec='-R$libdir'
7474 hardcode_shlibpath_var=no
7475 case $host_os in
7476 solaris2.[0-5] | solaris2.[0-5].*) ;;
7478 # The compiler driver will combine and reorder linker options,
7479 # but understands `-z linker_flag'. GCC discards it without `$wl',
7480 # but is careful enough not to reorder.
7481 # Supported since Solaris 2.6 (maybe 2.5.1?)
7482 if test "$GCC" = yes; then
7483 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7484 else
7485 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7488 esac
7489 link_all_deplibs=yes
7492 sunos4*)
7493 if test "x$host_vendor" = xsequent; then
7494 # Use $CC to link under sequent, because it throws in some extra .o
7495 # files that make .init and .fini sections work.
7496 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7497 else
7498 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7500 hardcode_libdir_flag_spec='-L$libdir'
7501 hardcode_direct=yes
7502 hardcode_minus_L=yes
7503 hardcode_shlibpath_var=no
7506 sysv4)
7507 case $host_vendor in
7508 sni)
7509 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7510 hardcode_direct=yes # is this really true???
7512 siemens)
7513 ## LD is ld it makes a PLAMLIB
7514 ## CC just makes a GrossModule.
7515 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7516 reload_cmds='$CC -r -o $output$reload_objs'
7517 hardcode_direct=no
7519 motorola)
7520 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7521 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7523 esac
7524 runpath_var='LD_RUN_PATH'
7525 hardcode_shlibpath_var=no
7528 sysv4.3*)
7529 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7530 hardcode_shlibpath_var=no
7531 export_dynamic_flag_spec='-Bexport'
7534 sysv4*MP*)
7535 if test -d /usr/nec; then
7536 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7537 hardcode_shlibpath_var=no
7538 runpath_var=LD_RUN_PATH
7539 hardcode_runpath_var=yes
7540 ld_shlibs=yes
7544 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7545 no_undefined_flag='${wl}-z,text'
7546 archive_cmds_need_lc=no
7547 hardcode_shlibpath_var=no
7548 runpath_var='LD_RUN_PATH'
7550 if test "$GCC" = yes; then
7551 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7552 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7553 else
7554 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7555 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7559 sysv5* | sco3.2v5* | sco5v6*)
7560 # Note: We can NOT use -z defs as we might desire, because we do not
7561 # link with -lc, and that would cause any symbols used from libc to
7562 # always be unresolved, which means just about no library would
7563 # ever link correctly. If we're not using GNU ld we use -z text
7564 # though, which does catch some bad symbols but isn't as heavy-handed
7565 # as -z defs.
7566 no_undefined_flag='${wl}-z,text'
7567 allow_undefined_flag='${wl}-z,nodefs'
7568 archive_cmds_need_lc=no
7569 hardcode_shlibpath_var=no
7570 hardcode_libdir_flag_spec='${wl}-R,$libdir'
7571 hardcode_libdir_separator=':'
7572 link_all_deplibs=yes
7573 export_dynamic_flag_spec='${wl}-Bexport'
7574 runpath_var='LD_RUN_PATH'
7576 if test "$GCC" = yes; then
7577 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7578 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7579 else
7580 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7581 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7585 uts4*)
7586 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7587 hardcode_libdir_flag_spec='-L$libdir'
7588 hardcode_shlibpath_var=no
7592 ld_shlibs=no
7594 esac
7596 if test x$host_vendor = xsni; then
7597 case $host in
7598 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7599 export_dynamic_flag_spec='${wl}-Blargedynsym'
7601 esac
7605 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7606 echo "${ECHO_T}$ld_shlibs" >&6
7607 test "$ld_shlibs" = no && can_build_shared=no
7609 with_gnu_ld=$with_gnu_ld
7626 # Do we need to explicitly link libc?
7628 case "x$archive_cmds_need_lc" in
7629 x|xyes)
7630 # Assume -lc should be added
7631 archive_cmds_need_lc=yes
7633 if test "$enable_shared" = yes && test "$GCC" = yes; then
7634 case $archive_cmds in
7635 *'~'*)
7636 # FIXME: we may have to deal with multi-command sequences.
7638 '$CC '*)
7639 # Test whether the compiler implicitly links with -lc since on some
7640 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7641 # to ld, don't add -lc before -lgcc.
7642 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7643 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7644 $RM conftest*
7645 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7648 (eval $ac_compile) 2>&5
7649 ac_status=$?
7650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651 (exit $ac_status); } 2>conftest.err; then
7652 soname=conftest
7653 lib=conftest
7654 libobjs=conftest.$ac_objext
7655 deplibs=
7656 wl=$lt_prog_compiler_wl
7657 pic_flag=$lt_prog_compiler_pic
7658 compiler_flags=-v
7659 linker_flags=-v
7660 verstring=
7661 output_objdir=.
7662 libname=conftest
7663 lt_save_allow_undefined_flag=$allow_undefined_flag
7664 allow_undefined_flag=
7665 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
7666 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
7667 ac_status=$?
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); }
7670 then
7671 archive_cmds_need_lc=no
7672 else
7673 archive_cmds_need_lc=yes
7675 allow_undefined_flag=$lt_save_allow_undefined_flag
7676 else
7677 cat conftest.err 1>&5
7679 $RM conftest*
7680 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7681 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7683 esac
7686 esac
7844 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7845 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7846 withGCC=$GCC
7847 if test "$withGCC" = yes; then
7848 case $host_os in
7849 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
7850 *) lt_awk_arg="/^libraries:/" ;;
7851 esac
7852 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7853 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
7854 # if the path contains ";" then we assume it to be the separator
7855 # otherwise default to the standard path separator (i.e. ":") - it is
7856 # assumed that no part of a normal pathname contains ";" but that should
7857 # okay in the real world where ";" in dirpaths is itself problematic.
7858 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
7859 else
7860 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7862 # Ok, now we have the path, separated by spaces, we can step through it
7863 # and add multilib dir if necessary.
7864 lt_tmp_lt_search_path_spec=
7865 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
7866 for lt_sys_path in $lt_search_path_spec; do
7867 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
7868 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
7869 else
7870 test -d "$lt_sys_path" && \
7871 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
7873 done
7874 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
7875 BEGIN {RS=" "; FS="/|\n";} {
7876 lt_foo="";
7877 lt_count=0;
7878 for (lt_i = NF; lt_i > 0; lt_i--) {
7879 if ($lt_i != "" && $lt_i != ".") {
7880 if ($lt_i == "..") {
7881 lt_count++;
7882 } else {
7883 if (lt_count == 0) {
7884 lt_foo="/" $lt_i lt_foo;
7885 } else {
7886 lt_count--;
7891 if (lt_foo != "") { lt_freq[lt_foo]++; }
7892 if (lt_freq[lt_foo] == 1) { print lt_foo; }
7894 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
7895 else
7896 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7898 library_names_spec=
7899 libname_spec='lib$name'
7900 soname_spec=
7901 shrext_cmds=".so"
7902 postinstall_cmds=
7903 postuninstall_cmds=
7904 finish_cmds=
7905 finish_eval=
7906 shlibpath_var=
7907 shlibpath_overrides_runpath=unknown
7908 version_type=none
7909 dynamic_linker="$host_os ld.so"
7910 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7911 need_lib_prefix=unknown
7912 hardcode_into_libs=no
7914 # when you set need_version to no, make sure it does not cause -set_version
7915 # flags to be left without arguments
7916 need_version=unknown
7918 case $host_os in
7919 aix3*)
7920 version_type=linux
7921 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7922 shlibpath_var=LIBPATH
7924 # AIX 3 has no versioning support, so we append a major version to the name.
7925 soname_spec='${libname}${release}${shared_ext}$major'
7928 aix[4-9]*)
7929 version_type=linux
7930 need_lib_prefix=no
7931 need_version=no
7932 hardcode_into_libs=yes
7933 if test "$host_cpu" = ia64; then
7934 # AIX 5 supports IA64
7935 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7936 shlibpath_var=LD_LIBRARY_PATH
7937 else
7938 # With GCC up to 2.95.x, collect2 would create an import file
7939 # for dependence libraries. The import file would start with
7940 # the line `#! .'. This would cause the generated library to
7941 # depend on `.', always an invalid library. This was fixed in
7942 # development snapshots of GCC prior to 3.0.
7943 case $host_os in
7944 aix4 | aix4.[01] | aix4.[01].*)
7945 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7946 echo ' yes '
7947 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
7949 else
7950 can_build_shared=no
7953 esac
7954 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7955 # soname into executable. Probably we can add versioning support to
7956 # collect2, so additional links can be useful in future.
7957 if test "$aix_use_runtimelinking" = yes; then
7958 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7959 # instead of lib<name>.a to let people know that these are not
7960 # typical AIX shared libraries.
7961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7962 else
7963 # We preserve .a as extension for shared libraries through AIX4.2
7964 # and later when we are not doing run time linking.
7965 library_names_spec='${libname}${release}.a $libname.a'
7966 soname_spec='${libname}${release}${shared_ext}$major'
7968 shlibpath_var=LIBPATH
7972 amigaos*)
7973 if test "$host_cpu" = m68k; then
7974 library_names_spec='$libname.ixlibrary $libname.a'
7975 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7976 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'
7977 else
7978 dynamic_linker=no
7982 beos*)
7983 library_names_spec='${libname}${shared_ext}'
7984 dynamic_linker="$host_os ld.so"
7985 shlibpath_var=LIBRARY_PATH
7988 bsdi[45]*)
7989 version_type=linux
7990 need_version=no
7991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7992 soname_spec='${libname}${release}${shared_ext}$major'
7993 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7994 shlibpath_var=LD_LIBRARY_PATH
7995 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7996 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7997 # the default ld.so.conf also contains /usr/contrib/lib and
7998 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7999 # libtool to hard-code these into programs
8002 cygwin* | mingw* | pw32*)
8003 version_type=windows
8004 shrext_cmds=".dll"
8005 need_version=no
8006 need_lib_prefix=no
8008 case $withGCC,$host_os in
8009 yes,cygwin* | yes,mingw* | yes,pw32*)
8010 library_names_spec='$libname.dll.a'
8011 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8012 postinstall_cmds='base_file=`basename \${file}`~
8013 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8014 dldir=$destdir/`dirname \$dlpath`~
8015 test -d \$dldir || mkdir -p \$dldir~
8016 $install_prog $dir/$dlname \$dldir/$dlname~
8017 chmod a+x \$dldir/$dlname~
8018 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8019 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8021 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8022 dlpath=$dir/\$dldll~
8023 $RM \$dlpath'
8024 shlibpath_overrides_runpath=yes
8026 case $host_os in
8027 cygwin*)
8028 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8029 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8030 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8032 mingw*)
8033 # MinGW DLLs use traditional 'lib' prefix
8034 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8035 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8036 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8037 # It is most probably a Windows format PATH printed by
8038 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8039 # path with ; separators, and with drive letters. We can handle the
8040 # drive letters (cygwin fileutils understands them), so leave them,
8041 # especially as we might pass files found there to a mingw objdump,
8042 # which wouldn't understand a cygwinified path. Ahh.
8043 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8044 else
8045 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8048 pw32*)
8049 # pw32 DLLs use 'pw' prefix rather than 'lib'
8050 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8052 esac
8056 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8058 esac
8059 dynamic_linker='Win32 ld.exe'
8060 # FIXME: first we should search . and the directory the executable is in
8061 shlibpath_var=PATH
8064 darwin* | rhapsody*)
8065 dynamic_linker="$host_os dyld"
8066 version_type=darwin
8067 need_lib_prefix=no
8068 need_version=no
8069 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8070 soname_spec='${libname}${release}${major}$shared_ext'
8071 shlibpath_overrides_runpath=yes
8072 shlibpath_var=DYLD_LIBRARY_PATH
8073 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8075 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8076 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8079 dgux*)
8080 version_type=linux
8081 need_lib_prefix=no
8082 need_version=no
8083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8084 soname_spec='${libname}${release}${shared_ext}$major'
8085 shlibpath_var=LD_LIBRARY_PATH
8088 freebsd1*)
8089 dynamic_linker=no
8092 freebsd* | dragonfly*)
8093 # DragonFly does not have aout. When/if they implement a new
8094 # versioning mechanism, adjust this.
8095 if test -x /usr/bin/objformat; then
8096 objformat=`/usr/bin/objformat`
8097 else
8098 case $host_os in
8099 freebsd[123]*) objformat=aout ;;
8100 *) objformat=elf ;;
8101 esac
8103 version_type=freebsd-$objformat
8104 case $version_type in
8105 freebsd-elf*)
8106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8107 need_version=no
8108 need_lib_prefix=no
8110 freebsd-*)
8111 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8112 need_version=yes
8114 esac
8115 shlibpath_var=LD_LIBRARY_PATH
8116 case $host_os in
8117 freebsd2*)
8118 shlibpath_overrides_runpath=yes
8120 freebsd3.[01]* | freebsdelf3.[01]*)
8121 shlibpath_overrides_runpath=yes
8122 hardcode_into_libs=yes
8124 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8125 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8126 shlibpath_overrides_runpath=no
8127 hardcode_into_libs=yes
8129 *) # from 4.6 on, and DragonFly
8130 shlibpath_overrides_runpath=yes
8131 hardcode_into_libs=yes
8133 esac
8136 gnu*)
8137 version_type=linux
8138 need_lib_prefix=no
8139 need_version=no
8140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8141 soname_spec='${libname}${release}${shared_ext}$major'
8142 shlibpath_var=LD_LIBRARY_PATH
8143 hardcode_into_libs=yes
8146 hpux9* | hpux10* | hpux11*)
8147 # Give a soname corresponding to the major version so that dld.sl refuses to
8148 # link against other versions.
8149 version_type=sunos
8150 need_lib_prefix=no
8151 need_version=no
8152 case $host_cpu in
8153 ia64*)
8154 shrext_cmds='.so'
8155 hardcode_into_libs=yes
8156 dynamic_linker="$host_os dld.so"
8157 shlibpath_var=LD_LIBRARY_PATH
8158 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8160 soname_spec='${libname}${release}${shared_ext}$major'
8161 if test "X$HPUX_IA64_MODE" = X32; then
8162 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8163 else
8164 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8166 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8168 hppa*64*)
8169 shrext_cmds='.sl'
8170 hardcode_into_libs=yes
8171 dynamic_linker="$host_os dld.sl"
8172 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8173 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8175 soname_spec='${libname}${release}${shared_ext}$major'
8176 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8177 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8180 shrext_cmds='.sl'
8181 dynamic_linker="$host_os dld.sl"
8182 shlibpath_var=SHLIB_PATH
8183 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8185 soname_spec='${libname}${release}${shared_ext}$major'
8187 esac
8188 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8189 postinstall_cmds='chmod 555 $lib'
8192 interix[3-9]*)
8193 version_type=linux
8194 need_lib_prefix=no
8195 need_version=no
8196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8197 soname_spec='${libname}${release}${shared_ext}$major'
8198 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8199 shlibpath_var=LD_LIBRARY_PATH
8200 shlibpath_overrides_runpath=no
8201 hardcode_into_libs=yes
8204 irix5* | irix6* | nonstopux*)
8205 case $host_os in
8206 nonstopux*) version_type=nonstopux ;;
8208 if test "$lt_cv_prog_gnu_ld" = yes; then
8209 version_type=linux
8210 else
8211 version_type=irix
8212 fi ;;
8213 esac
8214 need_lib_prefix=no
8215 need_version=no
8216 soname_spec='${libname}${release}${shared_ext}$major'
8217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8218 case $host_os in
8219 irix5* | nonstopux*)
8220 libsuff= shlibsuff=
8223 case $LD in # libtool.m4 will add one of these switches to LD
8224 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8225 libsuff= shlibsuff= libmagic=32-bit;;
8226 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8227 libsuff=32 shlibsuff=N32 libmagic=N32;;
8228 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8229 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8230 *) libsuff= shlibsuff= libmagic=never-match;;
8231 esac
8233 esac
8234 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8235 shlibpath_overrides_runpath=no
8236 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8237 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8238 hardcode_into_libs=yes
8241 # No shared lib support for Linux oldld, aout, or coff.
8242 linux*oldld* | linux*aout* | linux*coff*)
8243 dynamic_linker=no
8246 # This must be Linux ELF.
8247 linux* | k*bsd*-gnu)
8248 version_type=linux
8249 need_lib_prefix=no
8250 need_version=no
8251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8252 soname_spec='${libname}${release}${shared_ext}$major'
8253 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8254 shlibpath_var=LD_LIBRARY_PATH
8255 shlibpath_overrides_runpath=no
8256 # Some binutils ld are patched to set DT_RUNPATH
8257 save_LDFLAGS=$LDFLAGS
8258 save_libdir=$libdir
8259 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8260 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8261 cat >conftest.$ac_ext <<_ACEOF
8262 /* confdefs.h. */
8263 _ACEOF
8264 cat confdefs.h >>conftest.$ac_ext
8265 cat >>conftest.$ac_ext <<_ACEOF
8266 /* end confdefs.h. */
8269 main ()
8273 return 0;
8275 _ACEOF
8276 rm -f conftest.$ac_objext conftest$ac_exeext
8277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8278 (eval $ac_link) 2>conftest.er1
8279 ac_status=$?
8280 grep -v '^ *+' conftest.er1 >conftest.err
8281 rm -f conftest.er1
8282 cat conftest.err >&5
8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284 (exit $ac_status); } &&
8285 { ac_try='test -z "$ac_c_werror_flag"
8286 || test ! -s conftest.err'
8287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8288 (eval $ac_try) 2>&5
8289 ac_status=$?
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); }; } &&
8292 { ac_try='test -s conftest$ac_exeext'
8293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8294 (eval $ac_try) 2>&5
8295 ac_status=$?
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); }; }; then
8298 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8299 shlibpath_overrides_runpath=yes
8302 else
8303 echo "$as_me: failed program was:" >&5
8304 sed 's/^/| /' conftest.$ac_ext >&5
8307 rm -f conftest.err conftest.$ac_objext \
8308 conftest$ac_exeext conftest.$ac_ext
8309 LDFLAGS=$save_LDFLAGS
8310 libdir=$save_libdir
8312 # This implies no fast_install, which is unacceptable.
8313 # Some rework will be needed to allow for fast_install
8314 # before this can be enabled.
8315 hardcode_into_libs=yes
8317 # Append ld.so.conf contents to the search path
8318 if test -f /etc/ld.so.conf; then
8319 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8320 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8323 # We used to test for /lib/ld.so.1 and disable shared libraries on
8324 # powerpc, because MkLinux only supported shared libraries with the
8325 # GNU dynamic linker. Since this was broken with cross compilers,
8326 # most powerpc-linux boxes support dynamic linking these days and
8327 # people can always --disable-shared, the test was removed, and we
8328 # assume the GNU/Linux dynamic linker is in use.
8329 dynamic_linker='GNU/Linux ld.so'
8332 netbsd*)
8333 version_type=sunos
8334 need_lib_prefix=no
8335 need_version=no
8336 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8338 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8339 dynamic_linker='NetBSD (a.out) ld.so'
8340 else
8341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8342 soname_spec='${libname}${release}${shared_ext}$major'
8343 dynamic_linker='NetBSD ld.elf_so'
8345 shlibpath_var=LD_LIBRARY_PATH
8346 shlibpath_overrides_runpath=yes
8347 hardcode_into_libs=yes
8350 newsos6)
8351 version_type=linux
8352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8353 shlibpath_var=LD_LIBRARY_PATH
8354 shlibpath_overrides_runpath=yes
8357 *nto* | *qnx*)
8358 version_type=qnx
8359 need_lib_prefix=no
8360 need_version=no
8361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8362 soname_spec='${libname}${release}${shared_ext}$major'
8363 shlibpath_var=LD_LIBRARY_PATH
8364 shlibpath_overrides_runpath=no
8365 hardcode_into_libs=yes
8366 dynamic_linker='ldqnx.so'
8369 openbsd*)
8370 version_type=sunos
8371 sys_lib_dlsearch_path_spec="/usr/lib"
8372 need_lib_prefix=no
8373 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8374 case $host_os in
8375 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8376 *) need_version=no ;;
8377 esac
8378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8379 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8380 shlibpath_var=LD_LIBRARY_PATH
8381 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8382 case $host_os in
8383 openbsd2.[89] | openbsd2.[89].*)
8384 shlibpath_overrides_runpath=no
8387 shlibpath_overrides_runpath=yes
8389 esac
8390 else
8391 shlibpath_overrides_runpath=yes
8395 os2*)
8396 libname_spec='$name'
8397 shrext_cmds=".dll"
8398 need_lib_prefix=no
8399 library_names_spec='$libname${shared_ext} $libname.a'
8400 dynamic_linker='OS/2 ld.exe'
8401 shlibpath_var=LIBPATH
8404 osf3* | osf4* | osf5*)
8405 version_type=osf
8406 need_lib_prefix=no
8407 need_version=no
8408 soname_spec='${libname}${release}${shared_ext}$major'
8409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8410 shlibpath_var=LD_LIBRARY_PATH
8411 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8412 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8415 rdos*)
8416 dynamic_linker=no
8419 solaris*)
8420 version_type=linux
8421 need_lib_prefix=no
8422 need_version=no
8423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8424 soname_spec='${libname}${release}${shared_ext}$major'
8425 shlibpath_var=LD_LIBRARY_PATH
8426 shlibpath_overrides_runpath=yes
8427 hardcode_into_libs=yes
8428 # ldd complains unless libraries are executable
8429 postinstall_cmds='chmod +x $lib'
8432 sunos4*)
8433 version_type=sunos
8434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8435 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8436 shlibpath_var=LD_LIBRARY_PATH
8437 shlibpath_overrides_runpath=yes
8438 if test "$with_gnu_ld" = yes; then
8439 need_lib_prefix=no
8441 need_version=yes
8444 sysv4 | sysv4.3*)
8445 version_type=linux
8446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8447 soname_spec='${libname}${release}${shared_ext}$major'
8448 shlibpath_var=LD_LIBRARY_PATH
8449 case $host_vendor in
8450 sni)
8451 shlibpath_overrides_runpath=no
8452 need_lib_prefix=no
8453 runpath_var=LD_RUN_PATH
8455 siemens)
8456 need_lib_prefix=no
8458 motorola)
8459 need_lib_prefix=no
8460 need_version=no
8461 shlibpath_overrides_runpath=no
8462 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8464 esac
8467 sysv4*MP*)
8468 if test -d /usr/nec ;then
8469 version_type=linux
8470 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8471 soname_spec='$libname${shared_ext}.$major'
8472 shlibpath_var=LD_LIBRARY_PATH
8476 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8477 version_type=freebsd-elf
8478 need_lib_prefix=no
8479 need_version=no
8480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8481 soname_spec='${libname}${release}${shared_ext}$major'
8482 shlibpath_var=LD_LIBRARY_PATH
8483 shlibpath_overrides_runpath=yes
8484 hardcode_into_libs=yes
8485 if test "$with_gnu_ld" = yes; then
8486 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8487 else
8488 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8489 case $host_os in
8490 sco3.2v5*)
8491 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8493 esac
8495 sys_lib_dlsearch_path_spec='/usr/lib'
8498 tpf*)
8499 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
8500 version_type=linux
8501 need_lib_prefix=no
8502 need_version=no
8503 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8504 shlibpath_var=LD_LIBRARY_PATH
8505 shlibpath_overrides_runpath=no
8506 hardcode_into_libs=yes
8509 uts4*)
8510 version_type=linux
8511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8512 soname_spec='${libname}${release}${shared_ext}$major'
8513 shlibpath_var=LD_LIBRARY_PATH
8517 dynamic_linker=no
8519 esac
8520 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8521 echo "${ECHO_T}$dynamic_linker" >&6
8522 test "$dynamic_linker" = no && can_build_shared=no
8524 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8525 if test "$GCC" = yes; then
8526 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8615 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8616 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8617 hardcode_action=
8618 if test -n "$hardcode_libdir_flag_spec" ||
8619 test -n "$runpath_var" ||
8620 test "X$hardcode_automatic" = "Xyes" ; then
8622 # We can hardcode non-existent directories.
8623 if test "$hardcode_direct" != no &&
8624 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8625 # have to relink, otherwise we might link with an installed library
8626 # when we should be linking with a yet-to-be-installed one
8627 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
8628 test "$hardcode_minus_L" != no; then
8629 # Linking always hardcodes the temporary library directory.
8630 hardcode_action=relink
8631 else
8632 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8633 hardcode_action=immediate
8635 else
8636 # We cannot hardcode anything, or else we can only hardcode existing
8637 # directories.
8638 hardcode_action=unsupported
8640 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8641 echo "${ECHO_T}$hardcode_action" >&6
8643 if test "$hardcode_action" = relink ||
8644 test "$inherit_rpath" = yes; then
8645 # Fast installation is not supported
8646 enable_fast_install=no
8647 elif test "$shlibpath_overrides_runpath" = yes ||
8648 test "$enable_shared" = no; then
8649 # Fast installation is not necessary
8650 enable_fast_install=needless
8658 if test "x$enable_dlopen" != xyes; then
8659 enable_dlopen=unknown
8660 enable_dlopen_self=unknown
8661 enable_dlopen_self_static=unknown
8662 else
8663 lt_cv_dlopen=no
8664 lt_cv_dlopen_libs=
8666 case $host_os in
8667 beos*)
8668 lt_cv_dlopen="load_add_on"
8669 lt_cv_dlopen_libs=
8670 lt_cv_dlopen_self=yes
8673 mingw* | pw32*)
8674 lt_cv_dlopen="LoadLibrary"
8675 lt_cv_dlopen_libs=
8678 cygwin*)
8679 lt_cv_dlopen="dlopen"
8680 lt_cv_dlopen_libs=
8683 darwin*)
8684 # if libdl is installed we need to link against it
8685 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8686 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8687 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8688 echo $ECHO_N "(cached) $ECHO_C" >&6
8689 else
8690 ac_check_lib_save_LIBS=$LIBS
8691 LIBS="-ldl $LIBS"
8692 cat >conftest.$ac_ext <<_ACEOF
8693 /* confdefs.h. */
8694 _ACEOF
8695 cat confdefs.h >>conftest.$ac_ext
8696 cat >>conftest.$ac_ext <<_ACEOF
8697 /* end confdefs.h. */
8699 /* Override any gcc2 internal prototype to avoid an error. */
8700 #ifdef __cplusplus
8701 extern "C"
8702 #endif
8703 /* We use char because int might match the return type of a gcc2
8704 builtin and then its argument prototype would still apply. */
8705 char dlopen ();
8707 main ()
8709 dlopen ();
8711 return 0;
8713 _ACEOF
8714 rm -f conftest.$ac_objext conftest$ac_exeext
8715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8716 (eval $ac_link) 2>conftest.er1
8717 ac_status=$?
8718 grep -v '^ *+' conftest.er1 >conftest.err
8719 rm -f conftest.er1
8720 cat conftest.err >&5
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); } &&
8723 { ac_try='test -z "$ac_c_werror_flag"
8724 || test ! -s conftest.err'
8725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8726 (eval $ac_try) 2>&5
8727 ac_status=$?
8728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729 (exit $ac_status); }; } &&
8730 { ac_try='test -s conftest$ac_exeext'
8731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8732 (eval $ac_try) 2>&5
8733 ac_status=$?
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); }; }; then
8736 ac_cv_lib_dl_dlopen=yes
8737 else
8738 echo "$as_me: failed program was:" >&5
8739 sed 's/^/| /' conftest.$ac_ext >&5
8741 ac_cv_lib_dl_dlopen=no
8743 rm -f conftest.err conftest.$ac_objext \
8744 conftest$ac_exeext conftest.$ac_ext
8745 LIBS=$ac_check_lib_save_LIBS
8747 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8748 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8749 if test $ac_cv_lib_dl_dlopen = yes; then
8750 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8751 else
8753 lt_cv_dlopen="dyld"
8754 lt_cv_dlopen_libs=
8755 lt_cv_dlopen_self=yes
8762 echo "$as_me:$LINENO: checking for shl_load" >&5
8763 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8764 if test "${ac_cv_func_shl_load+set}" = set; then
8765 echo $ECHO_N "(cached) $ECHO_C" >&6
8766 else
8767 cat >conftest.$ac_ext <<_ACEOF
8768 /* confdefs.h. */
8769 _ACEOF
8770 cat confdefs.h >>conftest.$ac_ext
8771 cat >>conftest.$ac_ext <<_ACEOF
8772 /* end confdefs.h. */
8773 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8774 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8775 #define shl_load innocuous_shl_load
8777 /* System header to define __stub macros and hopefully few prototypes,
8778 which can conflict with char shl_load (); below.
8779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8780 <limits.h> exists even on freestanding compilers. */
8782 #ifdef __STDC__
8783 # include <limits.h>
8784 #else
8785 # include <assert.h>
8786 #endif
8788 #undef shl_load
8790 /* Override any gcc2 internal prototype to avoid an error. */
8791 #ifdef __cplusplus
8792 extern "C"
8794 #endif
8795 /* We use char because int might match the return type of a gcc2
8796 builtin and then its argument prototype would still apply. */
8797 char shl_load ();
8798 /* The GNU C library defines this for functions which it implements
8799 to always fail with ENOSYS. Some functions are actually named
8800 something starting with __ and the normal name is an alias. */
8801 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8802 choke me
8803 #else
8804 char (*f) () = shl_load;
8805 #endif
8806 #ifdef __cplusplus
8808 #endif
8811 main ()
8813 return f != shl_load;
8815 return 0;
8817 _ACEOF
8818 rm -f conftest.$ac_objext conftest$ac_exeext
8819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8820 (eval $ac_link) 2>conftest.er1
8821 ac_status=$?
8822 grep -v '^ *+' conftest.er1 >conftest.err
8823 rm -f conftest.er1
8824 cat conftest.err >&5
8825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826 (exit $ac_status); } &&
8827 { ac_try='test -z "$ac_c_werror_flag"
8828 || test ! -s conftest.err'
8829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8830 (eval $ac_try) 2>&5
8831 ac_status=$?
8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); }; } &&
8834 { ac_try='test -s conftest$ac_exeext'
8835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8836 (eval $ac_try) 2>&5
8837 ac_status=$?
8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839 (exit $ac_status); }; }; then
8840 ac_cv_func_shl_load=yes
8841 else
8842 echo "$as_me: failed program was:" >&5
8843 sed 's/^/| /' conftest.$ac_ext >&5
8845 ac_cv_func_shl_load=no
8847 rm -f conftest.err conftest.$ac_objext \
8848 conftest$ac_exeext conftest.$ac_ext
8850 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8851 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8852 if test $ac_cv_func_shl_load = yes; then
8853 lt_cv_dlopen="shl_load"
8854 else
8855 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8856 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8857 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8858 echo $ECHO_N "(cached) $ECHO_C" >&6
8859 else
8860 ac_check_lib_save_LIBS=$LIBS
8861 LIBS="-ldld $LIBS"
8862 cat >conftest.$ac_ext <<_ACEOF
8863 /* confdefs.h. */
8864 _ACEOF
8865 cat confdefs.h >>conftest.$ac_ext
8866 cat >>conftest.$ac_ext <<_ACEOF
8867 /* end confdefs.h. */
8869 /* Override any gcc2 internal prototype to avoid an error. */
8870 #ifdef __cplusplus
8871 extern "C"
8872 #endif
8873 /* We use char because int might match the return type of a gcc2
8874 builtin and then its argument prototype would still apply. */
8875 char shl_load ();
8877 main ()
8879 shl_load ();
8881 return 0;
8883 _ACEOF
8884 rm -f conftest.$ac_objext conftest$ac_exeext
8885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8886 (eval $ac_link) 2>conftest.er1
8887 ac_status=$?
8888 grep -v '^ *+' conftest.er1 >conftest.err
8889 rm -f conftest.er1
8890 cat conftest.err >&5
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); } &&
8893 { ac_try='test -z "$ac_c_werror_flag"
8894 || test ! -s conftest.err'
8895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8896 (eval $ac_try) 2>&5
8897 ac_status=$?
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); }; } &&
8900 { ac_try='test -s conftest$ac_exeext'
8901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8902 (eval $ac_try) 2>&5
8903 ac_status=$?
8904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); }; }; then
8906 ac_cv_lib_dld_shl_load=yes
8907 else
8908 echo "$as_me: failed program was:" >&5
8909 sed 's/^/| /' conftest.$ac_ext >&5
8911 ac_cv_lib_dld_shl_load=no
8913 rm -f conftest.err conftest.$ac_objext \
8914 conftest$ac_exeext conftest.$ac_ext
8915 LIBS=$ac_check_lib_save_LIBS
8917 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8918 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8919 if test $ac_cv_lib_dld_shl_load = yes; then
8920 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8921 else
8922 echo "$as_me:$LINENO: checking for dlopen" >&5
8923 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8924 if test "${ac_cv_func_dlopen+set}" = set; then
8925 echo $ECHO_N "(cached) $ECHO_C" >&6
8926 else
8927 cat >conftest.$ac_ext <<_ACEOF
8928 /* confdefs.h. */
8929 _ACEOF
8930 cat confdefs.h >>conftest.$ac_ext
8931 cat >>conftest.$ac_ext <<_ACEOF
8932 /* end confdefs.h. */
8933 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8935 #define dlopen innocuous_dlopen
8937 /* System header to define __stub macros and hopefully few prototypes,
8938 which can conflict with char dlopen (); below.
8939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8940 <limits.h> exists even on freestanding compilers. */
8942 #ifdef __STDC__
8943 # include <limits.h>
8944 #else
8945 # include <assert.h>
8946 #endif
8948 #undef dlopen
8950 /* Override any gcc2 internal prototype to avoid an error. */
8951 #ifdef __cplusplus
8952 extern "C"
8954 #endif
8955 /* We use char because int might match the return type of a gcc2
8956 builtin and then its argument prototype would still apply. */
8957 char dlopen ();
8958 /* The GNU C library defines this for functions which it implements
8959 to always fail with ENOSYS. Some functions are actually named
8960 something starting with __ and the normal name is an alias. */
8961 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8962 choke me
8963 #else
8964 char (*f) () = dlopen;
8965 #endif
8966 #ifdef __cplusplus
8968 #endif
8971 main ()
8973 return f != dlopen;
8975 return 0;
8977 _ACEOF
8978 rm -f conftest.$ac_objext conftest$ac_exeext
8979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8980 (eval $ac_link) 2>conftest.er1
8981 ac_status=$?
8982 grep -v '^ *+' conftest.er1 >conftest.err
8983 rm -f conftest.er1
8984 cat conftest.err >&5
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); } &&
8987 { ac_try='test -z "$ac_c_werror_flag"
8988 || test ! -s conftest.err'
8989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8990 (eval $ac_try) 2>&5
8991 ac_status=$?
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); }; } &&
8994 { ac_try='test -s conftest$ac_exeext'
8995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8996 (eval $ac_try) 2>&5
8997 ac_status=$?
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); }; }; then
9000 ac_cv_func_dlopen=yes
9001 else
9002 echo "$as_me: failed program was:" >&5
9003 sed 's/^/| /' conftest.$ac_ext >&5
9005 ac_cv_func_dlopen=no
9007 rm -f conftest.err conftest.$ac_objext \
9008 conftest$ac_exeext conftest.$ac_ext
9010 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9011 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9012 if test $ac_cv_func_dlopen = yes; then
9013 lt_cv_dlopen="dlopen"
9014 else
9015 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9016 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9017 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9018 echo $ECHO_N "(cached) $ECHO_C" >&6
9019 else
9020 ac_check_lib_save_LIBS=$LIBS
9021 LIBS="-ldl $LIBS"
9022 cat >conftest.$ac_ext <<_ACEOF
9023 /* confdefs.h. */
9024 _ACEOF
9025 cat confdefs.h >>conftest.$ac_ext
9026 cat >>conftest.$ac_ext <<_ACEOF
9027 /* end confdefs.h. */
9029 /* Override any gcc2 internal prototype to avoid an error. */
9030 #ifdef __cplusplus
9031 extern "C"
9032 #endif
9033 /* We use char because int might match the return type of a gcc2
9034 builtin and then its argument prototype would still apply. */
9035 char dlopen ();
9037 main ()
9039 dlopen ();
9041 return 0;
9043 _ACEOF
9044 rm -f conftest.$ac_objext conftest$ac_exeext
9045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9046 (eval $ac_link) 2>conftest.er1
9047 ac_status=$?
9048 grep -v '^ *+' conftest.er1 >conftest.err
9049 rm -f conftest.er1
9050 cat conftest.err >&5
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); } &&
9053 { ac_try='test -z "$ac_c_werror_flag"
9054 || test ! -s conftest.err'
9055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9056 (eval $ac_try) 2>&5
9057 ac_status=$?
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); }; } &&
9060 { ac_try='test -s conftest$ac_exeext'
9061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9062 (eval $ac_try) 2>&5
9063 ac_status=$?
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); }; }; then
9066 ac_cv_lib_dl_dlopen=yes
9067 else
9068 echo "$as_me: failed program was:" >&5
9069 sed 's/^/| /' conftest.$ac_ext >&5
9071 ac_cv_lib_dl_dlopen=no
9073 rm -f conftest.err conftest.$ac_objext \
9074 conftest$ac_exeext conftest.$ac_ext
9075 LIBS=$ac_check_lib_save_LIBS
9077 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9078 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9079 if test $ac_cv_lib_dl_dlopen = yes; then
9080 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9081 else
9082 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9083 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9084 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9085 echo $ECHO_N "(cached) $ECHO_C" >&6
9086 else
9087 ac_check_lib_save_LIBS=$LIBS
9088 LIBS="-lsvld $LIBS"
9089 cat >conftest.$ac_ext <<_ACEOF
9090 /* confdefs.h. */
9091 _ACEOF
9092 cat confdefs.h >>conftest.$ac_ext
9093 cat >>conftest.$ac_ext <<_ACEOF
9094 /* end confdefs.h. */
9096 /* Override any gcc2 internal prototype to avoid an error. */
9097 #ifdef __cplusplus
9098 extern "C"
9099 #endif
9100 /* We use char because int might match the return type of a gcc2
9101 builtin and then its argument prototype would still apply. */
9102 char dlopen ();
9104 main ()
9106 dlopen ();
9108 return 0;
9110 _ACEOF
9111 rm -f conftest.$ac_objext conftest$ac_exeext
9112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9113 (eval $ac_link) 2>conftest.er1
9114 ac_status=$?
9115 grep -v '^ *+' conftest.er1 >conftest.err
9116 rm -f conftest.er1
9117 cat conftest.err >&5
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); } &&
9120 { ac_try='test -z "$ac_c_werror_flag"
9121 || test ! -s conftest.err'
9122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9123 (eval $ac_try) 2>&5
9124 ac_status=$?
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); }; } &&
9127 { ac_try='test -s conftest$ac_exeext'
9128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9129 (eval $ac_try) 2>&5
9130 ac_status=$?
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); }; }; then
9133 ac_cv_lib_svld_dlopen=yes
9134 else
9135 echo "$as_me: failed program was:" >&5
9136 sed 's/^/| /' conftest.$ac_ext >&5
9138 ac_cv_lib_svld_dlopen=no
9140 rm -f conftest.err conftest.$ac_objext \
9141 conftest$ac_exeext conftest.$ac_ext
9142 LIBS=$ac_check_lib_save_LIBS
9144 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9145 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9146 if test $ac_cv_lib_svld_dlopen = yes; then
9147 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9148 else
9149 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9150 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9151 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9152 echo $ECHO_N "(cached) $ECHO_C" >&6
9153 else
9154 ac_check_lib_save_LIBS=$LIBS
9155 LIBS="-ldld $LIBS"
9156 cat >conftest.$ac_ext <<_ACEOF
9157 /* confdefs.h. */
9158 _ACEOF
9159 cat confdefs.h >>conftest.$ac_ext
9160 cat >>conftest.$ac_ext <<_ACEOF
9161 /* end confdefs.h. */
9163 /* Override any gcc2 internal prototype to avoid an error. */
9164 #ifdef __cplusplus
9165 extern "C"
9166 #endif
9167 /* We use char because int might match the return type of a gcc2
9168 builtin and then its argument prototype would still apply. */
9169 char dld_link ();
9171 main ()
9173 dld_link ();
9175 return 0;
9177 _ACEOF
9178 rm -f conftest.$ac_objext conftest$ac_exeext
9179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9180 (eval $ac_link) 2>conftest.er1
9181 ac_status=$?
9182 grep -v '^ *+' conftest.er1 >conftest.err
9183 rm -f conftest.er1
9184 cat conftest.err >&5
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); } &&
9187 { ac_try='test -z "$ac_c_werror_flag"
9188 || test ! -s conftest.err'
9189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9190 (eval $ac_try) 2>&5
9191 ac_status=$?
9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 (exit $ac_status); }; } &&
9194 { ac_try='test -s conftest$ac_exeext'
9195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9196 (eval $ac_try) 2>&5
9197 ac_status=$?
9198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199 (exit $ac_status); }; }; then
9200 ac_cv_lib_dld_dld_link=yes
9201 else
9202 echo "$as_me: failed program was:" >&5
9203 sed 's/^/| /' conftest.$ac_ext >&5
9205 ac_cv_lib_dld_dld_link=no
9207 rm -f conftest.err conftest.$ac_objext \
9208 conftest$ac_exeext conftest.$ac_ext
9209 LIBS=$ac_check_lib_save_LIBS
9211 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9212 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9213 if test $ac_cv_lib_dld_dld_link = yes; then
9214 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9233 esac
9235 if test "x$lt_cv_dlopen" != xno; then
9236 enable_dlopen=yes
9237 else
9238 enable_dlopen=no
9241 case $lt_cv_dlopen in
9242 dlopen)
9243 save_CPPFLAGS="$CPPFLAGS"
9244 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9246 save_LDFLAGS="$LDFLAGS"
9247 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9249 save_LIBS="$LIBS"
9250 LIBS="$lt_cv_dlopen_libs $LIBS"
9252 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9253 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9254 if test "${lt_cv_dlopen_self+set}" = set; then
9255 echo $ECHO_N "(cached) $ECHO_C" >&6
9256 else
9257 if test "$cross_compiling" = yes; then :
9258 lt_cv_dlopen_self=cross
9259 else
9260 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9261 lt_status=$lt_dlunknown
9262 cat > conftest.$ac_ext <<_LT_EOF
9263 #line 9263 "configure"
9264 #include "confdefs.h"
9266 #if HAVE_DLFCN_H
9267 #include <dlfcn.h>
9268 #endif
9270 #include <stdio.h>
9272 #ifdef RTLD_GLOBAL
9273 # define LT_DLGLOBAL RTLD_GLOBAL
9274 #else
9275 # ifdef DL_GLOBAL
9276 # define LT_DLGLOBAL DL_GLOBAL
9277 # else
9278 # define LT_DLGLOBAL 0
9279 # endif
9280 #endif
9282 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9283 find out it does not work in some platform. */
9284 #ifndef LT_DLLAZY_OR_NOW
9285 # ifdef RTLD_LAZY
9286 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9287 # else
9288 # ifdef DL_LAZY
9289 # define LT_DLLAZY_OR_NOW DL_LAZY
9290 # else
9291 # ifdef RTLD_NOW
9292 # define LT_DLLAZY_OR_NOW RTLD_NOW
9293 # else
9294 # ifdef DL_NOW
9295 # define LT_DLLAZY_OR_NOW DL_NOW
9296 # else
9297 # define LT_DLLAZY_OR_NOW 0
9298 # endif
9299 # endif
9300 # endif
9301 # endif
9302 #endif
9304 #ifdef __cplusplus
9305 extern "C" void exit (int);
9306 #endif
9308 void fnord() { int i=42;}
9309 int main ()
9311 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9312 int status = $lt_dlunknown;
9314 if (self)
9316 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9317 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9318 /* dlclose (self); */
9320 else
9321 puts (dlerror ());
9323 exit (status);
9325 _LT_EOF
9326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9327 (eval $ac_link) 2>&5
9328 ac_status=$?
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9331 (./conftest; exit; ) >&5 2>/dev/null
9332 lt_status=$?
9333 case x$lt_status in
9334 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9335 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9336 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9337 esac
9338 else :
9339 # compilation failed
9340 lt_cv_dlopen_self=no
9343 rm -fr conftest*
9347 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9348 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9350 if test "x$lt_cv_dlopen_self" = xyes; then
9351 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9352 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9353 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9354 if test "${lt_cv_dlopen_self_static+set}" = set; then
9355 echo $ECHO_N "(cached) $ECHO_C" >&6
9356 else
9357 if test "$cross_compiling" = yes; then :
9358 lt_cv_dlopen_self_static=cross
9359 else
9360 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9361 lt_status=$lt_dlunknown
9362 cat > conftest.$ac_ext <<_LT_EOF
9363 #line 9363 "configure"
9364 #include "confdefs.h"
9366 #if HAVE_DLFCN_H
9367 #include <dlfcn.h>
9368 #endif
9370 #include <stdio.h>
9372 #ifdef RTLD_GLOBAL
9373 # define LT_DLGLOBAL RTLD_GLOBAL
9374 #else
9375 # ifdef DL_GLOBAL
9376 # define LT_DLGLOBAL DL_GLOBAL
9377 # else
9378 # define LT_DLGLOBAL 0
9379 # endif
9380 #endif
9382 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9383 find out it does not work in some platform. */
9384 #ifndef LT_DLLAZY_OR_NOW
9385 # ifdef RTLD_LAZY
9386 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9387 # else
9388 # ifdef DL_LAZY
9389 # define LT_DLLAZY_OR_NOW DL_LAZY
9390 # else
9391 # ifdef RTLD_NOW
9392 # define LT_DLLAZY_OR_NOW RTLD_NOW
9393 # else
9394 # ifdef DL_NOW
9395 # define LT_DLLAZY_OR_NOW DL_NOW
9396 # else
9397 # define LT_DLLAZY_OR_NOW 0
9398 # endif
9399 # endif
9400 # endif
9401 # endif
9402 #endif
9404 #ifdef __cplusplus
9405 extern "C" void exit (int);
9406 #endif
9408 void fnord() { int i=42;}
9409 int main ()
9411 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9412 int status = $lt_dlunknown;
9414 if (self)
9416 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9417 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9418 /* dlclose (self); */
9420 else
9421 puts (dlerror ());
9423 exit (status);
9425 _LT_EOF
9426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9427 (eval $ac_link) 2>&5
9428 ac_status=$?
9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9431 (./conftest; exit; ) >&5 2>/dev/null
9432 lt_status=$?
9433 case x$lt_status in
9434 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9435 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9436 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9437 esac
9438 else :
9439 # compilation failed
9440 lt_cv_dlopen_self_static=no
9443 rm -fr conftest*
9447 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9448 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9451 CPPFLAGS="$save_CPPFLAGS"
9452 LDFLAGS="$save_LDFLAGS"
9453 LIBS="$save_LIBS"
9455 esac
9457 case $lt_cv_dlopen_self in
9458 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9459 *) enable_dlopen_self=unknown ;;
9460 esac
9462 case $lt_cv_dlopen_self_static in
9463 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9464 *) enable_dlopen_self_static=unknown ;;
9465 esac
9484 striplib=
9485 old_striplib=
9486 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9487 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9488 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9489 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9490 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9491 echo "$as_me:$LINENO: result: yes" >&5
9492 echo "${ECHO_T}yes" >&6
9493 else
9494 # FIXME - insert some real tests, host_os isn't really good enough
9495 case $host_os in
9496 darwin*)
9497 if test -n "$STRIP" ; then
9498 striplib="$STRIP -x"
9499 old_striplib="$STRIP -S"
9500 echo "$as_me:$LINENO: result: yes" >&5
9501 echo "${ECHO_T}yes" >&6
9502 else
9503 echo "$as_me:$LINENO: result: no" >&5
9504 echo "${ECHO_T}no" >&6
9508 echo "$as_me:$LINENO: result: no" >&5
9509 echo "${ECHO_T}no" >&6
9511 esac
9525 # Report which library types will actually be built
9526 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9527 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9528 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9529 echo "${ECHO_T}$can_build_shared" >&6
9531 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9532 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9533 test "$can_build_shared" = "no" && enable_shared=no
9535 # On AIX, shared libraries and static libraries use the same namespace, and
9536 # are all built from PIC.
9537 case $host_os in
9538 aix3*)
9539 test "$enable_shared" = yes && enable_static=no
9540 if test -n "$RANLIB"; then
9541 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9542 postinstall_cmds='$RANLIB $lib'
9546 aix[4-9]*)
9547 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9548 test "$enable_shared" = yes && enable_static=no
9551 esac
9552 echo "$as_me:$LINENO: result: $enable_shared" >&5
9553 echo "${ECHO_T}$enable_shared" >&6
9555 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9556 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9557 # Make sure either enable_shared or enable_static is yes.
9558 test "$enable_shared" = yes || enable_static=yes
9559 echo "$as_me:$LINENO: result: $enable_static" >&5
9560 echo "${ECHO_T}$enable_static" >&6
9566 ac_ext=c
9567 ac_cpp='$CPP $CPPFLAGS'
9568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9572 CC="$lt_save_CC"
9586 ac_config_commands="$ac_config_commands libtool"
9591 # Only expand once:
9595 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
9596 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
9597 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9598 if test "${enable_maintainer_mode+set}" = set; then
9599 enableval="$enable_maintainer_mode"
9600 USE_MAINTAINER_MODE=$enableval
9601 else
9602 USE_MAINTAINER_MODE=no
9604 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
9605 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
9608 if test $USE_MAINTAINER_MODE = yes; then
9609 MAINTAINER_MODE_TRUE=
9610 MAINTAINER_MODE_FALSE='#'
9611 else
9612 MAINTAINER_MODE_TRUE='#'
9613 MAINTAINER_MODE_FALSE=
9616 MAINT=$MAINTAINER_MODE_TRUE
9621 for ac_header in sys/mman.h
9623 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9625 echo "$as_me:$LINENO: checking for $ac_header" >&5
9626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9627 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9628 echo $ECHO_N "(cached) $ECHO_C" >&6
9630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9631 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9632 else
9633 # Is the header compilable?
9634 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9635 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9636 cat >conftest.$ac_ext <<_ACEOF
9637 /* confdefs.h. */
9638 _ACEOF
9639 cat confdefs.h >>conftest.$ac_ext
9640 cat >>conftest.$ac_ext <<_ACEOF
9641 /* end confdefs.h. */
9642 $ac_includes_default
9643 #include <$ac_header>
9644 _ACEOF
9645 rm -f conftest.$ac_objext
9646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9647 (eval $ac_compile) 2>conftest.er1
9648 ac_status=$?
9649 grep -v '^ *+' conftest.er1 >conftest.err
9650 rm -f conftest.er1
9651 cat conftest.err >&5
9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653 (exit $ac_status); } &&
9654 { ac_try='test -z "$ac_c_werror_flag"
9655 || test ! -s conftest.err'
9656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9657 (eval $ac_try) 2>&5
9658 ac_status=$?
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); }; } &&
9661 { ac_try='test -s conftest.$ac_objext'
9662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9663 (eval $ac_try) 2>&5
9664 ac_status=$?
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); }; }; then
9667 ac_header_compiler=yes
9668 else
9669 echo "$as_me: failed program was:" >&5
9670 sed 's/^/| /' conftest.$ac_ext >&5
9672 ac_header_compiler=no
9674 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9675 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9676 echo "${ECHO_T}$ac_header_compiler" >&6
9678 # Is the header present?
9679 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9680 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9681 cat >conftest.$ac_ext <<_ACEOF
9682 /* confdefs.h. */
9683 _ACEOF
9684 cat confdefs.h >>conftest.$ac_ext
9685 cat >>conftest.$ac_ext <<_ACEOF
9686 /* end confdefs.h. */
9687 #include <$ac_header>
9688 _ACEOF
9689 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9690 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9691 ac_status=$?
9692 grep -v '^ *+' conftest.er1 >conftest.err
9693 rm -f conftest.er1
9694 cat conftest.err >&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); } >/dev/null; then
9697 if test -s conftest.err; then
9698 ac_cpp_err=$ac_c_preproc_warn_flag
9699 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9700 else
9701 ac_cpp_err=
9703 else
9704 ac_cpp_err=yes
9706 if test -z "$ac_cpp_err"; then
9707 ac_header_preproc=yes
9708 else
9709 echo "$as_me: failed program was:" >&5
9710 sed 's/^/| /' conftest.$ac_ext >&5
9712 ac_header_preproc=no
9714 rm -f conftest.err conftest.$ac_ext
9715 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9716 echo "${ECHO_T}$ac_header_preproc" >&6
9718 # So? What about this header?
9719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9720 yes:no: )
9721 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9722 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9724 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9725 ac_header_preproc=yes
9727 no:yes:* )
9728 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9729 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9730 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9731 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9732 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9733 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9734 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9735 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9736 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9737 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9738 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9739 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9741 cat <<\_ASBOX
9742 ## ------------------------------------------- ##
9743 ## Report this to http://gcc.gnu.org/bugs.html ##
9744 ## ------------------------------------------- ##
9745 _ASBOX
9747 sed "s/^/$as_me: WARNING: /" >&2
9749 esac
9750 echo "$as_me:$LINENO: checking for $ac_header" >&5
9751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9752 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9753 echo $ECHO_N "(cached) $ECHO_C" >&6
9754 else
9755 eval "$as_ac_Header=\$ac_header_preproc"
9757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9758 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9762 cat >>confdefs.h <<_ACEOF
9763 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9764 _ACEOF
9768 done
9771 for ac_func in mmap
9773 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9774 echo "$as_me:$LINENO: checking for $ac_func" >&5
9775 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9776 if eval "test \"\${$as_ac_var+set}\" = set"; then
9777 echo $ECHO_N "(cached) $ECHO_C" >&6
9778 else
9779 cat >conftest.$ac_ext <<_ACEOF
9780 /* confdefs.h. */
9781 _ACEOF
9782 cat confdefs.h >>conftest.$ac_ext
9783 cat >>conftest.$ac_ext <<_ACEOF
9784 /* end confdefs.h. */
9785 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9787 #define $ac_func innocuous_$ac_func
9789 /* System header to define __stub macros and hopefully few prototypes,
9790 which can conflict with char $ac_func (); below.
9791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9792 <limits.h> exists even on freestanding compilers. */
9794 #ifdef __STDC__
9795 # include <limits.h>
9796 #else
9797 # include <assert.h>
9798 #endif
9800 #undef $ac_func
9802 /* Override any gcc2 internal prototype to avoid an error. */
9803 #ifdef __cplusplus
9804 extern "C"
9806 #endif
9807 /* We use char because int might match the return type of a gcc2
9808 builtin and then its argument prototype would still apply. */
9809 char $ac_func ();
9810 /* The GNU C library defines this for functions which it implements
9811 to always fail with ENOSYS. Some functions are actually named
9812 something starting with __ and the normal name is an alias. */
9813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9814 choke me
9815 #else
9816 char (*f) () = $ac_func;
9817 #endif
9818 #ifdef __cplusplus
9820 #endif
9823 main ()
9825 return f != $ac_func;
9827 return 0;
9829 _ACEOF
9830 rm -f conftest.$ac_objext conftest$ac_exeext
9831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9832 (eval $ac_link) 2>conftest.er1
9833 ac_status=$?
9834 grep -v '^ *+' conftest.er1 >conftest.err
9835 rm -f conftest.er1
9836 cat conftest.err >&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); } &&
9839 { ac_try='test -z "$ac_c_werror_flag"
9840 || test ! -s conftest.err'
9841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9842 (eval $ac_try) 2>&5
9843 ac_status=$?
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); }; } &&
9846 { ac_try='test -s conftest$ac_exeext'
9847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9848 (eval $ac_try) 2>&5
9849 ac_status=$?
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); }; }; then
9852 eval "$as_ac_var=yes"
9853 else
9854 echo "$as_me: failed program was:" >&5
9855 sed 's/^/| /' conftest.$ac_ext >&5
9857 eval "$as_ac_var=no"
9859 rm -f conftest.err conftest.$ac_objext \
9860 conftest$ac_exeext conftest.$ac_ext
9862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9863 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9864 if test `eval echo '${'$as_ac_var'}'` = yes; then
9865 cat >>confdefs.h <<_ACEOF
9866 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9867 _ACEOF
9870 done
9873 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9874 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9875 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9876 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9877 echo $ECHO_N "(cached) $ECHO_C" >&6
9879 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9880 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9881 else
9882 # Is the header compilable?
9883 echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
9884 echo $ECHO_N "checking sys/mman.h usability... $ECHO_C" >&6
9885 cat >conftest.$ac_ext <<_ACEOF
9886 /* confdefs.h. */
9887 _ACEOF
9888 cat confdefs.h >>conftest.$ac_ext
9889 cat >>conftest.$ac_ext <<_ACEOF
9890 /* end confdefs.h. */
9891 $ac_includes_default
9892 #include <sys/mman.h>
9893 _ACEOF
9894 rm -f conftest.$ac_objext
9895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9896 (eval $ac_compile) 2>conftest.er1
9897 ac_status=$?
9898 grep -v '^ *+' conftest.er1 >conftest.err
9899 rm -f conftest.er1
9900 cat conftest.err >&5
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); } &&
9903 { ac_try='test -z "$ac_c_werror_flag"
9904 || test ! -s conftest.err'
9905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9906 (eval $ac_try) 2>&5
9907 ac_status=$?
9908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909 (exit $ac_status); }; } &&
9910 { ac_try='test -s conftest.$ac_objext'
9911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9912 (eval $ac_try) 2>&5
9913 ac_status=$?
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); }; }; then
9916 ac_header_compiler=yes
9917 else
9918 echo "$as_me: failed program was:" >&5
9919 sed 's/^/| /' conftest.$ac_ext >&5
9921 ac_header_compiler=no
9923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9924 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9925 echo "${ECHO_T}$ac_header_compiler" >&6
9927 # Is the header present?
9928 echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
9929 echo $ECHO_N "checking sys/mman.h presence... $ECHO_C" >&6
9930 cat >conftest.$ac_ext <<_ACEOF
9931 /* confdefs.h. */
9932 _ACEOF
9933 cat confdefs.h >>conftest.$ac_ext
9934 cat >>conftest.$ac_ext <<_ACEOF
9935 /* end confdefs.h. */
9936 #include <sys/mman.h>
9937 _ACEOF
9938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9939 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9940 ac_status=$?
9941 grep -v '^ *+' conftest.er1 >conftest.err
9942 rm -f conftest.er1
9943 cat conftest.err >&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); } >/dev/null; then
9946 if test -s conftest.err; then
9947 ac_cpp_err=$ac_c_preproc_warn_flag
9948 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9949 else
9950 ac_cpp_err=
9952 else
9953 ac_cpp_err=yes
9955 if test -z "$ac_cpp_err"; then
9956 ac_header_preproc=yes
9957 else
9958 echo "$as_me: failed program was:" >&5
9959 sed 's/^/| /' conftest.$ac_ext >&5
9961 ac_header_preproc=no
9963 rm -f conftest.err conftest.$ac_ext
9964 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9965 echo "${ECHO_T}$ac_header_preproc" >&6
9967 # So? What about this header?
9968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9969 yes:no: )
9970 { echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
9971 echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9972 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
9973 echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
9974 ac_header_preproc=yes
9976 no:yes:* )
9977 { echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
9978 echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
9979 { echo "$as_me:$LINENO: WARNING: sys/mman.h: check for missing prerequisite headers?" >&5
9980 echo "$as_me: WARNING: sys/mman.h: check for missing prerequisite headers?" >&2;}
9981 { echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
9982 echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
9983 { echo "$as_me:$LINENO: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&5
9984 echo "$as_me: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&2;}
9985 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
9986 echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
9987 { echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
9988 echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
9990 cat <<\_ASBOX
9991 ## ------------------------------------------- ##
9992 ## Report this to http://gcc.gnu.org/bugs.html ##
9993 ## ------------------------------------------- ##
9994 _ASBOX
9996 sed "s/^/$as_me: WARNING: /" >&2
9998 esac
9999 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
10000 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
10001 if test "${ac_cv_header_sys_mman_h+set}" = set; then
10002 echo $ECHO_N "(cached) $ECHO_C" >&6
10003 else
10004 ac_cv_header_sys_mman_h=$ac_header_preproc
10006 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
10007 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
10010 if test $ac_cv_header_sys_mman_h = yes; then
10011 libffi_header_sys_mman_h=yes
10012 else
10013 libffi_header_sys_mman_h=no
10017 echo "$as_me:$LINENO: checking for mmap" >&5
10018 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
10019 if test "${ac_cv_func_mmap+set}" = set; then
10020 echo $ECHO_N "(cached) $ECHO_C" >&6
10021 else
10022 cat >conftest.$ac_ext <<_ACEOF
10023 /* confdefs.h. */
10024 _ACEOF
10025 cat confdefs.h >>conftest.$ac_ext
10026 cat >>conftest.$ac_ext <<_ACEOF
10027 /* end confdefs.h. */
10028 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
10029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10030 #define mmap innocuous_mmap
10032 /* System header to define __stub macros and hopefully few prototypes,
10033 which can conflict with char mmap (); below.
10034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10035 <limits.h> exists even on freestanding compilers. */
10037 #ifdef __STDC__
10038 # include <limits.h>
10039 #else
10040 # include <assert.h>
10041 #endif
10043 #undef mmap
10045 /* Override any gcc2 internal prototype to avoid an error. */
10046 #ifdef __cplusplus
10047 extern "C"
10049 #endif
10050 /* We use char because int might match the return type of a gcc2
10051 builtin and then its argument prototype would still apply. */
10052 char mmap ();
10053 /* The GNU C library defines this for functions which it implements
10054 to always fail with ENOSYS. Some functions are actually named
10055 something starting with __ and the normal name is an alias. */
10056 #if defined (__stub_mmap) || defined (__stub___mmap)
10057 choke me
10058 #else
10059 char (*f) () = mmap;
10060 #endif
10061 #ifdef __cplusplus
10063 #endif
10066 main ()
10068 return f != mmap;
10070 return 0;
10072 _ACEOF
10073 rm -f conftest.$ac_objext conftest$ac_exeext
10074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10075 (eval $ac_link) 2>conftest.er1
10076 ac_status=$?
10077 grep -v '^ *+' conftest.er1 >conftest.err
10078 rm -f conftest.er1
10079 cat conftest.err >&5
10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 (exit $ac_status); } &&
10082 { ac_try='test -z "$ac_c_werror_flag"
10083 || test ! -s conftest.err'
10084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10085 (eval $ac_try) 2>&5
10086 ac_status=$?
10087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10088 (exit $ac_status); }; } &&
10089 { ac_try='test -s conftest$ac_exeext'
10090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10091 (eval $ac_try) 2>&5
10092 ac_status=$?
10093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10094 (exit $ac_status); }; }; then
10095 ac_cv_func_mmap=yes
10096 else
10097 echo "$as_me: failed program was:" >&5
10098 sed 's/^/| /' conftest.$ac_ext >&5
10100 ac_cv_func_mmap=no
10102 rm -f conftest.err conftest.$ac_objext \
10103 conftest$ac_exeext conftest.$ac_ext
10105 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
10106 echo "${ECHO_T}$ac_cv_func_mmap" >&6
10107 if test $ac_cv_func_mmap = yes; then
10108 libffi_func_mmap=yes
10109 else
10110 libffi_func_mmap=no
10113 if test "$libffi_header_sys_mman_h" != yes \
10114 || test "$libffi_func_mmap" != yes; then
10115 ac_cv_func_mmap_file=no
10116 ac_cv_func_mmap_dev_zero=no
10117 ac_cv_func_mmap_anon=no
10118 else
10119 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
10120 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
10121 if test "${ac_cv_func_mmap_file+set}" = set; then
10122 echo $ECHO_N "(cached) $ECHO_C" >&6
10123 else
10124 # Add a system to this blacklist if
10125 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10126 # memory area containing the same data that you'd get if you applied
10127 # read() to the same fd. The only system known to have a problem here
10128 # is VMS, where text files have record structure.
10129 case "$host_os" in
10130 vms* | ultrix*)
10131 ac_cv_func_mmap_file=no ;;
10133 ac_cv_func_mmap_file=yes;;
10134 esac
10136 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
10137 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
10138 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
10139 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
10140 if test "${ac_cv_func_mmap_dev_zero+set}" = set; then
10141 echo $ECHO_N "(cached) $ECHO_C" >&6
10142 else
10143 # Add a system to this blacklist if it has mmap() but /dev/zero
10144 # does not exist, or if mmapping /dev/zero does not give anonymous
10145 # zeroed pages with both the following properties:
10146 # 1. If you map N consecutive pages in with one call, and then
10147 # unmap any subset of those pages, the pages that were not
10148 # explicitly unmapped remain accessible.
10149 # 2. If you map two adjacent blocks of memory and then unmap them
10150 # both at once, they must both go away.
10151 # Systems known to be in this category are Windows (all variants),
10152 # VMS, and Darwin.
10153 case "$host_os" in
10154 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10155 ac_cv_func_mmap_dev_zero=no ;;
10157 ac_cv_func_mmap_dev_zero=yes;;
10158 esac
10160 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_dev_zero" >&5
10161 echo "${ECHO_T}$ac_cv_func_mmap_dev_zero" >&6
10163 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10164 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
10165 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
10166 if test "${ac_cv_decl_map_anon+set}" = set; then
10167 echo $ECHO_N "(cached) $ECHO_C" >&6
10168 else
10169 cat >conftest.$ac_ext <<_ACEOF
10170 /* confdefs.h. */
10171 _ACEOF
10172 cat confdefs.h >>conftest.$ac_ext
10173 cat >>conftest.$ac_ext <<_ACEOF
10174 /* end confdefs.h. */
10175 #include <sys/types.h>
10176 #include <sys/mman.h>
10177 #include <unistd.h>
10179 #ifndef MAP_ANONYMOUS
10180 #define MAP_ANONYMOUS MAP_ANON
10181 #endif
10184 main ()
10186 int n = MAP_ANONYMOUS;
10188 return 0;
10190 _ACEOF
10191 rm -f conftest.$ac_objext
10192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10193 (eval $ac_compile) 2>conftest.er1
10194 ac_status=$?
10195 grep -v '^ *+' conftest.er1 >conftest.err
10196 rm -f conftest.er1
10197 cat conftest.err >&5
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); } &&
10200 { ac_try='test -z "$ac_c_werror_flag"
10201 || test ! -s conftest.err'
10202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10203 (eval $ac_try) 2>&5
10204 ac_status=$?
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); }; } &&
10207 { ac_try='test -s conftest.$ac_objext'
10208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10209 (eval $ac_try) 2>&5
10210 ac_status=$?
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); }; }; then
10213 ac_cv_decl_map_anon=yes
10214 else
10215 echo "$as_me: failed program was:" >&5
10216 sed 's/^/| /' conftest.$ac_ext >&5
10218 ac_cv_decl_map_anon=no
10220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10222 echo "$as_me:$LINENO: result: $ac_cv_decl_map_anon" >&5
10223 echo "${ECHO_T}$ac_cv_decl_map_anon" >&6
10225 if test $ac_cv_decl_map_anon = no; then
10226 ac_cv_func_mmap_anon=no
10227 else
10228 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10229 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
10230 if test "${ac_cv_func_mmap_anon+set}" = set; then
10231 echo $ECHO_N "(cached) $ECHO_C" >&6
10232 else
10233 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10234 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10235 # doesn't give anonymous zeroed pages with the same properties listed
10236 # above for use of /dev/zero.
10237 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10238 case "$host_os" in
10239 vms* | cygwin* | pe | mingw* | sco* | udk* )
10240 ac_cv_func_mmap_anon=no ;;
10242 ac_cv_func_mmap_anon=yes;;
10243 esac
10245 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_anon" >&5
10246 echo "${ECHO_T}$ac_cv_func_mmap_anon" >&6
10250 if test $ac_cv_func_mmap_file = yes; then
10252 cat >>confdefs.h <<\_ACEOF
10253 #define HAVE_MMAP_FILE 1
10254 _ACEOF
10257 if test $ac_cv_func_mmap_dev_zero = yes; then
10259 cat >>confdefs.h <<\_ACEOF
10260 #define HAVE_MMAP_DEV_ZERO 1
10261 _ACEOF
10264 if test $ac_cv_func_mmap_anon = yes; then
10266 cat >>confdefs.h <<\_ACEOF
10267 #define HAVE_MMAP_ANON 1
10268 _ACEOF
10275 if test -d $srcdir/testsuite; then
10276 TESTSUBDIR_TRUE=
10277 TESTSUBDIR_FALSE='#'
10278 else
10279 TESTSUBDIR_TRUE='#'
10280 TESTSUBDIR_FALSE=
10284 TARGETDIR="unknown"
10285 case "$host" in
10286 alpha*-*-*)
10287 TARGET=ALPHA; TARGETDIR=alpha;
10288 # Support 128-bit long double, changable via command-line switch.
10289 HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
10292 arm*-*-*)
10293 TARGET=ARM; TARGETDIR=arm
10296 amd64-*-freebsd*)
10297 TARGET=X86_64; TARGETDIR=x86
10300 cris-*-*)
10301 TARGET=LIBFFI_CRIS; TARGETDIR=cris
10304 frv-*-*)
10305 TARGET=FRV; TARGETDIR=frv
10308 hppa*-*-linux* | parisc*-*-linux*)
10309 TARGET=PA_LINUX; TARGETDIR=pa
10311 hppa*64-*-hpux*)
10312 TARGET=PA64_HPUX; TARGETDIR=pa
10314 hppa*-*-hpux*)
10315 TARGET=PA_HPUX; TARGETDIR=pa
10318 i?86-win32* | i?86-*-cygwin* | i?86-*-mingw*)
10319 TARGET=X86_WIN32; TARGETDIR=x86
10321 i?86-*-darwin*)
10322 TARGET=X86_DARWIN; TARGETDIR=x86
10324 i?86-*-solaris2.1[0-9]*)
10325 TARGET=X86_64; TARGETDIR=x86
10327 i?86-*-*)
10328 TARGET=X86; TARGETDIR=x86
10331 ia64*-*-*)
10332 TARGET=IA64; TARGETDIR=ia64
10335 m32r*-*-*)
10336 TARGET=M32R; TARGETDIR=m32r
10339 m68k-*-*)
10340 TARGET=M68K; TARGETDIR=m68k
10343 mips-sgi-irix5.* | mips-sgi-irix6.*)
10344 TARGET=MIPS; TARGETDIR=mips
10346 mips*-*-linux*)
10347 TARGET=MIPS; TARGETDIR=mips
10350 powerpc*-*-linux* | powerpc-*-sysv*)
10351 TARGET=POWERPC; TARGETDIR=powerpc
10353 powerpc-*-beos*)
10354 TARGET=POWERPC; TARGETDIR=powerpc
10356 powerpc-*-darwin*)
10357 TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
10359 powerpc-*-aix* | rs6000-*-aix*)
10360 TARGET=POWERPC_AIX; TARGETDIR=powerpc
10362 powerpc-*-freebsd*)
10363 TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
10365 powerpc*-*-rtems*)
10366 TARGET=POWERPC; TARGETDIR=powerpc
10369 s390-*-* | s390x-*-*)
10370 TARGET=S390; TARGETDIR=s390
10373 sh-*-* | sh[34]*-*-*)
10374 TARGET=SH; TARGETDIR=sh
10376 sh64-*-* | sh5*-*-*)
10377 TARGET=SH64; TARGETDIR=sh64
10380 sparc*-*-*)
10381 TARGET=SPARC; TARGETDIR=sparc
10384 x86_64-*-darwin*)
10385 TARGET=X86_DARWIN; TARGETDIR=x86
10387 x86_64-*-cygwin* | x86_64-*-mingw*)
10389 x86_64-*-*)
10390 TARGET=X86_64; TARGETDIR=x86
10392 esac
10396 if test $TARGETDIR = unknown; then
10397 { { echo "$as_me:$LINENO: error: \"libffi has not been ported to $host.\"" >&5
10398 echo "$as_me: error: \"libffi has not been ported to $host.\"" >&2;}
10399 { (exit 1); exit 1; }; }
10404 if test x$TARGET = xMIPS; then
10405 MIPS_TRUE=
10406 MIPS_FALSE='#'
10407 else
10408 MIPS_TRUE='#'
10409 MIPS_FALSE=
10414 if test x$TARGET = xSPARC; then
10415 SPARC_TRUE=
10416 SPARC_FALSE='#'
10417 else
10418 SPARC_TRUE='#'
10419 SPARC_FALSE=
10424 if test x$TARGET = xX86; then
10425 X86_TRUE=
10426 X86_FALSE='#'
10427 else
10428 X86_TRUE='#'
10429 X86_FALSE=
10434 if test x$TARGET = xX86_WIN32; then
10435 X86_WIN32_TRUE=
10436 X86_WIN32_FALSE='#'
10437 else
10438 X86_WIN32_TRUE='#'
10439 X86_WIN32_FALSE=
10444 if test x$TARGET = xX86_DARWIN; then
10445 X86_DARWIN_TRUE=
10446 X86_DARWIN_FALSE='#'
10447 else
10448 X86_DARWIN_TRUE='#'
10449 X86_DARWIN_FALSE=
10454 if test x$TARGET = xALPHA; then
10455 ALPHA_TRUE=
10456 ALPHA_FALSE='#'
10457 else
10458 ALPHA_TRUE='#'
10459 ALPHA_FALSE=
10464 if test x$TARGET = xIA64; then
10465 IA64_TRUE=
10466 IA64_FALSE='#'
10467 else
10468 IA64_TRUE='#'
10469 IA64_FALSE=
10474 if test x$TARGET = xM32R; then
10475 M32R_TRUE=
10476 M32R_FALSE='#'
10477 else
10478 M32R_TRUE='#'
10479 M32R_FALSE=
10484 if test x$TARGET = xM68K; then
10485 M68K_TRUE=
10486 M68K_FALSE='#'
10487 else
10488 M68K_TRUE='#'
10489 M68K_FALSE=
10494 if test x$TARGET = xPOWERPC; then
10495 POWERPC_TRUE=
10496 POWERPC_FALSE='#'
10497 else
10498 POWERPC_TRUE='#'
10499 POWERPC_FALSE=
10504 if test x$TARGET = xPOWERPC_AIX; then
10505 POWERPC_AIX_TRUE=
10506 POWERPC_AIX_FALSE='#'
10507 else
10508 POWERPC_AIX_TRUE='#'
10509 POWERPC_AIX_FALSE=
10514 if test x$TARGET = xPOWERPC_DARWIN; then
10515 POWERPC_DARWIN_TRUE=
10516 POWERPC_DARWIN_FALSE='#'
10517 else
10518 POWERPC_DARWIN_TRUE='#'
10519 POWERPC_DARWIN_FALSE=
10524 if test x$TARGET = xPOWERPC_FREEBSD; then
10525 POWERPC_FREEBSD_TRUE=
10526 POWERPC_FREEBSD_FALSE='#'
10527 else
10528 POWERPC_FREEBSD_TRUE='#'
10529 POWERPC_FREEBSD_FALSE=
10534 if test x$TARGET = xARM; then
10535 ARM_TRUE=
10536 ARM_FALSE='#'
10537 else
10538 ARM_TRUE='#'
10539 ARM_FALSE=
10544 if test x$TARGET = xLIBFFI_CRIS; then
10545 LIBFFI_CRIS_TRUE=
10546 LIBFFI_CRIS_FALSE='#'
10547 else
10548 LIBFFI_CRIS_TRUE='#'
10549 LIBFFI_CRIS_FALSE=
10554 if test x$TARGET = xFRV; then
10555 FRV_TRUE=
10556 FRV_FALSE='#'
10557 else
10558 FRV_TRUE='#'
10559 FRV_FALSE=
10564 if test x$TARGET = xS390; then
10565 S390_TRUE=
10566 S390_FALSE='#'
10567 else
10568 S390_TRUE='#'
10569 S390_FALSE=
10574 if test x$TARGET = xX86_64; then
10575 X86_64_TRUE=
10576 X86_64_FALSE='#'
10577 else
10578 X86_64_TRUE='#'
10579 X86_64_FALSE=
10584 if test x$TARGET = xSH; then
10585 SH_TRUE=
10586 SH_FALSE='#'
10587 else
10588 SH_TRUE='#'
10589 SH_FALSE=
10594 if test x$TARGET = xSH64; then
10595 SH64_TRUE=
10596 SH64_FALSE='#'
10597 else
10598 SH64_TRUE='#'
10599 SH64_FALSE=
10604 if test x$TARGET = xPA_LINUX; then
10605 PA_LINUX_TRUE=
10606 PA_LINUX_FALSE='#'
10607 else
10608 PA_LINUX_TRUE='#'
10609 PA_LINUX_FALSE=
10614 if test x$TARGET = xPA_HPUX; then
10615 PA_HPUX_TRUE=
10616 PA_HPUX_FALSE='#'
10617 else
10618 PA_HPUX_TRUE='#'
10619 PA_HPUX_FALSE=
10624 if test x$TARGET = xPA64_HPUX; then
10625 PA64_HPUX_TRUE=
10626 PA64_HPUX_FALSE='#'
10627 else
10628 PA64_HPUX_TRUE='#'
10629 PA64_HPUX_FALSE=
10633 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10634 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10635 if test "${ac_cv_header_stdc+set}" = set; then
10636 echo $ECHO_N "(cached) $ECHO_C" >&6
10637 else
10638 cat >conftest.$ac_ext <<_ACEOF
10639 /* confdefs.h. */
10640 _ACEOF
10641 cat confdefs.h >>conftest.$ac_ext
10642 cat >>conftest.$ac_ext <<_ACEOF
10643 /* end confdefs.h. */
10644 #include <stdlib.h>
10645 #include <stdarg.h>
10646 #include <string.h>
10647 #include <float.h>
10650 main ()
10654 return 0;
10656 _ACEOF
10657 rm -f conftest.$ac_objext
10658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10659 (eval $ac_compile) 2>conftest.er1
10660 ac_status=$?
10661 grep -v '^ *+' conftest.er1 >conftest.err
10662 rm -f conftest.er1
10663 cat conftest.err >&5
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); } &&
10666 { ac_try='test -z "$ac_c_werror_flag"
10667 || test ! -s conftest.err'
10668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10669 (eval $ac_try) 2>&5
10670 ac_status=$?
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); }; } &&
10673 { ac_try='test -s conftest.$ac_objext'
10674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10675 (eval $ac_try) 2>&5
10676 ac_status=$?
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); }; }; then
10679 ac_cv_header_stdc=yes
10680 else
10681 echo "$as_me: failed program was:" >&5
10682 sed 's/^/| /' conftest.$ac_ext >&5
10684 ac_cv_header_stdc=no
10686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10688 if test $ac_cv_header_stdc = yes; then
10689 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10690 cat >conftest.$ac_ext <<_ACEOF
10691 /* confdefs.h. */
10692 _ACEOF
10693 cat confdefs.h >>conftest.$ac_ext
10694 cat >>conftest.$ac_ext <<_ACEOF
10695 /* end confdefs.h. */
10696 #include <string.h>
10698 _ACEOF
10699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10700 $EGREP "memchr" >/dev/null 2>&1; then
10702 else
10703 ac_cv_header_stdc=no
10705 rm -f conftest*
10709 if test $ac_cv_header_stdc = yes; then
10710 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10711 cat >conftest.$ac_ext <<_ACEOF
10712 /* confdefs.h. */
10713 _ACEOF
10714 cat confdefs.h >>conftest.$ac_ext
10715 cat >>conftest.$ac_ext <<_ACEOF
10716 /* end confdefs.h. */
10717 #include <stdlib.h>
10719 _ACEOF
10720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10721 $EGREP "free" >/dev/null 2>&1; then
10723 else
10724 ac_cv_header_stdc=no
10726 rm -f conftest*
10730 if test $ac_cv_header_stdc = yes; then
10731 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10732 if test "$cross_compiling" = yes; then
10734 else
10735 cat >conftest.$ac_ext <<_ACEOF
10736 /* confdefs.h. */
10737 _ACEOF
10738 cat confdefs.h >>conftest.$ac_ext
10739 cat >>conftest.$ac_ext <<_ACEOF
10740 /* end confdefs.h. */
10741 #include <ctype.h>
10742 #if ((' ' & 0x0FF) == 0x020)
10743 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10744 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10745 #else
10746 # define ISLOWER(c) \
10747 (('a' <= (c) && (c) <= 'i') \
10748 || ('j' <= (c) && (c) <= 'r') \
10749 || ('s' <= (c) && (c) <= 'z'))
10750 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10751 #endif
10753 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10755 main ()
10757 int i;
10758 for (i = 0; i < 256; i++)
10759 if (XOR (islower (i), ISLOWER (i))
10760 || toupper (i) != TOUPPER (i))
10761 exit(2);
10762 exit (0);
10764 _ACEOF
10765 rm -f conftest$ac_exeext
10766 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10767 (eval $ac_link) 2>&5
10768 ac_status=$?
10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10772 (eval $ac_try) 2>&5
10773 ac_status=$?
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); }; }; then
10777 else
10778 echo "$as_me: program exited with status $ac_status" >&5
10779 echo "$as_me: failed program was:" >&5
10780 sed 's/^/| /' conftest.$ac_ext >&5
10782 ( exit $ac_status )
10783 ac_cv_header_stdc=no
10785 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10789 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10790 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10791 if test $ac_cv_header_stdc = yes; then
10793 cat >>confdefs.h <<\_ACEOF
10794 #define STDC_HEADERS 1
10795 _ACEOF
10800 for ac_func in memcpy
10802 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10803 echo "$as_me:$LINENO: checking for $ac_func" >&5
10804 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10805 if eval "test \"\${$as_ac_var+set}\" = set"; then
10806 echo $ECHO_N "(cached) $ECHO_C" >&6
10807 else
10808 cat >conftest.$ac_ext <<_ACEOF
10809 /* confdefs.h. */
10810 _ACEOF
10811 cat confdefs.h >>conftest.$ac_ext
10812 cat >>conftest.$ac_ext <<_ACEOF
10813 /* end confdefs.h. */
10814 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10816 #define $ac_func innocuous_$ac_func
10818 /* System header to define __stub macros and hopefully few prototypes,
10819 which can conflict with char $ac_func (); below.
10820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10821 <limits.h> exists even on freestanding compilers. */
10823 #ifdef __STDC__
10824 # include <limits.h>
10825 #else
10826 # include <assert.h>
10827 #endif
10829 #undef $ac_func
10831 /* Override any gcc2 internal prototype to avoid an error. */
10832 #ifdef __cplusplus
10833 extern "C"
10835 #endif
10836 /* We use char because int might match the return type of a gcc2
10837 builtin and then its argument prototype would still apply. */
10838 char $ac_func ();
10839 /* The GNU C library defines this for functions which it implements
10840 to always fail with ENOSYS. Some functions are actually named
10841 something starting with __ and the normal name is an alias. */
10842 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10843 choke me
10844 #else
10845 char (*f) () = $ac_func;
10846 #endif
10847 #ifdef __cplusplus
10849 #endif
10852 main ()
10854 return f != $ac_func;
10856 return 0;
10858 _ACEOF
10859 rm -f conftest.$ac_objext conftest$ac_exeext
10860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10861 (eval $ac_link) 2>conftest.er1
10862 ac_status=$?
10863 grep -v '^ *+' conftest.er1 >conftest.err
10864 rm -f conftest.er1
10865 cat conftest.err >&5
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); } &&
10868 { ac_try='test -z "$ac_c_werror_flag"
10869 || test ! -s conftest.err'
10870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10871 (eval $ac_try) 2>&5
10872 ac_status=$?
10873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874 (exit $ac_status); }; } &&
10875 { ac_try='test -s conftest$ac_exeext'
10876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10877 (eval $ac_try) 2>&5
10878 ac_status=$?
10879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10880 (exit $ac_status); }; }; then
10881 eval "$as_ac_var=yes"
10882 else
10883 echo "$as_me: failed program was:" >&5
10884 sed 's/^/| /' conftest.$ac_ext >&5
10886 eval "$as_ac_var=no"
10888 rm -f conftest.err conftest.$ac_objext \
10889 conftest$ac_exeext conftest.$ac_ext
10891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10892 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10893 if test `eval echo '${'$as_ac_var'}'` = yes; then
10894 cat >>confdefs.h <<_ACEOF
10895 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10896 _ACEOF
10899 done
10901 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10902 # for constant arguments. Useless!
10903 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10904 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10905 if test "${ac_cv_working_alloca_h+set}" = set; then
10906 echo $ECHO_N "(cached) $ECHO_C" >&6
10907 else
10908 cat >conftest.$ac_ext <<_ACEOF
10909 /* confdefs.h. */
10910 _ACEOF
10911 cat confdefs.h >>conftest.$ac_ext
10912 cat >>conftest.$ac_ext <<_ACEOF
10913 /* end confdefs.h. */
10914 #include <alloca.h>
10916 main ()
10918 char *p = (char *) alloca (2 * sizeof (int));
10920 return 0;
10922 _ACEOF
10923 rm -f conftest.$ac_objext conftest$ac_exeext
10924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10925 (eval $ac_link) 2>conftest.er1
10926 ac_status=$?
10927 grep -v '^ *+' conftest.er1 >conftest.err
10928 rm -f conftest.er1
10929 cat conftest.err >&5
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); } &&
10932 { ac_try='test -z "$ac_c_werror_flag"
10933 || test ! -s conftest.err'
10934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10935 (eval $ac_try) 2>&5
10936 ac_status=$?
10937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938 (exit $ac_status); }; } &&
10939 { ac_try='test -s conftest$ac_exeext'
10940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10941 (eval $ac_try) 2>&5
10942 ac_status=$?
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); }; }; then
10945 ac_cv_working_alloca_h=yes
10946 else
10947 echo "$as_me: failed program was:" >&5
10948 sed 's/^/| /' conftest.$ac_ext >&5
10950 ac_cv_working_alloca_h=no
10952 rm -f conftest.err conftest.$ac_objext \
10953 conftest$ac_exeext conftest.$ac_ext
10955 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10956 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10957 if test $ac_cv_working_alloca_h = yes; then
10959 cat >>confdefs.h <<\_ACEOF
10960 #define HAVE_ALLOCA_H 1
10961 _ACEOF
10965 echo "$as_me:$LINENO: checking for alloca" >&5
10966 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10967 if test "${ac_cv_func_alloca_works+set}" = set; then
10968 echo $ECHO_N "(cached) $ECHO_C" >&6
10969 else
10970 cat >conftest.$ac_ext <<_ACEOF
10971 /* confdefs.h. */
10972 _ACEOF
10973 cat confdefs.h >>conftest.$ac_ext
10974 cat >>conftest.$ac_ext <<_ACEOF
10975 /* end confdefs.h. */
10976 #ifdef __GNUC__
10977 # define alloca __builtin_alloca
10978 #else
10979 # ifdef _MSC_VER
10980 # include <malloc.h>
10981 # define alloca _alloca
10982 # else
10983 # if HAVE_ALLOCA_H
10984 # include <alloca.h>
10985 # else
10986 # ifdef _AIX
10987 #pragma alloca
10988 # else
10989 # ifndef alloca /* predefined by HP cc +Olibcalls */
10990 char *alloca ();
10991 # endif
10992 # endif
10993 # endif
10994 # endif
10995 #endif
10998 main ()
11000 char *p = (char *) alloca (1);
11002 return 0;
11004 _ACEOF
11005 rm -f conftest.$ac_objext conftest$ac_exeext
11006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11007 (eval $ac_link) 2>conftest.er1
11008 ac_status=$?
11009 grep -v '^ *+' conftest.er1 >conftest.err
11010 rm -f conftest.er1
11011 cat conftest.err >&5
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); } &&
11014 { ac_try='test -z "$ac_c_werror_flag"
11015 || test ! -s conftest.err'
11016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11017 (eval $ac_try) 2>&5
11018 ac_status=$?
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); }; } &&
11021 { ac_try='test -s conftest$ac_exeext'
11022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11023 (eval $ac_try) 2>&5
11024 ac_status=$?
11025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); }; }; then
11027 ac_cv_func_alloca_works=yes
11028 else
11029 echo "$as_me: failed program was:" >&5
11030 sed 's/^/| /' conftest.$ac_ext >&5
11032 ac_cv_func_alloca_works=no
11034 rm -f conftest.err conftest.$ac_objext \
11035 conftest$ac_exeext conftest.$ac_ext
11037 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11038 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
11040 if test $ac_cv_func_alloca_works = yes; then
11042 cat >>confdefs.h <<\_ACEOF
11043 #define HAVE_ALLOCA 1
11044 _ACEOF
11046 else
11047 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11048 # that cause trouble. Some versions do not even contain alloca or
11049 # contain a buggy version. If you still want to use their alloca,
11050 # use ar to extract alloca.o from them instead of compiling alloca.c.
11052 ALLOCA=alloca.$ac_objext
11054 cat >>confdefs.h <<\_ACEOF
11055 #define C_ALLOCA 1
11056 _ACEOF
11059 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
11060 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
11061 if test "${ac_cv_os_cray+set}" = set; then
11062 echo $ECHO_N "(cached) $ECHO_C" >&6
11063 else
11064 cat >conftest.$ac_ext <<_ACEOF
11065 /* confdefs.h. */
11066 _ACEOF
11067 cat confdefs.h >>conftest.$ac_ext
11068 cat >>conftest.$ac_ext <<_ACEOF
11069 /* end confdefs.h. */
11070 #if defined(CRAY) && ! defined(CRAY2)
11071 webecray
11072 #else
11073 wenotbecray
11074 #endif
11076 _ACEOF
11077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11078 $EGREP "webecray" >/dev/null 2>&1; then
11079 ac_cv_os_cray=yes
11080 else
11081 ac_cv_os_cray=no
11083 rm -f conftest*
11086 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
11087 echo "${ECHO_T}$ac_cv_os_cray" >&6
11088 if test $ac_cv_os_cray = yes; then
11089 for ac_func in _getb67 GETB67 getb67; do
11090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11091 echo "$as_me:$LINENO: checking for $ac_func" >&5
11092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11093 if eval "test \"\${$as_ac_var+set}\" = set"; then
11094 echo $ECHO_N "(cached) $ECHO_C" >&6
11095 else
11096 cat >conftest.$ac_ext <<_ACEOF
11097 /* confdefs.h. */
11098 _ACEOF
11099 cat confdefs.h >>conftest.$ac_ext
11100 cat >>conftest.$ac_ext <<_ACEOF
11101 /* end confdefs.h. */
11102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11104 #define $ac_func innocuous_$ac_func
11106 /* System header to define __stub macros and hopefully few prototypes,
11107 which can conflict with char $ac_func (); below.
11108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11109 <limits.h> exists even on freestanding compilers. */
11111 #ifdef __STDC__
11112 # include <limits.h>
11113 #else
11114 # include <assert.h>
11115 #endif
11117 #undef $ac_func
11119 /* Override any gcc2 internal prototype to avoid an error. */
11120 #ifdef __cplusplus
11121 extern "C"
11123 #endif
11124 /* We use char because int might match the return type of a gcc2
11125 builtin and then its argument prototype would still apply. */
11126 char $ac_func ();
11127 /* The GNU C library defines this for functions which it implements
11128 to always fail with ENOSYS. Some functions are actually named
11129 something starting with __ and the normal name is an alias. */
11130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11131 choke me
11132 #else
11133 char (*f) () = $ac_func;
11134 #endif
11135 #ifdef __cplusplus
11137 #endif
11140 main ()
11142 return f != $ac_func;
11144 return 0;
11146 _ACEOF
11147 rm -f conftest.$ac_objext conftest$ac_exeext
11148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11149 (eval $ac_link) 2>conftest.er1
11150 ac_status=$?
11151 grep -v '^ *+' conftest.er1 >conftest.err
11152 rm -f conftest.er1
11153 cat conftest.err >&5
11154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155 (exit $ac_status); } &&
11156 { ac_try='test -z "$ac_c_werror_flag"
11157 || test ! -s conftest.err'
11158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11159 (eval $ac_try) 2>&5
11160 ac_status=$?
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); }; } &&
11163 { ac_try='test -s conftest$ac_exeext'
11164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11165 (eval $ac_try) 2>&5
11166 ac_status=$?
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); }; }; then
11169 eval "$as_ac_var=yes"
11170 else
11171 echo "$as_me: failed program was:" >&5
11172 sed 's/^/| /' conftest.$ac_ext >&5
11174 eval "$as_ac_var=no"
11176 rm -f conftest.err conftest.$ac_objext \
11177 conftest$ac_exeext conftest.$ac_ext
11179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11180 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11181 if test `eval echo '${'$as_ac_var'}'` = yes; then
11183 cat >>confdefs.h <<_ACEOF
11184 #define CRAY_STACKSEG_END $ac_func
11185 _ACEOF
11187 break
11190 done
11193 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
11194 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
11195 if test "${ac_cv_c_stack_direction+set}" = set; then
11196 echo $ECHO_N "(cached) $ECHO_C" >&6
11197 else
11198 if test "$cross_compiling" = yes; then
11199 ac_cv_c_stack_direction=0
11200 else
11201 cat >conftest.$ac_ext <<_ACEOF
11202 /* confdefs.h. */
11203 _ACEOF
11204 cat confdefs.h >>conftest.$ac_ext
11205 cat >>conftest.$ac_ext <<_ACEOF
11206 /* end confdefs.h. */
11208 find_stack_direction ()
11210 static char *addr = 0;
11211 auto char dummy;
11212 if (addr == 0)
11214 addr = &dummy;
11215 return find_stack_direction ();
11217 else
11218 return (&dummy > addr) ? 1 : -1;
11222 main ()
11224 exit (find_stack_direction () < 0);
11226 _ACEOF
11227 rm -f conftest$ac_exeext
11228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11229 (eval $ac_link) 2>&5
11230 ac_status=$?
11231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11234 (eval $ac_try) 2>&5
11235 ac_status=$?
11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); }; }; then
11238 ac_cv_c_stack_direction=1
11239 else
11240 echo "$as_me: program exited with status $ac_status" >&5
11241 echo "$as_me: failed program was:" >&5
11242 sed 's/^/| /' conftest.$ac_ext >&5
11244 ( exit $ac_status )
11245 ac_cv_c_stack_direction=-1
11247 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11250 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11251 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
11253 cat >>confdefs.h <<_ACEOF
11254 #define STACK_DIRECTION $ac_cv_c_stack_direction
11255 _ACEOF
11261 echo "$as_me:$LINENO: checking for double" >&5
11262 echo $ECHO_N "checking for double... $ECHO_C" >&6
11263 if test "${ac_cv_type_double+set}" = set; then
11264 echo $ECHO_N "(cached) $ECHO_C" >&6
11265 else
11266 cat >conftest.$ac_ext <<_ACEOF
11267 /* confdefs.h. */
11268 _ACEOF
11269 cat confdefs.h >>conftest.$ac_ext
11270 cat >>conftest.$ac_ext <<_ACEOF
11271 /* end confdefs.h. */
11272 $ac_includes_default
11274 main ()
11276 if ((double *) 0)
11277 return 0;
11278 if (sizeof (double))
11279 return 0;
11281 return 0;
11283 _ACEOF
11284 rm -f conftest.$ac_objext
11285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11286 (eval $ac_compile) 2>conftest.er1
11287 ac_status=$?
11288 grep -v '^ *+' conftest.er1 >conftest.err
11289 rm -f conftest.er1
11290 cat conftest.err >&5
11291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292 (exit $ac_status); } &&
11293 { ac_try='test -z "$ac_c_werror_flag"
11294 || test ! -s conftest.err'
11295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11296 (eval $ac_try) 2>&5
11297 ac_status=$?
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); }; } &&
11300 { ac_try='test -s conftest.$ac_objext'
11301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11302 (eval $ac_try) 2>&5
11303 ac_status=$?
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); }; }; then
11306 ac_cv_type_double=yes
11307 else
11308 echo "$as_me: failed program was:" >&5
11309 sed 's/^/| /' conftest.$ac_ext >&5
11311 ac_cv_type_double=no
11313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11315 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
11316 echo "${ECHO_T}$ac_cv_type_double" >&6
11318 echo "$as_me:$LINENO: checking size of double" >&5
11319 echo $ECHO_N "checking size of double... $ECHO_C" >&6
11320 if test "${ac_cv_sizeof_double+set}" = set; then
11321 echo $ECHO_N "(cached) $ECHO_C" >&6
11322 else
11323 if test "$ac_cv_type_double" = yes; then
11324 # The cast to unsigned long works around a bug in the HP C Compiler
11325 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11326 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11327 # This bug is HP SR number 8606223364.
11328 if test "$cross_compiling" = yes; then
11329 # Depending upon the size, compute the lo and hi bounds.
11330 cat >conftest.$ac_ext <<_ACEOF
11331 /* confdefs.h. */
11332 _ACEOF
11333 cat confdefs.h >>conftest.$ac_ext
11334 cat >>conftest.$ac_ext <<_ACEOF
11335 /* end confdefs.h. */
11336 $ac_includes_default
11338 main ()
11340 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
11341 test_array [0] = 0
11344 return 0;
11346 _ACEOF
11347 rm -f conftest.$ac_objext
11348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11349 (eval $ac_compile) 2>conftest.er1
11350 ac_status=$?
11351 grep -v '^ *+' conftest.er1 >conftest.err
11352 rm -f conftest.er1
11353 cat conftest.err >&5
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); } &&
11356 { ac_try='test -z "$ac_c_werror_flag"
11357 || test ! -s conftest.err'
11358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11359 (eval $ac_try) 2>&5
11360 ac_status=$?
11361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11362 (exit $ac_status); }; } &&
11363 { ac_try='test -s conftest.$ac_objext'
11364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11365 (eval $ac_try) 2>&5
11366 ac_status=$?
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); }; }; then
11369 ac_lo=0 ac_mid=0
11370 while :; do
11371 cat >conftest.$ac_ext <<_ACEOF
11372 /* confdefs.h. */
11373 _ACEOF
11374 cat confdefs.h >>conftest.$ac_ext
11375 cat >>conftest.$ac_ext <<_ACEOF
11376 /* end confdefs.h. */
11377 $ac_includes_default
11379 main ()
11381 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
11382 test_array [0] = 0
11385 return 0;
11387 _ACEOF
11388 rm -f conftest.$ac_objext
11389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11390 (eval $ac_compile) 2>conftest.er1
11391 ac_status=$?
11392 grep -v '^ *+' conftest.er1 >conftest.err
11393 rm -f conftest.er1
11394 cat conftest.err >&5
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); } &&
11397 { ac_try='test -z "$ac_c_werror_flag"
11398 || test ! -s conftest.err'
11399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11400 (eval $ac_try) 2>&5
11401 ac_status=$?
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); }; } &&
11404 { ac_try='test -s conftest.$ac_objext'
11405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11406 (eval $ac_try) 2>&5
11407 ac_status=$?
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); }; }; then
11410 ac_hi=$ac_mid; break
11411 else
11412 echo "$as_me: failed program was:" >&5
11413 sed 's/^/| /' conftest.$ac_ext >&5
11415 ac_lo=`expr $ac_mid + 1`
11416 if test $ac_lo -le $ac_mid; then
11417 ac_lo= ac_hi=
11418 break
11420 ac_mid=`expr 2 '*' $ac_mid + 1`
11422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11423 done
11424 else
11425 echo "$as_me: failed program was:" >&5
11426 sed 's/^/| /' conftest.$ac_ext >&5
11428 cat >conftest.$ac_ext <<_ACEOF
11429 /* confdefs.h. */
11430 _ACEOF
11431 cat confdefs.h >>conftest.$ac_ext
11432 cat >>conftest.$ac_ext <<_ACEOF
11433 /* end confdefs.h. */
11434 $ac_includes_default
11436 main ()
11438 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
11439 test_array [0] = 0
11442 return 0;
11444 _ACEOF
11445 rm -f conftest.$ac_objext
11446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11447 (eval $ac_compile) 2>conftest.er1
11448 ac_status=$?
11449 grep -v '^ *+' conftest.er1 >conftest.err
11450 rm -f conftest.er1
11451 cat conftest.err >&5
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); } &&
11454 { ac_try='test -z "$ac_c_werror_flag"
11455 || test ! -s conftest.err'
11456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11457 (eval $ac_try) 2>&5
11458 ac_status=$?
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); }; } &&
11461 { ac_try='test -s conftest.$ac_objext'
11462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11463 (eval $ac_try) 2>&5
11464 ac_status=$?
11465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466 (exit $ac_status); }; }; then
11467 ac_hi=-1 ac_mid=-1
11468 while :; do
11469 cat >conftest.$ac_ext <<_ACEOF
11470 /* confdefs.h. */
11471 _ACEOF
11472 cat confdefs.h >>conftest.$ac_ext
11473 cat >>conftest.$ac_ext <<_ACEOF
11474 /* end confdefs.h. */
11475 $ac_includes_default
11477 main ()
11479 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
11480 test_array [0] = 0
11483 return 0;
11485 _ACEOF
11486 rm -f conftest.$ac_objext
11487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11488 (eval $ac_compile) 2>conftest.er1
11489 ac_status=$?
11490 grep -v '^ *+' conftest.er1 >conftest.err
11491 rm -f conftest.er1
11492 cat conftest.err >&5
11493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494 (exit $ac_status); } &&
11495 { ac_try='test -z "$ac_c_werror_flag"
11496 || test ! -s conftest.err'
11497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11498 (eval $ac_try) 2>&5
11499 ac_status=$?
11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501 (exit $ac_status); }; } &&
11502 { ac_try='test -s conftest.$ac_objext'
11503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11504 (eval $ac_try) 2>&5
11505 ac_status=$?
11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); }; }; then
11508 ac_lo=$ac_mid; break
11509 else
11510 echo "$as_me: failed program was:" >&5
11511 sed 's/^/| /' conftest.$ac_ext >&5
11513 ac_hi=`expr '(' $ac_mid ')' - 1`
11514 if test $ac_mid -le $ac_hi; then
11515 ac_lo= ac_hi=
11516 break
11518 ac_mid=`expr 2 '*' $ac_mid`
11520 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11521 done
11522 else
11523 echo "$as_me: failed program was:" >&5
11524 sed 's/^/| /' conftest.$ac_ext >&5
11526 ac_lo= ac_hi=
11528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11531 # Binary search between lo and hi bounds.
11532 while test "x$ac_lo" != "x$ac_hi"; do
11533 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11534 cat >conftest.$ac_ext <<_ACEOF
11535 /* confdefs.h. */
11536 _ACEOF
11537 cat confdefs.h >>conftest.$ac_ext
11538 cat >>conftest.$ac_ext <<_ACEOF
11539 /* end confdefs.h. */
11540 $ac_includes_default
11542 main ()
11544 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
11545 test_array [0] = 0
11548 return 0;
11550 _ACEOF
11551 rm -f conftest.$ac_objext
11552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11553 (eval $ac_compile) 2>conftest.er1
11554 ac_status=$?
11555 grep -v '^ *+' conftest.er1 >conftest.err
11556 rm -f conftest.er1
11557 cat conftest.err >&5
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); } &&
11560 { ac_try='test -z "$ac_c_werror_flag"
11561 || test ! -s conftest.err'
11562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11563 (eval $ac_try) 2>&5
11564 ac_status=$?
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); }; } &&
11567 { ac_try='test -s conftest.$ac_objext'
11568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11569 (eval $ac_try) 2>&5
11570 ac_status=$?
11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); }; }; then
11573 ac_hi=$ac_mid
11574 else
11575 echo "$as_me: failed program was:" >&5
11576 sed 's/^/| /' conftest.$ac_ext >&5
11578 ac_lo=`expr '(' $ac_mid ')' + 1`
11580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11581 done
11582 case $ac_lo in
11583 ?*) ac_cv_sizeof_double=$ac_lo;;
11584 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
11585 See \`config.log' for more details." >&5
11586 echo "$as_me: error: cannot compute sizeof (double), 77
11587 See \`config.log' for more details." >&2;}
11588 { (exit 1); exit 1; }; } ;;
11589 esac
11590 else
11591 if test "$cross_compiling" = yes; then
11592 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11593 See \`config.log' for more details." >&5
11594 echo "$as_me: error: cannot run test program while cross compiling
11595 See \`config.log' for more details." >&2;}
11596 { (exit 1); exit 1; }; }
11597 else
11598 cat >conftest.$ac_ext <<_ACEOF
11599 /* confdefs.h. */
11600 _ACEOF
11601 cat confdefs.h >>conftest.$ac_ext
11602 cat >>conftest.$ac_ext <<_ACEOF
11603 /* end confdefs.h. */
11604 $ac_includes_default
11605 long longval () { return (long) (sizeof (double)); }
11606 unsigned long ulongval () { return (long) (sizeof (double)); }
11607 #include <stdio.h>
11608 #include <stdlib.h>
11610 main ()
11613 FILE *f = fopen ("conftest.val", "w");
11614 if (! f)
11615 exit (1);
11616 if (((long) (sizeof (double))) < 0)
11618 long i = longval ();
11619 if (i != ((long) (sizeof (double))))
11620 exit (1);
11621 fprintf (f, "%ld\n", i);
11623 else
11625 unsigned long i = ulongval ();
11626 if (i != ((long) (sizeof (double))))
11627 exit (1);
11628 fprintf (f, "%lu\n", i);
11630 exit (ferror (f) || fclose (f) != 0);
11633 return 0;
11635 _ACEOF
11636 rm -f conftest$ac_exeext
11637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11638 (eval $ac_link) 2>&5
11639 ac_status=$?
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11643 (eval $ac_try) 2>&5
11644 ac_status=$?
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); }; }; then
11647 ac_cv_sizeof_double=`cat conftest.val`
11648 else
11649 echo "$as_me: program exited with status $ac_status" >&5
11650 echo "$as_me: failed program was:" >&5
11651 sed 's/^/| /' conftest.$ac_ext >&5
11653 ( exit $ac_status )
11654 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
11655 See \`config.log' for more details." >&5
11656 echo "$as_me: error: cannot compute sizeof (double), 77
11657 See \`config.log' for more details." >&2;}
11658 { (exit 1); exit 1; }; }
11660 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11663 rm -f conftest.val
11664 else
11665 ac_cv_sizeof_double=0
11668 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
11669 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
11670 cat >>confdefs.h <<_ACEOF
11671 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
11672 _ACEOF
11675 echo "$as_me:$LINENO: checking for long double" >&5
11676 echo $ECHO_N "checking for long double... $ECHO_C" >&6
11677 if test "${ac_cv_type_long_double+set}" = set; then
11678 echo $ECHO_N "(cached) $ECHO_C" >&6
11679 else
11680 cat >conftest.$ac_ext <<_ACEOF
11681 /* confdefs.h. */
11682 _ACEOF
11683 cat confdefs.h >>conftest.$ac_ext
11684 cat >>conftest.$ac_ext <<_ACEOF
11685 /* end confdefs.h. */
11686 $ac_includes_default
11688 main ()
11690 if ((long double *) 0)
11691 return 0;
11692 if (sizeof (long double))
11693 return 0;
11695 return 0;
11697 _ACEOF
11698 rm -f conftest.$ac_objext
11699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11700 (eval $ac_compile) 2>conftest.er1
11701 ac_status=$?
11702 grep -v '^ *+' conftest.er1 >conftest.err
11703 rm -f conftest.er1
11704 cat conftest.err >&5
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); } &&
11707 { ac_try='test -z "$ac_c_werror_flag"
11708 || test ! -s conftest.err'
11709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11710 (eval $ac_try) 2>&5
11711 ac_status=$?
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); }; } &&
11714 { ac_try='test -s conftest.$ac_objext'
11715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11716 (eval $ac_try) 2>&5
11717 ac_status=$?
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); }; }; then
11720 ac_cv_type_long_double=yes
11721 else
11722 echo "$as_me: failed program was:" >&5
11723 sed 's/^/| /' conftest.$ac_ext >&5
11725 ac_cv_type_long_double=no
11727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11729 echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11730 echo "${ECHO_T}$ac_cv_type_long_double" >&6
11732 echo "$as_me:$LINENO: checking size of long double" >&5
11733 echo $ECHO_N "checking size of long double... $ECHO_C" >&6
11734 if test "${ac_cv_sizeof_long_double+set}" = set; then
11735 echo $ECHO_N "(cached) $ECHO_C" >&6
11736 else
11737 if test "$ac_cv_type_long_double" = yes; then
11738 # The cast to unsigned long works around a bug in the HP C Compiler
11739 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11740 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11741 # This bug is HP SR number 8606223364.
11742 if test "$cross_compiling" = yes; then
11743 # Depending upon the size, compute the lo and hi bounds.
11744 cat >conftest.$ac_ext <<_ACEOF
11745 /* confdefs.h. */
11746 _ACEOF
11747 cat confdefs.h >>conftest.$ac_ext
11748 cat >>conftest.$ac_ext <<_ACEOF
11749 /* end confdefs.h. */
11750 $ac_includes_default
11752 main ()
11754 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= 0)];
11755 test_array [0] = 0
11758 return 0;
11760 _ACEOF
11761 rm -f conftest.$ac_objext
11762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11763 (eval $ac_compile) 2>conftest.er1
11764 ac_status=$?
11765 grep -v '^ *+' conftest.er1 >conftest.err
11766 rm -f conftest.er1
11767 cat conftest.err >&5
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); } &&
11770 { ac_try='test -z "$ac_c_werror_flag"
11771 || test ! -s conftest.err'
11772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11773 (eval $ac_try) 2>&5
11774 ac_status=$?
11775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776 (exit $ac_status); }; } &&
11777 { ac_try='test -s conftest.$ac_objext'
11778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11779 (eval $ac_try) 2>&5
11780 ac_status=$?
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); }; }; then
11783 ac_lo=0 ac_mid=0
11784 while :; do
11785 cat >conftest.$ac_ext <<_ACEOF
11786 /* confdefs.h. */
11787 _ACEOF
11788 cat confdefs.h >>conftest.$ac_ext
11789 cat >>conftest.$ac_ext <<_ACEOF
11790 /* end confdefs.h. */
11791 $ac_includes_default
11793 main ()
11795 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
11796 test_array [0] = 0
11799 return 0;
11801 _ACEOF
11802 rm -f conftest.$ac_objext
11803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11804 (eval $ac_compile) 2>conftest.er1
11805 ac_status=$?
11806 grep -v '^ *+' conftest.er1 >conftest.err
11807 rm -f conftest.er1
11808 cat conftest.err >&5
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); } &&
11811 { ac_try='test -z "$ac_c_werror_flag"
11812 || test ! -s conftest.err'
11813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11814 (eval $ac_try) 2>&5
11815 ac_status=$?
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); }; } &&
11818 { ac_try='test -s conftest.$ac_objext'
11819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11820 (eval $ac_try) 2>&5
11821 ac_status=$?
11822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); }; }; then
11824 ac_hi=$ac_mid; break
11825 else
11826 echo "$as_me: failed program was:" >&5
11827 sed 's/^/| /' conftest.$ac_ext >&5
11829 ac_lo=`expr $ac_mid + 1`
11830 if test $ac_lo -le $ac_mid; then
11831 ac_lo= ac_hi=
11832 break
11834 ac_mid=`expr 2 '*' $ac_mid + 1`
11836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11837 done
11838 else
11839 echo "$as_me: failed program was:" >&5
11840 sed 's/^/| /' conftest.$ac_ext >&5
11842 cat >conftest.$ac_ext <<_ACEOF
11843 /* confdefs.h. */
11844 _ACEOF
11845 cat confdefs.h >>conftest.$ac_ext
11846 cat >>conftest.$ac_ext <<_ACEOF
11847 /* end confdefs.h. */
11848 $ac_includes_default
11850 main ()
11852 static int test_array [1 - 2 * !(((long) (sizeof (long double))) < 0)];
11853 test_array [0] = 0
11856 return 0;
11858 _ACEOF
11859 rm -f conftest.$ac_objext
11860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11861 (eval $ac_compile) 2>conftest.er1
11862 ac_status=$?
11863 grep -v '^ *+' conftest.er1 >conftest.err
11864 rm -f conftest.er1
11865 cat conftest.err >&5
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); } &&
11868 { ac_try='test -z "$ac_c_werror_flag"
11869 || test ! -s conftest.err'
11870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11871 (eval $ac_try) 2>&5
11872 ac_status=$?
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); }; } &&
11875 { ac_try='test -s conftest.$ac_objext'
11876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11877 (eval $ac_try) 2>&5
11878 ac_status=$?
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); }; }; then
11881 ac_hi=-1 ac_mid=-1
11882 while :; do
11883 cat >conftest.$ac_ext <<_ACEOF
11884 /* confdefs.h. */
11885 _ACEOF
11886 cat confdefs.h >>conftest.$ac_ext
11887 cat >>conftest.$ac_ext <<_ACEOF
11888 /* end confdefs.h. */
11889 $ac_includes_default
11891 main ()
11893 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= $ac_mid)];
11894 test_array [0] = 0
11897 return 0;
11899 _ACEOF
11900 rm -f conftest.$ac_objext
11901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11902 (eval $ac_compile) 2>conftest.er1
11903 ac_status=$?
11904 grep -v '^ *+' conftest.er1 >conftest.err
11905 rm -f conftest.er1
11906 cat conftest.err >&5
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); } &&
11909 { ac_try='test -z "$ac_c_werror_flag"
11910 || test ! -s conftest.err'
11911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912 (eval $ac_try) 2>&5
11913 ac_status=$?
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); }; } &&
11916 { ac_try='test -s conftest.$ac_objext'
11917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11918 (eval $ac_try) 2>&5
11919 ac_status=$?
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); }; }; then
11922 ac_lo=$ac_mid; break
11923 else
11924 echo "$as_me: failed program was:" >&5
11925 sed 's/^/| /' conftest.$ac_ext >&5
11927 ac_hi=`expr '(' $ac_mid ')' - 1`
11928 if test $ac_mid -le $ac_hi; then
11929 ac_lo= ac_hi=
11930 break
11932 ac_mid=`expr 2 '*' $ac_mid`
11934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11935 done
11936 else
11937 echo "$as_me: failed program was:" >&5
11938 sed 's/^/| /' conftest.$ac_ext >&5
11940 ac_lo= ac_hi=
11942 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11945 # Binary search between lo and hi bounds.
11946 while test "x$ac_lo" != "x$ac_hi"; do
11947 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11948 cat >conftest.$ac_ext <<_ACEOF
11949 /* confdefs.h. */
11950 _ACEOF
11951 cat confdefs.h >>conftest.$ac_ext
11952 cat >>conftest.$ac_ext <<_ACEOF
11953 /* end confdefs.h. */
11954 $ac_includes_default
11956 main ()
11958 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
11959 test_array [0] = 0
11962 return 0;
11964 _ACEOF
11965 rm -f conftest.$ac_objext
11966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11967 (eval $ac_compile) 2>conftest.er1
11968 ac_status=$?
11969 grep -v '^ *+' conftest.er1 >conftest.err
11970 rm -f conftest.er1
11971 cat conftest.err >&5
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); } &&
11974 { ac_try='test -z "$ac_c_werror_flag"
11975 || test ! -s conftest.err'
11976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11977 (eval $ac_try) 2>&5
11978 ac_status=$?
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); }; } &&
11981 { ac_try='test -s conftest.$ac_objext'
11982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11983 (eval $ac_try) 2>&5
11984 ac_status=$?
11985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); }; }; then
11987 ac_hi=$ac_mid
11988 else
11989 echo "$as_me: failed program was:" >&5
11990 sed 's/^/| /' conftest.$ac_ext >&5
11992 ac_lo=`expr '(' $ac_mid ')' + 1`
11994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11995 done
11996 case $ac_lo in
11997 ?*) ac_cv_sizeof_long_double=$ac_lo;;
11998 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
11999 See \`config.log' for more details." >&5
12000 echo "$as_me: error: cannot compute sizeof (long double), 77
12001 See \`config.log' for more details." >&2;}
12002 { (exit 1); exit 1; }; } ;;
12003 esac
12004 else
12005 if test "$cross_compiling" = yes; then
12006 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12007 See \`config.log' for more details." >&5
12008 echo "$as_me: error: cannot run test program while cross compiling
12009 See \`config.log' for more details." >&2;}
12010 { (exit 1); exit 1; }; }
12011 else
12012 cat >conftest.$ac_ext <<_ACEOF
12013 /* confdefs.h. */
12014 _ACEOF
12015 cat confdefs.h >>conftest.$ac_ext
12016 cat >>conftest.$ac_ext <<_ACEOF
12017 /* end confdefs.h. */
12018 $ac_includes_default
12019 long longval () { return (long) (sizeof (long double)); }
12020 unsigned long ulongval () { return (long) (sizeof (long double)); }
12021 #include <stdio.h>
12022 #include <stdlib.h>
12024 main ()
12027 FILE *f = fopen ("conftest.val", "w");
12028 if (! f)
12029 exit (1);
12030 if (((long) (sizeof (long double))) < 0)
12032 long i = longval ();
12033 if (i != ((long) (sizeof (long double))))
12034 exit (1);
12035 fprintf (f, "%ld\n", i);
12037 else
12039 unsigned long i = ulongval ();
12040 if (i != ((long) (sizeof (long double))))
12041 exit (1);
12042 fprintf (f, "%lu\n", i);
12044 exit (ferror (f) || fclose (f) != 0);
12047 return 0;
12049 _ACEOF
12050 rm -f conftest$ac_exeext
12051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12052 (eval $ac_link) 2>&5
12053 ac_status=$?
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12057 (eval $ac_try) 2>&5
12058 ac_status=$?
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); }; }; then
12061 ac_cv_sizeof_long_double=`cat conftest.val`
12062 else
12063 echo "$as_me: program exited with status $ac_status" >&5
12064 echo "$as_me: failed program was:" >&5
12065 sed 's/^/| /' conftest.$ac_ext >&5
12067 ( exit $ac_status )
12068 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
12069 See \`config.log' for more details." >&5
12070 echo "$as_me: error: cannot compute sizeof (long double), 77
12071 See \`config.log' for more details." >&2;}
12072 { (exit 1); exit 1; }; }
12074 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12077 rm -f conftest.val
12078 else
12079 ac_cv_sizeof_long_double=0
12082 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12083 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6
12084 cat >>confdefs.h <<_ACEOF
12085 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12086 _ACEOF
12090 # Also AC_SUBST this variable for ffi.h.
12091 if test -z "$HAVE_LONG_DOUBLE"; then
12092 HAVE_LONG_DOUBLE=0
12093 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
12094 if test $ac_cv_sizeof_long_double != 0; then
12095 HAVE_LONG_DOUBLE=1
12097 cat >>confdefs.h <<\_ACEOF
12098 #define HAVE_LONG_DOUBLE 1
12099 _ACEOF
12106 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
12107 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
12108 if test "${ac_cv_c_bigendian+set}" = set; then
12109 echo $ECHO_N "(cached) $ECHO_C" >&6
12110 else
12111 # See if sys/param.h defines the BYTE_ORDER macro.
12112 cat >conftest.$ac_ext <<_ACEOF
12113 /* confdefs.h. */
12114 _ACEOF
12115 cat confdefs.h >>conftest.$ac_ext
12116 cat >>conftest.$ac_ext <<_ACEOF
12117 /* end confdefs.h. */
12118 #include <sys/types.h>
12119 #include <sys/param.h>
12122 main ()
12124 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12125 bogus endian macros
12126 #endif
12129 return 0;
12131 _ACEOF
12132 rm -f conftest.$ac_objext
12133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12134 (eval $ac_compile) 2>conftest.er1
12135 ac_status=$?
12136 grep -v '^ *+' conftest.er1 >conftest.err
12137 rm -f conftest.er1
12138 cat conftest.err >&5
12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 (exit $ac_status); } &&
12141 { ac_try='test -z "$ac_c_werror_flag"
12142 || test ! -s conftest.err'
12143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12144 (eval $ac_try) 2>&5
12145 ac_status=$?
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); }; } &&
12148 { ac_try='test -s conftest.$ac_objext'
12149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12150 (eval $ac_try) 2>&5
12151 ac_status=$?
12152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153 (exit $ac_status); }; }; then
12154 # It does; now see whether it defined to BIG_ENDIAN or not.
12155 cat >conftest.$ac_ext <<_ACEOF
12156 /* confdefs.h. */
12157 _ACEOF
12158 cat confdefs.h >>conftest.$ac_ext
12159 cat >>conftest.$ac_ext <<_ACEOF
12160 /* end confdefs.h. */
12161 #include <sys/types.h>
12162 #include <sys/param.h>
12165 main ()
12167 #if BYTE_ORDER != BIG_ENDIAN
12168 not big endian
12169 #endif
12172 return 0;
12174 _ACEOF
12175 rm -f conftest.$ac_objext
12176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12177 (eval $ac_compile) 2>conftest.er1
12178 ac_status=$?
12179 grep -v '^ *+' conftest.er1 >conftest.err
12180 rm -f conftest.er1
12181 cat conftest.err >&5
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); } &&
12184 { ac_try='test -z "$ac_c_werror_flag"
12185 || test ! -s conftest.err'
12186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12187 (eval $ac_try) 2>&5
12188 ac_status=$?
12189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190 (exit $ac_status); }; } &&
12191 { ac_try='test -s conftest.$ac_objext'
12192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12193 (eval $ac_try) 2>&5
12194 ac_status=$?
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); }; }; then
12197 ac_cv_c_bigendian=yes
12198 else
12199 echo "$as_me: failed program was:" >&5
12200 sed 's/^/| /' conftest.$ac_ext >&5
12202 ac_cv_c_bigendian=no
12204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12205 else
12206 echo "$as_me: failed program was:" >&5
12207 sed 's/^/| /' conftest.$ac_ext >&5
12209 # It does not; compile a test program.
12210 if test "$cross_compiling" = yes; then
12211 # try to guess the endianness by grepping values into an object file
12212 ac_cv_c_bigendian=unknown
12213 cat >conftest.$ac_ext <<_ACEOF
12214 /* confdefs.h. */
12215 _ACEOF
12216 cat confdefs.h >>conftest.$ac_ext
12217 cat >>conftest.$ac_ext <<_ACEOF
12218 /* end confdefs.h. */
12219 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12220 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12221 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
12222 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12223 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12224 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
12226 main ()
12228 _ascii (); _ebcdic ();
12230 return 0;
12232 _ACEOF
12233 rm -f conftest.$ac_objext
12234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12235 (eval $ac_compile) 2>conftest.er1
12236 ac_status=$?
12237 grep -v '^ *+' conftest.er1 >conftest.err
12238 rm -f conftest.er1
12239 cat conftest.err >&5
12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); } &&
12242 { ac_try='test -z "$ac_c_werror_flag"
12243 || test ! -s conftest.err'
12244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12245 (eval $ac_try) 2>&5
12246 ac_status=$?
12247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248 (exit $ac_status); }; } &&
12249 { ac_try='test -s conftest.$ac_objext'
12250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12251 (eval $ac_try) 2>&5
12252 ac_status=$?
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); }; }; then
12255 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
12256 ac_cv_c_bigendian=yes
12258 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12259 if test "$ac_cv_c_bigendian" = unknown; then
12260 ac_cv_c_bigendian=no
12261 else
12262 # finding both strings is unlikely to happen, but who knows?
12263 ac_cv_c_bigendian=unknown
12266 else
12267 echo "$as_me: failed program was:" >&5
12268 sed 's/^/| /' conftest.$ac_ext >&5
12271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12272 else
12273 cat >conftest.$ac_ext <<_ACEOF
12274 /* confdefs.h. */
12275 _ACEOF
12276 cat confdefs.h >>conftest.$ac_ext
12277 cat >>conftest.$ac_ext <<_ACEOF
12278 /* end confdefs.h. */
12280 main ()
12282 /* Are we little or big endian? From Harbison&Steele. */
12283 union
12285 long l;
12286 char c[sizeof (long)];
12287 } u;
12288 u.l = 1;
12289 exit (u.c[sizeof (long) - 1] == 1);
12291 _ACEOF
12292 rm -f conftest$ac_exeext
12293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12294 (eval $ac_link) 2>&5
12295 ac_status=$?
12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12299 (eval $ac_try) 2>&5
12300 ac_status=$?
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); }; }; then
12303 ac_cv_c_bigendian=no
12304 else
12305 echo "$as_me: program exited with status $ac_status" >&5
12306 echo "$as_me: failed program was:" >&5
12307 sed 's/^/| /' conftest.$ac_ext >&5
12309 ( exit $ac_status )
12310 ac_cv_c_bigendian=yes
12312 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12317 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
12318 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
12319 case $ac_cv_c_bigendian in
12320 yes)
12322 cat >>confdefs.h <<\_ACEOF
12323 #define WORDS_BIGENDIAN 1
12324 _ACEOF
12329 { { echo "$as_me:$LINENO: error: unknown endianness
12330 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
12331 echo "$as_me: error: unknown endianness
12332 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
12333 { (exit 1); exit 1; }; } ;;
12334 esac
12337 echo "$as_me:$LINENO: checking assembler .cfi pseudo-op support" >&5
12338 echo $ECHO_N "checking assembler .cfi pseudo-op support... $ECHO_C" >&6
12339 if test "${libffi_cv_as_cfi_pseudo_op+set}" = set; then
12340 echo $ECHO_N "(cached) $ECHO_C" >&6
12341 else
12343 libffi_cv_as_cfi_pseudo_op=unknown
12344 cat >conftest.$ac_ext <<_ACEOF
12345 /* confdefs.h. */
12346 _ACEOF
12347 cat confdefs.h >>conftest.$ac_ext
12348 cat >>conftest.$ac_ext <<_ACEOF
12349 /* end confdefs.h. */
12350 asm (".cfi_startproc\n\t.cfi_endproc");
12352 main ()
12356 return 0;
12358 _ACEOF
12359 rm -f conftest.$ac_objext
12360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12361 (eval $ac_compile) 2>conftest.er1
12362 ac_status=$?
12363 grep -v '^ *+' conftest.er1 >conftest.err
12364 rm -f conftest.er1
12365 cat conftest.err >&5
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); } &&
12368 { ac_try='test -z "$ac_c_werror_flag"
12369 || test ! -s conftest.err'
12370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12371 (eval $ac_try) 2>&5
12372 ac_status=$?
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); }; } &&
12375 { ac_try='test -s conftest.$ac_objext'
12376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12377 (eval $ac_try) 2>&5
12378 ac_status=$?
12379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12380 (exit $ac_status); }; }; then
12381 libffi_cv_as_cfi_pseudo_op=yes
12382 else
12383 echo "$as_me: failed program was:" >&5
12384 sed 's/^/| /' conftest.$ac_ext >&5
12386 libffi_cv_as_cfi_pseudo_op=no
12388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12391 echo "$as_me:$LINENO: result: $libffi_cv_as_cfi_pseudo_op" >&5
12392 echo "${ECHO_T}$libffi_cv_as_cfi_pseudo_op" >&6
12393 if test "x$libffi_cv_as_cfi_pseudo_op" = xyes; then
12395 cat >>confdefs.h <<\_ACEOF
12396 #define HAVE_AS_CFI_PSEUDO_OP 1
12397 _ACEOF
12401 if test x$TARGET = xSPARC; then
12402 echo "$as_me:$LINENO: checking assembler and linker support unaligned pc related relocs" >&5
12403 echo $ECHO_N "checking assembler and linker support unaligned pc related relocs... $ECHO_C" >&6
12404 if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then
12405 echo $ECHO_N "(cached) $ECHO_C" >&6
12406 else
12408 save_CFLAGS="$CFLAGS"
12409 save_LDFLAGS="$LDFLAGS"
12410 CFLAGS="$CFLAGS -fpic"
12411 LDFLAGS="$LDFLAGS -shared"
12412 cat >conftest.$ac_ext <<_ACEOF
12413 /* confdefs.h. */
12414 _ACEOF
12415 cat confdefs.h >>conftest.$ac_ext
12416 cat >>conftest.$ac_ext <<_ACEOF
12417 /* end confdefs.h. */
12418 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
12420 main ()
12424 return 0;
12426 _ACEOF
12427 rm -f conftest.$ac_objext conftest$ac_exeext
12428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12429 (eval $ac_link) 2>conftest.er1
12430 ac_status=$?
12431 grep -v '^ *+' conftest.er1 >conftest.err
12432 rm -f conftest.er1
12433 cat conftest.err >&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); } &&
12436 { ac_try='test -z "$ac_c_werror_flag"
12437 || test ! -s conftest.err'
12438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12439 (eval $ac_try) 2>&5
12440 ac_status=$?
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); }; } &&
12443 { ac_try='test -s conftest$ac_exeext'
12444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12445 (eval $ac_try) 2>&5
12446 ac_status=$?
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); }; }; then
12449 libffi_cv_as_sparc_ua_pcrel=yes
12450 else
12451 echo "$as_me: failed program was:" >&5
12452 sed 's/^/| /' conftest.$ac_ext >&5
12454 libffi_cv_as_sparc_ua_pcrel=no
12456 rm -f conftest.err conftest.$ac_objext \
12457 conftest$ac_exeext conftest.$ac_ext
12458 CFLAGS="$save_CFLAGS"
12459 LDFLAGS="$save_LDFLAGS"
12461 echo "$as_me:$LINENO: result: $libffi_cv_as_sparc_ua_pcrel" >&5
12462 echo "${ECHO_T}$libffi_cv_as_sparc_ua_pcrel" >&6
12463 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
12465 cat >>confdefs.h <<\_ACEOF
12466 #define HAVE_AS_SPARC_UA_PCREL 1
12467 _ACEOF
12471 echo "$as_me:$LINENO: checking assembler .register pseudo-op support" >&5
12472 echo $ECHO_N "checking assembler .register pseudo-op support... $ECHO_C" >&6
12473 if test "${libffi_cv_as_register_pseudo_op+set}" = set; then
12474 echo $ECHO_N "(cached) $ECHO_C" >&6
12475 else
12477 libffi_cv_as_register_pseudo_op=unknown
12478 # Check if we have .register
12479 cat >conftest.$ac_ext <<_ACEOF
12480 /* confdefs.h. */
12481 _ACEOF
12482 cat confdefs.h >>conftest.$ac_ext
12483 cat >>conftest.$ac_ext <<_ACEOF
12484 /* end confdefs.h. */
12485 asm (".register %g2, #scratch");
12487 main ()
12491 return 0;
12493 _ACEOF
12494 rm -f conftest.$ac_objext
12495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12496 (eval $ac_compile) 2>conftest.er1
12497 ac_status=$?
12498 grep -v '^ *+' conftest.er1 >conftest.err
12499 rm -f conftest.er1
12500 cat conftest.err >&5
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); } &&
12503 { ac_try='test -z "$ac_c_werror_flag"
12504 || test ! -s conftest.err'
12505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12506 (eval $ac_try) 2>&5
12507 ac_status=$?
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); }; } &&
12510 { ac_try='test -s conftest.$ac_objext'
12511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12512 (eval $ac_try) 2>&5
12513 ac_status=$?
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); }; }; then
12516 libffi_cv_as_register_pseudo_op=yes
12517 else
12518 echo "$as_me: failed program was:" >&5
12519 sed 's/^/| /' conftest.$ac_ext >&5
12521 libffi_cv_as_register_pseudo_op=no
12523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12526 echo "$as_me:$LINENO: result: $libffi_cv_as_register_pseudo_op" >&5
12527 echo "${ECHO_T}$libffi_cv_as_register_pseudo_op" >&6
12528 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
12530 cat >>confdefs.h <<\_ACEOF
12531 #define HAVE_AS_REGISTER_PSEUDO_OP 1
12532 _ACEOF
12537 echo "$as_me:$LINENO: checking whether .eh_frame section should be read-only" >&5
12538 echo $ECHO_N "checking whether .eh_frame section should be read-only... $ECHO_C" >&6
12539 if test "${libffi_cv_ro_eh_frame+set}" = set; then
12540 echo $ECHO_N "(cached) $ECHO_C" >&6
12541 else
12543 libffi_cv_ro_eh_frame=no
12544 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
12545 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
12546 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
12547 libffi_cv_ro_eh_frame=yes
12548 elif grep '.section.*eh_frame.*#alloc' conftest.c \
12549 | grep -v '#write' > /dev/null; then
12550 libffi_cv_ro_eh_frame=yes
12553 rm -f conftest.*
12556 echo "$as_me:$LINENO: result: $libffi_cv_ro_eh_frame" >&5
12557 echo "${ECHO_T}$libffi_cv_ro_eh_frame" >&6
12558 if test "x$libffi_cv_ro_eh_frame" = xyes; then
12560 cat >>confdefs.h <<\_ACEOF
12561 #define HAVE_RO_EH_FRAME 1
12562 _ACEOF
12565 cat >>confdefs.h <<\_ACEOF
12566 #define EH_FRAME_FLAGS "a"
12567 _ACEOF
12569 else
12571 cat >>confdefs.h <<\_ACEOF
12572 #define EH_FRAME_FLAGS "aw"
12573 _ACEOF
12577 echo "$as_me:$LINENO: checking for __attribute__((visibility(\"hidden\")))" >&5
12578 echo $ECHO_N "checking for __attribute__((visibility(\"hidden\")))... $ECHO_C" >&6
12579 if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then
12580 echo $ECHO_N "(cached) $ECHO_C" >&6
12581 else
12583 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
12584 libffi_cv_hidden_visibility_attribute=no
12585 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
12586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12587 (eval $ac_try) 2>&5
12588 ac_status=$?
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); }; }; then
12591 if grep '\.hidden.*foo' conftest.s >/dev/null; then
12592 libffi_cv_hidden_visibility_attribute=yes
12595 rm -f conftest.*
12598 echo "$as_me:$LINENO: result: $libffi_cv_hidden_visibility_attribute" >&5
12599 echo "${ECHO_T}$libffi_cv_hidden_visibility_attribute" >&6
12600 if test $libffi_cv_hidden_visibility_attribute = yes; then
12602 cat >>confdefs.h <<\_ACEOF
12603 #define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1
12604 _ACEOF
12616 # Check whether --enable-debug or --disable-debug was given.
12617 if test "${enable_debug+set}" = set; then
12618 enableval="$enable_debug"
12619 if test "$enable_debug" = "yes"; then
12621 cat >>confdefs.h <<\_ACEOF
12622 #define FFI_DEBUG 1
12623 _ACEOF
12628 # Check whether --enable-structs or --disable-structs was given.
12629 if test "${enable_structs+set}" = set; then
12630 enableval="$enable_structs"
12631 if test "$enable_structs" = "no"; then
12633 cat >>confdefs.h <<\_ACEOF
12634 #define FFI_NO_STRUCTS 1
12635 _ACEOF
12640 # Check whether --enable-raw-api or --disable-raw-api was given.
12641 if test "${enable_raw_api+set}" = set; then
12642 enableval="$enable_raw_api"
12643 if test "$enable_raw_api" = "no"; then
12645 cat >>confdefs.h <<\_ACEOF
12646 #define FFI_NO_RAW_API 1
12647 _ACEOF
12652 # Check whether --enable-purify-safety or --disable-purify-safety was given.
12653 if test "${enable_purify_safety+set}" = set; then
12654 enableval="$enable_purify_safety"
12655 if test "$enable_purify_safety" = "yes"; then
12657 cat >>confdefs.h <<\_ACEOF
12658 #define USING_PURIFY 1
12659 _ACEOF
12664 if test -n "$with_cross_host" &&
12665 test x"$with_cross_host" != x"no"; then
12666 toolexecdir='$(exec_prefix)/$(target_alias)'
12667 toolexeclibdir='$(toolexecdir)/lib'
12668 else
12669 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
12670 toolexeclibdir='$(libdir)'
12672 multi_os_directory=`$CC -print-multi-os-directory`
12673 case $multi_os_directory in
12674 .) ;; # Avoid trailing /.
12675 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
12676 esac
12680 if test "${multilib}" = "yes"; then
12681 multilib_arg="--enable-multilib"
12682 else
12683 multilib_arg=
12686 ac_config_commands="$ac_config_commands include"
12688 ac_config_commands="$ac_config_commands src"
12691 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
12694 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile"
12697 cat >confcache <<\_ACEOF
12698 # This file is a shell script that caches the results of configure
12699 # tests run on this system so they can be shared between configure
12700 # scripts and configure runs, see configure's option --config-cache.
12701 # It is not useful on other systems. If it contains results you don't
12702 # want to keep, you may remove or edit it.
12704 # config.status only pays attention to the cache file if you give it
12705 # the --recheck option to rerun configure.
12707 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12708 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12709 # following values.
12711 _ACEOF
12713 # The following way of writing the cache mishandles newlines in values,
12714 # but we know of no workaround that is simple, portable, and efficient.
12715 # So, don't put newlines in cache variables' values.
12716 # Ultrix sh set writes to stderr and can't be redirected directly,
12717 # and sets the high bit in the cache file unless we assign to the vars.
12719 (set) 2>&1 |
12720 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12721 *ac_space=\ *)
12722 # `set' does not quote correctly, so add quotes (double-quote
12723 # substitution turns \\\\ into \\, and sed turns \\ into \).
12724 sed -n \
12725 "s/'/'\\\\''/g;
12726 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12729 # `set' quotes correctly as required by POSIX, so do not add quotes.
12730 sed -n \
12731 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12733 esac;
12735 sed '
12736 t clear
12737 : clear
12738 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12739 t end
12740 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12741 : end' >>confcache
12742 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12743 if test -w $cache_file; then
12744 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12745 cat confcache >$cache_file
12746 else
12747 echo "not updating unwritable cache $cache_file"
12750 rm -f confcache
12752 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12753 # Let make expand exec_prefix.
12754 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12756 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12757 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12758 # trailing colons and then remove the whole line if VPATH becomes empty
12759 # (actually we leave an empty line to preserve line numbers).
12760 if test "x$srcdir" = x.; then
12761 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12762 s/:*\$(srcdir):*/:/;
12763 s/:*\${srcdir}:*/:/;
12764 s/:*@srcdir@:*/:/;
12765 s/^\([^=]*=[ ]*\):*/\1/;
12766 s/:*$//;
12767 s/^[^=]*=[ ]*$//;
12771 DEFS=-DHAVE_CONFIG_H
12773 ac_libobjs=
12774 ac_ltlibobjs=
12775 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12776 # 1. Remove the extension, and $U if already installed.
12777 ac_i=`echo "$ac_i" |
12778 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12779 # 2. Add them.
12780 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12781 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12782 done
12783 LIBOBJS=$ac_libobjs
12785 LTLIBOBJS=$ac_ltlibobjs
12788 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12789 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12790 Usually this means the macro was only invoked conditionally." >&5
12791 echo "$as_me: error: conditional \"AMDEP\" was never defined.
12792 Usually this means the macro was only invoked conditionally." >&2;}
12793 { (exit 1); exit 1; }; }
12795 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12796 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12797 Usually this means the macro was only invoked conditionally." >&5
12798 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12799 Usually this means the macro was only invoked conditionally." >&2;}
12800 { (exit 1); exit 1; }; }
12802 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12803 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12804 Usually this means the macro was only invoked conditionally." >&5
12805 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12806 Usually this means the macro was only invoked conditionally." >&2;}
12807 { (exit 1); exit 1; }; }
12809 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
12810 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
12811 Usually this means the macro was only invoked conditionally." >&5
12812 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
12813 Usually this means the macro was only invoked conditionally." >&2;}
12814 { (exit 1); exit 1; }; }
12816 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
12817 { { echo "$as_me:$LINENO: error: conditional \"MIPS\" was never defined.
12818 Usually this means the macro was only invoked conditionally." >&5
12819 echo "$as_me: error: conditional \"MIPS\" was never defined.
12820 Usually this means the macro was only invoked conditionally." >&2;}
12821 { (exit 1); exit 1; }; }
12823 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
12824 { { echo "$as_me:$LINENO: error: conditional \"SPARC\" was never defined.
12825 Usually this means the macro was only invoked conditionally." >&5
12826 echo "$as_me: error: conditional \"SPARC\" was never defined.
12827 Usually this means the macro was only invoked conditionally." >&2;}
12828 { (exit 1); exit 1; }; }
12830 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
12831 { { echo "$as_me:$LINENO: error: conditional \"X86\" was never defined.
12832 Usually this means the macro was only invoked conditionally." >&5
12833 echo "$as_me: error: conditional \"X86\" was never defined.
12834 Usually this means the macro was only invoked conditionally." >&2;}
12835 { (exit 1); exit 1; }; }
12837 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
12838 { { echo "$as_me:$LINENO: error: conditional \"X86_WIN32\" was never defined.
12839 Usually this means the macro was only invoked conditionally." >&5
12840 echo "$as_me: error: conditional \"X86_WIN32\" was never defined.
12841 Usually this means the macro was only invoked conditionally." >&2;}
12842 { (exit 1); exit 1; }; }
12844 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
12845 { { echo "$as_me:$LINENO: error: conditional \"X86_DARWIN\" was never defined.
12846 Usually this means the macro was only invoked conditionally." >&5
12847 echo "$as_me: error: conditional \"X86_DARWIN\" was never defined.
12848 Usually this means the macro was only invoked conditionally." >&2;}
12849 { (exit 1); exit 1; }; }
12851 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
12852 { { echo "$as_me:$LINENO: error: conditional \"ALPHA\" was never defined.
12853 Usually this means the macro was only invoked conditionally." >&5
12854 echo "$as_me: error: conditional \"ALPHA\" was never defined.
12855 Usually this means the macro was only invoked conditionally." >&2;}
12856 { (exit 1); exit 1; }; }
12858 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
12859 { { echo "$as_me:$LINENO: error: conditional \"IA64\" was never defined.
12860 Usually this means the macro was only invoked conditionally." >&5
12861 echo "$as_me: error: conditional \"IA64\" was never defined.
12862 Usually this means the macro was only invoked conditionally." >&2;}
12863 { (exit 1); exit 1; }; }
12865 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
12866 { { echo "$as_me:$LINENO: error: conditional \"M32R\" was never defined.
12867 Usually this means the macro was only invoked conditionally." >&5
12868 echo "$as_me: error: conditional \"M32R\" was never defined.
12869 Usually this means the macro was only invoked conditionally." >&2;}
12870 { (exit 1); exit 1; }; }
12872 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
12873 { { echo "$as_me:$LINENO: error: conditional \"M68K\" was never defined.
12874 Usually this means the macro was only invoked conditionally." >&5
12875 echo "$as_me: error: conditional \"M68K\" was never defined.
12876 Usually this means the macro was only invoked conditionally." >&2;}
12877 { (exit 1); exit 1; }; }
12879 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
12880 { { echo "$as_me:$LINENO: error: conditional \"POWERPC\" was never defined.
12881 Usually this means the macro was only invoked conditionally." >&5
12882 echo "$as_me: error: conditional \"POWERPC\" was never defined.
12883 Usually this means the macro was only invoked conditionally." >&2;}
12884 { (exit 1); exit 1; }; }
12886 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
12887 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_AIX\" was never defined.
12888 Usually this means the macro was only invoked conditionally." >&5
12889 echo "$as_me: error: conditional \"POWERPC_AIX\" was never defined.
12890 Usually this means the macro was only invoked conditionally." >&2;}
12891 { (exit 1); exit 1; }; }
12893 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
12894 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_DARWIN\" was never defined.
12895 Usually this means the macro was only invoked conditionally." >&5
12896 echo "$as_me: error: conditional \"POWERPC_DARWIN\" was never defined.
12897 Usually this means the macro was only invoked conditionally." >&2;}
12898 { (exit 1); exit 1; }; }
12900 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
12901 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_FREEBSD\" was never defined.
12902 Usually this means the macro was only invoked conditionally." >&5
12903 echo "$as_me: error: conditional \"POWERPC_FREEBSD\" was never defined.
12904 Usually this means the macro was only invoked conditionally." >&2;}
12905 { (exit 1); exit 1; }; }
12907 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
12908 { { echo "$as_me:$LINENO: error: conditional \"ARM\" was never defined.
12909 Usually this means the macro was only invoked conditionally." >&5
12910 echo "$as_me: error: conditional \"ARM\" was never defined.
12911 Usually this means the macro was only invoked conditionally." >&2;}
12912 { (exit 1); exit 1; }; }
12914 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
12915 { { echo "$as_me:$LINENO: error: conditional \"LIBFFI_CRIS\" was never defined.
12916 Usually this means the macro was only invoked conditionally." >&5
12917 echo "$as_me: error: conditional \"LIBFFI_CRIS\" was never defined.
12918 Usually this means the macro was only invoked conditionally." >&2;}
12919 { (exit 1); exit 1; }; }
12921 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
12922 { { echo "$as_me:$LINENO: error: conditional \"FRV\" was never defined.
12923 Usually this means the macro was only invoked conditionally." >&5
12924 echo "$as_me: error: conditional \"FRV\" was never defined.
12925 Usually this means the macro was only invoked conditionally." >&2;}
12926 { (exit 1); exit 1; }; }
12928 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
12929 { { echo "$as_me:$LINENO: error: conditional \"S390\" was never defined.
12930 Usually this means the macro was only invoked conditionally." >&5
12931 echo "$as_me: error: conditional \"S390\" was never defined.
12932 Usually this means the macro was only invoked conditionally." >&2;}
12933 { (exit 1); exit 1; }; }
12935 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
12936 { { echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
12937 Usually this means the macro was only invoked conditionally." >&5
12938 echo "$as_me: error: conditional \"X86_64\" was never defined.
12939 Usually this means the macro was only invoked conditionally." >&2;}
12940 { (exit 1); exit 1; }; }
12942 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
12943 { { echo "$as_me:$LINENO: error: conditional \"SH\" was never defined.
12944 Usually this means the macro was only invoked conditionally." >&5
12945 echo "$as_me: error: conditional \"SH\" was never defined.
12946 Usually this means the macro was only invoked conditionally." >&2;}
12947 { (exit 1); exit 1; }; }
12949 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
12950 { { echo "$as_me:$LINENO: error: conditional \"SH64\" was never defined.
12951 Usually this means the macro was only invoked conditionally." >&5
12952 echo "$as_me: error: conditional \"SH64\" was never defined.
12953 Usually this means the macro was only invoked conditionally." >&2;}
12954 { (exit 1); exit 1; }; }
12956 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
12957 { { echo "$as_me:$LINENO: error: conditional \"PA_LINUX\" was never defined.
12958 Usually this means the macro was only invoked conditionally." >&5
12959 echo "$as_me: error: conditional \"PA_LINUX\" was never defined.
12960 Usually this means the macro was only invoked conditionally." >&2;}
12961 { (exit 1); exit 1; }; }
12963 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
12964 { { echo "$as_me:$LINENO: error: conditional \"PA_HPUX\" was never defined.
12965 Usually this means the macro was only invoked conditionally." >&5
12966 echo "$as_me: error: conditional \"PA_HPUX\" was never defined.
12967 Usually this means the macro was only invoked conditionally." >&2;}
12968 { (exit 1); exit 1; }; }
12970 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
12971 { { echo "$as_me:$LINENO: error: conditional \"PA64_HPUX\" was never defined.
12972 Usually this means the macro was only invoked conditionally." >&5
12973 echo "$as_me: error: conditional \"PA64_HPUX\" was never defined.
12974 Usually this means the macro was only invoked conditionally." >&2;}
12975 { (exit 1); exit 1; }; }
12978 : ${CONFIG_STATUS=./config.status}
12979 ac_clean_files_save=$ac_clean_files
12980 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12981 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12982 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12983 cat >$CONFIG_STATUS <<_ACEOF
12984 #! $SHELL
12985 # Generated by $as_me.
12986 # Run this file to recreate the current configuration.
12987 # Compiler output produced by configure, useful for debugging
12988 # configure, is in config.log if it exists.
12990 debug=false
12991 ac_cs_recheck=false
12992 ac_cs_silent=false
12993 SHELL=\${CONFIG_SHELL-$SHELL}
12994 _ACEOF
12996 cat >>$CONFIG_STATUS <<\_ACEOF
12997 ## --------------------- ##
12998 ## M4sh Initialization. ##
12999 ## --------------------- ##
13001 # Be Bourne compatible
13002 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13003 emulate sh
13004 NULLCMD=:
13005 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13006 # is contrary to our usage. Disable this feature.
13007 alias -g '${1+"$@"}'='"$@"'
13008 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13009 set -o posix
13011 DUALCASE=1; export DUALCASE # for MKS sh
13013 # Support unset when possible.
13014 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13015 as_unset=unset
13016 else
13017 as_unset=false
13021 # Work around bugs in pre-3.0 UWIN ksh.
13022 $as_unset ENV MAIL MAILPATH
13023 PS1='$ '
13024 PS2='> '
13025 PS4='+ '
13027 # NLS nuisances.
13028 for as_var in \
13029 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13030 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13031 LC_TELEPHONE LC_TIME
13033 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13034 eval $as_var=C; export $as_var
13035 else
13036 $as_unset $as_var
13038 done
13040 # Required to use basename.
13041 if expr a : '\(a\)' >/dev/null 2>&1; then
13042 as_expr=expr
13043 else
13044 as_expr=false
13047 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13048 as_basename=basename
13049 else
13050 as_basename=false
13054 # Name of the executable.
13055 as_me=`$as_basename "$0" ||
13056 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13057 X"$0" : 'X\(//\)$' \| \
13058 X"$0" : 'X\(/\)$' \| \
13059 . : '\(.\)' 2>/dev/null ||
13060 echo X/"$0" |
13061 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13062 /^X\/\(\/\/\)$/{ s//\1/; q; }
13063 /^X\/\(\/\).*/{ s//\1/; q; }
13064 s/.*/./; q'`
13067 # PATH needs CR, and LINENO needs CR and PATH.
13068 # Avoid depending upon Character Ranges.
13069 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13070 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13071 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13072 as_cr_digits='0123456789'
13073 as_cr_alnum=$as_cr_Letters$as_cr_digits
13075 # The user is always right.
13076 if test "${PATH_SEPARATOR+set}" != set; then
13077 echo "#! /bin/sh" >conf$$.sh
13078 echo "exit 0" >>conf$$.sh
13079 chmod +x conf$$.sh
13080 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13081 PATH_SEPARATOR=';'
13082 else
13083 PATH_SEPARATOR=:
13085 rm -f conf$$.sh
13089 as_lineno_1=$LINENO
13090 as_lineno_2=$LINENO
13091 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13092 test "x$as_lineno_1" != "x$as_lineno_2" &&
13093 test "x$as_lineno_3" = "x$as_lineno_2" || {
13094 # Find who we are. Look in the path if we contain no path at all
13095 # relative or not.
13096 case $0 in
13097 *[\\/]* ) as_myself=$0 ;;
13098 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13099 for as_dir in $PATH
13101 IFS=$as_save_IFS
13102 test -z "$as_dir" && as_dir=.
13103 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13104 done
13107 esac
13108 # We did not find ourselves, most probably we were run as `sh COMMAND'
13109 # in which case we are not to be found in the path.
13110 if test "x$as_myself" = x; then
13111 as_myself=$0
13113 if test ! -f "$as_myself"; then
13114 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13115 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13116 { (exit 1); exit 1; }; }
13118 case $CONFIG_SHELL in
13120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13121 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13123 IFS=$as_save_IFS
13124 test -z "$as_dir" && as_dir=.
13125 for as_base in sh bash ksh sh5; do
13126 case $as_dir in
13128 if ("$as_dir/$as_base" -c '
13129 as_lineno_1=$LINENO
13130 as_lineno_2=$LINENO
13131 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13132 test "x$as_lineno_1" != "x$as_lineno_2" &&
13133 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13134 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13135 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13136 CONFIG_SHELL=$as_dir/$as_base
13137 export CONFIG_SHELL
13138 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13139 fi;;
13140 esac
13141 done
13142 done
13144 esac
13146 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13147 # uniformly replaced by the line number. The first 'sed' inserts a
13148 # line-number line before each line; the second 'sed' does the real
13149 # work. The second script uses 'N' to pair each line-number line
13150 # with the numbered line, and appends trailing '-' during
13151 # substitution so that $LINENO is not a special case at line end.
13152 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13153 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13154 sed '=' <$as_myself |
13155 sed '
13157 s,$,-,
13158 : loop
13159 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13160 t loop
13161 s,-$,,
13162 s,^['$as_cr_digits']*\n,,
13163 ' >$as_me.lineno &&
13164 chmod +x $as_me.lineno ||
13165 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13166 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13167 { (exit 1); exit 1; }; }
13169 # Don't try to exec as it changes $[0], causing all sort of problems
13170 # (the dirname of $[0] is not the place where we might find the
13171 # original and so on. Autoconf is especially sensible to this).
13172 . ./$as_me.lineno
13173 # Exit status is that of the last command.
13174 exit
13178 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13179 *c*,-n*) ECHO_N= ECHO_C='
13180 ' ECHO_T=' ' ;;
13181 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13182 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13183 esac
13185 if expr a : '\(a\)' >/dev/null 2>&1; then
13186 as_expr=expr
13187 else
13188 as_expr=false
13191 rm -f conf$$ conf$$.exe conf$$.file
13192 echo >conf$$.file
13193 if ln -s conf$$.file conf$$ 2>/dev/null; then
13194 # We could just check for DJGPP; but this test a) works b) is more generic
13195 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13196 if test -f conf$$.exe; then
13197 # Don't use ln at all; we don't have any links
13198 as_ln_s='cp -p'
13199 else
13200 as_ln_s='ln -s'
13202 elif ln conf$$.file conf$$ 2>/dev/null; then
13203 as_ln_s=ln
13204 else
13205 as_ln_s='cp -p'
13207 rm -f conf$$ conf$$.exe conf$$.file
13209 if mkdir -p . 2>/dev/null; then
13210 as_mkdir_p=:
13211 else
13212 test -d ./-p && rmdir ./-p
13213 as_mkdir_p=false
13216 as_executable_p="test -f"
13218 # Sed expression to map a string onto a valid CPP name.
13219 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13221 # Sed expression to map a string onto a valid variable name.
13222 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13225 # IFS
13226 # We need space, tab and new line, in precisely that order.
13227 as_nl='
13229 IFS=" $as_nl"
13231 # CDPATH.
13232 $as_unset CDPATH
13234 exec 6>&1
13236 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13237 # report actual input values of CONFIG_FILES etc. instead of their
13238 # values after options handling. Logging --version etc. is OK.
13239 exec 5>>config.log
13241 echo
13242 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13243 ## Running $as_me. ##
13244 _ASBOX
13245 } >&5
13246 cat >&5 <<_CSEOF
13248 This file was extended by libffi $as_me 2.1, which was
13249 generated by GNU Autoconf 2.59. Invocation command line was
13251 CONFIG_FILES = $CONFIG_FILES
13252 CONFIG_HEADERS = $CONFIG_HEADERS
13253 CONFIG_LINKS = $CONFIG_LINKS
13254 CONFIG_COMMANDS = $CONFIG_COMMANDS
13255 $ $0 $@
13257 _CSEOF
13258 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13259 echo >&5
13260 _ACEOF
13262 # Files that config.status was made for.
13263 if test -n "$ac_config_files"; then
13264 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13267 if test -n "$ac_config_headers"; then
13268 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13271 if test -n "$ac_config_links"; then
13272 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13275 if test -n "$ac_config_commands"; then
13276 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13279 cat >>$CONFIG_STATUS <<\_ACEOF
13281 ac_cs_usage="\
13282 \`$as_me' instantiates files from templates according to the
13283 current configuration.
13285 Usage: $0 [OPTIONS] [FILE]...
13287 -h, --help print this help, then exit
13288 -V, --version print version number, then exit
13289 -q, --quiet do not print progress messages
13290 -d, --debug don't remove temporary files
13291 --recheck update $as_me by reconfiguring in the same conditions
13292 --file=FILE[:TEMPLATE]
13293 instantiate the configuration file FILE
13294 --header=FILE[:TEMPLATE]
13295 instantiate the configuration header FILE
13297 Configuration files:
13298 $config_files
13300 Configuration headers:
13301 $config_headers
13303 Configuration links:
13304 $config_links
13306 Configuration commands:
13307 $config_commands
13309 Report bugs to <bug-autoconf@gnu.org>."
13310 _ACEOF
13312 cat >>$CONFIG_STATUS <<_ACEOF
13313 ac_cs_version="\\
13314 libffi config.status 2.1
13315 configured by $0, generated by GNU Autoconf 2.59,
13316 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13318 Copyright (C) 2003 Free Software Foundation, Inc.
13319 This config.status script is free software; the Free Software Foundation
13320 gives unlimited permission to copy, distribute and modify it."
13321 srcdir=$srcdir
13322 INSTALL="$INSTALL"
13323 _ACEOF
13325 cat >>$CONFIG_STATUS <<\_ACEOF
13326 # If no file are specified by the user, then we need to provide default
13327 # value. By we need to know if files were specified by the user.
13328 ac_need_defaults=:
13329 while test $# != 0
13331 case $1 in
13332 --*=*)
13333 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13334 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13335 ac_shift=:
13338 ac_option=$1
13339 ac_optarg=$2
13340 ac_shift=shift
13342 *) # This is not an option, so the user has probably given explicit
13343 # arguments.
13344 ac_option=$1
13345 ac_need_defaults=false;;
13346 esac
13348 case $ac_option in
13349 # Handling of the options.
13350 _ACEOF
13351 cat >>$CONFIG_STATUS <<\_ACEOF
13352 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13353 ac_cs_recheck=: ;;
13354 --version | --vers* | -V )
13355 echo "$ac_cs_version"; exit 0 ;;
13356 --he | --h)
13357 # Conflict between --help and --header
13358 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13359 Try \`$0 --help' for more information." >&5
13360 echo "$as_me: error: ambiguous option: $1
13361 Try \`$0 --help' for more information." >&2;}
13362 { (exit 1); exit 1; }; };;
13363 --help | --hel | -h )
13364 echo "$ac_cs_usage"; exit 0 ;;
13365 --debug | --d* | -d )
13366 debug=: ;;
13367 --file | --fil | --fi | --f )
13368 $ac_shift
13369 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13370 ac_need_defaults=false;;
13371 --header | --heade | --head | --hea )
13372 $ac_shift
13373 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13374 ac_need_defaults=false;;
13375 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13376 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13377 ac_cs_silent=: ;;
13379 # This is an error.
13380 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13381 Try \`$0 --help' for more information." >&5
13382 echo "$as_me: error: unrecognized option: $1
13383 Try \`$0 --help' for more information." >&2;}
13384 { (exit 1); exit 1; }; } ;;
13386 *) ac_config_targets="$ac_config_targets $1" ;;
13388 esac
13389 shift
13390 done
13392 ac_configure_extra_args=
13394 if $ac_cs_silent; then
13395 exec 6>/dev/null
13396 ac_configure_extra_args="$ac_configure_extra_args --silent"
13399 _ACEOF
13400 cat >>$CONFIG_STATUS <<_ACEOF
13401 if \$ac_cs_recheck; then
13402 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13403 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13406 _ACEOF
13408 cat >>$CONFIG_STATUS <<_ACEOF
13410 # INIT-COMMANDS section.
13414 srcdir="$srcdir"
13415 host="$host"
13416 target="$target"
13417 with_multisubdir="$with_multisubdir"
13418 with_multisrctop="$with_multisrctop"
13419 with_target_subdir="$with_target_subdir"
13420 ac_configure_args="${multilib_arg} ${ac_configure_args}"
13421 multi_basedir="$multi_basedir"
13422 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13423 CC="$CC"
13424 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13427 # The HP-UX ksh and POSIX shell print the target directory to stdout
13428 # if CDPATH is set.
13429 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13431 sed_quote_subst='$sed_quote_subst'
13432 double_quote_subst='$double_quote_subst'
13433 delay_variable_subst='$delay_variable_subst'
13434 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13435 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13436 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13437 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13438 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13439 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13440 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13441 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13442 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13443 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13444 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13445 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13446 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13447 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13448 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13449 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13450 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13451 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13452 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13453 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13454 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13455 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13456 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13457 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13458 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13459 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13460 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13461 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13462 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13463 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13464 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13465 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13466 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13467 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13468 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13469 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13470 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13471 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13472 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13473 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13474 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13475 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13476 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13477 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"`'
13478 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13479 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13480 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13481 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13482 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13483 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13484 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13485 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13486 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13487 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13488 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13489 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13490 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13491 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13492 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13493 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13494 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13495 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13496 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13497 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13498 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13499 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13500 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13501 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13502 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13503 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13504 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13505 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13506 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13507 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13508 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13509 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13510 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13511 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13512 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13513 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13514 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13515 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13516 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13517 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13518 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13519 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13520 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13521 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13522 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13523 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13524 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13525 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13526 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13527 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13528 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13529 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13530 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13531 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13532 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13533 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13534 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13535 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13536 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13537 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13538 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13539 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13540 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13541 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13542 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13543 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13544 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13546 LTCC='$LTCC'
13547 LTCFLAGS='$LTCFLAGS'
13548 compiler='$compiler_DEFAULT'
13550 # Quote evaled strings.
13551 for var in SED \
13552 GREP \
13553 EGREP \
13554 FGREP \
13555 LD \
13556 NM \
13557 LN_S \
13558 lt_SP2NL \
13559 lt_NL2SP \
13560 reload_flag \
13561 deplibs_check_method \
13562 file_magic_cmd \
13563 AR \
13564 AR_FLAGS \
13565 STRIP \
13566 RANLIB \
13567 CC \
13568 CFLAGS \
13569 compiler \
13570 lt_cv_sys_global_symbol_pipe \
13571 lt_cv_sys_global_symbol_to_cdecl \
13572 lt_cv_sys_global_symbol_to_c_name_address \
13573 SHELL \
13574 ECHO \
13575 lt_prog_compiler_no_builtin_flag \
13576 lt_prog_compiler_wl \
13577 lt_prog_compiler_pic \
13578 lt_prog_compiler_static \
13579 lt_cv_prog_compiler_c_o \
13580 need_locks \
13581 shrext_cmds \
13582 export_dynamic_flag_spec \
13583 whole_archive_flag_spec \
13584 compiler_needs_object \
13585 with_gnu_ld \
13586 allow_undefined_flag \
13587 no_undefined_flag \
13588 hardcode_libdir_flag_spec \
13589 hardcode_libdir_flag_spec_ld \
13590 hardcode_libdir_separator \
13591 fix_srcfile_path \
13592 exclude_expsyms \
13593 include_expsyms \
13594 file_list_spec \
13595 variables_saved_for_relink \
13596 libname_spec \
13597 library_names_spec \
13598 soname_spec \
13599 finish_eval \
13600 old_striplib \
13601 striplib; do
13602 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13603 *[\\\\\\\`\\"\\\$]*)
13604 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13607 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13609 esac
13610 done
13612 # Double-quote double-evaled strings.
13613 for var in reload_cmds \
13614 old_postinstall_cmds \
13615 old_postuninstall_cmds \
13616 old_archive_cmds \
13617 extract_expsyms_cmds \
13618 old_archive_from_new_cmds \
13619 old_archive_from_expsyms_cmds \
13620 archive_cmds \
13621 archive_expsym_cmds \
13622 module_cmds \
13623 module_expsym_cmds \
13624 export_symbols_cmds \
13625 prelink_cmds \
13626 postinstall_cmds \
13627 postuninstall_cmds \
13628 finish_cmds \
13629 sys_lib_search_path_spec \
13630 sys_lib_dlsearch_path_spec; do
13631 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13632 *[\\\\\\\`\\"\\\$]*)
13633 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13636 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13638 esac
13639 done
13641 # Fix-up fallback echo if it was mangled by the above quoting rules.
13642 case \$lt_ECHO in
13643 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13645 esac
13647 ac_aux_dir='$ac_aux_dir'
13648 xsi_shell='$xsi_shell'
13649 lt_shell_append='$lt_shell_append'
13651 # See if we are running on zsh, and set the options which allow our
13652 # commands through without removal of \ escapes INIT.
13653 if test -n "\${ZSH_VERSION+set}" ; then
13654 setopt NO_GLOB_SUBST
13658 PACKAGE='$PACKAGE'
13659 VERSION='$VERSION'
13660 TIMESTAMP='$TIMESTAMP'
13661 RM='$RM'
13662 ofile='$ofile'
13666 TARGETDIR="$TARGETDIR"
13668 _ACEOF
13672 cat >>$CONFIG_STATUS <<\_ACEOF
13673 for ac_config_target in $ac_config_targets
13675 case "$ac_config_target" in
13676 # Handling of arguments.
13677 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13678 "include/ffi.h" ) CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
13679 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13680 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
13681 "include/ffitarget.h" ) CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
13682 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13683 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13684 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13685 "include" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
13686 "src" ) CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
13687 "fficonfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
13688 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13689 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13690 { (exit 1); exit 1; }; };;
13691 esac
13692 done
13694 # If the user did not use the arguments to specify the items to instantiate,
13695 # then the envvar interface is used. Set only those that are not.
13696 # We use the long form for the default assignment because of an extremely
13697 # bizarre bug on SunOS 4.1.3.
13698 if $ac_need_defaults; then
13699 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13700 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13701 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
13702 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13705 # Have a temporary directory for convenience. Make it in the build tree
13706 # simply because there is no reason to put it here, and in addition,
13707 # creating and moving files from /tmp can sometimes cause problems.
13708 # Create a temporary directory, and hook for its removal unless debugging.
13709 $debug ||
13711 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13712 trap '{ (exit 1); exit 1; }' 1 2 13 15
13715 # Create a (secure) tmp directory for tmp files.
13718 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13719 test -n "$tmp" && test -d "$tmp"
13720 } ||
13722 tmp=./confstat$$-$RANDOM
13723 (umask 077 && mkdir $tmp)
13724 } ||
13726 echo "$me: cannot create a temporary directory in ." >&2
13727 { (exit 1); exit 1; }
13730 _ACEOF
13732 cat >>$CONFIG_STATUS <<_ACEOF
13735 # CONFIG_FILES section.
13738 # No need to generate the scripts if there are no CONFIG_FILES.
13739 # This happens for instance when ./config.status config.h
13740 if test -n "\$CONFIG_FILES"; then
13741 # Protect against being on the right side of a sed subst in config.status.
13742 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13743 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13744 s,@SHELL@,$SHELL,;t t
13745 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13746 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13747 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13748 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13749 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13750 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13751 s,@exec_prefix@,$exec_prefix,;t t
13752 s,@prefix@,$prefix,;t t
13753 s,@program_transform_name@,$program_transform_name,;t t
13754 s,@bindir@,$bindir,;t t
13755 s,@sbindir@,$sbindir,;t t
13756 s,@libexecdir@,$libexecdir,;t t
13757 s,@datadir@,$datadir,;t t
13758 s,@sysconfdir@,$sysconfdir,;t t
13759 s,@sharedstatedir@,$sharedstatedir,;t t
13760 s,@localstatedir@,$localstatedir,;t t
13761 s,@libdir@,$libdir,;t t
13762 s,@includedir@,$includedir,;t t
13763 s,@oldincludedir@,$oldincludedir,;t t
13764 s,@infodir@,$infodir,;t t
13765 s,@mandir@,$mandir,;t t
13766 s,@build_alias@,$build_alias,;t t
13767 s,@host_alias@,$host_alias,;t t
13768 s,@target_alias@,$target_alias,;t t
13769 s,@DEFS@,$DEFS,;t t
13770 s,@ECHO_C@,$ECHO_C,;t t
13771 s,@ECHO_N@,$ECHO_N,;t t
13772 s,@ECHO_T@,$ECHO_T,;t t
13773 s,@LIBS@,$LIBS,;t t
13774 s,@multi_basedir@,$multi_basedir,;t t
13775 s,@build@,$build,;t t
13776 s,@build_cpu@,$build_cpu,;t t
13777 s,@build_vendor@,$build_vendor,;t t
13778 s,@build_os@,$build_os,;t t
13779 s,@host@,$host,;t t
13780 s,@host_cpu@,$host_cpu,;t t
13781 s,@host_vendor@,$host_vendor,;t t
13782 s,@host_os@,$host_os,;t t
13783 s,@target@,$target,;t t
13784 s,@target_cpu@,$target_cpu,;t t
13785 s,@target_vendor@,$target_vendor,;t t
13786 s,@target_os@,$target_os,;t t
13787 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13788 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13789 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13790 s,@CYGPATH_W@,$CYGPATH_W,;t t
13791 s,@PACKAGE@,$PACKAGE,;t t
13792 s,@VERSION@,$VERSION,;t t
13793 s,@ACLOCAL@,$ACLOCAL,;t t
13794 s,@AUTOCONF@,$AUTOCONF,;t t
13795 s,@AUTOMAKE@,$AUTOMAKE,;t t
13796 s,@AUTOHEADER@,$AUTOHEADER,;t t
13797 s,@MAKEINFO@,$MAKEINFO,;t t
13798 s,@install_sh@,$install_sh,;t t
13799 s,@STRIP@,$STRIP,;t t
13800 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13801 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13802 s,@mkdir_p@,$mkdir_p,;t t
13803 s,@AWK@,$AWK,;t t
13804 s,@SET_MAKE@,$SET_MAKE,;t t
13805 s,@am__leading_dot@,$am__leading_dot,;t t
13806 s,@AMTAR@,$AMTAR,;t t
13807 s,@am__tar@,$am__tar,;t t
13808 s,@am__untar@,$am__untar,;t t
13809 s,@CC@,$CC,;t t
13810 s,@ac_ct_CC@,$ac_ct_CC,;t t
13811 s,@EXEEXT@,$EXEEXT,;t t
13812 s,@OBJEXT@,$OBJEXT,;t t
13813 s,@DEPDIR@,$DEPDIR,;t t
13814 s,@am__include@,$am__include,;t t
13815 s,@am__quote@,$am__quote,;t t
13816 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13817 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13818 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13819 s,@CCDEPMODE@,$CCDEPMODE,;t t
13820 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13821 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
13822 s,@CFLAGS@,$CFLAGS,;t t
13823 s,@CCAS@,$CCAS,;t t
13824 s,@CCASFLAGS@,$CCASFLAGS,;t t
13825 s,@LIBTOOL@,$LIBTOOL,;t t
13826 s,@SED@,$SED,;t t
13827 s,@EGREP@,$EGREP,;t t
13828 s,@FGREP@,$FGREP,;t t
13829 s,@GREP@,$GREP,;t t
13830 s,@LD@,$LD,;t t
13831 s,@DUMPBIN@,$DUMPBIN,;t t
13832 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
13833 s,@NM@,$NM,;t t
13834 s,@LN_S@,$LN_S,;t t
13835 s,@AR@,$AR,;t t
13836 s,@ac_ct_AR@,$ac_ct_AR,;t t
13837 s,@RANLIB@,$RANLIB,;t t
13838 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13839 s,@lt_ECHO@,$lt_ECHO,;t t
13840 s,@CPP@,$CPP,;t t
13841 s,@CPPFLAGS@,$CPPFLAGS,;t t
13842 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13843 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13844 s,@MAINT@,$MAINT,;t t
13845 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
13846 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
13847 s,@AM_RUNTESTFLAGS@,$AM_RUNTESTFLAGS,;t t
13848 s,@MIPS_TRUE@,$MIPS_TRUE,;t t
13849 s,@MIPS_FALSE@,$MIPS_FALSE,;t t
13850 s,@SPARC_TRUE@,$SPARC_TRUE,;t t
13851 s,@SPARC_FALSE@,$SPARC_FALSE,;t t
13852 s,@X86_TRUE@,$X86_TRUE,;t t
13853 s,@X86_FALSE@,$X86_FALSE,;t t
13854 s,@X86_WIN32_TRUE@,$X86_WIN32_TRUE,;t t
13855 s,@X86_WIN32_FALSE@,$X86_WIN32_FALSE,;t t
13856 s,@X86_DARWIN_TRUE@,$X86_DARWIN_TRUE,;t t
13857 s,@X86_DARWIN_FALSE@,$X86_DARWIN_FALSE,;t t
13858 s,@ALPHA_TRUE@,$ALPHA_TRUE,;t t
13859 s,@ALPHA_FALSE@,$ALPHA_FALSE,;t t
13860 s,@IA64_TRUE@,$IA64_TRUE,;t t
13861 s,@IA64_FALSE@,$IA64_FALSE,;t t
13862 s,@M32R_TRUE@,$M32R_TRUE,;t t
13863 s,@M32R_FALSE@,$M32R_FALSE,;t t
13864 s,@M68K_TRUE@,$M68K_TRUE,;t t
13865 s,@M68K_FALSE@,$M68K_FALSE,;t t
13866 s,@POWERPC_TRUE@,$POWERPC_TRUE,;t t
13867 s,@POWERPC_FALSE@,$POWERPC_FALSE,;t t
13868 s,@POWERPC_AIX_TRUE@,$POWERPC_AIX_TRUE,;t t
13869 s,@POWERPC_AIX_FALSE@,$POWERPC_AIX_FALSE,;t t
13870 s,@POWERPC_DARWIN_TRUE@,$POWERPC_DARWIN_TRUE,;t t
13871 s,@POWERPC_DARWIN_FALSE@,$POWERPC_DARWIN_FALSE,;t t
13872 s,@POWERPC_FREEBSD_TRUE@,$POWERPC_FREEBSD_TRUE,;t t
13873 s,@POWERPC_FREEBSD_FALSE@,$POWERPC_FREEBSD_FALSE,;t t
13874 s,@ARM_TRUE@,$ARM_TRUE,;t t
13875 s,@ARM_FALSE@,$ARM_FALSE,;t t
13876 s,@LIBFFI_CRIS_TRUE@,$LIBFFI_CRIS_TRUE,;t t
13877 s,@LIBFFI_CRIS_FALSE@,$LIBFFI_CRIS_FALSE,;t t
13878 s,@FRV_TRUE@,$FRV_TRUE,;t t
13879 s,@FRV_FALSE@,$FRV_FALSE,;t t
13880 s,@S390_TRUE@,$S390_TRUE,;t t
13881 s,@S390_FALSE@,$S390_FALSE,;t t
13882 s,@X86_64_TRUE@,$X86_64_TRUE,;t t
13883 s,@X86_64_FALSE@,$X86_64_FALSE,;t t
13884 s,@SH_TRUE@,$SH_TRUE,;t t
13885 s,@SH_FALSE@,$SH_FALSE,;t t
13886 s,@SH64_TRUE@,$SH64_TRUE,;t t
13887 s,@SH64_FALSE@,$SH64_FALSE,;t t
13888 s,@PA_LINUX_TRUE@,$PA_LINUX_TRUE,;t t
13889 s,@PA_LINUX_FALSE@,$PA_LINUX_FALSE,;t t
13890 s,@PA_HPUX_TRUE@,$PA_HPUX_TRUE,;t t
13891 s,@PA_HPUX_FALSE@,$PA_HPUX_FALSE,;t t
13892 s,@PA64_HPUX_TRUE@,$PA64_HPUX_TRUE,;t t
13893 s,@PA64_HPUX_FALSE@,$PA64_HPUX_FALSE,;t t
13894 s,@ALLOCA@,$ALLOCA,;t t
13895 s,@HAVE_LONG_DOUBLE@,$HAVE_LONG_DOUBLE,;t t
13896 s,@TARGET@,$TARGET,;t t
13897 s,@TARGETDIR@,$TARGETDIR,;t t
13898 s,@toolexecdir@,$toolexecdir,;t t
13899 s,@toolexeclibdir@,$toolexeclibdir,;t t
13900 s,@LIBOBJS@,$LIBOBJS,;t t
13901 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13902 CEOF
13904 _ACEOF
13906 cat >>$CONFIG_STATUS <<\_ACEOF
13907 # Split the substitutions into bite-sized pieces for seds with
13908 # small command number limits, like on Digital OSF/1 and HP-UX.
13909 ac_max_sed_lines=48
13910 ac_sed_frag=1 # Number of current file.
13911 ac_beg=1 # First line for current file.
13912 ac_end=$ac_max_sed_lines # Line after last line for current file.
13913 ac_more_lines=:
13914 ac_sed_cmds=
13915 while $ac_more_lines; do
13916 if test $ac_beg -gt 1; then
13917 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13918 else
13919 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13921 if test ! -s $tmp/subs.frag; then
13922 ac_more_lines=false
13923 else
13924 # The purpose of the label and of the branching condition is to
13925 # speed up the sed processing (if there are no `@' at all, there
13926 # is no need to browse any of the substitutions).
13927 # These are the two extra sed commands mentioned above.
13928 (echo ':t
13929 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13930 if test -z "$ac_sed_cmds"; then
13931 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13932 else
13933 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13935 ac_sed_frag=`expr $ac_sed_frag + 1`
13936 ac_beg=$ac_end
13937 ac_end=`expr $ac_end + $ac_max_sed_lines`
13939 done
13940 if test -z "$ac_sed_cmds"; then
13941 ac_sed_cmds=cat
13943 fi # test -n "$CONFIG_FILES"
13945 _ACEOF
13946 cat >>$CONFIG_STATUS <<\_ACEOF
13947 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13948 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13949 case $ac_file in
13950 - | *:- | *:-:* ) # input from stdin
13951 cat >$tmp/stdin
13952 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13953 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13954 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13955 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13956 * ) ac_file_in=$ac_file.in ;;
13957 esac
13959 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13960 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13961 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13962 X"$ac_file" : 'X\(//\)[^/]' \| \
13963 X"$ac_file" : 'X\(//\)$' \| \
13964 X"$ac_file" : 'X\(/\)' \| \
13965 . : '\(.\)' 2>/dev/null ||
13966 echo X"$ac_file" |
13967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13968 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13969 /^X\(\/\/\)$/{ s//\1/; q; }
13970 /^X\(\/\).*/{ s//\1/; q; }
13971 s/.*/./; q'`
13972 { if $as_mkdir_p; then
13973 mkdir -p "$ac_dir"
13974 else
13975 as_dir="$ac_dir"
13976 as_dirs=
13977 while test ! -d "$as_dir"; do
13978 as_dirs="$as_dir $as_dirs"
13979 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13980 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13981 X"$as_dir" : 'X\(//\)[^/]' \| \
13982 X"$as_dir" : 'X\(//\)$' \| \
13983 X"$as_dir" : 'X\(/\)' \| \
13984 . : '\(.\)' 2>/dev/null ||
13985 echo X"$as_dir" |
13986 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13987 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13988 /^X\(\/\/\)$/{ s//\1/; q; }
13989 /^X\(\/\).*/{ s//\1/; q; }
13990 s/.*/./; q'`
13991 done
13992 test ! -n "$as_dirs" || mkdir $as_dirs
13993 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13994 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13995 { (exit 1); exit 1; }; }; }
13997 ac_builddir=.
13999 if test "$ac_dir" != .; then
14000 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14001 # A "../" for each directory in $ac_dir_suffix.
14002 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14003 else
14004 ac_dir_suffix= ac_top_builddir=
14007 case $srcdir in
14008 .) # No --srcdir option. We are building in place.
14009 ac_srcdir=.
14010 if test -z "$ac_top_builddir"; then
14011 ac_top_srcdir=.
14012 else
14013 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14014 fi ;;
14015 [\\/]* | ?:[\\/]* ) # Absolute path.
14016 ac_srcdir=$srcdir$ac_dir_suffix;
14017 ac_top_srcdir=$srcdir ;;
14018 *) # Relative path.
14019 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14020 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14021 esac
14023 # Do not use `cd foo && pwd` to compute absolute paths, because
14024 # the directories may not exist.
14025 case `pwd` in
14026 .) ac_abs_builddir="$ac_dir";;
14028 case "$ac_dir" in
14029 .) ac_abs_builddir=`pwd`;;
14030 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14031 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14032 esac;;
14033 esac
14034 case $ac_abs_builddir in
14035 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14037 case ${ac_top_builddir}. in
14038 .) ac_abs_top_builddir=$ac_abs_builddir;;
14039 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14040 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14041 esac;;
14042 esac
14043 case $ac_abs_builddir in
14044 .) ac_abs_srcdir=$ac_srcdir;;
14046 case $ac_srcdir in
14047 .) ac_abs_srcdir=$ac_abs_builddir;;
14048 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14049 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14050 esac;;
14051 esac
14052 case $ac_abs_builddir in
14053 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14055 case $ac_top_srcdir in
14056 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14057 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14058 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14059 esac;;
14060 esac
14063 case $INSTALL in
14064 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14065 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14066 esac
14068 if test x"$ac_file" != x-; then
14069 { echo "$as_me:$LINENO: creating $ac_file" >&5
14070 echo "$as_me: creating $ac_file" >&6;}
14071 rm -f "$ac_file"
14073 # Let's still pretend it is `configure' which instantiates (i.e., don't
14074 # use $as_me), people would be surprised to read:
14075 # /* config.h. Generated by config.status. */
14076 if test x"$ac_file" = x-; then
14077 configure_input=
14078 else
14079 configure_input="$ac_file. "
14081 configure_input=$configure_input"Generated from `echo $ac_file_in |
14082 sed 's,.*/,,'` by configure."
14084 # First look for the input files in the build tree, otherwise in the
14085 # src tree.
14086 ac_file_inputs=`IFS=:
14087 for f in $ac_file_in; do
14088 case $f in
14089 -) echo $tmp/stdin ;;
14090 [\\/$]*)
14091 # Absolute (can't be DOS-style, as IFS=:)
14092 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14093 echo "$as_me: error: cannot find input file: $f" >&2;}
14094 { (exit 1); exit 1; }; }
14095 echo "$f";;
14096 *) # Relative
14097 if test -f "$f"; then
14098 # Build tree
14099 echo "$f"
14100 elif test -f "$srcdir/$f"; then
14101 # Source tree
14102 echo "$srcdir/$f"
14103 else
14104 # /dev/null tree
14105 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14106 echo "$as_me: error: cannot find input file: $f" >&2;}
14107 { (exit 1); exit 1; }; }
14108 fi;;
14109 esac
14110 done` || { (exit 1); exit 1; }
14111 _ACEOF
14112 cat >>$CONFIG_STATUS <<_ACEOF
14113 sed "$ac_vpsub
14114 $extrasub
14115 _ACEOF
14116 cat >>$CONFIG_STATUS <<\_ACEOF
14118 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14119 s,@configure_input@,$configure_input,;t t
14120 s,@srcdir@,$ac_srcdir,;t t
14121 s,@abs_srcdir@,$ac_abs_srcdir,;t t
14122 s,@top_srcdir@,$ac_top_srcdir,;t t
14123 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14124 s,@builddir@,$ac_builddir,;t t
14125 s,@abs_builddir@,$ac_abs_builddir,;t t
14126 s,@top_builddir@,$ac_top_builddir,;t t
14127 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14128 s,@INSTALL@,$ac_INSTALL,;t t
14129 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14130 rm -f $tmp/stdin
14131 if test x"$ac_file" != x-; then
14132 mv $tmp/out $ac_file
14133 else
14134 cat $tmp/out
14135 rm -f $tmp/out
14138 done
14139 _ACEOF
14140 cat >>$CONFIG_STATUS <<\_ACEOF
14143 # CONFIG_HEADER section.
14146 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14147 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14149 # ac_d sets the value in "#define NAME VALUE" lines.
14150 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14151 ac_dB='[ ].*$,\1#\2'
14152 ac_dC=' '
14153 ac_dD=',;t'
14154 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14155 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14156 ac_uB='$,\1#\2define\3'
14157 ac_uC=' '
14158 ac_uD=',;t'
14160 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14161 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14162 case $ac_file in
14163 - | *:- | *:-:* ) # input from stdin
14164 cat >$tmp/stdin
14165 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14166 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14167 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14168 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14169 * ) ac_file_in=$ac_file.in ;;
14170 esac
14172 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14173 echo "$as_me: creating $ac_file" >&6;}
14175 # First look for the input files in the build tree, otherwise in the
14176 # src tree.
14177 ac_file_inputs=`IFS=:
14178 for f in $ac_file_in; do
14179 case $f in
14180 -) echo $tmp/stdin ;;
14181 [\\/$]*)
14182 # Absolute (can't be DOS-style, as IFS=:)
14183 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14184 echo "$as_me: error: cannot find input file: $f" >&2;}
14185 { (exit 1); exit 1; }; }
14186 # Do quote $f, to prevent DOS paths from being IFS'd.
14187 echo "$f";;
14188 *) # Relative
14189 if test -f "$f"; then
14190 # Build tree
14191 echo "$f"
14192 elif test -f "$srcdir/$f"; then
14193 # Source tree
14194 echo "$srcdir/$f"
14195 else
14196 # /dev/null tree
14197 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14198 echo "$as_me: error: cannot find input file: $f" >&2;}
14199 { (exit 1); exit 1; }; }
14200 fi;;
14201 esac
14202 done` || { (exit 1); exit 1; }
14203 # Remove the trailing spaces.
14204 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14206 _ACEOF
14208 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14209 # `conftest.undefs', that substitutes the proper values into
14210 # config.h.in to produce config.h. The first handles `#define'
14211 # templates, and the second `#undef' templates.
14212 # And first: Protect against being on the right side of a sed subst in
14213 # config.status. Protect against being in an unquoted here document
14214 # in config.status.
14215 rm -f conftest.defines conftest.undefs
14216 # Using a here document instead of a string reduces the quoting nightmare.
14217 # Putting comments in sed scripts is not portable.
14219 # `end' is used to avoid that the second main sed command (meant for
14220 # 0-ary CPP macros) applies to n-ary macro definitions.
14221 # See the Autoconf documentation for `clear'.
14222 cat >confdef2sed.sed <<\_ACEOF
14223 s/[\\&,]/\\&/g
14224 s,[\\$`],\\&,g
14225 t clear
14226 : clear
14227 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14228 t end
14229 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14230 : end
14231 _ACEOF
14232 # If some macros were called several times there might be several times
14233 # the same #defines, which is useless. Nevertheless, we may not want to
14234 # sort them, since we want the *last* AC-DEFINE to be honored.
14235 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14236 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14237 rm -f confdef2sed.sed
14239 # This sed command replaces #undef with comments. This is necessary, for
14240 # example, in the case of _POSIX_SOURCE, which is predefined and required
14241 # on some systems where configure will not decide to define it.
14242 cat >>conftest.undefs <<\_ACEOF
14243 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14244 _ACEOF
14246 # Break up conftest.defines because some shells have a limit on the size
14247 # of here documents, and old seds have small limits too (100 cmds).
14248 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14249 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14250 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14251 echo ' :' >>$CONFIG_STATUS
14252 rm -f conftest.tail
14253 while grep . conftest.defines >/dev/null
14255 # Write a limited-size here document to $tmp/defines.sed.
14256 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14257 # Speed up: don't consider the non `#define' lines.
14258 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14259 # Work around the forget-to-reset-the-flag bug.
14260 echo 't clr' >>$CONFIG_STATUS
14261 echo ': clr' >>$CONFIG_STATUS
14262 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14263 echo 'CEOF
14264 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14265 rm -f $tmp/in
14266 mv $tmp/out $tmp/in
14267 ' >>$CONFIG_STATUS
14268 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14269 rm -f conftest.defines
14270 mv conftest.tail conftest.defines
14271 done
14272 rm -f conftest.defines
14273 echo ' fi # grep' >>$CONFIG_STATUS
14274 echo >>$CONFIG_STATUS
14276 # Break up conftest.undefs because some shells have a limit on the size
14277 # of here documents, and old seds have small limits too (100 cmds).
14278 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14279 rm -f conftest.tail
14280 while grep . conftest.undefs >/dev/null
14282 # Write a limited-size here document to $tmp/undefs.sed.
14283 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14284 # Speed up: don't consider the non `#undef'
14285 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14286 # Work around the forget-to-reset-the-flag bug.
14287 echo 't clr' >>$CONFIG_STATUS
14288 echo ': clr' >>$CONFIG_STATUS
14289 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14290 echo 'CEOF
14291 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14292 rm -f $tmp/in
14293 mv $tmp/out $tmp/in
14294 ' >>$CONFIG_STATUS
14295 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14296 rm -f conftest.undefs
14297 mv conftest.tail conftest.undefs
14298 done
14299 rm -f conftest.undefs
14301 cat >>$CONFIG_STATUS <<\_ACEOF
14302 # Let's still pretend it is `configure' which instantiates (i.e., don't
14303 # use $as_me), people would be surprised to read:
14304 # /* config.h. Generated by config.status. */
14305 if test x"$ac_file" = x-; then
14306 echo "/* Generated by configure. */" >$tmp/config.h
14307 else
14308 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14310 cat $tmp/in >>$tmp/config.h
14311 rm -f $tmp/in
14312 if test x"$ac_file" != x-; then
14313 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14314 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14315 echo "$as_me: $ac_file is unchanged" >&6;}
14316 else
14317 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14318 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14319 X"$ac_file" : 'X\(//\)[^/]' \| \
14320 X"$ac_file" : 'X\(//\)$' \| \
14321 X"$ac_file" : 'X\(/\)' \| \
14322 . : '\(.\)' 2>/dev/null ||
14323 echo X"$ac_file" |
14324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14325 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14326 /^X\(\/\/\)$/{ s//\1/; q; }
14327 /^X\(\/\).*/{ s//\1/; q; }
14328 s/.*/./; q'`
14329 { if $as_mkdir_p; then
14330 mkdir -p "$ac_dir"
14331 else
14332 as_dir="$ac_dir"
14333 as_dirs=
14334 while test ! -d "$as_dir"; do
14335 as_dirs="$as_dir $as_dirs"
14336 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14337 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14338 X"$as_dir" : 'X\(//\)[^/]' \| \
14339 X"$as_dir" : 'X\(//\)$' \| \
14340 X"$as_dir" : 'X\(/\)' \| \
14341 . : '\(.\)' 2>/dev/null ||
14342 echo X"$as_dir" |
14343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14344 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14345 /^X\(\/\/\)$/{ s//\1/; q; }
14346 /^X\(\/\).*/{ s//\1/; q; }
14347 s/.*/./; q'`
14348 done
14349 test ! -n "$as_dirs" || mkdir $as_dirs
14350 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14351 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14352 { (exit 1); exit 1; }; }; }
14354 rm -f $ac_file
14355 mv $tmp/config.h $ac_file
14357 else
14358 cat $tmp/config.h
14359 rm -f $tmp/config.h
14361 # Compute $ac_file's index in $config_headers.
14362 _am_stamp_count=1
14363 for _am_header in $config_headers :; do
14364 case $_am_header in
14365 $ac_file | $ac_file:* )
14366 break ;;
14368 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14369 esac
14370 done
14371 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
14372 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14373 X$ac_file : 'X\(//\)[^/]' \| \
14374 X$ac_file : 'X\(//\)$' \| \
14375 X$ac_file : 'X\(/\)' \| \
14376 . : '\(.\)' 2>/dev/null ||
14377 echo X$ac_file |
14378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14379 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14380 /^X\(\/\/\)$/{ s//\1/; q; }
14381 /^X\(\/\).*/{ s//\1/; q; }
14382 s/.*/./; q'`/stamp-h$_am_stamp_count
14383 done
14384 _ACEOF
14385 cat >>$CONFIG_STATUS <<\_ACEOF
14388 # CONFIG_LINKS section.
14391 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
14392 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14393 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14395 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
14396 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
14398 if test ! -r $srcdir/$ac_source; then
14399 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
14400 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
14401 { (exit 1); exit 1; }; }
14403 rm -f $ac_dest
14405 # Make relative symlinks.
14406 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
14407 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14408 X"$ac_dest" : 'X\(//\)[^/]' \| \
14409 X"$ac_dest" : 'X\(//\)$' \| \
14410 X"$ac_dest" : 'X\(/\)' \| \
14411 . : '\(.\)' 2>/dev/null ||
14412 echo X"$ac_dest" |
14413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14414 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14415 /^X\(\/\/\)$/{ s//\1/; q; }
14416 /^X\(\/\).*/{ s//\1/; q; }
14417 s/.*/./; q'`
14418 { if $as_mkdir_p; then
14419 mkdir -p "$ac_dest_dir"
14420 else
14421 as_dir="$ac_dest_dir"
14422 as_dirs=
14423 while test ! -d "$as_dir"; do
14424 as_dirs="$as_dir $as_dirs"
14425 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14426 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14427 X"$as_dir" : 'X\(//\)[^/]' \| \
14428 X"$as_dir" : 'X\(//\)$' \| \
14429 X"$as_dir" : 'X\(/\)' \| \
14430 . : '\(.\)' 2>/dev/null ||
14431 echo X"$as_dir" |
14432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14433 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14434 /^X\(\/\/\)$/{ s//\1/; q; }
14435 /^X\(\/\).*/{ s//\1/; q; }
14436 s/.*/./; q'`
14437 done
14438 test ! -n "$as_dirs" || mkdir $as_dirs
14439 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
14440 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
14441 { (exit 1); exit 1; }; }; }
14443 ac_builddir=.
14445 if test "$ac_dest_dir" != .; then
14446 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
14447 # A "../" for each directory in $ac_dir_suffix.
14448 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14449 else
14450 ac_dir_suffix= ac_top_builddir=
14453 case $srcdir in
14454 .) # No --srcdir option. We are building in place.
14455 ac_srcdir=.
14456 if test -z "$ac_top_builddir"; then
14457 ac_top_srcdir=.
14458 else
14459 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14460 fi ;;
14461 [\\/]* | ?:[\\/]* ) # Absolute path.
14462 ac_srcdir=$srcdir$ac_dir_suffix;
14463 ac_top_srcdir=$srcdir ;;
14464 *) # Relative path.
14465 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14466 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14467 esac
14469 # Do not use `cd foo && pwd` to compute absolute paths, because
14470 # the directories may not exist.
14471 case `pwd` in
14472 .) ac_abs_builddir="$ac_dest_dir";;
14474 case "$ac_dest_dir" in
14475 .) ac_abs_builddir=`pwd`;;
14476 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
14477 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
14478 esac;;
14479 esac
14480 case $ac_abs_builddir in
14481 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14483 case ${ac_top_builddir}. in
14484 .) ac_abs_top_builddir=$ac_abs_builddir;;
14485 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14486 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14487 esac;;
14488 esac
14489 case $ac_abs_builddir in
14490 .) ac_abs_srcdir=$ac_srcdir;;
14492 case $ac_srcdir in
14493 .) ac_abs_srcdir=$ac_abs_builddir;;
14494 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14495 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14496 esac;;
14497 esac
14498 case $ac_abs_builddir in
14499 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14501 case $ac_top_srcdir in
14502 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14503 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14504 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14505 esac;;
14506 esac
14509 case $srcdir in
14510 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
14511 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
14512 esac
14514 # Try a symlink, then a hard link, then a copy.
14515 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
14516 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
14517 cp -p $srcdir/$ac_source $ac_dest ||
14518 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
14519 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
14520 { (exit 1); exit 1; }; }
14521 done
14522 _ACEOF
14523 cat >>$CONFIG_STATUS <<\_ACEOF
14526 # CONFIG_COMMANDS section.
14528 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14529 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14530 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14531 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14532 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14533 X"$ac_dest" : 'X\(//\)[^/]' \| \
14534 X"$ac_dest" : 'X\(//\)$' \| \
14535 X"$ac_dest" : 'X\(/\)' \| \
14536 . : '\(.\)' 2>/dev/null ||
14537 echo X"$ac_dest" |
14538 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14539 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14540 /^X\(\/\/\)$/{ s//\1/; q; }
14541 /^X\(\/\).*/{ s//\1/; q; }
14542 s/.*/./; q'`
14543 { if $as_mkdir_p; then
14544 mkdir -p "$ac_dir"
14545 else
14546 as_dir="$ac_dir"
14547 as_dirs=
14548 while test ! -d "$as_dir"; do
14549 as_dirs="$as_dir $as_dirs"
14550 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14551 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14552 X"$as_dir" : 'X\(//\)[^/]' \| \
14553 X"$as_dir" : 'X\(//\)$' \| \
14554 X"$as_dir" : 'X\(/\)' \| \
14555 . : '\(.\)' 2>/dev/null ||
14556 echo X"$as_dir" |
14557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14558 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14559 /^X\(\/\/\)$/{ s//\1/; q; }
14560 /^X\(\/\).*/{ s//\1/; q; }
14561 s/.*/./; q'`
14562 done
14563 test ! -n "$as_dirs" || mkdir $as_dirs
14564 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14565 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14566 { (exit 1); exit 1; }; }; }
14568 ac_builddir=.
14570 if test "$ac_dir" != .; then
14571 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14572 # A "../" for each directory in $ac_dir_suffix.
14573 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14574 else
14575 ac_dir_suffix= ac_top_builddir=
14578 case $srcdir in
14579 .) # No --srcdir option. We are building in place.
14580 ac_srcdir=.
14581 if test -z "$ac_top_builddir"; then
14582 ac_top_srcdir=.
14583 else
14584 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14585 fi ;;
14586 [\\/]* | ?:[\\/]* ) # Absolute path.
14587 ac_srcdir=$srcdir$ac_dir_suffix;
14588 ac_top_srcdir=$srcdir ;;
14589 *) # Relative path.
14590 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14591 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14592 esac
14594 # Do not use `cd foo && pwd` to compute absolute paths, because
14595 # the directories may not exist.
14596 case `pwd` in
14597 .) ac_abs_builddir="$ac_dir";;
14599 case "$ac_dir" in
14600 .) ac_abs_builddir=`pwd`;;
14601 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14602 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14603 esac;;
14604 esac
14605 case $ac_abs_builddir in
14606 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14608 case ${ac_top_builddir}. in
14609 .) ac_abs_top_builddir=$ac_abs_builddir;;
14610 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14611 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14612 esac;;
14613 esac
14614 case $ac_abs_builddir in
14615 .) ac_abs_srcdir=$ac_srcdir;;
14617 case $ac_srcdir in
14618 .) ac_abs_srcdir=$ac_abs_builddir;;
14619 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14620 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14621 esac;;
14622 esac
14623 case $ac_abs_builddir in
14624 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14626 case $ac_top_srcdir in
14627 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14628 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14629 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14630 esac;;
14631 esac
14634 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14635 echo "$as_me: executing $ac_dest commands" >&6;}
14636 case $ac_dest in
14637 default-1 )
14638 # Only add multilib support code if we just rebuilt the top-level
14639 # Makefile.
14640 case " $CONFIG_FILES " in
14641 *" Makefile "*)
14642 ac_file=Makefile . ${multi_basedir}/config-ml.in
14644 esac ;;
14645 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14646 # Strip MF so we end up with the name of the file.
14647 mf=`echo "$mf" | sed -e 's/:.*$//'`
14648 # Check whether this is an Automake generated Makefile or not.
14649 # We used to match only the files named `Makefile.in', but
14650 # some people rename them; so instead we look at the file content.
14651 # Grep'ing the first line is not enough: some people post-process
14652 # each Makefile.in and add a new line on top of each file to say so.
14653 # So let's grep whole file.
14654 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14655 dirpart=`(dirname "$mf") 2>/dev/null ||
14656 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14657 X"$mf" : 'X\(//\)[^/]' \| \
14658 X"$mf" : 'X\(//\)$' \| \
14659 X"$mf" : 'X\(/\)' \| \
14660 . : '\(.\)' 2>/dev/null ||
14661 echo X"$mf" |
14662 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14663 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14664 /^X\(\/\/\)$/{ s//\1/; q; }
14665 /^X\(\/\).*/{ s//\1/; q; }
14666 s/.*/./; q'`
14667 else
14668 continue
14670 # Extract the definition of DEPDIR, am__include, and am__quote
14671 # from the Makefile without running `make'.
14672 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14673 test -z "$DEPDIR" && continue
14674 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14675 test -z "am__include" && continue
14676 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14677 # When using ansi2knr, U may be empty or an underscore; expand it
14678 U=`sed -n 's/^U = //p' < "$mf"`
14679 # Find all dependency output files, they are included files with
14680 # $(DEPDIR) in their names. We invoke sed twice because it is the
14681 # simplest approach to changing $(DEPDIR) to its actual value in the
14682 # expansion.
14683 for file in `sed -n "
14684 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14685 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14686 # Make sure the directory exists.
14687 test -f "$dirpart/$file" && continue
14688 fdir=`(dirname "$file") 2>/dev/null ||
14689 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14690 X"$file" : 'X\(//\)[^/]' \| \
14691 X"$file" : 'X\(//\)$' \| \
14692 X"$file" : 'X\(/\)' \| \
14693 . : '\(.\)' 2>/dev/null ||
14694 echo X"$file" |
14695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14696 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14697 /^X\(\/\/\)$/{ s//\1/; q; }
14698 /^X\(\/\).*/{ s//\1/; q; }
14699 s/.*/./; q'`
14700 { if $as_mkdir_p; then
14701 mkdir -p $dirpart/$fdir
14702 else
14703 as_dir=$dirpart/$fdir
14704 as_dirs=
14705 while test ! -d "$as_dir"; do
14706 as_dirs="$as_dir $as_dirs"
14707 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14708 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14709 X"$as_dir" : 'X\(//\)[^/]' \| \
14710 X"$as_dir" : 'X\(//\)$' \| \
14711 X"$as_dir" : 'X\(/\)' \| \
14712 . : '\(.\)' 2>/dev/null ||
14713 echo X"$as_dir" |
14714 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14715 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14716 /^X\(\/\/\)$/{ s//\1/; q; }
14717 /^X\(\/\).*/{ s//\1/; q; }
14718 s/.*/./; q'`
14719 done
14720 test ! -n "$as_dirs" || mkdir $as_dirs
14721 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
14722 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
14723 { (exit 1); exit 1; }; }; }
14725 # echo "creating $dirpart/$file"
14726 echo '# dummy' > "$dirpart/$file"
14727 done
14728 done
14730 libtool )
14732 # See if we are running on zsh, and set the options which allow our
14733 # commands through without removal of \ escapes.
14734 if test -n "${ZSH_VERSION+set}" ; then
14735 setopt NO_GLOB_SUBST
14738 cfgfile="${ofile}T"
14739 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14740 $RM "$cfgfile"
14742 cat <<_LT_EOF >> "$cfgfile"
14743 #! $SHELL
14745 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14746 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
14747 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14748 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14750 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14751 # 2006, 2007 Free Software Foundation, Inc.
14753 # This file is part of GNU Libtool:
14754 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14756 # This program is free software; you can redistribute it and/or modify
14757 # it under the terms of the GNU General Public License as published by
14758 # the Free Software Foundation; either version 2 of the License, or
14759 # (at your option) any later version.
14761 # This program is distributed in the hope that it will be useful, but
14762 # WITHOUT ANY WARRANTY; without even the implied warranty of
14763 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14764 # General Public License for more details.
14766 # You should have received a copy of the GNU General Public License
14767 # along with this program; if not, a copy can be downloaded from
14768 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
14769 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
14770 # MA 02110-1301, USA.
14772 # As a special exception to the GNU General Public License, if you
14773 # distribute this file as part of a program that contains a
14774 # configuration script generated by Autoconf, you may include it under
14775 # the same distribution terms that you use for the rest of that program.
14778 # The names of the tagged configurations supported by this script.
14779 available_tags=""
14781 # ### BEGIN LIBTOOL CONFIG
14783 # Which release of libtool.m4 was used?
14784 macro_version=$macro_version
14785 macro_revision=$macro_revision
14787 # Whether or not to build shared libraries.
14788 build_libtool_libs=$enable_shared
14790 # Whether or not to build static libraries.
14791 build_old_libs=$enable_static
14793 # What type of objects to build.
14794 pic_mode=$pic_mode
14796 # Whether or not to optimize for fast installation.
14797 fast_install=$enable_fast_install
14799 # The host system.
14800 host_alias=$host_alias
14801 host=$host
14802 host_os=$host_os
14804 # The build system.
14805 build_alias=$build_alias
14806 build=$build
14807 build_os=$build_os
14809 # A sed program that does not truncate output.
14810 SED=$lt_SED
14812 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14813 Xsed="\$SED -e 1s/^X//"
14815 # A grep program that handles long lines.
14816 GREP=$lt_GREP
14818 # An ERE matcher.
14819 EGREP=$lt_EGREP
14821 # A literal string matcher.
14822 FGREP=$lt_FGREP
14824 # A BSD- or MS-compatible name lister.
14825 NM=$lt_NM
14827 # Whether we need soft or hard links.
14828 LN_S=$lt_LN_S
14830 # What is the maximum length of a command?
14831 max_cmd_len=$max_cmd_len
14833 # Object file suffix (normally "o").
14834 objext=$ac_objext
14836 # Executable file suffix (normally "").
14837 exeext=$exeext
14839 # whether the shell understands "unset".
14840 lt_unset=$lt_unset
14842 # turn spaces into newlines.
14843 SP2NL=$lt_lt_SP2NL
14845 # turn newlines into spaces.
14846 NL2SP=$lt_lt_NL2SP
14848 # How to create reloadable object files.
14849 reload_flag=$lt_reload_flag
14850 reload_cmds=$lt_reload_cmds
14852 # Method to check whether dependent libraries are shared objects.
14853 deplibs_check_method=$lt_deplibs_check_method
14855 # Command to use when deplibs_check_method == "file_magic".
14856 file_magic_cmd=$lt_file_magic_cmd
14858 # The archiver.
14859 AR=$lt_AR
14860 AR_FLAGS=$lt_AR_FLAGS
14862 # A symbol stripping program.
14863 STRIP=$lt_STRIP
14865 # Commands used to install an old-style archive.
14866 RANLIB=$lt_RANLIB
14867 old_postinstall_cmds=$lt_old_postinstall_cmds
14868 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14870 # A C compiler.
14871 LTCC=$lt_CC
14873 # LTCC compiler flags.
14874 LTCFLAGS=$lt_CFLAGS
14876 # Take the output of nm and produce a listing of raw symbols and C names.
14877 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14879 # Transform the output of nm in a proper C declaration.
14880 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14882 # Transform the output of nm in a C name address pair.
14883 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14885 # The name of the directory that contains temporary libtool files.
14886 objdir=$objdir
14888 # Shell to use when invoking shell scripts.
14889 SHELL=$lt_SHELL
14891 # An echo program that does not interpret backslashes.
14892 ECHO=$lt_ECHO
14894 # Used to examine libraries when file_magic_cmd begins with "file".
14895 MAGIC_CMD=$MAGIC_CMD
14897 # Must we lock files when doing compilation?
14898 need_locks=$lt_need_locks
14900 # Old archive suffix (normally "a").
14901 libext=$libext
14903 # Shared library suffix (normally ".so").
14904 shrext_cmds=$lt_shrext_cmds
14906 # The commands to extract the exported symbol list from a shared archive.
14907 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14909 # Variables whose values should be saved in libtool wrapper scripts and
14910 # restored at link time.
14911 variables_saved_for_relink=$lt_variables_saved_for_relink
14913 # Do we need the "lib" prefix for modules?
14914 need_lib_prefix=$need_lib_prefix
14916 # Do we need a version for libraries?
14917 need_version=$need_version
14919 # Library versioning type.
14920 version_type=$version_type
14922 # Shared library runtime path variable.
14923 runpath_var=$runpath_var
14925 # Shared library path variable.
14926 shlibpath_var=$shlibpath_var
14928 # Is shlibpath searched before the hard-coded library search path?
14929 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14931 # Format of library name prefix.
14932 libname_spec=$lt_libname_spec
14934 # List of archive names. First name is the real one, the rest are links.
14935 # The last name is the one that the linker finds with -lNAME
14936 library_names_spec=$lt_library_names_spec
14938 # The coded name of the library, if different from the real name.
14939 soname_spec=$lt_soname_spec
14941 # Command to use after installation of a shared archive.
14942 postinstall_cmds=$lt_postinstall_cmds
14944 # Command to use after uninstallation of a shared archive.
14945 postuninstall_cmds=$lt_postuninstall_cmds
14947 # Commands used to finish a libtool library installation in a directory.
14948 finish_cmds=$lt_finish_cmds
14950 # As "finish_cmds", except a single script fragment to be evaled but
14951 # not shown.
14952 finish_eval=$lt_finish_eval
14954 # Whether we should hardcode library paths into libraries.
14955 hardcode_into_libs=$hardcode_into_libs
14957 # Compile-time system search path for libraries.
14958 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14960 # Run-time system search path for libraries.
14961 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14963 # Whether dlopen is supported.
14964 dlopen_support=$enable_dlopen
14966 # Whether dlopen of programs is supported.
14967 dlopen_self=$enable_dlopen_self
14969 # Whether dlopen of statically linked programs is supported.
14970 dlopen_self_static=$enable_dlopen_self_static
14972 # Commands to strip libraries.
14973 old_striplib=$lt_old_striplib
14974 striplib=$lt_striplib
14977 # The linker used to build libraries.
14978 LD=$lt_LD
14980 # Commands used to build an old-style archive.
14981 old_archive_cmds=$lt_old_archive_cmds
14983 # A language specific compiler.
14984 CC=$lt_compiler
14986 # Is the compiler the GNU compiler?
14987 with_gcc=$GCC
14989 # Compiler flag to turn off builtin functions.
14990 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14992 # How to pass a linker flag through the compiler.
14993 wl=$lt_lt_prog_compiler_wl
14995 # Additional compiler flags for building library objects.
14996 pic_flag=$lt_lt_prog_compiler_pic
14998 # Compiler flag to prevent dynamic linking.
14999 link_static_flag=$lt_lt_prog_compiler_static
15001 # Does compiler simultaneously support -c and -o options?
15002 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15004 # Whether or not to add -lc for building shared libraries.
15005 build_libtool_need_lc=$archive_cmds_need_lc
15007 # Whether or not to disallow shared libs when runtime libs are static.
15008 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15010 # Compiler flag to allow reflexive dlopens.
15011 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15013 # Compiler flag to generate shared objects directly from archives.
15014 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15016 # Whether the compiler copes with passing no objects directly.
15017 compiler_needs_object=$lt_compiler_needs_object
15019 # Create an old-style archive from a shared archive.
15020 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15022 # Create a temporary old-style archive to link instead of a shared archive.
15023 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15025 # Commands used to build a shared archive.
15026 archive_cmds=$lt_archive_cmds
15027 archive_expsym_cmds=$lt_archive_expsym_cmds
15029 # Commands used to build a loadable module if different from building
15030 # a shared archive.
15031 module_cmds=$lt_module_cmds
15032 module_expsym_cmds=$lt_module_expsym_cmds
15034 # Whether we are building with GNU ld or not.
15035 with_gnu_ld=$lt_with_gnu_ld
15037 # Flag that allows shared libraries with undefined symbols to be built.
15038 allow_undefined_flag=$lt_allow_undefined_flag
15040 # Flag that enforces no undefined symbols.
15041 no_undefined_flag=$lt_no_undefined_flag
15043 # Flag to hardcode \$libdir into a binary during linking.
15044 # This must work even if \$libdir does not exist
15045 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15047 # If ld is used when linking, flag to hardcode \$libdir into a binary
15048 # during linking. This must work even if \$libdir does not exist.
15049 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15051 # Whether we need a single "-rpath" flag with a separated argument.
15052 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15054 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15055 # DIR into the resulting binary.
15056 hardcode_direct=$hardcode_direct
15058 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15059 # DIR into the resulting binary and the resulting library dependency is
15060 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15061 # library is relocated.
15062 hardcode_direct_absolute=$hardcode_direct_absolute
15064 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15065 # into the resulting binary.
15066 hardcode_minus_L=$hardcode_minus_L
15068 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15069 # into the resulting binary.
15070 hardcode_shlibpath_var=$hardcode_shlibpath_var
15072 # Set to "yes" if building a shared library automatically hardcodes DIR
15073 # into the library and all subsequent libraries and executables linked
15074 # against it.
15075 hardcode_automatic=$hardcode_automatic
15077 # Set to yes if linker adds runtime paths of dependent libraries
15078 # to runtime path list.
15079 inherit_rpath=$inherit_rpath
15081 # Whether libtool must link a program against all its dependency libraries.
15082 link_all_deplibs=$link_all_deplibs
15084 # Fix the shell variable \$srcfile for the compiler.
15085 fix_srcfile_path=$lt_fix_srcfile_path
15087 # Set to "yes" if exported symbols are required.
15088 always_export_symbols=$always_export_symbols
15090 # The commands to list exported symbols.
15091 export_symbols_cmds=$lt_export_symbols_cmds
15093 # Symbols that should not be listed in the preloaded symbols.
15094 exclude_expsyms=$lt_exclude_expsyms
15096 # Symbols that must always be exported.
15097 include_expsyms=$lt_include_expsyms
15099 # Commands necessary for linking programs (against libraries) with templates.
15100 prelink_cmds=$lt_prelink_cmds
15102 # Specify filename containing input files.
15103 file_list_spec=$lt_file_list_spec
15105 # How to hardcode a shared library path into an executable.
15106 hardcode_action=$hardcode_action
15108 # ### END LIBTOOL CONFIG
15110 _LT_EOF
15112 case $host_os in
15113 aix3*)
15114 cat <<\_LT_EOF >> "$cfgfile"
15115 # AIX sometimes has problems with the GCC collect2 program. For some
15116 # reason, if we set the COLLECT_NAMES environment variable, the problems
15117 # vanish in a puff of smoke.
15118 if test "X${COLLECT_NAMES+set}" != Xset; then
15119 COLLECT_NAMES=
15120 export COLLECT_NAMES
15122 _LT_EOF
15124 esac
15127 ltmain="$ac_aux_dir/ltmain.sh"
15130 # We use sed instead of cat because bash on DJGPP gets confused if
15131 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15132 # text mode, it properly converts lines to CR/LF. This bash problem
15133 # is reportedly fixed, but why not run on old versions too?
15134 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15135 || (rm -f "$cfgfile"; exit 1)
15137 case $xsi_shell in
15138 yes)
15139 cat << \_LT_EOF >> "$cfgfile"
15140 # func_dirname file append nondir_replacement
15141 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15142 # otherwise set result to NONDIR_REPLACEMENT.
15143 func_dirname ()
15145 case ${1} in
15146 */*) func_dirname_result="${1%/*}${2}" ;;
15147 * ) func_dirname_result="${3}" ;;
15148 esac
15151 # func_basename file
15152 func_basename ()
15154 func_basename_result="${1##*/}"
15157 # func_stripname prefix suffix name
15158 # strip PREFIX and SUFFIX off of NAME.
15159 # PREFIX and SUFFIX must not contain globbing or regex special
15160 # characters, hashes, percent signs, but SUFFIX may contain a leading
15161 # dot (in which case that matches only a dot).
15162 func_stripname ()
15164 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15165 # positional parameters, so assign one to ordinary parameter first.
15166 func_stripname_result=${3}
15167 func_stripname_result=${func_stripname_result#"${1}"}
15168 func_stripname_result=${func_stripname_result%"${2}"}
15171 # func_opt_split
15172 func_opt_split ()
15174 func_opt_split_opt=${1%%=*}
15175 func_opt_split_arg=${1#*=}
15178 # func_lo2o object
15179 func_lo2o ()
15181 case ${1} in
15182 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15183 *) func_lo2o_result=${1} ;;
15184 esac
15186 _LT_EOF
15188 *) # Bourne compatible functions.
15189 cat << \_LT_EOF >> "$cfgfile"
15190 # func_dirname file append nondir_replacement
15191 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15192 # otherwise set result to NONDIR_REPLACEMENT.
15193 func_dirname ()
15195 # Extract subdirectory from the argument.
15196 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15197 if test "X$func_dirname_result" = "X${1}"; then
15198 func_dirname_result="${3}"
15199 else
15200 func_dirname_result="$func_dirname_result${2}"
15204 # func_basename file
15205 func_basename ()
15207 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15210 # func_stripname prefix suffix name
15211 # strip PREFIX and SUFFIX off of NAME.
15212 # PREFIX and SUFFIX must not contain globbing or regex special
15213 # characters, hashes, percent signs, but SUFFIX may contain a leading
15214 # dot (in which case that matches only a dot).
15215 # func_strip_suffix prefix name
15216 func_stripname ()
15218 case ${2} in
15219 .*) func_stripname_result=`$ECHO "X${3}" \
15220 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15221 *) func_stripname_result=`$ECHO "X${3}" \
15222 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15223 esac
15226 # sed scripts:
15227 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15228 my_sed_long_arg='1s/^-[^=]*=//'
15230 # func_opt_split
15231 func_opt_split ()
15233 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15234 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15237 # func_lo2o object
15238 func_lo2o ()
15240 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15242 _LT_EOF
15243 esac
15245 case $lt_shell_append in
15246 yes)
15247 cat << \_LT_EOF >> "$cfgfile"
15249 # func_append var value
15250 # Append VALUE to the end of shell variable VAR.
15251 func_append ()
15253 eval "$1+=\$2"
15255 _LT_EOF
15258 cat << \_LT_EOF >> "$cfgfile"
15260 # func_append var value
15261 # Append VALUE to the end of shell variable VAR.
15262 func_append ()
15264 eval "$1=\$$1\$2"
15266 _LT_EOF
15268 esac
15271 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15272 || (rm -f "$cfgfile"; exit 1)
15274 mv -f "$cfgfile" "$ofile" ||
15275 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15276 chmod +x "$ofile"
15279 include ) test -d include || mkdir include ;;
15280 src )
15281 test -d src || mkdir src
15282 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
15284 esac
15285 done
15286 _ACEOF
15288 cat >>$CONFIG_STATUS <<\_ACEOF
15290 { (exit 0); exit 0; }
15291 _ACEOF
15292 chmod +x $CONFIG_STATUS
15293 ac_clean_files=$ac_clean_files_save
15296 # configure is writing to config.log, and then calls config.status.
15297 # config.status does its own redirection, appending to config.log.
15298 # Unfortunately, on DOS this fails, as config.log is still kept open
15299 # by configure, so config.status won't be able to write to it; its
15300 # output is simply discarded. So we exec the FD to /dev/null,
15301 # effectively closing config.log, so it can be properly (re)opened and
15302 # appended to by config.status. When coming back to configure, we
15303 # need to make the FD available again.
15304 if test "$no_create" != yes; then
15305 ac_cs_success=:
15306 ac_config_status_args=
15307 test "$silent" = yes &&
15308 ac_config_status_args="$ac_config_status_args --quiet"
15309 exec 5>/dev/null
15310 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15311 exec 5>>config.log
15312 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15313 # would make configure fail if this is the last instruction.
15314 $ac_cs_success || { (exit 1); exit 1; }