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-maintainer-mode enable make rules and dependencies not useful
16 (and sometimes confusing) to the casual installer"
18 --with-target-subdir=SUBDIR Configuring in a subdirectory"
20 --with-cross-host=HOST Configuring with a cross compiler"
22 --enable-multilib build many library versions (default)"
24 --with-system-zlib Use installed libz"
26 --enable-shared[=PKGS] build shared libraries [default=yes]"
28 --enable-static[=PKGS] build static libraries [default=yes]"
30 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
32 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
34 --disable-libtool-lock force libtool not to do file locking"
36 # Initialize some variables set by options.
37 # The variables have the same names as the options, with
38 # dashes changed to underlines.
40 cache_file
=.
/config.cache
49 program_transform_name
=s
,x
,x
,
57 bindir
='${exec_prefix}/bin'
58 sbindir
='${exec_prefix}/sbin'
59 libexecdir
='${exec_prefix}/libexec'
60 datadir
='${prefix}/share'
61 sysconfdir
='${prefix}/etc'
62 sharedstatedir
='${prefix}/com'
63 localstatedir
='${prefix}/var'
64 libdir
='${exec_prefix}/lib'
65 includedir
='${prefix}/include'
66 oldincludedir
='/usr/include'
67 infodir
='${prefix}/info'
68 mandir
='${prefix}/man'
70 # Initialize some other variables.
73 SHELL
=${CONFIG_SHELL-/bin/sh}
74 # Maximum number of lines to put in a shell here document.
81 # If the previous option needs an argument, assign it.
82 if test -n "$ac_prev"; then
83 eval "$ac_prev=\$ac_option"
89 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
93 # Accept the important Cygnus configure options, so we can diagnose typos.
97 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
99 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
100 bindir
="$ac_optarg" ;;
102 -build |
--build |
--buil |
--bui |
--bu)
104 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
105 build
="$ac_optarg" ;;
107 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
108 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
109 ac_prev
=cache_file
;;
110 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
111 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
112 cache_file
="$ac_optarg" ;;
114 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
116 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
118 datadir
="$ac_optarg" ;;
120 -disable-* |
--disable-*)
121 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
122 # Reject names that are not valid shell variable names.
123 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
124 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
127 eval "enable_${ac_feature}=no" ;;
129 -enable-* |
--enable-*)
130 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
131 # Reject names that are not valid shell variable names.
132 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
133 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
140 eval "enable_${ac_feature}='$ac_optarg'" ;;
142 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
143 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
144 |
--exec |
--exe |
--ex)
145 ac_prev
=exec_prefix
;;
146 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
147 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
148 |
--exec=* |
--exe=* |
--ex=*)
149 exec_prefix
="$ac_optarg" ;;
151 -gas |
--gas |
--ga |
--g)
152 # Obsolete; use --with-gas.
155 -help |
--help |
--hel |
--he)
156 # Omit some internal or obsolete options to make the list less imposing.
157 # This message is too long to be a string in the A/UX 3.1 sh.
159 Usage: configure [options] [host]
160 Options: [defaults in brackets after descriptions]
162 --cache-file=FILE cache test results in FILE
163 --help print this message
164 --no-create do not create output files
165 --quiet, --silent do not print \`checking...' messages
166 --version print the version of autoconf that created configure
167 Directory and file names:
168 --prefix=PREFIX install architecture-independent files in PREFIX
170 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
172 --bindir=DIR user executables in DIR [EPREFIX/bin]
173 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
174 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
175 --datadir=DIR read-only architecture-independent data in DIR
177 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
178 --sharedstatedir=DIR modifiable architecture-independent data in DIR
180 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
181 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
182 --includedir=DIR C header files in DIR [PREFIX/include]
183 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
184 --infodir=DIR info documentation in DIR [PREFIX/info]
185 --mandir=DIR man documentation in DIR [PREFIX/man]
186 --srcdir=DIR find the sources in DIR [configure dir or ..]
187 --program-prefix=PREFIX prepend PREFIX to installed program names
188 --program-suffix=SUFFIX append SUFFIX to installed program names
189 --program-transform-name=PROGRAM
190 run sed PROGRAM on installed program names
194 --build=BUILD configure for building on BUILD [BUILD=HOST]
195 --host=HOST configure for HOST [guessed]
196 --target=TARGET configure for TARGET [TARGET=HOST]
197 Features and packages:
198 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
199 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
200 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
201 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
202 --x-includes=DIR X include files are in DIR
203 --x-libraries=DIR X library files are in DIR
205 if test -n "$ac_help"; then
206 echo "--enable and --with options recognized:$ac_help"
210 -host |
--host |
--hos |
--ho)
212 -host=* |
--host=* |
--hos=* |
--ho=*)
215 -includedir |
--includedir |
--includedi |
--included |
--include \
216 |
--includ |
--inclu |
--incl |
--inc)
217 ac_prev
=includedir
;;
218 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
219 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
220 includedir
="$ac_optarg" ;;
222 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
224 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
225 infodir
="$ac_optarg" ;;
227 -libdir |
--libdir |
--libdi |
--libd)
229 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
230 libdir
="$ac_optarg" ;;
232 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
233 |
--libexe |
--libex |
--libe)
234 ac_prev
=libexecdir
;;
235 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
236 |
--libexe=* |
--libex=* |
--libe=*)
237 libexecdir
="$ac_optarg" ;;
239 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
240 |
--localstate |
--localstat |
--localsta |
--localst \
241 |
--locals |
--local |
--loca |
--loc |
--lo)
242 ac_prev
=localstatedir
;;
243 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
244 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
245 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
246 localstatedir
="$ac_optarg" ;;
248 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
250 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
251 mandir
="$ac_optarg" ;;
254 # Obsolete; use --without-fp.
257 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
261 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
262 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
265 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
266 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
267 |
--oldin |
--oldi |
--old |
--ol |
--o)
268 ac_prev
=oldincludedir
;;
269 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
270 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
271 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
272 oldincludedir
="$ac_optarg" ;;
274 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
276 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
277 prefix
="$ac_optarg" ;;
279 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
280 |
--program-pre |
--program-pr |
--program-p)
281 ac_prev
=program_prefix
;;
282 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
283 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
284 program_prefix
="$ac_optarg" ;;
286 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
287 |
--program-suf |
--program-su |
--program-s)
288 ac_prev
=program_suffix
;;
289 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
290 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
291 program_suffix
="$ac_optarg" ;;
293 -program-transform-name |
--program-transform-name \
294 |
--program-transform-nam |
--program-transform-na \
295 |
--program-transform-n |
--program-transform- \
296 |
--program-transform |
--program-transfor \
297 |
--program-transfo |
--program-transf \
298 |
--program-trans |
--program-tran \
299 |
--progr-tra |
--program-tr |
--program-t)
300 ac_prev
=program_transform_name
;;
301 -program-transform-name=* |
--program-transform-name=* \
302 |
--program-transform-nam=* |
--program-transform-na=* \
303 |
--program-transform-n=* |
--program-transform-=* \
304 |
--program-transform=* |
--program-transfor=* \
305 |
--program-transfo=* |
--program-transf=* \
306 |
--program-trans=* |
--program-tran=* \
307 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
308 program_transform_name
="$ac_optarg" ;;
310 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
311 |
-silent |
--silent |
--silen |
--sile |
--sil)
314 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
316 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
318 sbindir
="$ac_optarg" ;;
320 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
321 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
322 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
324 ac_prev
=sharedstatedir
;;
325 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
326 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
327 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
329 sharedstatedir
="$ac_optarg" ;;
331 -site |
--site |
--sit)
333 -site=* |
--site=* |
--sit=*)
336 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
338 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
339 srcdir
="$ac_optarg" ;;
341 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
342 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
343 ac_prev
=sysconfdir
;;
344 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
345 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
346 sysconfdir
="$ac_optarg" ;;
348 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
350 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
351 target
="$ac_optarg" ;;
353 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
356 -version |
--version |
--versio |
--versi |
--vers)
357 echo "configure generated by autoconf version 2.13"
361 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
362 # Reject names that are not valid shell variable names.
363 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
364 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
366 ac_package
=`echo $ac_package| sed 's/-/_/g'`
371 eval "with_${ac_package}='$ac_optarg'" ;;
373 -without-* |
--without-*)
374 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
375 # Reject names that are not valid shell variable names.
376 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
377 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
379 ac_package
=`echo $ac_package| sed 's/-/_/g'`
380 eval "with_${ac_package}=no" ;;
383 # Obsolete; use --with-x.
386 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
387 |
--x-incl |
--x-inc |
--x-in |
--x-i)
388 ac_prev
=x_includes
;;
389 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
390 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
391 x_includes
="$ac_optarg" ;;
393 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
394 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
395 ac_prev
=x_libraries
;;
396 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
397 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
398 x_libraries
="$ac_optarg" ;;
400 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
404 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
405 echo "configure: warning: $ac_option: invalid host type" 1>&2
407 if test "x$nonopt" != xNONE
; then
408 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
416 if test -n "$ac_prev"; then
417 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
420 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
422 # File descriptor usage:
425 # 2 errors and warnings
426 # 3 some systems may open it to /dev/tty
427 # 4 used on the Kubota Titan
428 # 6 checking for... messages and results
429 # 5 compiler messages saved in config.log
430 if test "$silent" = yes; then
438 This file contains any messages produced by compilers while
439 running configure, to aid debugging if configure makes a mistake.
442 # Strip out --no-create and --no-recursion so they do not pile up.
443 # Also quote any args containing shell metacharacters.
448 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
449 |
--no-cr |
--no-c) ;;
450 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
451 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
452 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
453 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
454 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
459 # Only set these to C if already set. These must not be set unconditionally
460 # because not all systems understand e.g. LANG=C (notably SCO).
461 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
462 # Non-C LC_CTYPE values break the ctype check.
463 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
464 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
465 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
466 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
468 # confdefs.h avoids OS command line length limits that DEFS can exceed.
469 rm -rf conftest
* confdefs.h
470 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
473 # A filename unique to this package, relative to the directory that
474 # configure is in, which we can look for to find out if srcdir is correct.
475 ac_unique_file
=zlib.h
477 # Find the source files, if location was not specified.
478 if test -z "$srcdir"; then
479 ac_srcdir_defaulted
=yes
480 # Try the directory containing this script, then its parent.
482 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
483 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
485 if test ! -r $srcdir/$ac_unique_file; then
489 ac_srcdir_defaulted
=no
491 if test ! -r $srcdir/$ac_unique_file; then
492 if test "$ac_srcdir_defaulted" = yes; then
493 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
495 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
498 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
500 # Prefer explicitly selected file to automatically selected ones.
501 if test -z "$CONFIG_SITE"; then
502 if test "x$prefix" != xNONE
; then
503 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
505 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
508 for ac_site_file
in $CONFIG_SITE; do
509 if test -r "$ac_site_file"; then
510 echo "loading site script $ac_site_file"
515 if test -r "$cache_file"; then
516 echo "loading cache $cache_file"
519 echo "creating cache $cache_file"
524 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
525 ac_cpp
='$CPP $CPPFLAGS'
526 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
527 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
528 cross_compiling
=$ac_cv_prog_cc_cross
532 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
533 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
534 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
541 ac_n
= ac_c
='\c' ac_t
=
546 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
547 if test -f $ac_dir/install-sh
; then
549 ac_install_sh
="$ac_aux_dir/install-sh -c"
551 elif test -f $ac_dir/install.sh
; then
553 ac_install_sh
="$ac_aux_dir/install.sh -c"
557 if test -z "$ac_aux_dir"; then
558 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
560 ac_config_guess
=$ac_aux_dir/config.guess
561 ac_config_sub
=$ac_aux_dir/config.sub
562 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
565 # Do some error checking and defaulting for the host and target type.
567 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
570 # 1. You are not allowed to specify --host, --target, and nonopt at the
572 # 2. Host defaults to nonopt.
573 # 3. If nonopt is not specified, then host defaults to the current host,
574 # as determined by config.guess.
575 # 4. Target and build default to nonopt.
576 # 5. If nonopt is not specified, then target and build default to host.
578 # The aliases save the names the user supplied, while $host etc.
579 # will get canonicalized.
580 case $host---$target---$nonopt in
581 NONE---
*---* |
*---NONE---* |
*---*---NONE) ;;
582 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
586 # Make sure we can run config.sub.
587 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
588 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
591 echo $ac_n "checking host system type""... $ac_c" 1>&6
592 echo "configure:593: checking host system type" >&5
595 case "$host_alias" in
599 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
600 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
602 *) host_alias
=$nonopt ;;
606 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
607 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
608 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
609 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
610 echo "$ac_t""$host" 1>&6
612 echo $ac_n "checking target system type""... $ac_c" 1>&6
613 echo "configure:614: checking target system type" >&5
616 case "$target_alias" in
619 NONE
) target_alias
=$host_alias ;;
620 *) target_alias
=$nonopt ;;
624 target
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
625 target_cpu
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
626 target_vendor
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
627 target_os
=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
628 echo "$ac_t""$target" 1>&6
630 echo $ac_n "checking build system type""... $ac_c" 1>&6
631 echo "configure:632: checking build system type" >&5
634 case "$build_alias" in
637 NONE
) build_alias
=$host_alias ;;
638 *) build_alias
=$nonopt ;;
642 build
=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
643 build_cpu
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
644 build_vendor
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
645 build_os
=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
646 echo "$ac_t""$build" 1>&6
648 test "$host_alias" != "$target_alias" &&
649 test "$program_prefix$program_suffix$program_transform_name" = \
651 program_prefix
=${target_alias}-
653 # Find a good install program. We prefer a C program (faster),
654 # so one script is as good as another. But avoid the broken or
655 # incompatible versions:
656 # SysV /etc/install, /usr/sbin/install
657 # SunOS /usr/etc/install
660 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
661 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
662 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
663 # ./install, which can be erroneously created by make from ./install.sh.
664 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
665 echo "configure:666: checking for a BSD compatible install" >&5
666 if test -z "$INSTALL"; then
667 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
668 echo $ac_n "(cached) $ac_c" 1>&6
670 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
671 for ac_dir
in $PATH; do
672 # Account for people who put trailing slashes in PATH elements.
674 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
676 # OSF1 and SCO ODT 3.0 have their own names for install.
677 # Don't use installbsd from OSF since it installs stuff as root
679 for ac_prog
in ginstall scoinst
install; do
680 if test -f $ac_dir/$ac_prog; then
681 if test $ac_prog = install &&
682 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
683 # AIX install. It has an incompatible calling convention.
686 ac_cv_path_install
="$ac_dir/$ac_prog -c"
697 if test "${ac_cv_path_install+set}" = set; then
698 INSTALL
="$ac_cv_path_install"
700 # As a last resort, use the slow shell script. We don't cache a
701 # path for INSTALL within a source directory, because that will
702 # break other packages using the cache if that directory is
703 # removed, or if the path is relative.
704 INSTALL
="$ac_install_sh"
707 echo "$ac_t""$INSTALL" 1>&6
709 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
710 # It thinks the first close brace ends the variable substitution.
711 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
713 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
715 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
717 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
718 echo "configure:719: checking whether build environment is sane" >&5
721 echo timestamp
> conftestfile
722 # Do `set' in a subshell so we don't clobber the current shell's
723 # arguments. Must try -L first in case configure is actually a
724 # symlink; some systems play weird games with the mod time of symlinks
725 # (eg FreeBSD returns the mod time of the symlink's containing
728 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
729 if test "$*" = "X"; then
731 set X
`ls -t $srcdir/configure conftestfile`
733 if test "$*" != "X $srcdir/configure conftestfile" \
734 && test "$*" != "X conftestfile $srcdir/configure"; then
736 # If neither matched, then we have a broken ls. This can happen
737 # if, for instance, CONFIG_SHELL is bash and it inherits a
738 # broken ls alias from the environment. This has actually
739 # happened. Such a system could not be considered "sane".
740 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
741 alias in your environment" 1>&2; exit 1; }
744 test "$2" = conftestfile
750 { echo "configure: error: newly created file is older than distributed files!
751 Check your system clock" 1>&2; exit 1; }
754 echo "$ac_t""yes" 1>&6
755 if test "$program_transform_name" = s
,x
,x
,; then
756 program_transform_name
=
758 # Double any \ or $. echo might interpret backslashes.
759 cat <<\EOF_SED
> conftestsed
760 s
,\\,\\\\,g
; s
,\$
,$$
,g
762 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
765 test "$program_prefix" != NONE
&&
766 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
767 # Use a double $ so make ignores it.
768 test "$program_suffix" != NONE
&&
769 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
771 # sed with no file args requires a program.
772 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
774 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
775 echo "configure:776: checking whether ${MAKE-make} sets \${MAKE}" >&5
776 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
777 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
778 echo $ac_n "(cached) $ac_c" 1>&6
780 cat > conftestmake
<<\EOF
782 @
echo 'ac_maketemp="${MAKE}"'
784 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
785 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
786 if test -n "$ac_maketemp"; then
787 eval ac_cv_prog_make_
${ac_make}_set
=yes
789 eval ac_cv_prog_make_
${ac_make}_set
=no
793 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
794 echo "$ac_t""yes" 1>&6
797 echo "$ac_t""no" 1>&6
798 SET_MAKE
="MAKE=${MAKE-make}"
806 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
807 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
809 cat >> confdefs.h
<<EOF
810 #define PACKAGE "$PACKAGE"
813 cat >> confdefs.h
<<EOF
814 #define VERSION "$VERSION"
819 missing_dir
=`cd $ac_aux_dir && pwd`
820 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
821 echo "configure:822: checking for working aclocal" >&5
822 # Run test in a subshell; some versions of sh will print an error if
823 # an executable is not found, even if stderr is redirected.
824 # Redirect stdin to placate older versions of autoconf. Sigh.
825 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
827 echo "$ac_t""found" 1>&6
829 ACLOCAL
="$missing_dir/missing aclocal"
830 echo "$ac_t""missing" 1>&6
833 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
834 echo "configure:835: checking for working autoconf" >&5
835 # Run test in a subshell; some versions of sh will print an error if
836 # an executable is not found, even if stderr is redirected.
837 # Redirect stdin to placate older versions of autoconf. Sigh.
838 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
840 echo "$ac_t""found" 1>&6
842 AUTOCONF
="$missing_dir/missing autoconf"
843 echo "$ac_t""missing" 1>&6
846 echo $ac_n "checking for working automake""... $ac_c" 1>&6
847 echo "configure:848: checking for working automake" >&5
848 # Run test in a subshell; some versions of sh will print an error if
849 # an executable is not found, even if stderr is redirected.
850 # Redirect stdin to placate older versions of autoconf. Sigh.
851 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
853 echo "$ac_t""found" 1>&6
855 AUTOMAKE
="$missing_dir/missing automake"
856 echo "$ac_t""missing" 1>&6
859 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
860 echo "configure:861: checking for working autoheader" >&5
861 # Run test in a subshell; some versions of sh will print an error if
862 # an executable is not found, even if stderr is redirected.
863 # Redirect stdin to placate older versions of autoconf. Sigh.
864 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
865 AUTOHEADER
=autoheader
866 echo "$ac_t""found" 1>&6
868 AUTOHEADER
="$missing_dir/missing autoheader"
869 echo "$ac_t""missing" 1>&6
872 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
873 echo "configure:874: checking for working makeinfo" >&5
874 # Run test in a subshell; some versions of sh will print an error if
875 # an executable is not found, even if stderr is redirected.
876 # Redirect stdin to placate older versions of autoconf. Sigh.
877 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
879 echo "$ac_t""found" 1>&6
881 MAKEINFO
="$missing_dir/missing makeinfo"
882 echo "$ac_t""missing" 1>&6
887 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
888 echo "configure:889: checking whether to enable maintainer-specific portions of Makefiles" >&5
889 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
890 if test "${enable_maintainer_mode+set}" = set; then
891 enableval
="$enable_maintainer_mode"
892 USE_MAINTAINER_MODE
=$enableval
894 USE_MAINTAINER_MODE
=no
897 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
900 if test $USE_MAINTAINER_MODE = yes; then
901 MAINTAINER_MODE_TRUE
=
902 MAINTAINER_MODE_FALSE
='#'
904 MAINTAINER_MODE_TRUE
='#'
905 MAINTAINER_MODE_FALSE
=
907 MAINT
=$MAINTAINER_MODE_TRUE
910 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
911 echo "configure:912: checking for Cygwin environment" >&5
912 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
913 echo $ac_n "(cached) $ac_c" 1>&6
915 cat > conftest.
$ac_ext <<EOF
916 #line 917 "configure"
917 #include "confdefs.h"
922 #define __CYGWIN__ __CYGWIN32__
927 if { (eval echo configure
:928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
931 echo "configure: failed program was:" >&5
932 cat conftest.
$ac_ext >&5
940 echo "$ac_t""$ac_cv_cygwin" 1>&6
942 test "$ac_cv_cygwin" = yes && CYGWIN
=yes
943 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
944 echo "configure:945: checking for mingw32 environment" >&5
945 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
946 echo $ac_n "(cached) $ac_c" 1>&6
948 cat > conftest.
$ac_ext <<EOF
949 #line 950 "configure"
950 #include "confdefs.h"
956 if { (eval echo configure
:957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
960 echo "configure: failed program was:" >&5
961 cat conftest.
$ac_ext >&5
969 echo "$ac_t""$ac_cv_mingw32" 1>&6
971 test "$ac_cv_mingw32" = yes && MINGW32
=yes
974 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
975 echo "configure:976: checking for executable suffix" >&5
976 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
977 echo $ac_n "(cached) $ac_c" 1>&6
979 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
983 echo 'int main () { return 0; }' > conftest.
$ac_ext
985 if { (eval echo configure
:986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
986 for file in conftest.
*; do
988 *.c |
*.o |
*.obj |
*.ilk |
*.pdb
) ;;
989 *) ac_cv_exeext
=`echo $file | sed -e s/conftest//` ;;
993 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
996 test x
"${ac_cv_exeext}" = x
&& ac_cv_exeext
=no
1001 test x
"${ac_cv_exeext}" != xno
&& EXEEXT
=${ac_cv_exeext}
1002 echo "$ac_t""${ac_cv_exeext}" 1>&6
1007 for ac_dir
in ..
$srcdir/..
; do
1008 if test -f $ac_dir/install-sh
; then
1010 ac_install_sh
="$ac_aux_dir/install-sh -c"
1012 elif test -f $ac_dir/install.sh
; then
1014 ac_install_sh
="$ac_aux_dir/install.sh -c"
1018 if test -z "$ac_aux_dir"; then
1019 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
1021 ac_config_guess
=$ac_aux_dir/config.guess
1022 ac_config_sub
=$ac_aux_dir/config.sub
1023 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1026 # Check whether --with-target-subdir or --without-target-subdir was given.
1027 if test "${with_target_subdir+set}" = set; then
1028 withval
="$with_target_subdir"
1032 # Check whether --with-cross-host or --without-cross-host was given.
1033 if test "${with_cross_host+set}" = set; then
1034 withval
="$with_cross_host"
1039 # Check whether --enable-multilib or --disable-multilib was given.
1040 if test "${enable_multilib+set}" = set; then
1041 enableval
="$enable_multilib"
1042 case "${enableval}" in
1043 yes) multilib
=yes ;;
1045 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
1052 if test "${srcdir}" = "."; then
1053 if test "${with_target_subdir}" != "."; then
1054 zlib_basedir
="${srcdir}/${with_multisrctop}../"
1056 zlib_basedir
="${srcdir}/${with_multisrctop}"
1059 zlib_basedir
="${srcdir}/"
1063 # Check whether --with-system-zlib or --without-system-zlib was given.
1064 if test "${with_system_zlib+set}" = set; then
1065 withval
="$with_system_zlib"
1070 # Extract the first word of "gcc", so it can be a program name with args.
1071 set dummy gcc
; ac_word
=$2
1072 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1073 echo "configure:1074: checking for $ac_word" >&5
1074 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1075 echo $ac_n "(cached) $ac_c" 1>&6
1077 if test -n "$CC"; then
1078 ac_cv_prog_CC
="$CC" # Let the user override the test.
1080 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1082 for ac_dir
in $ac_dummy; do
1083 test -z "$ac_dir" && ac_dir
=.
1084 if test -f $ac_dir/$ac_word; then
1093 if test -n "$CC"; then
1094 echo "$ac_t""$CC" 1>&6
1096 echo "$ac_t""no" 1>&6
1099 if test -z "$CC"; then
1100 # Extract the first word of "cc", so it can be a program name with args.
1101 set dummy cc
; ac_word
=$2
1102 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1103 echo "configure:1104: checking for $ac_word" >&5
1104 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1105 echo $ac_n "(cached) $ac_c" 1>&6
1107 if test -n "$CC"; then
1108 ac_cv_prog_CC
="$CC" # Let the user override the test.
1110 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1113 for ac_dir
in $ac_dummy; do
1114 test -z "$ac_dir" && ac_dir
=.
1115 if test -f $ac_dir/$ac_word; then
1116 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1117 ac_prog_rejected
=yes
1125 if test $ac_prog_rejected = yes; then
1126 # We found a bogon in the path, so make sure we never use it.
1127 set dummy
$ac_cv_prog_CC
1129 if test $# -gt 0; then
1130 # We chose a different compiler from the bogus one.
1131 # However, it has the same basename, so the bogon will be chosen
1132 # first if we set CC to just the basename; use the full file name.
1134 set dummy
"$ac_dir/$ac_word" "$@"
1142 if test -n "$CC"; then
1143 echo "$ac_t""$CC" 1>&6
1145 echo "$ac_t""no" 1>&6
1148 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1151 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1152 echo "configure:1153: checking whether we are using GNU C" >&5
1153 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1154 echo $ac_n "(cached) $ac_c" 1>&6
1156 cat > conftest.c
<<EOF
1161 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1162: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1168 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1170 if test $ac_cv_prog_gcc = yes; then
1172 ac_test_CFLAGS
="${CFLAGS+set}"
1173 ac_save_CFLAGS
="$CFLAGS"
1175 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1176 echo "configure:1177: checking whether ${CC-cc} accepts -g" >&5
1177 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1178 echo $ac_n "(cached) $ac_c" 1>&6
1180 echo 'void f(){}' > conftest.c
1181 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1190 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1191 if test "$ac_test_CFLAGS" = set; then
1192 CFLAGS
="$ac_save_CFLAGS"
1193 elif test $ac_cv_prog_cc_g = yes; then
1200 test "${CFLAGS+set}" = set || CFLAGS
="-g"
1203 # Check whether --enable-shared or --disable-shared was given.
1204 if test "${enable_shared+set}" = set; then
1205 enableval
="$enable_shared"
1206 p
=${PACKAGE-default}
1207 case "$enableval" in
1208 yes) enable_shared
=yes ;;
1209 no
) enable_shared
=no
;;
1212 # Look at the argument we got. We use all the common list separators.
1213 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1214 for pkg
in $enableval; do
1215 if test "X$pkg" = "X$p"; then
1226 # Check whether --enable-static or --disable-static was given.
1227 if test "${enable_static+set}" = set; then
1228 enableval
="$enable_static"
1229 p
=${PACKAGE-default}
1230 case "$enableval" in
1231 yes) enable_static
=yes ;;
1232 no
) enable_static
=no
;;
1235 # Look at the argument we got. We use all the common list separators.
1236 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1237 for pkg
in $enableval; do
1238 if test "X$pkg" = "X$p"; then
1249 # Check whether --enable-fast-install or --disable-fast-install was given.
1250 if test "${enable_fast_install+set}" = set; then
1251 enableval
="$enable_fast_install"
1252 p
=${PACKAGE-default}
1253 case "$enableval" in
1254 yes) enable_fast_install
=yes ;;
1255 no
) enable_fast_install
=no
;;
1257 enable_fast_install
=no
1258 # Look at the argument we got. We use all the common list separators.
1259 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:,"
1260 for pkg
in $enableval; do
1261 if test "X$pkg" = "X$p"; then
1262 enable_fast_install
=yes
1269 enable_fast_install
=yes
1272 # Extract the first word of "ranlib", so it can be a program name with args.
1273 set dummy ranlib
; ac_word
=$2
1274 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1275 echo "configure:1276: checking for $ac_word" >&5
1276 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1277 echo $ac_n "(cached) $ac_c" 1>&6
1279 if test -n "$RANLIB"; then
1280 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1282 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1284 for ac_dir
in $ac_dummy; do
1285 test -z "$ac_dir" && ac_dir
=.
1286 if test -f $ac_dir/$ac_word; then
1287 ac_cv_prog_RANLIB
="ranlib"
1292 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1295 RANLIB
="$ac_cv_prog_RANLIB"
1296 if test -n "$RANLIB"; then
1297 echo "$ac_t""$RANLIB" 1>&6
1299 echo "$ac_t""no" 1>&6
1302 # Extract the first word of "gcc", so it can be a program name with args.
1303 set dummy gcc
; ac_word
=$2
1304 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1305 echo "configure:1306: checking for $ac_word" >&5
1306 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1307 echo $ac_n "(cached) $ac_c" 1>&6
1309 if test -n "$CC"; then
1310 ac_cv_prog_CC
="$CC" # Let the user override the test.
1312 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1314 for ac_dir
in $ac_dummy; do
1315 test -z "$ac_dir" && ac_dir
=.
1316 if test -f $ac_dir/$ac_word; then
1325 if test -n "$CC"; then
1326 echo "$ac_t""$CC" 1>&6
1328 echo "$ac_t""no" 1>&6
1331 if test -z "$CC"; then
1332 # Extract the first word of "cc", so it can be a program name with args.
1333 set dummy cc
; ac_word
=$2
1334 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1335 echo "configure:1336: checking for $ac_word" >&5
1336 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1337 echo $ac_n "(cached) $ac_c" 1>&6
1339 if test -n "$CC"; then
1340 ac_cv_prog_CC
="$CC" # Let the user override the test.
1342 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1345 for ac_dir
in $ac_dummy; do
1346 test -z "$ac_dir" && ac_dir
=.
1347 if test -f $ac_dir/$ac_word; then
1348 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1349 ac_prog_rejected
=yes
1357 if test $ac_prog_rejected = yes; then
1358 # We found a bogon in the path, so make sure we never use it.
1359 set dummy
$ac_cv_prog_CC
1361 if test $# -gt 0; then
1362 # We chose a different compiler from the bogus one.
1363 # However, it has the same basename, so the bogon will be chosen
1364 # first if we set CC to just the basename; use the full file name.
1366 set dummy
"$ac_dir/$ac_word" "$@"
1374 if test -n "$CC"; then
1375 echo "$ac_t""$CC" 1>&6
1377 echo "$ac_t""no" 1>&6
1380 if test -z "$CC"; then
1381 case "`uname -s`" in
1383 # Extract the first word of "cl", so it can be a program name with args.
1384 set dummy cl
; ac_word
=$2
1385 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1386 echo "configure:1387: checking for $ac_word" >&5
1387 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1388 echo $ac_n "(cached) $ac_c" 1>&6
1390 if test -n "$CC"; then
1391 ac_cv_prog_CC
="$CC" # Let the user override the test.
1393 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1395 for ac_dir
in $ac_dummy; do
1396 test -z "$ac_dir" && ac_dir
=.
1397 if test -f $ac_dir/$ac_word; then
1406 if test -n "$CC"; then
1407 echo "$ac_t""$CC" 1>&6
1409 echo "$ac_t""no" 1>&6
1414 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1417 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1418 echo "configure:1419: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1421 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1422 ac_cpp
='$CPP $CPPFLAGS'
1423 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1424 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1425 cross_compiling
=$ac_cv_prog_cc_cross
1427 cat > conftest.
$ac_ext << EOF
1429 #line 1430 "configure"
1430 #include "confdefs.h"
1434 if { (eval echo configure
:1435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1435 ac_cv_prog_cc_works
=yes
1436 # If we can't run a trivial program, we are probably using a cross compiler.
1437 if (.
/conftest
; exit) 2>/dev
/null
; then
1438 ac_cv_prog_cc_cross
=no
1440 ac_cv_prog_cc_cross
=yes
1443 echo "configure: failed program was:" >&5
1444 cat conftest.
$ac_ext >&5
1445 ac_cv_prog_cc_works
=no
1449 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1450 ac_cpp
='$CPP $CPPFLAGS'
1451 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1452 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1453 cross_compiling
=$ac_cv_prog_cc_cross
1455 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1456 if test $ac_cv_prog_cc_works = no
; then
1457 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1459 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1460 echo "configure:1461: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1461 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1462 cross_compiling
=$ac_cv_prog_cc_cross
1464 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1465 echo "configure:1466: checking whether we are using GNU C" >&5
1466 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1467 echo $ac_n "(cached) $ac_c" 1>&6
1469 cat > conftest.c
<<EOF
1474 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1475: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1481 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1483 if test $ac_cv_prog_gcc = yes; then
1489 ac_test_CFLAGS
="${CFLAGS+set}"
1490 ac_save_CFLAGS
="$CFLAGS"
1492 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1493 echo "configure:1494: checking whether ${CC-cc} accepts -g" >&5
1494 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1495 echo $ac_n "(cached) $ac_c" 1>&6
1497 echo 'void f(){}' > conftest.c
1498 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1507 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1508 if test "$ac_test_CFLAGS" = set; then
1509 CFLAGS
="$ac_save_CFLAGS"
1510 elif test $ac_cv_prog_cc_g = yes; then
1511 if test "$GCC" = yes; then
1517 if test "$GCC" = yes; then
1524 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1525 if test "${with_gnu_ld+set}" = set; then
1526 withval
="$with_gnu_ld"
1527 test "$withval" = no || with_gnu_ld
=yes
1533 if test "$ac_cv_prog_gcc" = yes; then
1534 # Check if gcc -print-prog-name=ld gives a path.
1535 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1536 echo "configure:1537: checking for ld used by GCC" >&5
1537 ac_prog
=`($CC -print-prog-name=ld) 2>&5`
1539 # Accept absolute paths.
1540 /* |
[A-Za-z
]:[\\/]*)
1541 re_direlt
='/[^/][^/]*/\.\./'
1542 # Canonicalize the path of ld
1543 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
1544 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
1545 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
1547 test -z "$LD" && LD
="$ac_prog"
1550 # If it fails, then pretend we aren't using GCC.
1554 # If it is relative, then search for the first ld in PATH.
1558 elif test "$with_gnu_ld" = yes; then
1559 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1560 echo "configure:1561: checking for GNU ld" >&5
1562 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1563 echo "configure:1564: checking for non-GNU ld" >&5
1565 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1566 echo $ac_n "(cached) $ac_c" 1>&6
1568 if test -z "$LD"; then
1569 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1570 for ac_dir
in $PATH; do
1571 test -z "$ac_dir" && ac_dir
=.
1572 if test -f "$ac_dir/$ac_prog"; then
1573 ac_cv_path_LD
="$ac_dir/$ac_prog"
1574 # Check to see if the program is GNU ld. I'd rather use --version,
1575 # but apparently some GNU ld's only accept -v.
1576 # Break only if it was the GNU/non-GNU ld that we prefer.
1577 if "$ac_cv_path_LD" -v 2>&1 < /dev
/null |
egrep '(GNU|with BFD)' > /dev
/null
; then
1578 test "$with_gnu_ld" != no
&& break
1580 test "$with_gnu_ld" != yes && break
1586 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
1591 if test -n "$LD"; then
1592 echo "$ac_t""$LD" 1>&6
1594 echo "$ac_t""no" 1>&6
1596 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1598 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1599 echo "configure:1600: checking if the linker ($LD) is GNU ld" >&5
1600 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1601 echo $ac_n "(cached) $ac_c" 1>&6
1603 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1604 if $LD -v 2>&1 </dev
/null |
egrep '(GNU|with BFD)' 1>&5; then
1605 ac_cv_prog_gnu_ld
=yes
1607 ac_cv_prog_gnu_ld
=no
1611 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1614 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1615 echo "configure:1616: checking for BSD-compatible nm" >&5
1616 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1617 echo $ac_n "(cached) $ac_c" 1>&6
1619 if test -n "$NM"; then
1620 # Let the user override the test.
1623 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
1624 for ac_dir
in $PATH /usr
/ccs
/bin
/usr
/ucb
/bin
; do
1625 test -z "$ac_dir" && ac_dir
=.
1626 if test -f $ac_dir/nm
; then
1627 # Check to see if the nm accepts a BSD-compat flag.
1628 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1629 # nm: unknown option "B" ignored
1630 if ($ac_dir/nm
-B /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1631 ac_cv_path_NM
="$ac_dir/nm -B"
1633 elif ($ac_dir/nm
-p /dev
/null
2>&1 |
sed '1q'; exit 0) |
egrep /dev
/null
>/dev
/null
; then
1634 ac_cv_path_NM
="$ac_dir/nm -p"
1637 ac_cv_path_NM
=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1638 continue # so that we can try to find one that supports BSD flags
1643 test -z "$ac_cv_path_NM" && ac_cv_path_NM
=nm
1648 echo "$ac_t""$NM" 1>&6
1651 # Check for command to grab the raw symbol name followed by C symbol from nm.
1652 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
1653 echo "configure:1654: checking command to parse $NM output" >&5
1654 if eval "test \"`echo '$''{'ac_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
1655 echo $ac_n "(cached) $ac_c" 1>&6
1657 # These are sane defaults that work on at least a few old systems.
1658 # {They come from Ultrix. What could be older than Ultrix?!! ;)}
1660 # Character class describing NM global symbol codes.
1661 ac_symcode
='[BCDEGRST]'
1663 # Regexp to match symbols that can be accessed directly from C.
1664 ac_sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
1666 # Transform the above into a raw symbol and a C symbol.
1667 ac_symxfrm
='\1 \2\3 \3'
1669 # Transform an extracted symbol line into a proper C declaration
1670 ac_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
1672 # Define system-specific variables.
1678 ac_symcode
='[ABCDGISTW]'
1681 ac_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
1684 ac_symcode
='[BCDEGRST]'
1691 # If we're using GNU nm, then use its standard symbol codes.
1692 if $NM -V 2>&1 |
egrep '(GNU|with BFD)' > /dev
/null
; then
1693 ac_symcode
='[ABCDGISTW]'
1696 # Try without a prefix undercore, then with it.
1697 for ac_symprfx
in "" "_"; do
1699 ac_cv_sys_global_symbol_pipe
="sed -n -e 's/^.* \($ac_symcode\) *\($ac_symprfx\)$ac_sympat$/$ac_symxfrm/p'"
1701 # Check to see that the pipe works correctly.
1703 rm -f conftest.
$ac_ext
1704 cat > conftest.
$ac_ext <<EOF
1709 void nm_test_func(){}
1713 int main(){nm_test_var='a';nm_test_func;return 0;}
1716 if { (eval echo configure
:1717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1717 # Now try to grab the symbols.
1718 ac_nlist
=conftest.nm
1720 if { (eval echo configure
:1721: \"$NM conftest.
$ac_objext \|
$ac_cv_sys_global_symbol_pipe \
> $ac_nlist\") 1>&5; (eval $NM conftest.
$ac_objext \|
$ac_cv_sys_global_symbol_pipe \
> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
1722 # Try sorting and uniquifying the output.
1723 if sort "$ac_nlist" |
uniq > "$ac_nlist"T
; then
1724 mv -f "$ac_nlist"T
"$ac_nlist"
1729 # Make sure that we snagged all the symbols we need.
1730 if egrep ' nm_test_var$' "$ac_nlist" >/dev
/null
; then
1731 if egrep ' nm_test_func$' "$ac_nlist" >/dev
/null
; then
1732 cat <<EOF > conftest.c
1738 # Now generate the symbol file.
1739 eval "$ac_global_symbol_to_cdecl"' < "$ac_nlist" >> conftest.c'
1741 cat <<EOF >> conftest.c
1742 #if defined (__STDC__) && __STDC__
1743 # define lt_ptr_t void *
1745 # define lt_ptr_t char *
1749 /* The mapping between symbol names and symbols. */
1754 lt_preloaded_symbols[] =
1757 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c
1758 cat <<\EOF
>> conftest.c
1766 # Now try linking the two files.
1767 mv conftest.
$ac_objext conftestm.
$ac_objext
1768 ac_save_LIBS
="$LIBS"
1769 ac_save_CFLAGS
="$CFLAGS"
1770 LIBS
="conftestm.$ac_objext"
1771 CFLAGS
="$CFLAGS$no_builtin_flag"
1772 if { (eval echo configure
:1773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
; then
1775 echo "configure: failed program was:" >&5
1778 LIBS
="$ac_save_LIBS"
1779 CFLAGS
="$ac_save_CFLAGS"
1781 echo "cannot find nm_test_func in $ac_nlist" >&5
1784 echo "cannot find nm_test_var in $ac_nlist" >&5
1787 echo "cannot run $ac_cv_sys_global_symbol_pipe" >&5
1790 echo "$progname: failed program was:" >&5
1795 # Do not use the global_symbol_pipe unless it works.
1796 if test "$ac_pipe_works" = yes; then
1797 if test x
"$ac_symprfx" = x
"_"; then
1798 ac_cv_sys_symbol_underscore
=yes
1800 ac_cv_sys_symbol_underscore
=no
1804 ac_cv_sys_global_symbol_pipe
=
1812 if test -z "$ac_cv_sys_global_symbol_pipe"; then
1815 echo "$ac_t""$ac_result" 1>&6
1817 echo $ac_n "checking for _ prefix in compiled symbols""... $ac_c" 1>&6
1818 echo "configure:1819: checking for _ prefix in compiled symbols" >&5
1819 if eval "test \"`echo '$''{'ac_cv_sys_symbol_underscore'+set}'`\" = set"; then
1820 echo $ac_n "(cached) $ac_c" 1>&6
1822 ac_cv_sys_symbol_underscore
=no
1823 cat > conftest.
$ac_ext <<EOF
1824 void nm_test_func(){}
1825 int main(){nm_test_func;return 0;}
1827 if { (eval echo configure
:1828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1828 # Now try to grab the symbols.
1829 ac_nlist
=conftest.nm
1830 if { (eval echo configure
:1831: \"$NM conftest.
$ac_objext \|
$ac_cv_sys_global_symbol_pipe \
> $ac_nlist\") 1>&5; (eval $NM conftest.
$ac_objext \|
$ac_cv_sys_global_symbol_pipe \
> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
1831 # See whether the symbols have a leading underscore.
1832 if egrep '^. _nm_test_func' "$ac_nlist" >/dev
/null
; then
1833 ac_cv_sys_symbol_underscore
=yes
1835 if egrep '^. nm_test_func ' "$ac_nlist" >/dev
/null
; then
1838 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
1842 echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&5
1845 echo "configure: failed program was:" >&5
1852 echo "$ac_t""$ac_cv_sys_symbol_underscore" 1>&6
1853 USE_SYMBOL_UNDERSCORE
=${ac_cv_sys_symbol_underscore=no}
1855 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1856 echo "configure:1857: checking whether ln -s works" >&5
1857 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1858 echo $ac_n "(cached) $ac_c" 1>&6
1861 if ln -s X conftestdata
2>/dev
/null
1864 ac_cv_prog_LN_S
="ln -s"
1869 LN_S
="$ac_cv_prog_LN_S"
1870 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1871 echo "$ac_t""yes" 1>&6
1873 echo "$ac_t""no" 1>&6
1876 if test $host != $build; then
1877 ac_tool_prefix
=${host_alias}-
1883 # Check for any special flags to pass to ltconfig.
1884 libtool_flags
="--cache-file=$cache_file"
1885 test "$enable_shared" = no
&& libtool_flags
="$libtool_flags --disable-shared"
1886 test "$enable_static" = no
&& libtool_flags
="$libtool_flags --disable-static"
1887 test "$enable_fast_install" = no
&& libtool_flags
="$libtool_flags --disable-fast-install"
1888 test "$lt_dlopen" = yes && libtool_flags
="$libtool_flags --enable-dlopen"
1889 test "$silent" = yes && libtool_flags
="$libtool_flags --silent"
1890 test "$ac_cv_prog_gcc" = yes && libtool_flags
="$libtool_flags --with-gcc"
1891 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags
="$libtool_flags --with-gnu-ld"
1893 # Some flags need to be propagated to the compiler or linker for good
1897 # Find out which ABI we are using.
1898 echo '#line 1899 "configure"' > conftest.
$ac_ext
1899 if { (eval echo configure
:1900: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1900 case "`/usr/bin/file conftest.o`" in
1916 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1917 SAVE_CFLAGS
="$CFLAGS"
1918 CFLAGS
="$CFLAGS -belf"
1919 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1920 echo "configure:1921: checking whether the C compiler needs -belf" >&5
1921 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1922 echo $ac_n "(cached) $ac_c" 1>&6
1924 cat > conftest.
$ac_ext <<EOF
1925 #line 1926 "configure"
1926 #include "confdefs.h"
1932 if { (eval echo configure
:1933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1934 lt_cv_cc_needs_belf
=yes
1936 echo "configure: failed program was:" >&5
1937 cat conftest.
$ac_ext >&5
1939 lt_cv_cc_needs_belf
=no
1944 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1945 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
1946 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1947 CFLAGS
="$SAVE_CFLAGS"
1952 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
1953 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
1954 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1955 echo "configure:1956: checking for $ac_word" >&5
1956 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1957 echo $ac_n "(cached) $ac_c" 1>&6
1959 if test -n "$DLLTOOL"; then
1960 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
1962 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1964 for ac_dir
in $ac_dummy; do
1965 test -z "$ac_dir" && ac_dir
=.
1966 if test -f $ac_dir/$ac_word; then
1967 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
1974 DLLTOOL
="$ac_cv_prog_DLLTOOL"
1975 if test -n "$DLLTOOL"; then
1976 echo "$ac_t""$DLLTOOL" 1>&6
1978 echo "$ac_t""no" 1>&6
1982 if test -z "$ac_cv_prog_DLLTOOL"; then
1983 if test -n "$ac_tool_prefix"; then
1984 # Extract the first word of "dlltool", so it can be a program name with args.
1985 set dummy dlltool
; ac_word
=$2
1986 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1987 echo "configure:1988: checking for $ac_word" >&5
1988 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
1989 echo $ac_n "(cached) $ac_c" 1>&6
1991 if test -n "$DLLTOOL"; then
1992 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
1994 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1996 for ac_dir
in $ac_dummy; do
1997 test -z "$ac_dir" && ac_dir
=.
1998 if test -f $ac_dir/$ac_word; then
1999 ac_cv_prog_DLLTOOL
="dlltool"
2004 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL
="false"
2007 DLLTOOL
="$ac_cv_prog_DLLTOOL"
2008 if test -n "$DLLTOOL"; then
2009 echo "$ac_t""$DLLTOOL" 1>&6
2011 echo "$ac_t""no" 1>&6
2019 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2020 set dummy
${ac_tool_prefix}as
; ac_word
=$2
2021 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2022 echo "configure:2023: checking for $ac_word" >&5
2023 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2024 echo $ac_n "(cached) $ac_c" 1>&6
2026 if test -n "$AS"; then
2027 ac_cv_prog_AS
="$AS" # Let the user override the test.
2029 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2031 for ac_dir
in $ac_dummy; do
2032 test -z "$ac_dir" && ac_dir
=.
2033 if test -f $ac_dir/$ac_word; then
2034 ac_cv_prog_AS
="${ac_tool_prefix}as"
2042 if test -n "$AS"; then
2043 echo "$ac_t""$AS" 1>&6
2045 echo "$ac_t""no" 1>&6
2049 if test -z "$ac_cv_prog_AS"; then
2050 if test -n "$ac_tool_prefix"; then
2051 # Extract the first word of "as", so it can be a program name with args.
2052 set dummy as
; ac_word
=$2
2053 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2054 echo "configure:2055: checking for $ac_word" >&5
2055 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2056 echo $ac_n "(cached) $ac_c" 1>&6
2058 if test -n "$AS"; then
2059 ac_cv_prog_AS
="$AS" # Let the user override the test.
2061 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2063 for ac_dir
in $ac_dummy; do
2064 test -z "$ac_dir" && ac_dir
=.
2065 if test -f $ac_dir/$ac_word; then
2071 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS
="false"
2075 if test -n "$AS"; then
2076 echo "$ac_t""$AS" 1>&6
2078 echo "$ac_t""no" 1>&6
2091 # enable the --disable-libtool-lock switch
2093 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2094 if test "${enable_libtool_lock+set}" = set; then
2095 enableval
="$enable_libtool_lock"
2096 need_locks
=$enableval
2102 if test x
"$need_locks" = xno
; then
2103 libtool_flags
="$libtool_flags --disable-lock"
2107 # Save cache, so that ltconfig can load it
2108 cat > confcache
<<\EOF
2109 # This file is a shell script that caches the results of configure
2110 # tests run on this system so they can be shared between configure
2111 # scripts and configure runs. It is not useful on other systems.
2112 # If it contains results you don't want to keep, you may remove or edit it.
2114 # By default, configure uses ./config.cache as the cache file,
2115 # creating it if it does not exist already. You can give configure
2116 # the --cache-file=FILE option to use a different cache file; that is
2117 # what configure does when it calls configure scripts in
2118 # subdirectories, so they share the cache.
2119 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2120 # config.status only pays attention to the cache file if you give it the
2121 # --recheck option to rerun configure.
2124 # The following way of writing the cache mishandles newlines in values,
2125 # but we know of no workaround that is simple, portable, and efficient.
2126 # So, don't put newlines in cache variables' values.
2127 # Ultrix sh set writes to stderr and can't be redirected directly,
2128 # and sets the high bit in the cache file unless we assign to the vars.
2130 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2132 # `set' does not quote correctly, so add quotes (double-quote substitution
2133 # turns \\\\ into \\, and sed turns \\ into \).
2135 -e "s/'/'\\\\''/g" \
2136 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2139 # `set' quotes correctly as required by POSIX, so do not add quotes.
2140 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2143 if cmp -s $cache_file confcache
; then
2146 if test -w $cache_file; then
2147 echo "updating cache $cache_file"
2148 cat confcache
> $cache_file
2150 echo "not updating unwritable cache $cache_file"
2156 # Actually configure libtool. ac_aux_dir is where install-sh is found.
2157 CC
="$CC" CFLAGS
="$CFLAGS" CPPFLAGS
="$CPPFLAGS" \
2158 LD
="$LD" NM
="$NM" RANLIB
="$RANLIB" LN_S
="$LN_S" \
2159 DLLTOOL
="$DLLTOOL" AS
="$AS" \
2160 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig
--no-reexec \
2161 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh
$host \
2162 ||
{ echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2164 # Reload cache, that may have been modified by ltconfig
2165 if test -r "$cache_file"; then
2166 echo "loading cache $cache_file"
2169 echo "creating cache $cache_file"
2174 # This can be used to rebuild libtool when needed
2175 LIBTOOL_DEPS
="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
2177 # Always use our own libtool.
2178 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
2180 # Redirect the config.log output again, so that the ltconfig log is not
2181 # clobbered by the next message.
2182 exec 5>>.
/config.log
2185 if test -z "$with_target_subdir" ||
test "$with_target_subdir" = "."; then
2193 if test -n "$with_cross_host"; then
2194 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
2195 # may not work correctly, because the compiler may not be able to
2198 # We assume newlib. This lets us hard-code the functions we know
2200 cat >> confdefs.h
<<\EOF
2201 #define HAVE_MEMCPY 1
2204 cat >> confdefs.h
<<\EOF
2205 #define HAVE_STRERROR 1
2209 # We ignore --with-system-zlib in this case.
2210 target_all
=libzgcj.la
2212 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2213 echo "configure:2214: checking how to run the C preprocessor" >&5
2214 # On Suns, sometimes $CPP names a directory.
2215 if test -n "$CPP" && test -d "$CPP"; then
2218 if test -z "$CPP"; then
2219 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2220 echo $ac_n "(cached) $ac_c" 1>&6
2222 # This must be in double quotes, not single quotes, because CPP may get
2223 # substituted into the Makefile and "${CC-cc}" will confuse make.
2225 # On the NeXT, cc -E runs the code through the compiler's parser,
2226 # not just through cpp.
2227 cat > conftest.
$ac_ext <<EOF
2228 #line 2229 "configure"
2229 #include "confdefs.h"
2233 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2234 { (eval echo configure
:2235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2235 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2236 if test -z "$ac_err"; then
2240 echo "configure: failed program was:" >&5
2241 cat conftest.
$ac_ext >&5
2243 CPP
="${CC-cc} -E -traditional-cpp"
2244 cat > conftest.
$ac_ext <<EOF
2245 #line 2246 "configure"
2246 #include "confdefs.h"
2250 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2251 { (eval echo configure
:2252: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2252 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2253 if test -z "$ac_err"; then
2257 echo "configure: failed program was:" >&5
2258 cat conftest.
$ac_ext >&5
2260 CPP
="${CC-cc} -nologo -E"
2261 cat > conftest.
$ac_ext <<EOF
2262 #line 2263 "configure"
2263 #include "confdefs.h"
2267 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2268 { (eval echo configure
:2269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2269 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2270 if test -z "$ac_err"; then
2274 echo "configure: failed program was:" >&5
2275 cat conftest.
$ac_ext >&5
2284 ac_cv_prog_CPP
="$CPP"
2286 CPP
="$ac_cv_prog_CPP"
2288 ac_cv_prog_CPP
="$CPP"
2290 echo "$ac_t""$CPP" 1>&6
2292 for ac_hdr
in unistd.h
2294 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2295 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2296 echo "configure:2297: checking for $ac_hdr" >&5
2297 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2298 echo $ac_n "(cached) $ac_c" 1>&6
2300 cat > conftest.
$ac_ext <<EOF
2301 #line 2302 "configure"
2302 #include "confdefs.h"
2305 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2306 { (eval echo configure
:2307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2307 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2308 if test -z "$ac_err"; then
2310 eval "ac_cv_header_$ac_safe=yes"
2313 echo "configure: failed program was:" >&5
2314 cat conftest.
$ac_ext >&5
2316 eval "ac_cv_header_$ac_safe=no"
2320 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2321 echo "$ac_t""yes" 1>&6
2322 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2323 cat >> confdefs.h
<<EOF
2324 #define $ac_tr_hdr 1
2328 echo "$ac_t""no" 1>&6
2332 for ac_func
in getpagesize
2334 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2335 echo "configure:2336: checking for $ac_func" >&5
2336 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2337 echo $ac_n "(cached) $ac_c" 1>&6
2339 cat > conftest.
$ac_ext <<EOF
2340 #line 2341 "configure"
2341 #include "confdefs.h"
2342 /* System header to define __stub macros and hopefully few prototypes,
2343 which can conflict with char $ac_func(); below. */
2345 /* Override any gcc2 internal prototype to avoid an error. */
2346 /* We use char because int might match the return type of a gcc2
2347 builtin and then its argument prototype would still apply. */
2352 /* The GNU C library defines this for functions which it implements
2353 to always fail with ENOSYS. Some functions are actually named
2354 something starting with __ and the normal name is an alias. */
2355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2363 if { (eval echo configure
:2364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2365 eval "ac_cv_func_$ac_func=yes"
2367 echo "configure: failed program was:" >&5
2368 cat conftest.
$ac_ext >&5
2370 eval "ac_cv_func_$ac_func=no"
2375 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2376 echo "$ac_t""yes" 1>&6
2377 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2378 cat >> confdefs.h
<<EOF
2379 #define $ac_tr_func 1
2383 echo "$ac_t""no" 1>&6
2387 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2388 echo "configure:2389: checking for working mmap" >&5
2389 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2390 echo $ac_n "(cached) $ac_c" 1>&6
2392 if test "$cross_compiling" = yes; then
2393 ac_cv_func_mmap_fixed_mapped
=no
2395 cat > conftest.
$ac_ext <<EOF
2396 #line 2397 "configure"
2397 #include "confdefs.h"
2399 /* Thanks to Mike Haertel and Jim Avera for this test.
2400 Here is a matrix of mmap possibilities:
2401 mmap private not fixed
2402 mmap private fixed at somewhere currently unmapped
2403 mmap private fixed at somewhere already mapped
2404 mmap shared not fixed
2405 mmap shared fixed at somewhere currently unmapped
2406 mmap shared fixed at somewhere already mapped
2407 For private mappings, we should verify that changes cannot be read()
2408 back from the file, nor mmap's back from the file at a different
2409 address. (There have been systems where private was not correctly
2410 implemented like the infamous i386 svr4.0, and systems where the
2411 VM page cache was not coherent with the filesystem buffer cache
2412 like early versions of FreeBSD and possibly contemporary NetBSD.)
2413 For shared mappings, we should conversely verify that changes get
2414 propogated back to all the places they're supposed to be.
2416 Grep wants private fixed already mapped.
2417 The main things grep needs to know about mmap are:
2418 * does it exist and is it safe to write into the mmap'd area
2419 * how to use it (BSD variants) */
2420 #include <sys/types.h>
2422 #include <sys/mman.h>
2424 /* This mess was copied from the GNU getpagesize.h. */
2425 #ifndef HAVE_GETPAGESIZE
2426 # ifdef HAVE_UNISTD_H
2427 # include <unistd.h>
2430 /* Assume that all systems that can run configure have sys/param.h. */
2431 # ifndef HAVE_SYS_PARAM_H
2432 # define HAVE_SYS_PARAM_H 1
2435 # ifdef _SC_PAGESIZE
2436 # define getpagesize() sysconf(_SC_PAGESIZE)
2437 # else /* no _SC_PAGESIZE */
2438 # ifdef HAVE_SYS_PARAM_H
2439 # include <sys/param.h>
2440 # ifdef EXEC_PAGESIZE
2441 # define getpagesize() EXEC_PAGESIZE
2442 # else /* no EXEC_PAGESIZE */
2444 # define getpagesize() NBPG * CLSIZE
2447 # endif /* no CLSIZE */
2448 # else /* no NBPG */
2450 # define getpagesize() NBPC
2451 # else /* no NBPC */
2453 # define getpagesize() PAGESIZE
2454 # endif /* PAGESIZE */
2455 # endif /* no NBPC */
2456 # endif /* no NBPG */
2457 # endif /* no EXEC_PAGESIZE */
2458 # else /* no HAVE_SYS_PARAM_H */
2459 # define getpagesize() 8192 /* punt totally */
2460 # endif /* no HAVE_SYS_PARAM_H */
2461 # endif /* no _SC_PAGESIZE */
2463 #endif /* no HAVE_GETPAGESIZE */
2466 extern "C" { void *malloc(unsigned); }
2474 char *data, *data2, *data3;
2478 pagesize = getpagesize();
2481 * First, make a file with some known garbage in it.
2483 data = malloc(pagesize);
2486 for (i = 0; i < pagesize; ++i)
2487 *(data + i) = rand();
2489 fd = creat("conftestmmap", 0600);
2492 if (write(fd, data, pagesize) != pagesize)
2497 * Next, try to mmap the file at a fixed address which
2498 * already has something else allocated at it. If we can,
2499 * also make sure that we see the same garbage.
2501 fd = open("conftestmmap", O_RDWR);
2504 data2 = malloc(2 * pagesize);
2507 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2508 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2509 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2511 for (i = 0; i < pagesize; ++i)
2512 if (*(data + i) != *(data2 + i))
2516 * Finally, make sure that changes to the mapped area
2517 * do not percolate back to the file as seen by read().
2518 * (This is a bug on some variants of i386 svr4.0.)
2520 for (i = 0; i < pagesize; ++i)
2521 *(data2 + i) = *(data2 + i) + 1;
2522 data3 = malloc(pagesize);
2525 if (read(fd, data3, pagesize) != pagesize)
2527 for (i = 0; i < pagesize; ++i)
2528 if (*(data + i) != *(data3 + i))
2531 unlink("conftestmmap");
2536 if { (eval echo configure
:2537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2538 ac_cv_func_mmap_fixed_mapped
=yes
2540 echo "configure: failed program was:" >&5
2541 cat conftest.
$ac_ext >&5
2543 ac_cv_func_mmap_fixed_mapped
=no
2550 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2551 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2552 cat >> confdefs.h
<<\EOF
2558 for ac_func
in memcpy strerror
2560 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2561 echo "configure:2562: checking for $ac_func" >&5
2562 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2563 echo $ac_n "(cached) $ac_c" 1>&6
2565 cat > conftest.
$ac_ext <<EOF
2566 #line 2567 "configure"
2567 #include "confdefs.h"
2568 /* System header to define __stub macros and hopefully few prototypes,
2569 which can conflict with char $ac_func(); below. */
2571 /* Override any gcc2 internal prototype to avoid an error. */
2572 /* We use char because int might match the return type of a gcc2
2573 builtin and then its argument prototype would still apply. */
2578 /* The GNU C library defines this for functions which it implements
2579 to always fail with ENOSYS. Some functions are actually named
2580 something starting with __ and the normal name is an alias. */
2581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2589 if { (eval echo configure
:2590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2591 eval "ac_cv_func_$ac_func=yes"
2593 echo "configure: failed program was:" >&5
2594 cat conftest.
$ac_ext >&5
2596 eval "ac_cv_func_$ac_func=no"
2601 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2602 echo "$ac_t""yes" 1>&6
2603 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2604 cat >> confdefs.h
<<EOF
2605 #define $ac_tr_func 1
2609 echo "$ac_t""no" 1>&6
2614 if test "$with_system_zlib" = yes; then
2615 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
2616 echo "configure:2617: checking for deflate in -lz" >&5
2617 ac_lib_var
=`echo z'_'deflate | sed 'y%./+-%__p_%'`
2618 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2619 echo $ac_n "(cached) $ac_c" 1>&6
2621 ac_save_LIBS
="$LIBS"
2623 cat > conftest.
$ac_ext <<EOF
2624 #line 2625 "configure"
2625 #include "confdefs.h"
2626 /* Override any gcc2 internal prototype to avoid an error. */
2627 /* We use char because int might match the return type of a gcc2
2628 builtin and then its argument prototype would still apply. */
2635 if { (eval echo configure
:2636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2637 eval "ac_cv_lib_$ac_lib_var=yes"
2639 echo "configure: failed program was:" >&5
2640 cat conftest.
$ac_ext >&5
2642 eval "ac_cv_lib_$ac_lib_var=no"
2645 LIBS
="$ac_save_LIBS"
2648 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2649 echo "$ac_t""yes" 1>&6
2652 echo "$ac_t""no" 1>&6
2653 target_all
=libzgcj.la
2657 target_all
=libzgcj.la
2663 for ac_hdr
in unistd.h
2665 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2666 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2667 echo "configure:2668: checking for $ac_hdr" >&5
2668 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2669 echo $ac_n "(cached) $ac_c" 1>&6
2671 cat > conftest.
$ac_ext <<EOF
2672 #line 2673 "configure"
2673 #include "confdefs.h"
2676 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2677 { (eval echo configure
:2678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2678 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2679 if test -z "$ac_err"; then
2681 eval "ac_cv_header_$ac_safe=yes"
2684 echo "configure: failed program was:" >&5
2685 cat conftest.
$ac_ext >&5
2687 eval "ac_cv_header_$ac_safe=no"
2691 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2692 echo "$ac_t""yes" 1>&6
2693 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2694 cat >> confdefs.h
<<EOF
2695 #define $ac_tr_hdr 1
2699 echo "$ac_t""no" 1>&6
2704 if test "${multilib}" = "yes"; then
2705 multilib_arg
="--enable-multilib"
2711 cat > confcache
<<\EOF
2712 # This file is a shell script that caches the results of configure
2713 # tests run on this system so they can be shared between configure
2714 # scripts and configure runs. It is not useful on other systems.
2715 # If it contains results you don't want to keep, you may remove or edit it.
2717 # By default, configure uses ./config.cache as the cache file,
2718 # creating it if it does not exist already. You can give configure
2719 # the --cache-file=FILE option to use a different cache file; that is
2720 # what configure does when it calls configure scripts in
2721 # subdirectories, so they share the cache.
2722 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2723 # config.status only pays attention to the cache file if you give it the
2724 # --recheck option to rerun configure.
2727 # The following way of writing the cache mishandles newlines in values,
2728 # but we know of no workaround that is simple, portable, and efficient.
2729 # So, don't put newlines in cache variables' values.
2730 # Ultrix sh set writes to stderr and can't be redirected directly,
2731 # and sets the high bit in the cache file unless we assign to the vars.
2733 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2735 # `set' does not quote correctly, so add quotes (double-quote substitution
2736 # turns \\\\ into \\, and sed turns \\ into \).
2738 -e "s/'/'\\\\''/g" \
2739 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2742 # `set' quotes correctly as required by POSIX, so do not add quotes.
2743 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2746 if cmp -s $cache_file confcache
; then
2749 if test -w $cache_file; then
2750 echo "updating cache $cache_file"
2751 cat confcache
> $cache_file
2753 echo "not updating unwritable cache $cache_file"
2758 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2760 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
2761 # Let make expand exec_prefix.
2762 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
2764 # Any assignment to VPATH causes Sun make to only execute
2765 # the first set of double-colon rules, so remove it if not needed.
2766 # If there is a colon in the path, we need to keep it.
2767 if test "x$srcdir" = x.
; then
2768 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
2771 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2773 # Transform confdefs.h into DEFS.
2774 # Protect against shell expansion while executing Makefile rules.
2775 # Protect against Makefile macro expansion.
2776 cat > conftest.defs
<<\EOF
2777 s
%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2778 s
%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2783 DEFS=`sed -f conftest.defs confdefs.h |
tr '\012' ' '`
2787 # Without the "./", some shells look in PATH for config.status.
2788 : ${CONFIG_STATUS=./config.status}
2790 echo creating $CONFIG_STATUS
2791 rm -f $CONFIG_STATUS
2792 cat > $CONFIG_STATUS <<EOF
2794 # Generated automatically by configure.
2795 # Run this file to recreate the current configuration.
2796 # This directory was configured as follows,
2797 # on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
2799 # $0 $ac_configure_args
2801 # Compiler output produced by configure, useful for debugging
2802 # configure, is in ./config.log if it exists.
2804 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2807 case "\$ac_option" in
2808 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2809 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2810 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2811 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2812 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2814 -help | --help | --hel | --he | --h)
2815 echo "\$ac_cs_usage"; exit 0 ;;
2816 *) echo "\$ac_cs_usage"; exit 1 ;;
2820 ac_given_srcdir=$srcdir
2821 ac_given_INSTALL="$INSTALL"
2823 trap 'rm -fr `echo "Makefile" |
sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2825 cat >> $CONFIG_STATUS <<EOF
2827 # Protect against being on the right side of a sed subst in config.status.
2828 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2829 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2833 s%@CFLAGS@%$CFLAGS%g
2834 s%@CPPFLAGS@%$CPPFLAGS%g
2835 s%@CXXFLAGS@%$CXXFLAGS%g
2836 s%@FFLAGS@%$FFLAGS%g
2838 s%@LDFLAGS@%$LDFLAGS%g
2840 s%@exec_prefix@%$exec_prefix%g
2841 s%@prefix@%$prefix%g
2842 s%@program_transform_name@%$program_transform_name%g
2843 s%@bindir@%$bindir%g
2844 s%@sbindir@%$sbindir%g
2845 s%@libexecdir@%$libexecdir%g
2846 s%@datadir@%$datadir%g
2847 s%@sysconfdir@%$sysconfdir%g
2848 s%@sharedstatedir@%$sharedstatedir%g
2849 s%@localstatedir@%$localstatedir%g
2850 s%@libdir@%$libdir%g
2851 s%@includedir@%$includedir%g
2852 s%@oldincludedir@%$oldincludedir%g
2853 s%@infodir@%$infodir%g
2854 s%@mandir@%$mandir%g
2856 s%@host_alias@%$host_alias%g
2857 s%@host_cpu@%$host_cpu%g
2858 s%@host_vendor@%$host_vendor%g
2859 s%@host_os@%$host_os%g
2860 s%@target@%$target%g
2861 s%@target_alias@%$target_alias%g
2862 s%@target_cpu@%$target_cpu%g
2863 s%@target_vendor@%$target_vendor%g
2864 s%@target_os@%$target_os%g
2866 s%@build_alias@%$build_alias%g
2867 s%@build_cpu@%$build_cpu%g
2868 s%@build_vendor@%$build_vendor%g
2869 s%@build_os@%$build_os%g
2870 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2871 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2872 s%@INSTALL_DATA@%$INSTALL_DATA%g
2873 s%@PACKAGE@%$PACKAGE%g
2874 s%@VERSION@%$VERSION%g
2875 s%@ACLOCAL@%$ACLOCAL%g
2876 s%@AUTOCONF@%$AUTOCONF%g
2877 s%@AUTOMAKE@%$AUTOMAKE%g
2878 s%@AUTOHEADER@%$AUTOHEADER%g
2879 s%@MAKEINFO@%$MAKEINFO%g
2880 s%@SET_MAKE@%$SET_MAKE%g
2881 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2882 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2884 s%@EXEEXT@%$EXEEXT%g
2885 s%@zlib_basedir@%$zlib_basedir%g
2887 s%@RANLIB@%$RANLIB%g
2890 s%@USE_SYMBOL_UNDERSCORE@%$USE_SYMBOL_UNDERSCORE%g
2892 s%@DLLTOOL@%$DLLTOOL%g
2894 s%@LIBTOOL@%$LIBTOOL%g
2895 s%@COMPPATH@%$COMPPATH%g
2897 s%@target_all@%$target_all%g
2902 cat >> $CONFIG_STATUS <<\EOF
2904 # Split the substitutions into bite-sized pieces for seds with
2905 # small command number limits, like on Digital OSF/1 and HP-UX.
2906 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2907 ac_file=1 # Number of current file.
2908 ac_beg=1 # First line for current file.
2909 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2912 while $ac_more_lines; do
2913 if test $ac_beg -gt 1; then
2914 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2916 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2918 if test ! -s conftest.s$ac_file; then
2920 rm -f conftest.s$ac_file
2922 if test -z "$ac_sed_cmds"; then
2923 ac_sed_cmds="sed -f conftest.s$ac_file"
2925 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2927 ac_file=`expr $ac_file + 1`
2929 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2932 if test -z "$ac_sed_cmds"; then
2937 cat >> $CONFIG_STATUS <<EOF
2939 CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2941 cat >> $CONFIG_STATUS <<\EOF
2942 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2943 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2945 *:*) ac_file_in=`echo "$ac_file"|
sed 's%[^:]*:%%'`
2946 ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
2947 *) ac_file_in="${ac_file}.in" ;;
2950 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2952 # Remove last slash and all that follows it. Not all systems have dirname.
2953 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
2954 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2955 # The file is in a subdirectory.
2956 test ! -d "$ac_dir" && mkdir "$ac_dir"
2957 ac_dir_suffix="/`echo $ac_dir|
sed 's%^\./%%'`"
2958 # A "../" for each directory in $ac_dir_suffix.
2959 ac_dots=`echo $ac_dir_suffix|
sed 's%/[^/]*%../%g'`
2961 ac_dir_suffix= ac_dots=
2964 case "$ac_given_srcdir" in
2966 if test -z "$ac_dots"; then top_srcdir=.
2967 else top_srcdir=`echo $ac_dots|
sed 's%/$%%'`; fi ;;
2968 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2970 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2971 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2974 case "$ac_given_INSTALL" in
2975 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2976 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2979 echo creating "$ac_file"
2981 configure_input="Generated automatically from `echo $ac_file_in|
sed 's%.*/%%'` by configure."
2983 *Makefile*) ac_comsub="1i\\
2984 # $configure_input" ;;
2988 ac_file_inputs=`echo $ac_file_in|
sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2990 s%@configure_input@%$configure_input%g
2991 s%@srcdir@%$srcdir%g
2992 s%@top_srcdir@%$top_srcdir%g
2993 s%@INSTALL@%$INSTALL%g
2994 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2999 cat >> $CONFIG_STATUS <<EOF
3003 with_multisubdir=${with_multisubdir}
3004 ac_configure_args="${multilib_arg} ${ac_configure_args}"
3005 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
3006 zlib_basedir=${zlib_basedir}
3011 cat >> $CONFIG_STATUS <<\EOF
3012 if test -n "$CONFIG_FILES"; then
3013 ac_file=Makefile . ${zlib_basedir}/../config-ml.in
3017 chmod +x $CONFIG_STATUS
3018 rm -fr confdefs* $ac_clean_files
3019 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1