3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13.1
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-maintainer-mode enable make rules and dependencies not useful
16 (and sometimes confusing) to the casual installer"
18 --enable-shared[=PKGS] build shared libraries [default=yes]"
20 --enable-static[=PKGS] build static libraries [default=yes]"
22 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
24 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
26 --disable-libtool-lock avoid locking (might break parallel builds)"
28 --enable-debug debugging mode"
30 --disable-structs omit code for struct support"
32 --disable-raw-api make the raw api unavailable"
34 --enable-purify-safety purify-safe mode"
36 # Initialize some variables set by options.
37 # The variables have the same names as the options, with
38 # dashes changed to underlines.
40 cache_file
=.
/config.cache
49 program_transform_name
=s
,x
,x
,
57 bindir
='${exec_prefix}/bin'
58 sbindir
='${exec_prefix}/sbin'
59 libexecdir
='${exec_prefix}/libexec'
60 datadir
='${prefix}/share'
61 sysconfdir
='${prefix}/etc'
62 sharedstatedir
='${prefix}/com'
63 localstatedir
='${prefix}/var'
64 libdir
='${exec_prefix}/lib'
65 includedir
='${prefix}/include'
66 oldincludedir
='/usr/include'
67 infodir
='${prefix}/info'
68 mandir
='${prefix}/man'
70 # Initialize some other variables.
73 SHELL
=${CONFIG_SHELL-/bin/sh}
74 # Maximum number of lines to put in a shell here document.
81 # If the previous option needs an argument, assign it.
82 if test -n "$ac_prev"; then
83 eval "$ac_prev=\$ac_option"
89 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
93 # Accept the important Cygnus configure options, so we can diagnose typos.
97 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
99 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
100 bindir
="$ac_optarg" ;;
102 -build |
--build |
--buil |
--bui |
--bu)
104 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
105 build
="$ac_optarg" ;;
107 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
108 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
109 ac_prev
=cache_file
;;
110 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
111 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
112 cache_file
="$ac_optarg" ;;
114 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
116 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
118 datadir
="$ac_optarg" ;;
120 -disable-* |
--disable-*)
121 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
122 # Reject names that are not valid shell variable names.
123 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
124 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
127 eval "enable_${ac_feature}=no" ;;
129 -enable-* |
--enable-*)
130 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
131 # Reject names that are not valid shell variable names.
132 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
133 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
140 eval "enable_${ac_feature}='$ac_optarg'" ;;
142 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
143 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
144 |
--exec |
--exe |
--ex)
145 ac_prev
=exec_prefix
;;
146 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
147 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
148 |
--exec=* |
--exe=* |
--ex=*)
149 exec_prefix
="$ac_optarg" ;;
151 -gas |
--gas |
--ga |
--g)
152 # Obsolete; use --with-gas.
155 -help |
--help |
--hel |
--he)
156 # Omit some internal or obsolete options to make the list less imposing.
157 # This message is too long to be a string in the A/UX 3.1 sh.
159 Usage: configure [options] [host]
160 Options: [defaults in brackets after descriptions]
162 --cache-file=FILE cache test results in FILE
163 --help print this message
164 --no-create do not create output files
165 --quiet, --silent do not print \`checking...' messages
166 --version print the version of autoconf that created configure
167 Directory and file names:
168 --prefix=PREFIX install architecture-independent files in PREFIX
170 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
172 --bindir=DIR user executables in DIR [EPREFIX/bin]
173 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
174 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
175 --datadir=DIR read-only architecture-independent data in DIR
177 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
178 --sharedstatedir=DIR modifiable architecture-independent data in DIR
180 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
181 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
182 --includedir=DIR C header files in DIR [PREFIX/include]
183 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
184 --infodir=DIR info documentation in DIR [PREFIX/info]
185 --mandir=DIR man documentation in DIR [PREFIX/man]
186 --srcdir=DIR find the sources in DIR [configure dir or ..]
187 --program-prefix=PREFIX prepend PREFIX to installed program names
188 --program-suffix=SUFFIX append SUFFIX to installed program names
189 --program-transform-name=PROGRAM
190 run sed PROGRAM on installed program names
194 --build=BUILD configure for building on BUILD [BUILD=HOST]
195 --host=HOST configure for HOST [guessed]
196 --target=TARGET configure for TARGET [TARGET=HOST]
197 Features and packages:
198 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
199 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
200 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
201 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
202 --x-includes=DIR X include files are in DIR
203 --x-libraries=DIR X library files are in DIR
205 if test -n "$ac_help"; then
206 echo "--enable and --with options recognized:$ac_help"
210 -host |
--host |
--hos |
--ho)
212 -host=* |
--host=* |
--hos=* |
--ho=*)
215 -includedir |
--includedir |
--includedi |
--included |
--include \
216 |
--includ |
--inclu |
--incl |
--inc)
217 ac_prev
=includedir
;;
218 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
219 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
220 includedir
="$ac_optarg" ;;
222 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
224 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
225 infodir
="$ac_optarg" ;;
227 -libdir |
--libdir |
--libdi |
--libd)
229 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
230 libdir
="$ac_optarg" ;;
232 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
233 |
--libexe |
--libex |
--libe)
234 ac_prev
=libexecdir
;;
235 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
236 |
--libexe=* |
--libex=* |
--libe=*)
237 libexecdir
="$ac_optarg" ;;
239 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
240 |
--localstate |
--localstat |
--localsta |
--localst \
241 |
--locals |
--local |
--loca |
--loc |
--lo)
242 ac_prev
=localstatedir
;;
243 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
244 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
245 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
246 localstatedir
="$ac_optarg" ;;
248 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
250 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
251 mandir
="$ac_optarg" ;;
254 # Obsolete; use --without-fp.
257 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
261 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
262 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
265 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
266 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
267 |
--oldin |
--oldi |
--old |
--ol |
--o)
268 ac_prev
=oldincludedir
;;
269 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
270 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
271 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
272 oldincludedir
="$ac_optarg" ;;
274 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
276 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
277 prefix
="$ac_optarg" ;;
279 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
280 |
--program-pre |
--program-pr |
--program-p)
281 ac_prev
=program_prefix
;;
282 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
283 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
284 program_prefix
="$ac_optarg" ;;
286 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
287 |
--program-suf |
--program-su |
--program-s)
288 ac_prev
=program_suffix
;;
289 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
290 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
291 program_suffix
="$ac_optarg" ;;
293 -program-transform-name |
--program-transform-name \
294 |
--program-transform-nam |
--program-transform-na \
295 |
--program-transform-n |
--program-transform- \
296 |
--program-transform |
--program-transfor \
297 |
--program-transfo |
--program-transf \
298 |
--program-trans |
--program-tran \
299 |
--progr-tra |
--program-tr |
--program-t)
300 ac_prev
=program_transform_name
;;
301 -program-transform-name=* |
--program-transform-name=* \
302 |
--program-transform-nam=* |
--program-transform-na=* \
303 |
--program-transform-n=* |
--program-transform-=* \
304 |
--program-transform=* |
--program-transfor=* \
305 |
--program-transfo=* |
--program-transf=* \
306 |
--program-trans=* |
--program-tran=* \
307 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
308 program_transform_name
="$ac_optarg" ;;
310 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
311 |
-silent |
--silent |
--silen |
--sile |
--sil)
314 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
316 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
318 sbindir
="$ac_optarg" ;;
320 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
321 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
322 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
324 ac_prev
=sharedstatedir
;;
325 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
326 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
327 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
329 sharedstatedir
="$ac_optarg" ;;
331 -site |
--site |
--sit)
333 -site=* |
--site=* |
--sit=*)
336 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
338 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
339 srcdir
="$ac_optarg" ;;
341 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
342 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
343 ac_prev
=sysconfdir
;;
344 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
345 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
346 sysconfdir
="$ac_optarg" ;;
348 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
350 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
351 target
="$ac_optarg" ;;
353 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
356 -version |
--version |
--versio |
--versi |
--vers)
357 echo "configure generated by autoconf version 2.13.1"
361 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
362 # Reject names that are not valid shell variable names.
363 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
364 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
366 ac_package
=`echo $ac_package| sed 's/-/_/g'`
371 eval "with_${ac_package}='$ac_optarg'" ;;
373 -without-* |
--without-*)
374 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
375 # Reject names that are not valid shell variable names.
376 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
377 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
379 ac_package
=`echo $ac_package| sed 's/-/_/g'`
380 eval "with_${ac_package}=no" ;;
383 # Obsolete; use --with-x.
386 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
387 |
--x-incl |
--x-inc |
--x-in |
--x-i)
388 ac_prev
=x_includes
;;
389 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
390 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
391 x_includes
="$ac_optarg" ;;
393 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
394 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
395 ac_prev
=x_libraries
;;
396 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
397 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
398 x_libraries
="$ac_optarg" ;;
400 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
404 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
405 echo "configure: warning: $ac_option: invalid host type" 1>&2
407 if test "x$nonopt" != xNONE
; then
408 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
416 if test -n "$ac_prev"; then
417 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
420 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
422 # File descriptor usage:
425 # 2 errors and warnings
426 # 3 some systems may open it to /dev/tty
427 # 4 used on the Kubota Titan
428 # 6 checking for... messages and results
429 # 5 compiler messages saved in config.log
430 if test "$silent" = yes; then
438 This file contains any messages produced by compilers while
439 running configure, to aid debugging if configure makes a mistake.
442 # Strip out --no-create and --no-recursion so they do not pile up.
443 # Also quote any args containing shell metacharacters.
448 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
449 |
--no-cr |
--no-c) ;;
450 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
451 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
452 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
453 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
454 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
459 # Only set these to C if already set. These must not be set unconditionally
460 # because not all systems understand e.g. LANG=C (notably SCO).
461 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
462 # Non-C LC_CTYPE values break the ctype check.
463 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
464 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
465 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
466 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
468 # confdefs.h avoids OS command line length limits that DEFS can exceed.
469 rm -rf conftest
* confdefs.h
470 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
473 # A filename unique to this package, relative to the directory that
474 # configure is in, which we can look for to find out if srcdir is correct.
475 ac_unique_file
=fficonfig.h.
in
477 # Find the source files, if location was not specified.
478 if test -z "$srcdir"; then
479 ac_srcdir_defaulted
=yes
480 # Try the directory containing this script, then its parent.
482 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
483 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
485 if test ! -r $srcdir/$ac_unique_file; then
489 ac_srcdir_defaulted
=no
491 if test ! -r $srcdir/$ac_unique_file; then
492 if test "$ac_srcdir_defaulted" = yes; then
493 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
495 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
498 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
500 # Prefer explicitly selected file to automatically selected ones.
501 if test -z "$CONFIG_SITE"; then
502 if test "x$prefix" != xNONE
; then
503 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
505 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
508 for ac_site_file
in $CONFIG_SITE; do
509 if test -r "$ac_site_file"; then
510 echo "loading site script $ac_site_file"
515 if test -r "$cache_file"; then
516 echo "loading cache $cache_file"
517 test -f "$cache_file" && .
$cache_file
519 echo "creating cache $cache_file"
524 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
525 ac_cpp
='$CPP $CPPFLAGS'
526 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
527 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
528 cross_compiling
=$ac_cv_prog_cc_cross
532 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
533 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
534 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
541 ac_n
= ac_c
='\c' ac_t
=
549 echo "configure: warning: ***********************************************************" 1>&2
550 echo "configure: warning: ***********************************************************" 1>&2
551 echo "configure: warning: This is beta code. If you're looking for a stable release" 1>&2
552 echo "configure: warning: then use the most recent one - libffi-1.20." 1>&2
553 echo "configure: warning: ***********************************************************" 1>&2
554 echo "configure: warning: ***********************************************************" 1>&2
557 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
558 if test -f $ac_dir/install-sh
; then
560 ac_install_sh
="$ac_aux_dir/install-sh -c"
562 elif test -f $ac_dir/install.sh
; then
564 ac_install_sh
="$ac_aux_dir/install.sh -c"
568 if test -z "$ac_aux_dir"; then
569 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
571 ac_config_guess
="$SHELL $ac_aux_dir/config.guess"
572 ac_config_sub
="$SHELL $ac_aux_dir/config.sub"
573 ac_configure
="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
576 echo $ac_n "checking host system type""... $ac_c" 1>&6
577 echo "configure:578: checking host system type" >&5
578 if test "x$ac_cv_host" = "x" ||
(test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
580 # Make sure we can run config.sub.
581 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
582 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
585 ac_cv_host_alias
=$host
586 case "$ac_cv_host_alias" in
590 if ac_cv_host_alias
=`$ac_config_guess`; then :
591 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
593 *) ac_cv_host_alias
=$nonopt ;;
597 ac_cv_host
=`$ac_config_sub $ac_cv_host_alias`
598 ac_cv_host_cpu
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
599 ac_cv_host_vendor
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
600 ac_cv_host_os
=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
602 echo $ac_n "(cached) $ac_c" 1>&6
605 echo "$ac_t""$ac_cv_host" 1>&6
608 host_alias
=$ac_cv_host_alias
609 host_cpu
=$ac_cv_host_cpu
610 host_vendor
=$ac_cv_host_vendor
611 host_os
=$ac_cv_host_os
617 # Find a good install program. We prefer a C program (faster),
618 # so one script is as good as another. But avoid the broken or
619 # incompatible versions:
620 # SysV /etc/install, /usr/sbin/install
621 # SunOS /usr/etc/install
624 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
625 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
626 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
627 # ./install, which can be erroneously created by make from ./install.sh.
628 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
629 echo "configure:630: checking for a BSD compatible install" >&5
630 if test -z "$INSTALL"; then
631 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
632 echo $ac_n "(cached) $ac_c" 1>&6
634 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
635 for ac_dir
in $PATH; do
636 # Account for people who put trailing slashes in PATH elements.
638 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
640 # OSF1 and SCO ODT 3.0 have their own names for install.
641 # Don't use installbsd from OSF since it installs stuff as root
643 for ac_prog
in ginstall scoinst
install; do
644 if test -f $ac_dir/$ac_prog; then
645 if test $ac_prog = install &&
646 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
647 # AIX install. It has an incompatible calling convention.
649 elif test $ac_prog = install &&
650 grep pwplus
$ac_dir/$ac_prog >/dev
/null
2>&1; then
651 # program-specific install script used by HP pwplus--don't use.
654 ac_cv_path_install
="$ac_dir/$ac_prog -c"
665 if test "${ac_cv_path_install+set}" = set; then
666 INSTALL
="$ac_cv_path_install"
668 # As a last resort, use the slow shell script. We don't cache a
669 # path for INSTALL within a source directory, because that will
670 # break other packages using the cache if that directory is
671 # removed, or if the path is relative.
672 INSTALL
="$ac_install_sh"
675 echo "$ac_t""$INSTALL" 1>&6
677 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
678 # It thinks the first close brace ends the variable substitution.
679 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
681 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
683 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
685 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
686 echo "configure:687: checking whether build environment is sane" >&5
689 echo timestamp
> conftestfile
690 # Do `set' in a subshell so we don't clobber the current shell's
691 # arguments. Must try -L first in case configure is actually a
692 # symlink; some systems play weird games with the mod time of symlinks
693 # (eg FreeBSD returns the mod time of the symlink's containing
696 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
697 if test "$*" = "X"; then
699 set X
`ls -t $srcdir/configure conftestfile`
701 if test "$*" != "X $srcdir/configure conftestfile" \
702 && test "$*" != "X conftestfile $srcdir/configure"; then
704 # If neither matched, then we have a broken ls. This can happen
705 # if, for instance, CONFIG_SHELL is bash and it inherits a
706 # broken ls alias from the environment. This has actually
707 # happened. Such a system could not be considered "sane".
708 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
709 alias in your environment" 1>&2; exit 1; }
712 test "$2" = conftestfile
718 { echo "configure: error: newly created file is older than distributed files!
719 Check your system clock" 1>&2; exit 1; }
722 echo "$ac_t""yes" 1>&6
723 if test "$program_transform_name" = s
,x
,x
,; then
724 program_transform_name
=
726 # Double any \ or $. echo might interpret backslashes.
727 cat <<\EOF_SED
> conftestsed
728 s
,\\,\\\\,g
; s
,\$
,$$
,g
730 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
733 test "$program_prefix" != NONE
&&
734 program_transform_name
="s,^,${program_prefix},;$program_transform_name"
735 # Use a double $ so make ignores it.
736 test "$program_suffix" != NONE
&&
737 program_transform_name
="s,\$\$,${program_suffix},;$program_transform_name"
739 # sed with no file args requires a program.
740 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
742 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
743 echo "configure:744: checking whether ${MAKE-make} sets \${MAKE}" >&5
744 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
745 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
746 echo $ac_n "(cached) $ac_c" 1>&6
748 cat > conftestmake
<<\EOF
750 @
echo 'ac_maketemp="${MAKE}"'
752 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
753 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
754 if test -n "$ac_maketemp"; then
755 eval ac_cv_prog_make_
${ac_make}_set
=yes
757 eval ac_cv_prog_make_
${ac_make}_set
=no
761 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
762 echo "$ac_t""yes" 1>&6
765 echo "$ac_t""no" 1>&6
766 SET_MAKE
="MAKE=${MAKE-make}"
775 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
776 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
781 missing_dir
=`cd $ac_aux_dir && pwd`
782 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
783 echo "configure:784: checking for working aclocal" >&5
784 # Run test in a subshell; some versions of sh will print an error if
785 # an executable is not found, even if stderr is redirected.
786 # Redirect stdin to placate older versions of autoconf. Sigh.
787 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
789 echo "$ac_t""found" 1>&6
791 ACLOCAL
="$missing_dir/missing aclocal"
792 echo "$ac_t""missing" 1>&6
795 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
796 echo "configure:797: checking for working autoconf" >&5
797 # Run test in a subshell; some versions of sh will print an error if
798 # an executable is not found, even if stderr is redirected.
799 # Redirect stdin to placate older versions of autoconf. Sigh.
800 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
802 echo "$ac_t""found" 1>&6
804 AUTOCONF
="$missing_dir/missing autoconf"
805 echo "$ac_t""missing" 1>&6
808 echo $ac_n "checking for working automake""... $ac_c" 1>&6
809 echo "configure:810: checking for working automake" >&5
810 # Run test in a subshell; some versions of sh will print an error if
811 # an executable is not found, even if stderr is redirected.
812 # Redirect stdin to placate older versions of autoconf. Sigh.
813 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
815 echo "$ac_t""found" 1>&6
817 AUTOMAKE
="$missing_dir/missing automake"
818 echo "$ac_t""missing" 1>&6
821 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
822 echo "configure:823: checking for working autoheader" >&5
823 # Run test in a subshell; some versions of sh will print an error if
824 # an executable is not found, even if stderr is redirected.
825 # Redirect stdin to placate older versions of autoconf. Sigh.
826 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
827 AUTOHEADER
=autoheader
828 echo "$ac_t""found" 1>&6
830 AUTOHEADER
="$missing_dir/missing autoheader"
831 echo "$ac_t""missing" 1>&6
834 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
835 echo "configure:836: checking for working makeinfo" >&5
836 # Run test in a subshell; some versions of sh will print an error if
837 # an executable is not found, even if stderr is redirected.
838 # Redirect stdin to placate older versions of autoconf. Sigh.
839 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
841 echo "$ac_t""found" 1>&6
843 MAKEINFO
="$missing_dir/missing makeinfo"
844 echo "$ac_t""missing" 1>&6
847 install_sh
="$missing_dir/install-sh"
848 test -f "$install_sh" || install_sh
="$missing_dir/install.sh"
850 for ac_prog
in gnutar gtar
tar
852 # Extract the first word of "$ac_prog", so it can be a program name with args.
853 set dummy
$ac_prog; ac_word
=$2
854 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
855 echo "configure:856: checking for $ac_word" >&5
856 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
857 echo $ac_n "(cached) $ac_c" 1>&6
859 if test -n "$AMTAR"; then
860 ac_cv_prog_AMTAR
="$AMTAR" # Let the user override the test.
862 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
864 for ac_dir
in $ac_dummy; do
865 test -z "$ac_dir" && ac_dir
=.
866 if test -f $ac_dir/$ac_word; then
867 ac_cv_prog_AMTAR
="$ac_prog"
874 AMTAR
="$ac_cv_prog_AMTAR"
875 if test -n "$AMTAR"; then
876 echo "$ac_t""$AMTAR" 1>&6
878 echo "$ac_t""no" 1>&6
881 test -n "$AMTAR" && break
885 if test -n "$AMTAR"; then
886 if $SHELL -c "$AMTAR --version" > /dev
/null
2>&1; then
893 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
894 echo "configure:895: checking for Cygwin environment" >&5
895 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
896 echo $ac_n "(cached) $ac_c" 1>&6
898 cat > conftest.
$ac_ext <<EOF
899 #line 900 "configure"
900 #include "confdefs.h"
905 #define __CYGWIN__ __CYGWIN32__
910 if { (eval echo configure
:911: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
914 echo "configure: failed program was:" >&5
915 cat conftest.
$ac_ext >&5
922 echo "$ac_t""$ac_cv_cygwin" 1>&6
924 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
925 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
926 echo "configure:927: checking for mingw32 environment" >&5
927 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
928 echo $ac_n "(cached) $ac_c" 1>&6
930 cat > conftest.
$ac_ext <<EOF
931 #line 932 "configure"
932 #include "confdefs.h"
938 if { (eval echo configure
:939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
942 echo "configure: failed program was:" >&5
943 cat conftest.
$ac_ext >&5
950 echo "$ac_t""$ac_cv_mingw32" 1>&6
952 test "$ac_cv_mingw32" = yes && MINGW32
=yes
953 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
954 echo "configure:955: checking for EMX OS/2 environment" >&5
955 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
956 echo $ac_n "(cached) $ac_c" 1>&6
958 cat > conftest.
$ac_ext <<EOF
959 #line 960 "configure"
960 #include "confdefs.h"
966 if { (eval echo configure
:967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
970 echo "configure: failed program was:" >&5
971 cat conftest.
$ac_ext >&5
978 echo "$ac_t""$ac_cv_emxos2" 1>&6
980 test "$ac_cv_emxos2" = yes && EMXOS2
=yes
984 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
985 echo "configure:986: checking for executable suffix" >&5
986 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
987 echo $ac_n "(cached) $ac_c" 1>&6
989 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes ||
test "$EMXOS2" = yes; then
993 echo 'int main () { return 0; }' > conftest.
$ac_ext
995 if { (eval echo configure
:996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
996 for file in conftest.
*; do
998 *.c |
*.C |
*.o |
*.obj |
*.xcoff
) ;;
999 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
1003 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1006 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1011 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1012 echo "$ac_t""${ac_cv_exeext}" 1>&6
1015 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1016 echo "configure:1017: checking whether to enable maintainer-specific portions of Makefiles" >&5
1017 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1018 if test "${enable_maintainer_mode+set}" = set; then
1019 enableval
="$enable_maintainer_mode"
1020 USE_MAINTAINER_MODE
=$enableval
1022 USE_MAINTAINER_MODE
=no
1025 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1028 if test $USE_MAINTAINER_MODE = yes; then
1029 MAINTAINER_MODE_TRUE
=
1030 MAINTAINER_MODE_FALSE
='#'
1032 MAINTAINER_MODE_TRUE
='#'
1033 MAINTAINER_MODE_FALSE
=
1035 MAINT
=$MAINTAINER_MODE_TRUE
1039 # Extract the first word of "gcc", so it can be a program name with args.
1040 set dummy gcc
; ac_word
=$2
1041 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1042 echo "configure:1043: checking for $ac_word" >&5
1043 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
1044 echo $ac_n "(cached) $ac_c" 1>&6
1046 if test -n "$CC"; then
1047 ac_cv_prog_CC
="$CC" # Let the user override the test.
1049 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1051 for ac_dir
in $ac_dummy; do
1052 test -z "$ac_dir" && ac_dir
=.
1053 if test -f $ac_dir/$ac_word; then
1062 if test -n "$CC"; then
1063 echo "$ac_t""$CC" 1>&6
1065 echo "$ac_t""no" 1>&6
1068 if test -z "$CC"; then
1069 # Extract the first word of "cc", so it can be a program name with args.
1070 set dummy cc
; ac_word
=$2
1071 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1072 echo "configure:1073: checking for $ac_word" >&5
1073 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
1074 echo $ac_n "(cached) $ac_c" 1>&6
1076 if test -n "$CC"; then
1077 ac_cv_prog_CC
="$CC" # Let the user override the test.
1079 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1082 for ac_dir
in $ac_dummy; do
1083 test -z "$ac_dir" && ac_dir
=.
1084 if test -f $ac_dir/$ac_word; then
1085 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1086 ac_prog_rejected
=yes
1094 if test $ac_prog_rejected = yes; then
1095 # We found a bogon in the path, so make sure we never use it.
1096 set dummy
$ac_cv_prog_CC
1098 if test $# -gt 0; then
1099 # We chose a different compiler from the bogus one.
1100 # However, it has the same basename, so the bogon will be chosen
1101 # first if we set CC to just the basename; use the full file name.
1103 set dummy
"$ac_dir/$ac_word" "$@"
1111 if test -n "$CC"; then
1112 echo "$ac_t""$CC" 1>&6
1114 echo "$ac_t""no" 1>&6
1117 if test -z "$CC"; then
1118 case "`uname -s`" in
1119 *win32
* |
*WIN32
* |
*CYGWIN
*)
1120 # Extract the first word of "cl", so it can be a program name with args.
1121 set dummy cl
; ac_word
=$2
1122 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1123 echo "configure:1124: checking for $ac_word" >&5
1124 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
1125 echo $ac_n "(cached) $ac_c" 1>&6
1127 if test -n "$CC"; then
1128 ac_cv_prog_CC
="$CC" # Let the user override the test.
1130 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1132 for ac_dir
in $ac_dummy; do
1133 test -z "$ac_dir" && ac_dir
=.
1134 if test -f $ac_dir/$ac_word; then
1143 if test -n "$CC"; then
1144 echo "$ac_t""$CC" 1>&6
1146 echo "$ac_t""no" 1>&6
1151 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1154 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1155 echo "configure:1156: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
1158 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1159 ac_cpp
='$CPP $CPPFLAGS'
1160 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1161 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1162 cross_compiling
=$ac_cv_prog_cc_cross
1164 cat > conftest.
$ac_ext << EOF
1166 #line 1167 "configure"
1167 #include "confdefs.h"
1171 if { (eval echo configure
:1172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1172 ac_cv_prog_cc_works
=yes
1173 # If we can't run a trivial program, we are probably using a cross compiler.
1174 if (.
/conftest
; exit) 2>/dev
/null
; then
1175 ac_cv_prog_cc_cross
=no
1177 ac_cv_prog_cc_cross
=yes
1180 echo "configure: failed program was:" >&5
1181 cat conftest.
$ac_ext >&5
1182 ac_cv_prog_cc_works
=no
1186 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1187 ac_cpp
='$CPP $CPPFLAGS'
1188 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1189 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1190 cross_compiling
=$ac_cv_prog_cc_cross
1192 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1193 if test $ac_cv_prog_cc_works = no
; then
1194 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1196 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1197 echo "configure:1198: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
1198 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1199 cross_compiling
=$ac_cv_prog_cc_cross
1201 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1202 echo "configure:1203: checking whether we are using GNU C" >&5
1203 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
1204 echo $ac_n "(cached) $ac_c" 1>&6
1206 cat > conftest.c
<<EOF
1211 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1218 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1220 if test $ac_cv_prog_gcc = yes; then
1226 ac_test_CFLAGS
="${CFLAGS+set}"
1227 ac_save_CFLAGS
="$CFLAGS"
1229 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1230 echo "configure:1231: checking whether ${CC-cc} accepts -g" >&5
1231 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
1232 echo $ac_n "(cached) $ac_c" 1>&6
1234 echo 'void f(){}' > conftest.c
1235 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1244 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1245 if test "$ac_test_CFLAGS" = set; then
1246 CFLAGS
="$ac_save_CFLAGS"
1247 elif test $ac_cv_prog_cc_g = yes; then
1248 if test "$GCC" = yes; then
1254 if test "$GCC" = yes; then
1261 # Check whether --enable-shared or --disable-shared was given.
1262 if test "${enable_shared+set}" = set; then
1263 enableval
="$enable_shared"
1264 p
=${PACKAGE-default}
1265 case "$enableval" in
1266 yes) enable_shared
=yes ;;
1267 no
) enable_shared
=no
;;
1270 # Look at the argument we got. We use all the common list separators.
1271 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1272 for pkg
in $enableval; do
1273 if test "X$pkg" = "X$p"; then
1284 # Check whether --enable-static or --disable-static was given.
1285 if test "${enable_static+set}" = set; then
1286 enableval
="$enable_static"
1287 p
=${PACKAGE-default}
1288 case "$enableval" in
1289 yes) enable_static
=yes ;;
1290 no
) enable_static
=no
;;
1293 # Look at the argument we got. We use all the common list separators.
1294 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1295 for pkg
in $enableval; do
1296 if test "X$pkg" = "X$p"; then
1307 # Check whether --enable-fast-install or --disable-fast-install was given.
1308 if test "${enable_fast_install+set}" = set; then
1309 enableval
="$enable_fast_install"
1310 p
=${PACKAGE-default}
1311 case "$enableval" in
1312 yes) enable_fast_install
=yes ;;
1313 no
) enable_fast_install
=no
;;
1315 enable_fast_install
=no
1316 # Look at the argument we got. We use all the common list separators.
1317 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1318 for pkg
in $enableval; do
1319 if test "X$pkg" = "X$p"; then
1320 enable_fast_install
=yes
1327 enable_fast_install
=yes
1331 echo $ac_n "checking build system type""... $ac_c" 1>&6
1332 echo "configure:1333: checking build system type" >&5
1333 if test "x$ac_cv_build" = "x" ||
(test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
1335 # Make sure we can run config.sub.
1336 if $ac_config_sub sun4
>/dev
/null
2>&1; then :
1337 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1340 ac_cv_build_alias
=$build
1341 case "$ac_cv_build_alias" in
1345 ac_cv_build_alias
=$host_alias ;;
1347 *) ac_cv_build_alias
=$nonopt ;;
1351 ac_cv_build
=`$ac_config_sub $ac_cv_build_alias`
1352 ac_cv_build_cpu
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1353 ac_cv_build_vendor
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1354 ac_cv_build_os
=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1356 echo $ac_n "(cached) $ac_c" 1>&6
1359 echo "$ac_t""$ac_cv_build" 1>&6
1362 build_alias
=$ac_cv_build_alias
1363 build_cpu
=$ac_cv_build_cpu
1364 build_vendor
=$ac_cv_build_vendor
1365 build_os
=$ac_cv_build_os
1370 # Extract the first word of "ranlib", so it can be a program name with args.
1371 set dummy ranlib
; ac_word
=$2
1372 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1373 echo "configure:1374: checking for $ac_word" >&5
1374 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
1375 echo $ac_n "(cached) $ac_c" 1>&6
1377 if test -n "$RANLIB"; then
1378 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1380 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1382 for ac_dir
in $ac_dummy; do
1383 test -z "$ac_dir" && ac_dir
=.
1384 if test -f $ac_dir/$ac_word; then
1385 ac_cv_prog_RANLIB
="ranlib"
1390 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1393 RANLIB
="$ac_cv_prog_RANLIB"
1394 if test -n "$RANLIB"; then
1395 echo "$ac_t""$RANLIB" 1>&6
1397 echo "$ac_t""no" 1>&6
1400 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1401 if test "${with_gnu_ld+set}" = set; then
1402 withval
="$with_gnu_ld"
1403 test "$withval" = no || with_gnu_ld
=yes
1409 if test "$ac_cv_prog_gcc" = yes; then
1410 # Check if gcc -print-prog-name=ld gives a path.
1411 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1412 echo "configure:1413: checking for ld used by GCC" >&5
1413 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1415 # Accept absolute paths.
1416 [\\/]* |
[A-Za-z
]:[\\/]*)
1417 re_direlt
='/[^/][^/]*/\.\./'
1418 # Canonicalize the path of ld
1419 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1420 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1421 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1423 test -z "$LD" && LD
="$ac_prog"
1426 # If it fails, then pretend we aren't using GCC.
1430 # If it is relative, then search for the first ld in PATH.
1434 elif test "$with_gnu_ld" = yes; then
1435 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1436 echo "configure:1437: checking for GNU ld" >&5
1438 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1439 echo "configure:1440: checking for non-GNU ld" >&5
1441 if eval "test \"\${ac_cv_path_LD+set}\" = set"; then
1442 echo $ac_n "(cached) $ac_c" 1>&6
1444 if test -z "$LD"; then
1445 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1446 for ac_dir
in $PATH; do
1447 test -z "$ac_dir" && ac_dir
=.
1448 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1449 ac_cv_path_LD
="$ac_dir/$ac_prog"
1450 # Check to see if the program is GNU ld. I'd rather use --version,
1451 # but apparently some GNU ld's only accept -v.
1452 # Break only if it was the GNU/non-GNU ld that we prefer.
1453 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1454 test "$with_gnu_ld" != no
&& break
1456 test "$with_gnu_ld" != yes && break
1462 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1467 if test -n "$LD"; then
1468 echo "$ac_t""$LD" 1>&6
1470 echo "$ac_t""no" 1>&6
1472 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1474 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1475 echo "configure:1476: checking if the linker ($LD) is GNU ld" >&5
1476 if eval "test \"\${ac_cv_prog_gnu_ld+set}\" = set"; then
1477 echo $ac_n "(cached) $ac_c" 1>&6
1479 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1480 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1481 ac_cv_prog_gnu_ld
=yes
1483 ac_cv_prog_gnu_ld
=no
1487 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1490 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1491 echo "configure:1492: checking for BSD-compatible nm" >&5
1492 if eval "test \"\${ac_cv_path_NM+set}\" = set"; then
1493 echo $ac_n "(cached) $ac_c" 1>&6
1495 if test -n "$NM"; then
1496 # Let the user override the test.
1499 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1500 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1501 test -z "$ac_dir" && ac_dir
=.
1502 if test -f $ac_dir/nm ||
test -f $ac_dir/nm
$ac_exeext ; then
1503 # Check to see if the nm accepts a BSD-compat flag.
1504 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1505 # nm: unknown option "B" ignored
1506 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1507 ac_cv_path_NM
="$ac_dir/nm -B"
1509 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1510 ac_cv_path_NM
="$ac_dir/nm -p"
1513 ac_cv_path_NM
=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1514 continue # so that we can try to find one that supports BSD flags
1519 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1524 echo "$ac_t""$NM" 1>&6
1527 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1528 echo "configure:1529: checking whether ln -s works" >&5
1529 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
1530 echo $ac_n "(cached) $ac_c" 1>&6
1533 if ln -s X conftestdata
2>/dev
/null
1536 ac_cv_prog_LN_S
="ln -s"
1541 LN_S
="$ac_cv_prog_LN_S"
1542 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1543 echo "$ac_t""yes" 1>&6
1545 echo "$ac_t""no" 1>&6
1549 # Check for any special flags to pass to ltconfig.
1550 libtool_flags
="--cache-file=$cache_file"
1551 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1552 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1553 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1554 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1555 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1558 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1559 if test "${enable_libtool_lock+set}" = set; then
1560 enableval
="$enable_libtool_lock"
1564 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1565 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1567 # Some flags need to be propagated to the compiler or linker for good
1571 # Find out which ABI we are using.
1572 echo '#line 1573 "configure"' > conftest.
$ac_ext
1573 if { (eval echo configure
:1574: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1574 case "`/usr/bin/file conftest.o`" in
1590 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1591 SAVE_CFLAGS
="$CFLAGS"
1592 CFLAGS
="$CFLAGS -belf"
1593 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1594 echo "configure:1595: checking whether the C compiler needs -belf" >&5
1595 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
1596 echo $ac_n "(cached) $ac_c" 1>&6
1598 cat > conftest.
$ac_ext <<EOF
1599 #line 1600 "configure"
1600 #include "confdefs.h"
1606 if { (eval echo configure
:1607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1608 lt_cv_cc_needs_belf
=yes
1610 echo "configure: failed program was:" >&5
1611 cat conftest.
$ac_ext >&5
1613 lt_cv_cc_needs_belf
=no
1618 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1619 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
1620 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1621 CFLAGS
="$SAVE_CFLAGS"
1629 # Save cache, so that ltconfig can load it
1630 cat > confcache
<<\EOF
1631 # This file is a shell script that caches the results of configure
1632 # tests run on this system so they can be shared between configure
1633 # scripts and configure runs. It is not useful on other systems.
1634 # If it contains results you don't want to keep, you may remove or edit it.
1636 # By default, configure uses ./config.cache as the cache file,
1637 # creating it if it does not exist already. You can give configure
1638 # the --cache-file=FILE option to use a different cache file; that is
1639 # what configure does when it calls configure scripts in
1640 # subdirectories, so they share the cache.
1641 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1642 # config.status only pays attention to the cache file if you give it the
1643 # --recheck option to rerun configure.
1646 # The following way of writing the cache mishandles newlines in values,
1647 # but we know of no workaround that is simple, portable, and efficient.
1648 # So, don't put newlines in cache variables' values.
1649 # Ultrix sh set writes to stderr and can't be redirected directly,
1650 # and sets the high bit in the cache file unless we assign to the vars.
1652 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1654 # `set' does not quote correctly, so add quotes (double-quote substitution
1655 # turns \\\\ into \\, and sed turns \\ into \).
1657 -e "s/'/'\\\\''/g" \
1658 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1661 # `set' quotes correctly as required by POSIX, so do not add quotes.
1662 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1665 if cmp -s $cache_file confcache
; then
1668 if test -w $cache_file; then
1669 echo "updating cache $cache_file"
1670 cat confcache
> $cache_file
1672 echo "not updating unwritable cache $cache_file"
1678 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1679 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
1680 LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
1681 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" \
1682 DLLTOOL
="$DLLTOOL" AS
="$AS" OBJDUMP
="$OBJDUMP" \
1683 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
1684 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
1685 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1687 # Reload cache, that may have been modified by ltconfig
1688 if test -r "$cache_file"; then
1689 echo "loading cache $cache_file"
1690 test -f "$cache_file" && .
$cache_file
1692 echo "creating cache $cache_file"
1697 # This can be used to rebuild libtool when needed
1698 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1700 # Always use our own libtool.
1701 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
1703 # Redirect the config.log output again, so that the ltconfig log is not
1704 # clobbered by the next message.
1705 exec 5>>.
/config.log
1710 mips-sgi-irix5.
* | mips-sgi-irix6.
*) TARGET
=MIPS
; TARGETDIR
=mips
;;
1711 i
*86-pc-linux*) TARGET
=X86
; TARGETDIR
=x86
;;
1712 i
*86-*-beos*) TARGET
=X86
; TARGETDIR
=x86
;;
1713 sparc-sun-4
*) TARGET
=SPARC
; TARGETDIR
=sparc
;;
1714 sparc-sun-
*) TARGET
=SPARC
; TARGETDIR
=sparc
;;
1715 alpha
*-*-linux* | alpha
*-*-osf*) TARGET
=ALPHA
; TARGETDIR
=alpha
;;
1716 m68k-
*-linux*) TARGET
=M68K
; TARGETDIR
=m68k
;;
1717 powerpc-
*-linux* | powerpc-
*-sysv*) TARGET
=POWERPC
; TARGETDIR
=powerpc
;;
1718 powerpc-
*-beos*) TARGET
=POWERPC
; TARGETDIR
=powerpc
;;
1719 arm-
*-linux-*) TARGET
=ARM
; TARGETDIR
=arm
;;
1722 if test $TARGETDIR = unknown
; then
1723 { echo "configure: error: "libffi has not been ported to
$host.
"" 1>&2; exit 1; }
1728 if test ${TARGET}${ac_cv_prog_gcc} = MIPSyes
; then
1737 if test ${TARGET}${ac_cv_prog_gcc} = MIPSno
; then
1746 if test x
$TARGET = xSPARC
; then
1755 if test x
$TARGET = xX86
; then
1764 if test x
$TARGET = xALPHA
; then
1773 if test x
$TARGET = xM68K
; then
1782 if test x
$TARGET = xPOWERPC
; then
1791 if test x
$TARGET = xARM
; then
1799 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1800 echo "configure:1801: checking how to run the C preprocessor" >&5
1801 # On Suns, sometimes $CPP names a directory.
1802 if test -n "$CPP" && test -d "$CPP"; then
1805 if test -z "$CPP"; then
1806 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
1807 echo $ac_n "(cached) $ac_c" 1>&6
1809 # This must be in double quotes, not single quotes, because CPP may get
1810 # substituted into the Makefile and "${CC-cc}" will confuse make.
1812 # On the NeXT, cc -E runs the code through the compiler's parser,
1813 # not just through cpp.
1814 cat > conftest.
$ac_ext <<EOF
1815 #line 1816 "configure"
1816 #include "confdefs.h"
1820 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1821 { (eval echo configure
:1822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1822 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1823 if test -z "$ac_err"; then
1827 echo "configure: failed program was:" >&5
1828 cat conftest.
$ac_ext >&5
1830 CPP
="${CC-cc} -E -traditional-cpp"
1831 cat > conftest.
$ac_ext <<EOF
1832 #line 1833 "configure"
1833 #include "confdefs.h"
1837 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1838 { (eval echo configure
:1839: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1839 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1840 if test -z "$ac_err"; then
1844 echo "configure: failed program was:" >&5
1845 cat conftest.
$ac_ext >&5
1847 CPP
="${CC-cc} -nologo -E"
1848 cat > conftest.
$ac_ext <<EOF
1849 #line 1850 "configure"
1850 #include "confdefs.h"
1854 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1855 { (eval echo configure
:1856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1856 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1857 if test -z "$ac_err"; then
1861 echo "configure: failed program was:" >&5
1862 cat conftest.
$ac_ext >&5
1871 ac_cv_prog_CPP
="$CPP"
1873 CPP
="$ac_cv_prog_CPP"
1875 ac_cv_prog_CPP
="$CPP"
1877 echo "$ac_t""$CPP" 1>&6
1879 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1880 echo "configure:1881: checking for ANSI C header files" >&5
1881 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
1882 echo $ac_n "(cached) $ac_c" 1>&6
1884 cat > conftest.
$ac_ext <<EOF
1885 #line 1886 "configure"
1886 #include "confdefs.h"
1892 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1893 { (eval echo configure
:1894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1894 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1895 if test -z "$ac_err"; then
1897 ac_cv_header_stdc
=yes
1900 echo "configure: failed program was:" >&5
1901 cat conftest.
$ac_ext >&5
1903 ac_cv_header_stdc
=no
1907 if test $ac_cv_header_stdc = yes; then
1908 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1909 cat > conftest.
$ac_ext <<EOF
1910 #line 1911 "configure"
1911 #include "confdefs.h"
1914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1915 egrep "memchr" >/dev
/null
2>&1; then
1919 ac_cv_header_stdc
=no
1925 if test $ac_cv_header_stdc = yes; then
1926 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1927 cat > conftest.
$ac_ext <<EOF
1928 #line 1929 "configure"
1929 #include "confdefs.h"
1932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1933 egrep "free" >/dev
/null
2>&1; then
1937 ac_cv_header_stdc
=no
1943 if test $ac_cv_header_stdc = yes; then
1944 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1945 if test "$cross_compiling" = yes; then
1948 cat > conftest.
$ac_ext <<EOF
1949 #line 1950 "configure"
1950 #include "confdefs.h"
1952 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1953 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1954 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1955 int main () { int i; for (i = 0; i < 256; i++)
1956 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1960 if { (eval echo configure
:1961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1964 echo "configure: failed program was:" >&5
1965 cat conftest.
$ac_ext >&5
1967 ac_cv_header_stdc
=no
1975 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1976 if test $ac_cv_header_stdc = yes; then
1977 cat >> confdefs.h
<<\EOF
1978 #define STDC_HEADERS 1
1983 for ac_func
in memcpy
1985 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1986 echo "configure:1987: checking for $ac_func" >&5
1987 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
1988 echo $ac_n "(cached) $ac_c" 1>&6
1990 cat > conftest.
$ac_ext <<EOF
1991 #line 1992 "configure"
1992 #include "confdefs.h"
1993 /* System header to define __stub macros and hopefully few prototypes,
1994 which can conflict with char $ac_func(); below. */
1996 /* Override any gcc2 internal prototype to avoid an error. */
1997 /* We use char because int might match the return type of a gcc2
1998 builtin and then its argument prototype would still apply. */
2004 /* The GNU C library defines this for functions which it implements
2005 to always fail with ENOSYS. Some functions are actually named
2006 something starting with __ and the normal name is an alias. */
2007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2015 if { (eval echo configure
:2016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2017 eval "ac_cv_func_$ac_func=yes"
2019 echo "configure: failed program was:" >&5
2020 cat conftest.
$ac_ext >&5
2022 eval "ac_cv_func_$ac_func=no"
2027 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2028 echo "$ac_t""yes" 1>&6
2029 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2030 cat >> confdefs.h
<<EOF
2031 #define $ac_tr_func 1
2035 echo "$ac_t""no" 1>&6
2039 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2040 # for constant arguments. Useless!
2041 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2042 echo "configure:2043: checking for working alloca.h" >&5
2043 if eval "test \"\${ac_cv_header_alloca_h+set}\" = set"; then
2044 echo $ac_n "(cached) $ac_c" 1>&6
2046 cat > conftest.
$ac_ext <<EOF
2047 #line 2048 "configure"
2048 #include "confdefs.h"
2051 char *p = alloca(2 * sizeof(int));
2054 if { (eval echo configure
:2055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2056 ac_cv_header_alloca_h
=yes
2058 echo "configure: failed program was:" >&5
2059 cat conftest.
$ac_ext >&5
2061 ac_cv_header_alloca_h
=no
2066 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2067 if test $ac_cv_header_alloca_h = yes; then
2068 cat >> confdefs.h
<<\EOF
2069 #define HAVE_ALLOCA_H 1
2074 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2075 echo "configure:2076: checking for alloca" >&5
2076 if eval "test \"\${ac_cv_func_alloca_works+set}\" = set"; then
2077 echo $ac_n "(cached) $ac_c" 1>&6
2079 cat > conftest.
$ac_ext <<EOF
2080 #line 2081 "configure"
2081 #include "confdefs.h"
2084 # define alloca __builtin_alloca
2087 # include <malloc.h>
2088 # define alloca _alloca
2091 # include <alloca.h>
2096 # ifndef alloca /* predefined by HP cc +Olibcalls */
2105 char *p = (char *) alloca(1);
2108 if { (eval echo configure
:2109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2110 ac_cv_func_alloca_works
=yes
2112 echo "configure: failed program was:" >&5
2113 cat conftest.
$ac_ext >&5
2115 ac_cv_func_alloca_works
=no
2120 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2121 if test $ac_cv_func_alloca_works = yes; then
2122 cat >> confdefs.h
<<\EOF
2123 #define HAVE_ALLOCA 1
2128 if test $ac_cv_func_alloca_works = no
; then
2129 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2130 # that cause trouble. Some versions do not even contain alloca or
2131 # contain a buggy version. If you still want to use their alloca,
2132 # use ar to extract alloca.o from them instead of compiling alloca.c.
2133 ALLOCA
=alloca.
${ac_objext}
2134 cat >> confdefs.h
<<\EOF
2139 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2140 echo "configure:2141: checking whether alloca needs Cray hooks" >&5
2141 if eval "test \"\${ac_cv_os_cray+set}\" = set"; then
2142 echo $ac_n "(cached) $ac_c" 1>&6
2144 cat > conftest.
$ac_ext <<EOF
2145 #line 2146 "configure"
2146 #include "confdefs.h"
2147 #if defined(CRAY) && ! defined(CRAY2)
2154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2155 egrep "webecray" >/dev
/null
2>&1; then
2166 echo "$ac_t""$ac_cv_os_cray" 1>&6
2167 if test $ac_cv_os_cray = yes; then
2168 for ac_func
in _getb67 GETB67 getb67
; do
2169 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2170 echo "configure:2171: checking for $ac_func" >&5
2171 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
2172 echo $ac_n "(cached) $ac_c" 1>&6
2174 cat > conftest.
$ac_ext <<EOF
2175 #line 2176 "configure"
2176 #include "confdefs.h"
2177 /* System header to define __stub macros and hopefully few prototypes,
2178 which can conflict with char $ac_func(); below. */
2180 /* Override any gcc2 internal prototype to avoid an error. */
2181 /* We use char because int might match the return type of a gcc2
2182 builtin and then its argument prototype would still apply. */
2188 /* The GNU C library defines this for functions which it implements
2189 to always fail with ENOSYS. Some functions are actually named
2190 something starting with __ and the normal name is an alias. */
2191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2199 if { (eval echo configure
:2200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2201 eval "ac_cv_func_$ac_func=yes"
2203 echo "configure: failed program was:" >&5
2204 cat conftest.
$ac_ext >&5
2206 eval "ac_cv_func_$ac_func=no"
2211 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2212 echo "$ac_t""yes" 1>&6
2213 cat >> confdefs.h
<<EOF
2214 #define CRAY_STACKSEG_END $ac_func
2219 echo "$ac_t""no" 1>&6
2225 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2226 echo "configure:2227: checking stack direction for C alloca" >&5
2227 if eval "test \"\${ac_cv_c_stack_direction+set}\" = set"; then
2228 echo $ac_n "(cached) $ac_c" 1>&6
2230 if test "$cross_compiling" = yes; then
2231 ac_cv_c_stack_direction
=0
2233 cat > conftest.
$ac_ext <<EOF
2234 #line 2235 "configure"
2235 #include "confdefs.h"
2236 find_stack_direction ()
2238 static char *addr = 0;
2243 return find_stack_direction ();
2246 return (&dummy > addr) ? 1 : -1;
2250 exit (find_stack_direction() < 0);
2253 if { (eval echo configure
:2254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2255 ac_cv_c_stack_direction
=1
2257 echo "configure: failed program was:" >&5
2258 cat conftest.
$ac_ext >&5
2260 ac_cv_c_stack_direction
=-1
2267 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2268 cat >> confdefs.h
<<EOF
2269 #define STACK_DIRECTION $ac_cv_c_stack_direction
2275 echo $ac_n "checking size of short""... $ac_c" 1>&6
2276 echo "configure:2277: checking size of short" >&5
2277 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
2278 echo $ac_n "(cached) $ac_c" 1>&6
2280 if test "$cross_compiling" = yes; then
2281 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2283 cat > conftest.
$ac_ext <<EOF
2284 #line 2285 "configure"
2285 #include "confdefs.h"
2289 FILE *f=fopen("conftestval", "w");
2291 fprintf(f, "%d\n", sizeof(short));
2295 if { (eval echo configure
:2296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2297 ac_cv_sizeof_short
=`cat conftestval`
2299 echo "configure: failed program was:" >&5
2300 cat conftest.
$ac_ext >&5
2302 ac_cv_sizeof_short
=0
2308 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2309 cat >> confdefs.h
<<EOF
2310 #define SIZEOF_SHORT $ac_cv_sizeof_short
2314 echo $ac_n "checking size of int""... $ac_c" 1>&6
2315 echo "configure:2316: checking size of int" >&5
2316 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
2317 echo $ac_n "(cached) $ac_c" 1>&6
2319 if test "$cross_compiling" = yes; then
2320 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2322 cat > conftest.
$ac_ext <<EOF
2323 #line 2324 "configure"
2324 #include "confdefs.h"
2328 FILE *f=fopen("conftestval", "w");
2330 fprintf(f, "%d\n", sizeof(int));
2334 if { (eval echo configure
:2335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2336 ac_cv_sizeof_int
=`cat conftestval`
2338 echo "configure: failed program was:" >&5
2339 cat conftest.
$ac_ext >&5
2347 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2348 cat >> confdefs.h
<<EOF
2349 #define SIZEOF_INT $ac_cv_sizeof_int
2353 echo $ac_n "checking size of long""... $ac_c" 1>&6
2354 echo "configure:2355: checking size of long" >&5
2355 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
2356 echo $ac_n "(cached) $ac_c" 1>&6
2358 if test "$cross_compiling" = yes; then
2359 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2361 cat > conftest.
$ac_ext <<EOF
2362 #line 2363 "configure"
2363 #include "confdefs.h"
2367 FILE *f=fopen("conftestval", "w");
2369 fprintf(f, "%d\n", sizeof(long));
2373 if { (eval echo configure
:2374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2375 ac_cv_sizeof_long
=`cat conftestval`
2377 echo "configure: failed program was:" >&5
2378 cat conftest.
$ac_ext >&5
2386 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2387 cat >> confdefs.h
<<EOF
2388 #define SIZEOF_LONG $ac_cv_sizeof_long
2392 echo $ac_n "checking size of long long""... $ac_c" 1>&6
2393 echo "configure:2394: checking size of long long" >&5
2394 if eval "test \"\${ac_cv_sizeof_long_long+set}\" = set"; then
2395 echo $ac_n "(cached) $ac_c" 1>&6
2397 if test "$cross_compiling" = yes; then
2398 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2400 cat > conftest.
$ac_ext <<EOF
2401 #line 2402 "configure"
2402 #include "confdefs.h"
2406 FILE *f=fopen("conftestval", "w");
2408 fprintf(f, "%d\n", sizeof(long long));
2412 if { (eval echo configure
:2413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2414 ac_cv_sizeof_long_long
=`cat conftestval`
2416 echo "configure: failed program was:" >&5
2417 cat conftest.
$ac_ext >&5
2419 ac_cv_sizeof_long_long
=0
2425 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2426 cat >> confdefs.h
<<EOF
2427 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2431 echo $ac_n "checking size of float""... $ac_c" 1>&6
2432 echo "configure:2433: checking size of float" >&5
2433 if eval "test \"\${ac_cv_sizeof_float+set}\" = set"; then
2434 echo $ac_n "(cached) $ac_c" 1>&6
2436 if test "$cross_compiling" = yes; then
2437 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2439 cat > conftest.
$ac_ext <<EOF
2440 #line 2441 "configure"
2441 #include "confdefs.h"
2445 FILE *f=fopen("conftestval", "w");
2447 fprintf(f, "%d\n", sizeof(float));
2451 if { (eval echo configure
:2452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2453 ac_cv_sizeof_float
=`cat conftestval`
2455 echo "configure: failed program was:" >&5
2456 cat conftest.
$ac_ext >&5
2458 ac_cv_sizeof_float
=0
2464 echo "$ac_t""$ac_cv_sizeof_float" 1>&6
2465 cat >> confdefs.h
<<EOF
2466 #define SIZEOF_FLOAT $ac_cv_sizeof_float
2470 echo $ac_n "checking size of double""... $ac_c" 1>&6
2471 echo "configure:2472: checking size of double" >&5
2472 if eval "test \"\${ac_cv_sizeof_double+set}\" = set"; then
2473 echo $ac_n "(cached) $ac_c" 1>&6
2475 if test "$cross_compiling" = yes; then
2476 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2478 cat > conftest.
$ac_ext <<EOF
2479 #line 2480 "configure"
2480 #include "confdefs.h"
2484 FILE *f=fopen("conftestval", "w");
2486 fprintf(f, "%d\n", sizeof(double));
2490 if { (eval echo configure
:2491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2492 ac_cv_sizeof_double
=`cat conftestval`
2494 echo "configure: failed program was:" >&5
2495 cat conftest.
$ac_ext >&5
2497 ac_cv_sizeof_double
=0
2503 echo "$ac_t""$ac_cv_sizeof_double" 1>&6
2504 cat >> confdefs.h
<<EOF
2505 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
2509 echo $ac_n "checking size of long double""... $ac_c" 1>&6
2510 echo "configure:2511: checking size of long double" >&5
2511 if eval "test \"\${ac_cv_sizeof_long_double+set}\" = set"; then
2512 echo $ac_n "(cached) $ac_c" 1>&6
2514 if test "$cross_compiling" = yes; then
2515 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2517 cat > conftest.
$ac_ext <<EOF
2518 #line 2519 "configure"
2519 #include "confdefs.h"
2523 FILE *f=fopen("conftestval", "w");
2525 fprintf(f, "%d\n", sizeof(long double));
2529 if { (eval echo configure
:2530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2531 ac_cv_sizeof_long_double
=`cat conftestval`
2533 echo "configure: failed program was:" >&5
2534 cat conftest.
$ac_ext >&5
2536 ac_cv_sizeof_long_double
=0
2542 echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
2543 cat >> confdefs.h
<<EOF
2544 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
2549 echo $ac_n "checking size of void *""... $ac_c" 1>&6
2550 echo "configure:2551: checking size of void *" >&5
2551 if eval "test \"\${ac_cv_sizeof_void_p+set}\" = set"; then
2552 echo $ac_n "(cached) $ac_c" 1>&6
2554 if test "$cross_compiling" = yes; then
2555 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2557 cat > conftest.
$ac_ext <<EOF
2558 #line 2559 "configure"
2559 #include "confdefs.h"
2563 FILE *f=fopen("conftestval", "w");
2565 fprintf(f, "%d\n", sizeof(void *));
2569 if { (eval echo configure
:2570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2571 ac_cv_sizeof_void_p
=`cat conftestval`
2573 echo "configure: failed program was:" >&5
2574 cat conftest.
$ac_ext >&5
2576 ac_cv_sizeof_void_p
=0
2582 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
2583 cat >> confdefs.h
<<EOF
2584 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
2588 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2589 echo "configure:2590: checking whether byte ordering is bigendian" >&5
2590 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
2591 echo $ac_n "(cached) $ac_c" 1>&6
2593 ac_cv_c_bigendian
=unknown
2594 # See if sys/param.h defines the BYTE_ORDER macro.
2595 cat > conftest.
$ac_ext <<EOF
2596 #line 2597 "configure"
2597 #include "confdefs.h"
2598 #include <sys/types.h>
2599 #include <sys/param.h>
2602 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2607 if { (eval echo configure
:2608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2609 # It does; now see whether it defined to BIG_ENDIAN or not.
2610 cat > conftest.
$ac_ext <<EOF
2611 #line 2612 "configure"
2612 #include "confdefs.h"
2613 #include <sys/types.h>
2614 #include <sys/param.h>
2617 #if BYTE_ORDER != BIG_ENDIAN
2622 if { (eval echo configure
:2623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2624 ac_cv_c_bigendian
=yes
2626 echo "configure: failed program was:" >&5
2627 cat conftest.
$ac_ext >&5
2629 ac_cv_c_bigendian
=no
2633 echo "configure: failed program was:" >&5
2634 cat conftest.
$ac_ext >&5
2637 if test $ac_cv_c_bigendian = unknown
; then
2638 if test "$cross_compiling" = yes; then
2639 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2641 cat > conftest.
$ac_ext <<EOF
2642 #line 2643 "configure"
2643 #include "confdefs.h"
2645 /* Are we little or big endian? From Harbison&Steele. */
2649 char c[sizeof (long)];
2652 exit (u.c[sizeof (long) - 1] == 1);
2655 if { (eval echo configure
:2656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2657 ac_cv_c_bigendian
=no
2659 echo "configure: failed program was:" >&5
2660 cat conftest.
$ac_ext >&5
2662 ac_cv_c_bigendian
=yes
2670 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
2671 if test $ac_cv_c_bigendian = yes; then
2672 cat >> confdefs.h
<<\EOF
2673 #define WORDS_BIGENDIAN 1
2684 # Check whether --enable-debug or --disable-debug was given.
2685 if test "${enable_debug+set}" = set; then
2686 enableval
="$enable_debug"
2687 cat >> confdefs.h
<<\EOF
2694 # Check whether --enable-debug or --disable-debug was given.
2695 if test "${enable_debug+set}" = set; then
2696 enableval
="$enable_debug"
2697 cat >> confdefs.h
<<\EOF
2698 #define FFI_NO_STRUCTS 1
2704 # Check whether --enable-debug or --disable-debug was given.
2705 if test "${enable_debug+set}" = set; then
2706 enableval
="$enable_debug"
2707 cat >> confdefs.h
<<\EOF
2708 #define FFI_NO_RAW_API 1
2714 # Check whether --enable-purify-safety or --disable-purify-safety was given.
2715 if test "${enable_purify_safety+set}" = set; then
2716 enableval
="$enable_purify_safety"
2717 cat >> confdefs.h
<<\EOF
2718 #define USING_PURIFY 1
2726 if test -z "$with_cross_host"; then
2728 USE_LIBDIR_FALSE
='#'
2735 cat > confcache
<<\EOF
2736 # This file is a shell script that caches the results of configure
2737 # tests run on this system so they can be shared between configure
2738 # scripts and configure runs. It is not useful on other systems.
2739 # If it contains results you don't want to keep, you may remove or edit it.
2741 # By default, configure uses ./config.cache as the cache file,
2742 # creating it if it does not exist already. You can give configure
2743 # the --cache-file=FILE option to use a different cache file; that is
2744 # what configure does when it calls configure scripts in
2745 # subdirectories, so they share the cache.
2746 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2747 # config.status only pays attention to the cache file if you give it the
2748 # --recheck option to rerun configure.
2751 # The following way of writing the cache mishandles newlines in values,
2752 # but we know of no workaround that is simple, portable, and efficient.
2753 # So, don't put newlines in cache variables' values.
2754 # Ultrix sh set writes to stderr and can't be redirected directly,
2755 # and sets the high bit in the cache file unless we assign to the vars.
2757 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2759 # `set' does not quote correctly, so add quotes (double-quote substitution
2760 # turns \\\\ into \\, and sed turns \\ into \).
2762 -e "s/'/'\\\\''/g" \
2763 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2766 # `set' quotes correctly as required by POSIX, so do not add quotes.
2767 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2770 if cmp -s $cache_file confcache
; then
2773 if test -w $cache_file; then
2774 echo "updating cache $cache_file"
2775 cat confcache
> $cache_file
2777 echo "not updating unwritable cache $cache_file"
2782 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2784 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2785 # Let make expand exec_prefix.
2786 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2788 # Any assignment to VPATH causes Sun make to only execute
2789 # the first set of double-colon rules, so remove it if not needed.
2790 # If there is a colon in the path, we need to keep it.
2791 if test "x$srcdir" = x.
; then
2792 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2795 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2797 DEFS
=-DHAVE_CONFIG_H
2799 # Without the "./", some shells look in PATH for config.status.
2800 : ${CONFIG_STATUS=./config.status}
2802 echo creating
$CONFIG_STATUS
2803 rm -f $CONFIG_STATUS
2804 cat > $CONFIG_STATUS <<EOF
2806 # Generated automatically by configure.
2807 # Run this file to recreate the current configuration.
2808 # This directory was configured as follows,
2809 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2811 # $0 $ac_configure_args
2813 # Compiler output produced by configure, useful for debugging
2814 # configure, is in ./config.log if it exists.
2816 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2819 case "\$ac_option" in
2820 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2821 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2822 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2823 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2824 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
2826 -help | --help | --hel | --he | --h)
2827 echo "\$ac_cs_usage"; exit 0 ;;
2828 *) echo "\$ac_cs_usage"; exit 1 ;;
2832 ac_given_srcdir=$srcdir
2833 ac_given_INSTALL="$INSTALL"
2835 trap 'rm -fr `echo "include/Makefile include/ffi.h Makefile fficonfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2837 cat >> $CONFIG_STATUS <<EOF
2839 # Protect against being on the right side of a sed subst in config.status.
2840 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2841 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2845 s%@CFLAGS@%$CFLAGS%g
2846 s%@CPPFLAGS@%$CPPFLAGS%g
2847 s%@CXXFLAGS@%$CXXFLAGS%g
2848 s%@FFLAGS@%$FFLAGS%g
2850 s%@LDFLAGS@%$LDFLAGS%g
2852 s%@exec_prefix@%$exec_prefix%g
2853 s%@prefix@%$prefix%g
2854 s%@program_transform_name@%$program_transform_name%g
2855 s%@bindir@%$bindir%g
2856 s%@sbindir@%$sbindir%g
2857 s%@libexecdir@%$libexecdir%g
2858 s%@datadir@%$datadir%g
2859 s%@sysconfdir@%$sysconfdir%g
2860 s%@sharedstatedir@%$sharedstatedir%g
2861 s%@localstatedir@%$localstatedir%g
2862 s%@libdir@%$libdir%g
2863 s%@includedir@%$includedir%g
2864 s%@oldincludedir@%$oldincludedir%g
2865 s%@infodir@%$infodir%g
2866 s%@mandir@%$mandir%g
2868 s%@host_alias@%$host_alias%g
2869 s%@host_cpu@%$host_cpu%g
2870 s%@host_vendor@%$host_vendor%g
2871 s%@host_os@%$host_os%g
2872 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2873 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2874 s%@INSTALL_DATA@%$INSTALL_DATA%g
2875 s%@PACKAGE@%$PACKAGE%g
2876 s%@VERSION@%$VERSION%g
2877 s%@ACLOCAL@%$ACLOCAL%g
2878 s%@AUTOCONF@%$AUTOCONF%g
2879 s%@AUTOMAKE@%$AUTOMAKE%g
2880 s%@AUTOHEADER@%$AUTOHEADER%g
2881 s%@MAKEINFO@%$MAKEINFO%g
2882 s%@install_sh@%$install_sh%g
2884 s%@AMTARFLAGS@%$AMTARFLAGS%g
2885 s%@SET_MAKE@%$SET_MAKE%g
2886 s%@EXEEXT@%$EXEEXT%g
2887 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2888 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2892 s%@build_alias@%$build_alias%g
2893 s%@build_cpu@%$build_cpu%g
2894 s%@build_vendor@%$build_vendor%g
2895 s%@build_os@%$build_os%g
2896 s%@RANLIB@%$RANLIB%g
2900 s%@LIBTOOL@%$LIBTOOL%g
2901 s%@MIPS_GCC_TRUE@%$MIPS_GCC_TRUE%g
2902 s%@MIPS_GCC_FALSE@%$MIPS_GCC_FALSE%g
2903 s%@MIPS_SGI_TRUE@%$MIPS_SGI_TRUE%g
2904 s%@MIPS_SGI_FALSE@%$MIPS_SGI_FALSE%g
2905 s%@SPARC_TRUE@%$SPARC_TRUE%g
2906 s%@SPARC_FALSE@%$SPARC_FALSE%g
2907 s%@X86_TRUE@%$X86_TRUE%g
2908 s%@X86_FALSE@%$X86_FALSE%g
2909 s%@ALPHA_TRUE@%$ALPHA_TRUE%g
2910 s%@ALPHA_FALSE@%$ALPHA_FALSE%g
2911 s%@M68K_TRUE@%$M68K_TRUE%g
2912 s%@M68K_FALSE@%$M68K_FALSE%g
2913 s%@POWERPC_TRUE@%$POWERPC_TRUE%g
2914 s%@POWERPC_FALSE@%$POWERPC_FALSE%g
2915 s%@ARM_TRUE@%$ARM_TRUE%g
2916 s%@ARM_FALSE@%$ARM_FALSE%g
2918 s%@ALLOCA@%$ALLOCA%g
2919 s%@TARGET@%$TARGET%g
2920 s%@TARGETDIR@%$TARGETDIR%g
2921 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
2922 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
2927 cat >> $CONFIG_STATUS <<\EOF
2929 # Split the substitutions into bite-sized pieces for seds with
2930 # small command number limits, like on Digital OSF/1 and HP-UX.
2931 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
2932 ac_file
=1 # Number of current file.
2933 ac_beg
=1 # First line for current file.
2934 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
2937 while $ac_more_lines; do
2938 if test $ac_beg -gt 1; then
2939 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
2941 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
2943 if test ! -s conftest.s
$ac_file; then
2945 rm -f conftest.s
$ac_file
2947 if test -z "$ac_sed_cmds"; then
2948 ac_sed_cmds
="sed -f conftest.s$ac_file"
2950 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
2952 ac_file
=`expr $ac_file + 1`
2954 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
2957 if test -z "$ac_sed_cmds"; then
2962 cat >> $CONFIG_STATUS <<EOF
2964 CONFIG_FILES=\${CONFIG_FILES-"include/Makefile include/ffi.h Makefile"}
2966 cat >> $CONFIG_STATUS <<\EOF
2967 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
2968 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2970 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
2971 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
2972 *) ac_file_in
="${ac_file}.in" ;;
2975 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2977 # Remove last slash and all that follows it. Not all systems have dirname.
2978 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2979 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
2980 # The file is in a subdirectory.
2981 test ! -d "$ac_dir" && mkdir
"$ac_dir"
2982 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
2983 # A "../" for each directory in $ac_dir_suffix.
2984 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2986 ac_dir_suffix
= ac_dots
=
2989 case "$ac_given_srcdir" in
2991 if test -z "$ac_dots"; then top_srcdir
=.
2992 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2993 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
2995 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2996 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
2999 case "$ac_given_INSTALL" in
3000 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
3001 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
3004 echo creating
"$ac_file"
3006 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3008 *Makefile
*) ac_comsub
="1i\\
3009 # $configure_input" ;;
3013 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3015 s%@configure_input@%$configure_input%g
3016 s%@srcdir@%$srcdir%g
3017 s%@top_srcdir@%$top_srcdir%g
3018 s%@INSTALL@%$INSTALL%g
3019 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
3023 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3024 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3026 # ac_d sets the value in "#define NAME VALUE" lines.
3027 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3028 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
3031 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3032 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3033 ac_uB
='\([ ]\)%\1#\2define\3'
3036 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3037 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3038 ac_eB
='$%\1#\2define\3'
3042 if test "${CONFIG_HEADERS+set}" != set; then
3044 cat >> $CONFIG_STATUS <<EOF
3045 CONFIG_HEADERS="fficonfig.h"
3047 cat >> $CONFIG_STATUS <<\EOF
3049 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
3050 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3052 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3053 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3054 *) ac_file_in
="${ac_file}.in" ;;
3057 echo creating
$ac_file
3059 rm -f conftest.frag conftest.
in conftest.out
3060 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3061 cat $ac_file_inputs > conftest.
in
3065 # Transform confdefs.h into a sed script conftest.vals that substitutes
3066 # the proper values into config.h.in to produce config.h. And first:
3067 # Protect against being on the right side of a sed subst in config.status.
3068 # Protect against being in an unquoted here document in config.status.
3070 cat > conftest.hdr
<<\EOF
3073 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3077 sed -n -f conftest.hdr confdefs.h > conftest.vals
3080 # This sed command replaces #undef with comments. This is necessary, for
3081 # example, in the case of _POSIX_SOURCE, which is predefined and required
3082 # on some systems where configure will not decide to define it.
3083 cat >> conftest.vals <<\EOF
3084 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3087 # Break up conftest.vals because some shells have a limit on
3088 # the size of here documents, and old seds have small limits too.
3093 ac_lines=`grep -c . conftest.vals
`
3094 # grep -c gives empty output for an empty file on some AIX systems.
3095 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3096 # Write a limited-size here document to conftest.frag.
3097 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3098 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3100 sed -f conftest.frag conftest.in > conftest.out
3102 mv conftest.out conftest.in
3104 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3106 mv conftest.tail conftest.vals
3110 cat >> $CONFIG_STATUS <<\EOF
3111 rm -f conftest.frag conftest.h
3112 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3113 cat conftest.in >> conftest.h
3115 if cmp -s $ac_file conftest.h 2>/dev/null; then
3116 echo "$ac_file is unchanged"
3119 # Remove last slash and all that follows it. Not all systems have dirname.
3120 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
3121 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3122 # The file is in a subdirectory.
3123 test ! -d "$ac_dir" && mkdir "$ac_dir"
3126 mv conftest.h $ac_file
3131 cat >> $CONFIG_STATUS <<EOF
3133 test ! -d include && mkdir include
3134 test ! -f include/fficonfig.h && cp fficonfig.h include/fficonfig.h
3135 if cmp -s fficonfig.h include/fficonfig.h 2>/dev/null; then
3136 echo fficonfig.h unchanged
3138 echo Moving fficonfig.h to include/fficonfig.h
3139 cp fficonfig.h include/fficonfig.h
3143 cat >> $CONFIG_STATUS <<\EOF
3144 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3148 chmod +x $CONFIG_STATUS
3149 rm -fr confdefs* $ac_clean_files
3150 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1