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-maintainer-mode enable make rules and dependencies not useful
18 (and sometimes confusing) to the casual installer"
20 --enable-shared[=PKGS] build shared libraries [default=yes]"
22 --enable-static[=PKGS] build static libraries [default=yes]"
24 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
26 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
28 --disable-libtool-lock avoid locking (might break parallel builds)"
30 --with-pic try to use only PIC/non-PIC objects [default=use both]"
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
,
61 bindir
='${exec_prefix}/bin'
62 sbindir
='${exec_prefix}/sbin'
63 libexecdir
='${exec_prefix}/libexec'
64 datadir
='${prefix}/share'
65 sysconfdir
='${prefix}/etc'
66 sharedstatedir
='${prefix}/com'
67 localstatedir
='${prefix}/var'
68 libdir
='${exec_prefix}/lib'
69 includedir
='${prefix}/include'
70 oldincludedir
='/usr/include'
71 infodir
='${prefix}/info'
72 mandir
='${prefix}/man'
74 # Initialize some other variables.
77 SHELL
=${CONFIG_SHELL-/bin/sh}
78 # Maximum number of lines to put in a shell here document.
85 # If the previous option needs an argument, assign it.
86 if test -n "$ac_prev"; then
87 eval "$ac_prev=\$ac_option"
93 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
97 # Accept the important Cygnus configure options, so we can diagnose typos.
101 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
103 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
104 bindir
="$ac_optarg" ;;
106 -build |
--build |
--buil |
--bui |
--bu)
108 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
109 build
="$ac_optarg" ;;
111 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
112 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
113 ac_prev
=cache_file
;;
114 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
115 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
116 cache_file
="$ac_optarg" ;;
118 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
120 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
122 datadir
="$ac_optarg" ;;
124 -disable-* |
--disable-*)
125 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
126 # Reject names that are not valid shell variable names.
127 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
128 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
130 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
131 eval "enable_${ac_feature}=no" ;;
133 -enable-* |
--enable-*)
134 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
135 # Reject names that are not valid shell variable names.
136 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
137 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
139 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
144 eval "enable_${ac_feature}='$ac_optarg'" ;;
146 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
147 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
148 |
--exec |
--exe |
--ex)
149 ac_prev
=exec_prefix
;;
150 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
151 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
152 |
--exec=* |
--exe=* |
--ex=*)
153 exec_prefix
="$ac_optarg" ;;
155 -gas |
--gas |
--ga |
--g)
156 # Obsolete; use --with-gas.
159 -help |
--help |
--hel |
--he)
160 # Omit some internal or obsolete options to make the list less imposing.
161 # This message is too long to be a string in the A/UX 3.1 sh.
163 Usage: configure [options] [host]
164 Options: [defaults in brackets after descriptions]
166 --cache-file=FILE cache test results in FILE
167 --help print this message
168 --no-create do not create output files
169 --quiet, --silent do not print \`checking...' messages
170 --version print the version of autoconf that created configure
171 Directory and file names:
172 --prefix=PREFIX install architecture-independent files in PREFIX
174 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
176 --bindir=DIR user executables in DIR [EPREFIX/bin]
177 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
178 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
179 --datadir=DIR read-only architecture-independent data in DIR
181 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
182 --sharedstatedir=DIR modifiable architecture-independent data in DIR
184 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
185 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
186 --includedir=DIR C header files in DIR [PREFIX/include]
187 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
188 --infodir=DIR info documentation in DIR [PREFIX/info]
189 --mandir=DIR man documentation in DIR [PREFIX/man]
190 --srcdir=DIR find the sources in DIR [configure dir or ..]
191 --program-prefix=PREFIX prepend PREFIX to installed program names
192 --program-suffix=SUFFIX append SUFFIX to installed program names
193 --program-transform-name=PROGRAM
194 run sed PROGRAM on installed program names
198 --build=BUILD configure for building on BUILD [BUILD=HOST]
199 --host=HOST configure for HOST [guessed]
200 --target=TARGET configure for TARGET [TARGET=HOST]
201 Features and packages:
202 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
203 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
204 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
205 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
206 --x-includes=DIR X include files are in DIR
207 --x-libraries=DIR X library files are in DIR
209 if test -n "$ac_help"; then
210 echo "--enable and --with options recognized:$ac_help"
214 -host |
--host |
--hos |
--ho)
216 -host=* |
--host=* |
--hos=* |
--ho=*)
219 -includedir |
--includedir |
--includedi |
--included |
--include \
220 |
--includ |
--inclu |
--incl |
--inc)
221 ac_prev
=includedir
;;
222 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
223 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
224 includedir
="$ac_optarg" ;;
226 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
228 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
229 infodir
="$ac_optarg" ;;
231 -libdir |
--libdir |
--libdi |
--libd)
233 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
234 libdir
="$ac_optarg" ;;
236 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
237 |
--libexe |
--libex |
--libe)
238 ac_prev
=libexecdir
;;
239 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
240 |
--libexe=* |
--libex=* |
--libe=*)
241 libexecdir
="$ac_optarg" ;;
243 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
244 |
--localstate |
--localstat |
--localsta |
--localst \
245 |
--locals |
--local |
--loca |
--loc |
--lo)
246 ac_prev
=localstatedir
;;
247 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
248 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
249 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
250 localstatedir
="$ac_optarg" ;;
252 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
254 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
255 mandir
="$ac_optarg" ;;
258 # Obsolete; use --without-fp.
261 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
265 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
266 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
269 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
270 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
271 |
--oldin |
--oldi |
--old |
--ol |
--o)
272 ac_prev
=oldincludedir
;;
273 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
274 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
275 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
276 oldincludedir
="$ac_optarg" ;;
278 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
280 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
281 prefix
="$ac_optarg" ;;
283 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
284 |
--program-pre |
--program-pr |
--program-p)
285 ac_prev
=program_prefix
;;
286 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
287 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
288 program_prefix
="$ac_optarg" ;;
290 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
291 |
--program-suf |
--program-su |
--program-s)
292 ac_prev
=program_suffix
;;
293 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
294 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
295 program_suffix
="$ac_optarg" ;;
297 -program-transform-name |
--program-transform-name \
298 |
--program-transform-nam |
--program-transform-na \
299 |
--program-transform-n |
--program-transform- \
300 |
--program-transform |
--program-transfor \
301 |
--program-transfo |
--program-transf \
302 |
--program-trans |
--program-tran \
303 |
--progr-tra |
--program-tr |
--program-t)
304 ac_prev
=program_transform_name
;;
305 -program-transform-name=* |
--program-transform-name=* \
306 |
--program-transform-nam=* |
--program-transform-na=* \
307 |
--program-transform-n=* |
--program-transform-=* \
308 |
--program-transform=* |
--program-transfor=* \
309 |
--program-transfo=* |
--program-transf=* \
310 |
--program-trans=* |
--program-tran=* \
311 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
312 program_transform_name
="$ac_optarg" ;;
314 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
315 |
-silent |
--silent |
--silen |
--sile |
--sil)
318 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
320 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
322 sbindir
="$ac_optarg" ;;
324 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
325 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
326 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
328 ac_prev
=sharedstatedir
;;
329 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
330 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
331 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
333 sharedstatedir
="$ac_optarg" ;;
335 -site |
--site |
--sit)
337 -site=* |
--site=* |
--sit=*)
340 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
342 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
343 srcdir
="$ac_optarg" ;;
345 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
346 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
347 ac_prev
=sysconfdir
;;
348 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
349 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
350 sysconfdir
="$ac_optarg" ;;
352 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
354 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
355 target
="$ac_optarg" ;;
357 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
360 -version |
--version |
--versio |
--versi |
--vers)
361 echo "configure generated by autoconf version 2.13"
365 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
366 # Reject names that are not valid shell variable names.
367 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
368 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370 ac_package
=`echo $ac_package| sed 's/-/_/g'`
375 eval "with_${ac_package}='$ac_optarg'" ;;
377 -without-* |
--without-*)
378 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
379 # Reject names that are not valid shell variable names.
380 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
381 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
383 ac_package
=`echo $ac_package| sed 's/-/_/g'`
384 eval "with_${ac_package}=no" ;;
387 # Obsolete; use --with-x.
390 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
391 |
--x-incl |
--x-inc |
--x-in |
--x-i)
392 ac_prev
=x_includes
;;
393 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
394 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
395 x_includes
="$ac_optarg" ;;
397 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
398 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
399 ac_prev
=x_libraries
;;
400 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
401 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
402 x_libraries
="$ac_optarg" ;;
404 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
408 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
409 echo "configure: warning: $ac_option: invalid host type" 1>&2
411 if test "x$nonopt" != xNONE
; then
412 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
420 if test -n "$ac_prev"; then
421 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
424 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
426 # File descriptor usage:
429 # 2 errors and warnings
430 # 3 some systems may open it to /dev/tty
431 # 4 used on the Kubota Titan
432 # 6 checking for... messages and results
433 # 5 compiler messages saved in config.log
434 if test "$silent" = yes; then
442 This file contains any messages produced by compilers while
443 running configure, to aid debugging if configure makes a mistake.
446 # Strip out --no-create and --no-recursion so they do not pile up.
447 # Also quote any args containing shell metacharacters.
452 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
453 |
--no-cr |
--no-c) ;;
454 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
455 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
456 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
457 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
458 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
463 # Only set these to C if already set. These must not be set unconditionally
464 # because not all systems understand e.g. LANG=C (notably SCO).
465 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
466 # Non-C LC_CTYPE values break the ctype check.
467 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
468 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
469 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
470 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
472 # confdefs.h avoids OS command line length limits that DEFS can exceed.
473 rm -rf conftest
* confdefs.h
474 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
477 # A filename unique to this package, relative to the directory that
478 # configure is in, which we can look for to find out if srcdir is correct.
479 ac_unique_file
=fficonfig.h.
in
481 # Find the source files, if location was not specified.
482 if test -z "$srcdir"; then
483 ac_srcdir_defaulted
=yes
484 # Try the directory containing this script, then its parent.
486 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
487 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
489 if test ! -r $srcdir/$ac_unique_file; then
493 ac_srcdir_defaulted
=no
495 if test ! -r $srcdir/$ac_unique_file; then
496 if test "$ac_srcdir_defaulted" = yes; then
497 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
499 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
502 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
504 # Prefer explicitly selected file to automatically selected ones.
505 if test -z "$CONFIG_SITE"; then
506 if test "x$prefix" != xNONE
; then
507 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
509 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
512 for ac_site_file
in $CONFIG_SITE; do
513 if test -r "$ac_site_file"; then
514 echo "loading site script $ac_site_file"
519 if test -r "$cache_file"; then
520 echo "loading cache $cache_file"
523 echo "creating cache $cache_file"
528 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
529 ac_cpp
='$CPP $CPPFLAGS'
530 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
531 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
532 cross_compiling
=$ac_cv_prog_cc_cross
536 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
537 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
538 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
545 ac_n
= ac_c
='\c' ac_t
=
553 echo "configure: warning: ***********************************************************" 1>&2
554 echo "configure: warning: ***********************************************************" 1>&2
555 echo "configure: warning: This is beta code. If you're looking for a stable release" 1>&2
556 echo "configure: warning: then use the most recent one - libffi-1.20." 1>&2
557 echo "configure: warning: ***********************************************************" 1>&2
558 echo "configure: warning: ***********************************************************" 1>&2
560 # Check whether --enable-multilib or --disable-multilib was given.
561 if test "${enable_multilib+set}" = set; then
562 enableval
="$enable_multilib"
563 case "${enableval}" in
566 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
573 if test "${srcdir}" = "."; then
574 if test "${with_target_subdir}" != "."; then
575 libffi_basedir
="${srcdir}/${with_multisrctop}.."
577 libffi_basedir
="${srcdir}/${with_multisrctop}"
580 libffi_basedir
="${srcdir}"
585 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
586 if test -f $ac_dir/install-sh
; then
588 ac_install_sh
="$ac_aux_dir/install-sh -c"
590 elif test -f $ac_dir/install.sh
; then
592 ac_install_sh
="$ac_aux_dir/install.sh -c"
596 if test -z "$ac_aux_dir"; then
597 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
599 ac_config_guess
=$ac_aux_dir/config.guess
600 ac_config_sub
=$ac_aux_dir/config.sub
601 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
604 # Make sure we can run config.sub.
605 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
606 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
609 echo $ac_n "checking host system type""... $ac_c" 1>&6
610 echo "configure:611: checking host system type" >&5
613 case "$host_alias" in
617 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
618 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
620 *) host_alias
=$nonopt ;;
624 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
625 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
626 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
627 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
628 echo "$ac_t""$host" 1>&6
631 # Find a good install program. We prefer a C program (faster),
632 # so one script is as good as another. But avoid the broken or
633 # incompatible versions:
634 # SysV /etc/install, /usr/sbin/install
635 # SunOS /usr/etc/install
638 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
639 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
640 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
641 # ./install, which can be erroneously created by make from ./install.sh.
642 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
643 echo "configure:644: checking for a BSD compatible install" >&5
644 if test -z "$INSTALL"; then
645 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
646 echo $ac_n "(cached) $ac_c" 1>&6
648 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
649 for ac_dir
in $PATH; do
650 # Account for people who put trailing slashes in PATH elements.
652 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
654 # OSF1 and SCO ODT 3.0 have their own names for install.
655 # Don't use installbsd from OSF since it installs stuff as root
657 for ac_prog
in ginstall scoinst
install; do
658 if test -f $ac_dir/$ac_prog; then
659 if test $ac_prog = install &&
660 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
661 # AIX install. It has an incompatible calling convention.
664 ac_cv_path_install
="$ac_dir/$ac_prog -c"
675 if test "${ac_cv_path_install+set}" = set; then
676 INSTALL
="$ac_cv_path_install"
678 # As a last resort, use the slow shell script. We don't cache a
679 # path for INSTALL within a source directory, because that will
680 # break other packages using the cache if that directory is
681 # removed, or if the path is relative.
682 INSTALL
="$ac_install_sh"
685 echo "$ac_t""$INSTALL" 1>&6
687 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
688 # It thinks the first close brace ends the variable substitution.
689 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
691 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
693 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
695 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
696 echo "configure:697: checking whether build environment is sane" >&5
699 echo timestamp
> conftestfile
700 # Do `set' in a subshell so we don't clobber the current shell's
701 # arguments. Must try -L first in case configure is actually a
702 # symlink; some systems play weird games with the mod time of symlinks
703 # (eg FreeBSD returns the mod time of the symlink's containing
706 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
707 if test "$*" = "X"; then
709 set X
`ls -t $srcdir/configure conftestfile`
711 if test "$*" != "X $srcdir/configure conftestfile" \
712 && test "$*" != "X conftestfile $srcdir/configure"; then
714 # If neither matched, then we have a broken ls. This can happen
715 # if, for instance, CONFIG_SHELL is bash and it inherits a
716 # broken ls alias from the environment. This has actually
717 # happened. Such a system could not be considered "sane".
718 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
719 alias in your environment" 1>&2; exit 1; }
722 test "$2" = conftestfile
728 { echo "configure: error: newly created file is older than distributed files!
729 Check your system clock" 1>&2; exit 1; }
732 echo "$ac_t""yes" 1>&6
733 if test "$program_transform_name" = s
,x
,x
,; then
734 program_transform_name
=
736 # Double any \ or $. echo might interpret backslashes.
737 cat <<\EOF_SED
> conftestsed
738 s
,\\,\\\\,g
; s
,\$
,$$
,g
740 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
743 test "$program_prefix" != NONE
&&
744 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
745 # Use a double $ so make ignores it.
746 test "$program_suffix" != NONE
&&
747 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
749 # sed with no file args requires a program.
750 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
752 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
753 echo "configure:754: checking whether ${MAKE-make} sets \${MAKE}" >&5
754 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
755 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
756 echo $ac_n "(cached) $ac_c" 1>&6
758 cat > conftestmake
<<\EOF
760 @
echo 'ac_maketemp="${MAKE}"'
762 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
763 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
764 if test -n "$ac_maketemp"; then
765 eval ac_cv_prog_make_
${ac_make}_set
=yes
767 eval ac_cv_prog_make_
${ac_make}_set
=no
771 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
772 echo "$ac_t""yes" 1>&6
775 echo "$ac_t""no" 1>&6
776 SET_MAKE
="MAKE=${MAKE-make}"
784 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
785 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
790 missing_dir
=`cd $ac_aux_dir && pwd`
791 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
792 echo "configure:793: checking for working aclocal" >&5
793 # Run test in a subshell; some versions of sh will print an error if
794 # an executable is not found, even if stderr is redirected.
795 # Redirect stdin to placate older versions of autoconf. Sigh.
796 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
798 echo "$ac_t""found" 1>&6
800 ACLOCAL
="$missing_dir/missing aclocal"
801 echo "$ac_t""missing" 1>&6
804 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
805 echo "configure:806: checking for working autoconf" >&5
806 # Run test in a subshell; some versions of sh will print an error if
807 # an executable is not found, even if stderr is redirected.
808 # Redirect stdin to placate older versions of autoconf. Sigh.
809 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
811 echo "$ac_t""found" 1>&6
813 AUTOCONF
="$missing_dir/missing autoconf"
814 echo "$ac_t""missing" 1>&6
817 echo $ac_n "checking for working automake""... $ac_c" 1>&6
818 echo "configure:819: checking for working automake" >&5
819 # Run test in a subshell; some versions of sh will print an error if
820 # an executable is not found, even if stderr is redirected.
821 # Redirect stdin to placate older versions of autoconf. Sigh.
822 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
824 echo "$ac_t""found" 1>&6
826 AUTOMAKE
="$missing_dir/missing automake"
827 echo "$ac_t""missing" 1>&6
830 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
831 echo "configure:832: checking for working autoheader" >&5
832 # Run test in a subshell; some versions of sh will print an error if
833 # an executable is not found, even if stderr is redirected.
834 # Redirect stdin to placate older versions of autoconf. Sigh.
835 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
836 AUTOHEADER
=autoheader
837 echo "$ac_t""found" 1>&6
839 AUTOHEADER
="$missing_dir/missing autoheader"
840 echo "$ac_t""missing" 1>&6
843 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
844 echo "configure:845: checking for working makeinfo" >&5
845 # Run test in a subshell; some versions of sh will print an error if
846 # an executable is not found, even if stderr is redirected.
847 # Redirect stdin to placate older versions of autoconf. Sigh.
848 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
850 echo "$ac_t""found" 1>&6
852 MAKEINFO
="$missing_dir/missing makeinfo"
853 echo "$ac_t""missing" 1>&6
858 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
859 echo "configure:860: checking for Cygwin environment" >&5
860 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
861 echo $ac_n "(cached) $ac_c" 1>&6
863 cat > conftest.
$ac_ext <<EOF
864 #line 865 "configure"
865 #include "confdefs.h"
870 #define __CYGWIN__ __CYGWIN32__
875 if { (eval echo configure
:876: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
879 echo "configure: failed program was:" >&5
880 cat conftest.
$ac_ext >&5
888 echo "$ac_t""$ac_cv_cygwin" 1>&6
890 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
891 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
892 echo "configure:893: checking for mingw32 environment" >&5
893 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
894 echo $ac_n "(cached) $ac_c" 1>&6
896 cat > conftest.
$ac_ext <<EOF
897 #line 898 "configure"
898 #include "confdefs.h"
904 if { (eval echo configure
:905: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
908 echo "configure: failed program was:" >&5
909 cat conftest.
$ac_ext >&5
917 echo "$ac_t""$ac_cv_mingw32" 1>&6
919 test "$ac_cv_mingw32" = yes && MINGW32
=yes
922 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
923 echo "configure:924: checking for executable suffix" >&5
924 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
925 echo $ac_n "(cached) $ac_c" 1>&6
927 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
931 echo 'int main () { return 0; }' > conftest.
$ac_ext
933 if { (eval echo configure
:934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
934 for file in conftest.
*; do
936 *.c |
*.o |
*.obj
) ;;
937 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
941 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
944 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
949 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
950 echo "$ac_t""${ac_cv_exeext}" 1>&6
953 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
954 echo "configure:955: checking whether to enable maintainer-specific portions of Makefiles" >&5
955 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
956 if test "${enable_maintainer_mode+set}" = set; then
957 enableval
="$enable_maintainer_mode"
958 USE_MAINTAINER_MODE
=$enableval
960 USE_MAINTAINER_MODE
=no
963 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
966 if test $USE_MAINTAINER_MODE = yes; then
967 MAINTAINER_MODE_TRUE
=
968 MAINTAINER_MODE_FALSE
='#'
970 MAINTAINER_MODE_TRUE
='#'
971 MAINTAINER_MODE_FALSE
=
973 MAINT
=$MAINTAINER_MODE_TRUE
977 # Extract the first word of "gcc", so it can be a program name with args.
978 set dummy gcc
; ac_word
=$2
979 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
980 echo "configure:981: checking for $ac_word" >&5
981 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
982 echo $ac_n "(cached) $ac_c" 1>&6
984 if test -n "$CC"; then
985 ac_cv_prog_CC
="$CC" # Let the user override the test.
987 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
989 for ac_dir
in $ac_dummy; do
990 test -z "$ac_dir" && ac_dir
=.
991 if test -f $ac_dir/$ac_word; then
1000 if test -n "$CC"; then
1001 echo "$ac_t""$CC" 1>&6
1003 echo "$ac_t""no" 1>&6
1006 if test -z "$CC"; then
1007 # Extract the first word of "cc", so it can be a program name with args.
1008 set dummy cc
; ac_word
=$2
1009 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1010 echo "configure:1011: checking for $ac_word" >&5
1011 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1012 echo $ac_n "(cached) $ac_c" 1>&6
1014 if test -n "$CC"; then
1015 ac_cv_prog_CC
="$CC" # Let the user override the test.
1017 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1020 for ac_dir
in $ac_dummy; do
1021 test -z "$ac_dir" && ac_dir
=.
1022 if test -f $ac_dir/$ac_word; then
1023 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1024 ac_prog_rejected
=yes
1032 if test $ac_prog_rejected = yes; then
1033 # We found a bogon in the path, so make sure we never use it.
1034 set dummy
$ac_cv_prog_CC
1036 if test $# -gt 0; then
1037 # We chose a different compiler from the bogus one.
1038 # However, it has the same basename, so the bogon will be chosen
1039 # first if we set CC to just the basename; use the full file name.
1041 set dummy
"$ac_dir/$ac_word" "$@"
1049 if test -n "$CC"; then
1050 echo "$ac_t""$CC" 1>&6
1052 echo "$ac_t""no" 1>&6
1055 if test -z "$CC"; then
1056 case "`uname -s`" in
1058 # Extract the first word of "cl", so it can be a program name with args.
1059 set dummy cl
; ac_word
=$2
1060 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1061 echo "configure:1062: checking for $ac_word" >&5
1062 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1063 echo $ac_n "(cached) $ac_c" 1>&6
1065 if test -n "$CC"; then
1066 ac_cv_prog_CC
="$CC" # Let the user override the test.
1068 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1070 for ac_dir
in $ac_dummy; do
1071 test -z "$ac_dir" && ac_dir
=.
1072 if test -f $ac_dir/$ac_word; then
1081 if test -n "$CC"; then
1082 echo "$ac_t""$CC" 1>&6
1084 echo "$ac_t""no" 1>&6
1089 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1092 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1093 echo "configure:1094: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1096 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1097 ac_cpp
='$CPP $CPPFLAGS'
1098 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1099 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1100 cross_compiling
=$ac_cv_prog_cc_cross
1102 cat > conftest.
$ac_ext << EOF
1104 #line 1105 "configure"
1105 #include "confdefs.h"
1109 if { (eval echo configure
:1110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1110 ac_cv_prog_cc_works
=yes
1111 # If we can't run a trivial program, we are probably using a cross compiler.
1112 if (.
/conftest
; exit) 2>/dev
/null
; then
1113 ac_cv_prog_cc_cross
=no
1115 ac_cv_prog_cc_cross
=yes
1118 echo "configure: failed program was:" >&5
1119 cat conftest.
$ac_ext >&5
1120 ac_cv_prog_cc_works
=no
1124 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1125 ac_cpp
='$CPP $CPPFLAGS'
1126 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1127 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1128 cross_compiling
=$ac_cv_prog_cc_cross
1130 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1131 if test $ac_cv_prog_cc_works = no
; then
1132 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1134 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1135 echo "configure:1136: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1136 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1137 cross_compiling
=$ac_cv_prog_cc_cross
1139 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1140 echo "configure:1141: checking whether we are using GNU C" >&5
1141 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1142 echo $ac_n "(cached) $ac_c" 1>&6
1144 cat > conftest.c
<<EOF
1149 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1150: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1156 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1158 if test $ac_cv_prog_gcc = yes; then
1164 ac_test_CFLAGS
="${CFLAGS+set}"
1165 ac_save_CFLAGS
="$CFLAGS"
1167 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1168 echo "configure:1169: checking whether ${CC-cc} accepts -g" >&5
1169 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1170 echo $ac_n "(cached) $ac_c" 1>&6
1172 echo 'void f(){}' > conftest.c
1173 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1182 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1183 if test "$ac_test_CFLAGS" = set; then
1184 CFLAGS
="$ac_save_CFLAGS"
1185 elif test $ac_cv_prog_cc_g = yes; then
1186 if test "$GCC" = yes; then
1192 if test "$GCC" = yes; then
1199 # Check whether --enable-shared or --disable-shared was given.
1200 if test "${enable_shared+set}" = set; then
1201 enableval
="$enable_shared"
1202 p
=${PACKAGE-default}
1203 case "$enableval" in
1204 yes) enable_shared
=yes ;;
1205 no
) enable_shared
=no
;;
1208 # Look at the argument we got. We use all the common list separators.
1209 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1210 for pkg
in $enableval; do
1211 if test "X$pkg" = "X$p"; then
1222 # Check whether --enable-static or --disable-static was given.
1223 if test "${enable_static+set}" = set; then
1224 enableval
="$enable_static"
1225 p
=${PACKAGE-default}
1226 case "$enableval" in
1227 yes) enable_static
=yes ;;
1228 no
) enable_static
=no
;;
1231 # Look at the argument we got. We use all the common list separators.
1232 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1233 for pkg
in $enableval; do
1234 if test "X$pkg" = "X$p"; then
1245 # Check whether --enable-fast-install or --disable-fast-install was given.
1246 if test "${enable_fast_install+set}" = set; then
1247 enableval
="$enable_fast_install"
1248 p
=${PACKAGE-default}
1249 case "$enableval" in
1250 yes) enable_fast_install
=yes ;;
1251 no
) enable_fast_install
=no
;;
1253 enable_fast_install
=no
1254 # Look at the argument we got. We use all the common list separators.
1255 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1256 for pkg
in $enableval; do
1257 if test "X$pkg" = "X$p"; then
1258 enable_fast_install
=yes
1265 enable_fast_install
=yes
1268 echo $ac_n "checking build system type""... $ac_c" 1>&6
1269 echo "configure:1270: checking build system type" >&5
1272 case "$build_alias" in
1275 NONE
) build_alias
=$host_alias ;;
1276 *) build_alias
=$nonopt ;;
1280 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1281 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1282 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1283 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1284 echo "$ac_t""$build" 1>&6
1286 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1287 if test "${with_gnu_ld+set}" = set; then
1288 withval
="$with_gnu_ld"
1289 test "$withval" = no || with_gnu_ld
=yes
1295 if test "$ac_cv_prog_gcc" = yes; then
1296 # Check if gcc -print-prog-name=ld gives a path.
1297 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1298 echo "configure:1299: checking for ld used by GCC" >&5
1301 # gcc leaves a trailing carriage return which upsets mingw
1302 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1304 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
1307 # Accept absolute paths.
1308 [\\/]* |
[A-Za-z
]:[\\/]*)
1309 re_direlt
='/[^/][^/]*/\.\./'
1310 # Canonicalize the path of ld
1311 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1312 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1313 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1315 test -z "$LD" && LD
="$ac_prog"
1318 # If it fails, then pretend we aren't using GCC.
1322 # If it is relative, then search for the first ld in PATH.
1326 elif test "$with_gnu_ld" = yes; then
1327 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1328 echo "configure:1329: checking for GNU ld" >&5
1330 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1331 echo "configure:1332: checking for non-GNU ld" >&5
1333 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1334 echo $ac_n "(cached) $ac_c" 1>&6
1336 if test -z "$LD"; then
1337 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1338 for ac_dir
in $PATH; do
1339 test -z "$ac_dir" && ac_dir
=.
1340 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
1341 ac_cv_path_LD
="$ac_dir/$ac_prog"
1342 # Check to see if the program is GNU ld. I'd rather use --version,
1343 # but apparently some GNU ld's only accept -v.
1344 # Break only if it was the GNU/non-GNU ld that we prefer.
1345 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1346 test "$with_gnu_ld" != no
&& break
1348 test "$with_gnu_ld" != yes && break
1354 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1359 if test -n "$LD"; then
1360 echo "$ac_t""$LD" 1>&6
1362 echo "$ac_t""no" 1>&6
1364 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1365 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1366 echo "configure:1367: checking if the linker ($LD) is GNU ld" >&5
1367 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1368 echo $ac_n "(cached) $ac_c" 1>&6
1370 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1371 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1372 ac_cv_prog_gnu_ld
=yes
1374 ac_cv_prog_gnu_ld
=no
1378 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1379 with_gnu_ld
=$ac_cv_prog_gnu_ld
1382 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1383 echo "configure:1384: checking for $LD option to reload object files" >&5
1384 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1385 echo $ac_n "(cached) $ac_c" 1>&6
1387 lt_cv_ld_reload_flag
='-r'
1390 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1391 reload_flag
=$lt_cv_ld_reload_flag
1392 test -n "$reload_flag" && reload_flag
=" $reload_flag"
1394 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1395 echo "configure:1396: checking for BSD-compatible nm" >&5
1396 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1397 echo $ac_n "(cached) $ac_c" 1>&6
1399 if test -n "$NM"; then
1400 # Let the user override the test.
1403 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1404 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1405 test -z "$ac_dir" && ac_dir
=.
1406 tmp_nm
=$ac_dir/${ac_tool_prefix}nm
1407 if test -f $tmp_nm ||
test -f $tmp_nm$ac_exeext ; then
1408 # Check to see if the nm accepts a BSD-compat flag.
1409 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1410 # nm: unknown option "B" ignored
1411 # Tru64's nm complains that /dev/null is an invalid object file
1412 if ($tmp_nm -B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep '(/dev/null|Invalid file or object type)' >/dev
/null
; then
1413 ac_cv_path_NM
="$tmp_nm -B"
1415 elif ($tmp_nm -p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1416 ac_cv_path_NM
="$tmp_nm -p"
1419 ac_cv_path_NM
=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
1420 continue # so that we can try to find one that supports BSD flags
1425 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1430 echo "$ac_t""$NM" 1>&6
1432 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1433 echo "configure:1434: checking whether ln -s works" >&5
1434 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1435 echo $ac_n "(cached) $ac_c" 1>&6
1438 if ln -s X conftestdata
2>/dev
/null
1441 ac_cv_prog_LN_S
="ln -s"
1446 LN_S
="$ac_cv_prog_LN_S"
1447 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1448 echo "$ac_t""yes" 1>&6
1450 echo "$ac_t""no" 1>&6
1453 echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1454 echo "configure:1455: checking how to recognise dependant libraries" >&5
1455 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1456 echo $ac_n "(cached) $ac_c" 1>&6
1458 lt_cv_file_magic_cmd
='$MAGIC_CMD'
1459 lt_cv_file_magic_test_file
=
1460 lt_cv_deplibs_check_method
='unknown'
1461 # Need to set the preceding variable on all platforms that support
1462 # interlibrary dependencies.
1463 # 'none' -- dependencies not supported.
1464 # `unknown' -- same as none, but documents that we really don't know.
1465 # 'pass_all' -- all dependencies passed with no checks.
1466 # 'test_compile' -- check by making test program.
1467 # 'file_magic [regex]' -- check by looking for files in library path
1468 # which responds to the $file_magic_cmd with a given egrep regex.
1469 # If you have `file' or equivalent on your system and you're not sure
1470 # whether `pass_all' will *always* work, you probably want this one.
1474 lt_cv_deplibs_check_method
=pass_all
1478 lt_cv_deplibs_check_method
=pass_all
1482 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1483 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1484 lt_cv_file_magic_test_file
=/shlib
/libc.so
1487 cygwin
* | mingw
* |pw32
*)
1488 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
1489 lt_cv_file_magic_cmd
='$OBJDUMP -f'
1493 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
1496 # Not sure whether the presence of OpenBSD here was a mistake.
1497 # Let's accept both of them until this is cleared up.
1498 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1499 lt_cv_file_magic_cmd
=/usr
/bin
/file
1500 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
1504 lt_cv_deplibs_check_method
=pass_all
1509 lt_cv_deplibs_check_method
=pass_all
1513 # TODO: Does this work for hpux-11 too?
1514 lt_cv_deplibs_check_method
='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library'
1515 lt_cv_file_magic_cmd
=/usr
/bin
/file
1516 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
1522 # this will be overridden with pass_all, but let us keep it just in case
1523 lt_cv_deplibs_check_method
="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1527 *-32|
*"-32 ") libmagic
=32-bit;;
1528 *-n32|
*"-n32 ") libmagic
=N32
;;
1529 *-64|
*"-64 ") libmagic
=64-bit;;
1530 *) libmagic
=never-match
;;
1532 # this will be overridden with pass_all, but let us keep it just in case
1533 lt_cv_deplibs_check_method
="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1536 lt_cv_file_magic_test_file
=`echo /lib${libsuff}/libc.so*`
1537 lt_cv_deplibs_check_method
=pass_all
1540 # This must be Linux ELF.
1543 alpha
* | i
*86 | powerpc
* | sparc
* | ia64
* )
1544 lt_cv_deplibs_check_method
=pass_all
;;
1546 # glibc up to 2.1.1 does not perform some relocations on ARM
1547 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1549 lt_cv_file_magic_test_file
=`echo /lib/libc.so* /lib/libc-*.so`
1553 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then :
1555 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1556 lt_cv_file_magic_cmd
='/usr/bin/file -L'
1557 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
1561 osf3
* | osf4
* | osf5
*)
1562 # this will be overridden with pass_all, but let us keep it just in case
1563 lt_cv_deplibs_check_method
='file_magic COFF format alpha shared library'
1564 lt_cv_file_magic_test_file
=/shlib
/libc.so
1565 lt_cv_deplibs_check_method
=pass_all
1569 lt_cv_deplibs_check_method
=pass_all
1573 lt_cv_deplibs_check_method
=pass_all
1574 lt_cv_file_magic_test_file
=/lib
/libc.so
1577 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
1578 case "$host_vendor" in
1580 lt_cv_deplibs_check_method
=pass_all
1583 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]'
1584 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
1592 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1593 file_magic_cmd
=$lt_cv_file_magic_cmd
1594 deplibs_check_method
=$lt_cv_deplibs_check_method
1596 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1597 echo "configure:1598: checking for object suffix" >&5
1598 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1599 echo $ac_n "(cached) $ac_c" 1>&6
1602 echo 'int i = 1;' > conftest.
$ac_ext
1603 if { (eval echo configure
:1604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1604 for ac_file
in conftest.
*; do
1607 *) ac_cv_objext
=`echo $ac_file | sed -e s/conftest.//` ;;
1611 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1616 echo "$ac_t""$ac_cv_objext" 1>&6
1617 OBJEXT
=$ac_cv_objext
1618 ac_objext
=$ac_cv_objext
1620 if test $host != $build; then
1621 ac_tool_prefix
=${host_alias}-
1626 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1628 # Only perform the check for file, if the check method requires it
1629 case "$deplibs_check_method" in
1631 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1632 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1633 echo "configure:1634: checking for ${ac_tool_prefix}file" >&5
1634 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1635 echo $ac_n "(cached) $ac_c" 1>&6
1637 case "$MAGIC_CMD" in
1639 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
1642 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
1645 ac_save_MAGIC_CMD
="$MAGIC_CMD"
1646 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1647 ac_dummy
="/usr/bin:$PATH"
1648 for ac_dir
in $ac_dummy; do
1649 test -z "$ac_dir" && ac_dir
=.
1650 if test -f $ac_dir/${ac_tool_prefix}file; then
1651 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
1652 if test -n "$file_magic_test_file"; then
1653 case "$deplibs_check_method" in
1655 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1656 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1657 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1658 egrep "$file_magic_regex" > /dev
/null
; then
1663 *** Warning: the command libtool uses to detect shared libraries,
1664 *** $file_magic_cmd, produces output that libtool cannot recognize.
1665 *** The result is that libtool may fail to recognize shared libraries
1666 *** as such. This will affect the creation of libtool libraries that
1667 *** depend on shared libraries, but programs linked with such libtool
1668 *** libraries will work regardless of this problem. Nevertheless, you
1669 *** may want to report the problem to your system manager and/or to
1670 *** bug-libtool@gnu.org
1680 MAGIC_CMD
="$ac_save_MAGIC_CMD"
1685 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1686 if test -n "$MAGIC_CMD"; then
1687 echo "$ac_t""$MAGIC_CMD" 1>&6
1689 echo "$ac_t""no" 1>&6
1692 if test -z "$lt_cv_path_MAGIC_CMD"; then
1693 if test -n "$ac_tool_prefix"; then
1694 echo $ac_n "checking for file""... $ac_c" 1>&6
1695 echo "configure:1696: checking for file" >&5
1696 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1697 echo $ac_n "(cached) $ac_c" 1>&6
1699 case "$MAGIC_CMD" in
1701 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
1704 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a dos path.
1707 ac_save_MAGIC_CMD
="$MAGIC_CMD"
1708 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1709 ac_dummy
="/usr/bin:$PATH"
1710 for ac_dir
in $ac_dummy; do
1711 test -z "$ac_dir" && ac_dir
=.
1712 if test -f $ac_dir/file; then
1713 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
1714 if test -n "$file_magic_test_file"; then
1715 case "$deplibs_check_method" in
1717 file_magic_regex
="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1718 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1719 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
1720 egrep "$file_magic_regex" > /dev
/null
; then
1725 *** Warning: the command libtool uses to detect shared libraries,
1726 *** $file_magic_cmd, produces output that libtool cannot recognize.
1727 *** The result is that libtool may fail to recognize shared libraries
1728 *** as such. This will affect the creation of libtool libraries that
1729 *** depend on shared libraries, but programs linked with such libtool
1730 *** libraries will work regardless of this problem. Nevertheless, you
1731 *** may want to report the problem to your system manager and/or to
1732 *** bug-libtool@gnu.org
1742 MAGIC_CMD
="$ac_save_MAGIC_CMD"
1747 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
1748 if test -n "$MAGIC_CMD"; then
1749 echo "$ac_t""$MAGIC_CMD" 1>&6
1751 echo "$ac_t""no" 1>&6
1763 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1764 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
1765 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1766 echo "configure:1767: checking for $ac_word" >&5
1767 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1768 echo $ac_n "(cached) $ac_c" 1>&6
1770 if test -n "$RANLIB"; then
1771 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1773 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1775 for ac_dir
in $ac_dummy; do
1776 test -z "$ac_dir" && ac_dir
=.
1777 if test -f $ac_dir/$ac_word; then
1778 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
1785 RANLIB
="$ac_cv_prog_RANLIB"
1786 if test -n "$RANLIB"; then
1787 echo "$ac_t""$RANLIB" 1>&6
1789 echo "$ac_t""no" 1>&6
1793 if test -z "$ac_cv_prog_RANLIB"; then
1794 if test -n "$ac_tool_prefix"; then
1795 # Extract the first word of "ranlib", so it can be a program name with args.
1796 set dummy ranlib
; ac_word
=$2
1797 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1798 echo "configure:1799: checking for $ac_word" >&5
1799 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1800 echo $ac_n "(cached) $ac_c" 1>&6
1802 if test -n "$RANLIB"; then
1803 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1805 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1807 for ac_dir
in $ac_dummy; do
1808 test -z "$ac_dir" && ac_dir
=.
1809 if test -f $ac_dir/$ac_word; then
1810 ac_cv_prog_RANLIB
="ranlib"
1815 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1818 RANLIB
="$ac_cv_prog_RANLIB"
1819 if test -n "$RANLIB"; then
1820 echo "$ac_t""$RANLIB" 1>&6
1822 echo "$ac_t""no" 1>&6
1830 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1831 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
1832 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1833 echo "configure:1834: checking for $ac_word" >&5
1834 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1835 echo $ac_n "(cached) $ac_c" 1>&6
1837 if test -n "$STRIP"; then
1838 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1840 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1842 for ac_dir
in $ac_dummy; do
1843 test -z "$ac_dir" && ac_dir
=.
1844 if test -f $ac_dir/$ac_word; then
1845 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
1852 STRIP
="$ac_cv_prog_STRIP"
1853 if test -n "$STRIP"; then
1854 echo "$ac_t""$STRIP" 1>&6
1856 echo "$ac_t""no" 1>&6
1860 if test -z "$ac_cv_prog_STRIP"; then
1861 if test -n "$ac_tool_prefix"; then
1862 # Extract the first word of "strip", so it can be a program name with args.
1863 set dummy strip
; ac_word
=$2
1864 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1865 echo "configure:1866: checking for $ac_word" >&5
1866 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1867 echo $ac_n "(cached) $ac_c" 1>&6
1869 if test -n "$STRIP"; then
1870 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1872 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1874 for ac_dir
in $ac_dummy; do
1875 test -z "$ac_dir" && ac_dir
=.
1876 if test -f $ac_dir/$ac_word; then
1877 ac_cv_prog_STRIP
="strip"
1882 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
=":"
1885 STRIP
="$ac_cv_prog_STRIP"
1886 if test -n "$STRIP"; then
1887 echo "$ac_t""$STRIP" 1>&6
1889 echo "$ac_t""no" 1>&6
1898 # Check for any special flags to pass to ltconfig.
1899 libtool_flags
="--cache-file=$cache_file"
1900 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1901 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1902 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1903 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1904 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1907 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1908 if test "${enable_libtool_lock+set}" = set; then
1909 enableval
="$enable_libtool_lock"
1913 test "x$enable_libtool_lock" = xno
&& libtool_flags
="$libtool_flags --disable-lock"
1914 test x
"$silent" = xyes
&& libtool_flags
="$libtool_flags --silent"
1916 # Check whether --with-pic or --without-pic was given.
1917 if test "${with_pic+set}" = set; then
1924 test x
"$pic_mode" = xyes
&& libtool_flags
="$libtool_flags --prefer-pic"
1925 test x
"$pic_mode" = xno
&& libtool_flags
="$libtool_flags --prefer-non-pic"
1927 # Some flags need to be propagated to the compiler or linker for good
1931 # Find out which ABI we are using.
1932 echo '#line 1933 "configure"' > conftest.
$ac_ext
1933 if { (eval echo configure
:1934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1934 case "`/usr/bin/file conftest.o`" in
1950 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1951 SAVE_CFLAGS
="$CFLAGS"
1952 CFLAGS
="$CFLAGS -belf"
1953 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1954 echo "configure:1955: checking whether the C compiler needs -belf" >&5
1955 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1956 echo $ac_n "(cached) $ac_c" 1>&6
1960 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1961 ac_cpp
='$CPP $CPPFLAGS'
1962 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1963 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1964 cross_compiling
=$ac_cv_prog_cc_cross
1966 cat > conftest.
$ac_ext <<EOF
1967 #line 1968 "configure"
1968 #include "confdefs.h"
1974 if { (eval echo configure
:1975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1976 lt_cv_cc_needs_belf
=yes
1978 echo "configure: failed program was:" >&5
1979 cat conftest.
$ac_ext >&5
1981 lt_cv_cc_needs_belf
=no
1985 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1986 ac_cpp
='$CPP $CPPFLAGS'
1987 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1988 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1989 cross_compiling
=$ac_cv_prog_cc_cross
1993 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1994 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
1995 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1996 CFLAGS
="$SAVE_CFLAGS"
2004 # Save cache, so that ltconfig can load it
2005 cat > confcache
<<\EOF
2006 # This file is a shell script that caches the results of configure
2007 # tests run on this system so they can be shared between configure
2008 # scripts and configure runs. It is not useful on other systems.
2009 # If it contains results you don't want to keep, you may remove or edit it.
2011 # By default, configure uses ./config.cache as the cache file,
2012 # creating it if it does not exist already. You can give configure
2013 # the --cache-file=FILE option to use a different cache file; that is
2014 # what configure does when it calls configure scripts in
2015 # subdirectories, so they share the cache.
2016 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2017 # config.status only pays attention to the cache file if you give it the
2018 # --recheck option to rerun configure.
2021 # The following way of writing the cache mishandles newlines in values,
2022 # but we know of no workaround that is simple, portable, and efficient.
2023 # So, don't put newlines in cache variables' values.
2024 # Ultrix sh set writes to stderr and can't be redirected directly,
2025 # and sets the high bit in the cache file unless we assign to the vars.
2027 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2029 # `set' does not quote correctly, so add quotes (double-quote substitution
2030 # turns \\\\ into \\, and sed turns \\ into \).
2032 -e "s/'/'\\\\''/g" \
2033 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2036 # `set' quotes correctly as required by POSIX, so do not add quotes.
2037 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2040 if cmp -s $cache_file confcache
; then
2043 if test -w $cache_file; then
2044 echo "updating cache $cache_file"
2045 cat confcache
> $cache_file
2047 echo "not updating unwritable cache $cache_file"
2053 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2054 AR
="$AR" LTCC
="$CC" CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
2055 MAGIC_CMD
="$MAGIC_CMD" LD
="$LD" LDFLAGS
="$LDFLAGS" LIBS
="$LIBS" \
2056 LN_S
="$LN_S" NM
="$NM" RANLIB
="$RANLIB" STRIP
="$STRIP" \
2057 AS
="$AS" DLLTOOL
="$DLLTOOL" OBJDUMP
="$OBJDUMP" \
2058 objext
="$OBJEXT" exeext
="$EXEEXT" reload_flag
="$reload_flag" \
2059 deplibs_check_method
="$deplibs_check_method" file_magic_cmd
="$file_magic_cmd" \
2060 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
2061 $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh
$host \
2062 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2064 # Reload cache, that may have been modified by ltconfig
2065 if test -r "$cache_file"; then
2066 echo "loading cache $cache_file"
2069 echo "creating cache $cache_file"
2074 # This can be used to rebuild libtool when needed
2075 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2077 # Always use our own libtool.
2078 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
2080 # Redirect the config.log output again, so that the ltconfig log is not
2081 # clobbered by the next message.
2082 exec 5>>.
/config.log
2093 mips-sgi-irix5.
* | mips-sgi-irix6.
*) TARGET
=MIPS
; TARGETDIR
=mips
;;
2094 i
*86-*-linux*) TARGET
=X86
; TARGETDIR
=x86
;;
2095 i
*86-*-solaris*) TARGET
=X86
; TARGETDIR
=x86
;;
2096 i
*86-*-beos*) TARGET
=X86
; TARGETDIR
=x86
;;
2097 i
*86-*-freebsd*) TARGET
=X86
; TARGETDIR
=x86
;;
2098 sparc-sun-4
*) TARGET
=SPARC
; TARGETDIR
=sparc
;;
2099 sparc-sun-
*) TARGET
=SPARC
; TARGETDIR
=sparc
;;
2100 sparc-
*-linux*) TARGET
=SPARC
; TARGETDIR
=sparc
;;
2101 sparc64-
*-linux*) TARGET
=SPARC
; TARGETDIR
=sparc
;;
2102 alpha
*-*-linux* | alpha
*-*-osf*) TARGET
=ALPHA
; TARGETDIR
=alpha
;;
2103 ia64
*-*-*) TARGET
=IA64
; TARGETDIR
=ia64
;;
2104 m68k-
*-linux*) TARGET
=M68K
; TARGETDIR
=m68k
;;
2105 powerpc-
*-linux* | powerpc-
*-sysv*) TARGET
=POWERPC
; TARGETDIR
=powerpc
;;
2106 powerpc-
*-beos*) TARGET
=POWERPC
; TARGETDIR
=powerpc
;;
2107 arm
*-*-linux-*) TARGET
=ARM
; TARGETDIR
=arm
;;
2110 if test $TARGETDIR = unknown
; then
2111 { echo "configure: error: "libffi has not been ported to
$host.
"" 1>&2; exit 1; }
2116 if test ${TARGET}${ac_cv_prog_gcc} = MIPSyes
; then
2125 if test ${TARGET}${ac_cv_prog_gcc} = MIPSno
; then
2134 if test x
$TARGET = xSPARC
; then
2143 if test x
$TARGET = xX86
; then
2152 if test x
$TARGET = xALPHA
; then
2161 if test x
$TARGET = xIA64
; then
2170 if test x
$TARGET = xM68K
; then
2179 if test x
$TARGET = xPOWERPC
; then
2188 if test x
$TARGET = xARM
; then
2196 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2197 echo "configure:2198: checking how to run the C preprocessor" >&5
2198 # On Suns, sometimes $CPP names a directory.
2199 if test -n "$CPP" && test -d "$CPP"; then
2202 if test -z "$CPP"; then
2203 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2204 echo $ac_n "(cached) $ac_c" 1>&6
2206 # This must be in double quotes, not single quotes, because CPP may get
2207 # substituted into the Makefile and "${CC-cc}" will confuse make.
2209 # On the NeXT, cc -E runs the code through the compiler's parser,
2210 # not just through cpp.
2211 cat > conftest.
$ac_ext <<EOF
2212 #line 2213 "configure"
2213 #include "confdefs.h"
2217 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2218 { (eval echo configure
:2219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2219 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2220 if test -z "$ac_err"; then
2224 echo "configure: failed program was:" >&5
2225 cat conftest.
$ac_ext >&5
2227 CPP
="${CC-cc} -E -traditional-cpp"
2228 cat > conftest.
$ac_ext <<EOF
2229 #line 2230 "configure"
2230 #include "confdefs.h"
2234 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2235 { (eval echo configure
:2236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2236 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2237 if test -z "$ac_err"; then
2241 echo "configure: failed program was:" >&5
2242 cat conftest.
$ac_ext >&5
2244 CPP
="${CC-cc} -nologo -E"
2245 cat > conftest.
$ac_ext <<EOF
2246 #line 2247 "configure"
2247 #include "confdefs.h"
2251 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2252 { (eval echo configure
:2253: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2253 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2254 if test -z "$ac_err"; then
2258 echo "configure: failed program was:" >&5
2259 cat conftest.
$ac_ext >&5
2268 ac_cv_prog_CPP
="$CPP"
2270 CPP
="$ac_cv_prog_CPP"
2272 ac_cv_prog_CPP
="$CPP"
2274 echo "$ac_t""$CPP" 1>&6
2276 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2277 echo "configure:2278: checking for ANSI C header files" >&5
2278 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2279 echo $ac_n "(cached) $ac_c" 1>&6
2281 cat > conftest.
$ac_ext <<EOF
2282 #line 2283 "configure"
2283 #include "confdefs.h"
2289 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2290 { (eval echo configure
:2291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2291 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2292 if test -z "$ac_err"; then
2294 ac_cv_header_stdc
=yes
2297 echo "configure: failed program was:" >&5
2298 cat conftest.
$ac_ext >&5
2300 ac_cv_header_stdc
=no
2304 if test $ac_cv_header_stdc = yes; then
2305 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2306 cat > conftest.
$ac_ext <<EOF
2307 #line 2308 "configure"
2308 #include "confdefs.h"
2311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2312 egrep "memchr" >/dev
/null
2>&1; then
2316 ac_cv_header_stdc
=no
2322 if test $ac_cv_header_stdc = yes; then
2323 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2324 cat > conftest.
$ac_ext <<EOF
2325 #line 2326 "configure"
2326 #include "confdefs.h"
2329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2330 egrep "free" >/dev
/null
2>&1; then
2334 ac_cv_header_stdc
=no
2340 if test $ac_cv_header_stdc = yes; then
2341 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2342 if test "$cross_compiling" = yes; then
2345 cat > conftest.
$ac_ext <<EOF
2346 #line 2347 "configure"
2347 #include "confdefs.h"
2349 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2350 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2351 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2352 int main () { int i; for (i = 0; i < 256; i++)
2353 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2357 if { (eval echo configure
:2358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2361 echo "configure: failed program was:" >&5
2362 cat conftest.
$ac_ext >&5
2364 ac_cv_header_stdc
=no
2372 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2373 if test $ac_cv_header_stdc = yes; then
2374 cat >> confdefs.h
<<\EOF
2375 #define STDC_HEADERS 1
2380 for ac_func
in memcpy
2382 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2383 echo "configure:2384: checking for $ac_func" >&5
2384 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2385 echo $ac_n "(cached) $ac_c" 1>&6
2387 cat > conftest.
$ac_ext <<EOF
2388 #line 2389 "configure"
2389 #include "confdefs.h"
2390 /* System header to define __stub macros and hopefully few prototypes,
2391 which can conflict with char $ac_func(); below. */
2393 /* Override any gcc2 internal prototype to avoid an error. */
2394 /* We use char because int might match the return type of a gcc2
2395 builtin and then its argument prototype would still apply. */
2400 /* The GNU C library defines this for functions which it implements
2401 to always fail with ENOSYS. Some functions are actually named
2402 something starting with __ and the normal name is an alias. */
2403 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2411 if { (eval echo configure
:2412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2413 eval "ac_cv_func_$ac_func=yes"
2415 echo "configure: failed program was:" >&5
2416 cat conftest.
$ac_ext >&5
2418 eval "ac_cv_func_$ac_func=no"
2423 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2424 echo "$ac_t""yes" 1>&6
2425 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2426 cat >> confdefs.h
<<EOF
2427 #define $ac_tr_func 1
2431 echo "$ac_t""no" 1>&6
2435 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2436 # for constant arguments. Useless!
2437 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2438 echo "configure:2439: checking for working alloca.h" >&5
2439 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2440 echo $ac_n "(cached) $ac_c" 1>&6
2442 cat > conftest.
$ac_ext <<EOF
2443 #line 2444 "configure"
2444 #include "confdefs.h"
2447 char *p = alloca(2 * sizeof(int));
2450 if { (eval echo configure
:2451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2452 ac_cv_header_alloca_h
=yes
2454 echo "configure: failed program was:" >&5
2455 cat conftest.
$ac_ext >&5
2457 ac_cv_header_alloca_h
=no
2462 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2463 if test $ac_cv_header_alloca_h = yes; then
2464 cat >> confdefs.h
<<\EOF
2465 #define HAVE_ALLOCA_H 1
2470 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2471 echo "configure:2472: checking for alloca" >&5
2472 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2473 echo $ac_n "(cached) $ac_c" 1>&6
2475 cat > conftest.
$ac_ext <<EOF
2476 #line 2477 "configure"
2477 #include "confdefs.h"
2480 # define alloca __builtin_alloca
2483 # include <malloc.h>
2484 # define alloca _alloca
2487 # include <alloca.h>
2492 # ifndef alloca /* predefined by HP cc +Olibcalls */
2501 char *p = (char *) alloca(1);
2504 if { (eval echo configure
:2505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2506 ac_cv_func_alloca_works
=yes
2508 echo "configure: failed program was:" >&5
2509 cat conftest.
$ac_ext >&5
2511 ac_cv_func_alloca_works
=no
2516 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2517 if test $ac_cv_func_alloca_works = yes; then
2518 cat >> confdefs.h
<<\EOF
2519 #define HAVE_ALLOCA 1
2524 if test $ac_cv_func_alloca_works = no
; then
2525 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2526 # that cause trouble. Some versions do not even contain alloca or
2527 # contain a buggy version. If you still want to use their alloca,
2528 # use ar to extract alloca.o from them instead of compiling alloca.c.
2529 ALLOCA
=alloca.
${ac_objext}
2530 cat >> confdefs.h
<<\EOF
2535 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2536 echo "configure:2537: checking whether alloca needs Cray hooks" >&5
2537 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2538 echo $ac_n "(cached) $ac_c" 1>&6
2540 cat > conftest.
$ac_ext <<EOF
2541 #line 2542 "configure"
2542 #include "confdefs.h"
2543 #if defined(CRAY) && ! defined(CRAY2)
2550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2551 egrep "webecray" >/dev
/null
2>&1; then
2562 echo "$ac_t""$ac_cv_os_cray" 1>&6
2563 if test $ac_cv_os_cray = yes; then
2564 for ac_func
in _getb67 GETB67 getb67
; do
2565 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2566 echo "configure:2567: checking for $ac_func" >&5
2567 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2568 echo $ac_n "(cached) $ac_c" 1>&6
2570 cat > conftest.
$ac_ext <<EOF
2571 #line 2572 "configure"
2572 #include "confdefs.h"
2573 /* System header to define __stub macros and hopefully few prototypes,
2574 which can conflict with char $ac_func(); below. */
2576 /* Override any gcc2 internal prototype to avoid an error. */
2577 /* We use char because int might match the return type of a gcc2
2578 builtin and then its argument prototype would still apply. */
2583 /* The GNU C library defines this for functions which it implements
2584 to always fail with ENOSYS. Some functions are actually named
2585 something starting with __ and the normal name is an alias. */
2586 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2594 if { (eval echo configure
:2595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2596 eval "ac_cv_func_$ac_func=yes"
2598 echo "configure: failed program was:" >&5
2599 cat conftest.
$ac_ext >&5
2601 eval "ac_cv_func_$ac_func=no"
2606 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2607 echo "$ac_t""yes" 1>&6
2608 cat >> confdefs.h
<<EOF
2609 #define CRAY_STACKSEG_END $ac_func
2614 echo "$ac_t""no" 1>&6
2620 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2621 echo "configure:2622: checking stack direction for C alloca" >&5
2622 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2623 echo $ac_n "(cached) $ac_c" 1>&6
2625 if test "$cross_compiling" = yes; then
2626 ac_cv_c_stack_direction
=0
2628 cat > conftest.
$ac_ext <<EOF
2629 #line 2630 "configure"
2630 #include "confdefs.h"
2631 find_stack_direction ()
2633 static char *addr = 0;
2638 return find_stack_direction ();
2641 return (&dummy > addr) ? 1 : -1;
2645 exit (find_stack_direction() < 0);
2648 if { (eval echo configure
:2649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2650 ac_cv_c_stack_direction
=1
2652 echo "configure: failed program was:" >&5
2653 cat conftest.
$ac_ext >&5
2655 ac_cv_c_stack_direction
=-1
2662 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2663 cat >> confdefs.h
<<EOF
2664 #define STACK_DIRECTION $ac_cv_c_stack_direction
2670 echo $ac_n "checking size of short""... $ac_c" 1>&6
2671 echo "configure:2672: checking size of short" >&5
2672 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
2673 echo $ac_n "(cached) $ac_c" 1>&6
2675 if test "$cross_compiling" = yes; then
2676 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2678 cat > conftest.
$ac_ext <<EOF
2679 #line 2680 "configure"
2680 #include "confdefs.h"
2684 FILE *f=fopen("conftestval", "w");
2686 fprintf(f, "%d\n", sizeof(short));
2690 if { (eval echo configure
:2691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2692 ac_cv_sizeof_short
=`cat conftestval`
2694 echo "configure: failed program was:" >&5
2695 cat conftest.
$ac_ext >&5
2697 ac_cv_sizeof_short
=0
2703 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
2704 cat >> confdefs.h
<<EOF
2705 #define SIZEOF_SHORT $ac_cv_sizeof_short
2709 echo $ac_n "checking size of int""... $ac_c" 1>&6
2710 echo "configure:2711: checking size of int" >&5
2711 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
2712 echo $ac_n "(cached) $ac_c" 1>&6
2714 if test "$cross_compiling" = yes; then
2715 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2717 cat > conftest.
$ac_ext <<EOF
2718 #line 2719 "configure"
2719 #include "confdefs.h"
2723 FILE *f=fopen("conftestval", "w");
2725 fprintf(f, "%d\n", sizeof(int));
2729 if { (eval echo configure
:2730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2731 ac_cv_sizeof_int
=`cat conftestval`
2733 echo "configure: failed program was:" >&5
2734 cat conftest.
$ac_ext >&5
2742 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
2743 cat >> confdefs.h
<<EOF
2744 #define SIZEOF_INT $ac_cv_sizeof_int
2748 echo $ac_n "checking size of long""... $ac_c" 1>&6
2749 echo "configure:2750: checking size of long" >&5
2750 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
2751 echo $ac_n "(cached) $ac_c" 1>&6
2753 if test "$cross_compiling" = yes; then
2754 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2756 cat > conftest.
$ac_ext <<EOF
2757 #line 2758 "configure"
2758 #include "confdefs.h"
2762 FILE *f=fopen("conftestval", "w");
2764 fprintf(f, "%d\n", sizeof(long));
2768 if { (eval echo configure
:2769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2770 ac_cv_sizeof_long
=`cat conftestval`
2772 echo "configure: failed program was:" >&5
2773 cat conftest.
$ac_ext >&5
2781 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
2782 cat >> confdefs.h
<<EOF
2783 #define SIZEOF_LONG $ac_cv_sizeof_long
2787 echo $ac_n "checking size of long long""... $ac_c" 1>&6
2788 echo "configure:2789: checking size of long long" >&5
2789 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
2790 echo $ac_n "(cached) $ac_c" 1>&6
2792 if test "$cross_compiling" = yes; then
2793 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2795 cat > conftest.
$ac_ext <<EOF
2796 #line 2797 "configure"
2797 #include "confdefs.h"
2801 FILE *f=fopen("conftestval", "w");
2803 fprintf(f, "%d\n", sizeof(long long));
2807 if { (eval echo configure
:2808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2809 ac_cv_sizeof_long_long
=`cat conftestval`
2811 echo "configure: failed program was:" >&5
2812 cat conftest.
$ac_ext >&5
2814 ac_cv_sizeof_long_long
=0
2820 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
2821 cat >> confdefs.h
<<EOF
2822 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
2826 echo $ac_n "checking size of float""... $ac_c" 1>&6
2827 echo "configure:2828: checking size of float" >&5
2828 if eval "test \"`echo '$''{'ac_cv_sizeof_float'+set}'`\" = set"; then
2829 echo $ac_n "(cached) $ac_c" 1>&6
2831 if test "$cross_compiling" = yes; then
2832 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2834 cat > conftest.
$ac_ext <<EOF
2835 #line 2836 "configure"
2836 #include "confdefs.h"
2840 FILE *f=fopen("conftestval", "w");
2842 fprintf(f, "%d\n", sizeof(float));
2846 if { (eval echo configure
:2847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2848 ac_cv_sizeof_float
=`cat conftestval`
2850 echo "configure: failed program was:" >&5
2851 cat conftest.
$ac_ext >&5
2853 ac_cv_sizeof_float
=0
2859 echo "$ac_t""$ac_cv_sizeof_float" 1>&6
2860 cat >> confdefs.h
<<EOF
2861 #define SIZEOF_FLOAT $ac_cv_sizeof_float
2865 echo $ac_n "checking size of double""... $ac_c" 1>&6
2866 echo "configure:2867: checking size of double" >&5
2867 if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
2868 echo $ac_n "(cached) $ac_c" 1>&6
2870 if test "$cross_compiling" = yes; then
2871 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2873 cat > conftest.
$ac_ext <<EOF
2874 #line 2875 "configure"
2875 #include "confdefs.h"
2879 FILE *f=fopen("conftestval", "w");
2881 fprintf(f, "%d\n", sizeof(double));
2885 if { (eval echo configure
:2886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2887 ac_cv_sizeof_double
=`cat conftestval`
2889 echo "configure: failed program was:" >&5
2890 cat conftest.
$ac_ext >&5
2892 ac_cv_sizeof_double
=0
2898 echo "$ac_t""$ac_cv_sizeof_double" 1>&6
2899 cat >> confdefs.h
<<EOF
2900 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
2904 echo $ac_n "checking size of long double""... $ac_c" 1>&6
2905 echo "configure:2906: checking size of long double" >&5
2906 if eval "test \"`echo '$''{'ac_cv_sizeof_long_double'+set}'`\" = set"; then
2907 echo $ac_n "(cached) $ac_c" 1>&6
2909 if test "$cross_compiling" = yes; then
2910 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2912 cat > conftest.
$ac_ext <<EOF
2913 #line 2914 "configure"
2914 #include "confdefs.h"
2918 FILE *f=fopen("conftestval", "w");
2920 fprintf(f, "%d\n", sizeof(long double));
2924 if { (eval echo configure
:2925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2926 ac_cv_sizeof_long_double
=`cat conftestval`
2928 echo "configure: failed program was:" >&5
2929 cat conftest.
$ac_ext >&5
2931 ac_cv_sizeof_long_double
=0
2937 echo "$ac_t""$ac_cv_sizeof_long_double" 1>&6
2938 cat >> confdefs.h
<<EOF
2939 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
2944 echo $ac_n "checking size of void *""... $ac_c" 1>&6
2945 echo "configure:2946: checking size of void *" >&5
2946 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
2947 echo $ac_n "(cached) $ac_c" 1>&6
2949 if test "$cross_compiling" = yes; then
2950 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2952 cat > conftest.
$ac_ext <<EOF
2953 #line 2954 "configure"
2954 #include "confdefs.h"
2958 FILE *f=fopen("conftestval", "w");
2960 fprintf(f, "%d\n", sizeof(void *));
2964 if { (eval echo configure
:2965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2966 ac_cv_sizeof_void_p
=`cat conftestval`
2968 echo "configure: failed program was:" >&5
2969 cat conftest.
$ac_ext >&5
2971 ac_cv_sizeof_void_p
=0
2977 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
2978 cat >> confdefs.h
<<EOF
2979 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
2983 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
2984 echo "configure:2985: checking whether byte ordering is bigendian" >&5
2985 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
2986 echo $ac_n "(cached) $ac_c" 1>&6
2988 ac_cv_c_bigendian
=unknown
2989 # See if sys/param.h defines the BYTE_ORDER macro.
2990 cat > conftest.
$ac_ext <<EOF
2991 #line 2992 "configure"
2992 #include "confdefs.h"
2993 #include <sys/types.h>
2994 #include <sys/param.h>
2997 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3002 if { (eval echo configure
:3003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3004 # It does; now see whether it defined to BIG_ENDIAN or not.
3005 cat > conftest.
$ac_ext <<EOF
3006 #line 3007 "configure"
3007 #include "confdefs.h"
3008 #include <sys/types.h>
3009 #include <sys/param.h>
3012 #if BYTE_ORDER != BIG_ENDIAN
3017 if { (eval echo configure
:3018: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3019 ac_cv_c_bigendian
=yes
3021 echo "configure: failed program was:" >&5
3022 cat conftest.
$ac_ext >&5
3024 ac_cv_c_bigendian
=no
3028 echo "configure: failed program was:" >&5
3029 cat conftest.
$ac_ext >&5
3032 if test $ac_cv_c_bigendian = unknown
; then
3033 if test "$cross_compiling" = yes; then
3034 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3036 cat > conftest.
$ac_ext <<EOF
3037 #line 3038 "configure"
3038 #include "confdefs.h"
3040 /* Are we little or big endian? From Harbison&Steele. */
3044 char c[sizeof (long)];
3047 exit (u.c[sizeof (long) - 1] == 1);
3050 if { (eval echo configure
:3051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3052 ac_cv_c_bigendian
=no
3054 echo "configure: failed program was:" >&5
3055 cat conftest.
$ac_ext >&5
3057 ac_cv_c_bigendian
=yes
3065 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3066 if test $ac_cv_c_bigendian = yes; then
3067 cat >> confdefs.h
<<\EOF
3068 #define WORDS_BIGENDIAN 1
3079 # Check whether --enable-debug or --disable-debug was given.
3080 if test "${enable_debug+set}" = set; then
3081 enableval
="$enable_debug"
3082 cat >> confdefs.h
<<\EOF
3089 # Check whether --enable-debug or --disable-debug was given.
3090 if test "${enable_debug+set}" = set; then
3091 enableval
="$enable_debug"
3092 cat >> confdefs.h
<<\EOF
3093 #define FFI_NO_STRUCTS 1
3099 # Check whether --enable-debug or --disable-debug was given.
3100 if test "${enable_debug+set}" = set; then
3101 enableval
="$enable_debug"
3102 cat >> confdefs.h
<<\EOF
3103 #define FFI_NO_RAW_API 1
3109 # Check whether --enable-purify-safety or --disable-purify-safety was given.
3110 if test "${enable_purify_safety+set}" = set; then
3111 enableval
="$enable_purify_safety"
3112 cat >> confdefs.h
<<\EOF
3113 #define USING_PURIFY 1
3121 if test -z "$with_cross_host"; then
3123 USE_LIBDIR_FALSE
='#'
3129 if test "${multilib}" = "yes"; then
3130 multilib_arg
="--enable-multilib"
3136 cat > confcache
<<\EOF
3137 # This file is a shell script that caches the results of configure
3138 # tests run on this system so they can be shared between configure
3139 # scripts and configure runs. It is not useful on other systems.
3140 # If it contains results you don't want to keep, you may remove or edit it.
3142 # By default, configure uses ./config.cache as the cache file,
3143 # creating it if it does not exist already. You can give configure
3144 # the --cache-file=FILE option to use a different cache file; that is
3145 # what configure does when it calls configure scripts in
3146 # subdirectories, so they share the cache.
3147 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3148 # config.status only pays attention to the cache file if you give it the
3149 # --recheck option to rerun configure.
3152 # The following way of writing the cache mishandles newlines in values,
3153 # but we know of no workaround that is simple, portable, and efficient.
3154 # So, don't put newlines in cache variables' values.
3155 # Ultrix sh set writes to stderr and can't be redirected directly,
3156 # and sets the high bit in the cache file unless we assign to the vars.
3158 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3160 # `set' does not quote correctly, so add quotes (double-quote substitution
3161 # turns \\\\ into \\, and sed turns \\ into \).
3163 -e "s/'/'\\\\''/g" \
3164 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3167 # `set' quotes correctly as required by POSIX, so do not add quotes.
3168 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3171 if cmp -s $cache_file confcache
; then
3174 if test -w $cache_file; then
3175 echo "updating cache $cache_file"
3176 cat confcache
> $cache_file
3178 echo "not updating unwritable cache $cache_file"
3183 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3185 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3186 # Let make expand exec_prefix.
3187 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3189 # Any assignment to VPATH causes Sun make to only execute
3190 # the first set of double-colon rules, so remove it if not needed.
3191 # If there is a colon in the path, we need to keep it.
3192 if test "x$srcdir" = x.
; then
3193 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
3196 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3198 DEFS
=-DHAVE_CONFIG_H
3200 # Without the "./", some shells look in PATH for config.status.
3201 : ${CONFIG_STATUS=./config.status}
3203 echo creating
$CONFIG_STATUS
3204 rm -f $CONFIG_STATUS
3205 cat > $CONFIG_STATUS <<EOF
3207 # Generated automatically by configure.
3208 # Run this file to recreate the current configuration.
3209 # This directory was configured as follows,
3210 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3212 # $0 $ac_configure_args
3214 # Compiler output produced by configure, useful for debugging
3215 # configure, is in ./config.log if it exists.
3217 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3220 case "\$ac_option" in
3221 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3222 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3223 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3224 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3225 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3227 -help | --help | --hel | --he | --h)
3228 echo "\$ac_cs_usage"; exit 0 ;;
3229 *) echo "\$ac_cs_usage"; exit 1 ;;
3233 ac_given_srcdir=$srcdir
3234 ac_given_INSTALL="$INSTALL"
3236 trap 'rm -fr `echo "include/Makefile include/ffi.h Makefile fficonfig.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3238 cat >> $CONFIG_STATUS <<EOF
3240 # Protect against being on the right side of a sed subst in config.status.
3241 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3242 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3246 s%@CFLAGS@%$CFLAGS%g
3247 s%@CPPFLAGS@%$CPPFLAGS%g
3248 s%@CXXFLAGS@%$CXXFLAGS%g
3249 s%@FFLAGS@%$FFLAGS%g
3251 s%@LDFLAGS@%$LDFLAGS%g
3253 s%@exec_prefix@%$exec_prefix%g
3254 s%@prefix@%$prefix%g
3255 s%@program_transform_name@%$program_transform_name%g
3256 s%@bindir@%$bindir%g
3257 s%@sbindir@%$sbindir%g
3258 s%@libexecdir@%$libexecdir%g
3259 s%@datadir@%$datadir%g
3260 s%@sysconfdir@%$sysconfdir%g
3261 s%@sharedstatedir@%$sharedstatedir%g
3262 s%@localstatedir@%$localstatedir%g
3263 s%@libdir@%$libdir%g
3264 s%@includedir@%$includedir%g
3265 s%@oldincludedir@%$oldincludedir%g
3266 s%@infodir@%$infodir%g
3267 s%@mandir@%$mandir%g
3268 s%@libffi_basedir@%$libffi_basedir%g
3270 s%@host_alias@%$host_alias%g
3271 s%@host_cpu@%$host_cpu%g
3272 s%@host_vendor@%$host_vendor%g
3273 s%@host_os@%$host_os%g
3274 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3275 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3276 s%@INSTALL_DATA@%$INSTALL_DATA%g
3277 s%@PACKAGE@%$PACKAGE%g
3278 s%@VERSION@%$VERSION%g
3279 s%@ACLOCAL@%$ACLOCAL%g
3280 s%@AUTOCONF@%$AUTOCONF%g
3281 s%@AUTOMAKE@%$AUTOMAKE%g
3282 s%@AUTOHEADER@%$AUTOHEADER%g
3283 s%@MAKEINFO@%$MAKEINFO%g
3284 s%@SET_MAKE@%$SET_MAKE%g
3285 s%@EXEEXT@%$EXEEXT%g
3286 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3287 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3291 s%@build_alias@%$build_alias%g
3292 s%@build_cpu@%$build_cpu%g
3293 s%@build_vendor@%$build_vendor%g
3294 s%@build_os@%$build_os%g
3296 s%@OBJEXT@%$OBJEXT%g
3297 s%@RANLIB@%$RANLIB%g
3299 s%@LIBTOOL@%$LIBTOOL%g
3300 s%@MIPS_GCC_TRUE@%$MIPS_GCC_TRUE%g
3301 s%@MIPS_GCC_FALSE@%$MIPS_GCC_FALSE%g
3302 s%@MIPS_SGI_TRUE@%$MIPS_SGI_TRUE%g
3303 s%@MIPS_SGI_FALSE@%$MIPS_SGI_FALSE%g
3304 s%@SPARC_TRUE@%$SPARC_TRUE%g
3305 s%@SPARC_FALSE@%$SPARC_FALSE%g
3306 s%@X86_TRUE@%$X86_TRUE%g
3307 s%@X86_FALSE@%$X86_FALSE%g
3308 s%@ALPHA_TRUE@%$ALPHA_TRUE%g
3309 s%@ALPHA_FALSE@%$ALPHA_FALSE%g
3310 s%@IA64_TRUE@%$IA64_TRUE%g
3311 s%@IA64_FALSE@%$IA64_FALSE%g
3312 s%@M68K_TRUE@%$M68K_TRUE%g
3313 s%@M68K_FALSE@%$M68K_FALSE%g
3314 s%@POWERPC_TRUE@%$POWERPC_TRUE%g
3315 s%@POWERPC_FALSE@%$POWERPC_FALSE%g
3316 s%@ARM_TRUE@%$ARM_TRUE%g
3317 s%@ARM_FALSE@%$ARM_FALSE%g
3319 s%@ALLOCA@%$ALLOCA%g
3320 s%@TARGET@%$TARGET%g
3321 s%@TARGETDIR@%$TARGETDIR%g
3322 s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
3323 s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
3328 cat >> $CONFIG_STATUS <<\EOF
3330 # Split the substitutions into bite-sized pieces for seds with
3331 # small command number limits, like on Digital OSF/1 and HP-UX.
3332 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
3333 ac_file
=1 # Number of current file.
3334 ac_beg
=1 # First line for current file.
3335 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
3338 while $ac_more_lines; do
3339 if test $ac_beg -gt 1; then
3340 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
3342 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
3344 if test ! -s conftest.s
$ac_file; then
3346 rm -f conftest.s
$ac_file
3348 if test -z "$ac_sed_cmds"; then
3349 ac_sed_cmds
="sed -f conftest.s$ac_file"
3351 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
3353 ac_file
=`expr $ac_file + 1`
3355 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
3358 if test -z "$ac_sed_cmds"; then
3363 cat >> $CONFIG_STATUS <<EOF
3365 CONFIG_FILES=\${CONFIG_FILES-"include/Makefile include/ffi.h Makefile"}
3367 cat >> $CONFIG_STATUS <<\EOF
3368 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
3369 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3371 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3372 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3373 *) ac_file_in
="${ac_file}.in" ;;
3376 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3378 # Remove last slash and all that follows it. Not all systems have dirname.
3379 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3380 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
3381 # The file is in a subdirectory.
3382 test ! -d "$ac_dir" && mkdir
"$ac_dir"
3383 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
3384 # A "../" for each directory in $ac_dir_suffix.
3385 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3387 ac_dir_suffix
= ac_dots
=
3390 case "$ac_given_srcdir" in
3392 if test -z "$ac_dots"; then top_srcdir
=.
3393 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3394 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
3396 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3397 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
3400 case "$ac_given_INSTALL" in
3401 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
3402 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
3405 echo creating
"$ac_file"
3407 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3409 *Makefile
*) ac_comsub
="1i\\
3410 # $configure_input" ;;
3414 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3416 s%@configure_input@%$configure_input%g
3417 s%@srcdir@%$srcdir%g
3418 s%@top_srcdir@%$top_srcdir%g
3419 s%@INSTALL@%$INSTALL%g
3420 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
3424 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3425 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3427 # ac_d sets the value in "#define NAME VALUE" lines.
3428 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3429 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
3432 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3433 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3434 ac_uB
='\([ ]\)%\1#\2define\3'
3437 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3438 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3439 ac_eB
='$%\1#\2define\3'
3443 if test "${CONFIG_HEADERS+set}" != set; then
3445 cat >> $CONFIG_STATUS <<EOF
3446 CONFIG_HEADERS="fficonfig.h"
3448 cat >> $CONFIG_STATUS <<\EOF
3450 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
3451 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3453 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
3454 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
3455 *) ac_file_in
="${ac_file}.in" ;;
3458 echo creating
$ac_file
3460 rm -f conftest.frag conftest.
in conftest.out
3461 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3462 cat $ac_file_inputs > conftest.
in
3466 # Transform confdefs.h into a sed script conftest.vals that substitutes
3467 # the proper values into config.h.in to produce config.h. And first:
3468 # Protect against being on the right side of a sed subst in config.status.
3469 # Protect against being in an unquoted here document in config.status.
3471 cat > conftest.hdr
<<\EOF
3474 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3478 sed -n -f conftest.hdr confdefs.h > conftest.vals
3481 # This sed command replaces #undef with comments. This is necessary, for
3482 # example, in the case of _POSIX_SOURCE, which is predefined and required
3483 # on some systems where configure will not decide to define it.
3484 cat >> conftest.vals <<\EOF
3485 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3488 # Break up conftest.vals because some shells have a limit on
3489 # the size of here documents, and old seds have small limits too.
3494 ac_lines=`grep -c . conftest.vals
`
3495 # grep -c gives empty output for an empty file on some AIX systems.
3496 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3497 # Write a limited-size here document to conftest.frag.
3498 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3499 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3501 sed -f conftest.frag conftest.in > conftest.out
3503 mv conftest.out conftest.in
3505 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3507 mv conftest.tail conftest.vals
3511 cat >> $CONFIG_STATUS <<\EOF
3512 rm -f conftest.frag conftest.h
3513 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3514 cat conftest.in >> conftest.h
3516 if cmp -s $ac_file conftest.h 2>/dev/null; then
3517 echo "$ac_file is unchanged"
3520 # Remove last slash and all that follows it. Not all systems have dirname.
3521 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
3522 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3523 # The file is in a subdirectory.
3524 test ! -d "$ac_dir" && mkdir "$ac_dir"
3527 mv conftest.h $ac_file
3532 cat >> $CONFIG_STATUS <<EOF
3537 with_multisubdir=${with_multisubdir}
3538 ac_configure_args="${multilib_arg} ${ac_configure_args}"
3539 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
3540 libffi_basedir=${libffi_basedir}
3543 test ! -d include && mkdir include
3544 test ! -f include/fficonfig.h && cp fficonfig.h include/fficonfig.h
3545 if cmp -s fficonfig.h include/fficonfig.h 2>/dev/null; then
3546 echo fficonfig.h unchanged
3548 echo Moving fficonfig.h to include/fficonfig.h
3549 cp fficonfig.h include/fficonfig.h
3553 cat >> $CONFIG_STATUS <<\EOF
3554 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3556 if test -n "$CONFIG_FILES"; then
3557 ac_file=Makefile . ${libffi_basedir}/../config-ml.in
3562 chmod +x $CONFIG_STATUS
3563 rm -fr confdefs* $ac_clean_files
3564 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1