3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --enable-multilib build many library versions (default)"
17 --enable-shared[=PKGS] build shared libraries [default=yes]"
19 --enable-static[=PKGS] build static libraries [default=yes]"
21 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
23 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
25 --disable-libtool-lock avoid locking (might break parallel builds)"
27 --with-pic try to use only PIC/non-PIC objects [default=use both]"
29 --enable-maintainer-mode enable make rules and dependencies not useful
30 (and sometimes confusing) to the casual installer"
32 --enable-debug debugging mode"
34 --disable-structs omit code for struct support"
36 --disable-raw-api make the raw api unavailable"
38 --enable-purify-safety purify-safe mode"
40 # Initialize some variables set by options.
41 # The variables have the same names as the options, with
42 # dashes changed to underlines.
44 cache_file
=.
/config.cache
53 program_transform_name
=s
,x
,x
,
62 bindir
='${exec_prefix}/bin'
63 sbindir
='${exec_prefix}/sbin'
64 libexecdir
='${exec_prefix}/libexec'
65 datadir
='${prefix}/share'
66 sysconfdir
='${prefix}/etc'
67 sharedstatedir
='${prefix}/com'
68 localstatedir
='${prefix}/var'
69 libdir
='${exec_prefix}/lib'
70 includedir
='${prefix}/include'
71 oldincludedir
='/usr/include'
72 infodir
='${prefix}/info'
73 mandir
='${prefix}/man'
75 # Initialize some other variables.
78 SHELL
=${CONFIG_SHELL-/bin/sh}
79 # Maximum number of lines to put in a shell here document.
86 # If the previous option needs an argument, assign it.
87 if test -n "$ac_prev"; then
88 eval "$ac_prev=\$ac_option"
94 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
98 # Accept the important Cygnus configure options, so we can diagnose typos.
102 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
104 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
105 bindir
="$ac_optarg" ;;
107 -build |
--build |
--buil |
--bui |
--bu)
109 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
110 build
="$ac_optarg" ;;
112 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
113 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
114 ac_prev
=cache_file
;;
115 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
116 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
117 cache_file
="$ac_optarg" ;;
119 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
121 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
123 datadir
="$ac_optarg" ;;
125 -disable-* |
--disable-*)
126 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
127 # Reject names that are not valid shell variable names.
128 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
132 eval "enable_${ac_feature}=no" ;;
134 -enable-* |
--enable-*)
135 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
136 # Reject names that are not valid shell variable names.
137 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
138 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
140 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
145 eval "enable_${ac_feature}='$ac_optarg'" ;;
147 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
148 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
149 |
--exec |
--exe |
--ex)
150 ac_prev
=exec_prefix
;;
151 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
152 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
153 |
--exec=* |
--exe=* |
--ex=*)
154 exec_prefix
="$ac_optarg" ;;
156 -gas |
--gas |
--ga |
--g)
157 # Obsolete; use --with-gas.
160 -help |
--help |
--hel |
--he)
161 # Omit some internal or obsolete options to make the list less imposing.
162 # This message is too long to be a string in the A/UX 3.1 sh.
164 Usage: configure [options] [host]
165 Options: [defaults in brackets after descriptions]
167 --cache-file=FILE cache test results in FILE
168 --help print this message
169 --no-create do not create output files
170 --quiet, --silent do not print \`checking...' messages
171 --site-file=FILE use FILE as the site file
172 --version print the version of autoconf that created configure
173 Directory and file names:
174 --prefix=PREFIX install architecture-independent files in PREFIX
176 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
178 --bindir=DIR user executables in DIR [EPREFIX/bin]
179 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
180 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
181 --datadir=DIR read-only architecture-independent data in DIR
183 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
184 --sharedstatedir=DIR modifiable architecture-independent data in DIR
186 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
187 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
188 --includedir=DIR C header files in DIR [PREFIX/include]
189 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
190 --infodir=DIR info documentation in DIR [PREFIX/info]
191 --mandir=DIR man documentation in DIR [PREFIX/man]
192 --srcdir=DIR find the sources in DIR [configure dir or ..]
193 --program-prefix=PREFIX prepend PREFIX to installed program names
194 --program-suffix=SUFFIX append SUFFIX to installed program names
195 --program-transform-name=PROGRAM
196 run sed PROGRAM on installed program names
200 --build=BUILD configure for building on BUILD [BUILD=HOST]
201 --host=HOST configure for HOST [guessed]
202 --target=TARGET configure for TARGET [TARGET=HOST]
203 Features and packages:
204 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
205 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
206 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
207 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
208 --x-includes=DIR X include files are in DIR
209 --x-libraries=DIR X library files are in DIR
211 if test -n "$ac_help"; then
212 echo "--enable and --with options recognized:$ac_help"
216 -host |
--host |
--hos |
--ho)
218 -host=* |
--host=* |
--hos=* |
--ho=*)
221 -includedir |
--includedir |
--includedi |
--included |
--include \
222 |
--includ |
--inclu |
--incl |
--inc)
223 ac_prev
=includedir
;;
224 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
225 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
226 includedir
="$ac_optarg" ;;
228 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
230 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
231 infodir
="$ac_optarg" ;;
233 -libdir |
--libdir |
--libdi |
--libd)
235 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
236 libdir
="$ac_optarg" ;;
238 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
239 |
--libexe |
--libex |
--libe)
240 ac_prev
=libexecdir
;;
241 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
242 |
--libexe=* |
--libex=* |
--libe=*)
243 libexecdir
="$ac_optarg" ;;
245 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
246 |
--localstate |
--localstat |
--localsta |
--localst \
247 |
--locals |
--local |
--loca |
--loc |
--lo)
248 ac_prev
=localstatedir
;;
249 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
250 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
251 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
252 localstatedir
="$ac_optarg" ;;
254 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
256 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
257 mandir
="$ac_optarg" ;;
260 # Obsolete; use --without-fp.
263 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
267 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
268 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
271 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
272 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
273 |
--oldin |
--oldi |
--old |
--ol |
--o)
274 ac_prev
=oldincludedir
;;
275 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
276 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
277 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
278 oldincludedir
="$ac_optarg" ;;
280 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
282 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
283 prefix
="$ac_optarg" ;;
285 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
286 |
--program-pre |
--program-pr |
--program-p)
287 ac_prev
=program_prefix
;;
288 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
289 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
290 program_prefix
="$ac_optarg" ;;
292 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
293 |
--program-suf |
--program-su |
--program-s)
294 ac_prev
=program_suffix
;;
295 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
296 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
297 program_suffix
="$ac_optarg" ;;
299 -program-transform-name |
--program-transform-name \
300 |
--program-transform-nam |
--program-transform-na \
301 |
--program-transform-n |
--program-transform- \
302 |
--program-transform |
--program-transfor \
303 |
--program-transfo |
--program-transf \
304 |
--program-trans |
--program-tran \
305 |
--progr-tra |
--program-tr |
--program-t)
306 ac_prev
=program_transform_name
;;
307 -program-transform-name=* |
--program-transform-name=* \
308 |
--program-transform-nam=* |
--program-transform-na=* \
309 |
--program-transform-n=* |
--program-transform-=* \
310 |
--program-transform=* |
--program-transfor=* \
311 |
--program-transfo=* |
--program-transf=* \
312 |
--program-trans=* |
--program-tran=* \
313 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
314 program_transform_name
="$ac_optarg" ;;
316 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
317 |
-silent |
--silent |
--silen |
--sile |
--sil)
320 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
322 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
324 sbindir
="$ac_optarg" ;;
326 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
327 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
328 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
330 ac_prev
=sharedstatedir
;;
331 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
332 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
333 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
335 sharedstatedir
="$ac_optarg" ;;
337 -site |
--site |
--sit)
339 -site=* |
--site=* |
--sit=*)
342 -site-file |
--site-file |
--site-fil |
--site-fi |
--site-f)
344 -site-file=* |
--site-file=* |
--site-fil=* |
--site-fi=* |
--site-f=*)
345 sitefile
="$ac_optarg" ;;
347 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
349 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
350 srcdir
="$ac_optarg" ;;
352 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
353 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
354 ac_prev
=sysconfdir
;;
355 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
356 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
357 sysconfdir
="$ac_optarg" ;;
359 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
361 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
362 target
="$ac_optarg" ;;
364 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
367 -version |
--version |
--versio |
--versi |
--vers)
368 echo "configure generated by autoconf version 2.13"
372 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
373 # Reject names that are not valid shell variable names.
374 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
375 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
377 ac_package
=`echo $ac_package| sed 's/-/_/g'`
382 eval "with_${ac_package}='$ac_optarg'" ;;
384 -without-* |
--without-*)
385 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
386 # Reject names that are not valid shell variable names.
387 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
388 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
390 ac_package
=`echo $ac_package| sed 's/-/_/g'`
391 eval "with_${ac_package}=no" ;;
394 # Obsolete; use --with-x.
397 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
398 |
--x-incl |
--x-inc |
--x-in |
--x-i)
399 ac_prev
=x_includes
;;
400 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
401 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
402 x_includes
="$ac_optarg" ;;
404 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
405 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
406 ac_prev
=x_libraries
;;
407 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
408 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
409 x_libraries
="$ac_optarg" ;;
411 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
415 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
416 echo "configure: warning: $ac_option: invalid host type" 1>&2
418 if test "x$nonopt" != xNONE
; then
419 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
427 if test -n "$ac_prev"; then
428 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
431 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
433 # File descriptor usage:
436 # 2 errors and warnings
437 # 3 some systems may open it to /dev/tty
438 # 4 used on the Kubota Titan
439 # 6 checking for... messages and results
440 # 5 compiler messages saved in config.log
441 if test "$silent" = yes; then
449 This file contains any messages produced by compilers while
450 running configure, to aid debugging if configure makes a mistake.
453 # Strip out --no-create and --no-recursion so they do not pile up.
454 # Also quote any args containing shell metacharacters.
459 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
460 |
--no-cr |
--no-c) ;;
461 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
462 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
463 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
464 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
465 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
470 # Only set these to C if already set. These must not be set unconditionally
471 # because not all systems understand e.g. LANG=C (notably SCO).
472 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
473 # Non-C LC_CTYPE values break the ctype check.
474 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
475 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
476 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
477 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
479 # confdefs.h avoids OS command line length limits that DEFS can exceed.
480 rm -rf conftest
* confdefs.h
481 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
484 # A filename unique to this package, relative to the directory that
485 # configure is in, which we can look for to find out if srcdir is correct.
486 ac_unique_file
=fficonfig.h.
in
488 # Find the source files, if location was not specified.
489 if test -z "$srcdir"; then
490 ac_srcdir_defaulted
=yes
491 # Try the directory containing this script, then its parent.
493 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
494 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
496 if test ! -r $srcdir/$ac_unique_file; then
500 ac_srcdir_defaulted
=no
502 if test ! -r $srcdir/$ac_unique_file; then
503 if test "$ac_srcdir_defaulted" = yes; then
504 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
506 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
509 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
511 # Prefer explicitly selected file to automatically selected ones.
512 if test -z "$sitefile"; then
513 if test -z "$CONFIG_SITE"; then
514 if test "x$prefix" != xNONE
; then
515 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
517 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
521 CONFIG_SITE
="$sitefile"
523 for ac_site_file
in $CONFIG_SITE; do
524 if test -r "$ac_site_file"; then
525 echo "loading site script $ac_site_file"
530 if test -r "$cache_file"; then
531 echo "loading cache $cache_file"
534 echo "creating cache $cache_file"
539 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
540 ac_cpp
='$CPP $CPPFLAGS'
541 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
542 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
543 cross_compiling
=$ac_cv_prog_cc_cross
547 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
548 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
549 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
556 ac_n
= ac_c
='\c' ac_t
=
559 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
560 echo "configure:561: checking for Cygwin environment" >&5
561 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
562 echo $ac_n "(cached) $ac_c" 1>&6
564 cat > conftest.
$ac_ext <<EOF
565 #line 566 "configure"
566 #include "confdefs.h"
571 #define __CYGWIN__ __CYGWIN32__
576 if { (eval echo configure
:577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
580 echo "configure: failed program was:" >&5
581 cat conftest.
$ac_ext >&5
589 echo "$ac_t""$ac_cv_cygwin" 1>&6
591 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
592 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
593 echo "configure:594: checking for mingw32 environment" >&5
594 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
595 echo $ac_n "(cached) $ac_c" 1>&6
597 cat > conftest.
$ac_ext <<EOF
598 #line 599 "configure"
599 #include "confdefs.h"
605 if { (eval echo configure
:606: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
609 echo "configure: failed program was:" >&5
610 cat conftest.
$ac_ext >&5
618 echo "$ac_t""$ac_cv_mingw32" 1>&6
620 test "$ac_cv_mingw32" = yes && MINGW32
=yes
626 # This works around the fact that libtool configuration may change LD
627 # for this particular configuration, but some shells, instead of
628 # keeping the changes in LD private, export them just because LD is
630 ORIGINAL_LD_FOR_MULTILIBS
=$LD
632 # Check whether --enable-multilib or --disable-multilib was given.
633 if test "${enable_multilib+set}" = set; then
634 enableval
="$enable_multilib"
635 case "${enableval}" in
638 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
645 if test "${srcdir}" = "."; then
646 if test "${with_target_subdir}" != "."; then
647 libffi_basedir
="${srcdir}/${with_multisrctop}.."
649 libffi_basedir
="${srcdir}/${with_multisrctop}"
652 libffi_basedir
="${srcdir}"
657 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
658 if test -f $ac_dir/install-sh
; then
660 ac_install_sh
="$ac_aux_dir/install-sh -c"
662 elif test -f $ac_dir/install.sh
; then
664 ac_install_sh
="$ac_aux_dir/install.sh -c"
668 if test -z "$ac_aux_dir"; then
669 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
671 ac_config_guess
=$ac_aux_dir/config.guess
672 ac_config_sub
=$ac_aux_dir/config.sub
673 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
676 # Make sure we can run config.sub.
677 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
678 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
681 echo $ac_n "checking host system type""... $ac_c" 1>&6
682 echo "configure:683: checking host system type" >&5
685 case "$host_alias" in
689 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
690 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
692 *) host_alias
=$nonopt ;;
696 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
697 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
698 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
699 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
700 echo "$ac_t""$host" 1>&6
703 # Check whether --enable-shared or --disable-shared was given.
704 if test "${enable_shared+set}" = set; then
705 enableval
="$enable_shared"
708 yes) enable_shared
=yes ;;
709 no
) enable_shared
=no
;;
712 # Look at the argument we got. We use all the common list separators.
713 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
714 for pkg
in $enableval; do
715 if test "X$pkg" = "X$p"; then
726 # Check whether --enable-static or --disable-static was given.
727 if test "${enable_static+set}" = set; then
728 enableval
="$enable_static"
731 yes) enable_static
=yes ;;
732 no
) enable_static
=no
;;
735 # Look at the argument we got. We use all the common list separators.
736 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
737 for pkg
in $enableval; do
738 if test "X$pkg" = "X$p"; then
749 # Check whether --enable-fast-install or --disable-fast-install was given.
750 if test "${enable_fast_install+set}" = set; then
751 enableval
="$enable_fast_install"
754 yes) enable_fast_install
=yes ;;
755 no
) enable_fast_install
=no
;;
757 enable_fast_install
=no
758 # Look at the argument we got. We use all the common list separators.
759 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
760 for pkg
in $enableval; do
761 if test "X$pkg" = "X$p"; then
762 enable_fast_install
=yes
769 enable_fast_install
=yes
772 echo $ac_n "checking build system type""... $ac_c" 1>&6
773 echo "configure:774: checking build system type" >&5
776 case "$build_alias" in
779 NONE
) build_alias
=$host_alias ;;
780 *) build_alias
=$nonopt ;;
784 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
785 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
786 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
787 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
788 echo "$ac_t""$build" 1>&6
790 # Extract the first word of "gcc", so it can be a program name with args.
791 set dummy gcc
; ac_word
=$2
792 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
793 echo "configure:794: checking for $ac_word" >&5
794 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
795 echo $ac_n "(cached) $ac_c" 1>&6
797 if test -n "$CC"; then
798 ac_cv_prog_CC
="$CC" # Let the user override the test.
800 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
802 for ac_dir
in $ac_dummy; do
803 test -z "$ac_dir" && ac_dir
=.
804 if test -f $ac_dir/$ac_word; then
813 if test -n "$CC"; then
814 echo "$ac_t""$CC" 1>&6
816 echo "$ac_t""no" 1>&6
819 if test -z "$CC"; then
820 # Extract the first word of "cc", so it can be a program name with args.
821 set dummy cc
; ac_word
=$2
822 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
823 echo "configure:824: checking for $ac_word" >&5
824 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
825 echo $ac_n "(cached) $ac_c" 1>&6
827 if test -n "$CC"; then
828 ac_cv_prog_CC
="$CC" # Let the user override the test.
830 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
833 for ac_dir
in $ac_dummy; do
834 test -z "$ac_dir" && ac_dir
=.
835 if test -f $ac_dir/$ac_word; then
836 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
845 if test $ac_prog_rejected = yes; then
846 # We found a bogon in the path, so make sure we never use it.
847 set dummy
$ac_cv_prog_CC
849 if test $# -gt 0; then
850 # We chose a different compiler from the bogus one.
851 # However, it has the same basename, so the bogon will be chosen
852 # first if we set CC to just the basename; use the full file name.
854 set dummy
"$ac_dir/$ac_word" "$@"
862 if test -n "$CC"; then
863 echo "$ac_t""$CC" 1>&6
865 echo "$ac_t""no" 1>&6
868 if test -z "$CC"; then
871 # Extract the first word of "cl", so it can be a program name with args.
872 set dummy cl
; ac_word
=$2
873 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
874 echo "configure:875: checking for $ac_word" >&5
875 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
876 echo $ac_n "(cached) $ac_c" 1>&6
878 if test -n "$CC"; then
879 ac_cv_prog_CC
="$CC" # Let the user override the test.
881 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
883 for ac_dir
in $ac_dummy; do
884 test -z "$ac_dir" && ac_dir
=.
885 if test -f $ac_dir/$ac_word; then
894 if test -n "$CC"; then
895 echo "$ac_t""$CC" 1>&6
897 echo "$ac_t""no" 1>&6
902 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
905 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
906 echo "configure:907: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
909 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
910 ac_cpp
='$CPP $CPPFLAGS'
911 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
912 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
913 cross_compiling
=$ac_cv_prog_cc_cross
915 cat > conftest.
$ac_ext << EOF
917 #line 918 "configure"
918 #include "confdefs.h"
922 if { (eval echo configure
:923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
923 ac_cv_prog_cc_works
=yes
924 # If we can't run a trivial program, we are probably using a cross compiler.
925 if (.
/conftest
; exit) 2>/dev
/null
; then
926 ac_cv_prog_cc_cross
=no
928 ac_cv_prog_cc_cross
=yes
931 echo "configure: failed program was:" >&5
932 cat conftest.
$ac_ext >&5
933 ac_cv_prog_cc_works
=no
937 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
938 ac_cpp
='$CPP $CPPFLAGS'
939 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
940 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
941 cross_compiling
=$ac_cv_prog_cc_cross
943 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
944 if test $ac_cv_prog_cc_works = no
; then
945 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
947 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
948 echo "configure:949: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
949 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
950 cross_compiling
=$ac_cv_prog_cc_cross
952 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
953 echo "configure:954: checking whether we are using GNU C" >&5
954 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
955 echo $ac_n "(cached) $ac_c" 1>&6
957 cat > conftest.c
<<EOF
962 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
969 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
971 if test $ac_cv_prog_gcc = yes; then
977 ac_test_CFLAGS
="${CFLAGS+set}"
978 ac_save_CFLAGS
="$CFLAGS"
980 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
981 echo "configure:982: checking whether ${CC-cc} accepts -g" >&5
982 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
983 echo $ac_n "(cached) $ac_c" 1>&6
985 echo 'void f(){}' > conftest.c
986 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
995 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
996 if test "$ac_test_CFLAGS" = set; then
997 CFLAGS
="$ac_save_CFLAGS"
998 elif test $ac_cv_prog_cc_g = yes; then
999 if test "$GCC" = yes; then
1005 if test "$GCC" = yes; then
1012 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1013 if test "${with_gnu_ld+set}" = set; then
1014 withval
="$with_gnu_ld"
1015 test "$withval" = no || with_gnu_ld
=yes
1021 if test "$GCC" = yes; then
1022 # Check if gcc -print-prog-name=ld gives a path.
1023 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1024 echo "configure:1025: checking for ld used by GCC" >&5
1027 # gcc leaves a trailing carriage return which upsets mingw
1028 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1030 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
1033 # Accept absolute paths.
1034 [\\/]* |
[A-Za-z
]:[\\/]*)
1035 re_direlt
='/[^/][^/]*/\.\./'
1036 # Canonicalize the path of ld
1037 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1038 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1039 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1041 test -z "$LD" && LD
="$ac_prog"
1044 # If it fails, then pretend we aren't using GCC.
1048 # If it is relative, then search for the first ld in PATH.
1052 elif test "$with_gnu_ld" = yes; then
1053 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1054 echo "configure:1055: checking for GNU ld" >&5
1056 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1057 echo "configure:1058: checking for non-GNU ld" >&5
1059 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1060 echo $ac_n "(cached) $ac_c" 1>&6
1062 if test -z "$LD"; then
1063 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1064 for ac_dir
in $PATH; do
1065 test -z "$ac_dir" && ac_dir
=.
1066 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1067 lt_cv_path_LD
="$ac_dir/$ac_prog"
1068 # Check to see if the program is GNU ld. I'd rather use --version,
1069 # but apparently some GNU ld's only accept -v.
1070 # Break only if it was the GNU/non-GNU ld that we prefer.
1071 if "$lt_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1072 test "$with_gnu_ld" != no
&& break
1074 test "$with_gnu_ld" != yes && break
1080 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
1085 if test -n "$LD"; then
1086 echo "$ac_t""$LD" 1>&6
1088 echo "$ac_t""no" 1>&6
1090 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1091 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1092 echo "configure:1093: checking if the linker ($LD) is GNU ld" >&5
1093 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1094 echo $ac_n "(cached) $ac_c" 1>&6
1096 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1097 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1098 lt_cv_prog_gnu_ld
=yes
1100 lt_cv_prog_gnu_ld
=no
1104 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1105 with_gnu_ld
=$lt_cv_prog_gnu_ld
1108 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1109 echo "configure:1110: checking for $LD option to reload object files" >&5
1110 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1111 echo $ac_n "(cached) $ac_c" 1>&6
1113 lt_cv_ld_reload_flag
='-r'
1116 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1117 reload_flag
=$lt_cv_ld_reload_flag
1118 test -n "$reload_flag" && reload_flag
=" $reload_flag"
1120 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1121 echo "configure:1122: checking for BSD-compatible nm" >&5
1122 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1123 echo $ac_n "(cached) $ac_c" 1>&6
1125 if test -n "$NM"; then
1126 # Let the user override the test.
1129 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1130 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1131 test -z "$ac_dir" && ac_dir
=.
1132 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
1133 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
1134 # Check to see if the nm accepts a BSD-compat flag.
1135 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1136 # nm: unknown option "B" ignored
1137 # Tru64's nm complains that /dev/null is an invalid object file
1138 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
1139 lt_cv_path_NM
="$tmp_nm -B"
1141 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1142 lt_cv_path_NM
="$tmp_nm -p"
1145 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1146 continue # so that we can try to find one that supports BSD flags
1151 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
1156 echo "$ac_t""$NM" 1>&6
1158 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1159 echo "configure:1160: checking whether ln -s works" >&5
1160 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1161 echo $ac_n "(cached) $ac_c" 1>&6
1164 if ln -s X conftestdata
2>/dev
/null
1167 ac_cv_prog_LN_S
="ln -s"
1172 LN_S
="$ac_cv_prog_LN_S"
1173 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1174 echo "$ac_t""yes" 1>&6
1176 echo "$ac_t""no" 1>&6
1179 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1180 echo "configure:1181: checking how to recognise dependant libraries" >&5
1181 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1182 echo $ac_n "(cached) $ac_c" 1>&6
1184 lt_cv_file_magic_cmd
='$MAGIC_CMD'
1185 lt_cv_file_magic_test_file
=
1186 lt_cv_deplibs_check_method
='unknown'
1187 # Need to set the preceding variable on all platforms that support
1188 # interlibrary dependencies.
1189 # 'none' -- dependencies not supported.
1190 # `unknown' -- same as none, but documents that we really don't know.
1191 # 'pass_all' -- all dependencies passed with no checks.
1192 # 'test_compile' -- check by making test program.
1193 # 'file_magic [regex]' -- check by looking for files in library path
1194 # which responds to the $file_magic_cmd with a given egrep regex.
1195 # If you have `file' or equivalent on your system and you're not sure
1196 # whether `pass_all' will *always* work, you probably want this one.
1200 lt_cv_deplibs_check_method
=pass_all
1204 lt_cv_deplibs_check_method
=pass_all
1208 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1209 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1210 lt_cv_file_magic_test_file
=/shlib
/libc.so
1213 cygwin
* | mingw
* |pw32
*)
1214 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
1215 lt_cv_file_magic_cmd
='$OBJDUMP -f'
1218 darwin
* | rhapsody
*)
1219 lt_cv_deplibs_check_method
='file_magic Mach-O dynamically linked shared library'
1220 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1222 rhapsody
* | darwin1.012
)
1223 lt_cv_file_magic_test_file
='/System/Library/Frameworks/System.framework/System'
1226 lt_cv_file_magic_test_file
='/usr/lib/libSystem.dylib'
1232 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1235 # Not sure whether the presence of OpenBSD here was a mistake.
1236 # Let's accept both of them until this is cleared up.
1237 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1238 lt_cv_file_magic_cmd
=/usr
/bin
/file
1239 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
1243 lt_cv_deplibs_check_method
=pass_all
1248 lt_cv_deplibs_check_method
=pass_all
1254 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1255 lt_cv_file_magic_cmd
=/usr
/bin
/file
1256 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
1259 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
1260 lt_cv_file_magic_cmd
=/usr
/bin
/file
1261 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
1269 # this will be overridden with pass_all, but let us keep it just in case
1270 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1274 *-32|
*"-32 ") libmagic
=32-bit;;
1275 *-n32|
*"-n32 ") libmagic
=N32
;;
1276 *-64|
*"-64 ") libmagic
=64-bit;;
1277 *) libmagic
=never-match
;;
1279 # this will be overridden with pass_all, but let us keep it just in case
1280 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1283 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
1284 lt_cv_deplibs_check_method
=pass_all
1287 # This must be Linux ELF.
1290 alpha
* | hppa
* | i
*86 | powerpc
* | sparc
* | ia64
* )
1291 lt_cv_deplibs_check_method
=pass_all
;;
1293 # glibc up to 2.1.1 does not perform some relocations on ARM
1294 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1296 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
1300 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1301 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1303 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so$'
1308 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1309 lt_cv_file_magic_cmd
=/usr
/bin
/file
1310 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
1313 osf3
* | osf4
* | osf5
*)
1314 # this will be overridden with pass_all, but let us keep it just in case
1315 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
1316 lt_cv_file_magic_test_file
=/shlib
/libc.so
1317 lt_cv_deplibs_check_method
=pass_all
1321 lt_cv_deplibs_check_method
=pass_all
1325 lt_cv_deplibs_check_method
=pass_all
1326 lt_cv_file_magic_test_file
=/lib
/libc.so
1329 sysv5uw
[78]* | sysv4
*uw2
*)
1330 lt_cv_deplibs_check_method
=pass_all
1333 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
1334 case $host_vendor in
1336 lt_cv_deplibs_check_method
=pass_all
1339 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]'
1340 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
1348 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1349 file_magic_cmd
=$lt_cv_file_magic_cmd
1350 deplibs_check_method
=$lt_cv_deplibs_check_method
1352 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1353 echo "configure:1354: checking for object suffix" >&5
1354 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1355 echo $ac_n "(cached) $ac_c" 1>&6
1358 echo 'int i = 1;' > conftest.
$ac_ext
1359 if { (eval echo configure
:1360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1360 for ac_file
in conftest.
*; do
1363 *) ac_cv_objext
=`echo $ac_file | sed -e s/conftest.//` ;;
1367 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1372 echo "$ac_t""$ac_cv_objext" 1>&6
1373 OBJEXT
=$ac_cv_objext
1374 ac_objext
=$ac_cv_objext
1378 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1379 echo "configure:1380: checking for executable suffix" >&5
1380 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1381 echo $ac_n "(cached) $ac_c" 1>&6
1383 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1387 echo 'int main () { return 0; }' > conftest.
$ac_ext
1389 if { (eval echo configure
:1390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1390 for file in conftest.
*; do
1392 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
1393 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1397 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1400 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1405 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1406 echo "$ac_t""${ac_cv_exeext}" 1>&6
1409 if test $host != $build; then
1410 ac_tool_prefix
=${host_alias}-
1415 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1417 # Only perform the check for file, if the check method requires it
1418 case $deplibs_check_method in
1420 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1421 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1422 echo "configure:1423: checking for ${ac_tool_prefix}file" >&5
1423 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1424 echo $ac_n "(cached) $ac_c" 1>&6
1428 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
1431 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
1434 ac_save_MAGIC_CMD
="$MAGIC_CMD"
1435 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1436 ac_dummy
="/usr/bin:$PATH"
1437 for ac_dir
in $ac_dummy; do
1438 test -z "$ac_dir" && ac_dir
=.
1439 if test -f $ac_dir/${ac_tool_prefix}file; then
1440 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
1441 if test -n "$file_magic_test_file"; then
1442 case $deplibs_check_method in
1444 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1445 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1446 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1447 egrep "$file_magic_regex" > /dev
/null
; then
1452 *** Warning: the command libtool uses to detect shared libraries,
1453 *** $file_magic_cmd, produces output that libtool cannot recognize.
1454 *** The result is that libtool may fail to recognize shared libraries
1455 *** as such. This will affect the creation of libtool libraries that
1456 *** depend on shared libraries, but programs linked with such libtool
1457 *** libraries will work regardless of this problem. Nevertheless, you
1458 *** may want to report the problem to your system manager and/or to
1459 *** bug-libtool@gnu.org
1469 MAGIC_CMD
="$ac_save_MAGIC_CMD"
1474 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1475 if test -n "$MAGIC_CMD"; then
1476 echo "$ac_t""$MAGIC_CMD" 1>&6
1478 echo "$ac_t""no" 1>&6
1481 if test -z "$lt_cv_path_MAGIC_CMD"; then
1482 if test -n "$ac_tool_prefix"; then
1483 echo $ac_n "checking for file""... $ac_c" 1>&6
1484 echo "configure:1485: checking for file" >&5
1485 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1486 echo $ac_n "(cached) $ac_c" 1>&6
1490 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
1493 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
1496 ac_save_MAGIC_CMD
="$MAGIC_CMD"
1497 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1498 ac_dummy
="/usr/bin:$PATH"
1499 for ac_dir
in $ac_dummy; do
1500 test -z "$ac_dir" && ac_dir
=.
1501 if test -f $ac_dir/file; then
1502 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
1503 if test -n "$file_magic_test_file"; then
1504 case $deplibs_check_method in
1506 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1507 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1508 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1509 egrep "$file_magic_regex" > /dev
/null
; then
1514 *** Warning: the command libtool uses to detect shared libraries,
1515 *** $file_magic_cmd, produces output that libtool cannot recognize.
1516 *** The result is that libtool may fail to recognize shared libraries
1517 *** as such. This will affect the creation of libtool libraries that
1518 *** depend on shared libraries, but programs linked with such libtool
1519 *** libraries will work regardless of this problem. Nevertheless, you
1520 *** may want to report the problem to your system manager and/or to
1521 *** bug-libtool@gnu.org
1531 MAGIC_CMD
="$ac_save_MAGIC_CMD"
1536 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1537 if test -n "$MAGIC_CMD"; then
1538 echo "$ac_t""$MAGIC_CMD" 1>&6
1540 echo "$ac_t""no" 1>&6
1552 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1553 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1554 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1555 echo "configure:1556: checking for $ac_word" >&5
1556 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1557 echo $ac_n "(cached) $ac_c" 1>&6
1559 if test -n "$RANLIB"; then
1560 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1562 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1564 for ac_dir
in $ac_dummy; do
1565 test -z "$ac_dir" && ac_dir
=.
1566 if test -f $ac_dir/$ac_word; then
1567 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1574 RANLIB
="$ac_cv_prog_RANLIB"
1575 if test -n "$RANLIB"; then
1576 echo "$ac_t""$RANLIB" 1>&6
1578 echo "$ac_t""no" 1>&6
1582 if test -z "$ac_cv_prog_RANLIB"; then
1583 if test -n "$ac_tool_prefix"; then
1584 # Extract the first word of "ranlib", so it can be a program name with args.
1585 set dummy ranlib
; ac_word
=$2
1586 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1587 echo "configure:1588: checking for $ac_word" >&5
1588 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1589 echo $ac_n "(cached) $ac_c" 1>&6
1591 if test -n "$RANLIB"; then
1592 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1594 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1596 for ac_dir
in $ac_dummy; do
1597 test -z "$ac_dir" && ac_dir
=.
1598 if test -f $ac_dir/$ac_word; then
1599 ac_cv_prog_RANLIB
="ranlib"
1604 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1607 RANLIB
="$ac_cv_prog_RANLIB"
1608 if test -n "$RANLIB"; then
1609 echo "$ac_t""$RANLIB" 1>&6
1611 echo "$ac_t""no" 1>&6
1619 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1620 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1621 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1622 echo "configure:1623: checking for $ac_word" >&5
1623 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1624 echo $ac_n "(cached) $ac_c" 1>&6
1626 if test -n "$STRIP"; then
1627 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1629 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1631 for ac_dir
in $ac_dummy; do
1632 test -z "$ac_dir" && ac_dir
=.
1633 if test -f $ac_dir/$ac_word; then
1634 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
1641 STRIP
="$ac_cv_prog_STRIP"
1642 if test -n "$STRIP"; then
1643 echo "$ac_t""$STRIP" 1>&6
1645 echo "$ac_t""no" 1>&6
1649 if test -z "$ac_cv_prog_STRIP"; then
1650 if test -n "$ac_tool_prefix"; then
1651 # Extract the first word of "strip", so it can be a program name with args.
1652 set dummy strip
; ac_word
=$2
1653 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1654 echo "configure:1655: checking for $ac_word" >&5
1655 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1656 echo $ac_n "(cached) $ac_c" 1>&6
1658 if test -n "$STRIP"; then
1659 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1661 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1663 for ac_dir
in $ac_dummy; do
1664 test -z "$ac_dir" && ac_dir
=.
1665 if test -f $ac_dir/$ac_word; then
1666 ac_cv_prog_STRIP
="strip"
1671 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
=":"
1674 STRIP
="$ac_cv_prog_STRIP"
1675 if test -n "$STRIP"; then
1676 echo "$ac_t""$STRIP" 1>&6
1678 echo "$ac_t""no" 1>&6
1687 # Check for any special flags to pass to ltconfig.
1688 libtool_flags
="--cache-file=$cache_file"
1689 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1690 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1691 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1692 test "$GCC" = yes && libtool_flags
="$libtool_flags --with-gcc"
1693 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1696 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1697 if test "${enable_libtool_lock+set}" = set; then
1698 enableval
="$enable_libtool_lock"
1702 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1703 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1705 # Check whether --with-pic or --without-pic was given.
1706 if test "${with_pic+set}" = set; then
1713 test x
"$pic_mode" = xyes
&& libtool_flags
="$libtool_flags --prefer-pic"
1714 test x
"$pic_mode" = xno
&& libtool_flags
="$libtool_flags --prefer-non-pic"
1716 # Some flags need to be propagated to the compiler or linker for good
1720 # Find out which ABI we are using.
1721 echo '#line 1722 "configure"' > conftest.
$ac_ext
1722 if { (eval echo configure
:1723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1723 case `/usr/bin/file conftest.$ac_objext` in
1739 # Find out which ABI we are using.
1740 echo 'int i;' > conftest.
$ac_ext
1741 if { (eval echo configure
:1742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1742 case "`/usr/bin/file conftest.o`" in
1755 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1756 SAVE_CFLAGS
="$CFLAGS"
1757 CFLAGS
="$CFLAGS -belf"
1758 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1759 echo "configure:1760: checking whether the C compiler needs -belf" >&5
1760 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1761 echo $ac_n "(cached) $ac_c" 1>&6
1765 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1766 ac_cpp
='$CPP $CPPFLAGS'
1767 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1768 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1769 cross_compiling
=$ac_cv_prog_cc_cross
1771 cat > conftest.
$ac_ext <<EOF
1772 #line 1773 "configure"
1773 #include "confdefs.h"
1779 if { (eval echo configure
:1780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1781 lt_cv_cc_needs_belf
=yes
1783 echo "configure: failed program was:" >&5
1784 cat conftest.
$ac_ext >&5
1786 lt_cv_cc_needs_belf
=no
1790 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1791 ac_cpp
='$CPP $CPPFLAGS'
1792 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1793 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1794 cross_compiling
=$ac_cv_prog_cc_cross
1798 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1799 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
1800 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1801 CFLAGS
="$SAVE_CFLAGS"
1809 # Save cache, so that ltconfig can load it
1810 cat > confcache
<<\EOF
1811 # This file is a shell script that caches the results of configure
1812 # tests run on this system so they can be shared between configure
1813 # scripts and configure runs. It is not useful on other systems.
1814 # If it contains results you don't want to keep, you may remove or edit it.
1816 # By default, configure uses ./config.cache as the cache file,
1817 # creating it if it does not exist already. You can give configure
1818 # the --cache-file=FILE option to use a different cache file; that is
1819 # what configure does when it calls configure scripts in
1820 # subdirectories, so they share the cache.
1821 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1822 # config.status only pays attention to the cache file if you give it the
1823 # --recheck option to rerun configure.
1826 # The following way of writing the cache mishandles newlines in values,
1827 # but we know of no workaround that is simple, portable, and efficient.
1828 # So, don't put newlines in cache variables' values.
1829 # Ultrix sh set writes to stderr and can't be redirected directly,
1830 # and sets the high bit in the cache file unless we assign to the vars.
1832 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1834 # `set' does not quote correctly, so add quotes (double-quote substitution
1835 # turns \\\\ into \\, and sed turns \\ into \).
1837 -e "s/'/'\\\\''/g" \
1838 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1841 # `set' quotes correctly as required by POSIX, so do not add quotes.
1842 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1845 if cmp -s $cache_file confcache
; then
1848 if test -w $cache_file; then
1849 echo "updating cache $cache_file"
1850 cat confcache
> $cache_file
1852 echo "not updating unwritable cache $cache_file"
1858 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1859 AR
="$AR" LTCC
="$CC" CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1860 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
1861 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
1862 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
1863 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
1864 deplibs_check_method
="$deplibs_check_method" file_magic_cmd
="$file_magic_cmd" \
1865 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1866 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh
$host \
1867 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1869 # Reload cache, that may have been modified by ltconfig
1870 if test -r "$cache_file"; then
1871 echo "loading cache $cache_file"
1874 echo "creating cache $cache_file"
1879 # This can be used to rebuild libtool when needed
1880 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
1882 # Always use our own libtool.
1883 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1885 # Redirect the config.log output again, so that the ltconfig log is not
1886 # clobbered by the next message.
1887 exec 5>>.
/config.log
1895 # Find a good install program. We prefer a C program (faster),
1896 # so one script is as good as another. But avoid the broken or
1897 # incompatible versions:
1898 # SysV /etc/install, /usr/sbin/install
1899 # SunOS /usr/etc/install
1900 # IRIX /sbin/install
1902 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1903 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1904 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1905 # ./install, which can be erroneously created by make from ./install.sh.
1906 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1907 echo "configure:1908: checking for a BSD compatible install" >&5
1908 if test -z "$INSTALL"; then
1909 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1910 echo $ac_n "(cached) $ac_c" 1>&6
1912 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1913 for ac_dir
in $PATH; do
1914 # Account for people who put trailing slashes in PATH elements.
1916 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1918 # OSF1 and SCO ODT 3.0 have their own names for install.
1919 # Don't use installbsd from OSF since it installs stuff as root
1921 for ac_prog
in ginstall scoinst
install; do
1922 if test -f $ac_dir/$ac_prog; then
1923 if test $ac_prog = install &&
1924 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1925 # AIX install. It has an incompatible calling convention.
1928 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1939 if test "${ac_cv_path_install+set}" = set; then
1940 INSTALL
="$ac_cv_path_install"
1942 # As a last resort, use the slow shell script. We don't cache a
1943 # path for INSTALL within a source directory, because that will
1944 # break other packages using the cache if that directory is
1945 # removed, or if the path is relative.
1946 INSTALL
="$ac_install_sh"
1949 echo "$ac_t""$INSTALL" 1>&6
1951 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1952 # It thinks the first close brace ends the variable substitution.
1953 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1955 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1957 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1959 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1960 echo "configure:1961: checking whether build environment is sane" >&5
1963 echo timestamp
> conftestfile
1964 # Do `set' in a subshell so we don't clobber the current shell's
1965 # arguments. Must try -L first in case configure is actually a
1966 # symlink; some systems play weird games with the mod time of symlinks
1967 # (eg FreeBSD returns the mod time of the symlink's containing
1970 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1971 if test "$*" = "X"; then
1973 set X
`ls -t $srcdir/configure conftestfile`
1975 if test "$*" != "X $srcdir/configure conftestfile" \
1976 && test "$*" != "X conftestfile $srcdir/configure"; then
1978 # If neither matched, then we have a broken ls. This can happen
1979 # if, for instance, CONFIG_SHELL is bash and it inherits a
1980 # broken ls alias from the environment. This has actually
1981 # happened. Such a system could not be considered "sane".
1982 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1983 alias in your environment" 1>&2; exit 1; }
1986 test "$2" = conftestfile
1992 { echo "configure: error: newly created file is older than distributed files!
1993 Check your system clock" 1>&2; exit 1; }
1996 echo "$ac_t""yes" 1>&6
1997 if test "$program_transform_name" = s
,x
,x
,; then
1998 program_transform_name
=
2000 # Double any \ or $. echo might interpret backslashes.
2001 cat <<\EOF_SED
> conftestsed
2002 s
,\\,\\\\,g
; s
,\$
,$$
,g
2004 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
2007 test "$program_prefix" != NONE
&&
2008 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
2009 # Use a double $ so make ignores it.
2010 test "$program_suffix" != NONE
&&
2011 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
2013 # sed with no file args requires a program.
2014 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
2016 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
2017 echo "configure:2018: checking whether ${MAKE-make} sets \${MAKE}" >&5
2018 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
2019 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
2020 echo $ac_n "(cached) $ac_c" 1>&6
2022 cat > conftestmake
<<\EOF
2024 @
echo 'ac_maketemp="${MAKE}"'
2026 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2027 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2028 if test -n "$ac_maketemp"; then
2029 eval ac_cv_prog_make_
${ac_make}_set
=yes
2031 eval ac_cv_prog_make_
${ac_make}_set
=no
2035 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2036 echo "$ac_t""yes" 1>&6
2039 echo "$ac_t""no" 1>&6
2040 SET_MAKE
="MAKE=${MAKE-make}"
2048 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
2049 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
2054 missing_dir
=`cd $ac_aux_dir && pwd`
2055 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
2056 echo "configure:2057: checking for working aclocal" >&5
2057 # Run test in a subshell; some versions of sh will print an error if
2058 # an executable is not found, even if stderr is redirected.
2059 # Redirect stdin to placate older versions of autoconf. Sigh.
2060 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
2062 echo "$ac_t""found" 1>&6
2064 ACLOCAL
="$missing_dir/missing aclocal"
2065 echo "$ac_t""missing" 1>&6
2068 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
2069 echo "configure:2070: checking for working autoconf" >&5
2070 # Run test in a subshell; some versions of sh will print an error if
2071 # an executable is not found, even if stderr is redirected.
2072 # Redirect stdin to placate older versions of autoconf. Sigh.
2073 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
2075 echo "$ac_t""found" 1>&6
2077 AUTOCONF
="$missing_dir/missing autoconf"
2078 echo "$ac_t""missing" 1>&6
2081 echo $ac_n "checking for working automake""... $ac_c" 1>&6
2082 echo "configure:2083: checking for working automake" >&5
2083 # Run test in a subshell; some versions of sh will print an error if
2084 # an executable is not found, even if stderr is redirected.
2085 # Redirect stdin to placate older versions of autoconf. Sigh.
2086 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
2088 echo "$ac_t""found" 1>&6
2090 AUTOMAKE
="$missing_dir/missing automake"
2091 echo "$ac_t""missing" 1>&6
2094 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
2095 echo "configure:2096: checking for working autoheader" >&5
2096 # Run test in a subshell; some versions of sh will print an error if
2097 # an executable is not found, even if stderr is redirected.
2098 # Redirect stdin to placate older versions of autoconf. Sigh.
2099 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
2100 AUTOHEADER
=autoheader
2101 echo "$ac_t""found" 1>&6
2103 AUTOHEADER
="$missing_dir/missing autoheader"
2104 echo "$ac_t""missing" 1>&6
2107 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
2108 echo "configure:2109: checking for working makeinfo" >&5
2109 # Run test in a subshell; some versions of sh will print an error if
2110 # an executable is not found, even if stderr is redirected.
2111 # Redirect stdin to placate older versions of autoconf. Sigh.
2112 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
2114 echo "$ac_t""found" 1>&6
2116 MAKEINFO
="$missing_dir/missing makeinfo"
2117 echo "$ac_t""missing" 1>&6
2124 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2125 echo "configure:2126: checking for executable suffix" >&5
2126 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2127 echo $ac_n "(cached) $ac_c" 1>&6
2129 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
2133 echo 'int main () { return 0; }' > conftest.
$ac_ext
2135 if { (eval echo configure
:2136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2136 for file in conftest.
*; do
2138 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
2139 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
2143 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2146 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
2151 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
2152 echo "$ac_t""${ac_cv_exeext}" 1>&6
2155 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2156 echo "configure:2157: checking whether to enable maintainer-specific portions of Makefiles" >&5
2157 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2158 if test "${enable_maintainer_mode+set}" = set; then
2159 enableval
="$enable_maintainer_mode"
2160 USE_MAINTAINER_MODE
=$enableval
2162 USE_MAINTAINER_MODE
=no
2165 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2168 if test $USE_MAINTAINER_MODE = yes; then
2169 MAINTAINER_MODE_TRUE
=
2170 MAINTAINER_MODE_FALSE
='#'
2172 MAINTAINER_MODE_TRUE
='#'
2173 MAINTAINER_MODE_FALSE
=
2175 MAINT
=$MAINTAINER_MODE_TRUE
2179 # Extract the first word of "gcc", so it can be a program name with args.
2180 set dummy gcc
; ac_word
=$2
2181 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2182 echo "configure:2183: checking for $ac_word" >&5
2183 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2184 echo $ac_n "(cached) $ac_c" 1>&6
2186 if test -n "$CC"; then
2187 ac_cv_prog_CC
="$CC" # Let the user override the test.
2189 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2191 for ac_dir
in $ac_dummy; do
2192 test -z "$ac_dir" && ac_dir
=.
2193 if test -f $ac_dir/$ac_word; then
2202 if test -n "$CC"; then
2203 echo "$ac_t""$CC" 1>&6
2205 echo "$ac_t""no" 1>&6
2208 if test -z "$CC"; then
2209 # Extract the first word of "cc", so it can be a program name with args.
2210 set dummy cc
; ac_word
=$2
2211 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2212 echo "configure:2213: checking for $ac_word" >&5
2213 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2214 echo $ac_n "(cached) $ac_c" 1>&6
2216 if test -n "$CC"; then
2217 ac_cv_prog_CC
="$CC" # Let the user override the test.
2219 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2222 for ac_dir
in $ac_dummy; do
2223 test -z "$ac_dir" && ac_dir
=.
2224 if test -f $ac_dir/$ac_word; then
2225 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2226 ac_prog_rejected
=yes
2234 if test $ac_prog_rejected = yes; then
2235 # We found a bogon in the path, so make sure we never use it.
2236 set dummy
$ac_cv_prog_CC
2238 if test $# -gt 0; then
2239 # We chose a different compiler from the bogus one.
2240 # However, it has the same basename, so the bogon will be chosen
2241 # first if we set CC to just the basename; use the full file name.
2243 set dummy
"$ac_dir/$ac_word" "$@"
2251 if test -n "$CC"; then
2252 echo "$ac_t""$CC" 1>&6
2254 echo "$ac_t""no" 1>&6
2257 if test -z "$CC"; then
2258 case "`uname -s`" in
2260 # Extract the first word of "cl", so it can be a program name with args.
2261 set dummy cl
; ac_word
=$2
2262 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2263 echo "configure:2264: checking for $ac_word" >&5
2264 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2265 echo $ac_n "(cached) $ac_c" 1>&6
2267 if test -n "$CC"; then
2268 ac_cv_prog_CC
="$CC" # Let the user override the test.
2270 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2272 for ac_dir
in $ac_dummy; do
2273 test -z "$ac_dir" && ac_dir
=.
2274 if test -f $ac_dir/$ac_word; then
2283 if test -n "$CC"; then
2284 echo "$ac_t""$CC" 1>&6
2286 echo "$ac_t""no" 1>&6
2291 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2294 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2295 echo "configure:2296: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2298 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2299 ac_cpp
='$CPP $CPPFLAGS'
2300 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2301 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2302 cross_compiling
=$ac_cv_prog_cc_cross
2304 cat > conftest.
$ac_ext << EOF
2306 #line 2307 "configure"
2307 #include "confdefs.h"
2311 if { (eval echo configure
:2312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2312 ac_cv_prog_cc_works
=yes
2313 # If we can't run a trivial program, we are probably using a cross compiler.
2314 if (.
/conftest
; exit) 2>/dev
/null
; then
2315 ac_cv_prog_cc_cross
=no
2317 ac_cv_prog_cc_cross
=yes
2320 echo "configure: failed program was:" >&5
2321 cat conftest.
$ac_ext >&5
2322 ac_cv_prog_cc_works
=no
2326 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2327 ac_cpp
='$CPP $CPPFLAGS'
2328 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2329 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2330 cross_compiling
=$ac_cv_prog_cc_cross
2332 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2333 if test $ac_cv_prog_cc_works = no
; then
2334 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2336 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2337 echo "configure:2338: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2338 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2339 cross_compiling
=$ac_cv_prog_cc_cross
2341 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2342 echo "configure:2343: checking whether we are using GNU C" >&5
2343 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2344 echo $ac_n "(cached) $ac_c" 1>&6
2346 cat > conftest.c
<<EOF
2351 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2352: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2358 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2360 if test $ac_cv_prog_gcc = yes; then
2366 ac_test_CFLAGS
="${CFLAGS+set}"
2367 ac_save_CFLAGS
="$CFLAGS"
2369 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2370 echo "configure:2371: checking whether ${CC-cc} accepts -g" >&5
2371 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2372 echo $ac_n "(cached) $ac_c" 1>&6
2374 echo 'void f(){}' > conftest.c
2375 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2384 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2385 if test "$ac_test_CFLAGS" = set; then
2386 CFLAGS
="$ac_save_CFLAGS"
2387 elif test $ac_cv_prog_cc_g = yes; then
2388 if test "$GCC" = yes; then
2394 if test "$GCC" = yes; then
2409 mips-sgi-irix5.
* | mips-sgi-irix6.
*) TARGET
=MIPS
; TARGETDIR
=mips
;;
2410 i
*86-*-linux*) TARGET
=X86
; TARGETDIR
=x86
;;
2411 i
*86-*-solaris*) TARGET
=X86
; TARGETDIR
=x86
;;
2412 i
*86-*-beos*) TARGET
=X86
; TARGETDIR
=x86
;;
2413 i
*86-*-freebsd*) TARGET
=X86
; TARGETDIR
=x86
;;
2414 i
*86-*-netbsdelf*) TARGET
=X86
; TARGETDIR
=x86
;;
2415 i
*86-*-win32*) TARGET
=X86_WIN32
; TARGETDIR
=x86
;;
2416 i
*86-*-cygwin*) TARGET
=X86_WIN32
; TARGETDIR
=x86
;;
2417 i
*86-*-mingw*) TARGET
=X86_WIN32
; TARGETDIR
=x86
;;
2418 sparc-sun-4
*) TARGET
=SPARC
; TARGETDIR
=sparc
;;
2419 sparc
*-sun-*) TARGET
=SPARC
; TARGETDIR
=sparc
;;
2420 sparc-
*-linux* | sparc-
*-netbsdelf*) TARGET
=SPARC
; TARGETDIR
=sparc
;;
2421 sparc64-
*-linux* | sparc64-
*-netbsd*) TARGET
=SPARC
; TARGETDIR
=sparc
;;
2422 alpha
*-*-linux* | alpha
*-*-osf* | alpha
*-*-freebsd* | alpha
*-*-netbsd*) TARGET
=ALPHA
; TARGETDIR
=alpha
;;
2423 ia64
*-*-*) TARGET
=IA64
; TARGETDIR
=ia64
;;
2424 m68k-
*-linux*) TARGET
=M68K
; TARGETDIR
=m68k
;;
2426 mips
*-*-linux*) TARGET
=MIPS_LINUX
; TARGETDIR
=mips
;;
2427 powerpc-
*-linux* | powerpc-
*-sysv*) TARGET
=POWERPC
; TARGETDIR
=powerpc
;;
2428 powerpc-
*-beos*) TARGET
=POWERPC
; TARGETDIR
=powerpc
;;
2429 powerpc-
*-darwin*) TARGET
=POWERPC_DARWIN
; TARGETDIR
=powerpc
;;
2430 powerpc-
*-aix*) TARGET
=POWERPC_AIX
; TARGETDIR
=powerpc
;;
2431 rs6000-
*-aix*) TARGET
=POWERPC_AIX
; TARGETDIR
=powerpc
;;
2432 arm
*-*-linux-*) TARGET
=ARM
; TARGETDIR
=arm
;;
2433 s390-
*-linux-*) TARGET
=S390
; TARGETDIR
=s390
;;
2434 s390x-
*-linux-*) TARGET
=S390
; TARGETDIR
=s390
;;
2435 x86_64-
*-linux*) TARGET
=X86_64
; TARGETDIR
=x86
;;
2436 sh-
*-linux* | sh
[34]*-*-linux*) TARGET
=SH
; TARGETDIR
=sh
;;
2439 if test $TARGETDIR = unknown
; then
2440 { echo "configure: error: "libffi has not been ported to
$host.
"" 1>&2; exit 1; }
2445 if test ${TARGET}${ac_cv_prog_gcc} = MIPSyes
; then
2454 if test ${TARGET}${ac_cv_prog_gcc} = MIPSno
; then
2463 if test x
$TARGET = xMIPS_LINUX
; then
2465 MIPS_LINUX_FALSE
='#'
2472 if test x
$TARGET = xSPARC
; then
2481 if test x
$TARGET = xX86
; then
2490 if test x
$TARGET = xX86_WIN32
; then
2499 if test x
$TARGET = xALPHA
; then
2508 if test x
$TARGET = xIA64
; then
2517 if test x
$TARGET = xM68K
; then
2526 if test x
$TARGET = xPOWERPC
; then
2535 if test x
$TARGET = xPOWERPC_AIX
; then
2537 POWERPC_AIX_FALSE
='#'
2539 POWERPC_AIX_TRUE
='#'
2544 if test x
$TARGET = xPOWERPC_DARWIN
; then
2545 POWERPC_DARWIN_TRUE
=
2546 POWERPC_DARWIN_FALSE
='#'
2548 POWERPC_DARWIN_TRUE
='#'
2549 POWERPC_DARWIN_FALSE
=
2553 if test x
$TARGET = xARM
; then
2562 if test x
$TARGET = xS390
; then
2571 if test x
$TARGET = xX86_64
; then
2580 if test x
$TARGET = xSH
; then
2588 if test x
$TARGET = xMIPS_LINUX
; then
2592 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2593 echo "configure:2594: checking how to run the C preprocessor" >&5
2594 # On Suns, sometimes $CPP names a directory.
2595 if test -n "$CPP" && test -d "$CPP"; then
2598 if test -z "$CPP"; then
2599 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2600 echo $ac_n "(cached) $ac_c" 1>&6
2602 # This must be in double quotes, not single quotes, because CPP may get
2603 # substituted into the Makefile and "${CC-cc}" will confuse make.
2605 # On the NeXT, cc -E runs the code through the compiler's parser,
2606 # not just through cpp.
2607 cat > conftest.
$ac_ext <<EOF
2608 #line 2609 "configure"
2609 #include "confdefs.h"
2613 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2614 { (eval echo configure
:2615: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2615 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2616 if test -z "$ac_err"; then
2620 echo "configure: failed program was:" >&5
2621 cat conftest.
$ac_ext >&5
2623 CPP
="${CC-cc} -E -traditional-cpp"
2624 cat > conftest.
$ac_ext <<EOF
2625 #line 2626 "configure"
2626 #include "confdefs.h"
2630 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2631 { (eval echo configure
:2632: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2632 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2633 if test -z "$ac_err"; then
2637 echo "configure: failed program was:" >&5
2638 cat conftest.
$ac_ext >&5
2640 CPP
="${CC-cc} -nologo -E"
2641 cat > conftest.
$ac_ext <<EOF
2642 #line 2643 "configure"
2643 #include "confdefs.h"
2647 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2648 { (eval echo configure
:2649: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2649 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2650 if test -z "$ac_err"; then
2654 echo "configure: failed program was:" >&5
2655 cat conftest.
$ac_ext >&5
2664 ac_cv_prog_CPP
="$CPP"
2666 CPP
="$ac_cv_prog_CPP"
2668 ac_cv_prog_CPP
="$CPP"
2670 echo "$ac_t""$CPP" 1>&6
2672 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2673 echo "configure:2674: checking for ANSI C header files" >&5
2674 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2675 echo $ac_n "(cached) $ac_c" 1>&6
2677 cat > conftest.
$ac_ext <<EOF
2678 #line 2679 "configure"
2679 #include "confdefs.h"
2685 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2686 { (eval echo configure
:2687: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2687 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2688 if test -z "$ac_err"; then
2690 ac_cv_header_stdc
=yes
2693 echo "configure: failed program was:" >&5
2694 cat conftest.
$ac_ext >&5
2696 ac_cv_header_stdc
=no
2700 if test $ac_cv_header_stdc = yes; then
2701 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2702 cat > conftest.
$ac_ext <<EOF
2703 #line 2704 "configure"
2704 #include "confdefs.h"
2707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2708 egrep "memchr" >/dev
/null
2>&1; then
2712 ac_cv_header_stdc
=no
2718 if test $ac_cv_header_stdc = yes; then
2719 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2720 cat > conftest.
$ac_ext <<EOF
2721 #line 2722 "configure"
2722 #include "confdefs.h"
2725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2726 egrep "free" >/dev
/null
2>&1; then
2730 ac_cv_header_stdc
=no
2736 if test $ac_cv_header_stdc = yes; then
2737 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2738 if test "$cross_compiling" = yes; then
2741 cat > conftest.
$ac_ext <<EOF
2742 #line 2743 "configure"
2743 #include "confdefs.h"
2745 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2746 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2747 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2748 int main () { int i; for (i = 0; i < 256; i++)
2749 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2753 if { (eval echo configure
:2754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2757 echo "configure: failed program was:" >&5
2758 cat conftest.
$ac_ext >&5
2760 ac_cv_header_stdc
=no
2768 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2769 if test $ac_cv_header_stdc = yes; then
2770 cat >> confdefs.h
<<\EOF
2771 #define STDC_HEADERS 1
2776 for ac_func
in memcpy
2778 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2779 echo "configure:2780: checking for $ac_func" >&5
2780 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2781 echo $ac_n "(cached) $ac_c" 1>&6
2783 cat > conftest.
$ac_ext <<EOF
2784 #line 2785 "configure"
2785 #include "confdefs.h"
2786 /* System header to define __stub macros and hopefully few prototypes,
2787 which can conflict with char $ac_func(); below. */
2789 /* Override any gcc2 internal prototype to avoid an error. */
2790 /* We use char because int might match the return type of a gcc2
2791 builtin and then its argument prototype would still apply. */
2796 /* The GNU C library defines this for functions which it implements
2797 to always fail with ENOSYS. Some functions are actually named
2798 something starting with __ and the normal name is an alias. */
2799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2807 if { (eval echo configure
:2808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2809 eval "ac_cv_func_$ac_func=yes"
2811 echo "configure: failed program was:" >&5
2812 cat conftest.
$ac_ext >&5
2814 eval "ac_cv_func_$ac_func=no"
2819 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2820 echo "$ac_t""yes" 1>&6
2821 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2822 cat >> confdefs.h
<<EOF
2823 #define $ac_tr_func 1
2827 echo "$ac_t""no" 1>&6
2831 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2832 # for constant arguments. Useless!
2833 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2834 echo "configure:2835: checking for working alloca.h" >&5
2835 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2836 echo $ac_n "(cached) $ac_c" 1>&6
2838 cat > conftest.
$ac_ext <<EOF
2839 #line 2840 "configure"
2840 #include "confdefs.h"
2843 char *p = alloca(2 * sizeof(int));
2846 if { (eval echo configure
:2847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2848 ac_cv_header_alloca_h
=yes
2850 echo "configure: failed program was:" >&5
2851 cat conftest.
$ac_ext >&5
2853 ac_cv_header_alloca_h
=no
2858 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2859 if test $ac_cv_header_alloca_h = yes; then
2860 cat >> confdefs.h
<<\EOF
2861 #define HAVE_ALLOCA_H 1
2866 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2867 echo "configure:2868: checking for alloca" >&5
2868 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2869 echo $ac_n "(cached) $ac_c" 1>&6
2871 cat > conftest.
$ac_ext <<EOF
2872 #line 2873 "configure"
2873 #include "confdefs.h"
2876 # define alloca __builtin_alloca
2879 # include <malloc.h>
2880 # define alloca _alloca
2883 # include <alloca.h>
2888 # ifndef alloca /* predefined by HP cc +Olibcalls */
2897 char *p = (char *) alloca(1);
2900 if { (eval echo configure
:2901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2902 ac_cv_func_alloca_works
=yes
2904 echo "configure: failed program was:" >&5
2905 cat conftest.
$ac_ext >&5
2907 ac_cv_func_alloca_works
=no
2912 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2913 if test $ac_cv_func_alloca_works = yes; then
2914 cat >> confdefs.h
<<\EOF
2915 #define HAVE_ALLOCA 1
2920 if test $ac_cv_func_alloca_works = no
; then
2921 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2922 # that cause trouble. Some versions do not even contain alloca or
2923 # contain a buggy version. If you still want to use their alloca,
2924 # use ar to extract alloca.o from them instead of compiling alloca.c.
2925 ALLOCA
=alloca.
${ac_objext}
2926 cat >> confdefs.h
<<\EOF
2931 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2932 echo "configure:2933: checking whether alloca needs Cray hooks" >&5
2933 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2934 echo $ac_n "(cached) $ac_c" 1>&6
2936 cat > conftest.
$ac_ext <<EOF
2937 #line 2938 "configure"
2938 #include "confdefs.h"
2939 #if defined(CRAY) && ! defined(CRAY2)
2946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2947 egrep "webecray" >/dev
/null
2>&1; then
2958 echo "$ac_t""$ac_cv_os_cray" 1>&6
2959 if test $ac_cv_os_cray = yes; then
2960 for ac_func
in _getb67 GETB67 getb67
; do
2961 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2962 echo "configure:2963: checking for $ac_func" >&5
2963 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2964 echo $ac_n "(cached) $ac_c" 1>&6
2966 cat > conftest.
$ac_ext <<EOF
2967 #line 2968 "configure"
2968 #include "confdefs.h"
2969 /* System header to define __stub macros and hopefully few prototypes,
2970 which can conflict with char $ac_func(); below. */
2972 /* Override any gcc2 internal prototype to avoid an error. */
2973 /* We use char because int might match the return type of a gcc2
2974 builtin and then its argument prototype would still apply. */
2979 /* The GNU C library defines this for functions which it implements
2980 to always fail with ENOSYS. Some functions are actually named
2981 something starting with __ and the normal name is an alias. */
2982 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2990 if { (eval echo configure
:2991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2992 eval "ac_cv_func_$ac_func=yes"
2994 echo "configure: failed program was:" >&5
2995 cat conftest.
$ac_ext >&5
2997 eval "ac_cv_func_$ac_func=no"
3002 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3003 echo "$ac_t""yes" 1>&6
3004 cat >> confdefs.h
<<EOF
3005 #define CRAY_STACKSEG_END $ac_func
3010 echo "$ac_t""no" 1>&6
3016 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3017 echo "configure:3018: checking stack direction for C alloca" >&5
3018 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3019 echo $ac_n "(cached) $ac_c" 1>&6
3021 if test "$cross_compiling" = yes; then
3022 ac_cv_c_stack_direction
=0
3024 cat > conftest.
$ac_ext <<EOF
3025 #line 3026 "configure"
3026 #include "confdefs.h"
3027 find_stack_direction ()
3029 static char *addr = 0;
3034 return find_stack_direction ();
3037 return (&dummy > addr) ? 1 : -1;
3041 exit (find_stack_direction() < 0);
3044 if { (eval echo configure
:3045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3046 ac_cv_c_stack_direction
=1
3048 echo "configure: failed program was:" >&5
3049 cat conftest.
$ac_ext >&5
3051 ac_cv_c_stack_direction
=-1
3058 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3059 cat >> confdefs.h
<<EOF
3060 #define STACK_DIRECTION $ac_cv_c_stack_direction
3066 echo $ac_n "checking size of short""... $ac_c" 1>&6
3067 echo "configure:3068: checking size of short" >&5
3068 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
3069 echo $ac_n "(cached) $ac_c" 1>&6
3071 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3072 cat > conftest.
$ac_ext <<EOF
3073 #line 3074 "configure"
3074 #include "confdefs.h"
3075 #include "confdefs.h"
3076 #include <sys/types.h>
3080 switch (0) case 0: case (sizeof (short) == $ac_size):;
3083 if { (eval echo configure
:3084: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3085 ac_cv_sizeof_short
=$ac_size
3087 echo "configure: failed program was:" >&5
3088 cat conftest.
$ac_ext >&5
3091 if test x
$ac_cv_sizeof_short != x
; then break; fi
3096 if test x
$ac_cv_sizeof_short = x
; then
3097 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
3099 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3100 cat >> confdefs.h
<<EOF
3101 #define SIZEOF_SHORT $ac_cv_sizeof_short
3105 echo $ac_n "checking size of int""... $ac_c" 1>&6
3106 echo "configure:3107: checking size of int" >&5
3107 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
3108 echo $ac_n "(cached) $ac_c" 1>&6
3110 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3111 cat > conftest.
$ac_ext <<EOF
3112 #line 3113 "configure"
3113 #include "confdefs.h"
3114 #include "confdefs.h"
3115 #include <sys/types.h>
3119 switch (0) case 0: case (sizeof (int) == $ac_size):;
3122 if { (eval echo configure
:3123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3124 ac_cv_sizeof_int
=$ac_size
3126 echo "configure: failed program was:" >&5
3127 cat conftest.
$ac_ext >&5
3130 if test x
$ac_cv_sizeof_int != x
; then break; fi
3135 if test x
$ac_cv_sizeof_int = x
; then
3136 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
3138 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3139 cat >> confdefs.h
<<EOF
3140 #define SIZEOF_INT $ac_cv_sizeof_int
3144 echo $ac_n "checking size of long""... $ac_c" 1>&6
3145 echo "configure:3146: checking size of long" >&5
3146 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3147 echo $ac_n "(cached) $ac_c" 1>&6
3149 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3150 cat > conftest.
$ac_ext <<EOF
3151 #line 3152 "configure"
3152 #include "confdefs.h"
3153 #include "confdefs.h"
3154 #include <sys/types.h>
3158 switch (0) case 0: case (sizeof (long) == $ac_size):;
3161 if { (eval echo configure
:3162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3163 ac_cv_sizeof_long
=$ac_size
3165 echo "configure: failed program was:" >&5
3166 cat conftest.
$ac_ext >&5
3169 if test x
$ac_cv_sizeof_long != x
; then break; fi
3174 if test x
$ac_cv_sizeof_long = x
; then
3175 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
3177 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3178 cat >> confdefs.h
<<EOF
3179 #define SIZEOF_LONG $ac_cv_sizeof_long
3183 echo $ac_n "checking size of long long""... $ac_c" 1>&6
3184 echo "configure:3185: checking size of long long" >&5
3185 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
3186 echo $ac_n "(cached) $ac_c" 1>&6
3188 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3189 cat > conftest.
$ac_ext <<EOF
3190 #line 3191 "configure"
3191 #include "confdefs.h"
3192 #include "confdefs.h"
3193 #include <sys/types.h>
3197 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3200 if { (eval echo configure
:3201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3202 ac_cv_sizeof_long_long
=$ac_size
3204 echo "configure: failed program was:" >&5
3205 cat conftest.
$ac_ext >&5
3208 if test x
$ac_cv_sizeof_long_long != x
; then break; fi
3213 if test x
$ac_cv_sizeof_long_long = x
; then
3214 { echo "configure: error: cannot determine a size for long long" 1>&2; exit 1; }
3216 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
3217 cat >> confdefs.h
<<EOF
3218 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3222 echo $ac_n "checking size of float""... $ac_c" 1>&6
3223 echo "configure:3224: checking size of float" >&5
3224 if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
3225 echo $ac_n "(cached) $ac_c" 1>&6
3227 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3228 cat > conftest.
$ac_ext <<EOF
3229 #line 3230 "configure"
3230 #include "confdefs.h"
3231 #include "confdefs.h"
3232 #include <sys/types.h>
3236 switch (0) case 0: case (sizeof (float) == $ac_size):;
3239 if { (eval echo configure
:3240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3241 ac_cv_sizeof_float
=$ac_size
3243 echo "configure: failed program was:" >&5
3244 cat conftest.
$ac_ext >&5
3247 if test x
$ac_cv_sizeof_float != x
; then break; fi
3252 if test x
$ac_cv_sizeof_float = x
; then
3253 { echo "configure: error: cannot determine a size for float" 1>&2; exit 1; }
3255 echo "$ac_t""$ac_cv_sizeof_float" 1>&6
3256 cat >> confdefs.h
<<EOF
3257 #define SIZEOF_FLOAT $ac_cv_sizeof_float
3261 echo $ac_n "checking size of double""... $ac_c" 1>&6
3262 echo "configure:3263: checking size of double" >&5
3263 if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
3264 echo $ac_n "(cached) $ac_c" 1>&6
3266 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3267 cat > conftest.
$ac_ext <<EOF
3268 #line 3269 "configure"
3269 #include "confdefs.h"
3270 #include "confdefs.h"
3271 #include <sys/types.h>
3275 switch (0) case 0: case (sizeof (double) == $ac_size):;
3278 if { (eval echo configure
:3279: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3280 ac_cv_sizeof_double
=$ac_size
3282 echo "configure: failed program was:" >&5
3283 cat conftest.
$ac_ext >&5
3286 if test x
$ac_cv_sizeof_double != x
; then break; fi
3291 if test x
$ac_cv_sizeof_double = x
; then
3292 { echo "configure: error: cannot determine a size for double" 1>&2; exit 1; }
3294 echo "$ac_t""$ac_cv_sizeof_double" 1>&6
3295 cat >> confdefs.h
<<EOF
3296 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
3300 echo $ac_n "checking size of long double""... $ac_c" 1>&6
3301 echo "configure:3302: checking size of long double" >&5
3302 if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
3303 echo $ac_n "(cached) $ac_c" 1>&6
3305 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3306 cat > conftest.
$ac_ext <<EOF
3307 #line 3308 "configure"
3308 #include "confdefs.h"
3309 #include "confdefs.h"
3310 #include <sys/types.h>
3314 switch (0) case 0: case (sizeof (long double) == $ac_size):;
3317 if { (eval echo configure
:3318: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3319 ac_cv_sizeof_long_double
=$ac_size
3321 echo "configure: failed program was:" >&5
3322 cat conftest.
$ac_ext >&5
3325 if test x
$ac_cv_sizeof_long_double != x
; then break; fi
3330 if test x
$ac_cv_sizeof_long_double = x
; then
3331 { echo "configure: error: cannot determine a size for long double" 1>&2; exit 1; }
3333 echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
3334 cat >> confdefs.h
<<EOF
3335 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
3340 echo $ac_n "checking size of void *""... $ac_c" 1>&6
3341 echo "configure:3342: checking size of void *" >&5
3342 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
3343 echo $ac_n "(cached) $ac_c" 1>&6
3345 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3346 cat > conftest.
$ac_ext <<EOF
3347 #line 3348 "configure"
3348 #include "confdefs.h"
3349 #include "confdefs.h"
3350 #include <sys/types.h>
3354 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3357 if { (eval echo configure
:3358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3359 ac_cv_sizeof_void_p
=$ac_size
3361 echo "configure: failed program was:" >&5
3362 cat conftest.
$ac_ext >&5
3365 if test x
$ac_cv_sizeof_void_p != x
; then break; fi
3370 if test x
$ac_cv_sizeof_void_p = x
; then
3371 { echo "configure: error: cannot determine a size for void *" 1>&2; exit 1; }
3373 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
3374 cat >> confdefs.h
<<EOF
3375 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3379 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3380 echo "configure:3381: checking whether byte ordering is bigendian" >&5
3381 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3382 echo $ac_n "(cached) $ac_c" 1>&6
3384 ac_cv_c_bigendian
=unknown
3385 # See if sys/param.h defines the BYTE_ORDER macro.
3386 cat > conftest.
$ac_ext <<EOF
3387 #line 3388 "configure"
3388 #include "confdefs.h"
3389 #include <sys/types.h>
3390 #include <sys/param.h>
3393 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3398 if { (eval echo configure
:3399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3400 # It does; now see whether it defined to BIG_ENDIAN or not.
3401 cat > conftest.
$ac_ext <<EOF
3402 #line 3403 "configure"
3403 #include "confdefs.h"
3404 #include <sys/types.h>
3405 #include <sys/param.h>
3408 #if BYTE_ORDER != BIG_ENDIAN
3413 if { (eval echo configure
:3414: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3415 ac_cv_c_bigendian
=yes
3417 echo "configure: failed program was:" >&5
3418 cat conftest.
$ac_ext >&5
3420 ac_cv_c_bigendian
=no
3424 echo "configure: failed program was:" >&5
3425 cat conftest.
$ac_ext >&5
3428 if test $ac_cv_c_bigendian = unknown
; then
3429 if test "$cross_compiling" = yes; then
3430 echo $ac_n "cross-compiling... " 2>&6
3432 cat > conftest.
$ac_ext <<EOF
3433 #line 3434 "configure"
3434 #include "confdefs.h"
3436 /* Are we little or big endian? From Harbison&Steele. */
3440 char c[sizeof (long)];
3443 exit (u.c[sizeof (long) - 1] == 1);
3446 if { (eval echo configure
:3447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3448 ac_cv_c_bigendian
=no
3450 echo "configure: failed program was:" >&5
3451 cat conftest.
$ac_ext >&5
3453 ac_cv_c_bigendian
=yes
3461 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3462 if test $ac_cv_c_bigendian = unknown
; then
3463 echo $ac_n "checking to probe for byte ordering""... $ac_c" 1>&6
3464 echo "configure:3465: checking to probe for byte ordering" >&5
3466 cat >conftest.c
<<EOF
3467 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3468 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3469 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
3470 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3471 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3472 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
3473 int main() { _ascii (); _ebcdic (); return 0; }
3475 if test -f conftest.c
; then
3476 if ${CC-cc} ${CFLAGS} conftest.c
-o conftest.o
&& test -f conftest.o
; then
3477 if test `grep -l BIGenDianSyS conftest.o` ; then
3478 echo $ac_n ' big endian probe OK, ' 1>&6
3479 ac_cv_c_bigendian
=yes
3481 if test `grep -l LiTTleEnDian conftest.o` ; then
3482 echo $ac_n ' little endian probe OK, ' 1>&6
3483 if test $ac_cv_c_bigendian = yes ; then
3484 ac_cv_c_bigendian
=unknown
;
3486 ac_cv_c_bigendian
=no
3489 echo $ac_n 'guessing bigendian ... ' >&6
3492 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3494 if test $ac_cv_c_bigendian = yes; then
3495 cat >> confdefs.h
<<\EOF
3496 #define WORDS_BIGENDIAN 1
3503 cat >> confdefs.h
<<EOF
3504 #define BYTEORDER $BYTEORDER
3507 if test $ac_cv_c_bigendian = unknown
; then
3508 { echo "configure: error: unknown endianess - sorry" 1>&2; exit 1; }
3512 if test x
$TARGET = xSPARC
; then
3513 echo $ac_n "checking assembler and linker support unaligned pc related relocs""... $ac_c" 1>&6
3514 echo "configure:3515: checking assembler and linker support unaligned pc related relocs" >&5
3515 if eval "test \"`echo '$''{'libffi_cv_as_sparc_ua_pcrel'+set}'`\" = set"; then
3516 echo $ac_n "(cached) $ac_c" 1>&6
3519 save_CFLAGS
="$CFLAGS"
3520 save_LDFLAGS
="$LDFLAGS"
3521 CFLAGS
="$CFLAGS -fpic"
3522 LDFLAGS
="$LDFLAGS -shared"
3523 cat > conftest.
$ac_ext <<EOF
3524 #line 3525 "configure"
3525 #include "confdefs.h"
3526 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
3531 if { (eval echo configure
:3532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3533 libffi_cv_as_sparc_ua_pcrel
=yes
3535 echo "configure: failed program was:" >&5
3536 cat conftest.
$ac_ext >&5
3538 libffi_cv_as_sparc_ua_pcrel
=no
3541 CFLAGS
="$save_CFLAGS"
3542 LDFLAGS
="$save_LDFLAGS"
3545 echo "$ac_t""$libffi_cv_as_sparc_ua_pcrel" 1>&6
3546 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes
; then
3547 cat >> confdefs.h
<<\EOF
3548 #define HAVE_AS_SPARC_UA_PCREL 1
3559 # Check whether --enable-debug or --disable-debug was given.
3560 if test "${enable_debug+set}" = set; then
3561 enableval
="$enable_debug"
3562 if test "$enable_debug" = "yes"; then
3563 cat >> confdefs.h
<<\EOF
3571 # Check whether --enable-structs or --disable-structs was given.
3572 if test "${enable_structs+set}" = set; then
3573 enableval
="$enable_structs"
3574 if test "$enable_structs" = "no"; then
3575 cat >> confdefs.h
<<\EOF
3576 #define FFI_NO_STRUCTS 1
3583 # Check whether --enable-raw-api or --disable-raw-api was given.
3584 if test "${enable_raw_api+set}" = set; then
3585 enableval
="$enable_raw_api"
3586 if test "$enable_raw_api" = "no"; then
3587 cat >> confdefs.h
<<\EOF
3588 #define FFI_NO_RAW_API 1
3595 # Check whether --enable-purify-safety or --disable-purify-safety was given.
3596 if test "${enable_purify_safety+set}" = set; then
3597 enableval
="$enable_purify_safety"
3598 if test "$enable_purify_safety" = "yes"; then
3599 cat >> confdefs.h
<<\EOF
3600 #define USING_PURIFY 1
3609 if test -z "$with_cross_host"; then
3611 USE_LIBDIR_FALSE
='#'
3617 if test "${multilib}" = "yes"; then
3618 multilib_arg
="--enable-multilib"
3624 cat > confcache
<<\EOF
3625 # This file is a shell script that caches the results of configure
3626 # tests run on this system so they can be shared between configure
3627 # scripts and configure runs. It is not useful on other systems.
3628 # If it contains results you don't want to keep, you may remove or edit it.
3630 # By default, configure uses ./config.cache as the cache file,
3631 # creating it if it does not exist already. You can give configure
3632 # the --cache-file=FILE option to use a different cache file; that is
3633 # what configure does when it calls configure scripts in
3634 # subdirectories, so they share the cache.
3635 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3636 # config.status only pays attention to the cache file if you give it the
3637 # --recheck option to rerun configure.
3640 # The following way of writing the cache mishandles newlines in values,
3641 # but we know of no workaround that is simple, portable, and efficient.
3642 # So, don't put newlines in cache variables' values.
3643 # Ultrix sh set writes to stderr and can't be redirected directly,
3644 # and sets the high bit in the cache file unless we assign to the vars.
3646 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3648 # `set' does not quote correctly, so add quotes (double-quote substitution
3649 # turns \\\\ into \\, and sed turns \\ into \).
3651 -e "s/'/'\\\\''/g" \
3652 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3655 # `set' quotes correctly as required by POSIX, so do not add quotes.
3656 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3659 if cmp -s $cache_file confcache
; then
3662 if test -w $cache_file; then
3663 echo "updating cache $cache_file"
3664 cat confcache
> $cache_file
3666 echo "not updating unwritable cache $cache_file"
3671 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3673 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3674 # Let make expand exec_prefix.
3675 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3677 # Any assignment to VPATH causes Sun make to only execute
3678 # the first set of double-colon rules, so remove it if not needed.
3679 # If there is a colon in the path, we need to keep it.
3680 if test "x$srcdir" = x.
; then
3681 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
3684 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3686 DEFS
=-DHAVE_CONFIG_H
3688 # Without the "./", some shells look in PATH for config.status.
3689 : ${CONFIG_STATUS=./config.status}
3691 echo creating
$CONFIG_STATUS
3692 rm -f $CONFIG_STATUS
3693 cat > $CONFIG_STATUS <<EOF
3695 # Generated automatically by configure.
3696 # Run this file to recreate the current configuration.
3697 # This directory was configured as follows,
3698 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3700 # $0 $ac_configure_args
3702 # Compiler output produced by configure, useful for debugging
3703 # configure, is in ./config.log if it exists.
3705 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3708 case "\$ac_option" in
3709 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3710 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3711 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3712 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3713 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3715 -help | --help | --hel | --he | --h)
3716 echo "\$ac_cs_usage"; exit 0 ;;
3717 *) echo "\$ac_cs_usage"; exit 1 ;;
3721 ac_given_srcdir=$srcdir
3722 ac_given_INSTALL="$INSTALL"
3724 trap 'rm -fr `echo "include/Makefile include/ffi.h Makefile fficonfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3726 cat >> $CONFIG_STATUS <<EOF
3728 # Protect against being on the right side of a sed subst in config.status.
3729 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3730 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3734 s%@CFLAGS@%$CFLAGS%g
3735 s%@CPPFLAGS@%$CPPFLAGS%g
3736 s%@CXXFLAGS@%$CXXFLAGS%g
3737 s%@FFLAGS@%$FFLAGS%g
3739 s%@LDFLAGS@%$LDFLAGS%g
3741 s%@exec_prefix@%$exec_prefix%g
3742 s%@prefix@%$prefix%g
3743 s%@program_transform_name@%$program_transform_name%g
3744 s%@bindir@%$bindir%g
3745 s%@sbindir@%$sbindir%g
3746 s%@libexecdir@%$libexecdir%g
3747 s%@datadir@%$datadir%g
3748 s%@sysconfdir@%$sysconfdir%g
3749 s%@sharedstatedir@%$sharedstatedir%g
3750 s%@localstatedir@%$localstatedir%g
3751 s%@libdir@%$libdir%g
3752 s%@includedir@%$includedir%g
3753 s%@oldincludedir@%$oldincludedir%g
3754 s%@infodir@%$infodir%g
3755 s%@mandir@%$mandir%g
3756 s%@libffi_basedir@%$libffi_basedir%g
3758 s%@host_alias@%$host_alias%g
3759 s%@host_cpu@%$host_cpu%g
3760 s%@host_vendor@%$host_vendor%g
3761 s%@host_os@%$host_os%g
3763 s%@build_alias@%$build_alias%g
3764 s%@build_cpu@%$build_cpu%g
3765 s%@build_vendor@%$build_vendor%g
3766 s%@build_os@%$build_os%g
3769 s%@OBJEXT@%$OBJEXT%g
3770 s%@EXEEXT@%$EXEEXT%g
3771 s%@RANLIB@%$RANLIB%g
3773 s%@LIBTOOL@%$LIBTOOL%g
3774 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3775 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3776 s%@INSTALL_DATA@%$INSTALL_DATA%g
3777 s%@PACKAGE@%$PACKAGE%g
3778 s%@VERSION@%$VERSION%g
3779 s%@ACLOCAL@%$ACLOCAL%g
3780 s%@AUTOCONF@%$AUTOCONF%g
3781 s%@AUTOMAKE@%$AUTOMAKE%g
3782 s%@AUTOHEADER@%$AUTOHEADER%g
3783 s%@MAKEINFO@%$MAKEINFO%g
3784 s%@SET_MAKE@%$SET_MAKE%g
3785 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3786 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3788 s%@MIPS_GCC_TRUE@%$MIPS_GCC_TRUE%g
3789 s%@MIPS_GCC_FALSE@%$MIPS_GCC_FALSE%g
3790 s%@MIPS_SGI_TRUE@%$MIPS_SGI_TRUE%g
3791 s%@MIPS_SGI_FALSE@%$MIPS_SGI_FALSE%g
3792 s%@MIPS_LINUX_TRUE@%$MIPS_LINUX_TRUE%g
3793 s%@MIPS_LINUX_FALSE@%$MIPS_LINUX_FALSE%g
3794 s%@SPARC_TRUE@%$SPARC_TRUE%g
3795 s%@SPARC_FALSE@%$SPARC_FALSE%g
3796 s%@X86_TRUE@%$X86_TRUE%g
3797 s%@X86_FALSE@%$X86_FALSE%g
3798 s%@X86_WIN32_TRUE@%$X86_WIN32_TRUE%g
3799 s%@X86_WIN32_FALSE@%$X86_WIN32_FALSE%g
3800 s%@ALPHA_TRUE@%$ALPHA_TRUE%g
3801 s%@ALPHA_FALSE@%$ALPHA_FALSE%g
3802 s%@IA64_TRUE@%$IA64_TRUE%g
3803 s%@IA64_FALSE@%$IA64_FALSE%g
3804 s%@M68K_TRUE@%$M68K_TRUE%g
3805 s%@M68K_FALSE@%$M68K_FALSE%g
3806 s%@POWERPC_TRUE@%$POWERPC_TRUE%g
3807 s%@POWERPC_FALSE@%$POWERPC_FALSE%g
3808 s%@POWERPC_AIX_TRUE@%$POWERPC_AIX_TRUE%g
3809 s%@POWERPC_AIX_FALSE@%$POWERPC_AIX_FALSE%g
3810 s%@POWERPC_DARWIN_TRUE@%$POWERPC_DARWIN_TRUE%g
3811 s%@POWERPC_DARWIN_FALSE@%$POWERPC_DARWIN_FALSE%g
3812 s%@ARM_TRUE@%$ARM_TRUE%g
3813 s%@ARM_FALSE@%$ARM_FALSE%g
3814 s%@S390_TRUE@%$S390_TRUE%g
3815 s%@S390_FALSE@%$S390_FALSE%g
3816 s%@X86_64_TRUE@%$X86_64_TRUE%g
3817 s%@X86_64_FALSE@%$X86_64_FALSE%g
3818 s%@SH_TRUE@%$SH_TRUE%g
3819 s%@SH_FALSE@%$SH_FALSE%g
3821 s%@ALLOCA@%$ALLOCA%g
3822 s%@TARGET@%$TARGET%g
3823 s%@TARGETDIR@%$TARGETDIR%g
3824 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
3825 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
3830 cat >> $CONFIG_STATUS <<\EOF
3832 # Split the substitutions into bite-sized pieces for seds with
3833 # small command number limits, like on Digital OSF/1 and HP-UX.
3834 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
3835 ac_file
=1 # Number of current file.
3836 ac_beg
=1 # First line for current file.
3837 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
3840 while $ac_more_lines; do
3841 if test $ac_beg -gt 1; then
3842 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
3844 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
3846 if test ! -s conftest.s
$ac_file; then
3848 rm -f conftest.s
$ac_file
3850 if test -z "$ac_sed_cmds"; then
3851 ac_sed_cmds
="sed -f conftest.s$ac_file"
3853 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
3855 ac_file
=`expr $ac_file + 1`
3857 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
3860 if test -z "$ac_sed_cmds"; then
3865 cat >> $CONFIG_STATUS <<EOF
3867 CONFIG_FILES=\${CONFIG_FILES-"include/Makefile include/ffi.h Makefile"}
3869 cat >> $CONFIG_STATUS <<\EOF
3870 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
3871 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3873 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3874 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3875 *) ac_file_in
="${ac_file}.in" ;;
3878 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3880 # Remove last slash and all that follows it. Not all systems have dirname.
3881 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3882 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
3883 # The file is in a subdirectory.
3884 test ! -d "$ac_dir" && mkdir
"$ac_dir"
3885 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
3886 # A "../" for each directory in $ac_dir_suffix.
3887 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3889 ac_dir_suffix
= ac_dots
=
3892 case "$ac_given_srcdir" in
3894 if test -z "$ac_dots"; then top_srcdir
=.
3895 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3896 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
3898 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3899 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
3902 case "$ac_given_INSTALL" in
3903 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
3904 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
3907 echo creating
"$ac_file"
3909 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3911 *Makefile
*) ac_comsub
="1i\\
3912 # $configure_input" ;;
3916 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3918 s%@configure_input@%$configure_input%g
3919 s%@srcdir@%$srcdir%g
3920 s%@top_srcdir@%$top_srcdir%g
3921 s%@INSTALL@%$INSTALL%g
3922 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
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.
3929 # ac_d sets the value in "#define NAME VALUE" lines.
3930 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3931 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
3934 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3935 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3936 ac_uB
='\([ ]\)%\1#\2define\3'
3939 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3940 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3941 ac_eB
='$%\1#\2define\3'
3945 if test "${CONFIG_HEADERS+set}" != set; then
3947 cat >> $CONFIG_STATUS <<EOF
3948 CONFIG_HEADERS="fficonfig.h"
3950 cat >> $CONFIG_STATUS <<\EOF
3952 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
3953 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.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" ;;
3960 echo creating
$ac_file
3962 rm -f conftest.frag conftest.
in conftest.out
3963 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3964 cat $ac_file_inputs > conftest.
in
3968 # Transform confdefs.h into a sed script conftest.vals that substitutes
3969 # the proper values into config.h.in to produce config.h. And first:
3970 # Protect against being on the right side of a sed subst in config.status.
3971 # Protect against being in an unquoted here document in config.status.
3973 cat > conftest.hdr
<<\EOF
3976 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3980 sed -n -f conftest.hdr confdefs.h > conftest.vals
3983 # This sed command replaces #undef with comments. This is necessary, for
3984 # example, in the case of _POSIX_SOURCE, which is predefined and required
3985 # on some systems where configure will not decide to define it.
3986 cat >> conftest.vals <<\EOF
3987 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3990 # Break up conftest.vals because some shells have a limit on
3991 # the size of here documents, and old seds have small limits too.
3996 ac_lines=`grep -c . conftest.vals
`
3997 # grep -c gives empty output for an empty file on some AIX systems.
3998 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3999 # Write a limited-size here document to conftest.frag.
4000 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4001 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4003 sed -f conftest.frag conftest.in > conftest.out
4005 mv conftest.out conftest.in
4007 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4009 mv conftest.tail conftest.vals
4013 cat >> $CONFIG_STATUS <<\EOF
4014 rm -f conftest.frag conftest.h
4015 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4016 cat conftest.in >> conftest.h
4018 if cmp -s $ac_file conftest.h 2>/dev/null; then
4019 echo "$ac_file is unchanged"
4022 # Remove last slash and all that follows it. Not all systems have dirname.
4023 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
4024 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4025 # The file is in a subdirectory.
4026 test ! -d "$ac_dir" && mkdir "$ac_dir"
4029 mv conftest.h $ac_file
4034 cat >> $CONFIG_STATUS <<EOF
4039 with_multisubdir=${with_multisubdir}
4040 ac_configure_args="${multilib_arg} ${ac_configure_args}"
4041 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
4042 libffi_basedir=${libffi_basedir}
4045 test ! -d include && mkdir include
4046 test ! -f include/fficonfig.h && cp fficonfig.h include/fficonfig.h
4047 if cmp -s fficonfig.h include/fficonfig.h 2>/dev/null; then
4048 echo fficonfig.h unchanged
4050 echo Moving fficonfig.h to include/fficonfig.h
4051 cp fficonfig.h include/fficonfig.h
4055 cat >> $CONFIG_STATUS <<\EOF
4056 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4058 if test -n "$CONFIG_FILES"; then
4059 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
4060 ac_file=Makefile . ${libffi_basedir}/../config-ml.in
4065 chmod +x $CONFIG_STATUS
4066 rm -fr confdefs* $ac_clean_files
4067 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4070 # Make target subdirectories if required.
4071 test -d src || mkdir src
4072 test -d src/${TARGETDIR} || mkdir src/${TARGETDIR}