* ggc-page.c (alloc_page): If HAVE_MMAP_ANYWHERE and we're
[official-gcc.git] / libffi / configure
blobd25a6eed59084a33d7a7f9b838d53d9b25e90e7a
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-multilib build many library versions (default)"
16 ac_help="$ac_help
17 --enable-maintainer-mode enable make rules and dependencies not useful
18 (and sometimes confusing) to the casual installer"
19 ac_help="$ac_help
20 --enable-shared[=PKGS] build shared libraries [default=yes]"
21 ac_help="$ac_help
22 --enable-static[=PKGS] build static libraries [default=yes]"
23 ac_help="$ac_help
24 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
25 ac_help="$ac_help
26 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
27 ac_help="$ac_help
28 --disable-libtool-lock avoid locking (might break parallel builds)"
29 ac_help="$ac_help
30 --enable-debug debugging mode"
31 ac_help="$ac_help
32 --disable-structs omit code for struct support"
33 ac_help="$ac_help
34 --disable-raw-api make the raw api unavailable"
35 ac_help="$ac_help
36 --enable-purify-safety purify-safe mode"
38 # Initialize some variables set by options.
39 # The variables have the same names as the options, with
40 # dashes changed to underlines.
41 build=NONE
42 cache_file=./config.cache
43 exec_prefix=NONE
44 host=NONE
45 no_create=
46 nonopt=NONE
47 no_recursion=
48 prefix=NONE
49 program_prefix=NONE
50 program_suffix=NONE
51 program_transform_name=s,x,x,
52 silent=
53 site=
54 sitefile=
55 srcdir=
56 target=NONE
57 verbose=
58 x_includes=NONE
59 x_libraries=NONE
60 bindir='${exec_prefix}/bin'
61 sbindir='${exec_prefix}/sbin'
62 libexecdir='${exec_prefix}/libexec'
63 datadir='${prefix}/share'
64 sysconfdir='${prefix}/etc'
65 sharedstatedir='${prefix}/com'
66 localstatedir='${prefix}/var'
67 libdir='${exec_prefix}/lib'
68 includedir='${prefix}/include'
69 oldincludedir='/usr/include'
70 infodir='${prefix}/info'
71 mandir='${prefix}/man'
73 # Initialize some other variables.
74 subdirs=
75 MFLAGS= MAKEFLAGS=
76 SHELL=${CONFIG_SHELL-/bin/sh}
77 # Maximum number of lines to put in a shell here document.
78 ac_max_here_lines=12
80 ac_prev=
81 for ac_option
84 # If the previous option needs an argument, assign it.
85 if test -n "$ac_prev"; then
86 eval "$ac_prev=\$ac_option"
87 ac_prev=
88 continue
91 case "$ac_option" in
92 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
93 *) ac_optarg= ;;
94 esac
96 # Accept the important Cygnus configure options, so we can diagnose typos.
98 case "$ac_option" in
100 -bindir | --bindir | --bindi | --bind | --bin | --bi)
101 ac_prev=bindir ;;
102 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
103 bindir="$ac_optarg" ;;
105 -build | --build | --buil | --bui | --bu)
106 ac_prev=build ;;
107 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
108 build="$ac_optarg" ;;
110 -cache-file | --cache-file | --cache-fil | --cache-fi \
111 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
112 ac_prev=cache_file ;;
113 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
114 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
115 cache_file="$ac_optarg" ;;
117 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
118 ac_prev=datadir ;;
119 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
120 | --da=*)
121 datadir="$ac_optarg" ;;
123 -disable-* | --disable-*)
124 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
125 # Reject names that are not valid shell variable names.
126 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
127 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
129 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
130 eval "enable_${ac_feature}=no" ;;
132 -enable-* | --enable-*)
133 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
134 # Reject names that are not valid shell variable names.
135 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
136 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
138 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
139 case "$ac_option" in
140 *=*) ;;
141 *) ac_optarg=yes ;;
142 esac
143 eval "enable_${ac_feature}='$ac_optarg'" ;;
145 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
146 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
147 | --exec | --exe | --ex)
148 ac_prev=exec_prefix ;;
149 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
150 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
151 | --exec=* | --exe=* | --ex=*)
152 exec_prefix="$ac_optarg" ;;
154 -gas | --gas | --ga | --g)
155 # Obsolete; use --with-gas.
156 with_gas=yes ;;
158 -help | --help | --hel | --he)
159 # Omit some internal or obsolete options to make the list less imposing.
160 # This message is too long to be a string in the A/UX 3.1 sh.
161 cat << EOF
162 Usage: configure [options] [host]
163 Options: [defaults in brackets after descriptions]
164 Configuration:
165 --cache-file=FILE cache test results in FILE
166 --help print this message
167 --no-create do not create output files
168 --quiet, --silent do not print \`checking...' messages
169 --site-file=FILE use FILE as the site file
170 --version print the version of autoconf that created configure
171 Directory and file names:
172 --prefix=PREFIX install architecture-independent files in PREFIX
173 [$ac_default_prefix]
174 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
175 [same as prefix]
176 --bindir=DIR user executables in DIR [EPREFIX/bin]
177 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
178 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
179 --datadir=DIR read-only architecture-independent data in DIR
180 [PREFIX/share]
181 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
182 --sharedstatedir=DIR modifiable architecture-independent data in DIR
183 [PREFIX/com]
184 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
185 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
186 --includedir=DIR C header files in DIR [PREFIX/include]
187 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
188 --infodir=DIR info documentation in DIR [PREFIX/info]
189 --mandir=DIR man documentation in DIR [PREFIX/man]
190 --srcdir=DIR find the sources in DIR [configure dir or ..]
191 --program-prefix=PREFIX prepend PREFIX to installed program names
192 --program-suffix=SUFFIX append SUFFIX to installed program names
193 --program-transform-name=PROGRAM
194 run sed PROGRAM on installed program names
196 cat << EOF
197 Host type:
198 --build=BUILD configure for building on BUILD [BUILD=HOST]
199 --host=HOST configure for HOST [guessed]
200 --target=TARGET configure for TARGET [TARGET=HOST]
201 Features and packages:
202 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
203 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
204 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
205 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
206 --x-includes=DIR X include files are in DIR
207 --x-libraries=DIR X library files are in DIR
209 if test -n "$ac_help"; then
210 echo "--enable and --with options recognized:$ac_help"
212 exit 0 ;;
214 -host | --host | --hos | --ho)
215 ac_prev=host ;;
216 -host=* | --host=* | --hos=* | --ho=*)
217 host="$ac_optarg" ;;
219 -includedir | --includedir | --includedi | --included | --include \
220 | --includ | --inclu | --incl | --inc)
221 ac_prev=includedir ;;
222 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
223 | --includ=* | --inclu=* | --incl=* | --inc=*)
224 includedir="$ac_optarg" ;;
226 -infodir | --infodir | --infodi | --infod | --info | --inf)
227 ac_prev=infodir ;;
228 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
229 infodir="$ac_optarg" ;;
231 -libdir | --libdir | --libdi | --libd)
232 ac_prev=libdir ;;
233 -libdir=* | --libdir=* | --libdi=* | --libd=*)
234 libdir="$ac_optarg" ;;
236 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
237 | --libexe | --libex | --libe)
238 ac_prev=libexecdir ;;
239 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
240 | --libexe=* | --libex=* | --libe=*)
241 libexecdir="$ac_optarg" ;;
243 -localstatedir | --localstatedir | --localstatedi | --localstated \
244 | --localstate | --localstat | --localsta | --localst \
245 | --locals | --local | --loca | --loc | --lo)
246 ac_prev=localstatedir ;;
247 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
248 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
249 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
250 localstatedir="$ac_optarg" ;;
252 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
253 ac_prev=mandir ;;
254 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
255 mandir="$ac_optarg" ;;
257 -nfp | --nfp | --nf)
258 # Obsolete; use --without-fp.
259 with_fp=no ;;
261 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
262 | --no-cr | --no-c)
263 no_create=yes ;;
265 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
266 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
267 no_recursion=yes ;;
269 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
270 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
271 | --oldin | --oldi | --old | --ol | --o)
272 ac_prev=oldincludedir ;;
273 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
274 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
275 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
276 oldincludedir="$ac_optarg" ;;
278 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
279 ac_prev=prefix ;;
280 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
281 prefix="$ac_optarg" ;;
283 -program-prefix | --program-prefix | --program-prefi | --program-pref \
284 | --program-pre | --program-pr | --program-p)
285 ac_prev=program_prefix ;;
286 -program-prefix=* | --program-prefix=* | --program-prefi=* \
287 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
288 program_prefix="$ac_optarg" ;;
290 -program-suffix | --program-suffix | --program-suffi | --program-suff \
291 | --program-suf | --program-su | --program-s)
292 ac_prev=program_suffix ;;
293 -program-suffix=* | --program-suffix=* | --program-suffi=* \
294 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
295 program_suffix="$ac_optarg" ;;
297 -program-transform-name | --program-transform-name \
298 | --program-transform-nam | --program-transform-na \
299 | --program-transform-n | --program-transform- \
300 | --program-transform | --program-transfor \
301 | --program-transfo | --program-transf \
302 | --program-trans | --program-tran \
303 | --progr-tra | --program-tr | --program-t)
304 ac_prev=program_transform_name ;;
305 -program-transform-name=* | --program-transform-name=* \
306 | --program-transform-nam=* | --program-transform-na=* \
307 | --program-transform-n=* | --program-transform-=* \
308 | --program-transform=* | --program-transfor=* \
309 | --program-transfo=* | --program-transf=* \
310 | --program-trans=* | --program-tran=* \
311 | --progr-tra=* | --program-tr=* | --program-t=*)
312 program_transform_name="$ac_optarg" ;;
314 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
315 | -silent | --silent | --silen | --sile | --sil)
316 silent=yes ;;
318 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
319 ac_prev=sbindir ;;
320 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
321 | --sbi=* | --sb=*)
322 sbindir="$ac_optarg" ;;
324 -sharedstatedir | --sharedstatedir | --sharedstatedi \
325 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
326 | --sharedst | --shareds | --shared | --share | --shar \
327 | --sha | --sh)
328 ac_prev=sharedstatedir ;;
329 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
330 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
331 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
332 | --sha=* | --sh=*)
333 sharedstatedir="$ac_optarg" ;;
335 -site | --site | --sit)
336 ac_prev=site ;;
337 -site=* | --site=* | --sit=*)
338 site="$ac_optarg" ;;
340 -site-file | --site-file | --site-fil | --site-fi | --site-f)
341 ac_prev=sitefile ;;
342 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
343 sitefile="$ac_optarg" ;;
345 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
346 ac_prev=srcdir ;;
347 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
348 srcdir="$ac_optarg" ;;
350 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
351 | --syscon | --sysco | --sysc | --sys | --sy)
352 ac_prev=sysconfdir ;;
353 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
354 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
355 sysconfdir="$ac_optarg" ;;
357 -target | --target | --targe | --targ | --tar | --ta | --t)
358 ac_prev=target ;;
359 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
360 target="$ac_optarg" ;;
362 -v | -verbose | --verbose | --verbos | --verbo | --verb)
363 verbose=yes ;;
365 -version | --version | --versio | --versi | --vers)
366 echo "configure generated by autoconf version 2.13"
367 exit 0 ;;
369 -with-* | --with-*)
370 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
371 # Reject names that are not valid shell variable names.
372 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
373 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375 ac_package=`echo $ac_package| sed 's/-/_/g'`
376 case "$ac_option" in
377 *=*) ;;
378 *) ac_optarg=yes ;;
379 esac
380 eval "with_${ac_package}='$ac_optarg'" ;;
382 -without-* | --without-*)
383 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
384 # Reject names that are not valid shell variable names.
385 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
386 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
388 ac_package=`echo $ac_package| sed 's/-/_/g'`
389 eval "with_${ac_package}=no" ;;
391 --x)
392 # Obsolete; use --with-x.
393 with_x=yes ;;
395 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
396 | --x-incl | --x-inc | --x-in | --x-i)
397 ac_prev=x_includes ;;
398 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
399 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
400 x_includes="$ac_optarg" ;;
402 -x-libraries | --x-libraries | --x-librarie | --x-librari \
403 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
404 ac_prev=x_libraries ;;
405 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
406 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
407 x_libraries="$ac_optarg" ;;
409 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
413 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
414 echo "configure: warning: $ac_option: invalid host type" 1>&2
416 if test "x$nonopt" != xNONE; then
417 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
419 nonopt="$ac_option"
422 esac
423 done
425 if test -n "$ac_prev"; then
426 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
429 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
431 # File descriptor usage:
432 # 0 standard input
433 # 1 file creation
434 # 2 errors and warnings
435 # 3 some systems may open it to /dev/tty
436 # 4 used on the Kubota Titan
437 # 6 checking for... messages and results
438 # 5 compiler messages saved in config.log
439 if test "$silent" = yes; then
440 exec 6>/dev/null
441 else
442 exec 6>&1
444 exec 5>./config.log
446 echo "\
447 This file contains any messages produced by compilers while
448 running configure, to aid debugging if configure makes a mistake.
449 " 1>&5
451 # Strip out --no-create and --no-recursion so they do not pile up.
452 # Also quote any args containing shell metacharacters.
453 ac_configure_args=
454 for ac_arg
456 case "$ac_arg" in
457 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
458 | --no-cr | --no-c) ;;
459 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
460 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
461 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
462 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
463 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
464 esac
465 done
467 # NLS nuisances.
468 # Only set these to C if already set. These must not be set unconditionally
469 # because not all systems understand e.g. LANG=C (notably SCO).
470 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
471 # Non-C LC_CTYPE values break the ctype check.
472 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
473 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
474 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
475 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
477 # confdefs.h avoids OS command line length limits that DEFS can exceed.
478 rm -rf conftest* confdefs.h
479 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
480 echo > confdefs.h
482 # A filename unique to this package, relative to the directory that
483 # configure is in, which we can look for to find out if srcdir is correct.
484 ac_unique_file=fficonfig.h.in
486 # Find the source files, if location was not specified.
487 if test -z "$srcdir"; then
488 ac_srcdir_defaulted=yes
489 # Try the directory containing this script, then its parent.
490 ac_prog=$0
491 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
492 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
493 srcdir=$ac_confdir
494 if test ! -r $srcdir/$ac_unique_file; then
495 srcdir=..
497 else
498 ac_srcdir_defaulted=no
500 if test ! -r $srcdir/$ac_unique_file; then
501 if test "$ac_srcdir_defaulted" = yes; then
502 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
503 else
504 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
507 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
509 # Prefer explicitly selected file to automatically selected ones.
510 if test -z "$sitefile"; then
511 if test -z "$CONFIG_SITE"; then
512 if test "x$prefix" != xNONE; then
513 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
514 else
515 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
518 else
519 CONFIG_SITE="$sitefile"
521 for ac_site_file in $CONFIG_SITE; do
522 if test -r "$ac_site_file"; then
523 echo "loading site script $ac_site_file"
524 . "$ac_site_file"
526 done
528 if test -r "$cache_file"; then
529 echo "loading cache $cache_file"
530 . $cache_file
531 else
532 echo "creating cache $cache_file"
533 > $cache_file
536 ac_ext=c
537 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
538 ac_cpp='$CPP $CPPFLAGS'
539 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
540 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
541 cross_compiling=$ac_cv_prog_cc_cross
543 ac_exeext=
544 ac_objext=o
545 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
546 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
547 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
548 ac_n= ac_c='
549 ' ac_t=' '
550 else
551 ac_n=-n ac_c= ac_t=
553 else
554 ac_n= ac_c='\c' ac_t=
562 echo "configure: warning: ***********************************************************" 1>&2
563 echo "configure: warning: ***********************************************************" 1>&2
564 echo "configure: warning: This is beta code. If you're looking for a stable release" 1>&2
565 echo "configure: warning: then use the most recent one - libffi-1.20." 1>&2
566 echo "configure: warning: ***********************************************************" 1>&2
567 echo "configure: warning: ***********************************************************" 1>&2
569 # Check whether --enable-multilib or --disable-multilib was given.
570 if test "${enable_multilib+set}" = set; then
571 enableval="$enable_multilib"
572 case "${enableval}" in
573 yes) multilib=yes ;;
574 no) multilib=no ;;
575 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
576 esac
577 else
578 multilib=yes
582 if test "${srcdir}" = "."; then
583 if test "${with_target_subdir}" != "."; then
584 libffi_basedir="${srcdir}/${with_multisrctop}.."
585 else
586 libffi_basedir="${srcdir}/${with_multisrctop}"
588 else
589 libffi_basedir="${srcdir}"
593 ac_aux_dir=
594 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
595 if test -f $ac_dir/install-sh; then
596 ac_aux_dir=$ac_dir
597 ac_install_sh="$ac_aux_dir/install-sh -c"
598 break
599 elif test -f $ac_dir/install.sh; then
600 ac_aux_dir=$ac_dir
601 ac_install_sh="$ac_aux_dir/install.sh -c"
602 break
604 done
605 if test -z "$ac_aux_dir"; then
606 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
608 ac_config_guess=$ac_aux_dir/config.guess
609 ac_config_sub=$ac_aux_dir/config.sub
610 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
613 # Make sure we can run config.sub.
614 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
615 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
618 echo $ac_n "checking host system type""... $ac_c" 1>&6
619 echo "configure:620: checking host system type" >&5
621 host_alias=$host
622 case "$host_alias" in
623 NONE)
624 case $nonopt in
625 NONE)
626 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
627 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
628 fi ;;
629 *) host_alias=$nonopt ;;
630 esac ;;
631 esac
633 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
634 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
635 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
636 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
637 echo "$ac_t""$host" 1>&6
640 # Find a good install program. We prefer a C program (faster),
641 # so one script is as good as another. But avoid the broken or
642 # incompatible versions:
643 # SysV /etc/install, /usr/sbin/install
644 # SunOS /usr/etc/install
645 # IRIX /sbin/install
646 # AIX /bin/install
647 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
648 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
649 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
650 # ./install, which can be erroneously created by make from ./install.sh.
651 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
652 echo "configure:653: checking for a BSD compatible install" >&5
653 if test -z "$INSTALL"; then
654 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
655 echo $ac_n "(cached) $ac_c" 1>&6
656 else
657 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
658 for ac_dir in $PATH; do
659 # Account for people who put trailing slashes in PATH elements.
660 case "$ac_dir/" in
661 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
663 # OSF1 and SCO ODT 3.0 have their own names for install.
664 # Don't use installbsd from OSF since it installs stuff as root
665 # by default.
666 for ac_prog in ginstall scoinst install; do
667 if test -f $ac_dir/$ac_prog; then
668 if test $ac_prog = install &&
669 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
670 # AIX install. It has an incompatible calling convention.
672 else
673 ac_cv_path_install="$ac_dir/$ac_prog -c"
674 break 2
677 done
679 esac
680 done
681 IFS="$ac_save_IFS"
684 if test "${ac_cv_path_install+set}" = set; then
685 INSTALL="$ac_cv_path_install"
686 else
687 # As a last resort, use the slow shell script. We don't cache a
688 # path for INSTALL within a source directory, because that will
689 # break other packages using the cache if that directory is
690 # removed, or if the path is relative.
691 INSTALL="$ac_install_sh"
694 echo "$ac_t""$INSTALL" 1>&6
696 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
697 # It thinks the first close brace ends the variable substitution.
698 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
700 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
702 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
704 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
705 echo "configure:706: checking whether build environment is sane" >&5
706 # Just in case
707 sleep 1
708 echo timestamp > conftestfile
709 # Do `set' in a subshell so we don't clobber the current shell's
710 # arguments. Must try -L first in case configure is actually a
711 # symlink; some systems play weird games with the mod time of symlinks
712 # (eg FreeBSD returns the mod time of the symlink's containing
713 # directory).
714 if (
715 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
716 if test "$*" = "X"; then
717 # -L didn't work.
718 set X `ls -t $srcdir/configure conftestfile`
720 if test "$*" != "X $srcdir/configure conftestfile" \
721 && test "$*" != "X conftestfile $srcdir/configure"; then
723 # If neither matched, then we have a broken ls. This can happen
724 # if, for instance, CONFIG_SHELL is bash and it inherits a
725 # broken ls alias from the environment. This has actually
726 # happened. Such a system could not be considered "sane".
727 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
728 alias in your environment" 1>&2; exit 1; }
731 test "$2" = conftestfile
733 then
734 # Ok.
736 else
737 { echo "configure: error: newly created file is older than distributed files!
738 Check your system clock" 1>&2; exit 1; }
740 rm -f conftest*
741 echo "$ac_t""yes" 1>&6
742 if test "$program_transform_name" = s,x,x,; then
743 program_transform_name=
744 else
745 # Double any \ or $. echo might interpret backslashes.
746 cat <<\EOF_SED > conftestsed
747 s,\\,\\\\,g; s,\$,$$,g
748 EOF_SED
749 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
750 rm -f conftestsed
752 test "$program_prefix" != NONE &&
753 program_transform_name="s,^,${program_prefix},; $program_transform_name"
754 # Use a double $ so make ignores it.
755 test "$program_suffix" != NONE &&
756 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
758 # sed with no file args requires a program.
759 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
761 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
762 echo "configure:763: checking whether ${MAKE-make} sets \${MAKE}" >&5
763 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
764 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
765 echo $ac_n "(cached) $ac_c" 1>&6
766 else
767 cat > conftestmake <<\EOF
768 all:
769 @echo 'ac_maketemp="${MAKE}"'
771 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
772 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
773 if test -n "$ac_maketemp"; then
774 eval ac_cv_prog_make_${ac_make}_set=yes
775 else
776 eval ac_cv_prog_make_${ac_make}_set=no
778 rm -f conftestmake
780 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
781 echo "$ac_t""yes" 1>&6
782 SET_MAKE=
783 else
784 echo "$ac_t""no" 1>&6
785 SET_MAKE="MAKE=${MAKE-make}"
789 PACKAGE=libffi
791 VERSION=2.00-beta
793 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
794 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
799 missing_dir=`cd $ac_aux_dir && pwd`
800 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
801 echo "configure:802: checking for working aclocal" >&5
802 # Run test in a subshell; some versions of sh will print an error if
803 # an executable is not found, even if stderr is redirected.
804 # Redirect stdin to placate older versions of autoconf. Sigh.
805 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
806 ACLOCAL=aclocal
807 echo "$ac_t""found" 1>&6
808 else
809 ACLOCAL="$missing_dir/missing aclocal"
810 echo "$ac_t""missing" 1>&6
813 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
814 echo "configure:815: checking for working autoconf" >&5
815 # Run test in a subshell; some versions of sh will print an error if
816 # an executable is not found, even if stderr is redirected.
817 # Redirect stdin to placate older versions of autoconf. Sigh.
818 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
819 AUTOCONF=autoconf
820 echo "$ac_t""found" 1>&6
821 else
822 AUTOCONF="$missing_dir/missing autoconf"
823 echo "$ac_t""missing" 1>&6
826 echo $ac_n "checking for working automake""... $ac_c" 1>&6
827 echo "configure:828: checking for working automake" >&5
828 # Run test in a subshell; some versions of sh will print an error if
829 # an executable is not found, even if stderr is redirected.
830 # Redirect stdin to placate older versions of autoconf. Sigh.
831 if (automake --version) < /dev/null > /dev/null 2>&1; then
832 AUTOMAKE=automake
833 echo "$ac_t""found" 1>&6
834 else
835 AUTOMAKE="$missing_dir/missing automake"
836 echo "$ac_t""missing" 1>&6
839 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
840 echo "configure:841: checking for working autoheader" >&5
841 # Run test in a subshell; some versions of sh will print an error if
842 # an executable is not found, even if stderr is redirected.
843 # Redirect stdin to placate older versions of autoconf. Sigh.
844 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
845 AUTOHEADER=autoheader
846 echo "$ac_t""found" 1>&6
847 else
848 AUTOHEADER="$missing_dir/missing autoheader"
849 echo "$ac_t""missing" 1>&6
852 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
853 echo "configure:854: checking for working makeinfo" >&5
854 # Run test in a subshell; some versions of sh will print an error if
855 # an executable is not found, even if stderr is redirected.
856 # Redirect stdin to placate older versions of autoconf. Sigh.
857 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
858 MAKEINFO=makeinfo
859 echo "$ac_t""found" 1>&6
860 else
861 MAKEINFO="$missing_dir/missing makeinfo"
862 echo "$ac_t""missing" 1>&6
867 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
868 echo "configure:869: checking for Cygwin environment" >&5
869 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
870 echo $ac_n "(cached) $ac_c" 1>&6
871 else
872 cat > conftest.$ac_ext <<EOF
873 #line 874 "configure"
874 #include "confdefs.h"
876 int main() {
878 #ifndef __CYGWIN__
879 #define __CYGWIN__ __CYGWIN32__
880 #endif
881 return __CYGWIN__;
882 ; return 0; }
884 if { (eval echo configure:885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
885 rm -rf conftest*
886 ac_cv_cygwin=yes
887 else
888 echo "configure: failed program was:" >&5
889 cat conftest.$ac_ext >&5
890 rm -rf conftest*
891 ac_cv_cygwin=no
893 rm -f conftest*
894 rm -f conftest*
897 echo "$ac_t""$ac_cv_cygwin" 1>&6
898 CYGWIN=
899 test "$ac_cv_cygwin" = yes && CYGWIN=yes
900 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
901 echo "configure:902: checking for mingw32 environment" >&5
902 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
903 echo $ac_n "(cached) $ac_c" 1>&6
904 else
905 cat > conftest.$ac_ext <<EOF
906 #line 907 "configure"
907 #include "confdefs.h"
909 int main() {
910 return __MINGW32__;
911 ; return 0; }
913 if { (eval echo configure:914: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
914 rm -rf conftest*
915 ac_cv_mingw32=yes
916 else
917 echo "configure: failed program was:" >&5
918 cat conftest.$ac_ext >&5
919 rm -rf conftest*
920 ac_cv_mingw32=no
922 rm -f conftest*
923 rm -f conftest*
926 echo "$ac_t""$ac_cv_mingw32" 1>&6
927 MINGW32=
928 test "$ac_cv_mingw32" = yes && MINGW32=yes
931 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
932 echo "configure:933: checking for executable suffix" >&5
933 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
934 echo $ac_n "(cached) $ac_c" 1>&6
935 else
936 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
937 ac_cv_exeext=.exe
938 else
939 rm -f conftest*
940 echo 'int main () { return 0; }' > conftest.$ac_ext
941 ac_cv_exeext=
942 if { (eval echo configure:943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
943 for file in conftest.*; do
944 case $file in
945 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
946 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
947 esac
948 done
949 else
950 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
952 rm -f conftest*
953 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
957 EXEEXT=""
958 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
959 echo "$ac_t""${ac_cv_exeext}" 1>&6
960 ac_exeext=$EXEEXT
962 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
963 echo "configure:964: checking whether to enable maintainer-specific portions of Makefiles" >&5
964 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
965 if test "${enable_maintainer_mode+set}" = set; then
966 enableval="$enable_maintainer_mode"
967 USE_MAINTAINER_MODE=$enableval
968 else
969 USE_MAINTAINER_MODE=no
972 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
975 if test $USE_MAINTAINER_MODE = yes; then
976 MAINTAINER_MODE_TRUE=
977 MAINTAINER_MODE_FALSE='#'
978 else
979 MAINTAINER_MODE_TRUE='#'
980 MAINTAINER_MODE_FALSE=
982 MAINT=$MAINTAINER_MODE_TRUE
986 # Extract the first word of "gcc", so it can be a program name with args.
987 set dummy gcc; ac_word=$2
988 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
989 echo "configure:990: checking for $ac_word" >&5
990 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
991 echo $ac_n "(cached) $ac_c" 1>&6
992 else
993 if test -n "$CC"; then
994 ac_cv_prog_CC="$CC" # Let the user override the test.
995 else
996 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
997 ac_dummy="$PATH"
998 for ac_dir in $ac_dummy; do
999 test -z "$ac_dir" && ac_dir=.
1000 if test -f $ac_dir/$ac_word; then
1001 ac_cv_prog_CC="gcc"
1002 break
1004 done
1005 IFS="$ac_save_ifs"
1008 CC="$ac_cv_prog_CC"
1009 if test -n "$CC"; then
1010 echo "$ac_t""$CC" 1>&6
1011 else
1012 echo "$ac_t""no" 1>&6
1015 if test -z "$CC"; then
1016 # Extract the first word of "cc", so it can be a program name with args.
1017 set dummy cc; ac_word=$2
1018 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1019 echo "configure:1020: checking for $ac_word" >&5
1020 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1021 echo $ac_n "(cached) $ac_c" 1>&6
1022 else
1023 if test -n "$CC"; then
1024 ac_cv_prog_CC="$CC" # Let the user override the test.
1025 else
1026 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1027 ac_prog_rejected=no
1028 ac_dummy="$PATH"
1029 for ac_dir in $ac_dummy; do
1030 test -z "$ac_dir" && ac_dir=.
1031 if test -f $ac_dir/$ac_word; then
1032 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1033 ac_prog_rejected=yes
1034 continue
1036 ac_cv_prog_CC="cc"
1037 break
1039 done
1040 IFS="$ac_save_ifs"
1041 if test $ac_prog_rejected = yes; then
1042 # We found a bogon in the path, so make sure we never use it.
1043 set dummy $ac_cv_prog_CC
1044 shift
1045 if test $# -gt 0; then
1046 # We chose a different compiler from the bogus one.
1047 # However, it has the same basename, so the bogon will be chosen
1048 # first if we set CC to just the basename; use the full file name.
1049 shift
1050 set dummy "$ac_dir/$ac_word" "$@"
1051 shift
1052 ac_cv_prog_CC="$@"
1057 CC="$ac_cv_prog_CC"
1058 if test -n "$CC"; then
1059 echo "$ac_t""$CC" 1>&6
1060 else
1061 echo "$ac_t""no" 1>&6
1064 if test -z "$CC"; then
1065 case "`uname -s`" in
1066 *win32* | *WIN32*)
1067 # Extract the first word of "cl", so it can be a program name with args.
1068 set dummy cl; ac_word=$2
1069 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1070 echo "configure:1071: checking for $ac_word" >&5
1071 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1072 echo $ac_n "(cached) $ac_c" 1>&6
1073 else
1074 if test -n "$CC"; then
1075 ac_cv_prog_CC="$CC" # Let the user override the test.
1076 else
1077 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1078 ac_dummy="$PATH"
1079 for ac_dir in $ac_dummy; do
1080 test -z "$ac_dir" && ac_dir=.
1081 if test -f $ac_dir/$ac_word; then
1082 ac_cv_prog_CC="cl"
1083 break
1085 done
1086 IFS="$ac_save_ifs"
1089 CC="$ac_cv_prog_CC"
1090 if test -n "$CC"; then
1091 echo "$ac_t""$CC" 1>&6
1092 else
1093 echo "$ac_t""no" 1>&6
1096 esac
1098 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1101 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1102 echo "configure:1103: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1104 ac_ext=c
1105 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1106 ac_cpp='$CPP $CPPFLAGS'
1107 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1108 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1109 cross_compiling=$ac_cv_prog_cc_cross
1111 cat > conftest.$ac_ext << EOF
1113 #line 1114 "configure"
1114 #include "confdefs.h"
1116 main(){return(0);}
1118 if { (eval echo configure:1119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1119 ac_cv_prog_cc_works=yes
1120 # If we can't run a trivial program, we are probably using a cross compiler.
1121 if (./conftest; exit) 2>/dev/null; then
1122 ac_cv_prog_cc_cross=no
1123 else
1124 ac_cv_prog_cc_cross=yes
1126 else
1127 echo "configure: failed program was:" >&5
1128 cat conftest.$ac_ext >&5
1129 ac_cv_prog_cc_works=no
1131 rm -fr conftest*
1132 ac_ext=c
1133 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1134 ac_cpp='$CPP $CPPFLAGS'
1135 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1136 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1137 cross_compiling=$ac_cv_prog_cc_cross
1139 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1140 if test $ac_cv_prog_cc_works = no; then
1141 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1143 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1144 echo "configure:1145: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1145 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1146 cross_compiling=$ac_cv_prog_cc_cross
1148 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1149 echo "configure:1150: checking whether we are using GNU C" >&5
1150 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1151 echo $ac_n "(cached) $ac_c" 1>&6
1152 else
1153 cat > conftest.c <<EOF
1154 #ifdef __GNUC__
1155 yes;
1156 #endif
1158 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1159: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1159 ac_cv_prog_gcc=yes
1160 else
1161 ac_cv_prog_gcc=no
1165 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1167 if test $ac_cv_prog_gcc = yes; then
1168 GCC=yes
1169 else
1170 GCC=
1173 ac_test_CFLAGS="${CFLAGS+set}"
1174 ac_save_CFLAGS="$CFLAGS"
1175 CFLAGS=
1176 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1177 echo "configure:1178: checking whether ${CC-cc} accepts -g" >&5
1178 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1179 echo $ac_n "(cached) $ac_c" 1>&6
1180 else
1181 echo 'void f(){}' > conftest.c
1182 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1183 ac_cv_prog_cc_g=yes
1184 else
1185 ac_cv_prog_cc_g=no
1187 rm -f conftest*
1191 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1192 if test "$ac_test_CFLAGS" = set; then
1193 CFLAGS="$ac_save_CFLAGS"
1194 elif test $ac_cv_prog_cc_g = yes; then
1195 if test "$GCC" = yes; then
1196 CFLAGS="-g -O2"
1197 else
1198 CFLAGS="-g"
1200 else
1201 if test "$GCC" = yes; then
1202 CFLAGS="-O2"
1203 else
1204 CFLAGS=
1208 # Check whether --enable-shared or --disable-shared was given.
1209 if test "${enable_shared+set}" = set; then
1210 enableval="$enable_shared"
1211 p=${PACKAGE-default}
1212 case "$enableval" in
1213 yes) enable_shared=yes ;;
1214 no) enable_shared=no ;;
1216 enable_shared=no
1217 # Look at the argument we got. We use all the common list separators.
1218 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1219 for pkg in $enableval; do
1220 if test "X$pkg" = "X$p"; then
1221 enable_shared=yes
1223 done
1224 IFS="$ac_save_ifs"
1226 esac
1227 else
1228 enable_shared=yes
1231 # Check whether --enable-static or --disable-static was given.
1232 if test "${enable_static+set}" = set; then
1233 enableval="$enable_static"
1234 p=${PACKAGE-default}
1235 case "$enableval" in
1236 yes) enable_static=yes ;;
1237 no) enable_static=no ;;
1239 enable_static=no
1240 # Look at the argument we got. We use all the common list separators.
1241 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1242 for pkg in $enableval; do
1243 if test "X$pkg" = "X$p"; then
1244 enable_static=yes
1246 done
1247 IFS="$ac_save_ifs"
1249 esac
1250 else
1251 enable_static=yes
1254 # Check whether --enable-fast-install or --disable-fast-install was given.
1255 if test "${enable_fast_install+set}" = set; then
1256 enableval="$enable_fast_install"
1257 p=${PACKAGE-default}
1258 case "$enableval" in
1259 yes) enable_fast_install=yes ;;
1260 no) enable_fast_install=no ;;
1262 enable_fast_install=no
1263 # Look at the argument we got. We use all the common list separators.
1264 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1265 for pkg in $enableval; do
1266 if test "X$pkg" = "X$p"; then
1267 enable_fast_install=yes
1269 done
1270 IFS="$ac_save_ifs"
1272 esac
1273 else
1274 enable_fast_install=yes
1277 echo $ac_n "checking build system type""... $ac_c" 1>&6
1278 echo "configure:1279: checking build system type" >&5
1280 build_alias=$build
1281 case "$build_alias" in
1282 NONE)
1283 case $nonopt in
1284 NONE) build_alias=$host_alias ;;
1285 *) build_alias=$nonopt ;;
1286 esac ;;
1287 esac
1289 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1290 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1291 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1292 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1293 echo "$ac_t""$build" 1>&6
1295 # Extract the first word of "ranlib", so it can be a program name with args.
1296 set dummy ranlib; ac_word=$2
1297 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1298 echo "configure:1299: checking for $ac_word" >&5
1299 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1300 echo $ac_n "(cached) $ac_c" 1>&6
1301 else
1302 if test -n "$RANLIB"; then
1303 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1304 else
1305 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1306 ac_dummy="$PATH"
1307 for ac_dir in $ac_dummy; do
1308 test -z "$ac_dir" && ac_dir=.
1309 if test -f $ac_dir/$ac_word; then
1310 ac_cv_prog_RANLIB="ranlib"
1311 break
1313 done
1314 IFS="$ac_save_ifs"
1315 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1318 RANLIB="$ac_cv_prog_RANLIB"
1319 if test -n "$RANLIB"; then
1320 echo "$ac_t""$RANLIB" 1>&6
1321 else
1322 echo "$ac_t""no" 1>&6
1325 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1326 if test "${with_gnu_ld+set}" = set; then
1327 withval="$with_gnu_ld"
1328 test "$withval" = no || with_gnu_ld=yes
1329 else
1330 with_gnu_ld=no
1333 ac_prog=ld
1334 if test "$ac_cv_prog_gcc" = yes; then
1335 # Check if gcc -print-prog-name=ld gives a path.
1336 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1337 echo "configure:1338: checking for ld used by GCC" >&5
1338 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1339 case "$ac_prog" in
1340 # Accept absolute paths.
1341 [\\/]* | [A-Za-z]:[\\/]*)
1342 re_direlt='/[^/][^/]*/\.\./'
1343 # Canonicalize the path of ld
1344 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1345 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1346 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1347 done
1348 test -z "$LD" && LD="$ac_prog"
1351 # If it fails, then pretend we aren't using GCC.
1352 ac_prog=ld
1355 # If it is relative, then search for the first ld in PATH.
1356 with_gnu_ld=unknown
1358 esac
1359 elif test "$with_gnu_ld" = yes; then
1360 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1361 echo "configure:1362: checking for GNU ld" >&5
1362 else
1363 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1364 echo "configure:1365: checking for non-GNU ld" >&5
1366 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1367 echo $ac_n "(cached) $ac_c" 1>&6
1368 else
1369 if test -z "$LD"; then
1370 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1371 for ac_dir in $PATH; do
1372 test -z "$ac_dir" && ac_dir=.
1373 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1374 ac_cv_path_LD="$ac_dir/$ac_prog"
1375 # Check to see if the program is GNU ld. I'd rather use --version,
1376 # but apparently some GNU ld's only accept -v.
1377 # Break only if it was the GNU/non-GNU ld that we prefer.
1378 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1379 test "$with_gnu_ld" != no && break
1380 else
1381 test "$with_gnu_ld" != yes && break
1384 done
1385 IFS="$ac_save_ifs"
1386 else
1387 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1391 LD="$ac_cv_path_LD"
1392 if test -n "$LD"; then
1393 echo "$ac_t""$LD" 1>&6
1394 else
1395 echo "$ac_t""no" 1>&6
1397 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1398 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1399 echo "configure:1400: checking if the linker ($LD) is GNU ld" >&5
1400 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1401 echo $ac_n "(cached) $ac_c" 1>&6
1402 else
1403 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1404 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1405 ac_cv_prog_gnu_ld=yes
1406 else
1407 ac_cv_prog_gnu_ld=no
1411 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1414 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1415 echo "configure:1416: checking for BSD-compatible nm" >&5
1416 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1417 echo $ac_n "(cached) $ac_c" 1>&6
1418 else
1419 if test -n "$NM"; then
1420 # Let the user override the test.
1421 ac_cv_path_NM="$NM"
1422 else
1423 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1424 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1425 test -z "$ac_dir" && ac_dir=.
1426 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1427 # Check to see if the nm accepts a BSD-compat flag.
1428 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1429 # nm: unknown option "B" ignored
1430 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1431 ac_cv_path_NM="$ac_dir/nm -B"
1432 break
1433 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1434 ac_cv_path_NM="$ac_dir/nm -p"
1435 break
1436 else
1437 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1438 continue # so that we can try to find one that supports BSD flags
1441 done
1442 IFS="$ac_save_ifs"
1443 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1447 NM="$ac_cv_path_NM"
1448 echo "$ac_t""$NM" 1>&6
1450 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1451 echo "configure:1452: checking whether ln -s works" >&5
1452 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1453 echo $ac_n "(cached) $ac_c" 1>&6
1454 else
1455 rm -f conftestdata
1456 if ln -s X conftestdata 2>/dev/null
1457 then
1458 rm -f conftestdata
1459 ac_cv_prog_LN_S="ln -s"
1460 else
1461 ac_cv_prog_LN_S=ln
1464 LN_S="$ac_cv_prog_LN_S"
1465 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1466 echo "$ac_t""yes" 1>&6
1467 else
1468 echo "$ac_t""no" 1>&6
1472 case "$target" in
1473 NONE) lt_target="$host" ;;
1474 *) lt_target="$target" ;;
1475 esac
1477 # Check for any special flags to pass to ltconfig.
1478 libtool_flags="--cache-file=$cache_file"
1479 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1480 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1481 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1482 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1483 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1486 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1487 if test "${enable_libtool_lock+set}" = set; then
1488 enableval="$enable_libtool_lock"
1492 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1493 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1495 # Some flags need to be propagated to the compiler or linker for good
1496 # libtool support.
1497 case "$lt_target" in
1498 *-*-irix6*)
1499 # Find out which ABI we are using.
1500 echo '#line 1501 "configure"' > conftest.$ac_ext
1501 if { (eval echo configure:1502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1502 case "`/usr/bin/file conftest.o`" in
1503 *32-bit*)
1504 LD="${LD-ld} -32"
1506 *N32*)
1507 LD="${LD-ld} -n32"
1509 *64-bit*)
1510 LD="${LD-ld} -64"
1512 esac
1514 rm -rf conftest*
1517 *-*-sco3.2v5*)
1518 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1519 SAVE_CFLAGS="$CFLAGS"
1520 CFLAGS="$CFLAGS -belf"
1521 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1522 echo "configure:1523: checking whether the C compiler needs -belf" >&5
1523 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1524 echo $ac_n "(cached) $ac_c" 1>&6
1525 else
1526 cat > conftest.$ac_ext <<EOF
1527 #line 1528 "configure"
1528 #include "confdefs.h"
1530 int main() {
1532 ; return 0; }
1534 if { (eval echo configure:1535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1535 rm -rf conftest*
1536 lt_cv_cc_needs_belf=yes
1537 else
1538 echo "configure: failed program was:" >&5
1539 cat conftest.$ac_ext >&5
1540 rm -rf conftest*
1541 lt_cv_cc_needs_belf=no
1543 rm -f conftest*
1546 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1547 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1548 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1549 CFLAGS="$SAVE_CFLAGS"
1554 esac
1557 # Save cache, so that ltconfig can load it
1558 cat > confcache <<\EOF
1559 # This file is a shell script that caches the results of configure
1560 # tests run on this system so they can be shared between configure
1561 # scripts and configure runs. It is not useful on other systems.
1562 # If it contains results you don't want to keep, you may remove or edit it.
1564 # By default, configure uses ./config.cache as the cache file,
1565 # creating it if it does not exist already. You can give configure
1566 # the --cache-file=FILE option to use a different cache file; that is
1567 # what configure does when it calls configure scripts in
1568 # subdirectories, so they share the cache.
1569 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1570 # config.status only pays attention to the cache file if you give it the
1571 # --recheck option to rerun configure.
1574 # The following way of writing the cache mishandles newlines in values,
1575 # but we know of no workaround that is simple, portable, and efficient.
1576 # So, don't put newlines in cache variables' values.
1577 # Ultrix sh set writes to stderr and can't be redirected directly,
1578 # and sets the high bit in the cache file unless we assign to the vars.
1579 (set) 2>&1 |
1580 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1581 *ac_space=\ *)
1582 # `set' does not quote correctly, so add quotes (double-quote substitution
1583 # turns \\\\ into \\, and sed turns \\ into \).
1584 sed -n \
1585 -e "s/'/'\\\\''/g" \
1586 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1589 # `set' quotes correctly as required by POSIX, so do not add quotes.
1590 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1592 esac >> confcache
1593 if cmp -s $cache_file confcache; then
1595 else
1596 if test -w $cache_file; then
1597 echo "updating cache $cache_file"
1598 cat confcache > $cache_file
1599 else
1600 echo "not updating unwritable cache $cache_file"
1603 rm -f confcache
1606 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1607 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1608 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1609 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1610 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1611 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1612 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1613 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1615 # Reload cache, that may have been modified by ltconfig
1616 if test -r "$cache_file"; then
1617 echo "loading cache $cache_file"
1618 . $cache_file
1619 else
1620 echo "creating cache $cache_file"
1621 > $cache_file
1625 # This can be used to rebuild libtool when needed
1626 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1628 # Always use our own libtool.
1629 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1631 # Redirect the config.log output again, so that the ltconfig log is not
1632 # clobbered by the next message.
1633 exec 5>>./config.log
1636 TARGETDIR="unknown"
1637 case "$host" in
1638 mips-sgi-irix5.* | mips-sgi-irix6.*) TARGET=MIPS; TARGETDIR=mips;;
1639 i*86-*-linux*) TARGET=X86; TARGETDIR=x86;;
1640 i*86-*-solaris*) TARGET=X86; TARGETDIR=x86;;
1641 i*86-*-beos*) TARGET=X86; TARGETDIR=x86;;
1642 i*86-*-freebsd*) TARGET=X86; TARGETDIR=x86;;
1643 sparc-sun-4*) TARGET=SPARC; TARGETDIR=sparc;;
1644 sparc-sun-*) TARGET=SPARC; TARGETDIR=sparc;;
1645 sparc-*-linux*) TARGET=SPARC; TARGETDIR=sparc;;
1646 sparc64-*-linux*) TARGET=SPARC; TARGETDIR=sparc;;
1647 alpha*-*-linux* | alpha*-*-osf*) TARGET=ALPHA; TARGETDIR=alpha;;
1648 ia64*-*-*) TARGET=IA64; TARGETDIR=ia64;;
1649 m68k-*-linux*) TARGET=M68K; TARGETDIR=m68k;;
1650 powerpc-*-linux* | powerpc-*-sysv*) TARGET=POWERPC; TARGETDIR=powerpc;;
1651 powerpc-*-beos*) TARGET=POWERPC; TARGETDIR=powerpc;;
1652 arm*-*-linux-*) TARGET=ARM; TARGETDIR=arm;;
1653 esac
1655 if test $TARGETDIR = unknown; then
1656 { echo "configure: error: "libffi has not been ported to $host."" 1>&2; exit 1; }
1661 if test ${TARGET}${ac_cv_prog_gcc} = MIPSyes; then
1662 MIPS_GCC_TRUE=
1663 MIPS_GCC_FALSE='#'
1664 else
1665 MIPS_GCC_TRUE='#'
1666 MIPS_GCC_FALSE=
1670 if test ${TARGET}${ac_cv_prog_gcc} = MIPSno; then
1671 MIPS_SGI_TRUE=
1672 MIPS_SGI_FALSE='#'
1673 else
1674 MIPS_SGI_TRUE='#'
1675 MIPS_SGI_FALSE=
1679 if test x$TARGET = xSPARC; then
1680 SPARC_TRUE=
1681 SPARC_FALSE='#'
1682 else
1683 SPARC_TRUE='#'
1684 SPARC_FALSE=
1688 if test x$TARGET = xX86; then
1689 X86_TRUE=
1690 X86_FALSE='#'
1691 else
1692 X86_TRUE='#'
1693 X86_FALSE=
1697 if test x$TARGET = xALPHA; then
1698 ALPHA_TRUE=
1699 ALPHA_FALSE='#'
1700 else
1701 ALPHA_TRUE='#'
1702 ALPHA_FALSE=
1706 if test x$TARGET = xIA64; then
1707 IA64_TRUE=
1708 IA64_FALSE='#'
1709 else
1710 IA64_TRUE='#'
1711 IA64_FALSE=
1715 if test x$TARGET = xM68K; then
1716 M68K_TRUE=
1717 M68K_FALSE='#'
1718 else
1719 M68K_TRUE='#'
1720 M68K_FALSE=
1724 if test x$TARGET = xPOWERPC; then
1725 POWERPC_TRUE=
1726 POWERPC_FALSE='#'
1727 else
1728 POWERPC_TRUE='#'
1729 POWERPC_FALSE=
1733 if test x$TARGET = xARM; then
1734 ARM_TRUE=
1735 ARM_FALSE='#'
1736 else
1737 ARM_TRUE='#'
1738 ARM_FALSE=
1741 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1742 echo "configure:1742: checking how to run the C preprocessor" >&5
1743 # On Suns, sometimes $CPP names a directory.
1744 if test -n "$CPP" && test -d "$CPP"; then
1745 CPP=
1747 if test -z "$CPP"; then
1748 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1749 echo $ac_n "(cached) $ac_c" 1>&6
1750 else
1751 # This must be in double quotes, not single quotes, because CPP may get
1752 # substituted into the Makefile and "${CC-cc}" will confuse make.
1753 CPP="${CC-cc} -E"
1754 # On the NeXT, cc -E runs the code through the compiler's parser,
1755 # not just through cpp.
1756 cat > conftest.$ac_ext <<EOF
1757 #line 1757 "configure"
1758 #include "confdefs.h"
1759 #include <assert.h>
1760 Syntax Error
1762 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1763 { (eval echo configure:1763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1764 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1765 if test -z "$ac_err"; then
1767 else
1768 echo "$ac_err" >&5
1769 echo "configure: failed program was:" >&5
1770 cat conftest.$ac_ext >&5
1771 rm -rf conftest*
1772 CPP="${CC-cc} -E -traditional-cpp"
1773 cat > conftest.$ac_ext <<EOF
1774 #line 1774 "configure"
1775 #include "confdefs.h"
1776 #include <assert.h>
1777 Syntax Error
1779 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1780 { (eval echo configure:1780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1781 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1782 if test -z "$ac_err"; then
1784 else
1785 echo "$ac_err" >&5
1786 echo "configure: failed program was:" >&5
1787 cat conftest.$ac_ext >&5
1788 rm -rf conftest*
1789 CPP="${CC-cc} -nologo -E"
1790 cat > conftest.$ac_ext <<EOF
1791 #line 1791 "configure"
1792 #include "confdefs.h"
1793 #include <assert.h>
1794 Syntax Error
1796 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1797 { (eval echo configure:1797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1798 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1799 if test -z "$ac_err"; then
1801 else
1802 echo "$ac_err" >&5
1803 echo "configure: failed program was:" >&5
1804 cat conftest.$ac_ext >&5
1805 rm -rf conftest*
1806 CPP=/lib/cpp
1808 rm -f conftest*
1810 rm -f conftest*
1812 rm -f conftest*
1813 ac_cv_prog_CPP="$CPP"
1815 CPP="$ac_cv_prog_CPP"
1816 else
1817 ac_cv_prog_CPP="$CPP"
1819 echo "$ac_t""$CPP" 1>&6
1821 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1822 echo "configure:1822: checking for ANSI C header files" >&5
1823 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1824 echo $ac_n "(cached) $ac_c" 1>&6
1825 else
1826 cat > conftest.$ac_ext <<EOF
1827 #line 1827 "configure"
1828 #include "confdefs.h"
1829 #include <stdlib.h>
1830 #include <stdarg.h>
1831 #include <string.h>
1832 #include <float.h>
1834 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1835 { (eval echo configure:1835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1836 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1837 if test -z "$ac_err"; then
1838 rm -rf conftest*
1839 ac_cv_header_stdc=yes
1840 else
1841 echo "$ac_err" >&5
1842 echo "configure: failed program was:" >&5
1843 cat conftest.$ac_ext >&5
1844 rm -rf conftest*
1845 ac_cv_header_stdc=no
1847 rm -f conftest*
1849 if test $ac_cv_header_stdc = yes; then
1850 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1851 cat > conftest.$ac_ext <<EOF
1852 #line 1852 "configure"
1853 #include "confdefs.h"
1854 #include <string.h>
1856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1857 egrep "memchr" >/dev/null 2>&1; then
1859 else
1860 rm -rf conftest*
1861 ac_cv_header_stdc=no
1863 rm -f conftest*
1867 if test $ac_cv_header_stdc = yes; then
1868 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1869 cat > conftest.$ac_ext <<EOF
1870 #line 1870 "configure"
1871 #include "confdefs.h"
1872 #include <stdlib.h>
1874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1875 egrep "free" >/dev/null 2>&1; then
1877 else
1878 rm -rf conftest*
1879 ac_cv_header_stdc=no
1881 rm -f conftest*
1885 if test $ac_cv_header_stdc = yes; then
1886 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1887 if test "$cross_compiling" = yes; then
1889 else
1890 cat > conftest.$ac_ext <<EOF
1891 #line 1891 "configure"
1892 #include "confdefs.h"
1893 #include <ctype.h>
1894 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1895 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1896 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1897 int main () { int i; for (i = 0; i < 256; i++)
1898 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1899 exit (0); }
1902 if { (eval echo configure:1902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1903 then
1905 else
1906 echo "configure: failed program was:" >&5
1907 cat conftest.$ac_ext >&5
1908 rm -fr conftest*
1909 ac_cv_header_stdc=no
1911 rm -fr conftest*
1917 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1918 if test $ac_cv_header_stdc = yes; then
1919 cat >> confdefs.h <<\EOF
1920 #define STDC_HEADERS 1
1925 for ac_func in memcpy
1927 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1928 echo "configure:1928: checking for $ac_func" >&5
1929 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1930 echo $ac_n "(cached) $ac_c" 1>&6
1931 else
1932 cat > conftest.$ac_ext <<EOF
1933 #line 1933 "configure"
1934 #include "confdefs.h"
1935 /* System header to define __stub macros and hopefully few prototypes,
1936 which can conflict with char $ac_func(); below. */
1937 #include <assert.h>
1938 /* Override any gcc2 internal prototype to avoid an error. */
1939 /* We use char because int might match the return type of a gcc2
1940 builtin and then its argument prototype would still apply. */
1941 char $ac_func();
1943 int main() {
1945 /* The GNU C library defines this for functions which it implements
1946 to always fail with ENOSYS. Some functions are actually named
1947 something starting with __ and the normal name is an alias. */
1948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1949 choke me
1950 #else
1951 $ac_func();
1952 #endif
1954 ; return 0; }
1956 if { (eval echo configure:1956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1957 rm -rf conftest*
1958 eval "ac_cv_func_$ac_func=yes"
1959 else
1960 echo "configure: failed program was:" >&5
1961 cat conftest.$ac_ext >&5
1962 rm -rf conftest*
1963 eval "ac_cv_func_$ac_func=no"
1965 rm -f conftest*
1968 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1969 echo "$ac_t""yes" 1>&6
1970 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1971 cat >> confdefs.h <<EOF
1972 #define $ac_tr_func 1
1975 else
1976 echo "$ac_t""no" 1>&6
1978 done
1980 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1981 # for constant arguments. Useless!
1982 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1983 echo "configure:1983: checking for working alloca.h" >&5
1984 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1985 echo $ac_n "(cached) $ac_c" 1>&6
1986 else
1987 cat > conftest.$ac_ext <<EOF
1988 #line 1988 "configure"
1989 #include "confdefs.h"
1990 #include <alloca.h>
1991 int main() {
1992 char *p = alloca(2 * sizeof(int));
1993 ; return 0; }
1995 if { (eval echo configure:1995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1996 rm -rf conftest*
1997 ac_cv_header_alloca_h=yes
1998 else
1999 echo "configure: failed program was:" >&5
2000 cat conftest.$ac_ext >&5
2001 rm -rf conftest*
2002 ac_cv_header_alloca_h=no
2004 rm -f conftest*
2007 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2008 if test $ac_cv_header_alloca_h = yes; then
2009 cat >> confdefs.h <<\EOF
2010 #define HAVE_ALLOCA_H 1
2015 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2016 echo "configure:2016: checking for alloca" >&5
2017 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2018 echo $ac_n "(cached) $ac_c" 1>&6
2019 else
2020 cat > conftest.$ac_ext <<EOF
2021 #line 2021 "configure"
2022 #include "confdefs.h"
2024 #ifdef __GNUC__
2025 # define alloca __builtin_alloca
2026 #else
2027 # ifdef _MSC_VER
2028 # include <malloc.h>
2029 # define alloca _alloca
2030 # else
2031 # if HAVE_ALLOCA_H
2032 # include <alloca.h>
2033 # else
2034 # ifdef _AIX
2035 #pragma alloca
2036 # else
2037 # ifndef alloca /* predefined by HP cc +Olibcalls */
2038 char *alloca ();
2039 # endif
2040 # endif
2041 # endif
2042 # endif
2043 #endif
2045 int main() {
2046 char *p = (char *) alloca(1);
2047 ; return 0; }
2049 if { (eval echo configure:2049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2050 rm -rf conftest*
2051 ac_cv_func_alloca_works=yes
2052 else
2053 echo "configure: failed program was:" >&5
2054 cat conftest.$ac_ext >&5
2055 rm -rf conftest*
2056 ac_cv_func_alloca_works=no
2058 rm -f conftest*
2061 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2062 if test $ac_cv_func_alloca_works = yes; then
2063 cat >> confdefs.h <<\EOF
2064 #define HAVE_ALLOCA 1
2069 if test $ac_cv_func_alloca_works = no; then
2070 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2071 # that cause trouble. Some versions do not even contain alloca or
2072 # contain a buggy version. If you still want to use their alloca,
2073 # use ar to extract alloca.o from them instead of compiling alloca.c.
2074 ALLOCA=alloca.${ac_objext}
2075 cat >> confdefs.h <<\EOF
2076 #define C_ALLOCA 1
2080 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2081 echo "configure:2081: checking whether alloca needs Cray hooks" >&5
2082 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2083 echo $ac_n "(cached) $ac_c" 1>&6
2084 else
2085 cat > conftest.$ac_ext <<EOF
2086 #line 2086 "configure"
2087 #include "confdefs.h"
2088 #if defined(CRAY) && ! defined(CRAY2)
2089 webecray
2090 #else
2091 wenotbecray
2092 #endif
2095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2096 egrep "webecray" >/dev/null 2>&1; then
2097 rm -rf conftest*
2098 ac_cv_os_cray=yes
2099 else
2100 rm -rf conftest*
2101 ac_cv_os_cray=no
2103 rm -f conftest*
2107 echo "$ac_t""$ac_cv_os_cray" 1>&6
2108 if test $ac_cv_os_cray = yes; then
2109 for ac_func in _getb67 GETB67 getb67; do
2110 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2111 echo "configure:2111: checking for $ac_func" >&5
2112 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2113 echo $ac_n "(cached) $ac_c" 1>&6
2114 else
2115 cat > conftest.$ac_ext <<EOF
2116 #line 2116 "configure"
2117 #include "confdefs.h"
2118 /* System header to define __stub macros and hopefully few prototypes,
2119 which can conflict with char $ac_func(); below. */
2120 #include <assert.h>
2121 /* Override any gcc2 internal prototype to avoid an error. */
2122 /* We use char because int might match the return type of a gcc2
2123 builtin and then its argument prototype would still apply. */
2124 char $ac_func();
2126 int main() {
2128 /* The GNU C library defines this for functions which it implements
2129 to always fail with ENOSYS. Some functions are actually named
2130 something starting with __ and the normal name is an alias. */
2131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2132 choke me
2133 #else
2134 $ac_func();
2135 #endif
2137 ; return 0; }
2139 if { (eval echo configure:2139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2140 rm -rf conftest*
2141 eval "ac_cv_func_$ac_func=yes"
2142 else
2143 echo "configure: failed program was:" >&5
2144 cat conftest.$ac_ext >&5
2145 rm -rf conftest*
2146 eval "ac_cv_func_$ac_func=no"
2148 rm -f conftest*
2151 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2152 echo "$ac_t""yes" 1>&6
2153 cat >> confdefs.h <<EOF
2154 #define CRAY_STACKSEG_END $ac_func
2157 break
2158 else
2159 echo "$ac_t""no" 1>&6
2162 done
2165 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2166 echo "configure:2166: checking stack direction for C alloca" >&5
2167 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2168 echo $ac_n "(cached) $ac_c" 1>&6
2169 else
2170 if test "$cross_compiling" = yes; then
2171 ac_cv_c_stack_direction=0
2172 else
2173 cat > conftest.$ac_ext <<EOF
2174 #line 2174 "configure"
2175 #include "confdefs.h"
2176 find_stack_direction ()
2178 static char *addr = 0;
2179 auto char dummy;
2180 if (addr == 0)
2182 addr = &dummy;
2183 return find_stack_direction ();
2185 else
2186 return (&dummy > addr) ? 1 : -1;
2188 main ()
2190 exit (find_stack_direction() < 0);
2193 if { (eval echo configure:2193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2194 then
2195 ac_cv_c_stack_direction=1
2196 else
2197 echo "configure: failed program was:" >&5
2198 cat conftest.$ac_ext >&5
2199 rm -fr conftest*
2200 ac_cv_c_stack_direction=-1
2202 rm -fr conftest*
2207 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2208 cat >> confdefs.h <<EOF
2209 #define STACK_DIRECTION $ac_cv_c_stack_direction
2215 echo $ac_n "checking size of short""... $ac_c" 1>&6
2216 echo "configure:2216: checking size of short" >&5
2217 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2218 echo $ac_n "(cached) $ac_c" 1>&6
2219 else
2220 if test "$cross_compiling" = yes; then
2221 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2222 else
2223 cat > conftest.$ac_ext <<EOF
2224 #line 2224 "configure"
2225 #include "confdefs.h"
2226 #include <stdio.h>
2227 main()
2229 FILE *f=fopen("conftestval", "w");
2230 if (!f) exit(1);
2231 fprintf(f, "%d\n", sizeof(short));
2232 exit(0);
2235 if { (eval echo configure:2235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2236 then
2237 ac_cv_sizeof_short=`cat conftestval`
2238 else
2239 echo "configure: failed program was:" >&5
2240 cat conftest.$ac_ext >&5
2241 rm -fr conftest*
2242 ac_cv_sizeof_short=0
2244 rm -fr conftest*
2248 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2249 cat >> confdefs.h <<EOF
2250 #define SIZEOF_SHORT $ac_cv_sizeof_short
2254 echo $ac_n "checking size of int""... $ac_c" 1>&6
2255 echo "configure:2255: checking size of int" >&5
2256 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2257 echo $ac_n "(cached) $ac_c" 1>&6
2258 else
2259 if test "$cross_compiling" = yes; then
2260 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2261 else
2262 cat > conftest.$ac_ext <<EOF
2263 #line 2263 "configure"
2264 #include "confdefs.h"
2265 #include <stdio.h>
2266 main()
2268 FILE *f=fopen("conftestval", "w");
2269 if (!f) exit(1);
2270 fprintf(f, "%d\n", sizeof(int));
2271 exit(0);
2274 if { (eval echo configure:2274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2275 then
2276 ac_cv_sizeof_int=`cat conftestval`
2277 else
2278 echo "configure: failed program was:" >&5
2279 cat conftest.$ac_ext >&5
2280 rm -fr conftest*
2281 ac_cv_sizeof_int=0
2283 rm -fr conftest*
2287 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2288 cat >> confdefs.h <<EOF
2289 #define SIZEOF_INT $ac_cv_sizeof_int
2293 echo $ac_n "checking size of long""... $ac_c" 1>&6
2294 echo "configure:2294: checking size of long" >&5
2295 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2296 echo $ac_n "(cached) $ac_c" 1>&6
2297 else
2298 if test "$cross_compiling" = yes; then
2299 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2300 else
2301 cat > conftest.$ac_ext <<EOF
2302 #line 2302 "configure"
2303 #include "confdefs.h"
2304 #include <stdio.h>
2305 main()
2307 FILE *f=fopen("conftestval", "w");
2308 if (!f) exit(1);
2309 fprintf(f, "%d\n", sizeof(long));
2310 exit(0);
2313 if { (eval echo configure:2313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2314 then
2315 ac_cv_sizeof_long=`cat conftestval`
2316 else
2317 echo "configure: failed program was:" >&5
2318 cat conftest.$ac_ext >&5
2319 rm -fr conftest*
2320 ac_cv_sizeof_long=0
2322 rm -fr conftest*
2326 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2327 cat >> confdefs.h <<EOF
2328 #define SIZEOF_LONG $ac_cv_sizeof_long
2332 echo $ac_n "checking size of long long""... $ac_c" 1>&6
2333 echo "configure:2333: checking size of long long" >&5
2334 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
2335 echo $ac_n "(cached) $ac_c" 1>&6
2336 else
2337 if test "$cross_compiling" = yes; then
2338 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2339 else
2340 cat > conftest.$ac_ext <<EOF
2341 #line 2341 "configure"
2342 #include "confdefs.h"
2343 #include <stdio.h>
2344 main()
2346 FILE *f=fopen("conftestval", "w");
2347 if (!f) exit(1);
2348 fprintf(f, "%d\n", sizeof(long long));
2349 exit(0);
2352 if { (eval echo configure:2352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2353 then
2354 ac_cv_sizeof_long_long=`cat conftestval`
2355 else
2356 echo "configure: failed program was:" >&5
2357 cat conftest.$ac_ext >&5
2358 rm -fr conftest*
2359 ac_cv_sizeof_long_long=0
2361 rm -fr conftest*
2365 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2366 cat >> confdefs.h <<EOF
2367 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2371 echo $ac_n "checking size of float""... $ac_c" 1>&6
2372 echo "configure:2372: checking size of float" >&5
2373 if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
2374 echo $ac_n "(cached) $ac_c" 1>&6
2375 else
2376 if test "$cross_compiling" = yes; then
2377 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2378 else
2379 cat > conftest.$ac_ext <<EOF
2380 #line 2380 "configure"
2381 #include "confdefs.h"
2382 #include <stdio.h>
2383 main()
2385 FILE *f=fopen("conftestval", "w");
2386 if (!f) exit(1);
2387 fprintf(f, "%d\n", sizeof(float));
2388 exit(0);
2391 if { (eval echo configure:2391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2392 then
2393 ac_cv_sizeof_float=`cat conftestval`
2394 else
2395 echo "configure: failed program was:" >&5
2396 cat conftest.$ac_ext >&5
2397 rm -fr conftest*
2398 ac_cv_sizeof_float=0
2400 rm -fr conftest*
2404 echo "$ac_t""$ac_cv_sizeof_float" 1>&6
2405 cat >> confdefs.h <<EOF
2406 #define SIZEOF_FLOAT $ac_cv_sizeof_float
2410 echo $ac_n "checking size of double""... $ac_c" 1>&6
2411 echo "configure:2411: checking size of double" >&5
2412 if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
2413 echo $ac_n "(cached) $ac_c" 1>&6
2414 else
2415 if test "$cross_compiling" = yes; then
2416 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2417 else
2418 cat > conftest.$ac_ext <<EOF
2419 #line 2419 "configure"
2420 #include "confdefs.h"
2421 #include <stdio.h>
2422 main()
2424 FILE *f=fopen("conftestval", "w");
2425 if (!f) exit(1);
2426 fprintf(f, "%d\n", sizeof(double));
2427 exit(0);
2430 if { (eval echo configure:2430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2431 then
2432 ac_cv_sizeof_double=`cat conftestval`
2433 else
2434 echo "configure: failed program was:" >&5
2435 cat conftest.$ac_ext >&5
2436 rm -fr conftest*
2437 ac_cv_sizeof_double=0
2439 rm -fr conftest*
2443 echo "$ac_t""$ac_cv_sizeof_double" 1>&6
2444 cat >> confdefs.h <<EOF
2445 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
2449 echo $ac_n "checking size of long double""... $ac_c" 1>&6
2450 echo "configure:2450: checking size of long double" >&5
2451 if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
2452 echo $ac_n "(cached) $ac_c" 1>&6
2453 else
2454 if test "$cross_compiling" = yes; then
2455 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2456 else
2457 cat > conftest.$ac_ext <<EOF
2458 #line 2458 "configure"
2459 #include "confdefs.h"
2460 #include <stdio.h>
2461 main()
2463 FILE *f=fopen("conftestval", "w");
2464 if (!f) exit(1);
2465 fprintf(f, "%d\n", sizeof(long double));
2466 exit(0);
2469 if { (eval echo configure:2469: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2470 then
2471 ac_cv_sizeof_long_double=`cat conftestval`
2472 else
2473 echo "configure: failed program was:" >&5
2474 cat conftest.$ac_ext >&5
2475 rm -fr conftest*
2476 ac_cv_sizeof_long_double=0
2478 rm -fr conftest*
2482 echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
2483 cat >> confdefs.h <<EOF
2484 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
2489 echo $ac_n "checking size of void *""... $ac_c" 1>&6
2490 echo "configure:2490: checking size of void *" >&5
2491 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
2492 echo $ac_n "(cached) $ac_c" 1>&6
2493 else
2494 if test "$cross_compiling" = yes; then
2495 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2496 else
2497 cat > conftest.$ac_ext <<EOF
2498 #line 2498 "configure"
2499 #include "confdefs.h"
2500 #include <stdio.h>
2501 main()
2503 FILE *f=fopen("conftestval", "w");
2504 if (!f) exit(1);
2505 fprintf(f, "%d\n", sizeof(void *));
2506 exit(0);
2509 if { (eval echo configure:2509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2510 then
2511 ac_cv_sizeof_void_p=`cat conftestval`
2512 else
2513 echo "configure: failed program was:" >&5
2514 cat conftest.$ac_ext >&5
2515 rm -fr conftest*
2516 ac_cv_sizeof_void_p=0
2518 rm -fr conftest*
2522 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
2523 cat >> confdefs.h <<EOF
2524 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
2528 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2529 echo "configure:2529: checking whether byte ordering is bigendian" >&5
2530 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2531 echo $ac_n "(cached) $ac_c" 1>&6
2532 else
2533 ac_cv_c_bigendian=unknown
2534 # See if sys/param.h defines the BYTE_ORDER macro.
2535 cat > conftest.$ac_ext <<EOF
2536 #line 2536 "configure"
2537 #include "confdefs.h"
2538 #include <sys/types.h>
2539 #include <sys/param.h>
2540 int main() {
2542 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2543 bogus endian macros
2544 #endif
2545 ; return 0; }
2547 if { (eval echo configure:2547: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2548 rm -rf conftest*
2549 # It does; now see whether it defined to BIG_ENDIAN or not.
2550 cat > conftest.$ac_ext <<EOF
2551 #line 2551 "configure"
2552 #include "confdefs.h"
2553 #include <sys/types.h>
2554 #include <sys/param.h>
2555 int main() {
2557 #if BYTE_ORDER != BIG_ENDIAN
2558 not big endian
2559 #endif
2560 ; return 0; }
2562 if { (eval echo configure:2562: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2563 rm -rf conftest*
2564 ac_cv_c_bigendian=yes
2565 else
2566 echo "configure: failed program was:" >&5
2567 cat conftest.$ac_ext >&5
2568 rm -rf conftest*
2569 ac_cv_c_bigendian=no
2571 rm -f conftest*
2572 else
2573 echo "configure: failed program was:" >&5
2574 cat conftest.$ac_ext >&5
2576 rm -f conftest*
2577 if test $ac_cv_c_bigendian = unknown; then
2578 if test "$cross_compiling" = yes; then
2579 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2580 else
2581 cat > conftest.$ac_ext <<EOF
2582 #line 2582 "configure"
2583 #include "confdefs.h"
2584 main () {
2585 /* Are we little or big endian? From Harbison&Steele. */
2586 union
2588 long l;
2589 char c[sizeof (long)];
2590 } u;
2591 u.l = 1;
2592 exit (u.c[sizeof (long) - 1] == 1);
2595 if { (eval echo configure:2595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2596 then
2597 ac_cv_c_bigendian=no
2598 else
2599 echo "configure: failed program was:" >&5
2600 cat conftest.$ac_ext >&5
2601 rm -fr conftest*
2602 ac_cv_c_bigendian=yes
2604 rm -fr conftest*
2610 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2611 if test $ac_cv_c_bigendian = yes; then
2612 cat >> confdefs.h <<\EOF
2613 #define WORDS_BIGENDIAN 1
2624 # Check whether --enable-debug or --disable-debug was given.
2625 if test "${enable_debug+set}" = set; then
2626 enableval="$enable_debug"
2627 cat >> confdefs.h <<\EOF
2628 #define FFI_DEBUG 1
2634 # Check whether --enable-debug or --disable-debug was given.
2635 if test "${enable_debug+set}" = set; then
2636 enableval="$enable_debug"
2637 cat >> confdefs.h <<\EOF
2638 #define FFI_NO_STRUCTS 1
2644 # Check whether --enable-debug or --disable-debug was given.
2645 if test "${enable_debug+set}" = set; then
2646 enableval="$enable_debug"
2647 cat >> confdefs.h <<\EOF
2648 #define FFI_NO_RAW_API 1
2654 # Check whether --enable-purify-safety or --disable-purify-safety was given.
2655 if test "${enable_purify_safety+set}" = set; then
2656 enableval="$enable_purify_safety"
2657 cat >> confdefs.h <<\EOF
2658 #define USING_PURIFY 1
2666 if test -z "$with_cross_host"; then
2667 USE_LIBDIR_TRUE=
2668 USE_LIBDIR_FALSE='#'
2669 else
2670 USE_LIBDIR_TRUE='#'
2671 USE_LIBDIR_FALSE=
2674 if test "${multilib}" = "yes"; then
2675 multilib_arg="--enable-multilib"
2676 else
2677 multilib_arg=
2680 trap '' 1 2 15
2681 cat > confcache <<\EOF
2682 # This file is a shell script that caches the results of configure
2683 # tests run on this system so they can be shared between configure
2684 # scripts and configure runs. It is not useful on other systems.
2685 # If it contains results you don't want to keep, you may remove or edit it.
2687 # By default, configure uses ./config.cache as the cache file,
2688 # creating it if it does not exist already. You can give configure
2689 # the --cache-file=FILE option to use a different cache file; that is
2690 # what configure does when it calls configure scripts in
2691 # subdirectories, so they share the cache.
2692 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2693 # config.status only pays attention to the cache file if you give it the
2694 # --recheck option to rerun configure.
2697 # The following way of writing the cache mishandles newlines in values,
2698 # but we know of no workaround that is simple, portable, and efficient.
2699 # So, don't put newlines in cache variables' values.
2700 # Ultrix sh set writes to stderr and can't be redirected directly,
2701 # and sets the high bit in the cache file unless we assign to the vars.
2702 (set) 2>&1 |
2703 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2704 *ac_space=\ *)
2705 # `set' does not quote correctly, so add quotes (double-quote substitution
2706 # turns \\\\ into \\, and sed turns \\ into \).
2707 sed -n \
2708 -e "s/'/'\\\\''/g" \
2709 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2712 # `set' quotes correctly as required by POSIX, so do not add quotes.
2713 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2715 esac >> confcache
2716 if cmp -s $cache_file confcache; then
2718 else
2719 if test -w $cache_file; then
2720 echo "updating cache $cache_file"
2721 cat confcache > $cache_file
2722 else
2723 echo "not updating unwritable cache $cache_file"
2726 rm -f confcache
2728 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2730 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2731 # Let make expand exec_prefix.
2732 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2734 # Any assignment to VPATH causes Sun make to only execute
2735 # the first set of double-colon rules, so remove it if not needed.
2736 # If there is a colon in the path, we need to keep it.
2737 if test "x$srcdir" = x.; then
2738 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2741 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2743 DEFS=-DHAVE_CONFIG_H
2745 # Without the "./", some shells look in PATH for config.status.
2746 : ${CONFIG_STATUS=./config.status}
2748 echo creating $CONFIG_STATUS
2749 rm -f $CONFIG_STATUS
2750 cat > $CONFIG_STATUS <<EOF
2751 #! /bin/sh
2752 # Generated automatically by configure.
2753 # Run this file to recreate the current configuration.
2754 # This directory was configured as follows,
2755 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2757 # $0 $ac_configure_args
2759 # Compiler output produced by configure, useful for debugging
2760 # configure, is in ./config.log if it exists.
2762 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2763 for ac_option
2765 case "\$ac_option" in
2766 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2767 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2768 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2769 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2770 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2771 exit 0 ;;
2772 -help | --help | --hel | --he | --h)
2773 echo "\$ac_cs_usage"; exit 0 ;;
2774 *) echo "\$ac_cs_usage"; exit 1 ;;
2775 esac
2776 done
2778 ac_given_srcdir=$srcdir
2779 ac_given_INSTALL="$INSTALL"
2781 trap 'rm -fr `echo "include/Makefile include/ffi.h Makefile fficonfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2783 cat >> $CONFIG_STATUS <<EOF
2785 # Protect against being on the right side of a sed subst in config.status.
2786 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2787 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2788 $ac_vpsub
2789 $extrasub
2790 s%@SHELL@%$SHELL%g
2791 s%@CFLAGS@%$CFLAGS%g
2792 s%@CPPFLAGS@%$CPPFLAGS%g
2793 s%@CXXFLAGS@%$CXXFLAGS%g
2794 s%@FFLAGS@%$FFLAGS%g
2795 s%@DEFS@%$DEFS%g
2796 s%@LDFLAGS@%$LDFLAGS%g
2797 s%@LIBS@%$LIBS%g
2798 s%@exec_prefix@%$exec_prefix%g
2799 s%@prefix@%$prefix%g
2800 s%@program_transform_name@%$program_transform_name%g
2801 s%@bindir@%$bindir%g
2802 s%@sbindir@%$sbindir%g
2803 s%@libexecdir@%$libexecdir%g
2804 s%@datadir@%$datadir%g
2805 s%@sysconfdir@%$sysconfdir%g
2806 s%@sharedstatedir@%$sharedstatedir%g
2807 s%@localstatedir@%$localstatedir%g
2808 s%@libdir@%$libdir%g
2809 s%@includedir@%$includedir%g
2810 s%@oldincludedir@%$oldincludedir%g
2811 s%@infodir@%$infodir%g
2812 s%@mandir@%$mandir%g
2813 s%@libffi_basedir@%$libffi_basedir%g
2814 s%@host@%$host%g
2815 s%@host_alias@%$host_alias%g
2816 s%@host_cpu@%$host_cpu%g
2817 s%@host_vendor@%$host_vendor%g
2818 s%@host_os@%$host_os%g
2819 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2820 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2821 s%@INSTALL_DATA@%$INSTALL_DATA%g
2822 s%@PACKAGE@%$PACKAGE%g
2823 s%@VERSION@%$VERSION%g
2824 s%@ACLOCAL@%$ACLOCAL%g
2825 s%@AUTOCONF@%$AUTOCONF%g
2826 s%@AUTOMAKE@%$AUTOMAKE%g
2827 s%@AUTOHEADER@%$AUTOHEADER%g
2828 s%@MAKEINFO@%$MAKEINFO%g
2829 s%@SET_MAKE@%$SET_MAKE%g
2830 s%@EXEEXT@%$EXEEXT%g
2831 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2832 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2833 s%@MAINT@%$MAINT%g
2834 s%@CC@%$CC%g
2835 s%@build@%$build%g
2836 s%@build_alias@%$build_alias%g
2837 s%@build_cpu@%$build_cpu%g
2838 s%@build_vendor@%$build_vendor%g
2839 s%@build_os@%$build_os%g
2840 s%@RANLIB@%$RANLIB%g
2841 s%@LN_S@%$LN_S%g
2842 s%@LIBTOOL@%$LIBTOOL%g
2843 s%@MIPS_GCC_TRUE@%$MIPS_GCC_TRUE%g
2844 s%@MIPS_GCC_FALSE@%$MIPS_GCC_FALSE%g
2845 s%@MIPS_SGI_TRUE@%$MIPS_SGI_TRUE%g
2846 s%@MIPS_SGI_FALSE@%$MIPS_SGI_FALSE%g
2847 s%@SPARC_TRUE@%$SPARC_TRUE%g
2848 s%@SPARC_FALSE@%$SPARC_FALSE%g
2849 s%@X86_TRUE@%$X86_TRUE%g
2850 s%@X86_FALSE@%$X86_FALSE%g
2851 s%@ALPHA_TRUE@%$ALPHA_TRUE%g
2852 s%@ALPHA_FALSE@%$ALPHA_FALSE%g
2853 s%@IA64_TRUE@%$IA64_TRUE%g
2854 s%@IA64_FALSE@%$IA64_FALSE%g
2855 s%@M68K_TRUE@%$M68K_TRUE%g
2856 s%@M68K_FALSE@%$M68K_FALSE%g
2857 s%@POWERPC_TRUE@%$POWERPC_TRUE%g
2858 s%@POWERPC_FALSE@%$POWERPC_FALSE%g
2859 s%@ARM_TRUE@%$ARM_TRUE%g
2860 s%@ARM_FALSE@%$ARM_FALSE%g
2861 s%@CPP@%$CPP%g
2862 s%@ALLOCA@%$ALLOCA%g
2863 s%@TARGET@%$TARGET%g
2864 s%@TARGETDIR@%$TARGETDIR%g
2865 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
2866 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
2868 CEOF
2871 cat >> $CONFIG_STATUS <<\EOF
2873 # Split the substitutions into bite-sized pieces for seds with
2874 # small command number limits, like on Digital OSF/1 and HP-UX.
2875 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2876 ac_file=1 # Number of current file.
2877 ac_beg=1 # First line for current file.
2878 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2879 ac_more_lines=:
2880 ac_sed_cmds=""
2881 while $ac_more_lines; do
2882 if test $ac_beg -gt 1; then
2883 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2884 else
2885 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2887 if test ! -s conftest.s$ac_file; then
2888 ac_more_lines=false
2889 rm -f conftest.s$ac_file
2890 else
2891 if test -z "$ac_sed_cmds"; then
2892 ac_sed_cmds="sed -f conftest.s$ac_file"
2893 else
2894 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2896 ac_file=`expr $ac_file + 1`
2897 ac_beg=$ac_end
2898 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2900 done
2901 if test -z "$ac_sed_cmds"; then
2902 ac_sed_cmds=cat
2906 cat >> $CONFIG_STATUS <<EOF
2908 CONFIG_FILES=\${CONFIG_FILES-"include/Makefile include/ffi.h Makefile"}
2910 cat >> $CONFIG_STATUS <<\EOF
2911 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2912 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2913 case "$ac_file" in
2914 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2915 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2916 *) ac_file_in="${ac_file}.in" ;;
2917 esac
2919 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2921 # Remove last slash and all that follows it. Not all systems have dirname.
2922 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2923 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2924 # The file is in a subdirectory.
2925 test ! -d "$ac_dir" && mkdir "$ac_dir"
2926 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2927 # A "../" for each directory in $ac_dir_suffix.
2928 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2929 else
2930 ac_dir_suffix= ac_dots=
2933 case "$ac_given_srcdir" in
2934 .) srcdir=.
2935 if test -z "$ac_dots"; then top_srcdir=.
2936 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2937 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2938 *) # Relative path.
2939 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2940 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2941 esac
2943 case "$ac_given_INSTALL" in
2944 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2945 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2946 esac
2948 echo creating "$ac_file"
2949 rm -f "$ac_file"
2950 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2951 case "$ac_file" in
2952 *Makefile*) ac_comsub="1i\\
2953 # $configure_input" ;;
2954 *) ac_comsub= ;;
2955 esac
2957 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2958 sed -e "$ac_comsub
2959 s%@configure_input@%$configure_input%g
2960 s%@srcdir@%$srcdir%g
2961 s%@top_srcdir@%$top_srcdir%g
2962 s%@INSTALL@%$INSTALL%g
2963 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2964 fi; done
2965 rm -f conftest.s*
2967 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2968 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2970 # ac_d sets the value in "#define NAME VALUE" lines.
2971 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2972 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2973 ac_dC='\3'
2974 ac_dD='%g'
2975 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2976 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2977 ac_uB='\([ ]\)%\1#\2define\3'
2978 ac_uC=' '
2979 ac_uD='\4%g'
2980 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2981 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2982 ac_eB='$%\1#\2define\3'
2983 ac_eC=' '
2984 ac_eD='%g'
2986 if test "${CONFIG_HEADERS+set}" != set; then
2988 cat >> $CONFIG_STATUS <<EOF
2989 CONFIG_HEADERS="fficonfig.h"
2991 cat >> $CONFIG_STATUS <<\EOF
2993 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2994 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2995 case "$ac_file" in
2996 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2997 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2998 *) ac_file_in="${ac_file}.in" ;;
2999 esac
3001 echo creating $ac_file
3003 rm -f conftest.frag conftest.in conftest.out
3004 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3005 cat $ac_file_inputs > conftest.in
3009 # Transform confdefs.h into a sed script conftest.vals that substitutes
3010 # the proper values into config.h.in to produce config.h. And first:
3011 # Protect against being on the right side of a sed subst in config.status.
3012 # Protect against being in an unquoted here document in config.status.
3013 rm -f conftest.vals
3014 cat > conftest.hdr <<\EOF
3015 s/[\\&%]/\\&/g
3016 s%[\\$`]%\\&%g
3017 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3018 s%ac_d%ac_u%gp
3019 s%ac_u%ac_e%gp
3021 sed -n -f conftest.hdr confdefs.h > conftest.vals
3022 rm -f conftest.hdr
3024 # This sed command replaces #undef with comments. This is necessary, for
3025 # example, in the case of _POSIX_SOURCE, which is predefined and required
3026 # on some systems where configure will not decide to define it.
3027 cat >> conftest.vals <<\EOF
3028 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3031 # Break up conftest.vals because some shells have a limit on
3032 # the size of here documents, and old seds have small limits too.
3034 rm -f conftest.tail
3035 while :
3037 ac_lines=`grep -c . conftest.vals`
3038 # grep -c gives empty output for an empty file on some AIX systems.
3039 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3040 # Write a limited-size here document to conftest.frag.
3041 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3042 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3043 echo 'CEOF
3044 sed -f conftest.frag conftest.in > conftest.out
3045 rm -f conftest.in
3046 mv conftest.out conftest.in
3047 ' >> $CONFIG_STATUS
3048 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3049 rm -f conftest.vals
3050 mv conftest.tail conftest.vals
3051 done
3052 rm -f conftest.vals
3054 cat >> $CONFIG_STATUS <<\EOF
3055 rm -f conftest.frag conftest.h
3056 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3057 cat conftest.in >> conftest.h
3058 rm -f conftest.in
3059 if cmp -s $ac_file conftest.h 2>/dev/null; then
3060 echo "$ac_file is unchanged"
3061 rm -f conftest.h
3062 else
3063 # Remove last slash and all that follows it. Not all systems have dirname.
3064 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3065 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3066 # The file is in a subdirectory.
3067 test ! -d "$ac_dir" && mkdir "$ac_dir"
3069 rm -f $ac_file
3070 mv conftest.h $ac_file
3072 fi; done
3075 cat >> $CONFIG_STATUS <<EOF
3077 srcdir=${srcdir}
3078 host=${host}
3079 target=${target}
3080 with_multisubdir=${with_multisubdir}
3081 ac_configure_args="${multilib_arg} ${ac_configure_args}"
3082 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
3083 libffi_basedir=${libffi_basedir}
3084 CC="${CC}"
3085 DEFS="$DEFS"
3086 test ! -d include && mkdir include
3087 test ! -f include/fficonfig.h && cp fficonfig.h include/fficonfig.h
3088 if cmp -s fficonfig.h include/fficonfig.h 2>/dev/null; then
3089 echo fficonfig.h unchanged
3090 else
3091 echo Moving fficonfig.h to include/fficonfig.h
3092 cp fficonfig.h include/fficonfig.h
3096 cat >> $CONFIG_STATUS <<\EOF
3097 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3099 if test -n "$CONFIG_FILES"; then
3100 ac_file=Makefile . ${libffi_basedir}/../config-ml.in
3103 exit 0
3105 chmod +x $CONFIG_STATUS
3106 rm -fr confdefs* $ac_clean_files
3107 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1