source: trunk/src/gcc/libffi/configure@ 80

Last change on this file since 80 was 80, checked in by bird, 22 years ago

Regenerated configure on OS/2.

  • Property cvs2svn:cvs-rev set to 1.2
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 117.6 KB
Line 
1#! /bin/sh
2
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.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15 --enable-multilib build many library versions (default)"
16ac_help="$ac_help
17 --enable-shared[=PKGS] build shared libraries [default=yes]"
18ac_help="$ac_help
19 --enable-static[=PKGS] build static libraries [default=yes]"
20ac_help="$ac_help
21 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
22ac_help="$ac_help
23 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
24ac_help="$ac_help
25 --disable-libtool-lock avoid locking (might break parallel builds)"
26ac_help="$ac_help
27 --with-pic try to use only PIC/non-PIC objects [default=use both]"
28ac_help="$ac_help
29 --enable-maintainer-mode enable make rules and dependencies not useful
30 (and sometimes confusing) to the casual installer"
31ac_help="$ac_help
32 --enable-debug debugging mode"
33ac_help="$ac_help
34 --disable-structs omit code for struct support"
35ac_help="$ac_help
36 --disable-raw-api make the raw api unavailable"
37ac_help="$ac_help
38 --enable-purify-safety purify-safe mode"
39
40# Initialize some variables set by options.
41# The variables have the same names as the options, with
42# dashes changed to underlines.
43build=NONE
44cache_file=./config.cache
45exec_prefix=NONE
46host=NONE
47no_create=
48nonopt=NONE
49no_recursion=
50prefix=NONE
51program_prefix=NONE
52program_suffix=NONE
53program_transform_name=s,x,x,
54silent=
55site=
56srcdir=
57target=NONE
58verbose=
59x_includes=NONE
60x_libraries=NONE
61bindir='${exec_prefix}/bin'
62sbindir='${exec_prefix}/sbin'
63libexecdir='${exec_prefix}/libexec'
64datadir='${prefix}/share'
65sysconfdir='${prefix}/etc'
66sharedstatedir='${prefix}/com'
67localstatedir='${prefix}/var'
68libdir='${exec_prefix}/lib'
69includedir='${prefix}/include'
70oldincludedir='/usr/include'
71infodir='${prefix}/info'
72mandir='${prefix}/man'
73
74# Initialize some other variables.
75subdirs=
76MFLAGS= MAKEFLAGS=
77SHELL=${CONFIG_SHELL-/bin/sh}
78# Maximum number of lines to put in a shell here document.
79ac_max_here_lines=12
80
81ac_prev=
82for ac_option
83do
84
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
90 fi
91
92 case "$ac_option" in
93 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
94 *) ac_optarg= ;;
95 esac
96
97 # Accept the important Cygnus configure options, so we can diagnose typos.
98
99 case "$ac_option" in
100
101 -bindir | --bindir | --bindi | --bind | --bin | --bi)
102 ac_prev=bindir ;;
103 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
104 bindir="$ac_optarg" ;;
105
106 -build | --build | --buil | --bui | --bu)
107 ac_prev=build ;;
108 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
109 build="$ac_optarg" ;;
110
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" ;;
117
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" ;;
123
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; }
129 fi
130 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
131 eval "enable_${ac_feature}=no" ;;
132
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; }
138 fi
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'" ;;
145
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" ;;
154
155 -gas | --gas | --ga | --g)
156 # Obsolete; use --with-gas.
157 with_gas=yes ;;
158
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
163Usage: configure [options] [host]
164Options: [defaults in brackets after descriptions]
165Configuration:
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
171Directory 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
195EOF
196 cat << EOF
197Host 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]
201Features 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
208EOF
209 if test -n "$ac_help"; then
210 echo "--enable and --with options recognized:$ac_help"
211 fi
212 exit 0 ;;
213
214 -host | --host | --hos | --ho)
215 ac_prev=host ;;
216 -host=* | --host=* | --hos=* | --ho=*)
217 host="$ac_optarg" ;;
218
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" ;;
225
226 -infodir | --infodir | --infodi | --infod | --info | --inf)
227 ac_prev=infodir ;;
228 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
229 infodir="$ac_optarg" ;;
230
231 -libdir | --libdir | --libdi | --libd)
232 ac_prev=libdir ;;
233 -libdir=* | --libdir=* | --libdi=* | --libd=*)
234 libdir="$ac_optarg" ;;
235
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" ;;
242
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" ;;
251
252 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
253 ac_prev=mandir ;;
254 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
255 mandir="$ac_optarg" ;;
256
257 -nfp | --nfp | --nf)
258 # Obsolete; use --without-fp.
259 with_fp=no ;;
260
261 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
262 | --no-cr | --no-c)
263 no_create=yes ;;
264
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 ;;
268
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" ;;
277
278 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
279 ac_prev=prefix ;;
280 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
281 prefix="$ac_optarg" ;;
282
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" ;;
289
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" ;;
296
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" ;;
313
314 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
315 | -silent | --silent | --silen | --sile | --sil)
316 silent=yes ;;
317
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" ;;
323
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" ;;
334
335 -site | --site | --sit)
336 ac_prev=site ;;
337 -site=* | --site=* | --sit=*)
338 site="$ac_optarg" ;;
339
340 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
341 ac_prev=srcdir ;;
342 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
343 srcdir="$ac_optarg" ;;
344
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" ;;
351
352 -target | --target | --targe | --targ | --tar | --ta | --t)
353 ac_prev=target ;;
354 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
355 target="$ac_optarg" ;;
356
357 -v | -verbose | --verbose | --verbos | --verbo | --verb)
358 verbose=yes ;;
359
360 -version | --version | --versio | --versi | --vers)
361 echo "configure generated by autoconf version 2.13"
362 exit 0 ;;
363
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; }
369 fi
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'" ;;
376
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; }
382 fi
383 ac_package=`echo $ac_package| sed 's/-/_/g'`
384 eval "with_${ac_package}=no" ;;
385
386 --x)
387 # Obsolete; use --with-x.
388 with_x=yes ;;
389
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" ;;
396
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" ;;
403
404 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
405 ;;
406
407 *)
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
410 fi
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; }
413 fi
414 nonopt="$ac_option"
415 ;;
416
417 esac
418done
419
420if test -n "$ac_prev"; then
421 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
422fi
423
424trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
425
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
434if test "$silent" = yes; then
435 exec 6>/dev/null
436else
437 exec 6>&1
438fi
439exec 5>./config.log
440
441echo "\
442This file contains any messages produced by compilers while
443running configure, to aid debugging if configure makes a mistake.
444" 1>&5
445
446# Strip out --no-create and --no-recursion so they do not pile up.
447# Also quote any args containing shell metacharacters.
448ac_configure_args=
449for ac_arg
450do
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
460done
461
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.
467if test "${LANG+set}" = set; then LANG=C; export LANG; fi
468if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
469if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
470if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
471
472# confdefs.h avoids OS command line length limits that DEFS can exceed.
473rm -rf conftest* confdefs.h
474# AIX cpp loses on an empty file, so make sure it contains at least a newline.
475echo > confdefs.h
476
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.
479ac_unique_file=fficonfig.h.in
480
481# Find the source files, if location was not specified.
482if 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=..
491 fi
492else
493 ac_srcdir_defaulted=no
494fi
495if 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; }
500 fi
501fi
502srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
503
504# Prefer explicitly selected file to automatically selected ones.
505if 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"
510 fi
511fi
512for 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"
516 fi
517done
518
519if test -r "$cache_file"; then
520 echo "loading cache $cache_file"
521 . $cache_file
522else
523 echo "creating cache $cache_file"
524 > $cache_file
525fi
526
527ac_ext=c
528# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
529ac_cpp='$CPP $CPPFLAGS'
530ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
531ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
532cross_compiling=$ac_cv_prog_cc_cross
533
534ac_exeext=
535ac_objext=o
536if (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=
543 fi
544else
545 ac_n= ac_c='\c' ac_t=
546fi
547
548echo $ac_n "checking for path separator""... $ac_c" 1>&6
549echo "configure:550: checking for path separator" >&5
550# Filter path to get backslahes into forwardslashes
551case "`uname -s 2> /dev/null`" in
552OS/2)
553 PATH=`echo -E "$PATH" | sed 's+\\\\+/+g'`
554 PATH_IFS=';'
555 ;;
556*)
557 PATH_IFS=':'
558 ;;
559esac
560echo "$ac_t""${PATH_IFS}" 1>&6
561
562echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
563echo "configure:564: checking for Cygwin environment" >&5
564if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
565 echo $ac_n "(cached) $ac_c" 1>&6
566else
567 cat > conftest.$ac_ext <<EOF
568#line 569 "configure"
569#include "confdefs.h"
570
571int main() {
572
573#ifndef __CYGWIN__
574#define __CYGWIN__ __CYGWIN32__
575#endif
576return __CYGWIN__;
577; return 0; }
578EOF
579if { (eval echo configure:580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
580 rm -rf conftest*
581 ac_cv_cygwin=yes
582else
583 echo "configure: failed program was:" >&5
584 cat conftest.$ac_ext >&5
585 rm -rf conftest*
586 ac_cv_cygwin=no
587fi
588rm -f conftest*
589rm -f conftest*
590fi
591
592echo "$ac_t""$ac_cv_cygwin" 1>&6
593CYGWIN=
594test "$ac_cv_cygwin" = yes && CYGWIN=yes
595echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
596echo "configure:597: checking for mingw32 environment" >&5
597if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
598 echo $ac_n "(cached) $ac_c" 1>&6
599else
600 cat > conftest.$ac_ext <<EOF
601#line 602 "configure"
602#include "confdefs.h"
603
604int main() {
605return __MINGW32__;
606; return 0; }
607EOF
608if { (eval echo configure:609: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
609 rm -rf conftest*
610 ac_cv_mingw32=yes
611else
612 echo "configure: failed program was:" >&5
613 cat conftest.$ac_ext >&5
614 rm -rf conftest*
615 ac_cv_mingw32=no
616fi
617rm -f conftest*
618rm -f conftest*
619fi
620
621echo "$ac_t""$ac_cv_mingw32" 1>&6
622MINGW32=
623test "$ac_cv_mingw32" = yes && MINGW32=yes
624echo $ac_n "checking for EMX/OS2 environment""... $ac_c" 1>&6
625echo "configure:626: checking for EMX/OS2 environment" >&5
626if eval "test \"`echo '$''{'ac_cv_emxos2'+set}'`\" = set"; then
627 echo $ac_n "(cached) $ac_c" 1>&6
628else
629 : ${CC=gcc.exe}
630cat > conftest.$ac_ext <<EOF
631#line 632 "configure"
632#include "confdefs.h"
633
634int main() {
635return __EMX__;
636; return 0; }
637EOF
638if { (eval echo configure:639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
639 rm -rf conftest*
640 ac_cv_emxos2=yes
641else
642 echo "configure: failed program was:" >&5
643 cat conftest.$ac_ext >&5
644 rm -rf conftest*
645 ac_cv_emxos2=no
646fi
647rm -f conftest*
648rm -f conftest*
649fi
650
651echo "$ac_t""$ac_cv_emxos2" 1>&6
652if eval "test \"`echo '$''{'ac_cv_libpre'+set}'`\" = set"; then
653 echo $ac_n "(cached) $ac_c" 1>&6
654else
655 if test "$ac_cv_emxos2" = yes ; then
656 ac_cv_libpre=
657else
658 ac_cv_libpre=lib
659fi
660
661fi
662
663EMXOS2=
664test "$ac_cv_emxos2" = yes && EMXOS2=yes
665
666
667
668echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
669echo "configure:670: checking for executable suffix" >&5
670if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
671 echo $ac_n "(cached) $ac_c" 1>&6
672else
673 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
674 ac_cv_exeext=.exe
675else
676 rm -f conftest*
677 echo 'int main () { return 0; }' > conftest.$ac_ext
678 ac_cv_exeext=
679 if { (eval echo configure:680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
680 for file in conftest.*; do
681 case $file in
682 *.c | *.o | *.obj) ;;
683 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
684 esac
685 done
686 else
687 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
688 fi
689 rm -f conftest*
690 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
691fi
692fi
693
694EXEEXT=""
695test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
696echo "$ac_t""${ac_cv_exeext}" 1>&6
697ac_exeext=$EXEEXT
698
699
700
701
702
703
704# This works around the fact that libtool configuration may change LD
705# for this particular configuration, but some shells, instead of
706# keeping the changes in LD private, export them just because LD is
707# exported.
708ORIGINAL_LD_FOR_MULTILIBS=$LD
709
710# Check whether --enable-multilib or --disable-multilib was given.
711if test "${enable_multilib+set}" = set; then
712 enableval="$enable_multilib"
713 case "${enableval}" in
714 yes) multilib=yes ;;
715 no) multilib=no ;;
716 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
717 esac
718else
719 multilib=yes
720fi
721
722
723if test "${srcdir}" = "."; then
724 if test "${with_target_subdir}" != "."; then
725 libffi_basedir="${srcdir}/${with_multisrctop}.."
726 else
727 libffi_basedir="${srcdir}/${with_multisrctop}"
728 fi
729else
730 libffi_basedir="${srcdir}"
731fi
732
733
734ac_aux_dir=
735for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
736 if test -f $ac_dir/install-sh; then
737 ac_aux_dir=$ac_dir
738 ac_install_sh="$ac_aux_dir/install-sh -c"
739 break
740 elif test -f $ac_dir/install.sh; then
741 ac_aux_dir=$ac_dir
742 ac_install_sh="$ac_aux_dir/install.sh -c"
743 break
744 fi
745done
746if test -z "$ac_aux_dir"; then
747 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
748fi
749ac_config_guess=$ac_aux_dir/config.guess
750ac_config_sub=$ac_aux_dir/config.sub
751ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
752
753
754# Make sure we can run config.sub.
755if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
756else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
757fi
758
759echo $ac_n "checking host system type""... $ac_c" 1>&6
760echo "configure:761: checking host system type" >&5
761
762host_alias=$host
763case "$host_alias" in
764NONE)
765 case $nonopt in
766 NONE)
767 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
768 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
769 fi ;;
770 *) host_alias=$nonopt ;;
771 esac ;;
772esac
773
774host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
775host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
776host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
777host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
778echo "$ac_t""$host" 1>&6
779
780
781# Check whether --enable-shared or --disable-shared was given.
782if test "${enable_shared+set}" = set; then
783 enableval="$enable_shared"
784 p=${PACKAGE-default}
785case $enableval in
786yes) enable_shared=yes ;;
787no) enable_shared=no ;;
788*)
789 enable_shared=no
790 # Look at the argument we got. We use all the common list separators.
791 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
792 for pkg in $enableval; do
793 if test "X$pkg" = "X$p"; then
794 enable_shared=yes
795 fi
796 done
797 IFS="$ac_save_ifs"
798 ;;
799esac
800else
801 enable_shared=yes
802fi
803
804# Check whether --enable-static or --disable-static was given.
805if test "${enable_static+set}" = set; then
806 enableval="$enable_static"
807 p=${PACKAGE-default}
808case $enableval in
809yes) enable_static=yes ;;
810no) enable_static=no ;;
811*)
812 enable_static=no
813 # Look at the argument we got. We use all the common list separators.
814 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
815 for pkg in $enableval; do
816 if test "X$pkg" = "X$p"; then
817 enable_static=yes
818 fi
819 done
820 IFS="$ac_save_ifs"
821 ;;
822esac
823else
824 enable_static=yes
825fi
826
827# Check whether --enable-fast-install or --disable-fast-install was given.
828if test "${enable_fast_install+set}" = set; then
829 enableval="$enable_fast_install"
830 p=${PACKAGE-default}
831case $enableval in
832yes) enable_fast_install=yes ;;
833no) enable_fast_install=no ;;
834*)
835 enable_fast_install=no
836 # Look at the argument we got. We use all the common list separators.
837 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
838 for pkg in $enableval; do
839 if test "X$pkg" = "X$p"; then
840 enable_fast_install=yes
841 fi
842 done
843 IFS="$ac_save_ifs"
844 ;;
845esac
846else
847 enable_fast_install=yes
848fi
849
850echo $ac_n "checking build system type""... $ac_c" 1>&6
851echo "configure:852: checking build system type" >&5
852
853build_alias=$build
854case "$build_alias" in
855NONE)
856 case $nonopt in
857 NONE) build_alias=$host_alias ;;
858 *) build_alias=$nonopt ;;
859 esac ;;
860esac
861
862build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
863build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
864build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
865build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
866echo "$ac_t""$build" 1>&6
867
868# Extract the first word of "gcc", so it can be a program name with args.
869set dummy gcc; ac_word=$2
870echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
871echo "configure:872: checking for $ac_word" >&5
872if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
873 echo $ac_n "(cached) $ac_c" 1>&6
874else
875 if test -n "$CC"; then
876 ac_cv_prog_CC="$CC" # Let the user override the test.
877else
878 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
879 ac_dummy="$PATH"
880 for ac_dir in $ac_dummy; do
881 test -z "$ac_dir" && ac_dir=.
882 if test -f $ac_dir/$ac_word -o \
883 -f $ac_dir/$ac_word$ac_exeext ; then
884 ac_cv_prog_CC="gcc"
885 break
886 fi
887 done
888 IFS="$ac_save_ifs"
889fi
890fi
891CC="$ac_cv_prog_CC"
892if test -n "$CC"; then
893 echo "$ac_t""$CC" 1>&6
894else
895 echo "$ac_t""no" 1>&6
896fi
897
898if test -z "$CC"; then
899 # Extract the first word of "cc", so it can be a program name with args.
900set dummy cc; ac_word=$2
901echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
902echo "configure:903: checking for $ac_word" >&5
903if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
904 echo $ac_n "(cached) $ac_c" 1>&6
905else
906 if test -n "$CC"; then
907 ac_cv_prog_CC="$CC" # Let the user override the test.
908else
909 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
910 ac_prog_rejected=no
911 ac_dummy="$PATH"
912 for ac_dir in $ac_dummy; do
913 test -z "$ac_dir" && ac_dir=.
914 if test -f $ac_dir/$ac_word -o \
915 -f $ac_dir/$ac_word$ac_exeext ; then
916 if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
917 "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
918 ac_prog_rejected=yes
919 continue
920 fi
921 ac_cv_prog_CC="cc"
922 break
923 fi
924 done
925 IFS="$ac_save_ifs"
926if test $ac_prog_rejected = yes; then
927 # We found a bogon in the path, so make sure we never use it.
928 set dummy $ac_cv_prog_CC
929 shift
930 if test $# -gt 0; then
931 # We chose a different compiler from the bogus one.
932 # However, it has the same basename, so the bogon will be chosen
933 # first if we set CC to just the basename; use the full file name.
934 shift
935 set dummy "$ac_dir/$ac_word" "$@"
936 shift
937 ac_cv_prog_CC="$@"
938 fi
939fi
940fi
941fi
942CC="$ac_cv_prog_CC"
943if test -n "$CC"; then
944 echo "$ac_t""$CC" 1>&6
945else
946 echo "$ac_t""no" 1>&6
947fi
948
949 if test -z "$CC"; then
950 case "`uname -s`" in
951 *win32* | *WIN32*)
952 # Extract the first word of "cl", so it can be a program name with args.
953set dummy cl; ac_word=$2
954echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
955echo "configure:956: checking for $ac_word" >&5
956if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
957 echo $ac_n "(cached) $ac_c" 1>&6
958else
959 if test -n "$CC"; then
960 ac_cv_prog_CC="$CC" # Let the user override the test.
961else
962 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
963 ac_dummy="$PATH"
964 for ac_dir in $ac_dummy; do
965 test -z "$ac_dir" && ac_dir=.
966 if test -f $ac_dir/$ac_word -o \
967 -f $ac_dir/$ac_word$ac_exeext ; then
968 ac_cv_prog_CC="cl"
969 break
970 fi
971 done
972 IFS="$ac_save_ifs"
973fi
974fi
975CC="$ac_cv_prog_CC"
976if test -n "$CC"; then
977 echo "$ac_t""$CC" 1>&6
978else
979 echo "$ac_t""no" 1>&6
980fi
981 ;;
982 esac
983 fi
984 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
985fi
986
987echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
988echo "configure:989: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
989
990ac_ext=c
991# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
992ac_cpp='$CPP $CPPFLAGS'
993ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
994ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
995cross_compiling=$ac_cv_prog_cc_cross
996
997cat > conftest.$ac_ext << EOF
998
999#line 1000 "configure"
1000#include "confdefs.h"
1001
1002main(){return(0);}
1003EOF
1004if { (eval echo configure:1005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1005 ac_cv_prog_cc_works=yes
1006 # If we can't run a trivial program, we are probably using a cross compiler.
1007 if (./conftest; exit) 2>/dev/null; then
1008 ac_cv_prog_cc_cross=no
1009 else
1010 ac_cv_prog_cc_cross=yes
1011 fi
1012else
1013 echo "configure: failed program was:" >&5
1014 cat conftest.$ac_ext >&5
1015 ac_cv_prog_cc_works=no
1016fi
1017rm -fr conftest*
1018ac_ext=c
1019# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1020ac_cpp='$CPP $CPPFLAGS'
1021ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1022ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1023cross_compiling=$ac_cv_prog_cc_cross
1024
1025echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1026if test $ac_cv_prog_cc_works = no; then
1027 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1028fi
1029echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1030echo "configure:1031: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1031echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1032cross_compiling=$ac_cv_prog_cc_cross
1033
1034echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1035echo "configure:1036: checking whether we are using GNU C" >&5
1036if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1037 echo $ac_n "(cached) $ac_c" 1>&6
1038else
1039 cat > conftest.c <<EOF
1040#ifdef __GNUC__
1041 yes;
1042#endif
1043EOF
1044if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1045: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1045 ac_cv_prog_gcc=yes
1046else
1047 ac_cv_prog_gcc=no
1048fi
1049fi
1050
1051echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1052
1053if test $ac_cv_prog_gcc = yes; then
1054 GCC=yes
1055else
1056 GCC=
1057fi
1058
1059ac_test_CFLAGS="${CFLAGS+set}"
1060ac_save_CFLAGS="$CFLAGS"
1061CFLAGS=
1062echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1063echo "configure:1064: checking whether ${CC-cc} accepts -g" >&5
1064if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1065 echo $ac_n "(cached) $ac_c" 1>&6
1066else
1067 echo 'void f(){}' > conftest.c
1068if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1069 ac_cv_prog_cc_g=yes
1070else
1071 ac_cv_prog_cc_g=no
1072fi
1073rm -f conftest*
1074
1075fi
1076
1077echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1078if test "$ac_test_CFLAGS" = set; then
1079 CFLAGS="$ac_save_CFLAGS"
1080elif test $ac_cv_prog_cc_g = yes; then
1081 if test "$GCC" = yes; then
1082 CFLAGS="-g -O2"
1083 else
1084 CFLAGS="-g"
1085 fi
1086else
1087 if test "$GCC" = yes; then
1088 CFLAGS="-O2"
1089 else
1090 CFLAGS=
1091 fi
1092fi
1093
1094# Check whether --with-gnu-ld or --without-gnu-ld was given.
1095if test "${with_gnu_ld+set}" = set; then
1096 withval="$with_gnu_ld"
1097 test "$withval" = no || with_gnu_ld=yes
1098else
1099 with_gnu_ld=no
1100fi
1101
1102ac_prog=ld
1103if test "$GCC" = yes; then
1104 # Check if gcc -print-prog-name=ld gives a path.
1105 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1106echo "configure:1107: checking for ld used by GCC" >&5
1107 case $host in
1108 *-*-mingw*)
1109 # gcc leaves a trailing carriage return which upsets mingw
1110 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1111 *)
1112 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1113 esac
1114 case $ac_prog in
1115 # Accept absolute paths.
1116 [\\/]* | [A-Za-z]:[\\/]*)
1117 re_direlt='/[^/][^/]*/\.\./'
1118 # Canonicalize the path of ld
1119 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1120 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1121 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1122 done
1123 test -z "$LD" && LD="$ac_prog"
1124 ;;
1125 "")
1126 # If it fails, then pretend we aren't using GCC.
1127 ac_prog=ld
1128 ;;
1129 *)
1130 # If it is relative, then search for the first ld in PATH.
1131 with_gnu_ld=unknown
1132 ;;
1133 esac
1134elif test "$with_gnu_ld" = yes; then
1135 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1136echo "configure:1137: checking for GNU ld" >&5
1137else
1138 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1139echo "configure:1140: checking for non-GNU ld" >&5
1140fi
1141if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1142 echo $ac_n "(cached) $ac_c" 1>&6
1143else
1144 if test -z "$LD"; then
1145 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1146 for ac_dir in $PATH; do
1147 test -z "$ac_dir" && ac_dir=.
1148 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1149 lt_cv_path_LD="$ac_dir/$ac_prog"
1150 # Check to see if the program is GNU ld. I'd rather use --version,
1151 # but apparently some GNU ld's only accept -v.
1152 # Break only if it was the GNU/non-GNU ld that we prefer.
1153 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1154 test "$with_gnu_ld" != no && break
1155 else
1156 test "$with_gnu_ld" != yes && break
1157 fi
1158 fi
1159 done
1160 IFS="$ac_save_ifs"
1161else
1162 lt_cv_path_LD="$LD" # Let the user override the test with a path.
1163fi
1164fi
1165
1166LD="$lt_cv_path_LD"
1167if test -n "$LD"; then
1168 echo "$ac_t""$LD" 1>&6
1169else
1170 echo "$ac_t""no" 1>&6
1171fi
1172test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1173echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1174echo "configure:1175: checking if the linker ($LD) is GNU ld" >&5
1175if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1176 echo $ac_n "(cached) $ac_c" 1>&6
1177else
1178 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1179if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1180 lt_cv_prog_gnu_ld=yes
1181else
1182 lt_cv_prog_gnu_ld=no
1183fi
1184fi
1185
1186echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1187with_gnu_ld=$lt_cv_prog_gnu_ld
1188
1189
1190echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1191echo "configure:1192: checking for $LD option to reload object files" >&5
1192if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1193 echo $ac_n "(cached) $ac_c" 1>&6
1194else
1195 lt_cv_ld_reload_flag='-r'
1196fi
1197
1198echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1199reload_flag=$lt_cv_ld_reload_flag
1200test -n "$reload_flag" && reload_flag=" $reload_flag"
1201
1202echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1203echo "configure:1204: checking for BSD-compatible nm" >&5
1204if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1205 echo $ac_n "(cached) $ac_c" 1>&6
1206else
1207 if test -n "$NM"; then
1208 # Let the user override the test.
1209 lt_cv_path_NM="$NM"
1210else
1211 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1212 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1213 test -z "$ac_dir" && ac_dir=.
1214 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1215 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1216 # Check to see if the nm accepts a BSD-compat flag.
1217 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1218 # nm: unknown option "B" ignored
1219 # Tru64's nm complains that /dev/null is an invalid object file
1220 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1221 lt_cv_path_NM="$tmp_nm -B"
1222 break
1223 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1224 lt_cv_path_NM="$tmp_nm -p"
1225 break
1226 else
1227 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1228 continue # so that we can try to find one that supports BSD flags
1229 fi
1230 fi
1231 done
1232 IFS="$ac_save_ifs"
1233 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1234fi
1235fi
1236
1237NM="$lt_cv_path_NM"
1238echo "$ac_t""$NM" 1>&6
1239
1240echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1241echo "configure:1242: checking whether ln -s works" >&5
1242if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1243 echo $ac_n "(cached) $ac_c" 1>&6
1244else
1245 rm -f conftestdata
1246if ln -s X conftestdata 2>/dev/null
1247then
1248 rm -f conftestdata
1249 ac_cv_prog_LN_S="ln -s"
1250else
1251 echo A > conftestdata;
1252 if ln conftestdata conftestdata2 2>/dev/null; then
1253 ac_cv_prog_LN_S=ln
1254 else
1255 ac_cv_prog_LN_S=cp
1256 fi
1257fi
1258rm -f conftestdata*
1259fi
1260LN_S="$ac_cv_prog_LN_S"
1261if test "$ac_cv_prog_LN_S" = "ln -s"; then
1262 echo "$ac_t""yes" 1>&6
1263else
1264 echo "$ac_t""no" 1>&6
1265fi
1266
1267echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1268echo "configure:1269: checking how to recognise dependant libraries" >&5
1269if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1270 echo $ac_n "(cached) $ac_c" 1>&6
1271else
1272 lt_cv_file_magic_cmd='$MAGIC_CMD'
1273lt_cv_file_magic_test_file=
1274lt_cv_deplibs_check_method='unknown'
1275# Need to set the preceding variable on all platforms that support
1276# interlibrary dependencies.
1277# 'none' -- dependencies not supported.
1278# `unknown' -- same as none, but documents that we really don't know.
1279# 'pass_all' -- all dependencies passed with no checks.
1280# 'test_compile' -- check by making test program.
1281# 'file_magic [regex]' -- check by looking for files in library path
1282# which responds to the $file_magic_cmd with a given egrep regex.
1283# If you have `file' or equivalent on your system and you're not sure
1284# whether `pass_all' will *always* work, you probably want this one.
1285
1286case $host_os in
1287aix*)
1288 lt_cv_deplibs_check_method=pass_all
1289 ;;
1290
1291beos*)
1292 lt_cv_deplibs_check_method=pass_all
1293 ;;
1294
1295bsdi4*)
1296 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1297 lt_cv_file_magic_cmd='/usr/bin/file -L'
1298 lt_cv_file_magic_test_file=/shlib/libc.so
1299 ;;
1300
1301cygwin* | mingw* |pw32*)
1302 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1303 lt_cv_file_magic_cmd='$OBJDUMP -f'
1304 ;;
1305
1306darwin* | rhapsody*)
1307 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1308 lt_cv_file_magic_cmd='/usr/bin/file -L'
1309 case "$host_os" in
1310 rhapsody* | darwin1.012)
1311 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1312 ;;
1313 *) # Darwin 1.3 on
1314 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1315 ;;
1316 esac
1317 ;;
1318
1319freebsd* )
1320 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1321 case $host_cpu in
1322 i*86 )
1323 # Not sure whether the presence of OpenBSD here was a mistake.
1324 # Let's accept both of them until this is cleared up.
1325 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1326 lt_cv_file_magic_cmd=/usr/bin/file
1327 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1328 ;;
1329 esac
1330 else
1331 lt_cv_deplibs_check_method=pass_all
1332 fi
1333 ;;
1334
1335gnu*)
1336 lt_cv_deplibs_check_method=pass_all
1337 ;;
1338
1339hpux10.20*|hpux11*)
1340 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1341 lt_cv_file_magic_cmd=/usr/bin/file
1342 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1343 ;;
1344
1345irix5* | irix6*)
1346 case $host_os in
1347 irix5*)
1348 # this will be overridden with pass_all, but let us keep it just in case
1349 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1350 ;;
1351 *)
1352 case $LD in
1353 *-32|*"-32 ") libmagic=32-bit;;
1354 *-n32|*"-n32 ") libmagic=N32;;
1355 *-64|*"-64 ") libmagic=64-bit;;
1356 *) libmagic=never-match;;
1357 esac
1358 # this will be overridden with pass_all, but let us keep it just in case
1359 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1360 ;;
1361 esac
1362 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1363 lt_cv_deplibs_check_method=pass_all
1364 ;;
1365
1366# This must be Linux ELF.
1367linux-gnu*)
1368 case $host_cpu in
1369 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1370 lt_cv_deplibs_check_method=pass_all ;;
1371 *)
1372 # glibc up to 2.1.1 does not perform some relocations on ARM
1373 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1374 esac
1375 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1376 ;;
1377
1378netbsd*)
1379 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1380 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1381 else
1382 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1383 fi
1384 ;;
1385
1386newsos6)
1387 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1388 lt_cv_file_magic_cmd=/usr/bin/file
1389 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1390 ;;
1391
1392osf3* | osf4* | osf5*)
1393 # this will be overridden with pass_all, but let us keep it just in case
1394 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1395 lt_cv_file_magic_test_file=/shlib/libc.so
1396 lt_cv_deplibs_check_method=pass_all
1397 ;;
1398
1399sco3.2v5*)
1400 lt_cv_deplibs_check_method=pass_all
1401 ;;
1402
1403solaris*)
1404 lt_cv_deplibs_check_method=pass_all
1405 lt_cv_file_magic_test_file=/lib/libc.so
1406 ;;
1407
1408sysv5uw[78]* | sysv4*uw2*)
1409 lt_cv_deplibs_check_method=pass_all
1410 ;;
1411
1412sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1413 case $host_vendor in
1414 ncr)
1415 lt_cv_deplibs_check_method=pass_all
1416 ;;
1417 motorola)
1418 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]'
1419 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1420 ;;
1421 esac
1422 ;;
1423esac
1424
1425fi
1426
1427echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1428file_magic_cmd=$lt_cv_file_magic_cmd
1429deplibs_check_method=$lt_cv_deplibs_check_method
1430
1431echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1432echo "configure:1433: checking for object suffix" >&5
1433if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1434 echo $ac_n "(cached) $ac_c" 1>&6
1435else
1436 rm -f conftest*
1437echo 'int i = 1;' > conftest.$ac_ext
1438if { (eval echo configure:1439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1439 for ac_file in conftest.*; do
1440 case $ac_file in
1441 *.c) ;;
1442 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1443 esac
1444 done
1445else
1446 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1447fi
1448rm -f conftest*
1449fi
1450
1451echo "$ac_t""$ac_cv_objext" 1>&6
1452OBJEXT=$ac_cv_objext
1453ac_objext=$ac_cv_objext
1454
1455if test $host != $build; then
1456 ac_tool_prefix=${host_alias}-
1457else
1458 ac_tool_prefix=
1459fi
1460
1461# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1462
1463# Only perform the check for file, if the check method requires it
1464case $deplibs_check_method in
1465file_magic*)
1466 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1467 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1468echo "configure:1469: checking for ${ac_tool_prefix}file" >&5
1469if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1470 echo $ac_n "(cached) $ac_c" 1>&6
1471else
1472 case $MAGIC_CMD in
1473 /*)
1474 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1475 ;;
1476 ?:/*)
1477 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1478 ;;
1479 *)
1480 ac_save_MAGIC_CMD="$MAGIC_CMD"
1481 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1482 ac_dummy="/usr/bin:$PATH"
1483 for ac_dir in $ac_dummy; do
1484 test -z "$ac_dir" && ac_dir=.
1485 if test -f $ac_dir/${ac_tool_prefix}file; then
1486 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
1487 if test -n "$file_magic_test_file"; then
1488 case $deplibs_check_method in
1489 "file_magic "*)
1490 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1491 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1492 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1493 egrep "$file_magic_regex" > /dev/null; then
1494 :
1495 else
1496 cat <<EOF 1>&2
1497
1498*** Warning: the command libtool uses to detect shared libraries,
1499*** $file_magic_cmd, produces output that libtool cannot recognize.
1500*** The result is that libtool may fail to recognize shared libraries
1501*** as such. This will affect the creation of libtool libraries that
1502*** depend on shared libraries, but programs linked with such libtool
1503*** libraries will work regardless of this problem. Nevertheless, you
1504*** may want to report the problem to your system manager and/or to
1505*** bug-libtool@gnu.org
1506
1507EOF
1508 fi ;;
1509 esac
1510 fi
1511 break
1512 fi
1513 done
1514 IFS="$ac_save_ifs"
1515 MAGIC_CMD="$ac_save_MAGIC_CMD"
1516 ;;
1517esac
1518fi
1519
1520MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1521if test -n "$MAGIC_CMD"; then
1522 echo "$ac_t""$MAGIC_CMD" 1>&6
1523else
1524 echo "$ac_t""no" 1>&6
1525fi
1526
1527if test -z "$lt_cv_path_MAGIC_CMD"; then
1528 if test -n "$ac_tool_prefix"; then
1529 echo $ac_n "checking for file""... $ac_c" 1>&6
1530echo "configure:1531: checking for file" >&5
1531if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1532 echo $ac_n "(cached) $ac_c" 1>&6
1533else
1534 case $MAGIC_CMD in
1535 /*)
1536 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1537 ;;
1538 ?:/*)
1539 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1540 ;;
1541 *)
1542 ac_save_MAGIC_CMD="$MAGIC_CMD"
1543 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1544 ac_dummy="/usr/bin:$PATH"
1545 for ac_dir in $ac_dummy; do
1546 test -z "$ac_dir" && ac_dir=.
1547 if test -f $ac_dir/file; then
1548 lt_cv_path_MAGIC_CMD="$ac_dir/file"
1549 if test -n "$file_magic_test_file"; then
1550 case $deplibs_check_method in
1551 "file_magic "*)
1552 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1553 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1554 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1555 egrep "$file_magic_regex" > /dev/null; then
1556 :
1557 else
1558 cat <<EOF 1>&2
1559
1560*** Warning: the command libtool uses to detect shared libraries,
1561*** $file_magic_cmd, produces output that libtool cannot recognize.
1562*** The result is that libtool may fail to recognize shared libraries
1563*** as such. This will affect the creation of libtool libraries that
1564*** depend on shared libraries, but programs linked with such libtool
1565*** libraries will work regardless of this problem. Nevertheless, you
1566*** may want to report the problem to your system manager and/or to
1567*** bug-libtool@gnu.org
1568
1569EOF
1570 fi ;;
1571 esac
1572 fi
1573 break
1574 fi
1575 done
1576 IFS="$ac_save_ifs"
1577 MAGIC_CMD="$ac_save_MAGIC_CMD"
1578 ;;
1579esac
1580fi
1581
1582MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1583if test -n "$MAGIC_CMD"; then
1584 echo "$ac_t""$MAGIC_CMD" 1>&6
1585else
1586 echo "$ac_t""no" 1>&6
1587fi
1588
1589 else
1590 MAGIC_CMD=:
1591 fi
1592fi
1593
1594 fi
1595 ;;
1596esac
1597
1598# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1599set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1600echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1601echo "configure:1602: checking for $ac_word" >&5
1602if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1603 echo $ac_n "(cached) $ac_c" 1>&6
1604else
1605 if test -n "$RANLIB"; then
1606 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1607else
1608 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1609 ac_dummy="$PATH"
1610 for ac_dir in $ac_dummy; do
1611 test -z "$ac_dir" && ac_dir=.
1612 if test -f $ac_dir/$ac_word -o \
1613 -f $ac_dir/$ac_word$ac_exeext ; then
1614 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1615 break
1616 fi
1617 done
1618 IFS="$ac_save_ifs"
1619fi
1620fi
1621RANLIB="$ac_cv_prog_RANLIB"
1622if test -n "$RANLIB"; then
1623 echo "$ac_t""$RANLIB" 1>&6
1624else
1625 echo "$ac_t""no" 1>&6
1626fi
1627
1628
1629if test -z "$ac_cv_prog_RANLIB"; then
1630if test -n "$ac_tool_prefix"; then
1631 # Extract the first word of "ranlib", so it can be a program name with args.
1632set dummy ranlib; ac_word=$2
1633echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1634echo "configure:1635: checking for $ac_word" >&5
1635if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1636 echo $ac_n "(cached) $ac_c" 1>&6
1637else
1638 if test -n "$RANLIB"; then
1639 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1640else
1641 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1642 ac_dummy="$PATH"
1643 for ac_dir in $ac_dummy; do
1644 test -z "$ac_dir" && ac_dir=.
1645 if test -f $ac_dir/$ac_word -o \
1646 -f $ac_dir/$ac_word$ac_exeext ; then
1647 ac_cv_prog_RANLIB="ranlib"
1648 break
1649 fi
1650 done
1651 IFS="$ac_save_ifs"
1652 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1653fi
1654fi
1655RANLIB="$ac_cv_prog_RANLIB"
1656if test -n "$RANLIB"; then
1657 echo "$ac_t""$RANLIB" 1>&6
1658else
1659 echo "$ac_t""no" 1>&6
1660fi
1661
1662else
1663 RANLIB=":"
1664fi
1665fi
1666
1667# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1668set dummy ${ac_tool_prefix}strip; ac_word=$2
1669echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1670echo "configure:1671: checking for $ac_word" >&5
1671if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1672 echo $ac_n "(cached) $ac_c" 1>&6
1673else
1674 if test -n "$STRIP"; then
1675 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1676else
1677 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1678 ac_dummy="$PATH"
1679 for ac_dir in $ac_dummy; do
1680 test -z "$ac_dir" && ac_dir=.
1681 if test -f $ac_dir/$ac_word -o \
1682 -f $ac_dir/$ac_word$ac_exeext ; then
1683 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1684 break
1685 fi
1686 done
1687 IFS="$ac_save_ifs"
1688fi
1689fi
1690STRIP="$ac_cv_prog_STRIP"
1691if test -n "$STRIP"; then
1692 echo "$ac_t""$STRIP" 1>&6
1693else
1694 echo "$ac_t""no" 1>&6
1695fi
1696
1697
1698if test -z "$ac_cv_prog_STRIP"; then
1699if test -n "$ac_tool_prefix"; then
1700 # Extract the first word of "strip", so it can be a program name with args.
1701set dummy strip; ac_word=$2
1702echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1703echo "configure:1704: checking for $ac_word" >&5
1704if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1705 echo $ac_n "(cached) $ac_c" 1>&6
1706else
1707 if test -n "$STRIP"; then
1708 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1709else
1710 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1711 ac_dummy="$PATH"
1712 for ac_dir in $ac_dummy; do
1713 test -z "$ac_dir" && ac_dir=.
1714 if test -f $ac_dir/$ac_word -o \
1715 -f $ac_dir/$ac_word$ac_exeext ; then
1716 ac_cv_prog_STRIP="strip"
1717 break
1718 fi
1719 done
1720 IFS="$ac_save_ifs"
1721 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
1722fi
1723fi
1724STRIP="$ac_cv_prog_STRIP"
1725if test -n "$STRIP"; then
1726 echo "$ac_t""$STRIP" 1>&6
1727else
1728 echo "$ac_t""no" 1>&6
1729fi
1730
1731else
1732 STRIP=":"
1733fi
1734fi
1735
1736
1737# Check for any special flags to pass to ltconfig.
1738libtool_flags="--cache-file=$cache_file"
1739test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1740test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1741test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1742test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
1743test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1744
1745
1746# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1747if test "${enable_libtool_lock+set}" = set; then
1748 enableval="$enable_libtool_lock"
1749 :
1750fi
1751
1752test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1753test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1754
1755# Check whether --with-pic or --without-pic was given.
1756if test "${with_pic+set}" = set; then
1757 withval="$with_pic"
1758 pic_mode="$withval"
1759else
1760 pic_mode=default
1761fi
1762
1763test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
1764test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
1765
1766# Some flags need to be propagated to the compiler or linker for good
1767# libtool support.
1768case $host in
1769*-*-irix6*)
1770 # Find out which ABI we are using.
1771 echo '#line 1772 "configure"' > conftest.$ac_ext
1772 if { (eval echo configure:1773: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1773 case `/usr/bin/file conftest.$ac_objext` in
1774 *32-bit*)
1775 LD="${LD-ld} -32"
1776 ;;
1777 *N32*)
1778 LD="${LD-ld} -n32"
1779 ;;
1780 *64-bit*)
1781 LD="${LD-ld} -64"
1782 ;;
1783 esac
1784 fi
1785 rm -rf conftest*
1786 ;;
1787
1788*-*-sco3.2v5*)
1789 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1790 SAVE_CFLAGS="$CFLAGS"
1791 CFLAGS="$CFLAGS -belf"
1792 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1793echo "configure:1794: checking whether the C compiler needs -belf" >&5
1794if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1795 echo $ac_n "(cached) $ac_c" 1>&6
1796else
1797
1798 ac_ext=c
1799# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1800ac_cpp='$CPP $CPPFLAGS'
1801ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1802ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1803cross_compiling=$ac_cv_prog_cc_cross
1804
1805 cat > conftest.$ac_ext <<EOF
1806#line 1807 "configure"
1807#include "confdefs.h"
1808
1809int main() {
1810
1811; return 0; }
1812EOF
1813if { (eval echo configure:1814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1814 rm -rf conftest*
1815 lt_cv_cc_needs_belf=yes
1816else
1817 echo "configure: failed program was:" >&5
1818 cat conftest.$ac_ext >&5
1819 rm -rf conftest*
1820 lt_cv_cc_needs_belf=no
1821fi
1822rm -f conftest*
1823 ac_ext=c
1824# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1825ac_cpp='$CPP $CPPFLAGS'
1826ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1827ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1828cross_compiling=$ac_cv_prog_cc_cross
1829
1830fi
1831
1832echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1833 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1834 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1835 CFLAGS="$SAVE_CFLAGS"
1836 fi
1837 ;;
1838
1839
1840esac
1841
1842
1843# Save cache, so that ltconfig can load it
1844cat > confcache <<\EOF
1845# This file is a shell script that caches the results of configure
1846# tests run on this system so they can be shared between configure
1847# scripts and configure runs. It is not useful on other systems.
1848# If it contains results you don't want to keep, you may remove or edit it.
1849#
1850# By default, configure uses ./config.cache as the cache file,
1851# creating it if it does not exist already. You can give configure
1852# the --cache-file=FILE option to use a different cache file; that is
1853# what configure does when it calls configure scripts in
1854# subdirectories, so they share the cache.
1855# Giving --cache-file=/dev/null disables caching, for debugging configure.
1856# config.status only pays attention to the cache file if you give it the
1857# --recheck option to rerun configure.
1858#
1859EOF
1860# The following way of writing the cache mishandles newlines in values,
1861# but we know of no workaround that is simple, portable, and efficient.
1862# So, don't put newlines in cache variables' values.
1863# Ultrix sh set writes to stderr and can't be redirected directly,
1864# and sets the high bit in the cache file unless we assign to the vars.
1865(set) 2>&1 |
1866 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1867 *ac_space=\ *)
1868 # `set' does not quote correctly, so add quotes (double-quote substitution
1869 # turns \\\\ into \\, and sed turns \\ into \).
1870 sed -n \
1871 -e "s/'/'\\\\''/g" \
1872 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1873 ;;
1874 *)
1875 # `set' quotes correctly as required by POSIX, so do not add quotes.
1876 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1877 ;;
1878 esac >> confcache
1879if cmp -s $cache_file confcache; then
1880 :
1881else
1882 if test -w $cache_file; then
1883 echo "updating cache $cache_file"
1884 cat confcache > $cache_file
1885 else
1886 echo "not updating unwritable cache $cache_file"
1887 fi
1888fi
1889rm -f confcache
1890
1891
1892# Actually configure libtool. ac_aux_dir is where install-sh is found.
1893AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1894MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1895LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
1896AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
1897objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
1898deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
1899${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1900$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
1901|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1902
1903# Reload cache, that may have been modified by ltconfig
1904if test -r "$cache_file"; then
1905 echo "loading cache $cache_file"
1906 . $cache_file
1907else
1908 echo "creating cache $cache_file"
1909 > $cache_file
1910fi
1911
1912
1913# This can be used to rebuild libtool when needed
1914LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
1915
1916# Always use our own libtool.
1917LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1918
1919# Redirect the config.log output again, so that the ltconfig log is not
1920# clobbered by the next message.
1921exec 5>>./config.log
1922
1923
1924
1925
1926
1927
1928
1929# Find a good install program. We prefer a C program (faster),
1930# so one script is as good as another. But avoid the broken or
1931# incompatible versions:
1932# SysV /etc/install, /usr/sbin/install
1933# SunOS /usr/etc/install
1934# IRIX /sbin/install
1935# AIX /bin/install
1936# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1937# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1938# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1939# ./install, which can be erroneously created by make from ./install.sh.
1940echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1941echo "configure:1942: checking for a BSD compatible install" >&5
1942if test -z "$INSTALL"; then
1943if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1944 echo $ac_n "(cached) $ac_c" 1>&6
1945else
1946 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
1947 for ac_dir in $PATH; do
1948 # Account for people who put trailing slashes in PATH elements.
1949 case "$ac_dir/" in
1950 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1951 # We reject the install program from OS/2 or W3.1
1952 */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
1953 *)
1954 # OSF1 and SCO ODT 3.0 have their own names for install.
1955 # Don't use installbsd from OSF since it installs stuff as root
1956 # by default.
1957 for ac_prog in ginstall scoinst install; do
1958 if test -f $ac_dir/$ac_prog$ac_exeext; then
1959 if test $ac_prog = install &&
1960 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1961 # AIX install. It has an incompatible calling convention.
1962 :
1963 else
1964 ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
1965 break 2
1966 fi
1967 fi
1968 done
1969 ;;
1970 esac
1971 done
1972 IFS="$ac_save_IFS"
1973
1974fi
1975 if test "${ac_cv_path_install+set}" = set; then
1976 INSTALL="$ac_cv_path_install"
1977 else
1978 # As a last resort, use the slow shell script. We don't cache a
1979 # path for INSTALL within a source directory, because that will
1980 # break other packages using the cache if that directory is
1981 # removed, or if the path is relative.
1982 INSTALL="$ac_install_sh"
1983 fi
1984fi
1985echo "$ac_t""$INSTALL" 1>&6
1986
1987# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1988# It thinks the first close brace ends the variable substitution.
1989test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1990
1991test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1992
1993test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1994
1995echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1996echo "configure:1997: checking whether build environment is sane" >&5
1997# Just in case
1998sleep 1
1999echo timestamp > conftestfile
2000# Do `set' in a subshell so we don't clobber the current shell's
2001# arguments. Must try -L first in case configure is actually a
2002# symlink; some systems play weird games with the mod time of symlinks
2003# (eg FreeBSD returns the mod time of the symlink's containing
2004# directory).
2005if (
2006 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
2007 if test "$*" = "X"; then
2008 # -L didn't work.
2009 set X `ls -t $srcdir/configure conftestfile`
2010 fi
2011 if test "$*" != "X $srcdir/configure conftestfile" \
2012 && test "$*" != "X conftestfile $srcdir/configure"; then
2013
2014 # If neither matched, then we have a broken ls. This can happen
2015 # if, for instance, CONFIG_SHELL is bash and it inherits a
2016 # broken ls alias from the environment. This has actually
2017 # happened. Such a system could not be considered "sane".
2018 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
2019alias in your environment" 1>&2; exit 1; }
2020 fi
2021
2022 test "$2" = conftestfile
2023 )
2024then
2025 # Ok.
2026 :
2027else
2028 { echo "configure: error: newly created file is older than distributed files!
2029Check your system clock" 1>&2; exit 1; }
2030fi
2031rm -f conftest*
2032echo "$ac_t""yes" 1>&6
2033if test "$program_transform_name" = s,x,x,; then
2034 program_transform_name=
2035else
2036 # Double any \ or $. echo might interpret backslashes.
2037 cat <<\EOF_SED > conftestsed
2038s,\\,\\\\,g; s,\$,$$,g
2039EOF_SED
2040 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
2041 rm -f conftestsed
2042fi
2043test "$program_prefix" != NONE &&
2044 program_transform_name="s,^,${program_prefix},; $program_transform_name"
2045# Use a double $ so make ignores it.
2046test "$program_suffix" != NONE &&
2047 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
2048
2049# sed with no file args requires a program.
2050test "$program_transform_name" = "" && program_transform_name="s,x,x,"
2051
2052echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2053echo "configure:2054: checking whether ${MAKE-make} sets \${MAKE}" >&5
2054set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
2055if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2056 echo $ac_n "(cached) $ac_c" 1>&6
2057else
2058 cat > conftestmake <<\EOF
2059all:
2060 @echo 'ac_maketemp="${MAKE}"'
2061EOF
2062# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2063eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2064if test -n "$ac_maketemp"; then
2065 eval ac_cv_prog_make_${ac_make}_set=yes
2066else
2067 eval ac_cv_prog_make_${ac_make}_set=no
2068fi
2069rm -f conftestmake
2070fi
2071if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2072 echo "$ac_t""yes" 1>&6
2073 SET_MAKE=
2074else
2075 echo "$ac_t""no" 1>&6
2076 SET_MAKE="MAKE=${MAKE-make}"
2077fi
2078
2079
2080PACKAGE=libffi
2081
2082VERSION=2.00-beta
2083
2084if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
2085 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
2086fi
2087
2088
2089
2090missing_dir=`cd $ac_aux_dir && pwd`
2091echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
2092echo "configure:2093: checking for working aclocal" >&5
2093# Run test in a subshell; some versions of sh will print an error if
2094# an executable is not found, even if stderr is redirected.
2095# Redirect stdin to placate older versions of autoconf. Sigh.
2096if (aclocal --version) < /dev/null > /dev/null 2>&1; then
2097 ACLOCAL=aclocal
2098 echo "$ac_t""found" 1>&6
2099else
2100 ACLOCAL="$missing_dir/missing aclocal"
2101 echo "$ac_t""missing" 1>&6
2102fi
2103
2104echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
2105echo "configure:2106: checking for working autoconf" >&5
2106# Run test in a subshell; some versions of sh will print an error if
2107# an executable is not found, even if stderr is redirected.
2108# Redirect stdin to placate older versions of autoconf. Sigh.
2109if (autoconf --version) < /dev/null > /dev/null 2>&1; then
2110 AUTOCONF=autoconf
2111 echo "$ac_t""found" 1>&6
2112else
2113 AUTOCONF="$missing_dir/missing autoconf"
2114 echo "$ac_t""missing" 1>&6
2115fi
2116
2117echo $ac_n "checking for working automake""... $ac_c" 1>&6
2118echo "configure:2119: checking for working automake" >&5
2119# Run test in a subshell; some versions of sh will print an error if
2120# an executable is not found, even if stderr is redirected.
2121# Redirect stdin to placate older versions of autoconf. Sigh.
2122if (automake --version) < /dev/null > /dev/null 2>&1; then
2123 AUTOMAKE=automake
2124 echo "$ac_t""found" 1>&6
2125else
2126 AUTOMAKE="$missing_dir/missing automake"
2127 echo "$ac_t""missing" 1>&6
2128fi
2129
2130echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
2131echo "configure:2132: checking for working autoheader" >&5
2132# Run test in a subshell; some versions of sh will print an error if
2133# an executable is not found, even if stderr is redirected.
2134# Redirect stdin to placate older versions of autoconf. Sigh.
2135if (autoheader --version) < /dev/null > /dev/null 2>&1; then
2136 AUTOHEADER=autoheader
2137 echo "$ac_t""found" 1>&6
2138else
2139 AUTOHEADER="$missing_dir/missing autoheader"
2140 echo "$ac_t""missing" 1>&6
2141fi
2142
2143echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
2144echo "configure:2145: checking for working makeinfo" >&5
2145# Run test in a subshell; some versions of sh will print an error if
2146# an executable is not found, even if stderr is redirected.
2147# Redirect stdin to placate older versions of autoconf. Sigh.
2148if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
2149 MAKEINFO=makeinfo
2150 echo "$ac_t""found" 1>&6
2151else
2152 MAKEINFO="$missing_dir/missing makeinfo"
2153 echo "$ac_t""missing" 1>&6
2154fi
2155
2156
2157
2158
2159
2160
2161echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2162echo "configure:2163: checking for executable suffix" >&5
2163if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2164 echo $ac_n "(cached) $ac_c" 1>&6
2165else
2166 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
2167 ac_cv_exeext=.exe
2168else
2169 rm -f conftest*
2170 echo 'int main () { return 0; }' > conftest.$ac_ext
2171 ac_cv_exeext=
2172 if { (eval echo configure:2173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2173 for file in conftest.*; do
2174 case $file in
2175 *.c | *.o | *.obj) ;;
2176 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2177 esac
2178 done
2179 else
2180 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2181 fi
2182 rm -f conftest*
2183 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2184fi
2185fi
2186
2187EXEEXT=""
2188test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2189echo "$ac_t""${ac_cv_exeext}" 1>&6
2190ac_exeext=$EXEEXT
2191
2192echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2193echo "configure:2194: checking whether to enable maintainer-specific portions of Makefiles" >&5
2194 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2195if test "${enable_maintainer_mode+set}" = set; then
2196 enableval="$enable_maintainer_mode"
2197 USE_MAINTAINER_MODE=$enableval
2198else
2199 USE_MAINTAINER_MODE=no
2200fi
2201
2202 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2203
2204
2205if test $USE_MAINTAINER_MODE = yes; then
2206 MAINTAINER_MODE_TRUE=
2207 MAINTAINER_MODE_FALSE='#'
2208else
2209 MAINTAINER_MODE_TRUE='#'
2210 MAINTAINER_MODE_FALSE=
2211fi
2212 MAINT=$MAINTAINER_MODE_TRUE
2213
2214
2215
2216# Extract the first word of "gcc", so it can be a program name with args.
2217set dummy gcc; ac_word=$2
2218echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2219echo "configure:2220: checking for $ac_word" >&5
2220if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2221 echo $ac_n "(cached) $ac_c" 1>&6
2222else
2223 if test -n "$CC"; then
2224 ac_cv_prog_CC="$CC" # Let the user override the test.
2225else
2226 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_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 -o \
2231 -f $ac_dir/$ac_word$ac_exeext ; then
2232 ac_cv_prog_CC="gcc"
2233 break
2234 fi
2235 done
2236 IFS="$ac_save_ifs"
2237fi
2238fi
2239CC="$ac_cv_prog_CC"
2240if test -n "$CC"; then
2241 echo "$ac_t""$CC" 1>&6
2242else
2243 echo "$ac_t""no" 1>&6
2244fi
2245
2246if test -z "$CC"; then
2247 # Extract the first word of "cc", so it can be a program name with args.
2248set dummy cc; ac_word=$2
2249echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2250echo "configure:2251: checking for $ac_word" >&5
2251if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2252 echo $ac_n "(cached) $ac_c" 1>&6
2253else
2254 if test -n "$CC"; then
2255 ac_cv_prog_CC="$CC" # Let the user override the test.
2256else
2257 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2258 ac_prog_rejected=no
2259 ac_dummy="$PATH"
2260 for ac_dir in $ac_dummy; do
2261 test -z "$ac_dir" && ac_dir=.
2262 if test -f $ac_dir/$ac_word -o \
2263 -f $ac_dir/$ac_word$ac_exeext ; then
2264 if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
2265 "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
2266 ac_prog_rejected=yes
2267 continue
2268 fi
2269 ac_cv_prog_CC="cc"
2270 break
2271 fi
2272 done
2273 IFS="$ac_save_ifs"
2274if test $ac_prog_rejected = yes; then
2275 # We found a bogon in the path, so make sure we never use it.
2276 set dummy $ac_cv_prog_CC
2277 shift
2278 if test $# -gt 0; then
2279 # We chose a different compiler from the bogus one.
2280 # However, it has the same basename, so the bogon will be chosen
2281 # first if we set CC to just the basename; use the full file name.
2282 shift
2283 set dummy "$ac_dir/$ac_word" "$@"
2284 shift
2285 ac_cv_prog_CC="$@"
2286 fi
2287fi
2288fi
2289fi
2290CC="$ac_cv_prog_CC"
2291if test -n "$CC"; then
2292 echo "$ac_t""$CC" 1>&6
2293else
2294 echo "$ac_t""no" 1>&6
2295fi
2296
2297 if test -z "$CC"; then
2298 case "`uname -s`" in
2299 *win32* | *WIN32*)
2300 # Extract the first word of "cl", so it can be a program name with args.
2301set dummy cl; ac_word=$2
2302echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2303echo "configure:2304: checking for $ac_word" >&5
2304if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2305 echo $ac_n "(cached) $ac_c" 1>&6
2306else
2307 if test -n "$CC"; then
2308 ac_cv_prog_CC="$CC" # Let the user override the test.
2309else
2310 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2311 ac_dummy="$PATH"
2312 for ac_dir in $ac_dummy; do
2313 test -z "$ac_dir" && ac_dir=.
2314 if test -f $ac_dir/$ac_word -o \
2315 -f $ac_dir/$ac_word$ac_exeext ; then
2316 ac_cv_prog_CC="cl"
2317 break
2318 fi
2319 done
2320 IFS="$ac_save_ifs"
2321fi
2322fi
2323CC="$ac_cv_prog_CC"
2324if test -n "$CC"; then
2325 echo "$ac_t""$CC" 1>&6
2326else
2327 echo "$ac_t""no" 1>&6
2328fi
2329 ;;
2330 esac
2331 fi
2332 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2333fi
2334
2335echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2336echo "configure:2337: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2337
2338ac_ext=c
2339# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2340ac_cpp='$CPP $CPPFLAGS'
2341ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2342ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2343cross_compiling=$ac_cv_prog_cc_cross
2344
2345cat > conftest.$ac_ext << EOF
2346
2347#line 2348 "configure"
2348#include "confdefs.h"
2349
2350main(){return(0);}
2351EOF
2352if { (eval echo configure:2353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2353 ac_cv_prog_cc_works=yes
2354 # If we can't run a trivial program, we are probably using a cross compiler.
2355 if (./conftest; exit) 2>/dev/null; then
2356 ac_cv_prog_cc_cross=no
2357 else
2358 ac_cv_prog_cc_cross=yes
2359 fi
2360else
2361 echo "configure: failed program was:" >&5
2362 cat conftest.$ac_ext >&5
2363 ac_cv_prog_cc_works=no
2364fi
2365rm -fr conftest*
2366ac_ext=c
2367# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2368ac_cpp='$CPP $CPPFLAGS'
2369ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2370ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2371cross_compiling=$ac_cv_prog_cc_cross
2372
2373echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2374if test $ac_cv_prog_cc_works = no; then
2375 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2376fi
2377echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2378echo "configure:2379: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2379echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2380cross_compiling=$ac_cv_prog_cc_cross
2381
2382echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2383echo "configure:2384: checking whether we are using GNU C" >&5
2384if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2385 echo $ac_n "(cached) $ac_c" 1>&6
2386else
2387 cat > conftest.c <<EOF
2388#ifdef __GNUC__
2389 yes;
2390#endif
2391EOF
2392if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2393: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2393 ac_cv_prog_gcc=yes
2394else
2395 ac_cv_prog_gcc=no
2396fi
2397fi
2398
2399echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2400
2401if test $ac_cv_prog_gcc = yes; then
2402 GCC=yes
2403else
2404 GCC=
2405fi
2406
2407ac_test_CFLAGS="${CFLAGS+set}"
2408ac_save_CFLAGS="$CFLAGS"
2409CFLAGS=
2410echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2411echo "configure:2412: checking whether ${CC-cc} accepts -g" >&5
2412if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2413 echo $ac_n "(cached) $ac_c" 1>&6
2414else
2415 echo 'void f(){}' > conftest.c
2416if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2417 ac_cv_prog_cc_g=yes
2418else
2419 ac_cv_prog_cc_g=no
2420fi
2421rm -f conftest*
2422
2423fi
2424
2425echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2426if test "$ac_test_CFLAGS" = set; then
2427 CFLAGS="$ac_save_CFLAGS"
2428elif test $ac_cv_prog_cc_g = yes; then
2429 if test "$GCC" = yes; then
2430 CFLAGS="-g -O2"
2431 else
2432 CFLAGS="-g"
2433 fi
2434else
2435 if test "$GCC" = yes; then
2436 CFLAGS="-O2"
2437 else
2438 CFLAGS=
2439 fi
2440fi
2441
2442
2443
2444
2445
2446
2447
2448TARGETDIR="unknown"
2449case "$host" in
2450mips-sgi-irix5.* | mips-sgi-irix6.*) TARGET=MIPS; TARGETDIR=mips;;
2451i*86-*-linux*) TARGET=X86; TARGETDIR=x86;;
2452i*86-*-solaris*) TARGET=X86; TARGETDIR=x86;;
2453i*86-*-beos*) TARGET=X86; TARGETDIR=x86;;
2454i*86-*-freebsd*) TARGET=X86; TARGETDIR=x86;;
2455i*86-*-netbsdelf*) TARGET=X86; TARGETDIR=x86;;
2456i*86-*-win32*) TARGET=X86_WIN32; TARGETDIR=x86;;
2457i*86-*-cygwin*) TARGET=X86_WIN32; TARGETDIR=x86;;
2458i*86-*-mingw*) TARGET=X86_WIN32; TARGETDIR=x86;;
2459sparc-sun-4*) TARGET=SPARC; TARGETDIR=sparc;;
2460sparc*-sun-*) TARGET=SPARC; TARGETDIR=sparc;;
2461sparc-*-linux*) TARGET=SPARC; TARGETDIR=sparc;;
2462sparc64-*-linux*) TARGET=SPARC; TARGETDIR=sparc;;
2463alpha*-*-linux* | alpha*-*-osf* | alpha*-*-freebsd*) TARGET=ALPHA; TARGETDIR=alpha;;
2464ia64*-*-*) TARGET=IA64; TARGETDIR=ia64;;
2465m68k-*-linux*) TARGET=M68K; TARGETDIR=m68k;;
2466powerpc-*-linux* | powerpc-*-sysv*) TARGET=POWERPC; TARGETDIR=powerpc;;
2467powerpc-*-beos*) TARGET=POWERPC; TARGETDIR=powerpc;;
2468powerpc-*-darwin*) TARGET=POWERPC_DARWIN; TARGETDIR=powerpc;;
2469powerpc-*-aix*) TARGET=POWERPC_AIX; TARGETDIR=powerpc;;
2470rs6000-*-aix*) TARGET=POWERPC_AIX; TARGETDIR=powerpc;;
2471arm*-*-linux-*) TARGET=ARM; TARGETDIR=arm;;
2472esac
2473
2474if test $TARGETDIR = unknown; then
2475 { echo "configure: error: "libffi has not been ported to $host."" 1>&2; exit 1; }
2476fi
2477
2478
2479
2480if test ${TARGET}${ac_cv_prog_gcc} = MIPSyes; then
2481 MIPS_GCC_TRUE=
2482 MIPS_GCC_FALSE='#'
2483else
2484 MIPS_GCC_TRUE='#'
2485 MIPS_GCC_FALSE=
2486fi
2487
2488
2489if test ${TARGET}${ac_cv_prog_gcc} = MIPSno; then
2490 MIPS_SGI_TRUE=
2491 MIPS_SGI_FALSE='#'
2492else
2493 MIPS_SGI_TRUE='#'
2494 MIPS_SGI_FALSE=
2495fi
2496
2497
2498if test x$TARGET = xSPARC; then
2499 SPARC_TRUE=
2500 SPARC_FALSE='#'
2501else
2502 SPARC_TRUE='#'
2503 SPARC_FALSE=
2504fi
2505
2506
2507if test x$TARGET = xX86; then
2508 X86_TRUE=
2509 X86_FALSE='#'
2510else
2511 X86_TRUE='#'
2512 X86_FALSE=
2513fi
2514
2515
2516if test x$TARGET = xX86_WIN32; then
2517 X86_WIN32_TRUE=
2518 X86_WIN32_FALSE='#'
2519else
2520 X86_WIN32_TRUE='#'
2521 X86_WIN32_FALSE=
2522fi
2523
2524
2525if test x$TARGET = xALPHA; then
2526 ALPHA_TRUE=
2527 ALPHA_FALSE='#'
2528else
2529 ALPHA_TRUE='#'
2530 ALPHA_FALSE=
2531fi
2532
2533
2534if test x$TARGET = xIA64; then
2535 IA64_TRUE=
2536 IA64_FALSE='#'
2537else
2538 IA64_TRUE='#'
2539 IA64_FALSE=
2540fi
2541
2542
2543if test x$TARGET = xM68K; then
2544 M68K_TRUE=
2545 M68K_FALSE='#'
2546else
2547 M68K_TRUE='#'
2548 M68K_FALSE=
2549fi
2550
2551
2552if test x$TARGET = xPOWERPC; then
2553 POWERPC_TRUE=
2554 POWERPC_FALSE='#'
2555else
2556 POWERPC_TRUE='#'
2557 POWERPC_FALSE=
2558fi
2559
2560
2561if test x$TARGET = xPOWERPC_AIX; then
2562 POWERPC_AIX_TRUE=
2563 POWERPC_AIX_FALSE='#'
2564else
2565 POWERPC_AIX_TRUE='#'
2566 POWERPC_AIX_FALSE=
2567fi
2568
2569
2570if test x$TARGET = xPOWERPC_DARWIN; then
2571 POWERPC_DARWIN_TRUE=
2572 POWERPC_DARWIN_FALSE='#'
2573else
2574 POWERPC_DARWIN_TRUE='#'
2575 POWERPC_DARWIN_FALSE=
2576fi
2577
2578
2579if test x$TARGET = xARM; then
2580 ARM_TRUE=
2581 ARM_FALSE='#'
2582else
2583 ARM_TRUE='#'
2584 ARM_FALSE=
2585fi
2586
2587echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2588echo "configure:2589: checking how to run the C preprocessor" >&5
2589# On Suns, sometimes $CPP names a directory.
2590if test -n "$CPP" && test -d "$CPP"; then
2591 CPP=
2592fi
2593if test -z "$CPP"; then
2594if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2595 echo $ac_n "(cached) $ac_c" 1>&6
2596else
2597 # This must be in double quotes, not single quotes, because CPP may get
2598 # substituted into the Makefile and "${CC-cc}" will confuse make.
2599 CPP="${CC-cc} -E"
2600 # On the NeXT, cc -E runs the code through the compiler's parser,
2601 # not just through cpp.
2602 cat > conftest.$ac_ext <<EOF
2603#include <sys/types.h>
2604#line 2605 "configure"
2605#include "confdefs.h"
2606#include <assert.h>
2607Syntax Error
2608EOF
2609ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2610{ (eval echo configure:2611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2611ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2612if test -z "$ac_err"; then
2613 :
2614else
2615 echo "$ac_err" >&5
2616 echo "configure: failed program was:" >&5
2617 cat conftest.$ac_ext >&5
2618 rm -rf conftest*
2619 CPP="${CC-cc} -E -traditional-cpp"
2620 cat > conftest.$ac_ext <<EOF
2621#include <sys/types.h>
2622#line 2623 "configure"
2623#include "confdefs.h"
2624#include <assert.h>
2625Syntax Error
2626EOF
2627ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2628{ (eval echo configure:2629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2629ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2630if test -z "$ac_err"; then
2631 :
2632else
2633 echo "$ac_err" >&5
2634 echo "configure: failed program was:" >&5
2635 cat conftest.$ac_ext >&5
2636 rm -rf conftest*
2637 CPP="${CC-cc} -nologo -E"
2638 cat > conftest.$ac_ext <<EOF
2639#include <sys/types.h>
2640#line 2641 "configure"
2641#include "confdefs.h"
2642#include <assert.h>
2643Syntax Error
2644EOF
2645ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2646{ (eval echo configure:2647: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2647ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2648if test -z "$ac_err"; then
2649 :
2650else
2651 echo "$ac_err" >&5
2652 echo "configure: failed program was:" >&5
2653 cat conftest.$ac_ext >&5
2654 rm -rf conftest*
2655 CPP=/lib/cpp
2656fi
2657rm -f conftest*
2658fi
2659rm -f conftest*
2660fi
2661rm -f conftest*
2662 ac_cv_prog_CPP="$CPP"
2663fi
2664 CPP="$ac_cv_prog_CPP"
2665else
2666 ac_cv_prog_CPP="$CPP"
2667fi
2668echo "$ac_t""$CPP" 1>&6
2669
2670echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2671echo "configure:2672: checking for ANSI C header files" >&5
2672if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2673 echo $ac_n "(cached) $ac_c" 1>&6
2674else
2675 cat > conftest.$ac_ext <<EOF
2676#include <sys/types.h>
2677#line 2678 "configure"
2678#include "confdefs.h"
2679#include <stdlib.h>
2680#include <stdarg.h>
2681#include <string.h>
2682#include <float.h>
2683EOF
2684ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2685{ (eval echo configure:2686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2686ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2687if test -z "$ac_err"; then
2688 rm -rf conftest*
2689 ac_cv_header_stdc=yes
2690else
2691 echo "$ac_err" >&5
2692 echo "configure: failed program was:" >&5
2693 cat conftest.$ac_ext >&5
2694 rm -rf conftest*
2695 ac_cv_header_stdc=no
2696fi
2697rm -f conftest*
2698
2699if test $ac_cv_header_stdc = yes; then
2700 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2701cat > conftest.$ac_ext <<EOF
2702#line 2703 "configure"
2703#include "confdefs.h"
2704#include <string.h>
2705EOF
2706if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2707 egrep "memchr" >/dev/null 2>&1; then
2708 :
2709else
2710 rm -rf conftest*
2711 ac_cv_header_stdc=no
2712fi
2713rm -f conftest*
2714
2715fi
2716
2717if test $ac_cv_header_stdc = yes; then
2718 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2719cat > conftest.$ac_ext <<EOF
2720#line 2721 "configure"
2721#include "confdefs.h"
2722#include <stdlib.h>
2723EOF
2724if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2725 egrep "free" >/dev/null 2>&1; then
2726 :
2727else
2728 rm -rf conftest*
2729 ac_cv_header_stdc=no
2730fi
2731rm -f conftest*
2732
2733fi
2734
2735if test $ac_cv_header_stdc = yes; then
2736 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2737if test "$cross_compiling" = yes; then
2738 :
2739else
2740 cat > conftest.$ac_ext <<EOF
2741#line 2742 "configure"
2742#include "confdefs.h"
2743#include <ctype.h>
2744#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2745#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2746#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2747int main () { int i; for (i = 0; i < 256; i++)
2748if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2749exit (0); }
2750
2751EOF
2752if { (eval echo configure:2753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2753then
2754 :
2755else
2756 echo "configure: failed program was:" >&5
2757 cat conftest.$ac_ext >&5
2758 rm -fr conftest*
2759 ac_cv_header_stdc=no
2760fi
2761rm -fr conftest*
2762fi
2763
2764fi
2765fi
2766
2767echo "$ac_t""$ac_cv_header_stdc" 1>&6
2768if test $ac_cv_header_stdc = yes; then
2769 cat >> confdefs.h <<\EOF
2770#define STDC_HEADERS 1
2771EOF
2772
2773fi
2774
2775for ac_func in memcpy
2776do
2777echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2778echo "configure:2779: checking for $ac_func" >&5
2779if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2780 echo $ac_n "(cached) $ac_c" 1>&6
2781else
2782 cat > conftest.$ac_ext <<EOF
2783#line 2784 "configure"
2784#include "confdefs.h"
2785/* System header to define __stub macros and hopefully few prototypes,
2786 which can conflict with char $ac_func(); below. */
2787#include <assert.h>
2788/* Override any gcc2 internal prototype to avoid an error. */
2789/* We use char because int might match the return type of a gcc2
2790 builtin and then its argument prototype would still apply. */
2791char $ac_func();
2792
2793int main() {
2794
2795/* The GNU C library defines this for functions which it implements
2796 to always fail with ENOSYS. Some functions are actually named
2797 something starting with __ and the normal name is an alias. */
2798#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2799choke me
2800#else
2801$ac_func();
2802#endif
2803
2804; return 0; }
2805EOF
2806if { (eval echo configure:2807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2807 rm -rf conftest*
2808 eval "ac_cv_func_$ac_func=yes"
2809else
2810 echo "configure: failed program was:" >&5
2811 cat conftest.$ac_ext >&5
2812 rm -rf conftest*
2813 eval "ac_cv_func_$ac_func=no"
2814fi
2815rm -f conftest*
2816fi
2817
2818if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2819 echo "$ac_t""yes" 1>&6
2820 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2821 cat >> confdefs.h <<EOF
2822#define $ac_tr_func 1
2823EOF
2824
2825else
2826 echo "$ac_t""no" 1>&6
2827fi
2828done
2829
2830# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2831# for constant arguments. Useless!
2832echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2833echo "configure:2834: checking for working alloca.h" >&5
2834if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2835 echo $ac_n "(cached) $ac_c" 1>&6
2836else
2837 cat > conftest.$ac_ext <<EOF
2838#line 2839 "configure"
2839#include "confdefs.h"
2840#include <alloca.h>
2841int main() {
2842char *p = alloca(2 * sizeof(int));
2843; return 0; }
2844EOF
2845if { (eval echo configure:2846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2846 rm -rf conftest*
2847 ac_cv_header_alloca_h=yes
2848else
2849 echo "configure: failed program was:" >&5
2850 cat conftest.$ac_ext >&5
2851 rm -rf conftest*
2852 ac_cv_header_alloca_h=no
2853fi
2854rm -f conftest*
2855fi
2856
2857echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2858if test $ac_cv_header_alloca_h = yes; then
2859 cat >> confdefs.h <<\EOF
2860#define HAVE_ALLOCA_H 1
2861EOF
2862
2863fi
2864
2865echo $ac_n "checking for alloca""... $ac_c" 1>&6
2866echo "configure:2867: checking for alloca" >&5
2867if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2868 echo $ac_n "(cached) $ac_c" 1>&6
2869else
2870 cat > conftest.$ac_ext <<EOF
2871#line 2872 "configure"
2872#include "confdefs.h"
2873
2874#ifdef __GNUC__
2875# define alloca __builtin_alloca
2876#else
2877# ifdef _MSC_VER
2878# include <malloc.h>
2879# define alloca _alloca
2880# else
2881# if HAVE_ALLOCA_H
2882# include <alloca.h>
2883# else
2884# ifdef _AIX
2885 #pragma alloca
2886# else
2887# ifndef alloca /* predefined by HP cc +Olibcalls */
2888char *alloca ();
2889# endif
2890# endif
2891# endif
2892# endif
2893#endif
2894
2895int main() {
2896char *p = (char *) alloca(1);
2897; return 0; }
2898EOF
2899if { (eval echo configure:2900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2900 rm -rf conftest*
2901 ac_cv_func_alloca_works=yes
2902else
2903 echo "configure: failed program was:" >&5
2904 cat conftest.$ac_ext >&5
2905 rm -rf conftest*
2906 ac_cv_func_alloca_works=no
2907fi
2908rm -f conftest*
2909fi
2910
2911echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2912if test $ac_cv_func_alloca_works = yes; then
2913 cat >> confdefs.h <<\EOF
2914#define HAVE_ALLOCA 1
2915EOF
2916
2917fi
2918
2919if test $ac_cv_func_alloca_works = no; then
2920 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2921 # that cause trouble. Some versions do not even contain alloca or
2922 # contain a buggy version. If you still want to use their alloca,
2923 # use ar to extract alloca.o from them instead of compiling alloca.c.
2924 ALLOCA=alloca.${ac_objext}
2925 cat >> confdefs.h <<\EOF
2926#define C_ALLOCA 1
2927EOF
2928
2929
2930echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2931echo "configure:2932: checking whether alloca needs Cray hooks" >&5
2932if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2933 echo $ac_n "(cached) $ac_c" 1>&6
2934else
2935 cat > conftest.$ac_ext <<EOF
2936#line 2937 "configure"
2937#include "confdefs.h"
2938#if defined(CRAY) && ! defined(CRAY2)
2939webecray
2940#else
2941wenotbecray
2942#endif
2943
2944EOF
2945if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2946 egrep "webecray" >/dev/null 2>&1; then
2947 rm -rf conftest*
2948 ac_cv_os_cray=yes
2949else
2950 rm -rf conftest*
2951 ac_cv_os_cray=no
2952fi
2953rm -f conftest*
2954
2955fi
2956
2957echo "$ac_t""$ac_cv_os_cray" 1>&6
2958if test $ac_cv_os_cray = yes; then
2959for ac_func in _getb67 GETB67 getb67; do
2960 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2961echo "configure:2962: checking for $ac_func" >&5
2962if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2963 echo $ac_n "(cached) $ac_c" 1>&6
2964else
2965 cat > conftest.$ac_ext <<EOF
2966#line 2967 "configure"
2967#include "confdefs.h"
2968/* System header to define __stub macros and hopefully few prototypes,
2969 which can conflict with char $ac_func(); below. */
2970#include <assert.h>
2971/* Override any gcc2 internal prototype to avoid an error. */
2972/* We use char because int might match the return type of a gcc2
2973 builtin and then its argument prototype would still apply. */
2974char $ac_func();
2975
2976int main() {
2977
2978/* The GNU C library defines this for functions which it implements
2979 to always fail with ENOSYS. Some functions are actually named
2980 something starting with __ and the normal name is an alias. */
2981#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2982choke me
2983#else
2984$ac_func();
2985#endif
2986
2987; return 0; }
2988EOF
2989if { (eval echo configure:2990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2990 rm -rf conftest*
2991 eval "ac_cv_func_$ac_func=yes"
2992else
2993 echo "configure: failed program was:" >&5
2994 cat conftest.$ac_ext >&5
2995 rm -rf conftest*
2996 eval "ac_cv_func_$ac_func=no"
2997fi
2998rm -f conftest*
2999fi
3000
3001if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3002 echo "$ac_t""yes" 1>&6
3003 cat >> confdefs.h <<EOF
3004#define CRAY_STACKSEG_END $ac_func
3005EOF
3006
3007 break
3008else
3009 echo "$ac_t""no" 1>&6
3010fi
3011
3012done
3013fi
3014
3015echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3016echo "configure:3017: checking stack direction for C alloca" >&5
3017if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3018 echo $ac_n "(cached) $ac_c" 1>&6
3019else
3020 if test "$cross_compiling" = yes; then
3021 ac_cv_c_stack_direction=0
3022else
3023 cat > conftest.$ac_ext <<EOF
3024#line 3025 "configure"
3025#include "confdefs.h"
3026find_stack_direction ()
3027{
3028 static char *addr = 0;
3029 auto char dummy;
3030 if (addr == 0)
3031 {
3032 addr = &dummy;
3033 return find_stack_direction ();
3034 }
3035 else
3036 return (&dummy > addr) ? 1 : -1;
3037}
3038main ()
3039{
3040 exit (find_stack_direction() < 0);
3041}
3042EOF
3043if { (eval echo configure:3044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3044then
3045 ac_cv_c_stack_direction=1
3046else
3047 echo "configure: failed program was:" >&5
3048 cat conftest.$ac_ext >&5
3049 rm -fr conftest*
3050 ac_cv_c_stack_direction=-1
3051fi
3052rm -fr conftest*
3053fi
3054
3055fi
3056
3057echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3058cat >> confdefs.h <<EOF
3059#define STACK_DIRECTION $ac_cv_c_stack_direction
3060EOF
3061
3062fi
3063
3064
3065echo $ac_n "checking size of short""... $ac_c" 1>&6
3066echo "configure:3067: checking size of short" >&5
3067if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
3068 echo $ac_n "(cached) $ac_c" 1>&6
3069else
3070 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3071 cat > conftest.$ac_ext <<EOF
3072#line 3073 "configure"
3073#include "confdefs.h"
3074#include "confdefs.h"
3075#include <sys/types.h>
3076
3077
3078int main() {
3079switch (0) case 0: case (sizeof (short) == $ac_size):;
3080; return 0; }
3081EOF
3082if { (eval echo configure:3083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3083 rm -rf conftest*
3084 ac_cv_sizeof_short=$ac_size
3085else
3086 echo "configure: failed program was:" >&5
3087 cat conftest.$ac_ext >&5
3088fi
3089rm -f conftest*
3090 if test x$ac_cv_sizeof_short != x ; then break; fi
3091done
3092
3093fi
3094
3095if test x$ac_cv_sizeof_short = x ; then
3096 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
3097fi
3098echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3099cat >> confdefs.h <<EOF
3100#define SIZEOF_SHORT $ac_cv_sizeof_short
3101EOF
3102
3103
3104echo $ac_n "checking size of int""... $ac_c" 1>&6
3105echo "configure:3106: checking size of int" >&5
3106if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
3107 echo $ac_n "(cached) $ac_c" 1>&6
3108else
3109 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3110 cat > conftest.$ac_ext <<EOF
3111#line 3112 "configure"
3112#include "confdefs.h"
3113#include "confdefs.h"
3114#include <sys/types.h>
3115
3116
3117int main() {
3118switch (0) case 0: case (sizeof (int) == $ac_size):;
3119; return 0; }
3120EOF
3121if { (eval echo configure:3122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3122 rm -rf conftest*
3123 ac_cv_sizeof_int=$ac_size
3124else
3125 echo "configure: failed program was:" >&5
3126 cat conftest.$ac_ext >&5
3127fi
3128rm -f conftest*
3129 if test x$ac_cv_sizeof_int != x ; then break; fi
3130done
3131
3132fi
3133
3134if test x$ac_cv_sizeof_int = x ; then
3135 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
3136fi
3137echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3138cat >> confdefs.h <<EOF
3139#define SIZEOF_INT $ac_cv_sizeof_int
3140EOF
3141
3142
3143echo $ac_n "checking size of long""... $ac_c" 1>&6
3144echo "configure:3145: checking size of long" >&5
3145if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3146 echo $ac_n "(cached) $ac_c" 1>&6
3147else
3148 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3149 cat > conftest.$ac_ext <<EOF
3150#line 3151 "configure"
3151#include "confdefs.h"
3152#include "confdefs.h"
3153#include <sys/types.h>
3154
3155
3156int main() {
3157switch (0) case 0: case (sizeof (long) == $ac_size):;
3158; return 0; }
3159EOF
3160if { (eval echo configure:3161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3161 rm -rf conftest*
3162 ac_cv_sizeof_long=$ac_size
3163else
3164 echo "configure: failed program was:" >&5
3165 cat conftest.$ac_ext >&5
3166fi
3167rm -f conftest*
3168 if test x$ac_cv_sizeof_long != x ; then break; fi
3169done
3170
3171fi
3172
3173if test x$ac_cv_sizeof_long = x ; then
3174 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
3175fi
3176echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3177cat >> confdefs.h <<EOF
3178#define SIZEOF_LONG $ac_cv_sizeof_long
3179EOF
3180
3181
3182echo $ac_n "checking size of long long""... $ac_c" 1>&6
3183echo "configure:3184: checking size of long long" >&5
3184if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
3185 echo $ac_n "(cached) $ac_c" 1>&6
3186else
3187 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3188 cat > conftest.$ac_ext <<EOF
3189#line 3190 "configure"
3190#include "confdefs.h"
3191#include "confdefs.h"
3192#include <sys/types.h>
3193
3194
3195int main() {
3196switch (0) case 0: case (sizeof (long long) == $ac_size):;
3197; return 0; }
3198EOF
3199if { (eval echo configure:3200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3200 rm -rf conftest*
3201 ac_cv_sizeof_long_long=$ac_size
3202else
3203 echo "configure: failed program was:" >&5
3204 cat conftest.$ac_ext >&5
3205fi
3206rm -f conftest*
3207 if test x$ac_cv_sizeof_long_long != x ; then break; fi
3208done
3209
3210fi
3211
3212if test x$ac_cv_sizeof_long_long = x ; then
3213 { echo "configure: error: cannot determine a size for long long" 1>&2; exit 1; }
3214fi
3215echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
3216cat >> confdefs.h <<EOF
3217#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3218EOF
3219
3220
3221echo $ac_n "checking size of float""... $ac_c" 1>&6
3222echo "configure:3223: checking size of float" >&5
3223if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
3224 echo $ac_n "(cached) $ac_c" 1>&6
3225else
3226 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3227 cat > conftest.$ac_ext <<EOF
3228#line 3229 "configure"
3229#include "confdefs.h"
3230#include "confdefs.h"
3231#include <sys/types.h>
3232
3233
3234int main() {
3235switch (0) case 0: case (sizeof (float) == $ac_size):;
3236; return 0; }
3237EOF
3238if { (eval echo configure:3239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3239 rm -rf conftest*
3240 ac_cv_sizeof_float=$ac_size
3241else
3242 echo "configure: failed program was:" >&5
3243 cat conftest.$ac_ext >&5
3244fi
3245rm -f conftest*
3246 if test x$ac_cv_sizeof_float != x ; then break; fi
3247done
3248
3249fi
3250
3251if test x$ac_cv_sizeof_float = x ; then
3252 { echo "configure: error: cannot determine a size for float" 1>&2; exit 1; }
3253fi
3254echo "$ac_t""$ac_cv_sizeof_float" 1>&6
3255cat >> confdefs.h <<EOF
3256#define SIZEOF_FLOAT $ac_cv_sizeof_float
3257EOF
3258
3259
3260echo $ac_n "checking size of double""... $ac_c" 1>&6
3261echo "configure:3262: checking size of double" >&5
3262if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
3263 echo $ac_n "(cached) $ac_c" 1>&6
3264else
3265 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3266 cat > conftest.$ac_ext <<EOF
3267#line 3268 "configure"
3268#include "confdefs.h"
3269#include "confdefs.h"
3270#include <sys/types.h>
3271
3272
3273int main() {
3274switch (0) case 0: case (sizeof (double) == $ac_size):;
3275; return 0; }
3276EOF
3277if { (eval echo configure:3278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3278 rm -rf conftest*
3279 ac_cv_sizeof_double=$ac_size
3280else
3281 echo "configure: failed program was:" >&5
3282 cat conftest.$ac_ext >&5
3283fi
3284rm -f conftest*
3285 if test x$ac_cv_sizeof_double != x ; then break; fi
3286done
3287
3288fi
3289
3290if test x$ac_cv_sizeof_double = x ; then
3291 { echo "configure: error: cannot determine a size for double" 1>&2; exit 1; }
3292fi
3293echo "$ac_t""$ac_cv_sizeof_double" 1>&6
3294cat >> confdefs.h <<EOF
3295#define SIZEOF_DOUBLE $ac_cv_sizeof_double
3296EOF
3297
3298
3299echo $ac_n "checking size of long double""... $ac_c" 1>&6
3300echo "configure:3301: checking size of long double" >&5
3301if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
3302 echo $ac_n "(cached) $ac_c" 1>&6
3303else
3304 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3305 cat > conftest.$ac_ext <<EOF
3306#line 3307 "configure"
3307#include "confdefs.h"
3308#include "confdefs.h"
3309#include <sys/types.h>
3310
3311
3312int main() {
3313switch (0) case 0: case (sizeof (long double) == $ac_size):;
3314; return 0; }
3315EOF
3316if { (eval echo configure:3317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3317 rm -rf conftest*
3318 ac_cv_sizeof_long_double=$ac_size
3319else
3320 echo "configure: failed program was:" >&5
3321 cat conftest.$ac_ext >&5
3322fi
3323rm -f conftest*
3324 if test x$ac_cv_sizeof_long_double != x ; then break; fi
3325done
3326
3327fi
3328
3329if test x$ac_cv_sizeof_long_double = x ; then
3330 { echo "configure: error: cannot determine a size for long double" 1>&2; exit 1; }
3331fi
3332echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
3333cat >> confdefs.h <<EOF
3334#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
3335EOF
3336
3337
3338
3339echo $ac_n "checking size of void *""... $ac_c" 1>&6
3340echo "configure:3341: checking size of void *" >&5
3341if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
3342 echo $ac_n "(cached) $ac_c" 1>&6
3343else
3344 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3345 cat > conftest.$ac_ext <<EOF
3346#line 3347 "configure"
3347#include "confdefs.h"
3348#include "confdefs.h"
3349#include <sys/types.h>
3350
3351
3352int main() {
3353switch (0) case 0: case (sizeof (void *) == $ac_size):;
3354; return 0; }
3355EOF
3356if { (eval echo configure:3357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3357 rm -rf conftest*
3358 ac_cv_sizeof_void_p=$ac_size
3359else
3360 echo "configure: failed program was:" >&5
3361 cat conftest.$ac_ext >&5
3362fi
3363rm -f conftest*
3364 if test x$ac_cv_sizeof_void_p != x ; then break; fi
3365done
3366
3367fi
3368
3369if test x$ac_cv_sizeof_void_p = x ; then
3370 { echo "configure: error: cannot determine a size for void *" 1>&2; exit 1; }
3371fi
3372echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
3373cat >> confdefs.h <<EOF
3374#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3375EOF
3376
3377
3378echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3379echo "configure:3380: checking whether byte ordering is bigendian" >&5
3380if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3381 echo $ac_n "(cached) $ac_c" 1>&6
3382else
3383 ac_cv_c_bigendian=unknown
3384# See if sys/param.h defines the BYTE_ORDER macro.
3385cat > conftest.$ac_ext <<EOF
3386#line 3387 "configure"
3387#include "confdefs.h"
3388#include <sys/types.h>
3389#include <sys/param.h>
3390int main() {
3391
3392#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3393 bogus endian macros
3394#endif
3395; return 0; }
3396EOF
3397if { (eval echo configure:3398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3398 rm -rf conftest*
3399 # It does; now see whether it defined to BIG_ENDIAN or not.
3400cat > conftest.$ac_ext <<EOF
3401#line 3402 "configure"
3402#include "confdefs.h"
3403#include <sys/types.h>
3404#include <sys/param.h>
3405int main() {
3406
3407#if BYTE_ORDER != BIG_ENDIAN
3408 not big endian
3409#endif
3410; return 0; }
3411EOF
3412if { (eval echo configure:3413: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3413 rm -rf conftest*
3414 ac_cv_c_bigendian=yes
3415else
3416 echo "configure: failed program was:" >&5
3417 cat conftest.$ac_ext >&5
3418 rm -rf conftest*
3419 ac_cv_c_bigendian=no
3420fi
3421rm -f conftest*
3422else
3423 echo "configure: failed program was:" >&5
3424 cat conftest.$ac_ext >&5
3425fi
3426rm -f conftest*
3427if test $ac_cv_c_bigendian = unknown; then
3428if test "$cross_compiling" = yes; then
3429 echo $ac_n "cross-compiling... " 2>&6
3430else
3431 cat > conftest.$ac_ext <<EOF
3432#line 3433 "configure"
3433#include "confdefs.h"
3434main () {
3435 /* Are we little or big endian? From Harbison&Steele. */
3436 union
3437 {
3438 long l;
3439 char c[sizeof (long)];
3440 } u;
3441 u.l = 1;
3442 exit (u.c[sizeof (long) - 1] == 1);
3443}
3444EOF
3445if { (eval echo configure:3446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3446then
3447 ac_cv_c_bigendian=no
3448else
3449 echo "configure: failed program was:" >&5
3450 cat conftest.$ac_ext >&5
3451 rm -fr conftest*
3452 ac_cv_c_bigendian=yes
3453fi
3454rm -fr conftest*
3455fi
3456
3457fi
3458fi
3459
3460echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3461if test $ac_cv_c_bigendian = unknown; then
3462echo $ac_n "checking to probe for byte ordering""... $ac_c" 1>&6
3463echo "configure:3464: checking to probe for byte ordering" >&5
3464
3465cat >conftest.c <<EOF
3466short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3467short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3468void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
3469short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3470short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3471void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
3472int main() { _ascii (); _ebcdic (); return 0; }
3473EOF
3474 if test -f conftest.c ; then
3475 if ${CC-cc} ${CFLAGS} conftest.c -o conftest.o && test -f conftest.o ; then
3476 if test `grep -l BIGenDianSyS conftest.o` ; then
3477 echo $ac_n ' big endian probe OK, ' 1>&6
3478 ac_cv_c_bigendian=yes
3479 fi
3480 if test `grep -l LiTTleEnDian conftest.o` ; then
3481 echo $ac_n ' little endian probe OK, ' 1>&6
3482 if test $ac_cv_c_bigendian = yes ; then
3483 ac_cv_c_bigendian=unknown;
3484 else
3485 ac_cv_c_bigendian=no
3486 fi
3487 fi
3488 echo $ac_n 'guessing bigendian ... ' >&6
3489 fi
3490 fi
3491echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3492fi
3493if test $ac_cv_c_bigendian = yes; then
3494 cat >> confdefs.h <<\EOF
3495#define WORDS_BIGENDIAN 1
3496EOF
3497
3498 BYTEORDER=4321
3499else
3500 BYTEORDER=1234
3501fi
3502cat >> confdefs.h <<EOF
3503#define BYTEORDER $BYTEORDER
3504EOF
3505
3506if test $ac_cv_c_bigendian = unknown; then
3507 { echo "configure: error: unknown endianess - sorry" 1>&2; exit 1; }
3508fi
3509
3510
3511if test x$TARGET = xSPARC; then
3512 echo $ac_n "checking assembler and linker support unaligned pc related relocs""... $ac_c" 1>&6
3513echo "configure:3514: checking assembler and linker support unaligned pc related relocs" >&5
3514if eval "test \"`echo '$''{'libffi_cv_as_sparc_ua_pcrel'+set}'`\" = set"; then
3515 echo $ac_n "(cached) $ac_c" 1>&6
3516else
3517
3518 save_CFLAGS="$CFLAGS"
3519 save_LDFLAGS="$LDFLAGS"
3520 CFLAGS="$CFLAGS -fpic"
3521 LDFLAGS="$LDFLAGS -shared"
3522 cat > conftest.$ac_ext <<EOF
3523#line 3524 "configure"
3524#include "confdefs.h"
3525asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
3526int main() {
3527
3528; return 0; }
3529EOF
3530if { (eval echo configure:3531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3531 rm -rf conftest*
3532 libffi_cv_as_sparc_ua_pcrel=yes
3533else
3534 echo "configure: failed program was:" >&5
3535 cat conftest.$ac_ext >&5
3536 rm -rf conftest*
3537 libffi_cv_as_sparc_ua_pcrel=no
3538fi
3539rm -f conftest*
3540 CFLAGS="$save_CFLAGS"
3541 LDFLAGS="$save_LDFLAGS"
3542fi
3543
3544echo "$ac_t""$libffi_cv_as_sparc_ua_pcrel" 1>&6
3545 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
3546 cat >> confdefs.h <<\EOF
3547#define HAVE_AS_SPARC_UA_PCREL 1
3548EOF
3549
3550 fi
3551fi
3552
3553
3554
3555
3556
3557
3558# Check whether --enable-debug or --disable-debug was given.
3559if test "${enable_debug+set}" = set; then
3560 enableval="$enable_debug"
3561 if test "$enable_debug" = "yes"; then
3562 cat >> confdefs.h <<\EOF
3563#define FFI_DEBUG 1
3564EOF
3565
3566 fi
3567fi
3568
3569
3570# Check whether --enable-structs or --disable-structs was given.
3571if test "${enable_structs+set}" = set; then
3572 enableval="$enable_structs"
3573 if test "$enable_structs" = "no"; then
3574 cat >> confdefs.h <<\EOF
3575#define FFI_NO_STRUCTS 1
3576EOF
3577
3578 fi
3579fi
3580
3581
3582# Check whether --enable-raw-api or --disable-raw-api was given.
3583if test "${enable_raw_api+set}" = set; then
3584 enableval="$enable_raw_api"
3585 if test "$enable_raw_api" = "no"; then
3586 cat >> confdefs.h <<\EOF
3587#define FFI_NO_RAW_API 1
3588EOF
3589
3590 fi
3591fi
3592
3593
3594# Check whether --enable-purify-safety or --disable-purify-safety was given.
3595if test "${enable_purify_safety+set}" = set; then
3596 enableval="$enable_purify_safety"
3597 if test "$enable_purify_safety" = "yes"; then
3598 cat >> confdefs.h <<\EOF
3599#define USING_PURIFY 1
3600EOF
3601
3602 fi
3603fi
3604
3605
3606if test -n "$with_cross_host" &&
3607 test x"$with_cross_host" != x"no"; then
3608 toolexecdir='$(exec_prefix)/$(target_alias)'
3609 toolexeclibdir='$(toolexecdir)/lib'
3610else
3611 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3612 toolexeclibdir='$(libdir)'
3613fi
3614toolexeclibdir=$toolexeclibdir/`$CC -print-multi-os-directory`
3615
3616
3617
3618if test "${multilib}" = "yes"; then
3619 multilib_arg="--enable-multilib"
3620else
3621 multilib_arg=
3622fi
3623
3624trap '' 1 2 15
3625cat > confcache <<\EOF
3626# This file is a shell script that caches the results of configure
3627# tests run on this system so they can be shared between configure
3628# scripts and configure runs. It is not useful on other systems.
3629# If it contains results you don't want to keep, you may remove or edit it.
3630#
3631# By default, configure uses ./config.cache as the cache file,
3632# creating it if it does not exist already. You can give configure
3633# the --cache-file=FILE option to use a different cache file; that is
3634# what configure does when it calls configure scripts in
3635# subdirectories, so they share the cache.
3636# Giving --cache-file=/dev/null disables caching, for debugging configure.
3637# config.status only pays attention to the cache file if you give it the
3638# --recheck option to rerun configure.
3639#
3640EOF
3641# The following way of writing the cache mishandles newlines in values,
3642# but we know of no workaround that is simple, portable, and efficient.
3643# So, don't put newlines in cache variables' values.
3644# Ultrix sh set writes to stderr and can't be redirected directly,
3645# and sets the high bit in the cache file unless we assign to the vars.
3646(set) 2>&1 |
3647 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3648 *ac_space=\ *)
3649 # `set' does not quote correctly, so add quotes (double-quote substitution
3650 # turns \\\\ into \\, and sed turns \\ into \).
3651 sed -n \
3652 -e "s/'/'\\\\''/g" \
3653 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3654 ;;
3655 *)
3656 # `set' quotes correctly as required by POSIX, so do not add quotes.
3657 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3658 ;;
3659 esac >> confcache
3660if cmp -s $cache_file confcache; then
3661 :
3662else
3663 if test -w $cache_file; then
3664 echo "updating cache $cache_file"
3665 cat confcache > $cache_file
3666 else
3667 echo "not updating unwritable cache $cache_file"
3668 fi
3669fi
3670rm -f confcache
3671
3672trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3673
3674test "x$prefix" = xNONE && prefix=$ac_default_prefix
3675# Let make expand exec_prefix.
3676test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3677
3678# Any assignment to VPATH causes Sun make to only execute
3679# the first set of double-colon rules, so remove it if not needed.
3680# If there is a colon in the path, we need to keep it.
3681if test "x$srcdir" = x.; then
3682 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3683fi
3684
3685trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3686
3687DEFS=-DHAVE_CONFIG_H
3688
3689# Without the "./", some shells look in PATH for config.status.
3690: ${CONFIG_STATUS=./config.status}
3691
3692echo creating $CONFIG_STATUS
3693rm -f $CONFIG_STATUS
3694cat > $CONFIG_STATUS <<EOF
3695#! /bin/sh
3696# Generated automatically by configure.
3697# Run this file to recreate the current configuration.
3698# This directory was configured as follows,
3699EOF
3700echo ': ${CONFIG_SHELL='"${CONFIG_SHELL-/bin/sh}"'}' >> $CONFIG_STATUS
3701cat >> $CONFIG_STATUS <<EOF
3702# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3703#
3704# $0 $ac_configure_args
3705#
3706# Compiler output produced by configure, useful for debugging
3707# configure, is in ./config.log if it exists.
3708
3709ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3710for ac_option
3711do
3712 case "\$ac_option" in
3713 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3714 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3715 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3716 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3717 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3718 exit 0 ;;
3719 -help | --help | --hel | --he | --h)
3720 echo "\$ac_cs_usage"; exit 0 ;;
3721 *) echo "\$ac_cs_usage"; exit 1 ;;
3722 esac
3723done
3724
3725ac_given_srcdir=$srcdir
3726ac_given_INSTALL="$INSTALL"
3727PATHIFS="$PATH_IFS"
3728
3729trap 'rm -fr `echo "include/Makefile include/ffi.h Makefile fficonfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3730EOF
3731cat >> $CONFIG_STATUS <<EOF
3732
3733# Protect against being on the right side of a sed subst in config.status.
3734sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3735 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3736$ac_vpsub
3737$extrasub
3738s,\([^a-zA-Z0-9:]\)/bin/sh\(.exe\),\1${CONFIG_SHELL-/bin/sh}\2,g
3739s%@SHELL@%$SHELL%g
3740s%@CFLAGS@%$CFLAGS%g
3741s%@CPPFLAGS@%$CPPFLAGS%g
3742s%@CXXFLAGS@%$CXXFLAGS%g
3743s%@FFLAGS@%$FFLAGS%g
3744s%@DEFS@%$DEFS%g
3745s%@LDFLAGS@%$LDFLAGS%g
3746s%@LIBS@%$LIBS%g
3747s%@exec_prefix@%$exec_prefix%g
3748s%@prefix@%$prefix%g
3749s%@program_transform_name@%$program_transform_name%g
3750s%@bindir@%$bindir%g
3751s%@sbindir@%$sbindir%g
3752s%@libexecdir@%$libexecdir%g
3753s%@datadir@%$datadir%g
3754s%@sysconfdir@%$sysconfdir%g
3755s%@sharedstatedir@%$sharedstatedir%g
3756s%@localstatedir@%$localstatedir%g
3757s%@libdir@%$libdir%g
3758s%@includedir@%$includedir%g
3759s%@oldincludedir@%$oldincludedir%g
3760s%@infodir@%$infodir%g
3761s%@mandir@%$mandir%g
3762s%@PATH_IFS@%$PATH_IFS%g
3763s%@EXEEXT@%$EXEEXT%g
3764s%@libffi_basedir@%$libffi_basedir%g
3765s%@host@%$host%g
3766s%@host_alias@%$host_alias%g
3767s%@host_cpu@%$host_cpu%g
3768s%@host_vendor@%$host_vendor%g
3769s%@host_os@%$host_os%g
3770s%@build@%$build%g
3771s%@build_alias@%$build_alias%g
3772s%@build_cpu@%$build_cpu%g
3773s%@build_vendor@%$build_vendor%g
3774s%@build_os@%$build_os%g
3775s%@CC@%$CC%g
3776s%@LN_S@%$LN_S%g
3777s%@OBJEXT@%$OBJEXT%g
3778s%@RANLIB@%$RANLIB%g
3779s%@STRIP@%$STRIP%g
3780s%@LIBTOOL@%$LIBTOOL%g
3781s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3782s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3783s%@INSTALL_DATA@%$INSTALL_DATA%g
3784s%@PACKAGE@%$PACKAGE%g
3785s%@VERSION@%$VERSION%g
3786s%@ACLOCAL@%$ACLOCAL%g
3787s%@AUTOCONF@%$AUTOCONF%g
3788s%@AUTOMAKE@%$AUTOMAKE%g
3789s%@AUTOHEADER@%$AUTOHEADER%g
3790s%@MAKEINFO@%$MAKEINFO%g
3791s%@SET_MAKE@%$SET_MAKE%g
3792s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3793s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3794s%@MAINT@%$MAINT%g
3795s%@MIPS_GCC_TRUE@%$MIPS_GCC_TRUE%g
3796s%@MIPS_GCC_FALSE@%$MIPS_GCC_FALSE%g
3797s%@MIPS_SGI_TRUE@%$MIPS_SGI_TRUE%g
3798s%@MIPS_SGI_FALSE@%$MIPS_SGI_FALSE%g
3799s%@SPARC_TRUE@%$SPARC_TRUE%g
3800s%@SPARC_FALSE@%$SPARC_FALSE%g
3801s%@X86_TRUE@%$X86_TRUE%g
3802s%@X86_FALSE@%$X86_FALSE%g
3803s%@X86_WIN32_TRUE@%$X86_WIN32_TRUE%g
3804s%@X86_WIN32_FALSE@%$X86_WIN32_FALSE%g
3805s%@ALPHA_TRUE@%$ALPHA_TRUE%g
3806s%@ALPHA_FALSE@%$ALPHA_FALSE%g
3807s%@IA64_TRUE@%$IA64_TRUE%g
3808s%@IA64_FALSE@%$IA64_FALSE%g
3809s%@M68K_TRUE@%$M68K_TRUE%g
3810s%@M68K_FALSE@%$M68K_FALSE%g
3811s%@POWERPC_TRUE@%$POWERPC_TRUE%g
3812s%@POWERPC_FALSE@%$POWERPC_FALSE%g
3813s%@POWERPC_AIX_TRUE@%$POWERPC_AIX_TRUE%g
3814s%@POWERPC_AIX_FALSE@%$POWERPC_AIX_FALSE%g
3815s%@POWERPC_DARWIN_TRUE@%$POWERPC_DARWIN_TRUE%g
3816s%@POWERPC_DARWIN_FALSE@%$POWERPC_DARWIN_FALSE%g
3817s%@ARM_TRUE@%$ARM_TRUE%g
3818s%@ARM_FALSE@%$ARM_FALSE%g
3819s%@CPP@%$CPP%g
3820s%@ALLOCA@%$ALLOCA%g
3821s%@TARGET@%$TARGET%g
3822s%@TARGETDIR@%$TARGETDIR%g
3823s%@toolexecdir@%$toolexecdir%g
3824s%@toolexeclibdir@%$toolexeclibdir%g
3825
3826CEOF
3827EOF
3828
3829cat >> $CONFIG_STATUS <<\EOF
3830
3831# Split the substitutions into bite-sized pieces for seds with
3832# small command number limits, like on Digital OSF/1 and HP-UX.
3833ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3834ac_file=1 # Number of current file.
3835ac_beg=1 # First line for current file.
3836ac_end=$ac_max_sed_cmds # Line after last line for current file.
3837ac_more_lines=:
3838ac_sed_cmds=""
3839while $ac_more_lines; do
3840 if test $ac_beg -gt 1; then
3841 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3842 else
3843 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3844 fi
3845 if test ! -s conftest.s$ac_file; then
3846 ac_more_lines=false
3847 rm -f conftest.s$ac_file
3848 else
3849 if test -z "$ac_sed_cmds"; then
3850 ac_sed_cmds="sed -f conftest.s$ac_file"
3851 else
3852 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3853 fi
3854 ac_file=`expr $ac_file + 1`
3855 ac_beg=$ac_end
3856 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3857 fi
3858done
3859if test -z "$ac_sed_cmds"; then
3860 ac_sed_cmds=cat
3861fi
3862EOF
3863
3864cat >> $CONFIG_STATUS <<EOF
3865
3866CONFIG_FILES=\${CONFIG_FILES-"include/Makefile include/ffi.h Makefile"}
3867EOF
3868cat >> $CONFIG_STATUS <<\EOF
3869for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3870 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3871 case "$ac_file" in
3872 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3873 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3874 *) ac_file_in="${ac_file}.in" ;;
3875 esac
3876
3877 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3878
3879 # Remove last slash and all that follows it. Not all systems have dirname.
3880 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3881 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3882 # The file is in a subdirectory.
3883 test ! -d "$ac_dir" && mkdir "$ac_dir"
3884 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3885 # A "../" for each directory in $ac_dir_suffix.
3886 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3887 else
3888 ac_dir_suffix= ac_dots=
3889 fi
3890
3891 case "$ac_given_srcdir" in
3892 .) srcdir=.
3893 if test -z "$ac_dots"; then top_srcdir=.
3894 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3895 /* | [A-Za-z]:*)
3896 srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3897 *) # Relative path.
3898 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3899 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3900 esac
3901
3902 case "$ac_given_INSTALL" in
3903 [/$]* | [A-Za-z]:*) INSTALL="$ac_given_INSTALL" ;;
3904 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3905 esac
3906
3907 echo creating "$ac_file"
3908 rm -f "$ac_file"
3909 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3910 case "$ac_file" in
3911 *Makefile*) ac_comsub="1i\\
3912# $configure_input" ;;
3913 *) ac_comsub= ;;
3914 esac
3915
3916 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%$PATHIFS% $ac_given_srcdir/%g"`
3917 sed -e "$ac_comsub
3918s%@configure_input@%$configure_input%g
3919s%@srcdir@%$srcdir%g
3920s%@top_srcdir@%$top_srcdir%g
3921s%@INSTALL@%$INSTALL%g
3922" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3923fi; done
3924rm -f conftest.s*
3925
3926# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3927# NAME is the cpp macro being defined and VALUE is the value it is being given.
3928#
3929# ac_d sets the value in "#define NAME VALUE" lines.
3930ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3931ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3932ac_dC='\3'
3933ac_dD='%g'
3934# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3935ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3936ac_uB='\([ ]\)%\1#\2define\3'
3937ac_uC=' '
3938ac_uD='\4%g'
3939# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3940ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3941ac_eB='$%\1#\2define\3'
3942ac_eC=' '
3943ac_eD='%g'
3944
3945if test "${CONFIG_HEADERS+set}" != set; then
3946EOF
3947cat >> $CONFIG_STATUS <<EOF
3948 CONFIG_HEADERS="fficonfig.h"
3949EOF
3950cat >> $CONFIG_STATUS <<\EOF
3951fi
3952for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3953 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3954 case "$ac_file" in
3955 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3956 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3957 *) ac_file_in="${ac_file}.in" ;;
3958 esac
3959
3960 echo creating $ac_file
3961
3962 rm -f conftest.frag conftest.in conftest.out
3963# kso the other way around might work better with drive letters and such.
3964# ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3965 ac_file_inputs=`echo $ac_file_in|sed -e "s%:% $ac_given_srcdir/%g" -e "s%^%$ac_given_srcdir/%" `
3966 cat $ac_file_inputs > conftest.in
3967
3968EOF
3969
3970# Transform confdefs.h into a sed script conftest.vals that substitutes
3971# the proper values into config.h.in to produce config.h. And first:
3972# Protect against being on the right side of a sed subst in config.status.
3973# Protect against being in an unquoted here document in config.status.
3974rm -f conftest.vals
3975cat > conftest.hdr <<\EOF
3976s/[\\&%]/\\&/g
3977s%[\\$`]%\\&%g
3978s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3979s%ac_d%ac_u%gp
3980s%ac_u%ac_e%gp
3981EOF
3982sed -n -f conftest.hdr confdefs.h > conftest.vals
3983rm -f conftest.hdr
3984
3985# This sed command replaces #undef with comments. This is necessary, for
3986# example, in the case of _POSIX_SOURCE, which is predefined and required
3987# on some systems where configure will not decide to define it.
3988cat >> conftest.vals <<\EOF
3989s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3990EOF
3991
3992# Break up conftest.vals because some shells have a limit on
3993# the size of here documents, and old seds have small limits too.
3994
3995rm -f conftest.tail
3996while :
3997do
3998 ac_lines=`grep -c . conftest.vals`
3999 # grep -c gives empty output for an empty file on some AIX systems.
4000 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4001 # Write a limited-size here document to conftest.frag.
4002 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4003 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4004 echo 'CEOF
4005 sed -f conftest.frag conftest.in > conftest.out
4006 rm -f conftest.in
4007 mv conftest.out conftest.in
4008' >> $CONFIG_STATUS
4009 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4010 rm -f conftest.vals
4011 mv conftest.tail conftest.vals
4012done
4013rm -f conftest.vals
4014
4015cat >> $CONFIG_STATUS <<\EOF
4016 rm -f conftest.frag conftest.h
4017 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4018 cat conftest.in >> conftest.h
4019 rm -f conftest.in
4020 if cmp -s $ac_file conftest.h 2>/dev/null; then
4021 echo "$ac_file is unchanged"
4022 rm -f conftest.h
4023 else
4024 # Remove last slash and all that follows it. Not all systems have dirname.
4025 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4026 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4027 # The file is in a subdirectory.
4028 test ! -d "$ac_dir" && mkdir "$ac_dir"
4029 fi
4030 rm -f $ac_file
4031 mv conftest.h $ac_file
4032 fi
4033fi; done
4034
4035EOF
4036cat >> $CONFIG_STATUS <<EOF
4037
4038srcdir=${srcdir}
4039host=${host}
4040target=${target}
4041with_multisubdir=${with_multisubdir}
4042ac_configure_args="${multilib_arg} ${ac_configure_args}"
4043CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
4044libffi_basedir=${libffi_basedir}
4045CC="${CC}"
4046DEFS="$DEFS"
4047test ! -d include && mkdir include
4048test ! -f include/fficonfig.h && cp fficonfig.h include/fficonfig.h
4049if cmp -s fficonfig.h include/fficonfig.h 2>/dev/null; then
4050 echo fficonfig.h unchanged
4051else
4052 echo Moving fficonfig.h to include/fficonfig.h
4053 cp fficonfig.h include/fficonfig.h
4054fi
4055
4056EOF
4057cat >> $CONFIG_STATUS <<\EOF
4058test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4059
4060if test -n "$CONFIG_FILES"; then
4061 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
4062 ac_file=Makefile . ${libffi_basedir}/../config-ml.in
4063fi
4064
4065exit 0
4066EOF
4067chmod +x $CONFIG_STATUS
4068rm -fr confdefs* $ac_clean_files
4069test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4070
4071
4072# Make target subdirectories if required.
4073test -d src || mkdir src
4074test -d src/${TARGETDIR} || mkdir src/${TARGETDIR}
Note: See TracBrowser for help on using the repository browser.