* integrate.h (struct inline_remap): Add leaf_reg_map table.
[official-gcc.git] / libffi / configure
blobc909e61d9035ff5fef448364966c6be5a9e4d132
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-shared[=PKGS] build shared libraries [default=yes]"
18 ac_help="$ac_help
19 --enable-static[=PKGS] build static libraries [default=yes]"
20 ac_help="$ac_help
21 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
22 ac_help="$ac_help
23 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
24 ac_help="$ac_help
25 --disable-libtool-lock avoid locking (might break parallel builds)"
26 ac_help="$ac_help
27 --with-pic try to use only PIC/non-PIC objects [default=use both]"
28 ac_help="$ac_help
29 --enable-maintainer-mode enable make rules and dependencies not useful
30 (and sometimes confusing) to the casual installer"
31 ac_help="$ac_help
32 --enable-debug debugging mode"
33 ac_help="$ac_help
34 --disable-structs omit code for struct support"
35 ac_help="$ac_help
36 --disable-raw-api make the raw api unavailable"
37 ac_help="$ac_help
38 --enable-purify-safety purify-safe mode"
40 # Initialize some variables set by options.
41 # The variables have the same names as the options, with
42 # dashes changed to underlines.
43 build=NONE
44 cache_file=./config.cache
45 exec_prefix=NONE
46 host=NONE
47 no_create=
48 nonopt=NONE
49 no_recursion=
50 prefix=NONE
51 program_prefix=NONE
52 program_suffix=NONE
53 program_transform_name=s,x,x,
54 silent=
55 site=
56 srcdir=
57 target=NONE
58 verbose=
59 x_includes=NONE
60 x_libraries=NONE
61 bindir='${exec_prefix}/bin'
62 sbindir='${exec_prefix}/sbin'
63 libexecdir='${exec_prefix}/libexec'
64 datadir='${prefix}/share'
65 sysconfdir='${prefix}/etc'
66 sharedstatedir='${prefix}/com'
67 localstatedir='${prefix}/var'
68 libdir='${exec_prefix}/lib'
69 includedir='${prefix}/include'
70 oldincludedir='/usr/include'
71 infodir='${prefix}/info'
72 mandir='${prefix}/man'
74 # Initialize some other variables.
75 subdirs=
76 MFLAGS= MAKEFLAGS=
77 SHELL=${CONFIG_SHELL-/bin/sh}
78 # Maximum number of lines to put in a shell here document.
79 ac_max_here_lines=12
81 ac_prev=
82 for ac_option
85 # If the previous option needs an argument, assign it.
86 if test -n "$ac_prev"; then
87 eval "$ac_prev=\$ac_option"
88 ac_prev=
89 continue
92 case "$ac_option" in
93 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
94 *) ac_optarg= ;;
95 esac
97 # Accept the important Cygnus configure options, so we can diagnose typos.
99 case "$ac_option" in
101 -bindir | --bindir | --bindi | --bind | --bin | --bi)
102 ac_prev=bindir ;;
103 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
104 bindir="$ac_optarg" ;;
106 -build | --build | --buil | --bui | --bu)
107 ac_prev=build ;;
108 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
109 build="$ac_optarg" ;;
111 -cache-file | --cache-file | --cache-fil | --cache-fi \
112 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
113 ac_prev=cache_file ;;
114 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
115 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
116 cache_file="$ac_optarg" ;;
118 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
119 ac_prev=datadir ;;
120 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
121 | --da=*)
122 datadir="$ac_optarg" ;;
124 -disable-* | --disable-*)
125 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
126 # Reject names that are not valid shell variable names.
127 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
128 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
130 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
131 eval "enable_${ac_feature}=no" ;;
133 -enable-* | --enable-*)
134 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
135 # Reject names that are not valid shell variable names.
136 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
137 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
139 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
140 case "$ac_option" in
141 *=*) ;;
142 *) ac_optarg=yes ;;
143 esac
144 eval "enable_${ac_feature}='$ac_optarg'" ;;
146 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
147 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
148 | --exec | --exe | --ex)
149 ac_prev=exec_prefix ;;
150 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
151 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
152 | --exec=* | --exe=* | --ex=*)
153 exec_prefix="$ac_optarg" ;;
155 -gas | --gas | --ga | --g)
156 # Obsolete; use --with-gas.
157 with_gas=yes ;;
159 -help | --help | --hel | --he)
160 # Omit some internal or obsolete options to make the list less imposing.
161 # This message is too long to be a string in the A/UX 3.1 sh.
162 cat << EOF
163 Usage: configure [options] [host]
164 Options: [defaults in brackets after descriptions]
165 Configuration:
166 --cache-file=FILE cache test results in FILE
167 --help print this message
168 --no-create do not create output files
169 --quiet, --silent do not print \`checking...' messages
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 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
341 ac_prev=srcdir ;;
342 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
343 srcdir="$ac_optarg" ;;
345 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
346 | --syscon | --sysco | --sysc | --sys | --sy)
347 ac_prev=sysconfdir ;;
348 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
349 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
350 sysconfdir="$ac_optarg" ;;
352 -target | --target | --targe | --targ | --tar | --ta | --t)
353 ac_prev=target ;;
354 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
355 target="$ac_optarg" ;;
357 -v | -verbose | --verbose | --verbos | --verbo | --verb)
358 verbose=yes ;;
360 -version | --version | --versio | --versi | --vers)
361 echo "configure generated by autoconf version 2.13"
362 exit 0 ;;
364 -with-* | --with-*)
365 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
366 # Reject names that are not valid shell variable names.
367 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
368 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370 ac_package=`echo $ac_package| sed 's/-/_/g'`
371 case "$ac_option" in
372 *=*) ;;
373 *) ac_optarg=yes ;;
374 esac
375 eval "with_${ac_package}='$ac_optarg'" ;;
377 -without-* | --without-*)
378 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
379 # Reject names that are not valid shell variable names.
380 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
381 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
383 ac_package=`echo $ac_package| sed 's/-/_/g'`
384 eval "with_${ac_package}=no" ;;
386 --x)
387 # Obsolete; use --with-x.
388 with_x=yes ;;
390 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
391 | --x-incl | --x-inc | --x-in | --x-i)
392 ac_prev=x_includes ;;
393 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
394 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
395 x_includes="$ac_optarg" ;;
397 -x-libraries | --x-libraries | --x-librarie | --x-librari \
398 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
399 ac_prev=x_libraries ;;
400 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
401 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
402 x_libraries="$ac_optarg" ;;
404 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
408 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
409 echo "configure: warning: $ac_option: invalid host type" 1>&2
411 if test "x$nonopt" != xNONE; then
412 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
414 nonopt="$ac_option"
417 esac
418 done
420 if test -n "$ac_prev"; then
421 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
424 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
426 # File descriptor usage:
427 # 0 standard input
428 # 1 file creation
429 # 2 errors and warnings
430 # 3 some systems may open it to /dev/tty
431 # 4 used on the Kubota Titan
432 # 6 checking for... messages and results
433 # 5 compiler messages saved in config.log
434 if test "$silent" = yes; then
435 exec 6>/dev/null
436 else
437 exec 6>&1
439 exec 5>./config.log
441 echo "\
442 This file contains any messages produced by compilers while
443 running configure, to aid debugging if configure makes a mistake.
444 " 1>&5
446 # Strip out --no-create and --no-recursion so they do not pile up.
447 # Also quote any args containing shell metacharacters.
448 ac_configure_args=
449 for ac_arg
451 case "$ac_arg" in
452 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
453 | --no-cr | --no-c) ;;
454 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
455 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
456 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
457 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
458 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
459 esac
460 done
462 # NLS nuisances.
463 # Only set these to C if already set. These must not be set unconditionally
464 # because not all systems understand e.g. LANG=C (notably SCO).
465 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
466 # Non-C LC_CTYPE values break the ctype check.
467 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
468 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
469 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
470 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
472 # confdefs.h avoids OS command line length limits that DEFS can exceed.
473 rm -rf conftest* confdefs.h
474 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
475 echo > confdefs.h
477 # A filename unique to this package, relative to the directory that
478 # configure is in, which we can look for to find out if srcdir is correct.
479 ac_unique_file=fficonfig.h.in
481 # Find the source files, if location was not specified.
482 if test -z "$srcdir"; then
483 ac_srcdir_defaulted=yes
484 # Try the directory containing this script, then its parent.
485 ac_prog=$0
486 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
487 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
488 srcdir=$ac_confdir
489 if test ! -r $srcdir/$ac_unique_file; then
490 srcdir=..
492 else
493 ac_srcdir_defaulted=no
495 if test ! -r $srcdir/$ac_unique_file; then
496 if test "$ac_srcdir_defaulted" = yes; then
497 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
498 else
499 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
502 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
504 # Prefer explicitly selected file to automatically selected ones.
505 if test -z "$CONFIG_SITE"; then
506 if test "x$prefix" != xNONE; then
507 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
508 else
509 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
512 for ac_site_file in $CONFIG_SITE; do
513 if test -r "$ac_site_file"; then
514 echo "loading site script $ac_site_file"
515 . "$ac_site_file"
517 done
519 if test -r "$cache_file"; then
520 echo "loading cache $cache_file"
521 . $cache_file
522 else
523 echo "creating cache $cache_file"
524 > $cache_file
527 ac_ext=c
528 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
529 ac_cpp='$CPP $CPPFLAGS'
530 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
531 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
532 cross_compiling=$ac_cv_prog_cc_cross
534 ac_exeext=
535 ac_objext=o
536 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
537 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
538 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
539 ac_n= ac_c='
540 ' ac_t=' '
541 else
542 ac_n=-n ac_c= ac_t=
544 else
545 ac_n= ac_c='\c' ac_t=
548 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
549 echo "configure:550: checking for Cygwin environment" >&5
550 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
551 echo $ac_n "(cached) $ac_c" 1>&6
552 else
553 cat > conftest.$ac_ext <<EOF
554 #line 555 "configure"
555 #include "confdefs.h"
557 int main() {
559 #ifndef __CYGWIN__
560 #define __CYGWIN__ __CYGWIN32__
561 #endif
562 return __CYGWIN__;
563 ; return 0; }
565 if { (eval echo configure:566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
566 rm -rf conftest*
567 ac_cv_cygwin=yes
568 else
569 echo "configure: failed program was:" >&5
570 cat conftest.$ac_ext >&5
571 rm -rf conftest*
572 ac_cv_cygwin=no
574 rm -f conftest*
575 rm -f conftest*
578 echo "$ac_t""$ac_cv_cygwin" 1>&6
579 CYGWIN=
580 test "$ac_cv_cygwin" = yes && CYGWIN=yes
581 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
582 echo "configure:583: checking for mingw32 environment" >&5
583 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
584 echo $ac_n "(cached) $ac_c" 1>&6
585 else
586 cat > conftest.$ac_ext <<EOF
587 #line 588 "configure"
588 #include "confdefs.h"
590 int main() {
591 return __MINGW32__;
592 ; return 0; }
594 if { (eval echo configure:595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
595 rm -rf conftest*
596 ac_cv_mingw32=yes
597 else
598 echo "configure: failed program was:" >&5
599 cat conftest.$ac_ext >&5
600 rm -rf conftest*
601 ac_cv_mingw32=no
603 rm -f conftest*
604 rm -f conftest*
607 echo "$ac_t""$ac_cv_mingw32" 1>&6
608 MINGW32=
609 test "$ac_cv_mingw32" = yes && MINGW32=yes
615 echo "configure: warning: ***********************************************************" 1>&2
616 echo "configure: warning: ***********************************************************" 1>&2
617 echo "configure: warning: This is beta code. If you're looking for a stable release" 1>&2
618 echo "configure: warning: then use the most recent one - libffi-1.20." 1>&2
619 echo "configure: warning: ***********************************************************" 1>&2
620 echo "configure: warning: ***********************************************************" 1>&2
622 # Check whether --enable-multilib or --disable-multilib was given.
623 if test "${enable_multilib+set}" = set; then
624 enableval="$enable_multilib"
625 case "${enableval}" in
626 yes) multilib=yes ;;
627 no) multilib=no ;;
628 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
629 esac
630 else
631 multilib=yes
635 if test "${srcdir}" = "."; then
636 if test "${with_target_subdir}" != "."; then
637 libffi_basedir="${srcdir}/${with_multisrctop}.."
638 else
639 libffi_basedir="${srcdir}/${with_multisrctop}"
641 else
642 libffi_basedir="${srcdir}"
646 ac_aux_dir=
647 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
648 if test -f $ac_dir/install-sh; then
649 ac_aux_dir=$ac_dir
650 ac_install_sh="$ac_aux_dir/install-sh -c"
651 break
652 elif test -f $ac_dir/install.sh; then
653 ac_aux_dir=$ac_dir
654 ac_install_sh="$ac_aux_dir/install.sh -c"
655 break
657 done
658 if test -z "$ac_aux_dir"; then
659 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
661 ac_config_guess=$ac_aux_dir/config.guess
662 ac_config_sub=$ac_aux_dir/config.sub
663 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
666 # Make sure we can run config.sub.
667 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
668 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
671 echo $ac_n "checking host system type""... $ac_c" 1>&6
672 echo "configure:673: checking host system type" >&5
674 host_alias=$host
675 case "$host_alias" in
676 NONE)
677 case $nonopt in
678 NONE)
679 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
680 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
681 fi ;;
682 *) host_alias=$nonopt ;;
683 esac ;;
684 esac
686 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
687 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
688 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
689 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
690 echo "$ac_t""$host" 1>&6
693 # Check whether --enable-shared or --disable-shared was given.
694 if test "${enable_shared+set}" = set; then
695 enableval="$enable_shared"
696 p=${PACKAGE-default}
697 case $enableval in
698 yes) enable_shared=yes ;;
699 no) enable_shared=no ;;
701 enable_shared=no
702 # Look at the argument we got. We use all the common list separators.
703 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
704 for pkg in $enableval; do
705 if test "X$pkg" = "X$p"; then
706 enable_shared=yes
708 done
709 IFS="$ac_save_ifs"
711 esac
712 else
713 enable_shared=yes
716 # Check whether --enable-static or --disable-static was given.
717 if test "${enable_static+set}" = set; then
718 enableval="$enable_static"
719 p=${PACKAGE-default}
720 case $enableval in
721 yes) enable_static=yes ;;
722 no) enable_static=no ;;
724 enable_static=no
725 # Look at the argument we got. We use all the common list separators.
726 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
727 for pkg in $enableval; do
728 if test "X$pkg" = "X$p"; then
729 enable_static=yes
731 done
732 IFS="$ac_save_ifs"
734 esac
735 else
736 enable_static=yes
739 # Check whether --enable-fast-install or --disable-fast-install was given.
740 if test "${enable_fast_install+set}" = set; then
741 enableval="$enable_fast_install"
742 p=${PACKAGE-default}
743 case $enableval in
744 yes) enable_fast_install=yes ;;
745 no) enable_fast_install=no ;;
747 enable_fast_install=no
748 # Look at the argument we got. We use all the common list separators.
749 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
750 for pkg in $enableval; do
751 if test "X$pkg" = "X$p"; then
752 enable_fast_install=yes
754 done
755 IFS="$ac_save_ifs"
757 esac
758 else
759 enable_fast_install=yes
762 echo $ac_n "checking build system type""... $ac_c" 1>&6
763 echo "configure:764: checking build system type" >&5
765 build_alias=$build
766 case "$build_alias" in
767 NONE)
768 case $nonopt in
769 NONE) build_alias=$host_alias ;;
770 *) build_alias=$nonopt ;;
771 esac ;;
772 esac
774 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
775 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
776 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
777 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
778 echo "$ac_t""$build" 1>&6
780 # Extract the first word of "gcc", so it can be a program name with args.
781 set dummy gcc; ac_word=$2
782 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
783 echo "configure:784: checking for $ac_word" >&5
784 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
785 echo $ac_n "(cached) $ac_c" 1>&6
786 else
787 if test -n "$CC"; then
788 ac_cv_prog_CC="$CC" # Let the user override the test.
789 else
790 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
791 ac_dummy="$PATH"
792 for ac_dir in $ac_dummy; do
793 test -z "$ac_dir" && ac_dir=.
794 if test -f $ac_dir/$ac_word; then
795 ac_cv_prog_CC="gcc"
796 break
798 done
799 IFS="$ac_save_ifs"
802 CC="$ac_cv_prog_CC"
803 if test -n "$CC"; then
804 echo "$ac_t""$CC" 1>&6
805 else
806 echo "$ac_t""no" 1>&6
809 if test -z "$CC"; then
810 # Extract the first word of "cc", so it can be a program name with args.
811 set dummy cc; ac_word=$2
812 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
813 echo "configure:814: checking for $ac_word" >&5
814 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
815 echo $ac_n "(cached) $ac_c" 1>&6
816 else
817 if test -n "$CC"; then
818 ac_cv_prog_CC="$CC" # Let the user override the test.
819 else
820 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
821 ac_prog_rejected=no
822 ac_dummy="$PATH"
823 for ac_dir in $ac_dummy; do
824 test -z "$ac_dir" && ac_dir=.
825 if test -f $ac_dir/$ac_word; then
826 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
827 ac_prog_rejected=yes
828 continue
830 ac_cv_prog_CC="cc"
831 break
833 done
834 IFS="$ac_save_ifs"
835 if test $ac_prog_rejected = yes; then
836 # We found a bogon in the path, so make sure we never use it.
837 set dummy $ac_cv_prog_CC
838 shift
839 if test $# -gt 0; then
840 # We chose a different compiler from the bogus one.
841 # However, it has the same basename, so the bogon will be chosen
842 # first if we set CC to just the basename; use the full file name.
843 shift
844 set dummy "$ac_dir/$ac_word" "$@"
845 shift
846 ac_cv_prog_CC="$@"
851 CC="$ac_cv_prog_CC"
852 if test -n "$CC"; then
853 echo "$ac_t""$CC" 1>&6
854 else
855 echo "$ac_t""no" 1>&6
858 if test -z "$CC"; then
859 case "`uname -s`" in
860 *win32* | *WIN32*)
861 # Extract the first word of "cl", so it can be a program name with args.
862 set dummy cl; ac_word=$2
863 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
864 echo "configure:865: checking for $ac_word" >&5
865 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
866 echo $ac_n "(cached) $ac_c" 1>&6
867 else
868 if test -n "$CC"; then
869 ac_cv_prog_CC="$CC" # Let the user override the test.
870 else
871 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
872 ac_dummy="$PATH"
873 for ac_dir in $ac_dummy; do
874 test -z "$ac_dir" && ac_dir=.
875 if test -f $ac_dir/$ac_word; then
876 ac_cv_prog_CC="cl"
877 break
879 done
880 IFS="$ac_save_ifs"
883 CC="$ac_cv_prog_CC"
884 if test -n "$CC"; then
885 echo "$ac_t""$CC" 1>&6
886 else
887 echo "$ac_t""no" 1>&6
890 esac
892 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
895 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
896 echo "configure:897: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
898 ac_ext=c
899 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
900 ac_cpp='$CPP $CPPFLAGS'
901 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
902 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
903 cross_compiling=$ac_cv_prog_cc_cross
905 cat > conftest.$ac_ext << EOF
907 #line 908 "configure"
908 #include "confdefs.h"
910 main(){return(0);}
912 if { (eval echo configure:913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
913 ac_cv_prog_cc_works=yes
914 # If we can't run a trivial program, we are probably using a cross compiler.
915 if (./conftest; exit) 2>/dev/null; then
916 ac_cv_prog_cc_cross=no
917 else
918 ac_cv_prog_cc_cross=yes
920 else
921 echo "configure: failed program was:" >&5
922 cat conftest.$ac_ext >&5
923 ac_cv_prog_cc_works=no
925 rm -fr conftest*
926 ac_ext=c
927 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
928 ac_cpp='$CPP $CPPFLAGS'
929 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
930 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
931 cross_compiling=$ac_cv_prog_cc_cross
933 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
934 if test $ac_cv_prog_cc_works = no; then
935 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
937 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
938 echo "configure:939: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
939 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
940 cross_compiling=$ac_cv_prog_cc_cross
942 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
943 echo "configure:944: checking whether we are using GNU C" >&5
944 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
945 echo $ac_n "(cached) $ac_c" 1>&6
946 else
947 cat > conftest.c <<EOF
948 #ifdef __GNUC__
949 yes;
950 #endif
952 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:953: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
953 ac_cv_prog_gcc=yes
954 else
955 ac_cv_prog_gcc=no
959 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
961 if test $ac_cv_prog_gcc = yes; then
962 GCC=yes
963 else
964 GCC=
967 ac_test_CFLAGS="${CFLAGS+set}"
968 ac_save_CFLAGS="$CFLAGS"
969 CFLAGS=
970 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
971 echo "configure:972: checking whether ${CC-cc} accepts -g" >&5
972 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
973 echo $ac_n "(cached) $ac_c" 1>&6
974 else
975 echo 'void f(){}' > conftest.c
976 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
977 ac_cv_prog_cc_g=yes
978 else
979 ac_cv_prog_cc_g=no
981 rm -f conftest*
985 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
986 if test "$ac_test_CFLAGS" = set; then
987 CFLAGS="$ac_save_CFLAGS"
988 elif test $ac_cv_prog_cc_g = yes; then
989 if test "$GCC" = yes; then
990 CFLAGS="-g -O2"
991 else
992 CFLAGS="-g"
994 else
995 if test "$GCC" = yes; then
996 CFLAGS="-O2"
997 else
998 CFLAGS=
1002 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1003 if test "${with_gnu_ld+set}" = set; then
1004 withval="$with_gnu_ld"
1005 test "$withval" = no || with_gnu_ld=yes
1006 else
1007 with_gnu_ld=no
1010 ac_prog=ld
1011 if test "$GCC" = yes; then
1012 # Check if gcc -print-prog-name=ld gives a path.
1013 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1014 echo "configure:1015: checking for ld used by GCC" >&5
1015 case $host in
1016 *-*-mingw*)
1017 # gcc leaves a trailing carriage return which upsets mingw
1018 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1020 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1021 esac
1022 case $ac_prog in
1023 # Accept absolute paths.
1024 [\\/]* | [A-Za-z]:[\\/]*)
1025 re_direlt='/[^/][^/]*/\.\./'
1026 # Canonicalize the path of ld
1027 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1028 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1029 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1030 done
1031 test -z "$LD" && LD="$ac_prog"
1034 # If it fails, then pretend we aren't using GCC.
1035 ac_prog=ld
1038 # If it is relative, then search for the first ld in PATH.
1039 with_gnu_ld=unknown
1041 esac
1042 elif test "$with_gnu_ld" = yes; then
1043 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1044 echo "configure:1045: checking for GNU ld" >&5
1045 else
1046 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1047 echo "configure:1048: checking for non-GNU ld" >&5
1049 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1050 echo $ac_n "(cached) $ac_c" 1>&6
1051 else
1052 if test -z "$LD"; then
1053 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1054 for ac_dir in $PATH; do
1055 test -z "$ac_dir" && ac_dir=.
1056 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1057 lt_cv_path_LD="$ac_dir/$ac_prog"
1058 # Check to see if the program is GNU ld. I'd rather use --version,
1059 # but apparently some GNU ld's only accept -v.
1060 # Break only if it was the GNU/non-GNU ld that we prefer.
1061 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1062 test "$with_gnu_ld" != no && break
1063 else
1064 test "$with_gnu_ld" != yes && break
1067 done
1068 IFS="$ac_save_ifs"
1069 else
1070 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1074 LD="$lt_cv_path_LD"
1075 if test -n "$LD"; then
1076 echo "$ac_t""$LD" 1>&6
1077 else
1078 echo "$ac_t""no" 1>&6
1080 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1081 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1082 echo "configure:1083: checking if the linker ($LD) is GNU ld" >&5
1083 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1084 echo $ac_n "(cached) $ac_c" 1>&6
1085 else
1086 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1087 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1088 lt_cv_prog_gnu_ld=yes
1089 else
1090 lt_cv_prog_gnu_ld=no
1094 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1095 with_gnu_ld=$lt_cv_prog_gnu_ld
1098 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1099 echo "configure:1100: checking for $LD option to reload object files" >&5
1100 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1101 echo $ac_n "(cached) $ac_c" 1>&6
1102 else
1103 lt_cv_ld_reload_flag='-r'
1106 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1107 reload_flag=$lt_cv_ld_reload_flag
1108 test -n "$reload_flag" && reload_flag=" $reload_flag"
1110 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1111 echo "configure:1112: checking for BSD-compatible nm" >&5
1112 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1113 echo $ac_n "(cached) $ac_c" 1>&6
1114 else
1115 if test -n "$NM"; then
1116 # Let the user override the test.
1117 lt_cv_path_NM="$NM"
1118 else
1119 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1120 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1121 test -z "$ac_dir" && ac_dir=.
1122 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1123 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1124 # Check to see if the nm accepts a BSD-compat flag.
1125 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1126 # nm: unknown option "B" ignored
1127 # Tru64's nm complains that /dev/null is an invalid object file
1128 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1129 lt_cv_path_NM="$tmp_nm -B"
1130 break
1131 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1132 lt_cv_path_NM="$tmp_nm -p"
1133 break
1134 else
1135 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1136 continue # so that we can try to find one that supports BSD flags
1139 done
1140 IFS="$ac_save_ifs"
1141 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1145 NM="$lt_cv_path_NM"
1146 echo "$ac_t""$NM" 1>&6
1148 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1149 echo "configure:1150: checking whether ln -s works" >&5
1150 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1151 echo $ac_n "(cached) $ac_c" 1>&6
1152 else
1153 rm -f conftestdata
1154 if ln -s X conftestdata 2>/dev/null
1155 then
1156 rm -f conftestdata
1157 ac_cv_prog_LN_S="ln -s"
1158 else
1159 ac_cv_prog_LN_S=ln
1162 LN_S="$ac_cv_prog_LN_S"
1163 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1164 echo "$ac_t""yes" 1>&6
1165 else
1166 echo "$ac_t""no" 1>&6
1169 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1170 echo "configure:1171: checking how to recognise dependant libraries" >&5
1171 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1172 echo $ac_n "(cached) $ac_c" 1>&6
1173 else
1174 lt_cv_file_magic_cmd='$MAGIC_CMD'
1175 lt_cv_file_magic_test_file=
1176 lt_cv_deplibs_check_method='unknown'
1177 # Need to set the preceding variable on all platforms that support
1178 # interlibrary dependencies.
1179 # 'none' -- dependencies not supported.
1180 # `unknown' -- same as none, but documents that we really don't know.
1181 # 'pass_all' -- all dependencies passed with no checks.
1182 # 'test_compile' -- check by making test program.
1183 # 'file_magic [regex]' -- check by looking for files in library path
1184 # which responds to the $file_magic_cmd with a given egrep regex.
1185 # If you have `file' or equivalent on your system and you're not sure
1186 # whether `pass_all' will *always* work, you probably want this one.
1188 case $host_os in
1189 aix*)
1190 lt_cv_deplibs_check_method=pass_all
1193 beos*)
1194 lt_cv_deplibs_check_method=pass_all
1197 bsdi4*)
1198 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1199 lt_cv_file_magic_cmd='/usr/bin/file -L'
1200 lt_cv_file_magic_test_file=/shlib/libc.so
1203 cygwin* | mingw* |pw32*)
1204 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1205 lt_cv_file_magic_cmd='$OBJDUMP -f'
1208 darwin* | rhapsody*)
1209 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1210 lt_cv_file_magic_cmd=/usr/bin/file
1211 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
1214 freebsd* )
1215 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1216 case $host_cpu in
1217 i*86 )
1218 # Not sure whether the presence of OpenBSD here was a mistake.
1219 # Let's accept both of them until this is cleared up.
1220 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1221 lt_cv_file_magic_cmd=/usr/bin/file
1222 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1224 esac
1225 else
1226 lt_cv_deplibs_check_method=pass_all
1230 gnu*)
1231 lt_cv_deplibs_check_method=pass_all
1234 hpux10.20*|hpux11*)
1235 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1236 lt_cv_file_magic_cmd=/usr/bin/file
1237 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1240 irix5* | irix6*)
1241 case $host_os in
1242 irix5*)
1243 # this will be overridden with pass_all, but let us keep it just in case
1244 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1247 case $LD in
1248 *-32|*"-32 ") libmagic=32-bit;;
1249 *-n32|*"-n32 ") libmagic=N32;;
1250 *-64|*"-64 ") libmagic=64-bit;;
1251 *) libmagic=never-match;;
1252 esac
1253 # this will be overridden with pass_all, but let us keep it just in case
1254 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1256 esac
1257 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1258 lt_cv_deplibs_check_method=pass_all
1261 # This must be Linux ELF.
1262 linux-gnu*)
1263 case $host_cpu in
1264 alpha* | i*86 | powerpc* | sparc* | ia64* )
1265 lt_cv_deplibs_check_method=pass_all ;;
1267 # glibc up to 2.1.1 does not perform some relocations on ARM
1268 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1269 esac
1270 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1273 netbsd*)
1274 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1275 lt_cv_deplibs_check_method='file_magic NetBSD/[a-z0-9]* demand paged shared library'
1276 else
1277 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1279 lt_cv_file_magic_cmd='/usr/bin/file -L'
1280 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1283 newsos6)
1284 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1285 lt_cv_file_magic_cmd=/usr/bin/file
1286 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1289 osf3* | osf4* | osf5*)
1290 # this will be overridden with pass_all, but let us keep it just in case
1291 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1292 lt_cv_file_magic_test_file=/shlib/libc.so
1293 lt_cv_deplibs_check_method=pass_all
1296 sco3.2v5*)
1297 lt_cv_deplibs_check_method=pass_all
1300 solaris*)
1301 lt_cv_deplibs_check_method=pass_all
1302 lt_cv_file_magic_test_file=/lib/libc.so
1305 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1306 case $host_vendor in
1307 ncr)
1308 lt_cv_deplibs_check_method=pass_all
1310 motorola)
1311 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
1312 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1314 esac
1316 esac
1320 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1321 file_magic_cmd=$lt_cv_file_magic_cmd
1322 deplibs_check_method=$lt_cv_deplibs_check_method
1324 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1325 echo "configure:1326: checking for object suffix" >&5
1326 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1327 echo $ac_n "(cached) $ac_c" 1>&6
1328 else
1329 rm -f conftest*
1330 echo 'int i = 1;' > conftest.$ac_ext
1331 if { (eval echo configure:1332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1332 for ac_file in conftest.*; do
1333 case $ac_file in
1334 *.c) ;;
1335 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1336 esac
1337 done
1338 else
1339 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1341 rm -f conftest*
1344 echo "$ac_t""$ac_cv_objext" 1>&6
1345 OBJEXT=$ac_cv_objext
1346 ac_objext=$ac_cv_objext
1350 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1351 echo "configure:1352: checking for executable suffix" >&5
1352 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1353 echo $ac_n "(cached) $ac_c" 1>&6
1354 else
1355 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1356 ac_cv_exeext=.exe
1357 else
1358 rm -f conftest*
1359 echo 'int main () { return 0; }' > conftest.$ac_ext
1360 ac_cv_exeext=
1361 if { (eval echo configure:1362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1362 for file in conftest.*; do
1363 case $file in
1364 *.c | *.o | *.obj) ;;
1365 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1366 esac
1367 done
1368 else
1369 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1371 rm -f conftest*
1372 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1376 EXEEXT=""
1377 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1378 echo "$ac_t""${ac_cv_exeext}" 1>&6
1379 ac_exeext=$EXEEXT
1381 if test $host != $build; then
1382 ac_tool_prefix=${host_alias}-
1383 else
1384 ac_tool_prefix=
1387 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1389 # Only perform the check for file, if the check method requires it
1390 case $deplibs_check_method in
1391 file_magic*)
1392 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1393 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1394 echo "configure:1395: checking for ${ac_tool_prefix}file" >&5
1395 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1396 echo $ac_n "(cached) $ac_c" 1>&6
1397 else
1398 case $MAGIC_CMD in
1400 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1402 ?:/*)
1403 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1406 ac_save_MAGIC_CMD="$MAGIC_CMD"
1407 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1408 ac_dummy="/usr/bin:$PATH"
1409 for ac_dir in $ac_dummy; do
1410 test -z "$ac_dir" && ac_dir=.
1411 if test -f $ac_dir/${ac_tool_prefix}file; then
1412 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
1413 if test -n "$file_magic_test_file"; then
1414 case $deplibs_check_method in
1415 "file_magic "*)
1416 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1417 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1418 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1419 egrep "$file_magic_regex" > /dev/null; then
1421 else
1422 cat <<EOF 1>&2
1424 *** Warning: the command libtool uses to detect shared libraries,
1425 *** $file_magic_cmd, produces output that libtool cannot recognize.
1426 *** The result is that libtool may fail to recognize shared libraries
1427 *** as such. This will affect the creation of libtool libraries that
1428 *** depend on shared libraries, but programs linked with such libtool
1429 *** libraries will work regardless of this problem. Nevertheless, you
1430 *** may want to report the problem to your system manager and/or to
1431 *** bug-libtool@gnu.org
1434 fi ;;
1435 esac
1437 break
1439 done
1440 IFS="$ac_save_ifs"
1441 MAGIC_CMD="$ac_save_MAGIC_CMD"
1443 esac
1446 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1447 if test -n "$MAGIC_CMD"; then
1448 echo "$ac_t""$MAGIC_CMD" 1>&6
1449 else
1450 echo "$ac_t""no" 1>&6
1453 if test -z "$lt_cv_path_MAGIC_CMD"; then
1454 if test -n "$ac_tool_prefix"; then
1455 echo $ac_n "checking for file""... $ac_c" 1>&6
1456 echo "configure:1457: checking for file" >&5
1457 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1458 echo $ac_n "(cached) $ac_c" 1>&6
1459 else
1460 case $MAGIC_CMD in
1462 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1464 ?:/*)
1465 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1468 ac_save_MAGIC_CMD="$MAGIC_CMD"
1469 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1470 ac_dummy="/usr/bin:$PATH"
1471 for ac_dir in $ac_dummy; do
1472 test -z "$ac_dir" && ac_dir=.
1473 if test -f $ac_dir/file; then
1474 lt_cv_path_MAGIC_CMD="$ac_dir/file"
1475 if test -n "$file_magic_test_file"; then
1476 case $deplibs_check_method in
1477 "file_magic "*)
1478 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1479 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1480 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1481 egrep "$file_magic_regex" > /dev/null; then
1483 else
1484 cat <<EOF 1>&2
1486 *** Warning: the command libtool uses to detect shared libraries,
1487 *** $file_magic_cmd, produces output that libtool cannot recognize.
1488 *** The result is that libtool may fail to recognize shared libraries
1489 *** as such. This will affect the creation of libtool libraries that
1490 *** depend on shared libraries, but programs linked with such libtool
1491 *** libraries will work regardless of this problem. Nevertheless, you
1492 *** may want to report the problem to your system manager and/or to
1493 *** bug-libtool@gnu.org
1496 fi ;;
1497 esac
1499 break
1501 done
1502 IFS="$ac_save_ifs"
1503 MAGIC_CMD="$ac_save_MAGIC_CMD"
1505 esac
1508 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1509 if test -n "$MAGIC_CMD"; then
1510 echo "$ac_t""$MAGIC_CMD" 1>&6
1511 else
1512 echo "$ac_t""no" 1>&6
1515 else
1516 MAGIC_CMD=:
1522 esac
1524 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1525 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1526 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1527 echo "configure:1528: checking for $ac_word" >&5
1528 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1529 echo $ac_n "(cached) $ac_c" 1>&6
1530 else
1531 if test -n "$RANLIB"; then
1532 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1533 else
1534 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1535 ac_dummy="$PATH"
1536 for ac_dir in $ac_dummy; do
1537 test -z "$ac_dir" && ac_dir=.
1538 if test -f $ac_dir/$ac_word; then
1539 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1540 break
1542 done
1543 IFS="$ac_save_ifs"
1546 RANLIB="$ac_cv_prog_RANLIB"
1547 if test -n "$RANLIB"; then
1548 echo "$ac_t""$RANLIB" 1>&6
1549 else
1550 echo "$ac_t""no" 1>&6
1554 if test -z "$ac_cv_prog_RANLIB"; then
1555 if test -n "$ac_tool_prefix"; then
1556 # Extract the first word of "ranlib", so it can be a program name with args.
1557 set dummy ranlib; ac_word=$2
1558 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1559 echo "configure:1560: checking for $ac_word" >&5
1560 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1561 echo $ac_n "(cached) $ac_c" 1>&6
1562 else
1563 if test -n "$RANLIB"; then
1564 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1565 else
1566 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1567 ac_dummy="$PATH"
1568 for ac_dir in $ac_dummy; do
1569 test -z "$ac_dir" && ac_dir=.
1570 if test -f $ac_dir/$ac_word; then
1571 ac_cv_prog_RANLIB="ranlib"
1572 break
1574 done
1575 IFS="$ac_save_ifs"
1576 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1579 RANLIB="$ac_cv_prog_RANLIB"
1580 if test -n "$RANLIB"; then
1581 echo "$ac_t""$RANLIB" 1>&6
1582 else
1583 echo "$ac_t""no" 1>&6
1586 else
1587 RANLIB=":"
1591 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1592 set dummy ${ac_tool_prefix}strip; ac_word=$2
1593 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1594 echo "configure:1595: checking for $ac_word" >&5
1595 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1596 echo $ac_n "(cached) $ac_c" 1>&6
1597 else
1598 if test -n "$STRIP"; then
1599 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1600 else
1601 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1602 ac_dummy="$PATH"
1603 for ac_dir in $ac_dummy; do
1604 test -z "$ac_dir" && ac_dir=.
1605 if test -f $ac_dir/$ac_word; then
1606 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1607 break
1609 done
1610 IFS="$ac_save_ifs"
1613 STRIP="$ac_cv_prog_STRIP"
1614 if test -n "$STRIP"; then
1615 echo "$ac_t""$STRIP" 1>&6
1616 else
1617 echo "$ac_t""no" 1>&6
1621 if test -z "$ac_cv_prog_STRIP"; then
1622 if test -n "$ac_tool_prefix"; then
1623 # Extract the first word of "strip", so it can be a program name with args.
1624 set dummy strip; ac_word=$2
1625 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1626 echo "configure:1627: checking for $ac_word" >&5
1627 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1628 echo $ac_n "(cached) $ac_c" 1>&6
1629 else
1630 if test -n "$STRIP"; then
1631 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1632 else
1633 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1634 ac_dummy="$PATH"
1635 for ac_dir in $ac_dummy; do
1636 test -z "$ac_dir" && ac_dir=.
1637 if test -f $ac_dir/$ac_word; then
1638 ac_cv_prog_STRIP="strip"
1639 break
1641 done
1642 IFS="$ac_save_ifs"
1643 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1646 STRIP="$ac_cv_prog_STRIP"
1647 if test -n "$STRIP"; then
1648 echo "$ac_t""$STRIP" 1>&6
1649 else
1650 echo "$ac_t""no" 1>&6
1653 else
1654 STRIP=":"
1659 # Check for any special flags to pass to ltconfig.
1660 libtool_flags="--cache-file=$cache_file"
1661 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1662 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1663 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1664 test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
1665 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1668 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1669 if test "${enable_libtool_lock+set}" = set; then
1670 enableval="$enable_libtool_lock"
1674 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1675 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1677 # Check whether --with-pic or --without-pic was given.
1678 if test "${with_pic+set}" = set; then
1679 withval="$with_pic"
1680 pic_mode="$withval"
1681 else
1682 pic_mode=default
1685 test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
1686 test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
1688 # Some flags need to be propagated to the compiler or linker for good
1689 # libtool support.
1690 case $host in
1691 *-*-irix6*)
1692 # Find out which ABI we are using.
1693 echo '#line 1694 "configure"' > conftest.$ac_ext
1694 if { (eval echo configure:1695: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1695 case `/usr/bin/file conftest.$ac_objext` in
1696 *32-bit*)
1697 LD="${LD-ld} -32"
1699 *N32*)
1700 LD="${LD-ld} -n32"
1702 *64-bit*)
1703 LD="${LD-ld} -64"
1705 esac
1707 rm -rf conftest*
1710 *-*-sco3.2v5*)
1711 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1712 SAVE_CFLAGS="$CFLAGS"
1713 CFLAGS="$CFLAGS -belf"
1714 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1715 echo "configure:1716: checking whether the C compiler needs -belf" >&5
1716 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1717 echo $ac_n "(cached) $ac_c" 1>&6
1718 else
1720 ac_ext=c
1721 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1722 ac_cpp='$CPP $CPPFLAGS'
1723 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1724 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1725 cross_compiling=$ac_cv_prog_cc_cross
1727 cat > conftest.$ac_ext <<EOF
1728 #line 1729 "configure"
1729 #include "confdefs.h"
1731 int main() {
1733 ; return 0; }
1735 if { (eval echo configure:1736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1736 rm -rf conftest*
1737 lt_cv_cc_needs_belf=yes
1738 else
1739 echo "configure: failed program was:" >&5
1740 cat conftest.$ac_ext >&5
1741 rm -rf conftest*
1742 lt_cv_cc_needs_belf=no
1744 rm -f conftest*
1745 ac_ext=c
1746 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1747 ac_cpp='$CPP $CPPFLAGS'
1748 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1749 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1750 cross_compiling=$ac_cv_prog_cc_cross
1754 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1755 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1756 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1757 CFLAGS="$SAVE_CFLAGS"
1762 esac
1765 # Save cache, so that ltconfig can load it
1766 cat > confcache <<\EOF
1767 # This file is a shell script that caches the results of configure
1768 # tests run on this system so they can be shared between configure
1769 # scripts and configure runs. It is not useful on other systems.
1770 # If it contains results you don't want to keep, you may remove or edit it.
1772 # By default, configure uses ./config.cache as the cache file,
1773 # creating it if it does not exist already. You can give configure
1774 # the --cache-file=FILE option to use a different cache file; that is
1775 # what configure does when it calls configure scripts in
1776 # subdirectories, so they share the cache.
1777 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1778 # config.status only pays attention to the cache file if you give it the
1779 # --recheck option to rerun configure.
1782 # The following way of writing the cache mishandles newlines in values,
1783 # but we know of no workaround that is simple, portable, and efficient.
1784 # So, don't put newlines in cache variables' values.
1785 # Ultrix sh set writes to stderr and can't be redirected directly,
1786 # and sets the high bit in the cache file unless we assign to the vars.
1787 (set) 2>&1 |
1788 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1789 *ac_space=\ *)
1790 # `set' does not quote correctly, so add quotes (double-quote substitution
1791 # turns \\\\ into \\, and sed turns \\ into \).
1792 sed -n \
1793 -e "s/'/'\\\\''/g" \
1794 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1797 # `set' quotes correctly as required by POSIX, so do not add quotes.
1798 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1800 esac >> confcache
1801 if cmp -s $cache_file confcache; then
1803 else
1804 if test -w $cache_file; then
1805 echo "updating cache $cache_file"
1806 cat confcache > $cache_file
1807 else
1808 echo "not updating unwritable cache $cache_file"
1811 rm -f confcache
1814 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1815 AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1816 MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1817 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
1818 AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
1819 objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
1820 deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
1821 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1822 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
1823 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1825 # Reload cache, that may have been modified by ltconfig
1826 if test -r "$cache_file"; then
1827 echo "loading cache $cache_file"
1828 . $cache_file
1829 else
1830 echo "creating cache $cache_file"
1831 > $cache_file
1835 # This can be used to rebuild libtool when needed
1836 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
1838 # Always use our own libtool.
1839 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1841 # Redirect the config.log output again, so that the ltconfig log is not
1842 # clobbered by the next message.
1843 exec 5>>./config.log
1851 # Find a good install program. We prefer a C program (faster),
1852 # so one script is as good as another. But avoid the broken or
1853 # incompatible versions:
1854 # SysV /etc/install, /usr/sbin/install
1855 # SunOS /usr/etc/install
1856 # IRIX /sbin/install
1857 # AIX /bin/install
1858 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1859 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1860 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1861 # ./install, which can be erroneously created by make from ./install.sh.
1862 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1863 echo "configure:1864: checking for a BSD compatible install" >&5
1864 if test -z "$INSTALL"; then
1865 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1866 echo $ac_n "(cached) $ac_c" 1>&6
1867 else
1868 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1869 for ac_dir in $PATH; do
1870 # Account for people who put trailing slashes in PATH elements.
1871 case "$ac_dir/" in
1872 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1874 # OSF1 and SCO ODT 3.0 have their own names for install.
1875 # Don't use installbsd from OSF since it installs stuff as root
1876 # by default.
1877 for ac_prog in ginstall scoinst install; do
1878 if test -f $ac_dir/$ac_prog; then
1879 if test $ac_prog = install &&
1880 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1881 # AIX install. It has an incompatible calling convention.
1883 else
1884 ac_cv_path_install="$ac_dir/$ac_prog -c"
1885 break 2
1888 done
1890 esac
1891 done
1892 IFS="$ac_save_IFS"
1895 if test "${ac_cv_path_install+set}" = set; then
1896 INSTALL="$ac_cv_path_install"
1897 else
1898 # As a last resort, use the slow shell script. We don't cache a
1899 # path for INSTALL within a source directory, because that will
1900 # break other packages using the cache if that directory is
1901 # removed, or if the path is relative.
1902 INSTALL="$ac_install_sh"
1905 echo "$ac_t""$INSTALL" 1>&6
1907 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1908 # It thinks the first close brace ends the variable substitution.
1909 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1911 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1913 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1915 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1916 echo "configure:1917: checking whether build environment is sane" >&5
1917 # Just in case
1918 sleep 1
1919 echo timestamp > conftestfile
1920 # Do `set' in a subshell so we don't clobber the current shell's
1921 # arguments. Must try -L first in case configure is actually a
1922 # symlink; some systems play weird games with the mod time of symlinks
1923 # (eg FreeBSD returns the mod time of the symlink's containing
1924 # directory).
1925 if (
1926 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1927 if test "$*" = "X"; then
1928 # -L didn't work.
1929 set X `ls -t $srcdir/configure conftestfile`
1931 if test "$*" != "X $srcdir/configure conftestfile" \
1932 && test "$*" != "X conftestfile $srcdir/configure"; then
1934 # If neither matched, then we have a broken ls. This can happen
1935 # if, for instance, CONFIG_SHELL is bash and it inherits a
1936 # broken ls alias from the environment. This has actually
1937 # happened. Such a system could not be considered "sane".
1938 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1939 alias in your environment" 1>&2; exit 1; }
1942 test "$2" = conftestfile
1944 then
1945 # Ok.
1947 else
1948 { echo "configure: error: newly created file is older than distributed files!
1949 Check your system clock" 1>&2; exit 1; }
1951 rm -f conftest*
1952 echo "$ac_t""yes" 1>&6
1953 if test "$program_transform_name" = s,x,x,; then
1954 program_transform_name=
1955 else
1956 # Double any \ or $. echo might interpret backslashes.
1957 cat <<\EOF_SED > conftestsed
1958 s,\\,\\\\,g; s,\$,$$,g
1959 EOF_SED
1960 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1961 rm -f conftestsed
1963 test "$program_prefix" != NONE &&
1964 program_transform_name="s,^,${program_prefix},; $program_transform_name"
1965 # Use a double $ so make ignores it.
1966 test "$program_suffix" != NONE &&
1967 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
1969 # sed with no file args requires a program.
1970 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1972 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1973 echo "configure:1974: checking whether ${MAKE-make} sets \${MAKE}" >&5
1974 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1975 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1976 echo $ac_n "(cached) $ac_c" 1>&6
1977 else
1978 cat > conftestmake <<\EOF
1979 all:
1980 @echo 'ac_maketemp="${MAKE}"'
1982 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1983 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1984 if test -n "$ac_maketemp"; then
1985 eval ac_cv_prog_make_${ac_make}_set=yes
1986 else
1987 eval ac_cv_prog_make_${ac_make}_set=no
1989 rm -f conftestmake
1991 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1992 echo "$ac_t""yes" 1>&6
1993 SET_MAKE=
1994 else
1995 echo "$ac_t""no" 1>&6
1996 SET_MAKE="MAKE=${MAKE-make}"
2000 PACKAGE=libffi
2002 VERSION=2.00-beta
2004 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
2005 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
2010 missing_dir=`cd $ac_aux_dir && pwd`
2011 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
2012 echo "configure:2013: checking for working aclocal" >&5
2013 # Run test in a subshell; some versions of sh will print an error if
2014 # an executable is not found, even if stderr is redirected.
2015 # Redirect stdin to placate older versions of autoconf. Sigh.
2016 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
2017 ACLOCAL=aclocal
2018 echo "$ac_t""found" 1>&6
2019 else
2020 ACLOCAL="$missing_dir/missing aclocal"
2021 echo "$ac_t""missing" 1>&6
2024 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
2025 echo "configure:2026: checking for working autoconf" >&5
2026 # Run test in a subshell; some versions of sh will print an error if
2027 # an executable is not found, even if stderr is redirected.
2028 # Redirect stdin to placate older versions of autoconf. Sigh.
2029 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
2030 AUTOCONF=autoconf
2031 echo "$ac_t""found" 1>&6
2032 else
2033 AUTOCONF="$missing_dir/missing autoconf"
2034 echo "$ac_t""missing" 1>&6
2037 echo $ac_n "checking for working automake""... $ac_c" 1>&6
2038 echo "configure:2039: checking for working automake" >&5
2039 # Run test in a subshell; some versions of sh will print an error if
2040 # an executable is not found, even if stderr is redirected.
2041 # Redirect stdin to placate older versions of autoconf. Sigh.
2042 if (automake --version) < /dev/null > /dev/null 2>&1; then
2043 AUTOMAKE=automake
2044 echo "$ac_t""found" 1>&6
2045 else
2046 AUTOMAKE="$missing_dir/missing automake"
2047 echo "$ac_t""missing" 1>&6
2050 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
2051 echo "configure:2052: checking for working autoheader" >&5
2052 # Run test in a subshell; some versions of sh will print an error if
2053 # an executable is not found, even if stderr is redirected.
2054 # Redirect stdin to placate older versions of autoconf. Sigh.
2055 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
2056 AUTOHEADER=autoheader
2057 echo "$ac_t""found" 1>&6
2058 else
2059 AUTOHEADER="$missing_dir/missing autoheader"
2060 echo "$ac_t""missing" 1>&6
2063 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
2064 echo "configure:2065: checking for working makeinfo" >&5
2065 # Run test in a subshell; some versions of sh will print an error if
2066 # an executable is not found, even if stderr is redirected.
2067 # Redirect stdin to placate older versions of autoconf. Sigh.
2068 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
2069 MAKEINFO=makeinfo
2070 echo "$ac_t""found" 1>&6
2071 else
2072 MAKEINFO="$missing_dir/missing makeinfo"
2073 echo "$ac_t""missing" 1>&6
2080 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2081 echo "configure:2082: checking for executable suffix" >&5
2082 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2083 echo $ac_n "(cached) $ac_c" 1>&6
2084 else
2085 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2086 ac_cv_exeext=.exe
2087 else
2088 rm -f conftest*
2089 echo 'int main () { return 0; }' > conftest.$ac_ext
2090 ac_cv_exeext=
2091 if { (eval echo configure:2092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2092 for file in conftest.*; do
2093 case $file in
2094 *.c | *.o | *.obj) ;;
2095 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2096 esac
2097 done
2098 else
2099 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2101 rm -f conftest*
2102 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2106 EXEEXT=""
2107 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2108 echo "$ac_t""${ac_cv_exeext}" 1>&6
2109 ac_exeext=$EXEEXT
2111 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2112 echo "configure:2113: checking whether to enable maintainer-specific portions of Makefiles" >&5
2113 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2114 if test "${enable_maintainer_mode+set}" = set; then
2115 enableval="$enable_maintainer_mode"
2116 USE_MAINTAINER_MODE=$enableval
2117 else
2118 USE_MAINTAINER_MODE=no
2121 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2124 if test $USE_MAINTAINER_MODE = yes; then
2125 MAINTAINER_MODE_TRUE=
2126 MAINTAINER_MODE_FALSE='#'
2127 else
2128 MAINTAINER_MODE_TRUE='#'
2129 MAINTAINER_MODE_FALSE=
2131 MAINT=$MAINTAINER_MODE_TRUE
2135 # Extract the first word of "gcc", so it can be a program name with args.
2136 set dummy gcc; ac_word=$2
2137 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2138 echo "configure:2139: checking for $ac_word" >&5
2139 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2140 echo $ac_n "(cached) $ac_c" 1>&6
2141 else
2142 if test -n "$CC"; then
2143 ac_cv_prog_CC="$CC" # Let the user override the test.
2144 else
2145 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2146 ac_dummy="$PATH"
2147 for ac_dir in $ac_dummy; do
2148 test -z "$ac_dir" && ac_dir=.
2149 if test -f $ac_dir/$ac_word; then
2150 ac_cv_prog_CC="gcc"
2151 break
2153 done
2154 IFS="$ac_save_ifs"
2157 CC="$ac_cv_prog_CC"
2158 if test -n "$CC"; then
2159 echo "$ac_t""$CC" 1>&6
2160 else
2161 echo "$ac_t""no" 1>&6
2164 if test -z "$CC"; then
2165 # Extract the first word of "cc", so it can be a program name with args.
2166 set dummy cc; ac_word=$2
2167 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2168 echo "configure:2169: checking for $ac_word" >&5
2169 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2170 echo $ac_n "(cached) $ac_c" 1>&6
2171 else
2172 if test -n "$CC"; then
2173 ac_cv_prog_CC="$CC" # Let the user override the test.
2174 else
2175 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2176 ac_prog_rejected=no
2177 ac_dummy="$PATH"
2178 for ac_dir in $ac_dummy; do
2179 test -z "$ac_dir" && ac_dir=.
2180 if test -f $ac_dir/$ac_word; then
2181 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2182 ac_prog_rejected=yes
2183 continue
2185 ac_cv_prog_CC="cc"
2186 break
2188 done
2189 IFS="$ac_save_ifs"
2190 if test $ac_prog_rejected = yes; then
2191 # We found a bogon in the path, so make sure we never use it.
2192 set dummy $ac_cv_prog_CC
2193 shift
2194 if test $# -gt 0; then
2195 # We chose a different compiler from the bogus one.
2196 # However, it has the same basename, so the bogon will be chosen
2197 # first if we set CC to just the basename; use the full file name.
2198 shift
2199 set dummy "$ac_dir/$ac_word" "$@"
2200 shift
2201 ac_cv_prog_CC="$@"
2206 CC="$ac_cv_prog_CC"
2207 if test -n "$CC"; then
2208 echo "$ac_t""$CC" 1>&6
2209 else
2210 echo "$ac_t""no" 1>&6
2213 if test -z "$CC"; then
2214 case "`uname -s`" in
2215 *win32* | *WIN32*)
2216 # Extract the first word of "cl", so it can be a program name with args.
2217 set dummy cl; ac_word=$2
2218 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2219 echo "configure:2220: checking for $ac_word" >&5
2220 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2221 echo $ac_n "(cached) $ac_c" 1>&6
2222 else
2223 if test -n "$CC"; then
2224 ac_cv_prog_CC="$CC" # Let the user override the test.
2225 else
2226 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2227 ac_dummy="$PATH"
2228 for ac_dir in $ac_dummy; do
2229 test -z "$ac_dir" && ac_dir=.
2230 if test -f $ac_dir/$ac_word; then
2231 ac_cv_prog_CC="cl"
2232 break
2234 done
2235 IFS="$ac_save_ifs"
2238 CC="$ac_cv_prog_CC"
2239 if test -n "$CC"; then
2240 echo "$ac_t""$CC" 1>&6
2241 else
2242 echo "$ac_t""no" 1>&6
2245 esac
2247 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2250 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2251 echo "configure:2252: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2253 ac_ext=c
2254 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2255 ac_cpp='$CPP $CPPFLAGS'
2256 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2257 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2258 cross_compiling=$ac_cv_prog_cc_cross
2260 cat > conftest.$ac_ext << EOF
2262 #line 2263 "configure"
2263 #include "confdefs.h"
2265 main(){return(0);}
2267 if { (eval echo configure:2268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2268 ac_cv_prog_cc_works=yes
2269 # If we can't run a trivial program, we are probably using a cross compiler.
2270 if (./conftest; exit) 2>/dev/null; then
2271 ac_cv_prog_cc_cross=no
2272 else
2273 ac_cv_prog_cc_cross=yes
2275 else
2276 echo "configure: failed program was:" >&5
2277 cat conftest.$ac_ext >&5
2278 ac_cv_prog_cc_works=no
2280 rm -fr conftest*
2281 ac_ext=c
2282 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2283 ac_cpp='$CPP $CPPFLAGS'
2284 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2285 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2286 cross_compiling=$ac_cv_prog_cc_cross
2288 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2289 if test $ac_cv_prog_cc_works = no; then
2290 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2292 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2293 echo "configure:2294: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2294 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2295 cross_compiling=$ac_cv_prog_cc_cross
2297 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2298 echo "configure:2299: checking whether we are using GNU C" >&5
2299 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2300 echo $ac_n "(cached) $ac_c" 1>&6
2301 else
2302 cat > conftest.c <<EOF
2303 #ifdef __GNUC__
2304 yes;
2305 #endif
2307 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2308: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2308 ac_cv_prog_gcc=yes
2309 else
2310 ac_cv_prog_gcc=no
2314 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2316 if test $ac_cv_prog_gcc = yes; then
2317 GCC=yes
2318 else
2319 GCC=
2322 ac_test_CFLAGS="${CFLAGS+set}"
2323 ac_save_CFLAGS="$CFLAGS"
2324 CFLAGS=
2325 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2326 echo "configure:2327: checking whether ${CC-cc} accepts -g" >&5
2327 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2328 echo $ac_n "(cached) $ac_c" 1>&6
2329 else
2330 echo 'void f(){}' > conftest.c
2331 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2332 ac_cv_prog_cc_g=yes
2333 else
2334 ac_cv_prog_cc_g=no
2336 rm -f conftest*
2340 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2341 if test "$ac_test_CFLAGS" = set; then
2342 CFLAGS="$ac_save_CFLAGS"
2343 elif test $ac_cv_prog_cc_g = yes; then
2344 if test "$GCC" = yes; then
2345 CFLAGS="-g -O2"
2346 else
2347 CFLAGS="-g"
2349 else
2350 if test "$GCC" = yes; then
2351 CFLAGS="-O2"
2352 else
2353 CFLAGS=
2363 TARGETDIR="unknown"
2364 case "$host" in
2365 mips-sgi-irix5.* | mips-sgi-irix6.*) TARGET=MIPS; TARGETDIR=mips;;
2366 i*86-*-linux*) TARGET=X86; TARGETDIR=x86;;
2367 i*86-*-solaris*) TARGET=X86; TARGETDIR=x86;;
2368 i*86-*-beos*) TARGET=X86; TARGETDIR=x86;;
2369 i*86-*-freebsd*) TARGET=X86; TARGETDIR=x86;;
2370 i*86-*-win32*) TARGET=X86_WIN32; TARGETDIR=x86;;
2371 i*86-*-cygwin*) TARGET=X86_WIN32; TARGETDIR=x86;;
2372 i*86-*-mingw*) TARGET=X86_WIN32; TARGETDIR=x86;;
2373 sparc-sun-4*) TARGET=SPARC; TARGETDIR=sparc;;
2374 sparc-sun-*) TARGET=SPARC; TARGETDIR=sparc;;
2375 sparc-*-linux*) TARGET=SPARC; TARGETDIR=sparc;;
2376 sparc64-*-linux*) TARGET=SPARC; TARGETDIR=sparc;;
2377 alpha*-*-linux* | alpha*-*-osf*) TARGET=ALPHA; TARGETDIR=alpha;;
2378 ia64*-*-*) TARGET=IA64; TARGETDIR=ia64;;
2379 m68k-*-linux*) TARGET=M68K; TARGETDIR=m68k;;
2380 powerpc-*-linux* | powerpc-*-sysv*) TARGET=POWERPC; TARGETDIR=powerpc;;
2381 powerpc-*-beos*) TARGET=POWERPC; TARGETDIR=powerpc;;
2382 arm*-*-linux-*) TARGET=ARM; TARGETDIR=arm;;
2383 esac
2385 if test $TARGETDIR = unknown; then
2386 { echo "configure: error: "libffi has not been ported to $host."" 1>&2; exit 1; }
2391 if test ${TARGET}${ac_cv_prog_gcc} = MIPSyes; then
2392 MIPS_GCC_TRUE=
2393 MIPS_GCC_FALSE='#'
2394 else
2395 MIPS_GCC_TRUE='#'
2396 MIPS_GCC_FALSE=
2400 if test ${TARGET}${ac_cv_prog_gcc} = MIPSno; then
2401 MIPS_SGI_TRUE=
2402 MIPS_SGI_FALSE='#'
2403 else
2404 MIPS_SGI_TRUE='#'
2405 MIPS_SGI_FALSE=
2409 if test x$TARGET = xSPARC; then
2410 SPARC_TRUE=
2411 SPARC_FALSE='#'
2412 else
2413 SPARC_TRUE='#'
2414 SPARC_FALSE=
2418 if test x$TARGET = xX86; then
2419 X86_TRUE=
2420 X86_FALSE='#'
2421 else
2422 X86_TRUE='#'
2423 X86_FALSE=
2427 if test x$TARGET = xX86_WIN32; then
2428 X86_WIN32_TRUE=
2429 X86_WIN32_FALSE='#'
2430 else
2431 X86_WIN32_TRUE='#'
2432 X86_WIN32_FALSE=
2436 if test x$TARGET = xALPHA; then
2437 ALPHA_TRUE=
2438 ALPHA_FALSE='#'
2439 else
2440 ALPHA_TRUE='#'
2441 ALPHA_FALSE=
2445 if test x$TARGET = xIA64; then
2446 IA64_TRUE=
2447 IA64_FALSE='#'
2448 else
2449 IA64_TRUE='#'
2450 IA64_FALSE=
2454 if test x$TARGET = xM68K; then
2455 M68K_TRUE=
2456 M68K_FALSE='#'
2457 else
2458 M68K_TRUE='#'
2459 M68K_FALSE=
2463 if test x$TARGET = xPOWERPC; then
2464 POWERPC_TRUE=
2465 POWERPC_FALSE='#'
2466 else
2467 POWERPC_TRUE='#'
2468 POWERPC_FALSE=
2472 if test x$TARGET = xARM; then
2473 ARM_TRUE=
2474 ARM_FALSE='#'
2475 else
2476 ARM_TRUE='#'
2477 ARM_FALSE=
2480 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2481 echo "configure:2482: checking how to run the C preprocessor" >&5
2482 # On Suns, sometimes $CPP names a directory.
2483 if test -n "$CPP" && test -d "$CPP"; then
2484 CPP=
2486 if test -z "$CPP"; then
2487 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2488 echo $ac_n "(cached) $ac_c" 1>&6
2489 else
2490 # This must be in double quotes, not single quotes, because CPP may get
2491 # substituted into the Makefile and "${CC-cc}" will confuse make.
2492 CPP="${CC-cc} -E"
2493 # On the NeXT, cc -E runs the code through the compiler's parser,
2494 # not just through cpp.
2495 cat > conftest.$ac_ext <<EOF
2496 #line 2497 "configure"
2497 #include "confdefs.h"
2498 #include <assert.h>
2499 Syntax Error
2501 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2502 { (eval echo configure:2503: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2503 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2504 if test -z "$ac_err"; then
2506 else
2507 echo "$ac_err" >&5
2508 echo "configure: failed program was:" >&5
2509 cat conftest.$ac_ext >&5
2510 rm -rf conftest*
2511 CPP="${CC-cc} -E -traditional-cpp"
2512 cat > conftest.$ac_ext <<EOF
2513 #line 2514 "configure"
2514 #include "confdefs.h"
2515 #include <assert.h>
2516 Syntax Error
2518 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2519 { (eval echo configure:2520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2520 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2521 if test -z "$ac_err"; then
2523 else
2524 echo "$ac_err" >&5
2525 echo "configure: failed program was:" >&5
2526 cat conftest.$ac_ext >&5
2527 rm -rf conftest*
2528 CPP="${CC-cc} -nologo -E"
2529 cat > conftest.$ac_ext <<EOF
2530 #line 2531 "configure"
2531 #include "confdefs.h"
2532 #include <assert.h>
2533 Syntax Error
2535 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2536 { (eval echo configure:2537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2537 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2538 if test -z "$ac_err"; then
2540 else
2541 echo "$ac_err" >&5
2542 echo "configure: failed program was:" >&5
2543 cat conftest.$ac_ext >&5
2544 rm -rf conftest*
2545 CPP=/lib/cpp
2547 rm -f conftest*
2549 rm -f conftest*
2551 rm -f conftest*
2552 ac_cv_prog_CPP="$CPP"
2554 CPP="$ac_cv_prog_CPP"
2555 else
2556 ac_cv_prog_CPP="$CPP"
2558 echo "$ac_t""$CPP" 1>&6
2560 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2561 echo "configure:2562: checking for ANSI C header files" >&5
2562 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2563 echo $ac_n "(cached) $ac_c" 1>&6
2564 else
2565 cat > conftest.$ac_ext <<EOF
2566 #line 2567 "configure"
2567 #include "confdefs.h"
2568 #include <stdlib.h>
2569 #include <stdarg.h>
2570 #include <string.h>
2571 #include <float.h>
2573 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2574 { (eval echo configure:2575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2575 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2576 if test -z "$ac_err"; then
2577 rm -rf conftest*
2578 ac_cv_header_stdc=yes
2579 else
2580 echo "$ac_err" >&5
2581 echo "configure: failed program was:" >&5
2582 cat conftest.$ac_ext >&5
2583 rm -rf conftest*
2584 ac_cv_header_stdc=no
2586 rm -f conftest*
2588 if test $ac_cv_header_stdc = yes; then
2589 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2590 cat > conftest.$ac_ext <<EOF
2591 #line 2592 "configure"
2592 #include "confdefs.h"
2593 #include <string.h>
2595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2596 egrep "memchr" >/dev/null 2>&1; then
2598 else
2599 rm -rf conftest*
2600 ac_cv_header_stdc=no
2602 rm -f conftest*
2606 if test $ac_cv_header_stdc = yes; then
2607 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2608 cat > conftest.$ac_ext <<EOF
2609 #line 2610 "configure"
2610 #include "confdefs.h"
2611 #include <stdlib.h>
2613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2614 egrep "free" >/dev/null 2>&1; then
2616 else
2617 rm -rf conftest*
2618 ac_cv_header_stdc=no
2620 rm -f conftest*
2624 if test $ac_cv_header_stdc = yes; then
2625 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2626 if test "$cross_compiling" = yes; then
2628 else
2629 cat > conftest.$ac_ext <<EOF
2630 #line 2631 "configure"
2631 #include "confdefs.h"
2632 #include <ctype.h>
2633 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2634 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2635 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2636 int main () { int i; for (i = 0; i < 256; i++)
2637 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2638 exit (0); }
2641 if { (eval echo configure:2642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2642 then
2644 else
2645 echo "configure: failed program was:" >&5
2646 cat conftest.$ac_ext >&5
2647 rm -fr conftest*
2648 ac_cv_header_stdc=no
2650 rm -fr conftest*
2656 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2657 if test $ac_cv_header_stdc = yes; then
2658 cat >> confdefs.h <<\EOF
2659 #define STDC_HEADERS 1
2664 for ac_func in memcpy
2666 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2667 echo "configure:2668: checking for $ac_func" >&5
2668 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2669 echo $ac_n "(cached) $ac_c" 1>&6
2670 else
2671 cat > conftest.$ac_ext <<EOF
2672 #line 2673 "configure"
2673 #include "confdefs.h"
2674 /* System header to define __stub macros and hopefully few prototypes,
2675 which can conflict with char $ac_func(); below. */
2676 #include <assert.h>
2677 /* Override any gcc2 internal prototype to avoid an error. */
2678 /* We use char because int might match the return type of a gcc2
2679 builtin and then its argument prototype would still apply. */
2680 char $ac_func();
2682 int main() {
2684 /* The GNU C library defines this for functions which it implements
2685 to always fail with ENOSYS. Some functions are actually named
2686 something starting with __ and the normal name is an alias. */
2687 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2688 choke me
2689 #else
2690 $ac_func();
2691 #endif
2693 ; return 0; }
2695 if { (eval echo configure:2696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2696 rm -rf conftest*
2697 eval "ac_cv_func_$ac_func=yes"
2698 else
2699 echo "configure: failed program was:" >&5
2700 cat conftest.$ac_ext >&5
2701 rm -rf conftest*
2702 eval "ac_cv_func_$ac_func=no"
2704 rm -f conftest*
2707 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2708 echo "$ac_t""yes" 1>&6
2709 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2710 cat >> confdefs.h <<EOF
2711 #define $ac_tr_func 1
2714 else
2715 echo "$ac_t""no" 1>&6
2717 done
2719 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2720 # for constant arguments. Useless!
2721 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2722 echo "configure:2723: checking for working alloca.h" >&5
2723 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2724 echo $ac_n "(cached) $ac_c" 1>&6
2725 else
2726 cat > conftest.$ac_ext <<EOF
2727 #line 2728 "configure"
2728 #include "confdefs.h"
2729 #include <alloca.h>
2730 int main() {
2731 char *p = alloca(2 * sizeof(int));
2732 ; return 0; }
2734 if { (eval echo configure:2735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2735 rm -rf conftest*
2736 ac_cv_header_alloca_h=yes
2737 else
2738 echo "configure: failed program was:" >&5
2739 cat conftest.$ac_ext >&5
2740 rm -rf conftest*
2741 ac_cv_header_alloca_h=no
2743 rm -f conftest*
2746 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2747 if test $ac_cv_header_alloca_h = yes; then
2748 cat >> confdefs.h <<\EOF
2749 #define HAVE_ALLOCA_H 1
2754 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2755 echo "configure:2756: checking for alloca" >&5
2756 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2757 echo $ac_n "(cached) $ac_c" 1>&6
2758 else
2759 cat > conftest.$ac_ext <<EOF
2760 #line 2761 "configure"
2761 #include "confdefs.h"
2763 #ifdef __GNUC__
2764 # define alloca __builtin_alloca
2765 #else
2766 # ifdef _MSC_VER
2767 # include <malloc.h>
2768 # define alloca _alloca
2769 # else
2770 # if HAVE_ALLOCA_H
2771 # include <alloca.h>
2772 # else
2773 # ifdef _AIX
2774 #pragma alloca
2775 # else
2776 # ifndef alloca /* predefined by HP cc +Olibcalls */
2777 char *alloca ();
2778 # endif
2779 # endif
2780 # endif
2781 # endif
2782 #endif
2784 int main() {
2785 char *p = (char *) alloca(1);
2786 ; return 0; }
2788 if { (eval echo configure:2789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2789 rm -rf conftest*
2790 ac_cv_func_alloca_works=yes
2791 else
2792 echo "configure: failed program was:" >&5
2793 cat conftest.$ac_ext >&5
2794 rm -rf conftest*
2795 ac_cv_func_alloca_works=no
2797 rm -f conftest*
2800 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2801 if test $ac_cv_func_alloca_works = yes; then
2802 cat >> confdefs.h <<\EOF
2803 #define HAVE_ALLOCA 1
2808 if test $ac_cv_func_alloca_works = no; then
2809 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2810 # that cause trouble. Some versions do not even contain alloca or
2811 # contain a buggy version. If you still want to use their alloca,
2812 # use ar to extract alloca.o from them instead of compiling alloca.c.
2813 ALLOCA=alloca.${ac_objext}
2814 cat >> confdefs.h <<\EOF
2815 #define C_ALLOCA 1
2819 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2820 echo "configure:2821: checking whether alloca needs Cray hooks" >&5
2821 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2822 echo $ac_n "(cached) $ac_c" 1>&6
2823 else
2824 cat > conftest.$ac_ext <<EOF
2825 #line 2826 "configure"
2826 #include "confdefs.h"
2827 #if defined(CRAY) && ! defined(CRAY2)
2828 webecray
2829 #else
2830 wenotbecray
2831 #endif
2834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2835 egrep "webecray" >/dev/null 2>&1; then
2836 rm -rf conftest*
2837 ac_cv_os_cray=yes
2838 else
2839 rm -rf conftest*
2840 ac_cv_os_cray=no
2842 rm -f conftest*
2846 echo "$ac_t""$ac_cv_os_cray" 1>&6
2847 if test $ac_cv_os_cray = yes; then
2848 for ac_func in _getb67 GETB67 getb67; do
2849 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2850 echo "configure:2851: checking for $ac_func" >&5
2851 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2852 echo $ac_n "(cached) $ac_c" 1>&6
2853 else
2854 cat > conftest.$ac_ext <<EOF
2855 #line 2856 "configure"
2856 #include "confdefs.h"
2857 /* System header to define __stub macros and hopefully few prototypes,
2858 which can conflict with char $ac_func(); below. */
2859 #include <assert.h>
2860 /* Override any gcc2 internal prototype to avoid an error. */
2861 /* We use char because int might match the return type of a gcc2
2862 builtin and then its argument prototype would still apply. */
2863 char $ac_func();
2865 int main() {
2867 /* The GNU C library defines this for functions which it implements
2868 to always fail with ENOSYS. Some functions are actually named
2869 something starting with __ and the normal name is an alias. */
2870 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2871 choke me
2872 #else
2873 $ac_func();
2874 #endif
2876 ; return 0; }
2878 if { (eval echo configure:2879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2879 rm -rf conftest*
2880 eval "ac_cv_func_$ac_func=yes"
2881 else
2882 echo "configure: failed program was:" >&5
2883 cat conftest.$ac_ext >&5
2884 rm -rf conftest*
2885 eval "ac_cv_func_$ac_func=no"
2887 rm -f conftest*
2890 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2891 echo "$ac_t""yes" 1>&6
2892 cat >> confdefs.h <<EOF
2893 #define CRAY_STACKSEG_END $ac_func
2896 break
2897 else
2898 echo "$ac_t""no" 1>&6
2901 done
2904 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2905 echo "configure:2906: checking stack direction for C alloca" >&5
2906 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2907 echo $ac_n "(cached) $ac_c" 1>&6
2908 else
2909 if test "$cross_compiling" = yes; then
2910 ac_cv_c_stack_direction=0
2911 else
2912 cat > conftest.$ac_ext <<EOF
2913 #line 2914 "configure"
2914 #include "confdefs.h"
2915 find_stack_direction ()
2917 static char *addr = 0;
2918 auto char dummy;
2919 if (addr == 0)
2921 addr = &dummy;
2922 return find_stack_direction ();
2924 else
2925 return (&dummy > addr) ? 1 : -1;
2927 main ()
2929 exit (find_stack_direction() < 0);
2932 if { (eval echo configure:2933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2933 then
2934 ac_cv_c_stack_direction=1
2935 else
2936 echo "configure: failed program was:" >&5
2937 cat conftest.$ac_ext >&5
2938 rm -fr conftest*
2939 ac_cv_c_stack_direction=-1
2941 rm -fr conftest*
2946 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2947 cat >> confdefs.h <<EOF
2948 #define STACK_DIRECTION $ac_cv_c_stack_direction
2954 echo $ac_n "checking size of short""... $ac_c" 1>&6
2955 echo "configure:2956: checking size of short" >&5
2956 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2957 echo $ac_n "(cached) $ac_c" 1>&6
2958 else
2959 if test "$cross_compiling" = yes; then
2960 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2961 else
2962 cat > conftest.$ac_ext <<EOF
2963 #line 2964 "configure"
2964 #include "confdefs.h"
2965 #include <stdio.h>
2966 main()
2968 FILE *f=fopen("conftestval", "w");
2969 if (!f) exit(1);
2970 fprintf(f, "%d\n", sizeof(short));
2971 exit(0);
2974 if { (eval echo configure:2975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2975 then
2976 ac_cv_sizeof_short=`cat conftestval`
2977 else
2978 echo "configure: failed program was:" >&5
2979 cat conftest.$ac_ext >&5
2980 rm -fr conftest*
2981 ac_cv_sizeof_short=0
2983 rm -fr conftest*
2987 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2988 cat >> confdefs.h <<EOF
2989 #define SIZEOF_SHORT $ac_cv_sizeof_short
2993 echo $ac_n "checking size of int""... $ac_c" 1>&6
2994 echo "configure:2995: checking size of int" >&5
2995 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2996 echo $ac_n "(cached) $ac_c" 1>&6
2997 else
2998 if test "$cross_compiling" = yes; then
2999 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3000 else
3001 cat > conftest.$ac_ext <<EOF
3002 #line 3003 "configure"
3003 #include "confdefs.h"
3004 #include <stdio.h>
3005 main()
3007 FILE *f=fopen("conftestval", "w");
3008 if (!f) exit(1);
3009 fprintf(f, "%d\n", sizeof(int));
3010 exit(0);
3013 if { (eval echo configure:3014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3014 then
3015 ac_cv_sizeof_int=`cat conftestval`
3016 else
3017 echo "configure: failed program was:" >&5
3018 cat conftest.$ac_ext >&5
3019 rm -fr conftest*
3020 ac_cv_sizeof_int=0
3022 rm -fr conftest*
3026 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3027 cat >> confdefs.h <<EOF
3028 #define SIZEOF_INT $ac_cv_sizeof_int
3032 echo $ac_n "checking size of long""... $ac_c" 1>&6
3033 echo "configure:3034: checking size of long" >&5
3034 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3035 echo $ac_n "(cached) $ac_c" 1>&6
3036 else
3037 if test "$cross_compiling" = yes; then
3038 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3039 else
3040 cat > conftest.$ac_ext <<EOF
3041 #line 3042 "configure"
3042 #include "confdefs.h"
3043 #include <stdio.h>
3044 main()
3046 FILE *f=fopen("conftestval", "w");
3047 if (!f) exit(1);
3048 fprintf(f, "%d\n", sizeof(long));
3049 exit(0);
3052 if { (eval echo configure:3053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3053 then
3054 ac_cv_sizeof_long=`cat conftestval`
3055 else
3056 echo "configure: failed program was:" >&5
3057 cat conftest.$ac_ext >&5
3058 rm -fr conftest*
3059 ac_cv_sizeof_long=0
3061 rm -fr conftest*
3065 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3066 cat >> confdefs.h <<EOF
3067 #define SIZEOF_LONG $ac_cv_sizeof_long
3071 echo $ac_n "checking size of long long""... $ac_c" 1>&6
3072 echo "configure:3073: checking size of long long" >&5
3073 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
3074 echo $ac_n "(cached) $ac_c" 1>&6
3075 else
3076 if test "$cross_compiling" = yes; then
3077 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3078 else
3079 cat > conftest.$ac_ext <<EOF
3080 #line 3081 "configure"
3081 #include "confdefs.h"
3082 #include <stdio.h>
3083 main()
3085 FILE *f=fopen("conftestval", "w");
3086 if (!f) exit(1);
3087 fprintf(f, "%d\n", sizeof(long long));
3088 exit(0);
3091 if { (eval echo configure:3092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3092 then
3093 ac_cv_sizeof_long_long=`cat conftestval`
3094 else
3095 echo "configure: failed program was:" >&5
3096 cat conftest.$ac_ext >&5
3097 rm -fr conftest*
3098 ac_cv_sizeof_long_long=0
3100 rm -fr conftest*
3104 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
3105 cat >> confdefs.h <<EOF
3106 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3110 echo $ac_n "checking size of float""... $ac_c" 1>&6
3111 echo "configure:3112: checking size of float" >&5
3112 if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
3113 echo $ac_n "(cached) $ac_c" 1>&6
3114 else
3115 if test "$cross_compiling" = yes; then
3116 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3117 else
3118 cat > conftest.$ac_ext <<EOF
3119 #line 3120 "configure"
3120 #include "confdefs.h"
3121 #include <stdio.h>
3122 main()
3124 FILE *f=fopen("conftestval", "w");
3125 if (!f) exit(1);
3126 fprintf(f, "%d\n", sizeof(float));
3127 exit(0);
3130 if { (eval echo configure:3131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3131 then
3132 ac_cv_sizeof_float=`cat conftestval`
3133 else
3134 echo "configure: failed program was:" >&5
3135 cat conftest.$ac_ext >&5
3136 rm -fr conftest*
3137 ac_cv_sizeof_float=0
3139 rm -fr conftest*
3143 echo "$ac_t""$ac_cv_sizeof_float" 1>&6
3144 cat >> confdefs.h <<EOF
3145 #define SIZEOF_FLOAT $ac_cv_sizeof_float
3149 echo $ac_n "checking size of double""... $ac_c" 1>&6
3150 echo "configure:3151: checking size of double" >&5
3151 if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
3152 echo $ac_n "(cached) $ac_c" 1>&6
3153 else
3154 if test "$cross_compiling" = yes; then
3155 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3156 else
3157 cat > conftest.$ac_ext <<EOF
3158 #line 3159 "configure"
3159 #include "confdefs.h"
3160 #include <stdio.h>
3161 main()
3163 FILE *f=fopen("conftestval", "w");
3164 if (!f) exit(1);
3165 fprintf(f, "%d\n", sizeof(double));
3166 exit(0);
3169 if { (eval echo configure:3170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3170 then
3171 ac_cv_sizeof_double=`cat conftestval`
3172 else
3173 echo "configure: failed program was:" >&5
3174 cat conftest.$ac_ext >&5
3175 rm -fr conftest*
3176 ac_cv_sizeof_double=0
3178 rm -fr conftest*
3182 echo "$ac_t""$ac_cv_sizeof_double" 1>&6
3183 cat >> confdefs.h <<EOF
3184 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
3188 echo $ac_n "checking size of long double""... $ac_c" 1>&6
3189 echo "configure:3190: checking size of long double" >&5
3190 if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
3191 echo $ac_n "(cached) $ac_c" 1>&6
3192 else
3193 if test "$cross_compiling" = yes; then
3194 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3195 else
3196 cat > conftest.$ac_ext <<EOF
3197 #line 3198 "configure"
3198 #include "confdefs.h"
3199 #include <stdio.h>
3200 main()
3202 FILE *f=fopen("conftestval", "w");
3203 if (!f) exit(1);
3204 fprintf(f, "%d\n", sizeof(long double));
3205 exit(0);
3208 if { (eval echo configure:3209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3209 then
3210 ac_cv_sizeof_long_double=`cat conftestval`
3211 else
3212 echo "configure: failed program was:" >&5
3213 cat conftest.$ac_ext >&5
3214 rm -fr conftest*
3215 ac_cv_sizeof_long_double=0
3217 rm -fr conftest*
3221 echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
3222 cat >> confdefs.h <<EOF
3223 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
3228 echo $ac_n "checking size of void *""... $ac_c" 1>&6
3229 echo "configure:3230: checking size of void *" >&5
3230 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
3231 echo $ac_n "(cached) $ac_c" 1>&6
3232 else
3233 if test "$cross_compiling" = yes; then
3234 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3235 else
3236 cat > conftest.$ac_ext <<EOF
3237 #line 3238 "configure"
3238 #include "confdefs.h"
3239 #include <stdio.h>
3240 main()
3242 FILE *f=fopen("conftestval", "w");
3243 if (!f) exit(1);
3244 fprintf(f, "%d\n", sizeof(void *));
3245 exit(0);
3248 if { (eval echo configure:3249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3249 then
3250 ac_cv_sizeof_void_p=`cat conftestval`
3251 else
3252 echo "configure: failed program was:" >&5
3253 cat conftest.$ac_ext >&5
3254 rm -fr conftest*
3255 ac_cv_sizeof_void_p=0
3257 rm -fr conftest*
3261 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
3262 cat >> confdefs.h <<EOF
3263 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3267 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3268 echo "configure:3269: checking whether byte ordering is bigendian" >&5
3269 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3270 echo $ac_n "(cached) $ac_c" 1>&6
3271 else
3272 ac_cv_c_bigendian=unknown
3273 # See if sys/param.h defines the BYTE_ORDER macro.
3274 cat > conftest.$ac_ext <<EOF
3275 #line 3276 "configure"
3276 #include "confdefs.h"
3277 #include <sys/types.h>
3278 #include <sys/param.h>
3279 int main() {
3281 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3282 bogus endian macros
3283 #endif
3284 ; return 0; }
3286 if { (eval echo configure:3287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3287 rm -rf conftest*
3288 # It does; now see whether it defined to BIG_ENDIAN or not.
3289 cat > conftest.$ac_ext <<EOF
3290 #line 3291 "configure"
3291 #include "confdefs.h"
3292 #include <sys/types.h>
3293 #include <sys/param.h>
3294 int main() {
3296 #if BYTE_ORDER != BIG_ENDIAN
3297 not big endian
3298 #endif
3299 ; return 0; }
3301 if { (eval echo configure:3302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3302 rm -rf conftest*
3303 ac_cv_c_bigendian=yes
3304 else
3305 echo "configure: failed program was:" >&5
3306 cat conftest.$ac_ext >&5
3307 rm -rf conftest*
3308 ac_cv_c_bigendian=no
3310 rm -f conftest*
3311 else
3312 echo "configure: failed program was:" >&5
3313 cat conftest.$ac_ext >&5
3315 rm -f conftest*
3316 if test $ac_cv_c_bigendian = unknown; then
3317 if test "$cross_compiling" = yes; then
3318 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3319 else
3320 cat > conftest.$ac_ext <<EOF
3321 #line 3322 "configure"
3322 #include "confdefs.h"
3323 main () {
3324 /* Are we little or big endian? From Harbison&Steele. */
3325 union
3327 long l;
3328 char c[sizeof (long)];
3329 } u;
3330 u.l = 1;
3331 exit (u.c[sizeof (long) - 1] == 1);
3334 if { (eval echo configure:3335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3335 then
3336 ac_cv_c_bigendian=no
3337 else
3338 echo "configure: failed program was:" >&5
3339 cat conftest.$ac_ext >&5
3340 rm -fr conftest*
3341 ac_cv_c_bigendian=yes
3343 rm -fr conftest*
3349 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3350 if test $ac_cv_c_bigendian = yes; then
3351 cat >> confdefs.h <<\EOF
3352 #define WORDS_BIGENDIAN 1
3363 # Check whether --enable-debug or --disable-debug was given.
3364 if test "${enable_debug+set}" = set; then
3365 enableval="$enable_debug"
3366 cat >> confdefs.h <<\EOF
3367 #define FFI_DEBUG 1
3373 # Check whether --enable-debug or --disable-debug was given.
3374 if test "${enable_debug+set}" = set; then
3375 enableval="$enable_debug"
3376 cat >> confdefs.h <<\EOF
3377 #define FFI_NO_STRUCTS 1
3383 # Check whether --enable-debug or --disable-debug was given.
3384 if test "${enable_debug+set}" = set; then
3385 enableval="$enable_debug"
3386 cat >> confdefs.h <<\EOF
3387 #define FFI_NO_RAW_API 1
3393 # Check whether --enable-purify-safety or --disable-purify-safety was given.
3394 if test "${enable_purify_safety+set}" = set; then
3395 enableval="$enable_purify_safety"
3396 cat >> confdefs.h <<\EOF
3397 #define USING_PURIFY 1
3405 if test -z "$with_cross_host"; then
3406 USE_LIBDIR_TRUE=
3407 USE_LIBDIR_FALSE='#'
3408 else
3409 USE_LIBDIR_TRUE='#'
3410 USE_LIBDIR_FALSE=
3413 if test "${multilib}" = "yes"; then
3414 multilib_arg="--enable-multilib"
3415 else
3416 multilib_arg=
3419 trap '' 1 2 15
3420 cat > confcache <<\EOF
3421 # This file is a shell script that caches the results of configure
3422 # tests run on this system so they can be shared between configure
3423 # scripts and configure runs. It is not useful on other systems.
3424 # If it contains results you don't want to keep, you may remove or edit it.
3426 # By default, configure uses ./config.cache as the cache file,
3427 # creating it if it does not exist already. You can give configure
3428 # the --cache-file=FILE option to use a different cache file; that is
3429 # what configure does when it calls configure scripts in
3430 # subdirectories, so they share the cache.
3431 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3432 # config.status only pays attention to the cache file if you give it the
3433 # --recheck option to rerun configure.
3436 # The following way of writing the cache mishandles newlines in values,
3437 # but we know of no workaround that is simple, portable, and efficient.
3438 # So, don't put newlines in cache variables' values.
3439 # Ultrix sh set writes to stderr and can't be redirected directly,
3440 # and sets the high bit in the cache file unless we assign to the vars.
3441 (set) 2>&1 |
3442 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3443 *ac_space=\ *)
3444 # `set' does not quote correctly, so add quotes (double-quote substitution
3445 # turns \\\\ into \\, and sed turns \\ into \).
3446 sed -n \
3447 -e "s/'/'\\\\''/g" \
3448 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3451 # `set' quotes correctly as required by POSIX, so do not add quotes.
3452 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3454 esac >> confcache
3455 if cmp -s $cache_file confcache; then
3457 else
3458 if test -w $cache_file; then
3459 echo "updating cache $cache_file"
3460 cat confcache > $cache_file
3461 else
3462 echo "not updating unwritable cache $cache_file"
3465 rm -f confcache
3467 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3469 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3470 # Let make expand exec_prefix.
3471 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3473 # Any assignment to VPATH causes Sun make to only execute
3474 # the first set of double-colon rules, so remove it if not needed.
3475 # If there is a colon in the path, we need to keep it.
3476 if test "x$srcdir" = x.; then
3477 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3480 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3482 DEFS=-DHAVE_CONFIG_H
3484 # Without the "./", some shells look in PATH for config.status.
3485 : ${CONFIG_STATUS=./config.status}
3487 echo creating $CONFIG_STATUS
3488 rm -f $CONFIG_STATUS
3489 cat > $CONFIG_STATUS <<EOF
3490 #! /bin/sh
3491 # Generated automatically by configure.
3492 # Run this file to recreate the current configuration.
3493 # This directory was configured as follows,
3494 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3496 # $0 $ac_configure_args
3498 # Compiler output produced by configure, useful for debugging
3499 # configure, is in ./config.log if it exists.
3501 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3502 for ac_option
3504 case "\$ac_option" in
3505 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3506 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3507 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3508 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3509 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3510 exit 0 ;;
3511 -help | --help | --hel | --he | --h)
3512 echo "\$ac_cs_usage"; exit 0 ;;
3513 *) echo "\$ac_cs_usage"; exit 1 ;;
3514 esac
3515 done
3517 ac_given_srcdir=$srcdir
3518 ac_given_INSTALL="$INSTALL"
3520 trap 'rm -fr `echo "include/Makefile include/ffi.h Makefile fficonfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3522 cat >> $CONFIG_STATUS <<EOF
3524 # Protect against being on the right side of a sed subst in config.status.
3525 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3526 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3527 $ac_vpsub
3528 $extrasub
3529 s%@SHELL@%$SHELL%g
3530 s%@CFLAGS@%$CFLAGS%g
3531 s%@CPPFLAGS@%$CPPFLAGS%g
3532 s%@CXXFLAGS@%$CXXFLAGS%g
3533 s%@FFLAGS@%$FFLAGS%g
3534 s%@DEFS@%$DEFS%g
3535 s%@LDFLAGS@%$LDFLAGS%g
3536 s%@LIBS@%$LIBS%g
3537 s%@exec_prefix@%$exec_prefix%g
3538 s%@prefix@%$prefix%g
3539 s%@program_transform_name@%$program_transform_name%g
3540 s%@bindir@%$bindir%g
3541 s%@sbindir@%$sbindir%g
3542 s%@libexecdir@%$libexecdir%g
3543 s%@datadir@%$datadir%g
3544 s%@sysconfdir@%$sysconfdir%g
3545 s%@sharedstatedir@%$sharedstatedir%g
3546 s%@localstatedir@%$localstatedir%g
3547 s%@libdir@%$libdir%g
3548 s%@includedir@%$includedir%g
3549 s%@oldincludedir@%$oldincludedir%g
3550 s%@infodir@%$infodir%g
3551 s%@mandir@%$mandir%g
3552 s%@libffi_basedir@%$libffi_basedir%g
3553 s%@host@%$host%g
3554 s%@host_alias@%$host_alias%g
3555 s%@host_cpu@%$host_cpu%g
3556 s%@host_vendor@%$host_vendor%g
3557 s%@host_os@%$host_os%g
3558 s%@build@%$build%g
3559 s%@build_alias@%$build_alias%g
3560 s%@build_cpu@%$build_cpu%g
3561 s%@build_vendor@%$build_vendor%g
3562 s%@build_os@%$build_os%g
3563 s%@CC@%$CC%g
3564 s%@LN_S@%$LN_S%g
3565 s%@OBJEXT@%$OBJEXT%g
3566 s%@EXEEXT@%$EXEEXT%g
3567 s%@RANLIB@%$RANLIB%g
3568 s%@STRIP@%$STRIP%g
3569 s%@LIBTOOL@%$LIBTOOL%g
3570 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3571 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3572 s%@INSTALL_DATA@%$INSTALL_DATA%g
3573 s%@PACKAGE@%$PACKAGE%g
3574 s%@VERSION@%$VERSION%g
3575 s%@ACLOCAL@%$ACLOCAL%g
3576 s%@AUTOCONF@%$AUTOCONF%g
3577 s%@AUTOMAKE@%$AUTOMAKE%g
3578 s%@AUTOHEADER@%$AUTOHEADER%g
3579 s%@MAKEINFO@%$MAKEINFO%g
3580 s%@SET_MAKE@%$SET_MAKE%g
3581 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3582 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3583 s%@MAINT@%$MAINT%g
3584 s%@MIPS_GCC_TRUE@%$MIPS_GCC_TRUE%g
3585 s%@MIPS_GCC_FALSE@%$MIPS_GCC_FALSE%g
3586 s%@MIPS_SGI_TRUE@%$MIPS_SGI_TRUE%g
3587 s%@MIPS_SGI_FALSE@%$MIPS_SGI_FALSE%g
3588 s%@SPARC_TRUE@%$SPARC_TRUE%g
3589 s%@SPARC_FALSE@%$SPARC_FALSE%g
3590 s%@X86_TRUE@%$X86_TRUE%g
3591 s%@X86_FALSE@%$X86_FALSE%g
3592 s%@X86_WIN32_TRUE@%$X86_WIN32_TRUE%g
3593 s%@X86_WIN32_FALSE@%$X86_WIN32_FALSE%g
3594 s%@ALPHA_TRUE@%$ALPHA_TRUE%g
3595 s%@ALPHA_FALSE@%$ALPHA_FALSE%g
3596 s%@IA64_TRUE@%$IA64_TRUE%g
3597 s%@IA64_FALSE@%$IA64_FALSE%g
3598 s%@M68K_TRUE@%$M68K_TRUE%g
3599 s%@M68K_FALSE@%$M68K_FALSE%g
3600 s%@POWERPC_TRUE@%$POWERPC_TRUE%g
3601 s%@POWERPC_FALSE@%$POWERPC_FALSE%g
3602 s%@ARM_TRUE@%$ARM_TRUE%g
3603 s%@ARM_FALSE@%$ARM_FALSE%g
3604 s%@CPP@%$CPP%g
3605 s%@ALLOCA@%$ALLOCA%g
3606 s%@TARGET@%$TARGET%g
3607 s%@TARGETDIR@%$TARGETDIR%g
3608 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
3609 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
3611 CEOF
3614 cat >> $CONFIG_STATUS <<\EOF
3616 # Split the substitutions into bite-sized pieces for seds with
3617 # small command number limits, like on Digital OSF/1 and HP-UX.
3618 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3619 ac_file=1 # Number of current file.
3620 ac_beg=1 # First line for current file.
3621 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3622 ac_more_lines=:
3623 ac_sed_cmds=""
3624 while $ac_more_lines; do
3625 if test $ac_beg -gt 1; then
3626 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3627 else
3628 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3630 if test ! -s conftest.s$ac_file; then
3631 ac_more_lines=false
3632 rm -f conftest.s$ac_file
3633 else
3634 if test -z "$ac_sed_cmds"; then
3635 ac_sed_cmds="sed -f conftest.s$ac_file"
3636 else
3637 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3639 ac_file=`expr $ac_file + 1`
3640 ac_beg=$ac_end
3641 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3643 done
3644 if test -z "$ac_sed_cmds"; then
3645 ac_sed_cmds=cat
3649 cat >> $CONFIG_STATUS <<EOF
3651 CONFIG_FILES=\${CONFIG_FILES-"include/Makefile include/ffi.h Makefile"}
3653 cat >> $CONFIG_STATUS <<\EOF
3654 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3655 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3656 case "$ac_file" in
3657 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3658 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3659 *) ac_file_in="${ac_file}.in" ;;
3660 esac
3662 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3664 # Remove last slash and all that follows it. Not all systems have dirname.
3665 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3666 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3667 # The file is in a subdirectory.
3668 test ! -d "$ac_dir" && mkdir "$ac_dir"
3669 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3670 # A "../" for each directory in $ac_dir_suffix.
3671 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3672 else
3673 ac_dir_suffix= ac_dots=
3676 case "$ac_given_srcdir" in
3677 .) srcdir=.
3678 if test -z "$ac_dots"; then top_srcdir=.
3679 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3680 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3681 *) # Relative path.
3682 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3683 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3684 esac
3686 case "$ac_given_INSTALL" in
3687 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3688 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3689 esac
3691 echo creating "$ac_file"
3692 rm -f "$ac_file"
3693 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3694 case "$ac_file" in
3695 *Makefile*) ac_comsub="1i\\
3696 # $configure_input" ;;
3697 *) ac_comsub= ;;
3698 esac
3700 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3701 sed -e "$ac_comsub
3702 s%@configure_input@%$configure_input%g
3703 s%@srcdir@%$srcdir%g
3704 s%@top_srcdir@%$top_srcdir%g
3705 s%@INSTALL@%$INSTALL%g
3706 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3707 fi; done
3708 rm -f conftest.s*
3710 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3711 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3713 # ac_d sets the value in "#define NAME VALUE" lines.
3714 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3715 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3716 ac_dC='\3'
3717 ac_dD='%g'
3718 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3719 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3720 ac_uB='\([ ]\)%\1#\2define\3'
3721 ac_uC=' '
3722 ac_uD='\4%g'
3723 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3724 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3725 ac_eB='$%\1#\2define\3'
3726 ac_eC=' '
3727 ac_eD='%g'
3729 if test "${CONFIG_HEADERS+set}" != set; then
3731 cat >> $CONFIG_STATUS <<EOF
3732 CONFIG_HEADERS="fficonfig.h"
3734 cat >> $CONFIG_STATUS <<\EOF
3736 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3737 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3738 case "$ac_file" in
3739 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3740 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3741 *) ac_file_in="${ac_file}.in" ;;
3742 esac
3744 echo creating $ac_file
3746 rm -f conftest.frag conftest.in conftest.out
3747 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3748 cat $ac_file_inputs > conftest.in
3752 # Transform confdefs.h into a sed script conftest.vals that substitutes
3753 # the proper values into config.h.in to produce config.h. And first:
3754 # Protect against being on the right side of a sed subst in config.status.
3755 # Protect against being in an unquoted here document in config.status.
3756 rm -f conftest.vals
3757 cat > conftest.hdr <<\EOF
3758 s/[\\&%]/\\&/g
3759 s%[\\$`]%\\&%g
3760 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3761 s%ac_d%ac_u%gp
3762 s%ac_u%ac_e%gp
3764 sed -n -f conftest.hdr confdefs.h > conftest.vals
3765 rm -f conftest.hdr
3767 # This sed command replaces #undef with comments. This is necessary, for
3768 # example, in the case of _POSIX_SOURCE, which is predefined and required
3769 # on some systems where configure will not decide to define it.
3770 cat >> conftest.vals <<\EOF
3771 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3774 # Break up conftest.vals because some shells have a limit on
3775 # the size of here documents, and old seds have small limits too.
3777 rm -f conftest.tail
3778 while :
3780 ac_lines=`grep -c . conftest.vals`
3781 # grep -c gives empty output for an empty file on some AIX systems.
3782 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3783 # Write a limited-size here document to conftest.frag.
3784 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3785 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3786 echo 'CEOF
3787 sed -f conftest.frag conftest.in > conftest.out
3788 rm -f conftest.in
3789 mv conftest.out conftest.in
3790 ' >> $CONFIG_STATUS
3791 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3792 rm -f conftest.vals
3793 mv conftest.tail conftest.vals
3794 done
3795 rm -f conftest.vals
3797 cat >> $CONFIG_STATUS <<\EOF
3798 rm -f conftest.frag conftest.h
3799 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3800 cat conftest.in >> conftest.h
3801 rm -f conftest.in
3802 if cmp -s $ac_file conftest.h 2>/dev/null; then
3803 echo "$ac_file is unchanged"
3804 rm -f conftest.h
3805 else
3806 # Remove last slash and all that follows it. Not all systems have dirname.
3807 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3808 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3809 # The file is in a subdirectory.
3810 test ! -d "$ac_dir" && mkdir "$ac_dir"
3812 rm -f $ac_file
3813 mv conftest.h $ac_file
3815 fi; done
3818 cat >> $CONFIG_STATUS <<EOF
3820 srcdir=${srcdir}
3821 host=${host}
3822 target=${target}
3823 with_multisubdir=${with_multisubdir}
3824 ac_configure_args="${multilib_arg} ${ac_configure_args}"
3825 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
3826 libffi_basedir=${libffi_basedir}
3827 CC="${CC}"
3828 DEFS="$DEFS"
3829 test ! -d include && mkdir include
3830 test ! -f include/fficonfig.h && cp fficonfig.h include/fficonfig.h
3831 if cmp -s fficonfig.h include/fficonfig.h 2>/dev/null; then
3832 echo fficonfig.h unchanged
3833 else
3834 echo Moving fficonfig.h to include/fficonfig.h
3835 cp fficonfig.h include/fficonfig.h
3839 cat >> $CONFIG_STATUS <<\EOF
3840 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3842 if test -n "$CONFIG_FILES"; then
3843 ac_file=Makefile . ${libffi_basedir}/../config-ml.in
3846 exit 0
3848 chmod +x $CONFIG_STATUS
3849 rm -fr confdefs* $ac_clean_files
3850 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3853 # Make target subdirectories if required.
3854 test -d src || mkdir src
3855 test -d src/${TARGETDIR} || mkdir src/${TARGETDIR}