]> git.ipfire.org Git - thirdparty/gcc.git/blame - libffi/configure
re PR other/35457 (Error building GCC trunk on CELL SPU)
[thirdparty/gcc.git] / libffi / configure
CommitLineData
63e5e3e0 1#! /bin/sh
63e5e3e0 2# Guess values for system-dependent variables and create Makefiles.
3ed8e5b6
AT
3# Generated by GNU Autoconf 2.59 for libffi 2.1.
4#
5# Report bugs to <http://gcc.gnu.org/bugs.html>.
63e5e3e0 6#
3ed8e5b6 7# Copyright (C) 2003 Free Software Foundation, Inc.
63e5e3e0
AG
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
3ed8e5b6
AT
10## --------------------- ##
11## M4sh Initialization. ##
12## --------------------- ##
13
14# Be Bourne compatible
15if 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+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29else
30 as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for 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
45do
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
50 fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56else
57 as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62else
63 as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if 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=:
97 fi
98 rm -f conf$$.sh
99fi
100
101
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
112for as_dir in $PATH
113do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119 ;;
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
125 fi
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; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
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
139 /*)
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
154done
155;;
156 esac
157
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 '
168 N
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; }; }
179
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
186}
187
188
189case `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= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198else
199 as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if 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'
212 fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215else
216 as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" $as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
1cf3d07d
SE
246
247# Check that we are running under the correct shell.
248SHELL=${CONFIG_SHELL-/bin/sh}
249
250case X$lt_ECHO in
251X*--fallback-echo)
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
254 ;;
255esac
256
257ECHO=${lt_ECHO-echo}
258if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
260 shift
261elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
263 :
264elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $ECHO works!
266 :
267else
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
270fi
271
272if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
274 shift
275 cat <<_LT_EOF
276$*
277_LT_EOF
278 exit 0
279fi
280
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
284
285if 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
294 fi
295 done
296 fi
297
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
301 :
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'
306 #
307 # So, first we look for a working echo in the user's PATH.
308
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
318 fi
319 done
320 IFS="$lt_save_ifs"
321
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
344 :
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=:
362
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
367 fi
368 prev="$cmd"
369 done
370
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
378 fi
379 fi
380 fi
381 fi
382 fi
383fi
384
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.
387lt_ECHO=$ECHO
388if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390fi
391
392
393
394
3ed8e5b6
AT
395# Name of the host.
396# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
397# so uname gets run too.
398ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
63e5e3e0 399
3ed8e5b6
AT
400exec 6>&1
401
402#
403# Initializations.
404#
63e5e3e0 405ac_default_prefix=/usr/local
3ed8e5b6
AT
406ac_config_libobj_dir=.
407cross_compiling=no
408subdirs=
409MFLAGS=
410MAKEFLAGS=
411SHELL=${CONFIG_SHELL-/bin/sh}
412
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}
417
418# Identity of this package.
419PACKAGE_NAME='libffi'
420PACKAGE_TARNAME='libffi'
421PACKAGE_VERSION='2.1'
422PACKAGE_STRING='libffi 2.1'
423PACKAGE_BUGREPORT='http://gcc.gnu.org/bugs.html'
424
c9b93377
JB
425# Factoring default headers for most tests.
426ac_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"
461
8d5c5e35 462ac_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'
3ed8e5b6 463ac_subst_files=''
63e5e3e0
AG
464
465# Initialize some variables set by options.
3ed8e5b6
AT
466ac_init_help=
467ac_init_version=false
63e5e3e0
AG
468# The variables have the same names as the options, with
469# dashes changed to underlines.
3ed8e5b6 470cache_file=/dev/null
63e5e3e0 471exec_prefix=NONE
63e5e3e0 472no_create=
63e5e3e0
AG
473no_recursion=
474prefix=NONE
475program_prefix=NONE
476program_suffix=NONE
477program_transform_name=s,x,x,
478silent=
479site=
480srcdir=
63e5e3e0
AG
481verbose=
482x_includes=NONE
483x_libraries=NONE
3ed8e5b6
AT
484
485# Installation directory options.
486# These are left unexpanded so users can "make install exec_prefix=/foo"
487# and all the variables that are supposed to be based on exec_prefix
488# by default will actually change.
489# Use braces instead of parens because sh, perl, etc. also accept them.
63e5e3e0
AG
490bindir='${exec_prefix}/bin'
491sbindir='${exec_prefix}/sbin'
492libexecdir='${exec_prefix}/libexec'
493datadir='${prefix}/share'
494sysconfdir='${prefix}/etc'
495sharedstatedir='${prefix}/com'
496localstatedir='${prefix}/var'
497libdir='${exec_prefix}/lib'
498includedir='${prefix}/include'
499oldincludedir='/usr/include'
500infodir='${prefix}/info'
501mandir='${prefix}/man'
502
63e5e3e0
AG
503ac_prev=
504for ac_option
505do
63e5e3e0
AG
506 # If the previous option needs an argument, assign it.
507 if test -n "$ac_prev"; then
508 eval "$ac_prev=\$ac_option"
509 ac_prev=
510 continue
511 fi
512
3ed8e5b6 513 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
63e5e3e0
AG
514
515 # Accept the important Cygnus configure options, so we can diagnose typos.
516
3ed8e5b6 517 case $ac_option in
63e5e3e0
AG
518
519 -bindir | --bindir | --bindi | --bind | --bin | --bi)
520 ac_prev=bindir ;;
521 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
3ed8e5b6 522 bindir=$ac_optarg ;;
63e5e3e0
AG
523
524 -build | --build | --buil | --bui | --bu)
3ed8e5b6 525 ac_prev=build_alias ;;
63e5e3e0 526 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
3ed8e5b6 527 build_alias=$ac_optarg ;;
63e5e3e0
AG
528
529 -cache-file | --cache-file | --cache-fil | --cache-fi \
530 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
531 ac_prev=cache_file ;;
532 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
533 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
3ed8e5b6
AT
534 cache_file=$ac_optarg ;;
535
536 --config-cache | -C)
537 cache_file=config.cache ;;
63e5e3e0
AG
538
539 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
540 ac_prev=datadir ;;
541 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
542 | --da=*)
3ed8e5b6 543 datadir=$ac_optarg ;;
63e5e3e0
AG
544
545 -disable-* | --disable-*)
3ed8e5b6 546 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
63e5e3e0 547 # Reject names that are not valid shell variable names.
3ed8e5b6
AT
548 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
549 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
550 { (exit 1); exit 1; }; }
551 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
552 eval "enable_$ac_feature=no" ;;
63e5e3e0
AG
553
554 -enable-* | --enable-*)
3ed8e5b6 555 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
63e5e3e0 556 # Reject names that are not valid shell variable names.
3ed8e5b6
AT
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 case $ac_option in
562 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
63e5e3e0
AG
563 *) ac_optarg=yes ;;
564 esac
3ed8e5b6 565 eval "enable_$ac_feature='$ac_optarg'" ;;
63e5e3e0
AG
566
567 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
568 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
569 | --exec | --exe | --ex)
570 ac_prev=exec_prefix ;;
571 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
572 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
573 | --exec=* | --exe=* | --ex=*)
3ed8e5b6 574 exec_prefix=$ac_optarg ;;
63e5e3e0
AG
575
576 -gas | --gas | --ga | --g)
577 # Obsolete; use --with-gas.
578 with_gas=yes ;;
579
3ed8e5b6
AT
580 -help | --help | --hel | --he | -h)
581 ac_init_help=long ;;
582 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
583 ac_init_help=recursive ;;
584 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
585 ac_init_help=short ;;
63e5e3e0
AG
586
587 -host | --host | --hos | --ho)
3ed8e5b6 588 ac_prev=host_alias ;;
63e5e3e0 589 -host=* | --host=* | --hos=* | --ho=*)
3ed8e5b6 590 host_alias=$ac_optarg ;;
63e5e3e0
AG
591
592 -includedir | --includedir | --includedi | --included | --include \
593 | --includ | --inclu | --incl | --inc)
594 ac_prev=includedir ;;
595 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
596 | --includ=* | --inclu=* | --incl=* | --inc=*)
3ed8e5b6 597 includedir=$ac_optarg ;;
63e5e3e0
AG
598
599 -infodir | --infodir | --infodi | --infod | --info | --inf)
600 ac_prev=infodir ;;
601 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
3ed8e5b6 602 infodir=$ac_optarg ;;
63e5e3e0
AG
603
604 -libdir | --libdir | --libdi | --libd)
605 ac_prev=libdir ;;
606 -libdir=* | --libdir=* | --libdi=* | --libd=*)
3ed8e5b6 607 libdir=$ac_optarg ;;
63e5e3e0
AG
608
609 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
610 | --libexe | --libex | --libe)
611 ac_prev=libexecdir ;;
612 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
613 | --libexe=* | --libex=* | --libe=*)
3ed8e5b6 614 libexecdir=$ac_optarg ;;
63e5e3e0
AG
615
616 -localstatedir | --localstatedir | --localstatedi | --localstated \
617 | --localstate | --localstat | --localsta | --localst \
618 | --locals | --local | --loca | --loc | --lo)
619 ac_prev=localstatedir ;;
620 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
621 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
622 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
3ed8e5b6 623 localstatedir=$ac_optarg ;;
63e5e3e0
AG
624
625 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
626 ac_prev=mandir ;;
627 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
3ed8e5b6 628 mandir=$ac_optarg ;;
63e5e3e0
AG
629
630 -nfp | --nfp | --nf)
631 # Obsolete; use --without-fp.
632 with_fp=no ;;
633
634 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
3ed8e5b6 635 | --no-cr | --no-c | -n)
63e5e3e0
AG
636 no_create=yes ;;
637
638 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
639 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
640 no_recursion=yes ;;
641
642 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
643 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
644 | --oldin | --oldi | --old | --ol | --o)
645 ac_prev=oldincludedir ;;
646 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
647 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
648 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
3ed8e5b6 649 oldincludedir=$ac_optarg ;;
63e5e3e0
AG
650
651 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
652 ac_prev=prefix ;;
653 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
3ed8e5b6 654 prefix=$ac_optarg ;;
63e5e3e0
AG
655
656 -program-prefix | --program-prefix | --program-prefi | --program-pref \
657 | --program-pre | --program-pr | --program-p)
658 ac_prev=program_prefix ;;
659 -program-prefix=* | --program-prefix=* | --program-prefi=* \
660 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
3ed8e5b6 661 program_prefix=$ac_optarg ;;
63e5e3e0
AG
662
663 -program-suffix | --program-suffix | --program-suffi | --program-suff \
664 | --program-suf | --program-su | --program-s)
665 ac_prev=program_suffix ;;
666 -program-suffix=* | --program-suffix=* | --program-suffi=* \
667 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
3ed8e5b6 668 program_suffix=$ac_optarg ;;
63e5e3e0
AG
669
670 -program-transform-name | --program-transform-name \
671 | --program-transform-nam | --program-transform-na \
672 | --program-transform-n | --program-transform- \
673 | --program-transform | --program-transfor \
674 | --program-transfo | --program-transf \
675 | --program-trans | --program-tran \
676 | --progr-tra | --program-tr | --program-t)
677 ac_prev=program_transform_name ;;
678 -program-transform-name=* | --program-transform-name=* \
679 | --program-transform-nam=* | --program-transform-na=* \
680 | --program-transform-n=* | --program-transform-=* \
681 | --program-transform=* | --program-transfor=* \
682 | --program-transfo=* | --program-transf=* \
683 | --program-trans=* | --program-tran=* \
684 | --progr-tra=* | --program-tr=* | --program-t=*)
3ed8e5b6 685 program_transform_name=$ac_optarg ;;
63e5e3e0
AG
686
687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
688 | -silent | --silent | --silen | --sile | --sil)
689 silent=yes ;;
690
691 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
692 ac_prev=sbindir ;;
693 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
694 | --sbi=* | --sb=*)
3ed8e5b6 695 sbindir=$ac_optarg ;;
63e5e3e0
AG
696
697 -sharedstatedir | --sharedstatedir | --sharedstatedi \
698 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
699 | --sharedst | --shareds | --shared | --share | --shar \
700 | --sha | --sh)
701 ac_prev=sharedstatedir ;;
702 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
703 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
704 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
705 | --sha=* | --sh=*)
3ed8e5b6 706 sharedstatedir=$ac_optarg ;;
63e5e3e0
AG
707
708 -site | --site | --sit)
709 ac_prev=site ;;
710 -site=* | --site=* | --sit=*)
3ed8e5b6 711 site=$ac_optarg ;;
63e5e3e0
AG
712
713 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
714 ac_prev=srcdir ;;
715 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
3ed8e5b6 716 srcdir=$ac_optarg ;;
63e5e3e0
AG
717
718 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
719 | --syscon | --sysco | --sysc | --sys | --sy)
720 ac_prev=sysconfdir ;;
721 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
722 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
3ed8e5b6 723 sysconfdir=$ac_optarg ;;
63e5e3e0
AG
724
725 -target | --target | --targe | --targ | --tar | --ta | --t)
3ed8e5b6 726 ac_prev=target_alias ;;
63e5e3e0 727 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
3ed8e5b6 728 target_alias=$ac_optarg ;;
63e5e3e0
AG
729
730 -v | -verbose | --verbose | --verbos | --verbo | --verb)
731 verbose=yes ;;
732
3ed8e5b6
AT
733 -version | --version | --versio | --versi | --vers | -V)
734 ac_init_version=: ;;
63e5e3e0
AG
735
736 -with-* | --with-*)
3ed8e5b6 737 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
63e5e3e0 738 # Reject names that are not valid shell variable names.
3ed8e5b6
AT
739 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
740 { echo "$as_me: error: invalid package name: $ac_package" >&2
741 { (exit 1); exit 1; }; }
63e5e3e0 742 ac_package=`echo $ac_package| sed 's/-/_/g'`
3ed8e5b6
AT
743 case $ac_option in
744 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
63e5e3e0
AG
745 *) ac_optarg=yes ;;
746 esac
3ed8e5b6 747 eval "with_$ac_package='$ac_optarg'" ;;
63e5e3e0
AG
748
749 -without-* | --without-*)
3ed8e5b6 750 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
63e5e3e0 751 # Reject names that are not valid shell variable names.
3ed8e5b6
AT
752 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753 { echo "$as_me: error: invalid package name: $ac_package" >&2
754 { (exit 1); exit 1; }; }
755 ac_package=`echo $ac_package | sed 's/-/_/g'`
756 eval "with_$ac_package=no" ;;
63e5e3e0
AG
757
758 --x)
759 # Obsolete; use --with-x.
760 with_x=yes ;;
761
762 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
763 | --x-incl | --x-inc | --x-in | --x-i)
764 ac_prev=x_includes ;;
765 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
766 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
3ed8e5b6 767 x_includes=$ac_optarg ;;
63e5e3e0
AG
768
769 -x-libraries | --x-libraries | --x-librarie | --x-librari \
770 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
771 ac_prev=x_libraries ;;
772 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
773 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
3ed8e5b6 774 x_libraries=$ac_optarg ;;
63e5e3e0 775
3ed8e5b6
AT
776 -*) { echo "$as_me: error: unrecognized option: $ac_option
777Try \`$0 --help' for more information." >&2
778 { (exit 1); exit 1; }; }
63e5e3e0
AG
779 ;;
780
3ed8e5b6
AT
781 *=*)
782 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
783 # Reject names that are not valid shell variable names.
784 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
785 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
786 { (exit 1); exit 1; }; }
787 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
788 eval "$ac_envvar='$ac_optarg'"
789 export $ac_envvar ;;
790
63e5e3e0 791 *)
3ed8e5b6
AT
792 # FIXME: should be removed in autoconf 3.0.
793 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
794 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
795 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
796 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
63e5e3e0
AG
797 ;;
798
799 esac
800done
801
802if test -n "$ac_prev"; then
3ed8e5b6
AT
803 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
804 { echo "$as_me: error: missing argument to $ac_option" >&2
805 { (exit 1); exit 1; }; }
63e5e3e0 806fi
63e5e3e0 807
3ed8e5b6
AT
808# Be sure to have absolute paths.
809for ac_var in exec_prefix prefix
810do
811 eval ac_val=$`echo $ac_var`
812 case $ac_val in
813 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
814 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
815 { (exit 1); exit 1; }; };;
816 esac
817done
63e5e3e0 818
3ed8e5b6
AT
819# Be sure to have absolute paths.
820for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
821 localstatedir libdir includedir oldincludedir infodir mandir
63e5e3e0 822do
3ed8e5b6
AT
823 eval ac_val=$`echo $ac_var`
824 case $ac_val in
825 [\\/$]* | ?:[\\/]* ) ;;
826 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
827 { (exit 1); exit 1; }; };;
63e5e3e0
AG
828 esac
829done
830
3ed8e5b6
AT
831# There might be people who depend on the old broken behavior: `$host'
832# used to hold the argument of --host etc.
833# FIXME: To remove some day.
834build=$build_alias
835host=$host_alias
836target=$target_alias
837
838# FIXME: To remove some day.
839if test "x$host_alias" != x; then
840 if test "x$build_alias" = x; then
841 cross_compiling=maybe
842 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
843 If a cross compiler is detected then cross compile mode will be used." >&2
844 elif test "x$build_alias" != "x$host_alias"; then
845 cross_compiling=yes
846 fi
847fi
63e5e3e0 848
3ed8e5b6
AT
849ac_tool_prefix=
850test -n "$host_alias" && ac_tool_prefix=$host_alias-
851
852test "$silent" = yes && exec 6>/dev/null
63e5e3e0 853
63e5e3e0
AG
854
855# Find the source files, if location was not specified.
856if test -z "$srcdir"; then
857 ac_srcdir_defaulted=yes
858 # Try the directory containing this script, then its parent.
3ed8e5b6
AT
859 ac_confdir=`(dirname "$0") 2>/dev/null ||
860$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
861 X"$0" : 'X\(//\)[^/]' \| \
862 X"$0" : 'X\(//\)$' \| \
863 X"$0" : 'X\(/\)' \| \
864 . : '\(.\)' 2>/dev/null ||
865echo X"$0" |
866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
867 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
868 /^X\(\/\/\)$/{ s//\1/; q; }
869 /^X\(\/\).*/{ s//\1/; q; }
870 s/.*/./; q'`
63e5e3e0
AG
871 srcdir=$ac_confdir
872 if test ! -r $srcdir/$ac_unique_file; then
873 srcdir=..
874 fi
875else
876 ac_srcdir_defaulted=no
877fi
878if test ! -r $srcdir/$ac_unique_file; then
879 if test "$ac_srcdir_defaulted" = yes; then
3ed8e5b6
AT
880 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
881 { (exit 1); exit 1; }; }
63e5e3e0 882 else
3ed8e5b6
AT
883 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
884 { (exit 1); exit 1; }; }
63e5e3e0
AG
885 fi
886fi
3ed8e5b6
AT
887(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
888 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
889 { (exit 1); exit 1; }; }
890srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
891ac_env_build_alias_set=${build_alias+set}
892ac_env_build_alias_value=$build_alias
893ac_cv_env_build_alias_set=${build_alias+set}
894ac_cv_env_build_alias_value=$build_alias
895ac_env_host_alias_set=${host_alias+set}
896ac_env_host_alias_value=$host_alias
897ac_cv_env_host_alias_set=${host_alias+set}
898ac_cv_env_host_alias_value=$host_alias
899ac_env_target_alias_set=${target_alias+set}
900ac_env_target_alias_value=$target_alias
901ac_cv_env_target_alias_set=${target_alias+set}
902ac_cv_env_target_alias_value=$target_alias
076e5443
PB
903ac_env_CCAS_set=${CCAS+set}
904ac_env_CCAS_value=$CCAS
905ac_cv_env_CCAS_set=${CCAS+set}
906ac_cv_env_CCAS_value=$CCAS
907ac_env_CCASFLAGS_set=${CCASFLAGS+set}
908ac_env_CCASFLAGS_value=$CCASFLAGS
909ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set}
910ac_cv_env_CCASFLAGS_value=$CCASFLAGS
3ed8e5b6
AT
911ac_env_CPP_set=${CPP+set}
912ac_env_CPP_value=$CPP
913ac_cv_env_CPP_set=${CPP+set}
914ac_cv_env_CPP_value=$CPP
915ac_env_CPPFLAGS_set=${CPPFLAGS+set}
916ac_env_CPPFLAGS_value=$CPPFLAGS
917ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
918ac_cv_env_CPPFLAGS_value=$CPPFLAGS
63e5e3e0 919
3ed8e5b6
AT
920#
921# Report the --help message.
922#
923if test "$ac_init_help" = "long"; then
924 # Omit some internal or obsolete options to make the list less imposing.
925 # This message is too long to be a string in the A/UX 3.1 sh.
926 cat <<_ACEOF
927\`configure' configures libffi 2.1 to adapt to many kinds of systems.
63e5e3e0 928
3ed8e5b6
AT
929Usage: $0 [OPTION]... [VAR=VALUE]...
930
931To assign environment variables (e.g., CC, CFLAGS...), specify them as
932VAR=VALUE. See below for descriptions of some of the useful variables.
933
934Defaults for the options are specified in brackets.
935
936Configuration:
937 -h, --help display this help and exit
938 --help=short display options specific to this package
939 --help=recursive display the short help of all the included packages
940 -V, --version display version information and exit
941 -q, --quiet, --silent do not print \`checking...' messages
942 --cache-file=FILE cache test results in FILE [disabled]
943 -C, --config-cache alias for \`--cache-file=config.cache'
944 -n, --no-create do not create output files
945 --srcdir=DIR find the sources in DIR [configure dir or \`..']
946
947_ACEOF
948
949 cat <<_ACEOF
950Installation directories:
951 --prefix=PREFIX install architecture-independent files in PREFIX
952 [$ac_default_prefix]
953 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
954 [PREFIX]
955
956By default, \`make install' will install all the files in
957\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
958an installation prefix other than \`$ac_default_prefix' using \`--prefix',
959for instance \`--prefix=\$HOME'.
960
961For better control, use the options below.
962
963Fine tuning of the installation directories:
964 --bindir=DIR user executables [EPREFIX/bin]
965 --sbindir=DIR system admin executables [EPREFIX/sbin]
966 --libexecdir=DIR program executables [EPREFIX/libexec]
967 --datadir=DIR read-only architecture-independent data [PREFIX/share]
968 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
969 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
970 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
971 --libdir=DIR object code libraries [EPREFIX/lib]
972 --includedir=DIR C header files [PREFIX/include]
973 --oldincludedir=DIR C header files for non-gcc [/usr/include]
974 --infodir=DIR info documentation [PREFIX/info]
975 --mandir=DIR man documentation [PREFIX/man]
976_ACEOF
977
978 cat <<\_ACEOF
979
980Program names:
981 --program-prefix=PREFIX prepend PREFIX to installed program names
982 --program-suffix=SUFFIX append SUFFIX to installed program names
983 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
984
985System types:
986 --build=BUILD configure for building on BUILD [guessed]
987 --host=HOST cross-compile to build programs to run on HOST [BUILD]
988 --target=TARGET configure for building compilers for TARGET [HOST]
989_ACEOF
990fi
991
992if test -n "$ac_init_help"; then
993 case $ac_init_help in
994 short | recursive ) echo "Configuration of libffi 2.1:";;
995 esac
996 cat <<\_ACEOF
997
998Optional Features:
999 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1000 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
076e5443
PB
1001 --enable-multilib build many library versions (default)
1002 --disable-dependency-tracking speeds up one-time build
1003 --enable-dependency-tracking do not reject slow dependency extractors
1cf3d07d
SE
1004 --enable-shared[=PKGS]
1005 build shared libraries [default=yes]
1006 --enable-static[=PKGS]
1007 build static libraries [default=yes]
1008 --enable-fast-install[=PKGS]
1009 optimize for fast installation [default=yes]
3ed8e5b6 1010 --disable-libtool-lock avoid locking (might break parallel builds)
076e5443
PB
1011 --enable-maintainer-mode enable make rules and dependencies not useful
1012 (and sometimes confusing) to the casual installer
3ed8e5b6
AT
1013 --enable-debug debugging mode
1014 --disable-structs omit code for struct support
1015 --disable-raw-api make the raw api unavailable
1016 --enable-purify-safety purify-safe mode
1017
1018Optional Packages:
1019 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1020 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1cf3d07d
SE
1021 --with-pic try to use only PIC/non-PIC objects [default=use
1022 both]
1023 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
3ed8e5b6
AT
1024
1025Some influential environment variables:
1026 CC C compiler command
1027 CFLAGS C compiler flags
1028 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1029 nonstandard directory <lib dir>
1030 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1031 headers in a nonstandard directory <include dir>
076e5443
PB
1032 CCAS assembler compiler command (defaults to CC)
1033 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
3ed8e5b6
AT
1034 CPP C preprocessor
1035
1036Use these variables to override the choices made by `configure' or to help
1037it to find libraries and programs with nonstandard names/locations.
1038
1039Report bugs to <http://gcc.gnu.org/bugs.html>.
1040_ACEOF
63e5e3e0
AG
1041fi
1042
3ed8e5b6
AT
1043if test "$ac_init_help" = "recursive"; then
1044 # If there are subdirs, report their specific --help.
1045 ac_popdir=`pwd`
1046 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1047 test -d $ac_dir || continue
1048 ac_builddir=.
1049
1050if test "$ac_dir" != .; then
1051 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1052 # A "../" for each directory in $ac_dir_suffix.
1053 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
63e5e3e0 1054else
3ed8e5b6 1055 ac_dir_suffix= ac_top_builddir=
63e5e3e0
AG
1056fi
1057
3ed8e5b6
AT
1058case $srcdir in
1059 .) # No --srcdir option. We are building in place.
1060 ac_srcdir=.
1061 if test -z "$ac_top_builddir"; then
1062 ac_top_srcdir=.
1063 else
1064 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1065 fi ;;
1066 [\\/]* | ?:[\\/]* ) # Absolute path.
1067 ac_srcdir=$srcdir$ac_dir_suffix;
1068 ac_top_srcdir=$srcdir ;;
1069 *) # Relative path.
1070 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1071 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1072esac
675cdab3 1073
3ed8e5b6
AT
1074# Do not use `cd foo && pwd` to compute absolute paths, because
1075# the directories may not exist.
1076case `pwd` in
1077.) ac_abs_builddir="$ac_dir";;
1078*)
1079 case "$ac_dir" in
1080 .) ac_abs_builddir=`pwd`;;
1081 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1082 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1083 esac;;
1084esac
1085case $ac_abs_builddir in
1086.) ac_abs_top_builddir=${ac_top_builddir}.;;
1087*)
1088 case ${ac_top_builddir}. in
1089 .) ac_abs_top_builddir=$ac_abs_builddir;;
1090 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1091 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1092 esac;;
1093esac
1094case $ac_abs_builddir in
1095.) ac_abs_srcdir=$ac_srcdir;;
1096*)
1097 case $ac_srcdir in
1098 .) ac_abs_srcdir=$ac_abs_builddir;;
1099 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1100 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1101 esac;;
1102esac
1103case $ac_abs_builddir in
1104.) ac_abs_top_srcdir=$ac_top_srcdir;;
1105*)
1106 case $ac_top_srcdir in
1107 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1108 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1109 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1110 esac;;
1111esac
675cdab3 1112
3ed8e5b6
AT
1113 cd $ac_dir
1114 # Check for guested configure; otherwise get Cygnus style configure.
1115 if test -f $ac_srcdir/configure.gnu; then
1116 echo
1117 $SHELL $ac_srcdir/configure.gnu --help=recursive
1118 elif test -f $ac_srcdir/configure; then
1119 echo
1120 $SHELL $ac_srcdir/configure --help=recursive
1121 elif test -f $ac_srcdir/configure.ac ||
1122 test -f $ac_srcdir/configure.in; then
1123 echo
1124 $ac_configure --help
1125 else
1126 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1127 fi
88d8c771 1128 cd $ac_popdir
3ed8e5b6 1129 done
675cdab3
BM
1130fi
1131
3ed8e5b6
AT
1132test -n "$ac_init_help" && exit 0
1133if $ac_init_version; then
1134 cat <<\_ACEOF
1135libffi configure 2.1
1136generated by GNU Autoconf 2.59
675cdab3 1137
3ed8e5b6
AT
1138Copyright (C) 2003 Free Software Foundation, Inc.
1139This configure script is free software; the Free Software Foundation
1140gives unlimited permission to copy, distribute and modify it.
1141_ACEOF
1142 exit 0
675cdab3 1143fi
3ed8e5b6
AT
1144exec 5>config.log
1145cat >&5 <<_ACEOF
1146This file contains any messages produced by compilers while
1147running configure, to aid debugging if configure makes a mistake.
675cdab3 1148
3ed8e5b6
AT
1149It was created by libffi $as_me 2.1, which was
1150generated by GNU Autoconf 2.59. Invocation command line was
63e5e3e0 1151
3ed8e5b6 1152 $ $0 $@
63e5e3e0 1153
3ed8e5b6
AT
1154_ACEOF
1155{
1156cat <<_ASUNAME
1157## --------- ##
1158## Platform. ##
1159## --------- ##
1160
1161hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165uname -v = `(uname -v) 2>/dev/null || echo unknown`
1166
1167/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1169
1170/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1171/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1172/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1174/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1175/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1176/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1177
1178_ASUNAME
1179
1180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1181for as_dir in $PATH
1182do
1183 IFS=$as_save_IFS
1184 test -z "$as_dir" && as_dir=.
1185 echo "PATH: $as_dir"
1186done
63e5e3e0 1187
3ed8e5b6 1188} >&5
63e5e3e0 1189
3ed8e5b6 1190cat >&5 <<_ACEOF
63e5e3e0 1191
6706f116 1192
3ed8e5b6
AT
1193## ----------- ##
1194## Core tests. ##
1195## ----------- ##
3c18f2d1 1196
3ed8e5b6 1197_ACEOF
3c18f2d1 1198
3c18f2d1 1199
3ed8e5b6
AT
1200# Keep a trace of the command line.
1201# Strip out --no-create and --no-recursion so they do not pile up.
1202# Strip out --silent because we don't want to record it for future runs.
1203# Also quote any args containing shell meta-characters.
1204# Make two passes to allow for proper duplicate-argument suppression.
1205ac_configure_args=
1206ac_configure_args0=
1207ac_configure_args1=
1208ac_sep=
1209ac_must_keep_next=false
1210for ac_pass in 1 2
1211do
1212 for ac_arg
1213 do
1214 case $ac_arg in
1215 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217 | -silent | --silent | --silen | --sile | --sil)
1218 continue ;;
1219 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1221 esac
1222 case $ac_pass in
1223 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1224 2)
1225 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226 if test $ac_must_keep_next = true; then
1227 ac_must_keep_next=false # Got value, back to normal.
1228 else
1229 case $ac_arg in
1230 *=* | --config-cache | -C | -disable-* | --disable-* \
1231 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233 | -with-* | --with-* | -without-* | --without-* | --x)
1234 case "$ac_configure_args0 " in
1235 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1236 esac
1237 ;;
1238 -* ) ac_must_keep_next=true ;;
1239 esac
1240 fi
1241 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242 # Get rid of the leading space.
1243 ac_sep=" "
1244 ;;
1245 esac
1246 done
63e5e3e0 1247done
3ed8e5b6
AT
1248$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1250
1251# When interrupted or exit'd, cleanup temporary files, and complete
1252# config.log. We remove comments because anyway the quotes in there
1253# would cause problems or look ugly.
1254# WARNING: Be sure not to use single quotes in there, as some shells,
1255# such as our DU 5.0 friend, will then `close' the trap.
1256trap 'exit_status=$?
1257 # Save into config.log some information that might help in debugging.
1258 {
1259 echo
1260
1261 cat <<\_ASBOX
1262## ---------------- ##
1263## Cache variables. ##
1264## ---------------- ##
1265_ASBOX
1266 echo
1267 # The following way of writing the cache mishandles newlines in values,
1268{
1269 (set) 2>&1 |
1270 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1271 *ac_space=\ *)
1272 sed -n \
1273 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1275 ;;
1276 *)
1277 sed -n \
1278 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1279 ;;
1280 esac;
1281}
1282 echo
1283
1284 cat <<\_ASBOX
1285## ----------------- ##
1286## Output variables. ##
1287## ----------------- ##
1288_ASBOX
1289 echo
1290 for ac_var in $ac_subst_vars
1291 do
1292 eval ac_val=$`echo $ac_var`
1293 echo "$ac_var='"'"'$ac_val'"'"'"
1294 done | sort
1295 echo
1296
1297 if test -n "$ac_subst_files"; then
1298 cat <<\_ASBOX
1299## ------------- ##
1300## Output files. ##
1301## ------------- ##
1302_ASBOX
1303 echo
1304 for ac_var in $ac_subst_files
1305 do
1306 eval ac_val=$`echo $ac_var`
1307 echo "$ac_var='"'"'$ac_val'"'"'"
1308 done | sort
1309 echo
1310 fi
63e5e3e0 1311
3ed8e5b6
AT
1312 if test -s confdefs.h; then
1313 cat <<\_ASBOX
1314## ----------- ##
1315## confdefs.h. ##
1316## ----------- ##
1317_ASBOX
1318 echo
1319 sed "/^$/d" confdefs.h | sort
1320 echo
1321 fi
1322 test "$ac_signal" != 0 &&
1323 echo "$as_me: caught signal $ac_signal"
1324 echo "$as_me: exit $exit_status"
1325 } >&5
1326 rm -f core *.core &&
1327 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1328 exit $exit_status
1329 ' 0
1330for ac_signal in 1 2 13 15; do
1331 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1332done
1333ac_signal=0
63e5e3e0 1334
3ed8e5b6
AT
1335# confdefs.h avoids OS command line length limits that DEFS can exceed.
1336rm -rf conftest* confdefs.h
1337# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1338echo >confdefs.h
6bee5372 1339
3ed8e5b6 1340# Predefined preprocessor variables.
bbf3057b 1341
3ed8e5b6
AT
1342cat >>confdefs.h <<_ACEOF
1343#define PACKAGE_NAME "$PACKAGE_NAME"
1344_ACEOF
bbf3057b
AT
1345
1346
3ed8e5b6
AT
1347cat >>confdefs.h <<_ACEOF
1348#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1349_ACEOF
63e5e3e0 1350
63e5e3e0 1351
3ed8e5b6
AT
1352cat >>confdefs.h <<_ACEOF
1353#define PACKAGE_VERSION "$PACKAGE_VERSION"
1354_ACEOF
63e5e3e0 1355
bbf3057b 1356
3ed8e5b6
AT
1357cat >>confdefs.h <<_ACEOF
1358#define PACKAGE_STRING "$PACKAGE_STRING"
1359_ACEOF
bbf3057b 1360
bbf3057b 1361
3ed8e5b6
AT
1362cat >>confdefs.h <<_ACEOF
1363#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1364_ACEOF
1365
1366
1367# Let the site file select an alternate cache file if it wants to.
1368# Prefer explicitly selected file to automatically selected ones.
1369if test -z "$CONFIG_SITE"; then
1370 if test "x$prefix" != xNONE; then
1371 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1372 else
1373 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374 fi
1375fi
1376for ac_site_file in $CONFIG_SITE; do
1377 if test -r "$ac_site_file"; then
1378 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379echo "$as_me: loading site script $ac_site_file" >&6;}
1380 sed 's/^/| /' "$ac_site_file" >&5
1381 . "$ac_site_file"
1382 fi
1383done
1384
1385if test -r "$cache_file"; then
1386 # Some versions of bash will fail to source /dev/null (special
1387 # files actually), so we avoid doing that.
1388 if test -f "$cache_file"; then
1389 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390echo "$as_me: loading cache $cache_file" >&6;}
1391 case $cache_file in
1392 [\\/]* | ?:[\\/]* ) . $cache_file;;
1393 *) . ./$cache_file;;
1394 esac
1395 fi
1396else
1397 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398echo "$as_me: creating cache $cache_file" >&6;}
1399 >$cache_file
1400fi
1401
1402# Check that the precious variables saved in the cache have kept the same
1403# value.
1404ac_cache_corrupted=false
1405for ac_var in `(set) 2>&1 |
1406 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408 eval ac_new_set=\$ac_env_${ac_var}_set
1409 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410 eval ac_new_val="\$ac_env_${ac_var}_value"
1411 case $ac_old_set,$ac_new_set in
1412 set,)
1413 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415 ac_cache_corrupted=: ;;
1416 ,set)
1417 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419 ac_cache_corrupted=: ;;
1420 ,);;
1421 *)
1422 if test "x$ac_old_val" != "x$ac_new_val"; then
deb984e6
PB
1423 # differences in whitespace do not lead to failure.
1424 ac_old_val_w=`echo x $ac_old_val`
1425 ac_new_val_w=`echo x $ac_new_val`
1426 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1427 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
3ed8e5b6 1428echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
deb984e6
PB
1429 ac_cache_corrupted=:
1430 else
1431 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1432echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1433 eval $ac_var=\$ac_old_val
1434 fi
1435 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1436echo "$as_me: former value: \`$ac_old_val'" >&2;}
1437 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1438echo "$as_me: current value: \`$ac_new_val'" >&2;}
3ed8e5b6
AT
1439 fi;;
1440 esac
1441 # Pass precious variables to config.status.
1442 if test "$ac_new_set" = set; then
1443 case $ac_new_val in
1444 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1445 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1446 *) ac_arg=$ac_var=$ac_new_val ;;
1447 esac
1448 case " $ac_configure_args " in
1449 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1450 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1451 esac
1452 fi
1453done
1454if $ac_cache_corrupted; then
1455 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1456echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1457 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1458echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1459 { (exit 1); exit 1; }; }
1460fi
1461
1462ac_ext=c
1463ac_cpp='$CPP $CPPFLAGS'
1464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1466ac_compiler_gnu=$ac_cv_c_compiler_gnu
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494 ac_config_headers="$ac_config_headers fficonfig.h"
1495
1496
1497# Default to --enable-multilib
1498# Check whether --enable-multilib or --disable-multilib was given.
1499if test "${enable_multilib+set}" = set; then
1500 enableval="$enable_multilib"
1501 case "$enableval" in
1502 yes) multilib=yes ;;
1503 no) multilib=no ;;
1504 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1505echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1506 { (exit 1); exit 1; }; } ;;
1507 esac
1508else
1509 multilib=yes
1510fi;
1511
1512# We may get other options which we leave undocumented:
1513# --with-target-subdir, --with-multisrctop, --with-multisubdir
1514# See config-ml.in if you want the gory details.
1515
1516if test "$srcdir" = "."; then
1517 if test "$with_target_subdir" != "."; then
1518 multi_basedir="$srcdir/$with_multisrctop../.."
1519 else
1520 multi_basedir="$srcdir/$with_multisrctop.."
1521 fi
1522else
1523 multi_basedir="$srcdir/.."
1524fi
1525
1526
8a489465
JH
1527# Even if the default multilib is not a cross compilation,
1528# it may be that some of the other multilibs are.
1529if test $cross_compiling = no && test $multilib = yes \
1530 && test "x${with_multisubdir}" != x ; then
1531 cross_compiling=maybe
1532fi
1533
3ed8e5b6
AT
1534 ac_config_commands="$ac_config_commands default-1"
1535
3ed8e5b6 1536
076e5443
PB
1537ac_aux_dir=
1538for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3ed8e5b6
AT
1539 if test -f $ac_dir/install-sh; then
1540 ac_aux_dir=$ac_dir
1541 ac_install_sh="$ac_aux_dir/install-sh -c"
1542 break
1543 elif test -f $ac_dir/install.sh; then
1544 ac_aux_dir=$ac_dir
1545 ac_install_sh="$ac_aux_dir/install.sh -c"
1546 break
1547 elif test -f $ac_dir/shtool; then
1548 ac_aux_dir=$ac_dir
1549 ac_install_sh="$ac_aux_dir/shtool install -c"
1550 break
1551 fi
1552done
1553if test -z "$ac_aux_dir"; then
076e5443
PB
1554 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1555echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3ed8e5b6
AT
1556 { (exit 1); exit 1; }; }
1557fi
1558ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1559ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1560ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1561
3ed8e5b6
AT
1562# Make sure we can run config.sub.
1563$ac_config_sub sun4 >/dev/null 2>&1 ||
1564 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1565echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1566 { (exit 1); exit 1; }; }
1567
1568echo "$as_me:$LINENO: checking build system type" >&5
1569echo $ECHO_N "checking build system type... $ECHO_C" >&6
1570if test "${ac_cv_build+set}" = set; then
1571 echo $ECHO_N "(cached) $ECHO_C" >&6
1572else
1573 ac_cv_build_alias=$build_alias
1574test -z "$ac_cv_build_alias" &&
1575 ac_cv_build_alias=`$ac_config_guess`
1576test -z "$ac_cv_build_alias" &&
1577 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1578echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1579 { (exit 1); exit 1; }; }
1580ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1581 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1582echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1583 { (exit 1); exit 1; }; }
1584
1585fi
1586echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1587echo "${ECHO_T}$ac_cv_build" >&6
1588build=$ac_cv_build
1589build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1590build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1591build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1592
1593
1594echo "$as_me:$LINENO: checking host system type" >&5
1595echo $ECHO_N "checking host system type... $ECHO_C" >&6
1596if test "${ac_cv_host+set}" = set; then
1597 echo $ECHO_N "(cached) $ECHO_C" >&6
1598else
1599 ac_cv_host_alias=$host_alias
1600test -z "$ac_cv_host_alias" &&
1601 ac_cv_host_alias=$ac_cv_build_alias
1602ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1603 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1604echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1605 { (exit 1); exit 1; }; }
1606
1607fi
1608echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1609echo "${ECHO_T}$ac_cv_host" >&6
1610host=$ac_cv_host
1611host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1612host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1613host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1614
1615
1616echo "$as_me:$LINENO: checking target system type" >&5
1617echo $ECHO_N "checking target system type... $ECHO_C" >&6
1618if test "${ac_cv_target+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
1620else
1621 ac_cv_target_alias=$target_alias
1622test "x$ac_cv_target_alias" = "x" &&
1623 ac_cv_target_alias=$ac_cv_host_alias
1624ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1625 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1626echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1627 { (exit 1); exit 1; }; }
1628
1629fi
1630echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1631echo "${ECHO_T}$ac_cv_target" >&6
1632target=$ac_cv_target
1633target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1634target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1635target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1636
1637
1638# The aliases save the names the user supplied, while $host etc.
1639# will get canonicalized.
1640test -n "$target_alias" &&
bbf3057b
AT
1641 test "$program_prefix$program_suffix$program_transform_name" = \
1642 NONENONEs,x,x, &&
1643 program_prefix=${target_alias}-
3ed8e5b6
AT
1644target_alias=${target_alias-$host_alias}
1645
88d8c771
AG
1646. ${srcdir}/configure.host
1647
b85e31b9 1648am__api_version="1.9"
3ed8e5b6
AT
1649# Find a good install program. We prefer a C program (faster),
1650# so one script is as good as another. But avoid the broken or
1651# incompatible versions:
1652# SysV /etc/install, /usr/sbin/install
1653# SunOS /usr/etc/install
1654# IRIX /sbin/install
1655# AIX /bin/install
1656# AmigaOS /C/install, which installs bootblocks on floppy discs
1657# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1658# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1659# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1660# OS/2's system install, which has a completely different semantic
1661# ./install, which can be erroneously created by make from ./install.sh.
38d24731 1662# Reject install programs that cannot install multiple files.
3ed8e5b6
AT
1663echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1664echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1665if test -z "$INSTALL"; then
1666if test "${ac_cv_path_install+set}" = set; then
1667 echo $ECHO_N "(cached) $ECHO_C" >&6
1668else
1669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1670for as_dir in $PATH
1671do
1672 IFS=$as_save_IFS
1673 test -z "$as_dir" && as_dir=.
1674 # Account for people who put trailing slashes in PATH elements.
1675case $as_dir/ in
1676 ./ | .// | /cC/* | \
1677 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1678 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1679 /usr/ucb/* ) ;;
1680 *)
1681 # OSF1 and SCO ODT 3.0 have their own names for install.
1682 # Don't use installbsd from OSF since it installs stuff as root
1683 # by default.
1684 for ac_prog in ginstall scoinst install; do
1685 for ac_exec_ext in '' $ac_executable_extensions; do
1686 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1687 if test $ac_prog = install &&
1688 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1689 # AIX install. It has an incompatible calling convention.
1690 :
1691 elif test $ac_prog = install &&
1692 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1693 # program-specific install script used by HP pwplus--don't use.
1694 :
1695 else
38d24731
RW
1696 rm -rf conftest.one conftest.two conftest.dir
1697 echo one > conftest.one
1698 echo two > conftest.two
1699 mkdir conftest.dir
1700 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1701 test -s conftest.one && test -s conftest.two &&
1702 test -s conftest.dir/conftest.one &&
1703 test -s conftest.dir/conftest.two
1704 then
1705 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1706 break 3
1707 fi
3ed8e5b6
AT
1708 fi
1709 fi
1710 done
1711 done
1712 ;;
1713esac
1714done
1715
38d24731 1716rm -rf conftest.one conftest.two conftest.dir
3ed8e5b6
AT
1717
1718fi
1719 if test "${ac_cv_path_install+set}" = set; then
1720 INSTALL=$ac_cv_path_install
1721 else
38d24731
RW
1722 # As a last resort, use the slow shell script. Don't cache a
1723 # value for INSTALL within a source directory, because that will
3ed8e5b6 1724 # break other packages using the cache if that directory is
38d24731 1725 # removed, or if the value is a relative name.
3ed8e5b6
AT
1726 INSTALL=$ac_install_sh
1727 fi
1728fi
1729echo "$as_me:$LINENO: result: $INSTALL" >&5
1730echo "${ECHO_T}$INSTALL" >&6
1731
1732# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1733# It thinks the first close brace ends the variable substitution.
1734test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1735
1736test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1737
1738test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1739
1740echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1741echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1742# Just in case
1743sleep 1
1744echo timestamp > conftest.file
1745# Do `set' in a subshell so we don't clobber the current shell's
1746# arguments. Must try -L first in case configure is actually a
1747# symlink; some systems play weird games with the mod time of symlinks
1748# (eg FreeBSD returns the mod time of the symlink's containing
1749# directory).
1750if (
1751 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1752 if test "$*" = "X"; then
1753 # -L didn't work.
1754 set X `ls -t $srcdir/configure conftest.file`
1755 fi
1756 rm -f conftest.file
1757 if test "$*" != "X $srcdir/configure conftest.file" \
1758 && test "$*" != "X conftest.file $srcdir/configure"; then
1759
1760 # If neither matched, then we have a broken ls. This can happen
1761 # if, for instance, CONFIG_SHELL is bash and it inherits a
1762 # broken ls alias from the environment. This has actually
1763 # happened. Such a system could not be considered "sane".
1764 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1765alias in your environment" >&5
1766echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1767alias in your environment" >&2;}
1768 { (exit 1); exit 1; }; }
1769 fi
1770
1771 test "$2" = conftest.file
1772 )
1773then
1774 # Ok.
1775 :
1776else
1777 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1778Check your system clock" >&5
1779echo "$as_me: error: newly created file is older than distributed files!
1780Check your system clock" >&2;}
1781 { (exit 1); exit 1; }; }
1782fi
1783echo "$as_me:$LINENO: result: yes" >&5
1784echo "${ECHO_T}yes" >&6
1785test "$program_prefix" != NONE &&
1786 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1787# Use a double $ so make ignores it.
1788test "$program_suffix" != NONE &&
1789 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1790# Double any \ or $. echo might interpret backslashes.
1791# By default was `s,x,x', remove it if useless.
1792cat <<\_ACEOF >conftest.sed
1793s/[\\$]/&&/g;s/;s,x,x,$//
1794_ACEOF
1795program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1796rm conftest.sed
1797
3ed8e5b6
AT
1798# expand $ac_aux_dir to an absolute path
1799am_aux_dir=`cd $ac_aux_dir && pwd`
1800
1801test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1802# Use eval to expand $SHELL
1803if eval "$MISSING --run true"; then
1804 am_missing_run="$MISSING --run "
1805else
1806 am_missing_run=
1807 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1808echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1809fi
1810
076e5443 1811if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
b85e31b9
KC
1812 # We used to keeping the `.' as first argument, in order to
1813 # allow $(mkdir_p) to be used without argument. As in
076e5443 1814 # $(mkdir_p) $(somedir)
b85e31b9
KC
1815 # where $(somedir) is conditionally defined. However this is wrong
1816 # for two reasons:
1817 # 1. if the package is installed by a user who cannot write `.'
1818 # make install will fail,
1819 # 2. the above comment should most certainly read
1820 # $(mkdir_p) $(DESTDIR)$(somedir)
1821 # so it does not work when $(somedir) is undefined and
1822 # $(DESTDIR) is not.
1823 # To support the latter case, we have to write
1824 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1825 # so the `.' trick is pointless.
1826 mkdir_p='mkdir -p --'
076e5443
PB
1827else
1828 # On NextStep and OpenStep, the `mkdir' command does not
1829 # recognize any option. It will interpret all options as
1830 # directories to create, and then abort because `.' already
1831 # exists.
1832 for d in ./-p ./--version;
1833 do
1834 test -d $d && rmdir $d
1835 done
1836 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1837 if test -f "$ac_aux_dir/mkinstalldirs"; then
1838 mkdir_p='$(mkinstalldirs)'
1839 else
1840 mkdir_p='$(install_sh) -d'
1841 fi
1842fi
1843
3ed8e5b6
AT
1844for ac_prog in gawk mawk nawk awk
1845do
1846 # Extract the first word of "$ac_prog", so it can be a program name with args.
1847set dummy $ac_prog; ac_word=$2
1848echo "$as_me:$LINENO: checking for $ac_word" >&5
1849echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1850if test "${ac_cv_prog_AWK+set}" = set; then
1851 echo $ECHO_N "(cached) $ECHO_C" >&6
1852else
1853 if test -n "$AWK"; then
1854 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1855else
1856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1857for as_dir in $PATH
1858do
1859 IFS=$as_save_IFS
1860 test -z "$as_dir" && as_dir=.
1861 for ac_exec_ext in '' $ac_executable_extensions; do
1862 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1863 ac_cv_prog_AWK="$ac_prog"
1864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1865 break 2
1866 fi
1867done
1868done
1869
1870fi
1871fi
1872AWK=$ac_cv_prog_AWK
1873if test -n "$AWK"; then
1874 echo "$as_me:$LINENO: result: $AWK" >&5
1875echo "${ECHO_T}$AWK" >&6
1876else
1877 echo "$as_me:$LINENO: result: no" >&5
1878echo "${ECHO_T}no" >&6
1879fi
1880
1881 test -n "$AWK" && break
1882done
1883
1884echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1885echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1886set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1887if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1888 echo $ECHO_N "(cached) $ECHO_C" >&6
1889else
1890 cat >conftest.make <<\_ACEOF
1891all:
1892 @echo 'ac_maketemp="$(MAKE)"'
1893_ACEOF
1894# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1895eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1896if test -n "$ac_maketemp"; then
1897 eval ac_cv_prog_make_${ac_make}_set=yes
1898else
1899 eval ac_cv_prog_make_${ac_make}_set=no
1900fi
1901rm -f conftest.make
1902fi
1903if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1904 echo "$as_me:$LINENO: result: yes" >&5
1905echo "${ECHO_T}yes" >&6
1906 SET_MAKE=
1907else
1908 echo "$as_me:$LINENO: result: no" >&5
1909echo "${ECHO_T}no" >&6
1910 SET_MAKE="MAKE=${MAKE-make}"
1911fi
1912
1913rm -rf .tst 2>/dev/null
1914mkdir .tst 2>/dev/null
1915if test -d .tst; then
1916 am__leading_dot=.
1917else
1918 am__leading_dot=_
1919fi
1920rmdir .tst 2>/dev/null
1921
076e5443 1922# test to see if srcdir already configured
3ed8e5b6
AT
1923if test "`cd $srcdir && pwd`" != "`pwd`" &&
1924 test -f $srcdir/config.status; then
1925 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1926echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1927 { (exit 1); exit 1; }; }
1928fi
1929
1930# test whether we have cygpath
1931if test -z "$CYGPATH_W"; then
1932 if (cygpath --version) >/dev/null 2>/dev/null; then
1933 CYGPATH_W='cygpath -w'
1934 else
1935 CYGPATH_W=echo
1936 fi
1937fi
1938
1939
1940# Define the identity of the package.
1941 PACKAGE='libffi'
1942 VERSION='2.1'
1943
1944
1945cat >>confdefs.h <<_ACEOF
1946#define PACKAGE "$PACKAGE"
1947_ACEOF
1948
1949
1950cat >>confdefs.h <<_ACEOF
1951#define VERSION "$VERSION"
1952_ACEOF
1953
1954# Some tools Automake needs.
1955
1956ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1957
1958
1959AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1960
1961
1962AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1963
1964
1965AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1966
1967
1968MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1969
3ed8e5b6
AT
1970install_sh=${install_sh-"$am_aux_dir/install-sh"}
1971
1972# Installed binaries are usually stripped using `strip' when the user
1973# run `make install-strip'. However `strip' might not be the right
1974# tool to use in cross-compilation environments, therefore Automake
1975# will honor the `STRIP' environment variable to overrule this program.
1976if test "$cross_compiling" != no; then
1977 if test -n "$ac_tool_prefix"; then
1978 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1979set dummy ${ac_tool_prefix}strip; ac_word=$2
1980echo "$as_me:$LINENO: checking for $ac_word" >&5
1981echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1982if test "${ac_cv_prog_STRIP+set}" = set; then
1983 echo $ECHO_N "(cached) $ECHO_C" >&6
1984else
1985 if test -n "$STRIP"; then
1986 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1987else
1988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1989for as_dir in $PATH
1990do
1991 IFS=$as_save_IFS
1992 test -z "$as_dir" && as_dir=.
1993 for ac_exec_ext in '' $ac_executable_extensions; do
1994 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1995 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1997 break 2
1998 fi
1999done
2000done
2001
2002fi
2003fi
2004STRIP=$ac_cv_prog_STRIP
2005if test -n "$STRIP"; then
2006 echo "$as_me:$LINENO: result: $STRIP" >&5
2007echo "${ECHO_T}$STRIP" >&6
2008else
2009 echo "$as_me:$LINENO: result: no" >&5
2010echo "${ECHO_T}no" >&6
2011fi
2012
2013fi
2014if test -z "$ac_cv_prog_STRIP"; then
2015 ac_ct_STRIP=$STRIP
2016 # Extract the first word of "strip", so it can be a program name with args.
2017set dummy strip; ac_word=$2
2018echo "$as_me:$LINENO: checking for $ac_word" >&5
2019echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2020if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2021 echo $ECHO_N "(cached) $ECHO_C" >&6
2022else
2023 if test -n "$ac_ct_STRIP"; then
2024 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2025else
2026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027for as_dir in $PATH
2028do
2029 IFS=$as_save_IFS
2030 test -z "$as_dir" && as_dir=.
2031 for ac_exec_ext in '' $ac_executable_extensions; do
2032 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2033 ac_cv_prog_ac_ct_STRIP="strip"
2034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2035 break 2
2036 fi
2037done
2038done
2039
2040 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2041fi
2042fi
2043ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2044if test -n "$ac_ct_STRIP"; then
2045 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2046echo "${ECHO_T}$ac_ct_STRIP" >&6
2047else
2048 echo "$as_me:$LINENO: result: no" >&5
2049echo "${ECHO_T}no" >&6
2050fi
2051
2052 STRIP=$ac_ct_STRIP
2053else
2054 STRIP="$ac_cv_prog_STRIP"
2055fi
2056
2057fi
2058INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2059
2060# We need awk for the "check" target. The system "awk" is bad on
2061# some platforms.
b85e31b9
KC
2062# Always define AMTAR for backward compatibility.
2063
2064AMTAR=${AMTAR-"${am_missing_run}tar"}
2065
2066am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2067
2068
3ed8e5b6
AT
2069
2070
2071
2072
2073# The same as in boehm-gc and libstdc++. Have to borrow it from there.
2074# We must force CC to /not/ be precious variables; otherwise
2075# the wrong, non-multilib-adjusted value will be used in multilibs.
2076# As a side effect, we have to subst CFLAGS ourselves.
2077
2078
2079
2080ac_ext=c
2081ac_cpp='$CPP $CPPFLAGS'
2082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2084ac_compiler_gnu=$ac_cv_c_compiler_gnu
2085if test -n "$ac_tool_prefix"; then
2086 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2087set dummy ${ac_tool_prefix}gcc; ac_word=$2
2088echo "$as_me:$LINENO: checking for $ac_word" >&5
2089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2090if test "${ac_cv_prog_CC+set}" = set; then
2091 echo $ECHO_N "(cached) $ECHO_C" >&6
2092else
2093 if test -n "$CC"; then
2094 ac_cv_prog_CC="$CC" # Let the user override the test.
2095else
2096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2097for as_dir in $PATH
2098do
2099 IFS=$as_save_IFS
2100 test -z "$as_dir" && as_dir=.
2101 for ac_exec_ext in '' $ac_executable_extensions; do
2102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2103 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2105 break 2
2106 fi
2107done
2108done
2109
2110fi
2111fi
2112CC=$ac_cv_prog_CC
2113if test -n "$CC"; then
2114 echo "$as_me:$LINENO: result: $CC" >&5
2115echo "${ECHO_T}$CC" >&6
2116else
2117 echo "$as_me:$LINENO: result: no" >&5
2118echo "${ECHO_T}no" >&6
2119fi
2120
2121fi
2122if test -z "$ac_cv_prog_CC"; then
2123 ac_ct_CC=$CC
2124 # Extract the first word of "gcc", so it can be a program name with args.
2125set dummy gcc; ac_word=$2
2126echo "$as_me:$LINENO: checking for $ac_word" >&5
2127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2128if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2129 echo $ECHO_N "(cached) $ECHO_C" >&6
2130else
2131 if test -n "$ac_ct_CC"; then
2132 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2133else
2134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2135for as_dir in $PATH
2136do
2137 IFS=$as_save_IFS
2138 test -z "$as_dir" && as_dir=.
2139 for ac_exec_ext in '' $ac_executable_extensions; do
2140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2141 ac_cv_prog_ac_ct_CC="gcc"
2142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2143 break 2
2144 fi
2145done
2146done
2147
2148fi
2149fi
2150ac_ct_CC=$ac_cv_prog_ac_ct_CC
2151if test -n "$ac_ct_CC"; then
2152 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2153echo "${ECHO_T}$ac_ct_CC" >&6
2154else
2155 echo "$as_me:$LINENO: result: no" >&5
2156echo "${ECHO_T}no" >&6
2157fi
2158
2159 CC=$ac_ct_CC
2160else
2161 CC="$ac_cv_prog_CC"
2162fi
2163
2164if test -z "$CC"; then
2165 if test -n "$ac_tool_prefix"; then
2166 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2167set dummy ${ac_tool_prefix}cc; ac_word=$2
2168echo "$as_me:$LINENO: checking for $ac_word" >&5
2169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2170if test "${ac_cv_prog_CC+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2172else
2173 if test -n "$CC"; then
2174 ac_cv_prog_CC="$CC" # Let the user override the test.
2175else
2176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2177for as_dir in $PATH
2178do
2179 IFS=$as_save_IFS
2180 test -z "$as_dir" && as_dir=.
2181 for ac_exec_ext in '' $ac_executable_extensions; do
2182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2183 ac_cv_prog_CC="${ac_tool_prefix}cc"
2184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2185 break 2
2186 fi
2187done
2188done
2189
2190fi
2191fi
2192CC=$ac_cv_prog_CC
2193if test -n "$CC"; then
2194 echo "$as_me:$LINENO: result: $CC" >&5
2195echo "${ECHO_T}$CC" >&6
2196else
2197 echo "$as_me:$LINENO: result: no" >&5
2198echo "${ECHO_T}no" >&6
2199fi
2200
2201fi
2202if test -z "$ac_cv_prog_CC"; then
2203 ac_ct_CC=$CC
2204 # Extract the first word of "cc", so it can be a program name with args.
2205set dummy cc; ac_word=$2
2206echo "$as_me:$LINENO: checking for $ac_word" >&5
2207echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2208if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2209 echo $ECHO_N "(cached) $ECHO_C" >&6
2210else
2211 if test -n "$ac_ct_CC"; then
2212 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2213else
2214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2215for as_dir in $PATH
2216do
2217 IFS=$as_save_IFS
2218 test -z "$as_dir" && as_dir=.
2219 for ac_exec_ext in '' $ac_executable_extensions; do
2220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2221 ac_cv_prog_ac_ct_CC="cc"
2222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2223 break 2
2224 fi
2225done
2226done
2227
2228fi
2229fi
2230ac_ct_CC=$ac_cv_prog_ac_ct_CC
2231if test -n "$ac_ct_CC"; then
2232 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2233echo "${ECHO_T}$ac_ct_CC" >&6
2234else
2235 echo "$as_me:$LINENO: result: no" >&5
2236echo "${ECHO_T}no" >&6
2237fi
2238
2239 CC=$ac_ct_CC
2240else
2241 CC="$ac_cv_prog_CC"
2242fi
2243
2244fi
2245if test -z "$CC"; then
2246 # Extract the first word of "cc", so it can be a program name with args.
2247set dummy cc; ac_word=$2
2248echo "$as_me:$LINENO: checking for $ac_word" >&5
2249echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2250if test "${ac_cv_prog_CC+set}" = set; then
2251 echo $ECHO_N "(cached) $ECHO_C" >&6
2252else
2253 if test -n "$CC"; then
2254 ac_cv_prog_CC="$CC" # Let the user override the test.
2255else
2256 ac_prog_rejected=no
2257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258for as_dir in $PATH
2259do
2260 IFS=$as_save_IFS
2261 test -z "$as_dir" && as_dir=.
2262 for ac_exec_ext in '' $ac_executable_extensions; do
2263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2264 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2265 ac_prog_rejected=yes
2266 continue
2267 fi
2268 ac_cv_prog_CC="cc"
2269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2270 break 2
2271 fi
2272done
2273done
2274
2275if test $ac_prog_rejected = yes; then
2276 # We found a bogon in the path, so make sure we never use it.
2277 set dummy $ac_cv_prog_CC
2278 shift
2279 if test $# != 0; then
2280 # We chose a different compiler from the bogus one.
2281 # However, it has the same basename, so the bogon will be chosen
2282 # first if we set CC to just the basename; use the full file name.
2283 shift
2284 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2285 fi
2286fi
2287fi
2288fi
2289CC=$ac_cv_prog_CC
2290if test -n "$CC"; then
2291 echo "$as_me:$LINENO: result: $CC" >&5
2292echo "${ECHO_T}$CC" >&6
2293else
2294 echo "$as_me:$LINENO: result: no" >&5
2295echo "${ECHO_T}no" >&6
2296fi
2297
2298fi
2299if test -z "$CC"; then
2300 if test -n "$ac_tool_prefix"; then
2301 for ac_prog in cl
2302 do
2303 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2304set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2305echo "$as_me:$LINENO: checking for $ac_word" >&5
2306echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2307if test "${ac_cv_prog_CC+set}" = set; then
2308 echo $ECHO_N "(cached) $ECHO_C" >&6
2309else
2310 if test -n "$CC"; then
2311 ac_cv_prog_CC="$CC" # Let the user override the test.
2312else
2313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2314for as_dir in $PATH
2315do
2316 IFS=$as_save_IFS
2317 test -z "$as_dir" && as_dir=.
2318 for ac_exec_ext in '' $ac_executable_extensions; do
2319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2320 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2322 break 2
2323 fi
2324done
2325done
2326
2327fi
2328fi
2329CC=$ac_cv_prog_CC
2330if test -n "$CC"; then
2331 echo "$as_me:$LINENO: result: $CC" >&5
2332echo "${ECHO_T}$CC" >&6
2333else
2334 echo "$as_me:$LINENO: result: no" >&5
2335echo "${ECHO_T}no" >&6
2336fi
2337
2338 test -n "$CC" && break
2339 done
2340fi
2341if test -z "$CC"; then
2342 ac_ct_CC=$CC
2343 for ac_prog in cl
2344do
2345 # Extract the first word of "$ac_prog", so it can be a program name with args.
2346set dummy $ac_prog; ac_word=$2
2347echo "$as_me:$LINENO: checking for $ac_word" >&5
2348echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2349if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2350 echo $ECHO_N "(cached) $ECHO_C" >&6
2351else
2352 if test -n "$ac_ct_CC"; then
2353 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2354else
2355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2356for as_dir in $PATH
2357do
2358 IFS=$as_save_IFS
2359 test -z "$as_dir" && as_dir=.
2360 for ac_exec_ext in '' $ac_executable_extensions; do
2361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2362 ac_cv_prog_ac_ct_CC="$ac_prog"
2363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2364 break 2
2365 fi
2366done
2367done
2368
2369fi
2370fi
2371ac_ct_CC=$ac_cv_prog_ac_ct_CC
2372if test -n "$ac_ct_CC"; then
2373 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2374echo "${ECHO_T}$ac_ct_CC" >&6
2375else
2376 echo "$as_me:$LINENO: result: no" >&5
2377echo "${ECHO_T}no" >&6
2378fi
2379
2380 test -n "$ac_ct_CC" && break
2381done
2382
2383 CC=$ac_ct_CC
2384fi
2385
2386fi
2387
2388
2389test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2390See \`config.log' for more details." >&5
2391echo "$as_me: error: no acceptable C compiler found in \$PATH
2392See \`config.log' for more details." >&2;}
2393 { (exit 1); exit 1; }; }
2394
2395# Provide some information about the compiler.
2396echo "$as_me:$LINENO:" \
2397 "checking for C compiler version" >&5
2398ac_compiler=`set X $ac_compile; echo $2`
2399{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2400 (eval $ac_compiler --version </dev/null >&5) 2>&5
2401 ac_status=$?
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); }
2404{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2405 (eval $ac_compiler -v </dev/null >&5) 2>&5
2406 ac_status=$?
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }
2409{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2410 (eval $ac_compiler -V </dev/null >&5) 2>&5
2411 ac_status=$?
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); }
2414
2415cat >conftest.$ac_ext <<_ACEOF
2416/* confdefs.h. */
2417_ACEOF
2418cat confdefs.h >>conftest.$ac_ext
2419cat >>conftest.$ac_ext <<_ACEOF
2420/* end confdefs.h. */
2421
2422int
2423main ()
2424{
2425
2426 ;
2427 return 0;
2428}
2429_ACEOF
2430ac_clean_files_save=$ac_clean_files
2431ac_clean_files="$ac_clean_files a.out a.exe b.out"
2432# Try to create an executable without -o first, disregard a.out.
2433# It will help us diagnose broken compilers, and finding out an intuition
2434# of exeext.
2435echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2436echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2437ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2438if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2439 (eval $ac_link_default) 2>&5
2440 ac_status=$?
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); }; then
2443 # Find the output, starting from the most likely. This scheme is
2444# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2445# resort.
2446
2447# Be careful to initialize this variable, since it used to be cached.
2448# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2449ac_cv_exeext=
2450# b.out is created by i960 compilers.
2451for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2452do
2453 test -f "$ac_file" || continue
2454 case $ac_file in
2455 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2456 ;;
2457 conftest.$ac_ext )
2458 # This is the source file.
2459 ;;
2460 [ab].out )
2461 # We found the default executable, but exeext='' is most
2462 # certainly right.
2463 break;;
2464 *.* )
2465 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2466 # FIXME: I believe we export ac_cv_exeext for Libtool,
2467 # but it would be cool to find out if it's true. Does anybody
2468 # maintain Libtool? --akim.
2469 export ac_cv_exeext
2470 break;;
2471 * )
2472 break;;
2473 esac
2474done
2475else
2476 echo "$as_me: failed program was:" >&5
2477sed 's/^/| /' conftest.$ac_ext >&5
2478
2479{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2480See \`config.log' for more details." >&5
2481echo "$as_me: error: C compiler cannot create executables
2482See \`config.log' for more details." >&2;}
2483 { (exit 77); exit 77; }; }
2484fi
2485
2486ac_exeext=$ac_cv_exeext
2487echo "$as_me:$LINENO: result: $ac_file" >&5
2488echo "${ECHO_T}$ac_file" >&6
2489
2490# Check the compiler produces executables we can run. If not, either
2491# the compiler is broken, or we cross compile.
2492echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2493echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2494# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2495# If not cross compiling, check that we can run a simple program.
2496if test "$cross_compiling" != yes; then
2497 if { ac_try='./$ac_file'
2498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2499 (eval $ac_try) 2>&5
2500 ac_status=$?
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); }; }; then
2503 cross_compiling=no
2504 else
2505 if test "$cross_compiling" = maybe; then
2506 cross_compiling=yes
2507 else
2508 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2509If you meant to cross compile, use \`--host'.
2510See \`config.log' for more details." >&5
2511echo "$as_me: error: cannot run C compiled programs.
2512If you meant to cross compile, use \`--host'.
2513See \`config.log' for more details." >&2;}
2514 { (exit 1); exit 1; }; }
2515 fi
2516 fi
2517fi
2518echo "$as_me:$LINENO: result: yes" >&5
2519echo "${ECHO_T}yes" >&6
2520
2521rm -f a.out a.exe conftest$ac_cv_exeext b.out
2522ac_clean_files=$ac_clean_files_save
2523# Check the compiler produces executables we can run. If not, either
2524# the compiler is broken, or we cross compile.
2525echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2526echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2527echo "$as_me:$LINENO: result: $cross_compiling" >&5
2528echo "${ECHO_T}$cross_compiling" >&6
2529
2530echo "$as_me:$LINENO: checking for suffix of executables" >&5
2531echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2533 (eval $ac_link) 2>&5
2534 ac_status=$?
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }; then
2537 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2538# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2539# work properly (i.e., refer to `conftest.exe'), while it won't with
2540# `rm'.
2541for ac_file in conftest.exe conftest conftest.*; do
2542 test -f "$ac_file" || continue
2543 case $ac_file in
2544 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2545 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2546 export ac_cv_exeext
2547 break;;
2548 * ) break;;
2549 esac
2550done
2551else
2552 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2553See \`config.log' for more details." >&5
2554echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2555See \`config.log' for more details." >&2;}
2556 { (exit 1); exit 1; }; }
2557fi
2558
2559rm -f conftest$ac_cv_exeext
2560echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2561echo "${ECHO_T}$ac_cv_exeext" >&6
2562
2563rm -f conftest.$ac_ext
2564EXEEXT=$ac_cv_exeext
2565ac_exeext=$EXEEXT
2566echo "$as_me:$LINENO: checking for suffix of object files" >&5
2567echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2568if test "${ac_cv_objext+set}" = set; then
2569 echo $ECHO_N "(cached) $ECHO_C" >&6
2570else
2571 cat >conftest.$ac_ext <<_ACEOF
2572/* confdefs.h. */
2573_ACEOF
2574cat confdefs.h >>conftest.$ac_ext
2575cat >>conftest.$ac_ext <<_ACEOF
2576/* end confdefs.h. */
2577
2578int
2579main ()
2580{
2581
2582 ;
2583 return 0;
2584}
2585_ACEOF
2586rm -f conftest.o conftest.obj
2587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2588 (eval $ac_compile) 2>&5
2589 ac_status=$?
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; then
2592 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2593 case $ac_file in
2594 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2595 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2596 break;;
2597 esac
2598done
2599else
2600 echo "$as_me: failed program was:" >&5
2601sed 's/^/| /' conftest.$ac_ext >&5
2602
2603{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2604See \`config.log' for more details." >&5
2605echo "$as_me: error: cannot compute suffix of object files: cannot compile
2606See \`config.log' for more details." >&2;}
2607 { (exit 1); exit 1; }; }
2608fi
2609
2610rm -f conftest.$ac_cv_objext conftest.$ac_ext
2611fi
2612echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2613echo "${ECHO_T}$ac_cv_objext" >&6
2614OBJEXT=$ac_cv_objext
2615ac_objext=$OBJEXT
2616echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2617echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2618if test "${ac_cv_c_compiler_gnu+set}" = set; then
2619 echo $ECHO_N "(cached) $ECHO_C" >&6
2620else
2621 cat >conftest.$ac_ext <<_ACEOF
2622/* confdefs.h. */
2623_ACEOF
2624cat confdefs.h >>conftest.$ac_ext
2625cat >>conftest.$ac_ext <<_ACEOF
2626/* end confdefs.h. */
2627
2628int
2629main ()
2630{
2631#ifndef __GNUC__
2632 choke me
2633#endif
2634
2635 ;
2636 return 0;
2637}
2638_ACEOF
2639rm -f conftest.$ac_objext
2640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2641 (eval $ac_compile) 2>conftest.er1
2642 ac_status=$?
2643 grep -v '^ *+' conftest.er1 >conftest.err
2644 rm -f conftest.er1
2645 cat conftest.err >&5
2646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647 (exit $ac_status); } &&
88d8c771
AG
2648 { ac_try='test -z "$ac_c_werror_flag"
2649 || test ! -s conftest.err'
3ed8e5b6
AT
2650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2651 (eval $ac_try) 2>&5
2652 ac_status=$?
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); }; } &&
2655 { ac_try='test -s conftest.$ac_objext'
2656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657 (eval $ac_try) 2>&5
2658 ac_status=$?
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); }; }; then
2661 ac_compiler_gnu=yes
2662else
2663 echo "$as_me: failed program was:" >&5
2664sed 's/^/| /' conftest.$ac_ext >&5
2665
2666ac_compiler_gnu=no
2667fi
2668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2669ac_cv_c_compiler_gnu=$ac_compiler_gnu
2670
2671fi
2672echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2673echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2674GCC=`test $ac_compiler_gnu = yes && echo yes`
2675ac_test_CFLAGS=${CFLAGS+set}
2676ac_save_CFLAGS=$CFLAGS
2677CFLAGS="-g"
2678echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2679echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2680if test "${ac_cv_prog_cc_g+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2682else
2683 cat >conftest.$ac_ext <<_ACEOF
2684/* confdefs.h. */
2685_ACEOF
2686cat confdefs.h >>conftest.$ac_ext
2687cat >>conftest.$ac_ext <<_ACEOF
2688/* end confdefs.h. */
2689
2690int
2691main ()
2692{
2693
2694 ;
2695 return 0;
2696}
2697_ACEOF
2698rm -f conftest.$ac_objext
2699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2700 (eval $ac_compile) 2>conftest.er1
2701 ac_status=$?
2702 grep -v '^ *+' conftest.er1 >conftest.err
2703 rm -f conftest.er1
2704 cat conftest.err >&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); } &&
88d8c771
AG
2707 { ac_try='test -z "$ac_c_werror_flag"
2708 || test ! -s conftest.err'
3ed8e5b6
AT
2709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710 (eval $ac_try) 2>&5
2711 ac_status=$?
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }; } &&
2714 { ac_try='test -s conftest.$ac_objext'
2715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716 (eval $ac_try) 2>&5
2717 ac_status=$?
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }; }; then
2720 ac_cv_prog_cc_g=yes
2721else
2722 echo "$as_me: failed program was:" >&5
2723sed 's/^/| /' conftest.$ac_ext >&5
2724
2725ac_cv_prog_cc_g=no
2726fi
2727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2728fi
2729echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2730echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2731if test "$ac_test_CFLAGS" = set; then
2732 CFLAGS=$ac_save_CFLAGS
2733elif test $ac_cv_prog_cc_g = yes; then
2734 if test "$GCC" = yes; then
2735 CFLAGS="-g -O2"
2736 else
2737 CFLAGS="-g"
2738 fi
2739else
2740 if test "$GCC" = yes; then
2741 CFLAGS="-O2"
2742 else
2743 CFLAGS=
2744 fi
2745fi
2746echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2747echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2748if test "${ac_cv_prog_cc_stdc+set}" = set; then
2749 echo $ECHO_N "(cached) $ECHO_C" >&6
2750else
2751 ac_cv_prog_cc_stdc=no
2752ac_save_CC=$CC
2753cat >conftest.$ac_ext <<_ACEOF
2754/* confdefs.h. */
2755_ACEOF
2756cat confdefs.h >>conftest.$ac_ext
2757cat >>conftest.$ac_ext <<_ACEOF
2758/* end confdefs.h. */
2759#include <stdarg.h>
2760#include <stdio.h>
2761#include <sys/types.h>
2762#include <sys/stat.h>
2763/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2764struct buf { int x; };
2765FILE * (*rcsopen) (struct buf *, struct stat *, int);
2766static char *e (p, i)
2767 char **p;
2768 int i;
2769{
2770 return p[i];
2771}
2772static char *f (char * (*g) (char **, int), char **p, ...)
2773{
2774 char *s;
2775 va_list v;
2776 va_start (v,p);
2777 s = g (p, va_arg (v,int));
2778 va_end (v);
2779 return s;
2780}
2781
2782/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2783 function prototypes and stuff, but not '\xHH' hex character constants.
2784 These don't provoke an error unfortunately, instead are silently treated
2785 as 'x'. The following induces an error, until -std1 is added to get
2786 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2787 array size at least. It's necessary to write '\x00'==0 to get something
2788 that's true only with -std1. */
2789int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2790
2791int test (int i, double x);
2792struct s1 {int (*f) (int a);};
2793struct s2 {int (*f) (double a);};
2794int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2795int argc;
2796char **argv;
2797int
2798main ()
2799{
2800return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2801 ;
2802 return 0;
2803}
2804_ACEOF
2805# Don't try gcc -ansi; that turns off useful extensions and
2806# breaks some systems' header files.
2807# AIX -qlanglvl=ansi
2808# Ultrix and OSF/1 -std1
2809# HP-UX 10.20 and later -Ae
2810# HP-UX older versions -Aa -D_HPUX_SOURCE
2811# SVR4 -Xc -D__EXTENSIONS__
2812for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2813do
2814 CC="$ac_save_CC $ac_arg"
2815 rm -f conftest.$ac_objext
2816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2817 (eval $ac_compile) 2>conftest.er1
2818 ac_status=$?
2819 grep -v '^ *+' conftest.er1 >conftest.err
2820 rm -f conftest.er1
2821 cat conftest.err >&5
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); } &&
88d8c771
AG
2824 { ac_try='test -z "$ac_c_werror_flag"
2825 || test ! -s conftest.err'
3ed8e5b6
AT
2826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2827 (eval $ac_try) 2>&5
2828 ac_status=$?
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); }; } &&
2831 { ac_try='test -s conftest.$ac_objext'
2832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833 (eval $ac_try) 2>&5
2834 ac_status=$?
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); }; }; then
2837 ac_cv_prog_cc_stdc=$ac_arg
2838break
2839else
2840 echo "$as_me: failed program was:" >&5
2841sed 's/^/| /' conftest.$ac_ext >&5
2842
2843fi
2844rm -f conftest.err conftest.$ac_objext
2845done
2846rm -f conftest.$ac_ext conftest.$ac_objext
2847CC=$ac_save_CC
2848
2849fi
2850
2851case "x$ac_cv_prog_cc_stdc" in
2852 x|xno)
2853 echo "$as_me:$LINENO: result: none needed" >&5
2854echo "${ECHO_T}none needed" >&6 ;;
2855 *)
2856 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2857echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2858 CC="$CC $ac_cv_prog_cc_stdc" ;;
2859esac
2860
2861# Some people use a C++ compiler to compile C. Since we use `exit',
2862# in C++ we need to declare it. In case someone uses the same compiler
2863# for both compiling C and C++ we need to have the C++ compiler decide
2864# the declaration of exit, since it's the most demanding environment.
2865cat >conftest.$ac_ext <<_ACEOF
2866#ifndef __cplusplus
2867 choke me
2868#endif
2869_ACEOF
2870rm -f conftest.$ac_objext
2871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2872 (eval $ac_compile) 2>conftest.er1
2873 ac_status=$?
2874 grep -v '^ *+' conftest.er1 >conftest.err
2875 rm -f conftest.er1
2876 cat conftest.err >&5
2877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); } &&
88d8c771
AG
2879 { ac_try='test -z "$ac_c_werror_flag"
2880 || test ! -s conftest.err'
3ed8e5b6
AT
2881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2882 (eval $ac_try) 2>&5
2883 ac_status=$?
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); }; } &&
2886 { ac_try='test -s conftest.$ac_objext'
2887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2888 (eval $ac_try) 2>&5
2889 ac_status=$?
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }; }; then
2892 for ac_declaration in \
2893 '' \
2894 'extern "C" void std::exit (int) throw (); using std::exit;' \
2895 'extern "C" void std::exit (int); using std::exit;' \
2896 'extern "C" void exit (int) throw ();' \
2897 'extern "C" void exit (int);' \
2898 'void exit (int);'
2899do
2900 cat >conftest.$ac_ext <<_ACEOF
2901/* confdefs.h. */
2902_ACEOF
2903cat confdefs.h >>conftest.$ac_ext
2904cat >>conftest.$ac_ext <<_ACEOF
2905/* end confdefs.h. */
2906$ac_declaration
2907#include <stdlib.h>
2908int
2909main ()
2910{
2911exit (42);
2912 ;
2913 return 0;
2914}
2915_ACEOF
2916rm -f conftest.$ac_objext
2917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2918 (eval $ac_compile) 2>conftest.er1
2919 ac_status=$?
2920 grep -v '^ *+' conftest.er1 >conftest.err
2921 rm -f conftest.er1
2922 cat conftest.err >&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); } &&
88d8c771
AG
2925 { ac_try='test -z "$ac_c_werror_flag"
2926 || test ! -s conftest.err'
3ed8e5b6
AT
2927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2928 (eval $ac_try) 2>&5
2929 ac_status=$?
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); }; } &&
2932 { ac_try='test -s conftest.$ac_objext'
2933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2934 (eval $ac_try) 2>&5
2935 ac_status=$?
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); }; }; then
2938 :
2939else
2940 echo "$as_me: failed program was:" >&5
2941sed 's/^/| /' conftest.$ac_ext >&5
2942
2943continue
2944fi
2945rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2946 cat >conftest.$ac_ext <<_ACEOF
2947/* confdefs.h. */
2948_ACEOF
2949cat confdefs.h >>conftest.$ac_ext
2950cat >>conftest.$ac_ext <<_ACEOF
2951/* end confdefs.h. */
2952$ac_declaration
2953int
2954main ()
2955{
2956exit (42);
2957 ;
2958 return 0;
2959}
2960_ACEOF
2961rm -f conftest.$ac_objext
2962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2963 (eval $ac_compile) 2>conftest.er1
2964 ac_status=$?
2965 grep -v '^ *+' conftest.er1 >conftest.err
2966 rm -f conftest.er1
2967 cat conftest.err >&5
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); } &&
88d8c771
AG
2970 { ac_try='test -z "$ac_c_werror_flag"
2971 || test ! -s conftest.err'
3ed8e5b6
AT
2972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2973 (eval $ac_try) 2>&5
2974 ac_status=$?
2975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); }; } &&
2977 { ac_try='test -s conftest.$ac_objext'
2978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2979 (eval $ac_try) 2>&5
2980 ac_status=$?
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); }; }; then
2983 break
2984else
2985 echo "$as_me: failed program was:" >&5
2986sed 's/^/| /' conftest.$ac_ext >&5
2987
2988fi
2989rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2990done
2991rm -f conftest*
2992if test -n "$ac_declaration"; then
2993 echo '#ifdef __cplusplus' >>confdefs.h
2994 echo $ac_declaration >>confdefs.h
2995 echo '#endif' >>confdefs.h
2996fi
2997
2998else
2999 echo "$as_me: failed program was:" >&5
3000sed 's/^/| /' conftest.$ac_ext >&5
3001
3002fi
3003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3004ac_ext=c
3005ac_cpp='$CPP $CPPFLAGS'
3006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3008ac_compiler_gnu=$ac_cv_c_compiler_gnu
3009DEPDIR="${am__leading_dot}deps"
3010
3011 ac_config_commands="$ac_config_commands depfiles"
3012
3013
3014am_make=${MAKE-make}
3015cat > confinc << 'END'
3016am__doit:
3017 @echo done
3018.PHONY: am__doit
3019END
3020# If we don't find an include directive, just comment out the code.
3021echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3022echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3023am__include="#"
3024am__quote=
3025_am_result=none
3026# First try GNU make style include.
3027echo "include confinc" > confmf
3028# We grep out `Entering directory' and `Leaving directory'
3029# messages which can occur if `w' ends up in MAKEFLAGS.
3030# In particular we don't look at `^make:' because GNU make might
3031# be invoked under some other name (usually "gmake"), in which
3032# case it prints its new name instead of `make'.
3033if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3034 am__include=include
3035 am__quote=
3036 _am_result=GNU
3037fi
3038# Now try BSD make style include.
3039if test "$am__include" = "#"; then
3040 echo '.include "confinc"' > confmf
3041 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3042 am__include=.include
3043 am__quote="\""
3044 _am_result=BSD
3045 fi
3046fi
3047
3048
3049echo "$as_me:$LINENO: result: $_am_result" >&5
3050echo "${ECHO_T}$_am_result" >&6
3051rm -f confinc confmf
3052
3053# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3054if test "${enable_dependency_tracking+set}" = set; then
3055 enableval="$enable_dependency_tracking"
3056
3057fi;
3058if test "x$enable_dependency_tracking" != xno; then
3059 am_depcomp="$ac_aux_dir/depcomp"
3060 AMDEPBACKSLASH='\'
3061fi
3062
3063
3064if test "x$enable_dependency_tracking" != xno; then
3065 AMDEP_TRUE=
3066 AMDEP_FALSE='#'
3067else
3068 AMDEP_TRUE='#'
3069 AMDEP_FALSE=
3070fi
3071
3072
3073
3074
3075depcc="$CC" am_compiler_list=
3076
3077echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3078echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3079if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3080 echo $ECHO_N "(cached) $ECHO_C" >&6
3081else
3082 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3083 # We make a subdir and do the tests there. Otherwise we can end up
3084 # making bogus files that we don't know about and never remove. For
3085 # instance it was reported that on HP-UX the gcc test will end up
3086 # making a dummy file named `D' -- because `-MD' means `put the output
3087 # in D'.
3088 mkdir conftest.dir
3089 # Copy depcomp to subdir because otherwise we won't find it if we're
3090 # using a relative directory.
3091 cp "$am_depcomp" conftest.dir
3092 cd conftest.dir
3093 # We will build objects and dependencies in a subdirectory because
3094 # it helps to detect inapplicable dependency modes. For instance
3095 # both Tru64's cc and ICC support -MD to output dependencies as a
3096 # side effect of compilation, but ICC will put the dependencies in
3097 # the current directory while Tru64 will put them in the object
3098 # directory.
3099 mkdir sub
3100
3101 am_cv_CC_dependencies_compiler_type=none
3102 if test "$am_compiler_list" = ""; then
3103 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3104 fi
3105 for depmode in $am_compiler_list; do
3106 # Setup a source with many dependencies, because some compilers
3107 # like to wrap large dependency lists on column 80 (with \), and
3108 # we should not choose a depcomp mode which is confused by this.
3109 #
3110 # We need to recreate these files for each test, as the compiler may
3111 # overwrite some of them when testing with obscure command lines.
3112 # This happens at least with the AIX C compiler.
3113 : > sub/conftest.c
3114 for i in 1 2 3 4 5 6; do
3115 echo '#include "conftst'$i'.h"' >> sub/conftest.c
076e5443
PB
3116 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3117 # Solaris 8's {/usr,}/bin/sh.
3118 touch sub/conftst$i.h
3ed8e5b6
AT
3119 done
3120 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3121
3122 case $depmode in
3123 nosideeffect)
3124 # after this tag, mechanisms are not by side-effect, so they'll
3125 # only be used when explicitly requested
3126 if test "x$enable_dependency_tracking" = xyes; then
3127 continue
3128 else
3129 break
3130 fi
3131 ;;
3132 none) break ;;
3133 esac
3134 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3135 # mode. It turns out that the SunPro C++ compiler does not properly
3136 # handle `-M -o', and we need to detect this.
3137 if depmode=$depmode \
3138 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3139 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3140 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3141 >/dev/null 2>conftest.err &&
3142 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3143 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3144 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3145 # icc doesn't choke on unknown options, it will just issue warnings
b85e31b9
KC
3146 # or remarks (even with -Werror). So we grep stderr for any message
3147 # that says an option was ignored or not supported.
3148 # When given -MP, icc 7.0 and 7.1 complain thusly:
3149 # icc: Command line warning: ignoring option '-M'; no argument required
3150 # The diagnosis changed in icc 8.0:
3151 # icc: Command line remark: option '-MP' not supported
3152 if (grep 'ignoring option' conftest.err ||
3153 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3ed8e5b6
AT
3154 am_cv_CC_dependencies_compiler_type=$depmode
3155 break
3156 fi
3157 fi
3158 done
bbf3057b 3159
3ed8e5b6
AT
3160 cd ..
3161 rm -rf conftest.dir
3162else
3163 am_cv_CC_dependencies_compiler_type=none
3164fi
3165
3166fi
3167echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3168echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3169CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3170
3171
3172
3173if
3174 test "x$enable_dependency_tracking" != xno \
3175 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3176 am__fastdepCC_TRUE=
3177 am__fastdepCC_FALSE='#'
3178else
3179 am__fastdepCC_TRUE='#'
3180 am__fastdepCC_FALSE=
3181fi
3182
3183
3184
3185
3186
3187
3188# By default we simply use the C compiler to build assembly code.
3189
076e5443
PB
3190test "${CCAS+set}" = set || CCAS=$CC
3191test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3192
3ed8e5b6
AT
3193
3194
3195if test "x$CC" != xcc; then
3196 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3197echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3198else
3199 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3200echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3201fi
3202set dummy $CC; ac_cc=`echo $2 |
3203 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3204if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3205 echo $ECHO_N "(cached) $ECHO_C" >&6
3206else
3207 cat >conftest.$ac_ext <<_ACEOF
3208/* confdefs.h. */
3209_ACEOF
3210cat confdefs.h >>conftest.$ac_ext
3211cat >>conftest.$ac_ext <<_ACEOF
3212/* end confdefs.h. */
3213
3214int
3215main ()
3216{
3217
3218 ;
3219 return 0;
3220}
3221_ACEOF
3222# Make sure it works both with $CC and with simple cc.
3223# We do the test twice because some compilers refuse to overwrite an
3224# existing .o file with -o, though they will create one.
3225ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3226if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3227 (eval $ac_try) 2>&5
3228 ac_status=$?
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); } &&
3231 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3232 (eval $ac_try) 2>&5
3233 ac_status=$?
3234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); };
3236then
3237 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3238 if test "x$CC" != xcc; then
3239 # Test first that cc exists at all.
3240 if { ac_try='cc -c conftest.$ac_ext >&5'
3241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3242 (eval $ac_try) 2>&5
3243 ac_status=$?
3244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3245 (exit $ac_status); }; }; then
3246 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3247 if { (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 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3253 (eval $ac_try) 2>&5
3254 ac_status=$?
3255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3256 (exit $ac_status); };
3257 then
3258 # cc works too.
3259 :
3260 else
3261 # cc exists but doesn't like -o.
3262 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3263 fi
3264 fi
3265 fi
3266else
3267 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3268fi
3269rm -f conftest*
3270
3271fi
3272if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3273 echo "$as_me:$LINENO: result: yes" >&5
3274echo "${ECHO_T}yes" >&6
3275else
3276 echo "$as_me:$LINENO: result: no" >&5
3277echo "${ECHO_T}no" >&6
3278
3279cat >>confdefs.h <<\_ACEOF
3280#define NO_MINUS_C_MINUS_O 1
3281_ACEOF
3282
3283fi
3284
3285# FIXME: we rely on the cache variable name because
3286# there is no other way.
3287set dummy $CC
3288ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3289if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3290 # Losing compiler, so override with the script.
3291 # FIXME: It is wrong to rewrite CC.
3292 # But if we don't then we get into trouble of one sort or another.
3293 # A longer-term fix would be to have automake use am__CC in this case,
3294 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3295 CC="$am_aux_dir/compile $CC"
3296fi
63e5e3e0 3297
1cf3d07d
SE
3298
3299
3300macro_version='2.1a'
3301macro_revision='1.2435'
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314ltmain="$ac_aux_dir/ltmain.sh"
3315
3316# Set options
3317
3318enable_dlopen=no
3319
3320
3321enable_win32_dll=no
3322
3323
675cdab3
BM
3324# Check whether --enable-shared or --disable-shared was given.
3325if test "${enable_shared+set}" = set; then
3326 enableval="$enable_shared"
3327 p=${PACKAGE-default}
1cf3d07d
SE
3328 case $enableval in
3329 yes) enable_shared=yes ;;
3330 no) enable_shared=no ;;
3331 *)
3332 enable_shared=no
3333 # Look at the argument we got. We use all the common list separators.
3334 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3335 for pkg in $enableval; do
3336 IFS="$lt_save_ifs"
3337 if test "X$pkg" = "X$p"; then
3338 enable_shared=yes
3339 fi
3340 done
3341 IFS="$lt_save_ifs"
3342 ;;
3343 esac
675cdab3
BM
3344else
3345 enable_shared=yes
3ed8e5b6 3346fi;
1cf3d07d
SE
3347
3348
3349
3350
3351
3352
3353
3354
675cdab3
BM
3355# Check whether --enable-static or --disable-static was given.
3356if test "${enable_static+set}" = set; then
3357 enableval="$enable_static"
3358 p=${PACKAGE-default}
1cf3d07d
SE
3359 case $enableval in
3360 yes) enable_static=yes ;;
3361 no) enable_static=no ;;
3362 *)
3363 enable_static=no
3364 # Look at the argument we got. We use all the common list separators.
3365 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3366 for pkg in $enableval; do
3367 IFS="$lt_save_ifs"
3368 if test "X$pkg" = "X$p"; then
3369 enable_static=yes
3370 fi
3371 done
3372 IFS="$lt_save_ifs"
3373 ;;
3374 esac
63e5e3e0 3375else
675cdab3 3376 enable_static=yes
3ed8e5b6 3377fi;
1cf3d07d
SE
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387# Check whether --with-pic or --without-pic was given.
3388if test "${with_pic+set}" = set; then
3389 withval="$with_pic"
3390 pic_mode="$withval"
3391else
3392 pic_mode=default
3393fi;
3394
3395test -z "$pic_mode" && pic_mode=default
3396
3397
3398
3399
3400
3401
3402
675cdab3
BM
3403# Check whether --enable-fast-install or --disable-fast-install was given.
3404if test "${enable_fast_install+set}" = set; then
3405 enableval="$enable_fast_install"
3406 p=${PACKAGE-default}
1cf3d07d
SE
3407 case $enableval in
3408 yes) enable_fast_install=yes ;;
3409 no) enable_fast_install=no ;;
3410 *)
3411 enable_fast_install=no
3412 # Look at the argument we got. We use all the common list separators.
3413 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3414 for pkg in $enableval; do
3415 IFS="$lt_save_ifs"
3416 if test "X$pkg" = "X$p"; then
3417 enable_fast_install=yes
3418 fi
3419 done
3420 IFS="$lt_save_ifs"
3421 ;;
3422 esac
63e5e3e0 3423else
675cdab3 3424 enable_fast_install=yes
3ed8e5b6 3425fi;
63e5e3e0 3426
1cf3d07d
SE
3427
3428
3429
3430
3431
3432
3433
3434echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3435echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3436if test "${lt_cv_path_SED+set}" = set; then
3437 echo $ECHO_N "(cached) $ECHO_C" >&6
3438else
3439 # Loop through the user's path and test for sed and gsed.
3440# Then use that list of sed's as ones to test for truncation.
3441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442for as_dir in $PATH
3443do
3444 IFS=$as_save_IFS
3445 test -z "$as_dir" && as_dir=.
3446 for lt_ac_prog in sed gsed; do
3447 for ac_exec_ext in '' $ac_executable_extensions; do
3448 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3449 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3450 fi
3451 done
3452 done
3453done
3454IFS=$as_save_IFS
3455lt_ac_max=0
3456lt_ac_count=0
3457# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3458# along with /bin/sed that truncates output.
3459for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3460 test ! -f $lt_ac_sed && continue
3461 cat /dev/null > conftest.in
3462 lt_ac_count=0
3463 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3464 # Check for GNU sed and select it if it is found.
3465 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3466 lt_cv_path_SED=$lt_ac_sed
3467 break
3468 fi
3469 while true; do
3470 cat conftest.in conftest.in >conftest.tmp
3471 mv conftest.tmp conftest.in
3472 cp conftest.in conftest.nl
3473 echo >>conftest.nl
3474 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3475 cmp -s conftest.out conftest.nl || break
3476 # 10000 chars as input seems more than enough
3477 test $lt_ac_count -gt 10 && break
3478 lt_ac_count=`expr $lt_ac_count + 1`
3479 if test $lt_ac_count -gt $lt_ac_max; then
3480 lt_ac_max=$lt_ac_count
3481 lt_cv_path_SED=$lt_ac_sed
3482 fi
3483 done
3484done
3485
3486fi
3487
3488SED=$lt_cv_path_SED
3489
3490echo "$as_me:$LINENO: result: $SED" >&5
3491echo "${ECHO_T}$SED" >&6
3492
3493test -z "$SED" && SED=sed
3494Xsed="$SED -e 1s/^X//"
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506echo "$as_me:$LINENO: checking for egrep" >&5
3507echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3508if test "${ac_cv_prog_egrep+set}" = set; then
3509 echo $ECHO_N "(cached) $ECHO_C" >&6
3510else
3511 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3512 then ac_cv_prog_egrep='grep -E'
3513 else ac_cv_prog_egrep='egrep'
3514 fi
3515fi
3516echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3517echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3518 EGREP=$ac_cv_prog_egrep
3519
3520
3521echo "$as_me:$LINENO: checking for fgrep" >&5
3522echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3523if test "${ac_cv_prog_fgrep+set}" = set; then
3524 echo $ECHO_N "(cached) $ECHO_C" >&6
3525else
3526 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3527 then ac_cv_prog_fgrep='grep -F'
3528 else ac_cv_prog_fgrep='fgrep'
3529 fi
3530fi
3531echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3532echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3533 FGREP=$ac_cv_prog_fgrep
3534
3535
3536test -z "$GREP" && GREP=grep
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
675cdab3
BM
3556# Check whether --with-gnu-ld or --without-gnu-ld was given.
3557if test "${with_gnu_ld+set}" = set; then
3558 withval="$with_gnu_ld"
3559 test "$withval" = no || with_gnu_ld=yes
63e5e3e0 3560else
675cdab3 3561 with_gnu_ld=no
3ed8e5b6 3562fi;
63e5e3e0 3563ac_prog=ld
675cdab3 3564if test "$GCC" = yes; then
63e5e3e0 3565 # Check if gcc -print-prog-name=ld gives a path.
1cf3d07d
SE
3566 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3567echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
2f7bf5b7
AO
3568 case $host in
3569 *-*-mingw*)
3570 # gcc leaves a trailing carriage return which upsets mingw
3571 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3572 *)
3573 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3574 esac
675cdab3 3575 case $ac_prog in
63e5e3e0 3576 # Accept absolute paths.
1cf3d07d 3577 [\\/]* | ?:[\\/]*)
63e5e3e0 3578 re_direlt='/[^/][^/]*/\.\./'
1cf3d07d
SE
3579 # Canonicalize the pathname of ld
3580 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3581 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3582 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
63e5e3e0
AG
3583 done
3584 test -z "$LD" && LD="$ac_prog"
3585 ;;
3586 "")
3587 # If it fails, then pretend we aren't using GCC.
3588 ac_prog=ld
3589 ;;
3590 *)
3591 # If it is relative, then search for the first ld in PATH.
3592 with_gnu_ld=unknown
3593 ;;
3594 esac
3595elif test "$with_gnu_ld" = yes; then
3ed8e5b6
AT
3596 echo "$as_me:$LINENO: checking for GNU ld" >&5
3597echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
63e5e3e0 3598else
3ed8e5b6
AT
3599 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3600echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
63e5e3e0 3601fi
3ed8e5b6
AT
3602if test "${lt_cv_path_LD+set}" = set; then
3603 echo $ECHO_N "(cached) $ECHO_C" >&6
63e5e3e0
AG
3604else
3605 if test -z "$LD"; then
1cf3d07d 3606 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
63e5e3e0 3607 for ac_dir in $PATH; do
1cf3d07d 3608 IFS="$lt_save_ifs"
63e5e3e0 3609 test -z "$ac_dir" && ac_dir=.
6ba9e3b0 3610 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
675cdab3 3611 lt_cv_path_LD="$ac_dir/$ac_prog"
63e5e3e0 3612 # Check to see if the program is GNU ld. I'd rather use --version,
1cf3d07d 3613 # but apparently some variants of GNU ld only accept -v.
63e5e3e0 3614 # Break only if it was the GNU/non-GNU ld that we prefer.
1cf3d07d
SE
3615 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3616 *GNU* | *'with BFD'*)
63e5e3e0 3617 test "$with_gnu_ld" != no && break
1cf3d07d
SE
3618 ;;
3619 *)
63e5e3e0 3620 test "$with_gnu_ld" != yes && break
1cf3d07d
SE
3621 ;;
3622 esac
63e5e3e0
AG
3623 fi
3624 done
1cf3d07d 3625 IFS="$lt_save_ifs"
63e5e3e0 3626else
675cdab3 3627 lt_cv_path_LD="$LD" # Let the user override the test with a path.
63e5e3e0
AG
3628fi
3629fi
3630
675cdab3 3631LD="$lt_cv_path_LD"
63e5e3e0 3632if test -n "$LD"; then
3ed8e5b6
AT
3633 echo "$as_me:$LINENO: result: $LD" >&5
3634echo "${ECHO_T}$LD" >&6
63e5e3e0 3635else
3ed8e5b6
AT
3636 echo "$as_me:$LINENO: result: no" >&5
3637echo "${ECHO_T}no" >&6
63e5e3e0 3638fi
3ed8e5b6
AT
3639test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3640echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3641 { (exit 1); exit 1; }; }
3642echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3643echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3644if test "${lt_cv_prog_gnu_ld+set}" = set; then
3645 echo $ECHO_N "(cached) $ECHO_C" >&6
63e5e3e0 3646else
1cf3d07d
SE
3647 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3648case `$LD -v 2>&1 </dev/null` in
3649*GNU* | *'with BFD'*)
675cdab3 3650 lt_cv_prog_gnu_ld=yes
1cf3d07d
SE
3651 ;;
3652*)
675cdab3 3653 lt_cv_prog_gnu_ld=no
1cf3d07d
SE
3654 ;;
3655esac
63e5e3e0 3656fi
3ed8e5b6
AT
3657echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3658echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
675cdab3 3659with_gnu_ld=$lt_cv_prog_gnu_ld
2f7bf5b7 3660
63e5e3e0
AG
3661
3662
1cf3d07d
SE
3663
3664
3665
3666
3667
3668
3669
3670echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3671echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6
3ed8e5b6
AT
3672if test "${lt_cv_path_NM+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
63e5e3e0
AG
3674else
3675 if test -n "$NM"; then
3676 # Let the user override the test.
675cdab3 3677 lt_cv_path_NM="$NM"
63e5e3e0 3678else
1cf3d07d
SE
3679 lt_nm_to_check="${ac_tool_prefix}nm"
3680 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3681 lt_nm_to_check="$lt_nm_to_check nm"
3682 fi
3683 for lt_tmp_nm in $lt_nm_to_check; do
3684 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3685 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3686 IFS="$lt_save_ifs"
3687 test -z "$ac_dir" && ac_dir=.
3688 tmp_nm="$ac_dir/$lt_tmp_nm"
3689 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3690 # Check to see if the nm accepts a BSD-compat flag.
3691 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3692 # nm: unknown option "B" ignored
3693 # Tru64's nm complains that /dev/null is an invalid object file
3694 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3695 */dev/null* | *'Invalid file or object type'*)
3696 lt_cv_path_NM="$tmp_nm -B"
3697 break
3698 ;;
3699 *)
3700 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3701 */dev/null*)
3702 lt_cv_path_NM="$tmp_nm -p"
3703 break
3704 ;;
3705 *)
3706 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3707 continue # so that we can try to find one that supports BSD flags
3708 ;;
3709 esac
3710 ;;
3711 esac
63e5e3e0 3712 fi
1cf3d07d
SE
3713 done
3714 IFS="$lt_save_ifs"
63e5e3e0 3715 done
1cf3d07d 3716 : ${lt_cv_path_NM=no}
63e5e3e0
AG
3717fi
3718fi
1cf3d07d
SE
3719echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3720echo "${ECHO_T}$lt_cv_path_NM" >&6
3721if test "$lt_cv_path_NM" != "no"; then
3722 NM="$lt_cv_path_NM"
63e5e3e0 3723else
1cf3d07d
SE
3724 # Didn't find any BSD compatible name lister, look for dumpbin.
3725 if test -n "$ac_tool_prefix"; then
3726 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3727 do
3728 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3729set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3730echo "$as_me:$LINENO: checking for $ac_word" >&5
3731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3732if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3ed8e5b6 3733 echo $ECHO_N "(cached) $ECHO_C" >&6
2f7bf5b7 3734else
1cf3d07d
SE
3735 if test -n "$DUMPBIN"; then
3736 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3737else
3738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3739for as_dir in $PATH
3740do
3741 IFS=$as_save_IFS
3742 test -z "$as_dir" && as_dir=.
3743 for ac_exec_ext in '' $ac_executable_extensions; do
3744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3745 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3747 break 2
3748 fi
3749done
3750done
2f7bf5b7 3751
1cf3d07d
SE
3752fi
3753fi
3754DUMPBIN=$ac_cv_prog_DUMPBIN
3755if test -n "$DUMPBIN"; then
3756 echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3757echo "${ECHO_T}$DUMPBIN" >&6
3758else
3759 echo "$as_me:$LINENO: result: no" >&5
3760echo "${ECHO_T}no" >&6
3761fi
675cdab3 3762
1cf3d07d
SE
3763 test -n "$DUMPBIN" && break
3764 done
3765fi
3766if test -z "$DUMPBIN"; then
3767 ac_ct_DUMPBIN=$DUMPBIN
3768 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3769do
3770 # Extract the first word of "$ac_prog", so it can be a program name with args.
3771set dummy $ac_prog; ac_word=$2
3772echo "$as_me:$LINENO: checking for $ac_word" >&5
3773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3774if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3776else
3777 if test -n "$ac_ct_DUMPBIN"; then
3778 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3779else
3780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3781for as_dir in $PATH
3782do
3783 IFS=$as_save_IFS
3784 test -z "$as_dir" && as_dir=.
3785 for ac_exec_ext in '' $ac_executable_extensions; do
3786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3787 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3789 break 2
2f7bf5b7 3790 fi
1cf3d07d
SE
3791done
3792done
2f7bf5b7 3793
1cf3d07d
SE
3794fi
3795fi
3796ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3797if test -n "$ac_ct_DUMPBIN"; then
3798 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
3799echo "${ECHO_T}$ac_ct_DUMPBIN" >&6
3800else
3801 echo "$as_me:$LINENO: result: no" >&5
3802echo "${ECHO_T}no" >&6
3803fi
2f7bf5b7 3804
1cf3d07d
SE
3805 test -n "$ac_ct_DUMPBIN" && break
3806done
3807test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":"
2f7bf5b7 3808
1cf3d07d
SE
3809 DUMPBIN=$ac_ct_DUMPBIN
3810fi
2f7bf5b7 3811
2f7bf5b7 3812
1cf3d07d
SE
3813 if test "$DUMPBIN" != ":"; then
3814 NM="$DUMPBIN"
2f7bf5b7 3815 fi
1cf3d07d
SE
3816fi
3817test -z "$NM" && NM=nm
2f7bf5b7 3818
2f7bf5b7 3819
2f7bf5b7 3820
2f7bf5b7 3821
33456445 3822
2f7bf5b7 3823
1cf3d07d
SE
3824echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
3825echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6
3826if test "${lt_cv_nm_interface+set}" = set; then
3827 echo $ECHO_N "(cached) $ECHO_C" >&6
3828else
3829 lt_cv_nm_interface="BSD nm"
3830 echo "int some_variable = 0;" > conftest.$ac_ext
deb984e6 3831 (eval echo "\"\$as_me:3831: $ac_compile\"" >&5)
1cf3d07d
SE
3832 (eval "$ac_compile" 2>conftest.err)
3833 cat conftest.err >&5
deb984e6 3834 (eval echo "\"\$as_me:3834: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
1cf3d07d
SE
3835 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3836 cat conftest.err >&5
deb984e6 3837 (eval echo "\"\$as_me:3837: output\"" >&5)
1cf3d07d
SE
3838 cat conftest.out >&5
3839 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3840 lt_cv_nm_interface="MS dumpbin"
3841 fi
3842 rm -f conftest*
2f7bf5b7 3843fi
1cf3d07d
SE
3844echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
3845echo "${ECHO_T}$lt_cv_nm_interface" >&6
2f7bf5b7 3846
1cf3d07d
SE
3847echo "$as_me:$LINENO: checking whether ln -s works" >&5
3848echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3849LN_S=$as_ln_s
3850if test "$LN_S" = "ln -s"; then
3851 echo "$as_me:$LINENO: result: yes" >&5
3852echo "${ECHO_T}yes" >&6
3853else
3854 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3855echo "${ECHO_T}no, using $LN_S" >&6
3856fi
2f7bf5b7 3857
6dab073b
MS
3858# find the maximum length of command line arguments
3859echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3860echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3861if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3862 echo $ECHO_N "(cached) $ECHO_C" >&6
3863else
3864 i=0
3865 teststring="ABCD"
3866
3867 case $build_os in
3868 msdosdjgpp*)
3869 # On DJGPP, this test can blow up pretty badly due to problems in libc
3870 # (any single argument exceeding 2000 bytes causes a buffer overrun
3871 # during glob expansion). Even if it were fixed, the result of this
3872 # check would be larger than it should be.
3873 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3874 ;;
3875
1cf3d07d
SE
3876 gnu*)
3877 # Under GNU Hurd, this test is not required because there is
3878 # no limit to the length of command line arguments.
3879 # Libtool will interpret -1 as no limit whatsoever
3880 lt_cv_sys_max_cmd_len=-1;
3881 ;;
3882
6dab073b
MS
3883 cygwin* | mingw*)
3884 # On Win9x/ME, this test blows up -- it succeeds, but takes
3885 # about 5 minutes as the teststring grows exponentially.
3886 # Worse, since 9x/ME are not pre-emptively multitasking,
3887 # you end up with a "frozen" computer, even though with patience
3888 # the test eventually succeeds (with a max line length of 256k).
3889 # Instead, let's just punt: use the minimum linelength reported by
3890 # all of the supported platforms: 8192 (on NT/2K/XP).
3891 lt_cv_sys_max_cmd_len=8192;
3892 ;;
3893
3894 amigaos*)
3895 # On AmigaOS with pdksh, this test takes hours, literally.
3896 # So we just punt and use a minimum line length of 8192.
3897 lt_cv_sys_max_cmd_len=8192;
3898 ;;
3899
3900 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3901 # This has been around since 386BSD, at least. Likely further.
3902 if test -x /sbin/sysctl; then
3903 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3904 elif test -x /usr/sbin/sysctl; then
3905 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3906 else
1cf3d07d 3907 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6dab073b
MS
3908 fi
3909 # And add a safety zone
3910 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3911 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3912 ;;
1cf3d07d
SE
3913
3914 interix*)
3915 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3916 lt_cv_sys_max_cmd_len=196608
3917 ;;
3918
3919 osf*)
3920 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3921 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3922 # nice to cause kernel panics so lets avoid the loop below.
3923 # First set a reasonable default.
3924 lt_cv_sys_max_cmd_len=16384
3925 #
3926 if test -x /sbin/sysconfig; then
3927 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3928 *1*) lt_cv_sys_max_cmd_len=-1 ;;
3929 esac
3930 fi
3931 ;;
3932 sco3.2v5*)
3933 lt_cv_sys_max_cmd_len=102400
3934 ;;
3935 sysv5* | sco5v6* | sysv4.2uw2*)
3936 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3937 if test -n "$kargmax"; then
3938 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
3939 else
3940 lt_cv_sys_max_cmd_len=32768
3941 fi
3942 ;;
3943 *)
82a6cadf
PB
3944 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null`
3945 if test -n $lt_cv_sys_max_cmd_len; then
3946 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3947 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3948 else
3949 # Make teststring a little bigger before we do anything with it.
3950 # a 1K string should be a reasonable start.
3951 for i in 1 2 3 4 5 6 7 8 ; do
3952 teststring=$teststring$teststring
3953 done
3954 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3955 # If test is not a shell built-in, we'll probably end up computing a
3956 # maximum length that is only half of the actual maximum length, but
3957 # we can't tell.
3958 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3959 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3960 test $i != 17 # 1/2 MB should be enough
3961 do
3962 i=`expr $i + 1`
3963 teststring=$teststring$teststring
3964 done
3965 # Only check the string length outside the loop.
3966 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3967 teststring=
3968 # Add a significant safety factor because C++ compilers can tack on
3969 # massive amounts of additional arguments before passing them to the
3970 # linker. It appears as though 1/2 is a usable value.
3971 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3972 fi
1cf3d07d 3973 ;;
6dab073b
MS
3974 esac
3975
3976fi
3977
1cf3d07d 3978if test -n $lt_cv_sys_max_cmd_len ; then
6dab073b
MS
3979 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3980echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3981else
3982 echo "$as_me:$LINENO: result: none" >&5
3983echo "${ECHO_T}none" >&6
3984fi
1cf3d07d 3985max_cmd_len=$lt_cv_sys_max_cmd_len
6dab073b
MS
3986
3987
2f7bf5b7 3988
2f7bf5b7 3989
2f7bf5b7 3990
1cf3d07d
SE
3991
3992
3993: ${CP="cp -f"}
3994: ${MV="mv -f"}
3995: ${RM="rm -f"}
3996
3997echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
3998echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6
3999# Try some XSI features
4000xsi_shell=no
4001( _lt_dummy="a/b/c"
4002 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4003 = c,a/b,, ) >/dev/null 2>&1 \
4004 && xsi_shell=yes
4005echo "$as_me:$LINENO: result: $xsi_shell" >&5
4006echo "${ECHO_T}$xsi_shell" >&6
4007
4008
4009echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
4010echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6
4011lt_shell_append=no
4012( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4013 >/dev/null 2>&1 \
4014 && lt_shell_append=yes
4015echo "$as_me:$LINENO: result: $lt_shell_append" >&5
4016echo "${ECHO_T}$lt_shell_append" >&6
4017
4018
4019if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4020 lt_unset=unset
2f7bf5b7 4021else
1cf3d07d 4022 lt_unset=false
2f7bf5b7
AO
4023fi
4024
1cf3d07d
SE
4025
4026
4027
4028
4029# test EBCDIC or ASCII
4030case `echo X|tr X '\101'` in
4031 A) # ASCII based system
4032 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4033 lt_SP2NL='tr \040 \012'
4034 lt_NL2SP='tr \015\012 \040\040'
4035 ;;
4036 *) # EBCDIC based system
4037 lt_SP2NL='tr \100 \n'
4038 lt_NL2SP='tr \r\n \100\100'
4039 ;;
4040esac
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4051echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4052if test "${lt_cv_ld_reload_flag+set}" = set; then
3ed8e5b6 4053 echo $ECHO_N "(cached) $ECHO_C" >&6
2f7bf5b7 4054else
1cf3d07d
SE
4055 lt_cv_ld_reload_flag='-r'
4056fi
4057echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4058echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4059reload_flag=$lt_cv_ld_reload_flag
4060case $reload_flag in
4061"" | " "*) ;;
4062*) reload_flag=" $reload_flag" ;;
4063esac
4064reload_cmds='$LD$reload_flag -o $output$reload_objs'
4065case $host_os in
4066 darwin*)
4067 if test "$GCC" = yes; then
4068 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4069 else
4070 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4071 fi
4072 ;;
4073esac
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4085echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4086if test "${lt_cv_deplibs_check_method+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4088else
4089 lt_cv_file_magic_cmd='$MAGIC_CMD'
4090lt_cv_file_magic_test_file=
4091lt_cv_deplibs_check_method='unknown'
4092# Need to set the preceding variable on all platforms that support
4093# interlibrary dependencies.
4094# 'none' -- dependencies not supported.
4095# `unknown' -- same as none, but documents that we really don't know.
4096# 'pass_all' -- all dependencies passed with no checks.
4097# 'test_compile' -- check by making test program.
4098# 'file_magic [[regex]]' -- check by looking for files in library path
4099# which responds to the $file_magic_cmd with a given extended regex.
4100# If you have `file' or equivalent on your system and you're not sure
4101# whether `pass_all' will *always* work, you probably want this one.
4102
4103case $host_os in
95d4f544 4104aix[4-9]*)
1cf3d07d
SE
4105 lt_cv_deplibs_check_method=pass_all
4106 ;;
4107
4108beos*)
4109 lt_cv_deplibs_check_method=pass_all
2f7bf5b7 4110 ;;
1cf3d07d
SE
4111
4112bsdi[45]*)
4113 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4114 lt_cv_file_magic_cmd='/usr/bin/file -L'
4115 lt_cv_file_magic_test_file=/shlib/libc.so
4116 ;;
4117
4118cygwin*)
4119 # func_win32_libid is a shell function defined in ltmain.sh
4120 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4121 lt_cv_file_magic_cmd='func_win32_libid'
4122 ;;
4123
4124mingw* | pw32*)
4125 # Base MSYS/MinGW do not provide the 'file' command needed by
4126 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4127 # unless we find 'file', for example because we are cross-compiling.
4128 if ( file / ) >/dev/null 2>&1; then
4129 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4130 lt_cv_file_magic_cmd='func_win32_libid'
4131 else
4132 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4133 lt_cv_file_magic_cmd='$OBJDUMP -f'
4134 fi
4135 ;;
4136
4137darwin* | rhapsody*)
4138 lt_cv_deplibs_check_method=pass_all
4139 ;;
4140
4141freebsd* | dragonfly*)
4142 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4143 case $host_cpu in
4144 i*86 )
4145 # Not sure whether the presence of OpenBSD here was a mistake.
4146 # Let's accept both of them until this is cleared up.
4147 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4148 lt_cv_file_magic_cmd=/usr/bin/file
4149 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4150 ;;
4151 esac
4152 else
4153 lt_cv_deplibs_check_method=pass_all
4154 fi
4155 ;;
4156
4157gnu*)
4158 lt_cv_deplibs_check_method=pass_all
2f7bf5b7 4159 ;;
1cf3d07d
SE
4160
4161hpux10.20* | hpux11*)
4162 lt_cv_file_magic_cmd=/usr/bin/file
4163 case $host_cpu in
4164 ia64*)
4165 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4166 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4167 ;;
4168 hppa*64*)
4169 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4170 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4171 ;;
2f7bf5b7 4172 *)
1cf3d07d
SE
4173 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4174 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4175 ;;
4176 esac
4177 ;;
2f7bf5b7 4178
1cf3d07d
SE
4179interix[3-9]*)
4180 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4181 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4182 ;;
2f7bf5b7 4183
1cf3d07d
SE
4184irix5* | irix6* | nonstopux*)
4185 case $LD in
4186 *-32|*"-32 ") libmagic=32-bit;;
4187 *-n32|*"-n32 ") libmagic=N32;;
4188 *-64|*"-64 ") libmagic=64-bit;;
4189 *) libmagic=never-match;;
4190 esac
4191 lt_cv_deplibs_check_method=pass_all
2f7bf5b7 4192 ;;
2f7bf5b7 4193
1cf3d07d
SE
4194# This must be Linux ELF.
4195linux* | k*bsd*-gnu)
4196 lt_cv_deplibs_check_method=pass_all
4197 ;;
2f7bf5b7 4198
1cf3d07d
SE
4199netbsd*)
4200 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4201 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
2f7bf5b7 4202 else
1cf3d07d 4203 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
2f7bf5b7 4204 fi
1cf3d07d
SE
4205 ;;
4206
4207newos6*)
4208 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4209 lt_cv_file_magic_cmd=/usr/bin/file
4210 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4211 ;;
4212
4213*nto* | *qnx*)
4214 lt_cv_deplibs_check_method=pass_all
4215 ;;
63e5e3e0 4216
1cf3d07d
SE
4217openbsd*)
4218 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4219 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4220 else
4221 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
2f7bf5b7
AO
4222 fi
4223 ;;
1cf3d07d
SE
4224
4225osf3* | osf4* | osf5*)
4226 lt_cv_deplibs_check_method=pass_all
4227 ;;
4228
4229rdos*)
4230 lt_cv_deplibs_check_method=pass_all
4231 ;;
4232
4233solaris*)
4234 lt_cv_deplibs_check_method=pass_all
4235 ;;
4236
4237sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4238 lt_cv_deplibs_check_method=pass_all
4239 ;;
4240
4241sysv4 | sysv4.3*)
4242 case $host_vendor in
4243 motorola)
4244 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4245 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4246 ;;
4247 ncr)
4248 lt_cv_deplibs_check_method=pass_all
4249 ;;
4250 sequent)
4251 lt_cv_file_magic_cmd='/bin/file'
4252 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4253 ;;
4254 sni)
4255 lt_cv_file_magic_cmd='/bin/file'
4256 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4257 lt_cv_file_magic_test_file=/lib/libc.so
4258 ;;
4259 siemens)
4260 lt_cv_deplibs_check_method=pass_all
4261 ;;
4262 pc)
4263 lt_cv_deplibs_check_method=pass_all
4264 ;;
4265 esac
4266 ;;
4267
4268tpf*)
4269 lt_cv_deplibs_check_method=pass_all
4270 ;;
dc5de370
HB
4271esac
4272
1cf3d07d
SE
4273fi
4274echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4275echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4276file_magic_cmd=$lt_cv_file_magic_cmd
4277deplibs_check_method=$lt_cv_deplibs_check_method
4278test -z "$deplibs_check_method" && deplibs_check_method=unknown
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
3ed8e5b6 4291if test -n "$ac_tool_prefix"; then
1cf3d07d
SE
4292 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4293set dummy ${ac_tool_prefix}ar; ac_word=$2
3ed8e5b6
AT
4294echo "$as_me:$LINENO: checking for $ac_word" >&5
4295echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d 4296if test "${ac_cv_prog_AR+set}" = set; then
3ed8e5b6 4297 echo $ECHO_N "(cached) $ECHO_C" >&6
2f7bf5b7 4298else
1cf3d07d
SE
4299 if test -n "$AR"; then
4300 ac_cv_prog_AR="$AR" # Let the user override the test.
2f7bf5b7 4301else
3ed8e5b6
AT
4302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4303for as_dir in $PATH
4304do
4305 IFS=$as_save_IFS
4306 test -z "$as_dir" && as_dir=.
4307 for ac_exec_ext in '' $ac_executable_extensions; do
4308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 4309 ac_cv_prog_AR="${ac_tool_prefix}ar"
3ed8e5b6
AT
4310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4311 break 2
4312 fi
4313done
4314done
4315
2f7bf5b7
AO
4316fi
4317fi
1cf3d07d
SE
4318AR=$ac_cv_prog_AR
4319if test -n "$AR"; then
4320 echo "$as_me:$LINENO: result: $AR" >&5
4321echo "${ECHO_T}$AR" >&6
2f7bf5b7 4322else
3ed8e5b6
AT
4323 echo "$as_me:$LINENO: result: no" >&5
4324echo "${ECHO_T}no" >&6
2f7bf5b7
AO
4325fi
4326
3ed8e5b6 4327fi
1cf3d07d
SE
4328if test -z "$ac_cv_prog_AR"; then
4329 ac_ct_AR=$AR
4330 # Extract the first word of "ar", so it can be a program name with args.
4331set dummy ar; ac_word=$2
3ed8e5b6
AT
4332echo "$as_me:$LINENO: checking for $ac_word" >&5
4333echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1cf3d07d 4334if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3ed8e5b6 4335 echo $ECHO_N "(cached) $ECHO_C" >&6
2f7bf5b7 4336else
1cf3d07d
SE
4337 if test -n "$ac_ct_AR"; then
4338 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2f7bf5b7 4339else
3ed8e5b6
AT
4340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341for as_dir in $PATH
4342do
4343 IFS=$as_save_IFS
4344 test -z "$as_dir" && as_dir=.
4345 for ac_exec_ext in '' $ac_executable_extensions; do
4346 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1cf3d07d 4347 ac_cv_prog_ac_ct_AR="ar"
3ed8e5b6
AT
4348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4349 break 2
4350 fi
4351done
4352done
4353
1cf3d07d 4354 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
2f7bf5b7
AO
4355fi
4356fi
1cf3d07d
SE
4357ac_ct_AR=$ac_cv_prog_ac_ct_AR
4358if test -n "$ac_ct_AR"; then
4359 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4360echo "${ECHO_T}$ac_ct_AR" >&6
2f7bf5b7 4361else
3ed8e5b6
AT
4362 echo "$as_me:$LINENO: result: no" >&5
4363echo "${ECHO_T}no" >&6
2f7bf5b7
AO
4364fi
4365
1cf3d07d 4366 AR=$ac_ct_AR
2f7bf5b7 4367else
1cf3d07d 4368 AR="$ac_cv_prog_AR"
2f7bf5b7
AO
4369fi
4370
1cf3d07d
SE
4371test -z "$AR" && AR=ar
4372test -z "$AR_FLAGS" && AR_FLAGS=cru
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
3ed8e5b6
AT
4384if test -n "$ac_tool_prefix"; then
4385 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2f7bf5b7 4386set dummy ${ac_tool_prefix}strip; ac_word=$2
3ed8e5b6
AT
4387echo "$as_me:$LINENO: checking for $ac_word" >&5
4388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4389if test "${ac_cv_prog_STRIP+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
2f7bf5b7
AO
4391else
4392 if test -n "$STRIP"; then
4393 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4394else
3ed8e5b6
AT
4395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396for as_dir in $PATH
4397do
4398 IFS=$as_save_IFS
4399 test -z "$as_dir" && as_dir=.
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4402 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4404 break 2
4405 fi
4406done
4407done
4408
2f7bf5b7
AO
4409fi
4410fi
3ed8e5b6 4411STRIP=$ac_cv_prog_STRIP
2f7bf5b7 4412if test -n "$STRIP"; then
3ed8e5b6
AT
4413 echo "$as_me:$LINENO: result: $STRIP" >&5
4414echo "${ECHO_T}$STRIP" >&6
2f7bf5b7 4415else
3ed8e5b6
AT
4416 echo "$as_me:$LINENO: result: no" >&5
4417echo "${ECHO_T}no" >&6
2f7bf5b7
AO
4418fi
4419
3ed8e5b6 4420fi
2f7bf5b7 4421if test -z "$ac_cv_prog_STRIP"; then
3ed8e5b6 4422 ac_ct_STRIP=$STRIP
2f7bf5b7
AO
4423 # Extract the first word of "strip", so it can be a program name with args.
4424set dummy strip; ac_word=$2
3ed8e5b6
AT
4425echo "$as_me:$LINENO: checking for $ac_word" >&5
4426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4427if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
2f7bf5b7 4429else
3ed8e5b6
AT
4430 if test -n "$ac_ct_STRIP"; then
4431 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2f7bf5b7 4432else
3ed8e5b6
AT
4433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434for as_dir in $PATH
4435do
4436 IFS=$as_save_IFS
4437 test -z "$as_dir" && as_dir=.
4438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4440 ac_cv_prog_ac_ct_STRIP="strip"
4441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4442 break 2
4443 fi
4444done
4445done
4446
4447 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2f7bf5b7
AO
4448fi
4449fi
3ed8e5b6
AT
4450ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4451if test -n "$ac_ct_STRIP"; then
4452 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4453echo "${ECHO_T}$ac_ct_STRIP" >&6
675cdab3 4454else
3ed8e5b6
AT
4455 echo "$as_me:$LINENO: result: no" >&5
4456echo "${ECHO_T}no" >&6
675cdab3
BM
4457fi
4458
3ed8e5b6 4459 STRIP=$ac_ct_STRIP
675cdab3 4460else
3ed8e5b6 4461 STRIP="$ac_cv_prog_STRIP"
675cdab3
BM
4462fi
4463
1cf3d07d 4464test -z "$STRIP" && STRIP=:
675cdab3 4465
675cdab3
BM
4466
4467
675cdab3 4468
675cdab3 4469
3ed8e5b6 4470
1cf3d07d
SE
4471if test -n "$ac_tool_prefix"; then
4472 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4473set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4474echo "$as_me:$LINENO: checking for $ac_word" >&5
4475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4476if test "${ac_cv_prog_RANLIB+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
675cdab3 4478else
1cf3d07d
SE
4479 if test -n "$RANLIB"; then
4480 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4481else
4482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483for as_dir in $PATH
4484do
4485 IFS=$as_save_IFS
4486 test -z "$as_dir" && as_dir=.
4487 for ac_exec_ext in '' $ac_executable_extensions; do
4488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4489 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4491 break 2
4492 fi
4493done
4494done
4495
4496fi
4497fi
4498RANLIB=$ac_cv_prog_RANLIB
4499if test -n "$RANLIB"; then
4500 echo "$as_me:$LINENO: result: $RANLIB" >&5
4501echo "${ECHO_T}$RANLIB" >&6
4502else
4503 echo "$as_me:$LINENO: result: no" >&5
4504echo "${ECHO_T}no" >&6
4505fi
4506
4507fi
4508if test -z "$ac_cv_prog_RANLIB"; then
4509 ac_ct_RANLIB=$RANLIB
4510 # Extract the first word of "ranlib", so it can be a program name with args.
4511set dummy ranlib; ac_word=$2
4512echo "$as_me:$LINENO: checking for $ac_word" >&5
4513echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4514if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4516else
4517 if test -n "$ac_ct_RANLIB"; then
4518 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4519else
4520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521for as_dir in $PATH
4522do
4523 IFS=$as_save_IFS
4524 test -z "$as_dir" && as_dir=.
4525 for ac_exec_ext in '' $ac_executable_extensions; do
4526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4527 ac_cv_prog_ac_ct_RANLIB="ranlib"
4528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4529 break 2
4530 fi
4531done
4532done
4533
4534 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4535fi
4536fi
4537ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4538if test -n "$ac_ct_RANLIB"; then
4539 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4540echo "${ECHO_T}$ac_ct_RANLIB" >&6
4541else
4542 echo "$as_me:$LINENO: result: no" >&5
4543echo "${ECHO_T}no" >&6
4544fi
4545
4546 RANLIB=$ac_ct_RANLIB
4547else
4548 RANLIB="$ac_cv_prog_RANLIB"
4549fi
4550
4551test -z "$RANLIB" && RANLIB=:
4552
4553
4554
4555
4556
4557
4558# Determine commands to create old-style static archives.
4559old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4560old_postinstall_cmds='chmod 644 $oldlib'
4561old_postuninstall_cmds=
4562
4563if test -n "$RANLIB"; then
4564 case $host_os in
4565 openbsd*)
4566 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4567 ;;
4568 *)
4569 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4570 ;;
4571 esac
4572 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4573fi
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608# If no C compiler was specified, use CC.
4609LTCC=${LTCC-"$CC"}
4610
4611# If no C compiler flags were specified, use CFLAGS.
4612LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4613
4614# Allow CC to be a program name with arguments.
4615compiler=$CC
4616
4617
4618# Check for command to grab the raw symbol name followed by C symbol from nm.
4619echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4620echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4621if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4623else
4624
4625# These are sane defaults that work on at least a few old systems.
4626# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4627
4628# Character class describing NM global symbol codes.
4629symcode='[BCDEGRST]'
4630
4631# Regexp to match symbols that can be accessed directly from C.
4632sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4633
4634# Define system-specific variables.
4635case $host_os in
4636aix*)
4637 symcode='[BCDT]'
4638 ;;
4639cygwin* | mingw* | pw32*)
4640 symcode='[ABCDGISTW]'
4641 ;;
4642hpux*)
4643 if test "$host_cpu" = ia64; then
4644 symcode='[ABCDEGRST]'
4645 fi
4646 ;;
4647irix* | nonstopux*)
4648 symcode='[BCDEGRST]'
4649 ;;
4650osf*)
4651 symcode='[BCDEGQRST]'
4652 ;;
4653solaris*)
4654 symcode='[BDRT]'
4655 ;;
4656sco3.2v5*)
4657 symcode='[DT]'
4658 ;;
4659sysv4.2uw2*)
4660 symcode='[DT]'
4661 ;;
4662sysv5* | sco5v6* | unixware* | OpenUNIX*)
4663 symcode='[ABDT]'
4664 ;;
4665sysv4)
4666 symcode='[DFNSTU]'
4667 ;;
4668esac
4669
4670# If we're using GNU nm, then use its standard symbol codes.
4671case `$NM -V 2>&1` in
4672*GNU* | *'with BFD'*)
4673 symcode='[ABCDGIRSTW]' ;;
4674esac
4675
4676# Transform an extracted symbol line into a proper C declaration.
4677# Some systems (esp. on ia64) link data and code symbols differently,
4678# so use this general approach.
4679lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4680
4681# Transform an extracted symbol line into symbol name and symbol address
4682lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4683
4684# Handle CRLF in mingw tool chain
4685opt_cr=
4686case $build_os in
4687mingw*)
4688 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4689 ;;
4690esac
4691
4692# Try without a prefix underscore, then with it.
4693for ac_symprfx in "" "_"; do
4694
4695 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4696 symxfrm="\\1 $ac_symprfx\\2 \\2"
4697
4698 # Write the raw and C identifiers.
4699 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4700 # Fake it for dumpbin and say T for any non-static function
4701 # and D for any global variable.
4702 # Also find C++ and __fastcall symbols from MSVC++,
4703 # which start with @ or ?.
4704 lt_cv_sys_global_symbol_pipe="$AWK '"\
4705" {last_section=section; section=\$ 3};"\
4706" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4707" \$ 0!~/External *\|/{next};"\
4708" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4709" {if(hide[section]) next};"\
4710" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4711" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4712" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4713" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4714" ' prfx=^$ac_symprfx"
4715 else
4716 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4717 fi
4718
4719 # Check to see that the pipe works correctly.
4720 pipe_works=no
4721
4722 rm -f conftest*
4723 cat > conftest.$ac_ext <<_LT_EOF
4724#ifdef __cplusplus
4725extern "C" {
4726#endif
4727char nm_test_var;
4728void nm_test_func(void);
4729void nm_test_func(void){}
4730#ifdef __cplusplus
4731}
4732#endif
4733int main(){nm_test_var='a';nm_test_func();return(0);}
4734_LT_EOF
4735
4736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4737 (eval $ac_compile) 2>&5
4738 ac_status=$?
4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); }; then
4741 # Now try to grab the symbols.
4742 nlist=conftest.nm
4743 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4744 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4745 ac_status=$?
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); } && test -s "$nlist"; then
4748 # Try sorting and uniquifying the output.
4749 if sort "$nlist" | uniq > "$nlist"T; then
4750 mv -f "$nlist"T "$nlist"
4751 else
4752 rm -f "$nlist"T
4753 fi
4754
4755 # Make sure that we snagged all the symbols we need.
4756 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4757 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4758 cat <<_LT_EOF > conftest.$ac_ext
4759#ifdef __cplusplus
4760extern "C" {
4761#endif
4762
4763_LT_EOF
4764 # Now generate the symbol file.
4765 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4766
4767 cat <<_LT_EOF >> conftest.$ac_ext
4768
4769/* The mapping between symbol names and symbols. */
4770const struct {
4771 const char *name;
4772 void *address;
4773}
4774lt__PROGRAM__LTX_preloaded_symbols[] =
4775{
4776 { "@PROGRAM@", (void *) 0 },
4777_LT_EOF
4778 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4779 cat <<\_LT_EOF >> conftest.$ac_ext
4780 {0, (void *) 0}
4781};
4782
4783/* This works around a problem in FreeBSD linker */
4784#ifdef FREEBSD_WORKAROUND
4785static const void *lt_preloaded_setup() {
4786 return lt__PROGRAM__LTX_preloaded_symbols;
4787}
4788#endif
4789
4790#ifdef __cplusplus
4791}
4792#endif
4793_LT_EOF
4794 # Now try linking the two files.
4795 mv conftest.$ac_objext conftstm.$ac_objext
4796 lt_save_LIBS="$LIBS"
4797 lt_save_CFLAGS="$CFLAGS"
4798 LIBS="conftstm.$ac_objext"
4799 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
4800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4801 (eval $ac_link) 2>&5
4802 ac_status=$?
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); } && test -s conftest${ac_exeext}; then
4805 pipe_works=yes
4806 fi
4807 LIBS="$lt_save_LIBS"
4808 CFLAGS="$lt_save_CFLAGS"
4809 else
4810 echo "cannot find nm_test_func in $nlist" >&5
4811 fi
4812 else
4813 echo "cannot find nm_test_var in $nlist" >&5
4814 fi
4815 else
4816 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4817 fi
4818 else
4819 echo "$progname: failed program was:" >&5
4820 cat conftest.$ac_ext >&5
4821 fi
4822 rm -f conftest* conftst*
4823
4824 # Do not use the global_symbol_pipe unless it works.
4825 if test "$pipe_works" = yes; then
4826 break
4827 else
4828 lt_cv_sys_global_symbol_pipe=
4829 fi
4830done
4831
4832fi
4833
4834if test -z "$lt_cv_sys_global_symbol_pipe"; then
4835 lt_cv_sys_global_symbol_to_cdecl=
4836fi
4837if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4838 echo "$as_me:$LINENO: result: failed" >&5
4839echo "${ECHO_T}failed" >&6
4840else
4841 echo "$as_me:$LINENO: result: ok" >&5
4842echo "${ECHO_T}ok" >&6
4843fi
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4863if test "${enable_libtool_lock+set}" = set; then
4864 enableval="$enable_libtool_lock"
4865
3ed8e5b6 4866fi;
1cf3d07d 4867test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
675cdab3
BM
4868
4869# Some flags need to be propagated to the compiler or linker for good
4870# libtool support.
4871case $host in
1cf3d07d 4872ia64-*-hpux*)
675cdab3 4873 # Find out which ABI we are using.
1cf3d07d 4874 echo 'int i;' > conftest.$ac_ext
3ed8e5b6
AT
4875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4876 (eval $ac_compile) 2>&5
4877 ac_status=$?
4878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); }; then
675cdab3 4880 case `/usr/bin/file conftest.$ac_objext` in
1cf3d07d
SE
4881 *ELF-32*)
4882 HPUX_IA64_MODE="32"
4883 ;;
4884 *ELF-64*)
4885 HPUX_IA64_MODE="64"
4886 ;;
3ed8e5b6 4887 esac
3ed8e5b6
AT
4888 fi
4889 rm -rf conftest*
4890 ;;
1cf3d07d
SE
4891*-*-irix6*)
4892 # Find out which ABI we are using.
deb984e6 4893 echo '#line 4893 "configure"' > conftest.$ac_ext
1cf3d07d
SE
4894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4895 (eval $ac_compile) 2>&5
4896 ac_status=$?
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); }; then
4899 if test "$lt_cv_prog_gnu_ld" = yes; then
4900 case `/usr/bin/file conftest.$ac_objext` in
4901 *32-bit*)
4902 LD="${LD-ld} -melf32bsmip"
4903 ;;
4904 *N32*)
4905 LD="${LD-ld} -melf32bmipn32"
4906 ;;
4907 *64-bit*)
4908 LD="${LD-ld} -melf64bmip"
4909 ;;
4910 esac
4911 else
4912 case `/usr/bin/file conftest.$ac_objext` in
4913 *32-bit*)
4914 LD="${LD-ld} -32"
4915 ;;
4916 *N32*)
4917 LD="${LD-ld} -n32"
4918 ;;
4919 *64-bit*)
4920 LD="${LD-ld} -64"
4921 ;;
4922 esac
4923 fi
4924 fi
4925 rm -rf conftest*
4926 ;;
4927
4928x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4929s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
4930 # Find out which ABI we are using.
4931 echo 'int i;' > conftest.$ac_ext
4932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4933 (eval $ac_compile) 2>&5
4934 ac_status=$?
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); }; then
4937 case `/usr/bin/file conftest.o` in
4938 *32-bit*)
4939 case $host in
4940 x86_64-*kfreebsd*-gnu)
4941 LD="${LD-ld} -m elf_i386_fbsd"
4942 ;;
4943 x86_64-*linux*)
4944 LD="${LD-ld} -m elf_i386"
4945 ;;
4946 ppc64-*linux*|powerpc64-*linux*)
4947 LD="${LD-ld} -m elf32ppclinux"
4948 ;;
4949 s390x-*linux*)
4950 LD="${LD-ld} -m elf_s390"
4951 ;;
4952 sparc64-*linux*)
4953 LD="${LD-ld} -m elf32_sparc"
4954 ;;
4955 esac
4956 ;;
4957 *64-bit*)
4958 case $host in
4959 x86_64-*kfreebsd*-gnu)
4960 LD="${LD-ld} -m elf_x86_64_fbsd"
4961 ;;
4962 x86_64-*linux*)
4963 LD="${LD-ld} -m elf_x86_64"
4964 ;;
4965 ppc*-*linux*|powerpc*-*linux*)
4966 LD="${LD-ld} -m elf64ppc"
4967 ;;
4968 s390*-*linux*|s390*-*tpf*)
4969 LD="${LD-ld} -m elf64_s390"
4970 ;;
4971 sparc*-*linux*)
4972 LD="${LD-ld} -m elf64_sparc"
4973 ;;
4974 esac
4975 ;;
4976 esac
4977 fi
4978 rm -rf conftest*
4979 ;;
4980
4981*-*-sco3.2v5*)
4982 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4983 SAVE_CFLAGS="$CFLAGS"
4984 CFLAGS="$CFLAGS -belf"
4985 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4986echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4987if test "${lt_cv_cc_needs_belf+set}" = set; then
4988 echo $ECHO_N "(cached) $ECHO_C" >&6
4989else
4990 ac_ext=c
4991ac_cpp='$CPP $CPPFLAGS'
4992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4994ac_compiler_gnu=$ac_cv_c_compiler_gnu
4995
4996 cat >conftest.$ac_ext <<_ACEOF
4997/* confdefs.h. */
4998_ACEOF
4999cat confdefs.h >>conftest.$ac_ext
5000cat >>conftest.$ac_ext <<_ACEOF
5001/* end confdefs.h. */
5002
5003int
5004main ()
5005{
5006
5007 ;
5008 return 0;
5009}
5010_ACEOF
5011rm -f conftest.$ac_objext conftest$ac_exeext
5012if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5013 (eval $ac_link) 2>conftest.er1
5014 ac_status=$?
5015 grep -v '^ *+' conftest.er1 >conftest.err
5016 rm -f conftest.er1
5017 cat conftest.err >&5
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); } &&
5020 { ac_try='test -z "$ac_c_werror_flag"
5021 || test ! -s conftest.err'
5022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5023 (eval $ac_try) 2>&5
5024 ac_status=$?
5025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026 (exit $ac_status); }; } &&
5027 { ac_try='test -s conftest$ac_exeext'
5028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5029 (eval $ac_try) 2>&5
5030 ac_status=$?
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); }; }; then
5033 lt_cv_cc_needs_belf=yes
5034else
5035 echo "$as_me: failed program was:" >&5
5036sed 's/^/| /' conftest.$ac_ext >&5
5037
5038lt_cv_cc_needs_belf=no
5039fi
5040rm -f conftest.err conftest.$ac_objext \
5041 conftest$ac_exeext conftest.$ac_ext
5042 ac_ext=c
5043ac_cpp='$CPP $CPPFLAGS'
5044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5046ac_compiler_gnu=$ac_cv_c_compiler_gnu
5047
5048fi
5049echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5050echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5051 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5052 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5053 CFLAGS="$SAVE_CFLAGS"
5054 fi
5055 ;;
5056sparc*-*solaris*)
5057 # Find out which ABI we are using.
5058 echo 'int i;' > conftest.$ac_ext
5059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5060 (eval $ac_compile) 2>&5
5061 ac_status=$?
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); }; then
5064 case `/usr/bin/file conftest.o` in
5065 *64-bit*)
5066 case $lt_cv_prog_gnu_ld in
5067 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5068 *) LD="${LD-ld} -64" ;;
5069 esac
5070 ;;
5071 esac
5072 fi
5073 rm -rf conftest*
5074 ;;
5075esac
5076
5077need_locks="$enable_libtool_lock"
5078
5079ac_ext=c
5080ac_cpp='$CPP $CPPFLAGS'
5081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5083ac_compiler_gnu=$ac_cv_c_compiler_gnu
5084echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5085echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5086# On Suns, sometimes $CPP names a directory.
5087if test -n "$CPP" && test -d "$CPP"; then
5088 CPP=
5089fi
5090if test -z "$CPP"; then
5091 if test "${ac_cv_prog_CPP+set}" = set; then
5092 echo $ECHO_N "(cached) $ECHO_C" >&6
5093else
5094 # Double quotes because CPP needs to be expanded
5095 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5096 do
5097 ac_preproc_ok=false
5098for ac_c_preproc_warn_flag in '' yes
5099do
5100 # Use a header file that comes with gcc, so configuring glibc
5101 # with a fresh cross-compiler works.
5102 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5103 # <limits.h> exists even on freestanding compilers.
5104 # On the NeXT, cc -E runs the code through the compiler's parser,
5105 # not just through cpp. "Syntax error" is here to catch this case.
5106 cat >conftest.$ac_ext <<_ACEOF
5107/* confdefs.h. */
5108_ACEOF
5109cat confdefs.h >>conftest.$ac_ext
5110cat >>conftest.$ac_ext <<_ACEOF
5111/* end confdefs.h. */
5112#ifdef __STDC__
5113# include <limits.h>
5114#else
5115# include <assert.h>
5116#endif
5117 Syntax error
5118_ACEOF
5119if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5120 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5121 ac_status=$?
5122 grep -v '^ *+' conftest.er1 >conftest.err
5123 rm -f conftest.er1
5124 cat conftest.err >&5
5125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126 (exit $ac_status); } >/dev/null; then
5127 if test -s conftest.err; then
5128 ac_cpp_err=$ac_c_preproc_warn_flag
5129 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5130 else
5131 ac_cpp_err=
5132 fi
5133else
5134 ac_cpp_err=yes
5135fi
5136if test -z "$ac_cpp_err"; then
5137 :
5138else
5139 echo "$as_me: failed program was:" >&5
5140sed 's/^/| /' conftest.$ac_ext >&5
5141
5142 # Broken: fails on valid input.
5143continue
5144fi
5145rm -f conftest.err conftest.$ac_ext
5146
5147 # OK, works on sane cases. Now check whether non-existent headers
5148 # can be detected and how.
5149 cat >conftest.$ac_ext <<_ACEOF
5150/* confdefs.h. */
5151_ACEOF
5152cat confdefs.h >>conftest.$ac_ext
5153cat >>conftest.$ac_ext <<_ACEOF
5154/* end confdefs.h. */
5155#include <ac_nonexistent.h>
5156_ACEOF
5157if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5158 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5159 ac_status=$?
5160 grep -v '^ *+' conftest.er1 >conftest.err
5161 rm -f conftest.er1
5162 cat conftest.err >&5
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); } >/dev/null; then
5165 if test -s conftest.err; then
5166 ac_cpp_err=$ac_c_preproc_warn_flag
5167 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5168 else
5169 ac_cpp_err=
5170 fi
5171else
5172 ac_cpp_err=yes
5173fi
5174if test -z "$ac_cpp_err"; then
5175 # Broken: success on invalid input.
5176continue
5177else
5178 echo "$as_me: failed program was:" >&5
5179sed 's/^/| /' conftest.$ac_ext >&5
5180
5181 # Passes both tests.
5182ac_preproc_ok=:
5183break
5184fi
5185rm -f conftest.err conftest.$ac_ext
5186
5187done
5188# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5189rm -f conftest.err conftest.$ac_ext
5190if $ac_preproc_ok; then
5191 break
5192fi
5193
5194 done
5195 ac_cv_prog_CPP=$CPP
5196
5197fi
5198 CPP=$ac_cv_prog_CPP
5199else
5200 ac_cv_prog_CPP=$CPP
5201fi
5202echo "$as_me:$LINENO: result: $CPP" >&5
5203echo "${ECHO_T}$CPP" >&6
5204ac_preproc_ok=false
5205for ac_c_preproc_warn_flag in '' yes
5206do
5207 # Use a header file that comes with gcc, so configuring glibc
5208 # with a fresh cross-compiler works.
5209 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5210 # <limits.h> exists even on freestanding compilers.
5211 # On the NeXT, cc -E runs the code through the compiler's parser,
5212 # not just through cpp. "Syntax error" is here to catch this case.
5213 cat >conftest.$ac_ext <<_ACEOF
5214/* confdefs.h. */
5215_ACEOF
5216cat confdefs.h >>conftest.$ac_ext
5217cat >>conftest.$ac_ext <<_ACEOF
5218/* end confdefs.h. */
5219#ifdef __STDC__
5220# include <limits.h>
5221#else
5222# include <assert.h>
5223#endif
5224 Syntax error
5225_ACEOF
5226if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5227 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5228 ac_status=$?
5229 grep -v '^ *+' conftest.er1 >conftest.err
5230 rm -f conftest.er1
5231 cat conftest.err >&5
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); } >/dev/null; then
5234 if test -s conftest.err; then
5235 ac_cpp_err=$ac_c_preproc_warn_flag
5236 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5237 else
5238 ac_cpp_err=
5239 fi
5240else
5241 ac_cpp_err=yes
5242fi
5243if test -z "$ac_cpp_err"; then
5244 :
5245else
5246 echo "$as_me: failed program was:" >&5
5247sed 's/^/| /' conftest.$ac_ext >&5
5248
5249 # Broken: fails on valid input.
5250continue
5251fi
5252rm -f conftest.err conftest.$ac_ext
5253
5254 # OK, works on sane cases. Now check whether non-existent headers
5255 # can be detected and how.
5256 cat >conftest.$ac_ext <<_ACEOF
5257/* confdefs.h. */
5258_ACEOF
5259cat confdefs.h >>conftest.$ac_ext
5260cat >>conftest.$ac_ext <<_ACEOF
5261/* end confdefs.h. */
5262#include <ac_nonexistent.h>
5263_ACEOF
5264if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5265 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5266 ac_status=$?
5267 grep -v '^ *+' conftest.er1 >conftest.err
5268 rm -f conftest.er1
5269 cat conftest.err >&5
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); } >/dev/null; then
5272 if test -s conftest.err; then
5273 ac_cpp_err=$ac_c_preproc_warn_flag
5274 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5275 else
5276 ac_cpp_err=
5277 fi
5278else
5279 ac_cpp_err=yes
5280fi
5281if test -z "$ac_cpp_err"; then
5282 # Broken: success on invalid input.
5283continue
5284else
5285 echo "$as_me: failed program was:" >&5
5286sed 's/^/| /' conftest.$ac_ext >&5
5287
5288 # Passes both tests.
5289ac_preproc_ok=:
5290break
5291fi
5292rm -f conftest.err conftest.$ac_ext
5293
5294done
5295# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5296rm -f conftest.err conftest.$ac_ext
5297if $ac_preproc_ok; then
5298 :
5299else
5300 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5301See \`config.log' for more details." >&5
5302echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5303See \`config.log' for more details." >&2;}
5304 { (exit 1); exit 1; }; }
5305fi
5306
5307ac_ext=c
5308ac_cpp='$CPP $CPPFLAGS'
5309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5311ac_compiler_gnu=$ac_cv_c_compiler_gnu
5312
5313
5314echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5315echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5316if test "${ac_cv_header_stdc+set}" = set; then
5317 echo $ECHO_N "(cached) $ECHO_C" >&6
5318else
5319 cat >conftest.$ac_ext <<_ACEOF
5320/* confdefs.h. */
5321_ACEOF
5322cat confdefs.h >>conftest.$ac_ext
5323cat >>conftest.$ac_ext <<_ACEOF
5324/* end confdefs.h. */
5325#include <stdlib.h>
5326#include <stdarg.h>
5327#include <string.h>
5328#include <float.h>
5329
5330int
5331main ()
5332{
5333
5334 ;
5335 return 0;
5336}
5337_ACEOF
5338rm -f conftest.$ac_objext
5339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5340 (eval $ac_compile) 2>conftest.er1
5341 ac_status=$?
5342 grep -v '^ *+' conftest.er1 >conftest.err
5343 rm -f conftest.er1
5344 cat conftest.err >&5
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); } &&
5347 { ac_try='test -z "$ac_c_werror_flag"
5348 || test ! -s conftest.err'
5349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5350 (eval $ac_try) 2>&5
5351 ac_status=$?
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); }; } &&
5354 { ac_try='test -s conftest.$ac_objext'
5355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5356 (eval $ac_try) 2>&5
5357 ac_status=$?
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5359 (exit $ac_status); }; }; then
5360 ac_cv_header_stdc=yes
5361else
5362 echo "$as_me: failed program was:" >&5
5363sed 's/^/| /' conftest.$ac_ext >&5
5364
5365ac_cv_header_stdc=no
5366fi
5367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5368
5369if test $ac_cv_header_stdc = yes; then
5370 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5371 cat >conftest.$ac_ext <<_ACEOF
5372/* confdefs.h. */
5373_ACEOF
5374cat confdefs.h >>conftest.$ac_ext
5375cat >>conftest.$ac_ext <<_ACEOF
5376/* end confdefs.h. */
5377#include <string.h>
5378
5379_ACEOF
5380if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5381 $EGREP "memchr" >/dev/null 2>&1; then
5382 :
5383else
5384 ac_cv_header_stdc=no
5385fi
5386rm -f conftest*
5387
5388fi
5389
5390if test $ac_cv_header_stdc = yes; then
5391 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5392 cat >conftest.$ac_ext <<_ACEOF
5393/* confdefs.h. */
5394_ACEOF
5395cat confdefs.h >>conftest.$ac_ext
5396cat >>conftest.$ac_ext <<_ACEOF
5397/* end confdefs.h. */
5398#include <stdlib.h>
5399
5400_ACEOF
5401if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5402 $EGREP "free" >/dev/null 2>&1; then
5403 :
5404else
5405 ac_cv_header_stdc=no
5406fi
5407rm -f conftest*
5408
5409fi
5410
5411if test $ac_cv_header_stdc = yes; then
5412 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5413 if test "$cross_compiling" = yes; then
5414 :
5415else
5416 cat >conftest.$ac_ext <<_ACEOF
5417/* confdefs.h. */
5418_ACEOF
5419cat confdefs.h >>conftest.$ac_ext
5420cat >>conftest.$ac_ext <<_ACEOF
5421/* end confdefs.h. */
5422#include <ctype.h>
5423#if ((' ' & 0x0FF) == 0x020)
5424# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5425# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5426#else
5427# define ISLOWER(c) \
5428 (('a' <= (c) && (c) <= 'i') \
5429 || ('j' <= (c) && (c) <= 'r') \
5430 || ('s' <= (c) && (c) <= 'z'))
5431# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5432#endif
5433
5434#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5435int
5436main ()
5437{
5438 int i;
5439 for (i = 0; i < 256; i++)
5440 if (XOR (islower (i), ISLOWER (i))
5441 || toupper (i) != TOUPPER (i))
5442 exit(2);
5443 exit (0);
5444}
5445_ACEOF
5446rm -f conftest$ac_exeext
5447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5448 (eval $ac_link) 2>&5
5449 ac_status=$?
5450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5453 (eval $ac_try) 2>&5
5454 ac_status=$?
5455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5456 (exit $ac_status); }; }; then
5457 :
5458else
5459 echo "$as_me: program exited with status $ac_status" >&5
5460echo "$as_me: failed program was:" >&5
5461sed 's/^/| /' conftest.$ac_ext >&5
5462
5463( exit $ac_status )
5464ac_cv_header_stdc=no
5465fi
5466rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5467fi
5468fi
5469fi
5470echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5471echo "${ECHO_T}$ac_cv_header_stdc" >&6
5472if test $ac_cv_header_stdc = yes; then
5473
5474cat >>confdefs.h <<\_ACEOF
5475#define STDC_HEADERS 1
5476_ACEOF
5477
5478fi
5479
5480# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5491 inttypes.h stdint.h unistd.h
5492do
5493as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5494echo "$as_me:$LINENO: checking for $ac_header" >&5
5495echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5496if eval "test \"\${$as_ac_Header+set}\" = set"; then
5497 echo $ECHO_N "(cached) $ECHO_C" >&6
5498else
5499 cat >conftest.$ac_ext <<_ACEOF
5500/* confdefs.h. */
5501_ACEOF
5502cat confdefs.h >>conftest.$ac_ext
5503cat >>conftest.$ac_ext <<_ACEOF
5504/* end confdefs.h. */
5505$ac_includes_default
5506
5507#include <$ac_header>
5508_ACEOF
5509rm -f conftest.$ac_objext
5510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5511 (eval $ac_compile) 2>conftest.er1
5512 ac_status=$?
5513 grep -v '^ *+' conftest.er1 >conftest.err
5514 rm -f conftest.er1
5515 cat conftest.err >&5
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); } &&
5518 { ac_try='test -z "$ac_c_werror_flag"
5519 || test ! -s conftest.err'
5520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5521 (eval $ac_try) 2>&5
5522 ac_status=$?
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); }; } &&
5525 { ac_try='test -s conftest.$ac_objext'
5526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5527 (eval $ac_try) 2>&5
5528 ac_status=$?
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); }; }; then
5531 eval "$as_ac_Header=yes"
5532else
5533 echo "$as_me: failed program was:" >&5
5534sed 's/^/| /' conftest.$ac_ext >&5
5535
5536eval "$as_ac_Header=no"
5537fi
5538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5539fi
5540echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5541echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5542if test `eval echo '${'$as_ac_Header'}'` = yes; then
5543 cat >>confdefs.h <<_ACEOF
5544#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5545_ACEOF
5546
5547fi
5548
5549done
5550
5551
5552
5553for ac_header in dlfcn.h
5554do
5555as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5556echo "$as_me:$LINENO: checking for $ac_header" >&5
5557echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5558if eval "test \"\${$as_ac_Header+set}\" = set"; then
5559 echo $ECHO_N "(cached) $ECHO_C" >&6
5560else
5561 cat >conftest.$ac_ext <<_ACEOF
5562/* confdefs.h. */
5563_ACEOF
5564cat confdefs.h >>conftest.$ac_ext
5565cat >>conftest.$ac_ext <<_ACEOF
5566/* end confdefs.h. */
5567$ac_includes_default
5568
5569#include <$ac_header>
5570_ACEOF
5571rm -f conftest.$ac_objext
5572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5573 (eval $ac_compile) 2>conftest.er1
5574 ac_status=$?
5575 grep -v '^ *+' conftest.er1 >conftest.err
5576 rm -f conftest.er1
5577 cat conftest.err >&5
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); } &&
5580 { ac_try='test -z "$ac_c_werror_flag"
5581 || test ! -s conftest.err'
5582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5583 (eval $ac_try) 2>&5
5584 ac_status=$?
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); }; } &&
5587 { ac_try='test -s conftest.$ac_objext'
5588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5589 (eval $ac_try) 2>&5
5590 ac_status=$?
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); }; }; then
5593 eval "$as_ac_Header=yes"
5594else
5595 echo "$as_me: failed program was:" >&5
5596sed 's/^/| /' conftest.$ac_ext >&5
5597
5598eval "$as_ac_Header=no"
5599fi
5600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5601fi
5602echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5603echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5604if test `eval echo '${'$as_ac_Header'}'` = yes; then
5605 cat >>confdefs.h <<_ACEOF
5606#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5607_ACEOF
5608
5609fi
5610
5611done
5612
5613
5614
5615# This can be used to rebuild libtool when needed
5616LIBTOOL_DEPS="$ltmain"
5617
5618# Always use our own libtool.
5619LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645test -z "$LN_S" && LN_S="ln -s"
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660if test -n "${ZSH_VERSION+set}" ; then
5661 setopt NO_GLOB_SUBST
5662fi
5663
5664echo "$as_me:$LINENO: checking for objdir" >&5
5665echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5666if test "${lt_cv_objdir+set}" = set; then
5667 echo $ECHO_N "(cached) $ECHO_C" >&6
5668else
5669 rm -f .libs 2>/dev/null
5670mkdir .libs 2>/dev/null
5671if test -d .libs; then
5672 lt_cv_objdir=.libs
5673else
5674 # MS-DOS does not allow filenames that begin with a dot.
5675 lt_cv_objdir=_libs
5676fi
5677rmdir .libs 2>/dev/null
5678fi
5679echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5680echo "${ECHO_T}$lt_cv_objdir" >&6
5681objdir=$lt_cv_objdir
5682
5683
5684
5685
5686
5687cat >>confdefs.h <<_ACEOF
5688#define LT_OBJDIR "$lt_cv_objdir/"
5689_ACEOF
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707case $host_os in
5708aix3*)
5709 # AIX sometimes has problems with the GCC collect2 program. For some
5710 # reason, if we set the COLLECT_NAMES environment variable, the problems
5711 # vanish in a puff of smoke.
5712 if test "X${COLLECT_NAMES+set}" != Xset; then
5713 COLLECT_NAMES=
5714 export COLLECT_NAMES
5715 fi
5716 ;;
5717esac
5718
5719# Sed substitution that helps us do robust quoting. It backslashifies
5720# metacharacters that are still active within double-quoted strings.
5721sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5722
5723# Same as above, but do not quote variable references.
5724double_quote_subst='s/\(["`\\]\)/\\\1/g'
5725
5726# Sed substitution to delay expansion of an escaped shell variable in a
5727# double_quote_subst'ed string.
5728delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5729
5730# Sed substitution to delay expansion of an escaped single quote.
5731delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5732
5733# Sed substitution to avoid accidental globbing in evaled expressions
5734no_glob_subst='s/\*/\\\*/g'
5735
5736# Global variables:
5737ofile=libtool
5738can_build_shared=yes
5739
5740# All known linkers require a `.a' archive for static linking (except MSVC,
5741# which needs '.lib').
5742libext=a
5743
5744with_gnu_ld="$lt_cv_prog_gnu_ld"
5745
5746old_CC="$CC"
5747old_CFLAGS="$CFLAGS"
5748
5749# Set sane defaults for various variables
5750test -z "$CC" && CC=cc
5751test -z "$LTCC" && LTCC=$CC
5752test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5753test -z "$LD" && LD=ld
5754test -z "$ac_objext" && ac_objext=o
5755
5756for cc_temp in $compiler""; do
5757 case $cc_temp in
5758 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5759 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5760 \-*) ;;
5761 *) break;;
5762 esac
5763done
5764cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5765
5766
5767# Only perform the check for file, if the check method requires it
5768test -z "$MAGIC_CMD" && MAGIC_CMD=file
5769case $deplibs_check_method in
5770file_magic*)
5771 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5772 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5773echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5774if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5775 echo $ECHO_N "(cached) $ECHO_C" >&6
5776else
5777 case $MAGIC_CMD in
5778[\\/*] | ?:[\\/]*)
5779 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5780 ;;
5781*)
5782 lt_save_MAGIC_CMD="$MAGIC_CMD"
5783 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5784 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5785 for ac_dir in $ac_dummy; do
5786 IFS="$lt_save_ifs"
5787 test -z "$ac_dir" && ac_dir=.
5788 if test -f $ac_dir/${ac_tool_prefix}file; then
5789 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5790 if test -n "$file_magic_test_file"; then
5791 case $deplibs_check_method in
5792 "file_magic "*)
5793 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5794 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5795 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5796 $EGREP "$file_magic_regex" > /dev/null; then
5797 :
5798 else
5799 cat <<_LT_EOF 1>&2
5800
5801*** Warning: the command libtool uses to detect shared libraries,
5802*** $file_magic_cmd, produces output that libtool cannot recognize.
5803*** The result is that libtool may fail to recognize shared libraries
5804*** as such. This will affect the creation of libtool libraries that
5805*** depend on shared libraries, but programs linked with such libtool
5806*** libraries will work regardless of this problem. Nevertheless, you
5807*** may want to report the problem to your system manager and/or to
5808*** bug-libtool@gnu.org
5809
5810_LT_EOF
5811 fi ;;
5812 esac
5813 fi
5814 break
5815 fi
5816 done
5817 IFS="$lt_save_ifs"
5818 MAGIC_CMD="$lt_save_MAGIC_CMD"
5819 ;;
5820esac
5821fi
5822
5823MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5824if test -n "$MAGIC_CMD"; then
5825 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5826echo "${ECHO_T}$MAGIC_CMD" >&6
5827else
5828 echo "$as_me:$LINENO: result: no" >&5
5829echo "${ECHO_T}no" >&6
5830fi
5831
5832
5833
5834
5835
5836if test -z "$lt_cv_path_MAGIC_CMD"; then
5837 if test -n "$ac_tool_prefix"; then
5838 echo "$as_me:$LINENO: checking for file" >&5
5839echo $ECHO_N "checking for file... $ECHO_C" >&6
5840if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5841 echo $ECHO_N "(cached) $ECHO_C" >&6
5842else
5843 case $MAGIC_CMD in
5844[\\/*] | ?:[\\/]*)
5845 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5846 ;;
5847*)
5848 lt_save_MAGIC_CMD="$MAGIC_CMD"
5849 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5850 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5851 for ac_dir in $ac_dummy; do
5852 IFS="$lt_save_ifs"
5853 test -z "$ac_dir" && ac_dir=.
5854 if test -f $ac_dir/file; then
5855 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5856 if test -n "$file_magic_test_file"; then
5857 case $deplibs_check_method in
5858 "file_magic "*)
5859 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5860 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5861 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5862 $EGREP "$file_magic_regex" > /dev/null; then
5863 :
5864 else
5865 cat <<_LT_EOF 1>&2
5866
5867*** Warning: the command libtool uses to detect shared libraries,
5868*** $file_magic_cmd, produces output that libtool cannot recognize.
5869*** The result is that libtool may fail to recognize shared libraries
5870*** as such. This will affect the creation of libtool libraries that
5871*** depend on shared libraries, but programs linked with such libtool
5872*** libraries will work regardless of this problem. Nevertheless, you
5873*** may want to report the problem to your system manager and/or to
5874*** bug-libtool@gnu.org
5875
5876_LT_EOF
5877 fi ;;
5878 esac
5879 fi
5880 break
5881 fi
5882 done
5883 IFS="$lt_save_ifs"
5884 MAGIC_CMD="$lt_save_MAGIC_CMD"
5885 ;;
5886esac
5887fi
5888
5889MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5890if test -n "$MAGIC_CMD"; then
5891 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5892echo "${ECHO_T}$MAGIC_CMD" >&6
5893else
5894 echo "$as_me:$LINENO: result: no" >&5
5895echo "${ECHO_T}no" >&6
5896fi
5897
5898
5899 else
5900 MAGIC_CMD=:
5901 fi
5902fi
5903
5904 fi
5905 ;;
5906esac
5907
5908# Use C for the default configuration in the libtool script
5909
5910lt_save_CC="$CC"
5911ac_ext=c
5912ac_cpp='$CPP $CPPFLAGS'
5913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5915ac_compiler_gnu=$ac_cv_c_compiler_gnu
5916
5917
5918# Source file extension for C test sources.
5919ac_ext=c
5920
5921# Object file extension for compiled C test sources.
5922objext=o
5923objext=$objext
5924
5925# Code to be used in simple compile tests
5926lt_simple_compile_test_code="int some_variable = 0;"
5927
5928# Code to be used in simple link tests
5929lt_simple_link_test_code='int main(){return(0);}'
5930
5931
5932
5933
5934
5935
5936
5937# If no C compiler was specified, use CC.
5938LTCC=${LTCC-"$CC"}
5939
5940# If no C compiler flags were specified, use CFLAGS.
5941LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5942
5943# Allow CC to be a program name with arguments.
5944compiler=$CC
5945
5946# Save the default compiler, since it gets overwritten when the other
5947# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5948compiler_DEFAULT=$CC
5949
5950# save warnings/boilerplate of simple test code
5951ac_outfile=conftest.$ac_objext
5952echo "$lt_simple_compile_test_code" >conftest.$ac_ext
5953eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5954_lt_compiler_boilerplate=`cat conftest.err`
5955$RM conftest*
5956
5957ac_outfile=conftest.$ac_objext
5958echo "$lt_simple_link_test_code" >conftest.$ac_ext
5959eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5960_lt_linker_boilerplate=`cat conftest.err`
5961$RM conftest*
5962
5963
5964## CAVEAT EMPTOR:
5965## There is no encapsulation within the following macros, do not change
5966## the running order or otherwise move them around unless you know exactly
5967## what you are doing...
5968if test -n "$compiler"; then
5969
5970lt_prog_compiler_no_builtin_flag=
5971
5972if test "$GCC" = yes; then
5973 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5974
5975 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5976echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5977if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5978 echo $ECHO_N "(cached) $ECHO_C" >&6
5979else
5980 lt_cv_prog_compiler_rtti_exceptions=no
5981 ac_outfile=conftest.$ac_objext
5982 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5983 lt_compiler_flag="-fno-rtti -fno-exceptions"
5984 # Insert the option either (1) after the last *FLAGS variable, or
5985 # (2) before a word containing "conftest.", or (3) at the end.
5986 # Note that $ac_compile itself does not contain backslashes and begins
5987 # with a dollar sign (not a hyphen), so the echo should work correctly.
5988 # The option is referenced via a variable to avoid confusing sed.
5989 lt_compile=`echo "$ac_compile" | $SED \
5990 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
5991 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5992 -e 's:$: $lt_compiler_flag:'`
deb984e6 5993 (eval echo "\"\$as_me:5993: $lt_compile\"" >&5)
1cf3d07d
SE
5994 (eval "$lt_compile" 2>conftest.err)
5995 ac_status=$?
5996 cat conftest.err >&5
deb984e6 5997 echo "$as_me:5997: \$? = $ac_status" >&5
1cf3d07d
SE
5998 if (exit $ac_status) && test -s "$ac_outfile"; then
5999 # The compiler can only warn and ignore the option if not recognized
6000 # So say no if there are warnings other than the usual output.
6001 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6002 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6003 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6004 lt_cv_prog_compiler_rtti_exceptions=yes
6005 fi
6006 fi
6007 $RM conftest*
6008
6009fi
6010echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6011echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6012
6013if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6014 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6015else
6016 :
6017fi
6018
6019fi
6020
6021
6022
6023
6024
6025
6026 lt_prog_compiler_wl=
6027lt_prog_compiler_pic=
6028lt_prog_compiler_static=
6029
6030echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6031echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6032
6033 if test "$GCC" = yes; then
6034 lt_prog_compiler_wl='-Wl,'
6035 lt_prog_compiler_static='-static'
6036
6037 case $host_os in
6038 aix*)
6039 # All AIX code is PIC.
6040 if test "$host_cpu" = ia64; then
6041 # AIX 5 now supports IA64 processor
6042 lt_prog_compiler_static='-Bstatic'
6043 fi
6044 ;;
6045
6046 amigaos*)
6047 if test "$host_cpu" = m68k; then
6048 # FIXME: we need at least 68020 code to build shared libraries, but
6049 # adding the `-m68020' flag to GCC prevents building anything better,
6050 # like `-m68040'.
6051 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6052 fi
6053 ;;
6054
6055 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6056 # PIC is the default for these OSes.
6057 ;;
6058
6059 mingw* | cygwin* | pw32* | os2*)
6060 # This hack is so that the source file can tell whether it is being
6061 # built for inclusion in a dll (and should export symbols for example).
6062 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6063 # (--disable-auto-import) libraries
6064 lt_prog_compiler_pic='-DDLL_EXPORT'
6065 ;;
6066
6067 darwin* | rhapsody*)
6068 # PIC is the default on this platform
6069 # Common symbols not allowed in MH_DYLIB files
6070 lt_prog_compiler_pic='-fno-common'
6071 ;;
6072
6073 hpux*)
6074 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6075 # not for PA HP-UX.
6076 case $host_cpu in
6077 hppa*64*|ia64*)
6078 # +Z the default
6079 ;;
6080 *)
6081 lt_prog_compiler_pic='-fPIC'
6082 ;;
6083 esac
6084 ;;
6085
6086 interix[3-9]*)
6087 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6088 # Instead, we relocate shared libraries at runtime.
6089 ;;
6090
6091 msdosdjgpp*)
6092 # Just because we use GCC doesn't mean we suddenly get shared libraries
6093 # on systems that don't support them.
6094 lt_prog_compiler_can_build_shared=no
6095 enable_shared=no
6096 ;;
6097
6098 *nto* | *qnx*)
6099 # QNX uses GNU C++, but need to define -shared option too, otherwise
6100 # it will coredump.
6101 lt_prog_compiler_pic='-fPIC -shared'
6102 ;;
6103
6104 sysv4*MP*)
6105 if test -d /usr/nec; then
6106 lt_prog_compiler_pic=-Kconform_pic
6107 fi
6108 ;;
6109
6110 *)
6111 lt_prog_compiler_pic='-fPIC'
6112 ;;
6113 esac
6114 else
6115 # PORTME Check for flag to pass linker flags through the system compiler.
6116 case $host_os in
6117 aix*)
6118 lt_prog_compiler_wl='-Wl,'
6119 if test "$host_cpu" = ia64; then
6120 # AIX 5 now supports IA64 processor
6121 lt_prog_compiler_static='-Bstatic'
6122 else
6123 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6124 fi
6125 ;;
6126 darwin*)
6127 # PIC is the default on this platform
6128 # Common symbols not allowed in MH_DYLIB files
6129 case $cc_basename in
6130 xlc*)
6131 lt_prog_compiler_pic='-qnocommon'
6132 lt_prog_compiler_wl='-Wl,'
6133 ;;
6134 esac
6135 ;;
6136
6137 mingw* | cygwin* | pw32* | os2*)
6138 # This hack is so that the source file can tell whether it is being
6139 # built for inclusion in a dll (and should export symbols for example).
6140 lt_prog_compiler_pic='-DDLL_EXPORT'
6141 ;;
6142
6143 hpux9* | hpux10* | hpux11*)
6144 lt_prog_compiler_wl='-Wl,'
6145 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6146 # not for PA HP-UX.
6147 case $host_cpu in
6148 hppa*64*|ia64*)
6149 # +Z the default
6150 ;;
6151 *)
6152 lt_prog_compiler_pic='+Z'
6153 ;;
6154 esac
6155 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6156 lt_prog_compiler_static='${wl}-a ${wl}archive'
6157 ;;
6158
6159 irix5* | irix6* | nonstopux*)
6160 lt_prog_compiler_wl='-Wl,'
6161 # PIC (with -KPIC) is the default.
6162 lt_prog_compiler_static='-non_shared'
6163 ;;
6164
6165 linux* | k*bsd*-gnu)
6166 case $cc_basename in
6167 icc* | ecc*)
6168 lt_prog_compiler_wl='-Wl,'
6169 lt_prog_compiler_pic='-KPIC'
6170 lt_prog_compiler_static='-static'
6171 ;;
6172 pgcc* | pgf77* | pgf90* | pgf95*)
6173 # Portland Group compilers (*not* the Pentium gcc compiler,
6174 # which looks to be a dead project)
6175 lt_prog_compiler_wl='-Wl,'
6176 lt_prog_compiler_pic='-fpic'
6177 lt_prog_compiler_static='-Bstatic'
6178 ;;
6179 ccc*)
6180 lt_prog_compiler_wl='-Wl,'
6181 # All Alpha code is PIC.
6182 lt_prog_compiler_static='-non_shared'
6183 ;;
6184 *)
6185 case `$CC -V 2>&1 | sed 5q` in
6186 *Sun\ C*)
6187 # Sun C 5.9
6188 lt_prog_compiler_pic='-KPIC'
6189 lt_prog_compiler_static='-Bstatic'
6190 lt_prog_compiler_wl='-Wl,'
6191 ;;
6192 *Sun\ F*)
6193 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6194 lt_prog_compiler_pic='-KPIC'
6195 lt_prog_compiler_static='-Bstatic'
6196 lt_prog_compiler_wl=''
6197 ;;
6198 esac
6199 ;;
6200 esac
6201 ;;
6202
6203 newsos6)
6204 lt_prog_compiler_pic='-KPIC'
6205 lt_prog_compiler_static='-Bstatic'
6206 ;;
6207
6208 *nto* | *qnx*)
6209 # QNX uses GNU C++, but need to define -shared option too, otherwise
6210 # it will coredump.
6211 lt_prog_compiler_pic='-fPIC -shared'
6212 ;;
6213
6214 osf3* | osf4* | osf5*)
6215 lt_prog_compiler_wl='-Wl,'
6216 # All OSF/1 code is PIC.
6217 lt_prog_compiler_static='-non_shared'
6218 ;;
6219
6220 rdos*)
6221 lt_prog_compiler_static='-non_shared'
6222 ;;
6223
6224 solaris*)
6225 lt_prog_compiler_pic='-KPIC'
6226 lt_prog_compiler_static='-Bstatic'
6227 case $cc_basename in
6228 f77* | f90* | f95*)
6229 lt_prog_compiler_wl='-Qoption ld ';;
6230 *)
6231 lt_prog_compiler_wl='-Wl,';;
6232 esac
6233 ;;
6234
6235 sunos4*)
6236 lt_prog_compiler_wl='-Qoption ld '
6237 lt_prog_compiler_pic='-PIC'
6238 lt_prog_compiler_static='-Bstatic'
6239 ;;
6240
6241 sysv4 | sysv4.2uw2* | sysv4.3*)
6242 lt_prog_compiler_wl='-Wl,'
6243 lt_prog_compiler_pic='-KPIC'
6244 lt_prog_compiler_static='-Bstatic'
6245 ;;
6246
6247 sysv4*MP*)
6248 if test -d /usr/nec ;then
6249 lt_prog_compiler_pic='-Kconform_pic'
6250 lt_prog_compiler_static='-Bstatic'
6251 fi
6252 ;;
6253
6254 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6255 lt_prog_compiler_wl='-Wl,'
6256 lt_prog_compiler_pic='-KPIC'
6257 lt_prog_compiler_static='-Bstatic'
6258 ;;
6259
6260 unicos*)
6261 lt_prog_compiler_wl='-Wl,'
6262 lt_prog_compiler_can_build_shared=no
6263 ;;
6264
6265 uts4*)
6266 lt_prog_compiler_pic='-pic'
6267 lt_prog_compiler_static='-Bstatic'
6268 ;;
6269
6270 *)
6271 lt_prog_compiler_can_build_shared=no
6272 ;;
6273 esac
6274 fi
6275
6276case $host_os in
6277 # For platforms which do not support PIC, -DPIC is meaningless:
6278 *djgpp*)
6279 lt_prog_compiler_pic=
6280 ;;
6281 *)
6282 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6283 ;;
6284esac
6285echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6286echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6287
6288
6289
6290
6291
6292
6293#
6294# Check to make sure the PIC flag actually works.
6295#
6296if test -n "$lt_prog_compiler_pic"; then
6297 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6298echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6299if test "${lt_prog_compiler_pic_works+set}" = set; then
6300 echo $ECHO_N "(cached) $ECHO_C" >&6
6301else
6302 lt_prog_compiler_pic_works=no
6303 ac_outfile=conftest.$ac_objext
6304 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6305 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6306 # Insert the option either (1) after the last *FLAGS variable, or
6307 # (2) before a word containing "conftest.", or (3) at the end.
6308 # Note that $ac_compile itself does not contain backslashes and begins
6309 # with a dollar sign (not a hyphen), so the echo should work correctly.
6310 # The option is referenced via a variable to avoid confusing sed.
6311 lt_compile=`echo "$ac_compile" | $SED \
6312 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6313 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6314 -e 's:$: $lt_compiler_flag:'`
deb984e6 6315 (eval echo "\"\$as_me:6315: $lt_compile\"" >&5)
1cf3d07d
SE
6316 (eval "$lt_compile" 2>conftest.err)
6317 ac_status=$?
6318 cat conftest.err >&5
deb984e6 6319 echo "$as_me:6319: \$? = $ac_status" >&5
1cf3d07d
SE
6320 if (exit $ac_status) && test -s "$ac_outfile"; then
6321 # The compiler can only warn and ignore the option if not recognized
6322 # So say no if there are warnings other than the usual output.
6323 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6324 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6325 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6326 lt_prog_compiler_pic_works=yes
6327 fi
6328 fi
6329 $RM conftest*
6330
6331fi
6332echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6333echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6334
6335if test x"$lt_prog_compiler_pic_works" = xyes; then
6336 case $lt_prog_compiler_pic in
6337 "" | " "*) ;;
6338 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6339 esac
6340else
6341 lt_prog_compiler_pic=
6342 lt_prog_compiler_can_build_shared=no
6343fi
6344
6345fi
6346
6347
6348
6349
6350
6351
6352#
6353# Check to make sure the static flag actually works.
6354#
6355wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6356echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6357echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6358if test "${lt_prog_compiler_static_works+set}" = set; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
6360else
6361 lt_prog_compiler_static_works=no
6362 save_LDFLAGS="$LDFLAGS"
6363 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6364 echo "$lt_simple_link_test_code" > conftest.$ac_ext
6365 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6366 # The linker can only warn and ignore the option if not recognized
6367 # So say no if there are warnings
6368 if test -s conftest.err; then
6369 # Append any errors to the config.log.
6370 cat conftest.err 1>&5
6371 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6372 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6373 if diff conftest.exp conftest.er2 >/dev/null; then
6374 lt_prog_compiler_static_works=yes
6375 fi
6376 else
6377 lt_prog_compiler_static_works=yes
6378 fi
6379 fi
6380 $RM conftest*
6381 LDFLAGS="$save_LDFLAGS"
6382
6383fi
6384echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6385echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6386
6387if test x"$lt_prog_compiler_static_works" = xyes; then
6388 :
6389else
6390 lt_prog_compiler_static=
6391fi
6392
6393
6394
6395
6396
6397
6398
6399 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6400echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6401if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6402 echo $ECHO_N "(cached) $ECHO_C" >&6
6403else
6404 lt_cv_prog_compiler_c_o=no
6405 $RM -r conftest 2>/dev/null
6406 mkdir conftest
6407 cd conftest
6408 mkdir out
6409 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6410
6411 lt_compiler_flag="-o out/conftest2.$ac_objext"
6412 # Insert the option either (1) after the last *FLAGS variable, or
6413 # (2) before a word containing "conftest.", or (3) at the end.
6414 # Note that $ac_compile itself does not contain backslashes and begins
6415 # with a dollar sign (not a hyphen), so the echo should work correctly.
6416 lt_compile=`echo "$ac_compile" | $SED \
6417 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6418 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6419 -e 's:$: $lt_compiler_flag:'`
deb984e6 6420 (eval echo "\"\$as_me:6420: $lt_compile\"" >&5)
1cf3d07d
SE
6421 (eval "$lt_compile" 2>out/conftest.err)
6422 ac_status=$?
6423 cat out/conftest.err >&5
deb984e6 6424 echo "$as_me:6424: \$? = $ac_status" >&5
1cf3d07d
SE
6425 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6426 then
6427 # The compiler can only warn and ignore the option if not recognized
6428 # So say no if there are warnings
6429 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6430 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6431 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6432 lt_cv_prog_compiler_c_o=yes
6433 fi
6434 fi
6435 chmod u+w . 2>&5
6436 $RM conftest*
6437 # SGI C++ compiler will create directory out/ii_files/ for
6438 # template instantiation
6439 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6440 $RM out/* && rmdir out
6441 cd ..
6442 $RM -r conftest
6443 $RM conftest*
6444
6445fi
6446echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6447echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6448
6449
6450
6451
6452
6453
6454 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6455echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6456if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6457 echo $ECHO_N "(cached) $ECHO_C" >&6
6458else
6459 lt_cv_prog_compiler_c_o=no
6460 $RM -r conftest 2>/dev/null
6461 mkdir conftest
6462 cd conftest
6463 mkdir out
6464 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6465
6466 lt_compiler_flag="-o out/conftest2.$ac_objext"
6467 # Insert the option either (1) after the last *FLAGS variable, or
6468 # (2) before a word containing "conftest.", or (3) at the end.
6469 # Note that $ac_compile itself does not contain backslashes and begins
6470 # with a dollar sign (not a hyphen), so the echo should work correctly.
6471 lt_compile=`echo "$ac_compile" | $SED \
6472 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6473 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6474 -e 's:$: $lt_compiler_flag:'`
deb984e6 6475 (eval echo "\"\$as_me:6475: $lt_compile\"" >&5)
1cf3d07d
SE
6476 (eval "$lt_compile" 2>out/conftest.err)
6477 ac_status=$?
6478 cat out/conftest.err >&5
deb984e6 6479 echo "$as_me:6479: \$? = $ac_status" >&5
1cf3d07d
SE
6480 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6481 then
6482 # The compiler can only warn and ignore the option if not recognized
6483 # So say no if there are warnings
6484 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6485 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6486 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6487 lt_cv_prog_compiler_c_o=yes
6488 fi
6489 fi
6490 chmod u+w . 2>&5
6491 $RM conftest*
6492 # SGI C++ compiler will create directory out/ii_files/ for
6493 # template instantiation
6494 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
6495 $RM out/* && rmdir out
6496 cd ..
6497 $RM -r conftest
6498 $RM conftest*
6499
6500fi
6501echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6502echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6503
6504
6505
6506
6507hard_links="nottested"
6508if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6509 # do not overwrite the value of need_locks provided by the user
6510 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6511echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6512 hard_links=yes
6513 $RM conftest*
6514 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6515 touch conftest.a
6516 ln conftest.a conftest.b 2>&5 || hard_links=no
6517 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6518 echo "$as_me:$LINENO: result: $hard_links" >&5
6519echo "${ECHO_T}$hard_links" >&6
6520 if test "$hard_links" = no; then
6521 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6522echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6523 need_locks=warn
6524 fi
6525else
6526 need_locks=no
6527fi
6528
6529
6530
6531
6532
6533
6534 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6535echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6536
6537 runpath_var=
6538 allow_undefined_flag=
6539 always_export_symbols=no
6540 archive_cmds=
6541 archive_expsym_cmds=
6542 compiler_needs_object=no
6543 enable_shared_with_static_runtimes=no
6544 export_dynamic_flag_spec=
6545 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6546 hardcode_automatic=no
6547 hardcode_direct=no
6548 hardcode_direct_absolute=no
6549 hardcode_libdir_flag_spec=
6550 hardcode_libdir_flag_spec_ld=
6551 hardcode_libdir_separator=
6552 hardcode_minus_L=no
6553 hardcode_shlibpath_var=unsupported
6554 inherit_rpath=no
6555 link_all_deplibs=unknown
6556 module_cmds=
6557 module_expsym_cmds=
6558 old_archive_from_new_cmds=
6559 old_archive_from_expsyms_cmds=
6560 thread_safe_flag_spec=
6561 whole_archive_flag_spec=
6562 # include_expsyms should be a list of space-separated symbols to be *always*
6563 # included in the symbol list
6564 include_expsyms=
6565 # exclude_expsyms can be an extended regexp of symbols to exclude
6566 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6567 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6568 # as well as any symbol that contains `d'.
6569 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6570 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6571 # platforms (ab)use it in PIC code, but their linkers get confused if
6572 # the symbol is explicitly referenced. Since portable code cannot
6573 # rely on this symbol name, it's probably fine to never include it in
6574 # preloaded symbol tables.
6575 extract_expsyms_cmds=
6576
6577 case $host_os in
6578 cygwin* | mingw* | pw32*)
6579 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6580 # When not using gcc, we currently assume that we are using
6581 # Microsoft Visual C++.
6582 if test "$GCC" != yes; then
6583 with_gnu_ld=no
6584 fi
6585 ;;
6586 interix*)
6587 # we just hope/assume this is gcc and not c89 (= MSVC++)
6588 with_gnu_ld=yes
6589 ;;
6590 openbsd*)
6591 with_gnu_ld=no
6592 ;;
6593 esac
6594
6595 ld_shlibs=yes
6596 if test "$with_gnu_ld" = yes; then
6597 # If archive_cmds runs LD, not CC, wlarc should be empty
6598 wlarc='${wl}'
6599
6600 # Set some defaults for GNU ld with shared library support. These
6601 # are reset later if shared libraries are not supported. Putting them
6602 # here allows them to be overridden if necessary.
6603 runpath_var=LD_RUN_PATH
6604 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6605 export_dynamic_flag_spec='${wl}--export-dynamic'
6606 # ancient GNU ld didn't support --whole-archive et. al.
6607 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
6608 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6609 else
6610 whole_archive_flag_spec=
6611 fi
6612 supports_anon_versioning=no
6613 case `$LD -v 2>&1` in
6614 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6615 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6616 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6617 *\ 2.11.*) ;; # other 2.11 versions
6618 *) supports_anon_versioning=yes ;;
6619 esac
6620
6621 # See if GNU ld supports shared libraries.
6622 case $host_os in
95d4f544 6623 aix[3-9]*)
1cf3d07d
SE
6624 # On AIX/PPC, the GNU linker is very broken
6625 if test "$host_cpu" != ia64; then
6626 ld_shlibs=no
6627 cat <<_LT_EOF 1>&2
6628
6629*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6630*** to be unable to reliably create shared libraries on AIX.
6631*** Therefore, libtool is disabling shared libraries support. If you
6632*** really care for shared libraries, you may want to modify your PATH
6633*** so that a non-GNU linker is found, and then restart.
6634
6635_LT_EOF
6636 fi
6637 ;;
6638
6639 amigaos*)
6640 if test "$host_cpu" = m68k; then
6641 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)'
6642 hardcode_libdir_flag_spec='-L$libdir'
6643 hardcode_minus_L=yes
6644 fi
6645
6646 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6647 # that the semantics of dynamic libraries on AmigaOS, at least up
6648 # to version 4, is to share data among multiple programs linked
6649 # with the same dynamic library. Since this doesn't match the
6650 # behavior of shared libraries on other platforms, we can't use
6651 # them.
6652 ld_shlibs=no
6653 ;;
6654
6655 beos*)
6656 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6657 allow_undefined_flag=unsupported
6658 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6659 # support --undefined. This deserves some investigation. FIXME
6660 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6661 else
6662 ld_shlibs=no
6663 fi
6664 ;;
6665
6666 cygwin* | mingw* | pw32*)
6667 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6668 # as there is no search path for DLLs.
6669 hardcode_libdir_flag_spec='-L$libdir'
6670 allow_undefined_flag=unsupported
6671 always_export_symbols=no
6672 enable_shared_with_static_runtimes=yes
6673 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
6674
6675 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6676 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6677 # If the export-symbols file already is a .def file (1st line
6678 # is EXPORTS), use it as is; otherwise, prepend...
6679 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6680 cp $export_symbols $output_objdir/$soname.def;
6681 else
6682 echo EXPORTS > $output_objdir/$soname.def;
6683 cat $export_symbols >> $output_objdir/$soname.def;
6684 fi~
6685 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6686 else
6687 ld_shlibs=no
6688 fi
6689 ;;
6690
6691 interix[3-9]*)
6692 hardcode_direct=no
6693 hardcode_shlibpath_var=no
6694 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6695 export_dynamic_flag_spec='${wl}-E'
6696 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6697 # Instead, shared libraries are loaded at an image base (0x10000000 by
6698 # default) and relocated if they conflict, which is a slow very memory
6699 # consuming and fragmenting process. To avoid this, we pick a random,
6700 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6701 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6702 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6703 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'
6704 ;;
6705
6706 gnu* | linux* | tpf* | k*bsd*-gnu)
6707 tmp_diet=no
6708 if test "$host_os" = linux-dietlibc; then
6709 case $cc_basename in
6710 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
6711 esac
6712 fi
6713 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
6714 && test "$tmp_diet" = no
6715 then
6716 tmp_addflag=
6717 case $cc_basename,$host_cpu in
6718 pgcc*) # Portland Group C compiler
6719 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'
6720 tmp_addflag=' $pic_flag'
6721 ;;
6722 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6723 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'
6724 tmp_addflag=' $pic_flag -Mnomain' ;;
6725 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6726 tmp_addflag=' -i_dynamic' ;;
6727 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6728 tmp_addflag=' -i_dynamic -nofor_main' ;;
6729 ifc* | ifort*) # Intel Fortran compiler
6730 tmp_addflag=' -nofor_main' ;;
6731 esac
6732 case `$CC -V 2>&1 | sed 5q` in
6733 *Sun\ C*) # Sun C 5.9
6734 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'
6735 compiler_needs_object=yes
6736 tmp_sharedflag='-G' ;;
6737 *Sun\ F*) # Sun Fortran 8.3
6738 tmp_sharedflag='-G' ;;
6739 *)
6740 tmp_sharedflag='-shared' ;;
6741 esac
6742 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6743
6744 if test "x$supports_anon_versioning" = xyes; then
6745 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
6746 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6747 echo "local: *; };" >> $output_objdir/$libname.ver~
6748 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6749 fi
6750 else
6751 ld_shlibs=no
6752 fi
6753 ;;
6754
6755 netbsd*)
6756 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6757 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6758 wlarc=
6759 else
6760 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6761 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6762 fi
6763 ;;
6764
6765 solaris*)
6766 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
6767 ld_shlibs=no
6768 cat <<_LT_EOF 1>&2
6769
6770*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6771*** create shared libraries on Solaris systems. Therefore, libtool
6772*** is disabling shared libraries support. We urge you to upgrade GNU
6773*** binutils to release 2.9.1 or newer. Another option is to modify
6774*** your PATH or compiler configuration so that the native linker is
6775*** used, and then restart.
6776
6777_LT_EOF
6778 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6779 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6780 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6781 else
6782 ld_shlibs=no
6783 fi
6784 ;;
6785
6786 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6787 case `$LD -v 2>&1` in
6788 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6789 ld_shlibs=no
6790 cat <<_LT_EOF 1>&2
6791
6792*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6793*** reliably create shared libraries on SCO systems. Therefore, libtool
6794*** is disabling shared libraries support. We urge you to upgrade GNU
6795*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6796*** your PATH or compiler configuration so that the native linker is
6797*** used, and then restart.
6798
6799_LT_EOF
6800 ;;
6801 *)
6802 # For security reasons, it is highly recommended that you always
6803 # use absolute paths for naming shared libraries, and exclude the
6804 # DT_RUNPATH tag from executables and libraries. But doing so
6805 # requires that you compile everything twice, which is a pain.
6806 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6807 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6808 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6809 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6810 else
6811 ld_shlibs=no
6812 fi
6813 ;;
6814 esac
6815 ;;
6816
6817 sunos4*)
6818 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6819 wlarc=
6820 hardcode_direct=yes
6821 hardcode_shlibpath_var=no
6822 ;;
6823
6824 *)
6825 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
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
6830 fi
6831 ;;
6832 esac
6833
6834 if test "$ld_shlibs" = no; then
6835 runpath_var=
6836 hardcode_libdir_flag_spec=
6837 export_dynamic_flag_spec=
6838 whole_archive_flag_spec=
6839 fi
6840 else
6841 # PORTME fill in a description of your system's linker (not GNU ld)
6842 case $host_os in
6843 aix3*)
6844 allow_undefined_flag=unsupported
6845 always_export_symbols=yes
6846 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'
6847 # Note: this linker hardcodes the directories in LIBPATH if there
6848 # are no directories specified by -L.
6849 hardcode_minus_L=yes
6850 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6851 # Neither direct hardcoding nor static linking is supported with a
6852 # broken collect2.
6853 hardcode_direct=unsupported
6854 fi
6855 ;;
6856
95d4f544 6857 aix[4-9]*)
1cf3d07d
SE
6858 if test "$host_cpu" = ia64; then
6859 # On IA64, the linker does run time linking by default, so we don't
6860 # have to do anything special.
6861 aix_use_runtimelinking=no
6862 exp_sym_flag='-Bexport'
6863 no_entry_flag=""
6864 else
6865 # If we're using GNU nm, then we don't want the "-C" option.
6866 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6867 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
6868 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'
6869 else
6870 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'
6871 fi
6872 aix_use_runtimelinking=no
6873
6874 # Test if we are trying to use run time linking or normal
6875 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6876 # need to do runtime linking.
95d4f544 6877 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1cf3d07d
SE
6878 for ld_flag in $LDFLAGS; do
6879 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6880 aix_use_runtimelinking=yes
6881 break
6882 fi
6883 done
6884 ;;
6885 esac
6886
6887 exp_sym_flag='-bexport'
6888 no_entry_flag='-bnoentry'
6889 fi
6890
6891 # When large executables or shared objects are built, AIX ld can
6892 # have problems creating the table of contents. If linking a library
6893 # or program results in "error TOC overflow" add -mminimal-toc to
6894 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6895 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6896
6897 archive_cmds=''
6898 hardcode_direct=yes
6899 hardcode_direct_absolute=yes
6900 hardcode_libdir_separator=':'
6901 link_all_deplibs=yes
6902 file_list_spec='${wl}-f,'
6903
6904 if test "$GCC" = yes; then
6905 case $host_os in aix4.[012]|aix4.[012].*)
6906 # We only want to do this on AIX 4.2 and lower, the check
6907 # below for broken collect2 doesn't work under 4.3+
6908 collect2name=`${CC} -print-prog-name=collect2`
6909 if test -f "$collect2name" &&
6910 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6911 then
6912 # We have reworked collect2
6913 :
6914 else
6915 # We have old collect2
6916 hardcode_direct=unsupported
6917 # It fails to find uninstalled libraries when the uninstalled
6918 # path is not listed in the libpath. Setting hardcode_minus_L
6919 # to unsupported forces relinking
6920 hardcode_minus_L=yes
6921 hardcode_libdir_flag_spec='-L$libdir'
6922 hardcode_libdir_separator=
6923 fi
6924 ;;
6925 esac
6926 shared_flag='-shared'
6927 if test "$aix_use_runtimelinking" = yes; then
6928 shared_flag="$shared_flag "'${wl}-G'
6929 fi
6930 else
6931 # not using gcc
6932 if test "$host_cpu" = ia64; then
6933 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6934 # chokes on -Wl,-G. The following line is correct:
6935 shared_flag='-G'
6936 else
6937 if test "$aix_use_runtimelinking" = yes; then
6938 shared_flag='${wl}-G'
6939 else
6940 shared_flag='${wl}-bM:SRE'
6941 fi
6942 fi
6943 fi
6944
6945 # It seems that -bexpall does not export symbols beginning with
6946 # underscore (_), so it is better to generate a list of symbols to export.
6947 always_export_symbols=yes
6948 if test "$aix_use_runtimelinking" = yes; then
6949 # Warning - without using the other runtime loading flags (-brtl),
6950 # -berok will link without error, but may produce a broken library.
6951 allow_undefined_flag='-berok'
6952 # Determine the default libpath from the value encoded in an
6953 # empty executable.
6954 cat >conftest.$ac_ext <<_ACEOF
6955/* confdefs.h. */
6956_ACEOF
6957cat confdefs.h >>conftest.$ac_ext
6958cat >>conftest.$ac_ext <<_ACEOF
6959/* end confdefs.h. */
6960
6961int
6962main ()
6963{
6964
6965 ;
6966 return 0;
6967}
6968_ACEOF
6969rm -f conftest.$ac_objext conftest$ac_exeext
6970if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6971 (eval $ac_link) 2>conftest.er1
6972 ac_status=$?
6973 grep -v '^ *+' conftest.er1 >conftest.err
6974 rm -f conftest.er1
6975 cat conftest.err >&5
6976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6977 (exit $ac_status); } &&
6978 { ac_try='test -z "$ac_c_werror_flag"
6979 || test ! -s conftest.err'
6980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6981 (eval $ac_try) 2>&5
6982 ac_status=$?
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); }; } &&
6985 { ac_try='test -s conftest$ac_exeext'
6986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6987 (eval $ac_try) 2>&5
6988 ac_status=$?
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); }; }; then
6991
6992lt_aix_libpath_sed='
6993 /Import File Strings/,/^$/ {
6994 /^0/ {
6995 s/^0 *\(.*\)$/\1/
6996 p
6997 }
6998 }'
6999aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7000# Check for a 64-bit object if we didn't find anything.
7001if test -z "$aix_libpath"; then
7002 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7003fi
7004else
7005 echo "$as_me: failed program was:" >&5
7006sed 's/^/| /' conftest.$ac_ext >&5
7007
7008fi
7009rm -f conftest.err conftest.$ac_objext \
7010 conftest$ac_exeext conftest.$ac_ext
7011if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7012
7013 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7014 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"
7015 else
7016 if test "$host_cpu" = ia64; then
7017 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7018 allow_undefined_flag="-z nodefs"
7019 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"
7020 else
7021 # Determine the default libpath from the value encoded in an
7022 # empty executable.
7023 cat >conftest.$ac_ext <<_ACEOF
7024/* confdefs.h. */
7025_ACEOF
7026cat confdefs.h >>conftest.$ac_ext
7027cat >>conftest.$ac_ext <<_ACEOF
7028/* end confdefs.h. */
7029
7030int
7031main ()
7032{
7033
7034 ;
7035 return 0;
7036}
7037_ACEOF
7038rm -f conftest.$ac_objext conftest$ac_exeext
7039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7040 (eval $ac_link) 2>conftest.er1
7041 ac_status=$?
7042 grep -v '^ *+' conftest.er1 >conftest.err
7043 rm -f conftest.er1
7044 cat conftest.err >&5
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); } &&
7047 { ac_try='test -z "$ac_c_werror_flag"
7048 || test ! -s conftest.err'
7049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7050 (eval $ac_try) 2>&5
7051 ac_status=$?
7052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); }; } &&
7054 { ac_try='test -s conftest$ac_exeext'
7055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7056 (eval $ac_try) 2>&5
7057 ac_status=$?
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); }; }; then
7060
7061lt_aix_libpath_sed='
7062 /Import File Strings/,/^$/ {
7063 /^0/ {
7064 s/^0 *\(.*\)$/\1/
7065 p
7066 }
7067 }'
7068aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7069# Check for a 64-bit object if we didn't find anything.
7070if test -z "$aix_libpath"; then
7071 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7072fi
7073else
7074 echo "$as_me: failed program was:" >&5
7075sed 's/^/| /' conftest.$ac_ext >&5
7076
7077fi
7078rm -f conftest.err conftest.$ac_objext \
7079 conftest$ac_exeext conftest.$ac_ext
7080if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7081
7082 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7083 # Warning - without using the other run time loading flags,
7084 # -berok will link without error, but may produce a broken library.
7085 no_undefined_flag=' ${wl}-bernotok'
7086 allow_undefined_flag=' ${wl}-berok'
7087 # Exported symbols can be pulled into shared objects from archives
7088 whole_archive_flag_spec='$convenience'
7089 archive_cmds_need_lc=yes
7090 # This is similar to how AIX traditionally builds its shared libraries.
7091 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'
7092 fi
7093 fi
7094 ;;
7095
7096 amigaos*)
7097 if test "$host_cpu" = m68k; then
7098 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)'
7099 hardcode_libdir_flag_spec='-L$libdir'
7100 hardcode_minus_L=yes
7101 fi
7102 # see comment about different semantics on the GNU ld section
7103 ld_shlibs=no
7104 ;;
7105
7106 bsdi[45]*)
7107 export_dynamic_flag_spec=-rdynamic
7108 ;;
7109
7110 cygwin* | mingw* | pw32*)
7111 # When not using gcc, we currently assume that we are using
7112 # Microsoft Visual C++.
7113 # hardcode_libdir_flag_spec is actually meaningless, as there is
7114 # no search path for DLLs.
7115 hardcode_libdir_flag_spec=' '
7116 allow_undefined_flag=unsupported
7117 # Tell ltmain to make .lib files, not .a files.
7118 libext=lib
7119 # Tell ltmain to make .dll files, not .so files.
7120 shrext_cmds=".dll"
7121 # FIXME: Setting linknames here is a bad hack.
7122 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
7123 # The linker will automatically build a .lib file if we build a DLL.
7124 old_archive_from_new_cmds='true'
7125 # FIXME: Should let the user specify the lib program.
7126 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7127 fix_srcfile_path='`cygpath -w "$srcfile"`'
7128 enable_shared_with_static_runtimes=yes
7129 ;;
7130
7131 darwin* | rhapsody*)
7132 case $host_os in
7133 rhapsody* | darwin1.[012])
7134 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7135 ;;
7136 *) # Darwin 1.3 on
7137 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
7138 10.[012])
7139 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7140 ;;
7141 10.*)
7142 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7143 ;;
7144 esac
7145 ;;
7146 esac
7147 archive_cmds_need_lc=no
7148 hardcode_direct=no
7149 hardcode_automatic=yes
7150 hardcode_shlibpath_var=unsupported
7151 whole_archive_flag_spec=''
7152 link_all_deplibs=yes
7153 if test "$GCC" = yes ; then
7154 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7155 echo $ECHO_N "(cached) $ECHO_C" >&6
7156else
7157 lt_cv_apple_cc_single_mod=no
7158 if test -z "${LT_MULTI_MODULE}"; then
7159 # By default we will add the -single_module flag. You can override
7160 # by either setting the environment variable LT_MULTI_MODULE
7161 # non-empty at configure time, or by adding -multi-module to the
7162 # link flags.
7163 echo "int foo(void){return 1;}" > conftest.c
7164 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7165 -dynamiclib ${wl}-single_module conftest.c
7166 if test -f libconftest.dylib; then
7167 lt_cv_apple_cc_single_mod=yes
7168 rm libconftest.dylib
7169 fi
7170 rm conftest.$ac_ext
7171 fi
7172fi
7173
7174 output_verbose_link_cmd=echo
7175 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then
7176 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7177 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}'
7178 else
7179 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7180 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}'
7181 fi
7182 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7183 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}'
7184 else
7185 case $cc_basename in
7186 xlc*)
7187 output_verbose_link_cmd=echo
7188 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring'
7189 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7190 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7191 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}'
7192 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}'
7193 ;;
7194 *)
7195 ld_shlibs=no
7196 ;;
7197 esac
7198 fi
7199 ;;
7200
7201 dgux*)
7202 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7203 hardcode_libdir_flag_spec='-L$libdir'
7204 hardcode_shlibpath_var=no
7205 ;;
7206
7207 freebsd1*)
7208 ld_shlibs=no
7209 ;;
7210
7211 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7212 # support. Future versions do this automatically, but an explicit c++rt0.o
7213 # does not break anything, and helps significantly (at the cost of a little
7214 # extra space).
7215 freebsd2.2*)
7216 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7217 hardcode_libdir_flag_spec='-R$libdir'
7218 hardcode_direct=yes
7219 hardcode_shlibpath_var=no
7220 ;;
7221
7222 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7223 freebsd2*)
7224 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7225 hardcode_direct=yes
7226 hardcode_minus_L=yes
7227 hardcode_shlibpath_var=no
7228 ;;
7229
7230 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7231 freebsd* | dragonfly*)
7232 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7233 hardcode_libdir_flag_spec='-R$libdir'
7234 hardcode_direct=yes
7235 hardcode_shlibpath_var=no
7236 ;;
7237
7238 hpux9*)
7239 if test "$GCC" = yes; then
7240 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'
7241 else
7242 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'
7243 fi
7244 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7245 hardcode_libdir_separator=:
7246 hardcode_direct=yes
7247
7248 # hardcode_minus_L: Not really in the search PATH,
7249 # but as the default location of the library.
7250 hardcode_minus_L=yes
7251 export_dynamic_flag_spec='${wl}-E'
7252 ;;
7253
7254 hpux10*)
7255 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7256 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7257 else
7258 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7259 fi
7260 if test "$with_gnu_ld" = no; then
7261 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7262 hardcode_libdir_flag_spec_ld='+b $libdir'
7263 hardcode_libdir_separator=:
7264 hardcode_direct=yes
7265 hardcode_direct_absolute=yes
7266 export_dynamic_flag_spec='${wl}-E'
7267 # hardcode_minus_L: Not really in the search PATH,
7268 # but as the default location of the library.
7269 hardcode_minus_L=yes
7270 fi
7271 ;;
7272
7273 hpux11*)
7274 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7275 case $host_cpu in
7276 hppa*64*)
7277 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7278 ;;
7279 ia64*)
7280 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7281 ;;
7282 *)
7283 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7284 ;;
7285 esac
7286 else
7287 case $host_cpu in
7288 hppa*64*)
7289 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7290 ;;
7291 ia64*)
7292 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7293 ;;
7294 *)
7295 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7296 ;;
7297 esac
7298 fi
7299 if test "$with_gnu_ld" = no; then
7300 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7301 hardcode_libdir_separator=:
7302
7303 case $host_cpu in
7304 hppa*64*|ia64*)
7305 hardcode_direct=no
7306 hardcode_shlibpath_var=no
7307 ;;
7308 *)
7309 hardcode_direct=yes
7310 hardcode_direct_absolute=yes
7311 export_dynamic_flag_spec='${wl}-E'
7312
7313 # hardcode_minus_L: Not really in the search PATH,
7314 # but as the default location of the library.
7315 hardcode_minus_L=yes
7316 ;;
7317 esac
7318 fi
7319 ;;
7320
7321 irix5* | irix6* | nonstopux*)
7322 if test "$GCC" = yes; then
7323 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'
7324 # Try to use the -exported_symbol ld option, if it does not
7325 # work, assume that -exports_file does not work either and
7326 # implicitly export all symbols.
7327 save_LDFLAGS="$LDFLAGS"
7328 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
7329 cat >conftest.$ac_ext <<_ACEOF
7330int foo(void) {}
7331_ACEOF
7332rm -f conftest.$ac_objext conftest$ac_exeext
7333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7334 (eval $ac_link) 2>conftest.er1
7335 ac_status=$?
7336 grep -v '^ *+' conftest.er1 >conftest.err
7337 rm -f conftest.er1
7338 cat conftest.err >&5
7339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 (exit $ac_status); } &&
7341 { ac_try='test -z "$ac_c_werror_flag"
7342 || test ! -s conftest.err'
7343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7344 (eval $ac_try) 2>&5
7345 ac_status=$?
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); }; } &&
7348 { ac_try='test -s conftest$ac_exeext'
7349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7350 (eval $ac_try) 2>&5
7351 ac_status=$?
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); }; }; then
7354 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'
7355
7356else
7357 echo "$as_me: failed program was:" >&5
7358sed 's/^/| /' conftest.$ac_ext >&5
7359
7360fi
7361rm -f conftest.err conftest.$ac_objext \
7362 conftest$ac_exeext conftest.$ac_ext
7363 LDFLAGS="$save_LDFLAGS"
7364 else
7365 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'
7366 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'
7367 fi
7368 archive_cmds_need_lc='no'
7369 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7370 hardcode_libdir_separator=:
7371 inherit_rpath=yes
7372 link_all_deplibs=yes
7373 ;;
7374
7375 netbsd*)
7376 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7377 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7378 else
7379 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7380 fi
7381 hardcode_libdir_flag_spec='-R$libdir'
7382 hardcode_direct=yes
7383 hardcode_shlibpath_var=no
7384 ;;
7385
7386 newsos6)
7387 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7388 hardcode_direct=yes
7389 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7390 hardcode_libdir_separator=:
7391 hardcode_shlibpath_var=no
7392 ;;
7393
7394 *nto* | *qnx*)
7395 ;;
7396
7397 openbsd*)
7398 hardcode_direct=yes
7399 hardcode_shlibpath_var=no
7400 hardcode_direct_absolute=yes
7401 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7402 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7403 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7404 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7405 export_dynamic_flag_spec='${wl}-E'
7406 else
7407 case $host_os in
7408 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7409 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7410 hardcode_libdir_flag_spec='-R$libdir'
7411 ;;
7412 *)
7413 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7414 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7415 ;;
7416 esac
7417 fi
7418 ;;
7419
7420 os2*)
7421 hardcode_libdir_flag_spec='-L$libdir'
7422 hardcode_minus_L=yes
7423 allow_undefined_flag=unsupported
7424 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'
7425 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7426 ;;
7427
7428 osf3*)
7429 if test "$GCC" = yes; then
7430 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7431 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'
7432 else
7433 allow_undefined_flag=' -expect_unresolved \*'
7434 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'
7435 fi
7436 archive_cmds_need_lc='no'
7437 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7438 hardcode_libdir_separator=:
7439 ;;
7440
7441 osf4* | osf5*) # as osf3* with the addition of -msym flag
7442 if test "$GCC" = yes; then
7443 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7444 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'
7445 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7446 else
7447 allow_undefined_flag=' -expect_unresolved \*'
7448 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'
7449 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~
7450 $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'
7451
7452 # Both c and cxx compiler support -rpath directly
7453 hardcode_libdir_flag_spec='-rpath $libdir'
7454 fi
7455 archive_cmds_need_lc='no'
7456 hardcode_libdir_separator=:
7457 ;;
7458
7459 solaris*)
7460 no_undefined_flag=' -z defs'
7461 if test "$GCC" = yes; then
7462 wlarc='${wl}'
7463 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7464 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7465 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7466 else
7467 case `$CC -V 2>&1` in
7468 *"Compilers 5.0"*)
7469 wlarc=''
7470 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7471 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7472 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
7473 ;;
7474 *)
7475 wlarc='${wl}'
7476 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
7477 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7478 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
7479 ;;
7480 esac
7481 fi
7482 hardcode_libdir_flag_spec='-R$libdir'
7483 hardcode_shlibpath_var=no
7484 case $host_os in
7485 solaris2.[0-5] | solaris2.[0-5].*) ;;
7486 *)
7487 # The compiler driver will combine and reorder linker options,
7488 # but understands `-z linker_flag'. GCC discards it without `$wl',
7489 # but is careful enough not to reorder.
7490 # Supported since Solaris 2.6 (maybe 2.5.1?)
7491 if test "$GCC" = yes; then
7492 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7493 else
7494 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
7495 fi
7496 ;;
7497 esac
7498 link_all_deplibs=yes
7499 ;;
7500
7501 sunos4*)
7502 if test "x$host_vendor" = xsequent; then
7503 # Use $CC to link under sequent, because it throws in some extra .o
7504 # files that make .init and .fini sections work.
7505 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7506 else
7507 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7508 fi
7509 hardcode_libdir_flag_spec='-L$libdir'
7510 hardcode_direct=yes
7511 hardcode_minus_L=yes
7512 hardcode_shlibpath_var=no
7513 ;;
7514
7515 sysv4)
7516 case $host_vendor in
7517 sni)
7518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7519 hardcode_direct=yes # is this really true???
7520 ;;
7521 siemens)
7522 ## LD is ld it makes a PLAMLIB
7523 ## CC just makes a GrossModule.
7524 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7525 reload_cmds='$CC -r -o $output$reload_objs'
7526 hardcode_direct=no
7527 ;;
7528 motorola)
7529 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7530 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7531 ;;
7532 esac
7533 runpath_var='LD_RUN_PATH'
7534 hardcode_shlibpath_var=no
7535 ;;
7536
7537 sysv4.3*)
7538 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7539 hardcode_shlibpath_var=no
7540 export_dynamic_flag_spec='-Bexport'
7541 ;;
7542
7543 sysv4*MP*)
7544 if test -d /usr/nec; then
7545 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7546 hardcode_shlibpath_var=no
7547 runpath_var=LD_RUN_PATH
7548 hardcode_runpath_var=yes
7549 ld_shlibs=yes
7550 fi
7551 ;;
7552
7553 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
7554 no_undefined_flag='${wl}-z,text'
7555 archive_cmds_need_lc=no
7556 hardcode_shlibpath_var=no
7557 runpath_var='LD_RUN_PATH'
7558
7559 if test "$GCC" = yes; then
7560 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7561 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7562 else
7563 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7564 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7565 fi
7566 ;;
7567
7568 sysv5* | sco3.2v5* | sco5v6*)
7569 # Note: We can NOT use -z defs as we might desire, because we do not
7570 # link with -lc, and that would cause any symbols used from libc to
7571 # always be unresolved, which means just about no library would
7572 # ever link correctly. If we're not using GNU ld we use -z text
7573 # though, which does catch some bad symbols but isn't as heavy-handed
7574 # as -z defs.
7575 no_undefined_flag='${wl}-z,text'
7576 allow_undefined_flag='${wl}-z,nodefs'
7577 archive_cmds_need_lc=no
7578 hardcode_shlibpath_var=no
7579 hardcode_libdir_flag_spec='${wl}-R,$libdir'
7580 hardcode_libdir_separator=':'
7581 link_all_deplibs=yes
7582 export_dynamic_flag_spec='${wl}-Bexport'
7583 runpath_var='LD_RUN_PATH'
7584
7585 if test "$GCC" = yes; then
7586 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7587 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7588 else
7589 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7590 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7591 fi
7592 ;;
7593
7594 uts4*)
7595 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7596 hardcode_libdir_flag_spec='-L$libdir'
7597 hardcode_shlibpath_var=no
7598 ;;
7599
7600 *)
7601 ld_shlibs=no
7602 ;;
7603 esac
7604
7605 if test x$host_vendor = xsni; then
7606 case $host in
7607 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7608 export_dynamic_flag_spec='${wl}-Blargedynsym'
7609 ;;
7610 esac
7611 fi
7612 fi
7613
7614echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7615echo "${ECHO_T}$ld_shlibs" >&6
7616test "$ld_shlibs" = no && can_build_shared=no
7617
7618with_gnu_ld=$with_gnu_ld
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634#
7635# Do we need to explicitly link libc?
7636#
7637case "x$archive_cmds_need_lc" in
7638x|xyes)
7639 # Assume -lc should be added
7640 archive_cmds_need_lc=yes
7641
7642 if test "$enable_shared" = yes && test "$GCC" = yes; then
7643 case $archive_cmds in
7644 *'~'*)
7645 # FIXME: we may have to deal with multi-command sequences.
7646 ;;
7647 '$CC '*)
7648 # Test whether the compiler implicitly links with -lc since on some
7649 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7650 # to ld, don't add -lc before -lgcc.
7651 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7652echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7653 $RM conftest*
7654 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7655
7656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7657 (eval $ac_compile) 2>&5
7658 ac_status=$?
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); } 2>conftest.err; then
7661 soname=conftest
7662 lib=conftest
7663 libobjs=conftest.$ac_objext
7664 deplibs=
7665 wl=$lt_prog_compiler_wl
7666 pic_flag=$lt_prog_compiler_pic
7667 compiler_flags=-v
7668 linker_flags=-v
7669 verstring=
7670 output_objdir=.
7671 libname=conftest
7672 lt_save_allow_undefined_flag=$allow_undefined_flag
7673 allow_undefined_flag=
7674 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
7675 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
7676 ac_status=$?
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); }
7679 then
7680 archive_cmds_need_lc=no
7681 else
7682 archive_cmds_need_lc=yes
7683 fi
7684 allow_undefined_flag=$lt_save_allow_undefined_flag
7685 else
7686 cat conftest.err 1>&5
7687 fi
7688 $RM conftest*
7689 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7690echo "${ECHO_T}$archive_cmds_need_lc" >&6
7691 ;;
7692 esac
7693 fi
7694 ;;
7695esac
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7854echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7855withGCC=$GCC
7856if test "$withGCC" = yes; then
7857 case $host_os in
7858 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
7859 *) lt_awk_arg="/^libraries:/" ;;
7860 esac
7861 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7862 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
7863 # if the path contains ";" then we assume it to be the separator
7864 # otherwise default to the standard path separator (i.e. ":") - it is
7865 # assumed that no part of a normal pathname contains ";" but that should
7866 # okay in the real world where ";" in dirpaths is itself problematic.
7867 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
7868 else
7869 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7870 fi
7871 # Ok, now we have the path, separated by spaces, we can step through it
7872 # and add multilib dir if necessary.
7873 lt_tmp_lt_search_path_spec=
7874 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
7875 for lt_sys_path in $lt_search_path_spec; do
7876 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
7877 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
7878 else
7879 test -d "$lt_sys_path" && \
7880 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
7881 fi
7882 done
7883 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
7884BEGIN {RS=" "; FS="/|\n";} {
7885 lt_foo="";
7886 lt_count=0;
7887 for (lt_i = NF; lt_i > 0; lt_i--) {
7888 if ($lt_i != "" && $lt_i != ".") {
7889 if ($lt_i == "..") {
7890 lt_count++;
7891 } else {
7892 if (lt_count == 0) {
7893 lt_foo="/" $lt_i lt_foo;
7894 } else {
7895 lt_count--;
7896 }
7897 }
7898 }
7899 }
7900 if (lt_foo != "") { lt_freq[lt_foo]++; }
7901 if (lt_freq[lt_foo] == 1) { print lt_foo; }
7902}'`
7903 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
7904else
7905 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7906fi
7907library_names_spec=
7908libname_spec='lib$name'
7909soname_spec=
7910shrext_cmds=".so"
7911postinstall_cmds=
7912postuninstall_cmds=
7913finish_cmds=
7914finish_eval=
7915shlibpath_var=
7916shlibpath_overrides_runpath=unknown
7917version_type=none
7918dynamic_linker="$host_os ld.so"
7919sys_lib_dlsearch_path_spec="/lib /usr/lib"
7920need_lib_prefix=unknown
7921hardcode_into_libs=no
7922
7923# when you set need_version to no, make sure it does not cause -set_version
7924# flags to be left without arguments
7925need_version=unknown
7926
7927case $host_os in
7928aix3*)
7929 version_type=linux
7930 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7931 shlibpath_var=LIBPATH
7932
7933 # AIX 3 has no versioning support, so we append a major version to the name.
7934 soname_spec='${libname}${release}${shared_ext}$major'
7935 ;;
7936
95d4f544 7937aix[4-9]*)
1cf3d07d
SE
7938 version_type=linux
7939 need_lib_prefix=no
7940 need_version=no
7941 hardcode_into_libs=yes
7942 if test "$host_cpu" = ia64; then
7943 # AIX 5 supports IA64
7944 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7945 shlibpath_var=LD_LIBRARY_PATH
7946 else
7947 # With GCC up to 2.95.x, collect2 would create an import file
7948 # for dependence libraries. The import file would start with
7949 # the line `#! .'. This would cause the generated library to
7950 # depend on `.', always an invalid library. This was fixed in
7951 # development snapshots of GCC prior to 3.0.
7952 case $host_os in
7953 aix4 | aix4.[01] | aix4.[01].*)
7954 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7955 echo ' yes '
7956 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
7957 :
7958 else
7959 can_build_shared=no
7960 fi
7961 ;;
7962 esac
7963 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7964 # soname into executable. Probably we can add versioning support to
7965 # collect2, so additional links can be useful in future.
7966 if test "$aix_use_runtimelinking" = yes; then
7967 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7968 # instead of lib<name>.a to let people know that these are not
7969 # typical AIX shared libraries.
7970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7971 else
7972 # We preserve .a as extension for shared libraries through AIX4.2
7973 # and later when we are not doing run time linking.
7974 library_names_spec='${libname}${release}.a $libname.a'
7975 soname_spec='${libname}${release}${shared_ext}$major'
7976 fi
7977 shlibpath_var=LIBPATH
7978 fi
7979 ;;
7980
7981amigaos*)
7982 if test "$host_cpu" = m68k; then
7983 library_names_spec='$libname.ixlibrary $libname.a'
7984 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7985 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'
7986 else
7987 dynamic_linker=no
7988 fi
7989 ;;
7990
7991beos*)
7992 library_names_spec='${libname}${shared_ext}'
7993 dynamic_linker="$host_os ld.so"
7994 shlibpath_var=LIBRARY_PATH
7995 ;;
7996
7997bsdi[45]*)
7998 version_type=linux
7999 need_version=no
8000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8001 soname_spec='${libname}${release}${shared_ext}$major'
8002 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8003 shlibpath_var=LD_LIBRARY_PATH
8004 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8005 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8006 # the default ld.so.conf also contains /usr/contrib/lib and
8007 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8008 # libtool to hard-code these into programs
8009 ;;
8010
8011cygwin* | mingw* | pw32*)
8012 version_type=windows
8013 shrext_cmds=".dll"
8014 need_version=no
8015 need_lib_prefix=no
8016
8017 case $withGCC,$host_os in
8018 yes,cygwin* | yes,mingw* | yes,pw32*)
8019 library_names_spec='$libname.dll.a'
8020 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8021 postinstall_cmds='base_file=`basename \${file}`~
8022 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
8023 dldir=$destdir/`dirname \$dlpath`~
8024 test -d \$dldir || mkdir -p \$dldir~
8025 $install_prog $dir/$dlname \$dldir/$dlname~
8026 chmod a+x \$dldir/$dlname~
8027 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8028 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8029 fi'
8030 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8031 dlpath=$dir/\$dldll~
8032 $RM \$dlpath'
8033 shlibpath_overrides_runpath=yes
8034
8035 case $host_os in
8036 cygwin*)
8037 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8038 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8039 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8040 ;;
8041 mingw*)
8042 # MinGW DLLs use traditional 'lib' prefix
8043 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8044 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8045 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
8046 # It is most probably a Windows format PATH printed by
8047 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8048 # path with ; separators, and with drive letters. We can handle the
8049 # drive letters (cygwin fileutils understands them), so leave them,
8050 # especially as we might pass files found there to a mingw objdump,
8051 # which wouldn't understand a cygwinified path. Ahh.
8052 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8053 else
8054 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8055 fi
8056 ;;
8057 pw32*)
8058 # pw32 DLLs use 'pw' prefix rather than 'lib'
8059 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8060 ;;
8061 esac
8062 ;;
8063
8064 *)
8065 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8066 ;;
8067 esac
8068 dynamic_linker='Win32 ld.exe'
8069 # FIXME: first we should search . and the directory the executable is in
8070 shlibpath_var=PATH
8071 ;;
8072
8073darwin* | rhapsody*)
8074 dynamic_linker="$host_os dyld"
8075 version_type=darwin
8076 need_lib_prefix=no
8077 need_version=no
8078 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8079 soname_spec='${libname}${release}${major}$shared_ext'
8080 shlibpath_overrides_runpath=yes
8081 shlibpath_var=DYLD_LIBRARY_PATH
8082 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8083
8084 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8085 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8086 ;;
8087
8088dgux*)
8089 version_type=linux
8090 need_lib_prefix=no
8091 need_version=no
8092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8093 soname_spec='${libname}${release}${shared_ext}$major'
8094 shlibpath_var=LD_LIBRARY_PATH
8095 ;;
8096
8097freebsd1*)
8098 dynamic_linker=no
8099 ;;
8100
8101freebsd* | dragonfly*)
8102 # DragonFly does not have aout. When/if they implement a new
8103 # versioning mechanism, adjust this.
8104 if test -x /usr/bin/objformat; then
8105 objformat=`/usr/bin/objformat`
8106 else
8107 case $host_os in
8108 freebsd[123]*) objformat=aout ;;
8109 *) objformat=elf ;;
8110 esac
8111 fi
8112 version_type=freebsd-$objformat
8113 case $version_type in
8114 freebsd-elf*)
8115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8116 need_version=no
8117 need_lib_prefix=no
8118 ;;
8119 freebsd-*)
8120 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8121 need_version=yes
8122 ;;
8123 esac
8124 shlibpath_var=LD_LIBRARY_PATH
8125 case $host_os in
8126 freebsd2*)
8127 shlibpath_overrides_runpath=yes
8128 ;;
8129 freebsd3.[01]* | freebsdelf3.[01]*)
8130 shlibpath_overrides_runpath=yes
8131 hardcode_into_libs=yes
8132 ;;
8133 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8134 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8135 shlibpath_overrides_runpath=no
8136 hardcode_into_libs=yes
8137 ;;
8138 *) # from 4.6 on, and DragonFly
8139 shlibpath_overrides_runpath=yes
8140 hardcode_into_libs=yes
8141 ;;
8142 esac
8143 ;;
8144
8145gnu*)
8146 version_type=linux
8147 need_lib_prefix=no
8148 need_version=no
8149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8150 soname_spec='${libname}${release}${shared_ext}$major'
8151 shlibpath_var=LD_LIBRARY_PATH
8152 hardcode_into_libs=yes
8153 ;;
8154
8155hpux9* | hpux10* | hpux11*)
8156 # Give a soname corresponding to the major version so that dld.sl refuses to
8157 # link against other versions.
8158 version_type=sunos
8159 need_lib_prefix=no
8160 need_version=no
8161 case $host_cpu in
8162 ia64*)
8163 shrext_cmds='.so'
8164 hardcode_into_libs=yes
8165 dynamic_linker="$host_os dld.so"
8166 shlibpath_var=LD_LIBRARY_PATH
8167 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8169 soname_spec='${libname}${release}${shared_ext}$major'
8170 if test "X$HPUX_IA64_MODE" = X32; then
8171 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8172 else
8173 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8174 fi
8175 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8176 ;;
8177 hppa*64*)
8178 shrext_cmds='.sl'
8179 hardcode_into_libs=yes
8180 dynamic_linker="$host_os dld.sl"
8181 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8182 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8184 soname_spec='${libname}${release}${shared_ext}$major'
8185 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8186 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8187 ;;
8188 *)
8189 shrext_cmds='.sl'
8190 dynamic_linker="$host_os dld.sl"
8191 shlibpath_var=SHLIB_PATH
8192 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8194 soname_spec='${libname}${release}${shared_ext}$major'
8195 ;;
8196 esac
8197 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8198 postinstall_cmds='chmod 555 $lib'
8199 ;;
675cdab3 8200
1cf3d07d
SE
8201interix[3-9]*)
8202 version_type=linux
8203 need_lib_prefix=no
8204 need_version=no
8205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8206 soname_spec='${libname}${release}${shared_ext}$major'
8207 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8208 shlibpath_var=LD_LIBRARY_PATH
8209 shlibpath_overrides_runpath=no
8210 hardcode_into_libs=yes
3ed8e5b6 8211 ;;
675cdab3 8212
1cf3d07d
SE
8213irix5* | irix6* | nonstopux*)
8214 case $host_os in
8215 nonstopux*) version_type=nonstopux ;;
8216 *)
8217 if test "$lt_cv_prog_gnu_ld" = yes; then
8218 version_type=linux
8219 else
8220 version_type=irix
8221 fi ;;
8222 esac
8223 need_lib_prefix=no
8224 need_version=no
8225 soname_spec='${libname}${release}${shared_ext}$major'
8226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8227 case $host_os in
8228 irix5* | nonstopux*)
8229 libsuff= shlibsuff=
8230 ;;
8231 *)
8232 case $LD in # libtool.m4 will add one of these switches to LD
8233 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8234 libsuff= shlibsuff= libmagic=32-bit;;
8235 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8236 libsuff=32 shlibsuff=N32 libmagic=N32;;
8237 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8238 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8239 *) libsuff= shlibsuff= libmagic=never-match;;
3ed8e5b6 8240 esac
1cf3d07d
SE
8241 ;;
8242 esac
8243 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8244 shlibpath_overrides_runpath=no
8245 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8246 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8247 hardcode_into_libs=yes
3ed8e5b6 8248 ;;
675cdab3 8249
1cf3d07d
SE
8250# No shared lib support for Linux oldld, aout, or coff.
8251linux*oldld* | linux*aout* | linux*coff*)
8252 dynamic_linker=no
8253 ;;
3ed8e5b6 8254
1cf3d07d
SE
8255# This must be Linux ELF.
8256linux* | k*bsd*-gnu)
8257 version_type=linux
8258 need_lib_prefix=no
8259 need_version=no
8260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8261 soname_spec='${libname}${release}${shared_ext}$major'
8262 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8263 shlibpath_var=LD_LIBRARY_PATH
8264 shlibpath_overrides_runpath=no
8265 # Some binutils ld are patched to set DT_RUNPATH
8266 save_LDFLAGS=$LDFLAGS
8267 save_libdir=$libdir
8268 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8269 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
8270 cat >conftest.$ac_ext <<_ACEOF
3ed8e5b6
AT
8271/* confdefs.h. */
8272_ACEOF
8273cat confdefs.h >>conftest.$ac_ext
8274cat >>conftest.$ac_ext <<_ACEOF
8275/* end confdefs.h. */
8276
8277int
8278main ()
8279{
675cdab3 8280
3ed8e5b6
AT
8281 ;
8282 return 0;
8283}
8284_ACEOF
8285rm -f conftest.$ac_objext conftest$ac_exeext
8286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8287 (eval $ac_link) 2>conftest.er1
8288 ac_status=$?
8289 grep -v '^ *+' conftest.er1 >conftest.err
8290 rm -f conftest.er1
8291 cat conftest.err >&5
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); } &&
88d8c771
AG
8294 { ac_try='test -z "$ac_c_werror_flag"
8295 || test ! -s conftest.err'
3ed8e5b6
AT
8296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8297 (eval $ac_try) 2>&5
8298 ac_status=$?
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); }; } &&
8301 { ac_try='test -s conftest$ac_exeext'
8302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8303 (eval $ac_try) 2>&5
8304 ac_status=$?
8305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306 (exit $ac_status); }; }; then
1cf3d07d
SE
8307 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then
8308 shlibpath_overrides_runpath=yes
8309fi
8310
675cdab3 8311else
3ed8e5b6
AT
8312 echo "$as_me: failed program was:" >&5
8313sed 's/^/| /' conftest.$ac_ext >&5
675cdab3 8314
675cdab3 8315fi
3ed8e5b6
AT
8316rm -f conftest.err conftest.$ac_objext \
8317 conftest$ac_exeext conftest.$ac_ext
1cf3d07d
SE
8318 LDFLAGS=$save_LDFLAGS
8319 libdir=$save_libdir
8320
8321 # This implies no fast_install, which is unacceptable.
8322 # Some rework will be needed to allow for fast_install
8323 # before this can be enabled.
8324 hardcode_into_libs=yes
8325
8326 # Append ld.so.conf contents to the search path
8327 if test -f /etc/ld.so.conf; then
8328 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' ' '`
8329 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8330 fi
675cdab3 8331
1cf3d07d
SE
8332 # We used to test for /lib/ld.so.1 and disable shared libraries on
8333 # powerpc, because MkLinux only supported shared libraries with the
8334 # GNU dynamic linker. Since this was broken with cross compilers,
8335 # most powerpc-linux boxes support dynamic linking these days and
8336 # people can always --disable-shared, the test was removed, and we
8337 # assume the GNU/Linux dynamic linker is in use.
8338 dynamic_linker='GNU/Linux ld.so'
8339 ;;
8340
8341netbsd*)
8342 version_type=sunos
8343 need_lib_prefix=no
8344 need_version=no
8345 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8347 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8348 dynamic_linker='NetBSD (a.out) ld.so'
8349 else
8350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8351 soname_spec='${libname}${release}${shared_ext}$major'
8352 dynamic_linker='NetBSD ld.elf_so'
3ed8e5b6 8353 fi
1cf3d07d
SE
8354 shlibpath_var=LD_LIBRARY_PATH
8355 shlibpath_overrides_runpath=yes
8356 hardcode_into_libs=yes
3ed8e5b6 8357 ;;
675cdab3 8358
1cf3d07d
SE
8359newsos6)
8360 version_type=linux
8361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8362 shlibpath_var=LD_LIBRARY_PATH
8363 shlibpath_overrides_runpath=yes
8364 ;;
675cdab3 8365
1cf3d07d
SE
8366*nto* | *qnx*)
8367 version_type=qnx
8368 need_lib_prefix=no
8369 need_version=no
8370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8371 soname_spec='${libname}${release}${shared_ext}$major'
8372 shlibpath_var=LD_LIBRARY_PATH
8373 shlibpath_overrides_runpath=no
8374 hardcode_into_libs=yes
8375 dynamic_linker='ldqnx.so'
8376 ;;
675cdab3 8377
1cf3d07d
SE
8378openbsd*)
8379 version_type=sunos
8380 sys_lib_dlsearch_path_spec="/usr/lib"
8381 need_lib_prefix=no
8382 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8383 case $host_os in
8384 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8385 *) need_version=no ;;
8386 esac
8387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8388 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8389 shlibpath_var=LD_LIBRARY_PATH
8390 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8391 case $host_os in
8392 openbsd2.[89] | openbsd2.[89].*)
8393 shlibpath_overrides_runpath=no
8394 ;;
8395 *)
8396 shlibpath_overrides_runpath=yes
8397 ;;
8398 esac
8399 else
8400 shlibpath_overrides_runpath=yes
8401 fi
8402 ;;
675cdab3 8403
1cf3d07d
SE
8404os2*)
8405 libname_spec='$name'
8406 shrext_cmds=".dll"
8407 need_lib_prefix=no
8408 library_names_spec='$libname${shared_ext} $libname.a'
8409 dynamic_linker='OS/2 ld.exe'
8410 shlibpath_var=LIBPATH
8411 ;;
675cdab3 8412
1cf3d07d
SE
8413osf3* | osf4* | osf5*)
8414 version_type=osf
8415 need_lib_prefix=no
8416 need_version=no
8417 soname_spec='${libname}${release}${shared_ext}$major'
8418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8419 shlibpath_var=LD_LIBRARY_PATH
8420 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8421 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8422 ;;
675cdab3 8423
1cf3d07d
SE
8424rdos*)
8425 dynamic_linker=no
8426 ;;
8427
8428solaris*)
8429 version_type=linux
8430 need_lib_prefix=no
8431 need_version=no
8432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8433 soname_spec='${libname}${release}${shared_ext}$major'
8434 shlibpath_var=LD_LIBRARY_PATH
8435 shlibpath_overrides_runpath=yes
8436 hardcode_into_libs=yes
8437 # ldd complains unless libraries are executable
8438 postinstall_cmds='chmod +x $lib'
8439 ;;
8440
8441sunos4*)
8442 version_type=sunos
8443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8444 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8445 shlibpath_var=LD_LIBRARY_PATH
8446 shlibpath_overrides_runpath=yes
8447 if test "$with_gnu_ld" = yes; then
8448 need_lib_prefix=no
8449 fi
8450 need_version=yes
8451 ;;
8452
8453sysv4 | sysv4.3*)
8454 version_type=linux
8455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8456 soname_spec='${libname}${release}${shared_ext}$major'
8457 shlibpath_var=LD_LIBRARY_PATH
8458 case $host_vendor in
8459 sni)
8460 shlibpath_overrides_runpath=no
8461 need_lib_prefix=no
8462 runpath_var=LD_RUN_PATH
3ed8e5b6 8463 ;;
1cf3d07d
SE
8464 siemens)
8465 need_lib_prefix=no
3ed8e5b6 8466 ;;
1cf3d07d
SE
8467 motorola)
8468 need_lib_prefix=no
8469 need_version=no
8470 shlibpath_overrides_runpath=no
8471 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8472 ;;
8473 esac
8474 ;;
8475
8476sysv4*MP*)
8477 if test -d /usr/nec ;then
8478 version_type=linux
8479 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8480 soname_spec='$libname${shared_ext}.$major'
8481 shlibpath_var=LD_LIBRARY_PATH
8482 fi
8483 ;;
8484
8485sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8486 version_type=freebsd-elf
8487 need_lib_prefix=no
8488 need_version=no
8489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8490 soname_spec='${libname}${release}${shared_ext}$major'
8491 shlibpath_var=LD_LIBRARY_PATH
8492 shlibpath_overrides_runpath=yes
8493 hardcode_into_libs=yes
8494 if test "$with_gnu_ld" = yes; then
8495 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
675cdab3 8496 else
1cf3d07d
SE
8497 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8498 case $host_os in
8499 sco3.2v5*)
8500 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8501 ;;
8502 esac
675cdab3 8503 fi
1cf3d07d
SE
8504 sys_lib_dlsearch_path_spec='/usr/lib'
8505 ;;
8506
8507tpf*)
8508 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
8509 version_type=linux
8510 need_lib_prefix=no
8511 need_version=no
8512 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8513 shlibpath_var=LD_LIBRARY_PATH
8514 shlibpath_overrides_runpath=no
8515 hardcode_into_libs=yes
8516 ;;
8517
8518uts4*)
8519 version_type=linux
8520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8521 soname_spec='${libname}${release}${shared_ext}$major'
8522 shlibpath_var=LD_LIBRARY_PATH
8523 ;;
8524
8525*)
8526 dynamic_linker=no
8527 ;;
8528esac
8529echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8530echo "${ECHO_T}$dynamic_linker" >&6
8531test "$dynamic_linker" = no && can_build_shared=no
8532
8533variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8534if test "$GCC" = yes; then
8535 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
675cdab3
BM
8536fi
8537
675cdab3 8538
1cf3d07d
SE
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8625echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8626hardcode_action=
8627if test -n "$hardcode_libdir_flag_spec" ||
8628 test -n "$runpath_var" ||
8629 test "X$hardcode_automatic" = "Xyes" ; then
8630
8631 # We can hardcode non-existent directories.
8632 if test "$hardcode_direct" != no &&
8633 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8634 # have to relink, otherwise we might link with an installed library
8635 # when we should be linking with a yet-to-be-installed one
8636 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
8637 test "$hardcode_minus_L" != no; then
8638 # Linking always hardcodes the temporary library directory.
8639 hardcode_action=relink
8640 else
8641 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8642 hardcode_action=immediate
63e5e3e0 8643 fi
3ed8e5b6 8644else
1cf3d07d
SE
8645 # We cannot hardcode anything, or else we can only hardcode existing
8646 # directories.
8647 hardcode_action=unsupported
675cdab3 8648fi
1cf3d07d
SE
8649echo "$as_me:$LINENO: result: $hardcode_action" >&5
8650echo "${ECHO_T}$hardcode_action" >&6
63e5e3e0 8651
1cf3d07d
SE
8652if test "$hardcode_action" = relink ||
8653 test "$inherit_rpath" = yes; then
8654 # Fast installation is not supported
8655 enable_fast_install=no
8656elif test "$shlibpath_overrides_runpath" = yes ||
8657 test "$enable_shared" = no; then
8658 # Fast installation is not necessary
8659 enable_fast_install=needless
8660fi
675cdab3 8661
63e5e3e0 8662
63e5e3e0 8663
2f7bf5b7 8664
63e5e3e0 8665
63e5e3e0 8666
1cf3d07d
SE
8667 if test "x$enable_dlopen" != xyes; then
8668 enable_dlopen=unknown
8669 enable_dlopen_self=unknown
8670 enable_dlopen_self_static=unknown
8671else
8672 lt_cv_dlopen=no
8673 lt_cv_dlopen_libs=
63e5e3e0 8674
1cf3d07d
SE
8675 case $host_os in
8676 beos*)
8677 lt_cv_dlopen="load_add_on"
8678 lt_cv_dlopen_libs=
8679 lt_cv_dlopen_self=yes
8680 ;;
63e5e3e0 8681
1cf3d07d
SE
8682 mingw* | pw32*)
8683 lt_cv_dlopen="LoadLibrary"
8684 lt_cv_dlopen_libs=
8685 ;;
63e5e3e0 8686
1cf3d07d
SE
8687 cygwin*)
8688 lt_cv_dlopen="dlopen"
8689 lt_cv_dlopen_libs=
8690 ;;
63e5e3e0 8691
1cf3d07d
SE
8692 darwin*)
8693 # if libdl is installed we need to link against it
8694 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8695echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8696if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8697 echo $ECHO_N "(cached) $ECHO_C" >&6
675cdab3 8698else
1cf3d07d
SE
8699 ac_check_lib_save_LIBS=$LIBS
8700LIBS="-ldl $LIBS"
8701cat >conftest.$ac_ext <<_ACEOF
8702/* confdefs.h. */
8703_ACEOF
8704cat confdefs.h >>conftest.$ac_ext
8705cat >>conftest.$ac_ext <<_ACEOF
8706/* end confdefs.h. */
3ed8e5b6 8707
1cf3d07d
SE
8708/* Override any gcc2 internal prototype to avoid an error. */
8709#ifdef __cplusplus
8710extern "C"
8711#endif
8712/* We use char because int might match the return type of a gcc2
8713 builtin and then its argument prototype would still apply. */
8714char dlopen ();
8715int
8716main ()
8717{
8718dlopen ();
8719 ;
8720 return 0;
8721}
8722_ACEOF
8723rm -f conftest.$ac_objext conftest$ac_exeext
8724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8725 (eval $ac_link) 2>conftest.er1
8726 ac_status=$?
8727 grep -v '^ *+' conftest.er1 >conftest.err
8728 rm -f conftest.er1
8729 cat conftest.err >&5
8730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8731 (exit $ac_status); } &&
8732 { ac_try='test -z "$ac_c_werror_flag"
8733 || test ! -s conftest.err'
8734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8735 (eval $ac_try) 2>&5
8736 ac_status=$?
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); }; } &&
8739 { ac_try='test -s conftest$ac_exeext'
8740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8741 (eval $ac_try) 2>&5
8742 ac_status=$?
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); }; }; then
8745 ac_cv_lib_dl_dlopen=yes
3ed8e5b6 8746else
1cf3d07d
SE
8747 echo "$as_me: failed program was:" >&5
8748sed 's/^/| /' conftest.$ac_ext >&5
8749
8750ac_cv_lib_dl_dlopen=no
675cdab3 8751fi
1cf3d07d
SE
8752rm -f conftest.err conftest.$ac_objext \
8753 conftest$ac_exeext conftest.$ac_ext
8754LIBS=$ac_check_lib_save_LIBS
8755fi
8756echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8757echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8758if test $ac_cv_lib_dl_dlopen = yes; then
8759 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8760else
63e5e3e0 8761
1cf3d07d
SE
8762 lt_cv_dlopen="dyld"
8763 lt_cv_dlopen_libs=
8764 lt_cv_dlopen_self=yes
bbf3057b 8765
1cf3d07d 8766fi
2f7bf5b7 8767
1cf3d07d 8768 ;;
2f7bf5b7 8769
1cf3d07d
SE
8770 *)
8771 echo "$as_me:$LINENO: checking for shl_load" >&5
8772echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8773if test "${ac_cv_func_shl_load+set}" = set; then
3ed8e5b6
AT
8774 echo $ECHO_N "(cached) $ECHO_C" >&6
8775else
8776 cat >conftest.$ac_ext <<_ACEOF
8777/* confdefs.h. */
8778_ACEOF
8779cat confdefs.h >>conftest.$ac_ext
8780cat >>conftest.$ac_ext <<_ACEOF
8781/* end confdefs.h. */
1cf3d07d
SE
8782/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8784#define shl_load innocuous_shl_load
8785
8786/* System header to define __stub macros and hopefully few prototypes,
8787 which can conflict with char shl_load (); below.
8788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8789 <limits.h> exists even on freestanding compilers. */
8790
c9b93377
JB
8791#ifdef __STDC__
8792# include <limits.h>
8793#else
8794# include <assert.h>
3eee102e 8795#endif
1cf3d07d
SE
8796
8797#undef shl_load
8798
8799/* Override any gcc2 internal prototype to avoid an error. */
8800#ifdef __cplusplus
8801extern "C"
8802{
8803#endif
8804/* We use char because int might match the return type of a gcc2
8805 builtin and then its argument prototype would still apply. */
8806char shl_load ();
8807/* The GNU C library defines this for functions which it implements
8808 to always fail with ENOSYS. Some functions are actually named
8809 something starting with __ and the normal name is an alias. */
8810#if defined (__stub_shl_load) || defined (__stub___shl_load)
8811choke me
8812#else
8813char (*f) () = shl_load;
8814#endif
8815#ifdef __cplusplus
8816}
8817#endif
8818
8819int
8820main ()
8821{
8822return f != shl_load;
8823 ;
8824 return 0;
8825}
3ed8e5b6 8826_ACEOF
1cf3d07d
SE
8827rm -f conftest.$ac_objext conftest$ac_exeext
8828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8829 (eval $ac_link) 2>conftest.er1
3ed8e5b6
AT
8830 ac_status=$?
8831 grep -v '^ *+' conftest.er1 >conftest.err
8832 rm -f conftest.er1
8833 cat conftest.err >&5
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
8835 (exit $ac_status); } &&
8836 { ac_try='test -z "$ac_c_werror_flag"
8837 || test ! -s conftest.err'
8838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8839 (eval $ac_try) 2>&5
8840 ac_status=$?
8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 (exit $ac_status); }; } &&
8843 { ac_try='test -s conftest$ac_exeext'
8844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8845 (eval $ac_try) 2>&5
8846 ac_status=$?
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); }; }; then
8849 ac_cv_func_shl_load=yes
3eee102e 8850else
3ed8e5b6
AT
8851 echo "$as_me: failed program was:" >&5
8852sed 's/^/| /' conftest.$ac_ext >&5
8853
1cf3d07d 8854ac_cv_func_shl_load=no
3eee102e 8855fi
1cf3d07d
SE
8856rm -f conftest.err conftest.$ac_objext \
8857 conftest$ac_exeext conftest.$ac_ext
8858fi
8859echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8860echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8861if test $ac_cv_func_shl_load = yes; then
8862 lt_cv_dlopen="shl_load"
8863else
8864 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8865echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8866if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8867 echo $ECHO_N "(cached) $ECHO_C" >&6
8868else
8869 ac_check_lib_save_LIBS=$LIBS
8870LIBS="-ldld $LIBS"
8871cat >conftest.$ac_ext <<_ACEOF
c9b93377
JB
8872/* confdefs.h. */
8873_ACEOF
8874cat confdefs.h >>conftest.$ac_ext
8875cat >>conftest.$ac_ext <<_ACEOF
8876/* end confdefs.h. */
1cf3d07d
SE
8877
8878/* Override any gcc2 internal prototype to avoid an error. */
8879#ifdef __cplusplus
8880extern "C"
8881#endif
8882/* We use char because int might match the return type of a gcc2
8883 builtin and then its argument prototype would still apply. */
8884char shl_load ();
8885int
8886main ()
8887{
8888shl_load ();
8889 ;
8890 return 0;
8891}
c9b93377 8892_ACEOF
1cf3d07d
SE
8893rm -f conftest.$ac_objext conftest$ac_exeext
8894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8895 (eval $ac_link) 2>conftest.er1
c9b93377
JB
8896 ac_status=$?
8897 grep -v '^ *+' conftest.er1 >conftest.err
8898 rm -f conftest.er1
8899 cat conftest.err >&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
8901 (exit $ac_status); } &&
8902 { ac_try='test -z "$ac_c_werror_flag"
8903 || test ! -s conftest.err'
8904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8905 (eval $ac_try) 2>&5
8906 ac_status=$?
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); }; } &&
8909 { ac_try='test -s conftest$ac_exeext'
8910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8911 (eval $ac_try) 2>&5
8912 ac_status=$?
8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914 (exit $ac_status); }; }; then
8915 ac_cv_lib_dld_shl_load=yes
c9b93377
JB
8916else
8917 echo "$as_me: failed program was:" >&5
8918sed 's/^/| /' conftest.$ac_ext >&5
3eee102e 8919
1cf3d07d 8920ac_cv_lib_dld_shl_load=no
3eee102e 8921fi
1cf3d07d
SE
8922rm -f conftest.err conftest.$ac_objext \
8923 conftest$ac_exeext conftest.$ac_ext
8924LIBS=$ac_check_lib_save_LIBS
bbf3057b 8925fi
1cf3d07d
SE
8926echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8927echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8928if test $ac_cv_lib_dld_shl_load = yes; then
8929 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8930else
8931 echo "$as_me:$LINENO: checking for dlopen" >&5
8932echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8933if test "${ac_cv_func_dlopen+set}" = set; then
8934 echo $ECHO_N "(cached) $ECHO_C" >&6
8935else
3ed8e5b6
AT
8936 cat >conftest.$ac_ext <<_ACEOF
8937/* confdefs.h. */
8938_ACEOF
8939cat confdefs.h >>conftest.$ac_ext
8940cat >>conftest.$ac_ext <<_ACEOF
8941/* end confdefs.h. */
1cf3d07d
SE
8942/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8944#define dlopen innocuous_dlopen
8945
8946/* System header to define __stub macros and hopefully few prototypes,
8947 which can conflict with char dlopen (); below.
8948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8949 <limits.h> exists even on freestanding compilers. */
8950
3ed8e5b6
AT
8951#ifdef __STDC__
8952# include <limits.h>
8953#else
8954# include <assert.h>
8955#endif
1cf3d07d
SE
8956
8957#undef dlopen
8958
8959/* Override any gcc2 internal prototype to avoid an error. */
8960#ifdef __cplusplus
8961extern "C"
8962{
8963#endif
8964/* We use char because int might match the return type of a gcc2
8965 builtin and then its argument prototype would still apply. */
8966char dlopen ();
8967/* The GNU C library defines this for functions which it implements
8968 to always fail with ENOSYS. Some functions are actually named
8969 something starting with __ and the normal name is an alias. */
8970#if defined (__stub_dlopen) || defined (__stub___dlopen)
8971choke me
8972#else
8973char (*f) () = dlopen;
8974#endif
8975#ifdef __cplusplus
8976}
8977#endif
8978
8979int
8980main ()
8981{
8982return f != dlopen;
8983 ;
8984 return 0;
8985}
3ed8e5b6 8986_ACEOF
1cf3d07d
SE
8987rm -f conftest.$ac_objext conftest$ac_exeext
8988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8989 (eval $ac_link) 2>conftest.er1
3ed8e5b6
AT
8990 ac_status=$?
8991 grep -v '^ *+' conftest.er1 >conftest.err
8992 rm -f conftest.er1
8993 cat conftest.err >&5
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
8995 (exit $ac_status); } &&
8996 { ac_try='test -z "$ac_c_werror_flag"
8997 || test ! -s conftest.err'
8998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8999 (eval $ac_try) 2>&5
9000 ac_status=$?
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); }; } &&
9003 { ac_try='test -s conftest$ac_exeext'
9004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9005 (eval $ac_try) 2>&5
9006 ac_status=$?
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); }; }; then
9009 ac_cv_func_dlopen=yes
63e5e3e0 9010else
3ed8e5b6
AT
9011 echo "$as_me: failed program was:" >&5
9012sed 's/^/| /' conftest.$ac_ext >&5
9013
1cf3d07d 9014ac_cv_func_dlopen=no
3ed8e5b6 9015fi
1cf3d07d
SE
9016rm -f conftest.err conftest.$ac_objext \
9017 conftest$ac_exeext conftest.$ac_ext
9018fi
9019echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9020echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9021if test $ac_cv_func_dlopen = yes; then
9022 lt_cv_dlopen="dlopen"
9023else
9024 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9025echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9026if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9027 echo $ECHO_N "(cached) $ECHO_C" >&6
9028else
9029 ac_check_lib_save_LIBS=$LIBS
9030LIBS="-ldl $LIBS"
9031cat >conftest.$ac_ext <<_ACEOF
3ed8e5b6
AT
9032/* confdefs.h. */
9033_ACEOF
9034cat confdefs.h >>conftest.$ac_ext
9035cat >>conftest.$ac_ext <<_ACEOF
9036/* end confdefs.h. */
1cf3d07d
SE
9037
9038/* Override any gcc2 internal prototype to avoid an error. */
9039#ifdef __cplusplus
9040extern "C"
9041#endif
9042/* We use char because int might match the return type of a gcc2
9043 builtin and then its argument prototype would still apply. */
9044char dlopen ();
9045int
9046main ()
9047{
9048dlopen ();
9049 ;
9050 return 0;
9051}
3ed8e5b6 9052_ACEOF
1cf3d07d
SE
9053rm -f conftest.$ac_objext conftest$ac_exeext
9054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9055 (eval $ac_link) 2>conftest.er1
3ed8e5b6
AT
9056 ac_status=$?
9057 grep -v '^ *+' conftest.er1 >conftest.err
9058 rm -f conftest.er1
9059 cat conftest.err >&5
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
9061 (exit $ac_status); } &&
9062 { ac_try='test -z "$ac_c_werror_flag"
9063 || test ! -s conftest.err'
9064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9065 (eval $ac_try) 2>&5
9066 ac_status=$?
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); }; } &&
9069 { ac_try='test -s conftest$ac_exeext'
9070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9071 (eval $ac_try) 2>&5
9072 ac_status=$?
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 (exit $ac_status); }; }; then
9075 ac_cv_lib_dl_dlopen=yes
c9b93377
JB
9076else
9077 echo "$as_me: failed program was:" >&5
9078sed 's/^/| /' conftest.$ac_ext >&5
9079
1cf3d07d 9080ac_cv_lib_dl_dlopen=no
c9b93377 9081fi
1cf3d07d
SE
9082rm -f conftest.err conftest.$ac_objext \
9083 conftest$ac_exeext conftest.$ac_ext
9084LIBS=$ac_check_lib_save_LIBS
c9b93377 9085fi
1cf3d07d
SE
9086echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9087echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9088if test $ac_cv_lib_dl_dlopen = yes; then
9089 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
c9b93377 9090else
1cf3d07d
SE
9091 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9092echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9093if test "${ac_cv_lib_svld_dlopen+set}" = set; then
c9b93377
JB
9094 echo $ECHO_N "(cached) $ECHO_C" >&6
9095else
1cf3d07d
SE
9096 ac_check_lib_save_LIBS=$LIBS
9097LIBS="-lsvld $LIBS"
9098cat >conftest.$ac_ext <<_ACEOF
c9b93377
JB
9099/* confdefs.h. */
9100_ACEOF
9101cat confdefs.h >>conftest.$ac_ext
9102cat >>conftest.$ac_ext <<_ACEOF
9103/* end confdefs.h. */
c9b93377 9104
1cf3d07d
SE
9105/* Override any gcc2 internal prototype to avoid an error. */
9106#ifdef __cplusplus
9107extern "C"
9108#endif
9109/* We use char because int might match the return type of a gcc2
9110 builtin and then its argument prototype would still apply. */
9111char dlopen ();
c9b93377
JB
9112int
9113main ()
9114{
1cf3d07d 9115dlopen ();
c9b93377
JB
9116 ;
9117 return 0;
9118}
9119_ACEOF
1cf3d07d
SE
9120rm -f conftest.$ac_objext conftest$ac_exeext
9121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9122 (eval $ac_link) 2>conftest.er1
c9b93377
JB
9123 ac_status=$?
9124 grep -v '^ *+' conftest.er1 >conftest.err
9125 rm -f conftest.er1
9126 cat conftest.err >&5
9127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128 (exit $ac_status); } &&
88d8c771
AG
9129 { ac_try='test -z "$ac_c_werror_flag"
9130 || test ! -s conftest.err'
c9b93377
JB
9131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9132 (eval $ac_try) 2>&5
9133 ac_status=$?
9134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9135 (exit $ac_status); }; } &&
1cf3d07d 9136 { ac_try='test -s conftest$ac_exeext'
c9b93377
JB
9137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9138 (eval $ac_try) 2>&5
9139 ac_status=$?
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); }; }; then
1cf3d07d 9142 ac_cv_lib_svld_dlopen=yes
c9b93377
JB
9143else
9144 echo "$as_me: failed program was:" >&5
9145sed 's/^/| /' conftest.$ac_ext >&5
9146
1cf3d07d 9147ac_cv_lib_svld_dlopen=no
c9b93377 9148fi
1cf3d07d
SE
9149rm -f conftest.err conftest.$ac_objext \
9150 conftest$ac_exeext conftest.$ac_ext
9151LIBS=$ac_check_lib_save_LIBS
c9b93377 9152fi
1cf3d07d
SE
9153echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9154echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9155if test $ac_cv_lib_svld_dlopen = yes; then
9156 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
c9b93377 9157else
1cf3d07d
SE
9158 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9159echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9160if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9161 echo $ECHO_N "(cached) $ECHO_C" >&6
c9b93377 9162else
1cf3d07d
SE
9163 ac_check_lib_save_LIBS=$LIBS
9164LIBS="-ldld $LIBS"
9165cat >conftest.$ac_ext <<_ACEOF
c9b93377
JB
9166/* confdefs.h. */
9167_ACEOF
9168cat confdefs.h >>conftest.$ac_ext
9169cat >>conftest.$ac_ext <<_ACEOF
9170/* end confdefs.h. */
c9b93377 9171
1cf3d07d
SE
9172/* Override any gcc2 internal prototype to avoid an error. */
9173#ifdef __cplusplus
9174extern "C"
9175#endif
9176/* We use char because int might match the return type of a gcc2
9177 builtin and then its argument prototype would still apply. */
9178char dld_link ();
c9b93377
JB
9179int
9180main ()
9181{
1cf3d07d
SE
9182dld_link ();
9183 ;
9184 return 0;
c9b93377
JB
9185}
9186_ACEOF
1cf3d07d 9187rm -f conftest.$ac_objext conftest$ac_exeext
c9b93377 9188if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1cf3d07d 9189 (eval $ac_link) 2>conftest.er1
c9b93377 9190 ac_status=$?
1cf3d07d
SE
9191 grep -v '^ *+' conftest.er1 >conftest.err
9192 rm -f conftest.er1
9193 cat conftest.err >&5
c9b93377 9194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
9195 (exit $ac_status); } &&
9196 { ac_try='test -z "$ac_c_werror_flag"
9197 || test ! -s conftest.err'
9198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9199 (eval $ac_try) 2>&5
9200 ac_status=$?
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); }; } &&
9203 { ac_try='test -s conftest$ac_exeext'
c9b93377
JB
9204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9205 (eval $ac_try) 2>&5
9206 ac_status=$?
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); }; }; then
1cf3d07d 9209 ac_cv_lib_dld_dld_link=yes
c9b93377 9210else
1cf3d07d 9211 echo "$as_me: failed program was:" >&5
c9b93377
JB
9212sed 's/^/| /' conftest.$ac_ext >&5
9213
1cf3d07d 9214ac_cv_lib_dld_dld_link=no
c9b93377 9215fi
1cf3d07d
SE
9216rm -f conftest.err conftest.$ac_objext \
9217 conftest$ac_exeext conftest.$ac_ext
9218LIBS=$ac_check_lib_save_LIBS
c9b93377 9219fi
1cf3d07d
SE
9220echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9221echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9222if test $ac_cv_lib_dld_dld_link = yes; then
9223 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
c9b93377 9224fi
1cf3d07d
SE
9225
9226
c9b93377 9227fi
c9b93377 9228
c9b93377
JB
9229
9230fi
9231
c9b93377 9232
1cf3d07d 9233fi
c9b93377
JB
9234
9235
1cf3d07d 9236fi
c9b93377
JB
9237
9238
1cf3d07d 9239fi
c9b93377 9240
1cf3d07d
SE
9241 ;;
9242 esac
c9b93377 9243
1cf3d07d
SE
9244 if test "x$lt_cv_dlopen" != xno; then
9245 enable_dlopen=yes
9246 else
9247 enable_dlopen=no
9248 fi
c9b93377 9249
1cf3d07d
SE
9250 case $lt_cv_dlopen in
9251 dlopen)
9252 save_CPPFLAGS="$CPPFLAGS"
9253 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
c9b93377 9254
1cf3d07d
SE
9255 save_LDFLAGS="$LDFLAGS"
9256 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9257
9258 save_LIBS="$LIBS"
9259 LIBS="$lt_cv_dlopen_libs $LIBS"
9260
9261 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9262echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9263if test "${lt_cv_dlopen_self+set}" = set; then
c9b93377
JB
9264 echo $ECHO_N "(cached) $ECHO_C" >&6
9265else
1cf3d07d
SE
9266 if test "$cross_compiling" = yes; then :
9267 lt_cv_dlopen_self=cross
9268else
9269 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9270 lt_status=$lt_dlunknown
9271 cat > conftest.$ac_ext <<_LT_EOF
deb984e6 9272#line 9272 "configure"
1cf3d07d 9273#include "confdefs.h"
c9b93377 9274
1cf3d07d
SE
9275#if HAVE_DLFCN_H
9276#include <dlfcn.h>
9277#endif
9278
9279#include <stdio.h>
9280
9281#ifdef RTLD_GLOBAL
9282# define LT_DLGLOBAL RTLD_GLOBAL
9283#else
9284# ifdef DL_GLOBAL
9285# define LT_DLGLOBAL DL_GLOBAL
9286# else
9287# define LT_DLGLOBAL 0
9288# endif
9289#endif
9290
9291/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9292 find out it does not work in some platform. */
9293#ifndef LT_DLLAZY_OR_NOW
9294# ifdef RTLD_LAZY
9295# define LT_DLLAZY_OR_NOW RTLD_LAZY
9296# else
9297# ifdef DL_LAZY
9298# define LT_DLLAZY_OR_NOW DL_LAZY
9299# else
9300# ifdef RTLD_NOW
9301# define LT_DLLAZY_OR_NOW RTLD_NOW
9302# else
9303# ifdef DL_NOW
9304# define LT_DLLAZY_OR_NOW DL_NOW
9305# else
9306# define LT_DLLAZY_OR_NOW 0
9307# endif
9308# endif
9309# endif
9310# endif
9311#endif
9312
9313#ifdef __cplusplus
9314extern "C" void exit (int);
9315#endif
9316
9317void fnord() { int i=42;}
9318int main ()
9319{
9320 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9321 int status = $lt_dlunknown;
9322
9323 if (self)
9324 {
9325 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9326 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9327 /* dlclose (self); */
9328 }
9329 else
9330 puts (dlerror ());
9331
9332 exit (status);
9333}
9334_LT_EOF
9335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9336 (eval $ac_link) 2>&5
c9b93377
JB
9337 ac_status=$?
9338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
9339 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9340 (./conftest; exit; ) >&5 2>/dev/null
9341 lt_status=$?
9342 case x$lt_status in
9343 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9344 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9345 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9346 esac
9347 else :
9348 # compilation failed
9349 lt_cv_dlopen_self=no
9350 fi
9351fi
9352rm -fr conftest*
9353
9354
9355fi
9356echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9357echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9358
9359 if test "x$lt_cv_dlopen_self" = xyes; then
9360 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9361 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9362echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9363if test "${lt_cv_dlopen_self_static+set}" = set; then
9364 echo $ECHO_N "(cached) $ECHO_C" >&6
9365else
9366 if test "$cross_compiling" = yes; then :
9367 lt_cv_dlopen_self_static=cross
9368else
9369 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9370 lt_status=$lt_dlunknown
9371 cat > conftest.$ac_ext <<_LT_EOF
deb984e6 9372#line 9372 "configure"
1cf3d07d
SE
9373#include "confdefs.h"
9374
9375#if HAVE_DLFCN_H
9376#include <dlfcn.h>
9377#endif
9378
9379#include <stdio.h>
9380
9381#ifdef RTLD_GLOBAL
9382# define LT_DLGLOBAL RTLD_GLOBAL
9383#else
9384# ifdef DL_GLOBAL
9385# define LT_DLGLOBAL DL_GLOBAL
9386# else
9387# define LT_DLGLOBAL 0
9388# endif
9389#endif
9390
9391/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9392 find out it does not work in some platform. */
9393#ifndef LT_DLLAZY_OR_NOW
9394# ifdef RTLD_LAZY
9395# define LT_DLLAZY_OR_NOW RTLD_LAZY
9396# else
9397# ifdef DL_LAZY
9398# define LT_DLLAZY_OR_NOW DL_LAZY
9399# else
9400# ifdef RTLD_NOW
9401# define LT_DLLAZY_OR_NOW RTLD_NOW
9402# else
9403# ifdef DL_NOW
9404# define LT_DLLAZY_OR_NOW DL_NOW
9405# else
9406# define LT_DLLAZY_OR_NOW 0
9407# endif
9408# endif
9409# endif
9410# endif
9411#endif
9412
9413#ifdef __cplusplus
9414extern "C" void exit (int);
9415#endif
9416
9417void fnord() { int i=42;}
9418int main ()
9419{
9420 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9421 int status = $lt_dlunknown;
9422
9423 if (self)
9424 {
9425 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9426 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9427 /* dlclose (self); */
9428 }
9429 else
9430 puts (dlerror ());
9431
9432 exit (status);
9433}
9434_LT_EOF
9435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9436 (eval $ac_link) 2>&5
c9b93377
JB
9437 ac_status=$?
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1cf3d07d
SE
9439 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9440 (./conftest; exit; ) >&5 2>/dev/null
9441 lt_status=$?
9442 case x$lt_status in
9443 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9444 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9445 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9446 esac
9447 else :
9448 # compilation failed
9449 lt_cv_dlopen_self_static=no
9450 fi
9451fi
9452rm -fr conftest*
9453
9454
9455fi
9456echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9457echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9458 fi
9459
9460 CPPFLAGS="$save_CPPFLAGS"
9461 LDFLAGS="$save_LDFLAGS"
9462 LIBS="$save_LIBS"
9463 ;;
9464 esac
9465
9466 case $lt_cv_dlopen_self in
9467 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9468 *) enable_dlopen_self=unknown ;;
9469 esac
9470
9471 case $lt_cv_dlopen_self_static in
9472 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9473 *) enable_dlopen_self_static=unknown ;;
9474 esac
9475fi
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493striplib=
9494old_striplib=
9495echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9496echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9497if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9498 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9499 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9500 echo "$as_me:$LINENO: result: yes" >&5
9501echo "${ECHO_T}yes" >&6
9502else
9503# FIXME - insert some real tests, host_os isn't really good enough
9504 case $host_os in
9505 darwin*)
9506 if test -n "$STRIP" ; then
9507 striplib="$STRIP -x"
9508 old_striplib="$STRIP -S"
9509 echo "$as_me:$LINENO: result: yes" >&5
9510echo "${ECHO_T}yes" >&6
9511 else
9512 echo "$as_me:$LINENO: result: no" >&5
9513echo "${ECHO_T}no" >&6
9514 fi
9515 ;;
9516 *)
9517 echo "$as_me:$LINENO: result: no" >&5
9518echo "${ECHO_T}no" >&6
9519 ;;
9520 esac
9521fi
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534 # Report which library types will actually be built
9535 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9536echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9537 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9538echo "${ECHO_T}$can_build_shared" >&6
9539
9540 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9541echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9542 test "$can_build_shared" = "no" && enable_shared=no
9543
9544 # On AIX, shared libraries and static libraries use the same namespace, and
9545 # are all built from PIC.
9546 case $host_os in
9547 aix3*)
9548 test "$enable_shared" = yes && enable_static=no
9549 if test -n "$RANLIB"; then
9550 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9551 postinstall_cmds='$RANLIB $lib'
9552 fi
9553 ;;
9554
95d4f544 9555 aix[4-9]*)
1cf3d07d
SE
9556 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9557 test "$enable_shared" = yes && enable_static=no
9558 fi
9559 ;;
9560 esac
9561 echo "$as_me:$LINENO: result: $enable_shared" >&5
9562echo "${ECHO_T}$enable_shared" >&6
9563
9564 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9565echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9566 # Make sure either enable_shared or enable_static is yes.
9567 test "$enable_shared" = yes || enable_static=yes
9568 echo "$as_me:$LINENO: result: $enable_static" >&5
9569echo "${ECHO_T}$enable_static" >&6
9570
9571
9572
9573
9574fi
9575ac_ext=c
9576ac_cpp='$CPP $CPPFLAGS'
9577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9579ac_compiler_gnu=$ac_cv_c_compiler_gnu
9580
9581CC="$lt_save_CC"
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595 ac_config_commands="$ac_config_commands libtool"
9596
9597
9598
9599
9600# Only expand once:
9601
9602
9603
9604echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
9605echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
9606 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
9607if test "${enable_maintainer_mode+set}" = set; then
9608 enableval="$enable_maintainer_mode"
9609 USE_MAINTAINER_MODE=$enableval
c9b93377 9610else
1cf3d07d
SE
9611 USE_MAINTAINER_MODE=no
9612fi;
9613 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
9614echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
c9b93377 9615
c9b93377 9616
1cf3d07d
SE
9617if test $USE_MAINTAINER_MODE = yes; then
9618 MAINTAINER_MODE_TRUE=
9619 MAINTAINER_MODE_FALSE='#'
9620else
9621 MAINTAINER_MODE_TRUE='#'
9622 MAINTAINER_MODE_FALSE=
c9b93377
JB
9623fi
9624
1cf3d07d
SE
9625 MAINT=$MAINTAINER_MODE_TRUE
9626
c9b93377
JB
9627
9628
9629
9630for ac_header in sys/mman.h
9631do
9632as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9633if eval "test \"\${$as_ac_Header+set}\" = set"; then
9634 echo "$as_me:$LINENO: checking for $ac_header" >&5
9635echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9636if eval "test \"\${$as_ac_Header+set}\" = set"; then
9637 echo $ECHO_N "(cached) $ECHO_C" >&6
9638fi
9639echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9640echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9641else
9642 # Is the header compilable?
9643echo "$as_me:$LINENO: checking $ac_header usability" >&5
9644echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9645cat >conftest.$ac_ext <<_ACEOF
9646/* confdefs.h. */
9647_ACEOF
9648cat confdefs.h >>conftest.$ac_ext
9649cat >>conftest.$ac_ext <<_ACEOF
9650/* end confdefs.h. */
9651$ac_includes_default
9652#include <$ac_header>
9653_ACEOF
9654rm -f conftest.$ac_objext
9655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9656 (eval $ac_compile) 2>conftest.er1
9657 ac_status=$?
9658 grep -v '^ *+' conftest.er1 >conftest.err
9659 rm -f conftest.er1
9660 cat conftest.err >&5
9661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662 (exit $ac_status); } &&
88d8c771
AG
9663 { ac_try='test -z "$ac_c_werror_flag"
9664 || test ! -s conftest.err'
c9b93377
JB
9665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9666 (eval $ac_try) 2>&5
9667 ac_status=$?
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); }; } &&
9670 { ac_try='test -s conftest.$ac_objext'
9671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9672 (eval $ac_try) 2>&5
9673 ac_status=$?
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); }; }; then
9676 ac_header_compiler=yes
9677else
9678 echo "$as_me: failed program was:" >&5
9679sed 's/^/| /' conftest.$ac_ext >&5
9680
9681ac_header_compiler=no
9682fi
9683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9684echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9685echo "${ECHO_T}$ac_header_compiler" >&6
9686
9687# Is the header present?
9688echo "$as_me:$LINENO: checking $ac_header presence" >&5
9689echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9690cat >conftest.$ac_ext <<_ACEOF
9691/* confdefs.h. */
9692_ACEOF
9693cat confdefs.h >>conftest.$ac_ext
9694cat >>conftest.$ac_ext <<_ACEOF
9695/* end confdefs.h. */
9696#include <$ac_header>
9697_ACEOF
9698if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9699 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9700 ac_status=$?
9701 grep -v '^ *+' conftest.er1 >conftest.err
9702 rm -f conftest.er1
9703 cat conftest.err >&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); } >/dev/null; then
9706 if test -s conftest.err; then
9707 ac_cpp_err=$ac_c_preproc_warn_flag
9708 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9709 else
9710 ac_cpp_err=
9711 fi
9712else
9713 ac_cpp_err=yes
9714fi
9715if test -z "$ac_cpp_err"; then
9716 ac_header_preproc=yes
9717else
9718 echo "$as_me: failed program was:" >&5
9719sed 's/^/| /' conftest.$ac_ext >&5
9720
9721 ac_header_preproc=no
9722fi
9723rm -f conftest.err conftest.$ac_ext
9724echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9725echo "${ECHO_T}$ac_header_preproc" >&6
9726
9727# So? What about this header?
9728case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9729 yes:no: )
9730 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9731echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9733echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9734 ac_header_preproc=yes
9735 ;;
9736 no:yes:* )
9737 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9738echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9739 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9740echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9741 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9742echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9743 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9744echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9746echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9747 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9748echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9749 (
9750 cat <<\_ASBOX
9751## ------------------------------------------- ##
9752## Report this to http://gcc.gnu.org/bugs.html ##
9753## ------------------------------------------- ##
9754_ASBOX
9755 ) |
9756 sed "s/^/$as_me: WARNING: /" >&2
9757 ;;
9758esac
9759echo "$as_me:$LINENO: checking for $ac_header" >&5
9760echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9761if eval "test \"\${$as_ac_Header+set}\" = set"; then
9762 echo $ECHO_N "(cached) $ECHO_C" >&6
9763else
9764 eval "$as_ac_Header=\$ac_header_preproc"
9765fi
9766echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9767echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9768
9769fi
9770if test `eval echo '${'$as_ac_Header'}'` = yes; then
9771 cat >>confdefs.h <<_ACEOF
9772#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9773_ACEOF
9774
9775fi
9776
9777done
9778
9779
9780for ac_func in mmap
9781do
9782as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9783echo "$as_me:$LINENO: checking for $ac_func" >&5
9784echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9785if eval "test \"\${$as_ac_var+set}\" = set"; then
9786 echo $ECHO_N "(cached) $ECHO_C" >&6
9787else
9788 cat >conftest.$ac_ext <<_ACEOF
9789/* confdefs.h. */
9790_ACEOF
9791cat confdefs.h >>conftest.$ac_ext
9792cat >>conftest.$ac_ext <<_ACEOF
9793/* end confdefs.h. */
9794/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9796#define $ac_func innocuous_$ac_func
9797
9798/* System header to define __stub macros and hopefully few prototypes,
9799 which can conflict with char $ac_func (); below.
9800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9801 <limits.h> exists even on freestanding compilers. */
9802
9803#ifdef __STDC__
9804# include <limits.h>
9805#else
9806# include <assert.h>
9807#endif
9808
9809#undef $ac_func
9810
9811/* Override any gcc2 internal prototype to avoid an error. */
9812#ifdef __cplusplus
9813extern "C"
9814{
9815#endif
9816/* We use char because int might match the return type of a gcc2
9817 builtin and then its argument prototype would still apply. */
9818char $ac_func ();
9819/* The GNU C library defines this for functions which it implements
9820 to always fail with ENOSYS. Some functions are actually named
9821 something starting with __ and the normal name is an alias. */
9822#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9823choke me
9824#else
9825char (*f) () = $ac_func;
9826#endif
9827#ifdef __cplusplus
9828}
9829#endif
9830
9831int
9832main ()
9833{
9834return f != $ac_func;
9835 ;
9836 return 0;
9837}
9838_ACEOF
9839rm -f conftest.$ac_objext conftest$ac_exeext
9840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9841 (eval $ac_link) 2>conftest.er1
9842 ac_status=$?
9843 grep -v '^ *+' conftest.er1 >conftest.err
9844 rm -f conftest.er1
9845 cat conftest.err >&5
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); } &&
88d8c771
AG
9848 { ac_try='test -z "$ac_c_werror_flag"
9849 || test ! -s conftest.err'
c9b93377
JB
9850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9851 (eval $ac_try) 2>&5
9852 ac_status=$?
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); }; } &&
9855 { ac_try='test -s conftest$ac_exeext'
9856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9857 (eval $ac_try) 2>&5
9858 ac_status=$?
9859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9860 (exit $ac_status); }; }; then
9861 eval "$as_ac_var=yes"
9862else
9863 echo "$as_me: failed program was:" >&5
9864sed 's/^/| /' conftest.$ac_ext >&5
9865
9866eval "$as_ac_var=no"
9867fi
9868rm -f conftest.err conftest.$ac_objext \
9869 conftest$ac_exeext conftest.$ac_ext
9870fi
9871echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9872echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9873if test `eval echo '${'$as_ac_var'}'` = yes; then
9874 cat >>confdefs.h <<_ACEOF
9875#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9876_ACEOF
9877
9878fi
9879done
9880
4d447364
MR
9881
9882if test "${ac_cv_header_sys_mman_h+set}" = set; then
9883 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
9884echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
9885if test "${ac_cv_header_sys_mman_h+set}" = set; then
9886 echo $ECHO_N "(cached) $ECHO_C" >&6
9887fi
9888echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
9889echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
9890else
9891 # Is the header compilable?
9892echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
9893echo $ECHO_N "checking sys/mman.h usability... $ECHO_C" >&6
9894cat >conftest.$ac_ext <<_ACEOF
9895/* confdefs.h. */
9896_ACEOF
9897cat confdefs.h >>conftest.$ac_ext
9898cat >>conftest.$ac_ext <<_ACEOF
9899/* end confdefs.h. */
9900$ac_includes_default
9901#include <sys/mman.h>
9902_ACEOF
9903rm -f conftest.$ac_objext
9904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9905 (eval $ac_compile) 2>conftest.er1
9906 ac_status=$?
9907 grep -v '^ *+' conftest.er1 >conftest.err
9908 rm -f conftest.er1
9909 cat conftest.err >&5
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); } &&
88d8c771
AG
9912 { ac_try='test -z "$ac_c_werror_flag"
9913 || test ! -s conftest.err'
4d447364
MR
9914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9915 (eval $ac_try) 2>&5
9916 ac_status=$?
9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 (exit $ac_status); }; } &&
9919 { ac_try='test -s conftest.$ac_objext'
9920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9921 (eval $ac_try) 2>&5
9922 ac_status=$?
9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 (exit $ac_status); }; }; then
9925 ac_header_compiler=yes
9926else
9927 echo "$as_me: failed program was:" >&5
9928sed 's/^/| /' conftest.$ac_ext >&5
9929
9930ac_header_compiler=no
9931fi
9932rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9933echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9934echo "${ECHO_T}$ac_header_compiler" >&6
9935
9936# Is the header present?
9937echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
9938echo $ECHO_N "checking sys/mman.h presence... $ECHO_C" >&6
9939cat >conftest.$ac_ext <<_ACEOF
9940/* confdefs.h. */
9941_ACEOF
9942cat confdefs.h >>conftest.$ac_ext
9943cat >>conftest.$ac_ext <<_ACEOF
9944/* end confdefs.h. */
9945#include <sys/mman.h>
9946_ACEOF
9947if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9948 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9949 ac_status=$?
9950 grep -v '^ *+' conftest.er1 >conftest.err
9951 rm -f conftest.er1
9952 cat conftest.err >&5
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); } >/dev/null; then
9955 if test -s conftest.err; then
9956 ac_cpp_err=$ac_c_preproc_warn_flag
9957 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9958 else
9959 ac_cpp_err=
9960 fi
9961else
9962 ac_cpp_err=yes
9963fi
9964if test -z "$ac_cpp_err"; then
9965 ac_header_preproc=yes
9966else
9967 echo "$as_me: failed program was:" >&5
9968sed 's/^/| /' conftest.$ac_ext >&5
9969
9970 ac_header_preproc=no
9971fi
9972rm -f conftest.err conftest.$ac_ext
9973echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9974echo "${ECHO_T}$ac_header_preproc" >&6
9975
9976# So? What about this header?
9977case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9978 yes:no: )
9979 { echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
9980echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9981 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
9982echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
9983 ac_header_preproc=yes
9984 ;;
9985 no:yes:* )
9986 { echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
9987echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
9988 { echo "$as_me:$LINENO: WARNING: sys/mman.h: check for missing prerequisite headers?" >&5
9989echo "$as_me: WARNING: sys/mman.h: check for missing prerequisite headers?" >&2;}
9990 { echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
9991echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
9992 { echo "$as_me:$LINENO: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&5
9993echo "$as_me: WARNING: sys/mman.h: section \"Present But Cannot Be Compiled\"" >&2;}
9994 { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
9995echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
9996 { echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
9997echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
9998 (
9999 cat <<\_ASBOX
10000## ------------------------------------------- ##
10001## Report this to http://gcc.gnu.org/bugs.html ##
10002## ------------------------------------------- ##
10003_ASBOX
10004 ) |
10005 sed "s/^/$as_me: WARNING: /" >&2
10006 ;;
10007esac
10008echo "$as_me:$LINENO: checking for sys/mman.h" >&5
10009echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
10010if test "${ac_cv_header_sys_mman_h+set}" = set; then
10011 echo $ECHO_N "(cached) $ECHO_C" >&6
10012else
10013 ac_cv_header_sys_mman_h=$ac_header_preproc
10014fi
10015echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
10016echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
10017
10018fi
10019if test $ac_cv_header_sys_mman_h = yes; then
10020 libffi_header_sys_mman_h=yes
10021else
10022 libffi_header_sys_mman_h=no
10023fi
10024
10025
10026echo "$as_me:$LINENO: checking for mmap" >&5
10027echo $ECHO_N "checking for mmap... $ECHO_C" >&6
10028if test "${ac_cv_func_mmap+set}" = set; then
10029 echo $ECHO_N "(cached) $ECHO_C" >&6
10030else
10031 cat >conftest.$ac_ext <<_ACEOF
10032/* confdefs.h. */
10033_ACEOF
10034cat confdefs.h >>conftest.$ac_ext
10035cat >>conftest.$ac_ext <<_ACEOF
10036/* end confdefs.h. */
10037/* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
10038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10039#define mmap innocuous_mmap
10040
10041/* System header to define __stub macros and hopefully few prototypes,
10042 which can conflict with char mmap (); below.
10043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10044 <limits.h> exists even on freestanding compilers. */
10045
10046#ifdef __STDC__
10047# include <limits.h>
10048#else
10049# include <assert.h>
10050#endif
10051
10052#undef mmap
10053
10054/* Override any gcc2 internal prototype to avoid an error. */
10055#ifdef __cplusplus
10056extern "C"
10057{
10058#endif
10059/* We use char because int might match the return type of a gcc2
10060 builtin and then its argument prototype would still apply. */
10061char mmap ();
10062/* The GNU C library defines this for functions which it implements
10063 to always fail with ENOSYS. Some functions are actually named
10064 something starting with __ and the normal name is an alias. */
10065#if defined (__stub_mmap) || defined (__stub___mmap)
10066choke me
10067#else
10068char (*f) () = mmap;
10069#endif
10070#ifdef __cplusplus
10071}
10072#endif
10073
10074int
10075main ()
10076{
10077return f != mmap;
10078 ;
10079 return 0;
10080}
10081_ACEOF
10082rm -f conftest.$ac_objext conftest$ac_exeext
10083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10084 (eval $ac_link) 2>conftest.er1
10085 ac_status=$?
10086 grep -v '^ *+' conftest.er1 >conftest.err
10087 rm -f conftest.er1
10088 cat conftest.err >&5
10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); } &&
88d8c771
AG
10091 { ac_try='test -z "$ac_c_werror_flag"
10092 || test ! -s conftest.err'
4d447364
MR
10093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10094 (eval $ac_try) 2>&5
10095 ac_status=$?
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); }; } &&
10098 { ac_try='test -s conftest$ac_exeext'
10099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10100 (eval $ac_try) 2>&5
10101 ac_status=$?
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 (exit $ac_status); }; }; then
10104 ac_cv_func_mmap=yes
10105else
10106 echo "$as_me: failed program was:" >&5
10107sed 's/^/| /' conftest.$ac_ext >&5
10108
10109ac_cv_func_mmap=no
10110fi
10111rm -f conftest.err conftest.$ac_objext \
10112 conftest$ac_exeext conftest.$ac_ext
10113fi
10114echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
10115echo "${ECHO_T}$ac_cv_func_mmap" >&6
10116if test $ac_cv_func_mmap = yes; then
10117 libffi_func_mmap=yes
10118else
10119 libffi_func_mmap=no
10120fi
10121
10122if test "$libffi_header_sys_mman_h" != yes \
10123 || test "$libffi_func_mmap" != yes; then
c9b93377
JB
10124 ac_cv_func_mmap_file=no
10125 ac_cv_func_mmap_dev_zero=no
10126 ac_cv_func_mmap_anon=no
10127else
10128 echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
10129echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
10130if test "${ac_cv_func_mmap_file+set}" = set; then
10131 echo $ECHO_N "(cached) $ECHO_C" >&6
10132else
10133 # Add a system to this blacklist if
10134 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
10135 # memory area containing the same data that you'd get if you applied
10136 # read() to the same fd. The only system known to have a problem here
10137 # is VMS, where text files have record structure.
10138 case "$host_os" in
10139 vms* | ultrix*)
10140 ac_cv_func_mmap_file=no ;;
10141 *)
10142 ac_cv_func_mmap_file=yes;;
10143 esac
10144fi
10145echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
10146echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
10147 echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
10148echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
10149if test "${ac_cv_func_mmap_dev_zero+set}" = set; then
10150 echo $ECHO_N "(cached) $ECHO_C" >&6
10151else
10152 # Add a system to this blacklist if it has mmap() but /dev/zero
10153 # does not exist, or if mmapping /dev/zero does not give anonymous
10154 # zeroed pages with both the following properties:
10155 # 1. If you map N consecutive pages in with one call, and then
10156 # unmap any subset of those pages, the pages that were not
10157 # explicitly unmapped remain accessible.
10158 # 2. If you map two adjacent blocks of memory and then unmap them
10159 # both at once, they must both go away.
10160 # Systems known to be in this category are Windows (all variants),
10161 # VMS, and Darwin.
10162 case "$host_os" in
10163 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
10164 ac_cv_func_mmap_dev_zero=no ;;
10165 *)
10166 ac_cv_func_mmap_dev_zero=yes;;
10167 esac
10168fi
10169echo "$as_me:$LINENO: result: $ac_cv_func_mmap_dev_zero" >&5
10170echo "${ECHO_T}$ac_cv_func_mmap_dev_zero" >&6
10171
10172 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
10173 echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
10174echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
10175if test "${ac_cv_decl_map_anon+set}" = set; then
10176 echo $ECHO_N "(cached) $ECHO_C" >&6
10177else
10178 cat >conftest.$ac_ext <<_ACEOF
10179/* confdefs.h. */
10180_ACEOF
10181cat confdefs.h >>conftest.$ac_ext
10182cat >>conftest.$ac_ext <<_ACEOF
10183/* end confdefs.h. */
10184#include <sys/types.h>
10185#include <sys/mman.h>
10186#include <unistd.h>
10187
10188#ifndef MAP_ANONYMOUS
10189#define MAP_ANONYMOUS MAP_ANON
10190#endif
10191
10192int
10193main ()
10194{
10195int n = MAP_ANONYMOUS;
10196 ;
10197 return 0;
10198}
10199_ACEOF
10200rm -f conftest.$ac_objext
10201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10202 (eval $ac_compile) 2>conftest.er1
10203 ac_status=$?
10204 grep -v '^ *+' conftest.er1 >conftest.err
10205 rm -f conftest.er1
10206 cat conftest.err >&5
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); } &&
88d8c771
AG
10209 { ac_try='test -z "$ac_c_werror_flag"
10210 || test ! -s conftest.err'
c9b93377
JB
10211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10212 (eval $ac_try) 2>&5
10213 ac_status=$?
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); }; } &&
10216 { ac_try='test -s conftest.$ac_objext'
10217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10218 (eval $ac_try) 2>&5
10219 ac_status=$?
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); }; }; then
10222 ac_cv_decl_map_anon=yes
10223else
10224 echo "$as_me: failed program was:" >&5
10225sed 's/^/| /' conftest.$ac_ext >&5
10226
10227ac_cv_decl_map_anon=no
10228fi
10229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10230fi
10231echo "$as_me:$LINENO: result: $ac_cv_decl_map_anon" >&5
10232echo "${ECHO_T}$ac_cv_decl_map_anon" >&6
10233
10234 if test $ac_cv_decl_map_anon = no; then
10235 ac_cv_func_mmap_anon=no
10236 else
10237 echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
10238echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
10239if test "${ac_cv_func_mmap_anon+set}" = set; then
10240 echo $ECHO_N "(cached) $ECHO_C" >&6
10241else
10242 # Add a system to this blacklist if it has mmap() and MAP_ANON or
10243 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
10244 # doesn't give anonymous zeroed pages with the same properties listed
10245 # above for use of /dev/zero.
10246 # Systems known to be in this category are Windows, VMS, and SCO Unix.
10247 case "$host_os" in
10248 vms* | cygwin* | pe | mingw* | sco* | udk* )
10249 ac_cv_func_mmap_anon=no ;;
10250 *)
10251 ac_cv_func_mmap_anon=yes;;
10252 esac
10253fi
10254echo "$as_me:$LINENO: result: $ac_cv_func_mmap_anon" >&5
10255echo "${ECHO_T}$ac_cv_func_mmap_anon" >&6
10256 fi
10257fi
10258
10259if test $ac_cv_func_mmap_file = yes; then
10260
10261cat >>confdefs.h <<\_ACEOF
10262#define HAVE_MMAP_FILE 1
10263_ACEOF
10264
10265fi
10266if test $ac_cv_func_mmap_dev_zero = yes; then
10267
10268cat >>confdefs.h <<\_ACEOF
10269#define HAVE_MMAP_DEV_ZERO 1
10270_ACEOF
10271
10272fi
10273if test $ac_cv_func_mmap_anon = yes; then
10274
10275cat >>confdefs.h <<\_ACEOF
10276#define HAVE_MMAP_ANON 1
10277_ACEOF
10278
10279fi
10280
10281
10282
10283
10284if test -d $srcdir/testsuite; then
10285 TESTSUBDIR_TRUE=
10286 TESTSUBDIR_FALSE='#'
10287else
10288 TESTSUBDIR_TRUE='#'
10289 TESTSUBDIR_FALSE=
10290fi
10291
10292
10293TARGETDIR="unknown"
10294case "$host" in
bf8da5fc
RH
10295 alpha*-*-*)
10296 TARGET=ALPHA; TARGETDIR=alpha;
10297 # Support 128-bit long double, changable via command-line switch.
10298 HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
10299 ;;
10300
10301 arm*-*-*)
10302 TARGET=ARM; TARGETDIR=arm
10303 ;;
10304
2e250fa2
BK
10305 amd64-*-freebsd*)
10306 TARGET=X86_64; TARGETDIR=x86
10307 ;;
10308
bf8da5fc
RH
10309 cris-*-*)
10310 TARGET=LIBFFI_CRIS; TARGETDIR=cris
10311 ;;
10312
10313 frv-*-*)
10314 TARGET=FRV; TARGETDIR=frv
10315 ;;
10316
10317 hppa*-*-linux* | parisc*-*-linux*)
10318 TARGET=PA_LINUX; TARGETDIR=pa
10319 ;;
10320 hppa*64-*-hpux*)
10321 TARGET=PA64_HPUX; TARGETDIR=pa
10322 ;;
10323 hppa*-*-hpux*)
10324 TARGET=PA_HPUX; TARGETDIR=pa
10325 ;;
10326
10327 i?86-win32* | i?86-*-cygwin* | i?86-*-mingw*)
10328 TARGET=X86_WIN32; TARGETDIR=x86
10329 ;;
10330 i?86-*-darwin*)
10331 TARGET=X86_DARWIN; TARGETDIR=x86
10332 ;;
04a49983
RO
10333 i?86-*-solaris2.1[0-9]*)
10334 TARGET=X86_64; TARGETDIR=x86
10335 ;;
bf8da5fc
RH
10336 i?86-*-*)
10337 TARGET=X86; TARGETDIR=x86
10338 ;;
10339
10340 ia64*-*-*)
10341 TARGET=IA64; TARGETDIR=ia64
10342 ;;
10343
10344 m32r*-*-*)
10345 TARGET=M32R; TARGETDIR=m32r
10346 ;;
10347
10348 m68k-*-*)
10349 TARGET=M68K; TARGETDIR=m68k
10350 ;;
10351
bf8da5fc 10352 mips-sgi-irix5.* | mips-sgi-irix6.*)
8d5c5e35 10353 TARGET=MIPS; TARGETDIR=mips
bf8da5fc
RH
10354 ;;
10355 mips*-*-linux*)
8d5c5e35 10356 TARGET=MIPS; TARGETDIR=mips
bf8da5fc
RH
10357 ;;
10358
10359 powerpc*-*-linux* | powerpc-*-sysv*)
10360 TARGET=POWERPC; TARGETDIR=powerpc
10361 ;;
10362 powerpc-*-beos*)
10363 TARGET=POWERPC; TARGETDIR=powerpc
10364 ;;
10365 powerpc-*-darwin*)
10366 TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
10367 ;;
10368 powerpc-*-aix* | rs6000-*-aix*)
10369 TARGET=POWERPC_AIX; TARGETDIR=powerpc
10370 ;;
10371 powerpc-*-freebsd*)
10372 TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
10373 ;;
10374 powerpc*-*-rtems*)
10375 TARGET=POWERPC; TARGETDIR=powerpc
10376 ;;
10377
10378 s390-*-* | s390x-*-*)
10379 TARGET=S390; TARGETDIR=s390
10380 ;;
10381
10382 sh-*-* | sh[34]*-*-*)
10383 TARGET=SH; TARGETDIR=sh
10384 ;;
10385 sh64-*-* | sh5*-*-*)
10386 TARGET=SH64; TARGETDIR=sh64
10387 ;;
10388
10389 sparc*-*-*)
10390 TARGET=SPARC; TARGETDIR=sparc
10391 ;;
10392
10393 x86_64-*-darwin*)
10394 TARGET=X86_DARWIN; TARGETDIR=x86
10395 ;;
10396 x86_64-*-cygwin* | x86_64-*-mingw*)
10397 ;;
10398 x86_64-*-*)
10399 TARGET=X86_64; TARGETDIR=x86
10400 ;;
c9b93377
JB
10401esac
10402
10403
10404
10405if test $TARGETDIR = unknown; then
10406 { { echo "$as_me:$LINENO: error: \"libffi has not been ported to $host.\"" >&5
10407echo "$as_me: error: \"libffi has not been ported to $host.\"" >&2;}
10408 { (exit 1); exit 1; }; }
10409fi
10410
10411
10412
8d5c5e35
MR
10413if test x$TARGET = xMIPS; then
10414 MIPS_TRUE=
10415 MIPS_FALSE='#'
c9b93377 10416else
8d5c5e35
MR
10417 MIPS_TRUE='#'
10418 MIPS_FALSE=
c9b93377
JB
10419fi
10420
10421
10422
10423if test x$TARGET = xSPARC; then
10424 SPARC_TRUE=
10425 SPARC_FALSE='#'
10426else
10427 SPARC_TRUE='#'
10428 SPARC_FALSE=
10429fi
10430
10431
10432
10433if test x$TARGET = xX86; then
10434 X86_TRUE=
10435 X86_FALSE='#'
10436else
10437 X86_TRUE='#'
10438 X86_FALSE=
63e5e3e0 10439fi
c9b93377
JB
10440
10441
10442
10443if test x$TARGET = xX86_WIN32; then
10444 X86_WIN32_TRUE=
10445 X86_WIN32_FALSE='#'
3ed8e5b6 10446else
c9b93377
JB
10447 X86_WIN32_TRUE='#'
10448 X86_WIN32_FALSE=
10449fi
3ed8e5b6 10450
c9b93377
JB
10451
10452
a3bd50cc
PB
10453if test x$TARGET = xX86_DARWIN; then
10454 X86_DARWIN_TRUE=
10455 X86_DARWIN_FALSE='#'
10456else
10457 X86_DARWIN_TRUE='#'
10458 X86_DARWIN_FALSE=
10459fi
10460
10461
10462
c9b93377
JB
10463if test x$TARGET = xALPHA; then
10464 ALPHA_TRUE=
10465 ALPHA_FALSE='#'
10466else
10467 ALPHA_TRUE='#'
10468 ALPHA_FALSE=
63e5e3e0 10469fi
3ed8e5b6 10470
c9b93377
JB
10471
10472
10473if test x$TARGET = xIA64; then
10474 IA64_TRUE=
10475 IA64_FALSE='#'
10476else
10477 IA64_TRUE='#'
10478 IA64_FALSE=
63e5e3e0 10479fi
3ed8e5b6 10480
3ed8e5b6 10481
c9b93377 10482
a472e9d4
KI
10483if test x$TARGET = xM32R; then
10484 M32R_TRUE=
10485 M32R_FALSE='#'
10486else
10487 M32R_TRUE='#'
10488 M32R_FALSE=
10489fi
10490
10491
10492
c9b93377
JB
10493if test x$TARGET = xM68K; then
10494 M68K_TRUE=
10495 M68K_FALSE='#'
10496else
10497 M68K_TRUE='#'
10498 M68K_FALSE=
3ed8e5b6 10499fi
c9b93377
JB
10500
10501
10502
10503if test x$TARGET = xPOWERPC; then
10504 POWERPC_TRUE=
10505 POWERPC_FALSE='#'
3ed8e5b6 10506else
c9b93377
JB
10507 POWERPC_TRUE='#'
10508 POWERPC_FALSE=
3ed8e5b6 10509fi
c9b93377
JB
10510
10511
10512
10513if test x$TARGET = xPOWERPC_AIX; then
10514 POWERPC_AIX_TRUE=
10515 POWERPC_AIX_FALSE='#'
3ed8e5b6 10516else
c9b93377
JB
10517 POWERPC_AIX_TRUE='#'
10518 POWERPC_AIX_FALSE=
3ed8e5b6 10519fi
c9b93377
JB
10520
10521
10522
10523if test x$TARGET = xPOWERPC_DARWIN; then
10524 POWERPC_DARWIN_TRUE=
10525 POWERPC_DARWIN_FALSE='#'
3ed8e5b6 10526else
c9b93377
JB
10527 POWERPC_DARWIN_TRUE='#'
10528 POWERPC_DARWIN_FALSE=
10529fi
3ed8e5b6 10530
c9b93377
JB
10531
10532
97067642
AT
10533if test x$TARGET = xPOWERPC_FREEBSD; then
10534 POWERPC_FREEBSD_TRUE=
10535 POWERPC_FREEBSD_FALSE='#'
10536else
10537 POWERPC_FREEBSD_TRUE='#'
10538 POWERPC_FREEBSD_FALSE=
10539fi
10540
10541
10542
c9b93377
JB
10543if test x$TARGET = xARM; then
10544 ARM_TRUE=
10545 ARM_FALSE='#'
10546else
10547 ARM_TRUE='#'
10548 ARM_FALSE=
3ed8e5b6 10549fi
3ed8e5b6 10550
c9b93377
JB
10551
10552
614348bb
SP
10553if test x$TARGET = xLIBFFI_CRIS; then
10554 LIBFFI_CRIS_TRUE=
10555 LIBFFI_CRIS_FALSE='#'
10556else
10557 LIBFFI_CRIS_TRUE='#'
10558 LIBFFI_CRIS_FALSE=
10559fi
10560
10561
10562
88d8c771
AG
10563if test x$TARGET = xFRV; then
10564 FRV_TRUE=
10565 FRV_FALSE='#'
10566else
10567 FRV_TRUE='#'
10568 FRV_FALSE=
10569fi
10570
10571
10572
c9b93377
JB
10573if test x$TARGET = xS390; then
10574 S390_TRUE=
10575 S390_FALSE='#'
3ed8e5b6 10576else
c9b93377
JB
10577 S390_TRUE='#'
10578 S390_FALSE=
3ed8e5b6 10579fi
c9b93377
JB
10580
10581
10582
10583if test x$TARGET = xX86_64; then
10584 X86_64_TRUE=
10585 X86_64_FALSE='#'
3ed8e5b6 10586else
c9b93377
JB
10587 X86_64_TRUE='#'
10588 X86_64_FALSE=
10589fi
3ed8e5b6 10590
c9b93377
JB
10591
10592
10593if test x$TARGET = xSH; then
10594 SH_TRUE=
10595 SH_FALSE='#'
10596else
10597 SH_TRUE='#'
10598 SH_FALSE=
63e5e3e0 10599fi
3ed8e5b6 10600
c9b93377
JB
10601
10602
10603if test x$TARGET = xSH64; then
10604 SH64_TRUE=
10605 SH64_FALSE='#'
63e5e3e0 10606else
c9b93377
JB
10607 SH64_TRUE='#'
10608 SH64_FALSE=
63e5e3e0 10609fi
63e5e3e0 10610
3ed8e5b6
AT
10611
10612
e6c300ef
JDA
10613if test x$TARGET = xPA_LINUX; then
10614 PA_LINUX_TRUE=
10615 PA_LINUX_FALSE='#'
63e5e3e0 10616else
e6c300ef
JDA
10617 PA_LINUX_TRUE='#'
10618 PA_LINUX_FALSE=
10619fi
10620
10621
10622
10623if test x$TARGET = xPA_HPUX; then
10624 PA_HPUX_TRUE=
10625 PA_HPUX_FALSE='#'
10626else
10627 PA_HPUX_TRUE='#'
10628 PA_HPUX_FALSE=
10629fi
10630
10631
10632
10633if test x$TARGET = xPA64_HPUX; then
10634 PA64_HPUX_TRUE=
10635 PA64_HPUX_FALSE='#'
10636else
10637 PA64_HPUX_TRUE='#'
10638 PA64_HPUX_FALSE=
3ed8e5b6 10639fi
3ed8e5b6
AT
10640
10641
10642echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10643echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10644if test "${ac_cv_header_stdc+set}" = set; then
10645 echo $ECHO_N "(cached) $ECHO_C" >&6
10646else
10647 cat >conftest.$ac_ext <<_ACEOF
10648/* confdefs.h. */
10649_ACEOF
10650cat confdefs.h >>conftest.$ac_ext
10651cat >>conftest.$ac_ext <<_ACEOF
10652/* end confdefs.h. */
63e5e3e0
AG
10653#include <stdlib.h>
10654#include <stdarg.h>
10655#include <string.h>
10656#include <float.h>
3ed8e5b6
AT
10657
10658int
10659main ()
10660{
10661
10662 ;
10663 return 0;
10664}
10665_ACEOF
10666rm -f conftest.$ac_objext
10667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10668 (eval $ac_compile) 2>conftest.er1
10669 ac_status=$?
10670 grep -v '^ *+' conftest.er1 >conftest.err
10671 rm -f conftest.er1
10672 cat conftest.err >&5
10673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); } &&
88d8c771
AG
10675 { ac_try='test -z "$ac_c_werror_flag"
10676 || test ! -s conftest.err'
3ed8e5b6
AT
10677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10678 (eval $ac_try) 2>&5
10679 ac_status=$?
10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 (exit $ac_status); }; } &&
10682 { ac_try='test -s conftest.$ac_objext'
10683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10684 (eval $ac_try) 2>&5
10685 ac_status=$?
10686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687 (exit $ac_status); }; }; then
63e5e3e0
AG
10688 ac_cv_header_stdc=yes
10689else
3ed8e5b6
AT
10690 echo "$as_me: failed program was:" >&5
10691sed 's/^/| /' conftest.$ac_ext >&5
10692
10693ac_cv_header_stdc=no
63e5e3e0 10694fi
3ed8e5b6 10695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
63e5e3e0
AG
10696
10697if test $ac_cv_header_stdc = yes; then
10698 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3ed8e5b6
AT
10699 cat >conftest.$ac_ext <<_ACEOF
10700/* confdefs.h. */
10701_ACEOF
10702cat confdefs.h >>conftest.$ac_ext
10703cat >>conftest.$ac_ext <<_ACEOF
10704/* end confdefs.h. */
63e5e3e0 10705#include <string.h>
3ed8e5b6
AT
10706
10707_ACEOF
63e5e3e0 10708if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3ed8e5b6 10709 $EGREP "memchr" >/dev/null 2>&1; then
63e5e3e0
AG
10710 :
10711else
63e5e3e0
AG
10712 ac_cv_header_stdc=no
10713fi
10714rm -f conftest*
10715
10716fi
10717
10718if test $ac_cv_header_stdc = yes; then
10719 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3ed8e5b6
AT
10720 cat >conftest.$ac_ext <<_ACEOF
10721/* confdefs.h. */
10722_ACEOF
10723cat confdefs.h >>conftest.$ac_ext
10724cat >>conftest.$ac_ext <<_ACEOF
10725/* end confdefs.h. */
63e5e3e0 10726#include <stdlib.h>
3ed8e5b6
AT
10727
10728_ACEOF
63e5e3e0 10729if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3ed8e5b6 10730 $EGREP "free" >/dev/null 2>&1; then
63e5e3e0
AG
10731 :
10732else
63e5e3e0
AG
10733 ac_cv_header_stdc=no
10734fi
10735rm -f conftest*
10736
10737fi
10738
10739if test $ac_cv_header_stdc = yes; then
10740 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3ed8e5b6 10741 if test "$cross_compiling" = yes; then
63e5e3e0
AG
10742 :
10743else
3ed8e5b6
AT
10744 cat >conftest.$ac_ext <<_ACEOF
10745/* confdefs.h. */
10746_ACEOF
10747cat confdefs.h >>conftest.$ac_ext
10748cat >>conftest.$ac_ext <<_ACEOF
10749/* end confdefs.h. */
63e5e3e0 10750#include <ctype.h>
3ed8e5b6
AT
10751#if ((' ' & 0x0FF) == 0x020)
10752# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10753# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10754#else
10755# define ISLOWER(c) \
10756 (('a' <= (c) && (c) <= 'i') \
10757 || ('j' <= (c) && (c) <= 'r') \
10758 || ('s' <= (c) && (c) <= 'z'))
10759# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10760#endif
63e5e3e0 10761
3ed8e5b6
AT
10762#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10763int
10764main ()
10765{
10766 int i;
10767 for (i = 0; i < 256; i++)
10768 if (XOR (islower (i), ISLOWER (i))
10769 || toupper (i) != TOUPPER (i))
10770 exit(2);
10771 exit (0);
10772}
10773_ACEOF
10774rm -f conftest$ac_exeext
10775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10776 (eval $ac_link) 2>&5
10777 ac_status=$?
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10781 (eval $ac_try) 2>&5
10782 ac_status=$?
10783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10784 (exit $ac_status); }; }; then
63e5e3e0
AG
10785 :
10786else
3ed8e5b6
AT
10787 echo "$as_me: program exited with status $ac_status" >&5
10788echo "$as_me: failed program was:" >&5
10789sed 's/^/| /' conftest.$ac_ext >&5
10790
10791( exit $ac_status )
10792ac_cv_header_stdc=no
63e5e3e0 10793fi
3ed8e5b6 10794rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
63e5e3e0 10795fi
63e5e3e0
AG
10796fi
10797fi
3ed8e5b6
AT
10798echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10799echo "${ECHO_T}$ac_cv_header_stdc" >&6
63e5e3e0 10800if test $ac_cv_header_stdc = yes; then
3ed8e5b6
AT
10801
10802cat >>confdefs.h <<\_ACEOF
63e5e3e0 10803#define STDC_HEADERS 1
3ed8e5b6 10804_ACEOF
63e5e3e0
AG
10805
10806fi
10807
3ed8e5b6 10808
63e5e3e0
AG
10809for ac_func in memcpy
10810do
3ed8e5b6
AT
10811as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10812echo "$as_me:$LINENO: checking for $ac_func" >&5
10813echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10814if eval "test \"\${$as_ac_var+set}\" = set"; then
10815 echo $ECHO_N "(cached) $ECHO_C" >&6
10816else
10817 cat >conftest.$ac_ext <<_ACEOF
10818/* confdefs.h. */
10819_ACEOF
10820cat confdefs.h >>conftest.$ac_ext
10821cat >>conftest.$ac_ext <<_ACEOF
10822/* end confdefs.h. */
10823/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10825#define $ac_func innocuous_$ac_func
10826
63e5e3e0 10827/* System header to define __stub macros and hopefully few prototypes,
3ed8e5b6
AT
10828 which can conflict with char $ac_func (); below.
10829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10830 <limits.h> exists even on freestanding compilers. */
63e5e3e0 10831
3ed8e5b6
AT
10832#ifdef __STDC__
10833# include <limits.h>
10834#else
10835# include <assert.h>
10836#endif
63e5e3e0 10837
3ed8e5b6
AT
10838#undef $ac_func
10839
10840/* Override any gcc2 internal prototype to avoid an error. */
10841#ifdef __cplusplus
10842extern "C"
10843{
10844#endif
10845/* We use char because int might match the return type of a gcc2
10846 builtin and then its argument prototype would still apply. */
10847char $ac_func ();
63e5e3e0
AG
10848/* The GNU C library defines this for functions which it implements
10849 to always fail with ENOSYS. Some functions are actually named
10850 something starting with __ and the normal name is an alias. */
10851#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10852choke me
10853#else
3ed8e5b6
AT
10854char (*f) () = $ac_func;
10855#endif
10856#ifdef __cplusplus
10857}
63e5e3e0
AG
10858#endif
10859
3ed8e5b6
AT
10860int
10861main ()
10862{
10863return f != $ac_func;
10864 ;
10865 return 0;
10866}
10867_ACEOF
10868rm -f conftest.$ac_objext conftest$ac_exeext
10869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10870 (eval $ac_link) 2>conftest.er1
10871 ac_status=$?
10872 grep -v '^ *+' conftest.er1 >conftest.err
10873 rm -f conftest.er1
10874 cat conftest.err >&5
10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876 (exit $ac_status); } &&
88d8c771
AG
10877 { ac_try='test -z "$ac_c_werror_flag"
10878 || test ! -s conftest.err'
3ed8e5b6
AT
10879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10880 (eval $ac_try) 2>&5
10881 ac_status=$?
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); }; } &&
10884 { ac_try='test -s conftest$ac_exeext'
10885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10886 (eval $ac_try) 2>&5
10887 ac_status=$?
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); }; }; then
10890 eval "$as_ac_var=yes"
10891else
10892 echo "$as_me: failed program was:" >&5
10893sed 's/^/| /' conftest.$ac_ext >&5
10894
10895eval "$as_ac_var=no"
10896fi
10897rm -f conftest.err conftest.$ac_objext \
10898 conftest$ac_exeext conftest.$ac_ext
10899fi
10900echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10901echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10902if test `eval echo '${'$as_ac_var'}'` = yes; then
10903 cat >>confdefs.h <<_ACEOF
10904#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10905_ACEOF
63e5e3e0 10906
63e5e3e0
AG
10907fi
10908done
10909
10910# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10911# for constant arguments. Useless!
3ed8e5b6
AT
10912echo "$as_me:$LINENO: checking for working alloca.h" >&5
10913echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
10914if test "${ac_cv_working_alloca_h+set}" = set; then
10915 echo $ECHO_N "(cached) $ECHO_C" >&6
10916else
10917 cat >conftest.$ac_ext <<_ACEOF
10918/* confdefs.h. */
10919_ACEOF
10920cat confdefs.h >>conftest.$ac_ext
10921cat >>conftest.$ac_ext <<_ACEOF
10922/* end confdefs.h. */
63e5e3e0 10923#include <alloca.h>
3ed8e5b6
AT
10924int
10925main ()
10926{
10927char *p = (char *) alloca (2 * sizeof (int));
10928 ;
10929 return 0;
10930}
10931_ACEOF
10932rm -f conftest.$ac_objext conftest$ac_exeext
10933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10934 (eval $ac_link) 2>conftest.er1
10935 ac_status=$?
10936 grep -v '^ *+' conftest.er1 >conftest.err
10937 rm -f conftest.er1
10938 cat conftest.err >&5
10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); } &&
88d8c771
AG
10941 { ac_try='test -z "$ac_c_werror_flag"
10942 || test ! -s conftest.err'
3ed8e5b6
AT
10943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10944 (eval $ac_try) 2>&5
10945 ac_status=$?
10946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); }; } &&
10948 { ac_try='test -s conftest$ac_exeext'
10949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10950 (eval $ac_try) 2>&5
10951 ac_status=$?
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); }; }; then
10954 ac_cv_working_alloca_h=yes
10955else
10956 echo "$as_me: failed program was:" >&5
10957sed 's/^/| /' conftest.$ac_ext >&5
10958
10959ac_cv_working_alloca_h=no
10960fi
10961rm -f conftest.err conftest.$ac_objext \
10962 conftest$ac_exeext conftest.$ac_ext
10963fi
10964echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10965echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
10966if test $ac_cv_working_alloca_h = yes; then
10967
10968cat >>confdefs.h <<\_ACEOF
63e5e3e0 10969#define HAVE_ALLOCA_H 1
3ed8e5b6 10970_ACEOF
63e5e3e0
AG
10971
10972fi
10973
3ed8e5b6
AT
10974echo "$as_me:$LINENO: checking for alloca" >&5
10975echo $ECHO_N "checking for alloca... $ECHO_C" >&6
10976if test "${ac_cv_func_alloca_works+set}" = set; then
10977 echo $ECHO_N "(cached) $ECHO_C" >&6
63e5e3e0 10978else
3ed8e5b6
AT
10979 cat >conftest.$ac_ext <<_ACEOF
10980/* confdefs.h. */
10981_ACEOF
10982cat confdefs.h >>conftest.$ac_ext
10983cat >>conftest.$ac_ext <<_ACEOF
10984/* end confdefs.h. */
63e5e3e0
AG
10985#ifdef __GNUC__
10986# define alloca __builtin_alloca
10987#else
10988# ifdef _MSC_VER
10989# include <malloc.h>
10990# define alloca _alloca
10991# else
10992# if HAVE_ALLOCA_H
10993# include <alloca.h>
10994# else
10995# ifdef _AIX
10996 #pragma alloca
10997# else
10998# ifndef alloca /* predefined by HP cc +Olibcalls */
10999char *alloca ();
11000# endif
11001# endif
11002# endif
11003# endif
11004#endif
11005
3ed8e5b6
AT
11006int
11007main ()
11008{
11009char *p = (char *) alloca (1);
11010 ;
11011 return 0;
11012}
11013_ACEOF
11014rm -f conftest.$ac_objext conftest$ac_exeext
11015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11016 (eval $ac_link) 2>conftest.er1
11017 ac_status=$?
11018 grep -v '^ *+' conftest.er1 >conftest.err
11019 rm -f conftest.er1
11020 cat conftest.err >&5
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); } &&
88d8c771
AG
11023 { ac_try='test -z "$ac_c_werror_flag"
11024 || test ! -s conftest.err'
3ed8e5b6
AT
11025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11026 (eval $ac_try) 2>&5
11027 ac_status=$?
11028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029 (exit $ac_status); }; } &&
11030 { ac_try='test -s conftest$ac_exeext'
11031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11032 (eval $ac_try) 2>&5
11033 ac_status=$?
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); }; }; then
63e5e3e0
AG
11036 ac_cv_func_alloca_works=yes
11037else
3ed8e5b6
AT
11038 echo "$as_me: failed program was:" >&5
11039sed 's/^/| /' conftest.$ac_ext >&5
11040
11041ac_cv_func_alloca_works=no
63e5e3e0 11042fi
3ed8e5b6
AT
11043rm -f conftest.err conftest.$ac_objext \
11044 conftest$ac_exeext conftest.$ac_ext
63e5e3e0 11045fi
3ed8e5b6
AT
11046echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11047echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
63e5e3e0 11048
63e5e3e0 11049if test $ac_cv_func_alloca_works = yes; then
63e5e3e0 11050
3ed8e5b6
AT
11051cat >>confdefs.h <<\_ACEOF
11052#define HAVE_ALLOCA 1
11053_ACEOF
63e5e3e0 11054
3ed8e5b6 11055else
63e5e3e0 11056 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
3ed8e5b6
AT
11057# that cause trouble. Some versions do not even contain alloca or
11058# contain a buggy version. If you still want to use their alloca,
11059# use ar to extract alloca.o from them instead of compiling alloca.c.
11060
11061ALLOCA=alloca.$ac_objext
11062
11063cat >>confdefs.h <<\_ACEOF
63e5e3e0 11064#define C_ALLOCA 1
3ed8e5b6 11065_ACEOF
63e5e3e0
AG
11066
11067
3ed8e5b6
AT
11068echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
11069echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
11070if test "${ac_cv_os_cray+set}" = set; then
11071 echo $ECHO_N "(cached) $ECHO_C" >&6
63e5e3e0 11072else
3ed8e5b6
AT
11073 cat >conftest.$ac_ext <<_ACEOF
11074/* confdefs.h. */
11075_ACEOF
11076cat confdefs.h >>conftest.$ac_ext
11077cat >>conftest.$ac_ext <<_ACEOF
11078/* end confdefs.h. */
63e5e3e0
AG
11079#if defined(CRAY) && ! defined(CRAY2)
11080webecray
11081#else
11082wenotbecray
11083#endif
11084
3ed8e5b6 11085_ACEOF
63e5e3e0 11086if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3ed8e5b6 11087 $EGREP "webecray" >/dev/null 2>&1; then
63e5e3e0
AG
11088 ac_cv_os_cray=yes
11089else
63e5e3e0
AG
11090 ac_cv_os_cray=no
11091fi
11092rm -f conftest*
11093
11094fi
3ed8e5b6
AT
11095echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
11096echo "${ECHO_T}$ac_cv_os_cray" >&6
63e5e3e0 11097if test $ac_cv_os_cray = yes; then
3ed8e5b6
AT
11098 for ac_func in _getb67 GETB67 getb67; do
11099 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11100echo "$as_me:$LINENO: checking for $ac_func" >&5
11101echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11102if eval "test \"\${$as_ac_var+set}\" = set"; then
11103 echo $ECHO_N "(cached) $ECHO_C" >&6
11104else
11105 cat >conftest.$ac_ext <<_ACEOF
11106/* confdefs.h. */
11107_ACEOF
11108cat confdefs.h >>conftest.$ac_ext
11109cat >>conftest.$ac_ext <<_ACEOF
11110/* end confdefs.h. */
11111/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11113#define $ac_func innocuous_$ac_func
11114
63e5e3e0 11115/* System header to define __stub macros and hopefully few prototypes,
3ed8e5b6
AT
11116 which can conflict with char $ac_func (); below.
11117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11118 <limits.h> exists even on freestanding compilers. */
11119
11120#ifdef __STDC__
11121# include <limits.h>
11122#else
11123# include <assert.h>
11124#endif
63e5e3e0 11125
3ed8e5b6 11126#undef $ac_func
63e5e3e0 11127
3ed8e5b6
AT
11128/* Override any gcc2 internal prototype to avoid an error. */
11129#ifdef __cplusplus
11130extern "C"
11131{
11132#endif
11133/* We use char because int might match the return type of a gcc2
11134 builtin and then its argument prototype would still apply. */
11135char $ac_func ();
63e5e3e0
AG
11136/* The GNU C library defines this for functions which it implements
11137 to always fail with ENOSYS. Some functions are actually named
11138 something starting with __ and the normal name is an alias. */
11139#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11140choke me
11141#else
3ed8e5b6
AT
11142char (*f) () = $ac_func;
11143#endif
11144#ifdef __cplusplus
11145}
63e5e3e0
AG
11146#endif
11147
3ed8e5b6
AT
11148int
11149main ()
11150{
11151return f != $ac_func;
11152 ;
11153 return 0;
11154}
11155_ACEOF
11156rm -f conftest.$ac_objext conftest$ac_exeext
11157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11158 (eval $ac_link) 2>conftest.er1
11159 ac_status=$?
11160 grep -v '^ *+' conftest.er1 >conftest.err
11161 rm -f conftest.er1
11162 cat conftest.err >&5
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); } &&
88d8c771
AG
11165 { ac_try='test -z "$ac_c_werror_flag"
11166 || test ! -s conftest.err'
3ed8e5b6
AT
11167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11168 (eval $ac_try) 2>&5
11169 ac_status=$?
11170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11171 (exit $ac_status); }; } &&
11172 { ac_try='test -s conftest$ac_exeext'
11173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11174 (eval $ac_try) 2>&5
11175 ac_status=$?
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); }; }; then
11178 eval "$as_ac_var=yes"
11179else
11180 echo "$as_me: failed program was:" >&5
11181sed 's/^/| /' conftest.$ac_ext >&5
11182
11183eval "$as_ac_var=no"
11184fi
11185rm -f conftest.err conftest.$ac_objext \
11186 conftest$ac_exeext conftest.$ac_ext
11187fi
11188echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11189echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11190if test `eval echo '${'$as_ac_var'}'` = yes; then
11191
11192cat >>confdefs.h <<_ACEOF
63e5e3e0 11193#define CRAY_STACKSEG_END $ac_func
3ed8e5b6 11194_ACEOF
63e5e3e0 11195
3ed8e5b6 11196 break
63e5e3e0
AG
11197fi
11198
3ed8e5b6 11199 done
63e5e3e0
AG
11200fi
11201
3ed8e5b6
AT
11202echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
11203echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
11204if test "${ac_cv_c_stack_direction+set}" = set; then
11205 echo $ECHO_N "(cached) $ECHO_C" >&6
63e5e3e0
AG
11206else
11207 if test "$cross_compiling" = yes; then
11208 ac_cv_c_stack_direction=0
11209else
3ed8e5b6
AT
11210 cat >conftest.$ac_ext <<_ACEOF
11211/* confdefs.h. */
11212_ACEOF
11213cat confdefs.h >>conftest.$ac_ext
11214cat >>conftest.$ac_ext <<_ACEOF
11215/* end confdefs.h. */
11216int
63e5e3e0
AG
11217find_stack_direction ()
11218{
11219 static char *addr = 0;
11220 auto char dummy;
11221 if (addr == 0)
11222 {
11223 addr = &dummy;
11224 return find_stack_direction ();
11225 }
11226 else
11227 return (&dummy > addr) ? 1 : -1;
11228}
3ed8e5b6
AT
11229
11230int
63e5e3e0
AG
11231main ()
11232{
3ed8e5b6 11233 exit (find_stack_direction () < 0);
63e5e3e0 11234}
3ed8e5b6
AT
11235_ACEOF
11236rm -f conftest$ac_exeext
11237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11238 (eval $ac_link) 2>&5
11239 ac_status=$?
11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11243 (eval $ac_try) 2>&5
11244 ac_status=$?
11245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11246 (exit $ac_status); }; }; then
63e5e3e0
AG
11247 ac_cv_c_stack_direction=1
11248else
3ed8e5b6
AT
11249 echo "$as_me: program exited with status $ac_status" >&5
11250echo "$as_me: failed program was:" >&5
11251sed 's/^/| /' conftest.$ac_ext >&5
11252
11253( exit $ac_status )
11254ac_cv_c_stack_direction=-1
63e5e3e0 11255fi
3ed8e5b6 11256rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
63e5e3e0 11257fi
63e5e3e0 11258fi
3ed8e5b6
AT
11259echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11260echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
63e5e3e0 11261
3ed8e5b6 11262cat >>confdefs.h <<_ACEOF
63e5e3e0 11263#define STACK_DIRECTION $ac_cv_c_stack_direction
3ed8e5b6
AT
11264_ACEOF
11265
63e5e3e0
AG
11266
11267fi
11268
11269
a097ef55
KC
11270echo "$as_me:$LINENO: checking for double" >&5
11271echo $ECHO_N "checking for double... $ECHO_C" >&6
11272if test "${ac_cv_type_double+set}" = set; then
11273 echo $ECHO_N "(cached) $ECHO_C" >&6
11274else
11275 cat >conftest.$ac_ext <<_ACEOF
11276/* confdefs.h. */
11277_ACEOF
11278cat confdefs.h >>conftest.$ac_ext
11279cat >>conftest.$ac_ext <<_ACEOF
11280/* end confdefs.h. */
11281$ac_includes_default
11282int
11283main ()
11284{
11285if ((double *) 0)
11286 return 0;
11287if (sizeof (double))
11288 return 0;
11289 ;
11290 return 0;
11291}
11292_ACEOF
11293rm -f conftest.$ac_objext
11294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11295 (eval $ac_compile) 2>conftest.er1
11296 ac_status=$?
11297 grep -v '^ *+' conftest.er1 >conftest.err
11298 rm -f conftest.er1
11299 cat conftest.err >&5
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); } &&
11302 { ac_try='test -z "$ac_c_werror_flag"
11303 || test ! -s conftest.err'
11304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11305 (eval $ac_try) 2>&5
11306 ac_status=$?
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); }; } &&
11309 { ac_try='test -s conftest.$ac_objext'
11310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11311 (eval $ac_try) 2>&5
11312 ac_status=$?
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); }; }; then
11315 ac_cv_type_double=yes
11316else
11317 echo "$as_me: failed program was:" >&5
11318sed 's/^/| /' conftest.$ac_ext >&5
11319
11320ac_cv_type_double=no
11321fi
11322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11323fi
11324echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
11325echo "${ECHO_T}$ac_cv_type_double" >&6
11326
3ed8e5b6
AT
11327echo "$as_me:$LINENO: checking size of double" >&5
11328echo $ECHO_N "checking size of double... $ECHO_C" >&6
11329if test "${ac_cv_sizeof_double+set}" = set; then
11330 echo $ECHO_N "(cached) $ECHO_C" >&6
63e5e3e0 11331else
a097ef55
KC
11332 if test "$ac_cv_type_double" = yes; then
11333 # The cast to unsigned long works around a bug in the HP C Compiler
11334 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11335 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11336 # This bug is HP SR number 8606223364.
11337 if test "$cross_compiling" = yes; then
11338 # Depending upon the size, compute the lo and hi bounds.
11339cat >conftest.$ac_ext <<_ACEOF
11340/* confdefs.h. */
11341_ACEOF
11342cat confdefs.h >>conftest.$ac_ext
11343cat >>conftest.$ac_ext <<_ACEOF
11344/* end confdefs.h. */
11345$ac_includes_default
11346int
11347main ()
11348{
11349static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
11350test_array [0] = 0
11351
11352 ;
11353 return 0;
11354}
11355_ACEOF
11356rm -f conftest.$ac_objext
11357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11358 (eval $ac_compile) 2>conftest.er1
11359 ac_status=$?
11360 grep -v '^ *+' conftest.er1 >conftest.err
11361 rm -f conftest.er1
11362 cat conftest.err >&5
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); } &&
11365 { ac_try='test -z "$ac_c_werror_flag"
11366 || test ! -s conftest.err'
11367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11368 (eval $ac_try) 2>&5
11369 ac_status=$?
11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); }; } &&
11372 { ac_try='test -s conftest.$ac_objext'
11373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11374 (eval $ac_try) 2>&5
11375 ac_status=$?
11376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 (exit $ac_status); }; }; then
11378 ac_lo=0 ac_mid=0
11379 while :; do
11380 cat >conftest.$ac_ext <<_ACEOF
11381/* confdefs.h. */
11382_ACEOF
11383cat confdefs.h >>conftest.$ac_ext
11384cat >>conftest.$ac_ext <<_ACEOF
11385/* end confdefs.h. */
11386$ac_includes_default
11387int
11388main ()
11389{
11390static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
11391test_array [0] = 0
11392
11393 ;
11394 return 0;
11395}
11396_ACEOF
11397rm -f conftest.$ac_objext
11398if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11399 (eval $ac_compile) 2>conftest.er1
11400 ac_status=$?
11401 grep -v '^ *+' conftest.er1 >conftest.err
11402 rm -f conftest.er1
11403 cat conftest.err >&5
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); } &&
11406 { ac_try='test -z "$ac_c_werror_flag"
11407 || test ! -s conftest.err'
11408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11409 (eval $ac_try) 2>&5
11410 ac_status=$?
11411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11412 (exit $ac_status); }; } &&
11413 { ac_try='test -s conftest.$ac_objext'
11414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11415 (eval $ac_try) 2>&5
11416 ac_status=$?
11417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418 (exit $ac_status); }; }; then
11419 ac_hi=$ac_mid; break
11420else
11421 echo "$as_me: failed program was:" >&5
11422sed 's/^/| /' conftest.$ac_ext >&5
11423
11424ac_lo=`expr $ac_mid + 1`
11425 if test $ac_lo -le $ac_mid; then
11426 ac_lo= ac_hi=
11427 break
11428 fi
11429 ac_mid=`expr 2 '*' $ac_mid + 1`
11430fi
11431rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11432 done
11433else
11434 echo "$as_me: failed program was:" >&5
11435sed 's/^/| /' conftest.$ac_ext >&5
11436
11437cat >conftest.$ac_ext <<_ACEOF
11438/* confdefs.h. */
11439_ACEOF
11440cat confdefs.h >>conftest.$ac_ext
11441cat >>conftest.$ac_ext <<_ACEOF
11442/* end confdefs.h. */
11443$ac_includes_default
11444int
11445main ()
11446{
11447static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
11448test_array [0] = 0
11449
11450 ;
11451 return 0;
11452}
11453_ACEOF
11454rm -f conftest.$ac_objext
11455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11456 (eval $ac_compile) 2>conftest.er1
11457 ac_status=$?
11458 grep -v '^ *+' conftest.er1 >conftest.err
11459 rm -f conftest.er1
11460 cat conftest.err >&5
11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); } &&
11463 { ac_try='test -z "$ac_c_werror_flag"
11464 || test ! -s conftest.err'
11465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11466 (eval $ac_try) 2>&5
11467 ac_status=$?
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); }; } &&
11470 { ac_try='test -s conftest.$ac_objext'
11471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11472 (eval $ac_try) 2>&5
11473 ac_status=$?
11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); }; }; then
11476 ac_hi=-1 ac_mid=-1
11477 while :; do
11478 cat >conftest.$ac_ext <<_ACEOF
11479/* confdefs.h. */
11480_ACEOF
11481cat confdefs.h >>conftest.$ac_ext
11482cat >>conftest.$ac_ext <<_ACEOF
11483/* end confdefs.h. */
11484$ac_includes_default
11485int
11486main ()
11487{
11488static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
11489test_array [0] = 0
11490
11491 ;
11492 return 0;
11493}
11494_ACEOF
11495rm -f conftest.$ac_objext
11496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11497 (eval $ac_compile) 2>conftest.er1
11498 ac_status=$?
11499 grep -v '^ *+' conftest.er1 >conftest.err
11500 rm -f conftest.er1
11501 cat conftest.err >&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); } &&
11504 { ac_try='test -z "$ac_c_werror_flag"
11505 || test ! -s conftest.err'
11506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11507 (eval $ac_try) 2>&5
11508 ac_status=$?
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); }; } &&
11511 { ac_try='test -s conftest.$ac_objext'
11512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11513 (eval $ac_try) 2>&5
11514 ac_status=$?
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); }; }; then
11517 ac_lo=$ac_mid; break
11518else
11519 echo "$as_me: failed program was:" >&5
11520sed 's/^/| /' conftest.$ac_ext >&5
11521
11522ac_hi=`expr '(' $ac_mid ')' - 1`
11523 if test $ac_mid -le $ac_hi; then
11524 ac_lo= ac_hi=
11525 break
11526 fi
11527 ac_mid=`expr 2 '*' $ac_mid`
11528fi
11529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11530 done
11531else
11532 echo "$as_me: failed program was:" >&5
11533sed 's/^/| /' conftest.$ac_ext >&5
11534
11535ac_lo= ac_hi=
11536fi
11537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11538fi
11539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11540# Binary search between lo and hi bounds.
11541while test "x$ac_lo" != "x$ac_hi"; do
11542 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11543 cat >conftest.$ac_ext <<_ACEOF
11544/* confdefs.h. */
11545_ACEOF
11546cat confdefs.h >>conftest.$ac_ext
11547cat >>conftest.$ac_ext <<_ACEOF
11548/* end confdefs.h. */
11549$ac_includes_default
11550int
11551main ()
11552{
11553static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
11554test_array [0] = 0
11555
11556 ;
11557 return 0;
11558}
11559_ACEOF
11560rm -f conftest.$ac_objext
11561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11562 (eval $ac_compile) 2>conftest.er1
11563 ac_status=$?
11564 grep -v '^ *+' conftest.er1 >conftest.err
11565 rm -f conftest.er1
11566 cat conftest.err >&5
11567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11568 (exit $ac_status); } &&
11569 { ac_try='test -z "$ac_c_werror_flag"
11570 || test ! -s conftest.err'
11571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11572 (eval $ac_try) 2>&5
11573 ac_status=$?
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); }; } &&
11576 { ac_try='test -s conftest.$ac_objext'
11577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11578 (eval $ac_try) 2>&5
11579 ac_status=$?
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); }; }; then
11582 ac_hi=$ac_mid
11583else
11584 echo "$as_me: failed program was:" >&5
11585sed 's/^/| /' conftest.$ac_ext >&5
11586
11587ac_lo=`expr '(' $ac_mid ')' + 1`
11588fi
11589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11590done
11591case $ac_lo in
11592?*) ac_cv_sizeof_double=$ac_lo;;
11593'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
11594See \`config.log' for more details." >&5
11595echo "$as_me: error: cannot compute sizeof (double), 77
11596See \`config.log' for more details." >&2;}
11597 { (exit 1); exit 1; }; } ;;
11598esac
11599else
11600 if test "$cross_compiling" = yes; then
11601 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11602See \`config.log' for more details." >&5
11603echo "$as_me: error: cannot run test program while cross compiling
11604See \`config.log' for more details." >&2;}
11605 { (exit 1); exit 1; }; }
11606else
11607 cat >conftest.$ac_ext <<_ACEOF
11608/* confdefs.h. */
11609_ACEOF
11610cat confdefs.h >>conftest.$ac_ext
11611cat >>conftest.$ac_ext <<_ACEOF
11612/* end confdefs.h. */
11613$ac_includes_default
11614long longval () { return (long) (sizeof (double)); }
11615unsigned long ulongval () { return (long) (sizeof (double)); }
11616#include <stdio.h>
11617#include <stdlib.h>
11618int
11619main ()
11620{
11621
11622 FILE *f = fopen ("conftest.val", "w");
11623 if (! f)
11624 exit (1);
11625 if (((long) (sizeof (double))) < 0)
11626 {
11627 long i = longval ();
11628 if (i != ((long) (sizeof (double))))
11629 exit (1);
11630 fprintf (f, "%ld\n", i);
11631 }
11632 else
11633 {
11634 unsigned long i = ulongval ();
11635 if (i != ((long) (sizeof (double))))
11636 exit (1);
11637 fprintf (f, "%lu\n", i);
11638 }
11639 exit (ferror (f) || fclose (f) != 0);
11640
11641 ;
11642 return 0;
11643}
11644_ACEOF
11645rm -f conftest$ac_exeext
11646if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11647 (eval $ac_link) 2>&5
11648 ac_status=$?
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11652 (eval $ac_try) 2>&5
11653 ac_status=$?
11654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11655 (exit $ac_status); }; }; then
11656 ac_cv_sizeof_double=`cat conftest.val`
11657else
11658 echo "$as_me: program exited with status $ac_status" >&5
11659echo "$as_me: failed program was:" >&5
11660sed 's/^/| /' conftest.$ac_ext >&5
11661
11662( exit $ac_status )
11663{ { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
11664See \`config.log' for more details." >&5
11665echo "$as_me: error: cannot compute sizeof (double), 77
11666See \`config.log' for more details." >&2;}
11667 { (exit 1); exit 1; }; }
11668fi
11669rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11670fi
11671fi
11672rm -f conftest.val
11673else
11674 ac_cv_sizeof_double=0
11675fi
11676fi
11677echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
11678echo "${ECHO_T}$ac_cv_sizeof_double" >&6
11679cat >>confdefs.h <<_ACEOF
11680#define SIZEOF_DOUBLE $ac_cv_sizeof_double
11681_ACEOF
11682
11683
11684echo "$as_me:$LINENO: checking for long double" >&5
11685echo $ECHO_N "checking for long double... $ECHO_C" >&6
11686if test "${ac_cv_type_long_double+set}" = set; then
11687 echo $ECHO_N "(cached) $ECHO_C" >&6
11688else
11689 cat >conftest.$ac_ext <<_ACEOF
11690/* confdefs.h. */
11691_ACEOF
11692cat confdefs.h >>conftest.$ac_ext
11693cat >>conftest.$ac_ext <<_ACEOF
11694/* end confdefs.h. */
11695$ac_includes_default
11696int
11697main ()
11698{
11699if ((long double *) 0)
11700 return 0;
11701if (sizeof (long double))
11702 return 0;
11703 ;
11704 return 0;
11705}
11706_ACEOF
11707rm -f conftest.$ac_objext
11708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11709 (eval $ac_compile) 2>conftest.er1
11710 ac_status=$?
11711 grep -v '^ *+' conftest.er1 >conftest.err
11712 rm -f conftest.er1
11713 cat conftest.err >&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } &&
11716 { ac_try='test -z "$ac_c_werror_flag"
11717 || test ! -s conftest.err'
11718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11719 (eval $ac_try) 2>&5
11720 ac_status=$?
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); }; } &&
11723 { ac_try='test -s conftest.$ac_objext'
11724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11725 (eval $ac_try) 2>&5
11726 ac_status=$?
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); }; }; then
11729 ac_cv_type_long_double=yes
11730else
11731 echo "$as_me: failed program was:" >&5
11732sed 's/^/| /' conftest.$ac_ext >&5
11733
11734ac_cv_type_long_double=no
11735fi
11736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11737fi
11738echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11739echo "${ECHO_T}$ac_cv_type_long_double" >&6
11740
11741echo "$as_me:$LINENO: checking size of long double" >&5
11742echo $ECHO_N "checking size of long double... $ECHO_C" >&6
11743if test "${ac_cv_sizeof_long_double+set}" = set; then
11744 echo $ECHO_N "(cached) $ECHO_C" >&6
11745else
11746 if test "$ac_cv_type_long_double" = yes; then
11747 # The cast to unsigned long works around a bug in the HP C Compiler
11748 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11749 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11750 # This bug is HP SR number 8606223364.
11751 if test "$cross_compiling" = yes; then
11752 # Depending upon the size, compute the lo and hi bounds.
11753cat >conftest.$ac_ext <<_ACEOF
11754/* confdefs.h. */
11755_ACEOF
11756cat confdefs.h >>conftest.$ac_ext
11757cat >>conftest.$ac_ext <<_ACEOF
11758/* end confdefs.h. */
11759$ac_includes_default
11760int
11761main ()
11762{
11763static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= 0)];
11764test_array [0] = 0
11765
11766 ;
11767 return 0;
11768}
11769_ACEOF
11770rm -f conftest.$ac_objext
11771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11772 (eval $ac_compile) 2>conftest.er1
11773 ac_status=$?
11774 grep -v '^ *+' conftest.er1 >conftest.err
11775 rm -f conftest.er1
11776 cat conftest.err >&5
11777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778 (exit $ac_status); } &&
11779 { ac_try='test -z "$ac_c_werror_flag"
11780 || test ! -s conftest.err'
11781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11782 (eval $ac_try) 2>&5
11783 ac_status=$?
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); }; } &&
11786 { ac_try='test -s conftest.$ac_objext'
11787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11788 (eval $ac_try) 2>&5
11789 ac_status=$?
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); }; }; then
11792 ac_lo=0 ac_mid=0
11793 while :; do
11794 cat >conftest.$ac_ext <<_ACEOF
11795/* confdefs.h. */
11796_ACEOF
11797cat confdefs.h >>conftest.$ac_ext
11798cat >>conftest.$ac_ext <<_ACEOF
11799/* end confdefs.h. */
11800$ac_includes_default
11801int
11802main ()
11803{
11804static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
11805test_array [0] = 0
11806
11807 ;
11808 return 0;
11809}
11810_ACEOF
11811rm -f conftest.$ac_objext
11812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11813 (eval $ac_compile) 2>conftest.er1
11814 ac_status=$?
11815 grep -v '^ *+' conftest.er1 >conftest.err
11816 rm -f conftest.er1
11817 cat conftest.err >&5
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); } &&
11820 { ac_try='test -z "$ac_c_werror_flag"
11821 || test ! -s conftest.err'
11822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11823 (eval $ac_try) 2>&5
11824 ac_status=$?
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); }; } &&
11827 { ac_try='test -s conftest.$ac_objext'
11828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11829 (eval $ac_try) 2>&5
11830 ac_status=$?
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); }; }; then
11833 ac_hi=$ac_mid; break
11834else
11835 echo "$as_me: failed program was:" >&5
11836sed 's/^/| /' conftest.$ac_ext >&5
11837
11838ac_lo=`expr $ac_mid + 1`
11839 if test $ac_lo -le $ac_mid; then
11840 ac_lo= ac_hi=
11841 break
11842 fi
11843 ac_mid=`expr 2 '*' $ac_mid + 1`
11844fi
11845rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11846 done
11847else
11848 echo "$as_me: failed program was:" >&5
11849sed 's/^/| /' conftest.$ac_ext >&5
11850
11851cat >conftest.$ac_ext <<_ACEOF
3ed8e5b6
AT
11852/* confdefs.h. */
11853_ACEOF
11854cat confdefs.h >>conftest.$ac_ext
11855cat >>conftest.$ac_ext <<_ACEOF
11856/* end confdefs.h. */
a097ef55
KC
11857$ac_includes_default
11858int
11859main ()
11860{
11861static int test_array [1 - 2 * !(((long) (sizeof (long double))) < 0)];
11862test_array [0] = 0
e2f2e70a 11863
a097ef55
KC
11864 ;
11865 return 0;
11866}
11867_ACEOF
11868rm -f conftest.$ac_objext
11869if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11870 (eval $ac_compile) 2>conftest.er1
11871 ac_status=$?
11872 grep -v '^ *+' conftest.er1 >conftest.err
11873 rm -f conftest.er1
11874 cat conftest.err >&5
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); } &&
11877 { ac_try='test -z "$ac_c_werror_flag"
11878 || test ! -s conftest.err'
11879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11880 (eval $ac_try) 2>&5
11881 ac_status=$?
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); }; } &&
11884 { ac_try='test -s conftest.$ac_objext'
11885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11886 (eval $ac_try) 2>&5
11887 ac_status=$?
11888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889 (exit $ac_status); }; }; then
11890 ac_hi=-1 ac_mid=-1
11891 while :; do
11892 cat >conftest.$ac_ext <<_ACEOF
11893/* confdefs.h. */
11894_ACEOF
11895cat confdefs.h >>conftest.$ac_ext
11896cat >>conftest.$ac_ext <<_ACEOF
11897/* end confdefs.h. */
11898$ac_includes_default
3ed8e5b6
AT
11899int
11900main ()
11901{
a097ef55
KC
11902static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= $ac_mid)];
11903test_array [0] = 0
11904
3ed8e5b6
AT
11905 ;
11906 return 0;
11907}
11908_ACEOF
11909rm -f conftest.$ac_objext
11910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11911 (eval $ac_compile) 2>conftest.er1
11912 ac_status=$?
11913 grep -v '^ *+' conftest.er1 >conftest.err
11914 rm -f conftest.er1
11915 cat conftest.err >&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); } &&
88d8c771
AG
11918 { ac_try='test -z "$ac_c_werror_flag"
11919 || test ! -s conftest.err'
3ed8e5b6
AT
11920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11921 (eval $ac_try) 2>&5
11922 ac_status=$?
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); }; } &&
11925 { ac_try='test -s conftest.$ac_objext'
11926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11927 (eval $ac_try) 2>&5
11928 ac_status=$?
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); }; }; then
a097ef55 11931 ac_lo=$ac_mid; break
63e5e3e0 11932else
3ed8e5b6
AT
11933 echo "$as_me: failed program was:" >&5
11934sed 's/^/| /' conftest.$ac_ext >&5
11935
a097ef55
KC
11936ac_hi=`expr '(' $ac_mid ')' - 1`
11937 if test $ac_mid -le $ac_hi; then
11938 ac_lo= ac_hi=
11939 break
11940 fi
11941 ac_mid=`expr 2 '*' $ac_mid`
63e5e3e0 11942fi
3ed8e5b6 11943rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a097ef55
KC
11944 done
11945else
11946 echo "$as_me: failed program was:" >&5
11947sed 's/^/| /' conftest.$ac_ext >&5
e2f2e70a 11948
a097ef55 11949ac_lo= ac_hi=
63e5e3e0 11950fi
a097ef55 11951rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
63e5e3e0 11952fi
a097ef55
KC
11953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11954# Binary search between lo and hi bounds.
11955while test "x$ac_lo" != "x$ac_hi"; do
11956 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3ed8e5b6
AT
11957 cat >conftest.$ac_ext <<_ACEOF
11958/* confdefs.h. */
11959_ACEOF
11960cat confdefs.h >>conftest.$ac_ext
11961cat >>conftest.$ac_ext <<_ACEOF
11962/* end confdefs.h. */
a097ef55 11963$ac_includes_default
3ed8e5b6
AT
11964int
11965main ()
11966{
a097ef55
KC
11967static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
11968test_array [0] = 0
11969
3ed8e5b6
AT
11970 ;
11971 return 0;
11972}
11973_ACEOF
11974rm -f conftest.$ac_objext
11975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11976 (eval $ac_compile) 2>conftest.er1
11977 ac_status=$?
11978 grep -v '^ *+' conftest.er1 >conftest.err
11979 rm -f conftest.er1
11980 cat conftest.err >&5
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); } &&
88d8c771
AG
11983 { ac_try='test -z "$ac_c_werror_flag"
11984 || test ! -s conftest.err'
3ed8e5b6
AT
11985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11986 (eval $ac_try) 2>&5
11987 ac_status=$?
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 (exit $ac_status); }; } &&
11990 { ac_try='test -s conftest.$ac_objext'
11991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11992 (eval $ac_try) 2>&5
11993 ac_status=$?
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 (exit $ac_status); }; }; then
a097ef55 11996 ac_hi=$ac_mid
63e5e3e0 11997else
3ed8e5b6
AT
11998 echo "$as_me: failed program was:" >&5
11999sed 's/^/| /' conftest.$ac_ext >&5
12000
a097ef55 12001ac_lo=`expr '(' $ac_mid ')' + 1`
63e5e3e0 12002fi
3ed8e5b6 12003rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e2f2e70a 12004done
a097ef55
KC
12005case $ac_lo in
12006?*) ac_cv_sizeof_long_double=$ac_lo;;
12007'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
12008See \`config.log' for more details." >&5
12009echo "$as_me: error: cannot compute sizeof (long double), 77
12010See \`config.log' for more details." >&2;}
12011 { (exit 1); exit 1; }; } ;;
12012esac
12013else
12014 if test "$cross_compiling" = yes; then
12015 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12016See \`config.log' for more details." >&5
12017echo "$as_me: error: cannot run test program while cross compiling
12018See \`config.log' for more details." >&2;}
12019 { (exit 1); exit 1; }; }
12020else
12021 cat >conftest.$ac_ext <<_ACEOF
12022/* confdefs.h. */
12023_ACEOF
12024cat confdefs.h >>conftest.$ac_ext
12025cat >>conftest.$ac_ext <<_ACEOF
12026/* end confdefs.h. */
12027$ac_includes_default
12028long longval () { return (long) (sizeof (long double)); }
12029unsigned long ulongval () { return (long) (sizeof (long double)); }
12030#include <stdio.h>
12031#include <stdlib.h>
12032int
12033main ()
12034{
e2f2e70a 12035
a097ef55
KC
12036 FILE *f = fopen ("conftest.val", "w");
12037 if (! f)
12038 exit (1);
12039 if (((long) (sizeof (long double))) < 0)
12040 {
12041 long i = longval ();
12042 if (i != ((long) (sizeof (long double))))
12043 exit (1);
12044 fprintf (f, "%ld\n", i);
12045 }
12046 else
12047 {
12048 unsigned long i = ulongval ();
12049 if (i != ((long) (sizeof (long double))))
12050 exit (1);
12051 fprintf (f, "%lu\n", i);
12052 }
12053 exit (ferror (f) || fclose (f) != 0);
12054
12055 ;
12056 return 0;
12057}
12058_ACEOF
12059rm -f conftest$ac_exeext
12060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12061 (eval $ac_link) 2>&5
12062 ac_status=$?
12063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12066 (eval $ac_try) 2>&5
12067 ac_status=$?
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); }; }; then
12070 ac_cv_sizeof_long_double=`cat conftest.val`
12071else
12072 echo "$as_me: program exited with status $ac_status" >&5
12073echo "$as_me: failed program was:" >&5
12074sed 's/^/| /' conftest.$ac_ext >&5
63e5e3e0 12075
a097ef55
KC
12076( exit $ac_status )
12077{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
12078See \`config.log' for more details." >&5
12079echo "$as_me: error: cannot compute sizeof (long double), 77
12080See \`config.log' for more details." >&2;}
3ed8e5b6 12081 { (exit 1); exit 1; }; }
63e5e3e0 12082fi
a097ef55
KC
12083rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12084fi
12085fi
12086rm -f conftest.val
12087else
12088 ac_cv_sizeof_long_double=0
12089fi
12090fi
3ed8e5b6
AT
12091echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12092echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6
3ed8e5b6 12093cat >>confdefs.h <<_ACEOF
63e5e3e0 12094#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
3ed8e5b6 12095_ACEOF
63e5e3e0
AG
12096
12097
12098
1450eb7a 12099# Also AC_SUBST this variable for ffi.h.
bf8da5fc
RH
12100if test -z "$HAVE_LONG_DOUBLE"; then
12101 HAVE_LONG_DOUBLE=0
12102 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
12103 if test $ac_cv_sizeof_long_double != 0; then
12104 HAVE_LONG_DOUBLE=1
3ed8e5b6
AT
12105
12106cat >>confdefs.h <<\_ACEOF
1450eb7a 12107#define HAVE_LONG_DOUBLE 1
3ed8e5b6 12108_ACEOF
63e5e3e0 12109
bf8da5fc 12110 fi
1450eb7a 12111 fi
63e5e3e0 12112fi
63e5e3e0
AG
12113
12114
3ed8e5b6
AT
12115echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
12116echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
12117if test "${ac_cv_c_bigendian+set}" = set; then
12118 echo $ECHO_N "(cached) $ECHO_C" >&6
63e5e3e0 12119else
a097ef55 12120 # See if sys/param.h defines the BYTE_ORDER macro.
3ed8e5b6
AT
12121cat >conftest.$ac_ext <<_ACEOF
12122/* confdefs.h. */
12123_ACEOF
12124cat confdefs.h >>conftest.$ac_ext
12125cat >>conftest.$ac_ext <<_ACEOF
12126/* end confdefs.h. */
63e5e3e0
AG
12127#include <sys/types.h>
12128#include <sys/param.h>
a097ef55 12129
3ed8e5b6
AT
12130int
12131main ()
12132{
63e5e3e0
AG
12133#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12134 bogus endian macros
12135#endif
a097ef55 12136
3ed8e5b6
AT
12137 ;
12138 return 0;
12139}
12140_ACEOF
12141rm -f conftest.$ac_objext
12142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12143 (eval $ac_compile) 2>conftest.er1
12144 ac_status=$?
12145 grep -v '^ *+' conftest.er1 >conftest.err
12146 rm -f conftest.er1
12147 cat conftest.err >&5
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); } &&
88d8c771
AG
12150 { ac_try='test -z "$ac_c_werror_flag"
12151 || test ! -s conftest.err'
3ed8e5b6
AT
12152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12153 (eval $ac_try) 2>&5
12154 ac_status=$?
12155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156 (exit $ac_status); }; } &&
12157 { ac_try='test -s conftest.$ac_objext'
12158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12159 (eval $ac_try) 2>&5
12160 ac_status=$?
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); }; }; then
63e5e3e0 12163 # It does; now see whether it defined to BIG_ENDIAN or not.
3ed8e5b6
AT
12164cat >conftest.$ac_ext <<_ACEOF
12165/* confdefs.h. */
12166_ACEOF
12167cat confdefs.h >>conftest.$ac_ext
12168cat >>conftest.$ac_ext <<_ACEOF
12169/* end confdefs.h. */
63e5e3e0
AG
12170#include <sys/types.h>
12171#include <sys/param.h>
a097ef55 12172
3ed8e5b6
AT
12173int
12174main ()
12175{
63e5e3e0
AG
12176#if BYTE_ORDER != BIG_ENDIAN
12177 not big endian
12178#endif
a097ef55 12179
3ed8e5b6
AT
12180 ;
12181 return 0;
12182}
12183_ACEOF
12184rm -f conftest.$ac_objext
12185if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12186 (eval $ac_compile) 2>conftest.er1
12187 ac_status=$?
12188 grep -v '^ *+' conftest.er1 >conftest.err
12189 rm -f conftest.er1
12190 cat conftest.err >&5
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); } &&
88d8c771
AG
12193 { ac_try='test -z "$ac_c_werror_flag"
12194 || test ! -s conftest.err'
3ed8e5b6
AT
12195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12196 (eval $ac_try) 2>&5
12197 ac_status=$?
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); }; } &&
12200 { ac_try='test -s conftest.$ac_objext'
12201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12202 (eval $ac_try) 2>&5
12203 ac_status=$?
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); }; }; then
63e5e3e0
AG
12206 ac_cv_c_bigendian=yes
12207else
3ed8e5b6
AT
12208 echo "$as_me: failed program was:" >&5
12209sed 's/^/| /' conftest.$ac_ext >&5
12210
12211ac_cv_c_bigendian=no
63e5e3e0 12212fi
3ed8e5b6 12213rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
63e5e3e0 12214else
3ed8e5b6
AT
12215 echo "$as_me: failed program was:" >&5
12216sed 's/^/| /' conftest.$ac_ext >&5
12217
a097ef55
KC
12218# It does not; compile a test program.
12219if test "$cross_compiling" = yes; then
12220 # try to guess the endianness by grepping values into an object file
12221 ac_cv_c_bigendian=unknown
12222 cat >conftest.$ac_ext <<_ACEOF
12223/* confdefs.h. */
12224_ACEOF
12225cat confdefs.h >>conftest.$ac_ext
12226cat >>conftest.$ac_ext <<_ACEOF
12227/* end confdefs.h. */
12228short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12229short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12230void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
12231short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12232short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12233void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
12234int
12235main ()
12236{
12237 _ascii (); _ebcdic ();
12238 ;
12239 return 0;
12240}
12241_ACEOF
12242rm -f conftest.$ac_objext
12243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12244 (eval $ac_compile) 2>conftest.er1
12245 ac_status=$?
12246 grep -v '^ *+' conftest.er1 >conftest.err
12247 rm -f conftest.er1
12248 cat conftest.err >&5
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); } &&
12251 { ac_try='test -z "$ac_c_werror_flag"
12252 || test ! -s conftest.err'
12253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12254 (eval $ac_try) 2>&5
12255 ac_status=$?
12256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257 (exit $ac_status); }; } &&
12258 { ac_try='test -s conftest.$ac_objext'
12259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12260 (eval $ac_try) 2>&5
12261 ac_status=$?
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); }; }; then
12264 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
12265 ac_cv_c_bigendian=yes
12266fi
12267if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12268 if test "$ac_cv_c_bigendian" = unknown; then
12269 ac_cv_c_bigendian=no
12270 else
12271 # finding both strings is unlikely to happen, but who knows?
12272 ac_cv_c_bigendian=unknown
12273 fi
12274fi
12275else
12276 echo "$as_me: failed program was:" >&5
12277sed 's/^/| /' conftest.$ac_ext >&5
12278
63e5e3e0 12279fi
3ed8e5b6 12280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3ed8e5b6
AT
12281else
12282 cat >conftest.$ac_ext <<_ACEOF
12283/* confdefs.h. */
12284_ACEOF
12285cat confdefs.h >>conftest.$ac_ext
12286cat >>conftest.$ac_ext <<_ACEOF
12287/* end confdefs.h. */
a097ef55
KC
12288int
12289main ()
12290{
63e5e3e0
AG
12291 /* Are we little or big endian? From Harbison&Steele. */
12292 union
12293 {
12294 long l;
12295 char c[sizeof (long)];
12296 } u;
12297 u.l = 1;
12298 exit (u.c[sizeof (long) - 1] == 1);
12299}
3ed8e5b6
AT
12300_ACEOF
12301rm -f conftest$ac_exeext
12302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12303 (eval $ac_link) 2>&5
12304 ac_status=$?
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12308 (eval $ac_try) 2>&5
12309 ac_status=$?
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); }; }; then
63e5e3e0
AG
12312 ac_cv_c_bigendian=no
12313else
3ed8e5b6
AT
12314 echo "$as_me: program exited with status $ac_status" >&5
12315echo "$as_me: failed program was:" >&5
12316sed 's/^/| /' conftest.$ac_ext >&5
12317
12318( exit $ac_status )
12319ac_cv_c_bigendian=yes
63e5e3e0 12320fi
3ed8e5b6 12321rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
63e5e3e0 12322fi
63e5e3e0 12323fi
a097ef55 12324rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
63e5e3e0 12325fi
3ed8e5b6
AT
12326echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
12327echo "${ECHO_T}$ac_cv_c_bigendian" >&6
a097ef55
KC
12328case $ac_cv_c_bigendian in
12329 yes)
3ed8e5b6
AT
12330
12331cat >>confdefs.h <<\_ACEOF
63e5e3e0 12332#define WORDS_BIGENDIAN 1
3ed8e5b6 12333_ACEOF
a097ef55
KC
12334 ;;
12335 no)
12336 ;;
12337 *)
12338 { { echo "$as_me:$LINENO: error: unknown endianness
12339presetting ac_cv_c_bigendian=no (or yes) will help" >&5
12340echo "$as_me: error: unknown endianness
12341presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
12342 { (exit 1); exit 1; }; } ;;
12343esac
63e5e3e0
AG
12344
12345
e6fbf387
RZ
12346echo "$as_me:$LINENO: checking assembler .cfi pseudo-op support" >&5
12347echo $ECHO_N "checking assembler .cfi pseudo-op support... $ECHO_C" >&6
12348if test "${libffi_cv_as_cfi_pseudo_op+set}" = set; then
12349 echo $ECHO_N "(cached) $ECHO_C" >&6
12350else
12351
12352 libffi_cv_as_cfi_pseudo_op=unknown
12353 cat >conftest.$ac_ext <<_ACEOF
12354/* confdefs.h. */
12355_ACEOF
12356cat confdefs.h >>conftest.$ac_ext
12357cat >>conftest.$ac_ext <<_ACEOF
12358/* end confdefs.h. */
12359asm (".cfi_startproc\n\t.cfi_endproc");
12360int
12361main ()
12362{
12363
12364 ;
12365 return 0;
12366}
12367_ACEOF
12368rm -f conftest.$ac_objext
12369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12370 (eval $ac_compile) 2>conftest.er1
12371 ac_status=$?
12372 grep -v '^ *+' conftest.er1 >conftest.err
12373 rm -f conftest.er1
12374 cat conftest.err >&5
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); } &&
12377 { ac_try='test -z "$ac_c_werror_flag"
12378 || test ! -s conftest.err'
12379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12380 (eval $ac_try) 2>&5
12381 ac_status=$?
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 (exit $ac_status); }; } &&
12384 { ac_try='test -s conftest.$ac_objext'
12385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12386 (eval $ac_try) 2>&5
12387 ac_status=$?
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); }; }; then
12390 libffi_cv_as_cfi_pseudo_op=yes
12391else
12392 echo "$as_me: failed program was:" >&5
12393sed 's/^/| /' conftest.$ac_ext >&5
12394
12395libffi_cv_as_cfi_pseudo_op=no
12396fi
12397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12398
12399fi
12400echo "$as_me:$LINENO: result: $libffi_cv_as_cfi_pseudo_op" >&5
12401echo "${ECHO_T}$libffi_cv_as_cfi_pseudo_op" >&6
12402if test "x$libffi_cv_as_cfi_pseudo_op" = xyes; then
12403
12404cat >>confdefs.h <<\_ACEOF
12405#define HAVE_AS_CFI_PSEUDO_OP 1
12406_ACEOF
12407
12408fi
12409
189ab118 12410if test x$TARGET = xSPARC; then
3ed8e5b6
AT
12411 echo "$as_me:$LINENO: checking assembler and linker support unaligned pc related relocs" >&5
12412echo $ECHO_N "checking assembler and linker support unaligned pc related relocs... $ECHO_C" >&6
12413if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then
12414 echo $ECHO_N "(cached) $ECHO_C" >&6
5d84cf0b 12415else
3ed8e5b6 12416
5d84cf0b
JJ
12417 save_CFLAGS="$CFLAGS"
12418 save_LDFLAGS="$LDFLAGS"
12419 CFLAGS="$CFLAGS -fpic"
12420 LDFLAGS="$LDFLAGS -shared"
3ed8e5b6
AT
12421 cat >conftest.$ac_ext <<_ACEOF
12422/* confdefs.h. */
12423_ACEOF
12424cat confdefs.h >>conftest.$ac_ext
12425cat >>conftest.$ac_ext <<_ACEOF
12426/* end confdefs.h. */
5d84cf0b 12427asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
3ed8e5b6
AT
12428int
12429main ()
12430{
5d84cf0b 12431
3ed8e5b6
AT
12432 ;
12433 return 0;
12434}
12435_ACEOF
12436rm -f conftest.$ac_objext conftest$ac_exeext
12437if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12438 (eval $ac_link) 2>conftest.er1
12439 ac_status=$?
12440 grep -v '^ *+' conftest.er1 >conftest.err
12441 rm -f conftest.er1
12442 cat conftest.err >&5
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); } &&
88d8c771
AG
12445 { ac_try='test -z "$ac_c_werror_flag"
12446 || test ! -s conftest.err'
3ed8e5b6
AT
12447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12448 (eval $ac_try) 2>&5
12449 ac_status=$?
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); }; } &&
12452 { ac_try='test -s conftest$ac_exeext'
12453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12454 (eval $ac_try) 2>&5
12455 ac_status=$?
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); }; }; then
5d84cf0b
JJ
12458 libffi_cv_as_sparc_ua_pcrel=yes
12459else
3ed8e5b6
AT
12460 echo "$as_me: failed program was:" >&5
12461sed 's/^/| /' conftest.$ac_ext >&5
12462
12463libffi_cv_as_sparc_ua_pcrel=no
5d84cf0b 12464fi
3ed8e5b6
AT
12465rm -f conftest.err conftest.$ac_objext \
12466 conftest$ac_exeext conftest.$ac_ext
5d84cf0b
JJ
12467 CFLAGS="$save_CFLAGS"
12468 LDFLAGS="$save_LDFLAGS"
12469fi
3ed8e5b6
AT
12470echo "$as_me:$LINENO: result: $libffi_cv_as_sparc_ua_pcrel" >&5
12471echo "${ECHO_T}$libffi_cv_as_sparc_ua_pcrel" >&6
5d84cf0b 12472 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
3ed8e5b6
AT
12473
12474cat >>confdefs.h <<\_ACEOF
5d84cf0b 12475#define HAVE_AS_SPARC_UA_PCREL 1
3ed8e5b6 12476_ACEOF
bd19c9f4
JS
12477
12478 fi
12479
3ed8e5b6
AT
12480 echo "$as_me:$LINENO: checking assembler .register pseudo-op support" >&5
12481echo $ECHO_N "checking assembler .register pseudo-op support... $ECHO_C" >&6
12482if test "${libffi_cv_as_register_pseudo_op+set}" = set; then
12483 echo $ECHO_N "(cached) $ECHO_C" >&6
bd19c9f4 12484else
3ed8e5b6 12485
bd19c9f4
JS
12486 libffi_cv_as_register_pseudo_op=unknown
12487 # Check if we have .register
3ed8e5b6
AT
12488 cat >conftest.$ac_ext <<_ACEOF
12489/* confdefs.h. */
12490_ACEOF
12491cat confdefs.h >>conftest.$ac_ext
12492cat >>conftest.$ac_ext <<_ACEOF
12493/* end confdefs.h. */
bd19c9f4 12494asm (".register %g2, #scratch");
3ed8e5b6
AT
12495int
12496main ()
12497{
bd19c9f4 12498
3ed8e5b6
AT
12499 ;
12500 return 0;
12501}
12502_ACEOF
12503rm -f conftest.$ac_objext
12504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12505 (eval $ac_compile) 2>conftest.er1
12506 ac_status=$?
12507 grep -v '^ *+' conftest.er1 >conftest.err
12508 rm -f conftest.er1
12509 cat conftest.err >&5
12510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511 (exit $ac_status); } &&
88d8c771
AG
12512 { ac_try='test -z "$ac_c_werror_flag"
12513 || test ! -s conftest.err'
3ed8e5b6
AT
12514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12515 (eval $ac_try) 2>&5
12516 ac_status=$?
12517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518 (exit $ac_status); }; } &&
12519 { ac_try='test -s conftest.$ac_objext'
12520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12521 (eval $ac_try) 2>&5
12522 ac_status=$?
12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524 (exit $ac_status); }; }; then
bd19c9f4
JS
12525 libffi_cv_as_register_pseudo_op=yes
12526else
3ed8e5b6
AT
12527 echo "$as_me: failed program was:" >&5
12528sed 's/^/| /' conftest.$ac_ext >&5
12529
12530libffi_cv_as_register_pseudo_op=no
bd19c9f4 12531fi
3ed8e5b6 12532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bd19c9f4 12533
3ed8e5b6
AT
12534fi
12535echo "$as_me:$LINENO: result: $libffi_cv_as_register_pseudo_op" >&5
12536echo "${ECHO_T}$libffi_cv_as_register_pseudo_op" >&6
bd19c9f4 12537 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
3ed8e5b6
AT
12538
12539cat >>confdefs.h <<\_ACEOF
bd19c9f4 12540#define HAVE_AS_REGISTER_PSEUDO_OP 1
3ed8e5b6 12541_ACEOF
5d84cf0b
JJ
12542
12543 fi
12544fi
12545
3ed8e5b6
AT
12546echo "$as_me:$LINENO: checking whether .eh_frame section should be read-only" >&5
12547echo $ECHO_N "checking whether .eh_frame section should be read-only... $ECHO_C" >&6
12548if test "${libffi_cv_ro_eh_frame+set}" = set; then
12549 echo $ECHO_N "(cached) $ECHO_C" >&6
a733b15e 12550else
3ed8e5b6 12551
a733b15e
JJ
12552 libffi_cv_ro_eh_frame=no
12553 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
12554 if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
12555 if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
12556 libffi_cv_ro_eh_frame=yes
12557 elif grep '.section.*eh_frame.*#alloc' conftest.c \
12558 | grep -v '#write' > /dev/null; then
12559 libffi_cv_ro_eh_frame=yes
12560 fi
12561 fi
12562 rm -f conftest.*
a733b15e 12563
3ed8e5b6
AT
12564fi
12565echo "$as_me:$LINENO: result: $libffi_cv_ro_eh_frame" >&5
12566echo "${ECHO_T}$libffi_cv_ro_eh_frame" >&6
a733b15e 12567if test "x$libffi_cv_ro_eh_frame" = xyes; then
3ed8e5b6
AT
12568
12569cat >>confdefs.h <<\_ACEOF
a733b15e 12570#define HAVE_RO_EH_FRAME 1
3ed8e5b6 12571_ACEOF
1450eb7a 12572
3ed8e5b6
AT
12573
12574cat >>confdefs.h <<\_ACEOF
1450eb7a 12575#define EH_FRAME_FLAGS "a"
3ed8e5b6 12576_ACEOF
1450eb7a
AT
12577
12578else
3ed8e5b6
AT
12579
12580cat >>confdefs.h <<\_ACEOF
1450eb7a 12581#define EH_FRAME_FLAGS "aw"
3ed8e5b6 12582_ACEOF
a733b15e
JJ
12583
12584fi
12585
8a42356f
JJ
12586echo "$as_me:$LINENO: checking for __attribute__((visibility(\"hidden\")))" >&5
12587echo $ECHO_N "checking for __attribute__((visibility(\"hidden\")))... $ECHO_C" >&6
12588if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then
12589 echo $ECHO_N "(cached) $ECHO_C" >&6
12590else
12591
12592 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
12593 libffi_cv_hidden_visibility_attribute=no
12594 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
12595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12596 (eval $ac_try) 2>&5
12597 ac_status=$?
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); }; }; then
12600 if grep '\.hidden.*foo' conftest.s >/dev/null; then
12601 libffi_cv_hidden_visibility_attribute=yes
12602 fi
12603 fi
12604 rm -f conftest.*
12605
12606fi
12607echo "$as_me:$LINENO: result: $libffi_cv_hidden_visibility_attribute" >&5
12608echo "${ECHO_T}$libffi_cv_hidden_visibility_attribute" >&6
12609if test $libffi_cv_hidden_visibility_attribute = yes; then
12610
12611cat >>confdefs.h <<\_ACEOF
12612#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1
12613_ACEOF
12614
12615fi
12616
12617
12618
12619
63e5e3e0
AG
12620
12621
12622
12623
12624
12625# Check whether --enable-debug or --disable-debug was given.
12626if test "${enable_debug+set}" = set; then
12627 enableval="$enable_debug"
7d45b968 12628 if test "$enable_debug" = "yes"; then
3ed8e5b6
AT
12629
12630cat >>confdefs.h <<\_ACEOF
63e5e3e0 12631#define FFI_DEBUG 1
3ed8e5b6
AT
12632_ACEOF
12633
12634 fi
12635fi;
12636
12637# Check whether --enable-structs or --disable-structs was given.
12638if test "${enable_structs+set}" = set; then
12639 enableval="$enable_structs"
12640 if test "$enable_structs" = "no"; then
12641
12642cat >>confdefs.h <<\_ACEOF
12643#define FFI_NO_STRUCTS 1
12644_ACEOF
12645
12646 fi
12647fi;
12648
12649# Check whether --enable-raw-api or --disable-raw-api was given.
12650if test "${enable_raw_api+set}" = set; then
12651 enableval="$enable_raw_api"
12652 if test "$enable_raw_api" = "no"; then
12653
12654cat >>confdefs.h <<\_ACEOF
12655#define FFI_NO_RAW_API 1
12656_ACEOF
12657
12658 fi
12659fi;
12660
12661# Check whether --enable-purify-safety or --disable-purify-safety was given.
12662if test "${enable_purify_safety+set}" = set; then
12663 enableval="$enable_purify_safety"
12664 if test "$enable_purify_safety" = "yes"; then
12665
12666cat >>confdefs.h <<\_ACEOF
12667#define USING_PURIFY 1
12668_ACEOF
12669
12670 fi
12671fi;
12672
12673if test -n "$with_cross_host" &&
12674 test x"$with_cross_host" != x"no"; then
12675 toolexecdir='$(exec_prefix)/$(target_alias)'
12676 toolexeclibdir='$(toolexecdir)/lib'
12677else
12678 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
12679 toolexeclibdir='$(libdir)'
12680fi
12681multi_os_directory=`$CC -print-multi-os-directory`
12682case $multi_os_directory in
12683 .) ;; # Avoid trailing /.
12684 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
12685esac
12686
12687
12688
3ed8e5b6
AT
12689if test "${multilib}" = "yes"; then
12690 multilib_arg="--enable-multilib"
12691else
12692 multilib_arg=
12693fi
12694
12695 ac_config_commands="$ac_config_commands include"
12696
12697 ac_config_commands="$ac_config_commands src"
12698
12699
12700 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
12701
12702
12703 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile"
12704
12705
12706cat >confcache <<\_ACEOF
12707# This file is a shell script that caches the results of configure
12708# tests run on this system so they can be shared between configure
12709# scripts and configure runs, see configure's option --config-cache.
12710# It is not useful on other systems. If it contains results you don't
12711# want to keep, you may remove or edit it.
12712#
12713# config.status only pays attention to the cache file if you give it
12714# the --recheck option to rerun configure.
12715#
12716# `ac_cv_env_foo' variables (set or unset) will be overridden when
12717# loading this file, other *unset* `ac_cv_foo' will be assigned the
12718# following values.
12719
12720_ACEOF
12721
12722# The following way of writing the cache mishandles newlines in values,
12723# but we know of no workaround that is simple, portable, and efficient.
12724# So, don't put newlines in cache variables' values.
12725# Ultrix sh set writes to stderr and can't be redirected directly,
12726# and sets the high bit in the cache file unless we assign to the vars.
12727{
12728 (set) 2>&1 |
12729 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12730 *ac_space=\ *)
12731 # `set' does not quote correctly, so add quotes (double-quote
12732 # substitution turns \\\\ into \\, and sed turns \\ into \).
12733 sed -n \
12734 "s/'/'\\\\''/g;
12735 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12736 ;;
12737 *)
12738 # `set' quotes correctly as required by POSIX, so do not add quotes.
12739 sed -n \
12740 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12741 ;;
12742 esac;
12743} |
12744 sed '
12745 t clear
12746 : clear
12747 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12748 t end
12749 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12750 : end' >>confcache
12751if diff $cache_file confcache >/dev/null 2>&1; then :; else
12752 if test -w $cache_file; then
12753 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12754 cat confcache >$cache_file
12755 else
12756 echo "not updating unwritable cache $cache_file"
12757 fi
12758fi
12759rm -f confcache
12760
12761test "x$prefix" = xNONE && prefix=$ac_default_prefix
12762# Let make expand exec_prefix.
12763test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12764
12765# VPATH may cause trouble with some makes, so we remove $(srcdir),
12766# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12767# trailing colons and then remove the whole line if VPATH becomes empty
12768# (actually we leave an empty line to preserve line numbers).
12769if test "x$srcdir" = x.; then
12770 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12771s/:*\$(srcdir):*/:/;
12772s/:*\${srcdir}:*/:/;
12773s/:*@srcdir@:*/:/;
12774s/^\([^=]*=[ ]*\):*/\1/;
12775s/:*$//;
12776s/^[^=]*=[ ]*$//;
12777}'
12778fi
12779
12780DEFS=-DHAVE_CONFIG_H
12781
12782ac_libobjs=
12783ac_ltlibobjs=
12784for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12785 # 1. Remove the extension, and $U if already installed.
12786 ac_i=`echo "$ac_i" |
12787 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12788 # 2. Add them.
12789 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12790 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12791done
12792LIBOBJS=$ac_libobjs
12793
12794LTLIBOBJS=$ac_ltlibobjs
12795
12796
12797if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12798 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12799Usually this means the macro was only invoked conditionally." >&5
12800echo "$as_me: error: conditional \"AMDEP\" was never defined.
12801Usually this means the macro was only invoked conditionally." >&2;}
12802 { (exit 1); exit 1; }; }
12803fi
12804if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12805 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12806Usually this means the macro was only invoked conditionally." >&5
12807echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12808Usually this means the macro was only invoked conditionally." >&2;}
12809 { (exit 1); exit 1; }; }
12810fi
12811if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12812 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
12813Usually this means the macro was only invoked conditionally." >&5
12814echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
12815Usually this means the macro was only invoked conditionally." >&2;}
12816 { (exit 1); exit 1; }; }
12817fi
12818if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
12819 { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
12820Usually this means the macro was only invoked conditionally." >&5
12821echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
12822Usually this means the macro was only invoked conditionally." >&2;}
12823 { (exit 1); exit 1; }; }
12824fi
8d5c5e35
MR
12825if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
12826 { { echo "$as_me:$LINENO: error: conditional \"MIPS\" was never defined.
3ed8e5b6 12827Usually this means the macro was only invoked conditionally." >&5
8d5c5e35 12828echo "$as_me: error: conditional \"MIPS\" was never defined.
3ed8e5b6
AT
12829Usually this means the macro was only invoked conditionally." >&2;}
12830 { (exit 1); exit 1; }; }
12831fi
12832if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
12833 { { echo "$as_me:$LINENO: error: conditional \"SPARC\" was never defined.
12834Usually this means the macro was only invoked conditionally." >&5
12835echo "$as_me: error: conditional \"SPARC\" was never defined.
12836Usually this means the macro was only invoked conditionally." >&2;}
12837 { (exit 1); exit 1; }; }
12838fi
12839if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
12840 { { echo "$as_me:$LINENO: error: conditional \"X86\" was never defined.
12841Usually this means the macro was only invoked conditionally." >&5
12842echo "$as_me: error: conditional \"X86\" was never defined.
12843Usually this means the macro was only invoked conditionally." >&2;}
12844 { (exit 1); exit 1; }; }
12845fi
12846if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
12847 { { echo "$as_me:$LINENO: error: conditional \"X86_WIN32\" was never defined.
12848Usually this means the macro was only invoked conditionally." >&5
12849echo "$as_me: error: conditional \"X86_WIN32\" was never defined.
12850Usually this means the macro was only invoked conditionally." >&2;}
12851 { (exit 1); exit 1; }; }
12852fi
a3bd50cc
PB
12853if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
12854 { { echo "$as_me:$LINENO: error: conditional \"X86_DARWIN\" was never defined.
12855Usually this means the macro was only invoked conditionally." >&5
12856echo "$as_me: error: conditional \"X86_DARWIN\" was never defined.
12857Usually this means the macro was only invoked conditionally." >&2;}
12858 { (exit 1); exit 1; }; }
12859fi
3ed8e5b6
AT
12860if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
12861 { { echo "$as_me:$LINENO: error: conditional \"ALPHA\" was never defined.
12862Usually this means the macro was only invoked conditionally." >&5
12863echo "$as_me: error: conditional \"ALPHA\" was never defined.
12864Usually this means the macro was only invoked conditionally." >&2;}
12865 { (exit 1); exit 1; }; }
12866fi
12867if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
12868 { { echo "$as_me:$LINENO: error: conditional \"IA64\" was never defined.
12869Usually this means the macro was only invoked conditionally." >&5
12870echo "$as_me: error: conditional \"IA64\" was never defined.
12871Usually this means the macro was only invoked conditionally." >&2;}
12872 { (exit 1); exit 1; }; }
12873fi
a472e9d4
KI
12874if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
12875 { { echo "$as_me:$LINENO: error: conditional \"M32R\" was never defined.
12876Usually this means the macro was only invoked conditionally." >&5
12877echo "$as_me: error: conditional \"M32R\" was never defined.
12878Usually this means the macro was only invoked conditionally." >&2;}
12879 { (exit 1); exit 1; }; }
12880fi
3ed8e5b6
AT
12881if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
12882 { { echo "$as_me:$LINENO: error: conditional \"M68K\" was never defined.
12883Usually this means the macro was only invoked conditionally." >&5
12884echo "$as_me: error: conditional \"M68K\" was never defined.
12885Usually this means the macro was only invoked conditionally." >&2;}
12886 { (exit 1); exit 1; }; }
12887fi
12888if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
12889 { { echo "$as_me:$LINENO: error: conditional \"POWERPC\" was never defined.
12890Usually this means the macro was only invoked conditionally." >&5
12891echo "$as_me: error: conditional \"POWERPC\" was never defined.
12892Usually this means the macro was only invoked conditionally." >&2;}
12893 { (exit 1); exit 1; }; }
12894fi
12895if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
12896 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_AIX\" was never defined.
12897Usually this means the macro was only invoked conditionally." >&5
12898echo "$as_me: error: conditional \"POWERPC_AIX\" was never defined.
12899Usually this means the macro was only invoked conditionally." >&2;}
12900 { (exit 1); exit 1; }; }
12901fi
12902if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
12903 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_DARWIN\" was never defined.
12904Usually this means the macro was only invoked conditionally." >&5
12905echo "$as_me: error: conditional \"POWERPC_DARWIN\" was never defined.
12906Usually this means the macro was only invoked conditionally." >&2;}
12907 { (exit 1); exit 1; }; }
12908fi
97067642
AT
12909if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
12910 { { echo "$as_me:$LINENO: error: conditional \"POWERPC_FREEBSD\" was never defined.
12911Usually this means the macro was only invoked conditionally." >&5
12912echo "$as_me: error: conditional \"POWERPC_FREEBSD\" was never defined.
12913Usually this means the macro was only invoked conditionally." >&2;}
12914 { (exit 1); exit 1; }; }
12915fi
3ed8e5b6
AT
12916if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
12917 { { echo "$as_me:$LINENO: error: conditional \"ARM\" was never defined.
12918Usually this means the macro was only invoked conditionally." >&5
12919echo "$as_me: error: conditional \"ARM\" was never defined.
12920Usually this means the macro was only invoked conditionally." >&2;}
12921 { (exit 1); exit 1; }; }
12922fi
614348bb
SP
12923if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
12924 { { echo "$as_me:$LINENO: error: conditional \"LIBFFI_CRIS\" was never defined.
12925Usually this means the macro was only invoked conditionally." >&5
12926echo "$as_me: error: conditional \"LIBFFI_CRIS\" was never defined.
12927Usually this means the macro was only invoked conditionally." >&2;}
12928 { (exit 1); exit 1; }; }
12929fi
88d8c771
AG
12930if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
12931 { { echo "$as_me:$LINENO: error: conditional \"FRV\" was never defined.
12932Usually this means the macro was only invoked conditionally." >&5
12933echo "$as_me: error: conditional \"FRV\" was never defined.
12934Usually this means the macro was only invoked conditionally." >&2;}
12935 { (exit 1); exit 1; }; }
12936fi
3ed8e5b6
AT
12937if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
12938 { { echo "$as_me:$LINENO: error: conditional \"S390\" was never defined.
12939Usually this means the macro was only invoked conditionally." >&5
12940echo "$as_me: error: conditional \"S390\" was never defined.
12941Usually this means the macro was only invoked conditionally." >&2;}
12942 { (exit 1); exit 1; }; }
12943fi
12944if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
12945 { { echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
12946Usually this means the macro was only invoked conditionally." >&5
12947echo "$as_me: error: conditional \"X86_64\" was never defined.
12948Usually this means the macro was only invoked conditionally." >&2;}
12949 { (exit 1); exit 1; }; }
12950fi
12951if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
12952 { { echo "$as_me:$LINENO: error: conditional \"SH\" was never defined.
12953Usually this means the macro was only invoked conditionally." >&5
12954echo "$as_me: error: conditional \"SH\" was never defined.
12955Usually this means the macro was only invoked conditionally." >&2;}
12956 { (exit 1); exit 1; }; }
12957fi
12958if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
12959 { { echo "$as_me:$LINENO: error: conditional \"SH64\" was never defined.
12960Usually this means the macro was only invoked conditionally." >&5
12961echo "$as_me: error: conditional \"SH64\" was never defined.
12962Usually this means the macro was only invoked conditionally." >&2;}
12963 { (exit 1); exit 1; }; }
12964fi
e6c300ef
JDA
12965if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
12966 { { echo "$as_me:$LINENO: error: conditional \"PA_LINUX\" was never defined.
12967Usually this means the macro was only invoked conditionally." >&5
12968echo "$as_me: error: conditional \"PA_LINUX\" was never defined.
12969Usually this means the macro was only invoked conditionally." >&2;}
12970 { (exit 1); exit 1; }; }
12971fi
12972if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
12973 { { echo "$as_me:$LINENO: error: conditional \"PA_HPUX\" was never defined.
12974Usually this means the macro was only invoked conditionally." >&5
12975echo "$as_me: error: conditional \"PA_HPUX\" was never defined.
12976Usually this means the macro was only invoked conditionally." >&2;}
12977 { (exit 1); exit 1; }; }
12978fi
12979if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
12980 { { echo "$as_me:$LINENO: error: conditional \"PA64_HPUX\" was never defined.
d65a810f 12981Usually this means the macro was only invoked conditionally." >&5
e6c300ef 12982echo "$as_me: error: conditional \"PA64_HPUX\" was never defined.
d65a810f
MK
12983Usually this means the macro was only invoked conditionally." >&2;}
12984 { (exit 1); exit 1; }; }
12985fi
3ed8e5b6
AT
12986
12987: ${CONFIG_STATUS=./config.status}
12988ac_clean_files_save=$ac_clean_files
12989ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12990{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12991echo "$as_me: creating $CONFIG_STATUS" >&6;}
12992cat >$CONFIG_STATUS <<_ACEOF
12993#! $SHELL
12994# Generated by $as_me.
12995# Run this file to recreate the current configuration.
12996# Compiler output produced by configure, useful for debugging
12997# configure, is in config.log if it exists.
12998
12999debug=false
13000ac_cs_recheck=false
13001ac_cs_silent=false
13002SHELL=\${CONFIG_SHELL-$SHELL}
13003_ACEOF
13004
13005cat >>$CONFIG_STATUS <<\_ACEOF
13006## --------------------- ##
13007## M4sh Initialization. ##
13008## --------------------- ##
13009
13010# Be Bourne compatible
13011if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13012 emulate sh
13013 NULLCMD=:
13014 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13015 # is contrary to our usage. Disable this feature.
13016 alias -g '${1+"$@"}'='"$@"'
13017elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13018 set -o posix
13019fi
13020DUALCASE=1; export DUALCASE # for MKS sh
13021
13022# Support unset when possible.
13023if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13024 as_unset=unset
13025else
13026 as_unset=false
13027fi
13028
13029
13030# Work around bugs in pre-3.0 UWIN ksh.
13031$as_unset ENV MAIL MAILPATH
13032PS1='$ '
13033PS2='> '
13034PS4='+ '
13035
13036# NLS nuisances.
13037for as_var in \
13038 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13039 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13040 LC_TELEPHONE LC_TIME
13041do
13042 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13043 eval $as_var=C; export $as_var
13044 else
13045 $as_unset $as_var
13046 fi
13047done
13048
13049# Required to use basename.
13050if expr a : '\(a\)' >/dev/null 2>&1; then
13051 as_expr=expr
13052else
13053 as_expr=false
13054fi
13055
13056if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13057 as_basename=basename
13058else
13059 as_basename=false
13060fi
13061
13062
13063# Name of the executable.
13064as_me=`$as_basename "$0" ||
13065$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13066 X"$0" : 'X\(//\)$' \| \
13067 X"$0" : 'X\(/\)$' \| \
13068 . : '\(.\)' 2>/dev/null ||
13069echo X/"$0" |
13070 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13071 /^X\/\(\/\/\)$/{ s//\1/; q; }
13072 /^X\/\(\/\).*/{ s//\1/; q; }
13073 s/.*/./; q'`
13074
13075
13076# PATH needs CR, and LINENO needs CR and PATH.
13077# Avoid depending upon Character Ranges.
13078as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13079as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13080as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13081as_cr_digits='0123456789'
13082as_cr_alnum=$as_cr_Letters$as_cr_digits
13083
13084# The user is always right.
13085if test "${PATH_SEPARATOR+set}" != set; then
13086 echo "#! /bin/sh" >conf$$.sh
13087 echo "exit 0" >>conf$$.sh
13088 chmod +x conf$$.sh
13089 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13090 PATH_SEPARATOR=';'
13091 else
13092 PATH_SEPARATOR=:
13093 fi
13094 rm -f conf$$.sh
13095fi
13096
13097
13098 as_lineno_1=$LINENO
13099 as_lineno_2=$LINENO
13100 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13101 test "x$as_lineno_1" != "x$as_lineno_2" &&
13102 test "x$as_lineno_3" = "x$as_lineno_2" || {
13103 # Find who we are. Look in the path if we contain no path at all
13104 # relative or not.
13105 case $0 in
13106 *[\\/]* ) as_myself=$0 ;;
13107 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13108for as_dir in $PATH
13109do
13110 IFS=$as_save_IFS
13111 test -z "$as_dir" && as_dir=.
13112 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13113done
13114
13115 ;;
13116 esac
13117 # We did not find ourselves, most probably we were run as `sh COMMAND'
13118 # in which case we are not to be found in the path.
13119 if test "x$as_myself" = x; then
13120 as_myself=$0
13121 fi
13122 if test ! -f "$as_myself"; then
13123 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13124echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13125 { (exit 1); exit 1; }; }
13126 fi
13127 case $CONFIG_SHELL in
13128 '')
13129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13130for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13131do
13132 IFS=$as_save_IFS
13133 test -z "$as_dir" && as_dir=.
13134 for as_base in sh bash ksh sh5; do
13135 case $as_dir in
13136 /*)
13137 if ("$as_dir/$as_base" -c '
13138 as_lineno_1=$LINENO
13139 as_lineno_2=$LINENO
13140 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13141 test "x$as_lineno_1" != "x$as_lineno_2" &&
13142 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13143 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13144 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13145 CONFIG_SHELL=$as_dir/$as_base
13146 export CONFIG_SHELL
13147 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13148 fi;;
13149 esac
13150 done
13151done
13152;;
13153 esac
13154
13155 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13156 # uniformly replaced by the line number. The first 'sed' inserts a
13157 # line-number line before each line; the second 'sed' does the real
13158 # work. The second script uses 'N' to pair each line-number line
13159 # with the numbered line, and appends trailing '-' during
13160 # substitution so that $LINENO is not a special case at line end.
13161 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13162 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13163 sed '=' <$as_myself |
13164 sed '
13165 N
13166 s,$,-,
13167 : loop
13168 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13169 t loop
13170 s,-$,,
13171 s,^['$as_cr_digits']*\n,,
13172 ' >$as_me.lineno &&
13173 chmod +x $as_me.lineno ||
13174 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13175echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13176 { (exit 1); exit 1; }; }
13177
13178 # Don't try to exec as it changes $[0], causing all sort of problems
13179 # (the dirname of $[0] is not the place where we might find the
13180 # original and so on. Autoconf is especially sensible to this).
13181 . ./$as_me.lineno
13182 # Exit status is that of the last command.
13183 exit
13184}
13185
63e5e3e0 13186
3ed8e5b6
AT
13187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13188 *c*,-n*) ECHO_N= ECHO_C='
13189' ECHO_T=' ' ;;
13190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13192esac
13193
13194if expr a : '\(a\)' >/dev/null 2>&1; then
13195 as_expr=expr
13196else
13197 as_expr=false
13198fi
13199
13200rm -f conf$$ conf$$.exe conf$$.file
13201echo >conf$$.file
13202if ln -s conf$$.file conf$$ 2>/dev/null; then
13203 # We could just check for DJGPP; but this test a) works b) is more generic
13204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13205 if test -f conf$$.exe; then
13206 # Don't use ln at all; we don't have any links
13207 as_ln_s='cp -p'
13208 else
13209 as_ln_s='ln -s'
7d45b968 13210 fi
3ed8e5b6
AT
13211elif ln conf$$.file conf$$ 2>/dev/null; then
13212 as_ln_s=ln
13213else
13214 as_ln_s='cp -p'
13215fi
13216rm -f conf$$ conf$$.exe conf$$.file
13217
13218if mkdir -p . 2>/dev/null; then
13219 as_mkdir_p=:
13220else
13221 test -d ./-p && rmdir ./-p
13222 as_mkdir_p=false
63e5e3e0
AG
13223fi
13224
3ed8e5b6
AT
13225as_executable_p="test -f"
13226
13227# Sed expression to map a string onto a valid CPP name.
13228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13229
13230# Sed expression to map a string onto a valid variable name.
13231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13232
13233
13234# IFS
13235# We need space, tab and new line, in precisely that order.
13236as_nl='
13237'
13238IFS=" $as_nl"
13239
13240# CDPATH.
13241$as_unset CDPATH
13242
13243exec 6>&1
63e5e3e0 13244
3ed8e5b6
AT
13245# Open the log real soon, to keep \$[0] and so on meaningful, and to
13246# report actual input values of CONFIG_FILES etc. instead of their
13247# values after options handling. Logging --version etc. is OK.
13248exec 5>>config.log
13249{
13250 echo
13251 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13252## Running $as_me. ##
13253_ASBOX
13254} >&5
13255cat >&5 <<_CSEOF
63e5e3e0 13256
3ed8e5b6
AT
13257This file was extended by libffi $as_me 2.1, which was
13258generated by GNU Autoconf 2.59. Invocation command line was
63e5e3e0 13259
3ed8e5b6
AT
13260 CONFIG_FILES = $CONFIG_FILES
13261 CONFIG_HEADERS = $CONFIG_HEADERS
13262 CONFIG_LINKS = $CONFIG_LINKS
13263 CONFIG_COMMANDS = $CONFIG_COMMANDS
13264 $ $0 $@
63e5e3e0 13265
3ed8e5b6
AT
13266_CSEOF
13267echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13268echo >&5
13269_ACEOF
63e5e3e0 13270
3ed8e5b6
AT
13271# Files that config.status was made for.
13272if test -n "$ac_config_files"; then
13273 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
63e5e3e0
AG
13274fi
13275
3ed8e5b6
AT
13276if test -n "$ac_config_headers"; then
13277 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13278fi
63e5e3e0 13279
3ed8e5b6
AT
13280if test -n "$ac_config_links"; then
13281 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13282fi
63e5e3e0 13283
3ed8e5b6
AT
13284if test -n "$ac_config_commands"; then
13285 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
63e5e3e0
AG
13286fi
13287
3ed8e5b6 13288cat >>$CONFIG_STATUS <<\_ACEOF
63e5e3e0 13289
3ed8e5b6
AT
13290ac_cs_usage="\
13291\`$as_me' instantiates files from templates according to the
13292current configuration.
db2cd5e6 13293
3ed8e5b6 13294Usage: $0 [OPTIONS] [FILE]...
db2cd5e6 13295
3ed8e5b6
AT
13296 -h, --help print this help, then exit
13297 -V, --version print version number, then exit
13298 -q, --quiet do not print progress messages
13299 -d, --debug don't remove temporary files
13300 --recheck update $as_me by reconfiguring in the same conditions
13301 --file=FILE[:TEMPLATE]
13302 instantiate the configuration file FILE
13303 --header=FILE[:TEMPLATE]
13304 instantiate the configuration header FILE
0721f64e 13305
3ed8e5b6
AT
13306Configuration files:
13307$config_files
ea81d2a3 13308
3ed8e5b6
AT
13309Configuration headers:
13310$config_headers
ea81d2a3 13311
3ed8e5b6
AT
13312Configuration links:
13313$config_links
ea81d2a3 13314
3ed8e5b6
AT
13315Configuration commands:
13316$config_commands
ea81d2a3 13317
3ed8e5b6
AT
13318Report bugs to <bug-autoconf@gnu.org>."
13319_ACEOF
3c18f2d1 13320
3ed8e5b6
AT
13321cat >>$CONFIG_STATUS <<_ACEOF
13322ac_cs_version="\\
13323libffi config.status 2.1
13324configured by $0, generated by GNU Autoconf 2.59,
13325 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13326
13327Copyright (C) 2003 Free Software Foundation, Inc.
13328This config.status script is free software; the Free Software Foundation
13329gives unlimited permission to copy, distribute and modify it."
13330srcdir=$srcdir
13331INSTALL="$INSTALL"
13332_ACEOF
13333
13334cat >>$CONFIG_STATUS <<\_ACEOF
13335# If no file are specified by the user, then we need to provide default
13336# value. By we need to know if files were specified by the user.
13337ac_need_defaults=:
13338while test $# != 0
13339do
13340 case $1 in
13341 --*=*)
13342 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13343 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13344 ac_shift=:
63e5e3e0 13345 ;;
3ed8e5b6
AT
13346 -*)
13347 ac_option=$1
13348 ac_optarg=$2
13349 ac_shift=shift
63e5e3e0 13350 ;;
3ed8e5b6
AT
13351 *) # This is not an option, so the user has probably given explicit
13352 # arguments.
13353 ac_option=$1
13354 ac_need_defaults=false;;
13355 esac
13356
13357 case $ac_option in
13358 # Handling of the options.
13359_ACEOF
13360cat >>$CONFIG_STATUS <<\_ACEOF
13361 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13362 ac_cs_recheck=: ;;
13363 --version | --vers* | -V )
13364 echo "$ac_cs_version"; exit 0 ;;
13365 --he | --h)
13366 # Conflict between --help and --header
13367 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13368Try \`$0 --help' for more information." >&5
13369echo "$as_me: error: ambiguous option: $1
13370Try \`$0 --help' for more information." >&2;}
13371 { (exit 1); exit 1; }; };;
13372 --help | --hel | -h )
13373 echo "$ac_cs_usage"; exit 0 ;;
13374 --debug | --d* | -d )
13375 debug=: ;;
13376 --file | --fil | --fi | --f )
13377 $ac_shift
13378 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13379 ac_need_defaults=false;;
13380 --header | --heade | --head | --hea )
13381 $ac_shift
13382 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13383 ac_need_defaults=false;;
13384 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13385 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13386 ac_cs_silent=: ;;
63e5e3e0 13387
3ed8e5b6
AT
13388 # This is an error.
13389 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13390Try \`$0 --help' for more information." >&5
13391echo "$as_me: error: unrecognized option: $1
13392Try \`$0 --help' for more information." >&2;}
13393 { (exit 1); exit 1; }; } ;;
63e5e3e0 13394
3ed8e5b6 13395 *) ac_config_targets="$ac_config_targets $1" ;;
63e5e3e0 13396
3ed8e5b6
AT
13397 esac
13398 shift
13399done
63e5e3e0 13400
3ed8e5b6 13401ac_configure_extra_args=
63e5e3e0 13402
3ed8e5b6
AT
13403if $ac_cs_silent; then
13404 exec 6>/dev/null
13405 ac_configure_extra_args="$ac_configure_extra_args --silent"
13406fi
63e5e3e0 13407
3ed8e5b6
AT
13408_ACEOF
13409cat >>$CONFIG_STATUS <<_ACEOF
13410if \$ac_cs_recheck; then
13411 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13412 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13413fi
63e5e3e0 13414
3ed8e5b6
AT
13415_ACEOF
13416
13417cat >>$CONFIG_STATUS <<_ACEOF
63e5e3e0 13418#
3ed8e5b6 13419# INIT-COMMANDS section.
63e5e3e0 13420#
63e5e3e0 13421
3ed8e5b6
AT
13422
13423srcdir="$srcdir"
13424host="$host"
13425target="$target"
13426with_multisubdir="$with_multisubdir"
13427with_multisrctop="$with_multisrctop"
13428with_target_subdir="$with_target_subdir"
13429ac_configure_args="${multilib_arg} ${ac_configure_args}"
13430multi_basedir="$multi_basedir"
13431CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13432CC="$CC"
13433AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
1cf3d07d
SE
13434
13435
13436# The HP-UX ksh and POSIX shell print the target directory to stdout
13437# if CDPATH is set.
13438(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13439
13440sed_quote_subst='$sed_quote_subst'
13441double_quote_subst='$double_quote_subst'
13442delay_variable_subst='$delay_variable_subst'
13443macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13444macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13445enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13446enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13447pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13448enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13449host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13450host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13451host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13452build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13453build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13454build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13455SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13456Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13457GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13458EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13459FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13460LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13461NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13462LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13463max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13464ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13465exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13466lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13467lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13468lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13469reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13470reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13471deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13472file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13473AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13474AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13475STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13476RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13477old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13478old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13479old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13480CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13481CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13482compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13483GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13484lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13485lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13486lt_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"`'
13487objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13488SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13489ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13490MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13491lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13492lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13493lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13494lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13495lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13496need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13497libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13498shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13499extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13500archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13501enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13502export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13503whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13504compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13505old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13506old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13507archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13508archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13509module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13510module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13511with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13512allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13513no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13514hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13515hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13516hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13517hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13518hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13519hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13520hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13521hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13522inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13523link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13524fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13525always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13526export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13527exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13528include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13529prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13530file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13531variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13532need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13533need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13534version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13535runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13536shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13537shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13538libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13539library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13540soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13541postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13542postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13543finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13544finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13545hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13546sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13547sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13548hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13549enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13550enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13551enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13552old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13553striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13554
13555LTCC='$LTCC'
13556LTCFLAGS='$LTCFLAGS'
13557compiler='$compiler_DEFAULT'
13558
13559# Quote evaled strings.
13560for var in SED \
13561GREP \
13562EGREP \
13563FGREP \
13564LD \
13565NM \
13566LN_S \
13567lt_SP2NL \
13568lt_NL2SP \
13569reload_flag \
13570deplibs_check_method \
13571file_magic_cmd \
13572AR \
13573AR_FLAGS \
13574STRIP \
13575RANLIB \
13576CC \
13577CFLAGS \
13578compiler \
13579lt_cv_sys_global_symbol_pipe \
13580lt_cv_sys_global_symbol_to_cdecl \
13581lt_cv_sys_global_symbol_to_c_name_address \
13582SHELL \
13583ECHO \
13584lt_prog_compiler_no_builtin_flag \
13585lt_prog_compiler_wl \
13586lt_prog_compiler_pic \
13587lt_prog_compiler_static \
13588lt_cv_prog_compiler_c_o \
13589need_locks \
13590shrext_cmds \
13591export_dynamic_flag_spec \
13592whole_archive_flag_spec \
13593compiler_needs_object \
13594with_gnu_ld \
13595allow_undefined_flag \
13596no_undefined_flag \
13597hardcode_libdir_flag_spec \
13598hardcode_libdir_flag_spec_ld \
13599hardcode_libdir_separator \
13600fix_srcfile_path \
13601exclude_expsyms \
13602include_expsyms \
13603file_list_spec \
13604variables_saved_for_relink \
13605libname_spec \
13606library_names_spec \
13607soname_spec \
13608finish_eval \
13609old_striplib \
13610striplib; do
13611 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13612 *[\\\\\\\`\\"\\\$]*)
13613 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13614 ;;
13615 *)
13616 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13617 ;;
13618 esac
13619done
13620
13621# Double-quote double-evaled strings.
13622for var in reload_cmds \
13623old_postinstall_cmds \
13624old_postuninstall_cmds \
13625old_archive_cmds \
13626extract_expsyms_cmds \
13627old_archive_from_new_cmds \
13628old_archive_from_expsyms_cmds \
13629archive_cmds \
13630archive_expsym_cmds \
13631module_cmds \
13632module_expsym_cmds \
13633export_symbols_cmds \
13634prelink_cmds \
13635postinstall_cmds \
13636postuninstall_cmds \
13637finish_cmds \
13638sys_lib_search_path_spec \
13639sys_lib_dlsearch_path_spec; do
13640 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13641 *[\\\\\\\`\\"\\\$]*)
13642 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13643 ;;
13644 *)
13645 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13646 ;;
13647 esac
13648done
13649
13650# Fix-up fallback echo if it was mangled by the above quoting rules.
13651case \$lt_ECHO in
13652*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13653 ;;
13654esac
13655
13656ac_aux_dir='$ac_aux_dir'
13657xsi_shell='$xsi_shell'
13658lt_shell_append='$lt_shell_append'
13659
13660# See if we are running on zsh, and set the options which allow our
13661# commands through without removal of \ escapes INIT.
13662if test -n "\${ZSH_VERSION+set}" ; then
13663 setopt NO_GLOB_SUBST
13664fi
13665
13666
13667 PACKAGE='$PACKAGE'
13668 VERSION='$VERSION'
13669 TIMESTAMP='$TIMESTAMP'
13670 RM='$RM'
13671 ofile='$ofile'
13672
13673
13674
3ed8e5b6
AT
13675TARGETDIR="$TARGETDIR"
13676
13677_ACEOF
13678
13679
13680
13681cat >>$CONFIG_STATUS <<\_ACEOF
13682for ac_config_target in $ac_config_targets
63e5e3e0 13683do
3ed8e5b6
AT
13684 case "$ac_config_target" in
13685 # Handling of arguments.
13686 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13687 "include/ffi.h" ) CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
13688 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13689 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
13690 "include/ffitarget.h" ) CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
13691 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13692 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
1cf3d07d 13693 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
3ed8e5b6
AT
13694 "include" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
13695 "src" ) CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
13696 "fficonfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
13697 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13698echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13699 { (exit 1); exit 1; }; };;
63e5e3e0
AG
13700 esac
13701done
13702
3ed8e5b6
AT
13703# If the user did not use the arguments to specify the items to instantiate,
13704# then the envvar interface is used. Set only those that are not.
13705# We use the long form for the default assignment because of an extremely
13706# bizarre bug on SunOS 4.1.3.
13707if $ac_need_defaults; then
13708 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13709 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13710 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
13711 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13712fi
13713
13714# Have a temporary directory for convenience. Make it in the build tree
13715# simply because there is no reason to put it here, and in addition,
13716# creating and moving files from /tmp can sometimes cause problems.
13717# Create a temporary directory, and hook for its removal unless debugging.
13718$debug ||
13719{
13720 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13721 trap '{ (exit 1); exit 1; }' 1 2 13 15
13722}
63e5e3e0 13723
3ed8e5b6 13724# Create a (secure) tmp directory for tmp files.
63e5e3e0 13725
3ed8e5b6
AT
13726{
13727 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13728 test -n "$tmp" && test -d "$tmp"
13729} ||
13730{
13731 tmp=./confstat$$-$RANDOM
13732 (umask 077 && mkdir $tmp)
13733} ||
13734{
13735 echo "$me: cannot create a temporary directory in ." >&2
13736 { (exit 1); exit 1; }
13737}
13738
13739_ACEOF
13740
13741cat >>$CONFIG_STATUS <<_ACEOF
13742
13743#
13744# CONFIG_FILES section.
13745#
63e5e3e0 13746
3ed8e5b6
AT
13747# No need to generate the scripts if there are no CONFIG_FILES.
13748# This happens for instance when ./config.status config.h
13749if test -n "\$CONFIG_FILES"; then
13750 # Protect against being on the right side of a sed subst in config.status.
13751 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13752 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13753s,@SHELL@,$SHELL,;t t
13754s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13755s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13756s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13757s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13758s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13759s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13760s,@exec_prefix@,$exec_prefix,;t t
13761s,@prefix@,$prefix,;t t
13762s,@program_transform_name@,$program_transform_name,;t t
13763s,@bindir@,$bindir,;t t
13764s,@sbindir@,$sbindir,;t t
13765s,@libexecdir@,$libexecdir,;t t
13766s,@datadir@,$datadir,;t t
13767s,@sysconfdir@,$sysconfdir,;t t
13768s,@sharedstatedir@,$sharedstatedir,;t t
13769s,@localstatedir@,$localstatedir,;t t
13770s,@libdir@,$libdir,;t t
13771s,@includedir@,$includedir,;t t
13772s,@oldincludedir@,$oldincludedir,;t t
13773s,@infodir@,$infodir,;t t
13774s,@mandir@,$mandir,;t t
13775s,@build_alias@,$build_alias,;t t
13776s,@host_alias@,$host_alias,;t t
13777s,@target_alias@,$target_alias,;t t
13778s,@DEFS@,$DEFS,;t t
13779s,@ECHO_C@,$ECHO_C,;t t
13780s,@ECHO_N@,$ECHO_N,;t t
13781s,@ECHO_T@,$ECHO_T,;t t
13782s,@LIBS@,$LIBS,;t t
13783s,@multi_basedir@,$multi_basedir,;t t
13784s,@build@,$build,;t t
13785s,@build_cpu@,$build_cpu,;t t
13786s,@build_vendor@,$build_vendor,;t t
13787s,@build_os@,$build_os,;t t
13788s,@host@,$host,;t t
13789s,@host_cpu@,$host_cpu,;t t
13790s,@host_vendor@,$host_vendor,;t t
13791s,@host_os@,$host_os,;t t
13792s,@target@,$target,;t t
13793s,@target_cpu@,$target_cpu,;t t
13794s,@target_vendor@,$target_vendor,;t t
13795s,@target_os@,$target_os,;t t
13796s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13797s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13798s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13799s,@CYGPATH_W@,$CYGPATH_W,;t t
13800s,@PACKAGE@,$PACKAGE,;t t
13801s,@VERSION@,$VERSION,;t t
13802s,@ACLOCAL@,$ACLOCAL,;t t
13803s,@AUTOCONF@,$AUTOCONF,;t t
13804s,@AUTOMAKE@,$AUTOMAKE,;t t
13805s,@AUTOHEADER@,$AUTOHEADER,;t t
13806s,@MAKEINFO@,$MAKEINFO,;t t
3ed8e5b6
AT
13807s,@install_sh@,$install_sh,;t t
13808s,@STRIP@,$STRIP,;t t
13809s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13810s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
076e5443 13811s,@mkdir_p@,$mkdir_p,;t t
3ed8e5b6
AT
13812s,@AWK@,$AWK,;t t
13813s,@SET_MAKE@,$SET_MAKE,;t t
13814s,@am__leading_dot@,$am__leading_dot,;t t
b85e31b9
KC
13815s,@AMTAR@,$AMTAR,;t t
13816s,@am__tar@,$am__tar,;t t
13817s,@am__untar@,$am__untar,;t t
3ed8e5b6
AT
13818s,@CC@,$CC,;t t
13819s,@ac_ct_CC@,$ac_ct_CC,;t t
13820s,@EXEEXT@,$EXEEXT,;t t
13821s,@OBJEXT@,$OBJEXT,;t t
13822s,@DEPDIR@,$DEPDIR,;t t
13823s,@am__include@,$am__include,;t t
13824s,@am__quote@,$am__quote,;t t
13825s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13826s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13827s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13828s,@CCDEPMODE@,$CCDEPMODE,;t t
13829s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13830s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
13831s,@CFLAGS@,$CFLAGS,;t t
13832s,@CCAS@,$CCAS,;t t
13833s,@CCASFLAGS@,$CCASFLAGS,;t t
1cf3d07d
SE
13834s,@LIBTOOL@,$LIBTOOL,;t t
13835s,@SED@,$SED,;t t
13836s,@EGREP@,$EGREP,;t t
13837s,@FGREP@,$FGREP,;t t
13838s,@GREP@,$GREP,;t t
13839s,@LD@,$LD,;t t
13840s,@DUMPBIN@,$DUMPBIN,;t t
13841s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t
13842s,@NM@,$NM,;t t
3ed8e5b6 13843s,@LN_S@,$LN_S,;t t
1cf3d07d
SE
13844s,@AR@,$AR,;t t
13845s,@ac_ct_AR@,$ac_ct_AR,;t t
3ed8e5b6
AT
13846s,@RANLIB@,$RANLIB,;t t
13847s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
1cf3d07d
SE
13848s,@lt_ECHO@,$lt_ECHO,;t t
13849s,@CPP@,$CPP,;t t
13850s,@CPPFLAGS@,$CPPFLAGS,;t t
3ed8e5b6
AT
13851s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
13852s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
13853s,@MAINT@,$MAINT,;t t
13854s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
13855s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
13856s,@AM_RUNTESTFLAGS@,$AM_RUNTESTFLAGS,;t t
8d5c5e35
MR
13857s,@MIPS_TRUE@,$MIPS_TRUE,;t t
13858s,@MIPS_FALSE@,$MIPS_FALSE,;t t
3ed8e5b6
AT
13859s,@SPARC_TRUE@,$SPARC_TRUE,;t t
13860s,@SPARC_FALSE@,$SPARC_FALSE,;t t
13861s,@X86_TRUE@,$X86_TRUE,;t t
13862s,@X86_FALSE@,$X86_FALSE,;t t
13863s,@X86_WIN32_TRUE@,$X86_WIN32_TRUE,;t t
13864s,@X86_WIN32_FALSE@,$X86_WIN32_FALSE,;t t
a3bd50cc
PB
13865s,@X86_DARWIN_TRUE@,$X86_DARWIN_TRUE,;t t
13866s,@X86_DARWIN_FALSE@,$X86_DARWIN_FALSE,;t t
3ed8e5b6
AT
13867s,@ALPHA_TRUE@,$ALPHA_TRUE,;t t
13868s,@ALPHA_FALSE@,$ALPHA_FALSE,;t t
13869s,@IA64_TRUE@,$IA64_TRUE,;t t
13870s,@IA64_FALSE@,$IA64_FALSE,;t t
a472e9d4
KI
13871s,@M32R_TRUE@,$M32R_TRUE,;t t
13872s,@M32R_FALSE@,$M32R_FALSE,;t t
3ed8e5b6
AT
13873s,@M68K_TRUE@,$M68K_TRUE,;t t
13874s,@M68K_FALSE@,$M68K_FALSE,;t t
13875s,@POWERPC_TRUE@,$POWERPC_TRUE,;t t
13876s,@POWERPC_FALSE@,$POWERPC_FALSE,;t t
13877s,@POWERPC_AIX_TRUE@,$POWERPC_AIX_TRUE,;t t
13878s,@POWERPC_AIX_FALSE@,$POWERPC_AIX_FALSE,;t t
13879s,@POWERPC_DARWIN_TRUE@,$POWERPC_DARWIN_TRUE,;t t
13880s,@POWERPC_DARWIN_FALSE@,$POWERPC_DARWIN_FALSE,;t t
97067642
AT
13881s,@POWERPC_FREEBSD_TRUE@,$POWERPC_FREEBSD_TRUE,;t t
13882s,@POWERPC_FREEBSD_FALSE@,$POWERPC_FREEBSD_FALSE,;t t
3ed8e5b6
AT
13883s,@ARM_TRUE@,$ARM_TRUE,;t t
13884s,@ARM_FALSE@,$ARM_FALSE,;t t
614348bb
SP
13885s,@LIBFFI_CRIS_TRUE@,$LIBFFI_CRIS_TRUE,;t t
13886s,@LIBFFI_CRIS_FALSE@,$LIBFFI_CRIS_FALSE,;t t
88d8c771
AG
13887s,@FRV_TRUE@,$FRV_TRUE,;t t
13888s,@FRV_FALSE@,$FRV_FALSE,;t t
3ed8e5b6
AT
13889s,@S390_TRUE@,$S390_TRUE,;t t
13890s,@S390_FALSE@,$S390_FALSE,;t t
13891s,@X86_64_TRUE@,$X86_64_TRUE,;t t
13892s,@X86_64_FALSE@,$X86_64_FALSE,;t t
13893s,@SH_TRUE@,$SH_TRUE,;t t
13894s,@SH_FALSE@,$SH_FALSE,;t t
13895s,@SH64_TRUE@,$SH64_TRUE,;t t
13896s,@SH64_FALSE@,$SH64_FALSE,;t t
e6c300ef
JDA
13897s,@PA_LINUX_TRUE@,$PA_LINUX_TRUE,;t t
13898s,@PA_LINUX_FALSE@,$PA_LINUX_FALSE,;t t
13899s,@PA_HPUX_TRUE@,$PA_HPUX_TRUE,;t t
13900s,@PA_HPUX_FALSE@,$PA_HPUX_FALSE,;t t
13901s,@PA64_HPUX_TRUE@,$PA64_HPUX_TRUE,;t t
13902s,@PA64_HPUX_FALSE@,$PA64_HPUX_FALSE,;t t
3ed8e5b6
AT
13903s,@ALLOCA@,$ALLOCA,;t t
13904s,@HAVE_LONG_DOUBLE@,$HAVE_LONG_DOUBLE,;t t
13905s,@TARGET@,$TARGET,;t t
13906s,@TARGETDIR@,$TARGETDIR,;t t
13907s,@toolexecdir@,$toolexecdir,;t t
13908s,@toolexeclibdir@,$toolexeclibdir,;t t
3ed8e5b6
AT
13909s,@LIBOBJS@,$LIBOBJS,;t t
13910s,@LTLIBOBJS@,$LTLIBOBJS,;t t
63e5e3e0 13911CEOF
63e5e3e0 13912
3ed8e5b6
AT
13913_ACEOF
13914
13915 cat >>$CONFIG_STATUS <<\_ACEOF
13916 # Split the substitutions into bite-sized pieces for seds with
13917 # small command number limits, like on Digital OSF/1 and HP-UX.
13918 ac_max_sed_lines=48
13919 ac_sed_frag=1 # Number of current file.
13920 ac_beg=1 # First line for current file.
13921 ac_end=$ac_max_sed_lines # Line after last line for current file.
13922 ac_more_lines=:
13923 ac_sed_cmds=
13924 while $ac_more_lines; do
13925 if test $ac_beg -gt 1; then
13926 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13927 else
13928 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13929 fi
13930 if test ! -s $tmp/subs.frag; then
13931 ac_more_lines=false
63e5e3e0 13932 else
3ed8e5b6
AT
13933 # The purpose of the label and of the branching condition is to
13934 # speed up the sed processing (if there are no `@' at all, there
13935 # is no need to browse any of the substitutions).
13936 # These are the two extra sed commands mentioned above.
13937 (echo ':t
13938 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13939 if test -z "$ac_sed_cmds"; then
13940 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13941 else
13942 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13943 fi
13944 ac_sed_frag=`expr $ac_sed_frag + 1`
13945 ac_beg=$ac_end
13946 ac_end=`expr $ac_end + $ac_max_sed_lines`
63e5e3e0 13947 fi
3ed8e5b6
AT
13948 done
13949 if test -z "$ac_sed_cmds"; then
13950 ac_sed_cmds=cat
63e5e3e0 13951 fi
3ed8e5b6 13952fi # test -n "$CONFIG_FILES"
63e5e3e0 13953
3ed8e5b6
AT
13954_ACEOF
13955cat >>$CONFIG_STATUS <<\_ACEOF
13956for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
63e5e3e0 13957 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3ed8e5b6
AT
13958 case $ac_file in
13959 - | *:- | *:-:* ) # input from stdin
13960 cat >$tmp/stdin
13961 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13962 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13963 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13964 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13965 * ) ac_file_in=$ac_file.in ;;
63e5e3e0
AG
13966 esac
13967
3ed8e5b6
AT
13968 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13969 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13970$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13971 X"$ac_file" : 'X\(//\)[^/]' \| \
13972 X"$ac_file" : 'X\(//\)$' \| \
13973 X"$ac_file" : 'X\(/\)' \| \
13974 . : '\(.\)' 2>/dev/null ||
13975echo X"$ac_file" |
13976 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13977 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13978 /^X\(\/\/\)$/{ s//\1/; q; }
13979 /^X\(\/\).*/{ s//\1/; q; }
13980 s/.*/./; q'`
13981 { if $as_mkdir_p; then
13982 mkdir -p "$ac_dir"
63e5e3e0 13983 else
3ed8e5b6
AT
13984 as_dir="$ac_dir"
13985 as_dirs=
13986 while test ! -d "$as_dir"; do
13987 as_dirs="$as_dir $as_dirs"
13988 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13989$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13990 X"$as_dir" : 'X\(//\)[^/]' \| \
13991 X"$as_dir" : 'X\(//\)$' \| \
13992 X"$as_dir" : 'X\(/\)' \| \
13993 . : '\(.\)' 2>/dev/null ||
13994echo X"$as_dir" |
13995 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13996 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13997 /^X\(\/\/\)$/{ s//\1/; q; }
13998 /^X\(\/\).*/{ s//\1/; q; }
13999 s/.*/./; q'`
14000 done
14001 test ! -n "$as_dirs" || mkdir $as_dirs
14002 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14003echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14004 { (exit 1); exit 1; }; }; }
14005
14006 ac_builddir=.
14007
14008if test "$ac_dir" != .; then
14009 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14010 # A "../" for each directory in $ac_dir_suffix.
14011 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14012else
14013 ac_dir_suffix= ac_top_builddir=
14014fi
63e5e3e0 14015
3ed8e5b6
AT
14016case $srcdir in
14017 .) # No --srcdir option. We are building in place.
14018 ac_srcdir=.
14019 if test -z "$ac_top_builddir"; then
14020 ac_top_srcdir=.
14021 else
14022 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14023 fi ;;
14024 [\\/]* | ?:[\\/]* ) # Absolute path.
14025 ac_srcdir=$srcdir$ac_dir_suffix;
14026 ac_top_srcdir=$srcdir ;;
63e5e3e0 14027 *) # Relative path.
3ed8e5b6
AT
14028 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14029 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14030esac
14031
14032# Do not use `cd foo && pwd` to compute absolute paths, because
14033# the directories may not exist.
14034case `pwd` in
14035.) ac_abs_builddir="$ac_dir";;
14036*)
14037 case "$ac_dir" in
14038 .) ac_abs_builddir=`pwd`;;
14039 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14040 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14041 esac;;
14042esac
14043case $ac_abs_builddir in
14044.) ac_abs_top_builddir=${ac_top_builddir}.;;
14045*)
14046 case ${ac_top_builddir}. in
14047 .) ac_abs_top_builddir=$ac_abs_builddir;;
14048 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14049 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14050 esac;;
14051esac
14052case $ac_abs_builddir in
14053.) ac_abs_srcdir=$ac_srcdir;;
14054*)
14055 case $ac_srcdir in
14056 .) ac_abs_srcdir=$ac_abs_builddir;;
14057 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14058 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14059 esac;;
14060esac
14061case $ac_abs_builddir in
14062.) ac_abs_top_srcdir=$ac_top_srcdir;;
14063*)
14064 case $ac_top_srcdir in
14065 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14066 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14067 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14068 esac;;
14069esac
63e5e3e0 14070
63e5e3e0 14071
3ed8e5b6
AT
14072 case $INSTALL in
14073 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14074 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
63e5e3e0
AG
14075 esac
14076
88d8c771
AG
14077 if test x"$ac_file" != x-; then
14078 { echo "$as_me:$LINENO: creating $ac_file" >&5
14079echo "$as_me: creating $ac_file" >&6;}
14080 rm -f "$ac_file"
14081 fi
3ed8e5b6
AT
14082 # Let's still pretend it is `configure' which instantiates (i.e., don't
14083 # use $as_me), people would be surprised to read:
14084 # /* config.h. Generated by config.status. */
14085 if test x"$ac_file" = x-; then
14086 configure_input=
14087 else
14088 configure_input="$ac_file. "
14089 fi
14090 configure_input=$configure_input"Generated from `echo $ac_file_in |
14091 sed 's,.*/,,'` by configure."
14092
14093 # First look for the input files in the build tree, otherwise in the
14094 # src tree.
14095 ac_file_inputs=`IFS=:
14096 for f in $ac_file_in; do
14097 case $f in
14098 -) echo $tmp/stdin ;;
14099 [\\/$]*)
14100 # Absolute (can't be DOS-style, as IFS=:)
14101 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14102echo "$as_me: error: cannot find input file: $f" >&2;}
14103 { (exit 1); exit 1; }; }
14104 echo "$f";;
14105 *) # Relative
14106 if test -f "$f"; then
14107 # Build tree
14108 echo "$f"
14109 elif test -f "$srcdir/$f"; then
14110 # Source tree
14111 echo "$srcdir/$f"
14112 else
14113 # /dev/null tree
14114 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14115echo "$as_me: error: cannot find input file: $f" >&2;}
14116 { (exit 1); exit 1; }; }
14117 fi;;
14118 esac
14119 done` || { (exit 1); exit 1; }
14120_ACEOF
14121cat >>$CONFIG_STATUS <<_ACEOF
14122 sed "$ac_vpsub
14123$extrasub
14124_ACEOF
14125cat >>$CONFIG_STATUS <<\_ACEOF
14126:t
14127/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14128s,@configure_input@,$configure_input,;t t
14129s,@srcdir@,$ac_srcdir,;t t
14130s,@abs_srcdir@,$ac_abs_srcdir,;t t
14131s,@top_srcdir@,$ac_top_srcdir,;t t
14132s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14133s,@builddir@,$ac_builddir,;t t
14134s,@abs_builddir@,$ac_abs_builddir,;t t
14135s,@top_builddir@,$ac_top_builddir,;t t
14136s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14137s,@INSTALL@,$ac_INSTALL,;t t
14138" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14139 rm -f $tmp/stdin
14140 if test x"$ac_file" != x-; then
14141 mv $tmp/out $ac_file
14142 else
14143 cat $tmp/out
14144 rm -f $tmp/out
14145 fi
14146
14147done
14148_ACEOF
14149cat >>$CONFIG_STATUS <<\_ACEOF
14150
14151#
14152# CONFIG_HEADER section.
14153#
63e5e3e0
AG
14154
14155# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14156# NAME is the cpp macro being defined and VALUE is the value it is being given.
14157#
14158# ac_d sets the value in "#define NAME VALUE" lines.
3ed8e5b6
AT
14159ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14160ac_dB='[ ].*$,\1#\2'
14161ac_dC=' '
14162ac_dD=',;t'
14163# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14164ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14165ac_uB='$,\1#\2define\3'
63e5e3e0 14166ac_uC=' '
3ed8e5b6
AT
14167ac_uD=',;t'
14168
14169for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
63e5e3e0 14170 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3ed8e5b6
AT
14171 case $ac_file in
14172 - | *:- | *:-:* ) # input from stdin
14173 cat >$tmp/stdin
14174 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14175 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14176 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14177 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14178 * ) ac_file_in=$ac_file.in ;;
63e5e3e0
AG
14179 esac
14180
3ed8e5b6
AT
14181 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14182echo "$as_me: creating $ac_file" >&6;}
14183
14184 # First look for the input files in the build tree, otherwise in the
14185 # src tree.
14186 ac_file_inputs=`IFS=:
14187 for f in $ac_file_in; do
14188 case $f in
14189 -) echo $tmp/stdin ;;
14190 [\\/$]*)
14191 # Absolute (can't be DOS-style, as IFS=:)
14192 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14193echo "$as_me: error: cannot find input file: $f" >&2;}
14194 { (exit 1); exit 1; }; }
14195 # Do quote $f, to prevent DOS paths from being IFS'd.
14196 echo "$f";;
14197 *) # Relative
14198 if test -f "$f"; then
14199 # Build tree
14200 echo "$f"
14201 elif test -f "$srcdir/$f"; then
14202 # Source tree
14203 echo "$srcdir/$f"
14204 else
14205 # /dev/null tree
14206 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14207echo "$as_me: error: cannot find input file: $f" >&2;}
14208 { (exit 1); exit 1; }; }
14209 fi;;
14210 esac
14211 done` || { (exit 1); exit 1; }
14212 # Remove the trailing spaces.
14213 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14214
14215_ACEOF
14216
14217# Transform confdefs.h into two sed scripts, `conftest.defines' and
14218# `conftest.undefs', that substitutes the proper values into
14219# config.h.in to produce config.h. The first handles `#define'
14220# templates, and the second `#undef' templates.
14221# And first: Protect against being on the right side of a sed subst in
14222# config.status. Protect against being in an unquoted here document
14223# in config.status.
14224rm -f conftest.defines conftest.undefs
14225# Using a here document instead of a string reduces the quoting nightmare.
14226# Putting comments in sed scripts is not portable.
14227#
14228# `end' is used to avoid that the second main sed command (meant for
14229# 0-ary CPP macros) applies to n-ary macro definitions.
14230# See the Autoconf documentation for `clear'.
14231cat >confdef2sed.sed <<\_ACEOF
14232s/[\\&,]/\\&/g
14233s,[\\$`],\\&,g
14234t clear
14235: clear
14236s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14237t end
14238s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14239: end
14240_ACEOF
14241# If some macros were called several times there might be several times
14242# the same #defines, which is useless. Nevertheless, we may not want to
14243# sort them, since we want the *last* AC-DEFINE to be honored.
14244uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14245sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14246rm -f confdef2sed.sed
63e5e3e0
AG
14247
14248# This sed command replaces #undef with comments. This is necessary, for
14249# example, in the case of _POSIX_SOURCE, which is predefined and required
14250# on some systems where configure will not decide to define it.
3ed8e5b6
AT
14251cat >>conftest.undefs <<\_ACEOF
14252s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14253_ACEOF
14254
14255# Break up conftest.defines because some shells have a limit on the size
14256# of here documents, and old seds have small limits too (100 cmds).
14257echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14258echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14259echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14260echo ' :' >>$CONFIG_STATUS
14261rm -f conftest.tail
14262while grep . conftest.defines >/dev/null
14263do
14264 # Write a limited-size here document to $tmp/defines.sed.
14265 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14266 # Speed up: don't consider the non `#define' lines.
14267 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14268 # Work around the forget-to-reset-the-flag bug.
14269 echo 't clr' >>$CONFIG_STATUS
14270 echo ': clr' >>$CONFIG_STATUS
14271 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14272 echo 'CEOF
14273 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14274 rm -f $tmp/in
14275 mv $tmp/out $tmp/in
14276' >>$CONFIG_STATUS
14277 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14278 rm -f conftest.defines
14279 mv conftest.tail conftest.defines
14280done
14281rm -f conftest.defines
14282echo ' fi # grep' >>$CONFIG_STATUS
14283echo >>$CONFIG_STATUS
63e5e3e0 14284
3ed8e5b6
AT
14285# Break up conftest.undefs because some shells have a limit on the size
14286# of here documents, and old seds have small limits too (100 cmds).
14287echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
63e5e3e0 14288rm -f conftest.tail
3ed8e5b6 14289while grep . conftest.undefs >/dev/null
63e5e3e0 14290do
3ed8e5b6
AT
14291 # Write a limited-size here document to $tmp/undefs.sed.
14292 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14293 # Speed up: don't consider the non `#undef'
14294 echo '/^[ ]*#[ ]*undef/!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.undefs >>$CONFIG_STATUS
63e5e3e0 14299 echo 'CEOF
3ed8e5b6
AT
14300 sed -f $tmp/undefs.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.undefs >conftest.tail
14305 rm -f conftest.undefs
14306 mv conftest.tail conftest.undefs
63e5e3e0 14307done
3ed8e5b6
AT
14308rm -f conftest.undefs
14309
14310cat >>$CONFIG_STATUS <<\_ACEOF
14311 # Let's still pretend it is `configure' which instantiates (i.e., don't
14312 # use $as_me), people would be surprised to read:
14313 # /* config.h. Generated by config.status. */
14314 if test x"$ac_file" = x-; then
14315 echo "/* Generated by configure. */" >$tmp/config.h
63e5e3e0 14316 else
3ed8e5b6 14317 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
63e5e3e0 14318 fi
3ed8e5b6
AT
14319 cat $tmp/in >>$tmp/config.h
14320 rm -f $tmp/in
14321 if test x"$ac_file" != x-; then
14322 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14323 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14324echo "$as_me: $ac_file is unchanged" >&6;}
14325 else
14326 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14327$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14328 X"$ac_file" : 'X\(//\)[^/]' \| \
14329 X"$ac_file" : 'X\(//\)$' \| \
14330 X"$ac_file" : 'X\(/\)' \| \
14331 . : '\(.\)' 2>/dev/null ||
14332echo X"$ac_file" |
14333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14334 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14335 /^X\(\/\/\)$/{ s//\1/; q; }
14336 /^X\(\/\).*/{ s//\1/; q; }
14337 s/.*/./; q'`
14338 { if $as_mkdir_p; then
14339 mkdir -p "$ac_dir"
14340 else
14341 as_dir="$ac_dir"
14342 as_dirs=
14343 while test ! -d "$as_dir"; do
14344 as_dirs="$as_dir $as_dirs"
14345 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14346$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14347 X"$as_dir" : 'X\(//\)[^/]' \| \
14348 X"$as_dir" : 'X\(//\)$' \| \
14349 X"$as_dir" : 'X\(/\)' \| \
14350 . : '\(.\)' 2>/dev/null ||
14351echo X"$as_dir" |
14352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14353 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14354 /^X\(\/\/\)$/{ s//\1/; q; }
14355 /^X\(\/\).*/{ s//\1/; q; }
14356 s/.*/./; q'`
14357 done
14358 test ! -n "$as_dirs" || mkdir $as_dirs
14359 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14360echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14361 { (exit 1); exit 1; }; }; }
63e5e3e0 14362
3ed8e5b6
AT
14363 rm -f $ac_file
14364 mv $tmp/config.h $ac_file
14365 fi
14366 else
14367 cat $tmp/config.h
14368 rm -f $tmp/config.h
14369 fi
14370# Compute $ac_file's index in $config_headers.
14371_am_stamp_count=1
14372for _am_header in $config_headers :; do
14373 case $_am_header in
14374 $ac_file | $ac_file:* )
14375 break ;;
14376 * )
14377 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14378 esac
14379done
14380echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
14381$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14382 X$ac_file : 'X\(//\)[^/]' \| \
14383 X$ac_file : 'X\(//\)$' \| \
14384 X$ac_file : 'X\(/\)' \| \
14385 . : '\(.\)' 2>/dev/null ||
14386echo X$ac_file |
14387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14388 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14389 /^X\(\/\/\)$/{ s//\1/; q; }
14390 /^X\(\/\).*/{ s//\1/; q; }
14391 s/.*/./; q'`/stamp-h$_am_stamp_count
14392done
14393_ACEOF
14394cat >>$CONFIG_STATUS <<\_ACEOF
1450eb7a 14395
3ed8e5b6
AT
14396#
14397# CONFIG_LINKS section.
14398#
1450eb7a 14399
3ed8e5b6
AT
14400for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
14401 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14402 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
1450eb7a 14403
3ed8e5b6
AT
14404 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
14405echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
1450eb7a
AT
14406
14407 if test ! -r $srcdir/$ac_source; then
3ed8e5b6
AT
14408 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
14409echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
14410 { (exit 1); exit 1; }; }
1450eb7a
AT
14411 fi
14412 rm -f $ac_dest
14413
14414 # Make relative symlinks.
3ed8e5b6
AT
14415 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
14416$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14417 X"$ac_dest" : 'X\(//\)[^/]' \| \
14418 X"$ac_dest" : 'X\(//\)$' \| \
14419 X"$ac_dest" : 'X\(/\)' \| \
14420 . : '\(.\)' 2>/dev/null ||
14421echo X"$ac_dest" |
14422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14423 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14424 /^X\(\/\/\)$/{ s//\1/; q; }
14425 /^X\(\/\).*/{ s//\1/; q; }
14426 s/.*/./; q'`
14427 { if $as_mkdir_p; then
14428 mkdir -p "$ac_dest_dir"
1450eb7a 14429 else
3ed8e5b6
AT
14430 as_dir="$ac_dest_dir"
14431 as_dirs=
14432 while test ! -d "$as_dir"; do
14433 as_dirs="$as_dir $as_dirs"
14434 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14435$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14436 X"$as_dir" : 'X\(//\)[^/]' \| \
14437 X"$as_dir" : 'X\(//\)$' \| \
14438 X"$as_dir" : 'X\(/\)' \| \
14439 . : '\(.\)' 2>/dev/null ||
14440echo X"$as_dir" |
14441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14442 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14443 /^X\(\/\/\)$/{ s//\1/; q; }
14444 /^X\(\/\).*/{ s//\1/; q; }
14445 s/.*/./; q'`
14446 done
14447 test ! -n "$as_dirs" || mkdir $as_dirs
14448 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
14449echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
14450 { (exit 1); exit 1; }; }; }
14451
14452 ac_builddir=.
14453
14454if test "$ac_dest_dir" != .; then
14455 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
14456 # A "../" for each directory in $ac_dir_suffix.
14457 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14458else
14459 ac_dir_suffix= ac_top_builddir=
14460fi
14461
14462case $srcdir in
14463 .) # No --srcdir option. We are building in place.
14464 ac_srcdir=.
14465 if test -z "$ac_top_builddir"; then
14466 ac_top_srcdir=.
14467 else
14468 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14469 fi ;;
14470 [\\/]* | ?:[\\/]* ) # Absolute path.
14471 ac_srcdir=$srcdir$ac_dir_suffix;
14472 ac_top_srcdir=$srcdir ;;
14473 *) # Relative path.
14474 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14475 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14476esac
14477
14478# Do not use `cd foo && pwd` to compute absolute paths, because
14479# the directories may not exist.
14480case `pwd` in
14481.) ac_abs_builddir="$ac_dest_dir";;
14482*)
14483 case "$ac_dest_dir" in
14484 .) ac_abs_builddir=`pwd`;;
14485 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
14486 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
14487 esac;;
14488esac
14489case $ac_abs_builddir in
14490.) ac_abs_top_builddir=${ac_top_builddir}.;;
14491*)
14492 case ${ac_top_builddir}. in
14493 .) ac_abs_top_builddir=$ac_abs_builddir;;
14494 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14495 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14496 esac;;
14497esac
14498case $ac_abs_builddir in
14499.) ac_abs_srcdir=$ac_srcdir;;
14500*)
14501 case $ac_srcdir in
14502 .) ac_abs_srcdir=$ac_abs_builddir;;
14503 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14504 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14505 esac;;
14506esac
14507case $ac_abs_builddir in
14508.) ac_abs_top_srcdir=$ac_top_srcdir;;
14509*)
14510 case $ac_top_srcdir in
14511 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14512 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14513 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14514 esac;;
14515esac
14516
1450eb7a 14517
3ed8e5b6
AT
14518 case $srcdir in
14519 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
14520 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
1450eb7a
AT
14521 esac
14522
3ed8e5b6
AT
14523 # Try a symlink, then a hard link, then a copy.
14524 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
14525 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
14526 cp -p $srcdir/$ac_source $ac_dest ||
14527 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
14528echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
14529 { (exit 1); exit 1; }; }
1450eb7a 14530done
3ed8e5b6
AT
14531_ACEOF
14532cat >>$CONFIG_STATUS <<\_ACEOF
63e5e3e0 14533
3ed8e5b6
AT
14534#
14535# CONFIG_COMMANDS section.
14536#
14537for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14538 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14539 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14540 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14541$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14542 X"$ac_dest" : 'X\(//\)[^/]' \| \
14543 X"$ac_dest" : 'X\(//\)$' \| \
14544 X"$ac_dest" : 'X\(/\)' \| \
14545 . : '\(.\)' 2>/dev/null ||
14546echo X"$ac_dest" |
14547 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14548 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14549 /^X\(\/\/\)$/{ s//\1/; q; }
14550 /^X\(\/\).*/{ s//\1/; q; }
14551 s/.*/./; q'`
14552 { if $as_mkdir_p; then
14553 mkdir -p "$ac_dir"
14554 else
14555 as_dir="$ac_dir"
14556 as_dirs=
14557 while test ! -d "$as_dir"; do
14558 as_dirs="$as_dir $as_dirs"
14559 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14560$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14561 X"$as_dir" : 'X\(//\)[^/]' \| \
14562 X"$as_dir" : 'X\(//\)$' \| \
14563 X"$as_dir" : 'X\(/\)' \| \
14564 . : '\(.\)' 2>/dev/null ||
14565echo X"$as_dir" |
14566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14567 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14568 /^X\(\/\/\)$/{ s//\1/; q; }
14569 /^X\(\/\).*/{ s//\1/; q; }
14570 s/.*/./; q'`
14571 done
14572 test ! -n "$as_dirs" || mkdir $as_dirs
14573 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14574echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14575 { (exit 1); exit 1; }; }; }
1450eb7a 14576
3ed8e5b6
AT
14577 ac_builddir=.
14578
14579if test "$ac_dir" != .; then
14580 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14581 # A "../" for each directory in $ac_dir_suffix.
14582 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14583else
14584 ac_dir_suffix= ac_top_builddir=
14585fi
1450eb7a 14586
3ed8e5b6
AT
14587case $srcdir in
14588 .) # No --srcdir option. We are building in place.
14589 ac_srcdir=.
14590 if test -z "$ac_top_builddir"; then
14591 ac_top_srcdir=.
14592 else
14593 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14594 fi ;;
14595 [\\/]* | ?:[\\/]* ) # Absolute path.
14596 ac_srcdir=$srcdir$ac_dir_suffix;
14597 ac_top_srcdir=$srcdir ;;
14598 *) # Relative path.
14599 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14600 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14601esac
1450eb7a 14602
3ed8e5b6
AT
14603# Do not use `cd foo && pwd` to compute absolute paths, because
14604# the directories may not exist.
14605case `pwd` in
14606.) ac_abs_builddir="$ac_dir";;
14607*)
14608 case "$ac_dir" in
14609 .) ac_abs_builddir=`pwd`;;
14610 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14611 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14612 esac;;
14613esac
14614case $ac_abs_builddir in
14615.) ac_abs_top_builddir=${ac_top_builddir}.;;
14616*)
14617 case ${ac_top_builddir}. in
14618 .) ac_abs_top_builddir=$ac_abs_builddir;;
14619 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14620 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14621 esac;;
14622esac
14623case $ac_abs_builddir in
14624.) ac_abs_srcdir=$ac_srcdir;;
14625*)
14626 case $ac_srcdir in
14627 .) ac_abs_srcdir=$ac_abs_builddir;;
14628 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14629 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14630 esac;;
14631esac
14632case $ac_abs_builddir in
14633.) ac_abs_top_srcdir=$ac_top_srcdir;;
14634*)
14635 case $ac_top_srcdir in
14636 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14637 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14638 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14639 esac;;
14640esac
63e5e3e0 14641
63e5e3e0 14642
3ed8e5b6
AT
14643 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14644echo "$as_me: executing $ac_dest commands" >&6;}
14645 case $ac_dest in
14646 default-1 )
14647# Only add multilib support code if we just rebuilt the top-level
14648# Makefile.
14649case " $CONFIG_FILES " in
14650 *" Makefile "*)
14651 ac_file=Makefile . ${multi_basedir}/config-ml.in
14652 ;;
14653esac ;;
14654 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14655 # Strip MF so we end up with the name of the file.
14656 mf=`echo "$mf" | sed -e 's/:.*$//'`
14657 # Check whether this is an Automake generated Makefile or not.
14658 # We used to match only the files named `Makefile.in', but
14659 # some people rename them; so instead we look at the file content.
14660 # Grep'ing the first line is not enough: some people post-process
14661 # each Makefile.in and add a new line on top of each file to say so.
14662 # So let's grep whole file.
14663 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14664 dirpart=`(dirname "$mf") 2>/dev/null ||
14665$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14666 X"$mf" : 'X\(//\)[^/]' \| \
14667 X"$mf" : 'X\(//\)$' \| \
14668 X"$mf" : 'X\(/\)' \| \
14669 . : '\(.\)' 2>/dev/null ||
14670echo X"$mf" |
14671 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14672 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14673 /^X\(\/\/\)$/{ s//\1/; q; }
14674 /^X\(\/\).*/{ s//\1/; q; }
14675 s/.*/./; q'`
14676 else
14677 continue
14678 fi
b85e31b9
KC
14679 # Extract the definition of DEPDIR, am__include, and am__quote
14680 # from the Makefile without running `make'.
076e5443 14681 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
3ed8e5b6 14682 test -z "$DEPDIR" && continue
b85e31b9
KC
14683 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14684 test -z "am__include" && continue
14685 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
3ed8e5b6 14686 # When using ansi2knr, U may be empty or an underscore; expand it
076e5443 14687 U=`sed -n 's/^U = //p' < "$mf"`
b85e31b9
KC
14688 # Find all dependency output files, they are included files with
14689 # $(DEPDIR) in their names. We invoke sed twice because it is the
14690 # simplest approach to changing $(DEPDIR) to its actual value in the
14691 # expansion.
14692 for file in `sed -n "
14693 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
3ed8e5b6
AT
14694 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14695 # Make sure the directory exists.
14696 test -f "$dirpart/$file" && continue
14697 fdir=`(dirname "$file") 2>/dev/null ||
14698$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14699 X"$file" : 'X\(//\)[^/]' \| \
14700 X"$file" : 'X\(//\)$' \| \
14701 X"$file" : 'X\(/\)' \| \
14702 . : '\(.\)' 2>/dev/null ||
14703echo X"$file" |
14704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14705 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14706 /^X\(\/\/\)$/{ s//\1/; q; }
14707 /^X\(\/\).*/{ s//\1/; q; }
14708 s/.*/./; q'`
14709 { if $as_mkdir_p; then
14710 mkdir -p $dirpart/$fdir
14711 else
14712 as_dir=$dirpart/$fdir
14713 as_dirs=
14714 while test ! -d "$as_dir"; do
14715 as_dirs="$as_dir $as_dirs"
14716 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14717$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14718 X"$as_dir" : 'X\(//\)[^/]' \| \
14719 X"$as_dir" : 'X\(//\)$' \| \
14720 X"$as_dir" : 'X\(/\)' \| \
14721 . : '\(.\)' 2>/dev/null ||
14722echo X"$as_dir" |
14723 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14724 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14725 /^X\(\/\/\)$/{ s//\1/; q; }
14726 /^X\(\/\).*/{ s//\1/; q; }
14727 s/.*/./; q'`
14728 done
14729 test ! -n "$as_dirs" || mkdir $as_dirs
14730 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
14731echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
14732 { (exit 1); exit 1; }; }; }
3c18f2d1 14733
3ed8e5b6
AT
14734 # echo "creating $dirpart/$file"
14735 echo '# dummy' > "$dirpart/$file"
14736 done
14737done
1cf3d07d
SE
14738 ;;
14739 libtool )
14740
14741 # See if we are running on zsh, and set the options which allow our
14742 # commands through without removal of \ escapes.
14743 if test -n "${ZSH_VERSION+set}" ; then
14744 setopt NO_GLOB_SUBST
14745 fi
14746
14747 cfgfile="${ofile}T"
14748 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14749 $RM "$cfgfile"
14750
14751 cat <<_LT_EOF >> "$cfgfile"
14752#! $SHELL
14753
14754# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14755# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION
14756# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14757# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14758#
14759# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14760# 2006, 2007 Free Software Foundation, Inc.
14761#
14762# This file is part of GNU Libtool:
14763# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14764#
14765# This program is free software; you can redistribute it and/or modify
14766# it under the terms of the GNU General Public License as published by
14767# the Free Software Foundation; either version 2 of the License, or
14768# (at your option) any later version.
14769#
14770# This program is distributed in the hope that it will be useful, but
14771# WITHOUT ANY WARRANTY; without even the implied warranty of
14772# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14773# General Public License for more details.
14774#
14775# You should have received a copy of the GNU General Public License
14776# along with this program; if not, a copy can be downloaded from
14777# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free
14778# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
14779# MA 02110-1301, USA.
14780#
14781# As a special exception to the GNU General Public License, if you
14782# distribute this file as part of a program that contains a
14783# configuration script generated by Autoconf, you may include it under
14784# the same distribution terms that you use for the rest of that program.
14785
14786
14787# The names of the tagged configurations supported by this script.
14788available_tags=""
14789
14790# ### BEGIN LIBTOOL CONFIG
14791
14792# Which release of libtool.m4 was used?
14793macro_version=$macro_version
14794macro_revision=$macro_revision
14795
14796# Whether or not to build shared libraries.
14797build_libtool_libs=$enable_shared
14798
14799# Whether or not to build static libraries.
14800build_old_libs=$enable_static
14801
14802# What type of objects to build.
14803pic_mode=$pic_mode
14804
14805# Whether or not to optimize for fast installation.
14806fast_install=$enable_fast_install
14807
14808# The host system.
14809host_alias=$host_alias
14810host=$host
14811host_os=$host_os
14812
14813# The build system.
14814build_alias=$build_alias
14815build=$build
14816build_os=$build_os
14817
14818# A sed program that does not truncate output.
14819SED=$lt_SED
14820
14821# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14822Xsed="\$SED -e 1s/^X//"
14823
14824# A grep program that handles long lines.
14825GREP=$lt_GREP
14826
14827# An ERE matcher.
14828EGREP=$lt_EGREP
14829
14830# A literal string matcher.
14831FGREP=$lt_FGREP
14832
14833# A BSD- or MS-compatible name lister.
14834NM=$lt_NM
14835
14836# Whether we need soft or hard links.
14837LN_S=$lt_LN_S
14838
14839# What is the maximum length of a command?
14840max_cmd_len=$max_cmd_len
14841
14842# Object file suffix (normally "o").
14843objext=$ac_objext
14844
14845# Executable file suffix (normally "").
14846exeext=$exeext
14847
14848# whether the shell understands "unset".
14849lt_unset=$lt_unset
14850
14851# turn spaces into newlines.
14852SP2NL=$lt_lt_SP2NL
14853
14854# turn newlines into spaces.
14855NL2SP=$lt_lt_NL2SP
14856
14857# How to create reloadable object files.
14858reload_flag=$lt_reload_flag
14859reload_cmds=$lt_reload_cmds
14860
14861# Method to check whether dependent libraries are shared objects.
14862deplibs_check_method=$lt_deplibs_check_method
14863
14864# Command to use when deplibs_check_method == "file_magic".
14865file_magic_cmd=$lt_file_magic_cmd
14866
14867# The archiver.
14868AR=$lt_AR
14869AR_FLAGS=$lt_AR_FLAGS
14870
14871# A symbol stripping program.
14872STRIP=$lt_STRIP
14873
14874# Commands used to install an old-style archive.
14875RANLIB=$lt_RANLIB
14876old_postinstall_cmds=$lt_old_postinstall_cmds
14877old_postuninstall_cmds=$lt_old_postuninstall_cmds
14878
14879# A C compiler.
14880LTCC=$lt_CC
14881
14882# LTCC compiler flags.
14883LTCFLAGS=$lt_CFLAGS
14884
14885# Take the output of nm and produce a listing of raw symbols and C names.
14886global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14887
14888# Transform the output of nm in a proper C declaration.
14889global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14890
14891# Transform the output of nm in a C name address pair.
14892global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14893
14894# The name of the directory that contains temporary libtool files.
14895objdir=$objdir
14896
14897# Shell to use when invoking shell scripts.
14898SHELL=$lt_SHELL
14899
14900# An echo program that does not interpret backslashes.
14901ECHO=$lt_ECHO
14902
14903# Used to examine libraries when file_magic_cmd begins with "file".
14904MAGIC_CMD=$MAGIC_CMD
14905
14906# Must we lock files when doing compilation?
14907need_locks=$lt_need_locks
14908
14909# Old archive suffix (normally "a").
14910libext=$libext
14911
14912# Shared library suffix (normally ".so").
14913shrext_cmds=$lt_shrext_cmds
14914
14915# The commands to extract the exported symbol list from a shared archive.
14916extract_expsyms_cmds=$lt_extract_expsyms_cmds
14917
14918# Variables whose values should be saved in libtool wrapper scripts and
14919# restored at link time.
14920variables_saved_for_relink=$lt_variables_saved_for_relink
14921
14922# Do we need the "lib" prefix for modules?
14923need_lib_prefix=$need_lib_prefix
14924
14925# Do we need a version for libraries?
14926need_version=$need_version
14927
14928# Library versioning type.
14929version_type=$version_type
14930
14931# Shared library runtime path variable.
14932runpath_var=$runpath_var
14933
14934# Shared library path variable.
14935shlibpath_var=$shlibpath_var
14936
14937# Is shlibpath searched before the hard-coded library search path?
14938shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14939
14940# Format of library name prefix.
14941libname_spec=$lt_libname_spec
14942
14943# List of archive names. First name is the real one, the rest are links.
14944# The last name is the one that the linker finds with -lNAME
14945library_names_spec=$lt_library_names_spec
14946
14947# The coded name of the library, if different from the real name.
14948soname_spec=$lt_soname_spec
14949
14950# Command to use after installation of a shared archive.
14951postinstall_cmds=$lt_postinstall_cmds
14952
14953# Command to use after uninstallation of a shared archive.
14954postuninstall_cmds=$lt_postuninstall_cmds
14955
14956# Commands used to finish a libtool library installation in a directory.
14957finish_cmds=$lt_finish_cmds
14958
14959# As "finish_cmds", except a single script fragment to be evaled but
14960# not shown.
14961finish_eval=$lt_finish_eval
14962
14963# Whether we should hardcode library paths into libraries.
14964hardcode_into_libs=$hardcode_into_libs
14965
14966# Compile-time system search path for libraries.
14967sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14968
14969# Run-time system search path for libraries.
14970sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14971
14972# Whether dlopen is supported.
14973dlopen_support=$enable_dlopen
14974
14975# Whether dlopen of programs is supported.
14976dlopen_self=$enable_dlopen_self
14977
14978# Whether dlopen of statically linked programs is supported.
14979dlopen_self_static=$enable_dlopen_self_static
14980
14981# Commands to strip libraries.
14982old_striplib=$lt_old_striplib
14983striplib=$lt_striplib
14984
14985
14986# The linker used to build libraries.
14987LD=$lt_LD
14988
14989# Commands used to build an old-style archive.
14990old_archive_cmds=$lt_old_archive_cmds
14991
14992# A language specific compiler.
14993CC=$lt_compiler
14994
14995# Is the compiler the GNU compiler?
14996with_gcc=$GCC
14997
14998# Compiler flag to turn off builtin functions.
14999no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15000
15001# How to pass a linker flag through the compiler.
15002wl=$lt_lt_prog_compiler_wl
15003
15004# Additional compiler flags for building library objects.
15005pic_flag=$lt_lt_prog_compiler_pic
15006
15007# Compiler flag to prevent dynamic linking.
15008link_static_flag=$lt_lt_prog_compiler_static
15009
15010# Does compiler simultaneously support -c and -o options?
15011compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15012
15013# Whether or not to add -lc for building shared libraries.
15014build_libtool_need_lc=$archive_cmds_need_lc
15015
15016# Whether or not to disallow shared libs when runtime libs are static.
15017allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15018
15019# Compiler flag to allow reflexive dlopens.
15020export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15021
15022# Compiler flag to generate shared objects directly from archives.
15023whole_archive_flag_spec=$lt_whole_archive_flag_spec
15024
15025# Whether the compiler copes with passing no objects directly.
15026compiler_needs_object=$lt_compiler_needs_object
15027
15028# Create an old-style archive from a shared archive.
15029old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15030
15031# Create a temporary old-style archive to link instead of a shared archive.
15032old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15033
15034# Commands used to build a shared archive.
15035archive_cmds=$lt_archive_cmds
15036archive_expsym_cmds=$lt_archive_expsym_cmds
15037
15038# Commands used to build a loadable module if different from building
15039# a shared archive.
15040module_cmds=$lt_module_cmds
15041module_expsym_cmds=$lt_module_expsym_cmds
15042
15043# Whether we are building with GNU ld or not.
15044with_gnu_ld=$lt_with_gnu_ld
15045
15046# Flag that allows shared libraries with undefined symbols to be built.
15047allow_undefined_flag=$lt_allow_undefined_flag
15048
15049# Flag that enforces no undefined symbols.
15050no_undefined_flag=$lt_no_undefined_flag
15051
15052# Flag to hardcode \$libdir into a binary during linking.
15053# This must work even if \$libdir does not exist
15054hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15055
15056# If ld is used when linking, flag to hardcode \$libdir into a binary
15057# during linking. This must work even if \$libdir does not exist.
15058hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15059
15060# Whether we need a single "-rpath" flag with a separated argument.
15061hardcode_libdir_separator=$lt_hardcode_libdir_separator
15062
15063# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15064# DIR into the resulting binary.
15065hardcode_direct=$hardcode_direct
15066
15067# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15068# DIR into the resulting binary and the resulting library dependency is
15069# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15070# library is relocated.
15071hardcode_direct_absolute=$hardcode_direct_absolute
15072
15073# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15074# into the resulting binary.
15075hardcode_minus_L=$hardcode_minus_L
15076
15077# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15078# into the resulting binary.
15079hardcode_shlibpath_var=$hardcode_shlibpath_var
15080
15081# Set to "yes" if building a shared library automatically hardcodes DIR
15082# into the library and all subsequent libraries and executables linked
15083# against it.
15084hardcode_automatic=$hardcode_automatic
15085
15086# Set to yes if linker adds runtime paths of dependent libraries
15087# to runtime path list.
15088inherit_rpath=$inherit_rpath
15089
15090# Whether libtool must link a program against all its dependency libraries.
15091link_all_deplibs=$link_all_deplibs
15092
15093# Fix the shell variable \$srcfile for the compiler.
15094fix_srcfile_path=$lt_fix_srcfile_path
15095
15096# Set to "yes" if exported symbols are required.
15097always_export_symbols=$always_export_symbols
15098
15099# The commands to list exported symbols.
15100export_symbols_cmds=$lt_export_symbols_cmds
15101
15102# Symbols that should not be listed in the preloaded symbols.
15103exclude_expsyms=$lt_exclude_expsyms
15104
15105# Symbols that must always be exported.
15106include_expsyms=$lt_include_expsyms
15107
15108# Commands necessary for linking programs (against libraries) with templates.
15109prelink_cmds=$lt_prelink_cmds
15110
15111# Specify filename containing input files.
15112file_list_spec=$lt_file_list_spec
15113
15114# How to hardcode a shared library path into an executable.
15115hardcode_action=$hardcode_action
15116
15117# ### END LIBTOOL CONFIG
15118
15119_LT_EOF
15120
15121 case $host_os in
15122 aix3*)
15123 cat <<\_LT_EOF >> "$cfgfile"
15124# AIX sometimes has problems with the GCC collect2 program. For some
15125# reason, if we set the COLLECT_NAMES environment variable, the problems
15126# vanish in a puff of smoke.
15127if test "X${COLLECT_NAMES+set}" != Xset; then
15128 COLLECT_NAMES=
15129 export COLLECT_NAMES
15130fi
15131_LT_EOF
15132 ;;
15133 esac
15134
15135
15136ltmain="$ac_aux_dir/ltmain.sh"
15137
15138
15139 # We use sed instead of cat because bash on DJGPP gets confused if
15140 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15141 # text mode, it properly converts lines to CR/LF. This bash problem
15142 # is reportedly fixed, but why not run on old versions too?
15143 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15144 || (rm -f "$cfgfile"; exit 1)
15145
15146 case $xsi_shell in
15147 yes)
15148 cat << \_LT_EOF >> "$cfgfile"
15149# func_dirname file append nondir_replacement
15150# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15151# otherwise set result to NONDIR_REPLACEMENT.
15152func_dirname ()
15153{
15154 case ${1} in
15155 */*) func_dirname_result="${1%/*}${2}" ;;
15156 * ) func_dirname_result="${3}" ;;
15157 esac
15158}
15159
15160# func_basename file
15161func_basename ()
15162{
15163 func_basename_result="${1##*/}"
15164}
15165
15166# func_stripname prefix suffix name
15167# strip PREFIX and SUFFIX off of NAME.
15168# PREFIX and SUFFIX must not contain globbing or regex special
15169# characters, hashes, percent signs, but SUFFIX may contain a leading
15170# dot (in which case that matches only a dot).
15171func_stripname ()
15172{
15173 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15174 # positional parameters, so assign one to ordinary parameter first.
15175 func_stripname_result=${3}
15176 func_stripname_result=${func_stripname_result#"${1}"}
15177 func_stripname_result=${func_stripname_result%"${2}"}
15178}
15179
15180# func_opt_split
15181func_opt_split ()
15182{
15183 func_opt_split_opt=${1%%=*}
15184 func_opt_split_arg=${1#*=}
15185}
15186
15187# func_lo2o object
15188func_lo2o ()
15189{
15190 case ${1} in
15191 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15192 *) func_lo2o_result=${1} ;;
15193 esac
15194}
15195_LT_EOF
15196 ;;
15197 *) # Bourne compatible functions.
15198 cat << \_LT_EOF >> "$cfgfile"
15199# func_dirname file append nondir_replacement
15200# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15201# otherwise set result to NONDIR_REPLACEMENT.
15202func_dirname ()
15203{
15204 # Extract subdirectory from the argument.
15205 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15206 if test "X$func_dirname_result" = "X${1}"; then
15207 func_dirname_result="${3}"
15208 else
15209 func_dirname_result="$func_dirname_result${2}"
15210 fi
15211}
15212
15213# func_basename file
15214func_basename ()
15215{
15216 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15217}
15218
15219# func_stripname prefix suffix name
15220# strip PREFIX and SUFFIX off of NAME.
15221# PREFIX and SUFFIX must not contain globbing or regex special
15222# characters, hashes, percent signs, but SUFFIX may contain a leading
15223# dot (in which case that matches only a dot).
15224# func_strip_suffix prefix name
15225func_stripname ()
15226{
15227 case ${2} in
15228 .*) func_stripname_result=`$ECHO "X${3}" \
15229 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15230 *) func_stripname_result=`$ECHO "X${3}" \
15231 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15232 esac
15233}
15234
15235# sed scripts:
15236my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15237my_sed_long_arg='1s/^-[^=]*=//'
15238
15239# func_opt_split
15240func_opt_split ()
15241{
15242 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15243 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15244}
15245
15246# func_lo2o object
15247func_lo2o ()
15248{
15249 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15250}
15251_LT_EOF
15252esac
15253
15254case $lt_shell_append in
15255 yes)
15256 cat << \_LT_EOF >> "$cfgfile"
15257
15258# func_append var value
15259# Append VALUE to the end of shell variable VAR.
15260func_append ()
15261{
15262 eval "$1+=\$2"
15263}
15264_LT_EOF
15265 ;;
15266 *)
15267 cat << \_LT_EOF >> "$cfgfile"
15268
15269# func_append var value
15270# Append VALUE to the end of shell variable VAR.
15271func_append ()
15272{
15273 eval "$1=\$$1\$2"
15274}
15275_LT_EOF
15276 ;;
15277 esac
15278
15279
15280 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15281 || (rm -f "$cfgfile"; exit 1)
15282
15283 mv -f "$cfgfile" "$ofile" ||
15284 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15285 chmod +x "$ofile"
15286
3ed8e5b6
AT
15287 ;;
15288 include ) test -d include || mkdir include ;;
15289 src )
15290test -d src || mkdir src
15291test -d src/$TARGETDIR || mkdir src/$TARGETDIR
15292 ;;
15293 esac
15294done
15295_ACEOF
15296
15297cat >>$CONFIG_STATUS <<\_ACEOF
15298
15299{ (exit 0); exit 0; }
15300_ACEOF
63e5e3e0 15301chmod +x $CONFIG_STATUS
3ed8e5b6
AT
15302ac_clean_files=$ac_clean_files_save
15303
15304
15305# configure is writing to config.log, and then calls config.status.
15306# config.status does its own redirection, appending to config.log.
15307# Unfortunately, on DOS this fails, as config.log is still kept open
15308# by configure, so config.status won't be able to write to it; its
15309# output is simply discarded. So we exec the FD to /dev/null,
15310# effectively closing config.log, so it can be properly (re)opened and
15311# appended to by config.status. When coming back to configure, we
15312# need to make the FD available again.
15313if test "$no_create" != yes; then
15314 ac_cs_success=:
15315 ac_config_status_args=
15316 test "$silent" = yes &&
15317 ac_config_status_args="$ac_config_status_args --quiet"
15318 exec 5>/dev/null
15319 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15320 exec 5>>config.log
15321 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15322 # would make configure fail if this is the last instruction.
15323 $ac_cs_success || { (exit 1); exit 1; }
15324fi
63e5e3e0 15325