OSDN Git Service

* configure.ac: Tidy target case.
[pf3gnuchains/gcc-fork.git] / libffi / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for libffi 2.1.
4 #
5 # Report bugs to <http://gcc.gnu.org/bugs.html>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22   set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28   as_unset=unset
29 else
30   as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44   LC_TELEPHONE LC_TIME
45 do
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
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55   as_expr=expr
56 else
57   as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61   as_basename=basename
62 else
63   as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70          X"$0" : 'X\(//\)$' \| \
71          X"$0" : 'X\(/\)$' \| \
72          .     : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75           /^X\/\(\/\/\)$/{ s//\1/; q; }
76           /^X\/\(\/\).*/{ s//\1/; q; }
77           s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90   echo "#! /bin/sh" >conf$$.sh
91   echo  "exit 0"   >>conf$$.sh
92   chmod +x conf$$.sh
93   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94     PATH_SEPARATOR=';'
95   else
96     PATH_SEPARATOR=:
97   fi
98   rm -f conf$$.sh
99 fi
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
112 for as_dir in $PATH
113 do
114   IFS=$as_save_IFS
115   test -z "$as_dir" && as_dir=.
116   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
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
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
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
154 done
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
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190   *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T='      ' ;;
192   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197   as_expr=expr
198 else
199   as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205   # We could just check for DJGPP; but this test a) works b) is more generic
206   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207   if test -f conf$$.exe; then
208     # Don't use ln at all; we don't have any links
209     as_ln_s='cp -p'
210   else
211     as_ln_s='ln -s'
212   fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214   as_ln_s=ln
215 else
216   as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221   as_mkdir_p=:
222 else
223   test -d ./-p && rmdir ./-p
224   as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS="   $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251 exec 6>&1
252
253 #
254 # Initializations.
255 #
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
263
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete.  It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
268
269 # Identity of this package.
270 PACKAGE_NAME='libffi'
271 PACKAGE_TARNAME='libffi'
272 PACKAGE_VERSION='2.1'
273 PACKAGE_STRING='libffi 2.1'
274 PACKAGE_BUGREPORT='http://gcc.gnu.org/bugs.html'
275
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 #  include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 #  include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 #  include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS multi_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS CCAS CCASFLAGS LN_S RANLIB ac_ct_RANLIB LIBTOOL MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CPP CPPFLAGS EGREP TESTSUBDIR_TRUE TESTSUBDIR_FALSE AM_RUNTESTFLAGS MIPS_IRIX_TRUE MIPS_IRIX_FALSE MIPS_LINUX_TRUE MIPS_LINUX_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'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357   # If the previous option needs an argument, assign it.
358   if test -n "$ac_prev"; then
359     eval "$ac_prev=\$ac_option"
360     ac_prev=
361     continue
362   fi
363
364   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366   # Accept the important Cygnus configure options, so we can diagnose typos.
367
368   case $ac_option in
369
370   -bindir | --bindir | --bindi | --bind | --bin | --bi)
371     ac_prev=bindir ;;
372   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373     bindir=$ac_optarg ;;
374
375   -build | --build | --buil | --bui | --bu)
376     ac_prev=build_alias ;;
377   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378     build_alias=$ac_optarg ;;
379
380   -cache-file | --cache-file | --cache-fil | --cache-fi \
381   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382     ac_prev=cache_file ;;
383   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385     cache_file=$ac_optarg ;;
386
387   --config-cache | -C)
388     cache_file=config.cache ;;
389
390   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391     ac_prev=datadir ;;
392   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393   | --da=*)
394     datadir=$ac_optarg ;;
395
396   -disable-* | --disable-*)
397     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398     # Reject names that are not valid shell variable names.
399     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401    { (exit 1); exit 1; }; }
402     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403     eval "enable_$ac_feature=no" ;;
404
405   -enable-* | --enable-*)
406     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407     # Reject names that are not valid shell variable names.
408     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410    { (exit 1); exit 1; }; }
411     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412     case $ac_option in
413       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414       *) ac_optarg=yes ;;
415     esac
416     eval "enable_$ac_feature='$ac_optarg'" ;;
417
418   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420   | --exec | --exe | --ex)
421     ac_prev=exec_prefix ;;
422   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424   | --exec=* | --exe=* | --ex=*)
425     exec_prefix=$ac_optarg ;;
426
427   -gas | --gas | --ga | --g)
428     # Obsolete; use --with-gas.
429     with_gas=yes ;;
430
431   -help | --help | --hel | --he | -h)
432     ac_init_help=long ;;
433   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434     ac_init_help=recursive ;;
435   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436     ac_init_help=short ;;
437
438   -host | --host | --hos | --ho)
439     ac_prev=host_alias ;;
440   -host=* | --host=* | --hos=* | --ho=*)
441     host_alias=$ac_optarg ;;
442
443   -includedir | --includedir | --includedi | --included | --include \
444   | --includ | --inclu | --incl | --inc)
445     ac_prev=includedir ;;
446   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447   | --includ=* | --inclu=* | --incl=* | --inc=*)
448     includedir=$ac_optarg ;;
449
450   -infodir | --infodir | --infodi | --infod | --info | --inf)
451     ac_prev=infodir ;;
452   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453     infodir=$ac_optarg ;;
454
455   -libdir | --libdir | --libdi | --libd)
456     ac_prev=libdir ;;
457   -libdir=* | --libdir=* | --libdi=* | --libd=*)
458     libdir=$ac_optarg ;;
459
460   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461   | --libexe | --libex | --libe)
462     ac_prev=libexecdir ;;
463   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464   | --libexe=* | --libex=* | --libe=*)
465     libexecdir=$ac_optarg ;;
466
467   -localstatedir | --localstatedir | --localstatedi | --localstated \
468   | --localstate | --localstat | --localsta | --localst \
469   | --locals | --local | --loca | --loc | --lo)
470     ac_prev=localstatedir ;;
471   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474     localstatedir=$ac_optarg ;;
475
476   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477     ac_prev=mandir ;;
478   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479     mandir=$ac_optarg ;;
480
481   -nfp | --nfp | --nf)
482     # Obsolete; use --without-fp.
483     with_fp=no ;;
484
485   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486   | --no-cr | --no-c | -n)
487     no_create=yes ;;
488
489   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491     no_recursion=yes ;;
492
493   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495   | --oldin | --oldi | --old | --ol | --o)
496     ac_prev=oldincludedir ;;
497   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500     oldincludedir=$ac_optarg ;;
501
502   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503     ac_prev=prefix ;;
504   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505     prefix=$ac_optarg ;;
506
507   -program-prefix | --program-prefix | --program-prefi | --program-pref \
508   | --program-pre | --program-pr | --program-p)
509     ac_prev=program_prefix ;;
510   -program-prefix=* | --program-prefix=* | --program-prefi=* \
511   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512     program_prefix=$ac_optarg ;;
513
514   -program-suffix | --program-suffix | --program-suffi | --program-suff \
515   | --program-suf | --program-su | --program-s)
516     ac_prev=program_suffix ;;
517   -program-suffix=* | --program-suffix=* | --program-suffi=* \
518   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519     program_suffix=$ac_optarg ;;
520
521   -program-transform-name | --program-transform-name \
522   | --program-transform-nam | --program-transform-na \
523   | --program-transform-n | --program-transform- \
524   | --program-transform | --program-transfor \
525   | --program-transfo | --program-transf \
526   | --program-trans | --program-tran \
527   | --progr-tra | --program-tr | --program-t)
528     ac_prev=program_transform_name ;;
529   -program-transform-name=* | --program-transform-name=* \
530   | --program-transform-nam=* | --program-transform-na=* \
531   | --program-transform-n=* | --program-transform-=* \
532   | --program-transform=* | --program-transfor=* \
533   | --program-transfo=* | --program-transf=* \
534   | --program-trans=* | --program-tran=* \
535   | --progr-tra=* | --program-tr=* | --program-t=*)
536     program_transform_name=$ac_optarg ;;
537
538   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539   | -silent | --silent | --silen | --sile | --sil)
540     silent=yes ;;
541
542   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543     ac_prev=sbindir ;;
544   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545   | --sbi=* | --sb=*)
546     sbindir=$ac_optarg ;;
547
548   -sharedstatedir | --sharedstatedir | --sharedstatedi \
549   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550   | --sharedst | --shareds | --shared | --share | --shar \
551   | --sha | --sh)
552     ac_prev=sharedstatedir ;;
553   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556   | --sha=* | --sh=*)
557     sharedstatedir=$ac_optarg ;;
558
559   -site | --site | --sit)
560     ac_prev=site ;;
561   -site=* | --site=* | --sit=*)
562     site=$ac_optarg ;;
563
564   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565     ac_prev=srcdir ;;
566   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567     srcdir=$ac_optarg ;;
568
569   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570   | --syscon | --sysco | --sysc | --sys | --sy)
571     ac_prev=sysconfdir ;;
572   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574     sysconfdir=$ac_optarg ;;
575
576   -target | --target | --targe | --targ | --tar | --ta | --t)
577     ac_prev=target_alias ;;
578   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579     target_alias=$ac_optarg ;;
580
581   -v | -verbose | --verbose | --verbos | --verbo | --verb)
582     verbose=yes ;;
583
584   -version | --version | --versio | --versi | --vers | -V)
585     ac_init_version=: ;;
586
587   -with-* | --with-*)
588     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589     # Reject names that are not valid shell variable names.
590     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591       { echo "$as_me: error: invalid package name: $ac_package" >&2
592    { (exit 1); exit 1; }; }
593     ac_package=`echo $ac_package| sed 's/-/_/g'`
594     case $ac_option in
595       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596       *) ac_optarg=yes ;;
597     esac
598     eval "with_$ac_package='$ac_optarg'" ;;
599
600   -without-* | --without-*)
601     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602     # Reject names that are not valid shell variable names.
603     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604       { echo "$as_me: error: invalid package name: $ac_package" >&2
605    { (exit 1); exit 1; }; }
606     ac_package=`echo $ac_package | sed 's/-/_/g'`
607     eval "with_$ac_package=no" ;;
608
609   --x)
610     # Obsolete; use --with-x.
611     with_x=yes ;;
612
613   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614   | --x-incl | --x-inc | --x-in | --x-i)
615     ac_prev=x_includes ;;
616   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618     x_includes=$ac_optarg ;;
619
620   -x-libraries | --x-libraries | --x-librarie | --x-librari \
621   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622     ac_prev=x_libraries ;;
623   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625     x_libraries=$ac_optarg ;;
626
627   -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629    { (exit 1); exit 1; }; }
630     ;;
631
632   *=*)
633     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634     # Reject names that are not valid shell variable names.
635     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637    { (exit 1); exit 1; }; }
638     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639     eval "$ac_envvar='$ac_optarg'"
640     export $ac_envvar ;;
641
642   *)
643     # FIXME: should be removed in autoconf 3.0.
644     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648     ;;
649
650   esac
651 done
652
653 if test -n "$ac_prev"; then
654   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655   { echo "$as_me: error: missing argument to $ac_option" >&2
656    { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662   eval ac_val=$`echo $ac_var`
663   case $ac_val in
664     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666    { (exit 1); exit 1; }; };;
667   esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672               localstatedir libdir includedir oldincludedir infodir mandir
673 do
674   eval ac_val=$`echo $ac_var`
675   case $ac_val in
676     [\\/$]* | ?:[\\/]* ) ;;
677     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678    { (exit 1); exit 1; }; };;
679   esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691   if test "x$build_alias" = x; then
692     cross_compiling=maybe
693     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694     If a cross compiler is detected then cross compile mode will be used." >&2
695   elif test "x$build_alias" != "x$host_alias"; then
696     cross_compiling=yes
697   fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708   ac_srcdir_defaulted=yes
709   # Try the directory containing this script, then its parent.
710   ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712          X"$0" : 'X\(//\)[^/]' \| \
713          X"$0" : 'X\(//\)$' \| \
714          X"$0" : 'X\(/\)' \| \
715          .     : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719           /^X\(\/\/\)$/{ s//\1/; q; }
720           /^X\(\/\).*/{ s//\1/; q; }
721           s/.*/./; q'`
722   srcdir=$ac_confdir
723   if test ! -r $srcdir/$ac_unique_file; then
724     srcdir=..
725   fi
726 else
727   ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730   if test "$ac_srcdir_defaulted" = yes; then
731     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732    { (exit 1); exit 1; }; }
733   else
734     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735    { (exit 1); exit 1; }; }
736   fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740    { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CCAS_set=${CCAS+set}
755 ac_env_CCAS_value=$CCAS
756 ac_cv_env_CCAS_set=${CCAS+set}
757 ac_cv_env_CCAS_value=$CCAS
758 ac_env_CCASFLAGS_set=${CCASFLAGS+set}
759 ac_env_CCASFLAGS_value=$CCASFLAGS
760 ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set}
761 ac_cv_env_CCASFLAGS_value=$CCASFLAGS
762 ac_env_CPP_set=${CPP+set}
763 ac_env_CPP_value=$CPP
764 ac_cv_env_CPP_set=${CPP+set}
765 ac_cv_env_CPP_value=$CPP
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770
771 #
772 # Report the --help message.
773 #
774 if test "$ac_init_help" = "long"; then
775   # Omit some internal or obsolete options to make the list less imposing.
776   # This message is too long to be a string in the A/UX 3.1 sh.
777   cat <<_ACEOF
778 \`configure' configures libffi 2.1 to adapt to many kinds of systems.
779
780 Usage: $0 [OPTION]... [VAR=VALUE]...
781
782 To assign environment variables (e.g., CC, CFLAGS...), specify them as
783 VAR=VALUE.  See below for descriptions of some of the useful variables.
784
785 Defaults for the options are specified in brackets.
786
787 Configuration:
788   -h, --help              display this help and exit
789       --help=short        display options specific to this package
790       --help=recursive    display the short help of all the included packages
791   -V, --version           display version information and exit
792   -q, --quiet, --silent   do not print \`checking...' messages
793       --cache-file=FILE   cache test results in FILE [disabled]
794   -C, --config-cache      alias for \`--cache-file=config.cache'
795   -n, --no-create         do not create output files
796       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
797
798 _ACEOF
799
800   cat <<_ACEOF
801 Installation directories:
802   --prefix=PREFIX         install architecture-independent files in PREFIX
803                           [$ac_default_prefix]
804   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
805                           [PREFIX]
806
807 By default, \`make install' will install all the files in
808 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
809 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
810 for instance \`--prefix=\$HOME'.
811
812 For better control, use the options below.
813
814 Fine tuning of the installation directories:
815   --bindir=DIR           user executables [EPREFIX/bin]
816   --sbindir=DIR          system admin executables [EPREFIX/sbin]
817   --libexecdir=DIR       program executables [EPREFIX/libexec]
818   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
819   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
820   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
821   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
822   --libdir=DIR           object code libraries [EPREFIX/lib]
823   --includedir=DIR       C header files [PREFIX/include]
824   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
825   --infodir=DIR          info documentation [PREFIX/info]
826   --mandir=DIR           man documentation [PREFIX/man]
827 _ACEOF
828
829   cat <<\_ACEOF
830
831 Program names:
832   --program-prefix=PREFIX            prepend PREFIX to installed program names
833   --program-suffix=SUFFIX            append SUFFIX to installed program names
834   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
835
836 System types:
837   --build=BUILD     configure for building on BUILD [guessed]
838   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
839   --target=TARGET   configure for building compilers for TARGET [HOST]
840 _ACEOF
841 fi
842
843 if test -n "$ac_init_help"; then
844   case $ac_init_help in
845      short | recursive ) echo "Configuration of libffi 2.1:";;
846    esac
847   cat <<\_ACEOF
848
849 Optional Features:
850   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
851   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
852   --enable-multilib       build many library versions (default)
853   --disable-dependency-tracking  speeds up one-time build
854   --enable-dependency-tracking   do not reject slow dependency extractors
855   --enable-shared=PKGS  build shared libraries default=yes
856   --enable-static=PKGS  build static libraries default=yes
857   --enable-fast-install=PKGS  optimize for fast installation default=yes
858   --disable-libtool-lock  avoid locking (might break parallel builds)
859   --enable-maintainer-mode  enable make rules and dependencies not useful
860                           (and sometimes confusing) to the casual installer
861   --enable-debug          debugging mode
862   --disable-structs       omit code for struct support
863   --disable-raw-api       make the raw api unavailable
864   --enable-purify-safety  purify-safe mode
865
866 Optional Packages:
867   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
868   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
869   --with-gnu-ld           assume the C compiler uses GNU ld default=no
870   --with-pic              try to use only PIC/non-PIC objects default=use both
871
872 Some influential environment variables:
873   CC          C compiler command
874   CFLAGS      C compiler flags
875   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
876               nonstandard directory <lib dir>
877   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
878               headers in a nonstandard directory <include dir>
879   CCAS        assembler compiler command (defaults to CC)
880   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
881   CPP         C preprocessor
882
883 Use these variables to override the choices made by `configure' or to help
884 it to find libraries and programs with nonstandard names/locations.
885
886 Report bugs to <http://gcc.gnu.org/bugs.html>.
887 _ACEOF
888 fi
889
890 if test "$ac_init_help" = "recursive"; then
891   # If there are subdirs, report their specific --help.
892   ac_popdir=`pwd`
893   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
894     test -d $ac_dir || continue
895     ac_builddir=.
896
897 if test "$ac_dir" != .; then
898   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
899   # A "../" for each directory in $ac_dir_suffix.
900   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
901 else
902   ac_dir_suffix= ac_top_builddir=
903 fi
904
905 case $srcdir in
906   .)  # No --srcdir option.  We are building in place.
907     ac_srcdir=.
908     if test -z "$ac_top_builddir"; then
909        ac_top_srcdir=.
910     else
911        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
912     fi ;;
913   [\\/]* | ?:[\\/]* )  # Absolute path.
914     ac_srcdir=$srcdir$ac_dir_suffix;
915     ac_top_srcdir=$srcdir ;;
916   *) # Relative path.
917     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
918     ac_top_srcdir=$ac_top_builddir$srcdir ;;
919 esac
920
921 # Do not use `cd foo && pwd` to compute absolute paths, because
922 # the directories may not exist.
923 case `pwd` in
924 .) ac_abs_builddir="$ac_dir";;
925 *)
926   case "$ac_dir" in
927   .) ac_abs_builddir=`pwd`;;
928   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
929   *) ac_abs_builddir=`pwd`/"$ac_dir";;
930   esac;;
931 esac
932 case $ac_abs_builddir in
933 .) ac_abs_top_builddir=${ac_top_builddir}.;;
934 *)
935   case ${ac_top_builddir}. in
936   .) ac_abs_top_builddir=$ac_abs_builddir;;
937   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
938   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
939   esac;;
940 esac
941 case $ac_abs_builddir in
942 .) ac_abs_srcdir=$ac_srcdir;;
943 *)
944   case $ac_srcdir in
945   .) ac_abs_srcdir=$ac_abs_builddir;;
946   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
947   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
948   esac;;
949 esac
950 case $ac_abs_builddir in
951 .) ac_abs_top_srcdir=$ac_top_srcdir;;
952 *)
953   case $ac_top_srcdir in
954   .) ac_abs_top_srcdir=$ac_abs_builddir;;
955   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
956   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
957   esac;;
958 esac
959
960     cd $ac_dir
961     # Check for guested configure; otherwise get Cygnus style configure.
962     if test -f $ac_srcdir/configure.gnu; then
963       echo
964       $SHELL $ac_srcdir/configure.gnu  --help=recursive
965     elif test -f $ac_srcdir/configure; then
966       echo
967       $SHELL $ac_srcdir/configure  --help=recursive
968     elif test -f $ac_srcdir/configure.ac ||
969            test -f $ac_srcdir/configure.in; then
970       echo
971       $ac_configure --help
972     else
973       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
974     fi
975     cd $ac_popdir
976   done
977 fi
978
979 test -n "$ac_init_help" && exit 0
980 if $ac_init_version; then
981   cat <<\_ACEOF
982 libffi configure 2.1
983 generated by GNU Autoconf 2.59
984
985 Copyright (C) 2003 Free Software Foundation, Inc.
986 This configure script is free software; the Free Software Foundation
987 gives unlimited permission to copy, distribute and modify it.
988 _ACEOF
989   exit 0
990 fi
991 exec 5>config.log
992 cat >&5 <<_ACEOF
993 This file contains any messages produced by compilers while
994 running configure, to aid debugging if configure makes a mistake.
995
996 It was created by libffi $as_me 2.1, which was
997 generated by GNU Autoconf 2.59.  Invocation command line was
998
999   $ $0 $@
1000
1001 _ACEOF
1002 {
1003 cat <<_ASUNAME
1004 ## --------- ##
1005 ## Platform. ##
1006 ## --------- ##
1007
1008 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1009 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1010 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1011 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1012 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1013
1014 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1015 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1016
1017 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1018 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1019 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1020 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1021 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1022 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1023 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1024
1025 _ASUNAME
1026
1027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1028 for as_dir in $PATH
1029 do
1030   IFS=$as_save_IFS
1031   test -z "$as_dir" && as_dir=.
1032   echo "PATH: $as_dir"
1033 done
1034
1035 } >&5
1036
1037 cat >&5 <<_ACEOF
1038
1039
1040 ## ----------- ##
1041 ## Core tests. ##
1042 ## ----------- ##
1043
1044 _ACEOF
1045
1046
1047 # Keep a trace of the command line.
1048 # Strip out --no-create and --no-recursion so they do not pile up.
1049 # Strip out --silent because we don't want to record it for future runs.
1050 # Also quote any args containing shell meta-characters.
1051 # Make two passes to allow for proper duplicate-argument suppression.
1052 ac_configure_args=
1053 ac_configure_args0=
1054 ac_configure_args1=
1055 ac_sep=
1056 ac_must_keep_next=false
1057 for ac_pass in 1 2
1058 do
1059   for ac_arg
1060   do
1061     case $ac_arg in
1062     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1063     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064     | -silent | --silent | --silen | --sile | --sil)
1065       continue ;;
1066     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1067       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1068     esac
1069     case $ac_pass in
1070     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1071     2)
1072       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1073       if test $ac_must_keep_next = true; then
1074         ac_must_keep_next=false # Got value, back to normal.
1075       else
1076         case $ac_arg in
1077           *=* | --config-cache | -C | -disable-* | --disable-* \
1078           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1079           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1080           | -with-* | --with-* | -without-* | --without-* | --x)
1081             case "$ac_configure_args0 " in
1082               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1083             esac
1084             ;;
1085           -* ) ac_must_keep_next=true ;;
1086         esac
1087       fi
1088       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1089       # Get rid of the leading space.
1090       ac_sep=" "
1091       ;;
1092     esac
1093   done
1094 done
1095 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1096 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1097
1098 # When interrupted or exit'd, cleanup temporary files, and complete
1099 # config.log.  We remove comments because anyway the quotes in there
1100 # would cause problems or look ugly.
1101 # WARNING: Be sure not to use single quotes in there, as some shells,
1102 # such as our DU 5.0 friend, will then `close' the trap.
1103 trap 'exit_status=$?
1104   # Save into config.log some information that might help in debugging.
1105   {
1106     echo
1107
1108     cat <<\_ASBOX
1109 ## ---------------- ##
1110 ## Cache variables. ##
1111 ## ---------------- ##
1112 _ASBOX
1113     echo
1114     # The following way of writing the cache mishandles newlines in values,
1115 {
1116   (set) 2>&1 |
1117     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1118     *ac_space=\ *)
1119       sed -n \
1120         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1121           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1122       ;;
1123     *)
1124       sed -n \
1125         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1126       ;;
1127     esac;
1128 }
1129     echo
1130
1131     cat <<\_ASBOX
1132 ## ----------------- ##
1133 ## Output variables. ##
1134 ## ----------------- ##
1135 _ASBOX
1136     echo
1137     for ac_var in $ac_subst_vars
1138     do
1139       eval ac_val=$`echo $ac_var`
1140       echo "$ac_var='"'"'$ac_val'"'"'"
1141     done | sort
1142     echo
1143
1144     if test -n "$ac_subst_files"; then
1145       cat <<\_ASBOX
1146 ## ------------- ##
1147 ## Output files. ##
1148 ## ------------- ##
1149 _ASBOX
1150       echo
1151       for ac_var in $ac_subst_files
1152       do
1153         eval ac_val=$`echo $ac_var`
1154         echo "$ac_var='"'"'$ac_val'"'"'"
1155       done | sort
1156       echo
1157     fi
1158
1159     if test -s confdefs.h; then
1160       cat <<\_ASBOX
1161 ## ----------- ##
1162 ## confdefs.h. ##
1163 ## ----------- ##
1164 _ASBOX
1165       echo
1166       sed "/^$/d" confdefs.h | sort
1167       echo
1168     fi
1169     test "$ac_signal" != 0 &&
1170       echo "$as_me: caught signal $ac_signal"
1171     echo "$as_me: exit $exit_status"
1172   } >&5
1173   rm -f core *.core &&
1174   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1175     exit $exit_status
1176      ' 0
1177 for ac_signal in 1 2 13 15; do
1178   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1179 done
1180 ac_signal=0
1181
1182 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1183 rm -rf conftest* confdefs.h
1184 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1185 echo >confdefs.h
1186
1187 # Predefined preprocessor variables.
1188
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_NAME "$PACKAGE_NAME"
1191 _ACEOF
1192
1193
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1196 _ACEOF
1197
1198
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1201 _ACEOF
1202
1203
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_STRING "$PACKAGE_STRING"
1206 _ACEOF
1207
1208
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1211 _ACEOF
1212
1213
1214 # Let the site file select an alternate cache file if it wants to.
1215 # Prefer explicitly selected file to automatically selected ones.
1216 if test -z "$CONFIG_SITE"; then
1217   if test "x$prefix" != xNONE; then
1218     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1219   else
1220     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1221   fi
1222 fi
1223 for ac_site_file in $CONFIG_SITE; do
1224   if test -r "$ac_site_file"; then
1225     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1226 echo "$as_me: loading site script $ac_site_file" >&6;}
1227     sed 's/^/| /' "$ac_site_file" >&5
1228     . "$ac_site_file"
1229   fi
1230 done
1231
1232 if test -r "$cache_file"; then
1233   # Some versions of bash will fail to source /dev/null (special
1234   # files actually), so we avoid doing that.
1235   if test -f "$cache_file"; then
1236     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1237 echo "$as_me: loading cache $cache_file" >&6;}
1238     case $cache_file in
1239       [\\/]* | ?:[\\/]* ) . $cache_file;;
1240       *)                      . ./$cache_file;;
1241     esac
1242   fi
1243 else
1244   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1245 echo "$as_me: creating cache $cache_file" >&6;}
1246   >$cache_file
1247 fi
1248
1249 # Check that the precious variables saved in the cache have kept the same
1250 # value.
1251 ac_cache_corrupted=false
1252 for ac_var in `(set) 2>&1 |
1253                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1254   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1255   eval ac_new_set=\$ac_env_${ac_var}_set
1256   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1257   eval ac_new_val="\$ac_env_${ac_var}_value"
1258   case $ac_old_set,$ac_new_set in
1259     set,)
1260       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1261 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1262       ac_cache_corrupted=: ;;
1263     ,set)
1264       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1265 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1266       ac_cache_corrupted=: ;;
1267     ,);;
1268     *)
1269       if test "x$ac_old_val" != "x$ac_new_val"; then
1270         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1271 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1272         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1273 echo "$as_me:   former value:  $ac_old_val" >&2;}
1274         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1275 echo "$as_me:   current value: $ac_new_val" >&2;}
1276         ac_cache_corrupted=:
1277       fi;;
1278   esac
1279   # Pass precious variables to config.status.
1280   if test "$ac_new_set" = set; then
1281     case $ac_new_val in
1282     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1283       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1284     *) ac_arg=$ac_var=$ac_new_val ;;
1285     esac
1286     case " $ac_configure_args " in
1287       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1288       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1289     esac
1290   fi
1291 done
1292 if $ac_cache_corrupted; then
1293   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1294 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1295   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1296 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1297    { (exit 1); exit 1; }; }
1298 fi
1299
1300 ac_ext=c
1301 ac_cpp='$CPP $CPPFLAGS'
1302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332           ac_config_headers="$ac_config_headers fficonfig.h"
1333
1334
1335 # Default to --enable-multilib
1336 # Check whether --enable-multilib or --disable-multilib was given.
1337 if test "${enable_multilib+set}" = set; then
1338   enableval="$enable_multilib"
1339   case "$enableval" in
1340   yes) multilib=yes ;;
1341   no)  multilib=no ;;
1342   *)   { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5
1343 echo "$as_me: error: bad value $enableval for multilib option" >&2;}
1344    { (exit 1); exit 1; }; } ;;
1345  esac
1346 else
1347   multilib=yes
1348 fi;
1349
1350 # We may get other options which we leave undocumented:
1351 # --with-target-subdir, --with-multisrctop, --with-multisubdir
1352 # See config-ml.in if you want the gory details.
1353
1354 if test "$srcdir" = "."; then
1355   if test "$with_target_subdir" != "."; then
1356     multi_basedir="$srcdir/$with_multisrctop../.."
1357   else
1358     multi_basedir="$srcdir/$with_multisrctop.."
1359   fi
1360 else
1361   multi_basedir="$srcdir/.."
1362 fi
1363
1364
1365 # Even if the default multilib is not a cross compilation,
1366 # it may be that some of the other multilibs are.
1367 if test $cross_compiling = no && test $multilib = yes \
1368    && test "x${with_multisubdir}" != x ; then
1369    cross_compiling=maybe
1370 fi
1371
1372           ac_config_commands="$ac_config_commands default-1"
1373
1374
1375 ac_aux_dir=
1376 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1377   if test -f $ac_dir/install-sh; then
1378     ac_aux_dir=$ac_dir
1379     ac_install_sh="$ac_aux_dir/install-sh -c"
1380     break
1381   elif test -f $ac_dir/install.sh; then
1382     ac_aux_dir=$ac_dir
1383     ac_install_sh="$ac_aux_dir/install.sh -c"
1384     break
1385   elif test -f $ac_dir/shtool; then
1386     ac_aux_dir=$ac_dir
1387     ac_install_sh="$ac_aux_dir/shtool install -c"
1388     break
1389   fi
1390 done
1391 if test -z "$ac_aux_dir"; then
1392   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1393 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1394    { (exit 1); exit 1; }; }
1395 fi
1396 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1397 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1398 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1399
1400 # Make sure we can run config.sub.
1401 $ac_config_sub sun4 >/dev/null 2>&1 ||
1402   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1403 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1404    { (exit 1); exit 1; }; }
1405
1406 echo "$as_me:$LINENO: checking build system type" >&5
1407 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1408 if test "${ac_cv_build+set}" = set; then
1409   echo $ECHO_N "(cached) $ECHO_C" >&6
1410 else
1411   ac_cv_build_alias=$build_alias
1412 test -z "$ac_cv_build_alias" &&
1413   ac_cv_build_alias=`$ac_config_guess`
1414 test -z "$ac_cv_build_alias" &&
1415   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1416 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1417    { (exit 1); exit 1; }; }
1418 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1419   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1420 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1421    { (exit 1); exit 1; }; }
1422
1423 fi
1424 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1425 echo "${ECHO_T}$ac_cv_build" >&6
1426 build=$ac_cv_build
1427 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1428 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1429 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1430
1431
1432 echo "$as_me:$LINENO: checking host system type" >&5
1433 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1434 if test "${ac_cv_host+set}" = set; then
1435   echo $ECHO_N "(cached) $ECHO_C" >&6
1436 else
1437   ac_cv_host_alias=$host_alias
1438 test -z "$ac_cv_host_alias" &&
1439   ac_cv_host_alias=$ac_cv_build_alias
1440 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1441   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1442 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1443    { (exit 1); exit 1; }; }
1444
1445 fi
1446 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1447 echo "${ECHO_T}$ac_cv_host" >&6
1448 host=$ac_cv_host
1449 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1450 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1451 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1452
1453
1454 echo "$as_me:$LINENO: checking target system type" >&5
1455 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1456 if test "${ac_cv_target+set}" = set; then
1457   echo $ECHO_N "(cached) $ECHO_C" >&6
1458 else
1459   ac_cv_target_alias=$target_alias
1460 test "x$ac_cv_target_alias" = "x" &&
1461   ac_cv_target_alias=$ac_cv_host_alias
1462 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1463   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1464 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1465    { (exit 1); exit 1; }; }
1466
1467 fi
1468 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1469 echo "${ECHO_T}$ac_cv_target" >&6
1470 target=$ac_cv_target
1471 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1472 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1473 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1474
1475
1476 # The aliases save the names the user supplied, while $host etc.
1477 # will get canonicalized.
1478 test -n "$target_alias" &&
1479   test "$program_prefix$program_suffix$program_transform_name" = \
1480     NONENONEs,x,x, &&
1481   program_prefix=${target_alias}-
1482 target_alias=${target_alias-$host_alias}
1483
1484 . ${srcdir}/configure.host
1485
1486 am__api_version="1.9"
1487 # Find a good install program.  We prefer a C program (faster),
1488 # so one script is as good as another.  But avoid the broken or
1489 # incompatible versions:
1490 # SysV /etc/install, /usr/sbin/install
1491 # SunOS /usr/etc/install
1492 # IRIX /sbin/install
1493 # AIX /bin/install
1494 # AmigaOS /C/install, which installs bootblocks on floppy discs
1495 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1496 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1497 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1498 # OS/2's system install, which has a completely different semantic
1499 # ./install, which can be erroneously created by make from ./install.sh.
1500 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1501 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1502 if test -z "$INSTALL"; then
1503 if test "${ac_cv_path_install+set}" = set; then
1504   echo $ECHO_N "(cached) $ECHO_C" >&6
1505 else
1506   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1507 for as_dir in $PATH
1508 do
1509   IFS=$as_save_IFS
1510   test -z "$as_dir" && as_dir=.
1511   # Account for people who put trailing slashes in PATH elements.
1512 case $as_dir/ in
1513   ./ | .// | /cC/* | \
1514   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1515   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1516   /usr/ucb/* ) ;;
1517   *)
1518     # OSF1 and SCO ODT 3.0 have their own names for install.
1519     # Don't use installbsd from OSF since it installs stuff as root
1520     # by default.
1521     for ac_prog in ginstall scoinst install; do
1522       for ac_exec_ext in '' $ac_executable_extensions; do
1523         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1524           if test $ac_prog = install &&
1525             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1526             # AIX install.  It has an incompatible calling convention.
1527             :
1528           elif test $ac_prog = install &&
1529             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1530             # program-specific install script used by HP pwplus--don't use.
1531             :
1532           else
1533             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1534             break 3
1535           fi
1536         fi
1537       done
1538     done
1539     ;;
1540 esac
1541 done
1542
1543
1544 fi
1545   if test "${ac_cv_path_install+set}" = set; then
1546     INSTALL=$ac_cv_path_install
1547   else
1548     # As a last resort, use the slow shell script.  We don't cache a
1549     # path for INSTALL within a source directory, because that will
1550     # break other packages using the cache if that directory is
1551     # removed, or if the path is relative.
1552     INSTALL=$ac_install_sh
1553   fi
1554 fi
1555 echo "$as_me:$LINENO: result: $INSTALL" >&5
1556 echo "${ECHO_T}$INSTALL" >&6
1557
1558 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1559 # It thinks the first close brace ends the variable substitution.
1560 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1561
1562 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1563
1564 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1565
1566 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1567 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1568 # Just in case
1569 sleep 1
1570 echo timestamp > conftest.file
1571 # Do `set' in a subshell so we don't clobber the current shell's
1572 # arguments.  Must try -L first in case configure is actually a
1573 # symlink; some systems play weird games with the mod time of symlinks
1574 # (eg FreeBSD returns the mod time of the symlink's containing
1575 # directory).
1576 if (
1577    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1578    if test "$*" = "X"; then
1579       # -L didn't work.
1580       set X `ls -t $srcdir/configure conftest.file`
1581    fi
1582    rm -f conftest.file
1583    if test "$*" != "X $srcdir/configure conftest.file" \
1584       && test "$*" != "X conftest.file $srcdir/configure"; then
1585
1586       # If neither matched, then we have a broken ls.  This can happen
1587       # if, for instance, CONFIG_SHELL is bash and it inherits a
1588       # broken ls alias from the environment.  This has actually
1589       # happened.  Such a system could not be considered "sane".
1590       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1591 alias in your environment" >&5
1592 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1593 alias in your environment" >&2;}
1594    { (exit 1); exit 1; }; }
1595    fi
1596
1597    test "$2" = conftest.file
1598    )
1599 then
1600    # Ok.
1601    :
1602 else
1603    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1604 Check your system clock" >&5
1605 echo "$as_me: error: newly created file is older than distributed files!
1606 Check your system clock" >&2;}
1607    { (exit 1); exit 1; }; }
1608 fi
1609 echo "$as_me:$LINENO: result: yes" >&5
1610 echo "${ECHO_T}yes" >&6
1611 test "$program_prefix" != NONE &&
1612   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1613 # Use a double $ so make ignores it.
1614 test "$program_suffix" != NONE &&
1615   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1616 # Double any \ or $.  echo might interpret backslashes.
1617 # By default was `s,x,x', remove it if useless.
1618 cat <<\_ACEOF >conftest.sed
1619 s/[\\$]/&&/g;s/;s,x,x,$//
1620 _ACEOF
1621 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1622 rm conftest.sed
1623
1624 # expand $ac_aux_dir to an absolute path
1625 am_aux_dir=`cd $ac_aux_dir && pwd`
1626
1627 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1628 # Use eval to expand $SHELL
1629 if eval "$MISSING --run true"; then
1630   am_missing_run="$MISSING --run "
1631 else
1632   am_missing_run=
1633   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1634 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1635 fi
1636
1637 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1638   # We used to keeping the `.' as first argument, in order to
1639   # allow $(mkdir_p) to be used without argument.  As in
1640   #   $(mkdir_p) $(somedir)
1641   # where $(somedir) is conditionally defined.  However this is wrong
1642   # for two reasons:
1643   #  1. if the package is installed by a user who cannot write `.'
1644   #     make install will fail,
1645   #  2. the above comment should most certainly read
1646   #     $(mkdir_p) $(DESTDIR)$(somedir)
1647   #     so it does not work when $(somedir) is undefined and
1648   #     $(DESTDIR) is not.
1649   #  To support the latter case, we have to write
1650   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1651   #  so the `.' trick is pointless.
1652   mkdir_p='mkdir -p --'
1653 else
1654   # On NextStep and OpenStep, the `mkdir' command does not
1655   # recognize any option.  It will interpret all options as
1656   # directories to create, and then abort because `.' already
1657   # exists.
1658   for d in ./-p ./--version;
1659   do
1660     test -d $d && rmdir $d
1661   done
1662   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1663   if test -f "$ac_aux_dir/mkinstalldirs"; then
1664     mkdir_p='$(mkinstalldirs)'
1665   else
1666     mkdir_p='$(install_sh) -d'
1667   fi
1668 fi
1669
1670 for ac_prog in gawk mawk nawk awk
1671 do
1672   # Extract the first word of "$ac_prog", so it can be a program name with args.
1673 set dummy $ac_prog; ac_word=$2
1674 echo "$as_me:$LINENO: checking for $ac_word" >&5
1675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1676 if test "${ac_cv_prog_AWK+set}" = set; then
1677   echo $ECHO_N "(cached) $ECHO_C" >&6
1678 else
1679   if test -n "$AWK"; then
1680   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1681 else
1682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1683 for as_dir in $PATH
1684 do
1685   IFS=$as_save_IFS
1686   test -z "$as_dir" && as_dir=.
1687   for ac_exec_ext in '' $ac_executable_extensions; do
1688   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1689     ac_cv_prog_AWK="$ac_prog"
1690     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1691     break 2
1692   fi
1693 done
1694 done
1695
1696 fi
1697 fi
1698 AWK=$ac_cv_prog_AWK
1699 if test -n "$AWK"; then
1700   echo "$as_me:$LINENO: result: $AWK" >&5
1701 echo "${ECHO_T}$AWK" >&6
1702 else
1703   echo "$as_me:$LINENO: result: no" >&5
1704 echo "${ECHO_T}no" >&6
1705 fi
1706
1707   test -n "$AWK" && break
1708 done
1709
1710 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1711 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1712 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1713 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1714   echo $ECHO_N "(cached) $ECHO_C" >&6
1715 else
1716   cat >conftest.make <<\_ACEOF
1717 all:
1718         @echo 'ac_maketemp="$(MAKE)"'
1719 _ACEOF
1720 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1721 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1722 if test -n "$ac_maketemp"; then
1723   eval ac_cv_prog_make_${ac_make}_set=yes
1724 else
1725   eval ac_cv_prog_make_${ac_make}_set=no
1726 fi
1727 rm -f conftest.make
1728 fi
1729 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1730   echo "$as_me:$LINENO: result: yes" >&5
1731 echo "${ECHO_T}yes" >&6
1732   SET_MAKE=
1733 else
1734   echo "$as_me:$LINENO: result: no" >&5
1735 echo "${ECHO_T}no" >&6
1736   SET_MAKE="MAKE=${MAKE-make}"
1737 fi
1738
1739 rm -rf .tst 2>/dev/null
1740 mkdir .tst 2>/dev/null
1741 if test -d .tst; then
1742   am__leading_dot=.
1743 else
1744   am__leading_dot=_
1745 fi
1746 rmdir .tst 2>/dev/null
1747
1748 # test to see if srcdir already configured
1749 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1750    test -f $srcdir/config.status; then
1751   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1752 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1753    { (exit 1); exit 1; }; }
1754 fi
1755
1756 # test whether we have cygpath
1757 if test -z "$CYGPATH_W"; then
1758   if (cygpath --version) >/dev/null 2>/dev/null; then
1759     CYGPATH_W='cygpath -w'
1760   else
1761     CYGPATH_W=echo
1762   fi
1763 fi
1764
1765
1766 # Define the identity of the package.
1767  PACKAGE='libffi'
1768  VERSION='2.1'
1769
1770
1771 cat >>confdefs.h <<_ACEOF
1772 #define PACKAGE "$PACKAGE"
1773 _ACEOF
1774
1775
1776 cat >>confdefs.h <<_ACEOF
1777 #define VERSION "$VERSION"
1778 _ACEOF
1779
1780 # Some tools Automake needs.
1781
1782 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1783
1784
1785 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1786
1787
1788 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1789
1790
1791 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1792
1793
1794 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1795
1796 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1797
1798 # Installed binaries are usually stripped using `strip' when the user
1799 # run `make install-strip'.  However `strip' might not be the right
1800 # tool to use in cross-compilation environments, therefore Automake
1801 # will honor the `STRIP' environment variable to overrule this program.
1802 if test "$cross_compiling" != no; then
1803   if test -n "$ac_tool_prefix"; then
1804   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1805 set dummy ${ac_tool_prefix}strip; ac_word=$2
1806 echo "$as_me:$LINENO: checking for $ac_word" >&5
1807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1808 if test "${ac_cv_prog_STRIP+set}" = set; then
1809   echo $ECHO_N "(cached) $ECHO_C" >&6
1810 else
1811   if test -n "$STRIP"; then
1812   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1813 else
1814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1815 for as_dir in $PATH
1816 do
1817   IFS=$as_save_IFS
1818   test -z "$as_dir" && as_dir=.
1819   for ac_exec_ext in '' $ac_executable_extensions; do
1820   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1821     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1823     break 2
1824   fi
1825 done
1826 done
1827
1828 fi
1829 fi
1830 STRIP=$ac_cv_prog_STRIP
1831 if test -n "$STRIP"; then
1832   echo "$as_me:$LINENO: result: $STRIP" >&5
1833 echo "${ECHO_T}$STRIP" >&6
1834 else
1835   echo "$as_me:$LINENO: result: no" >&5
1836 echo "${ECHO_T}no" >&6
1837 fi
1838
1839 fi
1840 if test -z "$ac_cv_prog_STRIP"; then
1841   ac_ct_STRIP=$STRIP
1842   # Extract the first word of "strip", so it can be a program name with args.
1843 set dummy strip; ac_word=$2
1844 echo "$as_me:$LINENO: checking for $ac_word" >&5
1845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1846 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1847   echo $ECHO_N "(cached) $ECHO_C" >&6
1848 else
1849   if test -n "$ac_ct_STRIP"; then
1850   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1851 else
1852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1853 for as_dir in $PATH
1854 do
1855   IFS=$as_save_IFS
1856   test -z "$as_dir" && as_dir=.
1857   for ac_exec_ext in '' $ac_executable_extensions; do
1858   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1859     ac_cv_prog_ac_ct_STRIP="strip"
1860     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1861     break 2
1862   fi
1863 done
1864 done
1865
1866   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1867 fi
1868 fi
1869 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1870 if test -n "$ac_ct_STRIP"; then
1871   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1872 echo "${ECHO_T}$ac_ct_STRIP" >&6
1873 else
1874   echo "$as_me:$LINENO: result: no" >&5
1875 echo "${ECHO_T}no" >&6
1876 fi
1877
1878   STRIP=$ac_ct_STRIP
1879 else
1880   STRIP="$ac_cv_prog_STRIP"
1881 fi
1882
1883 fi
1884 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1885
1886 # We need awk for the "check" target.  The system "awk" is bad on
1887 # some platforms.
1888 # Always define AMTAR for backward compatibility.
1889
1890 AMTAR=${AMTAR-"${am_missing_run}tar"}
1891
1892 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1893
1894
1895
1896
1897
1898
1899 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
1900 # We must force CC to /not/ be precious variables; otherwise
1901 # the wrong, non-multilib-adjusted value will be used in multilibs.
1902 # As a side effect, we have to subst CFLAGS ourselves.
1903
1904
1905
1906 ac_ext=c
1907 ac_cpp='$CPP $CPPFLAGS'
1908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1911 if test -n "$ac_tool_prefix"; then
1912   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1913 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1914 echo "$as_me:$LINENO: checking for $ac_word" >&5
1915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1916 if test "${ac_cv_prog_CC+set}" = set; then
1917   echo $ECHO_N "(cached) $ECHO_C" >&6
1918 else
1919   if test -n "$CC"; then
1920   ac_cv_prog_CC="$CC" # Let the user override the test.
1921 else
1922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1923 for as_dir in $PATH
1924 do
1925   IFS=$as_save_IFS
1926   test -z "$as_dir" && as_dir=.
1927   for ac_exec_ext in '' $ac_executable_extensions; do
1928   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1929     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1931     break 2
1932   fi
1933 done
1934 done
1935
1936 fi
1937 fi
1938 CC=$ac_cv_prog_CC
1939 if test -n "$CC"; then
1940   echo "$as_me:$LINENO: result: $CC" >&5
1941 echo "${ECHO_T}$CC" >&6
1942 else
1943   echo "$as_me:$LINENO: result: no" >&5
1944 echo "${ECHO_T}no" >&6
1945 fi
1946
1947 fi
1948 if test -z "$ac_cv_prog_CC"; then
1949   ac_ct_CC=$CC
1950   # Extract the first word of "gcc", so it can be a program name with args.
1951 set dummy gcc; ac_word=$2
1952 echo "$as_me:$LINENO: checking for $ac_word" >&5
1953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1954 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1955   echo $ECHO_N "(cached) $ECHO_C" >&6
1956 else
1957   if test -n "$ac_ct_CC"; then
1958   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1959 else
1960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1961 for as_dir in $PATH
1962 do
1963   IFS=$as_save_IFS
1964   test -z "$as_dir" && as_dir=.
1965   for ac_exec_ext in '' $ac_executable_extensions; do
1966   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1967     ac_cv_prog_ac_ct_CC="gcc"
1968     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1969     break 2
1970   fi
1971 done
1972 done
1973
1974 fi
1975 fi
1976 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1977 if test -n "$ac_ct_CC"; then
1978   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1979 echo "${ECHO_T}$ac_ct_CC" >&6
1980 else
1981   echo "$as_me:$LINENO: result: no" >&5
1982 echo "${ECHO_T}no" >&6
1983 fi
1984
1985   CC=$ac_ct_CC
1986 else
1987   CC="$ac_cv_prog_CC"
1988 fi
1989
1990 if test -z "$CC"; then
1991   if test -n "$ac_tool_prefix"; then
1992   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1993 set dummy ${ac_tool_prefix}cc; ac_word=$2
1994 echo "$as_me:$LINENO: checking for $ac_word" >&5
1995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1996 if test "${ac_cv_prog_CC+set}" = set; then
1997   echo $ECHO_N "(cached) $ECHO_C" >&6
1998 else
1999   if test -n "$CC"; then
2000   ac_cv_prog_CC="$CC" # Let the user override the test.
2001 else
2002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003 for as_dir in $PATH
2004 do
2005   IFS=$as_save_IFS
2006   test -z "$as_dir" && as_dir=.
2007   for ac_exec_ext in '' $ac_executable_extensions; do
2008   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2009     ac_cv_prog_CC="${ac_tool_prefix}cc"
2010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2011     break 2
2012   fi
2013 done
2014 done
2015
2016 fi
2017 fi
2018 CC=$ac_cv_prog_CC
2019 if test -n "$CC"; then
2020   echo "$as_me:$LINENO: result: $CC" >&5
2021 echo "${ECHO_T}$CC" >&6
2022 else
2023   echo "$as_me:$LINENO: result: no" >&5
2024 echo "${ECHO_T}no" >&6
2025 fi
2026
2027 fi
2028 if test -z "$ac_cv_prog_CC"; then
2029   ac_ct_CC=$CC
2030   # Extract the first word of "cc", so it can be a program name with args.
2031 set dummy cc; ac_word=$2
2032 echo "$as_me:$LINENO: checking for $ac_word" >&5
2033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2034 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2035   echo $ECHO_N "(cached) $ECHO_C" >&6
2036 else
2037   if test -n "$ac_ct_CC"; then
2038   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2039 else
2040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041 for as_dir in $PATH
2042 do
2043   IFS=$as_save_IFS
2044   test -z "$as_dir" && as_dir=.
2045   for ac_exec_ext in '' $ac_executable_extensions; do
2046   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2047     ac_cv_prog_ac_ct_CC="cc"
2048     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2049     break 2
2050   fi
2051 done
2052 done
2053
2054 fi
2055 fi
2056 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2057 if test -n "$ac_ct_CC"; then
2058   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2059 echo "${ECHO_T}$ac_ct_CC" >&6
2060 else
2061   echo "$as_me:$LINENO: result: no" >&5
2062 echo "${ECHO_T}no" >&6
2063 fi
2064
2065   CC=$ac_ct_CC
2066 else
2067   CC="$ac_cv_prog_CC"
2068 fi
2069
2070 fi
2071 if test -z "$CC"; then
2072   # Extract the first word of "cc", so it can be a program name with args.
2073 set dummy cc; ac_word=$2
2074 echo "$as_me:$LINENO: checking for $ac_word" >&5
2075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2076 if test "${ac_cv_prog_CC+set}" = set; then
2077   echo $ECHO_N "(cached) $ECHO_C" >&6
2078 else
2079   if test -n "$CC"; then
2080   ac_cv_prog_CC="$CC" # Let the user override the test.
2081 else
2082   ac_prog_rejected=no
2083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2084 for as_dir in $PATH
2085 do
2086   IFS=$as_save_IFS
2087   test -z "$as_dir" && as_dir=.
2088   for ac_exec_ext in '' $ac_executable_extensions; do
2089   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2090     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2091        ac_prog_rejected=yes
2092        continue
2093      fi
2094     ac_cv_prog_CC="cc"
2095     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2096     break 2
2097   fi
2098 done
2099 done
2100
2101 if test $ac_prog_rejected = yes; then
2102   # We found a bogon in the path, so make sure we never use it.
2103   set dummy $ac_cv_prog_CC
2104   shift
2105   if test $# != 0; then
2106     # We chose a different compiler from the bogus one.
2107     # However, it has the same basename, so the bogon will be chosen
2108     # first if we set CC to just the basename; use the full file name.
2109     shift
2110     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2111   fi
2112 fi
2113 fi
2114 fi
2115 CC=$ac_cv_prog_CC
2116 if test -n "$CC"; then
2117   echo "$as_me:$LINENO: result: $CC" >&5
2118 echo "${ECHO_T}$CC" >&6
2119 else
2120   echo "$as_me:$LINENO: result: no" >&5
2121 echo "${ECHO_T}no" >&6
2122 fi
2123
2124 fi
2125 if test -z "$CC"; then
2126   if test -n "$ac_tool_prefix"; then
2127   for ac_prog in cl
2128   do
2129     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2130 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2131 echo "$as_me:$LINENO: checking for $ac_word" >&5
2132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2133 if test "${ac_cv_prog_CC+set}" = set; then
2134   echo $ECHO_N "(cached) $ECHO_C" >&6
2135 else
2136   if test -n "$CC"; then
2137   ac_cv_prog_CC="$CC" # Let the user override the test.
2138 else
2139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140 for as_dir in $PATH
2141 do
2142   IFS=$as_save_IFS
2143   test -z "$as_dir" && as_dir=.
2144   for ac_exec_ext in '' $ac_executable_extensions; do
2145   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2146     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2147     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2148     break 2
2149   fi
2150 done
2151 done
2152
2153 fi
2154 fi
2155 CC=$ac_cv_prog_CC
2156 if test -n "$CC"; then
2157   echo "$as_me:$LINENO: result: $CC" >&5
2158 echo "${ECHO_T}$CC" >&6
2159 else
2160   echo "$as_me:$LINENO: result: no" >&5
2161 echo "${ECHO_T}no" >&6
2162 fi
2163
2164     test -n "$CC" && break
2165   done
2166 fi
2167 if test -z "$CC"; then
2168   ac_ct_CC=$CC
2169   for ac_prog in cl
2170 do
2171   # Extract the first word of "$ac_prog", so it can be a program name with args.
2172 set dummy $ac_prog; ac_word=$2
2173 echo "$as_me:$LINENO: checking for $ac_word" >&5
2174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2175 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2176   echo $ECHO_N "(cached) $ECHO_C" >&6
2177 else
2178   if test -n "$ac_ct_CC"; then
2179   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2180 else
2181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2182 for as_dir in $PATH
2183 do
2184   IFS=$as_save_IFS
2185   test -z "$as_dir" && as_dir=.
2186   for ac_exec_ext in '' $ac_executable_extensions; do
2187   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2188     ac_cv_prog_ac_ct_CC="$ac_prog"
2189     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2190     break 2
2191   fi
2192 done
2193 done
2194
2195 fi
2196 fi
2197 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2198 if test -n "$ac_ct_CC"; then
2199   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2200 echo "${ECHO_T}$ac_ct_CC" >&6
2201 else
2202   echo "$as_me:$LINENO: result: no" >&5
2203 echo "${ECHO_T}no" >&6
2204 fi
2205
2206   test -n "$ac_ct_CC" && break
2207 done
2208
2209   CC=$ac_ct_CC
2210 fi
2211
2212 fi
2213
2214
2215 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2216 See \`config.log' for more details." >&5
2217 echo "$as_me: error: no acceptable C compiler found in \$PATH
2218 See \`config.log' for more details." >&2;}
2219    { (exit 1); exit 1; }; }
2220
2221 # Provide some information about the compiler.
2222 echo "$as_me:$LINENO:" \
2223      "checking for C compiler version" >&5
2224 ac_compiler=`set X $ac_compile; echo $2`
2225 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2226   (eval $ac_compiler --version </dev/null >&5) 2>&5
2227   ac_status=$?
2228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229   (exit $ac_status); }
2230 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2231   (eval $ac_compiler -v </dev/null >&5) 2>&5
2232   ac_status=$?
2233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234   (exit $ac_status); }
2235 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2236   (eval $ac_compiler -V </dev/null >&5) 2>&5
2237   ac_status=$?
2238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239   (exit $ac_status); }
2240
2241 cat >conftest.$ac_ext <<_ACEOF
2242 /* confdefs.h.  */
2243 _ACEOF
2244 cat confdefs.h >>conftest.$ac_ext
2245 cat >>conftest.$ac_ext <<_ACEOF
2246 /* end confdefs.h.  */
2247
2248 int
2249 main ()
2250 {
2251
2252   ;
2253   return 0;
2254 }
2255 _ACEOF
2256 ac_clean_files_save=$ac_clean_files
2257 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2258 # Try to create an executable without -o first, disregard a.out.
2259 # It will help us diagnose broken compilers, and finding out an intuition
2260 # of exeext.
2261 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2262 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2263 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2264 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2265   (eval $ac_link_default) 2>&5
2266   ac_status=$?
2267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268   (exit $ac_status); }; then
2269   # Find the output, starting from the most likely.  This scheme is
2270 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2271 # resort.
2272
2273 # Be careful to initialize this variable, since it used to be cached.
2274 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2275 ac_cv_exeext=
2276 # b.out is created by i960 compilers.
2277 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2278 do
2279   test -f "$ac_file" || continue
2280   case $ac_file in
2281     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2282         ;;
2283     conftest.$ac_ext )
2284         # This is the source file.
2285         ;;
2286     [ab].out )
2287         # We found the default executable, but exeext='' is most
2288         # certainly right.
2289         break;;
2290     *.* )
2291         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2292         # FIXME: I believe we export ac_cv_exeext for Libtool,
2293         # but it would be cool to find out if it's true.  Does anybody
2294         # maintain Libtool? --akim.
2295         export ac_cv_exeext
2296         break;;
2297     * )
2298         break;;
2299   esac
2300 done
2301 else
2302   echo "$as_me: failed program was:" >&5
2303 sed 's/^/| /' conftest.$ac_ext >&5
2304
2305 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2306 See \`config.log' for more details." >&5
2307 echo "$as_me: error: C compiler cannot create executables
2308 See \`config.log' for more details." >&2;}
2309    { (exit 77); exit 77; }; }
2310 fi
2311
2312 ac_exeext=$ac_cv_exeext
2313 echo "$as_me:$LINENO: result: $ac_file" >&5
2314 echo "${ECHO_T}$ac_file" >&6
2315
2316 # Check the compiler produces executables we can run.  If not, either
2317 # the compiler is broken, or we cross compile.
2318 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2319 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2320 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2321 # If not cross compiling, check that we can run a simple program.
2322 if test "$cross_compiling" != yes; then
2323   if { ac_try='./$ac_file'
2324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325   (eval $ac_try) 2>&5
2326   ac_status=$?
2327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328   (exit $ac_status); }; }; then
2329     cross_compiling=no
2330   else
2331     if test "$cross_compiling" = maybe; then
2332         cross_compiling=yes
2333     else
2334         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2335 If you meant to cross compile, use \`--host'.
2336 See \`config.log' for more details." >&5
2337 echo "$as_me: error: cannot run C compiled programs.
2338 If you meant to cross compile, use \`--host'.
2339 See \`config.log' for more details." >&2;}
2340    { (exit 1); exit 1; }; }
2341     fi
2342   fi
2343 fi
2344 echo "$as_me:$LINENO: result: yes" >&5
2345 echo "${ECHO_T}yes" >&6
2346
2347 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2348 ac_clean_files=$ac_clean_files_save
2349 # Check the compiler produces executables we can run.  If not, either
2350 # the compiler is broken, or we cross compile.
2351 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2352 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2353 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2354 echo "${ECHO_T}$cross_compiling" >&6
2355
2356 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2357 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2359   (eval $ac_link) 2>&5
2360   ac_status=$?
2361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362   (exit $ac_status); }; then
2363   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2364 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2365 # work properly (i.e., refer to `conftest.exe'), while it won't with
2366 # `rm'.
2367 for ac_file in conftest.exe conftest conftest.*; do
2368   test -f "$ac_file" || continue
2369   case $ac_file in
2370     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2371     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2372           export ac_cv_exeext
2373           break;;
2374     * ) break;;
2375   esac
2376 done
2377 else
2378   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2379 See \`config.log' for more details." >&5
2380 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2381 See \`config.log' for more details." >&2;}
2382    { (exit 1); exit 1; }; }
2383 fi
2384
2385 rm -f conftest$ac_cv_exeext
2386 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2387 echo "${ECHO_T}$ac_cv_exeext" >&6
2388
2389 rm -f conftest.$ac_ext
2390 EXEEXT=$ac_cv_exeext
2391 ac_exeext=$EXEEXT
2392 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2393 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2394 if test "${ac_cv_objext+set}" = set; then
2395   echo $ECHO_N "(cached) $ECHO_C" >&6
2396 else
2397   cat >conftest.$ac_ext <<_ACEOF
2398 /* confdefs.h.  */
2399 _ACEOF
2400 cat confdefs.h >>conftest.$ac_ext
2401 cat >>conftest.$ac_ext <<_ACEOF
2402 /* end confdefs.h.  */
2403
2404 int
2405 main ()
2406 {
2407
2408   ;
2409   return 0;
2410 }
2411 _ACEOF
2412 rm -f conftest.o conftest.obj
2413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2414   (eval $ac_compile) 2>&5
2415   ac_status=$?
2416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417   (exit $ac_status); }; then
2418   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2419   case $ac_file in
2420     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2421     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2422        break;;
2423   esac
2424 done
2425 else
2426   echo "$as_me: failed program was:" >&5
2427 sed 's/^/| /' conftest.$ac_ext >&5
2428
2429 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2430 See \`config.log' for more details." >&5
2431 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2432 See \`config.log' for more details." >&2;}
2433    { (exit 1); exit 1; }; }
2434 fi
2435
2436 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2437 fi
2438 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2439 echo "${ECHO_T}$ac_cv_objext" >&6
2440 OBJEXT=$ac_cv_objext
2441 ac_objext=$OBJEXT
2442 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2443 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2444 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2445   echo $ECHO_N "(cached) $ECHO_C" >&6
2446 else
2447   cat >conftest.$ac_ext <<_ACEOF
2448 /* confdefs.h.  */
2449 _ACEOF
2450 cat confdefs.h >>conftest.$ac_ext
2451 cat >>conftest.$ac_ext <<_ACEOF
2452 /* end confdefs.h.  */
2453
2454 int
2455 main ()
2456 {
2457 #ifndef __GNUC__
2458        choke me
2459 #endif
2460
2461   ;
2462   return 0;
2463 }
2464 _ACEOF
2465 rm -f conftest.$ac_objext
2466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2467   (eval $ac_compile) 2>conftest.er1
2468   ac_status=$?
2469   grep -v '^ *+' conftest.er1 >conftest.err
2470   rm -f conftest.er1
2471   cat conftest.err >&5
2472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473   (exit $ac_status); } &&
2474          { ac_try='test -z "$ac_c_werror_flag"
2475                          || test ! -s conftest.err'
2476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2477   (eval $ac_try) 2>&5
2478   ac_status=$?
2479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480   (exit $ac_status); }; } &&
2481          { ac_try='test -s conftest.$ac_objext'
2482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2483   (eval $ac_try) 2>&5
2484   ac_status=$?
2485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486   (exit $ac_status); }; }; then
2487   ac_compiler_gnu=yes
2488 else
2489   echo "$as_me: failed program was:" >&5
2490 sed 's/^/| /' conftest.$ac_ext >&5
2491
2492 ac_compiler_gnu=no
2493 fi
2494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2495 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2496
2497 fi
2498 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2499 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2500 GCC=`test $ac_compiler_gnu = yes && echo yes`
2501 ac_test_CFLAGS=${CFLAGS+set}
2502 ac_save_CFLAGS=$CFLAGS
2503 CFLAGS="-g"
2504 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2505 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2506 if test "${ac_cv_prog_cc_g+set}" = set; then
2507   echo $ECHO_N "(cached) $ECHO_C" >&6
2508 else
2509   cat >conftest.$ac_ext <<_ACEOF
2510 /* confdefs.h.  */
2511 _ACEOF
2512 cat confdefs.h >>conftest.$ac_ext
2513 cat >>conftest.$ac_ext <<_ACEOF
2514 /* end confdefs.h.  */
2515
2516 int
2517 main ()
2518 {
2519
2520   ;
2521   return 0;
2522 }
2523 _ACEOF
2524 rm -f conftest.$ac_objext
2525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2526   (eval $ac_compile) 2>conftest.er1
2527   ac_status=$?
2528   grep -v '^ *+' conftest.er1 >conftest.err
2529   rm -f conftest.er1
2530   cat conftest.err >&5
2531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532   (exit $ac_status); } &&
2533          { ac_try='test -z "$ac_c_werror_flag"
2534                          || test ! -s conftest.err'
2535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2536   (eval $ac_try) 2>&5
2537   ac_status=$?
2538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539   (exit $ac_status); }; } &&
2540          { ac_try='test -s conftest.$ac_objext'
2541   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2542   (eval $ac_try) 2>&5
2543   ac_status=$?
2544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545   (exit $ac_status); }; }; then
2546   ac_cv_prog_cc_g=yes
2547 else
2548   echo "$as_me: failed program was:" >&5
2549 sed 's/^/| /' conftest.$ac_ext >&5
2550
2551 ac_cv_prog_cc_g=no
2552 fi
2553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2554 fi
2555 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2556 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2557 if test "$ac_test_CFLAGS" = set; then
2558   CFLAGS=$ac_save_CFLAGS
2559 elif test $ac_cv_prog_cc_g = yes; then
2560   if test "$GCC" = yes; then
2561     CFLAGS="-g -O2"
2562   else
2563     CFLAGS="-g"
2564   fi
2565 else
2566   if test "$GCC" = yes; then
2567     CFLAGS="-O2"
2568   else
2569     CFLAGS=
2570   fi
2571 fi
2572 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2573 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2574 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2575   echo $ECHO_N "(cached) $ECHO_C" >&6
2576 else
2577   ac_cv_prog_cc_stdc=no
2578 ac_save_CC=$CC
2579 cat >conftest.$ac_ext <<_ACEOF
2580 /* confdefs.h.  */
2581 _ACEOF
2582 cat confdefs.h >>conftest.$ac_ext
2583 cat >>conftest.$ac_ext <<_ACEOF
2584 /* end confdefs.h.  */
2585 #include <stdarg.h>
2586 #include <stdio.h>
2587 #include <sys/types.h>
2588 #include <sys/stat.h>
2589 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2590 struct buf { int x; };
2591 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2592 static char *e (p, i)
2593      char **p;
2594      int i;
2595 {
2596   return p[i];
2597 }
2598 static char *f (char * (*g) (char **, int), char **p, ...)
2599 {
2600   char *s;
2601   va_list v;
2602   va_start (v,p);
2603   s = g (p, va_arg (v,int));
2604   va_end (v);
2605   return s;
2606 }
2607
2608 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2609    function prototypes and stuff, but not '\xHH' hex character constants.
2610    These don't provoke an error unfortunately, instead are silently treated
2611    as 'x'.  The following induces an error, until -std1 is added to get
2612    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2613    array size at least.  It's necessary to write '\x00'==0 to get something
2614    that's true only with -std1.  */
2615 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2616
2617 int test (int i, double x);
2618 struct s1 {int (*f) (int a);};
2619 struct s2 {int (*f) (double a);};
2620 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2621 int argc;
2622 char **argv;
2623 int
2624 main ()
2625 {
2626 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2627   ;
2628   return 0;
2629 }
2630 _ACEOF
2631 # Don't try gcc -ansi; that turns off useful extensions and
2632 # breaks some systems' header files.
2633 # AIX                   -qlanglvl=ansi
2634 # Ultrix and OSF/1      -std1
2635 # HP-UX 10.20 and later -Ae
2636 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2637 # SVR4                  -Xc -D__EXTENSIONS__
2638 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2639 do
2640   CC="$ac_save_CC $ac_arg"
2641   rm -f conftest.$ac_objext
2642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2643   (eval $ac_compile) 2>conftest.er1
2644   ac_status=$?
2645   grep -v '^ *+' conftest.er1 >conftest.err
2646   rm -f conftest.er1
2647   cat conftest.err >&5
2648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649   (exit $ac_status); } &&
2650          { ac_try='test -z "$ac_c_werror_flag"
2651                          || test ! -s conftest.err'
2652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653   (eval $ac_try) 2>&5
2654   ac_status=$?
2655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656   (exit $ac_status); }; } &&
2657          { ac_try='test -s conftest.$ac_objext'
2658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2659   (eval $ac_try) 2>&5
2660   ac_status=$?
2661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662   (exit $ac_status); }; }; then
2663   ac_cv_prog_cc_stdc=$ac_arg
2664 break
2665 else
2666   echo "$as_me: failed program was:" >&5
2667 sed 's/^/| /' conftest.$ac_ext >&5
2668
2669 fi
2670 rm -f conftest.err conftest.$ac_objext
2671 done
2672 rm -f conftest.$ac_ext conftest.$ac_objext
2673 CC=$ac_save_CC
2674
2675 fi
2676
2677 case "x$ac_cv_prog_cc_stdc" in
2678   x|xno)
2679     echo "$as_me:$LINENO: result: none needed" >&5
2680 echo "${ECHO_T}none needed" >&6 ;;
2681   *)
2682     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2683 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2684     CC="$CC $ac_cv_prog_cc_stdc" ;;
2685 esac
2686
2687 # Some people use a C++ compiler to compile C.  Since we use `exit',
2688 # in C++ we need to declare it.  In case someone uses the same compiler
2689 # for both compiling C and C++ we need to have the C++ compiler decide
2690 # the declaration of exit, since it's the most demanding environment.
2691 cat >conftest.$ac_ext <<_ACEOF
2692 #ifndef __cplusplus
2693   choke me
2694 #endif
2695 _ACEOF
2696 rm -f conftest.$ac_objext
2697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2698   (eval $ac_compile) 2>conftest.er1
2699   ac_status=$?
2700   grep -v '^ *+' conftest.er1 >conftest.err
2701   rm -f conftest.er1
2702   cat conftest.err >&5
2703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704   (exit $ac_status); } &&
2705          { ac_try='test -z "$ac_c_werror_flag"
2706                          || test ! -s conftest.err'
2707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708   (eval $ac_try) 2>&5
2709   ac_status=$?
2710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711   (exit $ac_status); }; } &&
2712          { ac_try='test -s conftest.$ac_objext'
2713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2714   (eval $ac_try) 2>&5
2715   ac_status=$?
2716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717   (exit $ac_status); }; }; then
2718   for ac_declaration in \
2719    '' \
2720    'extern "C" void std::exit (int) throw (); using std::exit;' \
2721    'extern "C" void std::exit (int); using std::exit;' \
2722    'extern "C" void exit (int) throw ();' \
2723    'extern "C" void exit (int);' \
2724    'void exit (int);'
2725 do
2726   cat >conftest.$ac_ext <<_ACEOF
2727 /* confdefs.h.  */
2728 _ACEOF
2729 cat confdefs.h >>conftest.$ac_ext
2730 cat >>conftest.$ac_ext <<_ACEOF
2731 /* end confdefs.h.  */
2732 $ac_declaration
2733 #include <stdlib.h>
2734 int
2735 main ()
2736 {
2737 exit (42);
2738   ;
2739   return 0;
2740 }
2741 _ACEOF
2742 rm -f conftest.$ac_objext
2743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2744   (eval $ac_compile) 2>conftest.er1
2745   ac_status=$?
2746   grep -v '^ *+' conftest.er1 >conftest.err
2747   rm -f conftest.er1
2748   cat conftest.err >&5
2749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750   (exit $ac_status); } &&
2751          { ac_try='test -z "$ac_c_werror_flag"
2752                          || test ! -s conftest.err'
2753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754   (eval $ac_try) 2>&5
2755   ac_status=$?
2756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757   (exit $ac_status); }; } &&
2758          { ac_try='test -s conftest.$ac_objext'
2759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2760   (eval $ac_try) 2>&5
2761   ac_status=$?
2762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763   (exit $ac_status); }; }; then
2764   :
2765 else
2766   echo "$as_me: failed program was:" >&5
2767 sed 's/^/| /' conftest.$ac_ext >&5
2768
2769 continue
2770 fi
2771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2772   cat >conftest.$ac_ext <<_ACEOF
2773 /* confdefs.h.  */
2774 _ACEOF
2775 cat confdefs.h >>conftest.$ac_ext
2776 cat >>conftest.$ac_ext <<_ACEOF
2777 /* end confdefs.h.  */
2778 $ac_declaration
2779 int
2780 main ()
2781 {
2782 exit (42);
2783   ;
2784   return 0;
2785 }
2786 _ACEOF
2787 rm -f conftest.$ac_objext
2788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2789   (eval $ac_compile) 2>conftest.er1
2790   ac_status=$?
2791   grep -v '^ *+' conftest.er1 >conftest.err
2792   rm -f conftest.er1
2793   cat conftest.err >&5
2794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795   (exit $ac_status); } &&
2796          { ac_try='test -z "$ac_c_werror_flag"
2797                          || test ! -s conftest.err'
2798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799   (eval $ac_try) 2>&5
2800   ac_status=$?
2801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802   (exit $ac_status); }; } &&
2803          { ac_try='test -s conftest.$ac_objext'
2804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805   (eval $ac_try) 2>&5
2806   ac_status=$?
2807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808   (exit $ac_status); }; }; then
2809   break
2810 else
2811   echo "$as_me: failed program was:" >&5
2812 sed 's/^/| /' conftest.$ac_ext >&5
2813
2814 fi
2815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2816 done
2817 rm -f conftest*
2818 if test -n "$ac_declaration"; then
2819   echo '#ifdef __cplusplus' >>confdefs.h
2820   echo $ac_declaration      >>confdefs.h
2821   echo '#endif'             >>confdefs.h
2822 fi
2823
2824 else
2825   echo "$as_me: failed program was:" >&5
2826 sed 's/^/| /' conftest.$ac_ext >&5
2827
2828 fi
2829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2830 ac_ext=c
2831 ac_cpp='$CPP $CPPFLAGS'
2832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2835 DEPDIR="${am__leading_dot}deps"
2836
2837           ac_config_commands="$ac_config_commands depfiles"
2838
2839
2840 am_make=${MAKE-make}
2841 cat > confinc << 'END'
2842 am__doit:
2843         @echo done
2844 .PHONY: am__doit
2845 END
2846 # If we don't find an include directive, just comment out the code.
2847 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2848 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2849 am__include="#"
2850 am__quote=
2851 _am_result=none
2852 # First try GNU make style include.
2853 echo "include confinc" > confmf
2854 # We grep out `Entering directory' and `Leaving directory'
2855 # messages which can occur if `w' ends up in MAKEFLAGS.
2856 # In particular we don't look at `^make:' because GNU make might
2857 # be invoked under some other name (usually "gmake"), in which
2858 # case it prints its new name instead of `make'.
2859 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2860    am__include=include
2861    am__quote=
2862    _am_result=GNU
2863 fi
2864 # Now try BSD make style include.
2865 if test "$am__include" = "#"; then
2866    echo '.include "confinc"' > confmf
2867    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2868       am__include=.include
2869       am__quote="\""
2870       _am_result=BSD
2871    fi
2872 fi
2873
2874
2875 echo "$as_me:$LINENO: result: $_am_result" >&5
2876 echo "${ECHO_T}$_am_result" >&6
2877 rm -f confinc confmf
2878
2879 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2880 if test "${enable_dependency_tracking+set}" = set; then
2881   enableval="$enable_dependency_tracking"
2882
2883 fi;
2884 if test "x$enable_dependency_tracking" != xno; then
2885   am_depcomp="$ac_aux_dir/depcomp"
2886   AMDEPBACKSLASH='\'
2887 fi
2888
2889
2890 if test "x$enable_dependency_tracking" != xno; then
2891   AMDEP_TRUE=
2892   AMDEP_FALSE='#'
2893 else
2894   AMDEP_TRUE='#'
2895   AMDEP_FALSE=
2896 fi
2897
2898
2899
2900
2901 depcc="$CC"   am_compiler_list=
2902
2903 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2904 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2905 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2906   echo $ECHO_N "(cached) $ECHO_C" >&6
2907 else
2908   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2909   # We make a subdir and do the tests there.  Otherwise we can end up
2910   # making bogus files that we don't know about and never remove.  For
2911   # instance it was reported that on HP-UX the gcc test will end up
2912   # making a dummy file named `D' -- because `-MD' means `put the output
2913   # in D'.
2914   mkdir conftest.dir
2915   # Copy depcomp to subdir because otherwise we won't find it if we're
2916   # using a relative directory.
2917   cp "$am_depcomp" conftest.dir
2918   cd conftest.dir
2919   # We will build objects and dependencies in a subdirectory because
2920   # it helps to detect inapplicable dependency modes.  For instance
2921   # both Tru64's cc and ICC support -MD to output dependencies as a
2922   # side effect of compilation, but ICC will put the dependencies in
2923   # the current directory while Tru64 will put them in the object
2924   # directory.
2925   mkdir sub
2926
2927   am_cv_CC_dependencies_compiler_type=none
2928   if test "$am_compiler_list" = ""; then
2929      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2930   fi
2931   for depmode in $am_compiler_list; do
2932     # Setup a source with many dependencies, because some compilers
2933     # like to wrap large dependency lists on column 80 (with \), and
2934     # we should not choose a depcomp mode which is confused by this.
2935     #
2936     # We need to recreate these files for each test, as the compiler may
2937     # overwrite some of them when testing with obscure command lines.
2938     # This happens at least with the AIX C compiler.
2939     : > sub/conftest.c
2940     for i in 1 2 3 4 5 6; do
2941       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2942       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2943       # Solaris 8's {/usr,}/bin/sh.
2944       touch sub/conftst$i.h
2945     done
2946     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2947
2948     case $depmode in
2949     nosideeffect)
2950       # after this tag, mechanisms are not by side-effect, so they'll
2951       # only be used when explicitly requested
2952       if test "x$enable_dependency_tracking" = xyes; then
2953         continue
2954       else
2955         break
2956       fi
2957       ;;
2958     none) break ;;
2959     esac
2960     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2961     # mode.  It turns out that the SunPro C++ compiler does not properly
2962     # handle `-M -o', and we need to detect this.
2963     if depmode=$depmode \
2964        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2965        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2966        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2967          >/dev/null 2>conftest.err &&
2968        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2969        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2970        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2971       # icc doesn't choke on unknown options, it will just issue warnings
2972       # or remarks (even with -Werror).  So we grep stderr for any message
2973       # that says an option was ignored or not supported.
2974       # When given -MP, icc 7.0 and 7.1 complain thusly:
2975       #   icc: Command line warning: ignoring option '-M'; no argument required
2976       # The diagnosis changed in icc 8.0:
2977       #   icc: Command line remark: option '-MP' not supported
2978       if (grep 'ignoring option' conftest.err ||
2979           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2980         am_cv_CC_dependencies_compiler_type=$depmode
2981         break
2982       fi
2983     fi
2984   done
2985
2986   cd ..
2987   rm -rf conftest.dir
2988 else
2989   am_cv_CC_dependencies_compiler_type=none
2990 fi
2991
2992 fi
2993 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2994 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2995 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2996
2997
2998
2999 if
3000   test "x$enable_dependency_tracking" != xno \
3001   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3002   am__fastdepCC_TRUE=
3003   am__fastdepCC_FALSE='#'
3004 else
3005   am__fastdepCC_TRUE='#'
3006   am__fastdepCC_FALSE=
3007 fi
3008
3009
3010
3011
3012
3013
3014 # By default we simply use the C compiler to build assembly code.
3015
3016 test "${CCAS+set}" = set || CCAS=$CC
3017 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3018
3019
3020
3021 if test "x$CC" != xcc; then
3022   echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3023 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
3024 else
3025   echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3026 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
3027 fi
3028 set dummy $CC; ac_cc=`echo $2 |
3029                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3030 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
3031   echo $ECHO_N "(cached) $ECHO_C" >&6
3032 else
3033   cat >conftest.$ac_ext <<_ACEOF
3034 /* confdefs.h.  */
3035 _ACEOF
3036 cat confdefs.h >>conftest.$ac_ext
3037 cat >>conftest.$ac_ext <<_ACEOF
3038 /* end confdefs.h.  */
3039
3040 int
3041 main ()
3042 {
3043
3044   ;
3045   return 0;
3046 }
3047 _ACEOF
3048 # Make sure it works both with $CC and with simple cc.
3049 # We do the test twice because some compilers refuse to overwrite an
3050 # existing .o file with -o, though they will create one.
3051 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3052 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3053   (eval $ac_try) 2>&5
3054   ac_status=$?
3055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056   (exit $ac_status); } &&
3057    test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3058   (eval $ac_try) 2>&5
3059   ac_status=$?
3060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061   (exit $ac_status); };
3062 then
3063   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3064   if test "x$CC" != xcc; then
3065     # Test first that cc exists at all.
3066     if { ac_try='cc -c conftest.$ac_ext >&5'
3067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3068   (eval $ac_try) 2>&5
3069   ac_status=$?
3070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071   (exit $ac_status); }; }; then
3072       ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
3073       if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3074   (eval $ac_try) 2>&5
3075   ac_status=$?
3076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077   (exit $ac_status); } &&
3078          test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3079   (eval $ac_try) 2>&5
3080   ac_status=$?
3081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082   (exit $ac_status); };
3083       then
3084         # cc works too.
3085         :
3086       else
3087         # cc exists but doesn't like -o.
3088         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3089       fi
3090     fi
3091   fi
3092 else
3093   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3094 fi
3095 rm -f conftest*
3096
3097 fi
3098 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
3099   echo "$as_me:$LINENO: result: yes" >&5
3100 echo "${ECHO_T}yes" >&6
3101 else
3102   echo "$as_me:$LINENO: result: no" >&5
3103 echo "${ECHO_T}no" >&6
3104
3105 cat >>confdefs.h <<\_ACEOF
3106 #define NO_MINUS_C_MINUS_O 1
3107 _ACEOF
3108
3109 fi
3110
3111 # FIXME: we rely on the cache variable name because
3112 # there is no other way.
3113 set dummy $CC
3114 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3115 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3116    # Losing compiler, so override with the script.
3117    # FIXME: It is wrong to rewrite CC.
3118    # But if we don't then we get into trouble of one sort or another.
3119    # A longer-term fix would be to have automake use am__CC in this case,
3120    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3121    CC="$am_aux_dir/compile $CC"
3122 fi
3123
3124 # Check whether --enable-shared or --disable-shared was given.
3125 if test "${enable_shared+set}" = set; then
3126   enableval="$enable_shared"
3127   p=${PACKAGE-default}
3128 case $enableval in
3129 yes) enable_shared=yes ;;
3130 no) enable_shared=no ;;
3131 *)
3132   enable_shared=no
3133   # Look at the argument we got.  We use all the common list separators.
3134   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3135   for pkg in $enableval; do
3136     if test "X$pkg" = "X$p"; then
3137       enable_shared=yes
3138     fi
3139   done
3140   IFS="$ac_save_ifs"
3141   ;;
3142 esac
3143 else
3144   enable_shared=yes
3145 fi;
3146 # Check whether --enable-static or --disable-static was given.
3147 if test "${enable_static+set}" = set; then
3148   enableval="$enable_static"
3149   p=${PACKAGE-default}
3150 case $enableval in
3151 yes) enable_static=yes ;;
3152 no) enable_static=no ;;
3153 *)
3154   enable_static=no
3155   # Look at the argument we got.  We use all the common list separators.
3156   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3157   for pkg in $enableval; do
3158     if test "X$pkg" = "X$p"; then
3159       enable_static=yes
3160     fi
3161   done
3162   IFS="$ac_save_ifs"
3163   ;;
3164 esac
3165 else
3166   enable_static=yes
3167 fi;
3168 # Check whether --enable-fast-install or --disable-fast-install was given.
3169 if test "${enable_fast_install+set}" = set; then
3170   enableval="$enable_fast_install"
3171   p=${PACKAGE-default}
3172 case $enableval in
3173 yes) enable_fast_install=yes ;;
3174 no) enable_fast_install=no ;;
3175 *)
3176   enable_fast_install=no
3177   # Look at the argument we got.  We use all the common list separators.
3178   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3179   for pkg in $enableval; do
3180     if test "X$pkg" = "X$p"; then
3181       enable_fast_install=yes
3182     fi
3183   done
3184   IFS="$ac_save_ifs"
3185   ;;
3186 esac
3187 else
3188   enable_fast_install=yes
3189 fi;
3190
3191 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3192 if test "${with_gnu_ld+set}" = set; then
3193   withval="$with_gnu_ld"
3194   test "$withval" = no || with_gnu_ld=yes
3195 else
3196   with_gnu_ld=no
3197 fi;
3198 ac_prog=ld
3199 if test "$GCC" = yes; then
3200   # Check if gcc -print-prog-name=ld gives a path.
3201   echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3202 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3203   case $host in
3204   *-*-mingw*)
3205     # gcc leaves a trailing carriage return which upsets mingw
3206     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3207   *)
3208     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3209   esac
3210   case $ac_prog in
3211     # Accept absolute paths.
3212     [\\/]* | [A-Za-z]:[\\/]*)
3213       re_direlt='/[^/][^/]*/\.\./'
3214       # Canonicalize the path of ld
3215       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3216       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3217         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3218       done
3219       test -z "$LD" && LD="$ac_prog"
3220       ;;
3221   "")
3222     # If it fails, then pretend we aren't using GCC.
3223     ac_prog=ld
3224     ;;
3225   *)
3226     # If it is relative, then search for the first ld in PATH.
3227     with_gnu_ld=unknown
3228     ;;
3229   esac
3230 elif test "$with_gnu_ld" = yes; then
3231   echo "$as_me:$LINENO: checking for GNU ld" >&5
3232 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3233 else
3234   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3235 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3236 fi
3237 if test "${lt_cv_path_LD+set}" = set; then
3238   echo $ECHO_N "(cached) $ECHO_C" >&6
3239 else
3240   if test -z "$LD"; then
3241   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3242   for ac_dir in $PATH; do
3243     test -z "$ac_dir" && ac_dir=.
3244     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3245       lt_cv_path_LD="$ac_dir/$ac_prog"
3246       # Check to see if the program is GNU ld.  I'd rather use --version,
3247       # but apparently some GNU ld's only accept -v.
3248       # Break only if it was the GNU/non-GNU ld that we prefer.
3249       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3250         test "$with_gnu_ld" != no && break
3251       else
3252         test "$with_gnu_ld" != yes && break
3253       fi
3254     fi
3255   done
3256   IFS="$ac_save_ifs"
3257 else
3258   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3259 fi
3260 fi
3261
3262 LD="$lt_cv_path_LD"
3263 if test -n "$LD"; then
3264   echo "$as_me:$LINENO: result: $LD" >&5
3265 echo "${ECHO_T}$LD" >&6
3266 else
3267   echo "$as_me:$LINENO: result: no" >&5
3268 echo "${ECHO_T}no" >&6
3269 fi
3270 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3271 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3272    { (exit 1); exit 1; }; }
3273 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3274 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3275 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3276   echo $ECHO_N "(cached) $ECHO_C" >&6
3277 else
3278   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3279 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3280   lt_cv_prog_gnu_ld=yes
3281 else
3282   lt_cv_prog_gnu_ld=no
3283 fi
3284 fi
3285 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3286 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3287 with_gnu_ld=$lt_cv_prog_gnu_ld
3288
3289
3290 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3291 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3292 if test "${lt_cv_ld_reload_flag+set}" = set; then
3293   echo $ECHO_N "(cached) $ECHO_C" >&6
3294 else
3295   lt_cv_ld_reload_flag='-r'
3296 fi
3297 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3298 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3299 reload_flag=$lt_cv_ld_reload_flag
3300 test -n "$reload_flag" && reload_flag=" $reload_flag"
3301
3302 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3303 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3304 if test "${lt_cv_path_NM+set}" = set; then
3305   echo $ECHO_N "(cached) $ECHO_C" >&6
3306 else
3307   if test -n "$NM"; then
3308   # Let the user override the test.
3309   lt_cv_path_NM="$NM"
3310 else
3311   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
3312   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3313     test -z "$ac_dir" && ac_dir=.
3314     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3315     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3316       # Check to see if the nm accepts a BSD-compat flag.
3317       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3318       #   nm: unknown option "B" ignored
3319       # Tru64's nm complains that /dev/null is an invalid object file
3320       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3321         lt_cv_path_NM="$tmp_nm -B"
3322         break
3323       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3324         lt_cv_path_NM="$tmp_nm -p"
3325         break
3326       else
3327         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3328         continue # so that we can try to find one that supports BSD flags
3329       fi
3330     fi
3331   done
3332   IFS="$ac_save_ifs"
3333   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3334 fi
3335 fi
3336
3337 NM="$lt_cv_path_NM"
3338 echo "$as_me:$LINENO: result: $NM" >&5
3339 echo "${ECHO_T}$NM" >&6
3340
3341 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3342 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3343 LN_S=$as_ln_s
3344 if test "$LN_S" = "ln -s"; then
3345   echo "$as_me:$LINENO: result: yes" >&5
3346 echo "${ECHO_T}yes" >&6
3347 else
3348   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3349 echo "${ECHO_T}no, using $LN_S" >&6
3350 fi
3351
3352 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3353 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3354 if test "${lt_cv_deplibs_check_method+set}" = set; then
3355   echo $ECHO_N "(cached) $ECHO_C" >&6
3356 else
3357   lt_cv_file_magic_cmd='$MAGIC_CMD'
3358 lt_cv_file_magic_test_file=
3359 lt_cv_deplibs_check_method='unknown'
3360 # Need to set the preceding variable on all platforms that support
3361 # interlibrary dependencies.
3362 # 'none' -- dependencies not supported.
3363 # `unknown' -- same as none, but documents that we really don't know.
3364 # 'pass_all' -- all dependencies passed with no checks.
3365 # 'test_compile' -- check by making test program.
3366 # 'file_magic [regex]' -- check by looking for files in library path
3367 # which responds to the $file_magic_cmd with a given egrep regex.
3368 # If you have `file' or equivalent on your system and you're not sure
3369 # whether `pass_all' will *always* work, you probably want this one.
3370
3371 case $host_os in
3372 aix*)
3373   lt_cv_deplibs_check_method=pass_all
3374   ;;
3375
3376 beos*)
3377   lt_cv_deplibs_check_method=pass_all
3378   ;;
3379
3380 bsdi4*)
3381   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3382   lt_cv_file_magic_cmd='/usr/bin/file -L'
3383   lt_cv_file_magic_test_file=/shlib/libc.so
3384   ;;
3385
3386 cygwin* | mingw* |pw32*)
3387   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3388   lt_cv_file_magic_cmd='$OBJDUMP -f'
3389   ;;
3390
3391 darwin* | rhapsody*)
3392   # this will be overwritten by pass_all, but leave it in just in case
3393   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3394   lt_cv_file_magic_cmd='/usr/bin/file -L'
3395   case "$host_os" in
3396   rhapsody* | darwin1.012)
3397     lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3398     ;;
3399   *) # Darwin 1.3 on
3400     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3401     ;;
3402   esac
3403   lt_cv_deplibs_check_method=pass_all
3404   ;;
3405
3406 freebsd* | kfreebsd*-gnu)
3407   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3408     case $host_cpu in
3409     i*86 )
3410       # Not sure whether the presence of OpenBSD here was a mistake.
3411       # Let's accept both of them until this is cleared up.
3412       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3413       lt_cv_file_magic_cmd=/usr/bin/file
3414       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3415       ;;
3416     esac
3417   else
3418     lt_cv_deplibs_check_method=pass_all
3419   fi
3420   ;;
3421
3422 gnu*)
3423   lt_cv_deplibs_check_method=pass_all
3424   ;;
3425
3426 hpux10.20*|hpux11*)
3427   case $host_cpu in
3428   hppa*)
3429     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3430     lt_cv_file_magic_cmd=/usr/bin/file
3431     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3432     ;;
3433   ia64*)
3434     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3435     lt_cv_file_magic_cmd=/usr/bin/file
3436     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3437     ;;
3438   esac
3439   ;;
3440
3441 irix5* | irix6*)
3442   case $host_os in
3443   irix5*)
3444     # this will be overridden with pass_all, but let us keep it just in case
3445     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3446     ;;
3447   *)
3448     case $LD in
3449     *-32|*"-32 ") libmagic=32-bit;;
3450     *-n32|*"-n32 ") libmagic=N32;;
3451     *-64|*"-64 ") libmagic=64-bit;;
3452     *) libmagic=never-match;;
3453     esac
3454     # this will be overridden with pass_all, but let us keep it just in case
3455     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3456     ;;
3457   esac
3458   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3459   lt_cv_deplibs_check_method=pass_all
3460   ;;
3461
3462 # This must be Linux ELF.
3463 linux-gnu*)
3464   lt_cv_deplibs_check_method=pass_all
3465   ;;
3466
3467 netbsd* | knetbsd*-gnu)
3468   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3469     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3470   else
3471     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3472   fi
3473   ;;
3474
3475 newsos6)
3476   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3477   lt_cv_file_magic_cmd=/usr/bin/file
3478   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3479   ;;
3480
3481 osf3* | osf4* | osf5*)
3482   # this will be overridden with pass_all, but let us keep it just in case
3483   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3484   lt_cv_file_magic_test_file=/shlib/libc.so
3485   lt_cv_deplibs_check_method=pass_all
3486   ;;
3487
3488 sco3.2v5*)
3489   lt_cv_deplibs_check_method=pass_all
3490   ;;
3491
3492 solaris*)
3493   lt_cv_deplibs_check_method=pass_all
3494   lt_cv_file_magic_test_file=/lib/libc.so
3495   ;;
3496
3497 sysv5uw[78]* | sysv4*uw2*)
3498   lt_cv_deplibs_check_method=pass_all
3499   ;;
3500
3501 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3502   case $host_vendor in
3503   ncr)
3504     lt_cv_deplibs_check_method=pass_all
3505     ;;
3506   motorola)
3507     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]'
3508     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3509     ;;
3510   esac
3511   ;;
3512 esac
3513
3514 fi
3515 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3516 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3517 file_magic_cmd=$lt_cv_file_magic_cmd
3518 deplibs_check_method=$lt_cv_deplibs_check_method
3519
3520
3521
3522
3523
3524 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3525
3526 # find the maximum length of command line arguments
3527 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
3528 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3529 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3530   echo $ECHO_N "(cached) $ECHO_C" >&6
3531 else
3532     i=0
3533   teststring="ABCD"
3534
3535   case $build_os in
3536   msdosdjgpp*)
3537     # On DJGPP, this test can blow up pretty badly due to problems in libc
3538     # (any single argument exceeding 2000 bytes causes a buffer overrun
3539     # during glob expansion).  Even if it were fixed, the result of this
3540     # check would be larger than it should be.
3541     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3542     ;;
3543
3544   cygwin* | mingw*)
3545     # On Win9x/ME, this test blows up -- it succeeds, but takes
3546     # about 5 minutes as the teststring grows exponentially.
3547     # Worse, since 9x/ME are not pre-emptively multitasking,
3548     # you end up with a "frozen" computer, even though with patience
3549     # the test eventually succeeds (with a max line length of 256k).
3550     # Instead, let's just punt: use the minimum linelength reported by
3551     # all of the supported platforms: 8192 (on NT/2K/XP).
3552     lt_cv_sys_max_cmd_len=8192;
3553     ;;
3554
3555   amigaos*)
3556     # On AmigaOS with pdksh, this test takes hours, literally.
3557     # So we just punt and use a minimum line length of 8192.
3558     lt_cv_sys_max_cmd_len=8192;
3559     ;;
3560
3561   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3562     # This has been around since 386BSD, at least.  Likely further.
3563     if test -x /sbin/sysctl; then
3564       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3565     elif test -x /usr/sbin/sysctl; then
3566       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3567     else
3568       lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
3569     fi
3570     # And add a safety zone
3571     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3572     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3573     ;;
3574   esac
3575
3576 fi
3577
3578 if test -n "$lt_cv_sys_max_cmd_len" ; then
3579   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
3580 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3581 else
3582   echo "$as_me:$LINENO: result: none" >&5
3583 echo "${ECHO_T}none" >&6
3584 fi
3585
3586
3587 # Only perform the check for file, if the check method requires it
3588 case $deplibs_check_method in
3589 file_magic*)
3590   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3591     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3592 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3593 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3594   echo $ECHO_N "(cached) $ECHO_C" >&6
3595 else
3596   case $MAGIC_CMD in
3597   /*)
3598   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3599   ;;
3600   ?:/*)
3601   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3602   ;;
3603   *)
3604   ac_save_MAGIC_CMD="$MAGIC_CMD"
3605   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3606   ac_dummy="/usr/bin:$PATH"
3607   for ac_dir in $ac_dummy; do
3608     test -z "$ac_dir" && ac_dir=.
3609     if test -f $ac_dir/${ac_tool_prefix}file; then
3610       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3611       if test -n "$file_magic_test_file"; then
3612         case $deplibs_check_method in
3613         "file_magic "*)
3614           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3615           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3616           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3617             egrep "$file_magic_regex" > /dev/null; then
3618             :
3619           else
3620             cat <<EOF 1>&2
3621
3622 *** Warning: the command libtool uses to detect shared libraries,
3623 *** $file_magic_cmd, produces output that libtool cannot recognize.
3624 *** The result is that libtool may fail to recognize shared libraries
3625 *** as such.  This will affect the creation of libtool libraries that
3626 *** depend on shared libraries, but programs linked with such libtool
3627 *** libraries will work regardless of this problem.  Nevertheless, you
3628 *** may want to report the problem to your system manager and/or to
3629 *** bug-libtool@gnu.org
3630
3631 EOF
3632           fi ;;
3633         esac
3634       fi
3635       break
3636     fi
3637   done
3638   IFS="$ac_save_ifs"
3639   MAGIC_CMD="$ac_save_MAGIC_CMD"
3640   ;;
3641 esac
3642 fi
3643
3644 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3645 if test -n "$MAGIC_CMD"; then
3646   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3647 echo "${ECHO_T}$MAGIC_CMD" >&6
3648 else
3649   echo "$as_me:$LINENO: result: no" >&5
3650 echo "${ECHO_T}no" >&6
3651 fi
3652
3653 if test -z "$lt_cv_path_MAGIC_CMD"; then
3654   if test -n "$ac_tool_prefix"; then
3655     echo "$as_me:$LINENO: checking for file" >&5
3656 echo $ECHO_N "checking for file... $ECHO_C" >&6
3657 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3658   echo $ECHO_N "(cached) $ECHO_C" >&6
3659 else
3660   case $MAGIC_CMD in
3661   /*)
3662   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3663   ;;
3664   ?:/*)
3665   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3666   ;;
3667   *)
3668   ac_save_MAGIC_CMD="$MAGIC_CMD"
3669   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3670   ac_dummy="/usr/bin:$PATH"
3671   for ac_dir in $ac_dummy; do
3672     test -z "$ac_dir" && ac_dir=.
3673     if test -f $ac_dir/file; then
3674       lt_cv_path_MAGIC_CMD="$ac_dir/file"
3675       if test -n "$file_magic_test_file"; then
3676         case $deplibs_check_method in
3677         "file_magic "*)
3678           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3679           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3680           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3681             egrep "$file_magic_regex" > /dev/null; then
3682             :
3683           else
3684             cat <<EOF 1>&2
3685
3686 *** Warning: the command libtool uses to detect shared libraries,
3687 *** $file_magic_cmd, produces output that libtool cannot recognize.
3688 *** The result is that libtool may fail to recognize shared libraries
3689 *** as such.  This will affect the creation of libtool libraries that
3690 *** depend on shared libraries, but programs linked with such libtool
3691 *** libraries will work regardless of this problem.  Nevertheless, you
3692 *** may want to report the problem to your system manager and/or to
3693 *** bug-libtool@gnu.org
3694
3695 EOF
3696           fi ;;
3697         esac
3698       fi
3699       break
3700     fi
3701   done
3702   IFS="$ac_save_ifs"
3703   MAGIC_CMD="$ac_save_MAGIC_CMD"
3704   ;;
3705 esac
3706 fi
3707
3708 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3709 if test -n "$MAGIC_CMD"; then
3710   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3711 echo "${ECHO_T}$MAGIC_CMD" >&6
3712 else
3713   echo "$as_me:$LINENO: result: no" >&5
3714 echo "${ECHO_T}no" >&6
3715 fi
3716
3717   else
3718     MAGIC_CMD=:
3719   fi
3720 fi
3721
3722   fi
3723   ;;
3724 esac
3725
3726 if test -n "$ac_tool_prefix"; then
3727   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3728 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3729 echo "$as_me:$LINENO: checking for $ac_word" >&5
3730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3731 if test "${ac_cv_prog_RANLIB+set}" = set; then
3732   echo $ECHO_N "(cached) $ECHO_C" >&6
3733 else
3734   if test -n "$RANLIB"; then
3735   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3736 else
3737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738 for as_dir in $PATH
3739 do
3740   IFS=$as_save_IFS
3741   test -z "$as_dir" && as_dir=.
3742   for ac_exec_ext in '' $ac_executable_extensions; do
3743   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3744     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3746     break 2
3747   fi
3748 done
3749 done
3750
3751 fi
3752 fi
3753 RANLIB=$ac_cv_prog_RANLIB
3754 if test -n "$RANLIB"; then
3755   echo "$as_me:$LINENO: result: $RANLIB" >&5
3756 echo "${ECHO_T}$RANLIB" >&6
3757 else
3758   echo "$as_me:$LINENO: result: no" >&5
3759 echo "${ECHO_T}no" >&6
3760 fi
3761
3762 fi
3763 if test -z "$ac_cv_prog_RANLIB"; then
3764   ac_ct_RANLIB=$RANLIB
3765   # Extract the first word of "ranlib", so it can be a program name with args.
3766 set dummy ranlib; ac_word=$2
3767 echo "$as_me:$LINENO: checking for $ac_word" >&5
3768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3769 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3770   echo $ECHO_N "(cached) $ECHO_C" >&6
3771 else
3772   if test -n "$ac_ct_RANLIB"; then
3773   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3774 else
3775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3776 for as_dir in $PATH
3777 do
3778   IFS=$as_save_IFS
3779   test -z "$as_dir" && as_dir=.
3780   for ac_exec_ext in '' $ac_executable_extensions; do
3781   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3782     ac_cv_prog_ac_ct_RANLIB="ranlib"
3783     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3784     break 2
3785   fi
3786 done
3787 done
3788
3789   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3790 fi
3791 fi
3792 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3793 if test -n "$ac_ct_RANLIB"; then
3794   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3795 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3796 else
3797   echo "$as_me:$LINENO: result: no" >&5
3798 echo "${ECHO_T}no" >&6
3799 fi
3800
3801   RANLIB=$ac_ct_RANLIB
3802 else
3803   RANLIB="$ac_cv_prog_RANLIB"
3804 fi
3805
3806 if test -n "$ac_tool_prefix"; then
3807   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3808 set dummy ${ac_tool_prefix}strip; ac_word=$2
3809 echo "$as_me:$LINENO: checking for $ac_word" >&5
3810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3811 if test "${ac_cv_prog_STRIP+set}" = set; then
3812   echo $ECHO_N "(cached) $ECHO_C" >&6
3813 else
3814   if test -n "$STRIP"; then
3815   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3816 else
3817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3818 for as_dir in $PATH
3819 do
3820   IFS=$as_save_IFS
3821   test -z "$as_dir" && as_dir=.
3822   for ac_exec_ext in '' $ac_executable_extensions; do
3823   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3824     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3825     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3826     break 2
3827   fi
3828 done
3829 done
3830
3831 fi
3832 fi
3833 STRIP=$ac_cv_prog_STRIP
3834 if test -n "$STRIP"; then
3835   echo "$as_me:$LINENO: result: $STRIP" >&5
3836 echo "${ECHO_T}$STRIP" >&6
3837 else
3838   echo "$as_me:$LINENO: result: no" >&5
3839 echo "${ECHO_T}no" >&6
3840 fi
3841
3842 fi
3843 if test -z "$ac_cv_prog_STRIP"; then
3844   ac_ct_STRIP=$STRIP
3845   # Extract the first word of "strip", so it can be a program name with args.
3846 set dummy strip; ac_word=$2
3847 echo "$as_me:$LINENO: checking for $ac_word" >&5
3848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3849 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3850   echo $ECHO_N "(cached) $ECHO_C" >&6
3851 else
3852   if test -n "$ac_ct_STRIP"; then
3853   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3854 else
3855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856 for as_dir in $PATH
3857 do
3858   IFS=$as_save_IFS
3859   test -z "$as_dir" && as_dir=.
3860   for ac_exec_ext in '' $ac_executable_extensions; do
3861   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3862     ac_cv_prog_ac_ct_STRIP="strip"
3863     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3864     break 2
3865   fi
3866 done
3867 done
3868
3869   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3870 fi
3871 fi
3872 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3873 if test -n "$ac_ct_STRIP"; then
3874   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3875 echo "${ECHO_T}$ac_ct_STRIP" >&6
3876 else
3877   echo "$as_me:$LINENO: result: no" >&5
3878 echo "${ECHO_T}no" >&6
3879 fi
3880
3881   STRIP=$ac_ct_STRIP
3882 else
3883   STRIP="$ac_cv_prog_STRIP"
3884 fi
3885
3886
3887 # Check for any special flags to pass to ltconfig.
3888 libtool_flags="--cache-file=$cache_file"
3889 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3890 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3891 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3892 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3893 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3894
3895
3896 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3897 if test "${enable_libtool_lock+set}" = set; then
3898   enableval="$enable_libtool_lock"
3899
3900 fi;
3901 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3902 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3903
3904
3905 # Check whether --with-pic or --without-pic was given.
3906 if test "${with_pic+set}" = set; then
3907   withval="$with_pic"
3908   pic_mode="$withval"
3909 else
3910   pic_mode=default
3911 fi;
3912 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3913 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3914
3915 # Some flags need to be propagated to the compiler or linker for good
3916 # libtool support.
3917 case $host in
3918 *-*-irix6*)
3919   # Find out which ABI we are using.
3920   echo '#line 3920 "configure"' > conftest.$ac_ext
3921   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3922   (eval $ac_compile) 2>&5
3923   ac_status=$?
3924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3925   (exit $ac_status); }; then
3926    if test "$lt_cv_prog_gnu_ld" = yes; then
3927     case `/usr/bin/file conftest.$ac_objext` in
3928     *32-bit*)
3929       LD="${LD-ld} -melf32bsmip"
3930       ;;
3931     *N32*)
3932       LD="${LD-ld} -melf32bmipn32"
3933       ;;
3934     *64-bit*)
3935       LD="${LD-ld} -melf64bmip"
3936       ;;
3937     esac
3938    else
3939     case `/usr/bin/file conftest.$ac_objext` in
3940     *32-bit*)
3941       LD="${LD-ld} -32"
3942       ;;
3943     *N32*)
3944       LD="${LD-ld} -n32"
3945       ;;
3946     *64-bit*)
3947       LD="${LD-ld} -64"
3948       ;;
3949     esac
3950    fi
3951   fi
3952   rm -rf conftest*
3953   ;;
3954
3955 ia64-*-hpux*)
3956   # Find out which ABI we are using.
3957   echo 'int i;' > conftest.$ac_ext
3958   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3959   (eval $ac_compile) 2>&5
3960   ac_status=$?
3961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962   (exit $ac_status); }; then
3963     case "`/usr/bin/file conftest.o`" in
3964     *ELF-32*)
3965       HPUX_IA64_MODE="32"
3966       ;;
3967     *ELF-64*)
3968       HPUX_IA64_MODE="64"
3969       ;;
3970     esac
3971   fi
3972   rm -rf conftest*
3973   ;;
3974
3975 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3976   # Find out which ABI we are using.
3977   echo 'int i;' > conftest.$ac_ext
3978   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3979   (eval $ac_compile) 2>&5
3980   ac_status=$?
3981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982   (exit $ac_status); }; then
3983     case "`/usr/bin/file conftest.o`" in
3984     *32-bit*)
3985       case $host in
3986         x86_64-*linux*)
3987           LD="${LD-ld} -m elf_i386"
3988           ;;
3989         ppc64-*linux*|powerpc64-*linux*)
3990           LD="${LD-ld} -m elf32ppclinux"
3991           ;;
3992         s390x-*linux*)
3993           LD="${LD-ld} -m elf_s390"
3994           ;;
3995         sparc64-*linux*)
3996           LD="${LD-ld} -m elf32_sparc"
3997           ;;
3998       esac
3999       ;;
4000     *64-bit*)
4001       case $host in
4002         x86_64-*linux*)
4003           LD="${LD-ld} -m elf_x86_64"
4004           ;;
4005         ppc*-*linux*|powerpc*-*linux*)
4006           LD="${LD-ld} -m elf64ppc"
4007           ;;
4008         s390*-*linux*)
4009           LD="${LD-ld} -m elf64_s390"
4010           ;;
4011         sparc*-*linux*)
4012           LD="${LD-ld} -m elf64_sparc"
4013           ;;
4014       esac
4015       ;;
4016     esac
4017   fi
4018   rm -rf conftest*
4019   ;;
4020
4021 *-*-sco3.2v5*)
4022   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4023   SAVE_CFLAGS="$CFLAGS"
4024   CFLAGS="$CFLAGS -belf"
4025   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4026 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4027 if test "${lt_cv_cc_needs_belf+set}" = set; then
4028   echo $ECHO_N "(cached) $ECHO_C" >&6
4029 else
4030
4031
4032      ac_ext=c
4033 ac_cpp='$CPP $CPPFLAGS'
4034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4037
4038      cat >conftest.$ac_ext <<_ACEOF
4039 /* confdefs.h.  */
4040 _ACEOF
4041 cat confdefs.h >>conftest.$ac_ext
4042 cat >>conftest.$ac_ext <<_ACEOF
4043 /* end confdefs.h.  */
4044
4045 int
4046 main ()
4047 {
4048
4049   ;
4050   return 0;
4051 }
4052 _ACEOF
4053 rm -f conftest.$ac_objext conftest$ac_exeext
4054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4055   (eval $ac_link) 2>conftest.er1
4056   ac_status=$?
4057   grep -v '^ *+' conftest.er1 >conftest.err
4058   rm -f conftest.er1
4059   cat conftest.err >&5
4060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061   (exit $ac_status); } &&
4062          { ac_try='test -z "$ac_c_werror_flag"
4063                          || test ! -s conftest.err'
4064   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4065   (eval $ac_try) 2>&5
4066   ac_status=$?
4067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068   (exit $ac_status); }; } &&
4069          { ac_try='test -s conftest$ac_exeext'
4070   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4071   (eval $ac_try) 2>&5
4072   ac_status=$?
4073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4074   (exit $ac_status); }; }; then
4075   lt_cv_cc_needs_belf=yes
4076 else
4077   echo "$as_me: failed program was:" >&5
4078 sed 's/^/| /' conftest.$ac_ext >&5
4079
4080 lt_cv_cc_needs_belf=no
4081 fi
4082 rm -f conftest.err conftest.$ac_objext \
4083       conftest$ac_exeext conftest.$ac_ext
4084      ac_ext=c
4085 ac_cpp='$CPP $CPPFLAGS'
4086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4089
4090 fi
4091 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4092 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4093   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4094     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4095     CFLAGS="$SAVE_CFLAGS"
4096   fi
4097   ;;
4098
4099
4100 esac
4101
4102
4103 # Save cache, so that ltconfig can load it
4104 cat >confcache <<\_ACEOF
4105 # This file is a shell script that caches the results of configure
4106 # tests run on this system so they can be shared between configure
4107 # scripts and configure runs, see configure's option --config-cache.
4108 # It is not useful on other systems.  If it contains results you don't
4109 # want to keep, you may remove or edit it.
4110 #
4111 # config.status only pays attention to the cache file if you give it
4112 # the --recheck option to rerun configure.
4113 #
4114 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4115 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4116 # following values.
4117
4118 _ACEOF
4119
4120 # The following way of writing the cache mishandles newlines in values,
4121 # but we know of no workaround that is simple, portable, and efficient.
4122 # So, don't put newlines in cache variables' values.
4123 # Ultrix sh set writes to stderr and can't be redirected directly,
4124 # and sets the high bit in the cache file unless we assign to the vars.
4125 {
4126   (set) 2>&1 |
4127     case `(ac_space=' '; set | grep ac_space) 2>&1` in
4128     *ac_space=\ *)
4129       # `set' does not quote correctly, so add quotes (double-quote
4130       # substitution turns \\\\ into \\, and sed turns \\ into \).
4131       sed -n \
4132         "s/'/'\\\\''/g;
4133           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4134       ;;
4135     *)
4136       # `set' quotes correctly as required by POSIX, so do not add quotes.
4137       sed -n \
4138         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4139       ;;
4140     esac;
4141 } |
4142   sed '
4143      t clear
4144      : clear
4145      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4146      t end
4147      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4148      : end' >>confcache
4149 if diff $cache_file confcache >/dev/null 2>&1; then :; else
4150   if test -w $cache_file; then
4151     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4152     cat confcache >$cache_file
4153   else
4154     echo "not updating unwritable cache $cache_file"
4155   fi
4156 fi
4157 rm -f confcache
4158
4159 # Actually configure libtool.  ac_aux_dir is where install-sh is found.
4160 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4161 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4162 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4163 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4164 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4165 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
4166 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
4167 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
4168 || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4169 echo "$as_me: error: libtool configure failed" >&2;}
4170    { (exit 1); exit 1; }; }
4171
4172 # Reload cache, that may have been modified by ltconfig
4173 if test -r "$cache_file"; then
4174   # Some versions of bash will fail to source /dev/null (special
4175   # files actually), so we avoid doing that.
4176   if test -f "$cache_file"; then
4177     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4178 echo "$as_me: loading cache $cache_file" >&6;}
4179     case $cache_file in
4180       [\\/]* | ?:[\\/]* ) . $cache_file;;
4181       *)                      . ./$cache_file;;
4182     esac
4183   fi
4184 else
4185   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4186 echo "$as_me: creating cache $cache_file" >&6;}
4187   >$cache_file
4188 fi
4189
4190
4191 # This can be used to rebuild libtool when needed
4192 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
4193
4194 # Always use our own libtool.
4195 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4196
4197 # Redirect the config.log output again, so that the ltconfig log is not
4198 # clobbered by the next message.
4199 exec 5>>./config.log
4200
4201
4202
4203
4204
4205
4206
4207 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
4208 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
4209     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
4210 if test "${enable_maintainer_mode+set}" = set; then
4211   enableval="$enable_maintainer_mode"
4212   USE_MAINTAINER_MODE=$enableval
4213 else
4214   USE_MAINTAINER_MODE=no
4215 fi;
4216   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
4217 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
4218
4219
4220 if test $USE_MAINTAINER_MODE = yes; then
4221   MAINTAINER_MODE_TRUE=
4222   MAINTAINER_MODE_FALSE='#'
4223 else
4224   MAINTAINER_MODE_TRUE='#'
4225   MAINTAINER_MODE_FALSE=
4226 fi
4227
4228   MAINT=$MAINTAINER_MODE_TRUE
4229
4230
4231
4232 ac_ext=c
4233 ac_cpp='$CPP $CPPFLAGS'
4234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4237 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4238 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4239 # On Suns, sometimes $CPP names a directory.
4240 if test -n "$CPP" && test -d "$CPP"; then
4241   CPP=
4242 fi
4243 if test -z "$CPP"; then
4244   if test "${ac_cv_prog_CPP+set}" = set; then
4245   echo $ECHO_N "(cached) $ECHO_C" >&6
4246 else
4247       # Double quotes because CPP needs to be expanded
4248     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4249     do
4250       ac_preproc_ok=false
4251 for ac_c_preproc_warn_flag in '' yes
4252 do
4253   # Use a header file that comes with gcc, so configuring glibc
4254   # with a fresh cross-compiler works.
4255   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4256   # <limits.h> exists even on freestanding compilers.
4257   # On the NeXT, cc -E runs the code through the compiler's parser,
4258   # not just through cpp. "Syntax error" is here to catch this case.
4259   cat >conftest.$ac_ext <<_ACEOF
4260 /* confdefs.h.  */
4261 _ACEOF
4262 cat confdefs.h >>conftest.$ac_ext
4263 cat >>conftest.$ac_ext <<_ACEOF
4264 /* end confdefs.h.  */
4265 #ifdef __STDC__
4266 # include <limits.h>
4267 #else
4268 # include <assert.h>
4269 #endif
4270                      Syntax error
4271 _ACEOF
4272 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4273   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4274   ac_status=$?
4275   grep -v '^ *+' conftest.er1 >conftest.err
4276   rm -f conftest.er1
4277   cat conftest.err >&5
4278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279   (exit $ac_status); } >/dev/null; then
4280   if test -s conftest.err; then
4281     ac_cpp_err=$ac_c_preproc_warn_flag
4282     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4283   else
4284     ac_cpp_err=
4285   fi
4286 else
4287   ac_cpp_err=yes
4288 fi
4289 if test -z "$ac_cpp_err"; then
4290   :
4291 else
4292   echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4294
4295   # Broken: fails on valid input.
4296 continue
4297 fi
4298 rm -f conftest.err conftest.$ac_ext
4299
4300   # OK, works on sane cases.  Now check whether non-existent headers
4301   # can be detected and how.
4302   cat >conftest.$ac_ext <<_ACEOF
4303 /* confdefs.h.  */
4304 _ACEOF
4305 cat confdefs.h >>conftest.$ac_ext
4306 cat >>conftest.$ac_ext <<_ACEOF
4307 /* end confdefs.h.  */
4308 #include <ac_nonexistent.h>
4309 _ACEOF
4310 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4311   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4312   ac_status=$?
4313   grep -v '^ *+' conftest.er1 >conftest.err
4314   rm -f conftest.er1
4315   cat conftest.err >&5
4316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317   (exit $ac_status); } >/dev/null; then
4318   if test -s conftest.err; then
4319     ac_cpp_err=$ac_c_preproc_warn_flag
4320     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4321   else
4322     ac_cpp_err=
4323   fi
4324 else
4325   ac_cpp_err=yes
4326 fi
4327 if test -z "$ac_cpp_err"; then
4328   # Broken: success on invalid input.
4329 continue
4330 else
4331   echo "$as_me: failed program was:" >&5
4332 sed 's/^/| /' conftest.$ac_ext >&5
4333
4334   # Passes both tests.
4335 ac_preproc_ok=:
4336 break
4337 fi
4338 rm -f conftest.err conftest.$ac_ext
4339
4340 done
4341 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4342 rm -f conftest.err conftest.$ac_ext
4343 if $ac_preproc_ok; then
4344   break
4345 fi
4346
4347     done
4348     ac_cv_prog_CPP=$CPP
4349
4350 fi
4351   CPP=$ac_cv_prog_CPP
4352 else
4353   ac_cv_prog_CPP=$CPP
4354 fi
4355 echo "$as_me:$LINENO: result: $CPP" >&5
4356 echo "${ECHO_T}$CPP" >&6
4357 ac_preproc_ok=false
4358 for ac_c_preproc_warn_flag in '' yes
4359 do
4360   # Use a header file that comes with gcc, so configuring glibc
4361   # with a fresh cross-compiler works.
4362   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4363   # <limits.h> exists even on freestanding compilers.
4364   # On the NeXT, cc -E runs the code through the compiler's parser,
4365   # not just through cpp. "Syntax error" is here to catch this case.
4366   cat >conftest.$ac_ext <<_ACEOF
4367 /* confdefs.h.  */
4368 _ACEOF
4369 cat confdefs.h >>conftest.$ac_ext
4370 cat >>conftest.$ac_ext <<_ACEOF
4371 /* end confdefs.h.  */
4372 #ifdef __STDC__
4373 # include <limits.h>
4374 #else
4375 # include <assert.h>
4376 #endif
4377                      Syntax error
4378 _ACEOF
4379 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4380   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4381   ac_status=$?
4382   grep -v '^ *+' conftest.er1 >conftest.err
4383   rm -f conftest.er1
4384   cat conftest.err >&5
4385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386   (exit $ac_status); } >/dev/null; then
4387   if test -s conftest.err; then
4388     ac_cpp_err=$ac_c_preproc_warn_flag
4389     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4390   else
4391     ac_cpp_err=
4392   fi
4393 else
4394   ac_cpp_err=yes
4395 fi
4396 if test -z "$ac_cpp_err"; then
4397   :
4398 else
4399   echo "$as_me: failed program was:" >&5
4400 sed 's/^/| /' conftest.$ac_ext >&5
4401
4402   # Broken: fails on valid input.
4403 continue
4404 fi
4405 rm -f conftest.err conftest.$ac_ext
4406
4407   # OK, works on sane cases.  Now check whether non-existent headers
4408   # can be detected and how.
4409   cat >conftest.$ac_ext <<_ACEOF
4410 /* confdefs.h.  */
4411 _ACEOF
4412 cat confdefs.h >>conftest.$ac_ext
4413 cat >>conftest.$ac_ext <<_ACEOF
4414 /* end confdefs.h.  */
4415 #include <ac_nonexistent.h>
4416 _ACEOF
4417 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4418   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4419   ac_status=$?
4420   grep -v '^ *+' conftest.er1 >conftest.err
4421   rm -f conftest.er1
4422   cat conftest.err >&5
4423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424   (exit $ac_status); } >/dev/null; then
4425   if test -s conftest.err; then
4426     ac_cpp_err=$ac_c_preproc_warn_flag
4427     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4428   else
4429     ac_cpp_err=
4430   fi
4431 else
4432   ac_cpp_err=yes
4433 fi
4434 if test -z "$ac_cpp_err"; then
4435   # Broken: success on invalid input.
4436 continue
4437 else
4438   echo "$as_me: failed program was:" >&5
4439 sed 's/^/| /' conftest.$ac_ext >&5
4440
4441   # Passes both tests.
4442 ac_preproc_ok=:
4443 break
4444 fi
4445 rm -f conftest.err conftest.$ac_ext
4446
4447 done
4448 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4449 rm -f conftest.err conftest.$ac_ext
4450 if $ac_preproc_ok; then
4451   :
4452 else
4453   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4454 See \`config.log' for more details." >&5
4455 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4456 See \`config.log' for more details." >&2;}
4457    { (exit 1); exit 1; }; }
4458 fi
4459
4460 ac_ext=c
4461 ac_cpp='$CPP $CPPFLAGS'
4462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4465
4466
4467 echo "$as_me:$LINENO: checking for egrep" >&5
4468 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4469 if test "${ac_cv_prog_egrep+set}" = set; then
4470   echo $ECHO_N "(cached) $ECHO_C" >&6
4471 else
4472   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4473     then ac_cv_prog_egrep='grep -E'
4474     else ac_cv_prog_egrep='egrep'
4475     fi
4476 fi
4477 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4478 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4479  EGREP=$ac_cv_prog_egrep
4480
4481
4482 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4483 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4484 if test "${ac_cv_header_stdc+set}" = set; then
4485   echo $ECHO_N "(cached) $ECHO_C" >&6
4486 else
4487   cat >conftest.$ac_ext <<_ACEOF
4488 /* confdefs.h.  */
4489 _ACEOF
4490 cat confdefs.h >>conftest.$ac_ext
4491 cat >>conftest.$ac_ext <<_ACEOF
4492 /* end confdefs.h.  */
4493 #include <stdlib.h>
4494 #include <stdarg.h>
4495 #include <string.h>
4496 #include <float.h>
4497
4498 int
4499 main ()
4500 {
4501
4502   ;
4503   return 0;
4504 }
4505 _ACEOF
4506 rm -f conftest.$ac_objext
4507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4508   (eval $ac_compile) 2>conftest.er1
4509   ac_status=$?
4510   grep -v '^ *+' conftest.er1 >conftest.err
4511   rm -f conftest.er1
4512   cat conftest.err >&5
4513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514   (exit $ac_status); } &&
4515          { ac_try='test -z "$ac_c_werror_flag"
4516                          || test ! -s conftest.err'
4517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4518   (eval $ac_try) 2>&5
4519   ac_status=$?
4520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521   (exit $ac_status); }; } &&
4522          { ac_try='test -s conftest.$ac_objext'
4523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4524   (eval $ac_try) 2>&5
4525   ac_status=$?
4526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527   (exit $ac_status); }; }; then
4528   ac_cv_header_stdc=yes
4529 else
4530   echo "$as_me: failed program was:" >&5
4531 sed 's/^/| /' conftest.$ac_ext >&5
4532
4533 ac_cv_header_stdc=no
4534 fi
4535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4536
4537 if test $ac_cv_header_stdc = yes; then
4538   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4539   cat >conftest.$ac_ext <<_ACEOF
4540 /* confdefs.h.  */
4541 _ACEOF
4542 cat confdefs.h >>conftest.$ac_ext
4543 cat >>conftest.$ac_ext <<_ACEOF
4544 /* end confdefs.h.  */
4545 #include <string.h>
4546
4547 _ACEOF
4548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4549   $EGREP "memchr" >/dev/null 2>&1; then
4550   :
4551 else
4552   ac_cv_header_stdc=no
4553 fi
4554 rm -f conftest*
4555
4556 fi
4557
4558 if test $ac_cv_header_stdc = yes; then
4559   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4560   cat >conftest.$ac_ext <<_ACEOF
4561 /* confdefs.h.  */
4562 _ACEOF
4563 cat confdefs.h >>conftest.$ac_ext
4564 cat >>conftest.$ac_ext <<_ACEOF
4565 /* end confdefs.h.  */
4566 #include <stdlib.h>
4567
4568 _ACEOF
4569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4570   $EGREP "free" >/dev/null 2>&1; then
4571   :
4572 else
4573   ac_cv_header_stdc=no
4574 fi
4575 rm -f conftest*
4576
4577 fi
4578
4579 if test $ac_cv_header_stdc = yes; then
4580   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4581   if test "$cross_compiling" = yes; then
4582   :
4583 else
4584   cat >conftest.$ac_ext <<_ACEOF
4585 /* confdefs.h.  */
4586 _ACEOF
4587 cat confdefs.h >>conftest.$ac_ext
4588 cat >>conftest.$ac_ext <<_ACEOF
4589 /* end confdefs.h.  */
4590 #include <ctype.h>
4591 #if ((' ' & 0x0FF) == 0x020)
4592 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4593 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4594 #else
4595 # define ISLOWER(c) \
4596                    (('a' <= (c) && (c) <= 'i') \
4597                      || ('j' <= (c) && (c) <= 'r') \
4598                      || ('s' <= (c) && (c) <= 'z'))
4599 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4600 #endif
4601
4602 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4603 int
4604 main ()
4605 {
4606   int i;
4607   for (i = 0; i < 256; i++)
4608     if (XOR (islower (i), ISLOWER (i))
4609         || toupper (i) != TOUPPER (i))
4610       exit(2);
4611   exit (0);
4612 }
4613 _ACEOF
4614 rm -f conftest$ac_exeext
4615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4616   (eval $ac_link) 2>&5
4617   ac_status=$?
4618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4621   (eval $ac_try) 2>&5
4622   ac_status=$?
4623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624   (exit $ac_status); }; }; then
4625   :
4626 else
4627   echo "$as_me: program exited with status $ac_status" >&5
4628 echo "$as_me: failed program was:" >&5
4629 sed 's/^/| /' conftest.$ac_ext >&5
4630
4631 ( exit $ac_status )
4632 ac_cv_header_stdc=no
4633 fi
4634 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4635 fi
4636 fi
4637 fi
4638 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4639 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4640 if test $ac_cv_header_stdc = yes; then
4641
4642 cat >>confdefs.h <<\_ACEOF
4643 #define STDC_HEADERS 1
4644 _ACEOF
4645
4646 fi
4647
4648 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4659                   inttypes.h stdint.h unistd.h
4660 do
4661 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4662 echo "$as_me:$LINENO: checking for $ac_header" >&5
4663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4664 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4665   echo $ECHO_N "(cached) $ECHO_C" >&6
4666 else
4667   cat >conftest.$ac_ext <<_ACEOF
4668 /* confdefs.h.  */
4669 _ACEOF
4670 cat confdefs.h >>conftest.$ac_ext
4671 cat >>conftest.$ac_ext <<_ACEOF
4672 /* end confdefs.h.  */
4673 $ac_includes_default
4674
4675 #include <$ac_header>
4676 _ACEOF
4677 rm -f conftest.$ac_objext
4678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4679   (eval $ac_compile) 2>conftest.er1
4680   ac_status=$?
4681   grep -v '^ *+' conftest.er1 >conftest.err
4682   rm -f conftest.er1
4683   cat conftest.err >&5
4684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685   (exit $ac_status); } &&
4686          { ac_try='test -z "$ac_c_werror_flag"
4687                          || test ! -s conftest.err'
4688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4689   (eval $ac_try) 2>&5
4690   ac_status=$?
4691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692   (exit $ac_status); }; } &&
4693          { ac_try='test -s conftest.$ac_objext'
4694   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4695   (eval $ac_try) 2>&5
4696   ac_status=$?
4697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698   (exit $ac_status); }; }; then
4699   eval "$as_ac_Header=yes"
4700 else
4701   echo "$as_me: failed program was:" >&5
4702 sed 's/^/| /' conftest.$ac_ext >&5
4703
4704 eval "$as_ac_Header=no"
4705 fi
4706 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4707 fi
4708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4709 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4710 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4711   cat >>confdefs.h <<_ACEOF
4712 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4713 _ACEOF
4714
4715 fi
4716
4717 done
4718
4719
4720
4721 for ac_header in sys/mman.h
4722 do
4723 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4725   echo "$as_me:$LINENO: checking for $ac_header" >&5
4726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4727 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4728   echo $ECHO_N "(cached) $ECHO_C" >&6
4729 fi
4730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4732 else
4733   # Is the header compilable?
4734 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4735 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4736 cat >conftest.$ac_ext <<_ACEOF
4737 /* confdefs.h.  */
4738 _ACEOF
4739 cat confdefs.h >>conftest.$ac_ext
4740 cat >>conftest.$ac_ext <<_ACEOF
4741 /* end confdefs.h.  */
4742 $ac_includes_default
4743 #include <$ac_header>
4744 _ACEOF
4745 rm -f conftest.$ac_objext
4746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4747   (eval $ac_compile) 2>conftest.er1
4748   ac_status=$?
4749   grep -v '^ *+' conftest.er1 >conftest.err
4750   rm -f conftest.er1
4751   cat conftest.err >&5
4752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753   (exit $ac_status); } &&
4754          { ac_try='test -z "$ac_c_werror_flag"
4755                          || test ! -s conftest.err'
4756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4757   (eval $ac_try) 2>&5
4758   ac_status=$?
4759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760   (exit $ac_status); }; } &&
4761          { ac_try='test -s conftest.$ac_objext'
4762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4763   (eval $ac_try) 2>&5
4764   ac_status=$?
4765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766   (exit $ac_status); }; }; then
4767   ac_header_compiler=yes
4768 else
4769   echo "$as_me: failed program was:" >&5
4770 sed 's/^/| /' conftest.$ac_ext >&5
4771
4772 ac_header_compiler=no
4773 fi
4774 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4775 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4776 echo "${ECHO_T}$ac_header_compiler" >&6
4777
4778 # Is the header present?
4779 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4780 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4781 cat >conftest.$ac_ext <<_ACEOF
4782 /* confdefs.h.  */
4783 _ACEOF
4784 cat confdefs.h >>conftest.$ac_ext
4785 cat >>conftest.$ac_ext <<_ACEOF
4786 /* end confdefs.h.  */
4787 #include <$ac_header>
4788 _ACEOF
4789 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4790   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4791   ac_status=$?
4792   grep -v '^ *+' conftest.er1 >conftest.err
4793   rm -f conftest.er1
4794   cat conftest.err >&5
4795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796   (exit $ac_status); } >/dev/null; then
4797   if test -s conftest.err; then
4798     ac_cpp_err=$ac_c_preproc_warn_flag
4799     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4800   else
4801     ac_cpp_err=
4802   fi
4803 else
4804   ac_cpp_err=yes
4805 fi
4806 if test -z "$ac_cpp_err"; then
4807   ac_header_preproc=yes
4808 else
4809   echo "$as_me: failed program was:" >&5
4810 sed 's/^/| /' conftest.$ac_ext >&5
4811
4812   ac_header_preproc=no
4813 fi
4814 rm -f conftest.err conftest.$ac_ext
4815 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4816 echo "${ECHO_T}$ac_header_preproc" >&6
4817
4818 # So?  What about this header?
4819 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4820   yes:no: )
4821     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4822 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4823     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4824 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4825     ac_header_preproc=yes
4826     ;;
4827   no:yes:* )
4828     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4829 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4830     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4831 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4832     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4833 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4834     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4835 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4836     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4837 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4838     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4839 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4840     (
4841       cat <<\_ASBOX
4842 ## ------------------------------------------- ##
4843 ## Report this to http://gcc.gnu.org/bugs.html ##
4844 ## ------------------------------------------- ##
4845 _ASBOX
4846     ) |
4847       sed "s/^/$as_me: WARNING:     /" >&2
4848     ;;
4849 esac
4850 echo "$as_me:$LINENO: checking for $ac_header" >&5
4851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4853   echo $ECHO_N "(cached) $ECHO_C" >&6
4854 else
4855   eval "$as_ac_Header=\$ac_header_preproc"
4856 fi
4857 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4858 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4859
4860 fi
4861 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4862   cat >>confdefs.h <<_ACEOF
4863 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4864 _ACEOF
4865
4866 fi
4867
4868 done
4869
4870
4871 for ac_func in mmap
4872 do
4873 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4874 echo "$as_me:$LINENO: checking for $ac_func" >&5
4875 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4876 if eval "test \"\${$as_ac_var+set}\" = set"; then
4877   echo $ECHO_N "(cached) $ECHO_C" >&6
4878 else
4879   cat >conftest.$ac_ext <<_ACEOF
4880 /* confdefs.h.  */
4881 _ACEOF
4882 cat confdefs.h >>conftest.$ac_ext
4883 cat >>conftest.$ac_ext <<_ACEOF
4884 /* end confdefs.h.  */
4885 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4886    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4887 #define $ac_func innocuous_$ac_func
4888
4889 /* System header to define __stub macros and hopefully few prototypes,
4890     which can conflict with char $ac_func (); below.
4891     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4892     <limits.h> exists even on freestanding compilers.  */
4893
4894 #ifdef __STDC__
4895 # include <limits.h>
4896 #else
4897 # include <assert.h>
4898 #endif
4899
4900 #undef $ac_func
4901
4902 /* Override any gcc2 internal prototype to avoid an error.  */
4903 #ifdef __cplusplus
4904 extern "C"
4905 {
4906 #endif
4907 /* We use char because int might match the return type of a gcc2
4908    builtin and then its argument prototype would still apply.  */
4909 char $ac_func ();
4910 /* The GNU C library defines this for functions which it implements
4911     to always fail with ENOSYS.  Some functions are actually named
4912     something starting with __ and the normal name is an alias.  */
4913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4914 choke me
4915 #else
4916 char (*f) () = $ac_func;
4917 #endif
4918 #ifdef __cplusplus
4919 }
4920 #endif
4921
4922 int
4923 main ()
4924 {
4925 return f != $ac_func;
4926   ;
4927   return 0;
4928 }
4929 _ACEOF
4930 rm -f conftest.$ac_objext conftest$ac_exeext
4931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4932   (eval $ac_link) 2>conftest.er1
4933   ac_status=$?
4934   grep -v '^ *+' conftest.er1 >conftest.err
4935   rm -f conftest.er1
4936   cat conftest.err >&5
4937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938   (exit $ac_status); } &&
4939          { ac_try='test -z "$ac_c_werror_flag"
4940                          || test ! -s conftest.err'
4941   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4942   (eval $ac_try) 2>&5
4943   ac_status=$?
4944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945   (exit $ac_status); }; } &&
4946          { ac_try='test -s conftest$ac_exeext'
4947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4948   (eval $ac_try) 2>&5
4949   ac_status=$?
4950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4951   (exit $ac_status); }; }; then
4952   eval "$as_ac_var=yes"
4953 else
4954   echo "$as_me: failed program was:" >&5
4955 sed 's/^/| /' conftest.$ac_ext >&5
4956
4957 eval "$as_ac_var=no"
4958 fi
4959 rm -f conftest.err conftest.$ac_objext \
4960       conftest$ac_exeext conftest.$ac_ext
4961 fi
4962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4963 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4964 if test `eval echo '${'$as_ac_var'}'` = yes; then
4965   cat >>confdefs.h <<_ACEOF
4966 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4967 _ACEOF
4968
4969 fi
4970 done
4971
4972
4973 if test "${ac_cv_header_sys_mman_h+set}" = set; then
4974   echo "$as_me:$LINENO: checking for sys/mman.h" >&5
4975 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
4976 if test "${ac_cv_header_sys_mman_h+set}" = set; then
4977   echo $ECHO_N "(cached) $ECHO_C" >&6
4978 fi
4979 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
4980 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
4981 else
4982   # Is the header compilable?
4983 echo "$as_me:$LINENO: checking sys/mman.h usability" >&5
4984 echo $ECHO_N "checking sys/mman.h usability... $ECHO_C" >&6
4985 cat >conftest.$ac_ext <<_ACEOF
4986 /* confdefs.h.  */
4987 _ACEOF
4988 cat confdefs.h >>conftest.$ac_ext
4989 cat >>conftest.$ac_ext <<_ACEOF
4990 /* end confdefs.h.  */
4991 $ac_includes_default
4992 #include <sys/mman.h>
4993 _ACEOF
4994 rm -f conftest.$ac_objext
4995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4996   (eval $ac_compile) 2>conftest.er1
4997   ac_status=$?
4998   grep -v '^ *+' conftest.er1 >conftest.err
4999   rm -f conftest.er1
5000   cat conftest.err >&5
5001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002   (exit $ac_status); } &&
5003          { ac_try='test -z "$ac_c_werror_flag"
5004                          || test ! -s conftest.err'
5005   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5006   (eval $ac_try) 2>&5
5007   ac_status=$?
5008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009   (exit $ac_status); }; } &&
5010          { ac_try='test -s conftest.$ac_objext'
5011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5012   (eval $ac_try) 2>&5
5013   ac_status=$?
5014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5015   (exit $ac_status); }; }; then
5016   ac_header_compiler=yes
5017 else
5018   echo "$as_me: failed program was:" >&5
5019 sed 's/^/| /' conftest.$ac_ext >&5
5020
5021 ac_header_compiler=no
5022 fi
5023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5024 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5025 echo "${ECHO_T}$ac_header_compiler" >&6
5026
5027 # Is the header present?
5028 echo "$as_me:$LINENO: checking sys/mman.h presence" >&5
5029 echo $ECHO_N "checking sys/mman.h presence... $ECHO_C" >&6
5030 cat >conftest.$ac_ext <<_ACEOF
5031 /* confdefs.h.  */
5032 _ACEOF
5033 cat confdefs.h >>conftest.$ac_ext
5034 cat >>conftest.$ac_ext <<_ACEOF
5035 /* end confdefs.h.  */
5036 #include <sys/mman.h>
5037 _ACEOF
5038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5039   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5040   ac_status=$?
5041   grep -v '^ *+' conftest.er1 >conftest.err
5042   rm -f conftest.er1
5043   cat conftest.err >&5
5044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045   (exit $ac_status); } >/dev/null; then
5046   if test -s conftest.err; then
5047     ac_cpp_err=$ac_c_preproc_warn_flag
5048     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5049   else
5050     ac_cpp_err=
5051   fi
5052 else
5053   ac_cpp_err=yes
5054 fi
5055 if test -z "$ac_cpp_err"; then
5056   ac_header_preproc=yes
5057 else
5058   echo "$as_me: failed program was:" >&5
5059 sed 's/^/| /' conftest.$ac_ext >&5
5060
5061   ac_header_preproc=no
5062 fi
5063 rm -f conftest.err conftest.$ac_ext
5064 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5065 echo "${ECHO_T}$ac_header_preproc" >&6
5066
5067 # So?  What about this header?
5068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5069   yes:no: )
5070     { echo "$as_me:$LINENO: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&5
5071 echo "$as_me: WARNING: sys/mman.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5072     { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the compiler's result" >&5
5073 echo "$as_me: WARNING: sys/mman.h: proceeding with the compiler's result" >&2;}
5074     ac_header_preproc=yes
5075     ;;
5076   no:yes:* )
5077     { echo "$as_me:$LINENO: WARNING: sys/mman.h: present but cannot be compiled" >&5
5078 echo "$as_me: WARNING: sys/mman.h: present but cannot be compiled" >&2;}
5079     { echo "$as_me:$LINENO: WARNING: sys/mman.h:     check for missing prerequisite headers?" >&5
5080 echo "$as_me: WARNING: sys/mman.h:     check for missing prerequisite headers?" >&2;}
5081     { echo "$as_me:$LINENO: WARNING: sys/mman.h: see the Autoconf documentation" >&5
5082 echo "$as_me: WARNING: sys/mman.h: see the Autoconf documentation" >&2;}
5083     { echo "$as_me:$LINENO: WARNING: sys/mman.h:     section \"Present But Cannot Be Compiled\"" >&5
5084 echo "$as_me: WARNING: sys/mman.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5085     { echo "$as_me:$LINENO: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&5
5086 echo "$as_me: WARNING: sys/mman.h: proceeding with the preprocessor's result" >&2;}
5087     { echo "$as_me:$LINENO: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&5
5088 echo "$as_me: WARNING: sys/mman.h: in the future, the compiler will take precedence" >&2;}
5089     (
5090       cat <<\_ASBOX
5091 ## ------------------------------------------- ##
5092 ## Report this to http://gcc.gnu.org/bugs.html ##
5093 ## ------------------------------------------- ##
5094 _ASBOX
5095     ) |
5096       sed "s/^/$as_me: WARNING:     /" >&2
5097     ;;
5098 esac
5099 echo "$as_me:$LINENO: checking for sys/mman.h" >&5
5100 echo $ECHO_N "checking for sys/mman.h... $ECHO_C" >&6
5101 if test "${ac_cv_header_sys_mman_h+set}" = set; then
5102   echo $ECHO_N "(cached) $ECHO_C" >&6
5103 else
5104   ac_cv_header_sys_mman_h=$ac_header_preproc
5105 fi
5106 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mman_h" >&5
5107 echo "${ECHO_T}$ac_cv_header_sys_mman_h" >&6
5108
5109 fi
5110 if test $ac_cv_header_sys_mman_h = yes; then
5111   libffi_header_sys_mman_h=yes
5112 else
5113   libffi_header_sys_mman_h=no
5114 fi
5115
5116
5117 echo "$as_me:$LINENO: checking for mmap" >&5
5118 echo $ECHO_N "checking for mmap... $ECHO_C" >&6
5119 if test "${ac_cv_func_mmap+set}" = set; then
5120   echo $ECHO_N "(cached) $ECHO_C" >&6
5121 else
5122   cat >conftest.$ac_ext <<_ACEOF
5123 /* confdefs.h.  */
5124 _ACEOF
5125 cat confdefs.h >>conftest.$ac_ext
5126 cat >>conftest.$ac_ext <<_ACEOF
5127 /* end confdefs.h.  */
5128 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
5129    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5130 #define mmap innocuous_mmap
5131
5132 /* System header to define __stub macros and hopefully few prototypes,
5133     which can conflict with char mmap (); below.
5134     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5135     <limits.h> exists even on freestanding compilers.  */
5136
5137 #ifdef __STDC__
5138 # include <limits.h>
5139 #else
5140 # include <assert.h>
5141 #endif
5142
5143 #undef mmap
5144
5145 /* Override any gcc2 internal prototype to avoid an error.  */
5146 #ifdef __cplusplus
5147 extern "C"
5148 {
5149 #endif
5150 /* We use char because int might match the return type of a gcc2
5151    builtin and then its argument prototype would still apply.  */
5152 char mmap ();
5153 /* The GNU C library defines this for functions which it implements
5154     to always fail with ENOSYS.  Some functions are actually named
5155     something starting with __ and the normal name is an alias.  */
5156 #if defined (__stub_mmap) || defined (__stub___mmap)
5157 choke me
5158 #else
5159 char (*f) () = mmap;
5160 #endif
5161 #ifdef __cplusplus
5162 }
5163 #endif
5164
5165 int
5166 main ()
5167 {
5168 return f != mmap;
5169   ;
5170   return 0;
5171 }
5172 _ACEOF
5173 rm -f conftest.$ac_objext conftest$ac_exeext
5174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5175   (eval $ac_link) 2>conftest.er1
5176   ac_status=$?
5177   grep -v '^ *+' conftest.er1 >conftest.err
5178   rm -f conftest.er1
5179   cat conftest.err >&5
5180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181   (exit $ac_status); } &&
5182          { ac_try='test -z "$ac_c_werror_flag"
5183                          || test ! -s conftest.err'
5184   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5185   (eval $ac_try) 2>&5
5186   ac_status=$?
5187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188   (exit $ac_status); }; } &&
5189          { ac_try='test -s conftest$ac_exeext'
5190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5191   (eval $ac_try) 2>&5
5192   ac_status=$?
5193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194   (exit $ac_status); }; }; then
5195   ac_cv_func_mmap=yes
5196 else
5197   echo "$as_me: failed program was:" >&5
5198 sed 's/^/| /' conftest.$ac_ext >&5
5199
5200 ac_cv_func_mmap=no
5201 fi
5202 rm -f conftest.err conftest.$ac_objext \
5203       conftest$ac_exeext conftest.$ac_ext
5204 fi
5205 echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
5206 echo "${ECHO_T}$ac_cv_func_mmap" >&6
5207 if test $ac_cv_func_mmap = yes; then
5208   libffi_func_mmap=yes
5209 else
5210   libffi_func_mmap=no
5211 fi
5212
5213 if test "$libffi_header_sys_mman_h" != yes \
5214  || test "$libffi_func_mmap" != yes; then
5215    ac_cv_func_mmap_file=no
5216    ac_cv_func_mmap_dev_zero=no
5217    ac_cv_func_mmap_anon=no
5218 else
5219    echo "$as_me:$LINENO: checking whether read-only mmap of a plain file works" >&5
5220 echo $ECHO_N "checking whether read-only mmap of a plain file works... $ECHO_C" >&6
5221 if test "${ac_cv_func_mmap_file+set}" = set; then
5222   echo $ECHO_N "(cached) $ECHO_C" >&6
5223 else
5224   # Add a system to this blacklist if
5225    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
5226    # memory area containing the same data that you'd get if you applied
5227    # read() to the same fd.  The only system known to have a problem here
5228    # is VMS, where text files have record structure.
5229    case "$host_os" in
5230      vms* | ultrix*)
5231         ac_cv_func_mmap_file=no ;;
5232      *)
5233         ac_cv_func_mmap_file=yes;;
5234    esac
5235 fi
5236 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
5237 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
5238    echo "$as_me:$LINENO: checking whether mmap from /dev/zero works" >&5
5239 echo $ECHO_N "checking whether mmap from /dev/zero works... $ECHO_C" >&6
5240 if test "${ac_cv_func_mmap_dev_zero+set}" = set; then
5241   echo $ECHO_N "(cached) $ECHO_C" >&6
5242 else
5243   # Add a system to this blacklist if it has mmap() but /dev/zero
5244    # does not exist, or if mmapping /dev/zero does not give anonymous
5245    # zeroed pages with both the following properties:
5246    # 1. If you map N consecutive pages in with one call, and then
5247    #    unmap any subset of those pages, the pages that were not
5248    #    explicitly unmapped remain accessible.
5249    # 2. If you map two adjacent blocks of memory and then unmap them
5250    #    both at once, they must both go away.
5251    # Systems known to be in this category are Windows (all variants),
5252    # VMS, and Darwin.
5253    case "$host_os" in
5254      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
5255         ac_cv_func_mmap_dev_zero=no ;;
5256      *)
5257         ac_cv_func_mmap_dev_zero=yes;;
5258    esac
5259 fi
5260 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_dev_zero" >&5
5261 echo "${ECHO_T}$ac_cv_func_mmap_dev_zero" >&6
5262
5263    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
5264    echo "$as_me:$LINENO: checking for MAP_ANON(YMOUS)" >&5
5265 echo $ECHO_N "checking for MAP_ANON(YMOUS)... $ECHO_C" >&6
5266 if test "${ac_cv_decl_map_anon+set}" = set; then
5267   echo $ECHO_N "(cached) $ECHO_C" >&6
5268 else
5269   cat >conftest.$ac_ext <<_ACEOF
5270 /* confdefs.h.  */
5271 _ACEOF
5272 cat confdefs.h >>conftest.$ac_ext
5273 cat >>conftest.$ac_ext <<_ACEOF
5274 /* end confdefs.h.  */
5275 #include <sys/types.h>
5276 #include <sys/mman.h>
5277 #include <unistd.h>
5278
5279 #ifndef MAP_ANONYMOUS
5280 #define MAP_ANONYMOUS MAP_ANON
5281 #endif
5282
5283 int
5284 main ()
5285 {
5286 int n = MAP_ANONYMOUS;
5287   ;
5288   return 0;
5289 }
5290 _ACEOF
5291 rm -f conftest.$ac_objext
5292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5293   (eval $ac_compile) 2>conftest.er1
5294   ac_status=$?
5295   grep -v '^ *+' conftest.er1 >conftest.err
5296   rm -f conftest.er1
5297   cat conftest.err >&5
5298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299   (exit $ac_status); } &&
5300          { ac_try='test -z "$ac_c_werror_flag"
5301                          || test ! -s conftest.err'
5302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5303   (eval $ac_try) 2>&5
5304   ac_status=$?
5305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306   (exit $ac_status); }; } &&
5307          { ac_try='test -s conftest.$ac_objext'
5308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5309   (eval $ac_try) 2>&5
5310   ac_status=$?
5311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312   (exit $ac_status); }; }; then
5313   ac_cv_decl_map_anon=yes
5314 else
5315   echo "$as_me: failed program was:" >&5
5316 sed 's/^/| /' conftest.$ac_ext >&5
5317
5318 ac_cv_decl_map_anon=no
5319 fi
5320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5321 fi
5322 echo "$as_me:$LINENO: result: $ac_cv_decl_map_anon" >&5
5323 echo "${ECHO_T}$ac_cv_decl_map_anon" >&6
5324
5325    if test $ac_cv_decl_map_anon = no; then
5326      ac_cv_func_mmap_anon=no
5327    else
5328      echo "$as_me:$LINENO: checking whether mmap with MAP_ANON(YMOUS) works" >&5
5329 echo $ECHO_N "checking whether mmap with MAP_ANON(YMOUS) works... $ECHO_C" >&6
5330 if test "${ac_cv_func_mmap_anon+set}" = set; then
5331   echo $ECHO_N "(cached) $ECHO_C" >&6
5332 else
5333   # Add a system to this blacklist if it has mmap() and MAP_ANON or
5334    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
5335    # doesn't give anonymous zeroed pages with the same properties listed
5336    # above for use of /dev/zero.
5337    # Systems known to be in this category are Windows, VMS, and SCO Unix.
5338    case "$host_os" in
5339      vms* | cygwin* | pe | mingw* | sco* | udk* )
5340         ac_cv_func_mmap_anon=no ;;
5341      *)
5342         ac_cv_func_mmap_anon=yes;;
5343    esac
5344 fi
5345 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_anon" >&5
5346 echo "${ECHO_T}$ac_cv_func_mmap_anon" >&6
5347    fi
5348 fi
5349
5350 if test $ac_cv_func_mmap_file = yes; then
5351
5352 cat >>confdefs.h <<\_ACEOF
5353 #define HAVE_MMAP_FILE 1
5354 _ACEOF
5355
5356 fi
5357 if test $ac_cv_func_mmap_dev_zero = yes; then
5358
5359 cat >>confdefs.h <<\_ACEOF
5360 #define HAVE_MMAP_DEV_ZERO 1
5361 _ACEOF
5362
5363 fi
5364 if test $ac_cv_func_mmap_anon = yes; then
5365
5366 cat >>confdefs.h <<\_ACEOF
5367 #define HAVE_MMAP_ANON 1
5368 _ACEOF
5369
5370 fi
5371
5372
5373
5374
5375 if test -d $srcdir/testsuite; then
5376   TESTSUBDIR_TRUE=
5377   TESTSUBDIR_FALSE='#'
5378 else
5379   TESTSUBDIR_TRUE='#'
5380   TESTSUBDIR_FALSE=
5381 fi
5382
5383
5384 TARGETDIR="unknown"
5385 case "$host" in
5386   alpha*-*-*)
5387         TARGET=ALPHA; TARGETDIR=alpha;
5388         # Support 128-bit long double, changable via command-line switch.
5389         HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
5390         ;;
5391
5392   arm*-*-*)
5393         TARGET=ARM; TARGETDIR=arm
5394         ;;
5395
5396   cris-*-*)
5397         TARGET=LIBFFI_CRIS; TARGETDIR=cris
5398         ;;
5399
5400   frv-*-*)
5401         TARGET=FRV; TARGETDIR=frv
5402         ;;
5403
5404   hppa*-*-linux* | parisc*-*-linux*)
5405         TARGET=PA_LINUX; TARGETDIR=pa
5406         ;;
5407   hppa*64-*-hpux*)
5408         TARGET=PA64_HPUX; TARGETDIR=pa
5409         ;;
5410   hppa*-*-hpux*)
5411         TARGET=PA_HPUX; TARGETDIR=pa
5412         ;;
5413
5414   i?86-win32* | i?86-*-cygwin* | i?86-*-mingw*)
5415         TARGET=X86_WIN32; TARGETDIR=x86
5416         ;;
5417   i?86-*-darwin*)
5418         TARGET=X86_DARWIN; TARGETDIR=x86
5419         ;;
5420   i?86-*-*)
5421         TARGET=X86; TARGETDIR=x86
5422         ;;
5423
5424   ia64*-*-*)
5425         TARGET=IA64; TARGETDIR=ia64
5426         ;;
5427
5428   m32r*-*-*)
5429         TARGET=M32R; TARGETDIR=m32r
5430         ;;
5431
5432   m68k-*-*)
5433         TARGET=M68K; TARGETDIR=m68k
5434         ;;
5435
5436   mips64*-*)
5437         ;;
5438   mips-sgi-irix5.* | mips-sgi-irix6.*)
5439         TARGET=MIPS_IRIX; TARGETDIR=mips
5440         ;;
5441   mips*-*-linux*)
5442         TARGET=MIPS_LINUX; TARGETDIR=mips
5443         ;;
5444
5445   powerpc*-*-linux* | powerpc-*-sysv*)
5446         TARGET=POWERPC; TARGETDIR=powerpc
5447         ;;
5448   powerpc-*-beos*)
5449         TARGET=POWERPC; TARGETDIR=powerpc
5450         ;;
5451   powerpc-*-darwin*)
5452         TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
5453         ;;
5454   powerpc-*-aix* | rs6000-*-aix*)
5455         TARGET=POWERPC_AIX; TARGETDIR=powerpc
5456         ;;
5457   powerpc-*-freebsd*)
5458         TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
5459         ;;
5460   powerpc*-*-rtems*)
5461         TARGET=POWERPC; TARGETDIR=powerpc
5462         ;;
5463
5464   s390-*-* | s390x-*-*)
5465         TARGET=S390; TARGETDIR=s390
5466         ;;
5467
5468   sh-*-* | sh[34]*-*-*)
5469         TARGET=SH; TARGETDIR=sh
5470         ;;
5471   sh64-*-* | sh5*-*-*)
5472         TARGET=SH64; TARGETDIR=sh64
5473         ;;
5474
5475   sparc*-*-*)
5476         TARGET=SPARC; TARGETDIR=sparc
5477         ;;
5478
5479   x86_64-*-darwin*)
5480         TARGET=X86_DARWIN; TARGETDIR=x86
5481         ;;
5482   x86_64-*-cygwin* | x86_64-*-mingw*)
5483         ;;
5484   x86_64-*-*)
5485         TARGET=X86_64; TARGETDIR=x86
5486         ;;
5487 esac
5488
5489
5490
5491 if test $TARGETDIR = unknown; then
5492   { { echo "$as_me:$LINENO: error: \"libffi has not been ported to $host.\"" >&5
5493 echo "$as_me: error: \"libffi has not been ported to $host.\"" >&2;}
5494    { (exit 1); exit 1; }; }
5495 fi
5496
5497
5498
5499 if test x$TARGET = xMIPS_IRIX; then
5500   MIPS_IRIX_TRUE=
5501   MIPS_IRIX_FALSE='#'
5502 else
5503   MIPS_IRIX_TRUE='#'
5504   MIPS_IRIX_FALSE=
5505 fi
5506
5507
5508
5509 if test x$TARGET = xMIPS_LINUX; then
5510   MIPS_LINUX_TRUE=
5511   MIPS_LINUX_FALSE='#'
5512 else
5513   MIPS_LINUX_TRUE='#'
5514   MIPS_LINUX_FALSE=
5515 fi
5516
5517
5518
5519 if test x$TARGET = xSPARC; then
5520   SPARC_TRUE=
5521   SPARC_FALSE='#'
5522 else
5523   SPARC_TRUE='#'
5524   SPARC_FALSE=
5525 fi
5526
5527
5528
5529 if test x$TARGET = xX86; then
5530   X86_TRUE=
5531   X86_FALSE='#'
5532 else
5533   X86_TRUE='#'
5534   X86_FALSE=
5535 fi
5536
5537
5538
5539 if test x$TARGET = xX86_WIN32; then
5540   X86_WIN32_TRUE=
5541   X86_WIN32_FALSE='#'
5542 else
5543   X86_WIN32_TRUE='#'
5544   X86_WIN32_FALSE=
5545 fi
5546
5547
5548
5549 if test x$TARGET = xX86_DARWIN; then
5550   X86_DARWIN_TRUE=
5551   X86_DARWIN_FALSE='#'
5552 else
5553   X86_DARWIN_TRUE='#'
5554   X86_DARWIN_FALSE=
5555 fi
5556
5557
5558
5559 if test x$TARGET = xALPHA; then
5560   ALPHA_TRUE=
5561   ALPHA_FALSE='#'
5562 else
5563   ALPHA_TRUE='#'
5564   ALPHA_FALSE=
5565 fi
5566
5567
5568
5569 if test x$TARGET = xIA64; then
5570   IA64_TRUE=
5571   IA64_FALSE='#'
5572 else
5573   IA64_TRUE='#'
5574   IA64_FALSE=
5575 fi
5576
5577
5578
5579 if test x$TARGET = xM32R; then
5580   M32R_TRUE=
5581   M32R_FALSE='#'
5582 else
5583   M32R_TRUE='#'
5584   M32R_FALSE=
5585 fi
5586
5587
5588
5589 if test x$TARGET = xM68K; then
5590   M68K_TRUE=
5591   M68K_FALSE='#'
5592 else
5593   M68K_TRUE='#'
5594   M68K_FALSE=
5595 fi
5596
5597
5598
5599 if test x$TARGET = xPOWERPC; then
5600   POWERPC_TRUE=
5601   POWERPC_FALSE='#'
5602 else
5603   POWERPC_TRUE='#'
5604   POWERPC_FALSE=
5605 fi
5606
5607
5608
5609 if test x$TARGET = xPOWERPC_AIX; then
5610   POWERPC_AIX_TRUE=
5611   POWERPC_AIX_FALSE='#'
5612 else
5613   POWERPC_AIX_TRUE='#'
5614   POWERPC_AIX_FALSE=
5615 fi
5616
5617
5618
5619 if test x$TARGET = xPOWERPC_DARWIN; then
5620   POWERPC_DARWIN_TRUE=
5621   POWERPC_DARWIN_FALSE='#'
5622 else
5623   POWERPC_DARWIN_TRUE='#'
5624   POWERPC_DARWIN_FALSE=
5625 fi
5626
5627
5628
5629 if test x$TARGET = xPOWERPC_FREEBSD; then
5630   POWERPC_FREEBSD_TRUE=
5631   POWERPC_FREEBSD_FALSE='#'
5632 else
5633   POWERPC_FREEBSD_TRUE='#'
5634   POWERPC_FREEBSD_FALSE=
5635 fi
5636
5637
5638
5639 if test x$TARGET = xARM; then
5640   ARM_TRUE=
5641   ARM_FALSE='#'
5642 else
5643   ARM_TRUE='#'
5644   ARM_FALSE=
5645 fi
5646
5647
5648
5649 if test x$TARGET = xLIBFFI_CRIS; then
5650   LIBFFI_CRIS_TRUE=
5651   LIBFFI_CRIS_FALSE='#'
5652 else
5653   LIBFFI_CRIS_TRUE='#'
5654   LIBFFI_CRIS_FALSE=
5655 fi
5656
5657
5658
5659 if test x$TARGET = xFRV; then
5660   FRV_TRUE=
5661   FRV_FALSE='#'
5662 else
5663   FRV_TRUE='#'
5664   FRV_FALSE=
5665 fi
5666
5667
5668
5669 if test x$TARGET = xS390; then
5670   S390_TRUE=
5671   S390_FALSE='#'
5672 else
5673   S390_TRUE='#'
5674   S390_FALSE=
5675 fi
5676
5677
5678
5679 if test x$TARGET = xX86_64; then
5680   X86_64_TRUE=
5681   X86_64_FALSE='#'
5682 else
5683   X86_64_TRUE='#'
5684   X86_64_FALSE=
5685 fi
5686
5687
5688
5689 if test x$TARGET = xSH; then
5690   SH_TRUE=
5691   SH_FALSE='#'
5692 else
5693   SH_TRUE='#'
5694   SH_FALSE=
5695 fi
5696
5697
5698
5699 if test x$TARGET = xSH64; then
5700   SH64_TRUE=
5701   SH64_FALSE='#'
5702 else
5703   SH64_TRUE='#'
5704   SH64_FALSE=
5705 fi
5706
5707
5708
5709 if test x$TARGET = xPA_LINUX; then
5710   PA_LINUX_TRUE=
5711   PA_LINUX_FALSE='#'
5712 else
5713   PA_LINUX_TRUE='#'
5714   PA_LINUX_FALSE=
5715 fi
5716
5717
5718
5719 if test x$TARGET = xPA_HPUX; then
5720   PA_HPUX_TRUE=
5721   PA_HPUX_FALSE='#'
5722 else
5723   PA_HPUX_TRUE='#'
5724   PA_HPUX_FALSE=
5725 fi
5726
5727
5728
5729 if test x$TARGET = xPA64_HPUX; then
5730   PA64_HPUX_TRUE=
5731   PA64_HPUX_FALSE='#'
5732 else
5733   PA64_HPUX_TRUE='#'
5734   PA64_HPUX_FALSE=
5735 fi
5736
5737
5738 case x$TARGET in
5739   xMIPS*) TARGET=MIPS ;;
5740   *) ;;
5741 esac
5742
5743 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5744 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5745 if test "${ac_cv_header_stdc+set}" = set; then
5746   echo $ECHO_N "(cached) $ECHO_C" >&6
5747 else
5748   cat >conftest.$ac_ext <<_ACEOF
5749 /* confdefs.h.  */
5750 _ACEOF
5751 cat confdefs.h >>conftest.$ac_ext
5752 cat >>conftest.$ac_ext <<_ACEOF
5753 /* end confdefs.h.  */
5754 #include <stdlib.h>
5755 #include <stdarg.h>
5756 #include <string.h>
5757 #include <float.h>
5758
5759 int
5760 main ()
5761 {
5762
5763   ;
5764   return 0;
5765 }
5766 _ACEOF
5767 rm -f conftest.$ac_objext
5768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5769   (eval $ac_compile) 2>conftest.er1
5770   ac_status=$?
5771   grep -v '^ *+' conftest.er1 >conftest.err
5772   rm -f conftest.er1
5773   cat conftest.err >&5
5774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775   (exit $ac_status); } &&
5776          { ac_try='test -z "$ac_c_werror_flag"
5777                          || test ! -s conftest.err'
5778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5779   (eval $ac_try) 2>&5
5780   ac_status=$?
5781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782   (exit $ac_status); }; } &&
5783          { ac_try='test -s conftest.$ac_objext'
5784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5785   (eval $ac_try) 2>&5
5786   ac_status=$?
5787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788   (exit $ac_status); }; }; then
5789   ac_cv_header_stdc=yes
5790 else
5791   echo "$as_me: failed program was:" >&5
5792 sed 's/^/| /' conftest.$ac_ext >&5
5793
5794 ac_cv_header_stdc=no
5795 fi
5796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5797
5798 if test $ac_cv_header_stdc = yes; then
5799   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5800   cat >conftest.$ac_ext <<_ACEOF
5801 /* confdefs.h.  */
5802 _ACEOF
5803 cat confdefs.h >>conftest.$ac_ext
5804 cat >>conftest.$ac_ext <<_ACEOF
5805 /* end confdefs.h.  */
5806 #include <string.h>
5807
5808 _ACEOF
5809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5810   $EGREP "memchr" >/dev/null 2>&1; then
5811   :
5812 else
5813   ac_cv_header_stdc=no
5814 fi
5815 rm -f conftest*
5816
5817 fi
5818
5819 if test $ac_cv_header_stdc = yes; then
5820   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5821   cat >conftest.$ac_ext <<_ACEOF
5822 /* confdefs.h.  */
5823 _ACEOF
5824 cat confdefs.h >>conftest.$ac_ext
5825 cat >>conftest.$ac_ext <<_ACEOF
5826 /* end confdefs.h.  */
5827 #include <stdlib.h>
5828
5829 _ACEOF
5830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5831   $EGREP "free" >/dev/null 2>&1; then
5832   :
5833 else
5834   ac_cv_header_stdc=no
5835 fi
5836 rm -f conftest*
5837
5838 fi
5839
5840 if test $ac_cv_header_stdc = yes; then
5841   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5842   if test "$cross_compiling" = yes; then
5843   :
5844 else
5845   cat >conftest.$ac_ext <<_ACEOF
5846 /* confdefs.h.  */
5847 _ACEOF
5848 cat confdefs.h >>conftest.$ac_ext
5849 cat >>conftest.$ac_ext <<_ACEOF
5850 /* end confdefs.h.  */
5851 #include <ctype.h>
5852 #if ((' ' & 0x0FF) == 0x020)
5853 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5854 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5855 #else
5856 # define ISLOWER(c) \
5857                    (('a' <= (c) && (c) <= 'i') \
5858                      || ('j' <= (c) && (c) <= 'r') \
5859                      || ('s' <= (c) && (c) <= 'z'))
5860 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5861 #endif
5862
5863 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5864 int
5865 main ()
5866 {
5867   int i;
5868   for (i = 0; i < 256; i++)
5869     if (XOR (islower (i), ISLOWER (i))
5870         || toupper (i) != TOUPPER (i))
5871       exit(2);
5872   exit (0);
5873 }
5874 _ACEOF
5875 rm -f conftest$ac_exeext
5876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5877   (eval $ac_link) 2>&5
5878   ac_status=$?
5879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5882   (eval $ac_try) 2>&5
5883   ac_status=$?
5884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5885   (exit $ac_status); }; }; then
5886   :
5887 else
5888   echo "$as_me: program exited with status $ac_status" >&5
5889 echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.$ac_ext >&5
5891
5892 ( exit $ac_status )
5893 ac_cv_header_stdc=no
5894 fi
5895 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5896 fi
5897 fi
5898 fi
5899 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5900 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5901 if test $ac_cv_header_stdc = yes; then
5902
5903 cat >>confdefs.h <<\_ACEOF
5904 #define STDC_HEADERS 1
5905 _ACEOF
5906
5907 fi
5908
5909
5910 for ac_func in memcpy
5911 do
5912 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5913 echo "$as_me:$LINENO: checking for $ac_func" >&5
5914 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5915 if eval "test \"\${$as_ac_var+set}\" = set"; then
5916   echo $ECHO_N "(cached) $ECHO_C" >&6
5917 else
5918   cat >conftest.$ac_ext <<_ACEOF
5919 /* confdefs.h.  */
5920 _ACEOF
5921 cat confdefs.h >>conftest.$ac_ext
5922 cat >>conftest.$ac_ext <<_ACEOF
5923 /* end confdefs.h.  */
5924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5925    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5926 #define $ac_func innocuous_$ac_func
5927
5928 /* System header to define __stub macros and hopefully few prototypes,
5929     which can conflict with char $ac_func (); below.
5930     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5931     <limits.h> exists even on freestanding compilers.  */
5932
5933 #ifdef __STDC__
5934 # include <limits.h>
5935 #else
5936 # include <assert.h>
5937 #endif
5938
5939 #undef $ac_func
5940
5941 /* Override any gcc2 internal prototype to avoid an error.  */
5942 #ifdef __cplusplus
5943 extern "C"
5944 {
5945 #endif
5946 /* We use char because int might match the return type of a gcc2
5947    builtin and then its argument prototype would still apply.  */
5948 char $ac_func ();
5949 /* The GNU C library defines this for functions which it implements
5950     to always fail with ENOSYS.  Some functions are actually named
5951     something starting with __ and the normal name is an alias.  */
5952 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5953 choke me
5954 #else
5955 char (*f) () = $ac_func;
5956 #endif
5957 #ifdef __cplusplus
5958 }
5959 #endif
5960
5961 int
5962 main ()
5963 {
5964 return f != $ac_func;
5965   ;
5966   return 0;
5967 }
5968 _ACEOF
5969 rm -f conftest.$ac_objext conftest$ac_exeext
5970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5971   (eval $ac_link) 2>conftest.er1
5972   ac_status=$?
5973   grep -v '^ *+' conftest.er1 >conftest.err
5974   rm -f conftest.er1
5975   cat conftest.err >&5
5976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977   (exit $ac_status); } &&
5978          { ac_try='test -z "$ac_c_werror_flag"
5979                          || test ! -s conftest.err'
5980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5981   (eval $ac_try) 2>&5
5982   ac_status=$?
5983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984   (exit $ac_status); }; } &&
5985          { ac_try='test -s conftest$ac_exeext'
5986   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5987   (eval $ac_try) 2>&5
5988   ac_status=$?
5989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990   (exit $ac_status); }; }; then
5991   eval "$as_ac_var=yes"
5992 else
5993   echo "$as_me: failed program was:" >&5
5994 sed 's/^/| /' conftest.$ac_ext >&5
5995
5996 eval "$as_ac_var=no"
5997 fi
5998 rm -f conftest.err conftest.$ac_objext \
5999       conftest$ac_exeext conftest.$ac_ext
6000 fi
6001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6002 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6003 if test `eval echo '${'$as_ac_var'}'` = yes; then
6004   cat >>confdefs.h <<_ACEOF
6005 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6006 _ACEOF
6007
6008 fi
6009 done
6010
6011 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6012 # for constant arguments.  Useless!
6013 echo "$as_me:$LINENO: checking for working alloca.h" >&5
6014 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
6015 if test "${ac_cv_working_alloca_h+set}" = set; then
6016   echo $ECHO_N "(cached) $ECHO_C" >&6
6017 else
6018   cat >conftest.$ac_ext <<_ACEOF
6019 /* confdefs.h.  */
6020 _ACEOF
6021 cat confdefs.h >>conftest.$ac_ext
6022 cat >>conftest.$ac_ext <<_ACEOF
6023 /* end confdefs.h.  */
6024 #include <alloca.h>
6025 int
6026 main ()
6027 {
6028 char *p = (char *) alloca (2 * sizeof (int));
6029   ;
6030   return 0;
6031 }
6032 _ACEOF
6033 rm -f conftest.$ac_objext conftest$ac_exeext
6034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6035   (eval $ac_link) 2>conftest.er1
6036   ac_status=$?
6037   grep -v '^ *+' conftest.er1 >conftest.err
6038   rm -f conftest.er1
6039   cat conftest.err >&5
6040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041   (exit $ac_status); } &&
6042          { ac_try='test -z "$ac_c_werror_flag"
6043                          || test ! -s conftest.err'
6044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6045   (eval $ac_try) 2>&5
6046   ac_status=$?
6047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048   (exit $ac_status); }; } &&
6049          { ac_try='test -s conftest$ac_exeext'
6050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6051   (eval $ac_try) 2>&5
6052   ac_status=$?
6053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054   (exit $ac_status); }; }; then
6055   ac_cv_working_alloca_h=yes
6056 else
6057   echo "$as_me: failed program was:" >&5
6058 sed 's/^/| /' conftest.$ac_ext >&5
6059
6060 ac_cv_working_alloca_h=no
6061 fi
6062 rm -f conftest.err conftest.$ac_objext \
6063       conftest$ac_exeext conftest.$ac_ext
6064 fi
6065 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6066 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
6067 if test $ac_cv_working_alloca_h = yes; then
6068
6069 cat >>confdefs.h <<\_ACEOF
6070 #define HAVE_ALLOCA_H 1
6071 _ACEOF
6072
6073 fi
6074
6075 echo "$as_me:$LINENO: checking for alloca" >&5
6076 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
6077 if test "${ac_cv_func_alloca_works+set}" = set; then
6078   echo $ECHO_N "(cached) $ECHO_C" >&6
6079 else
6080   cat >conftest.$ac_ext <<_ACEOF
6081 /* confdefs.h.  */
6082 _ACEOF
6083 cat confdefs.h >>conftest.$ac_ext
6084 cat >>conftest.$ac_ext <<_ACEOF
6085 /* end confdefs.h.  */
6086 #ifdef __GNUC__
6087 # define alloca __builtin_alloca
6088 #else
6089 # ifdef _MSC_VER
6090 #  include <malloc.h>
6091 #  define alloca _alloca
6092 # else
6093 #  if HAVE_ALLOCA_H
6094 #   include <alloca.h>
6095 #  else
6096 #   ifdef _AIX
6097  #pragma alloca
6098 #   else
6099 #    ifndef alloca /* predefined by HP cc +Olibcalls */
6100 char *alloca ();
6101 #    endif
6102 #   endif
6103 #  endif
6104 # endif
6105 #endif
6106
6107 int
6108 main ()
6109 {
6110 char *p = (char *) alloca (1);
6111   ;
6112   return 0;
6113 }
6114 _ACEOF
6115 rm -f conftest.$ac_objext conftest$ac_exeext
6116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6117   (eval $ac_link) 2>conftest.er1
6118   ac_status=$?
6119   grep -v '^ *+' conftest.er1 >conftest.err
6120   rm -f conftest.er1
6121   cat conftest.err >&5
6122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123   (exit $ac_status); } &&
6124          { ac_try='test -z "$ac_c_werror_flag"
6125                          || test ! -s conftest.err'
6126   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6127   (eval $ac_try) 2>&5
6128   ac_status=$?
6129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130   (exit $ac_status); }; } &&
6131          { ac_try='test -s conftest$ac_exeext'
6132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6133   (eval $ac_try) 2>&5
6134   ac_status=$?
6135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136   (exit $ac_status); }; }; then
6137   ac_cv_func_alloca_works=yes
6138 else
6139   echo "$as_me: failed program was:" >&5
6140 sed 's/^/| /' conftest.$ac_ext >&5
6141
6142 ac_cv_func_alloca_works=no
6143 fi
6144 rm -f conftest.err conftest.$ac_objext \
6145       conftest$ac_exeext conftest.$ac_ext
6146 fi
6147 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6148 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
6149
6150 if test $ac_cv_func_alloca_works = yes; then
6151
6152 cat >>confdefs.h <<\_ACEOF
6153 #define HAVE_ALLOCA 1
6154 _ACEOF
6155
6156 else
6157   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6158 # that cause trouble.  Some versions do not even contain alloca or
6159 # contain a buggy version.  If you still want to use their alloca,
6160 # use ar to extract alloca.o from them instead of compiling alloca.c.
6161
6162 ALLOCA=alloca.$ac_objext
6163
6164 cat >>confdefs.h <<\_ACEOF
6165 #define C_ALLOCA 1
6166 _ACEOF
6167
6168
6169 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6170 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
6171 if test "${ac_cv_os_cray+set}" = set; then
6172   echo $ECHO_N "(cached) $ECHO_C" >&6
6173 else
6174   cat >conftest.$ac_ext <<_ACEOF
6175 /* confdefs.h.  */
6176 _ACEOF
6177 cat confdefs.h >>conftest.$ac_ext
6178 cat >>conftest.$ac_ext <<_ACEOF
6179 /* end confdefs.h.  */
6180 #if defined(CRAY) && ! defined(CRAY2)
6181 webecray
6182 #else
6183 wenotbecray
6184 #endif
6185
6186 _ACEOF
6187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6188   $EGREP "webecray" >/dev/null 2>&1; then
6189   ac_cv_os_cray=yes
6190 else
6191   ac_cv_os_cray=no
6192 fi
6193 rm -f conftest*
6194
6195 fi
6196 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6197 echo "${ECHO_T}$ac_cv_os_cray" >&6
6198 if test $ac_cv_os_cray = yes; then
6199   for ac_func in _getb67 GETB67 getb67; do
6200     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6201 echo "$as_me:$LINENO: checking for $ac_func" >&5
6202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6203 if eval "test \"\${$as_ac_var+set}\" = set"; then
6204   echo $ECHO_N "(cached) $ECHO_C" >&6
6205 else
6206   cat >conftest.$ac_ext <<_ACEOF
6207 /* confdefs.h.  */
6208 _ACEOF
6209 cat confdefs.h >>conftest.$ac_ext
6210 cat >>conftest.$ac_ext <<_ACEOF
6211 /* end confdefs.h.  */
6212 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6213    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6214 #define $ac_func innocuous_$ac_func
6215
6216 /* System header to define __stub macros and hopefully few prototypes,
6217     which can conflict with char $ac_func (); below.
6218     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6219     <limits.h> exists even on freestanding compilers.  */
6220
6221 #ifdef __STDC__
6222 # include <limits.h>
6223 #else
6224 # include <assert.h>
6225 #endif
6226
6227 #undef $ac_func
6228
6229 /* Override any gcc2 internal prototype to avoid an error.  */
6230 #ifdef __cplusplus
6231 extern "C"
6232 {
6233 #endif
6234 /* We use char because int might match the return type of a gcc2
6235    builtin and then its argument prototype would still apply.  */
6236 char $ac_func ();
6237 /* The GNU C library defines this for functions which it implements
6238     to always fail with ENOSYS.  Some functions are actually named
6239     something starting with __ and the normal name is an alias.  */
6240 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6241 choke me
6242 #else
6243 char (*f) () = $ac_func;
6244 #endif
6245 #ifdef __cplusplus
6246 }
6247 #endif
6248
6249 int
6250 main ()
6251 {
6252 return f != $ac_func;
6253   ;
6254   return 0;
6255 }
6256 _ACEOF
6257 rm -f conftest.$ac_objext conftest$ac_exeext
6258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6259   (eval $ac_link) 2>conftest.er1
6260   ac_status=$?
6261   grep -v '^ *+' conftest.er1 >conftest.err
6262   rm -f conftest.er1
6263   cat conftest.err >&5
6264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265   (exit $ac_status); } &&
6266          { ac_try='test -z "$ac_c_werror_flag"
6267                          || test ! -s conftest.err'
6268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6269   (eval $ac_try) 2>&5
6270   ac_status=$?
6271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272   (exit $ac_status); }; } &&
6273          { ac_try='test -s conftest$ac_exeext'
6274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6275   (eval $ac_try) 2>&5
6276   ac_status=$?
6277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278   (exit $ac_status); }; }; then
6279   eval "$as_ac_var=yes"
6280 else
6281   echo "$as_me: failed program was:" >&5
6282 sed 's/^/| /' conftest.$ac_ext >&5
6283
6284 eval "$as_ac_var=no"
6285 fi
6286 rm -f conftest.err conftest.$ac_objext \
6287       conftest$ac_exeext conftest.$ac_ext
6288 fi
6289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6290 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6291 if test `eval echo '${'$as_ac_var'}'` = yes; then
6292
6293 cat >>confdefs.h <<_ACEOF
6294 #define CRAY_STACKSEG_END $ac_func
6295 _ACEOF
6296
6297     break
6298 fi
6299
6300   done
6301 fi
6302
6303 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6304 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
6305 if test "${ac_cv_c_stack_direction+set}" = set; then
6306   echo $ECHO_N "(cached) $ECHO_C" >&6
6307 else
6308   if test "$cross_compiling" = yes; then
6309   ac_cv_c_stack_direction=0
6310 else
6311   cat >conftest.$ac_ext <<_ACEOF
6312 /* confdefs.h.  */
6313 _ACEOF
6314 cat confdefs.h >>conftest.$ac_ext
6315 cat >>conftest.$ac_ext <<_ACEOF
6316 /* end confdefs.h.  */
6317 int
6318 find_stack_direction ()
6319 {
6320   static char *addr = 0;
6321   auto char dummy;
6322   if (addr == 0)
6323     {
6324       addr = &dummy;
6325       return find_stack_direction ();
6326     }
6327   else
6328     return (&dummy > addr) ? 1 : -1;
6329 }
6330
6331 int
6332 main ()
6333 {
6334   exit (find_stack_direction () < 0);
6335 }
6336 _ACEOF
6337 rm -f conftest$ac_exeext
6338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6339   (eval $ac_link) 2>&5
6340   ac_status=$?
6341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6344   (eval $ac_try) 2>&5
6345   ac_status=$?
6346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347   (exit $ac_status); }; }; then
6348   ac_cv_c_stack_direction=1
6349 else
6350   echo "$as_me: program exited with status $ac_status" >&5
6351 echo "$as_me: failed program was:" >&5
6352 sed 's/^/| /' conftest.$ac_ext >&5
6353
6354 ( exit $ac_status )
6355 ac_cv_c_stack_direction=-1
6356 fi
6357 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6358 fi
6359 fi
6360 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6361 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
6362
6363 cat >>confdefs.h <<_ACEOF
6364 #define STACK_DIRECTION $ac_cv_c_stack_direction
6365 _ACEOF
6366
6367
6368 fi
6369
6370
6371 echo "$as_me:$LINENO: checking for double" >&5
6372 echo $ECHO_N "checking for double... $ECHO_C" >&6
6373 if test "${ac_cv_type_double+set}" = set; then
6374   echo $ECHO_N "(cached) $ECHO_C" >&6
6375 else
6376   cat >conftest.$ac_ext <<_ACEOF
6377 /* confdefs.h.  */
6378 _ACEOF
6379 cat confdefs.h >>conftest.$ac_ext
6380 cat >>conftest.$ac_ext <<_ACEOF
6381 /* end confdefs.h.  */
6382 $ac_includes_default
6383 int
6384 main ()
6385 {
6386 if ((double *) 0)
6387   return 0;
6388 if (sizeof (double))
6389   return 0;
6390   ;
6391   return 0;
6392 }
6393 _ACEOF
6394 rm -f conftest.$ac_objext
6395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6396   (eval $ac_compile) 2>conftest.er1
6397   ac_status=$?
6398   grep -v '^ *+' conftest.er1 >conftest.err
6399   rm -f conftest.er1
6400   cat conftest.err >&5
6401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402   (exit $ac_status); } &&
6403          { ac_try='test -z "$ac_c_werror_flag"
6404                          || test ! -s conftest.err'
6405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6406   (eval $ac_try) 2>&5
6407   ac_status=$?
6408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409   (exit $ac_status); }; } &&
6410          { ac_try='test -s conftest.$ac_objext'
6411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6412   (eval $ac_try) 2>&5
6413   ac_status=$?
6414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415   (exit $ac_status); }; }; then
6416   ac_cv_type_double=yes
6417 else
6418   echo "$as_me: failed program was:" >&5
6419 sed 's/^/| /' conftest.$ac_ext >&5
6420
6421 ac_cv_type_double=no
6422 fi
6423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6424 fi
6425 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
6426 echo "${ECHO_T}$ac_cv_type_double" >&6
6427
6428 echo "$as_me:$LINENO: checking size of double" >&5
6429 echo $ECHO_N "checking size of double... $ECHO_C" >&6
6430 if test "${ac_cv_sizeof_double+set}" = set; then
6431   echo $ECHO_N "(cached) $ECHO_C" >&6
6432 else
6433   if test "$ac_cv_type_double" = yes; then
6434   # The cast to unsigned long works around a bug in the HP C Compiler
6435   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6436   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6437   # This bug is HP SR number 8606223364.
6438   if test "$cross_compiling" = yes; then
6439   # Depending upon the size, compute the lo and hi bounds.
6440 cat >conftest.$ac_ext <<_ACEOF
6441 /* confdefs.h.  */
6442 _ACEOF
6443 cat confdefs.h >>conftest.$ac_ext
6444 cat >>conftest.$ac_ext <<_ACEOF
6445 /* end confdefs.h.  */
6446 $ac_includes_default
6447 int
6448 main ()
6449 {
6450 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
6451 test_array [0] = 0
6452
6453   ;
6454   return 0;
6455 }
6456 _ACEOF
6457 rm -f conftest.$ac_objext
6458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6459   (eval $ac_compile) 2>conftest.er1
6460   ac_status=$?
6461   grep -v '^ *+' conftest.er1 >conftest.err
6462   rm -f conftest.er1
6463   cat conftest.err >&5
6464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465   (exit $ac_status); } &&
6466          { ac_try='test -z "$ac_c_werror_flag"
6467                          || test ! -s conftest.err'
6468   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6469   (eval $ac_try) 2>&5
6470   ac_status=$?
6471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472   (exit $ac_status); }; } &&
6473          { ac_try='test -s conftest.$ac_objext'
6474   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6475   (eval $ac_try) 2>&5
6476   ac_status=$?
6477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478   (exit $ac_status); }; }; then
6479   ac_lo=0 ac_mid=0
6480   while :; do
6481     cat >conftest.$ac_ext <<_ACEOF
6482 /* confdefs.h.  */
6483 _ACEOF
6484 cat confdefs.h >>conftest.$ac_ext
6485 cat >>conftest.$ac_ext <<_ACEOF
6486 /* end confdefs.h.  */
6487 $ac_includes_default
6488 int
6489 main ()
6490 {
6491 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
6492 test_array [0] = 0
6493
6494   ;
6495   return 0;
6496 }
6497 _ACEOF
6498 rm -f conftest.$ac_objext
6499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6500   (eval $ac_compile) 2>conftest.er1
6501   ac_status=$?
6502   grep -v '^ *+' conftest.er1 >conftest.err
6503   rm -f conftest.er1
6504   cat conftest.err >&5
6505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506   (exit $ac_status); } &&
6507          { ac_try='test -z "$ac_c_werror_flag"
6508                          || test ! -s conftest.err'
6509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6510   (eval $ac_try) 2>&5
6511   ac_status=$?
6512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513   (exit $ac_status); }; } &&
6514          { ac_try='test -s conftest.$ac_objext'
6515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6516   (eval $ac_try) 2>&5
6517   ac_status=$?
6518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519   (exit $ac_status); }; }; then
6520   ac_hi=$ac_mid; break
6521 else
6522   echo "$as_me: failed program was:" >&5
6523 sed 's/^/| /' conftest.$ac_ext >&5
6524
6525 ac_lo=`expr $ac_mid + 1`
6526                     if test $ac_lo -le $ac_mid; then
6527                       ac_lo= ac_hi=
6528                       break
6529                     fi
6530                     ac_mid=`expr 2 '*' $ac_mid + 1`
6531 fi
6532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6533   done
6534 else
6535   echo "$as_me: failed program was:" >&5
6536 sed 's/^/| /' conftest.$ac_ext >&5
6537
6538 cat >conftest.$ac_ext <<_ACEOF
6539 /* confdefs.h.  */
6540 _ACEOF
6541 cat confdefs.h >>conftest.$ac_ext
6542 cat >>conftest.$ac_ext <<_ACEOF
6543 /* end confdefs.h.  */
6544 $ac_includes_default
6545 int
6546 main ()
6547 {
6548 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
6549 test_array [0] = 0
6550
6551   ;
6552   return 0;
6553 }
6554 _ACEOF
6555 rm -f conftest.$ac_objext
6556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6557   (eval $ac_compile) 2>conftest.er1
6558   ac_status=$?
6559   grep -v '^ *+' conftest.er1 >conftest.err
6560   rm -f conftest.er1
6561   cat conftest.err >&5
6562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563   (exit $ac_status); } &&
6564          { ac_try='test -z "$ac_c_werror_flag"
6565                          || test ! -s conftest.err'
6566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6567   (eval $ac_try) 2>&5
6568   ac_status=$?
6569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570   (exit $ac_status); }; } &&
6571          { ac_try='test -s conftest.$ac_objext'
6572   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6573   (eval $ac_try) 2>&5
6574   ac_status=$?
6575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576   (exit $ac_status); }; }; then
6577   ac_hi=-1 ac_mid=-1
6578   while :; do
6579     cat >conftest.$ac_ext <<_ACEOF
6580 /* confdefs.h.  */
6581 _ACEOF
6582 cat confdefs.h >>conftest.$ac_ext
6583 cat >>conftest.$ac_ext <<_ACEOF
6584 /* end confdefs.h.  */
6585 $ac_includes_default
6586 int
6587 main ()
6588 {
6589 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
6590 test_array [0] = 0
6591
6592   ;
6593   return 0;
6594 }
6595 _ACEOF
6596 rm -f conftest.$ac_objext
6597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6598   (eval $ac_compile) 2>conftest.er1
6599   ac_status=$?
6600   grep -v '^ *+' conftest.er1 >conftest.err
6601   rm -f conftest.er1
6602   cat conftest.err >&5
6603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604   (exit $ac_status); } &&
6605          { ac_try='test -z "$ac_c_werror_flag"
6606                          || test ! -s conftest.err'
6607   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6608   (eval $ac_try) 2>&5
6609   ac_status=$?
6610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6611   (exit $ac_status); }; } &&
6612          { ac_try='test -s conftest.$ac_objext'
6613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6614   (eval $ac_try) 2>&5
6615   ac_status=$?
6616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617   (exit $ac_status); }; }; then
6618   ac_lo=$ac_mid; break
6619 else
6620   echo "$as_me: failed program was:" >&5
6621 sed 's/^/| /' conftest.$ac_ext >&5
6622
6623 ac_hi=`expr '(' $ac_mid ')' - 1`
6624                        if test $ac_mid -le $ac_hi; then
6625                          ac_lo= ac_hi=
6626                          break
6627                        fi
6628                        ac_mid=`expr 2 '*' $ac_mid`
6629 fi
6630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6631   done
6632 else
6633   echo "$as_me: failed program was:" >&5
6634 sed 's/^/| /' conftest.$ac_ext >&5
6635
6636 ac_lo= ac_hi=
6637 fi
6638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6639 fi
6640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6641 # Binary search between lo and hi bounds.
6642 while test "x$ac_lo" != "x$ac_hi"; do
6643   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6644   cat >conftest.$ac_ext <<_ACEOF
6645 /* confdefs.h.  */
6646 _ACEOF
6647 cat confdefs.h >>conftest.$ac_ext
6648 cat >>conftest.$ac_ext <<_ACEOF
6649 /* end confdefs.h.  */
6650 $ac_includes_default
6651 int
6652 main ()
6653 {
6654 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
6655 test_array [0] = 0
6656
6657   ;
6658   return 0;
6659 }
6660 _ACEOF
6661 rm -f conftest.$ac_objext
6662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6663   (eval $ac_compile) 2>conftest.er1
6664   ac_status=$?
6665   grep -v '^ *+' conftest.er1 >conftest.err
6666   rm -f conftest.er1
6667   cat conftest.err >&5
6668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669   (exit $ac_status); } &&
6670          { ac_try='test -z "$ac_c_werror_flag"
6671                          || test ! -s conftest.err'
6672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6673   (eval $ac_try) 2>&5
6674   ac_status=$?
6675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676   (exit $ac_status); }; } &&
6677          { ac_try='test -s conftest.$ac_objext'
6678   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6679   (eval $ac_try) 2>&5
6680   ac_status=$?
6681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682   (exit $ac_status); }; }; then
6683   ac_hi=$ac_mid
6684 else
6685   echo "$as_me: failed program was:" >&5
6686 sed 's/^/| /' conftest.$ac_ext >&5
6687
6688 ac_lo=`expr '(' $ac_mid ')' + 1`
6689 fi
6690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6691 done
6692 case $ac_lo in
6693 ?*) ac_cv_sizeof_double=$ac_lo;;
6694 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
6695 See \`config.log' for more details." >&5
6696 echo "$as_me: error: cannot compute sizeof (double), 77
6697 See \`config.log' for more details." >&2;}
6698    { (exit 1); exit 1; }; } ;;
6699 esac
6700 else
6701   if test "$cross_compiling" = yes; then
6702   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6703 See \`config.log' for more details." >&5
6704 echo "$as_me: error: cannot run test program while cross compiling
6705 See \`config.log' for more details." >&2;}
6706    { (exit 1); exit 1; }; }
6707 else
6708   cat >conftest.$ac_ext <<_ACEOF
6709 /* confdefs.h.  */
6710 _ACEOF
6711 cat confdefs.h >>conftest.$ac_ext
6712 cat >>conftest.$ac_ext <<_ACEOF
6713 /* end confdefs.h.  */
6714 $ac_includes_default
6715 long longval () { return (long) (sizeof (double)); }
6716 unsigned long ulongval () { return (long) (sizeof (double)); }
6717 #include <stdio.h>
6718 #include <stdlib.h>
6719 int
6720 main ()
6721 {
6722
6723   FILE *f = fopen ("conftest.val", "w");
6724   if (! f)
6725     exit (1);
6726   if (((long) (sizeof (double))) < 0)
6727     {
6728       long i = longval ();
6729       if (i != ((long) (sizeof (double))))
6730         exit (1);
6731       fprintf (f, "%ld\n", i);
6732     }
6733   else
6734     {
6735       unsigned long i = ulongval ();
6736       if (i != ((long) (sizeof (double))))
6737         exit (1);
6738       fprintf (f, "%lu\n", i);
6739     }
6740   exit (ferror (f) || fclose (f) != 0);
6741
6742   ;
6743   return 0;
6744 }
6745 _ACEOF
6746 rm -f conftest$ac_exeext
6747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6748   (eval $ac_link) 2>&5
6749   ac_status=$?
6750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6753   (eval $ac_try) 2>&5
6754   ac_status=$?
6755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756   (exit $ac_status); }; }; then
6757   ac_cv_sizeof_double=`cat conftest.val`
6758 else
6759   echo "$as_me: program exited with status $ac_status" >&5
6760 echo "$as_me: failed program was:" >&5
6761 sed 's/^/| /' conftest.$ac_ext >&5
6762
6763 ( exit $ac_status )
6764 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
6765 See \`config.log' for more details." >&5
6766 echo "$as_me: error: cannot compute sizeof (double), 77
6767 See \`config.log' for more details." >&2;}
6768    { (exit 1); exit 1; }; }
6769 fi
6770 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6771 fi
6772 fi
6773 rm -f conftest.val
6774 else
6775   ac_cv_sizeof_double=0
6776 fi
6777 fi
6778 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
6779 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
6780 cat >>confdefs.h <<_ACEOF
6781 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
6782 _ACEOF
6783
6784
6785 echo "$as_me:$LINENO: checking for long double" >&5
6786 echo $ECHO_N "checking for long double... $ECHO_C" >&6
6787 if test "${ac_cv_type_long_double+set}" = set; then
6788   echo $ECHO_N "(cached) $ECHO_C" >&6
6789 else
6790   cat >conftest.$ac_ext <<_ACEOF
6791 /* confdefs.h.  */
6792 _ACEOF
6793 cat confdefs.h >>conftest.$ac_ext
6794 cat >>conftest.$ac_ext <<_ACEOF
6795 /* end confdefs.h.  */
6796 $ac_includes_default
6797 int
6798 main ()
6799 {
6800 if ((long double *) 0)
6801   return 0;
6802 if (sizeof (long double))
6803   return 0;
6804   ;
6805   return 0;
6806 }
6807 _ACEOF
6808 rm -f conftest.$ac_objext
6809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6810   (eval $ac_compile) 2>conftest.er1
6811   ac_status=$?
6812   grep -v '^ *+' conftest.er1 >conftest.err
6813   rm -f conftest.er1
6814   cat conftest.err >&5
6815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816   (exit $ac_status); } &&
6817          { ac_try='test -z "$ac_c_werror_flag"
6818                          || test ! -s conftest.err'
6819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6820   (eval $ac_try) 2>&5
6821   ac_status=$?
6822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823   (exit $ac_status); }; } &&
6824          { ac_try='test -s conftest.$ac_objext'
6825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6826   (eval $ac_try) 2>&5
6827   ac_status=$?
6828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829   (exit $ac_status); }; }; then
6830   ac_cv_type_long_double=yes
6831 else
6832   echo "$as_me: failed program was:" >&5
6833 sed 's/^/| /' conftest.$ac_ext >&5
6834
6835 ac_cv_type_long_double=no
6836 fi
6837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6838 fi
6839 echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
6840 echo "${ECHO_T}$ac_cv_type_long_double" >&6
6841
6842 echo "$as_me:$LINENO: checking size of long double" >&5
6843 echo $ECHO_N "checking size of long double... $ECHO_C" >&6
6844 if test "${ac_cv_sizeof_long_double+set}" = set; then
6845   echo $ECHO_N "(cached) $ECHO_C" >&6
6846 else
6847   if test "$ac_cv_type_long_double" = yes; then
6848   # The cast to unsigned long works around a bug in the HP C Compiler
6849   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6850   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6851   # This bug is HP SR number 8606223364.
6852   if test "$cross_compiling" = yes; then
6853   # Depending upon the size, compute the lo and hi bounds.
6854 cat >conftest.$ac_ext <<_ACEOF
6855 /* confdefs.h.  */
6856 _ACEOF
6857 cat confdefs.h >>conftest.$ac_ext
6858 cat >>conftest.$ac_ext <<_ACEOF
6859 /* end confdefs.h.  */
6860 $ac_includes_default
6861 int
6862 main ()
6863 {
6864 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= 0)];
6865 test_array [0] = 0
6866
6867   ;
6868   return 0;
6869 }
6870 _ACEOF
6871 rm -f conftest.$ac_objext
6872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6873   (eval $ac_compile) 2>conftest.er1
6874   ac_status=$?
6875   grep -v '^ *+' conftest.er1 >conftest.err
6876   rm -f conftest.er1
6877   cat conftest.err >&5
6878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879   (exit $ac_status); } &&
6880          { ac_try='test -z "$ac_c_werror_flag"
6881                          || test ! -s conftest.err'
6882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6883   (eval $ac_try) 2>&5
6884   ac_status=$?
6885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886   (exit $ac_status); }; } &&
6887          { ac_try='test -s conftest.$ac_objext'
6888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6889   (eval $ac_try) 2>&5
6890   ac_status=$?
6891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892   (exit $ac_status); }; }; then
6893   ac_lo=0 ac_mid=0
6894   while :; do
6895     cat >conftest.$ac_ext <<_ACEOF
6896 /* confdefs.h.  */
6897 _ACEOF
6898 cat confdefs.h >>conftest.$ac_ext
6899 cat >>conftest.$ac_ext <<_ACEOF
6900 /* end confdefs.h.  */
6901 $ac_includes_default
6902 int
6903 main ()
6904 {
6905 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
6906 test_array [0] = 0
6907
6908   ;
6909   return 0;
6910 }
6911 _ACEOF
6912 rm -f conftest.$ac_objext
6913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6914   (eval $ac_compile) 2>conftest.er1
6915   ac_status=$?
6916   grep -v '^ *+' conftest.er1 >conftest.err
6917   rm -f conftest.er1
6918   cat conftest.err >&5
6919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920   (exit $ac_status); } &&
6921          { ac_try='test -z "$ac_c_werror_flag"
6922                          || test ! -s conftest.err'
6923   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6924   (eval $ac_try) 2>&5
6925   ac_status=$?
6926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927   (exit $ac_status); }; } &&
6928          { ac_try='test -s conftest.$ac_objext'
6929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6930   (eval $ac_try) 2>&5
6931   ac_status=$?
6932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933   (exit $ac_status); }; }; then
6934   ac_hi=$ac_mid; break
6935 else
6936   echo "$as_me: failed program was:" >&5
6937 sed 's/^/| /' conftest.$ac_ext >&5
6938
6939 ac_lo=`expr $ac_mid + 1`
6940                     if test $ac_lo -le $ac_mid; then
6941                       ac_lo= ac_hi=
6942                       break
6943                     fi
6944                     ac_mid=`expr 2 '*' $ac_mid + 1`
6945 fi
6946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6947   done
6948 else
6949   echo "$as_me: failed program was:" >&5
6950 sed 's/^/| /' conftest.$ac_ext >&5
6951
6952 cat >conftest.$ac_ext <<_ACEOF
6953 /* confdefs.h.  */
6954 _ACEOF
6955 cat confdefs.h >>conftest.$ac_ext
6956 cat >>conftest.$ac_ext <<_ACEOF
6957 /* end confdefs.h.  */
6958 $ac_includes_default
6959 int
6960 main ()
6961 {
6962 static int test_array [1 - 2 * !(((long) (sizeof (long double))) < 0)];
6963 test_array [0] = 0
6964
6965   ;
6966   return 0;
6967 }
6968 _ACEOF
6969 rm -f conftest.$ac_objext
6970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6971   (eval $ac_compile) 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_objext'
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   ac_hi=-1 ac_mid=-1
6992   while :; do
6993     cat >conftest.$ac_ext <<_ACEOF
6994 /* confdefs.h.  */
6995 _ACEOF
6996 cat confdefs.h >>conftest.$ac_ext
6997 cat >>conftest.$ac_ext <<_ACEOF
6998 /* end confdefs.h.  */
6999 $ac_includes_default
7000 int
7001 main ()
7002 {
7003 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= $ac_mid)];
7004 test_array [0] = 0
7005
7006   ;
7007   return 0;
7008 }
7009 _ACEOF
7010 rm -f conftest.$ac_objext
7011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7012   (eval $ac_compile) 2>conftest.er1
7013   ac_status=$?
7014   grep -v '^ *+' conftest.er1 >conftest.err
7015   rm -f conftest.er1
7016   cat conftest.err >&5
7017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018   (exit $ac_status); } &&
7019          { ac_try='test -z "$ac_c_werror_flag"
7020                          || test ! -s conftest.err'
7021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7022   (eval $ac_try) 2>&5
7023   ac_status=$?
7024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025   (exit $ac_status); }; } &&
7026          { ac_try='test -s conftest.$ac_objext'
7027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7028   (eval $ac_try) 2>&5
7029   ac_status=$?
7030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031   (exit $ac_status); }; }; then
7032   ac_lo=$ac_mid; break
7033 else
7034   echo "$as_me: failed program was:" >&5
7035 sed 's/^/| /' conftest.$ac_ext >&5
7036
7037 ac_hi=`expr '(' $ac_mid ')' - 1`
7038                        if test $ac_mid -le $ac_hi; then
7039                          ac_lo= ac_hi=
7040                          break
7041                        fi
7042                        ac_mid=`expr 2 '*' $ac_mid`
7043 fi
7044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7045   done
7046 else
7047   echo "$as_me: failed program was:" >&5
7048 sed 's/^/| /' conftest.$ac_ext >&5
7049
7050 ac_lo= ac_hi=
7051 fi
7052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7053 fi
7054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7055 # Binary search between lo and hi bounds.
7056 while test "x$ac_lo" != "x$ac_hi"; do
7057   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7058   cat >conftest.$ac_ext <<_ACEOF
7059 /* confdefs.h.  */
7060 _ACEOF
7061 cat confdefs.h >>conftest.$ac_ext
7062 cat >>conftest.$ac_ext <<_ACEOF
7063 /* end confdefs.h.  */
7064 $ac_includes_default
7065 int
7066 main ()
7067 {
7068 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
7069 test_array [0] = 0
7070
7071   ;
7072   return 0;
7073 }
7074 _ACEOF
7075 rm -f conftest.$ac_objext
7076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7077   (eval $ac_compile) 2>conftest.er1
7078   ac_status=$?
7079   grep -v '^ *+' conftest.er1 >conftest.err
7080   rm -f conftest.er1
7081   cat conftest.err >&5
7082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083   (exit $ac_status); } &&
7084          { ac_try='test -z "$ac_c_werror_flag"
7085                          || test ! -s conftest.err'
7086   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7087   (eval $ac_try) 2>&5
7088   ac_status=$?
7089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090   (exit $ac_status); }; } &&
7091          { ac_try='test -s conftest.$ac_objext'
7092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7093   (eval $ac_try) 2>&5
7094   ac_status=$?
7095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7096   (exit $ac_status); }; }; then
7097   ac_hi=$ac_mid
7098 else
7099   echo "$as_me: failed program was:" >&5
7100 sed 's/^/| /' conftest.$ac_ext >&5
7101
7102 ac_lo=`expr '(' $ac_mid ')' + 1`
7103 fi
7104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7105 done
7106 case $ac_lo in
7107 ?*) ac_cv_sizeof_long_double=$ac_lo;;
7108 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
7109 See \`config.log' for more details." >&5
7110 echo "$as_me: error: cannot compute sizeof (long double), 77
7111 See \`config.log' for more details." >&2;}
7112    { (exit 1); exit 1; }; } ;;
7113 esac
7114 else
7115   if test "$cross_compiling" = yes; then
7116   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7117 See \`config.log' for more details." >&5
7118 echo "$as_me: error: cannot run test program while cross compiling
7119 See \`config.log' for more details." >&2;}
7120    { (exit 1); exit 1; }; }
7121 else
7122   cat >conftest.$ac_ext <<_ACEOF
7123 /* confdefs.h.  */
7124 _ACEOF
7125 cat confdefs.h >>conftest.$ac_ext
7126 cat >>conftest.$ac_ext <<_ACEOF
7127 /* end confdefs.h.  */
7128 $ac_includes_default
7129 long longval () { return (long) (sizeof (long double)); }
7130 unsigned long ulongval () { return (long) (sizeof (long double)); }
7131 #include <stdio.h>
7132 #include <stdlib.h>
7133 int
7134 main ()
7135 {
7136
7137   FILE *f = fopen ("conftest.val", "w");
7138   if (! f)
7139     exit (1);
7140   if (((long) (sizeof (long double))) < 0)
7141     {
7142       long i = longval ();
7143       if (i != ((long) (sizeof (long double))))
7144         exit (1);
7145       fprintf (f, "%ld\n", i);
7146     }
7147   else
7148     {
7149       unsigned long i = ulongval ();
7150       if (i != ((long) (sizeof (long double))))
7151         exit (1);
7152       fprintf (f, "%lu\n", i);
7153     }
7154   exit (ferror (f) || fclose (f) != 0);
7155
7156   ;
7157   return 0;
7158 }
7159 _ACEOF
7160 rm -f conftest$ac_exeext
7161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7162   (eval $ac_link) 2>&5
7163   ac_status=$?
7164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7167   (eval $ac_try) 2>&5
7168   ac_status=$?
7169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170   (exit $ac_status); }; }; then
7171   ac_cv_sizeof_long_double=`cat conftest.val`
7172 else
7173   echo "$as_me: program exited with status $ac_status" >&5
7174 echo "$as_me: failed program was:" >&5
7175 sed 's/^/| /' conftest.$ac_ext >&5
7176
7177 ( exit $ac_status )
7178 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
7179 See \`config.log' for more details." >&5
7180 echo "$as_me: error: cannot compute sizeof (long double), 77
7181 See \`config.log' for more details." >&2;}
7182    { (exit 1); exit 1; }; }
7183 fi
7184 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7185 fi
7186 fi
7187 rm -f conftest.val
7188 else
7189   ac_cv_sizeof_long_double=0
7190 fi
7191 fi
7192 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
7193 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6
7194 cat >>confdefs.h <<_ACEOF
7195 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
7196 _ACEOF
7197
7198
7199
7200 # Also AC_SUBST this variable for ffi.h.
7201 if test -z "$HAVE_LONG_DOUBLE"; then
7202   HAVE_LONG_DOUBLE=0
7203   if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
7204     if test $ac_cv_sizeof_long_double != 0; then
7205       HAVE_LONG_DOUBLE=1
7206
7207 cat >>confdefs.h <<\_ACEOF
7208 #define HAVE_LONG_DOUBLE 1
7209 _ACEOF
7210
7211     fi
7212   fi
7213 fi
7214
7215
7216 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7217 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7218 if test "${ac_cv_c_bigendian+set}" = set; then
7219   echo $ECHO_N "(cached) $ECHO_C" >&6
7220 else
7221   # See if sys/param.h defines the BYTE_ORDER macro.
7222 cat >conftest.$ac_ext <<_ACEOF
7223 /* confdefs.h.  */
7224 _ACEOF
7225 cat confdefs.h >>conftest.$ac_ext
7226 cat >>conftest.$ac_ext <<_ACEOF
7227 /* end confdefs.h.  */
7228 #include <sys/types.h>
7229 #include <sys/param.h>
7230
7231 int
7232 main ()
7233 {
7234 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7235  bogus endian macros
7236 #endif
7237
7238   ;
7239   return 0;
7240 }
7241 _ACEOF
7242 rm -f conftest.$ac_objext
7243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7244   (eval $ac_compile) 2>conftest.er1
7245   ac_status=$?
7246   grep -v '^ *+' conftest.er1 >conftest.err
7247   rm -f conftest.er1
7248   cat conftest.err >&5
7249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250   (exit $ac_status); } &&
7251          { ac_try='test -z "$ac_c_werror_flag"
7252                          || test ! -s conftest.err'
7253   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7254   (eval $ac_try) 2>&5
7255   ac_status=$?
7256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257   (exit $ac_status); }; } &&
7258          { ac_try='test -s conftest.$ac_objext'
7259   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7260   (eval $ac_try) 2>&5
7261   ac_status=$?
7262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263   (exit $ac_status); }; }; then
7264   # It does; now see whether it defined to BIG_ENDIAN or not.
7265 cat >conftest.$ac_ext <<_ACEOF
7266 /* confdefs.h.  */
7267 _ACEOF
7268 cat confdefs.h >>conftest.$ac_ext
7269 cat >>conftest.$ac_ext <<_ACEOF
7270 /* end confdefs.h.  */
7271 #include <sys/types.h>
7272 #include <sys/param.h>
7273
7274 int
7275 main ()
7276 {
7277 #if BYTE_ORDER != BIG_ENDIAN
7278  not big endian
7279 #endif
7280
7281   ;
7282   return 0;
7283 }
7284 _ACEOF
7285 rm -f conftest.$ac_objext
7286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7287   (eval $ac_compile) 2>conftest.er1
7288   ac_status=$?
7289   grep -v '^ *+' conftest.er1 >conftest.err
7290   rm -f conftest.er1
7291   cat conftest.err >&5
7292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293   (exit $ac_status); } &&
7294          { ac_try='test -z "$ac_c_werror_flag"
7295                          || test ! -s conftest.err'
7296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7297   (eval $ac_try) 2>&5
7298   ac_status=$?
7299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300   (exit $ac_status); }; } &&
7301          { ac_try='test -s conftest.$ac_objext'
7302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7303   (eval $ac_try) 2>&5
7304   ac_status=$?
7305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306   (exit $ac_status); }; }; then
7307   ac_cv_c_bigendian=yes
7308 else
7309   echo "$as_me: failed program was:" >&5
7310 sed 's/^/| /' conftest.$ac_ext >&5
7311
7312 ac_cv_c_bigendian=no
7313 fi
7314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7315 else
7316   echo "$as_me: failed program was:" >&5
7317 sed 's/^/| /' conftest.$ac_ext >&5
7318
7319 # It does not; compile a test program.
7320 if test "$cross_compiling" = yes; then
7321   # try to guess the endianness by grepping values into an object file
7322   ac_cv_c_bigendian=unknown
7323   cat >conftest.$ac_ext <<_ACEOF
7324 /* confdefs.h.  */
7325 _ACEOF
7326 cat confdefs.h >>conftest.$ac_ext
7327 cat >>conftest.$ac_ext <<_ACEOF
7328 /* end confdefs.h.  */
7329 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7330 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7331 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7332 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7333 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7334 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7335 int
7336 main ()
7337 {
7338  _ascii (); _ebcdic ();
7339   ;
7340   return 0;
7341 }
7342 _ACEOF
7343 rm -f conftest.$ac_objext
7344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7345   (eval $ac_compile) 2>conftest.er1
7346   ac_status=$?
7347   grep -v '^ *+' conftest.er1 >conftest.err
7348   rm -f conftest.er1
7349   cat conftest.err >&5
7350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351   (exit $ac_status); } &&
7352          { ac_try='test -z "$ac_c_werror_flag"
7353                          || test ! -s conftest.err'
7354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7355   (eval $ac_try) 2>&5
7356   ac_status=$?
7357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358   (exit $ac_status); }; } &&
7359          { ac_try='test -s conftest.$ac_objext'
7360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7361   (eval $ac_try) 2>&5
7362   ac_status=$?
7363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364   (exit $ac_status); }; }; then
7365   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7366   ac_cv_c_bigendian=yes
7367 fi
7368 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7369   if test "$ac_cv_c_bigendian" = unknown; then
7370     ac_cv_c_bigendian=no
7371   else
7372     # finding both strings is unlikely to happen, but who knows?
7373     ac_cv_c_bigendian=unknown
7374   fi
7375 fi
7376 else
7377   echo "$as_me: failed program was:" >&5
7378 sed 's/^/| /' conftest.$ac_ext >&5
7379
7380 fi
7381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7382 else
7383   cat >conftest.$ac_ext <<_ACEOF
7384 /* confdefs.h.  */
7385 _ACEOF
7386 cat confdefs.h >>conftest.$ac_ext
7387 cat >>conftest.$ac_ext <<_ACEOF
7388 /* end confdefs.h.  */
7389 int
7390 main ()
7391 {
7392   /* Are we little or big endian?  From Harbison&Steele.  */
7393   union
7394   {
7395     long l;
7396     char c[sizeof (long)];
7397   } u;
7398   u.l = 1;
7399   exit (u.c[sizeof (long) - 1] == 1);
7400 }
7401 _ACEOF
7402 rm -f conftest$ac_exeext
7403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7404   (eval $ac_link) 2>&5
7405   ac_status=$?
7406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7409   (eval $ac_try) 2>&5
7410   ac_status=$?
7411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412   (exit $ac_status); }; }; then
7413   ac_cv_c_bigendian=no
7414 else
7415   echo "$as_me: program exited with status $ac_status" >&5
7416 echo "$as_me: failed program was:" >&5
7417 sed 's/^/| /' conftest.$ac_ext >&5
7418
7419 ( exit $ac_status )
7420 ac_cv_c_bigendian=yes
7421 fi
7422 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7423 fi
7424 fi
7425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7426 fi
7427 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7428 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7429 case $ac_cv_c_bigendian in
7430   yes)
7431
7432 cat >>confdefs.h <<\_ACEOF
7433 #define WORDS_BIGENDIAN 1
7434 _ACEOF
7435  ;;
7436   no)
7437      ;;
7438   *)
7439     { { echo "$as_me:$LINENO: error: unknown endianness
7440 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7441 echo "$as_me: error: unknown endianness
7442 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7443    { (exit 1); exit 1; }; } ;;
7444 esac
7445
7446
7447 if test x$TARGET = xSPARC; then
7448     echo "$as_me:$LINENO: checking assembler and linker support unaligned pc related relocs" >&5
7449 echo $ECHO_N "checking assembler and linker support unaligned pc related relocs... $ECHO_C" >&6
7450 if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then
7451   echo $ECHO_N "(cached) $ECHO_C" >&6
7452 else
7453
7454         save_CFLAGS="$CFLAGS"
7455         save_LDFLAGS="$LDFLAGS"
7456         CFLAGS="$CFLAGS -fpic"
7457         LDFLAGS="$LDFLAGS -shared"
7458         cat >conftest.$ac_ext <<_ACEOF
7459 /* confdefs.h.  */
7460 _ACEOF
7461 cat confdefs.h >>conftest.$ac_ext
7462 cat >>conftest.$ac_ext <<_ACEOF
7463 /* end confdefs.h.  */
7464 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
7465 int
7466 main ()
7467 {
7468
7469   ;
7470   return 0;
7471 }
7472 _ACEOF
7473 rm -f conftest.$ac_objext conftest$ac_exeext
7474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7475   (eval $ac_link) 2>conftest.er1
7476   ac_status=$?
7477   grep -v '^ *+' conftest.er1 >conftest.err
7478   rm -f conftest.er1
7479   cat conftest.err >&5
7480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481   (exit $ac_status); } &&
7482          { ac_try='test -z "$ac_c_werror_flag"
7483                          || test ! -s conftest.err'
7484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7485   (eval $ac_try) 2>&5
7486   ac_status=$?
7487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488   (exit $ac_status); }; } &&
7489          { ac_try='test -s conftest$ac_exeext'
7490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7491   (eval $ac_try) 2>&5
7492   ac_status=$?
7493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7494   (exit $ac_status); }; }; then
7495   libffi_cv_as_sparc_ua_pcrel=yes
7496 else
7497   echo "$as_me: failed program was:" >&5
7498 sed 's/^/| /' conftest.$ac_ext >&5
7499
7500 libffi_cv_as_sparc_ua_pcrel=no
7501 fi
7502 rm -f conftest.err conftest.$ac_objext \
7503       conftest$ac_exeext conftest.$ac_ext
7504         CFLAGS="$save_CFLAGS"
7505         LDFLAGS="$save_LDFLAGS"
7506 fi
7507 echo "$as_me:$LINENO: result: $libffi_cv_as_sparc_ua_pcrel" >&5
7508 echo "${ECHO_T}$libffi_cv_as_sparc_ua_pcrel" >&6
7509     if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
7510
7511 cat >>confdefs.h <<\_ACEOF
7512 #define HAVE_AS_SPARC_UA_PCREL 1
7513 _ACEOF
7514
7515     fi
7516
7517     echo "$as_me:$LINENO: checking assembler .register pseudo-op support" >&5
7518 echo $ECHO_N "checking assembler .register pseudo-op support... $ECHO_C" >&6
7519 if test "${libffi_cv_as_register_pseudo_op+set}" = set; then
7520   echo $ECHO_N "(cached) $ECHO_C" >&6
7521 else
7522
7523        libffi_cv_as_register_pseudo_op=unknown
7524        # Check if we have .register
7525        cat >conftest.$ac_ext <<_ACEOF
7526 /* confdefs.h.  */
7527 _ACEOF
7528 cat confdefs.h >>conftest.$ac_ext
7529 cat >>conftest.$ac_ext <<_ACEOF
7530 /* end confdefs.h.  */
7531 asm (".register %g2, #scratch");
7532 int
7533 main ()
7534 {
7535
7536   ;
7537   return 0;
7538 }
7539 _ACEOF
7540 rm -f conftest.$ac_objext
7541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7542   (eval $ac_compile) 2>conftest.er1
7543   ac_status=$?
7544   grep -v '^ *+' conftest.er1 >conftest.err
7545   rm -f conftest.er1
7546   cat conftest.err >&5
7547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548   (exit $ac_status); } &&
7549          { ac_try='test -z "$ac_c_werror_flag"
7550                          || test ! -s conftest.err'
7551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7552   (eval $ac_try) 2>&5
7553   ac_status=$?
7554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555   (exit $ac_status); }; } &&
7556          { ac_try='test -s conftest.$ac_objext'
7557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7558   (eval $ac_try) 2>&5
7559   ac_status=$?
7560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561   (exit $ac_status); }; }; then
7562   libffi_cv_as_register_pseudo_op=yes
7563 else
7564   echo "$as_me: failed program was:" >&5
7565 sed 's/^/| /' conftest.$ac_ext >&5
7566
7567 libffi_cv_as_register_pseudo_op=no
7568 fi
7569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7570
7571 fi
7572 echo "$as_me:$LINENO: result: $libffi_cv_as_register_pseudo_op" >&5
7573 echo "${ECHO_T}$libffi_cv_as_register_pseudo_op" >&6
7574     if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
7575
7576 cat >>confdefs.h <<\_ACEOF
7577 #define HAVE_AS_REGISTER_PSEUDO_OP 1
7578 _ACEOF
7579
7580     fi
7581 fi
7582
7583 echo "$as_me:$LINENO: checking whether .eh_frame section should be read-only" >&5
7584 echo $ECHO_N "checking whether .eh_frame section should be read-only... $ECHO_C" >&6
7585 if test "${libffi_cv_ro_eh_frame+set}" = set; then
7586   echo $ECHO_N "(cached) $ECHO_C" >&6
7587 else
7588
7589         libffi_cv_ro_eh_frame=no
7590         echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
7591         if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
7592             if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
7593                 libffi_cv_ro_eh_frame=yes
7594             elif grep '.section.*eh_frame.*#alloc' conftest.c \
7595                  | grep -v '#write' > /dev/null; then
7596                 libffi_cv_ro_eh_frame=yes
7597             fi
7598         fi
7599         rm -f conftest.*
7600
7601 fi
7602 echo "$as_me:$LINENO: result: $libffi_cv_ro_eh_frame" >&5
7603 echo "${ECHO_T}$libffi_cv_ro_eh_frame" >&6
7604 if test "x$libffi_cv_ro_eh_frame" = xyes; then
7605
7606 cat >>confdefs.h <<\_ACEOF
7607 #define HAVE_RO_EH_FRAME 1
7608 _ACEOF
7609
7610
7611 cat >>confdefs.h <<\_ACEOF
7612 #define EH_FRAME_FLAGS "a"
7613 _ACEOF
7614
7615 else
7616
7617 cat >>confdefs.h <<\_ACEOF
7618 #define EH_FRAME_FLAGS "aw"
7619 _ACEOF
7620
7621 fi
7622
7623 echo "$as_me:$LINENO: checking for __attribute__((visibility(\"hidden\")))" >&5
7624 echo $ECHO_N "checking for __attribute__((visibility(\"hidden\")))... $ECHO_C" >&6
7625 if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then
7626   echo $ECHO_N "(cached) $ECHO_C" >&6
7627 else
7628
7629         echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
7630         libffi_cv_hidden_visibility_attribute=no
7631         if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
7632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7633   (eval $ac_try) 2>&5
7634   ac_status=$?
7635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636   (exit $ac_status); }; }; then
7637             if grep '\.hidden.*foo' conftest.s >/dev/null; then
7638                 libffi_cv_hidden_visibility_attribute=yes
7639             fi
7640         fi
7641         rm -f conftest.*
7642
7643 fi
7644 echo "$as_me:$LINENO: result: $libffi_cv_hidden_visibility_attribute" >&5
7645 echo "${ECHO_T}$libffi_cv_hidden_visibility_attribute" >&6
7646 if test $libffi_cv_hidden_visibility_attribute = yes; then
7647
7648 cat >>confdefs.h <<\_ACEOF
7649 #define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1
7650 _ACEOF
7651
7652 fi
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662 # Check whether --enable-debug or --disable-debug was given.
7663 if test "${enable_debug+set}" = set; then
7664   enableval="$enable_debug"
7665   if test "$enable_debug" = "yes"; then
7666
7667 cat >>confdefs.h <<\_ACEOF
7668 #define FFI_DEBUG 1
7669 _ACEOF
7670
7671   fi
7672 fi;
7673
7674 # Check whether --enable-structs or --disable-structs was given.
7675 if test "${enable_structs+set}" = set; then
7676   enableval="$enable_structs"
7677   if test "$enable_structs" = "no"; then
7678
7679 cat >>confdefs.h <<\_ACEOF
7680 #define FFI_NO_STRUCTS 1
7681 _ACEOF
7682
7683   fi
7684 fi;
7685
7686 # Check whether --enable-raw-api or --disable-raw-api was given.
7687 if test "${enable_raw_api+set}" = set; then
7688   enableval="$enable_raw_api"
7689   if test "$enable_raw_api" = "no"; then
7690
7691 cat >>confdefs.h <<\_ACEOF
7692 #define FFI_NO_RAW_API 1
7693 _ACEOF
7694
7695   fi
7696 fi;
7697
7698 # Check whether --enable-purify-safety or --disable-purify-safety was given.
7699 if test "${enable_purify_safety+set}" = set; then
7700   enableval="$enable_purify_safety"
7701   if test "$enable_purify_safety" = "yes"; then
7702
7703 cat >>confdefs.h <<\_ACEOF
7704 #define USING_PURIFY 1
7705 _ACEOF
7706
7707   fi
7708 fi;
7709
7710 if test -n "$with_cross_host" &&
7711    test x"$with_cross_host" != x"no"; then
7712   toolexecdir='$(exec_prefix)/$(target_alias)'
7713   toolexeclibdir='$(toolexecdir)/lib'
7714 else
7715   toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
7716   toolexeclibdir='$(libdir)'
7717 fi
7718 multi_os_directory=`$CC -print-multi-os-directory`
7719 case $multi_os_directory in
7720   .) ;; # Avoid trailing /.
7721   *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
7722 esac
7723
7724
7725
7726 if test "${multilib}" = "yes"; then
7727   multilib_arg="--enable-multilib"
7728 else
7729   multilib_arg=
7730 fi
7731
7732           ac_config_commands="$ac_config_commands include"
7733
7734           ac_config_commands="$ac_config_commands src"
7735
7736
7737           ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
7738
7739
7740                                         ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile"
7741
7742
7743 cat >confcache <<\_ACEOF
7744 # This file is a shell script that caches the results of configure
7745 # tests run on this system so they can be shared between configure
7746 # scripts and configure runs, see configure's option --config-cache.
7747 # It is not useful on other systems.  If it contains results you don't
7748 # want to keep, you may remove or edit it.
7749 #
7750 # config.status only pays attention to the cache file if you give it
7751 # the --recheck option to rerun configure.
7752 #
7753 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7754 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7755 # following values.
7756
7757 _ACEOF
7758
7759 # The following way of writing the cache mishandles newlines in values,
7760 # but we know of no workaround that is simple, portable, and efficient.
7761 # So, don't put newlines in cache variables' values.
7762 # Ultrix sh set writes to stderr and can't be redirected directly,
7763 # and sets the high bit in the cache file unless we assign to the vars.
7764 {
7765   (set) 2>&1 |
7766     case `(ac_space=' '; set | grep ac_space) 2>&1` in
7767     *ac_space=\ *)
7768       # `set' does not quote correctly, so add quotes (double-quote
7769       # substitution turns \\\\ into \\, and sed turns \\ into \).
7770       sed -n \
7771         "s/'/'\\\\''/g;
7772           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7773       ;;
7774     *)
7775       # `set' quotes correctly as required by POSIX, so do not add quotes.
7776       sed -n \
7777         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
7778       ;;
7779     esac;
7780 } |
7781   sed '
7782      t clear
7783      : clear
7784      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7785      t end
7786      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7787      : end' >>confcache
7788 if diff $cache_file confcache >/dev/null 2>&1; then :; else
7789   if test -w $cache_file; then
7790     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
7791     cat confcache >$cache_file
7792   else
7793     echo "not updating unwritable cache $cache_file"
7794   fi
7795 fi
7796 rm -f confcache
7797
7798 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7799 # Let make expand exec_prefix.
7800 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7801
7802 # VPATH may cause trouble with some makes, so we remove $(srcdir),
7803 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7804 # trailing colons and then remove the whole line if VPATH becomes empty
7805 # (actually we leave an empty line to preserve line numbers).
7806 if test "x$srcdir" = x.; then
7807   ac_vpsub='/^[  ]*VPATH[        ]*=/{
7808 s/:*\$(srcdir):*/:/;
7809 s/:*\${srcdir}:*/:/;
7810 s/:*@srcdir@:*/:/;
7811 s/^\([^=]*=[     ]*\):*/\1/;
7812 s/:*$//;
7813 s/^[^=]*=[       ]*$//;
7814 }'
7815 fi
7816
7817 DEFS=-DHAVE_CONFIG_H
7818
7819 ac_libobjs=
7820 ac_ltlibobjs=
7821 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7822   # 1. Remove the extension, and $U if already installed.
7823   ac_i=`echo "$ac_i" |
7824          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
7825   # 2. Add them.
7826   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
7827   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
7828 done
7829 LIBOBJS=$ac_libobjs
7830
7831 LTLIBOBJS=$ac_ltlibobjs
7832
7833
7834 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7835   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
7836 Usually this means the macro was only invoked conditionally." >&5
7837 echo "$as_me: error: conditional \"AMDEP\" was never defined.
7838 Usually this means the macro was only invoked conditionally." >&2;}
7839    { (exit 1); exit 1; }; }
7840 fi
7841 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7842   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
7843 Usually this means the macro was only invoked conditionally." >&5
7844 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
7845 Usually this means the macro was only invoked conditionally." >&2;}
7846    { (exit 1); exit 1; }; }
7847 fi
7848 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7849   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
7850 Usually this means the macro was only invoked conditionally." >&5
7851 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
7852 Usually this means the macro was only invoked conditionally." >&2;}
7853    { (exit 1); exit 1; }; }
7854 fi
7855 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
7856   { { echo "$as_me:$LINENO: error: conditional \"TESTSUBDIR\" was never defined.
7857 Usually this means the macro was only invoked conditionally." >&5
7858 echo "$as_me: error: conditional \"TESTSUBDIR\" was never defined.
7859 Usually this means the macro was only invoked conditionally." >&2;}
7860    { (exit 1); exit 1; }; }
7861 fi
7862 if test -z "${MIPS_IRIX_TRUE}" && test -z "${MIPS_IRIX_FALSE}"; then
7863   { { echo "$as_me:$LINENO: error: conditional \"MIPS_IRIX\" was never defined.
7864 Usually this means the macro was only invoked conditionally." >&5
7865 echo "$as_me: error: conditional \"MIPS_IRIX\" was never defined.
7866 Usually this means the macro was only invoked conditionally." >&2;}
7867    { (exit 1); exit 1; }; }
7868 fi
7869 if test -z "${MIPS_LINUX_TRUE}" && test -z "${MIPS_LINUX_FALSE}"; then
7870   { { echo "$as_me:$LINENO: error: conditional \"MIPS_LINUX\" was never defined.
7871 Usually this means the macro was only invoked conditionally." >&5
7872 echo "$as_me: error: conditional \"MIPS_LINUX\" was never defined.
7873 Usually this means the macro was only invoked conditionally." >&2;}
7874    { (exit 1); exit 1; }; }
7875 fi
7876 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
7877   { { echo "$as_me:$LINENO: error: conditional \"SPARC\" was never defined.
7878 Usually this means the macro was only invoked conditionally." >&5
7879 echo "$as_me: error: conditional \"SPARC\" was never defined.
7880 Usually this means the macro was only invoked conditionally." >&2;}
7881    { (exit 1); exit 1; }; }
7882 fi
7883 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
7884   { { echo "$as_me:$LINENO: error: conditional \"X86\" was never defined.
7885 Usually this means the macro was only invoked conditionally." >&5
7886 echo "$as_me: error: conditional \"X86\" was never defined.
7887 Usually this means the macro was only invoked conditionally." >&2;}
7888    { (exit 1); exit 1; }; }
7889 fi
7890 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
7891   { { echo "$as_me:$LINENO: error: conditional \"X86_WIN32\" was never defined.
7892 Usually this means the macro was only invoked conditionally." >&5
7893 echo "$as_me: error: conditional \"X86_WIN32\" was never defined.
7894 Usually this means the macro was only invoked conditionally." >&2;}
7895    { (exit 1); exit 1; }; }
7896 fi
7897 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
7898   { { echo "$as_me:$LINENO: error: conditional \"X86_DARWIN\" was never defined.
7899 Usually this means the macro was only invoked conditionally." >&5
7900 echo "$as_me: error: conditional \"X86_DARWIN\" was never defined.
7901 Usually this means the macro was only invoked conditionally." >&2;}
7902    { (exit 1); exit 1; }; }
7903 fi
7904 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
7905   { { echo "$as_me:$LINENO: error: conditional \"ALPHA\" was never defined.
7906 Usually this means the macro was only invoked conditionally." >&5
7907 echo "$as_me: error: conditional \"ALPHA\" was never defined.
7908 Usually this means the macro was only invoked conditionally." >&2;}
7909    { (exit 1); exit 1; }; }
7910 fi
7911 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
7912   { { echo "$as_me:$LINENO: error: conditional \"IA64\" was never defined.
7913 Usually this means the macro was only invoked conditionally." >&5
7914 echo "$as_me: error: conditional \"IA64\" was never defined.
7915 Usually this means the macro was only invoked conditionally." >&2;}
7916    { (exit 1); exit 1; }; }
7917 fi
7918 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
7919   { { echo "$as_me:$LINENO: error: conditional \"M32R\" was never defined.
7920 Usually this means the macro was only invoked conditionally." >&5
7921 echo "$as_me: error: conditional \"M32R\" was never defined.
7922 Usually this means the macro was only invoked conditionally." >&2;}
7923    { (exit 1); exit 1; }; }
7924 fi
7925 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
7926   { { echo "$as_me:$LINENO: error: conditional \"M68K\" was never defined.
7927 Usually this means the macro was only invoked conditionally." >&5
7928 echo "$as_me: error: conditional \"M68K\" was never defined.
7929 Usually this means the macro was only invoked conditionally." >&2;}
7930    { (exit 1); exit 1; }; }
7931 fi
7932 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
7933   { { echo "$as_me:$LINENO: error: conditional \"POWERPC\" was never defined.
7934 Usually this means the macro was only invoked conditionally." >&5
7935 echo "$as_me: error: conditional \"POWERPC\" was never defined.
7936 Usually this means the macro was only invoked conditionally." >&2;}
7937    { (exit 1); exit 1; }; }
7938 fi
7939 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
7940   { { echo "$as_me:$LINENO: error: conditional \"POWERPC_AIX\" was never defined.
7941 Usually this means the macro was only invoked conditionally." >&5
7942 echo "$as_me: error: conditional \"POWERPC_AIX\" was never defined.
7943 Usually this means the macro was only invoked conditionally." >&2;}
7944    { (exit 1); exit 1; }; }
7945 fi
7946 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
7947   { { echo "$as_me:$LINENO: error: conditional \"POWERPC_DARWIN\" was never defined.
7948 Usually this means the macro was only invoked conditionally." >&5
7949 echo "$as_me: error: conditional \"POWERPC_DARWIN\" was never defined.
7950 Usually this means the macro was only invoked conditionally." >&2;}
7951    { (exit 1); exit 1; }; }
7952 fi
7953 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
7954   { { echo "$as_me:$LINENO: error: conditional \"POWERPC_FREEBSD\" was never defined.
7955 Usually this means the macro was only invoked conditionally." >&5
7956 echo "$as_me: error: conditional \"POWERPC_FREEBSD\" was never defined.
7957 Usually this means the macro was only invoked conditionally." >&2;}
7958    { (exit 1); exit 1; }; }
7959 fi
7960 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
7961   { { echo "$as_me:$LINENO: error: conditional \"ARM\" was never defined.
7962 Usually this means the macro was only invoked conditionally." >&5
7963 echo "$as_me: error: conditional \"ARM\" was never defined.
7964 Usually this means the macro was only invoked conditionally." >&2;}
7965    { (exit 1); exit 1; }; }
7966 fi
7967 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
7968   { { echo "$as_me:$LINENO: error: conditional \"LIBFFI_CRIS\" was never defined.
7969 Usually this means the macro was only invoked conditionally." >&5
7970 echo "$as_me: error: conditional \"LIBFFI_CRIS\" was never defined.
7971 Usually this means the macro was only invoked conditionally." >&2;}
7972    { (exit 1); exit 1; }; }
7973 fi
7974 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
7975   { { echo "$as_me:$LINENO: error: conditional \"FRV\" was never defined.
7976 Usually this means the macro was only invoked conditionally." >&5
7977 echo "$as_me: error: conditional \"FRV\" was never defined.
7978 Usually this means the macro was only invoked conditionally." >&2;}
7979    { (exit 1); exit 1; }; }
7980 fi
7981 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
7982   { { echo "$as_me:$LINENO: error: conditional \"S390\" was never defined.
7983 Usually this means the macro was only invoked conditionally." >&5
7984 echo "$as_me: error: conditional \"S390\" was never defined.
7985 Usually this means the macro was only invoked conditionally." >&2;}
7986    { (exit 1); exit 1; }; }
7987 fi
7988 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
7989   { { echo "$as_me:$LINENO: error: conditional \"X86_64\" was never defined.
7990 Usually this means the macro was only invoked conditionally." >&5
7991 echo "$as_me: error: conditional \"X86_64\" was never defined.
7992 Usually this means the macro was only invoked conditionally." >&2;}
7993    { (exit 1); exit 1; }; }
7994 fi
7995 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
7996   { { echo "$as_me:$LINENO: error: conditional \"SH\" was never defined.
7997 Usually this means the macro was only invoked conditionally." >&5
7998 echo "$as_me: error: conditional \"SH\" was never defined.
7999 Usually this means the macro was only invoked conditionally." >&2;}
8000    { (exit 1); exit 1; }; }
8001 fi
8002 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
8003   { { echo "$as_me:$LINENO: error: conditional \"SH64\" was never defined.
8004 Usually this means the macro was only invoked conditionally." >&5
8005 echo "$as_me: error: conditional \"SH64\" was never defined.
8006 Usually this means the macro was only invoked conditionally." >&2;}
8007    { (exit 1); exit 1; }; }
8008 fi
8009 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
8010   { { echo "$as_me:$LINENO: error: conditional \"PA_LINUX\" was never defined.
8011 Usually this means the macro was only invoked conditionally." >&5
8012 echo "$as_me: error: conditional \"PA_LINUX\" was never defined.
8013 Usually this means the macro was only invoked conditionally." >&2;}
8014    { (exit 1); exit 1; }; }
8015 fi
8016 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
8017   { { echo "$as_me:$LINENO: error: conditional \"PA_HPUX\" was never defined.
8018 Usually this means the macro was only invoked conditionally." >&5
8019 echo "$as_me: error: conditional \"PA_HPUX\" was never defined.
8020 Usually this means the macro was only invoked conditionally." >&2;}
8021    { (exit 1); exit 1; }; }
8022 fi
8023 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
8024   { { echo "$as_me:$LINENO: error: conditional \"PA64_HPUX\" was never defined.
8025 Usually this means the macro was only invoked conditionally." >&5
8026 echo "$as_me: error: conditional \"PA64_HPUX\" was never defined.
8027 Usually this means the macro was only invoked conditionally." >&2;}
8028    { (exit 1); exit 1; }; }
8029 fi
8030
8031 : ${CONFIG_STATUS=./config.status}
8032 ac_clean_files_save=$ac_clean_files
8033 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8034 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8035 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8036 cat >$CONFIG_STATUS <<_ACEOF
8037 #! $SHELL
8038 # Generated by $as_me.
8039 # Run this file to recreate the current configuration.
8040 # Compiler output produced by configure, useful for debugging
8041 # configure, is in config.log if it exists.
8042
8043 debug=false
8044 ac_cs_recheck=false
8045 ac_cs_silent=false
8046 SHELL=\${CONFIG_SHELL-$SHELL}
8047 _ACEOF
8048
8049 cat >>$CONFIG_STATUS <<\_ACEOF
8050 ## --------------------- ##
8051 ## M4sh Initialization.  ##
8052 ## --------------------- ##
8053
8054 # Be Bourne compatible
8055 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8056   emulate sh
8057   NULLCMD=:
8058   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8059   # is contrary to our usage.  Disable this feature.
8060   alias -g '${1+"$@"}'='"$@"'
8061 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8062   set -o posix
8063 fi
8064 DUALCASE=1; export DUALCASE # for MKS sh
8065
8066 # Support unset when possible.
8067 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8068   as_unset=unset
8069 else
8070   as_unset=false
8071 fi
8072
8073
8074 # Work around bugs in pre-3.0 UWIN ksh.
8075 $as_unset ENV MAIL MAILPATH
8076 PS1='$ '
8077 PS2='> '
8078 PS4='+ '
8079
8080 # NLS nuisances.
8081 for as_var in \
8082   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
8083   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
8084   LC_TELEPHONE LC_TIME
8085 do
8086   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
8087     eval $as_var=C; export $as_var
8088   else
8089     $as_unset $as_var
8090   fi
8091 done
8092
8093 # Required to use basename.
8094 if expr a : '\(a\)' >/dev/null 2>&1; then
8095   as_expr=expr
8096 else
8097   as_expr=false
8098 fi
8099
8100 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
8101   as_basename=basename
8102 else
8103   as_basename=false
8104 fi
8105
8106
8107 # Name of the executable.
8108 as_me=`$as_basename "$0" ||
8109 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8110          X"$0" : 'X\(//\)$' \| \
8111          X"$0" : 'X\(/\)$' \| \
8112          .     : '\(.\)' 2>/dev/null ||
8113 echo X/"$0" |
8114     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
8115           /^X\/\(\/\/\)$/{ s//\1/; q; }
8116           /^X\/\(\/\).*/{ s//\1/; q; }
8117           s/.*/./; q'`
8118
8119
8120 # PATH needs CR, and LINENO needs CR and PATH.
8121 # Avoid depending upon Character Ranges.
8122 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8123 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8124 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8125 as_cr_digits='0123456789'
8126 as_cr_alnum=$as_cr_Letters$as_cr_digits
8127
8128 # The user is always right.
8129 if test "${PATH_SEPARATOR+set}" != set; then
8130   echo "#! /bin/sh" >conf$$.sh
8131   echo  "exit 0"   >>conf$$.sh
8132   chmod +x conf$$.sh
8133   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8134     PATH_SEPARATOR=';'
8135   else
8136     PATH_SEPARATOR=:
8137   fi
8138   rm -f conf$$.sh
8139 fi
8140
8141
8142   as_lineno_1=$LINENO
8143   as_lineno_2=$LINENO
8144   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8145   test "x$as_lineno_1" != "x$as_lineno_2" &&
8146   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
8147   # Find who we are.  Look in the path if we contain no path at all
8148   # relative or not.
8149   case $0 in
8150     *[\\/]* ) as_myself=$0 ;;
8151     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8152 for as_dir in $PATH
8153 do
8154   IFS=$as_save_IFS
8155   test -z "$as_dir" && as_dir=.
8156   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8157 done
8158
8159        ;;
8160   esac
8161   # We did not find ourselves, most probably we were run as `sh COMMAND'
8162   # in which case we are not to be found in the path.
8163   if test "x$as_myself" = x; then
8164     as_myself=$0
8165   fi
8166   if test ! -f "$as_myself"; then
8167     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
8168 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
8169    { (exit 1); exit 1; }; }
8170   fi
8171   case $CONFIG_SHELL in
8172   '')
8173     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8174 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8175 do
8176   IFS=$as_save_IFS
8177   test -z "$as_dir" && as_dir=.
8178   for as_base in sh bash ksh sh5; do
8179          case $as_dir in
8180          /*)
8181            if ("$as_dir/$as_base" -c '
8182   as_lineno_1=$LINENO
8183   as_lineno_2=$LINENO
8184   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
8185   test "x$as_lineno_1" != "x$as_lineno_2" &&
8186   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
8187              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
8188              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
8189              CONFIG_SHELL=$as_dir/$as_base
8190              export CONFIG_SHELL
8191              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
8192            fi;;
8193          esac
8194        done
8195 done
8196 ;;
8197   esac
8198
8199   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
8200   # uniformly replaced by the line number.  The first 'sed' inserts a
8201   # line-number line before each line; the second 'sed' does the real
8202   # work.  The second script uses 'N' to pair each line-number line
8203   # with the numbered line, and appends trailing '-' during
8204   # substitution so that $LINENO is not a special case at line end.
8205   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
8206   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
8207   sed '=' <$as_myself |
8208     sed '
8209       N
8210       s,$,-,
8211       : loop
8212       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
8213       t loop
8214       s,-$,,
8215       s,^['$as_cr_digits']*\n,,
8216     ' >$as_me.lineno &&
8217   chmod +x $as_me.lineno ||
8218     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
8219 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
8220    { (exit 1); exit 1; }; }
8221
8222   # Don't try to exec as it changes $[0], causing all sort of problems
8223   # (the dirname of $[0] is not the place where we might find the
8224   # original and so on.  Autoconf is especially sensible to this).
8225   . ./$as_me.lineno
8226   # Exit status is that of the last command.
8227   exit
8228 }
8229
8230
8231 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
8232   *c*,-n*) ECHO_N= ECHO_C='
8233 ' ECHO_T='      ' ;;
8234   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
8235   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
8236 esac
8237
8238 if expr a : '\(a\)' >/dev/null 2>&1; then
8239   as_expr=expr
8240 else
8241   as_expr=false
8242 fi
8243
8244 rm -f conf$$ conf$$.exe conf$$.file
8245 echo >conf$$.file
8246 if ln -s conf$$.file conf$$ 2>/dev/null; then
8247   # We could just check for DJGPP; but this test a) works b) is more generic
8248   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8249   if test -f conf$$.exe; then
8250     # Don't use ln at all; we don't have any links
8251     as_ln_s='cp -p'
8252   else
8253     as_ln_s='ln -s'
8254   fi
8255 elif ln conf$$.file conf$$ 2>/dev/null; then
8256   as_ln_s=ln
8257 else
8258   as_ln_s='cp -p'
8259 fi
8260 rm -f conf$$ conf$$.exe conf$$.file
8261
8262 if mkdir -p . 2>/dev/null; then
8263   as_mkdir_p=:
8264 else
8265   test -d ./-p && rmdir ./-p
8266   as_mkdir_p=false
8267 fi
8268
8269 as_executable_p="test -f"
8270
8271 # Sed expression to map a string onto a valid CPP name.
8272 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8273
8274 # Sed expression to map a string onto a valid variable name.
8275 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8276
8277
8278 # IFS
8279 # We need space, tab and new line, in precisely that order.
8280 as_nl='
8281 '
8282 IFS="   $as_nl"
8283
8284 # CDPATH.
8285 $as_unset CDPATH
8286
8287 exec 6>&1
8288
8289 # Open the log real soon, to keep \$[0] and so on meaningful, and to
8290 # report actual input values of CONFIG_FILES etc. instead of their
8291 # values after options handling.  Logging --version etc. is OK.
8292 exec 5>>config.log
8293 {
8294   echo
8295   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8296 ## Running $as_me. ##
8297 _ASBOX
8298 } >&5
8299 cat >&5 <<_CSEOF
8300
8301 This file was extended by libffi $as_me 2.1, which was
8302 generated by GNU Autoconf 2.59.  Invocation command line was
8303
8304   CONFIG_FILES    = $CONFIG_FILES
8305   CONFIG_HEADERS  = $CONFIG_HEADERS
8306   CONFIG_LINKS    = $CONFIG_LINKS
8307   CONFIG_COMMANDS = $CONFIG_COMMANDS
8308   $ $0 $@
8309
8310 _CSEOF
8311 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
8312 echo >&5
8313 _ACEOF
8314
8315 # Files that config.status was made for.
8316 if test -n "$ac_config_files"; then
8317   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8318 fi
8319
8320 if test -n "$ac_config_headers"; then
8321   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8322 fi
8323
8324 if test -n "$ac_config_links"; then
8325   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8326 fi
8327
8328 if test -n "$ac_config_commands"; then
8329   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8330 fi
8331
8332 cat >>$CONFIG_STATUS <<\_ACEOF
8333
8334 ac_cs_usage="\
8335 \`$as_me' instantiates files from templates according to the
8336 current configuration.
8337
8338 Usage: $0 [OPTIONS] [FILE]...
8339
8340   -h, --help       print this help, then exit
8341   -V, --version    print version number, then exit
8342   -q, --quiet      do not print progress messages
8343   -d, --debug      don't remove temporary files
8344       --recheck    update $as_me by reconfiguring in the same conditions
8345   --file=FILE[:TEMPLATE]
8346                    instantiate the configuration file FILE
8347   --header=FILE[:TEMPLATE]
8348                    instantiate the configuration header FILE
8349
8350 Configuration files:
8351 $config_files
8352
8353 Configuration headers:
8354 $config_headers
8355
8356 Configuration links:
8357 $config_links
8358
8359 Configuration commands:
8360 $config_commands
8361
8362 Report bugs to <bug-autoconf@gnu.org>."
8363 _ACEOF
8364
8365 cat >>$CONFIG_STATUS <<_ACEOF
8366 ac_cs_version="\\
8367 libffi config.status 2.1
8368 configured by $0, generated by GNU Autoconf 2.59,
8369   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8370
8371 Copyright (C) 2003 Free Software Foundation, Inc.
8372 This config.status script is free software; the Free Software Foundation
8373 gives unlimited permission to copy, distribute and modify it."
8374 srcdir=$srcdir
8375 INSTALL="$INSTALL"
8376 _ACEOF
8377
8378 cat >>$CONFIG_STATUS <<\_ACEOF
8379 # If no file are specified by the user, then we need to provide default
8380 # value.  By we need to know if files were specified by the user.
8381 ac_need_defaults=:
8382 while test $# != 0
8383 do
8384   case $1 in
8385   --*=*)
8386     ac_option=`expr "x$1" : 'x\([^=]*\)='`
8387     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8388     ac_shift=:
8389     ;;
8390   -*)
8391     ac_option=$1
8392     ac_optarg=$2
8393     ac_shift=shift
8394     ;;
8395   *) # This is not an option, so the user has probably given explicit
8396      # arguments.
8397      ac_option=$1
8398      ac_need_defaults=false;;
8399   esac
8400
8401   case $ac_option in
8402   # Handling of the options.
8403 _ACEOF
8404 cat >>$CONFIG_STATUS <<\_ACEOF
8405   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8406     ac_cs_recheck=: ;;
8407   --version | --vers* | -V )
8408     echo "$ac_cs_version"; exit 0 ;;
8409   --he | --h)
8410     # Conflict between --help and --header
8411     { { echo "$as_me:$LINENO: error: ambiguous option: $1
8412 Try \`$0 --help' for more information." >&5
8413 echo "$as_me: error: ambiguous option: $1
8414 Try \`$0 --help' for more information." >&2;}
8415    { (exit 1); exit 1; }; };;
8416   --help | --hel | -h )
8417     echo "$ac_cs_usage"; exit 0 ;;
8418   --debug | --d* | -d )
8419     debug=: ;;
8420   --file | --fil | --fi | --f )
8421     $ac_shift
8422     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
8423     ac_need_defaults=false;;
8424   --header | --heade | --head | --hea )
8425     $ac_shift
8426     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
8427     ac_need_defaults=false;;
8428   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8429   | -silent | --silent | --silen | --sile | --sil | --si | --s)
8430     ac_cs_silent=: ;;
8431
8432   # This is an error.
8433   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
8434 Try \`$0 --help' for more information." >&5
8435 echo "$as_me: error: unrecognized option: $1
8436 Try \`$0 --help' for more information." >&2;}
8437    { (exit 1); exit 1; }; } ;;
8438
8439   *) ac_config_targets="$ac_config_targets $1" ;;
8440
8441   esac
8442   shift
8443 done
8444
8445 ac_configure_extra_args=
8446
8447 if $ac_cs_silent; then
8448   exec 6>/dev/null
8449   ac_configure_extra_args="$ac_configure_extra_args --silent"
8450 fi
8451
8452 _ACEOF
8453 cat >>$CONFIG_STATUS <<_ACEOF
8454 if \$ac_cs_recheck; then
8455   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
8456   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8457 fi
8458
8459 _ACEOF
8460
8461 cat >>$CONFIG_STATUS <<_ACEOF
8462 #
8463 # INIT-COMMANDS section.
8464 #
8465
8466
8467 srcdir="$srcdir"
8468 host="$host"
8469 target="$target"
8470 with_multisubdir="$with_multisubdir"
8471 with_multisrctop="$with_multisrctop"
8472 with_target_subdir="$with_target_subdir"
8473 ac_configure_args="${multilib_arg} ${ac_configure_args}"
8474 multi_basedir="$multi_basedir"
8475 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
8476 CC="$CC"
8477 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8478 TARGETDIR="$TARGETDIR"
8479
8480 _ACEOF
8481
8482
8483
8484 cat >>$CONFIG_STATUS <<\_ACEOF
8485 for ac_config_target in $ac_config_targets
8486 do
8487   case "$ac_config_target" in
8488   # Handling of arguments.
8489   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
8490   "include/ffi.h" ) CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
8491   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8492   "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
8493   "include/ffitarget.h" ) CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
8494   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
8495   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8496   "include" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
8497   "src" ) CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
8498   "fficonfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
8499   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
8500 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8501    { (exit 1); exit 1; }; };;
8502   esac
8503 done
8504
8505 # If the user did not use the arguments to specify the items to instantiate,
8506 # then the envvar interface is used.  Set only those that are not.
8507 # We use the long form for the default assignment because of an extremely
8508 # bizarre bug on SunOS 4.1.3.
8509 if $ac_need_defaults; then
8510   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8511   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8512   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
8513   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8514 fi
8515
8516 # Have a temporary directory for convenience.  Make it in the build tree
8517 # simply because there is no reason to put it here, and in addition,
8518 # creating and moving files from /tmp can sometimes cause problems.
8519 # Create a temporary directory, and hook for its removal unless debugging.
8520 $debug ||
8521 {
8522   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8523   trap '{ (exit 1); exit 1; }' 1 2 13 15
8524 }
8525
8526 # Create a (secure) tmp directory for tmp files.
8527
8528 {
8529   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
8530   test -n "$tmp" && test -d "$tmp"
8531 }  ||
8532 {
8533   tmp=./confstat$$-$RANDOM
8534   (umask 077 && mkdir $tmp)
8535 } ||
8536 {
8537    echo "$me: cannot create a temporary directory in ." >&2
8538    { (exit 1); exit 1; }
8539 }
8540
8541 _ACEOF
8542
8543 cat >>$CONFIG_STATUS <<_ACEOF
8544
8545 #
8546 # CONFIG_FILES section.
8547 #
8548
8549 # No need to generate the scripts if there are no CONFIG_FILES.
8550 # This happens for instance when ./config.status config.h
8551 if test -n "\$CONFIG_FILES"; then
8552   # Protect against being on the right side of a sed subst in config.status.
8553   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8554    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8555 s,@SHELL@,$SHELL,;t t
8556 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8557 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8558 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8559 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8560 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8561 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8562 s,@exec_prefix@,$exec_prefix,;t t
8563 s,@prefix@,$prefix,;t t
8564 s,@program_transform_name@,$program_transform_name,;t t
8565 s,@bindir@,$bindir,;t t
8566 s,@sbindir@,$sbindir,;t t
8567 s,@libexecdir@,$libexecdir,;t t
8568 s,@datadir@,$datadir,;t t
8569 s,@sysconfdir@,$sysconfdir,;t t
8570 s,@sharedstatedir@,$sharedstatedir,;t t
8571 s,@localstatedir@,$localstatedir,;t t
8572 s,@libdir@,$libdir,;t t
8573 s,@includedir@,$includedir,;t t
8574 s,@oldincludedir@,$oldincludedir,;t t
8575 s,@infodir@,$infodir,;t t
8576 s,@mandir@,$mandir,;t t
8577 s,@build_alias@,$build_alias,;t t
8578 s,@host_alias@,$host_alias,;t t
8579 s,@target_alias@,$target_alias,;t t
8580 s,@DEFS@,$DEFS,;t t
8581 s,@ECHO_C@,$ECHO_C,;t t
8582 s,@ECHO_N@,$ECHO_N,;t t
8583 s,@ECHO_T@,$ECHO_T,;t t
8584 s,@LIBS@,$LIBS,;t t
8585 s,@multi_basedir@,$multi_basedir,;t t
8586 s,@build@,$build,;t t
8587 s,@build_cpu@,$build_cpu,;t t
8588 s,@build_vendor@,$build_vendor,;t t
8589 s,@build_os@,$build_os,;t t
8590 s,@host@,$host,;t t
8591 s,@host_cpu@,$host_cpu,;t t
8592 s,@host_vendor@,$host_vendor,;t t
8593 s,@host_os@,$host_os,;t t
8594 s,@target@,$target,;t t
8595 s,@target_cpu@,$target_cpu,;t t
8596 s,@target_vendor@,$target_vendor,;t t
8597 s,@target_os@,$target_os,;t t
8598 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8599 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8600 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8601 s,@CYGPATH_W@,$CYGPATH_W,;t t
8602 s,@PACKAGE@,$PACKAGE,;t t
8603 s,@VERSION@,$VERSION,;t t
8604 s,@ACLOCAL@,$ACLOCAL,;t t
8605 s,@AUTOCONF@,$AUTOCONF,;t t
8606 s,@AUTOMAKE@,$AUTOMAKE,;t t
8607 s,@AUTOHEADER@,$AUTOHEADER,;t t
8608 s,@MAKEINFO@,$MAKEINFO,;t t
8609 s,@install_sh@,$install_sh,;t t
8610 s,@STRIP@,$STRIP,;t t
8611 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8612 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
8613 s,@mkdir_p@,$mkdir_p,;t t
8614 s,@AWK@,$AWK,;t t
8615 s,@SET_MAKE@,$SET_MAKE,;t t
8616 s,@am__leading_dot@,$am__leading_dot,;t t
8617 s,@AMTAR@,$AMTAR,;t t
8618 s,@am__tar@,$am__tar,;t t
8619 s,@am__untar@,$am__untar,;t t
8620 s,@CC@,$CC,;t t
8621 s,@ac_ct_CC@,$ac_ct_CC,;t t
8622 s,@EXEEXT@,$EXEEXT,;t t
8623 s,@OBJEXT@,$OBJEXT,;t t
8624 s,@DEPDIR@,$DEPDIR,;t t
8625 s,@am__include@,$am__include,;t t
8626 s,@am__quote@,$am__quote,;t t
8627 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
8628 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
8629 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
8630 s,@CCDEPMODE@,$CCDEPMODE,;t t
8631 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
8632 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
8633 s,@CFLAGS@,$CFLAGS,;t t
8634 s,@CCAS@,$CCAS,;t t
8635 s,@CCASFLAGS@,$CCASFLAGS,;t t
8636 s,@LN_S@,$LN_S,;t t
8637 s,@RANLIB@,$RANLIB,;t t
8638 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8639 s,@LIBTOOL@,$LIBTOOL,;t t
8640 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
8641 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
8642 s,@MAINT@,$MAINT,;t t
8643 s,@CPP@,$CPP,;t t
8644 s,@CPPFLAGS@,$CPPFLAGS,;t t
8645 s,@EGREP@,$EGREP,;t t
8646 s,@TESTSUBDIR_TRUE@,$TESTSUBDIR_TRUE,;t t
8647 s,@TESTSUBDIR_FALSE@,$TESTSUBDIR_FALSE,;t t
8648 s,@AM_RUNTESTFLAGS@,$AM_RUNTESTFLAGS,;t t
8649 s,@MIPS_IRIX_TRUE@,$MIPS_IRIX_TRUE,;t t
8650 s,@MIPS_IRIX_FALSE@,$MIPS_IRIX_FALSE,;t t
8651 s,@MIPS_LINUX_TRUE@,$MIPS_LINUX_TRUE,;t t
8652 s,@MIPS_LINUX_FALSE@,$MIPS_LINUX_FALSE,;t t
8653 s,@SPARC_TRUE@,$SPARC_TRUE,;t t
8654 s,@SPARC_FALSE@,$SPARC_FALSE,;t t
8655 s,@X86_TRUE@,$X86_TRUE,;t t
8656 s,@X86_FALSE@,$X86_FALSE,;t t
8657 s,@X86_WIN32_TRUE@,$X86_WIN32_TRUE,;t t
8658 s,@X86_WIN32_FALSE@,$X86_WIN32_FALSE,;t t
8659 s,@X86_DARWIN_TRUE@,$X86_DARWIN_TRUE,;t t
8660 s,@X86_DARWIN_FALSE@,$X86_DARWIN_FALSE,;t t
8661 s,@ALPHA_TRUE@,$ALPHA_TRUE,;t t
8662 s,@ALPHA_FALSE@,$ALPHA_FALSE,;t t
8663 s,@IA64_TRUE@,$IA64_TRUE,;t t
8664 s,@IA64_FALSE@,$IA64_FALSE,;t t
8665 s,@M32R_TRUE@,$M32R_TRUE,;t t
8666 s,@M32R_FALSE@,$M32R_FALSE,;t t
8667 s,@M68K_TRUE@,$M68K_TRUE,;t t
8668 s,@M68K_FALSE@,$M68K_FALSE,;t t
8669 s,@POWERPC_TRUE@,$POWERPC_TRUE,;t t
8670 s,@POWERPC_FALSE@,$POWERPC_FALSE,;t t
8671 s,@POWERPC_AIX_TRUE@,$POWERPC_AIX_TRUE,;t t
8672 s,@POWERPC_AIX_FALSE@,$POWERPC_AIX_FALSE,;t t
8673 s,@POWERPC_DARWIN_TRUE@,$POWERPC_DARWIN_TRUE,;t t
8674 s,@POWERPC_DARWIN_FALSE@,$POWERPC_DARWIN_FALSE,;t t
8675 s,@POWERPC_FREEBSD_TRUE@,$POWERPC_FREEBSD_TRUE,;t t
8676 s,@POWERPC_FREEBSD_FALSE@,$POWERPC_FREEBSD_FALSE,;t t
8677 s,@ARM_TRUE@,$ARM_TRUE,;t t
8678 s,@ARM_FALSE@,$ARM_FALSE,;t t
8679 s,@LIBFFI_CRIS_TRUE@,$LIBFFI_CRIS_TRUE,;t t
8680 s,@LIBFFI_CRIS_FALSE@,$LIBFFI_CRIS_FALSE,;t t
8681 s,@FRV_TRUE@,$FRV_TRUE,;t t
8682 s,@FRV_FALSE@,$FRV_FALSE,;t t
8683 s,@S390_TRUE@,$S390_TRUE,;t t
8684 s,@S390_FALSE@,$S390_FALSE,;t t
8685 s,@X86_64_TRUE@,$X86_64_TRUE,;t t
8686 s,@X86_64_FALSE@,$X86_64_FALSE,;t t
8687 s,@SH_TRUE@,$SH_TRUE,;t t
8688 s,@SH_FALSE@,$SH_FALSE,;t t
8689 s,@SH64_TRUE@,$SH64_TRUE,;t t
8690 s,@SH64_FALSE@,$SH64_FALSE,;t t
8691 s,@PA_LINUX_TRUE@,$PA_LINUX_TRUE,;t t
8692 s,@PA_LINUX_FALSE@,$PA_LINUX_FALSE,;t t
8693 s,@PA_HPUX_TRUE@,$PA_HPUX_TRUE,;t t
8694 s,@PA_HPUX_FALSE@,$PA_HPUX_FALSE,;t t
8695 s,@PA64_HPUX_TRUE@,$PA64_HPUX_TRUE,;t t
8696 s,@PA64_HPUX_FALSE@,$PA64_HPUX_FALSE,;t t
8697 s,@ALLOCA@,$ALLOCA,;t t
8698 s,@HAVE_LONG_DOUBLE@,$HAVE_LONG_DOUBLE,;t t
8699 s,@TARGET@,$TARGET,;t t
8700 s,@TARGETDIR@,$TARGETDIR,;t t
8701 s,@toolexecdir@,$toolexecdir,;t t
8702 s,@toolexeclibdir@,$toolexeclibdir,;t t
8703 s,@LIBOBJS@,$LIBOBJS,;t t
8704 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
8705 CEOF
8706
8707 _ACEOF
8708
8709   cat >>$CONFIG_STATUS <<\_ACEOF
8710   # Split the substitutions into bite-sized pieces for seds with
8711   # small command number limits, like on Digital OSF/1 and HP-UX.
8712   ac_max_sed_lines=48
8713   ac_sed_frag=1 # Number of current file.
8714   ac_beg=1 # First line for current file.
8715   ac_end=$ac_max_sed_lines # Line after last line for current file.
8716   ac_more_lines=:
8717   ac_sed_cmds=
8718   while $ac_more_lines; do
8719     if test $ac_beg -gt 1; then
8720       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8721     else
8722       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8723     fi
8724     if test ! -s $tmp/subs.frag; then
8725       ac_more_lines=false
8726     else
8727       # The purpose of the label and of the branching condition is to
8728       # speed up the sed processing (if there are no `@' at all, there
8729       # is no need to browse any of the substitutions).
8730       # These are the two extra sed commands mentioned above.
8731       (echo ':t
8732   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8733       if test -z "$ac_sed_cmds"; then
8734         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8735       else
8736         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8737       fi
8738       ac_sed_frag=`expr $ac_sed_frag + 1`
8739       ac_beg=$ac_end
8740       ac_end=`expr $ac_end + $ac_max_sed_lines`
8741     fi
8742   done
8743   if test -z "$ac_sed_cmds"; then
8744     ac_sed_cmds=cat
8745   fi
8746 fi # test -n "$CONFIG_FILES"
8747
8748 _ACEOF
8749 cat >>$CONFIG_STATUS <<\_ACEOF
8750 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8751   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8752   case $ac_file in
8753   - | *:- | *:-:* ) # input from stdin
8754         cat >$tmp/stdin
8755         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8756         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8757   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8758         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8759   * )   ac_file_in=$ac_file.in ;;
8760   esac
8761
8762   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8763   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
8764 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8765          X"$ac_file" : 'X\(//\)[^/]' \| \
8766          X"$ac_file" : 'X\(//\)$' \| \
8767          X"$ac_file" : 'X\(/\)' \| \
8768          .     : '\(.\)' 2>/dev/null ||
8769 echo X"$ac_file" |
8770     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8771           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8772           /^X\(\/\/\)$/{ s//\1/; q; }
8773           /^X\(\/\).*/{ s//\1/; q; }
8774           s/.*/./; q'`
8775   { if $as_mkdir_p; then
8776     mkdir -p "$ac_dir"
8777   else
8778     as_dir="$ac_dir"
8779     as_dirs=
8780     while test ! -d "$as_dir"; do
8781       as_dirs="$as_dir $as_dirs"
8782       as_dir=`(dirname "$as_dir") 2>/dev/null ||
8783 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8784          X"$as_dir" : 'X\(//\)[^/]' \| \
8785          X"$as_dir" : 'X\(//\)$' \| \
8786          X"$as_dir" : 'X\(/\)' \| \
8787          .     : '\(.\)' 2>/dev/null ||
8788 echo X"$as_dir" |
8789     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8790           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8791           /^X\(\/\/\)$/{ s//\1/; q; }
8792           /^X\(\/\).*/{ s//\1/; q; }
8793           s/.*/./; q'`
8794     done
8795     test ! -n "$as_dirs" || mkdir $as_dirs
8796   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
8797 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
8798    { (exit 1); exit 1; }; }; }
8799
8800   ac_builddir=.
8801
8802 if test "$ac_dir" != .; then
8803   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8804   # A "../" for each directory in $ac_dir_suffix.
8805   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
8806 else
8807   ac_dir_suffix= ac_top_builddir=
8808 fi
8809
8810 case $srcdir in
8811   .)  # No --srcdir option.  We are building in place.
8812     ac_srcdir=.
8813     if test -z "$ac_top_builddir"; then
8814        ac_top_srcdir=.
8815     else
8816        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
8817     fi ;;
8818   [\\/]* | ?:[\\/]* )  # Absolute path.
8819     ac_srcdir=$srcdir$ac_dir_suffix;
8820     ac_top_srcdir=$srcdir ;;
8821   *) # Relative path.
8822     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
8823     ac_top_srcdir=$ac_top_builddir$srcdir ;;
8824 esac
8825
8826 # Do not use `cd foo && pwd` to compute absolute paths, because
8827 # the directories may not exist.
8828 case `pwd` in
8829 .) ac_abs_builddir="$ac_dir";;
8830 *)
8831   case "$ac_dir" in
8832   .) ac_abs_builddir=`pwd`;;
8833   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
8834   *) ac_abs_builddir=`pwd`/"$ac_dir";;
8835   esac;;
8836 esac
8837 case $ac_abs_builddir in
8838 .) ac_abs_top_builddir=${ac_top_builddir}.;;
8839 *)
8840   case ${ac_top_builddir}. in
8841   .) ac_abs_top_builddir=$ac_abs_builddir;;
8842   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
8843   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
8844   esac;;
8845 esac
8846 case $ac_abs_builddir in
8847 .) ac_abs_srcdir=$ac_srcdir;;
8848 *)
8849   case $ac_srcdir in
8850   .) ac_abs_srcdir=$ac_abs_builddir;;
8851   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
8852   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
8853   esac;;
8854 esac
8855 case $ac_abs_builddir in
8856 .) ac_abs_top_srcdir=$ac_top_srcdir;;
8857 *)
8858   case $ac_top_srcdir in
8859   .) ac_abs_top_srcdir=$ac_abs_builddir;;
8860   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
8861   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
8862   esac;;
8863 esac
8864
8865
8866   case $INSTALL in
8867   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8868   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
8869   esac
8870
8871   if test x"$ac_file" != x-; then
8872     { echo "$as_me:$LINENO: creating $ac_file" >&5
8873 echo "$as_me: creating $ac_file" >&6;}
8874     rm -f "$ac_file"
8875   fi
8876   # Let's still pretend it is `configure' which instantiates (i.e., don't
8877   # use $as_me), people would be surprised to read:
8878   #    /* config.h.  Generated by config.status.  */
8879   if test x"$ac_file" = x-; then
8880     configure_input=
8881   else
8882     configure_input="$ac_file.  "
8883   fi
8884   configure_input=$configure_input"Generated from `echo $ac_file_in |
8885                                      sed 's,.*/,,'` by configure."
8886
8887   # First look for the input files in the build tree, otherwise in the
8888   # src tree.
8889   ac_file_inputs=`IFS=:
8890     for f in $ac_file_in; do
8891       case $f in
8892       -) echo $tmp/stdin ;;
8893       [\\/$]*)
8894          # Absolute (can't be DOS-style, as IFS=:)
8895          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8896 echo "$as_me: error: cannot find input file: $f" >&2;}
8897    { (exit 1); exit 1; }; }
8898          echo "$f";;
8899       *) # Relative
8900          if test -f "$f"; then
8901            # Build tree
8902            echo "$f"
8903          elif test -f "$srcdir/$f"; then
8904            # Source tree
8905            echo "$srcdir/$f"
8906          else
8907            # /dev/null tree
8908            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8909 echo "$as_me: error: cannot find input file: $f" >&2;}
8910    { (exit 1); exit 1; }; }
8911          fi;;
8912       esac
8913     done` || { (exit 1); exit 1; }
8914 _ACEOF
8915 cat >>$CONFIG_STATUS <<_ACEOF
8916   sed "$ac_vpsub
8917 $extrasub
8918 _ACEOF
8919 cat >>$CONFIG_STATUS <<\_ACEOF
8920 :t
8921 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8922 s,@configure_input@,$configure_input,;t t
8923 s,@srcdir@,$ac_srcdir,;t t
8924 s,@abs_srcdir@,$ac_abs_srcdir,;t t
8925 s,@top_srcdir@,$ac_top_srcdir,;t t
8926 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
8927 s,@builddir@,$ac_builddir,;t t
8928 s,@abs_builddir@,$ac_abs_builddir,;t t
8929 s,@top_builddir@,$ac_top_builddir,;t t
8930 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
8931 s,@INSTALL@,$ac_INSTALL,;t t
8932 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
8933   rm -f $tmp/stdin
8934   if test x"$ac_file" != x-; then
8935     mv $tmp/out $ac_file
8936   else
8937     cat $tmp/out
8938     rm -f $tmp/out
8939   fi
8940
8941 done
8942 _ACEOF
8943 cat >>$CONFIG_STATUS <<\_ACEOF
8944
8945 #
8946 # CONFIG_HEADER section.
8947 #
8948
8949 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8950 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8951 #
8952 # ac_d sets the value in "#define NAME VALUE" lines.
8953 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
8954 ac_dB='[         ].*$,\1#\2'
8955 ac_dC=' '
8956 ac_dD=',;t'
8957 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8958 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
8959 ac_uB='$,\1#\2define\3'
8960 ac_uC=' '
8961 ac_uD=',;t'
8962
8963 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
8964   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8965   case $ac_file in
8966   - | *:- | *:-:* ) # input from stdin
8967         cat >$tmp/stdin
8968         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8969         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8970   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8971         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8972   * )   ac_file_in=$ac_file.in ;;
8973   esac
8974
8975   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
8976 echo "$as_me: creating $ac_file" >&6;}
8977
8978   # First look for the input files in the build tree, otherwise in the
8979   # src tree.
8980   ac_file_inputs=`IFS=:
8981     for f in $ac_file_in; do
8982       case $f in
8983       -) echo $tmp/stdin ;;
8984       [\\/$]*)
8985          # Absolute (can't be DOS-style, as IFS=:)
8986          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
8987 echo "$as_me: error: cannot find input file: $f" >&2;}
8988    { (exit 1); exit 1; }; }
8989          # Do quote $f, to prevent DOS paths from being IFS'd.
8990          echo "$f";;
8991       *) # Relative
8992          if test -f "$f"; then
8993            # Build tree
8994            echo "$f"
8995          elif test -f "$srcdir/$f"; then
8996            # Source tree
8997            echo "$srcdir/$f"
8998          else
8999            # /dev/null tree
9000            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9001 echo "$as_me: error: cannot find input file: $f" >&2;}
9002    { (exit 1); exit 1; }; }
9003          fi;;
9004       esac
9005     done` || { (exit 1); exit 1; }
9006   # Remove the trailing spaces.
9007   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
9008
9009 _ACEOF
9010
9011 # Transform confdefs.h into two sed scripts, `conftest.defines' and
9012 # `conftest.undefs', that substitutes the proper values into
9013 # config.h.in to produce config.h.  The first handles `#define'
9014 # templates, and the second `#undef' templates.
9015 # And first: Protect against being on the right side of a sed subst in
9016 # config.status.  Protect against being in an unquoted here document
9017 # in config.status.
9018 rm -f conftest.defines conftest.undefs
9019 # Using a here document instead of a string reduces the quoting nightmare.
9020 # Putting comments in sed scripts is not portable.
9021 #
9022 # `end' is used to avoid that the second main sed command (meant for
9023 # 0-ary CPP macros) applies to n-ary macro definitions.
9024 # See the Autoconf documentation for `clear'.
9025 cat >confdef2sed.sed <<\_ACEOF
9026 s/[\\&,]/\\&/g
9027 s,[\\$`],\\&,g
9028 t clear
9029 : clear
9030 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
9031 t end
9032 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
9033 : end
9034 _ACEOF
9035 # If some macros were called several times there might be several times
9036 # the same #defines, which is useless.  Nevertheless, we may not want to
9037 # sort them, since we want the *last* AC-DEFINE to be honored.
9038 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
9039 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
9040 rm -f confdef2sed.sed
9041
9042 # This sed command replaces #undef with comments.  This is necessary, for
9043 # example, in the case of _POSIX_SOURCE, which is predefined and required
9044 # on some systems where configure will not decide to define it.
9045 cat >>conftest.undefs <<\_ACEOF
9046 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
9047 _ACEOF
9048
9049 # Break up conftest.defines because some shells have a limit on the size
9050 # of here documents, and old seds have small limits too (100 cmds).
9051 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
9052 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
9053 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
9054 echo '  :' >>$CONFIG_STATUS
9055 rm -f conftest.tail
9056 while grep . conftest.defines >/dev/null
9057 do
9058   # Write a limited-size here document to $tmp/defines.sed.
9059   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
9060   # Speed up: don't consider the non `#define' lines.
9061   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
9062   # Work around the forget-to-reset-the-flag bug.
9063   echo 't clr' >>$CONFIG_STATUS
9064   echo ': clr' >>$CONFIG_STATUS
9065   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
9066   echo 'CEOF
9067   sed -f $tmp/defines.sed $tmp/in >$tmp/out
9068   rm -f $tmp/in
9069   mv $tmp/out $tmp/in
9070 ' >>$CONFIG_STATUS
9071   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
9072   rm -f conftest.defines
9073   mv conftest.tail conftest.defines
9074 done
9075 rm -f conftest.defines
9076 echo '  fi # grep' >>$CONFIG_STATUS
9077 echo >>$CONFIG_STATUS
9078
9079 # Break up conftest.undefs because some shells have a limit on the size
9080 # of here documents, and old seds have small limits too (100 cmds).
9081 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
9082 rm -f conftest.tail
9083 while grep . conftest.undefs >/dev/null
9084 do
9085   # Write a limited-size here document to $tmp/undefs.sed.
9086   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
9087   # Speed up: don't consider the non `#undef'
9088   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
9089   # Work around the forget-to-reset-the-flag bug.
9090   echo 't clr' >>$CONFIG_STATUS
9091   echo ': clr' >>$CONFIG_STATUS
9092   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
9093   echo 'CEOF
9094   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
9095   rm -f $tmp/in
9096   mv $tmp/out $tmp/in
9097 ' >>$CONFIG_STATUS
9098   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
9099   rm -f conftest.undefs
9100   mv conftest.tail conftest.undefs
9101 done
9102 rm -f conftest.undefs
9103
9104 cat >>$CONFIG_STATUS <<\_ACEOF
9105   # Let's still pretend it is `configure' which instantiates (i.e., don't
9106   # use $as_me), people would be surprised to read:
9107   #    /* config.h.  Generated by config.status.  */
9108   if test x"$ac_file" = x-; then
9109     echo "/* Generated by configure.  */" >$tmp/config.h
9110   else
9111     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
9112   fi
9113   cat $tmp/in >>$tmp/config.h
9114   rm -f $tmp/in
9115   if test x"$ac_file" != x-; then
9116     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
9117       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9118 echo "$as_me: $ac_file is unchanged" >&6;}
9119     else
9120       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
9121 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9122          X"$ac_file" : 'X\(//\)[^/]' \| \
9123          X"$ac_file" : 'X\(//\)$' \| \
9124          X"$ac_file" : 'X\(/\)' \| \
9125          .     : '\(.\)' 2>/dev/null ||
9126 echo X"$ac_file" |
9127     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9128           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9129           /^X\(\/\/\)$/{ s//\1/; q; }
9130           /^X\(\/\).*/{ s//\1/; q; }
9131           s/.*/./; q'`
9132       { if $as_mkdir_p; then
9133     mkdir -p "$ac_dir"
9134   else
9135     as_dir="$ac_dir"
9136     as_dirs=
9137     while test ! -d "$as_dir"; do
9138       as_dirs="$as_dir $as_dirs"
9139       as_dir=`(dirname "$as_dir") 2>/dev/null ||
9140 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9141          X"$as_dir" : 'X\(//\)[^/]' \| \
9142          X"$as_dir" : 'X\(//\)$' \| \
9143          X"$as_dir" : 'X\(/\)' \| \
9144          .     : '\(.\)' 2>/dev/null ||
9145 echo X"$as_dir" |
9146     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9147           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9148           /^X\(\/\/\)$/{ s//\1/; q; }
9149           /^X\(\/\).*/{ s//\1/; q; }
9150           s/.*/./; q'`
9151     done
9152     test ! -n "$as_dirs" || mkdir $as_dirs
9153   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9154 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9155    { (exit 1); exit 1; }; }; }
9156
9157       rm -f $ac_file
9158       mv $tmp/config.h $ac_file
9159     fi
9160   else
9161     cat $tmp/config.h
9162     rm -f $tmp/config.h
9163   fi
9164 # Compute $ac_file's index in $config_headers.
9165 _am_stamp_count=1
9166 for _am_header in $config_headers :; do
9167   case $_am_header in
9168     $ac_file | $ac_file:* )
9169       break ;;
9170     * )
9171       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9172   esac
9173 done
9174 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
9175 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9176          X$ac_file : 'X\(//\)[^/]' \| \
9177          X$ac_file : 'X\(//\)$' \| \
9178          X$ac_file : 'X\(/\)' \| \
9179          .     : '\(.\)' 2>/dev/null ||
9180 echo X$ac_file |
9181     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9182           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9183           /^X\(\/\/\)$/{ s//\1/; q; }
9184           /^X\(\/\).*/{ s//\1/; q; }
9185           s/.*/./; q'`/stamp-h$_am_stamp_count
9186 done
9187 _ACEOF
9188 cat >>$CONFIG_STATUS <<\_ACEOF
9189
9190 #
9191 # CONFIG_LINKS section.
9192 #
9193
9194 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
9195   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9196   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9197
9198   { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
9199 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
9200
9201   if test ! -r $srcdir/$ac_source; then
9202     { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
9203 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
9204    { (exit 1); exit 1; }; }
9205   fi
9206   rm -f $ac_dest
9207
9208   # Make relative symlinks.
9209   ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
9210 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9211          X"$ac_dest" : 'X\(//\)[^/]' \| \
9212          X"$ac_dest" : 'X\(//\)$' \| \
9213          X"$ac_dest" : 'X\(/\)' \| \
9214          .     : '\(.\)' 2>/dev/null ||
9215 echo X"$ac_dest" |
9216     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9217           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9218           /^X\(\/\/\)$/{ s//\1/; q; }
9219           /^X\(\/\).*/{ s//\1/; q; }
9220           s/.*/./; q'`
9221   { if $as_mkdir_p; then
9222     mkdir -p "$ac_dest_dir"
9223   else
9224     as_dir="$ac_dest_dir"
9225     as_dirs=
9226     while test ! -d "$as_dir"; do
9227       as_dirs="$as_dir $as_dirs"
9228       as_dir=`(dirname "$as_dir") 2>/dev/null ||
9229 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9230          X"$as_dir" : 'X\(//\)[^/]' \| \
9231          X"$as_dir" : 'X\(//\)$' \| \
9232          X"$as_dir" : 'X\(/\)' \| \
9233          .     : '\(.\)' 2>/dev/null ||
9234 echo X"$as_dir" |
9235     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9236           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9237           /^X\(\/\/\)$/{ s//\1/; q; }
9238           /^X\(\/\).*/{ s//\1/; q; }
9239           s/.*/./; q'`
9240     done
9241     test ! -n "$as_dirs" || mkdir $as_dirs
9242   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
9243 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
9244    { (exit 1); exit 1; }; }; }
9245
9246   ac_builddir=.
9247
9248 if test "$ac_dest_dir" != .; then
9249   ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
9250   # A "../" for each directory in $ac_dir_suffix.
9251   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9252 else
9253   ac_dir_suffix= ac_top_builddir=
9254 fi
9255
9256 case $srcdir in
9257   .)  # No --srcdir option.  We are building in place.
9258     ac_srcdir=.
9259     if test -z "$ac_top_builddir"; then
9260        ac_top_srcdir=.
9261     else
9262        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9263     fi ;;
9264   [\\/]* | ?:[\\/]* )  # Absolute path.
9265     ac_srcdir=$srcdir$ac_dir_suffix;
9266     ac_top_srcdir=$srcdir ;;
9267   *) # Relative path.
9268     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9269     ac_top_srcdir=$ac_top_builddir$srcdir ;;
9270 esac
9271
9272 # Do not use `cd foo && pwd` to compute absolute paths, because
9273 # the directories may not exist.
9274 case `pwd` in
9275 .) ac_abs_builddir="$ac_dest_dir";;
9276 *)
9277   case "$ac_dest_dir" in
9278   .) ac_abs_builddir=`pwd`;;
9279   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
9280   *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
9281   esac;;
9282 esac
9283 case $ac_abs_builddir in
9284 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9285 *)
9286   case ${ac_top_builddir}. in
9287   .) ac_abs_top_builddir=$ac_abs_builddir;;
9288   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9289   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9290   esac;;
9291 esac
9292 case $ac_abs_builddir in
9293 .) ac_abs_srcdir=$ac_srcdir;;
9294 *)
9295   case $ac_srcdir in
9296   .) ac_abs_srcdir=$ac_abs_builddir;;
9297   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9298   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9299   esac;;
9300 esac
9301 case $ac_abs_builddir in
9302 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9303 *)
9304   case $ac_top_srcdir in
9305   .) ac_abs_top_srcdir=$ac_abs_builddir;;
9306   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9307   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9308   esac;;
9309 esac
9310
9311
9312   case $srcdir in
9313   [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
9314       *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
9315   esac
9316
9317   # Try a symlink, then a hard link, then a copy.
9318   ln -s $ac_rel_source $ac_dest 2>/dev/null ||
9319     ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
9320     cp -p $srcdir/$ac_source $ac_dest ||
9321     { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
9322 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
9323    { (exit 1); exit 1; }; }
9324 done
9325 _ACEOF
9326 cat >>$CONFIG_STATUS <<\_ACEOF
9327
9328 #
9329 # CONFIG_COMMANDS section.
9330 #
9331 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9332   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9333   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9334   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
9335 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9336          X"$ac_dest" : 'X\(//\)[^/]' \| \
9337          X"$ac_dest" : 'X\(//\)$' \| \
9338          X"$ac_dest" : 'X\(/\)' \| \
9339          .     : '\(.\)' 2>/dev/null ||
9340 echo X"$ac_dest" |
9341     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9342           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9343           /^X\(\/\/\)$/{ s//\1/; q; }
9344           /^X\(\/\).*/{ s//\1/; q; }
9345           s/.*/./; q'`
9346   { if $as_mkdir_p; then
9347     mkdir -p "$ac_dir"
9348   else
9349     as_dir="$ac_dir"
9350     as_dirs=
9351     while test ! -d "$as_dir"; do
9352       as_dirs="$as_dir $as_dirs"
9353       as_dir=`(dirname "$as_dir") 2>/dev/null ||
9354 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9355          X"$as_dir" : 'X\(//\)[^/]' \| \
9356          X"$as_dir" : 'X\(//\)$' \| \
9357          X"$as_dir" : 'X\(/\)' \| \
9358          .     : '\(.\)' 2>/dev/null ||
9359 echo X"$as_dir" |
9360     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9361           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9362           /^X\(\/\/\)$/{ s//\1/; q; }
9363           /^X\(\/\).*/{ s//\1/; q; }
9364           s/.*/./; q'`
9365     done
9366     test ! -n "$as_dirs" || mkdir $as_dirs
9367   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
9368 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
9369    { (exit 1); exit 1; }; }; }
9370
9371   ac_builddir=.
9372
9373 if test "$ac_dir" != .; then
9374   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9375   # A "../" for each directory in $ac_dir_suffix.
9376   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
9377 else
9378   ac_dir_suffix= ac_top_builddir=
9379 fi
9380
9381 case $srcdir in
9382   .)  # No --srcdir option.  We are building in place.
9383     ac_srcdir=.
9384     if test -z "$ac_top_builddir"; then
9385        ac_top_srcdir=.
9386     else
9387        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
9388     fi ;;
9389   [\\/]* | ?:[\\/]* )  # Absolute path.
9390     ac_srcdir=$srcdir$ac_dir_suffix;
9391     ac_top_srcdir=$srcdir ;;
9392   *) # Relative path.
9393     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
9394     ac_top_srcdir=$ac_top_builddir$srcdir ;;
9395 esac
9396
9397 # Do not use `cd foo && pwd` to compute absolute paths, because
9398 # the directories may not exist.
9399 case `pwd` in
9400 .) ac_abs_builddir="$ac_dir";;
9401 *)
9402   case "$ac_dir" in
9403   .) ac_abs_builddir=`pwd`;;
9404   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
9405   *) ac_abs_builddir=`pwd`/"$ac_dir";;
9406   esac;;
9407 esac
9408 case $ac_abs_builddir in
9409 .) ac_abs_top_builddir=${ac_top_builddir}.;;
9410 *)
9411   case ${ac_top_builddir}. in
9412   .) ac_abs_top_builddir=$ac_abs_builddir;;
9413   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
9414   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
9415   esac;;
9416 esac
9417 case $ac_abs_builddir in
9418 .) ac_abs_srcdir=$ac_srcdir;;
9419 *)
9420   case $ac_srcdir in
9421   .) ac_abs_srcdir=$ac_abs_builddir;;
9422   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
9423   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
9424   esac;;
9425 esac
9426 case $ac_abs_builddir in
9427 .) ac_abs_top_srcdir=$ac_top_srcdir;;
9428 *)
9429   case $ac_top_srcdir in
9430   .) ac_abs_top_srcdir=$ac_abs_builddir;;
9431   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
9432   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
9433   esac;;
9434 esac
9435
9436
9437   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
9438 echo "$as_me: executing $ac_dest commands" >&6;}
9439   case $ac_dest in
9440     default-1 )
9441 # Only add multilib support code if we just rebuilt the top-level
9442 # Makefile.
9443 case " $CONFIG_FILES " in
9444  *" Makefile "*)
9445    ac_file=Makefile . ${multi_basedir}/config-ml.in
9446    ;;
9447 esac ;;
9448     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
9449   # Strip MF so we end up with the name of the file.
9450   mf=`echo "$mf" | sed -e 's/:.*$//'`
9451   # Check whether this is an Automake generated Makefile or not.
9452   # We used to match only the files named `Makefile.in', but
9453   # some people rename them; so instead we look at the file content.
9454   # Grep'ing the first line is not enough: some people post-process
9455   # each Makefile.in and add a new line on top of each file to say so.
9456   # So let's grep whole file.
9457   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
9458     dirpart=`(dirname "$mf") 2>/dev/null ||
9459 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9460          X"$mf" : 'X\(//\)[^/]' \| \
9461          X"$mf" : 'X\(//\)$' \| \
9462          X"$mf" : 'X\(/\)' \| \
9463          .     : '\(.\)' 2>/dev/null ||
9464 echo X"$mf" |
9465     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9466           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9467           /^X\(\/\/\)$/{ s//\1/; q; }
9468           /^X\(\/\).*/{ s//\1/; q; }
9469           s/.*/./; q'`
9470   else
9471     continue
9472   fi
9473   # Extract the definition of DEPDIR, am__include, and am__quote
9474   # from the Makefile without running `make'.
9475   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9476   test -z "$DEPDIR" && continue
9477   am__include=`sed -n 's/^am__include = //p' < "$mf"`
9478   test -z "am__include" && continue
9479   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9480   # When using ansi2knr, U may be empty or an underscore; expand it
9481   U=`sed -n 's/^U = //p' < "$mf"`
9482   # Find all dependency output files, they are included files with
9483   # $(DEPDIR) in their names.  We invoke sed twice because it is the
9484   # simplest approach to changing $(DEPDIR) to its actual value in the
9485   # expansion.
9486   for file in `sed -n "
9487     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9488        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9489     # Make sure the directory exists.
9490     test -f "$dirpart/$file" && continue
9491     fdir=`(dirname "$file") 2>/dev/null ||
9492 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9493          X"$file" : 'X\(//\)[^/]' \| \
9494          X"$file" : 'X\(//\)$' \| \
9495          X"$file" : 'X\(/\)' \| \
9496          .     : '\(.\)' 2>/dev/null ||
9497 echo X"$file" |
9498     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9499           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9500           /^X\(\/\/\)$/{ s//\1/; q; }
9501           /^X\(\/\).*/{ s//\1/; q; }
9502           s/.*/./; q'`
9503     { if $as_mkdir_p; then
9504     mkdir -p $dirpart/$fdir
9505   else
9506     as_dir=$dirpart/$fdir
9507     as_dirs=
9508     while test ! -d "$as_dir"; do
9509       as_dirs="$as_dir $as_dirs"
9510       as_dir=`(dirname "$as_dir") 2>/dev/null ||
9511 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9512          X"$as_dir" : 'X\(//\)[^/]' \| \
9513          X"$as_dir" : 'X\(//\)$' \| \
9514          X"$as_dir" : 'X\(/\)' \| \
9515          .     : '\(.\)' 2>/dev/null ||
9516 echo X"$as_dir" |
9517     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9518           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9519           /^X\(\/\/\)$/{ s//\1/; q; }
9520           /^X\(\/\).*/{ s//\1/; q; }
9521           s/.*/./; q'`
9522     done
9523     test ! -n "$as_dirs" || mkdir $as_dirs
9524   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
9525 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
9526    { (exit 1); exit 1; }; }; }
9527
9528     # echo "creating $dirpart/$file"
9529     echo '# dummy' > "$dirpart/$file"
9530   done
9531 done
9532  ;;
9533     include ) test -d include || mkdir include ;;
9534     src )
9535 test -d src || mkdir src
9536 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
9537  ;;
9538   esac
9539 done
9540 _ACEOF
9541
9542 cat >>$CONFIG_STATUS <<\_ACEOF
9543
9544 { (exit 0); exit 0; }
9545 _ACEOF
9546 chmod +x $CONFIG_STATUS
9547 ac_clean_files=$ac_clean_files_save
9548
9549
9550 # configure is writing to config.log, and then calls config.status.
9551 # config.status does its own redirection, appending to config.log.
9552 # Unfortunately, on DOS this fails, as config.log is still kept open
9553 # by configure, so config.status won't be able to write to it; its
9554 # output is simply discarded.  So we exec the FD to /dev/null,
9555 # effectively closing config.log, so it can be properly (re)opened and
9556 # appended to by config.status.  When coming back to configure, we
9557 # need to make the FD available again.
9558 if test "$no_create" != yes; then
9559   ac_cs_success=:
9560   ac_config_status_args=
9561   test "$silent" = yes &&
9562     ac_config_status_args="$ac_config_status_args --quiet"
9563   exec 5>/dev/null
9564   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9565   exec 5>>config.log
9566   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9567   # would make configure fail if this is the last instruction.
9568   $ac_cs_success || { (exit 1); exit 1; }
9569 fi
9570