Update my e-mail address for my new employer.
[official-gcc.git] / libffi / configure
blobc9fff170f047b9aa3f41c369e25d2303c59090f2
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=''
464 ac_pwd=`pwd`
466 # Initialize some variables set by options.
467 ac_init_help=
468 ac_init_version=false
469 # The variables have the same names as the options, with
470 # dashes changed to underlines.
471 cache_file=/dev/null
472 exec_prefix=NONE
473 no_create=
474 no_recursion=
475 prefix=NONE
476 program_prefix=NONE
477 program_suffix=NONE
478 program_transform_name=s,x,x,
479 silent=
480 site=
481 srcdir=
482 verbose=
483 x_includes=NONE
484 x_libraries=NONE
486 # Installation directory options.
487 # These are left unexpanded so users can "make install exec_prefix=/foo"
488 # and all the variables that are supposed to be based on exec_prefix
489 # by default will actually change.
490 # Use braces instead of parens because sh, perl, etc. also accept them.
491 bindir='${exec_prefix}/bin'
492 sbindir='${exec_prefix}/sbin'
493 libexecdir='${exec_prefix}/libexec'
494 datadir='${prefix}/share'
495 sysconfdir='${prefix}/etc'
496 sharedstatedir='${prefix}/com'
497 localstatedir='${prefix}/var'
498 libdir='${exec_prefix}/lib'
499 includedir='${prefix}/include'
500 oldincludedir='/usr/include'
501 infodir='${prefix}/info'
502 mandir='${prefix}/man'
504 ac_prev=
505 for ac_option
507 # If the previous option needs an argument, assign it.
508 if test -n "$ac_prev"; then
509 eval "$ac_prev=\$ac_option"
510 ac_prev=
511 continue
514 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
516 # Accept the important Cygnus configure options, so we can diagnose typos.
518 case $ac_option in
520 -bindir | --bindir | --bindi | --bind | --bin | --bi)
521 ac_prev=bindir ;;
522 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
523 bindir=$ac_optarg ;;
525 -build | --build | --buil | --bui | --bu)
526 ac_prev=build_alias ;;
527 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
528 build_alias=$ac_optarg ;;
530 -cache-file | --cache-file | --cache-fil | --cache-fi \
531 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
532 ac_prev=cache_file ;;
533 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
534 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
535 cache_file=$ac_optarg ;;
537 --config-cache | -C)
538 cache_file=config.cache ;;
540 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
541 ac_prev=datadir ;;
542 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
543 | --da=*)
544 datadir=$ac_optarg ;;
546 -disable-* | --disable-*)
547 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
548 # Reject names that are not valid shell variable names.
549 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
550 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
551 { (exit 1); exit 1; }; }
552 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
553 eval "enable_$ac_feature=no" ;;
555 -enable-* | --enable-*)
556 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
557 # Reject names that are not valid shell variable names.
558 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
559 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
560 { (exit 1); exit 1; }; }
561 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
562 case $ac_option in
563 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
564 *) ac_optarg=yes ;;
565 esac
566 eval "enable_$ac_feature='$ac_optarg'" ;;
568 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
569 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
570 | --exec | --exe | --ex)
571 ac_prev=exec_prefix ;;
572 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
573 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
574 | --exec=* | --exe=* | --ex=*)
575 exec_prefix=$ac_optarg ;;
577 -gas | --gas | --ga | --g)
578 # Obsolete; use --with-gas.
579 with_gas=yes ;;
581 -help | --help | --hel | --he | -h)
582 ac_init_help=long ;;
583 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
584 ac_init_help=recursive ;;
585 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
586 ac_init_help=short ;;
588 -host | --host | --hos | --ho)
589 ac_prev=host_alias ;;
590 -host=* | --host=* | --hos=* | --ho=*)
591 host_alias=$ac_optarg ;;
593 -includedir | --includedir | --includedi | --included | --include \
594 | --includ | --inclu | --incl | --inc)
595 ac_prev=includedir ;;
596 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
597 | --includ=* | --inclu=* | --incl=* | --inc=*)
598 includedir=$ac_optarg ;;
600 -infodir | --infodir | --infodi | --infod | --info | --inf)
601 ac_prev=infodir ;;
602 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
603 infodir=$ac_optarg ;;
605 -libdir | --libdir | --libdi | --libd)
606 ac_prev=libdir ;;
607 -libdir=* | --libdir=* | --libdi=* | --libd=*)
608 libdir=$ac_optarg ;;
610 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
611 | --libexe | --libex | --libe)
612 ac_prev=libexecdir ;;
613 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
614 | --libexe=* | --libex=* | --libe=*)
615 libexecdir=$ac_optarg ;;
617 -localstatedir | --localstatedir | --localstatedi | --localstated \
618 | --localstate | --localstat | --localsta | --localst \
619 | --locals | --local | --loca | --loc | --lo)
620 ac_prev=localstatedir ;;
621 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
622 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
623 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
624 localstatedir=$ac_optarg ;;
626 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
627 ac_prev=mandir ;;
628 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
629 mandir=$ac_optarg ;;
631 -nfp | --nfp | --nf)
632 # Obsolete; use --without-fp.
633 with_fp=no ;;
635 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
636 | --no-cr | --no-c | -n)
637 no_create=yes ;;
639 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
640 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
641 no_recursion=yes ;;
643 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
644 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
645 | --oldin | --oldi | --old | --ol | --o)
646 ac_prev=oldincludedir ;;
647 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
648 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
649 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
650 oldincludedir=$ac_optarg ;;
652 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
653 ac_prev=prefix ;;
654 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
655 prefix=$ac_optarg ;;
657 -program-prefix | --program-prefix | --program-prefi | --program-pref \
658 | --program-pre | --program-pr | --program-p)
659 ac_prev=program_prefix ;;
660 -program-prefix=* | --program-prefix=* | --program-prefi=* \
661 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
662 program_prefix=$ac_optarg ;;
664 -program-suffix | --program-suffix | --program-suffi | --program-suff \
665 | --program-suf | --program-su | --program-s)
666 ac_prev=program_suffix ;;
667 -program-suffix=* | --program-suffix=* | --program-suffi=* \
668 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
669 program_suffix=$ac_optarg ;;
671 -program-transform-name | --program-transform-name \
672 | --program-transform-nam | --program-transform-na \
673 | --program-transform-n | --program-transform- \
674 | --program-transform | --program-transfor \
675 | --program-transfo | --program-transf \
676 | --program-trans | --program-tran \
677 | --progr-tra | --program-tr | --program-t)
678 ac_prev=program_transform_name ;;
679 -program-transform-name=* | --program-transform-name=* \
680 | --program-transform-nam=* | --program-transform-na=* \
681 | --program-transform-n=* | --program-transform-=* \
682 | --program-transform=* | --program-transfor=* \
683 | --program-transfo=* | --program-transf=* \
684 | --program-trans=* | --program-tran=* \
685 | --progr-tra=* | --program-tr=* | --program-t=*)
686 program_transform_name=$ac_optarg ;;
688 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
689 | -silent | --silent | --silen | --sile | --sil)
690 silent=yes ;;
692 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
693 ac_prev=sbindir ;;
694 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
695 | --sbi=* | --sb=*)
696 sbindir=$ac_optarg ;;
698 -sharedstatedir | --sharedstatedir | --sharedstatedi \
699 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
700 | --sharedst | --shareds | --shared | --share | --shar \
701 | --sha | --sh)
702 ac_prev=sharedstatedir ;;
703 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
704 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
705 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
706 | --sha=* | --sh=*)
707 sharedstatedir=$ac_optarg ;;
709 -site | --site | --sit)
710 ac_prev=site ;;
711 -site=* | --site=* | --sit=*)
712 site=$ac_optarg ;;
714 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
715 ac_prev=srcdir ;;
716 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
717 srcdir=$ac_optarg ;;
719 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
720 | --syscon | --sysco | --sysc | --sys | --sy)
721 ac_prev=sysconfdir ;;
722 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
723 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
724 sysconfdir=$ac_optarg ;;
726 -target | --target | --targe | --targ | --tar | --ta | --t)
727 ac_prev=target_alias ;;
728 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
729 target_alias=$ac_optarg ;;
731 -v | -verbose | --verbose | --verbos | --verbo | --verb)
732 verbose=yes ;;
734 -version | --version | --versio | --versi | --vers | -V)
735 ac_init_version=: ;;
737 -with-* | --with-*)
738 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
739 # Reject names that are not valid shell variable names.
740 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
741 { echo "$as_me: error: invalid package name: $ac_package" >&2
742 { (exit 1); exit 1; }; }
743 ac_package=`echo $ac_package| sed 's/-/_/g'`
744 case $ac_option in
745 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
746 *) ac_optarg=yes ;;
747 esac
748 eval "with_$ac_package='$ac_optarg'" ;;
750 -without-* | --without-*)
751 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
752 # Reject names that are not valid shell variable names.
753 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
754 { echo "$as_me: error: invalid package name: $ac_package" >&2
755 { (exit 1); exit 1; }; }
756 ac_package=`echo $ac_package | sed 's/-/_/g'`
757 eval "with_$ac_package=no" ;;
759 --x)
760 # Obsolete; use --with-x.
761 with_x=yes ;;
763 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
764 | --x-incl | --x-inc | --x-in | --x-i)
765 ac_prev=x_includes ;;
766 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
767 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
768 x_includes=$ac_optarg ;;
770 -x-libraries | --x-libraries | --x-librarie | --x-librari \
771 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
772 ac_prev=x_libraries ;;
773 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
774 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
775 x_libraries=$ac_optarg ;;
777 -*) { echo "$as_me: error: unrecognized option: $ac_option
778 Try \`$0 --help' for more information." >&2
779 { (exit 1); exit 1; }; }
782 *=*)
783 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
784 # Reject names that are not valid shell variable names.
785 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
786 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
787 { (exit 1); exit 1; }; }
788 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
789 eval "$ac_envvar='$ac_optarg'"
790 export $ac_envvar ;;
793 # FIXME: should be removed in autoconf 3.0.
794 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
795 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
796 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
797 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
800 esac
801 done
803 if test -n "$ac_prev"; then
804 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
805 { echo "$as_me: error: missing argument to $ac_option" >&2
806 { (exit 1); exit 1; }; }
809 # Be sure to have absolute paths.
810 for ac_var in exec_prefix prefix
812 eval ac_val=$`echo $ac_var`
813 case $ac_val in
814 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
815 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
816 { (exit 1); exit 1; }; };;
817 esac
818 done
820 # Be sure to have absolute paths.
821 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
822 localstatedir libdir includedir oldincludedir infodir mandir
824 eval ac_val=$`echo $ac_var`
825 case $ac_val in
826 [\\/$]* | ?:[\\/]* ) ;;
827 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828 { (exit 1); exit 1; }; };;
829 esac
830 done
832 # There might be people who depend on the old broken behavior: `$host'
833 # used to hold the argument of --host etc.
834 # FIXME: To remove some day.
835 build=$build_alias
836 host=$host_alias
837 target=$target_alias
839 # FIXME: To remove some day.
840 if test "x$host_alias" != x; then
841 if test "x$build_alias" = x; then
842 cross_compiling=maybe
843 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
844 If a cross compiler is detected then cross compile mode will be used." >&2
845 elif test "x$build_alias" != "x$host_alias"; then
846 cross_compiling=yes
850 ac_tool_prefix=
851 test -n "$host_alias" && ac_tool_prefix=$host_alias-
853 test "$silent" = yes && exec 6>/dev/null
856 # Find the source files, if location was not specified.
857 if test -z "$srcdir"; then
858 ac_srcdir_defaulted=yes
859 # Try the directory containing this script, then its parent.
860 ac_confdir=`(dirname "$0") 2>/dev/null ||
861 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
862 X"$0" : 'X\(//\)[^/]' \| \
863 X"$0" : 'X\(//\)$' \| \
864 X"$0" : 'X\(/\)' \| \
865 . : '\(.\)' 2>/dev/null ||
866 echo X"$0" |
867 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
868 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
869 /^X\(\/\/\)$/{ s//\1/; q; }
870 /^X\(\/\).*/{ s//\1/; q; }
871 s/.*/./; q'`
872 srcdir=$ac_confdir
873 if test ! -r $srcdir/$ac_unique_file; then
874 srcdir=..
876 else
877 ac_srcdir_defaulted=no
879 if test ! -r $srcdir/$ac_unique_file; then
880 if test "$ac_srcdir_defaulted" = yes; then
881 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
882 { (exit 1); exit 1; }; }
883 else
884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
885 { (exit 1); exit 1; }; }
888 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
889 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
890 { (exit 1); exit 1; }; }
891 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
892 ac_env_build_alias_set=${build_alias+set}
893 ac_env_build_alias_value=$build_alias
894 ac_cv_env_build_alias_set=${build_alias+set}
895 ac_cv_env_build_alias_value=$build_alias
896 ac_env_host_alias_set=${host_alias+set}
897 ac_env_host_alias_value=$host_alias
898 ac_cv_env_host_alias_set=${host_alias+set}
899 ac_cv_env_host_alias_value=$host_alias
900 ac_env_target_alias_set=${target_alias+set}
901 ac_env_target_alias_value=$target_alias
902 ac_cv_env_target_alias_set=${target_alias+set}
903 ac_cv_env_target_alias_value=$target_alias
904 ac_env_CCAS_set=${CCAS+set}
905 ac_env_CCAS_value=$CCAS
906 ac_cv_env_CCAS_set=${CCAS+set}
907 ac_cv_env_CCAS_value=$CCAS
908 ac_env_CCASFLAGS_set=${CCASFLAGS+set}
909 ac_env_CCASFLAGS_value=$CCASFLAGS
910 ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set}
911 ac_cv_env_CCASFLAGS_value=$CCASFLAGS
912 ac_env_CPP_set=${CPP+set}
913 ac_env_CPP_value=$CPP
914 ac_cv_env_CPP_set=${CPP+set}
915 ac_cv_env_CPP_value=$CPP
916 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
917 ac_env_CPPFLAGS_value=$CPPFLAGS
918 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
919 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
922 # Report the --help message.
924 if test "$ac_init_help" = "long"; then
925 # Omit some internal or obsolete options to make the list less imposing.
926 # This message is too long to be a string in the A/UX 3.1 sh.
927 cat <<_ACEOF
928 \`configure' configures libffi 2.1 to adapt to many kinds of systems.
930 Usage: $0 [OPTION]... [VAR=VALUE]...
932 To assign environment variables (e.g., CC, CFLAGS...), specify them as
933 VAR=VALUE. See below for descriptions of some of the useful variables.
935 Defaults for the options are specified in brackets.
937 Configuration:
938 -h, --help display this help and exit
939 --help=short display options specific to this package
940 --help=recursive display the short help of all the included packages
941 -V, --version display version information and exit
942 -q, --quiet, --silent do not print \`checking...' messages
943 --cache-file=FILE cache test results in FILE [disabled]
944 -C, --config-cache alias for \`--cache-file=config.cache'
945 -n, --no-create do not create output files
946 --srcdir=DIR find the sources in DIR [configure dir or \`..']
948 _ACEOF
950 cat <<_ACEOF
951 Installation directories:
952 --prefix=PREFIX install architecture-independent files in PREFIX
953 [$ac_default_prefix]
954 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
955 [PREFIX]
957 By default, \`make install' will install all the files in
958 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
959 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
960 for instance \`--prefix=\$HOME'.
962 For better control, use the options below.
964 Fine tuning of the installation directories:
965 --bindir=DIR user executables [EPREFIX/bin]
966 --sbindir=DIR system admin executables [EPREFIX/sbin]
967 --libexecdir=DIR program executables [EPREFIX/libexec]
968 --datadir=DIR read-only architecture-independent data [PREFIX/share]
969 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
970 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
971 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
972 --libdir=DIR object code libraries [EPREFIX/lib]
973 --includedir=DIR C header files [PREFIX/include]
974 --oldincludedir=DIR C header files for non-gcc [/usr/include]
975 --infodir=DIR info documentation [PREFIX/info]
976 --mandir=DIR man documentation [PREFIX/man]
977 _ACEOF
979 cat <<\_ACEOF
981 Program names:
982 --program-prefix=PREFIX prepend PREFIX to installed program names
983 --program-suffix=SUFFIX append SUFFIX to installed program names
984 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
986 System types:
987 --build=BUILD configure for building on BUILD [guessed]
988 --host=HOST cross-compile to build programs to run on HOST [BUILD]
989 --target=TARGET configure for building compilers for TARGET [HOST]
990 _ACEOF
993 if test -n "$ac_init_help"; then
994 case $ac_init_help in
995 short | recursive ) echo "Configuration of libffi 2.1:";;
996 esac
997 cat <<\_ACEOF
999 Optional Features:
1000 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1001 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1002 --enable-multilib build many library versions (default)
1003 --disable-dependency-tracking speeds up one-time build
1004 --enable-dependency-tracking do not reject slow dependency extractors
1005 --enable-shared[=PKGS]
1006 build shared libraries [default=yes]
1007 --enable-static[=PKGS]
1008 build static libraries [default=yes]
1009 --enable-fast-install[=PKGS]
1010 optimize for fast installation [default=yes]
1011 --disable-libtool-lock avoid locking (might break parallel builds)
1012 --enable-maintainer-mode enable make rules and dependencies not useful
1013 (and sometimes confusing) to the casual installer
1014 --enable-debug debugging mode
1015 --disable-structs omit code for struct support
1016 --disable-raw-api make the raw api unavailable
1017 --enable-purify-safety purify-safe mode
1019 Optional Packages:
1020 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1021 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1022 --with-pic try to use only PIC/non-PIC objects [default=use
1023 both]
1024 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1026 Some influential environment variables:
1027 CC C compiler command
1028 CFLAGS C compiler flags
1029 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1030 nonstandard directory <lib dir>
1031 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1032 headers in a nonstandard directory <include dir>
1033 CCAS assembler compiler command (defaults to CC)
1034 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1035 CPP C preprocessor
1037 Use these variables to override the choices made by `configure' or to help
1038 it to find libraries and programs with nonstandard names/locations.
1040 Report bugs to <http://gcc.gnu.org/bugs.html>.
1041 _ACEOF
1044 if test "$ac_init_help" = "recursive"; then
1045 # If there are subdirs, report their specific --help.
1046 ac_popdir=`pwd`
1047 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1048 test -d $ac_dir || continue
1049 ac_builddir=.
1051 if test "$ac_dir" != .; then
1052 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1053 # A "../" for each directory in $ac_dir_suffix.
1054 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1055 else
1056 ac_dir_suffix= ac_top_builddir=
1059 case $srcdir in
1060 .) # No --srcdir option. We are building in place.
1061 ac_srcdir=.
1062 if test -z "$ac_top_builddir"; then
1063 ac_top_srcdir=.
1064 else
1065 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1066 fi ;;
1067 [\\/]* | ?:[\\/]* ) # Absolute path.
1068 ac_srcdir=$srcdir$ac_dir_suffix;
1069 ac_top_srcdir=$srcdir ;;
1070 *) # Relative path.
1071 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1072 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1073 esac
1075 # Do not use `cd foo && pwd` to compute absolute paths, because
1076 # the directories may not exist.
1077 case `pwd` in
1078 .) ac_abs_builddir="$ac_dir";;
1080 case "$ac_dir" in
1081 .) ac_abs_builddir=`pwd`;;
1082 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1083 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1084 esac;;
1085 esac
1086 case $ac_abs_builddir in
1087 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1089 case ${ac_top_builddir}. in
1090 .) ac_abs_top_builddir=$ac_abs_builddir;;
1091 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1092 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1093 esac;;
1094 esac
1095 case $ac_abs_builddir in
1096 .) ac_abs_srcdir=$ac_srcdir;;
1098 case $ac_srcdir in
1099 .) ac_abs_srcdir=$ac_abs_builddir;;
1100 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1101 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1102 esac;;
1103 esac
1104 case $ac_abs_builddir in
1105 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1107 case $ac_top_srcdir in
1108 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1109 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1110 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1111 esac;;
1112 esac
1114 cd $ac_dir
1115 # Check for guested configure; otherwise get Cygnus style configure.
1116 if test -f $ac_srcdir/configure.gnu; then
1117 echo
1118 $SHELL $ac_srcdir/configure.gnu --help=recursive
1119 elif test -f $ac_srcdir/configure; then
1120 echo
1121 $SHELL $ac_srcdir/configure --help=recursive
1122 elif test -f $ac_srcdir/configure.ac ||
1123 test -f $ac_srcdir/configure.in; then
1124 echo
1125 $ac_configure --help
1126 else
1127 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1129 cd $ac_popdir
1130 done
1133 test -n "$ac_init_help" && exit 0
1134 if $ac_init_version; then
1135 cat <<\_ACEOF
1136 libffi configure 2.1
1137 generated by GNU Autoconf 2.59
1139 Copyright (C) 2003 Free Software Foundation, Inc.
1140 This configure script is free software; the Free Software Foundation
1141 gives unlimited permission to copy, distribute and modify it.
1142 _ACEOF
1143 exit 0
1145 exec 5>config.log
1146 cat >&5 <<_ACEOF
1147 This file contains any messages produced by compilers while
1148 running configure, to aid debugging if configure makes a mistake.
1150 It was created by libffi $as_me 2.1, which was
1151 generated by GNU Autoconf 2.59. Invocation command line was
1153 $ $0 $@
1155 _ACEOF
1157 cat <<_ASUNAME
1158 ## --------- ##
1159 ## Platform. ##
1160 ## --------- ##
1162 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1163 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1164 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1165 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1166 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1168 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1169 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1171 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1172 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1173 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1174 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1175 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1176 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1177 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1179 _ASUNAME
1181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1182 for as_dir in $PATH
1184 IFS=$as_save_IFS
1185 test -z "$as_dir" && as_dir=.
1186 echo "PATH: $as_dir"
1187 done
1189 } >&5
1191 cat >&5 <<_ACEOF
1194 ## ----------- ##
1195 ## Core tests. ##
1196 ## ----------- ##
1198 _ACEOF
1201 # Keep a trace of the command line.
1202 # Strip out --no-create and --no-recursion so they do not pile up.
1203 # Strip out --silent because we don't want to record it for future runs.
1204 # Also quote any args containing shell meta-characters.
1205 # Make two passes to allow for proper duplicate-argument suppression.
1206 ac_configure_args=
1207 ac_configure_args0=
1208 ac_configure_args1=
1209 ac_sep=
1210 ac_must_keep_next=false
1211 for ac_pass in 1 2
1213 for ac_arg
1215 case $ac_arg in
1216 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1217 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218 | -silent | --silent | --silen | --sile | --sil)
1219 continue ;;
1220 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1221 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1222 esac
1223 case $ac_pass in
1224 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1226 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1227 if test $ac_must_keep_next = true; then
1228 ac_must_keep_next=false # Got value, back to normal.
1229 else
1230 case $ac_arg in
1231 *=* | --config-cache | -C | -disable-* | --disable-* \
1232 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1233 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1234 | -with-* | --with-* | -without-* | --without-* | --x)
1235 case "$ac_configure_args0 " in
1236 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1237 esac
1239 -* ) ac_must_keep_next=true ;;
1240 esac
1242 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1243 # Get rid of the leading space.
1244 ac_sep=" "
1246 esac
1247 done
1248 done
1249 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1250 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1252 # When interrupted or exit'd, cleanup temporary files, and complete
1253 # config.log. We remove comments because anyway the quotes in there
1254 # would cause problems or look ugly.
1255 # WARNING: Be sure not to use single quotes in there, as some shells,
1256 # such as our DU 5.0 friend, will then `close' the trap.
1257 trap 'exit_status=$?
1258 # Save into config.log some information that might help in debugging.
1260 echo
1262 cat <<\_ASBOX
1263 ## ---------------- ##
1264 ## Cache variables. ##
1265 ## ---------------- ##
1266 _ASBOX
1267 echo
1268 # The following way of writing the cache mishandles newlines in values,
1270 (set) 2>&1 |
1271 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1272 *ac_space=\ *)
1273 sed -n \
1274 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1275 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1278 sed -n \
1279 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1281 esac;
1283 echo
1285 cat <<\_ASBOX
1286 ## ----------------- ##
1287 ## Output variables. ##
1288 ## ----------------- ##
1289 _ASBOX
1290 echo
1291 for ac_var in $ac_subst_vars
1293 eval ac_val=$`echo $ac_var`
1294 echo "$ac_var='"'"'$ac_val'"'"'"
1295 done | sort
1296 echo
1298 if test -n "$ac_subst_files"; then
1299 cat <<\_ASBOX
1300 ## ------------- ##
1301 ## Output files. ##
1302 ## ------------- ##
1303 _ASBOX
1304 echo
1305 for ac_var in $ac_subst_files
1307 eval ac_val=$`echo $ac_var`
1308 echo "$ac_var='"'"'$ac_val'"'"'"
1309 done | sort
1310 echo
1313 if test -s confdefs.h; then
1314 cat <<\_ASBOX
1315 ## ----------- ##
1316 ## confdefs.h. ##
1317 ## ----------- ##
1318 _ASBOX
1319 echo
1320 sed "/^$/d" confdefs.h | sort
1321 echo
1323 test "$ac_signal" != 0 &&
1324 echo "$as_me: caught signal $ac_signal"
1325 echo "$as_me: exit $exit_status"
1326 } >&5
1327 rm -f core *.core &&
1328 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1329 exit $exit_status
1331 for ac_signal in 1 2 13 15; do
1332 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1333 done
1334 ac_signal=0
1336 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1337 rm -rf conftest* confdefs.h
1338 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1339 echo >confdefs.h
1341 # Predefined preprocessor variables.
1343 cat >>confdefs.h <<_ACEOF
1344 #define PACKAGE_NAME "$PACKAGE_NAME"
1345 _ACEOF
1348 cat >>confdefs.h <<_ACEOF
1349 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1350 _ACEOF
1353 cat >>confdefs.h <<_ACEOF
1354 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1355 _ACEOF
1358 cat >>confdefs.h <<_ACEOF
1359 #define PACKAGE_STRING "$PACKAGE_STRING"
1360 _ACEOF
1363 cat >>confdefs.h <<_ACEOF
1364 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1365 _ACEOF
1368 # Let the site file select an alternate cache file if it wants to.
1369 # Prefer explicitly selected file to automatically selected ones.
1370 if test -z "$CONFIG_SITE"; then
1371 if test "x$prefix" != xNONE; then
1372 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1373 else
1374 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1377 for ac_site_file in $CONFIG_SITE; do
1378 if test -r "$ac_site_file"; then
1379 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1380 echo "$as_me: loading site script $ac_site_file" >&6;}
1381 sed 's/^/| /' "$ac_site_file" >&5
1382 . "$ac_site_file"
1384 done
1386 if test -r "$cache_file"; then
1387 # Some versions of bash will fail to source /dev/null (special
1388 # files actually), so we avoid doing that.
1389 if test -f "$cache_file"; then
1390 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1391 echo "$as_me: loading cache $cache_file" >&6;}
1392 case $cache_file in
1393 [\\/]* | ?:[\\/]* ) . $cache_file;;
1394 *) . ./$cache_file;;
1395 esac
1397 else
1398 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1399 echo "$as_me: creating cache $cache_file" >&6;}
1400 >$cache_file
1403 # Check that the precious variables saved in the cache have kept the same
1404 # value.
1405 ac_cache_corrupted=false
1406 for ac_var in `(set) 2>&1 |
1407 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1408 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1409 eval ac_new_set=\$ac_env_${ac_var}_set
1410 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1411 eval ac_new_val="\$ac_env_${ac_var}_value"
1412 case $ac_old_set,$ac_new_set in
1413 set,)
1414 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1415 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1416 ac_cache_corrupted=: ;;
1417 ,set)
1418 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1419 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1420 ac_cache_corrupted=: ;;
1421 ,);;
1423 if test "x$ac_old_val" != "x$ac_new_val"; then
1424 # differences in whitespace do not lead to failure.
1425 ac_old_val_w=`echo x $ac_old_val`
1426 ac_new_val_w=`echo x $ac_new_val`
1427 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1428 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1429 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1430 ac_cache_corrupted=:
1431 else
1432 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1433 echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1434 eval $ac_var=\$ac_old_val
1436 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1437 echo "$as_me: former value: \`$ac_old_val'" >&2;}
1438 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1439 echo "$as_me: current value: \`$ac_new_val'" >&2;}
1440 fi;;
1441 esac
1442 # Pass precious variables to config.status.
1443 if test "$ac_new_set" = set; then
1444 case $ac_new_val in
1445 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1446 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1447 *) ac_arg=$ac_var=$ac_new_val ;;
1448 esac
1449 case " $ac_configure_args " in
1450 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1451 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1452 esac
1454 done
1455 if $ac_cache_corrupted; then
1456 { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1457 echo "$as_me: error: in \`$ac_pwd':" >&2;}
1458 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1459 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1460 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1461 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1462 { (exit 1); exit 1; }; }
1465 ac_ext=c
1466 ac_cpp='$CPP $CPPFLAGS'
1467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1500 ac_config_headers="$ac_config_headers fficonfig.h"
1503 # Default to --enable-multilib
1504 # Check whether --enable-multilib or --disable-multilib was given.
1505 if test "${enable_multilib+set}" = set; then
1506 enableval="$enable_multilib"
1507 case "$enableval" in
1508 yes) multilib=yes ;;
1509 no) multilib=no ;;
1510 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1511 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1512 { (exit 1); exit 1; }; } ;;
1513 esac
1514 else
1515 multilib=yes
1518 # We may get other options which we leave undocumented:
1519 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1520 # See config-ml.in if you want the gory details.
1522 if test "$srcdir" = "."; then
1523 if test "$with_target_subdir" != "."; then
1524 multi_basedir="$srcdir/$with_multisrctop../.."
1525 else
1526 multi_basedir="$srcdir/$with_multisrctop.."
1528 else
1529 multi_basedir="$srcdir/.."
1533 # Even if the default multilib is not a cross compilation,
1534 # it may be that some of the other multilibs are.
1535 if test $cross_compiling = no && test $multilib = yes \
1536 && test "x${with_multisubdir}" != x ; then
1537 cross_compiling=maybe
1540 ac_config_commands="$ac_config_commands default-1"
1543 ac_aux_dir=
1544 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1545 if test -f $ac_dir/install-sh; then
1546 ac_aux_dir=$ac_dir
1547 ac_install_sh="$ac_aux_dir/install-sh -c"
1548 break
1549 elif test -f $ac_dir/install.sh; then
1550 ac_aux_dir=$ac_dir
1551 ac_install_sh="$ac_aux_dir/install.sh -c"
1552 break
1553 elif test -f $ac_dir/shtool; then
1554 ac_aux_dir=$ac_dir
1555 ac_install_sh="$ac_aux_dir/shtool install -c"
1556 break
1558 done
1559 if test -z "$ac_aux_dir"; then
1560 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1561 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1562 { (exit 1); exit 1; }; }
1564 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1565 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1566 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1568 # Make sure we can run config.sub.
1569 $ac_config_sub sun4 >/dev/null 2>&1 ||
1570 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1571 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1572 { (exit 1); exit 1; }; }
1574 echo "$as_me:$LINENO: checking build system type" >&5
1575 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1576 if test "${ac_cv_build+set}" = set; then
1577 echo $ECHO_N "(cached) $ECHO_C" >&6
1578 else
1579 ac_cv_build_alias=$build_alias
1580 test -z "$ac_cv_build_alias" &&
1581 ac_cv_build_alias=`$ac_config_guess`
1582 test -z "$ac_cv_build_alias" &&
1583 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1584 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1585 { (exit 1); exit 1; }; }
1586 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1587 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1588 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1589 { (exit 1); exit 1; }; }
1592 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1593 echo "${ECHO_T}$ac_cv_build" >&6
1594 build=$ac_cv_build
1595 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1596 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1597 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1600 echo "$as_me:$LINENO: checking host system type" >&5
1601 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1602 if test "${ac_cv_host+set}" = set; then
1603 echo $ECHO_N "(cached) $ECHO_C" >&6
1604 else
1605 ac_cv_host_alias=$host_alias
1606 test -z "$ac_cv_host_alias" &&
1607 ac_cv_host_alias=$ac_cv_build_alias
1608 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1609 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1610 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1611 { (exit 1); exit 1; }; }
1614 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1615 echo "${ECHO_T}$ac_cv_host" >&6
1616 host=$ac_cv_host
1617 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1618 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1619 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1622 echo "$as_me:$LINENO: checking target system type" >&5
1623 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1624 if test "${ac_cv_target+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1626 else
1627 ac_cv_target_alias=$target_alias
1628 test "x$ac_cv_target_alias" = "x" &&
1629 ac_cv_target_alias=$ac_cv_host_alias
1630 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1631 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1632 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1633 { (exit 1); exit 1; }; }
1636 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1637 echo "${ECHO_T}$ac_cv_target" >&6
1638 target=$ac_cv_target
1639 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1640 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1641 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1644 # The aliases save the names the user supplied, while $host etc.
1645 # will get canonicalized.
1646 test -n "$target_alias" &&
1647 test "$program_prefix$program_suffix$program_transform_name" = \
1648 NONENONEs,x,x, &&
1649 program_prefix=${target_alias}-
1650 target_alias=${target_alias-$host_alias}
1652 . ${srcdir}/configure.host
1654 am__api_version="1.9"
1655 # Find a good install program. We prefer a C program (faster),
1656 # so one script is as good as another. But avoid the broken or
1657 # incompatible versions:
1658 # SysV /etc/install, /usr/sbin/install
1659 # SunOS /usr/etc/install
1660 # IRIX /sbin/install
1661 # AIX /bin/install
1662 # AmigaOS /C/install, which installs bootblocks on floppy discs
1663 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1664 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1665 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1666 # OS/2's system install, which has a completely different semantic
1667 # ./install, which can be erroneously created by make from ./install.sh.
1668 # Reject install programs that cannot install multiple files.
1669 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1670 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1671 if test -z "$INSTALL"; then
1672 if test "${ac_cv_path_install+set}" = set; then
1673 echo $ECHO_N "(cached) $ECHO_C" >&6
1674 else
1675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1676 for as_dir in $PATH
1678 IFS=$as_save_IFS
1679 test -z "$as_dir" && as_dir=.
1680 # Account for people who put trailing slashes in PATH elements.
1681 case $as_dir/ in
1682 ./ | .// | /cC/* | \
1683 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1684 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1685 /usr/ucb/* ) ;;
1687 # OSF1 and SCO ODT 3.0 have their own names for install.
1688 # Don't use installbsd from OSF since it installs stuff as root
1689 # by default.
1690 for ac_prog in ginstall scoinst install; do
1691 for ac_exec_ext in '' $ac_executable_extensions; do
1692 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1693 if test $ac_prog = install &&
1694 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1695 # AIX install. It has an incompatible calling convention.
1697 elif test $ac_prog = install &&
1698 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1699 # program-specific install script used by HP pwplus--don't use.
1701 else
1702 rm -rf conftest.one conftest.two conftest.dir
1703 echo one > conftest.one
1704 echo two > conftest.two
1705 mkdir conftest.dir
1706 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1707 test -s conftest.one && test -s conftest.two &&
1708 test -s conftest.dir/conftest.one &&
1709 test -s conftest.dir/conftest.two
1710 then
1711 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1712 break 3
1716 done
1717 done
1719 esac
1720 done
1722 rm -rf conftest.one conftest.two conftest.dir
1725 if test "${ac_cv_path_install+set}" = set; then
1726 INSTALL=$ac_cv_path_install
1727 else
1728 # As a last resort, use the slow shell script. Don't cache a
1729 # value for INSTALL within a source directory, because that will
1730 # break other packages using the cache if that directory is
1731 # removed, or if the value is a relative name.
1732 INSTALL=$ac_install_sh
1735 echo "$as_me:$LINENO: result: $INSTALL" >&5
1736 echo "${ECHO_T}$INSTALL" >&6
1738 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1739 # It thinks the first close brace ends the variable substitution.
1740 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1742 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1744 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1746 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1747 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1748 # Just in case
1749 sleep 1
1750 echo timestamp > conftest.file
1751 # Do `set' in a subshell so we don't clobber the current shell's
1752 # arguments. Must try -L first in case configure is actually a
1753 # symlink; some systems play weird games with the mod time of symlinks
1754 # (eg FreeBSD returns the mod time of the symlink's containing
1755 # directory).
1756 if (
1757 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1758 if test "$*" = "X"; then
1759 # -L didn't work.
1760 set X `ls -t $srcdir/configure conftest.file`
1762 rm -f conftest.file
1763 if test "$*" != "X $srcdir/configure conftest.file" \
1764 && test "$*" != "X conftest.file $srcdir/configure"; then
1766 # If neither matched, then we have a broken ls. This can happen
1767 # if, for instance, CONFIG_SHELL is bash and it inherits a
1768 # broken ls alias from the environment. This has actually
1769 # happened. Such a system could not be considered "sane".
1770 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1771 alias in your environment" >&5
1772 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1773 alias in your environment" >&2;}
1774 { (exit 1); exit 1; }; }
1777 test "$2" = conftest.file
1779 then
1780 # Ok.
1782 else
1783 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1784 Check your system clock" >&5
1785 echo "$as_me: error: newly created file is older than distributed files!
1786 Check your system clock" >&2;}
1787 { (exit 1); exit 1; }; }
1789 echo "$as_me:$LINENO: result: yes" >&5
1790 echo "${ECHO_T}yes" >&6
1791 test "$program_prefix" != NONE &&
1792 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1793 # Use a double $ so make ignores it.
1794 test "$program_suffix" != NONE &&
1795 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1796 # Double any \ or $. echo might interpret backslashes.
1797 # By default was `s,x,x', remove it if useless.
1798 cat <<\_ACEOF >conftest.sed
1799 s/[\\$]/&&/g;s/;s,x,x,$//
1800 _ACEOF
1801 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1802 rm conftest.sed
1804 # expand $ac_aux_dir to an absolute path
1805 am_aux_dir=`cd $ac_aux_dir && pwd`
1807 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1808 # Use eval to expand $SHELL
1809 if eval "$MISSING --run true"; then
1810 am_missing_run="$MISSING --run "
1811 else
1812 am_missing_run=
1813 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1814 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1817 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1818 # We used to keeping the `.' as first argument, in order to
1819 # allow $(mkdir_p) to be used without argument. As in
1820 # $(mkdir_p) $(somedir)
1821 # where $(somedir) is conditionally defined. However this is wrong
1822 # for two reasons:
1823 # 1. if the package is installed by a user who cannot write `.'
1824 # make install will fail,
1825 # 2. the above comment should most certainly read
1826 # $(mkdir_p) $(DESTDIR)$(somedir)
1827 # so it does not work when $(somedir) is undefined and
1828 # $(DESTDIR) is not.
1829 # To support the latter case, we have to write
1830 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1831 # so the `.' trick is pointless.
1832 mkdir_p='mkdir -p --'
1833 else
1834 # On NextStep and OpenStep, the `mkdir' command does not
1835 # recognize any option. It will interpret all options as
1836 # directories to create, and then abort because `.' already
1837 # exists.
1838 for d in ./-p ./--version;
1840 test -d $d && rmdir $d
1841 done
1842 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1843 if test -f "$ac_aux_dir/mkinstalldirs"; then
1844 mkdir_p='$(mkinstalldirs)'
1845 else
1846 mkdir_p='$(install_sh) -d'
1850 for ac_prog in gawk mawk nawk awk
1852 # Extract the first word of "$ac_prog", so it can be a program name with args.
1853 set dummy $ac_prog; ac_word=$2
1854 echo "$as_me:$LINENO: checking for $ac_word" >&5
1855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1856 if test "${ac_cv_prog_AWK+set}" = set; then
1857 echo $ECHO_N "(cached) $ECHO_C" >&6
1858 else
1859 if test -n "$AWK"; then
1860 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1861 else
1862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1863 for as_dir in $PATH
1865 IFS=$as_save_IFS
1866 test -z "$as_dir" && as_dir=.
1867 for ac_exec_ext in '' $ac_executable_extensions; do
1868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1869 ac_cv_prog_AWK="$ac_prog"
1870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1871 break 2
1873 done
1874 done
1878 AWK=$ac_cv_prog_AWK
1879 if test -n "$AWK"; then
1880 echo "$as_me:$LINENO: result: $AWK" >&5
1881 echo "${ECHO_T}$AWK" >&6
1882 else
1883 echo "$as_me:$LINENO: result: no" >&5
1884 echo "${ECHO_T}no" >&6
1887 test -n "$AWK" && break
1888 done
1890 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1891 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1892 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1893 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1894 echo $ECHO_N "(cached) $ECHO_C" >&6
1895 else
1896 cat >conftest.make <<\_ACEOF
1897 all:
1898 @echo 'ac_maketemp="$(MAKE)"'
1899 _ACEOF
1900 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1901 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1902 if test -n "$ac_maketemp"; then
1903 eval ac_cv_prog_make_${ac_make}_set=yes
1904 else
1905 eval ac_cv_prog_make_${ac_make}_set=no
1907 rm -f conftest.make
1909 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1910 echo "$as_me:$LINENO: result: yes" >&5
1911 echo "${ECHO_T}yes" >&6
1912 SET_MAKE=
1913 else
1914 echo "$as_me:$LINENO: result: no" >&5
1915 echo "${ECHO_T}no" >&6
1916 SET_MAKE="MAKE=${MAKE-make}"
1919 rm -rf .tst 2>/dev/null
1920 mkdir .tst 2>/dev/null
1921 if test -d .tst; then
1922 am__leading_dot=.
1923 else
1924 am__leading_dot=_
1926 rmdir .tst 2>/dev/null
1928 # test to see if srcdir already configured
1929 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1930 test -f $srcdir/config.status; then
1931 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1932 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1933 { (exit 1); exit 1; }; }
1936 # test whether we have cygpath
1937 if test -z "$CYGPATH_W"; then
1938 if (cygpath --version) >/dev/null 2>/dev/null; then
1939 CYGPATH_W='cygpath -w'
1940 else
1941 CYGPATH_W=echo
1946 # Define the identity of the package.
1947 PACKAGE='libffi'
1948 VERSION='2.1'
1951 cat >>confdefs.h <<_ACEOF
1952 #define PACKAGE "$PACKAGE"
1953 _ACEOF
1956 cat >>confdefs.h <<_ACEOF
1957 #define VERSION "$VERSION"
1958 _ACEOF
1960 # Some tools Automake needs.
1962 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1965 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1968 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1971 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1974 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1976 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1978 # Installed binaries are usually stripped using `strip' when the user
1979 # run `make install-strip'. However `strip' might not be the right
1980 # tool to use in cross-compilation environments, therefore Automake
1981 # will honor the `STRIP' environment variable to overrule this program.
1982 if test "$cross_compiling" != no; then
1983 if test -n "$ac_tool_prefix"; then
1984 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1985 set dummy ${ac_tool_prefix}strip; ac_word=$2
1986 echo "$as_me:$LINENO: checking for $ac_word" >&5
1987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1988 if test "${ac_cv_prog_STRIP+set}" = set; then
1989 echo $ECHO_N "(cached) $ECHO_C" >&6
1990 else
1991 if test -n "$STRIP"; then
1992 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1993 else
1994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995 for as_dir in $PATH
1997 IFS=$as_save_IFS
1998 test -z "$as_dir" && as_dir=.
1999 for ac_exec_ext in '' $ac_executable_extensions; do
2000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2001 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2003 break 2
2005 done
2006 done
2010 STRIP=$ac_cv_prog_STRIP
2011 if test -n "$STRIP"; then
2012 echo "$as_me:$LINENO: result: $STRIP" >&5
2013 echo "${ECHO_T}$STRIP" >&6
2014 else
2015 echo "$as_me:$LINENO: result: no" >&5
2016 echo "${ECHO_T}no" >&6
2020 if test -z "$ac_cv_prog_STRIP"; then
2021 ac_ct_STRIP=$STRIP
2022 # Extract the first word of "strip", so it can be a program name with args.
2023 set dummy strip; ac_word=$2
2024 echo "$as_me:$LINENO: checking for $ac_word" >&5
2025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2026 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2027 echo $ECHO_N "(cached) $ECHO_C" >&6
2028 else
2029 if test -n "$ac_ct_STRIP"; then
2030 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2031 else
2032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2033 for as_dir in $PATH
2035 IFS=$as_save_IFS
2036 test -z "$as_dir" && as_dir=.
2037 for ac_exec_ext in '' $ac_executable_extensions; do
2038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2039 ac_cv_prog_ac_ct_STRIP="strip"
2040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2041 break 2
2043 done
2044 done
2046 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2049 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2050 if test -n "$ac_ct_STRIP"; then
2051 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2052 echo "${ECHO_T}$ac_ct_STRIP" >&6
2053 else
2054 echo "$as_me:$LINENO: result: no" >&5
2055 echo "${ECHO_T}no" >&6
2058 STRIP=$ac_ct_STRIP
2059 else
2060 STRIP="$ac_cv_prog_STRIP"
2064 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2066 # We need awk for the "check" target. The system "awk" is bad on
2067 # some platforms.
2068 # Always define AMTAR for backward compatibility.
2070 AMTAR=${AMTAR-"${am_missing_run}tar"}
2072 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2079 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
2080 # We must force CC to /not/ be precious variables; otherwise
2081 # the wrong, non-multilib-adjusted value will be used in multilibs.
2082 # As a side effect, we have to subst CFLAGS ourselves.
2086 ac_ext=c
2087 ac_cpp='$CPP $CPPFLAGS'
2088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2091 if test -n "$ac_tool_prefix"; then
2092 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2093 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2094 echo "$as_me:$LINENO: checking for $ac_word" >&5
2095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2096 if test "${ac_cv_prog_CC+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
2098 else
2099 if test -n "$CC"; then
2100 ac_cv_prog_CC="$CC" # Let the user override the test.
2101 else
2102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103 for as_dir in $PATH
2105 IFS=$as_save_IFS
2106 test -z "$as_dir" && as_dir=.
2107 for ac_exec_ext in '' $ac_executable_extensions; do
2108 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2109 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2111 break 2
2113 done
2114 done
2118 CC=$ac_cv_prog_CC
2119 if test -n "$CC"; then
2120 echo "$as_me:$LINENO: result: $CC" >&5
2121 echo "${ECHO_T}$CC" >&6
2122 else
2123 echo "$as_me:$LINENO: result: no" >&5
2124 echo "${ECHO_T}no" >&6
2128 if test -z "$ac_cv_prog_CC"; then
2129 ac_ct_CC=$CC
2130 # Extract the first word of "gcc", so it can be a program name with args.
2131 set dummy gcc; ac_word=$2
2132 echo "$as_me:$LINENO: checking for $ac_word" >&5
2133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2134 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2136 else
2137 if test -n "$ac_ct_CC"; then
2138 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2139 else
2140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141 for as_dir in $PATH
2143 IFS=$as_save_IFS
2144 test -z "$as_dir" && as_dir=.
2145 for ac_exec_ext in '' $ac_executable_extensions; do
2146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2147 ac_cv_prog_ac_ct_CC="gcc"
2148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2149 break 2
2151 done
2152 done
2156 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2157 if test -n "$ac_ct_CC"; then
2158 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2159 echo "${ECHO_T}$ac_ct_CC" >&6
2160 else
2161 echo "$as_me:$LINENO: result: no" >&5
2162 echo "${ECHO_T}no" >&6
2165 CC=$ac_ct_CC
2166 else
2167 CC="$ac_cv_prog_CC"
2170 if test -z "$CC"; then
2171 if test -n "$ac_tool_prefix"; then
2172 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2173 set dummy ${ac_tool_prefix}cc; ac_word=$2
2174 echo "$as_me:$LINENO: checking for $ac_word" >&5
2175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2176 if test "${ac_cv_prog_CC+set}" = set; then
2177 echo $ECHO_N "(cached) $ECHO_C" >&6
2178 else
2179 if test -n "$CC"; then
2180 ac_cv_prog_CC="$CC" # Let the user override the test.
2181 else
2182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2183 for as_dir in $PATH
2185 IFS=$as_save_IFS
2186 test -z "$as_dir" && as_dir=.
2187 for ac_exec_ext in '' $ac_executable_extensions; do
2188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2189 ac_cv_prog_CC="${ac_tool_prefix}cc"
2190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2191 break 2
2193 done
2194 done
2198 CC=$ac_cv_prog_CC
2199 if test -n "$CC"; then
2200 echo "$as_me:$LINENO: result: $CC" >&5
2201 echo "${ECHO_T}$CC" >&6
2202 else
2203 echo "$as_me:$LINENO: result: no" >&5
2204 echo "${ECHO_T}no" >&6
2208 if test -z "$ac_cv_prog_CC"; then
2209 ac_ct_CC=$CC
2210 # Extract the first word of "cc", so it can be a program name with args.
2211 set dummy cc; ac_word=$2
2212 echo "$as_me:$LINENO: checking for $ac_word" >&5
2213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2214 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2215 echo $ECHO_N "(cached) $ECHO_C" >&6
2216 else
2217 if test -n "$ac_ct_CC"; then
2218 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2219 else
2220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2221 for as_dir in $PATH
2223 IFS=$as_save_IFS
2224 test -z "$as_dir" && as_dir=.
2225 for ac_exec_ext in '' $ac_executable_extensions; do
2226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2227 ac_cv_prog_ac_ct_CC="cc"
2228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2229 break 2
2231 done
2232 done
2236 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2237 if test -n "$ac_ct_CC"; then
2238 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2239 echo "${ECHO_T}$ac_ct_CC" >&6
2240 else
2241 echo "$as_me:$LINENO: result: no" >&5
2242 echo "${ECHO_T}no" >&6
2245 CC=$ac_ct_CC
2246 else
2247 CC="$ac_cv_prog_CC"
2251 if test -z "$CC"; then
2252 # Extract the first word of "cc", so it can be a program name with args.
2253 set dummy cc; ac_word=$2
2254 echo "$as_me:$LINENO: checking for $ac_word" >&5
2255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2256 if test "${ac_cv_prog_CC+set}" = set; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
2258 else
2259 if test -n "$CC"; then
2260 ac_cv_prog_CC="$CC" # Let the user override the test.
2261 else
2262 ac_prog_rejected=no
2263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2264 for as_dir in $PATH
2266 IFS=$as_save_IFS
2267 test -z "$as_dir" && as_dir=.
2268 for ac_exec_ext in '' $ac_executable_extensions; do
2269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2270 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2271 ac_prog_rejected=yes
2272 continue
2274 ac_cv_prog_CC="cc"
2275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2276 break 2
2278 done
2279 done
2281 if test $ac_prog_rejected = yes; then
2282 # We found a bogon in the path, so make sure we never use it.
2283 set dummy $ac_cv_prog_CC
2284 shift
2285 if test $# != 0; then
2286 # We chose a different compiler from the bogus one.
2287 # However, it has the same basename, so the bogon will be chosen
2288 # first if we set CC to just the basename; use the full file name.
2289 shift
2290 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2295 CC=$ac_cv_prog_CC
2296 if test -n "$CC"; then
2297 echo "$as_me:$LINENO: result: $CC" >&5
2298 echo "${ECHO_T}$CC" >&6
2299 else
2300 echo "$as_me:$LINENO: result: no" >&5
2301 echo "${ECHO_T}no" >&6
2305 if test -z "$CC"; then
2306 if test -n "$ac_tool_prefix"; then
2307 for ac_prog in cl
2309 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2310 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2311 echo "$as_me:$LINENO: checking for $ac_word" >&5
2312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2313 if test "${ac_cv_prog_CC+set}" = set; then
2314 echo $ECHO_N "(cached) $ECHO_C" >&6
2315 else
2316 if test -n "$CC"; then
2317 ac_cv_prog_CC="$CC" # Let the user override the test.
2318 else
2319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320 for as_dir in $PATH
2322 IFS=$as_save_IFS
2323 test -z "$as_dir" && as_dir=.
2324 for ac_exec_ext in '' $ac_executable_extensions; do
2325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2326 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2328 break 2
2330 done
2331 done
2335 CC=$ac_cv_prog_CC
2336 if test -n "$CC"; then
2337 echo "$as_me:$LINENO: result: $CC" >&5
2338 echo "${ECHO_T}$CC" >&6
2339 else
2340 echo "$as_me:$LINENO: result: no" >&5
2341 echo "${ECHO_T}no" >&6
2344 test -n "$CC" && break
2345 done
2347 if test -z "$CC"; then
2348 ac_ct_CC=$CC
2349 for ac_prog in cl
2351 # Extract the first word of "$ac_prog", so it can be a program name with args.
2352 set dummy $ac_prog; ac_word=$2
2353 echo "$as_me:$LINENO: checking for $ac_word" >&5
2354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2355 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2356 echo $ECHO_N "(cached) $ECHO_C" >&6
2357 else
2358 if test -n "$ac_ct_CC"; then
2359 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2360 else
2361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2362 for as_dir in $PATH
2364 IFS=$as_save_IFS
2365 test -z "$as_dir" && as_dir=.
2366 for ac_exec_ext in '' $ac_executable_extensions; do
2367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2368 ac_cv_prog_ac_ct_CC="$ac_prog"
2369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2370 break 2
2372 done
2373 done
2377 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2378 if test -n "$ac_ct_CC"; then
2379 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2380 echo "${ECHO_T}$ac_ct_CC" >&6
2381 else
2382 echo "$as_me:$LINENO: result: no" >&5
2383 echo "${ECHO_T}no" >&6
2386 test -n "$ac_ct_CC" && break
2387 done
2389 CC=$ac_ct_CC
2395 test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2396 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2397 { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2398 See \`config.log' for more details." >&5
2399 echo "$as_me: error: no acceptable C compiler found in \$PATH
2400 See \`config.log' for more details." >&2;}
2401 { (exit 1); exit 1; }; }; }
2403 # Provide some information about the compiler.
2404 echo "$as_me:$LINENO:" \
2405 "checking for C compiler version" >&5
2406 ac_compiler=`set X $ac_compile; echo $2`
2407 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2408 (eval $ac_compiler --version </dev/null >&5) 2>&5
2409 ac_status=$?
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }
2412 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2413 (eval $ac_compiler -v </dev/null >&5) 2>&5
2414 ac_status=$?
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }
2417 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2418 (eval $ac_compiler -V </dev/null >&5) 2>&5
2419 ac_status=$?
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }
2423 cat >conftest.$ac_ext <<_ACEOF
2424 /* confdefs.h. */
2425 _ACEOF
2426 cat confdefs.h >>conftest.$ac_ext
2427 cat >>conftest.$ac_ext <<_ACEOF
2428 /* end confdefs.h. */
2431 main ()
2435 return 0;
2437 _ACEOF
2438 ac_clean_files_save=$ac_clean_files
2439 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2440 # Try to create an executable without -o first, disregard a.out.
2441 # It will help us diagnose broken compilers, and finding out an intuition
2442 # of exeext.
2443 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2444 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2445 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2446 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2447 (eval $ac_link_default) 2>&5
2448 ac_status=$?
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; then
2451 # Find the output, starting from the most likely. This scheme is
2452 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2453 # resort.
2455 # Be careful to initialize this variable, since it used to be cached.
2456 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2457 ac_cv_exeext=
2458 # b.out is created by i960 compilers.
2459 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2461 test -f "$ac_file" || continue
2462 case $ac_file in
2463 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2465 conftest.$ac_ext )
2466 # This is the source file.
2468 [ab].out )
2469 # We found the default executable, but exeext='' is most
2470 # certainly right.
2471 break;;
2472 *.* )
2473 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2474 # FIXME: I believe we export ac_cv_exeext for Libtool,
2475 # but it would be cool to find out if it's true. Does anybody
2476 # maintain Libtool? --akim.
2477 export ac_cv_exeext
2478 break;;
2480 break;;
2481 esac
2482 done
2483 else
2484 echo "$as_me: failed program was:" >&5
2485 sed 's/^/| /' conftest.$ac_ext >&5
2487 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2488 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2489 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2490 See \`config.log' for more details." >&5
2491 echo "$as_me: error: C compiler cannot create executables
2492 See \`config.log' for more details." >&2;}
2493 { (exit 77); exit 77; }; }; }
2496 ac_exeext=$ac_cv_exeext
2497 echo "$as_me:$LINENO: result: $ac_file" >&5
2498 echo "${ECHO_T}$ac_file" >&6
2500 # Check the compiler produces executables we can run. If not, either
2501 # the compiler is broken, or we cross compile.
2502 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2503 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2504 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2505 # If not cross compiling, check that we can run a simple program.
2506 if test "$cross_compiling" != yes; then
2507 if { ac_try='./$ac_file'
2508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509 (eval $ac_try) 2>&5
2510 ac_status=$?
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; }; then
2513 cross_compiling=no
2514 else
2515 if test "$cross_compiling" = maybe; then
2516 cross_compiling=yes
2517 else
2518 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2519 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2520 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2521 If you meant to cross compile, use \`--host'.
2522 See \`config.log' for more details." >&5
2523 echo "$as_me: error: cannot run C compiled programs.
2524 If you meant to cross compile, use \`--host'.
2525 See \`config.log' for more details." >&2;}
2526 { (exit 1); exit 1; }; }; }
2530 echo "$as_me:$LINENO: result: yes" >&5
2531 echo "${ECHO_T}yes" >&6
2533 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2534 ac_clean_files=$ac_clean_files_save
2535 # Check the compiler produces executables we can run. If not, either
2536 # the compiler is broken, or we cross compile.
2537 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2538 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2539 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2540 echo "${ECHO_T}$cross_compiling" >&6
2542 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2543 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2545 (eval $ac_link) 2>&5
2546 ac_status=$?
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; then
2549 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2550 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2551 # work properly (i.e., refer to `conftest.exe'), while it won't with
2552 # `rm'.
2553 for ac_file in conftest.exe conftest conftest.*; do
2554 test -f "$ac_file" || continue
2555 case $ac_file in
2556 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2557 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2558 export ac_cv_exeext
2559 break;;
2560 * ) break;;
2561 esac
2562 done
2563 else
2564 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2565 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2566 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2567 See \`config.log' for more details." >&5
2568 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2569 See \`config.log' for more details." >&2;}
2570 { (exit 1); exit 1; }; }; }
2573 rm -f conftest$ac_cv_exeext
2574 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2575 echo "${ECHO_T}$ac_cv_exeext" >&6
2577 rm -f conftest.$ac_ext
2578 EXEEXT=$ac_cv_exeext
2579 ac_exeext=$EXEEXT
2580 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2581 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2582 if test "${ac_cv_objext+set}" = set; then
2583 echo $ECHO_N "(cached) $ECHO_C" >&6
2584 else
2585 cat >conftest.$ac_ext <<_ACEOF
2586 /* confdefs.h. */
2587 _ACEOF
2588 cat confdefs.h >>conftest.$ac_ext
2589 cat >>conftest.$ac_ext <<_ACEOF
2590 /* end confdefs.h. */
2593 main ()
2597 return 0;
2599 _ACEOF
2600 rm -f conftest.o conftest.obj
2601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2602 (eval $ac_compile) 2>&5
2603 ac_status=$?
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; then
2606 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2607 case $ac_file in
2608 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2609 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2610 break;;
2611 esac
2612 done
2613 else
2614 echo "$as_me: failed program was:" >&5
2615 sed 's/^/| /' conftest.$ac_ext >&5
2617 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2618 echo "$as_me: error: in \`$ac_pwd':" >&2;}
2619 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2620 See \`config.log' for more details." >&5
2621 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2622 See \`config.log' for more details." >&2;}
2623 { (exit 1); exit 1; }; }; }
2626 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2628 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2629 echo "${ECHO_T}$ac_cv_objext" >&6
2630 OBJEXT=$ac_cv_objext
2631 ac_objext=$OBJEXT
2632 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2633 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2634 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2635 echo $ECHO_N "(cached) $ECHO_C" >&6
2636 else
2637 cat >conftest.$ac_ext <<_ACEOF
2638 /* confdefs.h. */
2639 _ACEOF
2640 cat confdefs.h >>conftest.$ac_ext
2641 cat >>conftest.$ac_ext <<_ACEOF
2642 /* end confdefs.h. */
2645 main ()
2647 #ifndef __GNUC__
2648 choke me
2649 #endif
2652 return 0;
2654 _ACEOF
2655 rm -f conftest.$ac_objext
2656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2657 (eval $ac_compile) 2>conftest.er1
2658 ac_status=$?
2659 grep -v '^ *+' conftest.er1 >conftest.err
2660 rm -f conftest.er1
2661 cat conftest.err >&5
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); } &&
2664 { ac_try='test -z "$ac_c_werror_flag"
2665 || test ! -s conftest.err'
2666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667 (eval $ac_try) 2>&5
2668 ac_status=$?
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }; } &&
2671 { ac_try='test -s conftest.$ac_objext'
2672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673 (eval $ac_try) 2>&5
2674 ac_status=$?
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }; }; then
2677 ac_compiler_gnu=yes
2678 else
2679 echo "$as_me: failed program was:" >&5
2680 sed 's/^/| /' conftest.$ac_ext >&5
2682 ac_compiler_gnu=no
2684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2685 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2688 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2689 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2690 GCC=`test $ac_compiler_gnu = yes && echo yes`
2691 ac_test_CFLAGS=${CFLAGS+set}
2692 ac_save_CFLAGS=$CFLAGS
2693 CFLAGS="-g"
2694 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2695 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2696 if test "${ac_cv_prog_cc_g+set}" = set; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2698 else
2699 cat >conftest.$ac_ext <<_ACEOF
2700 /* confdefs.h. */
2701 _ACEOF
2702 cat confdefs.h >>conftest.$ac_ext
2703 cat >>conftest.$ac_ext <<_ACEOF
2704 /* end confdefs.h. */
2707 main ()
2711 return 0;
2713 _ACEOF
2714 rm -f conftest.$ac_objext
2715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2716 (eval $ac_compile) 2>conftest.er1
2717 ac_status=$?
2718 grep -v '^ *+' conftest.er1 >conftest.err
2719 rm -f conftest.er1
2720 cat conftest.err >&5
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); } &&
2723 { ac_try='test -z "$ac_c_werror_flag"
2724 || test ! -s conftest.err'
2725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2726 (eval $ac_try) 2>&5
2727 ac_status=$?
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }; } &&
2730 { ac_try='test -s conftest.$ac_objext'
2731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732 (eval $ac_try) 2>&5
2733 ac_status=$?
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); }; }; then
2736 ac_cv_prog_cc_g=yes
2737 else
2738 echo "$as_me: failed program was:" >&5
2739 sed 's/^/| /' conftest.$ac_ext >&5
2741 ac_cv_prog_cc_g=no
2743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2745 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2746 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2747 if test "$ac_test_CFLAGS" = set; then
2748 CFLAGS=$ac_save_CFLAGS
2749 elif test $ac_cv_prog_cc_g = yes; then
2750 if test "$GCC" = yes; then
2751 CFLAGS="-g -O2"
2752 else
2753 CFLAGS="-g"
2755 else
2756 if test "$GCC" = yes; then
2757 CFLAGS="-O2"
2758 else
2759 CFLAGS=
2762 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2763 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2764 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2765 echo $ECHO_N "(cached) $ECHO_C" >&6
2766 else
2767 ac_cv_prog_cc_stdc=no
2768 ac_save_CC=$CC
2769 cat >conftest.$ac_ext <<_ACEOF
2770 /* confdefs.h. */
2771 _ACEOF
2772 cat confdefs.h >>conftest.$ac_ext
2773 cat >>conftest.$ac_ext <<_ACEOF
2774 /* end confdefs.h. */
2775 #include <stdarg.h>
2776 #include <stdio.h>
2777 #include <sys/types.h>
2778 #include <sys/stat.h>
2779 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2780 struct buf { int x; };
2781 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2782 static char *e (p, i)
2783 char **p;
2784 int i;
2786 return p[i];
2788 static char *f (char * (*g) (char **, int), char **p, ...)
2790 char *s;
2791 va_list v;
2792 va_start (v,p);
2793 s = g (p, va_arg (v,int));
2794 va_end (v);
2795 return s;
2798 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2799 function prototypes and stuff, but not '\xHH' hex character constants.
2800 These don't provoke an error unfortunately, instead are silently treated
2801 as 'x'. The following induces an error, until -std1 is added to get
2802 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2803 array size at least. It's necessary to write '\x00'==0 to get something
2804 that's true only with -std1. */
2805 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2807 int test (int i, double x);
2808 struct s1 {int (*f) (int a);};
2809 struct s2 {int (*f) (double a);};
2810 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2811 int argc;
2812 char **argv;
2814 main ()
2816 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2818 return 0;
2820 _ACEOF
2821 # Don't try gcc -ansi; that turns off useful extensions and
2822 # breaks some systems' header files.
2823 # AIX -qlanglvl=ansi
2824 # Ultrix and OSF/1 -std1
2825 # HP-UX 10.20 and later -Ae
2826 # HP-UX older versions -Aa -D_HPUX_SOURCE
2827 # SVR4 -Xc -D__EXTENSIONS__
2828 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2830 CC="$ac_save_CC $ac_arg"
2831 rm -f conftest.$ac_objext
2832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2833 (eval $ac_compile) 2>conftest.er1
2834 ac_status=$?
2835 grep -v '^ *+' conftest.er1 >conftest.err
2836 rm -f conftest.er1
2837 cat conftest.err >&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); } &&
2840 { ac_try='test -z "$ac_c_werror_flag"
2841 || test ! -s conftest.err'
2842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843 (eval $ac_try) 2>&5
2844 ac_status=$?
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; } &&
2847 { ac_try='test -s conftest.$ac_objext'
2848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849 (eval $ac_try) 2>&5
2850 ac_status=$?
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }; }; then
2853 ac_cv_prog_cc_stdc=$ac_arg
2854 break
2855 else
2856 echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.$ac_ext >&5
2860 rm -f conftest.err conftest.$ac_objext
2861 done
2862 rm -f conftest.$ac_ext conftest.$ac_objext
2863 CC=$ac_save_CC
2867 case "x$ac_cv_prog_cc_stdc" in
2868 x|xno)
2869 echo "$as_me:$LINENO: result: none needed" >&5
2870 echo "${ECHO_T}none needed" >&6 ;;
2872 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2873 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2874 CC="$CC $ac_cv_prog_cc_stdc" ;;
2875 esac
2877 # Some people use a C++ compiler to compile C. Since we use `exit',
2878 # in C++ we need to declare it. In case someone uses the same compiler
2879 # for both compiling C and C++ we need to have the C++ compiler decide
2880 # the declaration of exit, since it's the most demanding environment.
2881 cat >conftest.$ac_ext <<_ACEOF
2882 #ifndef __cplusplus
2883 choke me
2884 #endif
2885 _ACEOF
2886 rm -f conftest.$ac_objext
2887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2888 (eval $ac_compile) 2>conftest.er1
2889 ac_status=$?
2890 grep -v '^ *+' conftest.er1 >conftest.err
2891 rm -f conftest.er1
2892 cat conftest.err >&5
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); } &&
2895 { ac_try='test -z "$ac_c_werror_flag"
2896 || test ! -s conftest.err'
2897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2898 (eval $ac_try) 2>&5
2899 ac_status=$?
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }; } &&
2902 { ac_try='test -s conftest.$ac_objext'
2903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2904 (eval $ac_try) 2>&5
2905 ac_status=$?
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }; }; then
2908 for ac_declaration in \
2909 '' \
2910 'extern "C" void std::exit (int) throw (); using std::exit;' \
2911 'extern "C" void std::exit (int); using std::exit;' \
2912 'extern "C" void exit (int) throw ();' \
2913 'extern "C" void exit (int);' \
2914 'void exit (int);'
2916 cat >conftest.$ac_ext <<_ACEOF
2917 /* confdefs.h. */
2918 _ACEOF
2919 cat confdefs.h >>conftest.$ac_ext
2920 cat >>conftest.$ac_ext <<_ACEOF
2921 /* end confdefs.h. */
2922 $ac_declaration
2923 #include <stdlib.h>
2925 main ()
2927 exit (42);
2929 return 0;
2931 _ACEOF
2932 rm -f conftest.$ac_objext
2933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2934 (eval $ac_compile) 2>conftest.er1
2935 ac_status=$?
2936 grep -v '^ *+' conftest.er1 >conftest.err
2937 rm -f conftest.er1
2938 cat conftest.err >&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); } &&
2941 { ac_try='test -z "$ac_c_werror_flag"
2942 || test ! -s conftest.err'
2943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944 (eval $ac_try) 2>&5
2945 ac_status=$?
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); }; } &&
2948 { ac_try='test -s conftest.$ac_objext'
2949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2950 (eval $ac_try) 2>&5
2951 ac_status=$?
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); }; }; then
2955 else
2956 echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2959 continue
2961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2962 cat >conftest.$ac_ext <<_ACEOF
2963 /* confdefs.h. */
2964 _ACEOF
2965 cat confdefs.h >>conftest.$ac_ext
2966 cat >>conftest.$ac_ext <<_ACEOF
2967 /* end confdefs.h. */
2968 $ac_declaration
2970 main ()
2972 exit (42);
2974 return 0;
2976 _ACEOF
2977 rm -f conftest.$ac_objext
2978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2979 (eval $ac_compile) 2>conftest.er1
2980 ac_status=$?
2981 grep -v '^ *+' conftest.er1 >conftest.err
2982 rm -f conftest.er1
2983 cat conftest.err >&5
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); } &&
2986 { ac_try='test -z "$ac_c_werror_flag"
2987 || test ! -s conftest.err'
2988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2989 (eval $ac_try) 2>&5
2990 ac_status=$?
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); }; } &&
2993 { ac_try='test -s conftest.$ac_objext'
2994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2995 (eval $ac_try) 2>&5
2996 ac_status=$?
2997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); }; }; then
2999 break
3000 else
3001 echo "$as_me: failed program was:" >&5
3002 sed 's/^/| /' conftest.$ac_ext >&5
3005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3006 done
3007 rm -f conftest*
3008 if test -n "$ac_declaration"; then
3009 echo '#ifdef __cplusplus' >>confdefs.h
3010 echo $ac_declaration >>confdefs.h
3011 echo '#endif' >>confdefs.h
3014 else
3015 echo "$as_me: failed program was:" >&5
3016 sed 's/^/| /' conftest.$ac_ext >&5
3019 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3020 ac_ext=c
3021 ac_cpp='$CPP $CPPFLAGS'
3022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3025 DEPDIR="${am__leading_dot}deps"
3027 ac_config_commands="$ac_config_commands depfiles"
3030 am_make=${MAKE-make}
3031 cat > confinc << 'END'
3032 am__doit:
3033 @echo done
3034 .PHONY: am__doit
3036 # If we don't find an include directive, just comment out the code.
3037 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3038 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3039 am__include="#"
3040 am__quote=
3041 _am_result=none
3042 # First try GNU make style include.
3043 echo "include confinc" > confmf
3044 # We grep out `Entering directory' and `Leaving directory'
3045 # messages which can occur if `w' ends up in MAKEFLAGS.
3046 # In particular we don't look at `^make:' because GNU make might
3047 # be invoked under some other name (usually "gmake"), in which
3048 # case it prints its new name instead of `make'.
3049 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3050 am__include=include
3051 am__quote=
3052 _am_result=GNU
3054 # Now try BSD make style include.
3055 if test "$am__include" = "#"; then
3056 echo '.include "confinc"' > confmf
3057 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3058 am__include=.include
3059 am__quote="\""
3060 _am_result=BSD
3065 echo "$as_me:$LINENO: result: $_am_result" >&5
3066 echo "${ECHO_T}$_am_result" >&6
3067 rm -f confinc confmf
3069 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3070 if test "${enable_dependency_tracking+set}" = set; then
3071 enableval="$enable_dependency_tracking"
3074 if test "x$enable_dependency_tracking" != xno; then
3075 am_depcomp="$ac_aux_dir/depcomp"
3076 AMDEPBACKSLASH='\'
3080 if test "x$enable_dependency_tracking" != xno; then
3081 AMDEP_TRUE=
3082 AMDEP_FALSE='#'
3083 else
3084 AMDEP_TRUE='#'
3085 AMDEP_FALSE=
3091 depcc="$CC" am_compiler_list=
3093 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3094 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3095 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3096 echo $ECHO_N "(cached) $ECHO_C" >&6
3097 else
3098 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3099 # We make a subdir and do the tests there. Otherwise we can end up
3100 # making bogus files that we don't know about and never remove. For
3101 # instance it was reported that on HP-UX the gcc test will end up
3102 # making a dummy file named `D' -- because `-MD' means `put the output
3103 # in D'.
3104 mkdir conftest.dir
3105 # Copy depcomp to subdir because otherwise we won't find it if we're
3106 # using a relative directory.
3107 cp "$am_depcomp" conftest.dir
3108 cd conftest.dir
3109 # We will build objects and dependencies in a subdirectory because
3110 # it helps to detect inapplicable dependency modes. For instance
3111 # both Tru64's cc and ICC support -MD to output dependencies as a
3112 # side effect of compilation, but ICC will put the dependencies in
3113 # the current directory while Tru64 will put them in the object
3114 # directory.
3115 mkdir sub
3117 am_cv_CC_dependencies_compiler_type=none
3118 if test "$am_compiler_list" = ""; then
3119 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3121 for depmode in $am_compiler_list; do
3122 # Setup a source with many dependencies, because some compilers
3123 # like to wrap large dependency lists on column 80 (with \), and
3124 # we should not choose a depcomp mode which is confused by this.
3126 # We need to recreate these files for each test, as the compiler may
3127 # overwrite some of them when testing with obscure command lines.
3128 # This happens at least with the AIX C compiler.
3129 : > sub/conftest.c
3130 for i in 1 2 3 4 5 6; do
3131 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3132 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3133 # Solaris 8's {/usr,}/bin/sh.
3134 touch sub/conftst$i.h
3135 done
3136 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3138 case $depmode in
3139 nosideeffect)
3140 # after this tag, mechanisms are not by side-effect, so they'll
3141 # only be used when explicitly requested
3142 if test "x$enable_dependency_tracking" = xyes; then
3143 continue
3144 else
3145 break
3148 none) break ;;
3149 esac
3150 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3151 # mode. It turns out that the SunPro C++ compiler does not properly
3152 # handle `-M -o', and we need to detect this.
3153 if depmode=$depmode \
3154 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3155 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3156 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3157 >/dev/null 2>conftest.err &&
3158 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3159 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3160 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3161 # icc doesn't choke on unknown options, it will just issue warnings
3162 # or remarks (even with -Werror). So we grep stderr for any message
3163 # that says an option was ignored or not supported.
3164 # When given -MP, icc 7.0 and 7.1 complain thusly:
3165 # icc: Command line warning: ignoring option '-M'; no argument required
3166 # The diagnosis changed in icc 8.0:
3167 # icc: Command line remark: option '-MP' not supported
3168 if (grep 'ignoring option' conftest.err ||
3169 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3170 am_cv_CC_dependencies_compiler_type=$depmode
3171 break
3174 done
3176 cd ..
3177 rm -rf conftest.dir
3178 else
3179 am_cv_CC_dependencies_compiler_type=none
3183 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3184 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3185 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3190 test "x$enable_dependency_tracking" != xno \
3191 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3192 am__fastdepCC_TRUE=
3193 am__fastdepCC_FALSE='#'
3194 else
3195 am__fastdepCC_TRUE='#'
3196 am__fastdepCC_FALSE=
3204 # By default we simply use the C compiler to build assembly code.
3206 test "${CCAS+set}" = set || CCAS=$CC
3207 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3211 if test "x$CC" != xcc; then
3212 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3213 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3214 else
3215 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3216 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3218 set dummy $CC; ac_cc=`echo $2 |
3219 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3220 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3221 echo $ECHO_N "(cached) $ECHO_C" >&6
3222 else
3223 cat >conftest.$ac_ext <<_ACEOF
3224 /* confdefs.h. */
3225 _ACEOF
3226 cat confdefs.h >>conftest.$ac_ext
3227 cat >>conftest.$ac_ext <<_ACEOF
3228 /* end confdefs.h. */
3231 main ()
3235 return 0;
3237 _ACEOF
3238 # Make sure it works both with $CC and with simple cc.
3239 # We do the test twice because some compilers refuse to overwrite an
3240 # existing .o file with -o, though they will create one.
3241 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3242 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3243 (eval $ac_try) 2>&5
3244 ac_status=$?
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); } &&
3247 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3248 (eval $ac_try) 2>&5
3249 ac_status=$?
3250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3251 (exit $ac_status); };
3252 then
3253 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3254 if test "x$CC" != xcc; then
3255 # Test first that cc exists at all.
3256 if { ac_try='cc -c conftest.$ac_ext >&5'
3257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3258 (eval $ac_try) 2>&5
3259 ac_status=$?
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); }; }; then
3262 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3263 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3264 (eval $ac_try) 2>&5
3265 ac_status=$?
3266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267 (exit $ac_status); } &&
3268 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3269 (eval $ac_try) 2>&5
3270 ac_status=$?
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); };
3273 then
3274 # cc works too.
3276 else
3277 # cc exists but doesn't like -o.
3278 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3282 else
3283 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3285 rm -f conftest*
3288 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3289 echo "$as_me:$LINENO: result: yes" >&5
3290 echo "${ECHO_T}yes" >&6
3291 else
3292 echo "$as_me:$LINENO: result: no" >&5
3293 echo "${ECHO_T}no" >&6
3295 cat >>confdefs.h <<\_ACEOF
3296 #define NO_MINUS_C_MINUS_O 1
3297 _ACEOF
3301 # FIXME: we rely on the cache variable name because
3302 # there is no other way.
3303 set dummy $CC
3304 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3305 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3306 # Losing compiler, so override with the script.
3307 # FIXME: It is wrong to rewrite CC.
3308 # But if we don't then we get into trouble of one sort or another.
3309 # A longer-term fix would be to have automake use am__CC in this case,
3310 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3311 CC="$am_aux_dir/compile $CC"
3316 macro_version='2.1a'
3317 macro_revision='1.2435'
3330 ltmain="$ac_aux_dir/ltmain.sh"
3332 # Set options
3334 enable_dlopen=no
3337 enable_win32_dll=no
3340 # Check whether --enable-shared or --disable-shared was given.
3341 if test "${enable_shared+set}" = set; then
3342 enableval="$enable_shared"
3343 p=${PACKAGE-default}
3344 case $enableval in
3345 yes) enable_shared=yes ;;
3346 no) enable_shared=no ;;
3348 enable_shared=no
3349 # Look at the argument we got. We use all the common list separators.
3350 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3351 for pkg in $enableval; do
3352 IFS="$lt_save_ifs"
3353 if test "X$pkg" = "X$p"; then
3354 enable_shared=yes
3356 done
3357 IFS="$lt_save_ifs"
3359 esac
3360 else
3361 enable_shared=yes
3371 # Check whether --enable-static or --disable-static was given.
3372 if test "${enable_static+set}" = set; then
3373 enableval="$enable_static"
3374 p=${PACKAGE-default}
3375 case $enableval in
3376 yes) enable_static=yes ;;
3377 no) enable_static=no ;;
3379 enable_static=no
3380 # Look at the argument we got. We use all the common list separators.
3381 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3382 for pkg in $enableval; do
3383 IFS="$lt_save_ifs"
3384 if test "X$pkg" = "X$p"; then
3385 enable_static=yes
3387 done
3388 IFS="$lt_save_ifs"
3390 esac
3391 else
3392 enable_static=yes
3403 # Check whether --with-pic or --without-pic was given.
3404 if test "${with_pic+set}" = set; then
3405 withval="$with_pic"
3406 pic_mode="$withval"
3407 else
3408 pic_mode=default
3411 test -z "$pic_mode" && pic_mode=default
3419 # Check whether --enable-fast-install or --disable-fast-install was given.
3420 if test "${enable_fast_install+set}" = set; then
3421 enableval="$enable_fast_install"
3422 p=${PACKAGE-default}
3423 case $enableval in
3424 yes) enable_fast_install=yes ;;
3425 no) enable_fast_install=no ;;
3427 enable_fast_install=no
3428 # Look at the argument we got. We use all the common list separators.
3429 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3430 for pkg in $enableval; do
3431 IFS="$lt_save_ifs"
3432 if test "X$pkg" = "X$p"; then
3433 enable_fast_install=yes
3435 done
3436 IFS="$lt_save_ifs"
3438 esac
3439 else
3440 enable_fast_install=yes
3450 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3451 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3452 if test "${lt_cv_path_SED+set}" = set; then
3453 echo $ECHO_N "(cached) $ECHO_C" >&6
3454 else
3455 # Loop through the user's path and test for sed and gsed.
3456 # Then use that list of sed's as ones to test for truncation.
3457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3458 for as_dir in $PATH
3460 IFS=$as_save_IFS
3461 test -z "$as_dir" && as_dir=.
3462 for lt_ac_prog in sed gsed; do
3463 for ac_exec_ext in '' $ac_executable_extensions; do
3464 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3465 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3467 done
3468 done
3469 done
3470 IFS=$as_save_IFS
3471 lt_ac_max=0
3472 lt_ac_count=0
3473 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3474 # along with /bin/sed that truncates output.
3475 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3476 test ! -f $lt_ac_sed && continue
3477 cat /dev/null > conftest.in
3478 lt_ac_count=0
3479 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3480 # Check for GNU sed and select it if it is found.
3481 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3482 lt_cv_path_SED=$lt_ac_sed
3483 break
3485 while true; do
3486 cat conftest.in conftest.in >conftest.tmp
3487 mv conftest.tmp conftest.in
3488 cp conftest.in conftest.nl
3489 echo >>conftest.nl
3490 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3491 cmp -s conftest.out conftest.nl || break
3492 # 10000 chars as input seems more than enough
3493 test $lt_ac_count -gt 10 && break
3494 lt_ac_count=`expr $lt_ac_count + 1`
3495 if test $lt_ac_count -gt $lt_ac_max; then
3496 lt_ac_max=$lt_ac_count
3497 lt_cv_path_SED=$lt_ac_sed
3499 done
3500 done
3504 SED=$lt_cv_path_SED
3506 echo "$as_me:$LINENO: result: $SED" >&5
3507 echo "${ECHO_T}$SED" >&6
3509 test -z "$SED" && SED=sed
3510 Xsed="$SED -e 1s/^X//"
3522 echo "$as_me:$LINENO: checking for egrep" >&5
3523 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3524 if test "${ac_cv_prog_egrep+set}" = set; then
3525 echo $ECHO_N "(cached) $ECHO_C" >&6
3526 else
3527 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3528 then ac_cv_prog_egrep='grep -E'
3529 else ac_cv_prog_egrep='egrep'
3532 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3533 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3534 EGREP=$ac_cv_prog_egrep
3537 echo "$as_me:$LINENO: checking for fgrep" >&5
3538 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3539 if test "${ac_cv_prog_fgrep+set}" = set; then
3540 echo $ECHO_N "(cached) $ECHO_C" >&6
3541 else
3542 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3543 then ac_cv_prog_fgrep='grep -F'
3544 else ac_cv_prog_fgrep='fgrep'
3547 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3548 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3549 FGREP=$ac_cv_prog_fgrep
3552 test -z "$GREP" && GREP=grep
3572 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3573 if test "${with_gnu_ld+set}" = set; then
3574 withval="$with_gnu_ld"
3575 test "$withval" = no || with_gnu_ld=yes
3576 else
3577 with_gnu_ld=no
3579 ac_prog=ld
3580 if test "$GCC" = yes; then
3581 # Check if gcc -print-prog-name=ld gives a path.
3582 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3583 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3584 case $host in
3585 *-*-mingw*)
3586 # gcc leaves a trailing carriage return which upsets mingw
3587 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3589 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3590 esac
3591 case $ac_prog in
3592 # Accept absolute paths.
3593 [\\/]* | ?:[\\/]*)
3594 re_direlt='/[^/][^/]*/\.\./'
3595 # Canonicalize the pathname of ld
3596 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3597 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3598 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3599 done
3600 test -z "$LD" && LD="$ac_prog"
3603 # If it fails, then pretend we aren't using GCC.
3604 ac_prog=ld
3607 # If it is relative, then search for the first ld in PATH.
3608 with_gnu_ld=unknown
3610 esac
3611 elif test "$with_gnu_ld" = yes; then
3612 echo "$as_me:$LINENO: checking for GNU ld" >&5
3613 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3614 else
3615 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3616 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3618 if test "${lt_cv_path_LD+set}" = set; then
3619 echo $ECHO_N "(cached) $ECHO_C" >&6
3620 else
3621 if test -z "$LD"; then
3622 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3623 for ac_dir in $PATH; do
3624 IFS="$lt_save_ifs"
3625 test -z "$ac_dir" && ac_dir=.
3626 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3627 lt_cv_path_LD="$ac_dir/$ac_prog"
3628 # Check to see if the program is GNU ld. I'd rather use --version,
3629 # but apparently some variants of GNU ld only accept -v.
3630 # Break only if it was the GNU/non-GNU ld that we prefer.
3631 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3632 *GNU* | *'with BFD'*)
3633 test "$with_gnu_ld" != no && break
3636 test "$with_gnu_ld" != yes && break
3638 esac
3640 done
3641 IFS="$lt_save_ifs"
3642 else
3643 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3647 LD="$lt_cv_path_LD"
3648 if test -n "$LD"; then
3649 echo "$as_me:$LINENO: result: $LD" >&5
3650 echo "${ECHO_T}$LD" >&6
3651 else
3652 echo "$as_me:$LINENO: result: no" >&5
3653 echo "${ECHO_T}no" >&6
3655 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3656 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3657 { (exit 1); exit 1; }; }
3658 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3659 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3660 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3662 else
3663 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3664 case `$LD -v 2>&1 </dev/null` in
3665 *GNU* | *'with BFD'*)
3666 lt_cv_prog_gnu_ld=yes
3669 lt_cv_prog_gnu_ld=no
3671 esac
3673 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3674 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3675 with_gnu_ld=$lt_cv_prog_gnu_ld
3686 echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3687 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
3688 if test "${lt_cv_path_NM+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
3690 else
3691 if test -n "$NM"; then
3692 # Let the user override the test.
3693 lt_cv_path_NM="$NM"
3694 else
3695 lt_nm_to_check="${ac_tool_prefix}nm"
3696 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3697 lt_nm_to_check="$lt_nm_to_check nm"
3699 for lt_tmp_nm in $lt_nm_to_check; do
3700 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3701 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3702 IFS="$lt_save_ifs"
3703 test -z "$ac_dir" && ac_dir=.
3704 tmp_nm="$ac_dir/$lt_tmp_nm"
3705 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3706 # Check to see if the nm accepts a BSD-compat flag.
3707 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3708 # nm: unknown option "B" ignored
3709 # Tru64's nm complains that /dev/null is an invalid object file
3710 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3711 */dev/null* | *'Invalid file or object type'*)
3712 lt_cv_path_NM="$tmp_nm -B"
3713 break
3716 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3717 */dev/null*)
3718 lt_cv_path_NM="$tmp_nm -p"
3719 break
3722 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3723 continue # so that we can try to find one that supports BSD flags
3725 esac
3727 esac
3729 done
3730 IFS="$lt_save_ifs"
3731 done
3732 : ${lt_cv_path_NM=no}
3735 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3736 echo "${ECHO_T}$lt_cv_path_NM" >&6
3737 if test "$lt_cv_path_NM" != "no"; then
3738 NM="$lt_cv_path_NM"
3739 else
3740 # Didn't find any BSD compatible name lister, look for dumpbin.
3741 if test -n "$ac_tool_prefix"; then
3742 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3744 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3745 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3746 echo "$as_me:$LINENO: checking for $ac_word" >&5
3747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3748 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3750 else
3751 if test -n "$DUMPBIN"; then
3752 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3753 else
3754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3755 for as_dir in $PATH
3757 IFS=$as_save_IFS
3758 test -z "$as_dir" && as_dir=.
3759 for ac_exec_ext in '' $ac_executable_extensions; do
3760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3761 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3763 break 2
3765 done
3766 done
3770 DUMPBIN=$ac_cv_prog_DUMPBIN
3771 if test -n "$DUMPBIN"; then
3772 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3773 echo "${ECHO_T}$DUMPBIN" >&6
3774 else
3775 echo "$as_me:$LINENO: result: no" >&5
3776 echo "${ECHO_T}no" >&6
3779 test -n "$DUMPBIN" && break
3780 done
3782 if test -z "$DUMPBIN"; then
3783 ac_ct_DUMPBIN=$DUMPBIN
3784 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3786 # Extract the first word of "$ac_prog", so it can be a program name with args.
3787 set dummy $ac_prog; ac_word=$2
3788 echo "$as_me:$LINENO: checking for $ac_word" >&5
3789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3790 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3791 echo $ECHO_N "(cached) $ECHO_C" >&6
3792 else
3793 if test -n "$ac_ct_DUMPBIN"; then
3794 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3795 else
3796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3797 for as_dir in $PATH
3799 IFS=$as_save_IFS
3800 test -z "$as_dir" && as_dir=.
3801 for ac_exec_ext in '' $ac_executable_extensions; do
3802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3803 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3805 break 2
3807 done
3808 done
3812 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3813 if test -n "$ac_ct_DUMPBIN"; then
3814 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3815 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
3816 else
3817 echo "$as_me:$LINENO: result: no" >&5
3818 echo "${ECHO_T}no" >&6
3821 test -n "$ac_ct_DUMPBIN" && break
3822 done
3823 test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
3825 DUMPBIN=$ac_ct_DUMPBIN
3829 if test "$DUMPBIN" != ":"; then
3830 NM="$DUMPBIN"
3833 test -z "$NM" && NM=nm
3840 echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3841 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
3842 if test "${lt_cv_nm_interface+set}" = set; then
3843 echo $ECHO_N "(cached) $ECHO_C" >&6
3844 else
3845 lt_cv_nm_interface="BSD nm"
3846 echo "int some_variable = 0;" > conftest.$ac_ext
3847 (eval echo "\"\$as_me:3847: $ac_compile\"" >&5)
3848 (eval "$ac_compile" 2>conftest.err)
3849 cat conftest.err >&5
3850 (eval echo "\"\$as_me:3850: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
3851 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3852 cat conftest.err >&5
3853 (eval echo "\"\$as_me:3853: output\"" >&5)
3854 cat conftest.out >&5
3855 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3856 lt_cv_nm_interface="MS dumpbin"
3858 rm -f conftest*
3860 echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3861 echo "${ECHO_T}$lt_cv_nm_interface" >&6
3863 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3864 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3865 LN_S=$as_ln_s
3866 if test "$LN_S" = "ln -s"; then
3867 echo "$as_me:$LINENO: result: yes" >&5
3868 echo "${ECHO_T}yes" >&6
3869 else
3870 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3871 echo "${ECHO_T}no, using $LN_S" >&6
3874 # find the maximum length of command line arguments
3875 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3876 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3877 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3878 echo $ECHO_N "(cached) $ECHO_C" >&6
3879 else
3881 teststring="ABCD"
3883 case $build_os in
3884 msdosdjgpp*)
3885 # On DJGPP, this test can blow up pretty badly due to problems in libc
3886 # (any single argument exceeding 2000 bytes causes a buffer overrun
3887 # during glob expansion). Even if it were fixed, the result of this
3888 # check would be larger than it should be.
3889 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3892 gnu*)
3893 # Under GNU Hurd, this test is not required because there is
3894 # no limit to the length of command line arguments.
3895 # Libtool will interpret -1 as no limit whatsoever
3896 lt_cv_sys_max_cmd_len=-1;
3899 cygwin* | mingw*)
3900 # On Win9x/ME, this test blows up -- it succeeds, but takes
3901 # about 5 minutes as the teststring grows exponentially.
3902 # Worse, since 9x/ME are not pre-emptively multitasking,
3903 # you end up with a "frozen" computer, even though with patience
3904 # the test eventually succeeds (with a max line length of 256k).
3905 # Instead, let's just punt: use the minimum linelength reported by
3906 # all of the supported platforms: 8192 (on NT/2K/XP).
3907 lt_cv_sys_max_cmd_len=8192;
3910 amigaos*)
3911 # On AmigaOS with pdksh, this test takes hours, literally.
3912 # So we just punt and use a minimum line length of 8192.
3913 lt_cv_sys_max_cmd_len=8192;
3916 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3917 # This has been around since 386BSD, at least. Likely further.
3918 if test -x /sbin/sysctl; then
3919 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3920 elif test -x /usr/sbin/sysctl; then
3921 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3922 else
3923 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3925 # And add a safety zone
3926 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3927 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3930 interix*)
3931 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3932 lt_cv_sys_max_cmd_len=196608
3935 osf*)
3936 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3937 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3938 # nice to cause kernel panics so lets avoid the loop below.
3939 # First set a reasonable default.
3940 lt_cv_sys_max_cmd_len=16384
3942 if test -x /sbin/sysconfig; then
3943 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3944 *1*) lt_cv_sys_max_cmd_len=-1 ;;
3945 esac
3948 sco3.2v5*)
3949 lt_cv_sys_max_cmd_len=102400
3951 sysv5* | sco5v6* | sysv4.2uw2*)
3952 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3953 if test -n "$kargmax"; then
3954 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
3955 else
3956 lt_cv_sys_max_cmd_len=32768
3960 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
3961 if test -n $lt_cv_sys_max_cmd_len; then
3962 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3963 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3964 else
3965 # Make teststring a little bigger before we do anything with it.
3966 # a 1K string should be a reasonable start.
3967 for i in 1 2 3 4 5 6 7 8 ; do
3968 teststring=$teststring$teststring
3969 done
3970 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3971 # If test is not a shell built-in, we'll probably end up computing a
3972 # maximum length that is only half of the actual maximum length, but
3973 # we can't tell.
3974 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3975 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3976 test $i != 17 # 1/2 MB should be enough
3978 i=`expr $i + 1`
3979 teststring=$teststring$teststring
3980 done
3981 # Only check the string length outside the loop.
3982 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3983 teststring=
3984 # Add a significant safety factor because C++ compilers can tack on
3985 # massive amounts of additional arguments before passing them to the
3986 # linker. It appears as though 1/2 is a usable value.
3987 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3990 esac
3994 if test -n $lt_cv_sys_max_cmd_len ; then
3995 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3996 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3997 else
3998 echo "$as_me:$LINENO: result: none" >&5
3999 echo "${ECHO_T}none" >&6
4001 max_cmd_len=$lt_cv_sys_max_cmd_len
4009 : ${CP="cp -f"}
4010 : ${MV="mv -f"}
4011 : ${RM="rm -f"}
4013 echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4014 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
4015 # Try some XSI features
4016 xsi_shell=no
4017 ( _lt_dummy="a/b/c"
4018 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4019 = c,a/b,, ) >/dev/null 2>&1 \
4020 && xsi_shell=yes
4021 echo "$as_me:$LINENO: result: $xsi_shell" >&5
4022 echo "${ECHO_T}$xsi_shell" >&6
4025 echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4026 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4027 lt_shell_append=no
4028 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4029 >/dev/null 2>&1 \
4030 && lt_shell_append=yes
4031 echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4032 echo "${ECHO_T}$lt_shell_append" >&6
4035 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4036 lt_unset=unset
4037 else
4038 lt_unset=false
4045 # test EBCDIC or ASCII
4046 case `echo X|tr X '\101'` in
4047 A) # ASCII based system
4048 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4049 lt_SP2NL='tr \040 \012'
4050 lt_NL2SP='tr \015\012 \040\040'
4052 *) # EBCDIC based system
4053 lt_SP2NL='tr \100 \n'
4054 lt_NL2SP='tr \r\n \100\100'
4056 esac
4066 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4067 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4068 if test "${lt_cv_ld_reload_flag+set}" = set; then
4069 echo $ECHO_N "(cached) $ECHO_C" >&6
4070 else
4071 lt_cv_ld_reload_flag='-r'
4073 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4074 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4075 reload_flag=$lt_cv_ld_reload_flag
4076 case $reload_flag in
4077 "" | " "*) ;;
4078 *) reload_flag=" $reload_flag" ;;
4079 esac
4080 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4081 case $host_os in
4082 darwin*)
4083 if test "$GCC" = yes; then
4084 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4085 else
4086 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4089 esac
4100 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4101 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4102 if test "${lt_cv_deplibs_check_method+set}" = set; then
4103 echo $ECHO_N "(cached) $ECHO_C" >&6
4104 else
4105 lt_cv_file_magic_cmd='$MAGIC_CMD'
4106 lt_cv_file_magic_test_file=
4107 lt_cv_deplibs_check_method='unknown'
4108 # Need to set the preceding variable on all platforms that support
4109 # interlibrary dependencies.
4110 # 'none' -- dependencies not supported.
4111 # `unknown' -- same as none, but documents that we really don't know.
4112 # 'pass_all' -- all dependencies passed with no checks.
4113 # 'test_compile' -- check by making test program.
4114 # 'file_magic [[regex]]' -- check by looking for files in library path
4115 # which responds to the $file_magic_cmd with a given extended regex.
4116 # If you have `file' or equivalent on your system and you're not sure
4117 # whether `pass_all' will *always* work, you probably want this one.
4119 case $host_os in
4120 aix[4-9]*)
4121 lt_cv_deplibs_check_method=pass_all
4124 beos*)
4125 lt_cv_deplibs_check_method=pass_all
4128 bsdi[45]*)
4129 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4130 lt_cv_file_magic_cmd='/usr/bin/file -L'
4131 lt_cv_file_magic_test_file=/shlib/libc.so
4134 cygwin*)
4135 # func_win32_libid is a shell function defined in ltmain.sh
4136 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4137 lt_cv_file_magic_cmd='func_win32_libid'
4140 mingw* | pw32*)
4141 # Base MSYS/MinGW do not provide the 'file' command needed by
4142 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4143 # unless we find 'file', for example because we are cross-compiling.
4144 if ( file / ) >/dev/null 2>&1; then
4145 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4146 lt_cv_file_magic_cmd='func_win32_libid'
4147 else
4148 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4149 lt_cv_file_magic_cmd='$OBJDUMP -f'
4153 darwin* | rhapsody*)
4154 lt_cv_deplibs_check_method=pass_all
4157 freebsd* | dragonfly*)
4158 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4159 case $host_cpu in
4160 i*86 )
4161 # Not sure whether the presence of OpenBSD here was a mistake.
4162 # Let's accept both of them until this is cleared up.
4163 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4164 lt_cv_file_magic_cmd=/usr/bin/file
4165 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4167 esac
4168 else
4169 lt_cv_deplibs_check_method=pass_all
4173 gnu*)
4174 lt_cv_deplibs_check_method=pass_all
4177 hpux10.20* | hpux11*)
4178 lt_cv_file_magic_cmd=/usr/bin/file
4179 case $host_cpu in
4180 ia64*)
4181 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4182 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4184 hppa*64*)
4185 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]'
4186 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4189 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4190 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4192 esac
4195 interix[3-9]*)
4196 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4197 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4200 irix5* | irix6* | nonstopux*)
4201 case $LD in
4202 *-32|*"-32 ") libmagic=32-bit;;
4203 *-n32|*"-n32 ") libmagic=N32;;
4204 *-64|*"-64 ") libmagic=64-bit;;
4205 *) libmagic=never-match;;
4206 esac
4207 lt_cv_deplibs_check_method=pass_all
4210 # This must be Linux ELF.
4211 linux* | k*bsd*-gnu)
4212 lt_cv_deplibs_check_method=pass_all
4215 netbsd*)
4216 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4217 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4218 else
4219 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4223 newos6*)
4224 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4225 lt_cv_file_magic_cmd=/usr/bin/file
4226 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4229 *nto* | *qnx*)
4230 lt_cv_deplibs_check_method=pass_all
4233 openbsd*)
4234 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4235 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4236 else
4237 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4241 osf3* | osf4* | osf5*)
4242 lt_cv_deplibs_check_method=pass_all
4245 rdos*)
4246 lt_cv_deplibs_check_method=pass_all
4249 solaris*)
4250 lt_cv_deplibs_check_method=pass_all
4253 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4254 lt_cv_deplibs_check_method=pass_all
4257 sysv4 | sysv4.3*)
4258 case $host_vendor in
4259 motorola)
4260 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]'
4261 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4263 ncr)
4264 lt_cv_deplibs_check_method=pass_all
4266 sequent)
4267 lt_cv_file_magic_cmd='/bin/file'
4268 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4270 sni)
4271 lt_cv_file_magic_cmd='/bin/file'
4272 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4273 lt_cv_file_magic_test_file=/lib/libc.so
4275 siemens)
4276 lt_cv_deplibs_check_method=pass_all
4279 lt_cv_deplibs_check_method=pass_all
4281 esac
4284 tpf*)
4285 lt_cv_deplibs_check_method=pass_all
4287 esac
4290 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4291 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4292 file_magic_cmd=$lt_cv_file_magic_cmd
4293 deplibs_check_method=$lt_cv_deplibs_check_method
4294 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4307 if test -n "$ac_tool_prefix"; then
4308 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4309 set dummy ${ac_tool_prefix}ar; ac_word=$2
4310 echo "$as_me:$LINENO: checking for $ac_word" >&5
4311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4312 if test "${ac_cv_prog_AR+set}" = set; then
4313 echo $ECHO_N "(cached) $ECHO_C" >&6
4314 else
4315 if test -n "$AR"; then
4316 ac_cv_prog_AR="$AR" # Let the user override the test.
4317 else
4318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319 for as_dir in $PATH
4321 IFS=$as_save_IFS
4322 test -z "$as_dir" && as_dir=.
4323 for ac_exec_ext in '' $ac_executable_extensions; do
4324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4325 ac_cv_prog_AR="${ac_tool_prefix}ar"
4326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4327 break 2
4329 done
4330 done
4334 AR=$ac_cv_prog_AR
4335 if test -n "$AR"; then
4336 echo "$as_me:$LINENO: result: $AR" >&5
4337 echo "${ECHO_T}$AR" >&6
4338 else
4339 echo "$as_me:$LINENO: result: no" >&5
4340 echo "${ECHO_T}no" >&6
4344 if test -z "$ac_cv_prog_AR"; then
4345 ac_ct_AR=$AR
4346 # Extract the first word of "ar", so it can be a program name with args.
4347 set dummy ar; ac_word=$2
4348 echo "$as_me:$LINENO: checking for $ac_word" >&5
4349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4350 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 else
4353 if test -n "$ac_ct_AR"; then
4354 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4355 else
4356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4357 for as_dir in $PATH
4359 IFS=$as_save_IFS
4360 test -z "$as_dir" && as_dir=.
4361 for ac_exec_ext in '' $ac_executable_extensions; do
4362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4363 ac_cv_prog_ac_ct_AR="ar"
4364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4365 break 2
4367 done
4368 done
4370 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
4373 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4374 if test -n "$ac_ct_AR"; then
4375 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4376 echo "${ECHO_T}$ac_ct_AR" >&6
4377 else
4378 echo "$as_me:$LINENO: result: no" >&5
4379 echo "${ECHO_T}no" >&6
4382 AR=$ac_ct_AR
4383 else
4384 AR="$ac_cv_prog_AR"
4387 test -z "$AR" && AR=ar
4388 test -z "$AR_FLAGS" && AR_FLAGS=cru
4400 if test -n "$ac_tool_prefix"; then
4401 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4402 set dummy ${ac_tool_prefix}strip; ac_word=$2
4403 echo "$as_me:$LINENO: checking for $ac_word" >&5
4404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4405 if test "${ac_cv_prog_STRIP+set}" = set; then
4406 echo $ECHO_N "(cached) $ECHO_C" >&6
4407 else
4408 if test -n "$STRIP"; then
4409 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4410 else
4411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412 for as_dir in $PATH
4414 IFS=$as_save_IFS
4415 test -z "$as_dir" && as_dir=.
4416 for ac_exec_ext in '' $ac_executable_extensions; do
4417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4418 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4420 break 2
4422 done
4423 done
4427 STRIP=$ac_cv_prog_STRIP
4428 if test -n "$STRIP"; then
4429 echo "$as_me:$LINENO: result: $STRIP" >&5
4430 echo "${ECHO_T}$STRIP" >&6
4431 else
4432 echo "$as_me:$LINENO: result: no" >&5
4433 echo "${ECHO_T}no" >&6
4437 if test -z "$ac_cv_prog_STRIP"; then
4438 ac_ct_STRIP=$STRIP
4439 # Extract the first word of "strip", so it can be a program name with args.
4440 set dummy strip; ac_word=$2
4441 echo "$as_me:$LINENO: checking for $ac_word" >&5
4442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4443 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4444 echo $ECHO_N "(cached) $ECHO_C" >&6
4445 else
4446 if test -n "$ac_ct_STRIP"; then
4447 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4448 else
4449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 for as_dir in $PATH
4452 IFS=$as_save_IFS
4453 test -z "$as_dir" && as_dir=.
4454 for ac_exec_ext in '' $ac_executable_extensions; do
4455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4456 ac_cv_prog_ac_ct_STRIP="strip"
4457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4458 break 2
4460 done
4461 done
4463 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4466 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4467 if test -n "$ac_ct_STRIP"; then
4468 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4469 echo "${ECHO_T}$ac_ct_STRIP" >&6
4470 else
4471 echo "$as_me:$LINENO: result: no" >&5
4472 echo "${ECHO_T}no" >&6
4475 STRIP=$ac_ct_STRIP
4476 else
4477 STRIP="$ac_cv_prog_STRIP"
4480 test -z "$STRIP" && STRIP=:
4487 if test -n "$ac_tool_prefix"; then
4488 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4489 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4490 echo "$as_me:$LINENO: checking for $ac_word" >&5
4491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4492 if test "${ac_cv_prog_RANLIB+set}" = set; then
4493 echo $ECHO_N "(cached) $ECHO_C" >&6
4494 else
4495 if test -n "$RANLIB"; then
4496 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4497 else
4498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4499 for as_dir in $PATH
4501 IFS=$as_save_IFS
4502 test -z "$as_dir" && as_dir=.
4503 for ac_exec_ext in '' $ac_executable_extensions; do
4504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4505 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4507 break 2
4509 done
4510 done
4514 RANLIB=$ac_cv_prog_RANLIB
4515 if test -n "$RANLIB"; then
4516 echo "$as_me:$LINENO: result: $RANLIB" >&5
4517 echo "${ECHO_T}$RANLIB" >&6
4518 else
4519 echo "$as_me:$LINENO: result: no" >&5
4520 echo "${ECHO_T}no" >&6
4524 if test -z "$ac_cv_prog_RANLIB"; then
4525 ac_ct_RANLIB=$RANLIB
4526 # Extract the first word of "ranlib", so it can be a program name with args.
4527 set dummy ranlib; ac_word=$2
4528 echo "$as_me:$LINENO: checking for $ac_word" >&5
4529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4530 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4532 else
4533 if test -n "$ac_ct_RANLIB"; then
4534 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4535 else
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 for as_dir in $PATH
4539 IFS=$as_save_IFS
4540 test -z "$as_dir" && as_dir=.
4541 for ac_exec_ext in '' $ac_executable_extensions; do
4542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4543 ac_cv_prog_ac_ct_RANLIB="ranlib"
4544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4545 break 2
4547 done
4548 done
4550 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4553 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4554 if test -n "$ac_ct_RANLIB"; then
4555 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4556 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4557 else
4558 echo "$as_me:$LINENO: result: no" >&5
4559 echo "${ECHO_T}no" >&6
4562 RANLIB=$ac_ct_RANLIB
4563 else
4564 RANLIB="$ac_cv_prog_RANLIB"
4567 test -z "$RANLIB" && RANLIB=:
4574 # Determine commands to create old-style static archives.
4575 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4576 old_postinstall_cmds='chmod 644 $oldlib'
4577 old_postuninstall_cmds=
4579 if test -n "$RANLIB"; then
4580 case $host_os in
4581 openbsd*)
4582 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4585 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4587 esac
4588 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4624 # If no C compiler was specified, use CC.
4625 LTCC=${LTCC-"$CC"}
4627 # If no C compiler flags were specified, use CFLAGS.
4628 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4630 # Allow CC to be a program name with arguments.
4631 compiler=$CC
4634 # Check for command to grab the raw symbol name followed by C symbol from nm.
4635 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4636 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4637 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4639 else
4641 # These are sane defaults that work on at least a few old systems.
4642 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4644 # Character class describing NM global symbol codes.
4645 symcode='[BCDEGRST]'
4647 # Regexp to match symbols that can be accessed directly from C.
4648 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4650 # Define system-specific variables.
4651 case $host_os in
4652 aix*)
4653 symcode='[BCDT]'
4655 cygwin* | mingw* | pw32*)
4656 symcode='[ABCDGISTW]'
4658 hpux*)
4659 if test "$host_cpu" = ia64; then
4660 symcode='[ABCDEGRST]'
4663 irix* | nonstopux*)
4664 symcode='[BCDEGRST]'
4666 osf*)
4667 symcode='[BCDEGQRST]'
4669 solaris*)
4670 symcode='[BDRT]'
4672 sco3.2v5*)
4673 symcode='[DT]'
4675 sysv4.2uw2*)
4676 symcode='[DT]'
4678 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4679 symcode='[ABDT]'
4681 sysv4)
4682 symcode='[DFNSTU]'
4684 esac
4686 # If we're using GNU nm, then use its standard symbol codes.
4687 case `$NM -V 2>&1` in
4688 *GNU* | *'with BFD'*)
4689 symcode='[ABCDGIRSTW]' ;;
4690 esac
4692 # Transform an extracted symbol line into a proper C declaration.
4693 # Some systems (esp. on ia64) link data and code symbols differently,
4694 # so use this general approach.
4695 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4697 # Transform an extracted symbol line into symbol name and symbol address
4698 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4700 # Handle CRLF in mingw tool chain
4701 opt_cr=
4702 case $build_os in
4703 mingw*)
4704 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4706 esac
4708 # Try without a prefix underscore, then with it.
4709 for ac_symprfx in "" "_"; do
4711 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4712 symxfrm="\\1 $ac_symprfx\\2 \\2"
4714 # Write the raw and C identifiers.
4715 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4716 # Fake it for dumpbin and say T for any non-static function
4717 # and D for any global variable.
4718 # Also find C++ and __fastcall symbols from MSVC++,
4719 # which start with @ or ?.
4720 lt_cv_sys_global_symbol_pipe="$AWK '"\
4721 " {last_section=section; section=\$ 3};"\
4722 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4723 " \$ 0!~/External *\|/{next};"\
4724 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4725 " {if(hide[section]) next};"\
4726 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4727 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4728 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
4729 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4730 " ' prfx=^$ac_symprfx"
4731 else
4732 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4735 # Check to see that the pipe works correctly.
4736 pipe_works=no
4738 rm -f conftest*
4739 cat > conftest.$ac_ext <<_LT_EOF
4740 #ifdef __cplusplus
4741 extern "C" {
4742 #endif
4743 char nm_test_var;
4744 void nm_test_func(void);
4745 void nm_test_func(void){}
4746 #ifdef __cplusplus
4748 #endif
4749 int main(){nm_test_var='a';nm_test_func();return(0);}
4750 _LT_EOF
4752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4753 (eval $ac_compile) 2>&5
4754 ac_status=$?
4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); }; then
4757 # Now try to grab the symbols.
4758 nlist=conftest.nm
4759 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4760 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4761 ac_status=$?
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); } && test -s "$nlist"; then
4764 # Try sorting and uniquifying the output.
4765 if sort "$nlist" | uniq > "$nlist"T; then
4766 mv -f "$nlist"T "$nlist"
4767 else
4768 rm -f "$nlist"T
4771 # Make sure that we snagged all the symbols we need.
4772 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4773 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4774 cat <<_LT_EOF > conftest.$ac_ext
4775 #ifdef __cplusplus
4776 extern "C" {
4777 #endif
4779 _LT_EOF
4780 # Now generate the symbol file.
4781 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4783 cat <<_LT_EOF >> conftest.$ac_ext
4785 /* The mapping between symbol names and symbols. */
4786 const struct {
4787 const char *name;
4788 void *address;
4790 lt__PROGRAM__LTX_preloaded_symbols[] =
4792 { "@PROGRAM@", (void *) 0 },
4793 _LT_EOF
4794 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4795 cat <<\_LT_EOF >> conftest.$ac_ext
4796 {0, (void *) 0}
4799 /* This works around a problem in FreeBSD linker */
4800 #ifdef FREEBSD_WORKAROUND
4801 static const void *lt_preloaded_setup() {
4802 return lt__PROGRAM__LTX_preloaded_symbols;
4804 #endif
4806 #ifdef __cplusplus
4808 #endif
4809 _LT_EOF
4810 # Now try linking the two files.
4811 mv conftest.$ac_objext conftstm.$ac_objext
4812 lt_save_LIBS="$LIBS"
4813 lt_save_CFLAGS="$CFLAGS"
4814 LIBS="conftstm.$ac_objext"
4815 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4817 (eval $ac_link) 2>&5
4818 ac_status=$?
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4821 pipe_works=yes
4823 LIBS="$lt_save_LIBS"
4824 CFLAGS="$lt_save_CFLAGS"
4825 else
4826 echo "cannot find nm_test_func in $nlist" >&5
4828 else
4829 echo "cannot find nm_test_var in $nlist" >&5
4831 else
4832 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4834 else
4835 echo "$progname: failed program was:" >&5
4836 cat conftest.$ac_ext >&5
4838 rm -f conftest* conftst*
4840 # Do not use the global_symbol_pipe unless it works.
4841 if test "$pipe_works" = yes; then
4842 break
4843 else
4844 lt_cv_sys_global_symbol_pipe=
4846 done
4850 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4851 lt_cv_sys_global_symbol_to_cdecl=
4853 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4854 echo "$as_me:$LINENO: result: failed" >&5
4855 echo "${ECHO_T}failed" >&6
4856 else
4857 echo "$as_me:$LINENO: result: ok" >&5
4858 echo "${ECHO_T}ok" >&6
4878 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4879 if test "${enable_libtool_lock+set}" = set; then
4880 enableval="$enable_libtool_lock"
4883 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4885 # Some flags need to be propagated to the compiler or linker for good
4886 # libtool support.
4887 case $host in
4888 ia64-*-hpux*)
4889 # Find out which ABI we are using.
4890 echo 'int i;' > conftest.$ac_ext
4891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4892 (eval $ac_compile) 2>&5
4893 ac_status=$?
4894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4895 (exit $ac_status); }; then
4896 case `/usr/bin/file conftest.$ac_objext` in
4897 *ELF-32*)
4898 HPUX_IA64_MODE="32"
4900 *ELF-64*)
4901 HPUX_IA64_MODE="64"
4903 esac
4905 rm -rf conftest*
4907 *-*-irix6*)
4908 # Find out which ABI we are using.
4909 echo '#line 4909 "configure"' > conftest.$ac_ext
4910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4911 (eval $ac_compile) 2>&5
4912 ac_status=$?
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); }; then
4915 if test "$lt_cv_prog_gnu_ld" = yes; then
4916 case `/usr/bin/file conftest.$ac_objext` in
4917 *32-bit*)
4918 LD="${LD-ld} -melf32bsmip"
4920 *N32*)
4921 LD="${LD-ld} -melf32bmipn32"
4923 *64-bit*)
4924 LD="${LD-ld} -melf64bmip"
4926 esac
4927 else
4928 case `/usr/bin/file conftest.$ac_objext` in
4929 *32-bit*)
4930 LD="${LD-ld} -32"
4932 *N32*)
4933 LD="${LD-ld} -n32"
4935 *64-bit*)
4936 LD="${LD-ld} -64"
4938 esac
4941 rm -rf conftest*
4944 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4945 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
4946 # Find out which ABI we are using.
4947 echo 'int i;' > conftest.$ac_ext
4948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4949 (eval $ac_compile) 2>&5
4950 ac_status=$?
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); }; then
4953 case `/usr/bin/file conftest.o` in
4954 *32-bit*)
4955 case $host in
4956 x86_64-*kfreebsd*-gnu)
4957 LD="${LD-ld} -m elf_i386_fbsd"
4959 x86_64-*linux*)
4960 LD="${LD-ld} -m elf_i386"
4962 ppc64-*linux*|powerpc64-*linux*)
4963 LD="${LD-ld} -m elf32ppclinux"
4965 s390x-*linux*)
4966 LD="${LD-ld} -m elf_s390"
4968 sparc64-*linux*)
4969 LD="${LD-ld} -m elf32_sparc"
4971 esac
4973 *64-bit*)
4974 case $host in
4975 x86_64-*kfreebsd*-gnu)
4976 LD="${LD-ld} -m elf_x86_64_fbsd"
4978 x86_64-*linux*)
4979 LD="${LD-ld} -m elf_x86_64"
4981 ppc*-*linux*|powerpc*-*linux*)
4982 LD="${LD-ld} -m elf64ppc"
4984 s390*-*linux*|s390*-*tpf*)
4985 LD="${LD-ld} -m elf64_s390"
4987 sparc*-*linux*)
4988 LD="${LD-ld} -m elf64_sparc"
4990 esac
4992 esac
4994 rm -rf conftest*
4997 *-*-sco3.2v5*)
4998 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4999 SAVE_CFLAGS="$CFLAGS"
5000 CFLAGS="$CFLAGS -belf"
5001 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5002 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5003 if test "${lt_cv_cc_needs_belf+set}" = set; then
5004 echo $ECHO_N "(cached) $ECHO_C" >&6
5005 else
5006 ac_ext=c
5007 ac_cpp='$CPP $CPPFLAGS'
5008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5012 cat >conftest.$ac_ext <<_ACEOF
5013 /* confdefs.h. */
5014 _ACEOF
5015 cat confdefs.h >>conftest.$ac_ext
5016 cat >>conftest.$ac_ext <<_ACEOF
5017 /* end confdefs.h. */
5020 main ()
5024 return 0;
5026 _ACEOF
5027 rm -f conftest.$ac_objext conftest$ac_exeext
5028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5029 (eval $ac_link) 2>conftest.er1
5030 ac_status=$?
5031 grep -v '^ *+' conftest.er1 >conftest.err
5032 rm -f conftest.er1
5033 cat conftest.err >&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); } &&
5036 { ac_try='test -z "$ac_c_werror_flag"
5037 || test ! -s conftest.err'
5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039 (eval $ac_try) 2>&5
5040 ac_status=$?
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; } &&
5043 { ac_try='test -s conftest$ac_exeext'
5044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5045 (eval $ac_try) 2>&5
5046 ac_status=$?
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); }; }; then
5049 lt_cv_cc_needs_belf=yes
5050 else
5051 echo "$as_me: failed program was:" >&5
5052 sed 's/^/| /' conftest.$ac_ext >&5
5054 lt_cv_cc_needs_belf=no
5056 rm -f conftest.err conftest.$ac_objext \
5057 conftest$ac_exeext conftest.$ac_ext
5058 ac_ext=c
5059 ac_cpp='$CPP $CPPFLAGS'
5060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5065 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5066 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5067 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5068 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5069 CFLAGS="$SAVE_CFLAGS"
5072 sparc*-*solaris*)
5073 # Find out which ABI we are using.
5074 echo 'int i;' > conftest.$ac_ext
5075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5076 (eval $ac_compile) 2>&5
5077 ac_status=$?
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); }; then
5080 case `/usr/bin/file conftest.o` in
5081 *64-bit*)
5082 case $lt_cv_prog_gnu_ld in
5083 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5084 *) LD="${LD-ld} -64" ;;
5085 esac
5087 esac
5089 rm -rf conftest*
5091 esac
5093 need_locks="$enable_libtool_lock"
5095 ac_ext=c
5096 ac_cpp='$CPP $CPPFLAGS'
5097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5100 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5101 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5102 # On Suns, sometimes $CPP names a directory.
5103 if test -n "$CPP" && test -d "$CPP"; then
5104 CPP=
5106 if test -z "$CPP"; then
5107 if test "${ac_cv_prog_CPP+set}" = set; then
5108 echo $ECHO_N "(cached) $ECHO_C" >&6
5109 else
5110 # Double quotes because CPP needs to be expanded
5111 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5113 ac_preproc_ok=false
5114 for ac_c_preproc_warn_flag in '' yes
5116 # Use a header file that comes with gcc, so configuring glibc
5117 # with a fresh cross-compiler works.
5118 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5119 # <limits.h> exists even on freestanding compilers.
5120 # On the NeXT, cc -E runs the code through the compiler's parser,
5121 # not just through cpp. "Syntax error" is here to catch this case.
5122 cat >conftest.$ac_ext <<_ACEOF
5123 /* confdefs.h. */
5124 _ACEOF
5125 cat confdefs.h >>conftest.$ac_ext
5126 cat >>conftest.$ac_ext <<_ACEOF
5127 /* end confdefs.h. */
5128 #ifdef __STDC__
5129 # include <limits.h>
5130 #else
5131 # include <assert.h>
5132 #endif
5133 Syntax error
5134 _ACEOF
5135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5137 ac_status=$?
5138 grep -v '^ *+' conftest.er1 >conftest.err
5139 rm -f conftest.er1
5140 cat conftest.err >&5
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); } >/dev/null; then
5143 if test -s conftest.err; then
5144 ac_cpp_err=$ac_c_preproc_warn_flag
5145 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5146 else
5147 ac_cpp_err=
5149 else
5150 ac_cpp_err=yes
5152 if test -z "$ac_cpp_err"; then
5154 else
5155 echo "$as_me: failed program was:" >&5
5156 sed 's/^/| /' conftest.$ac_ext >&5
5158 # Broken: fails on valid input.
5159 continue
5161 rm -f conftest.err conftest.$ac_ext
5163 # OK, works on sane cases. Now check whether non-existent headers
5164 # can be detected and how.
5165 cat >conftest.$ac_ext <<_ACEOF
5166 /* confdefs.h. */
5167 _ACEOF
5168 cat confdefs.h >>conftest.$ac_ext
5169 cat >>conftest.$ac_ext <<_ACEOF
5170 /* end confdefs.h. */
5171 #include <ac_nonexistent.h>
5172 _ACEOF
5173 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5174 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5175 ac_status=$?
5176 grep -v '^ *+' conftest.er1 >conftest.err
5177 rm -f conftest.er1
5178 cat conftest.err >&5
5179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180 (exit $ac_status); } >/dev/null; then
5181 if test -s conftest.err; then
5182 ac_cpp_err=$ac_c_preproc_warn_flag
5183 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5184 else
5185 ac_cpp_err=
5187 else
5188 ac_cpp_err=yes
5190 if test -z "$ac_cpp_err"; then
5191 # Broken: success on invalid input.
5192 continue
5193 else
5194 echo "$as_me: failed program was:" >&5
5195 sed 's/^/| /' conftest.$ac_ext >&5
5197 # Passes both tests.
5198 ac_preproc_ok=:
5199 break
5201 rm -f conftest.err conftest.$ac_ext
5203 done
5204 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5205 rm -f conftest.err conftest.$ac_ext
5206 if $ac_preproc_ok; then
5207 break
5210 done
5211 ac_cv_prog_CPP=$CPP
5214 CPP=$ac_cv_prog_CPP
5215 else
5216 ac_cv_prog_CPP=$CPP
5218 echo "$as_me:$LINENO: result: $CPP" >&5
5219 echo "${ECHO_T}$CPP" >&6
5220 ac_preproc_ok=false
5221 for ac_c_preproc_warn_flag in '' yes
5223 # Use a header file that comes with gcc, so configuring glibc
5224 # with a fresh cross-compiler works.
5225 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5226 # <limits.h> exists even on freestanding compilers.
5227 # On the NeXT, cc -E runs the code through the compiler's parser,
5228 # not just through cpp. "Syntax error" is here to catch this case.
5229 cat >conftest.$ac_ext <<_ACEOF
5230 /* confdefs.h. */
5231 _ACEOF
5232 cat confdefs.h >>conftest.$ac_ext
5233 cat >>conftest.$ac_ext <<_ACEOF
5234 /* end confdefs.h. */
5235 #ifdef __STDC__
5236 # include <limits.h>
5237 #else
5238 # include <assert.h>
5239 #endif
5240 Syntax error
5241 _ACEOF
5242 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5243 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5244 ac_status=$?
5245 grep -v '^ *+' conftest.er1 >conftest.err
5246 rm -f conftest.er1
5247 cat conftest.err >&5
5248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5249 (exit $ac_status); } >/dev/null; then
5250 if test -s conftest.err; then
5251 ac_cpp_err=$ac_c_preproc_warn_flag
5252 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5253 else
5254 ac_cpp_err=
5256 else
5257 ac_cpp_err=yes
5259 if test -z "$ac_cpp_err"; then
5261 else
5262 echo "$as_me: failed program was:" >&5
5263 sed 's/^/| /' conftest.$ac_ext >&5
5265 # Broken: fails on valid input.
5266 continue
5268 rm -f conftest.err conftest.$ac_ext
5270 # OK, works on sane cases. Now check whether non-existent headers
5271 # can be detected and how.
5272 cat >conftest.$ac_ext <<_ACEOF
5273 /* confdefs.h. */
5274 _ACEOF
5275 cat confdefs.h >>conftest.$ac_ext
5276 cat >>conftest.$ac_ext <<_ACEOF
5277 /* end confdefs.h. */
5278 #include <ac_nonexistent.h>
5279 _ACEOF
5280 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5281 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5282 ac_status=$?
5283 grep -v '^ *+' conftest.er1 >conftest.err
5284 rm -f conftest.er1
5285 cat conftest.err >&5
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); } >/dev/null; then
5288 if test -s conftest.err; then
5289 ac_cpp_err=$ac_c_preproc_warn_flag
5290 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5291 else
5292 ac_cpp_err=
5294 else
5295 ac_cpp_err=yes
5297 if test -z "$ac_cpp_err"; then
5298 # Broken: success on invalid input.
5299 continue
5300 else
5301 echo "$as_me: failed program was:" >&5
5302 sed 's/^/| /' conftest.$ac_ext >&5
5304 # Passes both tests.
5305 ac_preproc_ok=:
5306 break
5308 rm -f conftest.err conftest.$ac_ext
5310 done
5311 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5312 rm -f conftest.err conftest.$ac_ext
5313 if $ac_preproc_ok; then
5315 else
5316 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5317 echo "$as_me: error: in \`$ac_pwd':" >&2;}
5318 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5319 See \`config.log' for more details." >&5
5320 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5321 See \`config.log' for more details." >&2;}
5322 { (exit 1); exit 1; }; }; }
5325 ac_ext=c
5326 ac_cpp='$CPP $CPPFLAGS'
5327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5332 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5333 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5334 if test "${ac_cv_header_stdc+set}" = set; then
5335 echo $ECHO_N "(cached) $ECHO_C" >&6
5336 else
5337 cat >conftest.$ac_ext <<_ACEOF
5338 /* confdefs.h. */
5339 _ACEOF
5340 cat confdefs.h >>conftest.$ac_ext
5341 cat >>conftest.$ac_ext <<_ACEOF
5342 /* end confdefs.h. */
5343 #include <stdlib.h>
5344 #include <stdarg.h>
5345 #include <string.h>
5346 #include <float.h>
5349 main ()
5353 return 0;
5355 _ACEOF
5356 rm -f conftest.$ac_objext
5357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5358 (eval $ac_compile) 2>conftest.er1
5359 ac_status=$?
5360 grep -v '^ *+' conftest.er1 >conftest.err
5361 rm -f conftest.er1
5362 cat conftest.err >&5
5363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364 (exit $ac_status); } &&
5365 { ac_try='test -z "$ac_c_werror_flag"
5366 || test ! -s conftest.err'
5367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5368 (eval $ac_try) 2>&5
5369 ac_status=$?
5370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5371 (exit $ac_status); }; } &&
5372 { ac_try='test -s conftest.$ac_objext'
5373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5374 (eval $ac_try) 2>&5
5375 ac_status=$?
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); }; }; then
5378 ac_cv_header_stdc=yes
5379 else
5380 echo "$as_me: failed program was:" >&5
5381 sed 's/^/| /' conftest.$ac_ext >&5
5383 ac_cv_header_stdc=no
5385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5387 if test $ac_cv_header_stdc = yes; then
5388 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5389 cat >conftest.$ac_ext <<_ACEOF
5390 /* confdefs.h. */
5391 _ACEOF
5392 cat confdefs.h >>conftest.$ac_ext
5393 cat >>conftest.$ac_ext <<_ACEOF
5394 /* end confdefs.h. */
5395 #include <string.h>
5397 _ACEOF
5398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5399 $EGREP "memchr" >/dev/null 2>&1; then
5401 else
5402 ac_cv_header_stdc=no
5404 rm -f conftest*
5408 if test $ac_cv_header_stdc = yes; then
5409 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5410 cat >conftest.$ac_ext <<_ACEOF
5411 /* confdefs.h. */
5412 _ACEOF
5413 cat confdefs.h >>conftest.$ac_ext
5414 cat >>conftest.$ac_ext <<_ACEOF
5415 /* end confdefs.h. */
5416 #include <stdlib.h>
5418 _ACEOF
5419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5420 $EGREP "free" >/dev/null 2>&1; then
5422 else
5423 ac_cv_header_stdc=no
5425 rm -f conftest*
5429 if test $ac_cv_header_stdc = yes; then
5430 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5431 if test "$cross_compiling" = yes; then
5433 else
5434 cat >conftest.$ac_ext <<_ACEOF
5435 /* confdefs.h. */
5436 _ACEOF
5437 cat confdefs.h >>conftest.$ac_ext
5438 cat >>conftest.$ac_ext <<_ACEOF
5439 /* end confdefs.h. */
5440 #include <ctype.h>
5441 #if ((' ' & 0x0FF) == 0x020)
5442 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5443 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5444 #else
5445 # define ISLOWER(c) \
5446 (('a' <= (c) && (c) <= 'i') \
5447 || ('j' <= (c) && (c) <= 'r') \
5448 || ('s' <= (c) && (c) <= 'z'))
5449 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5450 #endif
5452 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5454 main ()
5456 int i;
5457 for (i = 0; i < 256; i++)
5458 if (XOR (islower (i), ISLOWER (i))
5459 || toupper (i) != TOUPPER (i))
5460 exit(2);
5461 exit (0);
5463 _ACEOF
5464 rm -f conftest$ac_exeext
5465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5466 (eval $ac_link) 2>&5
5467 ac_status=$?
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5471 (eval $ac_try) 2>&5
5472 ac_status=$?
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); }; }; then
5476 else
5477 echo "$as_me: program exited with status $ac_status" >&5
5478 echo "$as_me: failed program was:" >&5
5479 sed 's/^/| /' conftest.$ac_ext >&5
5481 ( exit $ac_status )
5482 ac_cv_header_stdc=no
5484 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5488 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5489 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5490 if test $ac_cv_header_stdc = yes; then
5492 cat >>confdefs.h <<\_ACEOF
5493 #define STDC_HEADERS 1
5494 _ACEOF
5498 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5508 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5509 inttypes.h stdint.h unistd.h
5511 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5512 echo "$as_me:$LINENO: checking for $ac_header" >&5
5513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5514 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5515 echo $ECHO_N "(cached) $ECHO_C" >&6
5516 else
5517 cat >conftest.$ac_ext <<_ACEOF
5518 /* confdefs.h. */
5519 _ACEOF
5520 cat confdefs.h >>conftest.$ac_ext
5521 cat >>conftest.$ac_ext <<_ACEOF
5522 /* end confdefs.h. */
5523 $ac_includes_default
5525 #include <$ac_header>
5526 _ACEOF
5527 rm -f conftest.$ac_objext
5528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5529 (eval $ac_compile) 2>conftest.er1
5530 ac_status=$?
5531 grep -v '^ *+' conftest.er1 >conftest.err
5532 rm -f conftest.er1
5533 cat conftest.err >&5
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); } &&
5536 { ac_try='test -z "$ac_c_werror_flag"
5537 || test ! -s conftest.err'
5538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5539 (eval $ac_try) 2>&5
5540 ac_status=$?
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); }; } &&
5543 { ac_try='test -s conftest.$ac_objext'
5544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5545 (eval $ac_try) 2>&5
5546 ac_status=$?
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); }; }; then
5549 eval "$as_ac_Header=yes"
5550 else
5551 echo "$as_me: failed program was:" >&5
5552 sed 's/^/| /' conftest.$ac_ext >&5
5554 eval "$as_ac_Header=no"
5556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5559 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5560 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5561 cat >>confdefs.h <<_ACEOF
5562 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5563 _ACEOF
5567 done
5571 for ac_header in dlfcn.h
5573 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5574 echo "$as_me:$LINENO: checking for $ac_header" >&5
5575 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5576 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5577 echo $ECHO_N "(cached) $ECHO_C" >&6
5578 else
5579 cat >conftest.$ac_ext <<_ACEOF
5580 /* confdefs.h. */
5581 _ACEOF
5582 cat confdefs.h >>conftest.$ac_ext
5583 cat >>conftest.$ac_ext <<_ACEOF
5584 /* end confdefs.h. */
5585 $ac_includes_default
5587 #include <$ac_header>
5588 _ACEOF
5589 rm -f conftest.$ac_objext
5590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5591 (eval $ac_compile) 2>conftest.er1
5592 ac_status=$?
5593 grep -v '^ *+' conftest.er1 >conftest.err
5594 rm -f conftest.er1
5595 cat conftest.err >&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); } &&
5598 { ac_try='test -z "$ac_c_werror_flag"
5599 || test ! -s conftest.err'
5600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5601 (eval $ac_try) 2>&5
5602 ac_status=$?
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); }; } &&
5605 { ac_try='test -s conftest.$ac_objext'
5606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5607 (eval $ac_try) 2>&5
5608 ac_status=$?
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); }; }; then
5611 eval "$as_ac_Header=yes"
5612 else
5613 echo "$as_me: failed program was:" >&5
5614 sed 's/^/| /' conftest.$ac_ext >&5
5616 eval "$as_ac_Header=no"
5618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5623 cat >>confdefs.h <<_ACEOF
5624 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5625 _ACEOF
5629 done
5633 # This can be used to rebuild libtool when needed
5634 LIBTOOL_DEPS="$ltmain"
5636 # Always use our own libtool.
5637 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5663 test -z "$LN_S" && LN_S="ln -s"
5678 if test -n "${ZSH_VERSION+set}" ; then
5679 setopt NO_GLOB_SUBST
5682 echo "$as_me:$LINENO: checking for objdir" >&5
5683 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5684 if test "${lt_cv_objdir+set}" = set; then
5685 echo $ECHO_N "(cached) $ECHO_C" >&6
5686 else
5687 rm -f .libs 2>/dev/null
5688 mkdir .libs 2>/dev/null
5689 if test -d .libs; then
5690 lt_cv_objdir=.libs
5691 else
5692 # MS-DOS does not allow filenames that begin with a dot.
5693 lt_cv_objdir=_libs
5695 rmdir .libs 2>/dev/null
5697 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5698 echo "${ECHO_T}$lt_cv_objdir" >&6
5699 objdir=$lt_cv_objdir
5705 cat >>confdefs.h <<_ACEOF
5706 #define LT_OBJDIR "$lt_cv_objdir/"
5707 _ACEOF
5725 case $host_os in
5726 aix3*)
5727 # AIX sometimes has problems with the GCC collect2 program. For some
5728 # reason, if we set the COLLECT_NAMES environment variable, the problems
5729 # vanish in a puff of smoke.
5730 if test "X${COLLECT_NAMES+set}" != Xset; then
5731 COLLECT_NAMES=
5732 export COLLECT_NAMES
5735 esac
5737 # Sed substitution that helps us do robust quoting. It backslashifies
5738 # metacharacters that are still active within double-quoted strings.
5739 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5741 # Same as above, but do not quote variable references.
5742 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5744 # Sed substitution to delay expansion of an escaped shell variable in a
5745 # double_quote_subst'ed string.
5746 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5748 # Sed substitution to delay expansion of an escaped single quote.
5749 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5751 # Sed substitution to avoid accidental globbing in evaled expressions
5752 no_glob_subst='s/\*/\\\*/g'
5754 # Global variables:
5755 ofile=libtool
5756 can_build_shared=yes
5758 # All known linkers require a `.a' archive for static linking (except MSVC,
5759 # which needs '.lib').
5760 libext=a
5762 with_gnu_ld="$lt_cv_prog_gnu_ld"
5764 old_CC="$CC"
5765 old_CFLAGS="$CFLAGS"
5767 # Set sane defaults for various variables
5768 test -z "$CC" && CC=cc
5769 test -z "$LTCC" && LTCC=$CC
5770 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5771 test -z "$LD" && LD=ld
5772 test -z "$ac_objext" && ac_objext=o
5774 for cc_temp in $compiler""; do
5775 case $cc_temp in
5776 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5777 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5778 \-*) ;;
5779 *) break;;
5780 esac
5781 done
5782 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5785 # Only perform the check for file, if the check method requires it
5786 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5787 case $deplibs_check_method in
5788 file_magic*)
5789 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5790 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5791 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5792 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5793 echo $ECHO_N "(cached) $ECHO_C" >&6
5794 else
5795 case $MAGIC_CMD in
5796 [\\/*] | ?:[\\/]*)
5797 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5800 lt_save_MAGIC_CMD="$MAGIC_CMD"
5801 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5802 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5803 for ac_dir in $ac_dummy; do
5804 IFS="$lt_save_ifs"
5805 test -z "$ac_dir" && ac_dir=.
5806 if test -f $ac_dir/${ac_tool_prefix}file; then
5807 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5808 if test -n "$file_magic_test_file"; then
5809 case $deplibs_check_method in
5810 "file_magic "*)
5811 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5812 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5813 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5814 $EGREP "$file_magic_regex" > /dev/null; then
5816 else
5817 cat <<_LT_EOF 1>&2
5819 *** Warning: the command libtool uses to detect shared libraries,
5820 *** $file_magic_cmd, produces output that libtool cannot recognize.
5821 *** The result is that libtool may fail to recognize shared libraries
5822 *** as such. This will affect the creation of libtool libraries that
5823 *** depend on shared libraries, but programs linked with such libtool
5824 *** libraries will work regardless of this problem. Nevertheless, you
5825 *** may want to report the problem to your system manager and/or to
5826 *** bug-libtool@gnu.org
5828 _LT_EOF
5829 fi ;;
5830 esac
5832 break
5834 done
5835 IFS="$lt_save_ifs"
5836 MAGIC_CMD="$lt_save_MAGIC_CMD"
5838 esac
5841 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5842 if test -n "$MAGIC_CMD"; then
5843 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5844 echo "${ECHO_T}$MAGIC_CMD" >&6
5845 else
5846 echo "$as_me:$LINENO: result: no" >&5
5847 echo "${ECHO_T}no" >&6
5854 if test -z "$lt_cv_path_MAGIC_CMD"; then
5855 if test -n "$ac_tool_prefix"; then
5856 echo "$as_me:$LINENO: checking for file" >&5
5857 echo $ECHO_N "checking for file... $ECHO_C" >&6
5858 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5859 echo $ECHO_N "(cached) $ECHO_C" >&6
5860 else
5861 case $MAGIC_CMD in
5862 [\\/*] | ?:[\\/]*)
5863 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5866 lt_save_MAGIC_CMD="$MAGIC_CMD"
5867 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5868 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5869 for ac_dir in $ac_dummy; do
5870 IFS="$lt_save_ifs"
5871 test -z "$ac_dir" && ac_dir=.
5872 if test -f $ac_dir/file; then
5873 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5874 if test -n "$file_magic_test_file"; then
5875 case $deplibs_check_method in
5876 "file_magic "*)
5877 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5878 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5879 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5880 $EGREP "$file_magic_regex" > /dev/null; then
5882 else
5883 cat <<_LT_EOF 1>&2
5885 *** Warning: the command libtool uses to detect shared libraries,
5886 *** $file_magic_cmd, produces output that libtool cannot recognize.
5887 *** The result is that libtool may fail to recognize shared libraries
5888 *** as such. This will affect the creation of libtool libraries that
5889 *** depend on shared libraries, but programs linked with such libtool
5890 *** libraries will work regardless of this problem. Nevertheless, you
5891 *** may want to report the problem to your system manager and/or to
5892 *** bug-libtool@gnu.org
5894 _LT_EOF
5895 fi ;;
5896 esac
5898 break
5900 done
5901 IFS="$lt_save_ifs"
5902 MAGIC_CMD="$lt_save_MAGIC_CMD"
5904 esac
5907 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5908 if test -n "$MAGIC_CMD"; then
5909 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5910 echo "${ECHO_T}$MAGIC_CMD" >&6
5911 else
5912 echo "$as_me:$LINENO: result: no" >&5
5913 echo "${ECHO_T}no" >&6
5917 else
5918 MAGIC_CMD=:
5924 esac
5926 # Use C for the default configuration in the libtool script
5928 lt_save_CC="$CC"
5929 ac_ext=c
5930 ac_cpp='$CPP $CPPFLAGS'
5931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5936 # Source file extension for C test sources.
5937 ac_ext=c
5939 # Object file extension for compiled C test sources.
5940 objext=o
5941 objext=$objext
5943 # Code to be used in simple compile tests
5944 lt_simple_compile_test_code="int some_variable = 0;"
5946 # Code to be used in simple link tests
5947 lt_simple_link_test_code='int main(){return(0);}'
5955 # If no C compiler was specified, use CC.
5956 LTCC=${LTCC-"$CC"}
5958 # If no C compiler flags were specified, use CFLAGS.
5959 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5961 # Allow CC to be a program name with arguments.
5962 compiler=$CC
5964 # Save the default compiler, since it gets overwritten when the other
5965 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5966 compiler_DEFAULT=$CC
5968 # save warnings/boilerplate of simple test code
5969 ac_outfile=conftest.$ac_objext
5970 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
5971 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5972 _lt_compiler_boilerplate=`cat conftest.err`
5973 $RM conftest*
5975 ac_outfile=conftest.$ac_objext
5976 echo "$lt_simple_link_test_code" >conftest.$ac_ext
5977 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5978 _lt_linker_boilerplate=`cat conftest.err`
5979 $RM conftest*
5982 ## CAVEAT EMPTOR:
5983 ## There is no encapsulation within the following macros, do not change
5984 ## the running order or otherwise move them around unless you know exactly
5985 ## what you are doing...
5986 if test -n "$compiler"; then
5988 lt_prog_compiler_no_builtin_flag=
5990 if test "$GCC" = yes; then
5991 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5993 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5994 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5995 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5996 echo $ECHO_N "(cached) $ECHO_C" >&6
5997 else
5998 lt_cv_prog_compiler_rtti_exceptions=no
5999 ac_outfile=conftest.$ac_objext
6000 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6001 lt_compiler_flag="-fno-rtti -fno-exceptions"
6002 # Insert the option either (1) after the last *FLAGS variable, or
6003 # (2) before a word containing "conftest.", or (3) at the end.
6004 # Note that $ac_compile itself does not contain backslashes and begins
6005 # with a dollar sign (not a hyphen), so the echo should work correctly.
6006 # The option is referenced via a variable to avoid confusing sed.
6007 lt_compile=`echo "$ac_compile" | $SED \
6008 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6009 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6010 -e 's:$: $lt_compiler_flag:'`
6011 (eval echo "\"\$as_me:6011: $lt_compile\"" >&5)
6012 (eval "$lt_compile" 2>conftest.err)
6013 ac_status=$?
6014 cat conftest.err >&5
6015 echo "$as_me:6015: \$? = $ac_status" >&5
6016 if (exit $ac_status) && test -s "$ac_outfile"; then
6017 # The compiler can only warn and ignore the option if not recognized
6018 # So say no if there are warnings other than the usual output.
6019 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6020 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6021 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6022 lt_cv_prog_compiler_rtti_exceptions=yes
6025 $RM conftest*
6028 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6029 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6031 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6032 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6033 else
6044 lt_prog_compiler_wl=
6045 lt_prog_compiler_pic=
6046 lt_prog_compiler_static=
6048 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6049 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6051 if test "$GCC" = yes; then
6052 lt_prog_compiler_wl='-Wl,'
6053 lt_prog_compiler_static='-static'
6055 case $host_os in
6056 aix*)
6057 # All AIX code is PIC.
6058 if test "$host_cpu" = ia64; then
6059 # AIX 5 now supports IA64 processor
6060 lt_prog_compiler_static='-Bstatic'
6064 amigaos*)
6065 if test "$host_cpu" = m68k; then
6066 # FIXME: we need at least 68020 code to build shared libraries, but
6067 # adding the `-m68020' flag to GCC prevents building anything better,
6068 # like `-m68040'.
6069 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6073 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6074 # PIC is the default for these OSes.
6077 mingw* | cygwin* | pw32* | os2*)
6078 # This hack is so that the source file can tell whether it is being
6079 # built for inclusion in a dll (and should export symbols for example).
6080 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6081 # (--disable-auto-import) libraries
6082 lt_prog_compiler_pic='-DDLL_EXPORT'
6085 darwin* | rhapsody*)
6086 # PIC is the default on this platform
6087 # Common symbols not allowed in MH_DYLIB files
6088 lt_prog_compiler_pic='-fno-common'
6091 hpux*)
6092 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6093 # not for PA HP-UX.
6094 case $host_cpu in
6095 hppa*64*|ia64*)
6096 # +Z the default
6099 lt_prog_compiler_pic='-fPIC'
6101 esac
6104 interix[3-9]*)
6105 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6106 # Instead, we relocate shared libraries at runtime.
6109 msdosdjgpp*)
6110 # Just because we use GCC doesn't mean we suddenly get shared libraries
6111 # on systems that don't support them.
6112 lt_prog_compiler_can_build_shared=no
6113 enable_shared=no
6116 *nto* | *qnx*)
6117 # QNX uses GNU C++, but need to define -shared option too, otherwise
6118 # it will coredump.
6119 lt_prog_compiler_pic='-fPIC -shared'
6122 sysv4*MP*)
6123 if test -d /usr/nec; then
6124 lt_prog_compiler_pic=-Kconform_pic
6129 lt_prog_compiler_pic='-fPIC'
6131 esac
6132 else
6133 # PORTME Check for flag to pass linker flags through the system compiler.
6134 case $host_os in
6135 aix*)
6136 lt_prog_compiler_wl='-Wl,'
6137 if test "$host_cpu" = ia64; then
6138 # AIX 5 now supports IA64 processor
6139 lt_prog_compiler_static='-Bstatic'
6140 else
6141 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6144 darwin*)
6145 # PIC is the default on this platform
6146 # Common symbols not allowed in MH_DYLIB files
6147 case $cc_basename in
6148 xlc*)
6149 lt_prog_compiler_pic='-qnocommon'
6150 lt_prog_compiler_wl='-Wl,'
6152 esac
6155 mingw* | cygwin* | pw32* | os2*)
6156 # This hack is so that the source file can tell whether it is being
6157 # built for inclusion in a dll (and should export symbols for example).
6158 lt_prog_compiler_pic='-DDLL_EXPORT'
6161 hpux9* | hpux10* | hpux11*)
6162 lt_prog_compiler_wl='-Wl,'
6163 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6164 # not for PA HP-UX.
6165 case $host_cpu in
6166 hppa*64*|ia64*)
6167 # +Z the default
6170 lt_prog_compiler_pic='+Z'
6172 esac
6173 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6174 lt_prog_compiler_static='${wl}-a ${wl}archive'
6177 irix5* | irix6* | nonstopux*)
6178 lt_prog_compiler_wl='-Wl,'
6179 # PIC (with -KPIC) is the default.
6180 lt_prog_compiler_static='-non_shared'
6183 linux* | k*bsd*-gnu)
6184 case $cc_basename in
6185 icc* | ecc*)
6186 lt_prog_compiler_wl='-Wl,'
6187 lt_prog_compiler_pic='-KPIC'
6188 lt_prog_compiler_static='-static'
6190 pgcc* | pgf77* | pgf90* | pgf95*)
6191 # Portland Group compilers (*not* the Pentium gcc compiler,
6192 # which looks to be a dead project)
6193 lt_prog_compiler_wl='-Wl,'
6194 lt_prog_compiler_pic='-fpic'
6195 lt_prog_compiler_static='-Bstatic'
6197 ccc*)
6198 lt_prog_compiler_wl='-Wl,'
6199 # All Alpha code is PIC.
6200 lt_prog_compiler_static='-non_shared'
6203 case `$CC -V 2>&1 | sed 5q` in
6204 *Sun\ C*)
6205 # Sun C 5.9
6206 lt_prog_compiler_pic='-KPIC'
6207 lt_prog_compiler_static='-Bstatic'
6208 lt_prog_compiler_wl='-Wl,'
6210 *Sun\ F*)
6211 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6212 lt_prog_compiler_pic='-KPIC'
6213 lt_prog_compiler_static='-Bstatic'
6214 lt_prog_compiler_wl=''
6216 esac
6218 esac
6221 newsos6)
6222 lt_prog_compiler_pic='-KPIC'
6223 lt_prog_compiler_static='-Bstatic'
6226 *nto* | *qnx*)
6227 # QNX uses GNU C++, but need to define -shared option too, otherwise
6228 # it will coredump.
6229 lt_prog_compiler_pic='-fPIC -shared'
6232 osf3* | osf4* | osf5*)
6233 lt_prog_compiler_wl='-Wl,'
6234 # All OSF/1 code is PIC.
6235 lt_prog_compiler_static='-non_shared'
6238 rdos*)
6239 lt_prog_compiler_static='-non_shared'
6242 solaris*)
6243 lt_prog_compiler_pic='-KPIC'
6244 lt_prog_compiler_static='-Bstatic'
6245 case $cc_basename in
6246 f77* | f90* | f95*)
6247 lt_prog_compiler_wl='-Qoption ld ';;
6249 lt_prog_compiler_wl='-Wl,';;
6250 esac
6253 sunos4*)
6254 lt_prog_compiler_wl='-Qoption ld '
6255 lt_prog_compiler_pic='-PIC'
6256 lt_prog_compiler_static='-Bstatic'
6259 sysv4 | sysv4.2uw2* | sysv4.3*)
6260 lt_prog_compiler_wl='-Wl,'
6261 lt_prog_compiler_pic='-KPIC'
6262 lt_prog_compiler_static='-Bstatic'
6265 sysv4*MP*)
6266 if test -d /usr/nec ;then
6267 lt_prog_compiler_pic='-Kconform_pic'
6268 lt_prog_compiler_static='-Bstatic'
6272 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6273 lt_prog_compiler_wl='-Wl,'
6274 lt_prog_compiler_pic='-KPIC'
6275 lt_prog_compiler_static='-Bstatic'
6278 unicos*)
6279 lt_prog_compiler_wl='-Wl,'
6280 lt_prog_compiler_can_build_shared=no
6283 uts4*)
6284 lt_prog_compiler_pic='-pic'
6285 lt_prog_compiler_static='-Bstatic'
6289 lt_prog_compiler_can_build_shared=no
6291 esac
6294 case $host_os in
6295 # For platforms which do not support PIC, -DPIC is meaningless:
6296 *djgpp*)
6297 lt_prog_compiler_pic=
6300 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6302 esac
6303 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6304 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6312 # Check to make sure the PIC flag actually works.
6314 if test -n "$lt_prog_compiler_pic"; then
6315 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6316 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6317 if test "${lt_prog_compiler_pic_works+set}" = set; then
6318 echo $ECHO_N "(cached) $ECHO_C" >&6
6319 else
6320 lt_prog_compiler_pic_works=no
6321 ac_outfile=conftest.$ac_objext
6322 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6323 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6324 # Insert the option either (1) after the last *FLAGS variable, or
6325 # (2) before a word containing "conftest.", or (3) at the end.
6326 # Note that $ac_compile itself does not contain backslashes and begins
6327 # with a dollar sign (not a hyphen), so the echo should work correctly.
6328 # The option is referenced via a variable to avoid confusing sed.
6329 lt_compile=`echo "$ac_compile" | $SED \
6330 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6331 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6332 -e 's:$: $lt_compiler_flag:'`
6333 (eval echo "\"\$as_me:6333: $lt_compile\"" >&5)
6334 (eval "$lt_compile" 2>conftest.err)
6335 ac_status=$?
6336 cat conftest.err >&5
6337 echo "$as_me:6337: \$? = $ac_status" >&5
6338 if (exit $ac_status) && test -s "$ac_outfile"; then
6339 # The compiler can only warn and ignore the option if not recognized
6340 # So say no if there are warnings other than the usual output.
6341 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6342 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6343 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6344 lt_prog_compiler_pic_works=yes
6347 $RM conftest*
6350 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6351 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6353 if test x"$lt_prog_compiler_pic_works" = xyes; then
6354 case $lt_prog_compiler_pic in
6355 "" | " "*) ;;
6356 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6357 esac
6358 else
6359 lt_prog_compiler_pic=
6360 lt_prog_compiler_can_build_shared=no
6371 # Check to make sure the static flag actually works.
6373 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6374 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6375 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6376 if test "${lt_prog_compiler_static_works+set}" = set; then
6377 echo $ECHO_N "(cached) $ECHO_C" >&6
6378 else
6379 lt_prog_compiler_static_works=no
6380 save_LDFLAGS="$LDFLAGS"
6381 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6382 echo "$lt_simple_link_test_code" > conftest.$ac_ext
6383 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6384 # The linker can only warn and ignore the option if not recognized
6385 # So say no if there are warnings
6386 if test -s conftest.err; then
6387 # Append any errors to the config.log.
6388 cat conftest.err 1>&5
6389 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6390 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6391 if diff conftest.exp conftest.er2 >/dev/null; then
6392 lt_prog_compiler_static_works=yes
6394 else
6395 lt_prog_compiler_static_works=yes
6398 $RM conftest*
6399 LDFLAGS="$save_LDFLAGS"
6402 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6403 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6405 if test x"$lt_prog_compiler_static_works" = xyes; then
6407 else
6408 lt_prog_compiler_static=
6417 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6418 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6419 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6420 echo $ECHO_N "(cached) $ECHO_C" >&6
6421 else
6422 lt_cv_prog_compiler_c_o=no
6423 $RM -r conftest 2>/dev/null
6424 mkdir conftest
6425 cd conftest
6426 mkdir out
6427 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6429 lt_compiler_flag="-o out/conftest2.$ac_objext"
6430 # Insert the option either (1) after the last *FLAGS variable, or
6431 # (2) before a word containing "conftest.", or (3) at the end.
6432 # Note that $ac_compile itself does not contain backslashes and begins
6433 # with a dollar sign (not a hyphen), so the echo should work correctly.
6434 lt_compile=`echo "$ac_compile" | $SED \
6435 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6436 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6437 -e 's:$: $lt_compiler_flag:'`
6438 (eval echo "\"\$as_me:6438: $lt_compile\"" >&5)
6439 (eval "$lt_compile" 2>out/conftest.err)
6440 ac_status=$?
6441 cat out/conftest.err >&5
6442 echo "$as_me:6442: \$? = $ac_status" >&5
6443 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6444 then
6445 # The compiler can only warn and ignore the option if not recognized
6446 # So say no if there are warnings
6447 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6448 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6449 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6450 lt_cv_prog_compiler_c_o=yes
6453 chmod u+w . 2>&5
6454 $RM conftest*
6455 # SGI C++ compiler will create directory out/ii_files/ for
6456 # template instantiation
6457 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6458 $RM out/* && rmdir out
6459 cd ..
6460 $RM -r conftest
6461 $RM conftest*
6464 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6465 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6472 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6473 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6474 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6475 echo $ECHO_N "(cached) $ECHO_C" >&6
6476 else
6477 lt_cv_prog_compiler_c_o=no
6478 $RM -r conftest 2>/dev/null
6479 mkdir conftest
6480 cd conftest
6481 mkdir out
6482 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6484 lt_compiler_flag="-o out/conftest2.$ac_objext"
6485 # Insert the option either (1) after the last *FLAGS variable, or
6486 # (2) before a word containing "conftest.", or (3) at the end.
6487 # Note that $ac_compile itself does not contain backslashes and begins
6488 # with a dollar sign (not a hyphen), so the echo should work correctly.
6489 lt_compile=`echo "$ac_compile" | $SED \
6490 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6491 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6492 -e 's:$: $lt_compiler_flag:'`
6493 (eval echo "\"\$as_me:6493: $lt_compile\"" >&5)
6494 (eval "$lt_compile" 2>out/conftest.err)
6495 ac_status=$?
6496 cat out/conftest.err >&5
6497 echo "$as_me:6497: \$? = $ac_status" >&5
6498 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6499 then
6500 # The compiler can only warn and ignore the option if not recognized
6501 # So say no if there are warnings
6502 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6503 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6504 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6505 lt_cv_prog_compiler_c_o=yes
6508 chmod u+w . 2>&5
6509 $RM conftest*
6510 # SGI C++ compiler will create directory out/ii_files/ for
6511 # template instantiation
6512 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6513 $RM out/* && rmdir out
6514 cd ..
6515 $RM -r conftest
6516 $RM conftest*
6519 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6520 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6525 hard_links="nottested"
6526 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6527 # do not overwrite the value of need_locks provided by the user
6528 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6529 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6530 hard_links=yes
6531 $RM conftest*
6532 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6533 touch conftest.a
6534 ln conftest.a conftest.b 2>&5 || hard_links=no
6535 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6536 echo "$as_me:$LINENO: result: $hard_links" >&5
6537 echo "${ECHO_T}$hard_links" >&6
6538 if test "$hard_links" = no; then
6539 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6540 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6541 need_locks=warn
6543 else
6544 need_locks=no
6552 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6553 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6555 runpath_var=
6556 allow_undefined_flag=
6557 always_export_symbols=no
6558 archive_cmds=
6559 archive_expsym_cmds=
6560 compiler_needs_object=no
6561 enable_shared_with_static_runtimes=no
6562 export_dynamic_flag_spec=
6563 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6564 hardcode_automatic=no
6565 hardcode_direct=no
6566 hardcode_direct_absolute=no
6567 hardcode_libdir_flag_spec=
6568 hardcode_libdir_flag_spec_ld=
6569 hardcode_libdir_separator=
6570 hardcode_minus_L=no
6571 hardcode_shlibpath_var=unsupported
6572 inherit_rpath=no
6573 link_all_deplibs=unknown
6574 module_cmds=
6575 module_expsym_cmds=
6576 old_archive_from_new_cmds=
6577 old_archive_from_expsyms_cmds=
6578 thread_safe_flag_spec=
6579 whole_archive_flag_spec=
6580 # include_expsyms should be a list of space-separated symbols to be *always*
6581 # included in the symbol list
6582 include_expsyms=
6583 # exclude_expsyms can be an extended regexp of symbols to exclude
6584 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6585 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6586 # as well as any symbol that contains `d'.
6587 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6588 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6589 # platforms (ab)use it in PIC code, but their linkers get confused if
6590 # the symbol is explicitly referenced. Since portable code cannot
6591 # rely on this symbol name, it's probably fine to never include it in
6592 # preloaded symbol tables.
6593 extract_expsyms_cmds=
6595 case $host_os in
6596 cygwin* | mingw* | pw32*)
6597 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6598 # When not using gcc, we currently assume that we are using
6599 # Microsoft Visual C++.
6600 if test "$GCC" != yes; then
6601 with_gnu_ld=no
6604 interix*)
6605 # we just hope/assume this is gcc and not c89 (= MSVC++)
6606 with_gnu_ld=yes
6608 openbsd*)
6609 with_gnu_ld=no
6611 esac
6613 ld_shlibs=yes
6614 if test "$with_gnu_ld" = yes; then
6615 # If archive_cmds runs LD, not CC, wlarc should be empty
6616 wlarc='${wl}'
6618 # Set some defaults for GNU ld with shared library support. These
6619 # are reset later if shared libraries are not supported. Putting them
6620 # here allows them to be overridden if necessary.
6621 runpath_var=LD_RUN_PATH
6622 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6623 export_dynamic_flag_spec='${wl}--export-dynamic'
6624 # ancient GNU ld didn't support --whole-archive et. al.
6625 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
6626 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6627 else
6628 whole_archive_flag_spec=
6630 supports_anon_versioning=no
6631 case `$LD -v 2>&1` in
6632 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6633 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6634 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6635 *\ 2.11.*) ;; # other 2.11 versions
6636 *) supports_anon_versioning=yes ;;
6637 esac
6639 # See if GNU ld supports shared libraries.
6640 case $host_os in
6641 aix[3-9]*)
6642 # On AIX/PPC, the GNU linker is very broken
6643 if test "$host_cpu" != ia64; then
6644 ld_shlibs=no
6645 cat <<_LT_EOF 1>&2
6647 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6648 *** to be unable to reliably create shared libraries on AIX.
6649 *** Therefore, libtool is disabling shared libraries support. If you
6650 *** really care for shared libraries, you may want to modify your PATH
6651 *** so that a non-GNU linker is found, and then restart.
6653 _LT_EOF
6657 amigaos*)
6658 if test "$host_cpu" = m68k; then
6659 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)'
6660 hardcode_libdir_flag_spec='-L$libdir'
6661 hardcode_minus_L=yes
6664 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6665 # that the semantics of dynamic libraries on AmigaOS, at least up
6666 # to version 4, is to share data among multiple programs linked
6667 # with the same dynamic library. Since this doesn't match the
6668 # behavior of shared libraries on other platforms, we can't use
6669 # them.
6670 ld_shlibs=no
6673 beos*)
6674 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6675 allow_undefined_flag=unsupported
6676 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6677 # support --undefined. This deserves some investigation. FIXME
6678 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6679 else
6680 ld_shlibs=no
6684 cygwin* | mingw* | pw32*)
6685 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6686 # as there is no search path for DLLs.
6687 hardcode_libdir_flag_spec='-L$libdir'
6688 allow_undefined_flag=unsupported
6689 always_export_symbols=no
6690 enable_shared_with_static_runtimes=yes
6691 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
6693 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6694 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6695 # If the export-symbols file already is a .def file (1st line
6696 # is EXPORTS), use it as is; otherwise, prepend...
6697 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6698 cp $export_symbols $output_objdir/$soname.def;
6699 else
6700 echo EXPORTS > $output_objdir/$soname.def;
6701 cat $export_symbols >> $output_objdir/$soname.def;
6703 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6704 else
6705 ld_shlibs=no
6709 interix[3-9]*)
6710 hardcode_direct=no
6711 hardcode_shlibpath_var=no
6712 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6713 export_dynamic_flag_spec='${wl}-E'
6714 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6715 # Instead, shared libraries are loaded at an image base (0x10000000 by
6716 # default) and relocated if they conflict, which is a slow very memory
6717 # consuming and fragmenting process. To avoid this, we pick a random,
6718 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6719 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6720 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6721 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'
6724 gnu* | linux* | tpf* | k*bsd*-gnu)
6725 tmp_diet=no
6726 if test "$host_os" = linux-dietlibc; then
6727 case $cc_basename in
6728 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
6729 esac
6731 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
6732 && test "$tmp_diet" = no
6733 then
6734 tmp_addflag=
6735 case $cc_basename,$host_cpu in
6736 pgcc*) # Portland Group C compiler
6737 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'
6738 tmp_addflag=' $pic_flag'
6740 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6741 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'
6742 tmp_addflag=' $pic_flag -Mnomain' ;;
6743 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6744 tmp_addflag=' -i_dynamic' ;;
6745 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6746 tmp_addflag=' -i_dynamic -nofor_main' ;;
6747 ifc* | ifort*) # Intel Fortran compiler
6748 tmp_addflag=' -nofor_main' ;;
6749 esac
6750 case `$CC -V 2>&1 | sed 5q` in
6751 *Sun\ C*) # Sun C 5.9
6752 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'
6753 compiler_needs_object=yes
6754 tmp_sharedflag='-G' ;;
6755 *Sun\ F*) # Sun Fortran 8.3
6756 tmp_sharedflag='-G' ;;
6758 tmp_sharedflag='-shared' ;;
6759 esac
6760 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6762 if test "x$supports_anon_versioning" = xyes; then
6763 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
6764 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6765 echo "local: *; };" >> $output_objdir/$libname.ver~
6766 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6768 else
6769 ld_shlibs=no
6773 netbsd*)
6774 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6775 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6776 wlarc=
6777 else
6778 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6779 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6783 solaris*)
6784 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
6785 ld_shlibs=no
6786 cat <<_LT_EOF 1>&2
6788 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6789 *** create shared libraries on Solaris systems. Therefore, libtool
6790 *** is disabling shared libraries support. We urge you to upgrade GNU
6791 *** binutils to release 2.9.1 or newer. Another option is to modify
6792 *** your PATH or compiler configuration so that the native linker is
6793 *** used, and then restart.
6795 _LT_EOF
6796 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6797 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6798 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6799 else
6800 ld_shlibs=no
6804 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6805 case `$LD -v 2>&1` in
6806 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6807 ld_shlibs=no
6808 cat <<_LT_EOF 1>&2
6810 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6811 *** reliably create shared libraries on SCO systems. Therefore, libtool
6812 *** is disabling shared libraries support. We urge you to upgrade GNU
6813 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6814 *** your PATH or compiler configuration so that the native linker is
6815 *** used, and then restart.
6817 _LT_EOF
6820 # For security reasons, it is highly recommended that you always
6821 # use absolute paths for naming shared libraries, and exclude the
6822 # DT_RUNPATH tag from executables and libraries. But doing so
6823 # requires that you compile everything twice, which is a pain.
6824 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6825 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6826 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6827 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6828 else
6829 ld_shlibs=no
6832 esac
6835 sunos4*)
6836 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6837 wlarc=
6838 hardcode_direct=yes
6839 hardcode_shlibpath_var=no
6843 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6844 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6845 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6846 else
6847 ld_shlibs=no
6850 esac
6852 if test "$ld_shlibs" = no; then
6853 runpath_var=
6854 hardcode_libdir_flag_spec=
6855 export_dynamic_flag_spec=
6856 whole_archive_flag_spec=
6858 else
6859 # PORTME fill in a description of your system's linker (not GNU ld)
6860 case $host_os in
6861 aix3*)
6862 allow_undefined_flag=unsupported
6863 always_export_symbols=yes
6864 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'
6865 # Note: this linker hardcodes the directories in LIBPATH if there
6866 # are no directories specified by -L.
6867 hardcode_minus_L=yes
6868 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6869 # Neither direct hardcoding nor static linking is supported with a
6870 # broken collect2.
6871 hardcode_direct=unsupported
6875 aix[4-9]*)
6876 if test "$host_cpu" = ia64; then
6877 # On IA64, the linker does run time linking by default, so we don't
6878 # have to do anything special.
6879 aix_use_runtimelinking=no
6880 exp_sym_flag='-Bexport'
6881 no_entry_flag=""
6882 else
6883 # If we're using GNU nm, then we don't want the "-C" option.
6884 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6885 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
6886 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'
6887 else
6888 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'
6890 aix_use_runtimelinking=no
6892 # Test if we are trying to use run time linking or normal
6893 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6894 # need to do runtime linking.
6895 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
6896 for ld_flag in $LDFLAGS; do
6897 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6898 aix_use_runtimelinking=yes
6899 break
6901 done
6903 esac
6905 exp_sym_flag='-bexport'
6906 no_entry_flag='-bnoentry'
6909 # When large executables or shared objects are built, AIX ld can
6910 # have problems creating the table of contents. If linking a library
6911 # or program results in "error TOC overflow" add -mminimal-toc to
6912 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6913 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6915 archive_cmds=''
6916 hardcode_direct=yes
6917 hardcode_direct_absolute=yes
6918 hardcode_libdir_separator=':'
6919 link_all_deplibs=yes
6920 file_list_spec='${wl}-f,'
6922 if test "$GCC" = yes; then
6923 case $host_os in aix4.[012]|aix4.[012].*)
6924 # We only want to do this on AIX 4.2 and lower, the check
6925 # below for broken collect2 doesn't work under 4.3+
6926 collect2name=`${CC} -print-prog-name=collect2`
6927 if test -f "$collect2name" &&
6928 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6929 then
6930 # We have reworked collect2
6932 else
6933 # We have old collect2
6934 hardcode_direct=unsupported
6935 # It fails to find uninstalled libraries when the uninstalled
6936 # path is not listed in the libpath. Setting hardcode_minus_L
6937 # to unsupported forces relinking
6938 hardcode_minus_L=yes
6939 hardcode_libdir_flag_spec='-L$libdir'
6940 hardcode_libdir_separator=
6943 esac
6944 shared_flag='-shared'
6945 if test "$aix_use_runtimelinking" = yes; then
6946 shared_flag="$shared_flag "'${wl}-G'
6948 else
6949 # not using gcc
6950 if test "$host_cpu" = ia64; then
6951 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6952 # chokes on -Wl,-G. The following line is correct:
6953 shared_flag='-G'
6954 else
6955 if test "$aix_use_runtimelinking" = yes; then
6956 shared_flag='${wl}-G'
6957 else
6958 shared_flag='${wl}-bM:SRE'
6963 # It seems that -bexpall does not export symbols beginning with
6964 # underscore (_), so it is better to generate a list of symbols to export.
6965 always_export_symbols=yes
6966 if test "$aix_use_runtimelinking" = yes; then
6967 # Warning - without using the other runtime loading flags (-brtl),
6968 # -berok will link without error, but may produce a broken library.
6969 allow_undefined_flag='-berok'
6970 # Determine the default libpath from the value encoded in an
6971 # empty executable.
6972 cat >conftest.$ac_ext <<_ACEOF
6973 /* confdefs.h. */
6974 _ACEOF
6975 cat confdefs.h >>conftest.$ac_ext
6976 cat >>conftest.$ac_ext <<_ACEOF
6977 /* end confdefs.h. */
6980 main ()
6984 return 0;
6986 _ACEOF
6987 rm -f conftest.$ac_objext conftest$ac_exeext
6988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6989 (eval $ac_link) 2>conftest.er1
6990 ac_status=$?
6991 grep -v '^ *+' conftest.er1 >conftest.err
6992 rm -f conftest.er1
6993 cat conftest.err >&5
6994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995 (exit $ac_status); } &&
6996 { ac_try='test -z "$ac_c_werror_flag"
6997 || test ! -s conftest.err'
6998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6999 (eval $ac_try) 2>&5
7000 ac_status=$?
7001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 (exit $ac_status); }; } &&
7003 { ac_try='test -s conftest$ac_exeext'
7004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7005 (eval $ac_try) 2>&5
7006 ac_status=$?
7007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7008 (exit $ac_status); }; }; then
7010 lt_aix_libpath_sed='
7011 /Import File Strings/,/^$/ {
7012 /^0/ {
7013 s/^0 *\(.*\)$/\1/
7017 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7018 # Check for a 64-bit object if we didn't find anything.
7019 if test -z "$aix_libpath"; then
7020 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7022 else
7023 echo "$as_me: failed program was:" >&5
7024 sed 's/^/| /' conftest.$ac_ext >&5
7027 rm -f conftest.err conftest.$ac_objext \
7028 conftest$ac_exeext conftest.$ac_ext
7029 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7031 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7032 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"
7033 else
7034 if test "$host_cpu" = ia64; then
7035 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7036 allow_undefined_flag="-z nodefs"
7037 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"
7038 else
7039 # Determine the default libpath from the value encoded in an
7040 # empty executable.
7041 cat >conftest.$ac_ext <<_ACEOF
7042 /* confdefs.h. */
7043 _ACEOF
7044 cat confdefs.h >>conftest.$ac_ext
7045 cat >>conftest.$ac_ext <<_ACEOF
7046 /* end confdefs.h. */
7049 main ()
7053 return 0;
7055 _ACEOF
7056 rm -f conftest.$ac_objext conftest$ac_exeext
7057 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7058 (eval $ac_link) 2>conftest.er1
7059 ac_status=$?
7060 grep -v '^ *+' conftest.er1 >conftest.err
7061 rm -f conftest.er1
7062 cat conftest.err >&5
7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); } &&
7065 { ac_try='test -z "$ac_c_werror_flag"
7066 || test ! -s conftest.err'
7067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7068 (eval $ac_try) 2>&5
7069 ac_status=$?
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); }; } &&
7072 { ac_try='test -s conftest$ac_exeext'
7073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7074 (eval $ac_try) 2>&5
7075 ac_status=$?
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); }; }; then
7079 lt_aix_libpath_sed='
7080 /Import File Strings/,/^$/ {
7081 /^0/ {
7082 s/^0 *\(.*\)$/\1/
7086 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7087 # Check for a 64-bit object if we didn't find anything.
7088 if test -z "$aix_libpath"; then
7089 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7091 else
7092 echo "$as_me: failed program was:" >&5
7093 sed 's/^/| /' conftest.$ac_ext >&5
7096 rm -f conftest.err conftest.$ac_objext \
7097 conftest$ac_exeext conftest.$ac_ext
7098 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7100 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7101 # Warning - without using the other run time loading flags,
7102 # -berok will link without error, but may produce a broken library.
7103 no_undefined_flag=' ${wl}-bernotok'
7104 allow_undefined_flag=' ${wl}-berok'
7105 # Exported symbols can be pulled into shared objects from archives
7106 whole_archive_flag_spec='$convenience'
7107 archive_cmds_need_lc=yes
7108 # This is similar to how AIX traditionally builds its shared libraries.
7109 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'
7114 amigaos*)
7115 if test "$host_cpu" = m68k; then
7116 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)'
7117 hardcode_libdir_flag_spec='-L$libdir'
7118 hardcode_minus_L=yes
7120 # see comment about different semantics on the GNU ld section
7121 ld_shlibs=no
7124 bsdi[45]*)
7125 export_dynamic_flag_spec=-rdynamic
7128 cygwin* | mingw* | pw32*)
7129 # When not using gcc, we currently assume that we are using
7130 # Microsoft Visual C++.
7131 # hardcode_libdir_flag_spec is actually meaningless, as there is
7132 # no search path for DLLs.
7133 hardcode_libdir_flag_spec=' '
7134 allow_undefined_flag=unsupported
7135 # Tell ltmain to make .lib files, not .a files.
7136 libext=lib
7137 # Tell ltmain to make .dll files, not .so files.
7138 shrext_cmds=".dll"
7139 # FIXME: Setting linknames here is a bad hack.
7140 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7141 # The linker will automatically build a .lib file if we build a DLL.
7142 old_archive_from_new_cmds='true'
7143 # FIXME: Should let the user specify the lib program.
7144 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7145 fix_srcfile_path='`cygpath -w "$srcfile"`'
7146 enable_shared_with_static_runtimes=yes
7149 darwin* | rhapsody*)
7150 case $host_os in
7151 rhapsody* | darwin1.[012])
7152 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7154 *) # Darwin 1.3 on
7155 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7156 10.[012])
7157 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7159 10.*)
7160 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7162 esac
7164 esac
7165 archive_cmds_need_lc=no
7166 hardcode_direct=no
7167 hardcode_automatic=yes
7168 hardcode_shlibpath_var=unsupported
7169 whole_archive_flag_spec=''
7170 link_all_deplibs=yes
7171 if test "$GCC" = yes ; then
7172 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7173 echo $ECHO_N "(cached) $ECHO_C" >&6
7174 else
7175 lt_cv_apple_cc_single_mod=no
7176 if test -z "${LT_MULTI_MODULE}"; then
7177 # By default we will add the -single_module flag. You can override
7178 # by either setting the environment variable LT_MULTI_MODULE
7179 # non-empty at configure time, or by adding -multi-module to the
7180 # link flags.
7181 echo "int foo(void){return 1;}" > conftest.c
7182 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7183 -dynamiclib ${wl}-single_module conftest.c
7184 if test -f libconftest.dylib; then
7185 lt_cv_apple_cc_single_mod=yes
7186 rm libconftest.dylib
7188 rm conftest.$ac_ext
7192 output_verbose_link_cmd=echo
7193 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7194 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7195 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}'
7196 else
7197 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7198 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}'
7200 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7201 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}'
7202 else
7203 case $cc_basename in
7204 xlc*)
7205 output_verbose_link_cmd=echo
7206 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7207 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7208 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7209 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}'
7210 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}'
7213 ld_shlibs=no
7215 esac
7219 dgux*)
7220 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7221 hardcode_libdir_flag_spec='-L$libdir'
7222 hardcode_shlibpath_var=no
7225 freebsd1*)
7226 ld_shlibs=no
7229 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7230 # support. Future versions do this automatically, but an explicit c++rt0.o
7231 # does not break anything, and helps significantly (at the cost of a little
7232 # extra space).
7233 freebsd2.2*)
7234 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7235 hardcode_libdir_flag_spec='-R$libdir'
7236 hardcode_direct=yes
7237 hardcode_shlibpath_var=no
7240 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7241 freebsd2*)
7242 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7243 hardcode_direct=yes
7244 hardcode_minus_L=yes
7245 hardcode_shlibpath_var=no
7248 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7249 freebsd* | dragonfly*)
7250 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7251 hardcode_libdir_flag_spec='-R$libdir'
7252 hardcode_direct=yes
7253 hardcode_shlibpath_var=no
7256 hpux9*)
7257 if test "$GCC" = yes; then
7258 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'
7259 else
7260 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'
7262 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7263 hardcode_libdir_separator=:
7264 hardcode_direct=yes
7266 # hardcode_minus_L: Not really in the search PATH,
7267 # but as the default location of the library.
7268 hardcode_minus_L=yes
7269 export_dynamic_flag_spec='${wl}-E'
7272 hpux10*)
7273 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7274 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7275 else
7276 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7278 if test "$with_gnu_ld" = no; then
7279 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7280 hardcode_libdir_flag_spec_ld='+b $libdir'
7281 hardcode_libdir_separator=:
7282 hardcode_direct=yes
7283 hardcode_direct_absolute=yes
7284 export_dynamic_flag_spec='${wl}-E'
7285 # hardcode_minus_L: Not really in the search PATH,
7286 # but as the default location of the library.
7287 hardcode_minus_L=yes
7291 hpux11*)
7292 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7293 case $host_cpu in
7294 hppa*64*)
7295 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7297 ia64*)
7298 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7301 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7303 esac
7304 else
7305 case $host_cpu in
7306 hppa*64*)
7307 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7309 ia64*)
7310 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7313 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7315 esac
7317 if test "$with_gnu_ld" = no; then
7318 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7319 hardcode_libdir_separator=:
7321 case $host_cpu in
7322 hppa*64*|ia64*)
7323 hardcode_direct=no
7324 hardcode_shlibpath_var=no
7327 hardcode_direct=yes
7328 hardcode_direct_absolute=yes
7329 export_dynamic_flag_spec='${wl}-E'
7331 # hardcode_minus_L: Not really in the search PATH,
7332 # but as the default location of the library.
7333 hardcode_minus_L=yes
7335 esac
7339 irix5* | irix6* | nonstopux*)
7340 if test "$GCC" = yes; then
7341 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'
7342 # Try to use the -exported_symbol ld option, if it does not
7343 # work, assume that -exports_file does not work either and
7344 # implicitly export all symbols.
7345 save_LDFLAGS="$LDFLAGS"
7346 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7347 cat >conftest.$ac_ext <<_ACEOF
7348 int foo(void) {}
7349 _ACEOF
7350 rm -f conftest.$ac_objext conftest$ac_exeext
7351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7352 (eval $ac_link) 2>conftest.er1
7353 ac_status=$?
7354 grep -v '^ *+' conftest.er1 >conftest.err
7355 rm -f conftest.er1
7356 cat conftest.err >&5
7357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); } &&
7359 { ac_try='test -z "$ac_c_werror_flag"
7360 || test ! -s conftest.err'
7361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7362 (eval $ac_try) 2>&5
7363 ac_status=$?
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); }; } &&
7366 { ac_try='test -s conftest$ac_exeext'
7367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7368 (eval $ac_try) 2>&5
7369 ac_status=$?
7370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371 (exit $ac_status); }; }; then
7372 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'
7374 else
7375 echo "$as_me: failed program was:" >&5
7376 sed 's/^/| /' conftest.$ac_ext >&5
7379 rm -f conftest.err conftest.$ac_objext \
7380 conftest$ac_exeext conftest.$ac_ext
7381 LDFLAGS="$save_LDFLAGS"
7382 else
7383 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'
7384 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'
7386 archive_cmds_need_lc='no'
7387 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7388 hardcode_libdir_separator=:
7389 inherit_rpath=yes
7390 link_all_deplibs=yes
7393 netbsd*)
7394 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7395 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7396 else
7397 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7399 hardcode_libdir_flag_spec='-R$libdir'
7400 hardcode_direct=yes
7401 hardcode_shlibpath_var=no
7404 newsos6)
7405 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7406 hardcode_direct=yes
7407 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7408 hardcode_libdir_separator=:
7409 hardcode_shlibpath_var=no
7412 *nto* | *qnx*)
7415 openbsd*)
7416 hardcode_direct=yes
7417 hardcode_shlibpath_var=no
7418 hardcode_direct_absolute=yes
7419 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7420 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7421 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7422 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7423 export_dynamic_flag_spec='${wl}-E'
7424 else
7425 case $host_os in
7426 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7427 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7428 hardcode_libdir_flag_spec='-R$libdir'
7431 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7432 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7434 esac
7438 os2*)
7439 hardcode_libdir_flag_spec='-L$libdir'
7440 hardcode_minus_L=yes
7441 allow_undefined_flag=unsupported
7442 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'
7443 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7446 osf3*)
7447 if test "$GCC" = yes; then
7448 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7449 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'
7450 else
7451 allow_undefined_flag=' -expect_unresolved \*'
7452 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'
7454 archive_cmds_need_lc='no'
7455 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7456 hardcode_libdir_separator=:
7459 osf4* | osf5*) # as osf3* with the addition of -msym flag
7460 if test "$GCC" = yes; then
7461 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7462 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'
7463 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7464 else
7465 allow_undefined_flag=' -expect_unresolved \*'
7466 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'
7467 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~
7468 $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'
7470 # Both c and cxx compiler support -rpath directly
7471 hardcode_libdir_flag_spec='-rpath $libdir'
7473 archive_cmds_need_lc='no'
7474 hardcode_libdir_separator=:
7477 solaris*)
7478 no_undefined_flag=' -z defs'
7479 if test "$GCC" = yes; then
7480 wlarc='${wl}'
7481 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7482 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7483 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7484 else
7485 case `$CC -V 2>&1` in
7486 *"Compilers 5.0"*)
7487 wlarc=''
7488 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7489 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7490 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7493 wlarc='${wl}'
7494 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7495 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7496 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7498 esac
7500 hardcode_libdir_flag_spec='-R$libdir'
7501 hardcode_shlibpath_var=no
7502 case $host_os in
7503 solaris2.[0-5] | solaris2.[0-5].*) ;;
7505 # The compiler driver will combine and reorder linker options,
7506 # but understands `-z linker_flag'. GCC discards it without `$wl',
7507 # but is careful enough not to reorder.
7508 # Supported since Solaris 2.6 (maybe 2.5.1?)
7509 if test "$GCC" = yes; then
7510 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7511 else
7512 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7515 esac
7516 link_all_deplibs=yes
7519 sunos4*)
7520 if test "x$host_vendor" = xsequent; then
7521 # Use $CC to link under sequent, because it throws in some extra .o
7522 # files that make .init and .fini sections work.
7523 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7524 else
7525 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7527 hardcode_libdir_flag_spec='-L$libdir'
7528 hardcode_direct=yes
7529 hardcode_minus_L=yes
7530 hardcode_shlibpath_var=no
7533 sysv4)
7534 case $host_vendor in
7535 sni)
7536 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7537 hardcode_direct=yes # is this really true???
7539 siemens)
7540 ## LD is ld it makes a PLAMLIB
7541 ## CC just makes a GrossModule.
7542 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7543 reload_cmds='$CC -r -o $output$reload_objs'
7544 hardcode_direct=no
7546 motorola)
7547 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7548 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7550 esac
7551 runpath_var='LD_RUN_PATH'
7552 hardcode_shlibpath_var=no
7555 sysv4.3*)
7556 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7557 hardcode_shlibpath_var=no
7558 export_dynamic_flag_spec='-Bexport'
7561 sysv4*MP*)
7562 if test -d /usr/nec; then
7563 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7564 hardcode_shlibpath_var=no
7565 runpath_var=LD_RUN_PATH
7566 hardcode_runpath_var=yes
7567 ld_shlibs=yes
7571 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7572 no_undefined_flag='${wl}-z,text'
7573 archive_cmds_need_lc=no
7574 hardcode_shlibpath_var=no
7575 runpath_var='LD_RUN_PATH'
7577 if test "$GCC" = yes; then
7578 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7579 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7580 else
7581 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7582 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7586 sysv5* | sco3.2v5* | sco5v6*)
7587 # Note: We can NOT use -z defs as we might desire, because we do not
7588 # link with -lc, and that would cause any symbols used from libc to
7589 # always be unresolved, which means just about no library would
7590 # ever link correctly. If we're not using GNU ld we use -z text
7591 # though, which does catch some bad symbols but isn't as heavy-handed
7592 # as -z defs.
7593 no_undefined_flag='${wl}-z,text'
7594 allow_undefined_flag='${wl}-z,nodefs'
7595 archive_cmds_need_lc=no
7596 hardcode_shlibpath_var=no
7597 hardcode_libdir_flag_spec='${wl}-R,$libdir'
7598 hardcode_libdir_separator=':'
7599 link_all_deplibs=yes
7600 export_dynamic_flag_spec='${wl}-Bexport'
7601 runpath_var='LD_RUN_PATH'
7603 if test "$GCC" = yes; then
7604 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7605 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7606 else
7607 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7608 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7612 uts4*)
7613 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7614 hardcode_libdir_flag_spec='-L$libdir'
7615 hardcode_shlibpath_var=no
7619 ld_shlibs=no
7621 esac
7623 if test x$host_vendor = xsni; then
7624 case $host in
7625 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7626 export_dynamic_flag_spec='${wl}-Blargedynsym'
7628 esac
7632 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7633 echo "${ECHO_T}$ld_shlibs" >&6
7634 test "$ld_shlibs" = no && can_build_shared=no
7636 with_gnu_ld=$with_gnu_ld
7653 # Do we need to explicitly link libc?
7655 case "x$archive_cmds_need_lc" in
7656 x|xyes)
7657 # Assume -lc should be added
7658 archive_cmds_need_lc=yes
7660 if test "$enable_shared" = yes && test "$GCC" = yes; then
7661 case $archive_cmds in
7662 *'~'*)
7663 # FIXME: we may have to deal with multi-command sequences.
7665 '$CC '*)
7666 # Test whether the compiler implicitly links with -lc since on some
7667 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7668 # to ld, don't add -lc before -lgcc.
7669 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7670 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7671 $RM conftest*
7672 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7675 (eval $ac_compile) 2>&5
7676 ac_status=$?
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); } 2>conftest.err; then
7679 soname=conftest
7680 lib=conftest
7681 libobjs=conftest.$ac_objext
7682 deplibs=
7683 wl=$lt_prog_compiler_wl
7684 pic_flag=$lt_prog_compiler_pic
7685 compiler_flags=-v
7686 linker_flags=-v
7687 verstring=
7688 output_objdir=.
7689 libname=conftest
7690 lt_save_allow_undefined_flag=$allow_undefined_flag
7691 allow_undefined_flag=
7692 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
7693 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
7694 ac_status=$?
7695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696 (exit $ac_status); }
7697 then
7698 archive_cmds_need_lc=no
7699 else
7700 archive_cmds_need_lc=yes
7702 allow_undefined_flag=$lt_save_allow_undefined_flag
7703 else
7704 cat conftest.err 1>&5
7706 $RM conftest*
7707 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7708 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7710 esac
7713 esac
7871 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7872 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7873 withGCC=$GCC
7874 if test "$withGCC" = yes; then
7875 case $host_os in
7876 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
7877 *) lt_awk_arg="/^libraries:/" ;;
7878 esac
7879 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7880 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
7881 # if the path contains ";" then we assume it to be the separator
7882 # otherwise default to the standard path separator (i.e. ":") - it is
7883 # assumed that no part of a normal pathname contains ";" but that should
7884 # okay in the real world where ";" in dirpaths is itself problematic.
7885 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
7886 else
7887 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7889 # Ok, now we have the path, separated by spaces, we can step through it
7890 # and add multilib dir if necessary.
7891 lt_tmp_lt_search_path_spec=
7892 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
7893 for lt_sys_path in $lt_search_path_spec; do
7894 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
7895 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
7896 else
7897 test -d "$lt_sys_path" && \
7898 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
7900 done
7901 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
7902 BEGIN {RS=" "; FS="/|\n";} {
7903 lt_foo="";
7904 lt_count=0;
7905 for (lt_i = NF; lt_i > 0; lt_i--) {
7906 if ($lt_i != "" && $lt_i != ".") {
7907 if ($lt_i == "..") {
7908 lt_count++;
7909 } else {
7910 if (lt_count == 0) {
7911 lt_foo="/" $lt_i lt_foo;
7912 } else {
7913 lt_count--;
7918 if (lt_foo != "") { lt_freq[lt_foo]++; }
7919 if (lt_freq[lt_foo] == 1) { print lt_foo; }
7921 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
7922 else
7923 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7925 library_names_spec=
7926 libname_spec='lib$name'
7927 soname_spec=
7928 shrext_cmds=".so"
7929 postinstall_cmds=
7930 postuninstall_cmds=
7931 finish_cmds=
7932 finish_eval=
7933 shlibpath_var=
7934 shlibpath_overrides_runpath=unknown
7935 version_type=none
7936 dynamic_linker="$host_os ld.so"
7937 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7938 need_lib_prefix=unknown
7939 hardcode_into_libs=no
7941 # when you set need_version to no, make sure it does not cause -set_version
7942 # flags to be left without arguments
7943 need_version=unknown
7945 case $host_os in
7946 aix3*)
7947 version_type=linux
7948 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7949 shlibpath_var=LIBPATH
7951 # AIX 3 has no versioning support, so we append a major version to the name.
7952 soname_spec='${libname}${release}${shared_ext}$major'
7955 aix[4-9]*)
7956 version_type=linux
7957 need_lib_prefix=no
7958 need_version=no
7959 hardcode_into_libs=yes
7960 if test "$host_cpu" = ia64; then
7961 # AIX 5 supports IA64
7962 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7963 shlibpath_var=LD_LIBRARY_PATH
7964 else
7965 # With GCC up to 2.95.x, collect2 would create an import file
7966 # for dependence libraries. The import file would start with
7967 # the line `#! .'. This would cause the generated library to
7968 # depend on `.', always an invalid library. This was fixed in
7969 # development snapshots of GCC prior to 3.0.
7970 case $host_os in
7971 aix4 | aix4.[01] | aix4.[01].*)
7972 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7973 echo ' yes '
7974 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
7976 else
7977 can_build_shared=no
7980 esac
7981 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7982 # soname into executable. Probably we can add versioning support to
7983 # collect2, so additional links can be useful in future.
7984 if test "$aix_use_runtimelinking" = yes; then
7985 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7986 # instead of lib<name>.a to let people know that these are not
7987 # typical AIX shared libraries.
7988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7989 else
7990 # We preserve .a as extension for shared libraries through AIX4.2
7991 # and later when we are not doing run time linking.
7992 library_names_spec='${libname}${release}.a $libname.a'
7993 soname_spec='${libname}${release}${shared_ext}$major'
7995 shlibpath_var=LIBPATH
7999 amigaos*)
8000 if test "$host_cpu" = m68k; then
8001 library_names_spec='$libname.ixlibrary $libname.a'
8002 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8003 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'
8004 else
8005 dynamic_linker=no
8009 beos*)
8010 library_names_spec='${libname}${shared_ext}'
8011 dynamic_linker="$host_os ld.so"
8012 shlibpath_var=LIBRARY_PATH
8015 bsdi[45]*)
8016 version_type=linux
8017 need_version=no
8018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8019 soname_spec='${libname}${release}${shared_ext}$major'
8020 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8021 shlibpath_var=LD_LIBRARY_PATH
8022 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8023 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8024 # the default ld.so.conf also contains /usr/contrib/lib and
8025 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8026 # libtool to hard-code these into programs
8029 cygwin* | mingw* | pw32*)
8030 version_type=windows
8031 shrext_cmds=".dll"
8032 need_version=no
8033 need_lib_prefix=no
8035 case $withGCC,$host_os in
8036 yes,cygwin* | yes,mingw* | yes,pw32*)
8037 library_names_spec='$libname.dll.a'
8038 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8039 postinstall_cmds='base_file=`basename \${file}`~
8040 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8041 dldir=$destdir/`dirname \$dlpath`~
8042 test -d \$dldir || mkdir -p \$dldir~
8043 $install_prog $dir/$dlname \$dldir/$dlname~
8044 chmod a+x \$dldir/$dlname~
8045 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8046 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8048 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8049 dlpath=$dir/\$dldll~
8050 $RM \$dlpath'
8051 shlibpath_overrides_runpath=yes
8053 case $host_os in
8054 cygwin*)
8055 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8056 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8057 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8059 mingw*)
8060 # MinGW DLLs use traditional 'lib' prefix
8061 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8062 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8063 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8064 # It is most probably a Windows format PATH printed by
8065 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8066 # path with ; separators, and with drive letters. We can handle the
8067 # drive letters (cygwin fileutils understands them), so leave them,
8068 # especially as we might pass files found there to a mingw objdump,
8069 # which wouldn't understand a cygwinified path. Ahh.
8070 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8071 else
8072 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8075 pw32*)
8076 # pw32 DLLs use 'pw' prefix rather than 'lib'
8077 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8079 esac
8083 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8085 esac
8086 dynamic_linker='Win32 ld.exe'
8087 # FIXME: first we should search . and the directory the executable is in
8088 shlibpath_var=PATH
8091 darwin* | rhapsody*)
8092 dynamic_linker="$host_os dyld"
8093 version_type=darwin
8094 need_lib_prefix=no
8095 need_version=no
8096 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8097 soname_spec='${libname}${release}${major}$shared_ext'
8098 shlibpath_overrides_runpath=yes
8099 shlibpath_var=DYLD_LIBRARY_PATH
8100 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8102 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8103 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8106 dgux*)
8107 version_type=linux
8108 need_lib_prefix=no
8109 need_version=no
8110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8111 soname_spec='${libname}${release}${shared_ext}$major'
8112 shlibpath_var=LD_LIBRARY_PATH
8115 freebsd1*)
8116 dynamic_linker=no
8119 freebsd* | dragonfly*)
8120 # DragonFly does not have aout. When/if they implement a new
8121 # versioning mechanism, adjust this.
8122 if test -x /usr/bin/objformat; then
8123 objformat=`/usr/bin/objformat`
8124 else
8125 case $host_os in
8126 freebsd[123]*) objformat=aout ;;
8127 *) objformat=elf ;;
8128 esac
8130 version_type=freebsd-$objformat
8131 case $version_type in
8132 freebsd-elf*)
8133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8134 need_version=no
8135 need_lib_prefix=no
8137 freebsd-*)
8138 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8139 need_version=yes
8141 esac
8142 shlibpath_var=LD_LIBRARY_PATH
8143 case $host_os in
8144 freebsd2*)
8145 shlibpath_overrides_runpath=yes
8147 freebsd3.[01]* | freebsdelf3.[01]*)
8148 shlibpath_overrides_runpath=yes
8149 hardcode_into_libs=yes
8151 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8152 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8153 shlibpath_overrides_runpath=no
8154 hardcode_into_libs=yes
8156 *) # from 4.6 on, and DragonFly
8157 shlibpath_overrides_runpath=yes
8158 hardcode_into_libs=yes
8160 esac
8163 gnu*)
8164 version_type=linux
8165 need_lib_prefix=no
8166 need_version=no
8167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8168 soname_spec='${libname}${release}${shared_ext}$major'
8169 shlibpath_var=LD_LIBRARY_PATH
8170 hardcode_into_libs=yes
8173 hpux9* | hpux10* | hpux11*)
8174 # Give a soname corresponding to the major version so that dld.sl refuses to
8175 # link against other versions.
8176 version_type=sunos
8177 need_lib_prefix=no
8178 need_version=no
8179 case $host_cpu in
8180 ia64*)
8181 shrext_cmds='.so'
8182 hardcode_into_libs=yes
8183 dynamic_linker="$host_os dld.so"
8184 shlibpath_var=LD_LIBRARY_PATH
8185 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8187 soname_spec='${libname}${release}${shared_ext}$major'
8188 if test "X$HPUX_IA64_MODE" = X32; then
8189 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8190 else
8191 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8193 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8195 hppa*64*)
8196 shrext_cmds='.sl'
8197 hardcode_into_libs=yes
8198 dynamic_linker="$host_os dld.sl"
8199 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8200 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8202 soname_spec='${libname}${release}${shared_ext}$major'
8203 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8204 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8207 shrext_cmds='.sl'
8208 dynamic_linker="$host_os dld.sl"
8209 shlibpath_var=SHLIB_PATH
8210 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8212 soname_spec='${libname}${release}${shared_ext}$major'
8214 esac
8215 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8216 postinstall_cmds='chmod 555 $lib'
8219 interix[3-9]*)
8220 version_type=linux
8221 need_lib_prefix=no
8222 need_version=no
8223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8224 soname_spec='${libname}${release}${shared_ext}$major'
8225 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8226 shlibpath_var=LD_LIBRARY_PATH
8227 shlibpath_overrides_runpath=no
8228 hardcode_into_libs=yes
8231 irix5* | irix6* | nonstopux*)
8232 case $host_os in
8233 nonstopux*) version_type=nonstopux ;;
8235 if test "$lt_cv_prog_gnu_ld" = yes; then
8236 version_type=linux
8237 else
8238 version_type=irix
8239 fi ;;
8240 esac
8241 need_lib_prefix=no
8242 need_version=no
8243 soname_spec='${libname}${release}${shared_ext}$major'
8244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8245 case $host_os in
8246 irix5* | nonstopux*)
8247 libsuff= shlibsuff=
8250 case $LD in # libtool.m4 will add one of these switches to LD
8251 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8252 libsuff= shlibsuff= libmagic=32-bit;;
8253 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8254 libsuff=32 shlibsuff=N32 libmagic=N32;;
8255 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8256 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8257 *) libsuff= shlibsuff= libmagic=never-match;;
8258 esac
8260 esac
8261 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8262 shlibpath_overrides_runpath=no
8263 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8264 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8265 hardcode_into_libs=yes
8268 # No shared lib support for Linux oldld, aout, or coff.
8269 linux*oldld* | linux*aout* | linux*coff*)
8270 dynamic_linker=no
8273 # This must be Linux ELF.
8274 linux* | k*bsd*-gnu)
8275 version_type=linux
8276 need_lib_prefix=no
8277 need_version=no
8278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8279 soname_spec='${libname}${release}${shared_ext}$major'
8280 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8281 shlibpath_var=LD_LIBRARY_PATH
8282 shlibpath_overrides_runpath=no
8283 # Some binutils ld are patched to set DT_RUNPATH
8284 save_LDFLAGS=$LDFLAGS
8285 save_libdir=$libdir
8286 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8287 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8288 cat >conftest.$ac_ext <<_ACEOF
8289 /* confdefs.h. */
8290 _ACEOF
8291 cat confdefs.h >>conftest.$ac_ext
8292 cat >>conftest.$ac_ext <<_ACEOF
8293 /* end confdefs.h. */
8296 main ()
8300 return 0;
8302 _ACEOF
8303 rm -f conftest.$ac_objext conftest$ac_exeext
8304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8305 (eval $ac_link) 2>conftest.er1
8306 ac_status=$?
8307 grep -v '^ *+' conftest.er1 >conftest.err
8308 rm -f conftest.er1
8309 cat conftest.err >&5
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); } &&
8312 { ac_try='test -z "$ac_c_werror_flag"
8313 || test ! -s conftest.err'
8314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8315 (eval $ac_try) 2>&5
8316 ac_status=$?
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); }; } &&
8319 { ac_try='test -s conftest$ac_exeext'
8320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8321 (eval $ac_try) 2>&5
8322 ac_status=$?
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); }; }; then
8325 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8326 shlibpath_overrides_runpath=yes
8329 else
8330 echo "$as_me: failed program was:" >&5
8331 sed 's/^/| /' conftest.$ac_ext >&5
8334 rm -f conftest.err conftest.$ac_objext \
8335 conftest$ac_exeext conftest.$ac_ext
8336 LDFLAGS=$save_LDFLAGS
8337 libdir=$save_libdir
8339 # This implies no fast_install, which is unacceptable.
8340 # Some rework will be needed to allow for fast_install
8341 # before this can be enabled.
8342 hardcode_into_libs=yes
8344 # Append ld.so.conf contents to the search path
8345 if test -f /etc/ld.so.conf; then
8346 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' ' '`
8347 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8350 # We used to test for /lib/ld.so.1 and disable shared libraries on
8351 # powerpc, because MkLinux only supported shared libraries with the
8352 # GNU dynamic linker. Since this was broken with cross compilers,
8353 # most powerpc-linux boxes support dynamic linking these days and
8354 # people can always --disable-shared, the test was removed, and we
8355 # assume the GNU/Linux dynamic linker is in use.
8356 dynamic_linker='GNU/Linux ld.so'
8359 netbsd*)
8360 version_type=sunos
8361 need_lib_prefix=no
8362 need_version=no
8363 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8365 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8366 dynamic_linker='NetBSD (a.out) ld.so'
8367 else
8368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8369 soname_spec='${libname}${release}${shared_ext}$major'
8370 dynamic_linker='NetBSD ld.elf_so'
8372 shlibpath_var=LD_LIBRARY_PATH
8373 shlibpath_overrides_runpath=yes
8374 hardcode_into_libs=yes
8377 newsos6)
8378 version_type=linux
8379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8380 shlibpath_var=LD_LIBRARY_PATH
8381 shlibpath_overrides_runpath=yes
8384 *nto* | *qnx*)
8385 version_type=qnx
8386 need_lib_prefix=no
8387 need_version=no
8388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8389 soname_spec='${libname}${release}${shared_ext}$major'
8390 shlibpath_var=LD_LIBRARY_PATH
8391 shlibpath_overrides_runpath=no
8392 hardcode_into_libs=yes
8393 dynamic_linker='ldqnx.so'
8396 openbsd*)
8397 version_type=sunos
8398 sys_lib_dlsearch_path_spec="/usr/lib"
8399 need_lib_prefix=no
8400 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8401 case $host_os in
8402 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8403 *) need_version=no ;;
8404 esac
8405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8406 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8407 shlibpath_var=LD_LIBRARY_PATH
8408 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8409 case $host_os in
8410 openbsd2.[89] | openbsd2.[89].*)
8411 shlibpath_overrides_runpath=no
8414 shlibpath_overrides_runpath=yes
8416 esac
8417 else
8418 shlibpath_overrides_runpath=yes
8422 os2*)
8423 libname_spec='$name'
8424 shrext_cmds=".dll"
8425 need_lib_prefix=no
8426 library_names_spec='$libname${shared_ext} $libname.a'
8427 dynamic_linker='OS/2 ld.exe'
8428 shlibpath_var=LIBPATH
8431 osf3* | osf4* | osf5*)
8432 version_type=osf
8433 need_lib_prefix=no
8434 need_version=no
8435 soname_spec='${libname}${release}${shared_ext}$major'
8436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8437 shlibpath_var=LD_LIBRARY_PATH
8438 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8439 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8442 rdos*)
8443 dynamic_linker=no
8446 solaris*)
8447 version_type=linux
8448 need_lib_prefix=no
8449 need_version=no
8450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8451 soname_spec='${libname}${release}${shared_ext}$major'
8452 shlibpath_var=LD_LIBRARY_PATH
8453 shlibpath_overrides_runpath=yes
8454 hardcode_into_libs=yes
8455 # ldd complains unless libraries are executable
8456 postinstall_cmds='chmod +x $lib'
8459 sunos4*)
8460 version_type=sunos
8461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8462 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8463 shlibpath_var=LD_LIBRARY_PATH
8464 shlibpath_overrides_runpath=yes
8465 if test "$with_gnu_ld" = yes; then
8466 need_lib_prefix=no
8468 need_version=yes
8471 sysv4 | sysv4.3*)
8472 version_type=linux
8473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8474 soname_spec='${libname}${release}${shared_ext}$major'
8475 shlibpath_var=LD_LIBRARY_PATH
8476 case $host_vendor in
8477 sni)
8478 shlibpath_overrides_runpath=no
8479 need_lib_prefix=no
8480 runpath_var=LD_RUN_PATH
8482 siemens)
8483 need_lib_prefix=no
8485 motorola)
8486 need_lib_prefix=no
8487 need_version=no
8488 shlibpath_overrides_runpath=no
8489 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8491 esac
8494 sysv4*MP*)
8495 if test -d /usr/nec ;then
8496 version_type=linux
8497 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8498 soname_spec='$libname${shared_ext}.$major'
8499 shlibpath_var=LD_LIBRARY_PATH
8503 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8504 version_type=freebsd-elf
8505 need_lib_prefix=no
8506 need_version=no
8507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8508 soname_spec='${libname}${release}${shared_ext}$major'
8509 shlibpath_var=LD_LIBRARY_PATH
8510 shlibpath_overrides_runpath=yes
8511 hardcode_into_libs=yes
8512 if test "$with_gnu_ld" = yes; then
8513 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8514 else
8515 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8516 case $host_os in
8517 sco3.2v5*)
8518 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8520 esac
8522 sys_lib_dlsearch_path_spec='/usr/lib'
8525 tpf*)
8526 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
8527 version_type=linux
8528 need_lib_prefix=no
8529 need_version=no
8530 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8531 shlibpath_var=LD_LIBRARY_PATH
8532 shlibpath_overrides_runpath=no
8533 hardcode_into_libs=yes
8536 uts4*)
8537 version_type=linux
8538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8539 soname_spec='${libname}${release}${shared_ext}$major'
8540 shlibpath_var=LD_LIBRARY_PATH
8544 dynamic_linker=no
8546 esac
8547 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8548 echo "${ECHO_T}$dynamic_linker" >&6
8549 test "$dynamic_linker" = no && can_build_shared=no
8551 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8552 if test "$GCC" = yes; then
8553 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8642 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8643 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8644 hardcode_action=
8645 if test -n "$hardcode_libdir_flag_spec" ||
8646 test -n "$runpath_var" ||
8647 test "X$hardcode_automatic" = "Xyes" ; then
8649 # We can hardcode non-existent directories.
8650 if test "$hardcode_direct" != no &&
8651 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8652 # have to relink, otherwise we might link with an installed library
8653 # when we should be linking with a yet-to-be-installed one
8654 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
8655 test "$hardcode_minus_L" != no; then
8656 # Linking always hardcodes the temporary library directory.
8657 hardcode_action=relink
8658 else
8659 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8660 hardcode_action=immediate
8662 else
8663 # We cannot hardcode anything, or else we can only hardcode existing
8664 # directories.
8665 hardcode_action=unsupported
8667 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8668 echo "${ECHO_T}$hardcode_action" >&6
8670 if test "$hardcode_action" = relink ||
8671 test "$inherit_rpath" = yes; then
8672 # Fast installation is not supported
8673 enable_fast_install=no
8674 elif test "$shlibpath_overrides_runpath" = yes ||
8675 test "$enable_shared" = no; then
8676 # Fast installation is not necessary
8677 enable_fast_install=needless
8685 if test "x$enable_dlopen" != xyes; then
8686 enable_dlopen=unknown
8687 enable_dlopen_self=unknown
8688 enable_dlopen_self_static=unknown
8689 else
8690 lt_cv_dlopen=no
8691 lt_cv_dlopen_libs=
8693 case $host_os in
8694 beos*)
8695 lt_cv_dlopen="load_add_on"
8696 lt_cv_dlopen_libs=
8697 lt_cv_dlopen_self=yes
8700 mingw* | pw32*)
8701 lt_cv_dlopen="LoadLibrary"
8702 lt_cv_dlopen_libs=
8705 cygwin*)
8706 lt_cv_dlopen="dlopen"
8707 lt_cv_dlopen_libs=
8710 darwin*)
8711 # if libdl is installed we need to link against it
8712 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8713 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8714 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8715 echo $ECHO_N "(cached) $ECHO_C" >&6
8716 else
8717 ac_check_lib_save_LIBS=$LIBS
8718 LIBS="-ldl $LIBS"
8719 cat >conftest.$ac_ext <<_ACEOF
8720 /* confdefs.h. */
8721 _ACEOF
8722 cat confdefs.h >>conftest.$ac_ext
8723 cat >>conftest.$ac_ext <<_ACEOF
8724 /* end confdefs.h. */
8726 /* Override any gcc2 internal prototype to avoid an error. */
8727 #ifdef __cplusplus
8728 extern "C"
8729 #endif
8730 /* We use char because int might match the return type of a gcc2
8731 builtin and then its argument prototype would still apply. */
8732 char dlopen ();
8734 main ()
8736 dlopen ();
8738 return 0;
8740 _ACEOF
8741 rm -f conftest.$ac_objext conftest$ac_exeext
8742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8743 (eval $ac_link) 2>conftest.er1
8744 ac_status=$?
8745 grep -v '^ *+' conftest.er1 >conftest.err
8746 rm -f conftest.er1
8747 cat conftest.err >&5
8748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 (exit $ac_status); } &&
8750 { ac_try='test -z "$ac_c_werror_flag"
8751 || test ! -s conftest.err'
8752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8753 (eval $ac_try) 2>&5
8754 ac_status=$?
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); }; } &&
8757 { ac_try='test -s conftest$ac_exeext'
8758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8759 (eval $ac_try) 2>&5
8760 ac_status=$?
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); }; }; then
8763 ac_cv_lib_dl_dlopen=yes
8764 else
8765 echo "$as_me: failed program was:" >&5
8766 sed 's/^/| /' conftest.$ac_ext >&5
8768 ac_cv_lib_dl_dlopen=no
8770 rm -f conftest.err conftest.$ac_objext \
8771 conftest$ac_exeext conftest.$ac_ext
8772 LIBS=$ac_check_lib_save_LIBS
8774 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8775 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8776 if test $ac_cv_lib_dl_dlopen = yes; then
8777 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8778 else
8780 lt_cv_dlopen="dyld"
8781 lt_cv_dlopen_libs=
8782 lt_cv_dlopen_self=yes
8789 echo "$as_me:$LINENO: checking for shl_load" >&5
8790 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8791 if test "${ac_cv_func_shl_load+set}" = set; then
8792 echo $ECHO_N "(cached) $ECHO_C" >&6
8793 else
8794 cat >conftest.$ac_ext <<_ACEOF
8795 /* confdefs.h. */
8796 _ACEOF
8797 cat confdefs.h >>conftest.$ac_ext
8798 cat >>conftest.$ac_ext <<_ACEOF
8799 /* end confdefs.h. */
8800 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8802 #define shl_load innocuous_shl_load
8804 /* System header to define __stub macros and hopefully few prototypes,
8805 which can conflict with char shl_load (); below.
8806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8807 <limits.h> exists even on freestanding compilers. */
8809 #ifdef __STDC__
8810 # include <limits.h>
8811 #else
8812 # include <assert.h>
8813 #endif
8815 #undef shl_load
8817 /* Override any gcc2 internal prototype to avoid an error. */
8818 #ifdef __cplusplus
8819 extern "C"
8821 #endif
8822 /* We use char because int might match the return type of a gcc2
8823 builtin and then its argument prototype would still apply. */
8824 char shl_load ();
8825 /* The GNU C library defines this for functions which it implements
8826 to always fail with ENOSYS. Some functions are actually named
8827 something starting with __ and the normal name is an alias. */
8828 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8829 choke me
8830 #else
8831 char (*f) () = shl_load;
8832 #endif
8833 #ifdef __cplusplus
8835 #endif
8838 main ()
8840 return f != shl_load;
8842 return 0;
8844 _ACEOF
8845 rm -f conftest.$ac_objext conftest$ac_exeext
8846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8847 (eval $ac_link) 2>conftest.er1
8848 ac_status=$?
8849 grep -v '^ *+' conftest.er1 >conftest.err
8850 rm -f conftest.er1
8851 cat conftest.err >&5
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); } &&
8854 { ac_try='test -z "$ac_c_werror_flag"
8855 || test ! -s conftest.err'
8856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8857 (eval $ac_try) 2>&5
8858 ac_status=$?
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); }; } &&
8861 { ac_try='test -s conftest$ac_exeext'
8862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8863 (eval $ac_try) 2>&5
8864 ac_status=$?
8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 (exit $ac_status); }; }; then
8867 ac_cv_func_shl_load=yes
8868 else
8869 echo "$as_me: failed program was:" >&5
8870 sed 's/^/| /' conftest.$ac_ext >&5
8872 ac_cv_func_shl_load=no
8874 rm -f conftest.err conftest.$ac_objext \
8875 conftest$ac_exeext conftest.$ac_ext
8877 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8878 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8879 if test $ac_cv_func_shl_load = yes; then
8880 lt_cv_dlopen="shl_load"
8881 else
8882 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8883 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8884 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8885 echo $ECHO_N "(cached) $ECHO_C" >&6
8886 else
8887 ac_check_lib_save_LIBS=$LIBS
8888 LIBS="-ldld $LIBS"
8889 cat >conftest.$ac_ext <<_ACEOF
8890 /* confdefs.h. */
8891 _ACEOF
8892 cat confdefs.h >>conftest.$ac_ext
8893 cat >>conftest.$ac_ext <<_ACEOF
8894 /* end confdefs.h. */
8896 /* Override any gcc2 internal prototype to avoid an error. */
8897 #ifdef __cplusplus
8898 extern "C"
8899 #endif
8900 /* We use char because int might match the return type of a gcc2
8901 builtin and then its argument prototype would still apply. */
8902 char shl_load ();
8904 main ()
8906 shl_load ();
8908 return 0;
8910 _ACEOF
8911 rm -f conftest.$ac_objext conftest$ac_exeext
8912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8913 (eval $ac_link) 2>conftest.er1
8914 ac_status=$?
8915 grep -v '^ *+' conftest.er1 >conftest.err
8916 rm -f conftest.er1
8917 cat conftest.err >&5
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 (exit $ac_status); } &&
8920 { ac_try='test -z "$ac_c_werror_flag"
8921 || test ! -s conftest.err'
8922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8923 (eval $ac_try) 2>&5
8924 ac_status=$?
8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); }; } &&
8927 { ac_try='test -s conftest$ac_exeext'
8928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8929 (eval $ac_try) 2>&5
8930 ac_status=$?
8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 (exit $ac_status); }; }; then
8933 ac_cv_lib_dld_shl_load=yes
8934 else
8935 echo "$as_me: failed program was:" >&5
8936 sed 's/^/| /' conftest.$ac_ext >&5
8938 ac_cv_lib_dld_shl_load=no
8940 rm -f conftest.err conftest.$ac_objext \
8941 conftest$ac_exeext conftest.$ac_ext
8942 LIBS=$ac_check_lib_save_LIBS
8944 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8945 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8946 if test $ac_cv_lib_dld_shl_load = yes; then
8947 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8948 else
8949 echo "$as_me:$LINENO: checking for dlopen" >&5
8950 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8951 if test "${ac_cv_func_dlopen+set}" = set; then
8952 echo $ECHO_N "(cached) $ECHO_C" >&6
8953 else
8954 cat >conftest.$ac_ext <<_ACEOF
8955 /* confdefs.h. */
8956 _ACEOF
8957 cat confdefs.h >>conftest.$ac_ext
8958 cat >>conftest.$ac_ext <<_ACEOF
8959 /* end confdefs.h. */
8960 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8962 #define dlopen innocuous_dlopen
8964 /* System header to define __stub macros and hopefully few prototypes,
8965 which can conflict with char dlopen (); below.
8966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8967 <limits.h> exists even on freestanding compilers. */
8969 #ifdef __STDC__
8970 # include <limits.h>
8971 #else
8972 # include <assert.h>
8973 #endif
8975 #undef dlopen
8977 /* Override any gcc2 internal prototype to avoid an error. */
8978 #ifdef __cplusplus
8979 extern "C"
8981 #endif
8982 /* We use char because int might match the return type of a gcc2
8983 builtin and then its argument prototype would still apply. */
8984 char dlopen ();
8985 /* The GNU C library defines this for functions which it implements
8986 to always fail with ENOSYS. Some functions are actually named
8987 something starting with __ and the normal name is an alias. */
8988 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8989 choke me
8990 #else
8991 char (*f) () = dlopen;
8992 #endif
8993 #ifdef __cplusplus
8995 #endif
8998 main ()
9000 return f != dlopen;
9002 return 0;
9004 _ACEOF
9005 rm -f conftest.$ac_objext conftest$ac_exeext
9006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9007 (eval $ac_link) 2>conftest.er1
9008 ac_status=$?
9009 grep -v '^ *+' conftest.er1 >conftest.err
9010 rm -f conftest.er1
9011 cat conftest.err >&5
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); } &&
9014 { ac_try='test -z "$ac_c_werror_flag"
9015 || test ! -s conftest.err'
9016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9017 (eval $ac_try) 2>&5
9018 ac_status=$?
9019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020 (exit $ac_status); }; } &&
9021 { ac_try='test -s conftest$ac_exeext'
9022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9023 (eval $ac_try) 2>&5
9024 ac_status=$?
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); }; }; then
9027 ac_cv_func_dlopen=yes
9028 else
9029 echo "$as_me: failed program was:" >&5
9030 sed 's/^/| /' conftest.$ac_ext >&5
9032 ac_cv_func_dlopen=no
9034 rm -f conftest.err conftest.$ac_objext \
9035 conftest$ac_exeext conftest.$ac_ext
9037 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9038 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9039 if test $ac_cv_func_dlopen = yes; then
9040 lt_cv_dlopen="dlopen"
9041 else
9042 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9043 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9044 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9045 echo $ECHO_N "(cached) $ECHO_C" >&6
9046 else
9047 ac_check_lib_save_LIBS=$LIBS
9048 LIBS="-ldl $LIBS"
9049 cat >conftest.$ac_ext <<_ACEOF
9050 /* confdefs.h. */
9051 _ACEOF
9052 cat confdefs.h >>conftest.$ac_ext
9053 cat >>conftest.$ac_ext <<_ACEOF
9054 /* end confdefs.h. */
9056 /* Override any gcc2 internal prototype to avoid an error. */
9057 #ifdef __cplusplus
9058 extern "C"
9059 #endif
9060 /* We use char because int might match the return type of a gcc2
9061 builtin and then its argument prototype would still apply. */
9062 char dlopen ();
9064 main ()
9066 dlopen ();
9068 return 0;
9070 _ACEOF
9071 rm -f conftest.$ac_objext conftest$ac_exeext
9072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9073 (eval $ac_link) 2>conftest.er1
9074 ac_status=$?
9075 grep -v '^ *+' conftest.er1 >conftest.err
9076 rm -f conftest.er1
9077 cat conftest.err >&5
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 (exit $ac_status); } &&
9080 { ac_try='test -z "$ac_c_werror_flag"
9081 || test ! -s conftest.err'
9082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9083 (eval $ac_try) 2>&5
9084 ac_status=$?
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 (exit $ac_status); }; } &&
9087 { ac_try='test -s conftest$ac_exeext'
9088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9089 (eval $ac_try) 2>&5
9090 ac_status=$?
9091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092 (exit $ac_status); }; }; then
9093 ac_cv_lib_dl_dlopen=yes
9094 else
9095 echo "$as_me: failed program was:" >&5
9096 sed 's/^/| /' conftest.$ac_ext >&5
9098 ac_cv_lib_dl_dlopen=no
9100 rm -f conftest.err conftest.$ac_objext \
9101 conftest$ac_exeext conftest.$ac_ext
9102 LIBS=$ac_check_lib_save_LIBS
9104 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9105 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9106 if test $ac_cv_lib_dl_dlopen = yes; then
9107 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9108 else
9109 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9110 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9111 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9112 echo $ECHO_N "(cached) $ECHO_C" >&6
9113 else
9114 ac_check_lib_save_LIBS=$LIBS
9115 LIBS="-lsvld $LIBS"
9116 cat >conftest.$ac_ext <<_ACEOF
9117 /* confdefs.h. */
9118 _ACEOF
9119 cat confdefs.h >>conftest.$ac_ext
9120 cat >>conftest.$ac_ext <<_ACEOF
9121 /* end confdefs.h. */
9123 /* Override any gcc2 internal prototype to avoid an error. */
9124 #ifdef __cplusplus
9125 extern "C"
9126 #endif
9127 /* We use char because int might match the return type of a gcc2
9128 builtin and then its argument prototype would still apply. */
9129 char dlopen ();
9131 main ()
9133 dlopen ();
9135 return 0;
9137 _ACEOF
9138 rm -f conftest.$ac_objext conftest$ac_exeext
9139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9140 (eval $ac_link) 2>conftest.er1
9141 ac_status=$?
9142 grep -v '^ *+' conftest.er1 >conftest.err
9143 rm -f conftest.er1
9144 cat conftest.err >&5
9145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146 (exit $ac_status); } &&
9147 { ac_try='test -z "$ac_c_werror_flag"
9148 || test ! -s conftest.err'
9149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9150 (eval $ac_try) 2>&5
9151 ac_status=$?
9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 (exit $ac_status); }; } &&
9154 { ac_try='test -s conftest$ac_exeext'
9155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9156 (eval $ac_try) 2>&5
9157 ac_status=$?
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); }; }; then
9160 ac_cv_lib_svld_dlopen=yes
9161 else
9162 echo "$as_me: failed program was:" >&5
9163 sed 's/^/| /' conftest.$ac_ext >&5
9165 ac_cv_lib_svld_dlopen=no
9167 rm -f conftest.err conftest.$ac_objext \
9168 conftest$ac_exeext conftest.$ac_ext
9169 LIBS=$ac_check_lib_save_LIBS
9171 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9172 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9173 if test $ac_cv_lib_svld_dlopen = yes; then
9174 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9175 else
9176 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9177 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9178 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9179 echo $ECHO_N "(cached) $ECHO_C" >&6
9180 else
9181 ac_check_lib_save_LIBS=$LIBS
9182 LIBS="-ldld $LIBS"
9183 cat >conftest.$ac_ext <<_ACEOF
9184 /* confdefs.h. */
9185 _ACEOF
9186 cat confdefs.h >>conftest.$ac_ext
9187 cat >>conftest.$ac_ext <<_ACEOF
9188 /* end confdefs.h. */
9190 /* Override any gcc2 internal prototype to avoid an error. */
9191 #ifdef __cplusplus
9192 extern "C"
9193 #endif
9194 /* We use char because int might match the return type of a gcc2
9195 builtin and then its argument prototype would still apply. */
9196 char dld_link ();
9198 main ()
9200 dld_link ();
9202 return 0;
9204 _ACEOF
9205 rm -f conftest.$ac_objext conftest$ac_exeext
9206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9207 (eval $ac_link) 2>conftest.er1
9208 ac_status=$?
9209 grep -v '^ *+' conftest.er1 >conftest.err
9210 rm -f conftest.er1
9211 cat conftest.err >&5
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); } &&
9214 { ac_try='test -z "$ac_c_werror_flag"
9215 || test ! -s conftest.err'
9216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9217 (eval $ac_try) 2>&5
9218 ac_status=$?
9219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9220 (exit $ac_status); }; } &&
9221 { ac_try='test -s conftest$ac_exeext'
9222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9223 (eval $ac_try) 2>&5
9224 ac_status=$?
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); }; }; then
9227 ac_cv_lib_dld_dld_link=yes
9228 else
9229 echo "$as_me: failed program was:" >&5
9230 sed 's/^/| /' conftest.$ac_ext >&5
9232 ac_cv_lib_dld_dld_link=no
9234 rm -f conftest.err conftest.$ac_objext \
9235 conftest$ac_exeext conftest.$ac_ext
9236 LIBS=$ac_check_lib_save_LIBS
9238 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9239 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9240 if test $ac_cv_lib_dld_dld_link = yes; then
9241 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9260 esac
9262 if test "x$lt_cv_dlopen" != xno; then
9263 enable_dlopen=yes
9264 else
9265 enable_dlopen=no
9268 case $lt_cv_dlopen in
9269 dlopen)
9270 save_CPPFLAGS="$CPPFLAGS"
9271 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9273 save_LDFLAGS="$LDFLAGS"
9274 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9276 save_LIBS="$LIBS"
9277 LIBS="$lt_cv_dlopen_libs $LIBS"
9279 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9280 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9281 if test "${lt_cv_dlopen_self+set}" = set; then
9282 echo $ECHO_N "(cached) $ECHO_C" >&6
9283 else
9284 if test "$cross_compiling" = yes; then :
9285 lt_cv_dlopen_self=cross
9286 else
9287 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9288 lt_status=$lt_dlunknown
9289 cat > conftest.$ac_ext <<_LT_EOF
9290 #line 9290 "configure"
9291 #include "confdefs.h"
9293 #if HAVE_DLFCN_H
9294 #include <dlfcn.h>
9295 #endif
9297 #include <stdio.h>
9299 #ifdef RTLD_GLOBAL
9300 # define LT_DLGLOBAL RTLD_GLOBAL
9301 #else
9302 # ifdef DL_GLOBAL
9303 # define LT_DLGLOBAL DL_GLOBAL
9304 # else
9305 # define LT_DLGLOBAL 0
9306 # endif
9307 #endif
9309 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9310 find out it does not work in some platform. */
9311 #ifndef LT_DLLAZY_OR_NOW
9312 # ifdef RTLD_LAZY
9313 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9314 # else
9315 # ifdef DL_LAZY
9316 # define LT_DLLAZY_OR_NOW DL_LAZY
9317 # else
9318 # ifdef RTLD_NOW
9319 # define LT_DLLAZY_OR_NOW RTLD_NOW
9320 # else
9321 # ifdef DL_NOW
9322 # define LT_DLLAZY_OR_NOW DL_NOW
9323 # else
9324 # define LT_DLLAZY_OR_NOW 0
9325 # endif
9326 # endif
9327 # endif
9328 # endif
9329 #endif
9331 #ifdef __cplusplus
9332 extern "C" void exit (int);
9333 #endif
9335 void fnord() { int i=42;}
9336 int main ()
9338 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9339 int status = $lt_dlunknown;
9341 if (self)
9343 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9344 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9345 /* dlclose (self); */
9347 else
9348 puts (dlerror ());
9350 exit (status);
9352 _LT_EOF
9353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9354 (eval $ac_link) 2>&5
9355 ac_status=$?
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9358 (./conftest; exit; ) >&5 2>/dev/null
9359 lt_status=$?
9360 case x$lt_status in
9361 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9362 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9363 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9364 esac
9365 else :
9366 # compilation failed
9367 lt_cv_dlopen_self=no
9370 rm -fr conftest*
9374 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9375 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9377 if test "x$lt_cv_dlopen_self" = xyes; then
9378 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9379 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9380 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9381 if test "${lt_cv_dlopen_self_static+set}" = set; then
9382 echo $ECHO_N "(cached) $ECHO_C" >&6
9383 else
9384 if test "$cross_compiling" = yes; then :
9385 lt_cv_dlopen_self_static=cross
9386 else
9387 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9388 lt_status=$lt_dlunknown
9389 cat > conftest.$ac_ext <<_LT_EOF
9390 #line 9390 "configure"
9391 #include "confdefs.h"
9393 #if HAVE_DLFCN_H
9394 #include <dlfcn.h>
9395 #endif
9397 #include <stdio.h>
9399 #ifdef RTLD_GLOBAL
9400 # define LT_DLGLOBAL RTLD_GLOBAL
9401 #else
9402 # ifdef DL_GLOBAL
9403 # define LT_DLGLOBAL DL_GLOBAL
9404 # else
9405 # define LT_DLGLOBAL 0
9406 # endif
9407 #endif
9409 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9410 find out it does not work in some platform. */
9411 #ifndef LT_DLLAZY_OR_NOW
9412 # ifdef RTLD_LAZY
9413 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9414 # else
9415 # ifdef DL_LAZY
9416 # define LT_DLLAZY_OR_NOW DL_LAZY
9417 # else
9418 # ifdef RTLD_NOW
9419 # define LT_DLLAZY_OR_NOW RTLD_NOW
9420 # else
9421 # ifdef DL_NOW
9422 # define LT_DLLAZY_OR_NOW DL_NOW
9423 # else
9424 # define LT_DLLAZY_OR_NOW 0
9425 # endif
9426 # endif
9427 # endif
9428 # endif
9429 #endif
9431 #ifdef __cplusplus
9432 extern "C" void exit (int);
9433 #endif
9435 void fnord() { int i=42;}
9436 int main ()
9438 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9439 int status = $lt_dlunknown;
9441 if (self)
9443 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9444 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9445 /* dlclose (self); */
9447 else
9448 puts (dlerror ());
9450 exit (status);
9452 _LT_EOF
9453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9454 (eval $ac_link) 2>&5
9455 ac_status=$?
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9458 (./conftest; exit; ) >&5 2>/dev/null
9459 lt_status=$?
9460 case x$lt_status in
9461 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9462 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9463 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9464 esac
9465 else :
9466 # compilation failed
9467 lt_cv_dlopen_self_static=no
9470 rm -fr conftest*
9474 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9475 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9478 CPPFLAGS="$save_CPPFLAGS"
9479 LDFLAGS="$save_LDFLAGS"
9480 LIBS="$save_LIBS"
9482 esac
9484 case $lt_cv_dlopen_self in
9485 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9486 *) enable_dlopen_self=unknown ;;
9487 esac
9489 case $lt_cv_dlopen_self_static in
9490 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9491 *) enable_dlopen_self_static=unknown ;;
9492 esac
9511 striplib=
9512 old_striplib=
9513 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9514 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9515 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9516 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9517 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9518 echo "$as_me:$LINENO: result: yes" >&5
9519 echo "${ECHO_T}yes" >&6
9520 else
9521 # FIXME - insert some real tests, host_os isn't really good enough
9522 case $host_os in
9523 darwin*)
9524 if test -n "$STRIP" ; then
9525 striplib="$STRIP -x"
9526 old_striplib="$STRIP -S"
9527 echo "$as_me:$LINENO: result: yes" >&5
9528 echo "${ECHO_T}yes" >&6
9529 else
9530 echo "$as_me:$LINENO: result: no" >&5
9531 echo "${ECHO_T}no" >&6
9535 echo "$as_me:$LINENO: result: no" >&5
9536 echo "${ECHO_T}no" >&6
9538 esac
9552 # Report which library types will actually be built
9553 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9554 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9555 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9556 echo "${ECHO_T}$can_build_shared" >&6
9558 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9559 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9560 test "$can_build_shared" = "no" && enable_shared=no
9562 # On AIX, shared libraries and static libraries use the same namespace, and
9563 # are all built from PIC.
9564 case $host_os in
9565 aix3*)
9566 test "$enable_shared" = yes && enable_static=no
9567 if test -n "$RANLIB"; then
9568 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9569 postinstall_cmds='$RANLIB $lib'
9573 aix[4-9]*)
9574 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9575 test "$enable_shared" = yes && enable_static=no
9578 esac
9579 echo "$as_me:$LINENO: result: $enable_shared" >&5
9580 echo "${ECHO_T}$enable_shared" >&6
9582 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9583 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9584 # Make sure either enable_shared or enable_static is yes.
9585 test "$enable_shared" = yes || enable_static=yes
9586 echo "$as_me:$LINENO: result: $enable_static" >&5
9587 echo "${ECHO_T}$enable_static" >&6
9593 ac_ext=c
9594 ac_cpp='$CPP $CPPFLAGS'
9595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9599 CC="$lt_save_CC"
9613 ac_config_commands="$ac_config_commands libtool"
9618 # Only expand once:
9622 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
9623 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
9624 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9625 if test "${enable_maintainer_mode+set}" = set; then
9626 enableval="$enable_maintainer_mode"
9627 USE_MAINTAINER_MODE=$enableval
9628 else
9629 USE_MAINTAINER_MODE=no
9631 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
9632 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
9635 if test $USE_MAINTAINER_MODE = yes; then
9636 MAINTAINER_MODE_TRUE=
9637 MAINTAINER_MODE_FALSE='#'
9638 else
9639 MAINTAINER_MODE_TRUE='#'
9640 MAINTAINER_MODE_FALSE=
9643 MAINT=$MAINTAINER_MODE_TRUE
9648 for ac_header in sys/mman.h
9650 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9652 echo "$as_me:$LINENO: checking for $ac_header" >&5
9653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9655 echo $ECHO_N "(cached) $ECHO_C" >&6
9657 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9658 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9659 else
9660 # Is the header compilable?
9661 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9662 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9663 cat >conftest.$ac_ext <<_ACEOF
9664 /* confdefs.h. */
9665 _ACEOF
9666 cat confdefs.h >>conftest.$ac_ext
9667 cat >>conftest.$ac_ext <<_ACEOF
9668 /* end confdefs.h. */
9669 $ac_includes_default
9670 #include <$ac_header>
9671 _ACEOF
9672 rm -f conftest.$ac_objext
9673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9674 (eval $ac_compile) 2>conftest.er1
9675 ac_status=$?
9676 grep -v '^ *+' conftest.er1 >conftest.err
9677 rm -f conftest.er1
9678 cat conftest.err >&5
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); } &&
9681 { ac_try='test -z "$ac_c_werror_flag"
9682 || test ! -s conftest.err'
9683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9684 (eval $ac_try) 2>&5
9685 ac_status=$?
9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 (exit $ac_status); }; } &&
9688 { ac_try='test -s conftest.$ac_objext'
9689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9690 (eval $ac_try) 2>&5
9691 ac_status=$?
9692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693 (exit $ac_status); }; }; then
9694 ac_header_compiler=yes
9695 else
9696 echo "$as_me: failed program was:" >&5
9697 sed 's/^/| /' conftest.$ac_ext >&5
9699 ac_header_compiler=no
9701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9702 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9703 echo "${ECHO_T}$ac_header_compiler" >&6
9705 # Is the header present?
9706 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9707 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9708 cat >conftest.$ac_ext <<_ACEOF
9709 /* confdefs.h. */
9710 _ACEOF
9711 cat confdefs.h >>conftest.$ac_ext
9712 cat >>conftest.$ac_ext <<_ACEOF
9713 /* end confdefs.h. */
9714 #include <$ac_header>
9715 _ACEOF
9716 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9717 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9718 ac_status=$?
9719 grep -v '^ *+' conftest.er1 >conftest.err
9720 rm -f conftest.er1
9721 cat conftest.err >&5
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); } >/dev/null; then
9724 if test -s conftest.err; then
9725 ac_cpp_err=$ac_c_preproc_warn_flag
9726 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9727 else
9728 ac_cpp_err=
9730 else
9731 ac_cpp_err=yes
9733 if test -z "$ac_cpp_err"; then
9734 ac_header_preproc=yes
9735 else
9736 echo "$as_me: failed program was:" >&5
9737 sed 's/^/| /' conftest.$ac_ext >&5
9739 ac_header_preproc=no
9741 rm -f conftest.err conftest.$ac_ext
9742 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9743 echo "${ECHO_T}$ac_header_preproc" >&6
9745 # So? What about this header?
9746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9747 yes:no: )
9748 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9749 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9751 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9752 ac_header_preproc=yes
9754 no:yes:* )
9755 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9756 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9757 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9758 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9759 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9760 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9761 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9762 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9764 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9765 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9766 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9768 cat <<\_ASBOX
9769 ## ------------------------------------------- ##
9770 ## Report this to http://gcc.gnu.org/bugs.html ##
9771 ## ------------------------------------------- ##
9772 _ASBOX
9774 sed "s/^/$as_me: WARNING: /" >&2
9776 esac
9777 echo "$as_me:$LINENO: checking for $ac_header" >&5
9778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9780 echo $ECHO_N "(cached) $ECHO_C" >&6
9781 else
9782 eval "$as_ac_Header=\$ac_header_preproc"
9784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9785 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9789 cat >>confdefs.h <<_ACEOF
9790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9791 _ACEOF
9795 done
9798 for ac_func in mmap
9800 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9801 echo "$as_me:$LINENO: checking for $ac_func" >&5
9802 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9803 if eval "test \"\${$as_ac_var+set}\" = set"; then
9804 echo $ECHO_N "(cached) $ECHO_C" >&6
9805 else
9806 cat >conftest.$ac_ext <<_ACEOF
9807 /* confdefs.h. */
9808 _ACEOF
9809 cat confdefs.h >>conftest.$ac_ext
9810 cat >>conftest.$ac_ext <<_ACEOF
9811 /* end confdefs.h. */
9812 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9814 #define $ac_func innocuous_$ac_func
9816 /* System header to define __stub macros and hopefully few prototypes,
9817 which can conflict with char $ac_func (); below.
9818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9819 <limits.h> exists even on freestanding compilers. */
9821 #ifdef __STDC__
9822 # include <limits.h>
9823 #else
9824 # include <assert.h>
9825 #endif
9827 #undef $ac_func
9829 /* Override any gcc2 internal prototype to avoid an error. */
9830 #ifdef __cplusplus
9831 extern "C"
9833 #endif
9834 /* We use char because int might match the return type of a gcc2
9835 builtin and then its argument prototype would still apply. */
9836 char $ac_func ();
9837 /* The GNU C library defines this for functions which it implements
9838 to always fail with ENOSYS. Some functions are actually named
9839 something starting with __ and the normal name is an alias. */
9840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9841 choke me
9842 #else
9843 char (*f) () = $ac_func;
9844 #endif
9845 #ifdef __cplusplus
9847 #endif
9850 main ()
9852 return f != $ac_func;
9854 return 0;
9856 _ACEOF
9857 rm -f conftest.$ac_objext conftest$ac_exeext
9858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9859 (eval $ac_link) 2>conftest.er1
9860 ac_status=$?
9861 grep -v '^ *+' conftest.er1 >conftest.err
9862 rm -f conftest.er1
9863 cat conftest.err >&5
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); } &&
9866 { ac_try='test -z "$ac_c_werror_flag"
9867 || test ! -s conftest.err'
9868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9869 (eval $ac_try) 2>&5
9870 ac_status=$?
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); }; } &&
9873 { ac_try='test -s conftest$ac_exeext'
9874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9875 (eval $ac_try) 2>&5
9876 ac_status=$?
9877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878 (exit $ac_status); }; }; then
9879 eval "$as_ac_var=yes"
9880 else
9881 echo "$as_me: failed program was:" >&5
9882 sed 's/^/| /' conftest.$ac_ext >&5
9884 eval "$as_ac_var=no"
9886 rm -f conftest.err conftest.$ac_objext \
9887 conftest$ac_exeext conftest.$ac_ext
9889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9890 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9891 if test `eval echo '${'$as_ac_var'}'` = yes; then
9892 cat >>confdefs.h <<_ACEOF
9893 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9894 _ACEOF
9897 done
9900 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9901 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9902 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9903 if test "${ac_cv_header_sys_mman_h+set}" = set; then
9904 echo $ECHO_N "(cached) $ECHO_C" >&6
9906 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9907 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9908 else
9909 # Is the header compilable?
9910 echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
9911 echo $ECHO_N "checking sys/mman.h usability... $ECHO_C" >&6
9912 cat >conftest.$ac_ext <<_ACEOF
9913 /* confdefs.h. */
9914 _ACEOF
9915 cat confdefs.h >>conftest.$ac_ext
9916 cat >>conftest.$ac_ext <<_ACEOF
9917 /* end confdefs.h. */
9918 $ac_includes_default
9919 #include <sys/mman.h>
9920 _ACEOF
9921 rm -f conftest.$ac_objext
9922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9923 (eval $ac_compile) 2>conftest.er1
9924 ac_status=$?
9925 grep -v '^ *+' conftest.er1 >conftest.err
9926 rm -f conftest.er1
9927 cat conftest.err >&5
9928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929 (exit $ac_status); } &&
9930 { ac_try='test -z "$ac_c_werror_flag"
9931 || test ! -s conftest.err'
9932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9933 (eval $ac_try) 2>&5
9934 ac_status=$?
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); }; } &&
9937 { ac_try='test -s conftest.$ac_objext'
9938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9939 (eval $ac_try) 2>&5
9940 ac_status=$?
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); }; }; then
9943 ac_header_compiler=yes
9944 else
9945 echo "$as_me: failed program was:" >&5
9946 sed 's/^/| /' conftest.$ac_ext >&5
9948 ac_header_compiler=no
9950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9951 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9952 echo "${ECHO_T}$ac_header_compiler" >&6
9954 # Is the header present?
9955 echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
9956 echo $ECHO_N "checking sys/mman.h presence... $ECHO_C" >&6
9957 cat >conftest.$ac_ext <<_ACEOF
9958 /* confdefs.h. */
9959 _ACEOF
9960 cat confdefs.h >>conftest.$ac_ext
9961 cat >>conftest.$ac_ext <<_ACEOF
9962 /* end confdefs.h. */
9963 #include <sys/mman.h>
9964 _ACEOF
9965 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9966 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9967 ac_status=$?
9968 grep -v '^ *+' conftest.er1 >conftest.err
9969 rm -f conftest.er1
9970 cat conftest.err >&5
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); } >/dev/null; then
9973 if test -s conftest.err; then
9974 ac_cpp_err=$ac_c_preproc_warn_flag
9975 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9976 else
9977 ac_cpp_err=
9979 else
9980 ac_cpp_err=yes
9982 if test -z "$ac_cpp_err"; then
9983 ac_header_preproc=yes
9984 else
9985 echo "$as_me: failed program was:" >&5
9986 sed 's/^/| /' conftest.$ac_ext >&5
9988 ac_header_preproc=no
9990 rm -f conftest.err conftest.$ac_ext
9991 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9992 echo "${ECHO_T}$ac_header_preproc" >&6
9994 # So? What about this header?
9995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9996 yes:no: )
9997 { echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
9998 echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9999 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
10000 echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
10001 ac_header_preproc=yes
10003 no:yes:* )
10004 { echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
10005 echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
10006 { echo "$as_me:$LINENO: WARNING: sys/mman.h: check for missing prerequisite headers?" >&5
10007 echo "$as_me: WARNING: sys/mman.h: check for missing prerequisite headers?" >&2;}
10008 { echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
10009 echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
10010 { echo "$as_me:$LINENO: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&5
10011 echo "$as_me: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&2;}
10012 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
10013 echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
10014 { echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
10015 echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
10017 cat <<\_ASBOX
10018 ## ------------------------------------------- ##
10019 ## Report this to http://gcc.gnu.org/bugs.html ##
10020 ## ------------------------------------------- ##
10021 _ASBOX
10023 sed "s/^/$as_me: WARNING: /" >&2
10025 esac
10026 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
10027 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
10028 if test "${ac_cv_header_sys_mman_h+set}" = set; then
10029 echo $ECHO_N "(cached) $ECHO_C" >&6
10030 else
10031 ac_cv_header_sys_mman_h=$ac_header_preproc
10033 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
10034 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
10037 if test $ac_cv_header_sys_mman_h = yes; then
10038 libffi_header_sys_mman_h=yes
10039 else
10040 libffi_header_sys_mman_h=no
10044 echo "$as_me:$LINENO: checking for mmap" >&5
10045 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
10046 if test "${ac_cv_func_mmap+set}" = set; then
10047 echo $ECHO_N "(cached) $ECHO_C" >&6
10048 else
10049 cat >conftest.$ac_ext <<_ACEOF
10050 /* confdefs.h. */
10051 _ACEOF
10052 cat confdefs.h >>conftest.$ac_ext
10053 cat >>conftest.$ac_ext <<_ACEOF
10054 /* end confdefs.h. */
10055 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
10056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10057 #define mmap innocuous_mmap
10059 /* System header to define __stub macros and hopefully few prototypes,
10060 which can conflict with char mmap (); below.
10061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10062 <limits.h> exists even on freestanding compilers. */
10064 #ifdef __STDC__
10065 # include <limits.h>
10066 #else
10067 # include <assert.h>
10068 #endif
10070 #undef mmap
10072 /* Override any gcc2 internal prototype to avoid an error. */
10073 #ifdef __cplusplus
10074 extern "C"
10076 #endif
10077 /* We use char because int might match the return type of a gcc2
10078 builtin and then its argument prototype would still apply. */
10079 char mmap ();
10080 /* The GNU C library defines this for functions which it implements
10081 to always fail with ENOSYS. Some functions are actually named
10082 something starting with __ and the normal name is an alias. */
10083 #if defined (__stub_mmap) || defined (__stub___mmap)
10084 choke me
10085 #else
10086 char (*f) () = mmap;
10087 #endif
10088 #ifdef __cplusplus
10090 #endif
10093 main ()
10095 return f != mmap;
10097 return 0;
10099 _ACEOF
10100 rm -f conftest.$ac_objext conftest$ac_exeext
10101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10102 (eval $ac_link) 2>conftest.er1
10103 ac_status=$?
10104 grep -v '^ *+' conftest.er1 >conftest.err
10105 rm -f conftest.er1
10106 cat conftest.err >&5
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); } &&
10109 { ac_try='test -z "$ac_c_werror_flag"
10110 || test ! -s conftest.err'
10111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10112 (eval $ac_try) 2>&5
10113 ac_status=$?
10114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115 (exit $ac_status); }; } &&
10116 { ac_try='test -s conftest$ac_exeext'
10117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10118 (eval $ac_try) 2>&5
10119 ac_status=$?
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 (exit $ac_status); }; }; then
10122 ac_cv_func_mmap=yes
10123 else
10124 echo "$as_me: failed program was:" >&5
10125 sed 's/^/| /' conftest.$ac_ext >&5
10127 ac_cv_func_mmap=no
10129 rm -f conftest.err conftest.$ac_objext \
10130 conftest$ac_exeext conftest.$ac_ext
10132 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
10133 echo "${ECHO_T}$ac_cv_func_mmap" >&6
10134 if test $ac_cv_func_mmap = yes; then
10135 libffi_func_mmap=yes
10136 else
10137 libffi_func_mmap=no
10140 if test "$libffi_header_sys_mman_h" != yes \
10141 || test "$libffi_func_mmap" != yes; then
10142 ac_cv_func_mmap_file=no
10143 ac_cv_func_mmap_dev_zero=no
10144 ac_cv_func_mmap_anon=no
10145 else
10146 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
10147 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
10148 if test "${ac_cv_func_mmap_file+set}" = set; then
10149 echo $ECHO_N "(cached) $ECHO_C" >&6
10150 else
10151 # Add a system to this blacklist if
10152 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10153 # memory area containing the same data that you'd get if you applied
10154 # read() to the same fd. The only system known to have a problem here
10155 # is VMS, where text files have record structure.
10156 case "$host_os" in
10157 vms* | ultrix*)
10158 ac_cv_func_mmap_file=no ;;
10160 ac_cv_func_mmap_file=yes;;
10161 esac
10163 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
10164 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
10165 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
10166 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
10167 if test "${ac_cv_func_mmap_dev_zero+set}" = set; then
10168 echo $ECHO_N "(cached) $ECHO_C" >&6
10169 else
10170 # Add a system to this blacklist if it has mmap() but /dev/zero
10171 # does not exist, or if mmapping /dev/zero does not give anonymous
10172 # zeroed pages with both the following properties:
10173 # 1. If you map N consecutive pages in with one call, and then
10174 # unmap any subset of those pages, the pages that were not
10175 # explicitly unmapped remain accessible.
10176 # 2. If you map two adjacent blocks of memory and then unmap them
10177 # both at once, they must both go away.
10178 # Systems known to be in this category are Windows (all variants),
10179 # VMS, and Darwin.
10180 case "$host_os" in
10181 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10182 ac_cv_func_mmap_dev_zero=no ;;
10184 ac_cv_func_mmap_dev_zero=yes;;
10185 esac
10187 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_dev_zero" >&5
10188 echo "${ECHO_T}$ac_cv_func_mmap_dev_zero" >&6
10190 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10191 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
10192 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
10193 if test "${ac_cv_decl_map_anon+set}" = set; then
10194 echo $ECHO_N "(cached) $ECHO_C" >&6
10195 else
10196 cat >conftest.$ac_ext <<_ACEOF
10197 /* confdefs.h. */
10198 _ACEOF
10199 cat confdefs.h >>conftest.$ac_ext
10200 cat >>conftest.$ac_ext <<_ACEOF
10201 /* end confdefs.h. */
10202 #include <sys/types.h>
10203 #include <sys/mman.h>
10204 #include <unistd.h>
10206 #ifndef MAP_ANONYMOUS
10207 #define MAP_ANONYMOUS MAP_ANON
10208 #endif
10211 main ()
10213 int n = MAP_ANONYMOUS;
10215 return 0;
10217 _ACEOF
10218 rm -f conftest.$ac_objext
10219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10220 (eval $ac_compile) 2>conftest.er1
10221 ac_status=$?
10222 grep -v '^ *+' conftest.er1 >conftest.err
10223 rm -f conftest.er1
10224 cat conftest.err >&5
10225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226 (exit $ac_status); } &&
10227 { ac_try='test -z "$ac_c_werror_flag"
10228 || test ! -s conftest.err'
10229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10230 (eval $ac_try) 2>&5
10231 ac_status=$?
10232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10233 (exit $ac_status); }; } &&
10234 { ac_try='test -s conftest.$ac_objext'
10235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10236 (eval $ac_try) 2>&5
10237 ac_status=$?
10238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10239 (exit $ac_status); }; }; then
10240 ac_cv_decl_map_anon=yes
10241 else
10242 echo "$as_me: failed program was:" >&5
10243 sed 's/^/| /' conftest.$ac_ext >&5
10245 ac_cv_decl_map_anon=no
10247 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10249 echo "$as_me:$LINENO: result: $ac_cv_decl_map_anon" >&5
10250 echo "${ECHO_T}$ac_cv_decl_map_anon" >&6
10252 if test $ac_cv_decl_map_anon = no; then
10253 ac_cv_func_mmap_anon=no
10254 else
10255 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10256 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
10257 if test "${ac_cv_func_mmap_anon+set}" = set; then
10258 echo $ECHO_N "(cached) $ECHO_C" >&6
10259 else
10260 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10261 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10262 # doesn't give anonymous zeroed pages with the same properties listed
10263 # above for use of /dev/zero.
10264 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10265 case "$host_os" in
10266 vms* | cygwin* | pe | mingw* | sco* | udk* )
10267 ac_cv_func_mmap_anon=no ;;
10269 ac_cv_func_mmap_anon=yes;;
10270 esac
10272 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_anon" >&5
10273 echo "${ECHO_T}$ac_cv_func_mmap_anon" >&6
10277 if test $ac_cv_func_mmap_file = yes; then
10279 cat >>confdefs.h <<\_ACEOF
10280 #define HAVE_MMAP_FILE 1
10281 _ACEOF
10284 if test $ac_cv_func_mmap_dev_zero = yes; then
10286 cat >>confdefs.h <<\_ACEOF
10287 #define HAVE_MMAP_DEV_ZERO 1
10288 _ACEOF
10291 if test $ac_cv_func_mmap_anon = yes; then
10293 cat >>confdefs.h <<\_ACEOF
10294 #define HAVE_MMAP_ANON 1
10295 _ACEOF
10302 if test -d $srcdir/testsuite; then
10303 TESTSUBDIR_TRUE=
10304 TESTSUBDIR_FALSE='#'
10305 else
10306 TESTSUBDIR_TRUE='#'
10307 TESTSUBDIR_FALSE=
10311 TARGETDIR="unknown"
10312 case "$host" in
10313 alpha*-*-*)
10314 TARGET=ALPHA; TARGETDIR=alpha;
10315 # Support 128-bit long double, changable via command-line switch.
10316 HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
10319 arm*-*-*)
10320 TARGET=ARM; TARGETDIR=arm
10323 amd64-*-freebsd*)
10324 TARGET=X86_64; TARGETDIR=x86
10327 cris-*-*)
10328 TARGET=LIBFFI_CRIS; TARGETDIR=cris
10331 frv-*-*)
10332 TARGET=FRV; TARGETDIR=frv
10335 hppa*-*-linux*)
10336 TARGET=PA_LINUX; TARGETDIR=pa
10338 hppa*64-*-hpux*)
10339 TARGET=PA64_HPUX; TARGETDIR=pa
10341 hppa*-*-hpux*)
10342 TARGET=PA_HPUX; TARGETDIR=pa
10345 i?86-win32* | i?86-*-cygwin* | i?86-*-mingw*)
10346 TARGET=X86_WIN32; TARGETDIR=x86
10348 i?86-*-darwin*)
10349 TARGET=X86_DARWIN; TARGETDIR=x86
10351 i?86-*-solaris2.1[0-9]*)
10352 TARGET=X86_64; TARGETDIR=x86
10354 i?86-*-*)
10355 TARGET=X86; TARGETDIR=x86
10358 ia64*-*-*)
10359 TARGET=IA64; TARGETDIR=ia64
10362 m32r*-*-*)
10363 TARGET=M32R; TARGETDIR=m32r
10366 m68k-*-*)
10367 TARGET=M68K; TARGETDIR=m68k
10370 mips-sgi-irix5.* | mips-sgi-irix6.*)
10371 TARGET=MIPS; TARGETDIR=mips
10373 mips*-*-linux*)
10374 TARGET=MIPS; TARGETDIR=mips
10377 powerpc*-*-linux*)
10378 TARGET=POWERPC; TARGETDIR=powerpc
10380 powerpc-*-darwin*)
10381 TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
10383 powerpc-*-aix* | rs6000-*-aix*)
10384 TARGET=POWERPC_AIX; TARGETDIR=powerpc
10386 powerpc-*-freebsd*)
10387 TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
10389 powerpc*-*-rtems*)
10390 TARGET=POWERPC; TARGETDIR=powerpc
10393 s390-*-* | s390x-*-*)
10394 TARGET=S390; TARGETDIR=s390
10397 sh-*-* | sh[34]*-*-*)
10398 TARGET=SH; TARGETDIR=sh
10400 sh64-*-* | sh5*-*-*)
10401 TARGET=SH64; TARGETDIR=sh64
10404 sparc*-*-*)
10405 TARGET=SPARC; TARGETDIR=sparc
10408 x86_64-*-darwin*)
10409 TARGET=X86_DARWIN; TARGETDIR=x86
10411 x86_64-*-cygwin* | x86_64-*-mingw*)
10413 x86_64-*-*)
10414 TARGET=X86_64; TARGETDIR=x86
10416 esac
10420 if test $TARGETDIR = unknown; then
10421 { { echo "$as_me:$LINENO: error: \"libffi has not been ported to $host.\"" >&5
10422 echo "$as_me: error: \"libffi has not been ported to $host.\"" >&2;}
10423 { (exit 1); exit 1; }; }
10428 if test x$TARGET = xMIPS; then
10429 MIPS_TRUE=
10430 MIPS_FALSE='#'
10431 else
10432 MIPS_TRUE='#'
10433 MIPS_FALSE=
10438 if test x$TARGET = xSPARC; then
10439 SPARC_TRUE=
10440 SPARC_FALSE='#'
10441 else
10442 SPARC_TRUE='#'
10443 SPARC_FALSE=
10448 if test x$TARGET = xX86; then
10449 X86_TRUE=
10450 X86_FALSE='#'
10451 else
10452 X86_TRUE='#'
10453 X86_FALSE=
10458 if test x$TARGET = xX86_WIN32; then
10459 X86_WIN32_TRUE=
10460 X86_WIN32_FALSE='#'
10461 else
10462 X86_WIN32_TRUE='#'
10463 X86_WIN32_FALSE=
10468 if test x$TARGET = xX86_DARWIN; then
10469 X86_DARWIN_TRUE=
10470 X86_DARWIN_FALSE='#'
10471 else
10472 X86_DARWIN_TRUE='#'
10473 X86_DARWIN_FALSE=
10478 if test x$TARGET = xALPHA; then
10479 ALPHA_TRUE=
10480 ALPHA_FALSE='#'
10481 else
10482 ALPHA_TRUE='#'
10483 ALPHA_FALSE=
10488 if test x$TARGET = xIA64; then
10489 IA64_TRUE=
10490 IA64_FALSE='#'
10491 else
10492 IA64_TRUE='#'
10493 IA64_FALSE=
10498 if test x$TARGET = xM32R; then
10499 M32R_TRUE=
10500 M32R_FALSE='#'
10501 else
10502 M32R_TRUE='#'
10503 M32R_FALSE=
10508 if test x$TARGET = xM68K; then
10509 M68K_TRUE=
10510 M68K_FALSE='#'
10511 else
10512 M68K_TRUE='#'
10513 M68K_FALSE=
10518 if test x$TARGET = xPOWERPC; then
10519 POWERPC_TRUE=
10520 POWERPC_FALSE='#'
10521 else
10522 POWERPC_TRUE='#'
10523 POWERPC_FALSE=
10528 if test x$TARGET = xPOWERPC_AIX; then
10529 POWERPC_AIX_TRUE=
10530 POWERPC_AIX_FALSE='#'
10531 else
10532 POWERPC_AIX_TRUE='#'
10533 POWERPC_AIX_FALSE=
10538 if test x$TARGET = xPOWERPC_DARWIN; then
10539 POWERPC_DARWIN_TRUE=
10540 POWERPC_DARWIN_FALSE='#'
10541 else
10542 POWERPC_DARWIN_TRUE='#'
10543 POWERPC_DARWIN_FALSE=
10548 if test x$TARGET = xPOWERPC_FREEBSD; then
10549 POWERPC_FREEBSD_TRUE=
10550 POWERPC_FREEBSD_FALSE='#'
10551 else
10552 POWERPC_FREEBSD_TRUE='#'
10553 POWERPC_FREEBSD_FALSE=
10558 if test x$TARGET = xARM; then
10559 ARM_TRUE=
10560 ARM_FALSE='#'
10561 else
10562 ARM_TRUE='#'
10563 ARM_FALSE=
10568 if test x$TARGET = xLIBFFI_CRIS; then
10569 LIBFFI_CRIS_TRUE=
10570 LIBFFI_CRIS_FALSE='#'
10571 else
10572 LIBFFI_CRIS_TRUE='#'
10573 LIBFFI_CRIS_FALSE=
10578 if test x$TARGET = xFRV; then
10579 FRV_TRUE=
10580 FRV_FALSE='#'
10581 else
10582 FRV_TRUE='#'
10583 FRV_FALSE=
10588 if test x$TARGET = xS390; then
10589 S390_TRUE=
10590 S390_FALSE='#'
10591 else
10592 S390_TRUE='#'
10593 S390_FALSE=
10598 if test x$TARGET = xX86_64; then
10599 X86_64_TRUE=
10600 X86_64_FALSE='#'
10601 else
10602 X86_64_TRUE='#'
10603 X86_64_FALSE=
10608 if test x$TARGET = xSH; then
10609 SH_TRUE=
10610 SH_FALSE='#'
10611 else
10612 SH_TRUE='#'
10613 SH_FALSE=
10618 if test x$TARGET = xSH64; then
10619 SH64_TRUE=
10620 SH64_FALSE='#'
10621 else
10622 SH64_TRUE='#'
10623 SH64_FALSE=
10628 if test x$TARGET = xPA_LINUX; then
10629 PA_LINUX_TRUE=
10630 PA_LINUX_FALSE='#'
10631 else
10632 PA_LINUX_TRUE='#'
10633 PA_LINUX_FALSE=
10638 if test x$TARGET = xPA_HPUX; then
10639 PA_HPUX_TRUE=
10640 PA_HPUX_FALSE='#'
10641 else
10642 PA_HPUX_TRUE='#'
10643 PA_HPUX_FALSE=
10648 if test x$TARGET = xPA64_HPUX; then
10649 PA64_HPUX_TRUE=
10650 PA64_HPUX_FALSE='#'
10651 else
10652 PA64_HPUX_TRUE='#'
10653 PA64_HPUX_FALSE=
10657 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10658 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10659 if test "${ac_cv_header_stdc+set}" = set; then
10660 echo $ECHO_N "(cached) $ECHO_C" >&6
10661 else
10662 cat >conftest.$ac_ext <<_ACEOF
10663 /* confdefs.h. */
10664 _ACEOF
10665 cat confdefs.h >>conftest.$ac_ext
10666 cat >>conftest.$ac_ext <<_ACEOF
10667 /* end confdefs.h. */
10668 #include <stdlib.h>
10669 #include <stdarg.h>
10670 #include <string.h>
10671 #include <float.h>
10674 main ()
10678 return 0;
10680 _ACEOF
10681 rm -f conftest.$ac_objext
10682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10683 (eval $ac_compile) 2>conftest.er1
10684 ac_status=$?
10685 grep -v '^ *+' conftest.er1 >conftest.err
10686 rm -f conftest.er1
10687 cat conftest.err >&5
10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); } &&
10690 { ac_try='test -z "$ac_c_werror_flag"
10691 || test ! -s conftest.err'
10692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10693 (eval $ac_try) 2>&5
10694 ac_status=$?
10695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); }; } &&
10697 { ac_try='test -s conftest.$ac_objext'
10698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10699 (eval $ac_try) 2>&5
10700 ac_status=$?
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); }; }; then
10703 ac_cv_header_stdc=yes
10704 else
10705 echo "$as_me: failed program was:" >&5
10706 sed 's/^/| /' conftest.$ac_ext >&5
10708 ac_cv_header_stdc=no
10710 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10712 if test $ac_cv_header_stdc = yes; then
10713 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10714 cat >conftest.$ac_ext <<_ACEOF
10715 /* confdefs.h. */
10716 _ACEOF
10717 cat confdefs.h >>conftest.$ac_ext
10718 cat >>conftest.$ac_ext <<_ACEOF
10719 /* end confdefs.h. */
10720 #include <string.h>
10722 _ACEOF
10723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10724 $EGREP "memchr" >/dev/null 2>&1; then
10726 else
10727 ac_cv_header_stdc=no
10729 rm -f conftest*
10733 if test $ac_cv_header_stdc = yes; then
10734 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
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 <stdlib.h>
10743 _ACEOF
10744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10745 $EGREP "free" >/dev/null 2>&1; then
10747 else
10748 ac_cv_header_stdc=no
10750 rm -f conftest*
10754 if test $ac_cv_header_stdc = yes; then
10755 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10756 if test "$cross_compiling" = yes; then
10758 else
10759 cat >conftest.$ac_ext <<_ACEOF
10760 /* confdefs.h. */
10761 _ACEOF
10762 cat confdefs.h >>conftest.$ac_ext
10763 cat >>conftest.$ac_ext <<_ACEOF
10764 /* end confdefs.h. */
10765 #include <ctype.h>
10766 #if ((' ' & 0x0FF) == 0x020)
10767 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10768 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10769 #else
10770 # define ISLOWER(c) \
10771 (('a' <= (c) && (c) <= 'i') \
10772 || ('j' <= (c) && (c) <= 'r') \
10773 || ('s' <= (c) && (c) <= 'z'))
10774 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10775 #endif
10777 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10779 main ()
10781 int i;
10782 for (i = 0; i < 256; i++)
10783 if (XOR (islower (i), ISLOWER (i))
10784 || toupper (i) != TOUPPER (i))
10785 exit(2);
10786 exit (0);
10788 _ACEOF
10789 rm -f conftest$ac_exeext
10790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10791 (eval $ac_link) 2>&5
10792 ac_status=$?
10793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10796 (eval $ac_try) 2>&5
10797 ac_status=$?
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); }; }; then
10801 else
10802 echo "$as_me: program exited with status $ac_status" >&5
10803 echo "$as_me: failed program was:" >&5
10804 sed 's/^/| /' conftest.$ac_ext >&5
10806 ( exit $ac_status )
10807 ac_cv_header_stdc=no
10809 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10813 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10814 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10815 if test $ac_cv_header_stdc = yes; then
10817 cat >>confdefs.h <<\_ACEOF
10818 #define STDC_HEADERS 1
10819 _ACEOF
10824 for ac_func in memcpy
10826 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10827 echo "$as_me:$LINENO: checking for $ac_func" >&5
10828 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10829 if eval "test \"\${$as_ac_var+set}\" = set"; then
10830 echo $ECHO_N "(cached) $ECHO_C" >&6
10831 else
10832 cat >conftest.$ac_ext <<_ACEOF
10833 /* confdefs.h. */
10834 _ACEOF
10835 cat confdefs.h >>conftest.$ac_ext
10836 cat >>conftest.$ac_ext <<_ACEOF
10837 /* end confdefs.h. */
10838 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10840 #define $ac_func innocuous_$ac_func
10842 /* System header to define __stub macros and hopefully few prototypes,
10843 which can conflict with char $ac_func (); below.
10844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10845 <limits.h> exists even on freestanding compilers. */
10847 #ifdef __STDC__
10848 # include <limits.h>
10849 #else
10850 # include <assert.h>
10851 #endif
10853 #undef $ac_func
10855 /* Override any gcc2 internal prototype to avoid an error. */
10856 #ifdef __cplusplus
10857 extern "C"
10859 #endif
10860 /* We use char because int might match the return type of a gcc2
10861 builtin and then its argument prototype would still apply. */
10862 char $ac_func ();
10863 /* The GNU C library defines this for functions which it implements
10864 to always fail with ENOSYS. Some functions are actually named
10865 something starting with __ and the normal name is an alias. */
10866 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10867 choke me
10868 #else
10869 char (*f) () = $ac_func;
10870 #endif
10871 #ifdef __cplusplus
10873 #endif
10876 main ()
10878 return f != $ac_func;
10880 return 0;
10882 _ACEOF
10883 rm -f conftest.$ac_objext conftest$ac_exeext
10884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10885 (eval $ac_link) 2>conftest.er1
10886 ac_status=$?
10887 grep -v '^ *+' conftest.er1 >conftest.err
10888 rm -f conftest.er1
10889 cat conftest.err >&5
10890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891 (exit $ac_status); } &&
10892 { ac_try='test -z "$ac_c_werror_flag"
10893 || test ! -s conftest.err'
10894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10895 (eval $ac_try) 2>&5
10896 ac_status=$?
10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); }; } &&
10899 { ac_try='test -s conftest$ac_exeext'
10900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10901 (eval $ac_try) 2>&5
10902 ac_status=$?
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); }; }; then
10905 eval "$as_ac_var=yes"
10906 else
10907 echo "$as_me: failed program was:" >&5
10908 sed 's/^/| /' conftest.$ac_ext >&5
10910 eval "$as_ac_var=no"
10912 rm -f conftest.err conftest.$ac_objext \
10913 conftest$ac_exeext conftest.$ac_ext
10915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10916 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10917 if test `eval echo '${'$as_ac_var'}'` = yes; then
10918 cat >>confdefs.h <<_ACEOF
10919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10920 _ACEOF
10923 done
10925 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10926 # for constant arguments. Useless!
10927 echo "$as_me:$LINENO: checking for working alloca.h" >&5
10928 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10929 if test "${ac_cv_working_alloca_h+set}" = set; then
10930 echo $ECHO_N "(cached) $ECHO_C" >&6
10931 else
10932 cat >conftest.$ac_ext <<_ACEOF
10933 /* confdefs.h. */
10934 _ACEOF
10935 cat confdefs.h >>conftest.$ac_ext
10936 cat >>conftest.$ac_ext <<_ACEOF
10937 /* end confdefs.h. */
10938 #include <alloca.h>
10940 main ()
10942 char *p = (char *) alloca (2 * sizeof (int));
10944 return 0;
10946 _ACEOF
10947 rm -f conftest.$ac_objext conftest$ac_exeext
10948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10949 (eval $ac_link) 2>conftest.er1
10950 ac_status=$?
10951 grep -v '^ *+' conftest.er1 >conftest.err
10952 rm -f conftest.er1
10953 cat conftest.err >&5
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); } &&
10956 { ac_try='test -z "$ac_c_werror_flag"
10957 || test ! -s conftest.err'
10958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10959 (eval $ac_try) 2>&5
10960 ac_status=$?
10961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10962 (exit $ac_status); }; } &&
10963 { ac_try='test -s conftest$ac_exeext'
10964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10965 (eval $ac_try) 2>&5
10966 ac_status=$?
10967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968 (exit $ac_status); }; }; then
10969 ac_cv_working_alloca_h=yes
10970 else
10971 echo "$as_me: failed program was:" >&5
10972 sed 's/^/| /' conftest.$ac_ext >&5
10974 ac_cv_working_alloca_h=no
10976 rm -f conftest.err conftest.$ac_objext \
10977 conftest$ac_exeext conftest.$ac_ext
10979 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10980 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10981 if test $ac_cv_working_alloca_h = yes; then
10983 cat >>confdefs.h <<\_ACEOF
10984 #define HAVE_ALLOCA_H 1
10985 _ACEOF
10989 echo "$as_me:$LINENO: checking for alloca" >&5
10990 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10991 if test "${ac_cv_func_alloca_works+set}" = set; then
10992 echo $ECHO_N "(cached) $ECHO_C" >&6
10993 else
10994 cat >conftest.$ac_ext <<_ACEOF
10995 /* confdefs.h. */
10996 _ACEOF
10997 cat confdefs.h >>conftest.$ac_ext
10998 cat >>conftest.$ac_ext <<_ACEOF
10999 /* end confdefs.h. */
11000 #ifdef __GNUC__
11001 # define alloca __builtin_alloca
11002 #else
11003 # ifdef _MSC_VER
11004 # include <malloc.h>
11005 # define alloca _alloca
11006 # else
11007 # if HAVE_ALLOCA_H
11008 # include <alloca.h>
11009 # else
11010 # ifdef _AIX
11011 #pragma alloca
11012 # else
11013 # ifndef alloca /* predefined by HP cc +Olibcalls */
11014 char *alloca ();
11015 # endif
11016 # endif
11017 # endif
11018 # endif
11019 #endif
11022 main ()
11024 char *p = (char *) alloca (1);
11026 return 0;
11028 _ACEOF
11029 rm -f conftest.$ac_objext conftest$ac_exeext
11030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11031 (eval $ac_link) 2>conftest.er1
11032 ac_status=$?
11033 grep -v '^ *+' conftest.er1 >conftest.err
11034 rm -f conftest.er1
11035 cat conftest.err >&5
11036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037 (exit $ac_status); } &&
11038 { ac_try='test -z "$ac_c_werror_flag"
11039 || test ! -s conftest.err'
11040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11041 (eval $ac_try) 2>&5
11042 ac_status=$?
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); }; } &&
11045 { ac_try='test -s conftest$ac_exeext'
11046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11047 (eval $ac_try) 2>&5
11048 ac_status=$?
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); }; }; then
11051 ac_cv_func_alloca_works=yes
11052 else
11053 echo "$as_me: failed program was:" >&5
11054 sed 's/^/| /' conftest.$ac_ext >&5
11056 ac_cv_func_alloca_works=no
11058 rm -f conftest.err conftest.$ac_objext \
11059 conftest$ac_exeext conftest.$ac_ext
11061 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11062 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
11064 if test $ac_cv_func_alloca_works = yes; then
11066 cat >>confdefs.h <<\_ACEOF
11067 #define HAVE_ALLOCA 1
11068 _ACEOF
11070 else
11071 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11072 # that cause trouble. Some versions do not even contain alloca or
11073 # contain a buggy version. If you still want to use their alloca,
11074 # use ar to extract alloca.o from them instead of compiling alloca.c.
11076 ALLOCA=alloca.$ac_objext
11078 cat >>confdefs.h <<\_ACEOF
11079 #define C_ALLOCA 1
11080 _ACEOF
11083 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
11084 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
11085 if test "${ac_cv_os_cray+set}" = set; then
11086 echo $ECHO_N "(cached) $ECHO_C" >&6
11087 else
11088 cat >conftest.$ac_ext <<_ACEOF
11089 /* confdefs.h. */
11090 _ACEOF
11091 cat confdefs.h >>conftest.$ac_ext
11092 cat >>conftest.$ac_ext <<_ACEOF
11093 /* end confdefs.h. */
11094 #if defined(CRAY) && ! defined(CRAY2)
11095 webecray
11096 #else
11097 wenotbecray
11098 #endif
11100 _ACEOF
11101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11102 $EGREP "webecray" >/dev/null 2>&1; then
11103 ac_cv_os_cray=yes
11104 else
11105 ac_cv_os_cray=no
11107 rm -f conftest*
11110 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
11111 echo "${ECHO_T}$ac_cv_os_cray" >&6
11112 if test $ac_cv_os_cray = yes; then
11113 for ac_func in _getb67 GETB67 getb67; do
11114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11115 echo "$as_me:$LINENO: checking for $ac_func" >&5
11116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11117 if eval "test \"\${$as_ac_var+set}\" = set"; then
11118 echo $ECHO_N "(cached) $ECHO_C" >&6
11119 else
11120 cat >conftest.$ac_ext <<_ACEOF
11121 /* confdefs.h. */
11122 _ACEOF
11123 cat confdefs.h >>conftest.$ac_ext
11124 cat >>conftest.$ac_ext <<_ACEOF
11125 /* end confdefs.h. */
11126 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11127 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11128 #define $ac_func innocuous_$ac_func
11130 /* System header to define __stub macros and hopefully few prototypes,
11131 which can conflict with char $ac_func (); below.
11132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11133 <limits.h> exists even on freestanding compilers. */
11135 #ifdef __STDC__
11136 # include <limits.h>
11137 #else
11138 # include <assert.h>
11139 #endif
11141 #undef $ac_func
11143 /* Override any gcc2 internal prototype to avoid an error. */
11144 #ifdef __cplusplus
11145 extern "C"
11147 #endif
11148 /* We use char because int might match the return type of a gcc2
11149 builtin and then its argument prototype would still apply. */
11150 char $ac_func ();
11151 /* The GNU C library defines this for functions which it implements
11152 to always fail with ENOSYS. Some functions are actually named
11153 something starting with __ and the normal name is an alias. */
11154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11155 choke me
11156 #else
11157 char (*f) () = $ac_func;
11158 #endif
11159 #ifdef __cplusplus
11161 #endif
11164 main ()
11166 return f != $ac_func;
11168 return 0;
11170 _ACEOF
11171 rm -f conftest.$ac_objext conftest$ac_exeext
11172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11173 (eval $ac_link) 2>conftest.er1
11174 ac_status=$?
11175 grep -v '^ *+' conftest.er1 >conftest.err
11176 rm -f conftest.er1
11177 cat conftest.err >&5
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); } &&
11180 { ac_try='test -z "$ac_c_werror_flag"
11181 || test ! -s conftest.err'
11182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11183 (eval $ac_try) 2>&5
11184 ac_status=$?
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); }; } &&
11187 { ac_try='test -s conftest$ac_exeext'
11188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11189 (eval $ac_try) 2>&5
11190 ac_status=$?
11191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192 (exit $ac_status); }; }; then
11193 eval "$as_ac_var=yes"
11194 else
11195 echo "$as_me: failed program was:" >&5
11196 sed 's/^/| /' conftest.$ac_ext >&5
11198 eval "$as_ac_var=no"
11200 rm -f conftest.err conftest.$ac_objext \
11201 conftest$ac_exeext conftest.$ac_ext
11203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11204 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11205 if test `eval echo '${'$as_ac_var'}'` = yes; then
11207 cat >>confdefs.h <<_ACEOF
11208 #define CRAY_STACKSEG_END $ac_func
11209 _ACEOF
11211 break
11214 done
11217 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
11218 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
11219 if test "${ac_cv_c_stack_direction+set}" = set; then
11220 echo $ECHO_N "(cached) $ECHO_C" >&6
11221 else
11222 if test "$cross_compiling" = yes; then
11223 ac_cv_c_stack_direction=0
11224 else
11225 cat >conftest.$ac_ext <<_ACEOF
11226 /* confdefs.h. */
11227 _ACEOF
11228 cat confdefs.h >>conftest.$ac_ext
11229 cat >>conftest.$ac_ext <<_ACEOF
11230 /* end confdefs.h. */
11232 find_stack_direction ()
11234 static char *addr = 0;
11235 auto char dummy;
11236 if (addr == 0)
11238 addr = &dummy;
11239 return find_stack_direction ();
11241 else
11242 return (&dummy > addr) ? 1 : -1;
11246 main ()
11248 exit (find_stack_direction () < 0);
11250 _ACEOF
11251 rm -f conftest$ac_exeext
11252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11253 (eval $ac_link) 2>&5
11254 ac_status=$?
11255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11258 (eval $ac_try) 2>&5
11259 ac_status=$?
11260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261 (exit $ac_status); }; }; then
11262 ac_cv_c_stack_direction=1
11263 else
11264 echo "$as_me: program exited with status $ac_status" >&5
11265 echo "$as_me: failed program was:" >&5
11266 sed 's/^/| /' conftest.$ac_ext >&5
11268 ( exit $ac_status )
11269 ac_cv_c_stack_direction=-1
11271 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11274 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11275 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
11277 cat >>confdefs.h <<_ACEOF
11278 #define STACK_DIRECTION $ac_cv_c_stack_direction
11279 _ACEOF
11285 echo "$as_me:$LINENO: checking for double" >&5
11286 echo $ECHO_N "checking for double... $ECHO_C" >&6
11287 if test "${ac_cv_type_double+set}" = set; then
11288 echo $ECHO_N "(cached) $ECHO_C" >&6
11289 else
11290 cat >conftest.$ac_ext <<_ACEOF
11291 /* confdefs.h. */
11292 _ACEOF
11293 cat confdefs.h >>conftest.$ac_ext
11294 cat >>conftest.$ac_ext <<_ACEOF
11295 /* end confdefs.h. */
11296 $ac_includes_default
11298 main ()
11300 if ((double *) 0)
11301 return 0;
11302 if (sizeof (double))
11303 return 0;
11305 return 0;
11307 _ACEOF
11308 rm -f conftest.$ac_objext
11309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11310 (eval $ac_compile) 2>conftest.er1
11311 ac_status=$?
11312 grep -v '^ *+' conftest.er1 >conftest.err
11313 rm -f conftest.er1
11314 cat conftest.err >&5
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); } &&
11317 { ac_try='test -z "$ac_c_werror_flag"
11318 || test ! -s conftest.err'
11319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11320 (eval $ac_try) 2>&5
11321 ac_status=$?
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); }; } &&
11324 { ac_try='test -s conftest.$ac_objext'
11325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11326 (eval $ac_try) 2>&5
11327 ac_status=$?
11328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329 (exit $ac_status); }; }; then
11330 ac_cv_type_double=yes
11331 else
11332 echo "$as_me: failed program was:" >&5
11333 sed 's/^/| /' conftest.$ac_ext >&5
11335 ac_cv_type_double=no
11337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11339 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
11340 echo "${ECHO_T}$ac_cv_type_double" >&6
11342 echo "$as_me:$LINENO: checking size of double" >&5
11343 echo $ECHO_N "checking size of double... $ECHO_C" >&6
11344 if test "${ac_cv_sizeof_double+set}" = set; then
11345 echo $ECHO_N "(cached) $ECHO_C" >&6
11346 else
11347 if test "$ac_cv_type_double" = yes; then
11348 # The cast to unsigned long works around a bug in the HP C Compiler
11349 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11350 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11351 # This bug is HP SR number 8606223364.
11352 if test "$cross_compiling" = yes; then
11353 # Depending upon the size, compute the lo and hi bounds.
11354 cat >conftest.$ac_ext <<_ACEOF
11355 /* confdefs.h. */
11356 _ACEOF
11357 cat confdefs.h >>conftest.$ac_ext
11358 cat >>conftest.$ac_ext <<_ACEOF
11359 /* end confdefs.h. */
11360 $ac_includes_default
11362 main ()
11364 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
11365 test_array [0] = 0
11368 return 0;
11370 _ACEOF
11371 rm -f conftest.$ac_objext
11372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11373 (eval $ac_compile) 2>conftest.er1
11374 ac_status=$?
11375 grep -v '^ *+' conftest.er1 >conftest.err
11376 rm -f conftest.er1
11377 cat conftest.err >&5
11378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11379 (exit $ac_status); } &&
11380 { ac_try='test -z "$ac_c_werror_flag"
11381 || test ! -s conftest.err'
11382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11383 (eval $ac_try) 2>&5
11384 ac_status=$?
11385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386 (exit $ac_status); }; } &&
11387 { ac_try='test -s conftest.$ac_objext'
11388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11389 (eval $ac_try) 2>&5
11390 ac_status=$?
11391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392 (exit $ac_status); }; }; then
11393 ac_lo=0 ac_mid=0
11394 while :; do
11395 cat >conftest.$ac_ext <<_ACEOF
11396 /* confdefs.h. */
11397 _ACEOF
11398 cat confdefs.h >>conftest.$ac_ext
11399 cat >>conftest.$ac_ext <<_ACEOF
11400 /* end confdefs.h. */
11401 $ac_includes_default
11403 main ()
11405 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
11406 test_array [0] = 0
11409 return 0;
11411 _ACEOF
11412 rm -f conftest.$ac_objext
11413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11414 (eval $ac_compile) 2>conftest.er1
11415 ac_status=$?
11416 grep -v '^ *+' conftest.er1 >conftest.err
11417 rm -f conftest.er1
11418 cat conftest.err >&5
11419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420 (exit $ac_status); } &&
11421 { ac_try='test -z "$ac_c_werror_flag"
11422 || test ! -s conftest.err'
11423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11424 (eval $ac_try) 2>&5
11425 ac_status=$?
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); }; } &&
11428 { ac_try='test -s conftest.$ac_objext'
11429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11430 (eval $ac_try) 2>&5
11431 ac_status=$?
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); }; }; then
11434 ac_hi=$ac_mid; break
11435 else
11436 echo "$as_me: failed program was:" >&5
11437 sed 's/^/| /' conftest.$ac_ext >&5
11439 ac_lo=`expr $ac_mid + 1`
11440 if test $ac_lo -le $ac_mid; then
11441 ac_lo= ac_hi=
11442 break
11444 ac_mid=`expr 2 '*' $ac_mid + 1`
11446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11447 done
11448 else
11449 echo "$as_me: failed program was:" >&5
11450 sed 's/^/| /' conftest.$ac_ext >&5
11452 cat >conftest.$ac_ext <<_ACEOF
11453 /* confdefs.h. */
11454 _ACEOF
11455 cat confdefs.h >>conftest.$ac_ext
11456 cat >>conftest.$ac_ext <<_ACEOF
11457 /* end confdefs.h. */
11458 $ac_includes_default
11460 main ()
11462 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
11463 test_array [0] = 0
11466 return 0;
11468 _ACEOF
11469 rm -f conftest.$ac_objext
11470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11471 (eval $ac_compile) 2>conftest.er1
11472 ac_status=$?
11473 grep -v '^ *+' conftest.er1 >conftest.err
11474 rm -f conftest.er1
11475 cat conftest.err >&5
11476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477 (exit $ac_status); } &&
11478 { ac_try='test -z "$ac_c_werror_flag"
11479 || test ! -s conftest.err'
11480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11481 (eval $ac_try) 2>&5
11482 ac_status=$?
11483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484 (exit $ac_status); }; } &&
11485 { ac_try='test -s conftest.$ac_objext'
11486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11487 (eval $ac_try) 2>&5
11488 ac_status=$?
11489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11490 (exit $ac_status); }; }; then
11491 ac_hi=-1 ac_mid=-1
11492 while :; do
11493 cat >conftest.$ac_ext <<_ACEOF
11494 /* confdefs.h. */
11495 _ACEOF
11496 cat confdefs.h >>conftest.$ac_ext
11497 cat >>conftest.$ac_ext <<_ACEOF
11498 /* end confdefs.h. */
11499 $ac_includes_default
11501 main ()
11503 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
11504 test_array [0] = 0
11507 return 0;
11509 _ACEOF
11510 rm -f conftest.$ac_objext
11511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11512 (eval $ac_compile) 2>conftest.er1
11513 ac_status=$?
11514 grep -v '^ *+' conftest.er1 >conftest.err
11515 rm -f conftest.er1
11516 cat conftest.err >&5
11517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518 (exit $ac_status); } &&
11519 { ac_try='test -z "$ac_c_werror_flag"
11520 || test ! -s conftest.err'
11521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11522 (eval $ac_try) 2>&5
11523 ac_status=$?
11524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11525 (exit $ac_status); }; } &&
11526 { ac_try='test -s conftest.$ac_objext'
11527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11528 (eval $ac_try) 2>&5
11529 ac_status=$?
11530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531 (exit $ac_status); }; }; then
11532 ac_lo=$ac_mid; break
11533 else
11534 echo "$as_me: failed program was:" >&5
11535 sed 's/^/| /' conftest.$ac_ext >&5
11537 ac_hi=`expr '(' $ac_mid ')' - 1`
11538 if test $ac_mid -le $ac_hi; then
11539 ac_lo= ac_hi=
11540 break
11542 ac_mid=`expr 2 '*' $ac_mid`
11544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11545 done
11546 else
11547 echo "$as_me: failed program was:" >&5
11548 sed 's/^/| /' conftest.$ac_ext >&5
11550 ac_lo= ac_hi=
11552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11555 # Binary search between lo and hi bounds.
11556 while test "x$ac_lo" != "x$ac_hi"; do
11557 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11558 cat >conftest.$ac_ext <<_ACEOF
11559 /* confdefs.h. */
11560 _ACEOF
11561 cat confdefs.h >>conftest.$ac_ext
11562 cat >>conftest.$ac_ext <<_ACEOF
11563 /* end confdefs.h. */
11564 $ac_includes_default
11566 main ()
11568 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
11569 test_array [0] = 0
11572 return 0;
11574 _ACEOF
11575 rm -f conftest.$ac_objext
11576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11577 (eval $ac_compile) 2>conftest.er1
11578 ac_status=$?
11579 grep -v '^ *+' conftest.er1 >conftest.err
11580 rm -f conftest.er1
11581 cat conftest.err >&5
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); } &&
11584 { ac_try='test -z "$ac_c_werror_flag"
11585 || test ! -s conftest.err'
11586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11587 (eval $ac_try) 2>&5
11588 ac_status=$?
11589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590 (exit $ac_status); }; } &&
11591 { ac_try='test -s conftest.$ac_objext'
11592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11593 (eval $ac_try) 2>&5
11594 ac_status=$?
11595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596 (exit $ac_status); }; }; then
11597 ac_hi=$ac_mid
11598 else
11599 echo "$as_me: failed program was:" >&5
11600 sed 's/^/| /' conftest.$ac_ext >&5
11602 ac_lo=`expr '(' $ac_mid ')' + 1`
11604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11605 done
11606 case $ac_lo in
11607 ?*) ac_cv_sizeof_double=$ac_lo;;
11608 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11609 echo "$as_me: error: in \`$ac_pwd':" >&2;}
11610 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
11611 See \`config.log' for more details." >&5
11612 echo "$as_me: error: cannot compute sizeof (double), 77
11613 See \`config.log' for more details." >&2;}
11614 { (exit 1); exit 1; }; }; } ;;
11615 esac
11616 else
11617 if test "$cross_compiling" = yes; then
11618 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11619 echo "$as_me: error: in \`$ac_pwd':" >&2;}
11620 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11621 See \`config.log' for more details." >&5
11622 echo "$as_me: error: cannot run test program while cross compiling
11623 See \`config.log' for more details." >&2;}
11624 { (exit 1); exit 1; }; }; }
11625 else
11626 cat >conftest.$ac_ext <<_ACEOF
11627 /* confdefs.h. */
11628 _ACEOF
11629 cat confdefs.h >>conftest.$ac_ext
11630 cat >>conftest.$ac_ext <<_ACEOF
11631 /* end confdefs.h. */
11632 $ac_includes_default
11633 long longval () { return (long) (sizeof (double)); }
11634 unsigned long ulongval () { return (long) (sizeof (double)); }
11635 #include <stdio.h>
11636 #include <stdlib.h>
11638 main ()
11641 FILE *f = fopen ("conftest.val", "w");
11642 if (! f)
11643 exit (1);
11644 if (((long) (sizeof (double))) < 0)
11646 long i = longval ();
11647 if (i != ((long) (sizeof (double))))
11648 exit (1);
11649 fprintf (f, "%ld\n", i);
11651 else
11653 unsigned long i = ulongval ();
11654 if (i != ((long) (sizeof (double))))
11655 exit (1);
11656 fprintf (f, "%lu\n", i);
11658 exit (ferror (f) || fclose (f) != 0);
11661 return 0;
11663 _ACEOF
11664 rm -f conftest$ac_exeext
11665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11666 (eval $ac_link) 2>&5
11667 ac_status=$?
11668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11671 (eval $ac_try) 2>&5
11672 ac_status=$?
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); }; }; then
11675 ac_cv_sizeof_double=`cat conftest.val`
11676 else
11677 echo "$as_me: program exited with status $ac_status" >&5
11678 echo "$as_me: failed program was:" >&5
11679 sed 's/^/| /' conftest.$ac_ext >&5
11681 ( exit $ac_status )
11682 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11683 echo "$as_me: error: in \`$ac_pwd':" >&2;}
11684 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
11685 See \`config.log' for more details." >&5
11686 echo "$as_me: error: cannot compute sizeof (double), 77
11687 See \`config.log' for more details." >&2;}
11688 { (exit 1); exit 1; }; }; }
11690 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11693 rm -f conftest.val
11694 else
11695 ac_cv_sizeof_double=0
11698 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
11699 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
11700 cat >>confdefs.h <<_ACEOF
11701 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
11702 _ACEOF
11705 echo "$as_me:$LINENO: checking for long double" >&5
11706 echo $ECHO_N "checking for long double... $ECHO_C" >&6
11707 if test "${ac_cv_type_long_double+set}" = set; then
11708 echo $ECHO_N "(cached) $ECHO_C" >&6
11709 else
11710 cat >conftest.$ac_ext <<_ACEOF
11711 /* confdefs.h. */
11712 _ACEOF
11713 cat confdefs.h >>conftest.$ac_ext
11714 cat >>conftest.$ac_ext <<_ACEOF
11715 /* end confdefs.h. */
11716 $ac_includes_default
11718 main ()
11720 if ((long double *) 0)
11721 return 0;
11722 if (sizeof (long double))
11723 return 0;
11725 return 0;
11727 _ACEOF
11728 rm -f conftest.$ac_objext
11729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11730 (eval $ac_compile) 2>conftest.er1
11731 ac_status=$?
11732 grep -v '^ *+' conftest.er1 >conftest.err
11733 rm -f conftest.er1
11734 cat conftest.err >&5
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); } &&
11737 { ac_try='test -z "$ac_c_werror_flag"
11738 || test ! -s conftest.err'
11739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11740 (eval $ac_try) 2>&5
11741 ac_status=$?
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); }; } &&
11744 { ac_try='test -s conftest.$ac_objext'
11745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11746 (eval $ac_try) 2>&5
11747 ac_status=$?
11748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749 (exit $ac_status); }; }; then
11750 ac_cv_type_long_double=yes
11751 else
11752 echo "$as_me: failed program was:" >&5
11753 sed 's/^/| /' conftest.$ac_ext >&5
11755 ac_cv_type_long_double=no
11757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11759 echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11760 echo "${ECHO_T}$ac_cv_type_long_double" >&6
11762 echo "$as_me:$LINENO: checking size of long double" >&5
11763 echo $ECHO_N "checking size of long double... $ECHO_C" >&6
11764 if test "${ac_cv_sizeof_long_double+set}" = set; then
11765 echo $ECHO_N "(cached) $ECHO_C" >&6
11766 else
11767 if test "$ac_cv_type_long_double" = yes; then
11768 # The cast to unsigned long works around a bug in the HP C Compiler
11769 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11770 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11771 # This bug is HP SR number 8606223364.
11772 if test "$cross_compiling" = yes; then
11773 # Depending upon the size, compute the lo and hi bounds.
11774 cat >conftest.$ac_ext <<_ACEOF
11775 /* confdefs.h. */
11776 _ACEOF
11777 cat confdefs.h >>conftest.$ac_ext
11778 cat >>conftest.$ac_ext <<_ACEOF
11779 /* end confdefs.h. */
11780 $ac_includes_default
11782 main ()
11784 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= 0)];
11785 test_array [0] = 0
11788 return 0;
11790 _ACEOF
11791 rm -f conftest.$ac_objext
11792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11793 (eval $ac_compile) 2>conftest.er1
11794 ac_status=$?
11795 grep -v '^ *+' conftest.er1 >conftest.err
11796 rm -f conftest.er1
11797 cat conftest.err >&5
11798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799 (exit $ac_status); } &&
11800 { ac_try='test -z "$ac_c_werror_flag"
11801 || test ! -s conftest.err'
11802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11803 (eval $ac_try) 2>&5
11804 ac_status=$?
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); }; } &&
11807 { ac_try='test -s conftest.$ac_objext'
11808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11809 (eval $ac_try) 2>&5
11810 ac_status=$?
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); }; }; then
11813 ac_lo=0 ac_mid=0
11814 while :; do
11815 cat >conftest.$ac_ext <<_ACEOF
11816 /* confdefs.h. */
11817 _ACEOF
11818 cat confdefs.h >>conftest.$ac_ext
11819 cat >>conftest.$ac_ext <<_ACEOF
11820 /* end confdefs.h. */
11821 $ac_includes_default
11823 main ()
11825 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
11826 test_array [0] = 0
11829 return 0;
11831 _ACEOF
11832 rm -f conftest.$ac_objext
11833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11834 (eval $ac_compile) 2>conftest.er1
11835 ac_status=$?
11836 grep -v '^ *+' conftest.er1 >conftest.err
11837 rm -f conftest.er1
11838 cat conftest.err >&5
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); } &&
11841 { ac_try='test -z "$ac_c_werror_flag"
11842 || test ! -s conftest.err'
11843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11844 (eval $ac_try) 2>&5
11845 ac_status=$?
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); }; } &&
11848 { ac_try='test -s conftest.$ac_objext'
11849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11850 (eval $ac_try) 2>&5
11851 ac_status=$?
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); }; }; then
11854 ac_hi=$ac_mid; break
11855 else
11856 echo "$as_me: failed program was:" >&5
11857 sed 's/^/| /' conftest.$ac_ext >&5
11859 ac_lo=`expr $ac_mid + 1`
11860 if test $ac_lo -le $ac_mid; then
11861 ac_lo= ac_hi=
11862 break
11864 ac_mid=`expr 2 '*' $ac_mid + 1`
11866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11867 done
11868 else
11869 echo "$as_me: failed program was:" >&5
11870 sed 's/^/| /' conftest.$ac_ext >&5
11872 cat >conftest.$ac_ext <<_ACEOF
11873 /* confdefs.h. */
11874 _ACEOF
11875 cat confdefs.h >>conftest.$ac_ext
11876 cat >>conftest.$ac_ext <<_ACEOF
11877 /* end confdefs.h. */
11878 $ac_includes_default
11880 main ()
11882 static int test_array [1 - 2 * !(((long) (sizeof (long double))) < 0)];
11883 test_array [0] = 0
11886 return 0;
11888 _ACEOF
11889 rm -f conftest.$ac_objext
11890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11891 (eval $ac_compile) 2>conftest.er1
11892 ac_status=$?
11893 grep -v '^ *+' conftest.er1 >conftest.err
11894 rm -f conftest.er1
11895 cat conftest.err >&5
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); } &&
11898 { ac_try='test -z "$ac_c_werror_flag"
11899 || test ! -s conftest.err'
11900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11901 (eval $ac_try) 2>&5
11902 ac_status=$?
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); }; } &&
11905 { ac_try='test -s conftest.$ac_objext'
11906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11907 (eval $ac_try) 2>&5
11908 ac_status=$?
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); }; }; then
11911 ac_hi=-1 ac_mid=-1
11912 while :; do
11913 cat >conftest.$ac_ext <<_ACEOF
11914 /* confdefs.h. */
11915 _ACEOF
11916 cat confdefs.h >>conftest.$ac_ext
11917 cat >>conftest.$ac_ext <<_ACEOF
11918 /* end confdefs.h. */
11919 $ac_includes_default
11921 main ()
11923 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= $ac_mid)];
11924 test_array [0] = 0
11927 return 0;
11929 _ACEOF
11930 rm -f conftest.$ac_objext
11931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11932 (eval $ac_compile) 2>conftest.er1
11933 ac_status=$?
11934 grep -v '^ *+' conftest.er1 >conftest.err
11935 rm -f conftest.er1
11936 cat conftest.err >&5
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); } &&
11939 { ac_try='test -z "$ac_c_werror_flag"
11940 || test ! -s conftest.err'
11941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11942 (eval $ac_try) 2>&5
11943 ac_status=$?
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); }; } &&
11946 { ac_try='test -s conftest.$ac_objext'
11947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11948 (eval $ac_try) 2>&5
11949 ac_status=$?
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); }; }; then
11952 ac_lo=$ac_mid; break
11953 else
11954 echo "$as_me: failed program was:" >&5
11955 sed 's/^/| /' conftest.$ac_ext >&5
11957 ac_hi=`expr '(' $ac_mid ')' - 1`
11958 if test $ac_mid -le $ac_hi; then
11959 ac_lo= ac_hi=
11960 break
11962 ac_mid=`expr 2 '*' $ac_mid`
11964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11965 done
11966 else
11967 echo "$as_me: failed program was:" >&5
11968 sed 's/^/| /' conftest.$ac_ext >&5
11970 ac_lo= ac_hi=
11972 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11974 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11975 # Binary search between lo and hi bounds.
11976 while test "x$ac_lo" != "x$ac_hi"; do
11977 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11978 cat >conftest.$ac_ext <<_ACEOF
11979 /* confdefs.h. */
11980 _ACEOF
11981 cat confdefs.h >>conftest.$ac_ext
11982 cat >>conftest.$ac_ext <<_ACEOF
11983 /* end confdefs.h. */
11984 $ac_includes_default
11986 main ()
11988 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
11989 test_array [0] = 0
11992 return 0;
11994 _ACEOF
11995 rm -f conftest.$ac_objext
11996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11997 (eval $ac_compile) 2>conftest.er1
11998 ac_status=$?
11999 grep -v '^ *+' conftest.er1 >conftest.err
12000 rm -f conftest.er1
12001 cat conftest.err >&5
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); } &&
12004 { ac_try='test -z "$ac_c_werror_flag"
12005 || test ! -s conftest.err'
12006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12007 (eval $ac_try) 2>&5
12008 ac_status=$?
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); }; } &&
12011 { ac_try='test -s conftest.$ac_objext'
12012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12013 (eval $ac_try) 2>&5
12014 ac_status=$?
12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); }; }; then
12017 ac_hi=$ac_mid
12018 else
12019 echo "$as_me: failed program was:" >&5
12020 sed 's/^/| /' conftest.$ac_ext >&5
12022 ac_lo=`expr '(' $ac_mid ')' + 1`
12024 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12025 done
12026 case $ac_lo in
12027 ?*) ac_cv_sizeof_long_double=$ac_lo;;
12028 '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12029 echo "$as_me: error: in \`$ac_pwd':" >&2;}
12030 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
12031 See \`config.log' for more details." >&5
12032 echo "$as_me: error: cannot compute sizeof (long double), 77
12033 See \`config.log' for more details." >&2;}
12034 { (exit 1); exit 1; }; }; } ;;
12035 esac
12036 else
12037 if test "$cross_compiling" = yes; then
12038 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12039 echo "$as_me: error: in \`$ac_pwd':" >&2;}
12040 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12041 See \`config.log' for more details." >&5
12042 echo "$as_me: error: cannot run test program while cross compiling
12043 See \`config.log' for more details." >&2;}
12044 { (exit 1); exit 1; }; }; }
12045 else
12046 cat >conftest.$ac_ext <<_ACEOF
12047 /* confdefs.h. */
12048 _ACEOF
12049 cat confdefs.h >>conftest.$ac_ext
12050 cat >>conftest.$ac_ext <<_ACEOF
12051 /* end confdefs.h. */
12052 $ac_includes_default
12053 long longval () { return (long) (sizeof (long double)); }
12054 unsigned long ulongval () { return (long) (sizeof (long double)); }
12055 #include <stdio.h>
12056 #include <stdlib.h>
12058 main ()
12061 FILE *f = fopen ("conftest.val", "w");
12062 if (! f)
12063 exit (1);
12064 if (((long) (sizeof (long double))) < 0)
12066 long i = longval ();
12067 if (i != ((long) (sizeof (long double))))
12068 exit (1);
12069 fprintf (f, "%ld\n", i);
12071 else
12073 unsigned long i = ulongval ();
12074 if (i != ((long) (sizeof (long double))))
12075 exit (1);
12076 fprintf (f, "%lu\n", i);
12078 exit (ferror (f) || fclose (f) != 0);
12081 return 0;
12083 _ACEOF
12084 rm -f conftest$ac_exeext
12085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12086 (eval $ac_link) 2>&5
12087 ac_status=$?
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12091 (eval $ac_try) 2>&5
12092 ac_status=$?
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); }; }; then
12095 ac_cv_sizeof_long_double=`cat conftest.val`
12096 else
12097 echo "$as_me: program exited with status $ac_status" >&5
12098 echo "$as_me: failed program was:" >&5
12099 sed 's/^/| /' conftest.$ac_ext >&5
12101 ( exit $ac_status )
12102 { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12103 echo "$as_me: error: in \`$ac_pwd':" >&2;}
12104 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
12105 See \`config.log' for more details." >&5
12106 echo "$as_me: error: cannot compute sizeof (long double), 77
12107 See \`config.log' for more details." >&2;}
12108 { (exit 1); exit 1; }; }; }
12110 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12113 rm -f conftest.val
12114 else
12115 ac_cv_sizeof_long_double=0
12118 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12119 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6
12120 cat >>confdefs.h <<_ACEOF
12121 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12122 _ACEOF
12126 # Also AC_SUBST this variable for ffi.h.
12127 if test -z "$HAVE_LONG_DOUBLE"; then
12128 HAVE_LONG_DOUBLE=0
12129 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
12130 if test $ac_cv_sizeof_long_double != 0; then
12131 HAVE_LONG_DOUBLE=1
12133 cat >>confdefs.h <<\_ACEOF
12134 #define HAVE_LONG_DOUBLE 1
12135 _ACEOF
12142 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
12143 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
12144 if test "${ac_cv_c_bigendian+set}" = set; then
12145 echo $ECHO_N "(cached) $ECHO_C" >&6
12146 else
12147 # See if sys/param.h defines the BYTE_ORDER macro.
12148 cat >conftest.$ac_ext <<_ACEOF
12149 /* confdefs.h. */
12150 _ACEOF
12151 cat confdefs.h >>conftest.$ac_ext
12152 cat >>conftest.$ac_ext <<_ACEOF
12153 /* end confdefs.h. */
12154 #include <sys/types.h>
12155 #include <sys/param.h>
12158 main ()
12160 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12161 bogus endian macros
12162 #endif
12165 return 0;
12167 _ACEOF
12168 rm -f conftest.$ac_objext
12169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12170 (eval $ac_compile) 2>conftest.er1
12171 ac_status=$?
12172 grep -v '^ *+' conftest.er1 >conftest.err
12173 rm -f conftest.er1
12174 cat conftest.err >&5
12175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176 (exit $ac_status); } &&
12177 { ac_try='test -z "$ac_c_werror_flag"
12178 || test ! -s conftest.err'
12179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12180 (eval $ac_try) 2>&5
12181 ac_status=$?
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); }; } &&
12184 { ac_try='test -s conftest.$ac_objext'
12185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12186 (eval $ac_try) 2>&5
12187 ac_status=$?
12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 (exit $ac_status); }; }; then
12190 # It does; now see whether it defined to BIG_ENDIAN or not.
12191 cat >conftest.$ac_ext <<_ACEOF
12192 /* confdefs.h. */
12193 _ACEOF
12194 cat confdefs.h >>conftest.$ac_ext
12195 cat >>conftest.$ac_ext <<_ACEOF
12196 /* end confdefs.h. */
12197 #include <sys/types.h>
12198 #include <sys/param.h>
12201 main ()
12203 #if BYTE_ORDER != BIG_ENDIAN
12204 not big endian
12205 #endif
12208 return 0;
12210 _ACEOF
12211 rm -f conftest.$ac_objext
12212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12213 (eval $ac_compile) 2>conftest.er1
12214 ac_status=$?
12215 grep -v '^ *+' conftest.er1 >conftest.err
12216 rm -f conftest.er1
12217 cat conftest.err >&5
12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); } &&
12220 { ac_try='test -z "$ac_c_werror_flag"
12221 || test ! -s conftest.err'
12222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12223 (eval $ac_try) 2>&5
12224 ac_status=$?
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); }; } &&
12227 { ac_try='test -s conftest.$ac_objext'
12228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12229 (eval $ac_try) 2>&5
12230 ac_status=$?
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); }; }; then
12233 ac_cv_c_bigendian=yes
12234 else
12235 echo "$as_me: failed program was:" >&5
12236 sed 's/^/| /' conftest.$ac_ext >&5
12238 ac_cv_c_bigendian=no
12240 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12241 else
12242 echo "$as_me: failed program was:" >&5
12243 sed 's/^/| /' conftest.$ac_ext >&5
12245 # It does not; compile a test program.
12246 if test "$cross_compiling" = yes; then
12247 # try to guess the endianness by grepping values into an object file
12248 ac_cv_c_bigendian=unknown
12249 cat >conftest.$ac_ext <<_ACEOF
12250 /* confdefs.h. */
12251 _ACEOF
12252 cat confdefs.h >>conftest.$ac_ext
12253 cat >>conftest.$ac_ext <<_ACEOF
12254 /* end confdefs.h. */
12255 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12256 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12257 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
12258 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12259 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12260 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
12262 main ()
12264 _ascii (); _ebcdic ();
12266 return 0;
12268 _ACEOF
12269 rm -f conftest.$ac_objext
12270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12271 (eval $ac_compile) 2>conftest.er1
12272 ac_status=$?
12273 grep -v '^ *+' conftest.er1 >conftest.err
12274 rm -f conftest.er1
12275 cat conftest.err >&5
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); } &&
12278 { ac_try='test -z "$ac_c_werror_flag"
12279 || test ! -s conftest.err'
12280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12281 (eval $ac_try) 2>&5
12282 ac_status=$?
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); }; } &&
12285 { ac_try='test -s conftest.$ac_objext'
12286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12287 (eval $ac_try) 2>&5
12288 ac_status=$?
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); }; }; then
12291 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
12292 ac_cv_c_bigendian=yes
12294 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12295 if test "$ac_cv_c_bigendian" = unknown; then
12296 ac_cv_c_bigendian=no
12297 else
12298 # finding both strings is unlikely to happen, but who knows?
12299 ac_cv_c_bigendian=unknown
12302 else
12303 echo "$as_me: failed program was:" >&5
12304 sed 's/^/| /' conftest.$ac_ext >&5
12307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12308 else
12309 cat >conftest.$ac_ext <<_ACEOF
12310 /* confdefs.h. */
12311 _ACEOF
12312 cat confdefs.h >>conftest.$ac_ext
12313 cat >>conftest.$ac_ext <<_ACEOF
12314 /* end confdefs.h. */
12316 main ()
12318 /* Are we little or big endian? From Harbison&Steele. */
12319 union
12321 long l;
12322 char c[sizeof (long)];
12323 } u;
12324 u.l = 1;
12325 exit (u.c[sizeof (long) - 1] == 1);
12327 _ACEOF
12328 rm -f conftest$ac_exeext
12329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12330 (eval $ac_link) 2>&5
12331 ac_status=$?
12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12335 (eval $ac_try) 2>&5
12336 ac_status=$?
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); }; }; then
12339 ac_cv_c_bigendian=no
12340 else
12341 echo "$as_me: program exited with status $ac_status" >&5
12342 echo "$as_me: failed program was:" >&5
12343 sed 's/^/| /' conftest.$ac_ext >&5
12345 ( exit $ac_status )
12346 ac_cv_c_bigendian=yes
12348 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12353 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
12354 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
12355 case $ac_cv_c_bigendian in
12356 yes)
12358 cat >>confdefs.h <<\_ACEOF
12359 #define WORDS_BIGENDIAN 1
12360 _ACEOF
12365 { { echo "$as_me:$LINENO: error: unknown endianness
12366 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
12367 echo "$as_me: error: unknown endianness
12368 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
12369 { (exit 1); exit 1; }; } ;;
12370 esac
12373 echo "$as_me:$LINENO: checking assembler .cfi pseudo-op support" >&5
12374 echo $ECHO_N "checking assembler .cfi pseudo-op support... $ECHO_C" >&6
12375 if test "${libffi_cv_as_cfi_pseudo_op+set}" = set; then
12376 echo $ECHO_N "(cached) $ECHO_C" >&6
12377 else
12379 libffi_cv_as_cfi_pseudo_op=unknown
12380 cat >conftest.$ac_ext <<_ACEOF
12381 /* confdefs.h. */
12382 _ACEOF
12383 cat confdefs.h >>conftest.$ac_ext
12384 cat >>conftest.$ac_ext <<_ACEOF
12385 /* end confdefs.h. */
12386 asm (".cfi_startproc\n\t.cfi_endproc");
12388 main ()
12392 return 0;
12394 _ACEOF
12395 rm -f conftest.$ac_objext
12396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12397 (eval $ac_compile) 2>conftest.er1
12398 ac_status=$?
12399 grep -v '^ *+' conftest.er1 >conftest.err
12400 rm -f conftest.er1
12401 cat conftest.err >&5
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); } &&
12404 { ac_try='test -z "$ac_c_werror_flag"
12405 || test ! -s conftest.err'
12406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12407 (eval $ac_try) 2>&5
12408 ac_status=$?
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); }; } &&
12411 { ac_try='test -s conftest.$ac_objext'
12412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12413 (eval $ac_try) 2>&5
12414 ac_status=$?
12415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12416 (exit $ac_status); }; }; then
12417 libffi_cv_as_cfi_pseudo_op=yes
12418 else
12419 echo "$as_me: failed program was:" >&5
12420 sed 's/^/| /' conftest.$ac_ext >&5
12422 libffi_cv_as_cfi_pseudo_op=no
12424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12427 echo "$as_me:$LINENO: result: $libffi_cv_as_cfi_pseudo_op" >&5
12428 echo "${ECHO_T}$libffi_cv_as_cfi_pseudo_op" >&6
12429 if test "x$libffi_cv_as_cfi_pseudo_op" = xyes; then
12431 cat >>confdefs.h <<\_ACEOF
12432 #define HAVE_AS_CFI_PSEUDO_OP 1
12433 _ACEOF
12437 if test x$TARGET = xSPARC; then
12438 echo "$as_me:$LINENO: checking assembler and linker support unaligned pc related relocs" >&5
12439 echo $ECHO_N "checking assembler and linker support unaligned pc related relocs... $ECHO_C" >&6
12440 if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then
12441 echo $ECHO_N "(cached) $ECHO_C" >&6
12442 else
12444 save_CFLAGS="$CFLAGS"
12445 save_LDFLAGS="$LDFLAGS"
12446 CFLAGS="$CFLAGS -fpic"
12447 LDFLAGS="$LDFLAGS -shared"
12448 cat >conftest.$ac_ext <<_ACEOF
12449 /* confdefs.h. */
12450 _ACEOF
12451 cat confdefs.h >>conftest.$ac_ext
12452 cat >>conftest.$ac_ext <<_ACEOF
12453 /* end confdefs.h. */
12454 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
12456 main ()
12460 return 0;
12462 _ACEOF
12463 rm -f conftest.$ac_objext conftest$ac_exeext
12464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12465 (eval $ac_link) 2>conftest.er1
12466 ac_status=$?
12467 grep -v '^ *+' conftest.er1 >conftest.err
12468 rm -f conftest.er1
12469 cat conftest.err >&5
12470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471 (exit $ac_status); } &&
12472 { ac_try='test -z "$ac_c_werror_flag"
12473 || test ! -s conftest.err'
12474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12475 (eval $ac_try) 2>&5
12476 ac_status=$?
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); }; } &&
12479 { ac_try='test -s conftest$ac_exeext'
12480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12481 (eval $ac_try) 2>&5
12482 ac_status=$?
12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); }; }; then
12485 libffi_cv_as_sparc_ua_pcrel=yes
12486 else
12487 echo "$as_me: failed program was:" >&5
12488 sed 's/^/| /' conftest.$ac_ext >&5
12490 libffi_cv_as_sparc_ua_pcrel=no
12492 rm -f conftest.err conftest.$ac_objext \
12493 conftest$ac_exeext conftest.$ac_ext
12494 CFLAGS="$save_CFLAGS"
12495 LDFLAGS="$save_LDFLAGS"
12497 echo "$as_me:$LINENO: result: $libffi_cv_as_sparc_ua_pcrel" >&5
12498 echo "${ECHO_T}$libffi_cv_as_sparc_ua_pcrel" >&6
12499 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
12501 cat >>confdefs.h <<\_ACEOF
12502 #define HAVE_AS_SPARC_UA_PCREL 1
12503 _ACEOF
12507 echo "$as_me:$LINENO: checking assembler .register pseudo-op support" >&5
12508 echo $ECHO_N "checking assembler .register pseudo-op support... $ECHO_C" >&6
12509 if test "${libffi_cv_as_register_pseudo_op+set}" = set; then
12510 echo $ECHO_N "(cached) $ECHO_C" >&6
12511 else
12513 libffi_cv_as_register_pseudo_op=unknown
12514 # Check if we have .register
12515 cat >conftest.$ac_ext <<_ACEOF
12516 /* confdefs.h. */
12517 _ACEOF
12518 cat confdefs.h >>conftest.$ac_ext
12519 cat >>conftest.$ac_ext <<_ACEOF
12520 /* end confdefs.h. */
12521 asm (".register %g2, #scratch");
12523 main ()
12527 return 0;
12529 _ACEOF
12530 rm -f conftest.$ac_objext
12531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12532 (eval $ac_compile) 2>conftest.er1
12533 ac_status=$?
12534 grep -v '^ *+' conftest.er1 >conftest.err
12535 rm -f conftest.er1
12536 cat conftest.err >&5
12537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12538 (exit $ac_status); } &&
12539 { ac_try='test -z "$ac_c_werror_flag"
12540 || test ! -s conftest.err'
12541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12542 (eval $ac_try) 2>&5
12543 ac_status=$?
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); }; } &&
12546 { ac_try='test -s conftest.$ac_objext'
12547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12548 (eval $ac_try) 2>&5
12549 ac_status=$?
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); }; }; then
12552 libffi_cv_as_register_pseudo_op=yes
12553 else
12554 echo "$as_me: failed program was:" >&5
12555 sed 's/^/| /' conftest.$ac_ext >&5
12557 libffi_cv_as_register_pseudo_op=no
12559 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12562 echo "$as_me:$LINENO: result: $libffi_cv_as_register_pseudo_op" >&5
12563 echo "${ECHO_T}$libffi_cv_as_register_pseudo_op" >&6
12564 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
12566 cat >>confdefs.h <<\_ACEOF
12567 #define HAVE_AS_REGISTER_PSEUDO_OP 1
12568 _ACEOF
12573 echo "$as_me:$LINENO: checking whether .eh_frame section should be read-only" >&5
12574 echo $ECHO_N "checking whether .eh_frame section should be read-only... $ECHO_C" >&6
12575 if test "${libffi_cv_ro_eh_frame+set}" = set; then
12576 echo $ECHO_N "(cached) $ECHO_C" >&6
12577 else
12579 libffi_cv_ro_eh_frame=no
12580 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
12581 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
12582 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
12583 libffi_cv_ro_eh_frame=yes
12584 elif grep '.section.*eh_frame.*#alloc' conftest.c \
12585 | grep -v '#write' > /dev/null; then
12586 libffi_cv_ro_eh_frame=yes
12589 rm -f conftest.*
12592 echo "$as_me:$LINENO: result: $libffi_cv_ro_eh_frame" >&5
12593 echo "${ECHO_T}$libffi_cv_ro_eh_frame" >&6
12594 if test "x$libffi_cv_ro_eh_frame" = xyes; then
12596 cat >>confdefs.h <<\_ACEOF
12597 #define HAVE_RO_EH_FRAME 1
12598 _ACEOF
12601 cat >>confdefs.h <<\_ACEOF
12602 #define EH_FRAME_FLAGS "a"
12603 _ACEOF
12605 else
12607 cat >>confdefs.h <<\_ACEOF
12608 #define EH_FRAME_FLAGS "aw"
12609 _ACEOF
12613 echo "$as_me:$LINENO: checking for __attribute__((visibility(\"hidden\")))" >&5
12614 echo $ECHO_N "checking for __attribute__((visibility(\"hidden\")))... $ECHO_C" >&6
12615 if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then
12616 echo $ECHO_N "(cached) $ECHO_C" >&6
12617 else
12619 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
12620 libffi_cv_hidden_visibility_attribute=no
12621 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
12622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12623 (eval $ac_try) 2>&5
12624 ac_status=$?
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); }; }; then
12627 if grep '\.hidden.*foo' conftest.s >/dev/null; then
12628 libffi_cv_hidden_visibility_attribute=yes
12631 rm -f conftest.*
12634 echo "$as_me:$LINENO: result: $libffi_cv_hidden_visibility_attribute" >&5
12635 echo "${ECHO_T}$libffi_cv_hidden_visibility_attribute" >&6
12636 if test $libffi_cv_hidden_visibility_attribute = yes; then
12638 cat >>confdefs.h <<\_ACEOF
12639 #define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1
12640 _ACEOF
12652 # Check whether --enable-debug or --disable-debug was given.
12653 if test "${enable_debug+set}" = set; then
12654 enableval="$enable_debug"
12655 if test "$enable_debug" = "yes"; then
12657 cat >>confdefs.h <<\_ACEOF
12658 #define FFI_DEBUG 1
12659 _ACEOF
12664 # Check whether --enable-structs or --disable-structs was given.
12665 if test "${enable_structs+set}" = set; then
12666 enableval="$enable_structs"
12667 if test "$enable_structs" = "no"; then
12669 cat >>confdefs.h <<\_ACEOF
12670 #define FFI_NO_STRUCTS 1
12671 _ACEOF
12676 # Check whether --enable-raw-api or --disable-raw-api was given.
12677 if test "${enable_raw_api+set}" = set; then
12678 enableval="$enable_raw_api"
12679 if test "$enable_raw_api" = "no"; then
12681 cat >>confdefs.h <<\_ACEOF
12682 #define FFI_NO_RAW_API 1
12683 _ACEOF
12688 # Check whether --enable-purify-safety or --disable-purify-safety was given.
12689 if test "${enable_purify_safety+set}" = set; then
12690 enableval="$enable_purify_safety"
12691 if test "$enable_purify_safety" = "yes"; then
12693 cat >>confdefs.h <<\_ACEOF
12694 #define USING_PURIFY 1
12695 _ACEOF
12700 if test -n "$with_cross_host" &&
12701 test x"$with_cross_host" != x"no"; then
12702 toolexecdir='$(exec_prefix)/$(target_alias)'
12703 toolexeclibdir='$(toolexecdir)/lib'
12704 else
12705 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
12706 toolexeclibdir='$(libdir)'
12708 multi_os_directory=`$CC -print-multi-os-directory`
12709 case $multi_os_directory in
12710 .) ;; # Avoid trailing /.
12711 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
12712 esac
12716 if test "${multilib}" = "yes"; then
12717 multilib_arg="--enable-multilib"
12718 else
12719 multilib_arg=
12722 ac_config_commands="$ac_config_commands include"
12724 ac_config_commands="$ac_config_commands src"
12727 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
12730 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile"
12733 cat >confcache <<\_ACEOF
12734 # This file is a shell script that caches the results of configure
12735 # tests run on this system so they can be shared between configure
12736 # scripts and configure runs, see configure's option --config-cache.
12737 # It is not useful on other systems. If it contains results you don't
12738 # want to keep, you may remove or edit it.
12740 # config.status only pays attention to the cache file if you give it
12741 # the --recheck option to rerun configure.
12743 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12744 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12745 # following values.
12747 _ACEOF
12749 # The following way of writing the cache mishandles newlines in values,
12750 # but we know of no workaround that is simple, portable, and efficient.
12751 # So, don't put newlines in cache variables' values.
12752 # Ultrix sh set writes to stderr and can't be redirected directly,
12753 # and sets the high bit in the cache file unless we assign to the vars.
12755 (set) 2>&1 |
12756 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12757 *ac_space=\ *)
12758 # `set' does not quote correctly, so add quotes (double-quote
12759 # substitution turns \\\\ into \\, and sed turns \\ into \).
12760 sed -n \
12761 "s/'/'\\\\''/g;
12762 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12765 # `set' quotes correctly as required by POSIX, so do not add quotes.
12766 sed -n \
12767 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12769 esac;
12771 sed '
12772 t clear
12773 : clear
12774 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12775 t end
12776 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12777 : end' >>confcache
12778 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12779 if test -w $cache_file; then
12780 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12781 cat confcache >$cache_file
12782 else
12783 echo "not updating unwritable cache $cache_file"
12786 rm -f confcache
12788 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12789 # Let make expand exec_prefix.
12790 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12792 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12793 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12794 # trailing colons and then remove the whole line if VPATH becomes empty
12795 # (actually we leave an empty line to preserve line numbers).
12796 if test "x$srcdir" = x.; then
12797 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12798 s/:*\$(srcdir):*/:/;
12799 s/:*\${srcdir}:*/:/;
12800 s/:*@srcdir@:*/:/;
12801 s/^\([^=]*=[ ]*\):*/\1/;
12802 s/:*$//;
12803 s/^[^=]*=[ ]*$//;
12807 DEFS=-DHAVE_CONFIG_H
12809 ac_libobjs=
12810 ac_ltlibobjs=
12811 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12812 # 1. Remove the extension, and $U if already installed.
12813 ac_i=`echo "$ac_i" |
12814 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12815 # 2. Add them.
12816 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12817 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12818 done
12819 LIBOBJS=$ac_libobjs
12821 LTLIBOBJS=$ac_ltlibobjs
12824 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12825 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12826 Usually this means the macro was only invoked conditionally." >&5
12827 echo "$as_me: error: conditional \"AMDEP\" was never defined.
12828 Usually this means the macro was only invoked conditionally." >&2;}
12829 { (exit 1); exit 1; }; }
12831 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12832 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12833 Usually this means the macro was only invoked conditionally." >&5
12834 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12835 Usually this means the macro was only invoked conditionally." >&2;}
12836 { (exit 1); exit 1; }; }
12838 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12839 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12840 Usually this means the macro was only invoked conditionally." >&5
12841 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12842 Usually this means the macro was only invoked conditionally." >&2;}
12843 { (exit 1); exit 1; }; }
12845 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
12846 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
12847 Usually this means the macro was only invoked conditionally." >&5
12848 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
12849 Usually this means the macro was only invoked conditionally." >&2;}
12850 { (exit 1); exit 1; }; }
12852 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
12853 { { echo "$as_me:$LINENO: error: conditional \"MIPS\" was never defined.
12854 Usually this means the macro was only invoked conditionally." >&5
12855 echo "$as_me: error: conditional \"MIPS\" was never defined.
12856 Usually this means the macro was only invoked conditionally." >&2;}
12857 { (exit 1); exit 1; }; }
12859 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
12860 { { echo "$as_me:$LINENO: error: conditional \"SPARC\" was never defined.
12861 Usually this means the macro was only invoked conditionally." >&5
12862 echo "$as_me: error: conditional \"SPARC\" was never defined.
12863 Usually this means the macro was only invoked conditionally." >&2;}
12864 { (exit 1); exit 1; }; }
12866 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
12867 { { echo "$as_me:$LINENO: error: conditional \"X86\" was never defined.
12868 Usually this means the macro was only invoked conditionally." >&5
12869 echo "$as_me: error: conditional \"X86\" was never defined.
12870 Usually this means the macro was only invoked conditionally." >&2;}
12871 { (exit 1); exit 1; }; }
12873 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
12874 { { echo "$as_me:$LINENO: error: conditional \"X86_WIN32\" was never defined.
12875 Usually this means the macro was only invoked conditionally." >&5
12876 echo "$as_me: error: conditional \"X86_WIN32\" was never defined.
12877 Usually this means the macro was only invoked conditionally." >&2;}
12878 { (exit 1); exit 1; }; }
12880 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
12881 { { echo "$as_me:$LINENO: error: conditional \"X86_DARWIN\" was never defined.
12882 Usually this means the macro was only invoked conditionally." >&5
12883 echo "$as_me: error: conditional \"X86_DARWIN\" was never defined.
12884 Usually this means the macro was only invoked conditionally." >&2;}
12885 { (exit 1); exit 1; }; }
12887 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
12888 { { echo "$as_me:$LINENO: error: conditional \"ALPHA\" was never defined.
12889 Usually this means the macro was only invoked conditionally." >&5
12890 echo "$as_me: error: conditional \"ALPHA\" was never defined.
12891 Usually this means the macro was only invoked conditionally." >&2;}
12892 { (exit 1); exit 1; }; }
12894 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
12895 { { echo "$as_me:$LINENO: error: conditional \"IA64\" was never defined.
12896 Usually this means the macro was only invoked conditionally." >&5
12897 echo "$as_me: error: conditional \"IA64\" was never defined.
12898 Usually this means the macro was only invoked conditionally." >&2;}
12899 { (exit 1); exit 1; }; }
12901 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
12902 { { echo "$as_me:$LINENO: error: conditional \"M32R\" was never defined.
12903 Usually this means the macro was only invoked conditionally." >&5
12904 echo "$as_me: error: conditional \"M32R\" was never defined.
12905 Usually this means the macro was only invoked conditionally." >&2;}
12906 { (exit 1); exit 1; }; }
12908 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
12909 { { echo "$as_me:$LINENO: error: conditional \"M68K\" was never defined.
12910 Usually this means the macro was only invoked conditionally." >&5
12911 echo "$as_me: error: conditional \"M68K\" was never defined.
12912 Usually this means the macro was only invoked conditionally." >&2;}
12913 { (exit 1); exit 1; }; }
12915 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
12916 { { echo "$as_me:$LINENO: error: conditional \"POWERPC\" was never defined.
12917 Usually this means the macro was only invoked conditionally." >&5
12918 echo "$as_me: error: conditional \"POWERPC\" was never defined.
12919 Usually this means the macro was only invoked conditionally." >&2;}
12920 { (exit 1); exit 1; }; }
12922 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
12923 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_AIX\" was never defined.
12924 Usually this means the macro was only invoked conditionally." >&5
12925 echo "$as_me: error: conditional \"POWERPC_AIX\" was never defined.
12926 Usually this means the macro was only invoked conditionally." >&2;}
12927 { (exit 1); exit 1; }; }
12929 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
12930 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_DARWIN\" was never defined.
12931 Usually this means the macro was only invoked conditionally." >&5
12932 echo "$as_me: error: conditional \"POWERPC_DARWIN\" was never defined.
12933 Usually this means the macro was only invoked conditionally." >&2;}
12934 { (exit 1); exit 1; }; }
12936 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
12937 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_FREEBSD\" was never defined.
12938 Usually this means the macro was only invoked conditionally." >&5
12939 echo "$as_me: error: conditional \"POWERPC_FREEBSD\" was never defined.
12940 Usually this means the macro was only invoked conditionally." >&2;}
12941 { (exit 1); exit 1; }; }
12943 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
12944 { { echo "$as_me:$LINENO: error: conditional \"ARM\" was never defined.
12945 Usually this means the macro was only invoked conditionally." >&5
12946 echo "$as_me: error: conditional \"ARM\" was never defined.
12947 Usually this means the macro was only invoked conditionally." >&2;}
12948 { (exit 1); exit 1; }; }
12950 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
12951 { { echo "$as_me:$LINENO: error: conditional \"LIBFFI_CRIS\" was never defined.
12952 Usually this means the macro was only invoked conditionally." >&5
12953 echo "$as_me: error: conditional \"LIBFFI_CRIS\" was never defined.
12954 Usually this means the macro was only invoked conditionally." >&2;}
12955 { (exit 1); exit 1; }; }
12957 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
12958 { { echo "$as_me:$LINENO: error: conditional \"FRV\" was never defined.
12959 Usually this means the macro was only invoked conditionally." >&5
12960 echo "$as_me: error: conditional \"FRV\" was never defined.
12961 Usually this means the macro was only invoked conditionally." >&2;}
12962 { (exit 1); exit 1; }; }
12964 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
12965 { { echo "$as_me:$LINENO: error: conditional \"S390\" was never defined.
12966 Usually this means the macro was only invoked conditionally." >&5
12967 echo "$as_me: error: conditional \"S390\" was never defined.
12968 Usually this means the macro was only invoked conditionally." >&2;}
12969 { (exit 1); exit 1; }; }
12971 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
12972 { { echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
12973 Usually this means the macro was only invoked conditionally." >&5
12974 echo "$as_me: error: conditional \"X86_64\" was never defined.
12975 Usually this means the macro was only invoked conditionally." >&2;}
12976 { (exit 1); exit 1; }; }
12978 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
12979 { { echo "$as_me:$LINENO: error: conditional \"SH\" was never defined.
12980 Usually this means the macro was only invoked conditionally." >&5
12981 echo "$as_me: error: conditional \"SH\" was never defined.
12982 Usually this means the macro was only invoked conditionally." >&2;}
12983 { (exit 1); exit 1; }; }
12985 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
12986 { { echo "$as_me:$LINENO: error: conditional \"SH64\" was never defined.
12987 Usually this means the macro was only invoked conditionally." >&5
12988 echo "$as_me: error: conditional \"SH64\" was never defined.
12989 Usually this means the macro was only invoked conditionally." >&2;}
12990 { (exit 1); exit 1; }; }
12992 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
12993 { { echo "$as_me:$LINENO: error: conditional \"PA_LINUX\" was never defined.
12994 Usually this means the macro was only invoked conditionally." >&5
12995 echo "$as_me: error: conditional \"PA_LINUX\" was never defined.
12996 Usually this means the macro was only invoked conditionally." >&2;}
12997 { (exit 1); exit 1; }; }
12999 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
13000 { { echo "$as_me:$LINENO: error: conditional \"PA_HPUX\" was never defined.
13001 Usually this means the macro was only invoked conditionally." >&5
13002 echo "$as_me: error: conditional \"PA_HPUX\" was never defined.
13003 Usually this means the macro was only invoked conditionally." >&2;}
13004 { (exit 1); exit 1; }; }
13006 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
13007 { { echo "$as_me:$LINENO: error: conditional \"PA64_HPUX\" was never defined.
13008 Usually this means the macro was only invoked conditionally." >&5
13009 echo "$as_me: error: conditional \"PA64_HPUX\" was never defined.
13010 Usually this means the macro was only invoked conditionally." >&2;}
13011 { (exit 1); exit 1; }; }
13014 : ${CONFIG_STATUS=./config.status}
13015 ac_clean_files_save=$ac_clean_files
13016 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13017 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13018 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13019 cat >$CONFIG_STATUS <<_ACEOF
13020 #! $SHELL
13021 # Generated by $as_me.
13022 # Run this file to recreate the current configuration.
13023 # Compiler output produced by configure, useful for debugging
13024 # configure, is in config.log if it exists.
13026 debug=false
13027 ac_cs_recheck=false
13028 ac_cs_silent=false
13029 SHELL=\${CONFIG_SHELL-$SHELL}
13030 _ACEOF
13032 cat >>$CONFIG_STATUS <<\_ACEOF
13033 ## --------------------- ##
13034 ## M4sh Initialization. ##
13035 ## --------------------- ##
13037 # Be Bourne compatible
13038 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13039 emulate sh
13040 NULLCMD=:
13041 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13042 # is contrary to our usage. Disable this feature.
13043 alias -g '${1+"$@"}'='"$@"'
13044 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13045 set -o posix
13047 DUALCASE=1; export DUALCASE # for MKS sh
13049 # Support unset when possible.
13050 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13051 as_unset=unset
13052 else
13053 as_unset=false
13057 # Work around bugs in pre-3.0 UWIN ksh.
13058 $as_unset ENV MAIL MAILPATH
13059 PS1='$ '
13060 PS2='> '
13061 PS4='+ '
13063 # NLS nuisances.
13064 for as_var in \
13065 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13066 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13067 LC_TELEPHONE LC_TIME
13069 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13070 eval $as_var=C; export $as_var
13071 else
13072 $as_unset $as_var
13074 done
13076 # Required to use basename.
13077 if expr a : '\(a\)' >/dev/null 2>&1; then
13078 as_expr=expr
13079 else
13080 as_expr=false
13083 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13084 as_basename=basename
13085 else
13086 as_basename=false
13090 # Name of the executable.
13091 as_me=`$as_basename "$0" ||
13092 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13093 X"$0" : 'X\(//\)$' \| \
13094 X"$0" : 'X\(/\)$' \| \
13095 . : '\(.\)' 2>/dev/null ||
13096 echo X/"$0" |
13097 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13098 /^X\/\(\/\/\)$/{ s//\1/; q; }
13099 /^X\/\(\/\).*/{ s//\1/; q; }
13100 s/.*/./; q'`
13103 # PATH needs CR, and LINENO needs CR and PATH.
13104 # Avoid depending upon Character Ranges.
13105 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13106 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13107 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13108 as_cr_digits='0123456789'
13109 as_cr_alnum=$as_cr_Letters$as_cr_digits
13111 # The user is always right.
13112 if test "${PATH_SEPARATOR+set}" != set; then
13113 echo "#! /bin/sh" >conf$$.sh
13114 echo "exit 0" >>conf$$.sh
13115 chmod +x conf$$.sh
13116 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13117 PATH_SEPARATOR=';'
13118 else
13119 PATH_SEPARATOR=:
13121 rm -f conf$$.sh
13125 as_lineno_1=$LINENO
13126 as_lineno_2=$LINENO
13127 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13128 test "x$as_lineno_1" != "x$as_lineno_2" &&
13129 test "x$as_lineno_3" = "x$as_lineno_2" || {
13130 # Find who we are. Look in the path if we contain no path at all
13131 # relative or not.
13132 case $0 in
13133 *[\\/]* ) as_myself=$0 ;;
13134 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13135 for as_dir in $PATH
13137 IFS=$as_save_IFS
13138 test -z "$as_dir" && as_dir=.
13139 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13140 done
13143 esac
13144 # We did not find ourselves, most probably we were run as `sh COMMAND'
13145 # in which case we are not to be found in the path.
13146 if test "x$as_myself" = x; then
13147 as_myself=$0
13149 if test ! -f "$as_myself"; then
13150 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13151 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13152 { (exit 1); exit 1; }; }
13154 case $CONFIG_SHELL in
13156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13157 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13159 IFS=$as_save_IFS
13160 test -z "$as_dir" && as_dir=.
13161 for as_base in sh bash ksh sh5; do
13162 case $as_dir in
13164 if ("$as_dir/$as_base" -c '
13165 as_lineno_1=$LINENO
13166 as_lineno_2=$LINENO
13167 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13168 test "x$as_lineno_1" != "x$as_lineno_2" &&
13169 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13170 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13171 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13172 CONFIG_SHELL=$as_dir/$as_base
13173 export CONFIG_SHELL
13174 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13175 fi;;
13176 esac
13177 done
13178 done
13180 esac
13182 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13183 # uniformly replaced by the line number. The first 'sed' inserts a
13184 # line-number line before each line; the second 'sed' does the real
13185 # work. The second script uses 'N' to pair each line-number line
13186 # with the numbered line, and appends trailing '-' during
13187 # substitution so that $LINENO is not a special case at line end.
13188 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13189 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13190 sed '=' <$as_myself |
13191 sed '
13193 s,$,-,
13194 : loop
13195 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13196 t loop
13197 s,-$,,
13198 s,^['$as_cr_digits']*\n,,
13199 ' >$as_me.lineno &&
13200 chmod +x $as_me.lineno ||
13201 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13202 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13203 { (exit 1); exit 1; }; }
13205 # Don't try to exec as it changes $[0], causing all sort of problems
13206 # (the dirname of $[0] is not the place where we might find the
13207 # original and so on. Autoconf is especially sensible to this).
13208 . ./$as_me.lineno
13209 # Exit status is that of the last command.
13210 exit
13214 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13215 *c*,-n*) ECHO_N= ECHO_C='
13216 ' ECHO_T=' ' ;;
13217 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13218 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13219 esac
13221 if expr a : '\(a\)' >/dev/null 2>&1; then
13222 as_expr=expr
13223 else
13224 as_expr=false
13227 rm -f conf$$ conf$$.exe conf$$.file
13228 echo >conf$$.file
13229 if ln -s conf$$.file conf$$ 2>/dev/null; then
13230 # We could just check for DJGPP; but this test a) works b) is more generic
13231 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13232 if test -f conf$$.exe; then
13233 # Don't use ln at all; we don't have any links
13234 as_ln_s='cp -p'
13235 else
13236 as_ln_s='ln -s'
13238 elif ln conf$$.file conf$$ 2>/dev/null; then
13239 as_ln_s=ln
13240 else
13241 as_ln_s='cp -p'
13243 rm -f conf$$ conf$$.exe conf$$.file
13245 if mkdir -p . 2>/dev/null; then
13246 as_mkdir_p=:
13247 else
13248 test -d ./-p && rmdir ./-p
13249 as_mkdir_p=false
13252 as_executable_p="test -f"
13254 # Sed expression to map a string onto a valid CPP name.
13255 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13257 # Sed expression to map a string onto a valid variable name.
13258 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13261 # IFS
13262 # We need space, tab and new line, in precisely that order.
13263 as_nl='
13265 IFS=" $as_nl"
13267 # CDPATH.
13268 $as_unset CDPATH
13270 exec 6>&1
13272 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13273 # report actual input values of CONFIG_FILES etc. instead of their
13274 # values after options handling. Logging --version etc. is OK.
13275 exec 5>>config.log
13277 echo
13278 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13279 ## Running $as_me. ##
13280 _ASBOX
13281 } >&5
13282 cat >&5 <<_CSEOF
13284 This file was extended by libffi $as_me 2.1, which was
13285 generated by GNU Autoconf 2.59. Invocation command line was
13287 CONFIG_FILES = $CONFIG_FILES
13288 CONFIG_HEADERS = $CONFIG_HEADERS
13289 CONFIG_LINKS = $CONFIG_LINKS
13290 CONFIG_COMMANDS = $CONFIG_COMMANDS
13291 $ $0 $@
13293 _CSEOF
13294 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13295 echo >&5
13296 _ACEOF
13298 # Files that config.status was made for.
13299 if test -n "$ac_config_files"; then
13300 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13303 if test -n "$ac_config_headers"; then
13304 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13307 if test -n "$ac_config_links"; then
13308 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13311 if test -n "$ac_config_commands"; then
13312 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13315 cat >>$CONFIG_STATUS <<\_ACEOF
13317 ac_cs_usage="\
13318 \`$as_me' instantiates files from templates according to the
13319 current configuration.
13321 Usage: $0 [OPTIONS] [FILE]...
13323 -h, --help print this help, then exit
13324 -V, --version print version number, then exit
13325 -q, --quiet do not print progress messages
13326 -d, --debug don't remove temporary files
13327 --recheck update $as_me by reconfiguring in the same conditions
13328 --file=FILE[:TEMPLATE]
13329 instantiate the configuration file FILE
13330 --header=FILE[:TEMPLATE]
13331 instantiate the configuration header FILE
13333 Configuration files:
13334 $config_files
13336 Configuration headers:
13337 $config_headers
13339 Configuration links:
13340 $config_links
13342 Configuration commands:
13343 $config_commands
13345 Report bugs to <bug-autoconf@gnu.org>."
13346 _ACEOF
13348 cat >>$CONFIG_STATUS <<_ACEOF
13349 ac_cs_version="\\
13350 libffi config.status 2.1
13351 configured by $0, generated by GNU Autoconf 2.59,
13352 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13354 Copyright (C) 2003 Free Software Foundation, Inc.
13355 This config.status script is free software; the Free Software Foundation
13356 gives unlimited permission to copy, distribute and modify it."
13357 srcdir=$srcdir
13358 INSTALL="$INSTALL"
13359 _ACEOF
13361 cat >>$CONFIG_STATUS <<\_ACEOF
13362 # If no file are specified by the user, then we need to provide default
13363 # value. By we need to know if files were specified by the user.
13364 ac_need_defaults=:
13365 while test $# != 0
13367 case $1 in
13368 --*=*)
13369 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13370 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13371 ac_shift=:
13374 ac_option=$1
13375 ac_optarg=$2
13376 ac_shift=shift
13378 *) # This is not an option, so the user has probably given explicit
13379 # arguments.
13380 ac_option=$1
13381 ac_need_defaults=false;;
13382 esac
13384 case $ac_option in
13385 # Handling of the options.
13386 _ACEOF
13387 cat >>$CONFIG_STATUS <<\_ACEOF
13388 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13389 ac_cs_recheck=: ;;
13390 --version | --vers* | -V )
13391 echo "$ac_cs_version"; exit 0 ;;
13392 --he | --h)
13393 # Conflict between --help and --header
13394 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13395 Try \`$0 --help' for more information." >&5
13396 echo "$as_me: error: ambiguous option: $1
13397 Try \`$0 --help' for more information." >&2;}
13398 { (exit 1); exit 1; }; };;
13399 --help | --hel | -h )
13400 echo "$ac_cs_usage"; exit 0 ;;
13401 --debug | --d* | -d )
13402 debug=: ;;
13403 --file | --fil | --fi | --f )
13404 $ac_shift
13405 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13406 ac_need_defaults=false;;
13407 --header | --heade | --head | --hea )
13408 $ac_shift
13409 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13410 ac_need_defaults=false;;
13411 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13412 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13413 ac_cs_silent=: ;;
13415 # This is an error.
13416 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13417 Try \`$0 --help' for more information." >&5
13418 echo "$as_me: error: unrecognized option: $1
13419 Try \`$0 --help' for more information." >&2;}
13420 { (exit 1); exit 1; }; } ;;
13422 *) ac_config_targets="$ac_config_targets $1" ;;
13424 esac
13425 shift
13426 done
13428 ac_configure_extra_args=
13430 if $ac_cs_silent; then
13431 exec 6>/dev/null
13432 ac_configure_extra_args="$ac_configure_extra_args --silent"
13435 _ACEOF
13436 cat >>$CONFIG_STATUS <<_ACEOF
13437 if \$ac_cs_recheck; then
13438 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13439 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13442 _ACEOF
13444 cat >>$CONFIG_STATUS <<_ACEOF
13446 # INIT-COMMANDS section.
13450 srcdir="$srcdir"
13451 host="$host"
13452 target="$target"
13453 with_multisubdir="$with_multisubdir"
13454 with_multisrctop="$with_multisrctop"
13455 with_target_subdir="$with_target_subdir"
13456 ac_configure_args="${multilib_arg} ${ac_configure_args}"
13457 multi_basedir="$multi_basedir"
13458 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13459 CC="$CC"
13460 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13463 # The HP-UX ksh and POSIX shell print the target directory to stdout
13464 # if CDPATH is set.
13465 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13467 sed_quote_subst='$sed_quote_subst'
13468 double_quote_subst='$double_quote_subst'
13469 delay_variable_subst='$delay_variable_subst'
13470 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13471 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13472 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13473 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13474 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13475 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13476 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13477 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13478 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13479 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13480 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13481 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13482 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13483 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13484 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13485 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13486 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13487 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13488 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13489 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13490 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13491 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13492 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13493 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13494 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13495 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13496 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13497 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13498 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13499 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13500 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13501 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13502 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13503 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13504 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13505 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13506 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13507 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13508 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13509 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13510 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13511 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13512 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13513 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"`'
13514 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13515 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13516 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13517 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13518 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13519 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13520 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13521 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13522 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13523 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13524 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13525 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13526 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13527 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13528 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13529 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13530 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13531 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13532 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13533 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13534 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13535 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13536 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13537 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13538 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13539 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13540 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13541 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13542 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13543 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13544 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13545 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13546 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13547 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13548 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13549 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13550 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13551 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13552 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13553 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13554 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13555 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13556 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13557 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13558 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13559 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13560 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13561 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13562 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13563 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13564 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13565 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13566 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13567 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13568 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13569 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13570 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13571 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13572 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13573 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13574 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13575 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13576 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13577 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13578 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13579 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13580 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13582 LTCC='$LTCC'
13583 LTCFLAGS='$LTCFLAGS'
13584 compiler='$compiler_DEFAULT'
13586 # Quote evaled strings.
13587 for var in SED \
13588 GREP \
13589 EGREP \
13590 FGREP \
13591 LD \
13592 NM \
13593 LN_S \
13594 lt_SP2NL \
13595 lt_NL2SP \
13596 reload_flag \
13597 deplibs_check_method \
13598 file_magic_cmd \
13599 AR \
13600 AR_FLAGS \
13601 STRIP \
13602 RANLIB \
13603 CC \
13604 CFLAGS \
13605 compiler \
13606 lt_cv_sys_global_symbol_pipe \
13607 lt_cv_sys_global_symbol_to_cdecl \
13608 lt_cv_sys_global_symbol_to_c_name_address \
13609 SHELL \
13610 ECHO \
13611 lt_prog_compiler_no_builtin_flag \
13612 lt_prog_compiler_wl \
13613 lt_prog_compiler_pic \
13614 lt_prog_compiler_static \
13615 lt_cv_prog_compiler_c_o \
13616 need_locks \
13617 shrext_cmds \
13618 export_dynamic_flag_spec \
13619 whole_archive_flag_spec \
13620 compiler_needs_object \
13621 with_gnu_ld \
13622 allow_undefined_flag \
13623 no_undefined_flag \
13624 hardcode_libdir_flag_spec \
13625 hardcode_libdir_flag_spec_ld \
13626 hardcode_libdir_separator \
13627 fix_srcfile_path \
13628 exclude_expsyms \
13629 include_expsyms \
13630 file_list_spec \
13631 variables_saved_for_relink \
13632 libname_spec \
13633 library_names_spec \
13634 soname_spec \
13635 finish_eval \
13636 old_striplib \
13637 striplib; do
13638 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13639 *[\\\\\\\`\\"\\\$]*)
13640 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13643 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13645 esac
13646 done
13648 # Double-quote double-evaled strings.
13649 for var in reload_cmds \
13650 old_postinstall_cmds \
13651 old_postuninstall_cmds \
13652 old_archive_cmds \
13653 extract_expsyms_cmds \
13654 old_archive_from_new_cmds \
13655 old_archive_from_expsyms_cmds \
13656 archive_cmds \
13657 archive_expsym_cmds \
13658 module_cmds \
13659 module_expsym_cmds \
13660 export_symbols_cmds \
13661 prelink_cmds \
13662 postinstall_cmds \
13663 postuninstall_cmds \
13664 finish_cmds \
13665 sys_lib_search_path_spec \
13666 sys_lib_dlsearch_path_spec; do
13667 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13668 *[\\\\\\\`\\"\\\$]*)
13669 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13672 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13674 esac
13675 done
13677 # Fix-up fallback echo if it was mangled by the above quoting rules.
13678 case \$lt_ECHO in
13679 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13681 esac
13683 ac_aux_dir='$ac_aux_dir'
13684 xsi_shell='$xsi_shell'
13685 lt_shell_append='$lt_shell_append'
13687 # See if we are running on zsh, and set the options which allow our
13688 # commands through without removal of \ escapes INIT.
13689 if test -n "\${ZSH_VERSION+set}" ; then
13690 setopt NO_GLOB_SUBST
13694 PACKAGE='$PACKAGE'
13695 VERSION='$VERSION'
13696 TIMESTAMP='$TIMESTAMP'
13697 RM='$RM'
13698 ofile='$ofile'
13702 TARGETDIR="$TARGETDIR"
13704 _ACEOF
13708 cat >>$CONFIG_STATUS <<\_ACEOF
13709 for ac_config_target in $ac_config_targets
13711 case "$ac_config_target" in
13712 # Handling of arguments.
13713 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13714 "include/ffi.h" ) CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
13715 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13716 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
13717 "include/ffitarget.h" ) CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
13718 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13719 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13720 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13721 "include" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
13722 "src" ) CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
13723 "fficonfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
13724 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13725 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13726 { (exit 1); exit 1; }; };;
13727 esac
13728 done
13730 # If the user did not use the arguments to specify the items to instantiate,
13731 # then the envvar interface is used. Set only those that are not.
13732 # We use the long form for the default assignment because of an extremely
13733 # bizarre bug on SunOS 4.1.3.
13734 if $ac_need_defaults; then
13735 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13736 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13737 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
13738 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13741 # Have a temporary directory for convenience. Make it in the build tree
13742 # simply because there is no reason to put it here, and in addition,
13743 # creating and moving files from /tmp can sometimes cause problems.
13744 # Create a temporary directory, and hook for its removal unless debugging.
13745 $debug ||
13747 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13748 trap '{ (exit 1); exit 1; }' 1 2 13 15
13751 # Create a (secure) tmp directory for tmp files.
13754 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13755 test -n "$tmp" && test -d "$tmp"
13756 } ||
13758 tmp=./confstat$$-$RANDOM
13759 (umask 077 && mkdir $tmp)
13760 } ||
13762 echo "$me: cannot create a temporary directory in ." >&2
13763 { (exit 1); exit 1; }
13766 _ACEOF
13768 cat >>$CONFIG_STATUS <<_ACEOF
13771 # CONFIG_FILES section.
13774 # No need to generate the scripts if there are no CONFIG_FILES.
13775 # This happens for instance when ./config.status config.h
13776 if test -n "\$CONFIG_FILES"; then
13777 # Protect against being on the right side of a sed subst in config.status.
13778 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13779 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13780 s,@SHELL@,$SHELL,;t t
13781 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13782 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13783 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13784 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13785 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13786 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13787 s,@exec_prefix@,$exec_prefix,;t t
13788 s,@prefix@,$prefix,;t t
13789 s,@program_transform_name@,$program_transform_name,;t t
13790 s,@bindir@,$bindir,;t t
13791 s,@sbindir@,$sbindir,;t t
13792 s,@libexecdir@,$libexecdir,;t t
13793 s,@datadir@,$datadir,;t t
13794 s,@sysconfdir@,$sysconfdir,;t t
13795 s,@sharedstatedir@,$sharedstatedir,;t t
13796 s,@localstatedir@,$localstatedir,;t t
13797 s,@libdir@,$libdir,;t t
13798 s,@includedir@,$includedir,;t t
13799 s,@oldincludedir@,$oldincludedir,;t t
13800 s,@infodir@,$infodir,;t t
13801 s,@mandir@,$mandir,;t t
13802 s,@build_alias@,$build_alias,;t t
13803 s,@host_alias@,$host_alias,;t t
13804 s,@target_alias@,$target_alias,;t t
13805 s,@DEFS@,$DEFS,;t t
13806 s,@ECHO_C@,$ECHO_C,;t t
13807 s,@ECHO_N@,$ECHO_N,;t t
13808 s,@ECHO_T@,$ECHO_T,;t t
13809 s,@LIBS@,$LIBS,;t t
13810 s,@multi_basedir@,$multi_basedir,;t t
13811 s,@build@,$build,;t t
13812 s,@build_cpu@,$build_cpu,;t t
13813 s,@build_vendor@,$build_vendor,;t t
13814 s,@build_os@,$build_os,;t t
13815 s,@host@,$host,;t t
13816 s,@host_cpu@,$host_cpu,;t t
13817 s,@host_vendor@,$host_vendor,;t t
13818 s,@host_os@,$host_os,;t t
13819 s,@target@,$target,;t t
13820 s,@target_cpu@,$target_cpu,;t t
13821 s,@target_vendor@,$target_vendor,;t t
13822 s,@target_os@,$target_os,;t t
13823 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13824 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13825 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13826 s,@CYGPATH_W@,$CYGPATH_W,;t t
13827 s,@PACKAGE@,$PACKAGE,;t t
13828 s,@VERSION@,$VERSION,;t t
13829 s,@ACLOCAL@,$ACLOCAL,;t t
13830 s,@AUTOCONF@,$AUTOCONF,;t t
13831 s,@AUTOMAKE@,$AUTOMAKE,;t t
13832 s,@AUTOHEADER@,$AUTOHEADER,;t t
13833 s,@MAKEINFO@,$MAKEINFO,;t t
13834 s,@install_sh@,$install_sh,;t t
13835 s,@STRIP@,$STRIP,;t t
13836 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13837 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13838 s,@mkdir_p@,$mkdir_p,;t t
13839 s,@AWK@,$AWK,;t t
13840 s,@SET_MAKE@,$SET_MAKE,;t t
13841 s,@am__leading_dot@,$am__leading_dot,;t t
13842 s,@AMTAR@,$AMTAR,;t t
13843 s,@am__tar@,$am__tar,;t t
13844 s,@am__untar@,$am__untar,;t t
13845 s,@CC@,$CC,;t t
13846 s,@ac_ct_CC@,$ac_ct_CC,;t t
13847 s,@EXEEXT@,$EXEEXT,;t t
13848 s,@OBJEXT@,$OBJEXT,;t t
13849 s,@DEPDIR@,$DEPDIR,;t t
13850 s,@am__include@,$am__include,;t t
13851 s,@am__quote@,$am__quote,;t t
13852 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13853 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13854 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13855 s,@CCDEPMODE@,$CCDEPMODE,;t t
13856 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13857 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
13858 s,@CFLAGS@,$CFLAGS,;t t
13859 s,@CCAS@,$CCAS,;t t
13860 s,@CCASFLAGS@,$CCASFLAGS,;t t
13861 s,@LIBTOOL@,$LIBTOOL,;t t
13862 s,@SED@,$SED,;t t
13863 s,@EGREP@,$EGREP,;t t
13864 s,@FGREP@,$FGREP,;t t
13865 s,@GREP@,$GREP,;t t
13866 s,@LD@,$LD,;t t
13867 s,@DUMPBIN@,$DUMPBIN,;t t
13868 s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
13869 s,@NM@,$NM,;t t
13870 s,@LN_S@,$LN_S,;t t
13871 s,@AR@,$AR,;t t
13872 s,@ac_ct_AR@,$ac_ct_AR,;t t
13873 s,@RANLIB@,$RANLIB,;t t
13874 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13875 s,@lt_ECHO@,$lt_ECHO,;t t
13876 s,@CPP@,$CPP,;t t
13877 s,@CPPFLAGS@,$CPPFLAGS,;t t
13878 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13879 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13880 s,@MAINT@,$MAINT,;t t
13881 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
13882 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
13883 s,@AM_RUNTESTFLAGS@,$AM_RUNTESTFLAGS,;t t
13884 s,@MIPS_TRUE@,$MIPS_TRUE,;t t
13885 s,@MIPS_FALSE@,$MIPS_FALSE,;t t
13886 s,@SPARC_TRUE@,$SPARC_TRUE,;t t
13887 s,@SPARC_FALSE@,$SPARC_FALSE,;t t
13888 s,@X86_TRUE@,$X86_TRUE,;t t
13889 s,@X86_FALSE@,$X86_FALSE,;t t
13890 s,@X86_WIN32_TRUE@,$X86_WIN32_TRUE,;t t
13891 s,@X86_WIN32_FALSE@,$X86_WIN32_FALSE,;t t
13892 s,@X86_DARWIN_TRUE@,$X86_DARWIN_TRUE,;t t
13893 s,@X86_DARWIN_FALSE@,$X86_DARWIN_FALSE,;t t
13894 s,@ALPHA_TRUE@,$ALPHA_TRUE,;t t
13895 s,@ALPHA_FALSE@,$ALPHA_FALSE,;t t
13896 s,@IA64_TRUE@,$IA64_TRUE,;t t
13897 s,@IA64_FALSE@,$IA64_FALSE,;t t
13898 s,@M32R_TRUE@,$M32R_TRUE,;t t
13899 s,@M32R_FALSE@,$M32R_FALSE,;t t
13900 s,@M68K_TRUE@,$M68K_TRUE,;t t
13901 s,@M68K_FALSE@,$M68K_FALSE,;t t
13902 s,@POWERPC_TRUE@,$POWERPC_TRUE,;t t
13903 s,@POWERPC_FALSE@,$POWERPC_FALSE,;t t
13904 s,@POWERPC_AIX_TRUE@,$POWERPC_AIX_TRUE,;t t
13905 s,@POWERPC_AIX_FALSE@,$POWERPC_AIX_FALSE,;t t
13906 s,@POWERPC_DARWIN_TRUE@,$POWERPC_DARWIN_TRUE,;t t
13907 s,@POWERPC_DARWIN_FALSE@,$POWERPC_DARWIN_FALSE,;t t
13908 s,@POWERPC_FREEBSD_TRUE@,$POWERPC_FREEBSD_TRUE,;t t
13909 s,@POWERPC_FREEBSD_FALSE@,$POWERPC_FREEBSD_FALSE,;t t
13910 s,@ARM_TRUE@,$ARM_TRUE,;t t
13911 s,@ARM_FALSE@,$ARM_FALSE,;t t
13912 s,@LIBFFI_CRIS_TRUE@,$LIBFFI_CRIS_TRUE,;t t
13913 s,@LIBFFI_CRIS_FALSE@,$LIBFFI_CRIS_FALSE,;t t
13914 s,@FRV_TRUE@,$FRV_TRUE,;t t
13915 s,@FRV_FALSE@,$FRV_FALSE,;t t
13916 s,@S390_TRUE@,$S390_TRUE,;t t
13917 s,@S390_FALSE@,$S390_FALSE,;t t
13918 s,@X86_64_TRUE@,$X86_64_TRUE,;t t
13919 s,@X86_64_FALSE@,$X86_64_FALSE,;t t
13920 s,@SH_TRUE@,$SH_TRUE,;t t
13921 s,@SH_FALSE@,$SH_FALSE,;t t
13922 s,@SH64_TRUE@,$SH64_TRUE,;t t
13923 s,@SH64_FALSE@,$SH64_FALSE,;t t
13924 s,@PA_LINUX_TRUE@,$PA_LINUX_TRUE,;t t
13925 s,@PA_LINUX_FALSE@,$PA_LINUX_FALSE,;t t
13926 s,@PA_HPUX_TRUE@,$PA_HPUX_TRUE,;t t
13927 s,@PA_HPUX_FALSE@,$PA_HPUX_FALSE,;t t
13928 s,@PA64_HPUX_TRUE@,$PA64_HPUX_TRUE,;t t
13929 s,@PA64_HPUX_FALSE@,$PA64_HPUX_FALSE,;t t
13930 s,@ALLOCA@,$ALLOCA,;t t
13931 s,@HAVE_LONG_DOUBLE@,$HAVE_LONG_DOUBLE,;t t
13932 s,@TARGET@,$TARGET,;t t
13933 s,@TARGETDIR@,$TARGETDIR,;t t
13934 s,@toolexecdir@,$toolexecdir,;t t
13935 s,@toolexeclibdir@,$toolexeclibdir,;t t
13936 s,@LIBOBJS@,$LIBOBJS,;t t
13937 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13938 CEOF
13940 _ACEOF
13942 cat >>$CONFIG_STATUS <<\_ACEOF
13943 # Split the substitutions into bite-sized pieces for seds with
13944 # small command number limits, like on Digital OSF/1 and HP-UX.
13945 ac_max_sed_lines=48
13946 ac_sed_frag=1 # Number of current file.
13947 ac_beg=1 # First line for current file.
13948 ac_end=$ac_max_sed_lines # Line after last line for current file.
13949 ac_more_lines=:
13950 ac_sed_cmds=
13951 while $ac_more_lines; do
13952 if test $ac_beg -gt 1; then
13953 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13954 else
13955 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13957 if test ! -s $tmp/subs.frag; then
13958 ac_more_lines=false
13959 else
13960 # The purpose of the label and of the branching condition is to
13961 # speed up the sed processing (if there are no `@' at all, there
13962 # is no need to browse any of the substitutions).
13963 # These are the two extra sed commands mentioned above.
13964 (echo ':t
13965 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13966 if test -z "$ac_sed_cmds"; then
13967 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13968 else
13969 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13971 ac_sed_frag=`expr $ac_sed_frag + 1`
13972 ac_beg=$ac_end
13973 ac_end=`expr $ac_end + $ac_max_sed_lines`
13975 done
13976 if test -z "$ac_sed_cmds"; then
13977 ac_sed_cmds=cat
13979 fi # test -n "$CONFIG_FILES"
13981 _ACEOF
13982 cat >>$CONFIG_STATUS <<\_ACEOF
13983 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13984 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13985 case $ac_file in
13986 - | *:- | *:-:* ) # input from stdin
13987 cat >$tmp/stdin
13988 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13989 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13990 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13991 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13992 * ) ac_file_in=$ac_file.in ;;
13993 esac
13995 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13996 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13997 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13998 X"$ac_file" : 'X\(//\)[^/]' \| \
13999 X"$ac_file" : 'X\(//\)$' \| \
14000 X"$ac_file" : 'X\(/\)' \| \
14001 . : '\(.\)' 2>/dev/null ||
14002 echo X"$ac_file" |
14003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14004 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14005 /^X\(\/\/\)$/{ s//\1/; q; }
14006 /^X\(\/\).*/{ s//\1/; q; }
14007 s/.*/./; q'`
14008 { if $as_mkdir_p; then
14009 mkdir -p "$ac_dir"
14010 else
14011 as_dir="$ac_dir"
14012 as_dirs=
14013 while test ! -d "$as_dir"; do
14014 as_dirs="$as_dir $as_dirs"
14015 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14016 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14017 X"$as_dir" : 'X\(//\)[^/]' \| \
14018 X"$as_dir" : 'X\(//\)$' \| \
14019 X"$as_dir" : 'X\(/\)' \| \
14020 . : '\(.\)' 2>/dev/null ||
14021 echo X"$as_dir" |
14022 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14023 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14024 /^X\(\/\/\)$/{ s//\1/; q; }
14025 /^X\(\/\).*/{ s//\1/; q; }
14026 s/.*/./; q'`
14027 done
14028 test ! -n "$as_dirs" || mkdir $as_dirs
14029 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14030 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14031 { (exit 1); exit 1; }; }; }
14033 ac_builddir=.
14035 if test "$ac_dir" != .; then
14036 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14037 # A "../" for each directory in $ac_dir_suffix.
14038 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14039 else
14040 ac_dir_suffix= ac_top_builddir=
14043 case $srcdir in
14044 .) # No --srcdir option. We are building in place.
14045 ac_srcdir=.
14046 if test -z "$ac_top_builddir"; then
14047 ac_top_srcdir=.
14048 else
14049 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14050 fi ;;
14051 [\\/]* | ?:[\\/]* ) # Absolute path.
14052 ac_srcdir=$srcdir$ac_dir_suffix;
14053 ac_top_srcdir=$srcdir ;;
14054 *) # Relative path.
14055 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14056 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14057 esac
14059 # Do not use `cd foo && pwd` to compute absolute paths, because
14060 # the directories may not exist.
14061 case `pwd` in
14062 .) ac_abs_builddir="$ac_dir";;
14064 case "$ac_dir" in
14065 .) ac_abs_builddir=`pwd`;;
14066 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14067 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14068 esac;;
14069 esac
14070 case $ac_abs_builddir in
14071 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14073 case ${ac_top_builddir}. in
14074 .) ac_abs_top_builddir=$ac_abs_builddir;;
14075 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14076 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14077 esac;;
14078 esac
14079 case $ac_abs_builddir in
14080 .) ac_abs_srcdir=$ac_srcdir;;
14082 case $ac_srcdir in
14083 .) ac_abs_srcdir=$ac_abs_builddir;;
14084 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14085 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14086 esac;;
14087 esac
14088 case $ac_abs_builddir in
14089 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14091 case $ac_top_srcdir in
14092 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14093 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14094 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14095 esac;;
14096 esac
14099 case $INSTALL in
14100 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14101 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14102 esac
14104 if test x"$ac_file" != x-; then
14105 { echo "$as_me:$LINENO: creating $ac_file" >&5
14106 echo "$as_me: creating $ac_file" >&6;}
14107 rm -f "$ac_file"
14109 # Let's still pretend it is `configure' which instantiates (i.e., don't
14110 # use $as_me), people would be surprised to read:
14111 # /* config.h. Generated by config.status. */
14112 if test x"$ac_file" = x-; then
14113 configure_input=
14114 else
14115 configure_input="$ac_file. "
14117 configure_input=$configure_input"Generated from `echo $ac_file_in |
14118 sed 's,.*/,,'` by configure."
14120 # First look for the input files in the build tree, otherwise in the
14121 # src tree.
14122 ac_file_inputs=`IFS=:
14123 for f in $ac_file_in; do
14124 case $f in
14125 -) echo $tmp/stdin ;;
14126 [\\/$]*)
14127 # Absolute (can't be DOS-style, as IFS=:)
14128 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14129 echo "$as_me: error: cannot find input file: $f" >&2;}
14130 { (exit 1); exit 1; }; }
14131 echo "$f";;
14132 *) # Relative
14133 if test -f "$f"; then
14134 # Build tree
14135 echo "$f"
14136 elif test -f "$srcdir/$f"; then
14137 # Source tree
14138 echo "$srcdir/$f"
14139 else
14140 # /dev/null tree
14141 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14142 echo "$as_me: error: cannot find input file: $f" >&2;}
14143 { (exit 1); exit 1; }; }
14144 fi;;
14145 esac
14146 done` || { (exit 1); exit 1; }
14147 _ACEOF
14148 cat >>$CONFIG_STATUS <<_ACEOF
14149 sed "$ac_vpsub
14150 $extrasub
14151 _ACEOF
14152 cat >>$CONFIG_STATUS <<\_ACEOF
14154 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14155 s,@configure_input@,$configure_input,;t t
14156 s,@srcdir@,$ac_srcdir,;t t
14157 s,@abs_srcdir@,$ac_abs_srcdir,;t t
14158 s,@top_srcdir@,$ac_top_srcdir,;t t
14159 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14160 s,@builddir@,$ac_builddir,;t t
14161 s,@abs_builddir@,$ac_abs_builddir,;t t
14162 s,@top_builddir@,$ac_top_builddir,;t t
14163 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14164 s,@INSTALL@,$ac_INSTALL,;t t
14165 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14166 rm -f $tmp/stdin
14167 if test x"$ac_file" != x-; then
14168 mv $tmp/out $ac_file
14169 else
14170 cat $tmp/out
14171 rm -f $tmp/out
14174 done
14175 _ACEOF
14176 cat >>$CONFIG_STATUS <<\_ACEOF
14179 # CONFIG_HEADER section.
14182 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14183 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14185 # ac_d sets the value in "#define NAME VALUE" lines.
14186 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14187 ac_dB='[ ].*$,\1#\2'
14188 ac_dC=' '
14189 ac_dD=',;t'
14190 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14191 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14192 ac_uB='$,\1#\2define\3'
14193 ac_uC=' '
14194 ac_uD=',;t'
14196 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14197 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14198 case $ac_file in
14199 - | *:- | *:-:* ) # input from stdin
14200 cat >$tmp/stdin
14201 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14202 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14203 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14204 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14205 * ) ac_file_in=$ac_file.in ;;
14206 esac
14208 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14209 echo "$as_me: creating $ac_file" >&6;}
14211 # First look for the input files in the build tree, otherwise in the
14212 # src tree.
14213 ac_file_inputs=`IFS=:
14214 for f in $ac_file_in; do
14215 case $f in
14216 -) echo $tmp/stdin ;;
14217 [\\/$]*)
14218 # Absolute (can't be DOS-style, as IFS=:)
14219 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14220 echo "$as_me: error: cannot find input file: $f" >&2;}
14221 { (exit 1); exit 1; }; }
14222 # Do quote $f, to prevent DOS paths from being IFS'd.
14223 echo "$f";;
14224 *) # Relative
14225 if test -f "$f"; then
14226 # Build tree
14227 echo "$f"
14228 elif test -f "$srcdir/$f"; then
14229 # Source tree
14230 echo "$srcdir/$f"
14231 else
14232 # /dev/null tree
14233 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14234 echo "$as_me: error: cannot find input file: $f" >&2;}
14235 { (exit 1); exit 1; }; }
14236 fi;;
14237 esac
14238 done` || { (exit 1); exit 1; }
14239 # Remove the trailing spaces.
14240 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14242 _ACEOF
14244 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14245 # `conftest.undefs', that substitutes the proper values into
14246 # config.h.in to produce config.h. The first handles `#define'
14247 # templates, and the second `#undef' templates.
14248 # And first: Protect against being on the right side of a sed subst in
14249 # config.status. Protect against being in an unquoted here document
14250 # in config.status.
14251 rm -f conftest.defines conftest.undefs
14252 # Using a here document instead of a string reduces the quoting nightmare.
14253 # Putting comments in sed scripts is not portable.
14255 # `end' is used to avoid that the second main sed command (meant for
14256 # 0-ary CPP macros) applies to n-ary macro definitions.
14257 # See the Autoconf documentation for `clear'.
14258 cat >confdef2sed.sed <<\_ACEOF
14259 s/[\\&,]/\\&/g
14260 s,[\\$`],\\&,g
14261 t clear
14262 : clear
14263 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14264 t end
14265 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14266 : end
14267 _ACEOF
14268 # If some macros were called several times there might be several times
14269 # the same #defines, which is useless. Nevertheless, we may not want to
14270 # sort them, since we want the *last* AC-DEFINE to be honored.
14271 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14272 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14273 rm -f confdef2sed.sed
14275 # This sed command replaces #undef with comments. This is necessary, for
14276 # example, in the case of _POSIX_SOURCE, which is predefined and required
14277 # on some systems where configure will not decide to define it.
14278 cat >>conftest.undefs <<\_ACEOF
14279 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14280 _ACEOF
14282 # Break up conftest.defines because some shells have a limit on the size
14283 # of here documents, and old seds have small limits too (100 cmds).
14284 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14285 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14286 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14287 echo ' :' >>$CONFIG_STATUS
14288 rm -f conftest.tail
14289 while grep . conftest.defines >/dev/null
14291 # Write a limited-size here document to $tmp/defines.sed.
14292 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14293 # Speed up: don't consider the non `#define' lines.
14294 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14295 # Work around the forget-to-reset-the-flag bug.
14296 echo 't clr' >>$CONFIG_STATUS
14297 echo ': clr' >>$CONFIG_STATUS
14298 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14299 echo 'CEOF
14300 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14301 rm -f $tmp/in
14302 mv $tmp/out $tmp/in
14303 ' >>$CONFIG_STATUS
14304 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14305 rm -f conftest.defines
14306 mv conftest.tail conftest.defines
14307 done
14308 rm -f conftest.defines
14309 echo ' fi # grep' >>$CONFIG_STATUS
14310 echo >>$CONFIG_STATUS
14312 # Break up conftest.undefs because some shells have a limit on the size
14313 # of here documents, and old seds have small limits too (100 cmds).
14314 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14315 rm -f conftest.tail
14316 while grep . conftest.undefs >/dev/null
14318 # Write a limited-size here document to $tmp/undefs.sed.
14319 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14320 # Speed up: don't consider the non `#undef'
14321 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14322 # Work around the forget-to-reset-the-flag bug.
14323 echo 't clr' >>$CONFIG_STATUS
14324 echo ': clr' >>$CONFIG_STATUS
14325 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14326 echo 'CEOF
14327 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14328 rm -f $tmp/in
14329 mv $tmp/out $tmp/in
14330 ' >>$CONFIG_STATUS
14331 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14332 rm -f conftest.undefs
14333 mv conftest.tail conftest.undefs
14334 done
14335 rm -f conftest.undefs
14337 cat >>$CONFIG_STATUS <<\_ACEOF
14338 # Let's still pretend it is `configure' which instantiates (i.e., don't
14339 # use $as_me), people would be surprised to read:
14340 # /* config.h. Generated by config.status. */
14341 if test x"$ac_file" = x-; then
14342 echo "/* Generated by configure. */" >$tmp/config.h
14343 else
14344 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14346 cat $tmp/in >>$tmp/config.h
14347 rm -f $tmp/in
14348 if test x"$ac_file" != x-; then
14349 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14350 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14351 echo "$as_me: $ac_file is unchanged" >&6;}
14352 else
14353 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14354 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14355 X"$ac_file" : 'X\(//\)[^/]' \| \
14356 X"$ac_file" : 'X\(//\)$' \| \
14357 X"$ac_file" : 'X\(/\)' \| \
14358 . : '\(.\)' 2>/dev/null ||
14359 echo X"$ac_file" |
14360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14361 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14362 /^X\(\/\/\)$/{ s//\1/; q; }
14363 /^X\(\/\).*/{ s//\1/; q; }
14364 s/.*/./; q'`
14365 { if $as_mkdir_p; then
14366 mkdir -p "$ac_dir"
14367 else
14368 as_dir="$ac_dir"
14369 as_dirs=
14370 while test ! -d "$as_dir"; do
14371 as_dirs="$as_dir $as_dirs"
14372 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14373 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14374 X"$as_dir" : 'X\(//\)[^/]' \| \
14375 X"$as_dir" : 'X\(//\)$' \| \
14376 X"$as_dir" : 'X\(/\)' \| \
14377 . : '\(.\)' 2>/dev/null ||
14378 echo X"$as_dir" |
14379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14380 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14381 /^X\(\/\/\)$/{ s//\1/; q; }
14382 /^X\(\/\).*/{ s//\1/; q; }
14383 s/.*/./; q'`
14384 done
14385 test ! -n "$as_dirs" || mkdir $as_dirs
14386 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14387 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14388 { (exit 1); exit 1; }; }; }
14390 rm -f $ac_file
14391 mv $tmp/config.h $ac_file
14393 else
14394 cat $tmp/config.h
14395 rm -f $tmp/config.h
14397 # Compute $ac_file's index in $config_headers.
14398 _am_stamp_count=1
14399 for _am_header in $config_headers :; do
14400 case $_am_header in
14401 $ac_file | $ac_file:* )
14402 break ;;
14404 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14405 esac
14406 done
14407 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
14408 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14409 X$ac_file : 'X\(//\)[^/]' \| \
14410 X$ac_file : 'X\(//\)$' \| \
14411 X$ac_file : 'X\(/\)' \| \
14412 . : '\(.\)' 2>/dev/null ||
14413 echo X$ac_file |
14414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14415 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14416 /^X\(\/\/\)$/{ s//\1/; q; }
14417 /^X\(\/\).*/{ s//\1/; q; }
14418 s/.*/./; q'`/stamp-h$_am_stamp_count
14419 done
14420 _ACEOF
14421 cat >>$CONFIG_STATUS <<\_ACEOF
14424 # CONFIG_LINKS section.
14427 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
14428 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14429 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14431 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
14432 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
14434 if test ! -r $srcdir/$ac_source; then
14435 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
14436 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
14437 { (exit 1); exit 1; }; }
14439 rm -f $ac_dest
14441 # Make relative symlinks.
14442 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
14443 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14444 X"$ac_dest" : 'X\(//\)[^/]' \| \
14445 X"$ac_dest" : 'X\(//\)$' \| \
14446 X"$ac_dest" : 'X\(/\)' \| \
14447 . : '\(.\)' 2>/dev/null ||
14448 echo X"$ac_dest" |
14449 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14450 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14451 /^X\(\/\/\)$/{ s//\1/; q; }
14452 /^X\(\/\).*/{ s//\1/; q; }
14453 s/.*/./; q'`
14454 { if $as_mkdir_p; then
14455 mkdir -p "$ac_dest_dir"
14456 else
14457 as_dir="$ac_dest_dir"
14458 as_dirs=
14459 while test ! -d "$as_dir"; do
14460 as_dirs="$as_dir $as_dirs"
14461 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14462 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14463 X"$as_dir" : 'X\(//\)[^/]' \| \
14464 X"$as_dir" : 'X\(//\)$' \| \
14465 X"$as_dir" : 'X\(/\)' \| \
14466 . : '\(.\)' 2>/dev/null ||
14467 echo X"$as_dir" |
14468 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14469 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14470 /^X\(\/\/\)$/{ s//\1/; q; }
14471 /^X\(\/\).*/{ s//\1/; q; }
14472 s/.*/./; q'`
14473 done
14474 test ! -n "$as_dirs" || mkdir $as_dirs
14475 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
14476 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
14477 { (exit 1); exit 1; }; }; }
14479 ac_builddir=.
14481 if test "$ac_dest_dir" != .; then
14482 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
14483 # A "../" for each directory in $ac_dir_suffix.
14484 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14485 else
14486 ac_dir_suffix= ac_top_builddir=
14489 case $srcdir in
14490 .) # No --srcdir option. We are building in place.
14491 ac_srcdir=.
14492 if test -z "$ac_top_builddir"; then
14493 ac_top_srcdir=.
14494 else
14495 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14496 fi ;;
14497 [\\/]* | ?:[\\/]* ) # Absolute path.
14498 ac_srcdir=$srcdir$ac_dir_suffix;
14499 ac_top_srcdir=$srcdir ;;
14500 *) # Relative path.
14501 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14502 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14503 esac
14505 # Do not use `cd foo && pwd` to compute absolute paths, because
14506 # the directories may not exist.
14507 case `pwd` in
14508 .) ac_abs_builddir="$ac_dest_dir";;
14510 case "$ac_dest_dir" in
14511 .) ac_abs_builddir=`pwd`;;
14512 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
14513 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
14514 esac;;
14515 esac
14516 case $ac_abs_builddir in
14517 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14519 case ${ac_top_builddir}. in
14520 .) ac_abs_top_builddir=$ac_abs_builddir;;
14521 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14522 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14523 esac;;
14524 esac
14525 case $ac_abs_builddir in
14526 .) ac_abs_srcdir=$ac_srcdir;;
14528 case $ac_srcdir in
14529 .) ac_abs_srcdir=$ac_abs_builddir;;
14530 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14531 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14532 esac;;
14533 esac
14534 case $ac_abs_builddir in
14535 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14537 case $ac_top_srcdir in
14538 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14539 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14540 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14541 esac;;
14542 esac
14545 case $srcdir in
14546 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
14547 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
14548 esac
14550 # Try a symlink, then a hard link, then a copy.
14551 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
14552 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
14553 cp -p $srcdir/$ac_source $ac_dest ||
14554 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
14555 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
14556 { (exit 1); exit 1; }; }
14557 done
14558 _ACEOF
14559 cat >>$CONFIG_STATUS <<\_ACEOF
14562 # CONFIG_COMMANDS section.
14564 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14565 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14566 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14567 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14568 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14569 X"$ac_dest" : 'X\(//\)[^/]' \| \
14570 X"$ac_dest" : 'X\(//\)$' \| \
14571 X"$ac_dest" : 'X\(/\)' \| \
14572 . : '\(.\)' 2>/dev/null ||
14573 echo X"$ac_dest" |
14574 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14575 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14576 /^X\(\/\/\)$/{ s//\1/; q; }
14577 /^X\(\/\).*/{ s//\1/; q; }
14578 s/.*/./; q'`
14579 { if $as_mkdir_p; then
14580 mkdir -p "$ac_dir"
14581 else
14582 as_dir="$ac_dir"
14583 as_dirs=
14584 while test ! -d "$as_dir"; do
14585 as_dirs="$as_dir $as_dirs"
14586 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14587 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14588 X"$as_dir" : 'X\(//\)[^/]' \| \
14589 X"$as_dir" : 'X\(//\)$' \| \
14590 X"$as_dir" : 'X\(/\)' \| \
14591 . : '\(.\)' 2>/dev/null ||
14592 echo X"$as_dir" |
14593 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14594 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14595 /^X\(\/\/\)$/{ s//\1/; q; }
14596 /^X\(\/\).*/{ s//\1/; q; }
14597 s/.*/./; q'`
14598 done
14599 test ! -n "$as_dirs" || mkdir $as_dirs
14600 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14601 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14602 { (exit 1); exit 1; }; }; }
14604 ac_builddir=.
14606 if test "$ac_dir" != .; then
14607 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14608 # A "../" for each directory in $ac_dir_suffix.
14609 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14610 else
14611 ac_dir_suffix= ac_top_builddir=
14614 case $srcdir in
14615 .) # No --srcdir option. We are building in place.
14616 ac_srcdir=.
14617 if test -z "$ac_top_builddir"; then
14618 ac_top_srcdir=.
14619 else
14620 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14621 fi ;;
14622 [\\/]* | ?:[\\/]* ) # Absolute path.
14623 ac_srcdir=$srcdir$ac_dir_suffix;
14624 ac_top_srcdir=$srcdir ;;
14625 *) # Relative path.
14626 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14627 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14628 esac
14630 # Do not use `cd foo && pwd` to compute absolute paths, because
14631 # the directories may not exist.
14632 case `pwd` in
14633 .) ac_abs_builddir="$ac_dir";;
14635 case "$ac_dir" in
14636 .) ac_abs_builddir=`pwd`;;
14637 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14638 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14639 esac;;
14640 esac
14641 case $ac_abs_builddir in
14642 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14644 case ${ac_top_builddir}. in
14645 .) ac_abs_top_builddir=$ac_abs_builddir;;
14646 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14647 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14648 esac;;
14649 esac
14650 case $ac_abs_builddir in
14651 .) ac_abs_srcdir=$ac_srcdir;;
14653 case $ac_srcdir in
14654 .) ac_abs_srcdir=$ac_abs_builddir;;
14655 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14656 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14657 esac;;
14658 esac
14659 case $ac_abs_builddir in
14660 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14662 case $ac_top_srcdir in
14663 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14664 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14665 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14666 esac;;
14667 esac
14670 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14671 echo "$as_me: executing $ac_dest commands" >&6;}
14672 case $ac_dest in
14673 default-1 )
14674 # Only add multilib support code if we just rebuilt the top-level
14675 # Makefile.
14676 case " $CONFIG_FILES " in
14677 *" Makefile "*)
14678 ac_file=Makefile . ${multi_basedir}/config-ml.in
14680 esac ;;
14681 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14682 # Strip MF so we end up with the name of the file.
14683 mf=`echo "$mf" | sed -e 's/:.*$//'`
14684 # Check whether this is an Automake generated Makefile or not.
14685 # We used to match only the files named `Makefile.in', but
14686 # some people rename them; so instead we look at the file content.
14687 # Grep'ing the first line is not enough: some people post-process
14688 # each Makefile.in and add a new line on top of each file to say so.
14689 # So let's grep whole file.
14690 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14691 dirpart=`(dirname "$mf") 2>/dev/null ||
14692 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14693 X"$mf" : 'X\(//\)[^/]' \| \
14694 X"$mf" : 'X\(//\)$' \| \
14695 X"$mf" : 'X\(/\)' \| \
14696 . : '\(.\)' 2>/dev/null ||
14697 echo X"$mf" |
14698 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14699 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14700 /^X\(\/\/\)$/{ s//\1/; q; }
14701 /^X\(\/\).*/{ s//\1/; q; }
14702 s/.*/./; q'`
14703 else
14704 continue
14706 # Extract the definition of DEPDIR, am__include, and am__quote
14707 # from the Makefile without running `make'.
14708 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14709 test -z "$DEPDIR" && continue
14710 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14711 test -z "am__include" && continue
14712 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14713 # When using ansi2knr, U may be empty or an underscore; expand it
14714 U=`sed -n 's/^U = //p' < "$mf"`
14715 # Find all dependency output files, they are included files with
14716 # $(DEPDIR) in their names. We invoke sed twice because it is the
14717 # simplest approach to changing $(DEPDIR) to its actual value in the
14718 # expansion.
14719 for file in `sed -n "
14720 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14721 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14722 # Make sure the directory exists.
14723 test -f "$dirpart/$file" && continue
14724 fdir=`(dirname "$file") 2>/dev/null ||
14725 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14726 X"$file" : 'X\(//\)[^/]' \| \
14727 X"$file" : 'X\(//\)$' \| \
14728 X"$file" : 'X\(/\)' \| \
14729 . : '\(.\)' 2>/dev/null ||
14730 echo X"$file" |
14731 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14732 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14733 /^X\(\/\/\)$/{ s//\1/; q; }
14734 /^X\(\/\).*/{ s//\1/; q; }
14735 s/.*/./; q'`
14736 { if $as_mkdir_p; then
14737 mkdir -p $dirpart/$fdir
14738 else
14739 as_dir=$dirpart/$fdir
14740 as_dirs=
14741 while test ! -d "$as_dir"; do
14742 as_dirs="$as_dir $as_dirs"
14743 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14744 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14745 X"$as_dir" : 'X\(//\)[^/]' \| \
14746 X"$as_dir" : 'X\(//\)$' \| \
14747 X"$as_dir" : 'X\(/\)' \| \
14748 . : '\(.\)' 2>/dev/null ||
14749 echo X"$as_dir" |
14750 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14751 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14752 /^X\(\/\/\)$/{ s//\1/; q; }
14753 /^X\(\/\).*/{ s//\1/; q; }
14754 s/.*/./; q'`
14755 done
14756 test ! -n "$as_dirs" || mkdir $as_dirs
14757 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
14758 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
14759 { (exit 1); exit 1; }; }; }
14761 # echo "creating $dirpart/$file"
14762 echo '# dummy' > "$dirpart/$file"
14763 done
14764 done
14766 libtool )
14768 # See if we are running on zsh, and set the options which allow our
14769 # commands through without removal of \ escapes.
14770 if test -n "${ZSH_VERSION+set}" ; then
14771 setopt NO_GLOB_SUBST
14774 cfgfile="${ofile}T"
14775 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14776 $RM "$cfgfile"
14778 cat <<_LT_EOF >> "$cfgfile"
14779 #! $SHELL
14781 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14782 # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
14783 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14784 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14786 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14787 # 2006, 2007 Free Software Foundation, Inc.
14789 # This file is part of GNU Libtool:
14790 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14792 # This program is free software; you can redistribute it and/or modify
14793 # it under the terms of the GNU General Public License as published by
14794 # the Free Software Foundation; either version 2 of the License, or
14795 # (at your option) any later version.
14797 # This program is distributed in the hope that it will be useful, but
14798 # WITHOUT ANY WARRANTY; without even the implied warranty of
14799 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14800 # General Public License for more details.
14802 # You should have received a copy of the GNU General Public License
14803 # along with this program; if not, a copy can be downloaded from
14804 # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
14805 # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
14806 # MA 02110-1301, USA.
14808 # As a special exception to the GNU General Public License, if you
14809 # distribute this file as part of a program that contains a
14810 # configuration script generated by Autoconf, you may include it under
14811 # the same distribution terms that you use for the rest of that program.
14814 # The names of the tagged configurations supported by this script.
14815 available_tags=""
14817 # ### BEGIN LIBTOOL CONFIG
14819 # Which release of libtool.m4 was used?
14820 macro_version=$macro_version
14821 macro_revision=$macro_revision
14823 # Whether or not to build shared libraries.
14824 build_libtool_libs=$enable_shared
14826 # Whether or not to build static libraries.
14827 build_old_libs=$enable_static
14829 # What type of objects to build.
14830 pic_mode=$pic_mode
14832 # Whether or not to optimize for fast installation.
14833 fast_install=$enable_fast_install
14835 # The host system.
14836 host_alias=$host_alias
14837 host=$host
14838 host_os=$host_os
14840 # The build system.
14841 build_alias=$build_alias
14842 build=$build
14843 build_os=$build_os
14845 # A sed program that does not truncate output.
14846 SED=$lt_SED
14848 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14849 Xsed="\$SED -e 1s/^X//"
14851 # A grep program that handles long lines.
14852 GREP=$lt_GREP
14854 # An ERE matcher.
14855 EGREP=$lt_EGREP
14857 # A literal string matcher.
14858 FGREP=$lt_FGREP
14860 # A BSD- or MS-compatible name lister.
14861 NM=$lt_NM
14863 # Whether we need soft or hard links.
14864 LN_S=$lt_LN_S
14866 # What is the maximum length of a command?
14867 max_cmd_len=$max_cmd_len
14869 # Object file suffix (normally "o").
14870 objext=$ac_objext
14872 # Executable file suffix (normally "").
14873 exeext=$exeext
14875 # whether the shell understands "unset".
14876 lt_unset=$lt_unset
14878 # turn spaces into newlines.
14879 SP2NL=$lt_lt_SP2NL
14881 # turn newlines into spaces.
14882 NL2SP=$lt_lt_NL2SP
14884 # How to create reloadable object files.
14885 reload_flag=$lt_reload_flag
14886 reload_cmds=$lt_reload_cmds
14888 # Method to check whether dependent libraries are shared objects.
14889 deplibs_check_method=$lt_deplibs_check_method
14891 # Command to use when deplibs_check_method == "file_magic".
14892 file_magic_cmd=$lt_file_magic_cmd
14894 # The archiver.
14895 AR=$lt_AR
14896 AR_FLAGS=$lt_AR_FLAGS
14898 # A symbol stripping program.
14899 STRIP=$lt_STRIP
14901 # Commands used to install an old-style archive.
14902 RANLIB=$lt_RANLIB
14903 old_postinstall_cmds=$lt_old_postinstall_cmds
14904 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14906 # A C compiler.
14907 LTCC=$lt_CC
14909 # LTCC compiler flags.
14910 LTCFLAGS=$lt_CFLAGS
14912 # Take the output of nm and produce a listing of raw symbols and C names.
14913 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14915 # Transform the output of nm in a proper C declaration.
14916 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14918 # Transform the output of nm in a C name address pair.
14919 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14921 # The name of the directory that contains temporary libtool files.
14922 objdir=$objdir
14924 # Shell to use when invoking shell scripts.
14925 SHELL=$lt_SHELL
14927 # An echo program that does not interpret backslashes.
14928 ECHO=$lt_ECHO
14930 # Used to examine libraries when file_magic_cmd begins with "file".
14931 MAGIC_CMD=$MAGIC_CMD
14933 # Must we lock files when doing compilation?
14934 need_locks=$lt_need_locks
14936 # Old archive suffix (normally "a").
14937 libext=$libext
14939 # Shared library suffix (normally ".so").
14940 shrext_cmds=$lt_shrext_cmds
14942 # The commands to extract the exported symbol list from a shared archive.
14943 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14945 # Variables whose values should be saved in libtool wrapper scripts and
14946 # restored at link time.
14947 variables_saved_for_relink=$lt_variables_saved_for_relink
14949 # Do we need the "lib" prefix for modules?
14950 need_lib_prefix=$need_lib_prefix
14952 # Do we need a version for libraries?
14953 need_version=$need_version
14955 # Library versioning type.
14956 version_type=$version_type
14958 # Shared library runtime path variable.
14959 runpath_var=$runpath_var
14961 # Shared library path variable.
14962 shlibpath_var=$shlibpath_var
14964 # Is shlibpath searched before the hard-coded library search path?
14965 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14967 # Format of library name prefix.
14968 libname_spec=$lt_libname_spec
14970 # List of archive names. First name is the real one, the rest are links.
14971 # The last name is the one that the linker finds with -lNAME
14972 library_names_spec=$lt_library_names_spec
14974 # The coded name of the library, if different from the real name.
14975 soname_spec=$lt_soname_spec
14977 # Command to use after installation of a shared archive.
14978 postinstall_cmds=$lt_postinstall_cmds
14980 # Command to use after uninstallation of a shared archive.
14981 postuninstall_cmds=$lt_postuninstall_cmds
14983 # Commands used to finish a libtool library installation in a directory.
14984 finish_cmds=$lt_finish_cmds
14986 # As "finish_cmds", except a single script fragment to be evaled but
14987 # not shown.
14988 finish_eval=$lt_finish_eval
14990 # Whether we should hardcode library paths into libraries.
14991 hardcode_into_libs=$hardcode_into_libs
14993 # Compile-time system search path for libraries.
14994 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14996 # Run-time system search path for libraries.
14997 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14999 # Whether dlopen is supported.
15000 dlopen_support=$enable_dlopen
15002 # Whether dlopen of programs is supported.
15003 dlopen_self=$enable_dlopen_self
15005 # Whether dlopen of statically linked programs is supported.
15006 dlopen_self_static=$enable_dlopen_self_static
15008 # Commands to strip libraries.
15009 old_striplib=$lt_old_striplib
15010 striplib=$lt_striplib
15013 # The linker used to build libraries.
15014 LD=$lt_LD
15016 # Commands used to build an old-style archive.
15017 old_archive_cmds=$lt_old_archive_cmds
15019 # A language specific compiler.
15020 CC=$lt_compiler
15022 # Is the compiler the GNU compiler?
15023 with_gcc=$GCC
15025 # Compiler flag to turn off builtin functions.
15026 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15028 # How to pass a linker flag through the compiler.
15029 wl=$lt_lt_prog_compiler_wl
15031 # Additional compiler flags for building library objects.
15032 pic_flag=$lt_lt_prog_compiler_pic
15034 # Compiler flag to prevent dynamic linking.
15035 link_static_flag=$lt_lt_prog_compiler_static
15037 # Does compiler simultaneously support -c and -o options?
15038 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15040 # Whether or not to add -lc for building shared libraries.
15041 build_libtool_need_lc=$archive_cmds_need_lc
15043 # Whether or not to disallow shared libs when runtime libs are static.
15044 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15046 # Compiler flag to allow reflexive dlopens.
15047 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15049 # Compiler flag to generate shared objects directly from archives.
15050 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15052 # Whether the compiler copes with passing no objects directly.
15053 compiler_needs_object=$lt_compiler_needs_object
15055 # Create an old-style archive from a shared archive.
15056 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15058 # Create a temporary old-style archive to link instead of a shared archive.
15059 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15061 # Commands used to build a shared archive.
15062 archive_cmds=$lt_archive_cmds
15063 archive_expsym_cmds=$lt_archive_expsym_cmds
15065 # Commands used to build a loadable module if different from building
15066 # a shared archive.
15067 module_cmds=$lt_module_cmds
15068 module_expsym_cmds=$lt_module_expsym_cmds
15070 # Whether we are building with GNU ld or not.
15071 with_gnu_ld=$lt_with_gnu_ld
15073 # Flag that allows shared libraries with undefined symbols to be built.
15074 allow_undefined_flag=$lt_allow_undefined_flag
15076 # Flag that enforces no undefined symbols.
15077 no_undefined_flag=$lt_no_undefined_flag
15079 # Flag to hardcode \$libdir into a binary during linking.
15080 # This must work even if \$libdir does not exist
15081 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15083 # If ld is used when linking, flag to hardcode \$libdir into a binary
15084 # during linking. This must work even if \$libdir does not exist.
15085 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15087 # Whether we need a single "-rpath" flag with a separated argument.
15088 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15090 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15091 # DIR into the resulting binary.
15092 hardcode_direct=$hardcode_direct
15094 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15095 # DIR into the resulting binary and the resulting library dependency is
15096 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15097 # library is relocated.
15098 hardcode_direct_absolute=$hardcode_direct_absolute
15100 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15101 # into the resulting binary.
15102 hardcode_minus_L=$hardcode_minus_L
15104 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15105 # into the resulting binary.
15106 hardcode_shlibpath_var=$hardcode_shlibpath_var
15108 # Set to "yes" if building a shared library automatically hardcodes DIR
15109 # into the library and all subsequent libraries and executables linked
15110 # against it.
15111 hardcode_automatic=$hardcode_automatic
15113 # Set to yes if linker adds runtime paths of dependent libraries
15114 # to runtime path list.
15115 inherit_rpath=$inherit_rpath
15117 # Whether libtool must link a program against all its dependency libraries.
15118 link_all_deplibs=$link_all_deplibs
15120 # Fix the shell variable \$srcfile for the compiler.
15121 fix_srcfile_path=$lt_fix_srcfile_path
15123 # Set to "yes" if exported symbols are required.
15124 always_export_symbols=$always_export_symbols
15126 # The commands to list exported symbols.
15127 export_symbols_cmds=$lt_export_symbols_cmds
15129 # Symbols that should not be listed in the preloaded symbols.
15130 exclude_expsyms=$lt_exclude_expsyms
15132 # Symbols that must always be exported.
15133 include_expsyms=$lt_include_expsyms
15135 # Commands necessary for linking programs (against libraries) with templates.
15136 prelink_cmds=$lt_prelink_cmds
15138 # Specify filename containing input files.
15139 file_list_spec=$lt_file_list_spec
15141 # How to hardcode a shared library path into an executable.
15142 hardcode_action=$hardcode_action
15144 # ### END LIBTOOL CONFIG
15146 _LT_EOF
15148 case $host_os in
15149 aix3*)
15150 cat <<\_LT_EOF >> "$cfgfile"
15151 # AIX sometimes has problems with the GCC collect2 program. For some
15152 # reason, if we set the COLLECT_NAMES environment variable, the problems
15153 # vanish in a puff of smoke.
15154 if test "X${COLLECT_NAMES+set}" != Xset; then
15155 COLLECT_NAMES=
15156 export COLLECT_NAMES
15158 _LT_EOF
15160 esac
15163 ltmain="$ac_aux_dir/ltmain.sh"
15166 # We use sed instead of cat because bash on DJGPP gets confused if
15167 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15168 # text mode, it properly converts lines to CR/LF. This bash problem
15169 # is reportedly fixed, but why not run on old versions too?
15170 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15171 || (rm -f "$cfgfile"; exit 1)
15173 case $xsi_shell in
15174 yes)
15175 cat << \_LT_EOF >> "$cfgfile"
15176 # func_dirname file append nondir_replacement
15177 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15178 # otherwise set result to NONDIR_REPLACEMENT.
15179 func_dirname ()
15181 case ${1} in
15182 */*) func_dirname_result="${1%/*}${2}" ;;
15183 * ) func_dirname_result="${3}" ;;
15184 esac
15187 # func_basename file
15188 func_basename ()
15190 func_basename_result="${1##*/}"
15193 # func_stripname prefix suffix name
15194 # strip PREFIX and SUFFIX off of NAME.
15195 # PREFIX and SUFFIX must not contain globbing or regex special
15196 # characters, hashes, percent signs, but SUFFIX may contain a leading
15197 # dot (in which case that matches only a dot).
15198 func_stripname ()
15200 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15201 # positional parameters, so assign one to ordinary parameter first.
15202 func_stripname_result=${3}
15203 func_stripname_result=${func_stripname_result#"${1}"}
15204 func_stripname_result=${func_stripname_result%"${2}"}
15207 # func_opt_split
15208 func_opt_split ()
15210 func_opt_split_opt=${1%%=*}
15211 func_opt_split_arg=${1#*=}
15214 # func_lo2o object
15215 func_lo2o ()
15217 case ${1} in
15218 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15219 *) func_lo2o_result=${1} ;;
15220 esac
15222 _LT_EOF
15224 *) # Bourne compatible functions.
15225 cat << \_LT_EOF >> "$cfgfile"
15226 # func_dirname file append nondir_replacement
15227 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15228 # otherwise set result to NONDIR_REPLACEMENT.
15229 func_dirname ()
15231 # Extract subdirectory from the argument.
15232 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15233 if test "X$func_dirname_result" = "X${1}"; then
15234 func_dirname_result="${3}"
15235 else
15236 func_dirname_result="$func_dirname_result${2}"
15240 # func_basename file
15241 func_basename ()
15243 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15246 # func_stripname prefix suffix name
15247 # strip PREFIX and SUFFIX off of NAME.
15248 # PREFIX and SUFFIX must not contain globbing or regex special
15249 # characters, hashes, percent signs, but SUFFIX may contain a leading
15250 # dot (in which case that matches only a dot).
15251 # func_strip_suffix prefix name
15252 func_stripname ()
15254 case ${2} in
15255 .*) func_stripname_result=`$ECHO "X${3}" \
15256 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15257 *) func_stripname_result=`$ECHO "X${3}" \
15258 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15259 esac
15262 # sed scripts:
15263 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15264 my_sed_long_arg='1s/^-[^=]*=//'
15266 # func_opt_split
15267 func_opt_split ()
15269 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15270 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15273 # func_lo2o object
15274 func_lo2o ()
15276 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15278 _LT_EOF
15279 esac
15281 case $lt_shell_append in
15282 yes)
15283 cat << \_LT_EOF >> "$cfgfile"
15285 # func_append var value
15286 # Append VALUE to the end of shell variable VAR.
15287 func_append ()
15289 eval "$1+=\$2"
15291 _LT_EOF
15294 cat << \_LT_EOF >> "$cfgfile"
15296 # func_append var value
15297 # Append VALUE to the end of shell variable VAR.
15298 func_append ()
15300 eval "$1=\$$1\$2"
15302 _LT_EOF
15304 esac
15307 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15308 || (rm -f "$cfgfile"; exit 1)
15310 mv -f "$cfgfile" "$ofile" ||
15311 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15312 chmod +x "$ofile"
15315 include ) test -d include || mkdir include ;;
15316 src )
15317 test -d src || mkdir src
15318 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
15320 esac
15321 done
15322 _ACEOF
15324 cat >>$CONFIG_STATUS <<\_ACEOF
15326 { (exit 0); exit 0; }
15327 _ACEOF
15328 chmod +x $CONFIG_STATUS
15329 ac_clean_files=$ac_clean_files_save
15332 # configure is writing to config.log, and then calls config.status.
15333 # config.status does its own redirection, appending to config.log.
15334 # Unfortunately, on DOS this fails, as config.log is still kept open
15335 # by configure, so config.status won't be able to write to it; its
15336 # output is simply discarded. So we exec the FD to /dev/null,
15337 # effectively closing config.log, so it can be properly (re)opened and
15338 # appended to by config.status. When coming back to configure, we
15339 # need to make the FD available again.
15340 if test "$no_create" != yes; then
15341 ac_cs_success=:
15342 ac_config_status_args=
15343 test "$silent" = yes &&
15344 ac_config_status_args="$ac_config_status_args --quiet"
15345 exec 5>/dev/null
15346 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15347 exec 5>>config.log
15348 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15349 # would make configure fail if this is the last instruction.
15350 $ac_cs_success || { (exit 1); exit 1; }