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
1252 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1253 lt_cv_file_magic_cmd
=/usr
/bin
/file
1254 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
1260 # this will be overridden with pass_all, but let us keep it just in case
1261 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1265 *-32|
*"-32 ") libmagic
=32-bit;;
1266 *-n32|
*"-n32 ") libmagic
=N32
;;
1267 *-64|
*"-64 ") libmagic
=64-bit;;
1268 *) libmagic
=never-match
;;
1270 # this will be overridden with pass_all, but let us keep it just in case
1271 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1274 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
1275 lt_cv_deplibs_check_method
=pass_all
1278 # This must be Linux ELF.
1281 alpha
* | hppa
* | i
*86 | powerpc
* | sparc
* | ia64
* )
1282 lt_cv_deplibs_check_method
=pass_all
;;
1284 # glibc up to 2.1.1 does not perform some relocations on ARM
1285 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1287 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
1291 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1292 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1294 lt_cv_deplibs_check_method
='match_pattern /lib[^/\.]+\.so$'
1299 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1300 lt_cv_file_magic_cmd
=/usr
/bin
/file
1301 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
1304 osf3
* | osf4
* | osf5
*)
1305 # this will be overridden with pass_all, but let us keep it just in case
1306 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
1307 lt_cv_file_magic_test_file
=/shlib
/libc.so
1308 lt_cv_deplibs_check_method
=pass_all
1312 lt_cv_deplibs_check_method
=pass_all
1316 lt_cv_deplibs_check_method
=pass_all
1317 lt_cv_file_magic_test_file
=/lib
/libc.so
1320 sysv5uw
[78]* | sysv4
*uw2
*)
1321 lt_cv_deplibs_check_method
=pass_all
1324 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
1325 case $host_vendor in
1327 lt_cv_deplibs_check_method
=pass_all
1330 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]'
1331 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
1339 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1340 file_magic_cmd
=$lt_cv_file_magic_cmd
1341 deplibs_check_method
=$lt_cv_deplibs_check_method
1343 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1344 echo "configure:1345: checking for object suffix" >&5
1345 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1346 echo $ac_n "(cached) $ac_c" 1>&6
1349 echo 'int i = 1;' > conftest.
$ac_ext
1350 if { (eval echo configure
:1351: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1351 for ac_file
in conftest.
*; do
1354 *) ac_cv_objext
=`echo $ac_file | sed -e s/conftest.//` ;;
1358 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1363 echo "$ac_t""$ac_cv_objext" 1>&6
1364 OBJEXT
=$ac_cv_objext
1365 ac_objext
=$ac_cv_objext
1369 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1370 echo "configure:1371: checking for executable suffix" >&5
1371 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1372 echo $ac_n "(cached) $ac_c" 1>&6
1374 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
1378 echo 'int main () { return 0; }' > conftest.
$ac_ext
1380 if { (eval echo configure
:1381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1381 for file in conftest.
*; do
1383 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
1384 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1388 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1391 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1396 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1397 echo "$ac_t""${ac_cv_exeext}" 1>&6
1400 if test $host != $build; then
1401 ac_tool_prefix
=${host_alias}-
1406 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1408 # Only perform the check for file, if the check method requires it
1409 case $deplibs_check_method in
1411 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1412 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1413 echo "configure:1414: checking for ${ac_tool_prefix}file" >&5
1414 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1415 echo $ac_n "(cached) $ac_c" 1>&6
1419 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
1422 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
1425 ac_save_MAGIC_CMD
="$MAGIC_CMD"
1426 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1427 ac_dummy
="/usr/bin:$PATH"
1428 for ac_dir
in $ac_dummy; do
1429 test -z "$ac_dir" && ac_dir
=.
1430 if test -f $ac_dir/${ac_tool_prefix}file; then
1431 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
1432 if test -n "$file_magic_test_file"; then
1433 case $deplibs_check_method in
1435 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1436 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1437 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1438 egrep "$file_magic_regex" > /dev
/null
; then
1443 *** Warning: the command libtool uses to detect shared libraries,
1444 *** $file_magic_cmd, produces output that libtool cannot recognize.
1445 *** The result is that libtool may fail to recognize shared libraries
1446 *** as such. This will affect the creation of libtool libraries that
1447 *** depend on shared libraries, but programs linked with such libtool
1448 *** libraries will work regardless of this problem. Nevertheless, you
1449 *** may want to report the problem to your system manager and/or to
1450 *** bug-libtool@gnu.org
1460 MAGIC_CMD
="$ac_save_MAGIC_CMD"
1465 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1466 if test -n "$MAGIC_CMD"; then
1467 echo "$ac_t""$MAGIC_CMD" 1>&6
1469 echo "$ac_t""no" 1>&6
1472 if test -z "$lt_cv_path_MAGIC_CMD"; then
1473 if test -n "$ac_tool_prefix"; then
1474 echo $ac_n "checking for file""... $ac_c" 1>&6
1475 echo "configure:1476: checking for file" >&5
1476 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1477 echo $ac_n "(cached) $ac_c" 1>&6
1481 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
1484 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
1487 ac_save_MAGIC_CMD
="$MAGIC_CMD"
1488 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1489 ac_dummy
="/usr/bin:$PATH"
1490 for ac_dir
in $ac_dummy; do
1491 test -z "$ac_dir" && ac_dir
=.
1492 if test -f $ac_dir/file; then
1493 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
1494 if test -n "$file_magic_test_file"; then
1495 case $deplibs_check_method in
1497 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1498 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1499 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1500 egrep "$file_magic_regex" > /dev
/null
; then
1505 *** Warning: the command libtool uses to detect shared libraries,
1506 *** $file_magic_cmd, produces output that libtool cannot recognize.
1507 *** The result is that libtool may fail to recognize shared libraries
1508 *** as such. This will affect the creation of libtool libraries that
1509 *** depend on shared libraries, but programs linked with such libtool
1510 *** libraries will work regardless of this problem. Nevertheless, you
1511 *** may want to report the problem to your system manager and/or to
1512 *** bug-libtool@gnu.org
1522 MAGIC_CMD
="$ac_save_MAGIC_CMD"
1527 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1528 if test -n "$MAGIC_CMD"; then
1529 echo "$ac_t""$MAGIC_CMD" 1>&6
1531 echo "$ac_t""no" 1>&6
1543 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1544 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1545 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1546 echo "configure:1547: checking for $ac_word" >&5
1547 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1548 echo $ac_n "(cached) $ac_c" 1>&6
1550 if test -n "$RANLIB"; then
1551 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1553 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1555 for ac_dir
in $ac_dummy; do
1556 test -z "$ac_dir" && ac_dir
=.
1557 if test -f $ac_dir/$ac_word; then
1558 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1565 RANLIB
="$ac_cv_prog_RANLIB"
1566 if test -n "$RANLIB"; then
1567 echo "$ac_t""$RANLIB" 1>&6
1569 echo "$ac_t""no" 1>&6
1573 if test -z "$ac_cv_prog_RANLIB"; then
1574 if test -n "$ac_tool_prefix"; then
1575 # Extract the first word of "ranlib", so it can be a program name with args.
1576 set dummy ranlib
; ac_word
=$2
1577 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1578 echo "configure:1579: checking for $ac_word" >&5
1579 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1580 echo $ac_n "(cached) $ac_c" 1>&6
1582 if test -n "$RANLIB"; then
1583 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1585 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1587 for ac_dir
in $ac_dummy; do
1588 test -z "$ac_dir" && ac_dir
=.
1589 if test -f $ac_dir/$ac_word; then
1590 ac_cv_prog_RANLIB
="ranlib"
1595 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1598 RANLIB
="$ac_cv_prog_RANLIB"
1599 if test -n "$RANLIB"; then
1600 echo "$ac_t""$RANLIB" 1>&6
1602 echo "$ac_t""no" 1>&6
1610 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1611 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1612 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1613 echo "configure:1614: checking for $ac_word" >&5
1614 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1615 echo $ac_n "(cached) $ac_c" 1>&6
1617 if test -n "$STRIP"; then
1618 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1620 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1622 for ac_dir
in $ac_dummy; do
1623 test -z "$ac_dir" && ac_dir
=.
1624 if test -f $ac_dir/$ac_word; then
1625 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
1632 STRIP
="$ac_cv_prog_STRIP"
1633 if test -n "$STRIP"; then
1634 echo "$ac_t""$STRIP" 1>&6
1636 echo "$ac_t""no" 1>&6
1640 if test -z "$ac_cv_prog_STRIP"; then
1641 if test -n "$ac_tool_prefix"; then
1642 # Extract the first word of "strip", so it can be a program name with args.
1643 set dummy strip
; ac_word
=$2
1644 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1645 echo "configure:1646: checking for $ac_word" >&5
1646 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1647 echo $ac_n "(cached) $ac_c" 1>&6
1649 if test -n "$STRIP"; then
1650 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1652 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1654 for ac_dir
in $ac_dummy; do
1655 test -z "$ac_dir" && ac_dir
=.
1656 if test -f $ac_dir/$ac_word; then
1657 ac_cv_prog_STRIP
="strip"
1662 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
=":"
1665 STRIP
="$ac_cv_prog_STRIP"
1666 if test -n "$STRIP"; then
1667 echo "$ac_t""$STRIP" 1>&6
1669 echo "$ac_t""no" 1>&6
1678 # Check for any special flags to pass to ltconfig.
1679 libtool_flags
="--cache-file=$cache_file"
1680 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1681 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1682 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1683 test "$GCC" = yes && libtool_flags
="$libtool_flags --with-gcc"
1684 test "$lt_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1687 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1688 if test "${enable_libtool_lock+set}" = set; then
1689 enableval
="$enable_libtool_lock"
1693 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1694 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1696 # Check whether --with-pic or --without-pic was given.
1697 if test "${with_pic+set}" = set; then
1704 test x
"$pic_mode" = xyes
&& libtool_flags
="$libtool_flags --prefer-pic"
1705 test x
"$pic_mode" = xno
&& libtool_flags
="$libtool_flags --prefer-non-pic"
1707 # Some flags need to be propagated to the compiler or linker for good
1711 # Find out which ABI we are using.
1712 echo '#line 1713 "configure"' > conftest.
$ac_ext
1713 if { (eval echo configure
:1714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1714 case `/usr/bin/file conftest.$ac_objext` in
1730 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1731 SAVE_CFLAGS
="$CFLAGS"
1732 CFLAGS
="$CFLAGS -belf"
1733 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1734 echo "configure:1735: checking whether the C compiler needs -belf" >&5
1735 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1736 echo $ac_n "(cached) $ac_c" 1>&6
1740 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1741 ac_cpp
='$CPP $CPPFLAGS'
1742 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1743 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1744 cross_compiling
=$ac_cv_prog_cc_cross
1746 cat > conftest.
$ac_ext <<EOF
1747 #line 1748 "configure"
1748 #include "confdefs.h"
1754 if { (eval echo configure
:1755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1756 lt_cv_cc_needs_belf
=yes
1758 echo "configure: failed program was:" >&5
1759 cat conftest.
$ac_ext >&5
1761 lt_cv_cc_needs_belf
=no
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
1773 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1774 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
1775 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1776 CFLAGS
="$SAVE_CFLAGS"
1784 # Save cache, so that ltconfig can load it
1785 cat > confcache
<<\EOF
1786 # This file is a shell script that caches the results of configure
1787 # tests run on this system so they can be shared between configure
1788 # scripts and configure runs. It is not useful on other systems.
1789 # If it contains results you don't want to keep, you may remove or edit it.
1791 # By default, configure uses ./config.cache as the cache file,
1792 # creating it if it does not exist already. You can give configure
1793 # the --cache-file=FILE option to use a different cache file; that is
1794 # what configure does when it calls configure scripts in
1795 # subdirectories, so they share the cache.
1796 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1797 # config.status only pays attention to the cache file if you give it the
1798 # --recheck option to rerun configure.
1801 # The following way of writing the cache mishandles newlines in values,
1802 # but we know of no workaround that is simple, portable, and efficient.
1803 # So, don't put newlines in cache variables' values.
1804 # Ultrix sh set writes to stderr and can't be redirected directly,
1805 # and sets the high bit in the cache file unless we assign to the vars.
1807 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1809 # `set' does not quote correctly, so add quotes (double-quote substitution
1810 # turns \\\\ into \\, and sed turns \\ into \).
1812 -e "s/'/'\\\\''/g" \
1813 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1816 # `set' quotes correctly as required by POSIX, so do not add quotes.
1817 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1820 if cmp -s $cache_file confcache
; then
1823 if test -w $cache_file; then
1824 echo "updating cache $cache_file"
1825 cat confcache
> $cache_file
1827 echo "not updating unwritable cache $cache_file"
1833 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1834 AR
="$AR" LTCC
="$CC" CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1835 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
1836 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
1837 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
1838 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
1839 deplibs_check_method
="$deplibs_check_method" file_magic_cmd
="$file_magic_cmd" \
1840 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1841 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh
$host \
1842 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1844 # Reload cache, that may have been modified by ltconfig
1845 if test -r "$cache_file"; then
1846 echo "loading cache $cache_file"
1849 echo "creating cache $cache_file"
1854 # This can be used to rebuild libtool when needed
1855 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
1857 # Always use our own libtool.
1858 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1860 # Redirect the config.log output again, so that the ltconfig log is not
1861 # clobbered by the next message.
1862 exec 5>>.
/config.log
1870 # Find a good install program. We prefer a C program (faster),
1871 # so one script is as good as another. But avoid the broken or
1872 # incompatible versions:
1873 # SysV /etc/install, /usr/sbin/install
1874 # SunOS /usr/etc/install
1875 # IRIX /sbin/install
1877 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1878 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1879 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1880 # ./install, which can be erroneously created by make from ./install.sh.
1881 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1882 echo "configure:1883: checking for a BSD compatible install" >&5
1883 if test -z "$INSTALL"; then
1884 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1885 echo $ac_n "(cached) $ac_c" 1>&6
1887 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1888 for ac_dir
in $PATH; do
1889 # Account for people who put trailing slashes in PATH elements.
1891 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
1893 # OSF1 and SCO ODT 3.0 have their own names for install.
1894 # Don't use installbsd from OSF since it installs stuff as root
1896 for ac_prog
in ginstall scoinst
install; do
1897 if test -f $ac_dir/$ac_prog; then
1898 if test $ac_prog = install &&
1899 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1900 # AIX install. It has an incompatible calling convention.
1903 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1914 if test "${ac_cv_path_install+set}" = set; then
1915 INSTALL
="$ac_cv_path_install"
1917 # As a last resort, use the slow shell script. We don't cache a
1918 # path for INSTALL within a source directory, because that will
1919 # break other packages using the cache if that directory is
1920 # removed, or if the path is relative.
1921 INSTALL
="$ac_install_sh"
1924 echo "$ac_t""$INSTALL" 1>&6
1926 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1927 # It thinks the first close brace ends the variable substitution.
1928 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1930 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1932 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1934 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1935 echo "configure:1936: checking whether build environment is sane" >&5
1938 echo timestamp
> conftestfile
1939 # Do `set' in a subshell so we don't clobber the current shell's
1940 # arguments. Must try -L first in case configure is actually a
1941 # symlink; some systems play weird games with the mod time of symlinks
1942 # (eg FreeBSD returns the mod time of the symlink's containing
1945 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1946 if test "$*" = "X"; then
1948 set X
`ls -t $srcdir/configure conftestfile`
1950 if test "$*" != "X $srcdir/configure conftestfile" \
1951 && test "$*" != "X conftestfile $srcdir/configure"; then
1953 # If neither matched, then we have a broken ls. This can happen
1954 # if, for instance, CONFIG_SHELL is bash and it inherits a
1955 # broken ls alias from the environment. This has actually
1956 # happened. Such a system could not be considered "sane".
1957 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1958 alias in your environment" 1>&2; exit 1; }
1961 test "$2" = conftestfile
1967 { echo "configure: error: newly created file is older than distributed files!
1968 Check your system clock" 1>&2; exit 1; }
1971 echo "$ac_t""yes" 1>&6
1972 if test "$program_transform_name" = s
,x
,x
,; then
1973 program_transform_name
=
1975 # Double any \ or $. echo might interpret backslashes.
1976 cat <<\EOF_SED
> conftestsed
1977 s
,\\,\\\\,g
; s
,\$
,$$
,g
1979 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
1982 test "$program_prefix" != NONE
&&
1983 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
1984 # Use a double $ so make ignores it.
1985 test "$program_suffix" != NONE
&&
1986 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
1988 # sed with no file args requires a program.
1989 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
1991 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1992 echo "configure:1993: checking whether ${MAKE-make} sets \${MAKE}" >&5
1993 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
1994 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1995 echo $ac_n "(cached) $ac_c" 1>&6
1997 cat > conftestmake
<<\EOF
1999 @
echo 'ac_maketemp="${MAKE}"'
2001 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2002 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
2003 if test -n "$ac_maketemp"; then
2004 eval ac_cv_prog_make_
${ac_make}_set
=yes
2006 eval ac_cv_prog_make_
${ac_make}_set
=no
2010 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2011 echo "$ac_t""yes" 1>&6
2014 echo "$ac_t""no" 1>&6
2015 SET_MAKE
="MAKE=${MAKE-make}"
2023 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
2024 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
2029 missing_dir
=`cd $ac_aux_dir && pwd`
2030 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
2031 echo "configure:2032: checking for working aclocal" >&5
2032 # Run test in a subshell; some versions of sh will print an error if
2033 # an executable is not found, even if stderr is redirected.
2034 # Redirect stdin to placate older versions of autoconf. Sigh.
2035 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
2037 echo "$ac_t""found" 1>&6
2039 ACLOCAL
="$missing_dir/missing aclocal"
2040 echo "$ac_t""missing" 1>&6
2043 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
2044 echo "configure:2045: checking for working autoconf" >&5
2045 # Run test in a subshell; some versions of sh will print an error if
2046 # an executable is not found, even if stderr is redirected.
2047 # Redirect stdin to placate older versions of autoconf. Sigh.
2048 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
2050 echo "$ac_t""found" 1>&6
2052 AUTOCONF
="$missing_dir/missing autoconf"
2053 echo "$ac_t""missing" 1>&6
2056 echo $ac_n "checking for working automake""... $ac_c" 1>&6
2057 echo "configure:2058: checking for working automake" >&5
2058 # Run test in a subshell; some versions of sh will print an error if
2059 # an executable is not found, even if stderr is redirected.
2060 # Redirect stdin to placate older versions of autoconf. Sigh.
2061 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
2063 echo "$ac_t""found" 1>&6
2065 AUTOMAKE
="$missing_dir/missing automake"
2066 echo "$ac_t""missing" 1>&6
2069 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
2070 echo "configure:2071: checking for working autoheader" >&5
2071 # Run test in a subshell; some versions of sh will print an error if
2072 # an executable is not found, even if stderr is redirected.
2073 # Redirect stdin to placate older versions of autoconf. Sigh.
2074 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
2075 AUTOHEADER
=autoheader
2076 echo "$ac_t""found" 1>&6
2078 AUTOHEADER
="$missing_dir/missing autoheader"
2079 echo "$ac_t""missing" 1>&6
2082 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
2083 echo "configure:2084: checking for working makeinfo" >&5
2084 # Run test in a subshell; some versions of sh will print an error if
2085 # an executable is not found, even if stderr is redirected.
2086 # Redirect stdin to placate older versions of autoconf. Sigh.
2087 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
2089 echo "$ac_t""found" 1>&6
2091 MAKEINFO
="$missing_dir/missing makeinfo"
2092 echo "$ac_t""missing" 1>&6
2099 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2100 echo "configure:2101: checking for executable suffix" >&5
2101 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2102 echo $ac_n "(cached) $ac_c" 1>&6
2104 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
2108 echo 'int main () { return 0; }' > conftest.
$ac_ext
2110 if { (eval echo configure
:2111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2111 for file in conftest.
*; do
2113 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
2114 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
2118 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2121 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
2126 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
2127 echo "$ac_t""${ac_cv_exeext}" 1>&6
2130 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
2131 echo "configure:2132: checking whether to enable maintainer-specific portions of Makefiles" >&5
2132 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2133 if test "${enable_maintainer_mode+set}" = set; then
2134 enableval
="$enable_maintainer_mode"
2135 USE_MAINTAINER_MODE
=$enableval
2137 USE_MAINTAINER_MODE
=no
2140 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
2143 if test $USE_MAINTAINER_MODE = yes; then
2144 MAINTAINER_MODE_TRUE
=
2145 MAINTAINER_MODE_FALSE
='#'
2147 MAINTAINER_MODE_TRUE
='#'
2148 MAINTAINER_MODE_FALSE
=
2150 MAINT
=$MAINTAINER_MODE_TRUE
2154 # Extract the first word of "gcc", so it can be a program name with args.
2155 set dummy gcc
; ac_word
=$2
2156 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2157 echo "configure:2158: checking for $ac_word" >&5
2158 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2159 echo $ac_n "(cached) $ac_c" 1>&6
2161 if test -n "$CC"; then
2162 ac_cv_prog_CC
="$CC" # Let the user override the test.
2164 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2166 for ac_dir
in $ac_dummy; do
2167 test -z "$ac_dir" && ac_dir
=.
2168 if test -f $ac_dir/$ac_word; then
2177 if test -n "$CC"; then
2178 echo "$ac_t""$CC" 1>&6
2180 echo "$ac_t""no" 1>&6
2183 if test -z "$CC"; then
2184 # Extract the first word of "cc", so it can be a program name with args.
2185 set dummy cc
; ac_word
=$2
2186 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2187 echo "configure:2188: checking for $ac_word" >&5
2188 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2189 echo $ac_n "(cached) $ac_c" 1>&6
2191 if test -n "$CC"; then
2192 ac_cv_prog_CC
="$CC" # Let the user override the test.
2194 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2197 for ac_dir
in $ac_dummy; do
2198 test -z "$ac_dir" && ac_dir
=.
2199 if test -f $ac_dir/$ac_word; then
2200 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2201 ac_prog_rejected
=yes
2209 if test $ac_prog_rejected = yes; then
2210 # We found a bogon in the path, so make sure we never use it.
2211 set dummy
$ac_cv_prog_CC
2213 if test $# -gt 0; then
2214 # We chose a different compiler from the bogus one.
2215 # However, it has the same basename, so the bogon will be chosen
2216 # first if we set CC to just the basename; use the full file name.
2218 set dummy
"$ac_dir/$ac_word" "$@"
2226 if test -n "$CC"; then
2227 echo "$ac_t""$CC" 1>&6
2229 echo "$ac_t""no" 1>&6
2232 if test -z "$CC"; then
2233 case "`uname -s`" in
2235 # Extract the first word of "cl", so it can be a program name with args.
2236 set dummy cl
; ac_word
=$2
2237 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2238 echo "configure:2239: checking for $ac_word" >&5
2239 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2240 echo $ac_n "(cached) $ac_c" 1>&6
2242 if test -n "$CC"; then
2243 ac_cv_prog_CC
="$CC" # Let the user override the test.
2245 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2247 for ac_dir
in $ac_dummy; do
2248 test -z "$ac_dir" && ac_dir
=.
2249 if test -f $ac_dir/$ac_word; then
2258 if test -n "$CC"; then
2259 echo "$ac_t""$CC" 1>&6
2261 echo "$ac_t""no" 1>&6
2266 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2269 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2270 echo "configure:2271: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
2273 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2274 ac_cpp
='$CPP $CPPFLAGS'
2275 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2276 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2277 cross_compiling
=$ac_cv_prog_cc_cross
2279 cat > conftest.
$ac_ext << EOF
2281 #line 2282 "configure"
2282 #include "confdefs.h"
2286 if { (eval echo configure
:2287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2287 ac_cv_prog_cc_works
=yes
2288 # If we can't run a trivial program, we are probably using a cross compiler.
2289 if (.
/conftest
; exit) 2>/dev
/null
; then
2290 ac_cv_prog_cc_cross
=no
2292 ac_cv_prog_cc_cross
=yes
2295 echo "configure: failed program was:" >&5
2296 cat conftest.
$ac_ext >&5
2297 ac_cv_prog_cc_works
=no
2301 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2302 ac_cpp
='$CPP $CPPFLAGS'
2303 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2304 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2305 cross_compiling
=$ac_cv_prog_cc_cross
2307 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2308 if test $ac_cv_prog_cc_works = no
; then
2309 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2311 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2312 echo "configure:2313: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2313 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2314 cross_compiling
=$ac_cv_prog_cc_cross
2316 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2317 echo "configure:2318: checking whether we are using GNU C" >&5
2318 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2319 echo $ac_n "(cached) $ac_c" 1>&6
2321 cat > conftest.c
<<EOF
2326 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:2327: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
2333 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2335 if test $ac_cv_prog_gcc = yes; then
2341 ac_test_CFLAGS
="${CFLAGS+set}"
2342 ac_save_CFLAGS
="$CFLAGS"
2344 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2345 echo "configure:2346: checking whether ${CC-cc} accepts -g" >&5
2346 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2347 echo $ac_n "(cached) $ac_c" 1>&6
2349 echo 'void f(){}' > conftest.c
2350 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2359 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2360 if test "$ac_test_CFLAGS" = set; then
2361 CFLAGS
="$ac_save_CFLAGS"
2362 elif test $ac_cv_prog_cc_g = yes; then
2363 if test "$GCC" = yes; then
2369 if test "$GCC" = yes; then
2384 mips-sgi-irix5.
* | mips-sgi-irix6.
*) TARGET
=MIPS
; TARGETDIR
=mips
;;
2385 i
*86-*-linux*) TARGET
=X86
; TARGETDIR
=x86
;;
2386 i
*86-*-solaris*) TARGET
=X86
; TARGETDIR
=x86
;;
2387 i
*86-*-beos*) TARGET
=X86
; TARGETDIR
=x86
;;
2388 i
*86-*-freebsd*) TARGET
=X86
; TARGETDIR
=x86
;;
2389 i
*86-*-netbsdelf*) TARGET
=X86
; TARGETDIR
=x86
;;
2390 i
*86-*-win32*) TARGET
=X86_WIN32
; TARGETDIR
=x86
;;
2391 i
*86-*-cygwin*) TARGET
=X86_WIN32
; TARGETDIR
=x86
;;
2392 i
*86-*-mingw*) TARGET
=X86_WIN32
; TARGETDIR
=x86
;;
2393 sparc-sun-4
*) TARGET
=SPARC
; TARGETDIR
=sparc
;;
2394 sparc
*-sun-*) TARGET
=SPARC
; TARGETDIR
=sparc
;;
2395 sparc-
*-linux* | sparc-
*-netbsdelf*) TARGET
=SPARC
; TARGETDIR
=sparc
;;
2396 sparc64-
*-linux* | sparc64-
*-netbsd*) TARGET
=SPARC
; TARGETDIR
=sparc
;;
2397 alpha
*-*-linux* | alpha
*-*-osf* | alpha
*-*-freebsd* | alpha
*-*-netbsd*) TARGET
=ALPHA
; TARGETDIR
=alpha
;;
2398 ia64
*-*-*) TARGET
=IA64
; TARGETDIR
=ia64
;;
2399 m68k-
*-linux*) TARGET
=M68K
; TARGETDIR
=m68k
;;
2400 powerpc-
*-linux* | powerpc-
*-sysv*) TARGET
=POWERPC
; TARGETDIR
=powerpc
;;
2401 powerpc-
*-beos*) TARGET
=POWERPC
; TARGETDIR
=powerpc
;;
2402 powerpc-
*-darwin*) TARGET
=POWERPC_DARWIN
; TARGETDIR
=powerpc
;;
2403 powerpc-
*-aix*) TARGET
=POWERPC_AIX
; TARGETDIR
=powerpc
;;
2404 rs6000-
*-aix*) TARGET
=POWERPC_AIX
; TARGETDIR
=powerpc
;;
2405 arm
*-*-linux-*) TARGET
=ARM
; TARGETDIR
=arm
;;
2406 s390-
*-linux-*) TARGET
=S390
; TARGETDIR
=s390
;;
2409 if test $TARGETDIR = unknown
; then
2410 { echo "configure: error: "libffi has not been ported to
$host.
"" 1>&2; exit 1; }
2415 if test ${TARGET}${ac_cv_prog_gcc} = MIPSyes
; then
2424 if test ${TARGET}${ac_cv_prog_gcc} = MIPSno
; then
2433 if test x
$TARGET = xSPARC
; then
2442 if test x
$TARGET = xX86
; then
2451 if test x
$TARGET = xX86_WIN32
; then
2460 if test x
$TARGET = xALPHA
; then
2469 if test x
$TARGET = xIA64
; then
2478 if test x
$TARGET = xM68K
; then
2487 if test x
$TARGET = xPOWERPC
; then
2496 if test x
$TARGET = xPOWERPC_AIX
; then
2498 POWERPC_AIX_FALSE
='#'
2500 POWERPC_AIX_TRUE
='#'
2505 if test x
$TARGET = xPOWERPC_DARWIN
; then
2506 POWERPC_DARWIN_TRUE
=
2507 POWERPC_DARWIN_FALSE
='#'
2509 POWERPC_DARWIN_TRUE
='#'
2510 POWERPC_DARWIN_FALSE
=
2514 if test x
$TARGET = xARM
; then
2523 if test x
$TARGET = xS390
; then
2531 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2532 echo "configure:2533: checking how to run the C preprocessor" >&5
2533 # On Suns, sometimes $CPP names a directory.
2534 if test -n "$CPP" && test -d "$CPP"; then
2537 if test -z "$CPP"; then
2538 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2539 echo $ac_n "(cached) $ac_c" 1>&6
2541 # This must be in double quotes, not single quotes, because CPP may get
2542 # substituted into the Makefile and "${CC-cc}" will confuse make.
2544 # On the NeXT, cc -E runs the code through the compiler's parser,
2545 # not just through cpp.
2546 cat > conftest.
$ac_ext <<EOF
2547 #line 2548 "configure"
2548 #include "confdefs.h"
2552 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2553 { (eval echo configure
:2554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2554 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2555 if test -z "$ac_err"; then
2559 echo "configure: failed program was:" >&5
2560 cat conftest.
$ac_ext >&5
2562 CPP
="${CC-cc} -E -traditional-cpp"
2563 cat > conftest.
$ac_ext <<EOF
2564 #line 2565 "configure"
2565 #include "confdefs.h"
2569 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2570 { (eval echo configure
:2571: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2571 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2572 if test -z "$ac_err"; then
2576 echo "configure: failed program was:" >&5
2577 cat conftest.
$ac_ext >&5
2579 CPP
="${CC-cc} -nologo -E"
2580 cat > conftest.
$ac_ext <<EOF
2581 #line 2582 "configure"
2582 #include "confdefs.h"
2586 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2587 { (eval echo configure
:2588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2588 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2589 if test -z "$ac_err"; then
2593 echo "configure: failed program was:" >&5
2594 cat conftest.
$ac_ext >&5
2603 ac_cv_prog_CPP
="$CPP"
2605 CPP
="$ac_cv_prog_CPP"
2607 ac_cv_prog_CPP
="$CPP"
2609 echo "$ac_t""$CPP" 1>&6
2611 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2612 echo "configure:2613: checking for ANSI C header files" >&5
2613 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2614 echo $ac_n "(cached) $ac_c" 1>&6
2616 cat > conftest.
$ac_ext <<EOF
2617 #line 2618 "configure"
2618 #include "confdefs.h"
2624 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2625 { (eval echo configure
:2626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2626 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2627 if test -z "$ac_err"; then
2629 ac_cv_header_stdc
=yes
2632 echo "configure: failed program was:" >&5
2633 cat conftest.
$ac_ext >&5
2635 ac_cv_header_stdc
=no
2639 if test $ac_cv_header_stdc = yes; then
2640 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2641 cat > conftest.
$ac_ext <<EOF
2642 #line 2643 "configure"
2643 #include "confdefs.h"
2646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2647 egrep "memchr" >/dev
/null
2>&1; then
2651 ac_cv_header_stdc
=no
2657 if test $ac_cv_header_stdc = yes; then
2658 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2659 cat > conftest.
$ac_ext <<EOF
2660 #line 2661 "configure"
2661 #include "confdefs.h"
2664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2665 egrep "free" >/dev
/null
2>&1; then
2669 ac_cv_header_stdc
=no
2675 if test $ac_cv_header_stdc = yes; then
2676 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2677 if test "$cross_compiling" = yes; then
2680 cat > conftest.
$ac_ext <<EOF
2681 #line 2682 "configure"
2682 #include "confdefs.h"
2684 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2685 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2686 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2687 int main () { int i; for (i = 0; i < 256; i++)
2688 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2692 if { (eval echo configure
:2693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2696 echo "configure: failed program was:" >&5
2697 cat conftest.
$ac_ext >&5
2699 ac_cv_header_stdc
=no
2707 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2708 if test $ac_cv_header_stdc = yes; then
2709 cat >> confdefs.h
<<\EOF
2710 #define STDC_HEADERS 1
2715 for ac_func
in memcpy
2717 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2718 echo "configure:2719: checking for $ac_func" >&5
2719 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2720 echo $ac_n "(cached) $ac_c" 1>&6
2722 cat > conftest.
$ac_ext <<EOF
2723 #line 2724 "configure"
2724 #include "confdefs.h"
2725 /* System header to define __stub macros and hopefully few prototypes,
2726 which can conflict with char $ac_func(); below. */
2728 /* Override any gcc2 internal prototype to avoid an error. */
2729 /* We use char because int might match the return type of a gcc2
2730 builtin and then its argument prototype would still apply. */
2735 /* The GNU C library defines this for functions which it implements
2736 to always fail with ENOSYS. Some functions are actually named
2737 something starting with __ and the normal name is an alias. */
2738 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2746 if { (eval echo configure
:2747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2748 eval "ac_cv_func_$ac_func=yes"
2750 echo "configure: failed program was:" >&5
2751 cat conftest.
$ac_ext >&5
2753 eval "ac_cv_func_$ac_func=no"
2758 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2759 echo "$ac_t""yes" 1>&6
2760 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2761 cat >> confdefs.h
<<EOF
2762 #define $ac_tr_func 1
2766 echo "$ac_t""no" 1>&6
2770 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2771 # for constant arguments. Useless!
2772 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2773 echo "configure:2774: checking for working alloca.h" >&5
2774 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2775 echo $ac_n "(cached) $ac_c" 1>&6
2777 cat > conftest.
$ac_ext <<EOF
2778 #line 2779 "configure"
2779 #include "confdefs.h"
2782 char *p = alloca(2 * sizeof(int));
2785 if { (eval echo configure
:2786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2787 ac_cv_header_alloca_h
=yes
2789 echo "configure: failed program was:" >&5
2790 cat conftest.
$ac_ext >&5
2792 ac_cv_header_alloca_h
=no
2797 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2798 if test $ac_cv_header_alloca_h = yes; then
2799 cat >> confdefs.h
<<\EOF
2800 #define HAVE_ALLOCA_H 1
2805 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2806 echo "configure:2807: checking for alloca" >&5
2807 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2808 echo $ac_n "(cached) $ac_c" 1>&6
2810 cat > conftest.
$ac_ext <<EOF
2811 #line 2812 "configure"
2812 #include "confdefs.h"
2815 # define alloca __builtin_alloca
2818 # include <malloc.h>
2819 # define alloca _alloca
2822 # include <alloca.h>
2827 # ifndef alloca /* predefined by HP cc +Olibcalls */
2836 char *p = (char *) alloca(1);
2839 if { (eval echo configure
:2840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2841 ac_cv_func_alloca_works
=yes
2843 echo "configure: failed program was:" >&5
2844 cat conftest.
$ac_ext >&5
2846 ac_cv_func_alloca_works
=no
2851 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2852 if test $ac_cv_func_alloca_works = yes; then
2853 cat >> confdefs.h
<<\EOF
2854 #define HAVE_ALLOCA 1
2859 if test $ac_cv_func_alloca_works = no
; then
2860 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2861 # that cause trouble. Some versions do not even contain alloca or
2862 # contain a buggy version. If you still want to use their alloca,
2863 # use ar to extract alloca.o from them instead of compiling alloca.c.
2864 ALLOCA
=alloca.
${ac_objext}
2865 cat >> confdefs.h
<<\EOF
2870 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2871 echo "configure:2872: checking whether alloca needs Cray hooks" >&5
2872 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2873 echo $ac_n "(cached) $ac_c" 1>&6
2875 cat > conftest.
$ac_ext <<EOF
2876 #line 2877 "configure"
2877 #include "confdefs.h"
2878 #if defined(CRAY) && ! defined(CRAY2)
2885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2886 egrep "webecray" >/dev
/null
2>&1; then
2897 echo "$ac_t""$ac_cv_os_cray" 1>&6
2898 if test $ac_cv_os_cray = yes; then
2899 for ac_func
in _getb67 GETB67 getb67
; do
2900 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2901 echo "configure:2902: checking for $ac_func" >&5
2902 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2903 echo $ac_n "(cached) $ac_c" 1>&6
2905 cat > conftest.
$ac_ext <<EOF
2906 #line 2907 "configure"
2907 #include "confdefs.h"
2908 /* System header to define __stub macros and hopefully few prototypes,
2909 which can conflict with char $ac_func(); below. */
2911 /* Override any gcc2 internal prototype to avoid an error. */
2912 /* We use char because int might match the return type of a gcc2
2913 builtin and then its argument prototype would still apply. */
2918 /* The GNU C library defines this for functions which it implements
2919 to always fail with ENOSYS. Some functions are actually named
2920 something starting with __ and the normal name is an alias. */
2921 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2929 if { (eval echo configure
:2930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2931 eval "ac_cv_func_$ac_func=yes"
2933 echo "configure: failed program was:" >&5
2934 cat conftest.
$ac_ext >&5
2936 eval "ac_cv_func_$ac_func=no"
2941 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2942 echo "$ac_t""yes" 1>&6
2943 cat >> confdefs.h
<<EOF
2944 #define CRAY_STACKSEG_END $ac_func
2949 echo "$ac_t""no" 1>&6
2955 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2956 echo "configure:2957: checking stack direction for C alloca" >&5
2957 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2958 echo $ac_n "(cached) $ac_c" 1>&6
2960 if test "$cross_compiling" = yes; then
2961 ac_cv_c_stack_direction
=0
2963 cat > conftest.
$ac_ext <<EOF
2964 #line 2965 "configure"
2965 #include "confdefs.h"
2966 find_stack_direction ()
2968 static char *addr = 0;
2973 return find_stack_direction ();
2976 return (&dummy > addr) ? 1 : -1;
2980 exit (find_stack_direction() < 0);
2983 if { (eval echo configure
:2984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2985 ac_cv_c_stack_direction
=1
2987 echo "configure: failed program was:" >&5
2988 cat conftest.
$ac_ext >&5
2990 ac_cv_c_stack_direction
=-1
2997 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2998 cat >> confdefs.h
<<EOF
2999 #define STACK_DIRECTION $ac_cv_c_stack_direction
3005 echo $ac_n "checking size of short""... $ac_c" 1>&6
3006 echo "configure:3007: checking size of short" >&5
3007 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
3008 echo $ac_n "(cached) $ac_c" 1>&6
3010 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3011 cat > conftest.
$ac_ext <<EOF
3012 #line 3013 "configure"
3013 #include "confdefs.h"
3014 #include "confdefs.h"
3015 #include <sys/types.h>
3019 switch (0) case 0: case (sizeof (short) == $ac_size):;
3022 if { (eval echo configure
:3023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3024 ac_cv_sizeof_short
=$ac_size
3026 echo "configure: failed program was:" >&5
3027 cat conftest.
$ac_ext >&5
3030 if test x
$ac_cv_sizeof_short != x
; then break; fi
3035 if test x
$ac_cv_sizeof_short = x
; then
3036 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
3038 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
3039 cat >> confdefs.h
<<EOF
3040 #define SIZEOF_SHORT $ac_cv_sizeof_short
3044 echo $ac_n "checking size of int""... $ac_c" 1>&6
3045 echo "configure:3046: checking size of int" >&5
3046 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
3047 echo $ac_n "(cached) $ac_c" 1>&6
3049 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3050 cat > conftest.
$ac_ext <<EOF
3051 #line 3052 "configure"
3052 #include "confdefs.h"
3053 #include "confdefs.h"
3054 #include <sys/types.h>
3058 switch (0) case 0: case (sizeof (int) == $ac_size):;
3061 if { (eval echo configure
:3062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3063 ac_cv_sizeof_int
=$ac_size
3065 echo "configure: failed program was:" >&5
3066 cat conftest.
$ac_ext >&5
3069 if test x
$ac_cv_sizeof_int != x
; then break; fi
3074 if test x
$ac_cv_sizeof_int = x
; then
3075 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
3077 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3078 cat >> confdefs.h
<<EOF
3079 #define SIZEOF_INT $ac_cv_sizeof_int
3083 echo $ac_n "checking size of long""... $ac_c" 1>&6
3084 echo "configure:3085: checking size of long" >&5
3085 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3086 echo $ac_n "(cached) $ac_c" 1>&6
3088 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3089 cat > conftest.
$ac_ext <<EOF
3090 #line 3091 "configure"
3091 #include "confdefs.h"
3092 #include "confdefs.h"
3093 #include <sys/types.h>
3097 switch (0) case 0: case (sizeof (long) == $ac_size):;
3100 if { (eval echo configure
:3101: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3102 ac_cv_sizeof_long
=$ac_size
3104 echo "configure: failed program was:" >&5
3105 cat conftest.
$ac_ext >&5
3108 if test x
$ac_cv_sizeof_long != x
; then break; fi
3113 if test x
$ac_cv_sizeof_long = x
; then
3114 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
3116 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3117 cat >> confdefs.h
<<EOF
3118 #define SIZEOF_LONG $ac_cv_sizeof_long
3122 echo $ac_n "checking size of long long""... $ac_c" 1>&6
3123 echo "configure:3124: checking size of long long" >&5
3124 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
3125 echo $ac_n "(cached) $ac_c" 1>&6
3127 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3128 cat > conftest.
$ac_ext <<EOF
3129 #line 3130 "configure"
3130 #include "confdefs.h"
3131 #include "confdefs.h"
3132 #include <sys/types.h>
3136 switch (0) case 0: case (sizeof (long long) == $ac_size):;
3139 if { (eval echo configure
:3140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3141 ac_cv_sizeof_long_long
=$ac_size
3143 echo "configure: failed program was:" >&5
3144 cat conftest.
$ac_ext >&5
3147 if test x
$ac_cv_sizeof_long_long != x
; then break; fi
3152 if test x
$ac_cv_sizeof_long_long = x
; then
3153 { echo "configure: error: cannot determine a size for long long" 1>&2; exit 1; }
3155 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
3156 cat >> confdefs.h
<<EOF
3157 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
3161 echo $ac_n "checking size of float""... $ac_c" 1>&6
3162 echo "configure:3163: checking size of float" >&5
3163 if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
3164 echo $ac_n "(cached) $ac_c" 1>&6
3166 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3167 cat > conftest.
$ac_ext <<EOF
3168 #line 3169 "configure"
3169 #include "confdefs.h"
3170 #include "confdefs.h"
3171 #include <sys/types.h>
3175 switch (0) case 0: case (sizeof (float) == $ac_size):;
3178 if { (eval echo configure
:3179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3180 ac_cv_sizeof_float
=$ac_size
3182 echo "configure: failed program was:" >&5
3183 cat conftest.
$ac_ext >&5
3186 if test x
$ac_cv_sizeof_float != x
; then break; fi
3191 if test x
$ac_cv_sizeof_float = x
; then
3192 { echo "configure: error: cannot determine a size for float" 1>&2; exit 1; }
3194 echo "$ac_t""$ac_cv_sizeof_float" 1>&6
3195 cat >> confdefs.h
<<EOF
3196 #define SIZEOF_FLOAT $ac_cv_sizeof_float
3200 echo $ac_n "checking size of double""... $ac_c" 1>&6
3201 echo "configure:3202: checking size of double" >&5
3202 if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
3203 echo $ac_n "(cached) $ac_c" 1>&6
3205 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3206 cat > conftest.
$ac_ext <<EOF
3207 #line 3208 "configure"
3208 #include "confdefs.h"
3209 #include "confdefs.h"
3210 #include <sys/types.h>
3214 switch (0) case 0: case (sizeof (double) == $ac_size):;
3217 if { (eval echo configure
:3218: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3219 ac_cv_sizeof_double
=$ac_size
3221 echo "configure: failed program was:" >&5
3222 cat conftest.
$ac_ext >&5
3225 if test x
$ac_cv_sizeof_double != x
; then break; fi
3230 if test x
$ac_cv_sizeof_double = x
; then
3231 { echo "configure: error: cannot determine a size for double" 1>&2; exit 1; }
3233 echo "$ac_t""$ac_cv_sizeof_double" 1>&6
3234 cat >> confdefs.h
<<EOF
3235 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
3239 echo $ac_n "checking size of long double""... $ac_c" 1>&6
3240 echo "configure:3241: checking size of long double" >&5
3241 if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
3242 echo $ac_n "(cached) $ac_c" 1>&6
3244 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3245 cat > conftest.
$ac_ext <<EOF
3246 #line 3247 "configure"
3247 #include "confdefs.h"
3248 #include "confdefs.h"
3249 #include <sys/types.h>
3253 switch (0) case 0: case (sizeof (long double) == $ac_size):;
3256 if { (eval echo configure
:3257: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3258 ac_cv_sizeof_long_double
=$ac_size
3260 echo "configure: failed program was:" >&5
3261 cat conftest.
$ac_ext >&5
3264 if test x
$ac_cv_sizeof_long_double != x
; then break; fi
3269 if test x
$ac_cv_sizeof_long_double = x
; then
3270 { echo "configure: error: cannot determine a size for long double" 1>&2; exit 1; }
3272 echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
3273 cat >> confdefs.h
<<EOF
3274 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
3279 echo $ac_n "checking size of void *""... $ac_c" 1>&6
3280 echo "configure:3281: checking size of void *" >&5
3281 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
3282 echo $ac_n "(cached) $ac_c" 1>&6
3284 for ac_size
in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
3285 cat > conftest.
$ac_ext <<EOF
3286 #line 3287 "configure"
3287 #include "confdefs.h"
3288 #include "confdefs.h"
3289 #include <sys/types.h>
3293 switch (0) case 0: case (sizeof (void *) == $ac_size):;
3296 if { (eval echo configure
:3297: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3298 ac_cv_sizeof_void_p
=$ac_size
3300 echo "configure: failed program was:" >&5
3301 cat conftest.
$ac_ext >&5
3304 if test x
$ac_cv_sizeof_void_p != x
; then break; fi
3309 if test x
$ac_cv_sizeof_void_p = x
; then
3310 { echo "configure: error: cannot determine a size for void *" 1>&2; exit 1; }
3312 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
3313 cat >> confdefs.h
<<EOF
3314 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
3318 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3319 echo "configure:3320: checking whether byte ordering is bigendian" >&5
3320 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3321 echo $ac_n "(cached) $ac_c" 1>&6
3323 ac_cv_c_bigendian
=unknown
3324 # See if sys/param.h defines the BYTE_ORDER macro.
3325 cat > conftest.
$ac_ext <<EOF
3326 #line 3327 "configure"
3327 #include "confdefs.h"
3328 #include <sys/types.h>
3329 #include <sys/param.h>
3332 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3337 if { (eval echo configure
:3338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3339 # It does; now see whether it defined to BIG_ENDIAN or not.
3340 cat > conftest.
$ac_ext <<EOF
3341 #line 3342 "configure"
3342 #include "confdefs.h"
3343 #include <sys/types.h>
3344 #include <sys/param.h>
3347 #if BYTE_ORDER != BIG_ENDIAN
3352 if { (eval echo configure
:3353: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3354 ac_cv_c_bigendian
=yes
3356 echo "configure: failed program was:" >&5
3357 cat conftest.
$ac_ext >&5
3359 ac_cv_c_bigendian
=no
3363 echo "configure: failed program was:" >&5
3364 cat conftest.
$ac_ext >&5
3367 if test $ac_cv_c_bigendian = unknown
; then
3368 if test "$cross_compiling" = yes; then
3369 echo $ac_n "cross-compiling... " 2>&6
3371 cat > conftest.
$ac_ext <<EOF
3372 #line 3373 "configure"
3373 #include "confdefs.h"
3375 /* Are we little or big endian? From Harbison&Steele. */
3379 char c[sizeof (long)];
3382 exit (u.c[sizeof (long) - 1] == 1);
3385 if { (eval echo configure
:3386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3387 ac_cv_c_bigendian
=no
3389 echo "configure: failed program was:" >&5
3390 cat conftest.
$ac_ext >&5
3392 ac_cv_c_bigendian
=yes
3400 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3401 if test $ac_cv_c_bigendian = unknown
; then
3402 echo $ac_n "checking to probe for byte ordering""... $ac_c" 1>&6
3403 echo "configure:3404: checking to probe for byte ordering" >&5
3405 cat >conftest.c
<<EOF
3406 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3407 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3408 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
3409 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3410 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3411 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
3412 int main() { _ascii (); _ebcdic (); return 0; }
3414 if test -f conftest.c
; then
3415 if ${CC-cc} ${CFLAGS} conftest.c
-o conftest.o
&& test -f conftest.o
; then
3416 if test `grep -l BIGenDianSyS conftest.o` ; then
3417 echo $ac_n ' big endian probe OK, ' 1>&6
3418 ac_cv_c_bigendian
=yes
3420 if test `grep -l LiTTleEnDian conftest.o` ; then
3421 echo $ac_n ' little endian probe OK, ' 1>&6
3422 if test $ac_cv_c_bigendian = yes ; then
3423 ac_cv_c_bigendian
=unknown
;
3425 ac_cv_c_bigendian
=no
3428 echo $ac_n 'guessing bigendian ... ' >&6
3431 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3433 if test $ac_cv_c_bigendian = yes; then
3434 cat >> confdefs.h
<<\EOF
3435 #define WORDS_BIGENDIAN 1
3442 cat >> confdefs.h
<<EOF
3443 #define BYTEORDER $BYTEORDER
3446 if test $ac_cv_c_bigendian = unknown
; then
3447 { echo "configure: error: unknown endianess - sorry" 1>&2; exit 1; }
3451 if test x
$TARGET = xSPARC
; then
3452 echo $ac_n "checking assembler and linker support unaligned pc related relocs""... $ac_c" 1>&6
3453 echo "configure:3454: checking assembler and linker support unaligned pc related relocs" >&5
3454 if eval "test \"`echo '$''{'libffi_cv_as_sparc_ua_pcrel'+set}'`\" = set"; then
3455 echo $ac_n "(cached) $ac_c" 1>&6
3458 save_CFLAGS
="$CFLAGS"
3459 save_LDFLAGS
="$LDFLAGS"
3460 CFLAGS
="$CFLAGS -fpic"
3461 LDFLAGS
="$LDFLAGS -shared"
3462 cat > conftest.
$ac_ext <<EOF
3463 #line 3464 "configure"
3464 #include "confdefs.h"
3465 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
3470 if { (eval echo configure
:3471: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3472 libffi_cv_as_sparc_ua_pcrel
=yes
3474 echo "configure: failed program was:" >&5
3475 cat conftest.
$ac_ext >&5
3477 libffi_cv_as_sparc_ua_pcrel
=no
3480 CFLAGS
="$save_CFLAGS"
3481 LDFLAGS
="$save_LDFLAGS"
3484 echo "$ac_t""$libffi_cv_as_sparc_ua_pcrel" 1>&6
3485 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes
; then
3486 cat >> confdefs.h
<<\EOF
3487 #define HAVE_AS_SPARC_UA_PCREL 1
3498 # Check whether --enable-debug or --disable-debug was given.
3499 if test "${enable_debug+set}" = set; then
3500 enableval
="$enable_debug"
3501 if test "$enable_debug" = "yes"; then
3502 cat >> confdefs.h
<<\EOF
3510 # Check whether --enable-structs or --disable-structs was given.
3511 if test "${enable_structs+set}" = set; then
3512 enableval
="$enable_structs"
3513 if test "$enable_structs" = "no"; then
3514 cat >> confdefs.h
<<\EOF
3515 #define FFI_NO_STRUCTS 1
3522 # Check whether --enable-raw-api or --disable-raw-api was given.
3523 if test "${enable_raw_api+set}" = set; then
3524 enableval
="$enable_raw_api"
3525 if test "$enable_raw_api" = "no"; then
3526 cat >> confdefs.h
<<\EOF
3527 #define FFI_NO_RAW_API 1
3534 # Check whether --enable-purify-safety or --disable-purify-safety was given.
3535 if test "${enable_purify_safety+set}" = set; then
3536 enableval
="$enable_purify_safety"
3537 if test "$enable_purify_safety" = "yes"; then
3538 cat >> confdefs.h
<<\EOF
3539 #define USING_PURIFY 1
3548 if test -z "$with_cross_host"; then
3550 USE_LIBDIR_FALSE
='#'
3556 if test "${multilib}" = "yes"; then
3557 multilib_arg
="--enable-multilib"
3563 cat > confcache
<<\EOF
3564 # This file is a shell script that caches the results of configure
3565 # tests run on this system so they can be shared between configure
3566 # scripts and configure runs. It is not useful on other systems.
3567 # If it contains results you don't want to keep, you may remove or edit it.
3569 # By default, configure uses ./config.cache as the cache file,
3570 # creating it if it does not exist already. You can give configure
3571 # the --cache-file=FILE option to use a different cache file; that is
3572 # what configure does when it calls configure scripts in
3573 # subdirectories, so they share the cache.
3574 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3575 # config.status only pays attention to the cache file if you give it the
3576 # --recheck option to rerun configure.
3579 # The following way of writing the cache mishandles newlines in values,
3580 # but we know of no workaround that is simple, portable, and efficient.
3581 # So, don't put newlines in cache variables' values.
3582 # Ultrix sh set writes to stderr and can't be redirected directly,
3583 # and sets the high bit in the cache file unless we assign to the vars.
3585 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3587 # `set' does not quote correctly, so add quotes (double-quote substitution
3588 # turns \\\\ into \\, and sed turns \\ into \).
3590 -e "s/'/'\\\\''/g" \
3591 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3594 # `set' quotes correctly as required by POSIX, so do not add quotes.
3595 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3598 if cmp -s $cache_file confcache
; then
3601 if test -w $cache_file; then
3602 echo "updating cache $cache_file"
3603 cat confcache
> $cache_file
3605 echo "not updating unwritable cache $cache_file"
3610 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3612 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3613 # Let make expand exec_prefix.
3614 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3616 # Any assignment to VPATH causes Sun make to only execute
3617 # the first set of double-colon rules, so remove it if not needed.
3618 # If there is a colon in the path, we need to keep it.
3619 if test "x$srcdir" = x.
; then
3620 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
3623 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3625 DEFS
=-DHAVE_CONFIG_H
3627 # Without the "./", some shells look in PATH for config.status.
3628 : ${CONFIG_STATUS=./config.status}
3630 echo creating
$CONFIG_STATUS
3631 rm -f $CONFIG_STATUS
3632 cat > $CONFIG_STATUS <<EOF
3634 # Generated automatically by configure.
3635 # Run this file to recreate the current configuration.
3636 # This directory was configured as follows,
3637 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3639 # $0 $ac_configure_args
3641 # Compiler output produced by configure, useful for debugging
3642 # configure, is in ./config.log if it exists.
3644 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3647 case "\$ac_option" in
3648 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3649 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3650 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3651 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3652 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3654 -help | --help | --hel | --he | --h)
3655 echo "\$ac_cs_usage"; exit 0 ;;
3656 *) echo "\$ac_cs_usage"; exit 1 ;;
3660 ac_given_srcdir=$srcdir
3661 ac_given_INSTALL="$INSTALL"
3663 trap 'rm -fr `echo "include/Makefile include/ffi.h Makefile fficonfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3665 cat >> $CONFIG_STATUS <<EOF
3667 # Protect against being on the right side of a sed subst in config.status.
3668 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3669 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3673 s%@CFLAGS@%$CFLAGS%g
3674 s%@CPPFLAGS@%$CPPFLAGS%g
3675 s%@CXXFLAGS@%$CXXFLAGS%g
3676 s%@FFLAGS@%$FFLAGS%g
3678 s%@LDFLAGS@%$LDFLAGS%g
3680 s%@exec_prefix@%$exec_prefix%g
3681 s%@prefix@%$prefix%g
3682 s%@program_transform_name@%$program_transform_name%g
3683 s%@bindir@%$bindir%g
3684 s%@sbindir@%$sbindir%g
3685 s%@libexecdir@%$libexecdir%g
3686 s%@datadir@%$datadir%g
3687 s%@sysconfdir@%$sysconfdir%g
3688 s%@sharedstatedir@%$sharedstatedir%g
3689 s%@localstatedir@%$localstatedir%g
3690 s%@libdir@%$libdir%g
3691 s%@includedir@%$includedir%g
3692 s%@oldincludedir@%$oldincludedir%g
3693 s%@infodir@%$infodir%g
3694 s%@mandir@%$mandir%g
3695 s%@libffi_basedir@%$libffi_basedir%g
3697 s%@host_alias@%$host_alias%g
3698 s%@host_cpu@%$host_cpu%g
3699 s%@host_vendor@%$host_vendor%g
3700 s%@host_os@%$host_os%g
3702 s%@build_alias@%$build_alias%g
3703 s%@build_cpu@%$build_cpu%g
3704 s%@build_vendor@%$build_vendor%g
3705 s%@build_os@%$build_os%g
3708 s%@OBJEXT@%$OBJEXT%g
3709 s%@EXEEXT@%$EXEEXT%g
3710 s%@RANLIB@%$RANLIB%g
3712 s%@LIBTOOL@%$LIBTOOL%g
3713 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3714 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3715 s%@INSTALL_DATA@%$INSTALL_DATA%g
3716 s%@PACKAGE@%$PACKAGE%g
3717 s%@VERSION@%$VERSION%g
3718 s%@ACLOCAL@%$ACLOCAL%g
3719 s%@AUTOCONF@%$AUTOCONF%g
3720 s%@AUTOMAKE@%$AUTOMAKE%g
3721 s%@AUTOHEADER@%$AUTOHEADER%g
3722 s%@MAKEINFO@%$MAKEINFO%g
3723 s%@SET_MAKE@%$SET_MAKE%g
3724 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3725 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3727 s%@MIPS_GCC_TRUE@%$MIPS_GCC_TRUE%g
3728 s%@MIPS_GCC_FALSE@%$MIPS_GCC_FALSE%g
3729 s%@MIPS_SGI_TRUE@%$MIPS_SGI_TRUE%g
3730 s%@MIPS_SGI_FALSE@%$MIPS_SGI_FALSE%g
3731 s%@SPARC_TRUE@%$SPARC_TRUE%g
3732 s%@SPARC_FALSE@%$SPARC_FALSE%g
3733 s%@X86_TRUE@%$X86_TRUE%g
3734 s%@X86_FALSE@%$X86_FALSE%g
3735 s%@X86_WIN32_TRUE@%$X86_WIN32_TRUE%g
3736 s%@X86_WIN32_FALSE@%$X86_WIN32_FALSE%g
3737 s%@ALPHA_TRUE@%$ALPHA_TRUE%g
3738 s%@ALPHA_FALSE@%$ALPHA_FALSE%g
3739 s%@IA64_TRUE@%$IA64_TRUE%g
3740 s%@IA64_FALSE@%$IA64_FALSE%g
3741 s%@M68K_TRUE@%$M68K_TRUE%g
3742 s%@M68K_FALSE@%$M68K_FALSE%g
3743 s%@POWERPC_TRUE@%$POWERPC_TRUE%g
3744 s%@POWERPC_FALSE@%$POWERPC_FALSE%g
3745 s%@POWERPC_AIX_TRUE@%$POWERPC_AIX_TRUE%g
3746 s%@POWERPC_AIX_FALSE@%$POWERPC_AIX_FALSE%g
3747 s%@POWERPC_DARWIN_TRUE@%$POWERPC_DARWIN_TRUE%g
3748 s%@POWERPC_DARWIN_FALSE@%$POWERPC_DARWIN_FALSE%g
3749 s%@ARM_TRUE@%$ARM_TRUE%g
3750 s%@ARM_FALSE@%$ARM_FALSE%g
3751 s%@S390_TRUE@%$S390_TRUE%g
3752 s%@S390_FALSE@%$S390_FALSE%g
3754 s%@ALLOCA@%$ALLOCA%g
3755 s%@TARGET@%$TARGET%g
3756 s%@TARGETDIR@%$TARGETDIR%g
3757 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
3758 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
3763 cat >> $CONFIG_STATUS <<\EOF
3765 # Split the substitutions into bite-sized pieces for seds with
3766 # small command number limits, like on Digital OSF/1 and HP-UX.
3767 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
3768 ac_file
=1 # Number of current file.
3769 ac_beg
=1 # First line for current file.
3770 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
3773 while $ac_more_lines; do
3774 if test $ac_beg -gt 1; then
3775 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
3777 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
3779 if test ! -s conftest.s
$ac_file; then
3781 rm -f conftest.s
$ac_file
3783 if test -z "$ac_sed_cmds"; then
3784 ac_sed_cmds
="sed -f conftest.s$ac_file"
3786 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
3788 ac_file
=`expr $ac_file + 1`
3790 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
3793 if test -z "$ac_sed_cmds"; then
3798 cat >> $CONFIG_STATUS <<EOF
3800 CONFIG_FILES=\${CONFIG_FILES-"include/Makefile include/ffi.h Makefile"}
3802 cat >> $CONFIG_STATUS <<\EOF
3803 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
3804 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3806 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3807 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3808 *) ac_file_in
="${ac_file}.in" ;;
3811 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3813 # Remove last slash and all that follows it. Not all systems have dirname.
3814 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3815 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
3816 # The file is in a subdirectory.
3817 test ! -d "$ac_dir" && mkdir
"$ac_dir"
3818 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
3819 # A "../" for each directory in $ac_dir_suffix.
3820 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3822 ac_dir_suffix
= ac_dots
=
3825 case "$ac_given_srcdir" in
3827 if test -z "$ac_dots"; then top_srcdir
=.
3828 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3829 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
3831 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3832 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
3835 case "$ac_given_INSTALL" in
3836 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
3837 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
3840 echo creating
"$ac_file"
3842 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3844 *Makefile
*) ac_comsub
="1i\\
3845 # $configure_input" ;;
3849 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3851 s%@configure_input@%$configure_input%g
3852 s%@srcdir@%$srcdir%g
3853 s%@top_srcdir@%$top_srcdir%g
3854 s%@INSTALL@%$INSTALL%g
3855 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
3859 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3860 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3862 # ac_d sets the value in "#define NAME VALUE" lines.
3863 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3864 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
3867 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3868 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3869 ac_uB
='\([ ]\)%\1#\2define\3'
3872 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3873 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3874 ac_eB
='$%\1#\2define\3'
3878 if test "${CONFIG_HEADERS+set}" != set; then
3880 cat >> $CONFIG_STATUS <<EOF
3881 CONFIG_HEADERS="fficonfig.h"
3883 cat >> $CONFIG_STATUS <<\EOF
3885 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
3886 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3888 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3889 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3890 *) ac_file_in
="${ac_file}.in" ;;
3893 echo creating
$ac_file
3895 rm -f conftest.frag conftest.
in conftest.out
3896 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3897 cat $ac_file_inputs > conftest.
in
3901 # Transform confdefs.h into a sed script conftest.vals that substitutes
3902 # the proper values into config.h.in to produce config.h. And first:
3903 # Protect against being on the right side of a sed subst in config.status.
3904 # Protect against being in an unquoted here document in config.status.
3906 cat > conftest.hdr
<<\EOF
3909 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3913 sed -n -f conftest.hdr confdefs.h > conftest.vals
3916 # This sed command replaces #undef with comments. This is necessary, for
3917 # example, in the case of _POSIX_SOURCE, which is predefined and required
3918 # on some systems where configure will not decide to define it.
3919 cat >> conftest.vals <<\EOF
3920 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3923 # Break up conftest.vals because some shells have a limit on
3924 # the size of here documents, and old seds have small limits too.
3929 ac_lines=`grep -c . conftest.vals
`
3930 # grep -c gives empty output for an empty file on some AIX systems.
3931 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3932 # Write a limited-size here document to conftest.frag.
3933 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3934 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3936 sed -f conftest.frag conftest.in > conftest.out
3938 mv conftest.out conftest.in
3940 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3942 mv conftest.tail conftest.vals
3946 cat >> $CONFIG_STATUS <<\EOF
3947 rm -f conftest.frag conftest.h
3948 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3949 cat conftest.in >> conftest.h
3951 if cmp -s $ac_file conftest.h 2>/dev/null; then
3952 echo "$ac_file is unchanged"
3955 # Remove last slash and all that follows it. Not all systems have dirname.
3956 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
3957 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3958 # The file is in a subdirectory.
3959 test ! -d "$ac_dir" && mkdir "$ac_dir"
3962 mv conftest.h $ac_file
3967 cat >> $CONFIG_STATUS <<EOF
3972 with_multisubdir=${with_multisubdir}
3973 ac_configure_args="${multilib_arg} ${ac_configure_args}"
3974 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
3975 libffi_basedir=${libffi_basedir}
3978 test ! -d include && mkdir include
3979 test ! -f include/fficonfig.h && cp fficonfig.h include/fficonfig.h
3980 if cmp -s fficonfig.h include/fficonfig.h 2>/dev/null; then
3981 echo fficonfig.h unchanged
3983 echo Moving fficonfig.h to include/fficonfig.h
3984 cp fficonfig.h include/fficonfig.h
3988 cat >> $CONFIG_STATUS <<\EOF
3989 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3991 if test -n "$CONFIG_FILES"; then
3992 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
3993 ac_file=Makefile . ${libffi_basedir}/../config-ml.in
3998 chmod +x $CONFIG_STATUS
3999 rm -fr confdefs* $ac_clean_files
4000 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4003 # Make target subdirectories if required.
4004 test -d src || mkdir src
4005 test -d src/${TARGETDIR} || mkdir src/${TARGETDIR}