OSDN Git Service

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