]> git.ipfire.org Git - thirdparty/gcc.git/blame - zlib/configure
* toplev.c: Fix formatting.
[thirdparty/gcc.git] / zlib / configure
CommitLineData
dfac8a13
TT
1#! /bin/sh
2
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.
c45f211e 6#
dfac8a13
TT
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
e093c992
AG
14ac_help="$ac_help
15 --enable-maintainer-mode enable make rules and dependencies not useful
16 (and sometimes confusing) to the casual installer"
dfac8a13 17ac_help="$ac_help
3ef1cea8
RO
18 --with-target-subdir=SUBDIR
19 configuring in a subdirectory"
dfac8a13 20ac_help="$ac_help
3ef1cea8 21 --with-cross-host=HOST configuring with a cross compiler"
dfac8a13 22ac_help="$ac_help
3ef1cea8 23 --enable-multilib build many library versions (default)"
79a9a529 24ac_help="$ac_help
3ef1cea8 25 --with-system-zlib use installed libz"
dfac8a13
TT
26ac_help="$ac_help
27 --enable-shared[=PKGS] build shared libraries [default=yes]"
28ac_help="$ac_help
29 --enable-static[=PKGS] build static libraries [default=yes]"
30ac_help="$ac_help
31 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
32ac_help="$ac_help
33 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
34ac_help="$ac_help
0fd91e0a
AO
35 --disable-libtool-lock avoid locking (might break parallel builds)"
36ac_help="$ac_help
37 --with-pic try to use only PIC/non-PIC objects [default=use both]"
dfac8a13
TT
38
39# Initialize some variables set by options.
40# The variables have the same names as the options, with
41# dashes changed to underlines.
42build=NONE
43cache_file=./config.cache
44exec_prefix=NONE
45host=NONE
46no_create=
47nonopt=NONE
48no_recursion=
49prefix=NONE
50program_prefix=NONE
51program_suffix=NONE
52program_transform_name=s,x,x,
53silent=
54site=
35241f18 55sitefile=
dfac8a13
TT
56srcdir=
57target=NONE
58verbose=
59x_includes=NONE
60x_libraries=NONE
61bindir='${exec_prefix}/bin'
62sbindir='${exec_prefix}/sbin'
63libexecdir='${exec_prefix}/libexec'
64datadir='${prefix}/share'
65sysconfdir='${prefix}/etc'
66sharedstatedir='${prefix}/com'
67localstatedir='${prefix}/var'
68libdir='${exec_prefix}/lib'
69includedir='${prefix}/include'
70oldincludedir='/usr/include'
71infodir='${prefix}/info'
72mandir='${prefix}/man'
73
74# Initialize some other variables.
75subdirs=
76MFLAGS= MAKEFLAGS=
77SHELL=${CONFIG_SHELL-/bin/sh}
78# Maximum number of lines to put in a shell here document.
79ac_max_here_lines=12
80
81ac_prev=
82for ac_option
83do
84
85 # If the previous option needs an argument, assign it.
86 if test -n "$ac_prev"; then
87 eval "$ac_prev=\$ac_option"
88 ac_prev=
89 continue
90 fi
91
92 case "$ac_option" in
93 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
94 *) ac_optarg= ;;
95 esac
96
97 # Accept the important Cygnus configure options, so we can diagnose typos.
98
99 case "$ac_option" in
100
101 -bindir | --bindir | --bindi | --bind | --bin | --bi)
102 ac_prev=bindir ;;
103 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
104 bindir="$ac_optarg" ;;
105
106 -build | --build | --buil | --bui | --bu)
107 ac_prev=build ;;
108 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
109 build="$ac_optarg" ;;
110
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" ;;
117
118 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
119 ac_prev=datadir ;;
120 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
121 | --da=*)
122 datadir="$ac_optarg" ;;
123
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; }
129 fi
130 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
131 eval "enable_${ac_feature}=no" ;;
132
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; }
138 fi
139 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
140 case "$ac_option" in
141 *=*) ;;
142 *) ac_optarg=yes ;;
143 esac
144 eval "enable_${ac_feature}='$ac_optarg'" ;;
145
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" ;;
154
155 -gas | --gas | --ga | --g)
156 # Obsolete; use --with-gas.
157 with_gas=yes ;;
158
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.
162 cat << EOF
163Usage: configure [options] [host]
164Options: [defaults in brackets after descriptions]
165Configuration:
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
35241f18 170 --site-file=FILE use FILE as the site file
dfac8a13
TT
171 --version print the version of autoconf that created configure
172Directory and file names:
173 --prefix=PREFIX install architecture-independent files in PREFIX
174 [$ac_default_prefix]
175 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
176 [same as prefix]
177 --bindir=DIR user executables in DIR [EPREFIX/bin]
178 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
179 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
180 --datadir=DIR read-only architecture-independent data in DIR
181 [PREFIX/share]
182 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
183 --sharedstatedir=DIR modifiable architecture-independent data in DIR
184 [PREFIX/com]
185 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
186 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
187 --includedir=DIR C header files in DIR [PREFIX/include]
188 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
189 --infodir=DIR info documentation in DIR [PREFIX/info]
190 --mandir=DIR man documentation in DIR [PREFIX/man]
191 --srcdir=DIR find the sources in DIR [configure dir or ..]
192 --program-prefix=PREFIX prepend PREFIX to installed program names
193 --program-suffix=SUFFIX append SUFFIX to installed program names
194 --program-transform-name=PROGRAM
195 run sed PROGRAM on installed program names
196EOF
197 cat << EOF
198Host type:
199 --build=BUILD configure for building on BUILD [BUILD=HOST]
200 --host=HOST configure for HOST [guessed]
201 --target=TARGET configure for TARGET [TARGET=HOST]
202Features and packages:
203 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
204 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
205 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
206 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
207 --x-includes=DIR X include files are in DIR
208 --x-libraries=DIR X library files are in DIR
209EOF
210 if test -n "$ac_help"; then
211 echo "--enable and --with options recognized:$ac_help"
212 fi
213 exit 0 ;;
214
215 -host | --host | --hos | --ho)
216 ac_prev=host ;;
217 -host=* | --host=* | --hos=* | --ho=*)
218 host="$ac_optarg" ;;
219
220 -includedir | --includedir | --includedi | --included | --include \
221 | --includ | --inclu | --incl | --inc)
222 ac_prev=includedir ;;
223 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
224 | --includ=* | --inclu=* | --incl=* | --inc=*)
225 includedir="$ac_optarg" ;;
226
227 -infodir | --infodir | --infodi | --infod | --info | --inf)
228 ac_prev=infodir ;;
229 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
230 infodir="$ac_optarg" ;;
231
232 -libdir | --libdir | --libdi | --libd)
233 ac_prev=libdir ;;
234 -libdir=* | --libdir=* | --libdi=* | --libd=*)
235 libdir="$ac_optarg" ;;
236
237 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
238 | --libexe | --libex | --libe)
239 ac_prev=libexecdir ;;
240 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
241 | --libexe=* | --libex=* | --libe=*)
242 libexecdir="$ac_optarg" ;;
243
244 -localstatedir | --localstatedir | --localstatedi | --localstated \
245 | --localstate | --localstat | --localsta | --localst \
246 | --locals | --local | --loca | --loc | --lo)
247 ac_prev=localstatedir ;;
248 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
249 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
250 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
251 localstatedir="$ac_optarg" ;;
252
253 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
254 ac_prev=mandir ;;
255 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
256 mandir="$ac_optarg" ;;
257
258 -nfp | --nfp | --nf)
259 # Obsolete; use --without-fp.
260 with_fp=no ;;
261
262 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
263 | --no-cr | --no-c)
264 no_create=yes ;;
265
266 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
267 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
268 no_recursion=yes ;;
269
270 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
271 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
272 | --oldin | --oldi | --old | --ol | --o)
273 ac_prev=oldincludedir ;;
274 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
275 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
276 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
277 oldincludedir="$ac_optarg" ;;
278
279 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
280 ac_prev=prefix ;;
281 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
282 prefix="$ac_optarg" ;;
283
284 -program-prefix | --program-prefix | --program-prefi | --program-pref \
285 | --program-pre | --program-pr | --program-p)
286 ac_prev=program_prefix ;;
287 -program-prefix=* | --program-prefix=* | --program-prefi=* \
288 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
289 program_prefix="$ac_optarg" ;;
290
291 -program-suffix | --program-suffix | --program-suffi | --program-suff \
292 | --program-suf | --program-su | --program-s)
293 ac_prev=program_suffix ;;
294 -program-suffix=* | --program-suffix=* | --program-suffi=* \
295 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
296 program_suffix="$ac_optarg" ;;
297
298 -program-transform-name | --program-transform-name \
299 | --program-transform-nam | --program-transform-na \
300 | --program-transform-n | --program-transform- \
301 | --program-transform | --program-transfor \
302 | --program-transfo | --program-transf \
303 | --program-trans | --program-tran \
304 | --progr-tra | --program-tr | --program-t)
305 ac_prev=program_transform_name ;;
306 -program-transform-name=* | --program-transform-name=* \
307 | --program-transform-nam=* | --program-transform-na=* \
308 | --program-transform-n=* | --program-transform-=* \
309 | --program-transform=* | --program-transfor=* \
310 | --program-transfo=* | --program-transf=* \
311 | --program-trans=* | --program-tran=* \
312 | --progr-tra=* | --program-tr=* | --program-t=*)
313 program_transform_name="$ac_optarg" ;;
314
315 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
316 | -silent | --silent | --silen | --sile | --sil)
317 silent=yes ;;
318
319 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
320 ac_prev=sbindir ;;
321 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
322 | --sbi=* | --sb=*)
323 sbindir="$ac_optarg" ;;
324
325 -sharedstatedir | --sharedstatedir | --sharedstatedi \
326 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
327 | --sharedst | --shareds | --shared | --share | --shar \
328 | --sha | --sh)
329 ac_prev=sharedstatedir ;;
330 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
331 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
332 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
333 | --sha=* | --sh=*)
334 sharedstatedir="$ac_optarg" ;;
335
336 -site | --site | --sit)
337 ac_prev=site ;;
338 -site=* | --site=* | --sit=*)
339 site="$ac_optarg" ;;
340
35241f18
CD
341 -site-file | --site-file | --site-fil | --site-fi | --site-f)
342 ac_prev=sitefile ;;
343 -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*)
344 sitefile="$ac_optarg" ;;
345
dfac8a13
TT
346 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
347 ac_prev=srcdir ;;
348 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
349 srcdir="$ac_optarg" ;;
350
351 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
352 | --syscon | --sysco | --sysc | --sys | --sy)
353 ac_prev=sysconfdir ;;
354 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
355 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
356 sysconfdir="$ac_optarg" ;;
357
358 -target | --target | --targe | --targ | --tar | --ta | --t)
359 ac_prev=target ;;
360 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
361 target="$ac_optarg" ;;
362
363 -v | -verbose | --verbose | --verbos | --verbo | --verb)
364 verbose=yes ;;
365
366 -version | --version | --versio | --versi | --vers)
367 echo "configure generated by autoconf version 2.13"
368 exit 0 ;;
369
370 -with-* | --with-*)
371 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
372 # Reject names that are not valid shell variable names.
373 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
374 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375 fi
376 ac_package=`echo $ac_package| sed 's/-/_/g'`
377 case "$ac_option" in
378 *=*) ;;
379 *) ac_optarg=yes ;;
380 esac
381 eval "with_${ac_package}='$ac_optarg'" ;;
382
383 -without-* | --without-*)
384 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
385 # Reject names that are not valid shell variable names.
386 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
387 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
388 fi
389 ac_package=`echo $ac_package| sed 's/-/_/g'`
390 eval "with_${ac_package}=no" ;;
391
392 --x)
393 # Obsolete; use --with-x.
394 with_x=yes ;;
395
396 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
397 | --x-incl | --x-inc | --x-in | --x-i)
398 ac_prev=x_includes ;;
399 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
400 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
401 x_includes="$ac_optarg" ;;
402
403 -x-libraries | --x-libraries | --x-librarie | --x-librari \
404 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
405 ac_prev=x_libraries ;;
406 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
407 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
408 x_libraries="$ac_optarg" ;;
409
410 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
411 ;;
412
413 *)
414 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
415 echo "configure: warning: $ac_option: invalid host type" 1>&2
416 fi
417 if test "x$nonopt" != xNONE; then
418 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
419 fi
420 nonopt="$ac_option"
421 ;;
422
423 esac
424done
425
426if test -n "$ac_prev"; then
427 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
428fi
429
430trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
431
432# File descriptor usage:
433# 0 standard input
434# 1 file creation
435# 2 errors and warnings
436# 3 some systems may open it to /dev/tty
437# 4 used on the Kubota Titan
438# 6 checking for... messages and results
439# 5 compiler messages saved in config.log
440if test "$silent" = yes; then
441 exec 6>/dev/null
442else
443 exec 6>&1
444fi
445exec 5>./config.log
446
447echo "\
448This file contains any messages produced by compilers while
449running configure, to aid debugging if configure makes a mistake.
450" 1>&5
451
452# Strip out --no-create and --no-recursion so they do not pile up.
453# Also quote any args containing shell metacharacters.
454ac_configure_args=
455for ac_arg
c45f211e 456do
dfac8a13
TT
457 case "$ac_arg" in
458 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
459 | --no-cr | --no-c) ;;
460 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
461 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
462 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
463 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
464 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
465 esac
466done
467
468# NLS nuisances.
469# Only set these to C if already set. These must not be set unconditionally
470# because not all systems understand e.g. LANG=C (notably SCO).
471# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
472# Non-C LC_CTYPE values break the ctype check.
473if test "${LANG+set}" = set; then LANG=C; export LANG; fi
474if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
475if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
476if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
477
478# confdefs.h avoids OS command line length limits that DEFS can exceed.
479rm -rf conftest* confdefs.h
480# AIX cpp loses on an empty file, so make sure it contains at least a newline.
481echo > confdefs.h
482
483# A filename unique to this package, relative to the directory that
484# configure is in, which we can look for to find out if srcdir is correct.
485ac_unique_file=zlib.h
486
487# Find the source files, if location was not specified.
488if test -z "$srcdir"; then
489 ac_srcdir_defaulted=yes
490 # Try the directory containing this script, then its parent.
491 ac_prog=$0
492 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
493 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
494 srcdir=$ac_confdir
495 if test ! -r $srcdir/$ac_unique_file; then
496 srcdir=..
497 fi
498else
499 ac_srcdir_defaulted=no
500fi
501if test ! -r $srcdir/$ac_unique_file; then
502 if test "$ac_srcdir_defaulted" = yes; then
503 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
504 else
505 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
506 fi
507fi
508srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
509
510# Prefer explicitly selected file to automatically selected ones.
35241f18
CD
511if test -z "$sitefile"; then
512 if test -z "$CONFIG_SITE"; then
513 if test "x$prefix" != xNONE; then
514 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
515 else
516 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
517 fi
dfac8a13 518 fi
35241f18
CD
519else
520 CONFIG_SITE="$sitefile"
dfac8a13
TT
521fi
522for ac_site_file in $CONFIG_SITE; do
523 if test -r "$ac_site_file"; then
524 echo "loading site script $ac_site_file"
525 . "$ac_site_file"
526 fi
527done
528
529if test -r "$cache_file"; then
530 echo "loading cache $cache_file"
531 . $cache_file
532else
533 echo "creating cache $cache_file"
534 > $cache_file
535fi
536
537ac_ext=c
538# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
539ac_cpp='$CPP $CPPFLAGS'
540ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
541ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
542cross_compiling=$ac_cv_prog_cc_cross
543
544ac_exeext=
545ac_objext=o
546if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
547 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
548 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
549 ac_n= ac_c='
550' ac_t=' '
551 else
552 ac_n=-n ac_c= ac_t=
553 fi
554else
555 ac_n= ac_c='\c' ac_t=
556fi
557
558
0fd91e0a
AO
559
560
561if test "x${with_target_subdir}" != x && \
562 test "${srcdir}" = "."; then
563 if test "${with_target_subdir}" != "."; then
564 zlib_basedir="${srcdir}/${with_multisrctop}../"
565 else
566 zlib_basedir="${srcdir}/${with_multisrctop}"
567 fi
568else
569 zlib_basedir="${srcdir}/"
570fi
571
dfac8a13 572ac_aux_dir=
0fd91e0a 573for ac_dir in $zlib_basedir.. $srcdir/$zlib_basedir..; do
dfac8a13
TT
574 if test -f $ac_dir/install-sh; then
575 ac_aux_dir=$ac_dir
576 ac_install_sh="$ac_aux_dir/install-sh -c"
577 break
578 elif test -f $ac_dir/install.sh; then
579 ac_aux_dir=$ac_dir
580 ac_install_sh="$ac_aux_dir/install.sh -c"
581 break
582 fi
583done
584if test -z "$ac_aux_dir"; then
0fd91e0a 585 { echo "configure: error: can not find install-sh or install.sh in $zlib_basedir.. $srcdir/$zlib_basedir.." 1>&2; exit 1; }
dfac8a13
TT
586fi
587ac_config_guess=$ac_aux_dir/config.guess
588ac_config_sub=$ac_aux_dir/config.sub
589ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
590
0fd91e0a
AO
591if :; then :; else
592 # This overrides the previous occurrence for automake, but not for
593 # autoconf, which is exactly what we want.
594 ac_aux_dir=
595for ac_dir in .. $srcdir/..; do
596 if test -f $ac_dir/install-sh; then
597 ac_aux_dir=$ac_dir
598 ac_install_sh="$ac_aux_dir/install-sh -c"
599 break
600 elif test -f $ac_dir/install.sh; then
601 ac_aux_dir=$ac_dir
602 ac_install_sh="$ac_aux_dir/install.sh -c"
603 break
604 fi
605done
606if test -z "$ac_aux_dir"; then
607 { echo "configure: error: can not find install-sh or install.sh in .. $srcdir/.." 1>&2; exit 1; }
608fi
609ac_config_guess=$ac_aux_dir/config.guess
610ac_config_sub=$ac_aux_dir/config.sub
611ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
612
613fi
614
dfac8a13
TT
615
616# Do some error checking and defaulting for the host and target type.
617# The inputs are:
618# configure --host=HOST --target=TARGET --build=BUILD NONOPT
619#
620# The rules are:
621# 1. You are not allowed to specify --host, --target, and nonopt at the
622# same time.
623# 2. Host defaults to nonopt.
624# 3. If nonopt is not specified, then host defaults to the current host,
625# as determined by config.guess.
626# 4. Target and build default to nonopt.
627# 5. If nonopt is not specified, then target and build default to host.
628
629# The aliases save the names the user supplied, while $host etc.
630# will get canonicalized.
631case $host---$target---$nonopt in
632NONE---*---* | *---NONE---* | *---*---NONE) ;;
633*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
634esac
635
636
637# Make sure we can run config.sub.
638if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
639else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
640fi
641
642echo $ac_n "checking host system type""... $ac_c" 1>&6
0fd91e0a 643echo "configure:644: checking host system type" >&5
dfac8a13
TT
644
645host_alias=$host
646case "$host_alias" in
647NONE)
648 case $nonopt in
649 NONE)
650 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
651 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
652 fi ;;
653 *) host_alias=$nonopt ;;
654 esac ;;
655esac
656
657host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
658host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
659host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
660host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
661echo "$ac_t""$host" 1>&6
662
663echo $ac_n "checking target system type""... $ac_c" 1>&6
0fd91e0a 664echo "configure:665: checking target system type" >&5
dfac8a13
TT
665
666target_alias=$target
667case "$target_alias" in
668NONE)
669 case $nonopt in
670 NONE) target_alias=$host_alias ;;
671 *) target_alias=$nonopt ;;
672 esac ;;
673esac
674
675target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
676target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
677target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
678target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
679echo "$ac_t""$target" 1>&6
680
681echo $ac_n "checking build system type""... $ac_c" 1>&6
0fd91e0a 682echo "configure:683: checking build system type" >&5
dfac8a13
TT
683
684build_alias=$build
685case "$build_alias" in
686NONE)
687 case $nonopt in
688 NONE) build_alias=$host_alias ;;
689 *) build_alias=$nonopt ;;
690 esac ;;
691esac
692
693build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
694build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
695build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
696build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
697echo "$ac_t""$build" 1>&6
698
699test "$host_alias" != "$target_alias" &&
700 test "$program_prefix$program_suffix$program_transform_name" = \
701 NONENONEs,x,x, &&
702 program_prefix=${target_alias}-
703
8b55628e
TT
704
705# This works around an automake problem.
706mkinstalldirs="`cd $ac_aux_dir && pwd`/mkinstalldirs"
707
708
dfac8a13
TT
709# Find a good install program. We prefer a C program (faster),
710# so one script is as good as another. But avoid the broken or
711# incompatible versions:
712# SysV /etc/install, /usr/sbin/install
713# SunOS /usr/etc/install
714# IRIX /sbin/install
715# AIX /bin/install
716# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
717# AFS /usr/afsws/bin/install, which mishandles nonexistent args
718# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
719# ./install, which can be erroneously created by make from ./install.sh.
720echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
8b55628e 721echo "configure:722: checking for a BSD compatible install" >&5
dfac8a13
TT
722if test -z "$INSTALL"; then
723if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
724 echo $ac_n "(cached) $ac_c" 1>&6
725else
726 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
727 for ac_dir in $PATH; do
728 # Account for people who put trailing slashes in PATH elements.
729 case "$ac_dir/" in
730 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
731 *)
732 # OSF1 and SCO ODT 3.0 have their own names for install.
733 # Don't use installbsd from OSF since it installs stuff as root
734 # by default.
735 for ac_prog in ginstall scoinst install; do
736 if test -f $ac_dir/$ac_prog; then
737 if test $ac_prog = install &&
738 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
739 # AIX install. It has an incompatible calling convention.
740 :
741 else
742 ac_cv_path_install="$ac_dir/$ac_prog -c"
743 break 2
744 fi
745 fi
746 done
747 ;;
748 esac
749 done
750 IFS="$ac_save_IFS"
751
752fi
753 if test "${ac_cv_path_install+set}" = set; then
754 INSTALL="$ac_cv_path_install"
755 else
756 # As a last resort, use the slow shell script. We don't cache a
757 # path for INSTALL within a source directory, because that will
758 # break other packages using the cache if that directory is
759 # removed, or if the path is relative.
760 INSTALL="$ac_install_sh"
761 fi
762fi
763echo "$ac_t""$INSTALL" 1>&6
764
765# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
766# It thinks the first close brace ends the variable substitution.
767test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
768
769test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
770
771test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
772
773echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
8b55628e 774echo "configure:775: checking whether build environment is sane" >&5
dfac8a13
TT
775# Just in case
776sleep 1
777echo timestamp > conftestfile
778# Do `set' in a subshell so we don't clobber the current shell's
779# arguments. Must try -L first in case configure is actually a
780# symlink; some systems play weird games with the mod time of symlinks
781# (eg FreeBSD returns the mod time of the symlink's containing
782# directory).
783if (
784 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
785 if test "$*" = "X"; then
786 # -L didn't work.
787 set X `ls -t $srcdir/configure conftestfile`
788 fi
789 if test "$*" != "X $srcdir/configure conftestfile" \
790 && test "$*" != "X conftestfile $srcdir/configure"; then
791
792 # If neither matched, then we have a broken ls. This can happen
793 # if, for instance, CONFIG_SHELL is bash and it inherits a
794 # broken ls alias from the environment. This has actually
795 # happened. Such a system could not be considered "sane".
796 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
797alias in your environment" 1>&2; exit 1; }
798 fi
799
800 test "$2" = conftestfile
801 )
802then
803 # Ok.
804 :
805else
806 { echo "configure: error: newly created file is older than distributed files!
807Check your system clock" 1>&2; exit 1; }
808fi
809rm -f conftest*
810echo "$ac_t""yes" 1>&6
811if test "$program_transform_name" = s,x,x,; then
812 program_transform_name=
813else
814 # Double any \ or $. echo might interpret backslashes.
815 cat <<\EOF_SED > conftestsed
816s,\\,\\\\,g; s,\$,$$,g
817EOF_SED
818 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
819 rm -f conftestsed
820fi
821test "$program_prefix" != NONE &&
822 program_transform_name="s,^,${program_prefix},; $program_transform_name"
823# Use a double $ so make ignores it.
824test "$program_suffix" != NONE &&
825 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
826
827# sed with no file args requires a program.
828test "$program_transform_name" = "" && program_transform_name="s,x,x,"
829
830echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
8b55628e 831echo "configure:832: checking whether ${MAKE-make} sets \${MAKE}" >&5
dfac8a13
TT
832set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
833if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
834 echo $ac_n "(cached) $ac_c" 1>&6
835else
836 cat > conftestmake <<\EOF
837all:
838 @echo 'ac_maketemp="${MAKE}"'
839EOF
840# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
841eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
842if test -n "$ac_maketemp"; then
843 eval ac_cv_prog_make_${ac_make}_set=yes
844else
845 eval ac_cv_prog_make_${ac_make}_set=no
846fi
847rm -f conftestmake
848fi
849if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
850 echo "$ac_t""yes" 1>&6
851 SET_MAKE=
852else
853 echo "$ac_t""no" 1>&6
854 SET_MAKE="MAKE=${MAKE-make}"
855fi
856
857
858PACKAGE=zlib
859
860VERSION=1.1.3
861
862if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
863 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
864fi
865cat >> confdefs.h <<EOF
866#define PACKAGE "$PACKAGE"
867EOF
868
869cat >> confdefs.h <<EOF
870#define VERSION "$VERSION"
871EOF
872
873
874
875missing_dir=`cd $ac_aux_dir && pwd`
876echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
8b55628e 877echo "configure:878: checking for working aclocal" >&5
dfac8a13
TT
878# Run test in a subshell; some versions of sh will print an error if
879# an executable is not found, even if stderr is redirected.
880# Redirect stdin to placate older versions of autoconf. Sigh.
881if (aclocal --version) < /dev/null > /dev/null 2>&1; then
882 ACLOCAL=aclocal
883 echo "$ac_t""found" 1>&6
884else
885 ACLOCAL="$missing_dir/missing aclocal"
886 echo "$ac_t""missing" 1>&6
887fi
888
889echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
8b55628e 890echo "configure:891: checking for working autoconf" >&5
dfac8a13
TT
891# Run test in a subshell; some versions of sh will print an error if
892# an executable is not found, even if stderr is redirected.
893# Redirect stdin to placate older versions of autoconf. Sigh.
894if (autoconf --version) < /dev/null > /dev/null 2>&1; then
895 AUTOCONF=autoconf
896 echo "$ac_t""found" 1>&6
897else
898 AUTOCONF="$missing_dir/missing autoconf"
899 echo "$ac_t""missing" 1>&6
900fi
901
902echo $ac_n "checking for working automake""... $ac_c" 1>&6
8b55628e 903echo "configure:904: checking for working automake" >&5
dfac8a13
TT
904# Run test in a subshell; some versions of sh will print an error if
905# an executable is not found, even if stderr is redirected.
906# Redirect stdin to placate older versions of autoconf. Sigh.
907if (automake --version) < /dev/null > /dev/null 2>&1; then
908 AUTOMAKE=automake
909 echo "$ac_t""found" 1>&6
910else
911 AUTOMAKE="$missing_dir/missing automake"
912 echo "$ac_t""missing" 1>&6
913fi
914
915echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
8b55628e 916echo "configure:917: checking for working autoheader" >&5
dfac8a13
TT
917# Run test in a subshell; some versions of sh will print an error if
918# an executable is not found, even if stderr is redirected.
919# Redirect stdin to placate older versions of autoconf. Sigh.
920if (autoheader --version) < /dev/null > /dev/null 2>&1; then
921 AUTOHEADER=autoheader
922 echo "$ac_t""found" 1>&6
923else
924 AUTOHEADER="$missing_dir/missing autoheader"
925 echo "$ac_t""missing" 1>&6
926fi
927
928echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
8b55628e 929echo "configure:930: checking for working makeinfo" >&5
dfac8a13
TT
930# Run test in a subshell; some versions of sh will print an error if
931# an executable is not found, even if stderr is redirected.
932# Redirect stdin to placate older versions of autoconf. Sigh.
933if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
934 MAKEINFO=makeinfo
935 echo "$ac_t""found" 1>&6
936else
937 MAKEINFO="$missing_dir/missing makeinfo"
938 echo "$ac_t""missing" 1>&6
939fi
940
941
942
e093c992 943echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
8b55628e 944echo "configure:945: checking whether to enable maintainer-specific portions of Makefiles" >&5
e093c992
AG
945 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
946if test "${enable_maintainer_mode+set}" = set; then
947 enableval="$enable_maintainer_mode"
948 USE_MAINTAINER_MODE=$enableval
949else
950 USE_MAINTAINER_MODE=no
951fi
952
953 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
954
955
956if test $USE_MAINTAINER_MODE = yes; then
957 MAINTAINER_MODE_TRUE=
958 MAINTAINER_MODE_FALSE='#'
959else
960 MAINTAINER_MODE_TRUE='#'
961 MAINTAINER_MODE_FALSE=
962fi
963 MAINT=$MAINTAINER_MODE_TRUE
964
965
966
dfac8a13
TT
967# Check whether --with-target-subdir or --without-target-subdir was given.
968if test "${with_target_subdir+set}" = set; then
969 withval="$with_target_subdir"
970 :
971fi
972
973# Check whether --with-cross-host or --without-cross-host was given.
974if test "${with_cross_host+set}" = set; then
975 withval="$with_cross_host"
976 :
977fi
978
979
980# Check whether --enable-multilib or --disable-multilib was given.
981if test "${enable_multilib+set}" = set; then
982 enableval="$enable_multilib"
983 case "${enableval}" in
984 yes) multilib=yes ;;
985 no) multilib=no ;;
986 *) { echo "configure: error: bad value ${enableval} for multilib option" 1>&2; exit 1; } ;;
987 esac
988else
67d08194 989 test -z "$with_target_subdir" && multilib=no || multilib=yes
dfac8a13
TT
990fi
991
79a9a529
TT
992# Check whether --with-system-zlib or --without-system-zlib was given.
993if test "${with_system_zlib+set}" = set; then
994 withval="$with_system_zlib"
995 :
996fi
997
998
025fd00e 999
dfac8a13
TT
1000# Extract the first word of "gcc", so it can be a program name with args.
1001set dummy gcc; ac_word=$2
1002echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8b55628e 1003echo "configure:1004: checking for $ac_word" >&5
dfac8a13
TT
1004if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1005 echo $ac_n "(cached) $ac_c" 1>&6
1006else
1007 if test -n "$CC"; then
1008 ac_cv_prog_CC="$CC" # Let the user override the test.
1009else
1010 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1011 ac_dummy="$PATH"
1012 for ac_dir in $ac_dummy; do
1013 test -z "$ac_dir" && ac_dir=.
1014 if test -f $ac_dir/$ac_word; then
1015 ac_cv_prog_CC="gcc"
1016 break
1017 fi
1018 done
1019 IFS="$ac_save_ifs"
1020fi
1021fi
1022CC="$ac_cv_prog_CC"
1023if test -n "$CC"; then
1024 echo "$ac_t""$CC" 1>&6
1025else
1026 echo "$ac_t""no" 1>&6
1027fi
1028
1029if test -z "$CC"; then
1030 # Extract the first word of "cc", so it can be a program name with args.
1031set dummy cc; ac_word=$2
1032echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8b55628e 1033echo "configure:1034: checking for $ac_word" >&5
dfac8a13
TT
1034if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1035 echo $ac_n "(cached) $ac_c" 1>&6
1036else
1037 if test -n "$CC"; then
1038 ac_cv_prog_CC="$CC" # Let the user override the test.
1039else
1040 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1041 ac_prog_rejected=no
1042 ac_dummy="$PATH"
1043 for ac_dir in $ac_dummy; do
1044 test -z "$ac_dir" && ac_dir=.
1045 if test -f $ac_dir/$ac_word; then
1046 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1047 ac_prog_rejected=yes
1048 continue
1049 fi
1050 ac_cv_prog_CC="cc"
1051 break
1052 fi
1053 done
1054 IFS="$ac_save_ifs"
1055if test $ac_prog_rejected = yes; then
1056 # We found a bogon in the path, so make sure we never use it.
1057 set dummy $ac_cv_prog_CC
1058 shift
1059 if test $# -gt 0; then
1060 # We chose a different compiler from the bogus one.
1061 # However, it has the same basename, so the bogon will be chosen
1062 # first if we set CC to just the basename; use the full file name.
1063 shift
1064 set dummy "$ac_dir/$ac_word" "$@"
1065 shift
1066 ac_cv_prog_CC="$@"
1067 fi
1068fi
1069fi
1070fi
1071CC="$ac_cv_prog_CC"
1072if test -n "$CC"; then
1073 echo "$ac_t""$CC" 1>&6
1074else
1075 echo "$ac_t""no" 1>&6
1076fi
1077
1078 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1079fi
1080
1081echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
8b55628e 1082echo "configure:1083: checking whether we are using GNU C" >&5
dfac8a13
TT
1083if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1084 echo $ac_n "(cached) $ac_c" 1>&6
1085else
1086 cat > conftest.c <<EOF
1087#ifdef __GNUC__
1088 yes;
1089#endif
1090EOF
8b55628e 1091if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1092: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
dfac8a13
TT
1092 ac_cv_prog_gcc=yes
1093else
1094 ac_cv_prog_gcc=no
1095fi
1096fi
1097
1098echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1099
1100if test $ac_cv_prog_gcc = yes; then
1101 GCC=yes
1102 ac_test_CFLAGS="${CFLAGS+set}"
1103 ac_save_CFLAGS="$CFLAGS"
1104 CFLAGS=
1105 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
8b55628e 1106echo "configure:1107: checking whether ${CC-cc} accepts -g" >&5
dfac8a13
TT
1107if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1108 echo $ac_n "(cached) $ac_c" 1>&6
1109else
1110 echo 'void f(){}' > conftest.c
1111if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1112 ac_cv_prog_cc_g=yes
1113else
1114 ac_cv_prog_cc_g=no
1115fi
1116rm -f conftest*
1117
1118fi
1119
1120echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1121 if test "$ac_test_CFLAGS" = set; then
1122 CFLAGS="$ac_save_CFLAGS"
1123 elif test $ac_cv_prog_cc_g = yes; then
1124 CFLAGS="-g -O2"
1125 else
1126 CFLAGS="-O2"
1127 fi
1128else
1129 GCC=
1130 test "${CFLAGS+set}" = set || CFLAGS="-g"
1131fi
1132
e093c992
AG
1133# We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1134# at least currently, we never actually build a program, so we never
1135# need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1136# fails, because we are probably configuring with a cross compiler
1137# which cant create executables. So we include AC_EXEEXT to keep
1138# automake happy, but we dont execute it, since we dont care about
1139# the result.
1140if false; then
01ef8751
AO
1141 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1142 # to nothing, so nothing would remain between `then' and `fi' if it
1143 # were not for the `:' below.
1144 :
e093c992 1145 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
8b55628e 1146echo "configure:1147: checking for Cygwin environment" >&5
5d836b57
TT
1147if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1148 echo $ac_n "(cached) $ac_c" 1>&6
1149else
1150 cat > conftest.$ac_ext <<EOF
8b55628e 1151#line 1152 "configure"
5d836b57
TT
1152#include "confdefs.h"
1153
1154int main() {
1155
1156#ifndef __CYGWIN__
1157#define __CYGWIN__ __CYGWIN32__
1158#endif
1159return __CYGWIN__;
1160; return 0; }
1161EOF
8b55628e 1162if { (eval echo configure:1163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5d836b57
TT
1163 rm -rf conftest*
1164 ac_cv_cygwin=yes
1165else
1166 echo "configure: failed program was:" >&5
1167 cat conftest.$ac_ext >&5
1168 rm -rf conftest*
1169 ac_cv_cygwin=no
1170fi
1171rm -f conftest*
1172rm -f conftest*
1173fi
1174
1175echo "$ac_t""$ac_cv_cygwin" 1>&6
1176CYGWIN=
1177test "$ac_cv_cygwin" = yes && CYGWIN=yes
1178echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
8b55628e 1179echo "configure:1180: checking for mingw32 environment" >&5
5d836b57
TT
1180if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1181 echo $ac_n "(cached) $ac_c" 1>&6
1182else
1183 cat > conftest.$ac_ext <<EOF
8b55628e 1184#line 1185 "configure"
5d836b57
TT
1185#include "confdefs.h"
1186
1187int main() {
1188return __MINGW32__;
1189; return 0; }
1190EOF
8b55628e 1191if { (eval echo configure:1192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5d836b57
TT
1192 rm -rf conftest*
1193 ac_cv_mingw32=yes
1194else
1195 echo "configure: failed program was:" >&5
1196 cat conftest.$ac_ext >&5
1197 rm -rf conftest*
1198 ac_cv_mingw32=no
1199fi
1200rm -f conftest*
1201rm -f conftest*
1202fi
1203
1204echo "$ac_t""$ac_cv_mingw32" 1>&6
1205MINGW32=
1206test "$ac_cv_mingw32" = yes && MINGW32=yes
1207
1208
1209echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
8b55628e 1210echo "configure:1211: checking for executable suffix" >&5
5d836b57
TT
1211if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1212 echo $ac_n "(cached) $ac_c" 1>&6
1213else
1214 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1215 ac_cv_exeext=.exe
1216else
1217 rm -f conftest*
1218 echo 'int main () { return 0; }' > conftest.$ac_ext
1219 ac_cv_exeext=
8b55628e 1220 if { (eval echo configure:1221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
5d836b57
TT
1221 for file in conftest.*; do
1222 case $file in
35241f18 1223 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
5d836b57
TT
1224 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1225 esac
1226 done
1227 else
1228 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1229 fi
1230 rm -f conftest*
1231 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1232fi
1233fi
1234
1235EXEEXT=""
1236test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1237echo "$ac_t""${ac_cv_exeext}" 1>&6
1238ac_exeext=$EXEEXT
1239
5d836b57 1240fi
dfac8a13
TT
1241# Check whether --enable-shared or --disable-shared was given.
1242if test "${enable_shared+set}" = set; then
1243 enableval="$enable_shared"
1244 p=${PACKAGE-default}
0fd91e0a 1245case $enableval in
dfac8a13
TT
1246yes) enable_shared=yes ;;
1247no) enable_shared=no ;;
1248*)
1249 enable_shared=no
1250 # Look at the argument we got. We use all the common list separators.
1251 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1252 for pkg in $enableval; do
1253 if test "X$pkg" = "X$p"; then
1254 enable_shared=yes
1255 fi
1256 done
1257 IFS="$ac_save_ifs"
1258 ;;
1259esac
1260else
1261 enable_shared=yes
1262fi
1263
1264# Check whether --enable-static or --disable-static was given.
1265if test "${enable_static+set}" = set; then
1266 enableval="$enable_static"
1267 p=${PACKAGE-default}
0fd91e0a 1268case $enableval in
dfac8a13
TT
1269yes) enable_static=yes ;;
1270no) enable_static=no ;;
1271*)
1272 enable_static=no
1273 # Look at the argument we got. We use all the common list separators.
1274 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1275 for pkg in $enableval; do
1276 if test "X$pkg" = "X$p"; then
1277 enable_static=yes
1278 fi
1279 done
1280 IFS="$ac_save_ifs"
1281 ;;
1282esac
1283else
1284 enable_static=yes
1285fi
1286
1287# Check whether --enable-fast-install or --disable-fast-install was given.
1288if test "${enable_fast_install+set}" = set; then
1289 enableval="$enable_fast_install"
1290 p=${PACKAGE-default}
0fd91e0a 1291case $enableval in
dfac8a13
TT
1292yes) enable_fast_install=yes ;;
1293no) enable_fast_install=no ;;
1294*)
1295 enable_fast_install=no
1296 # Look at the argument we got. We use all the common list separators.
1297 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1298 for pkg in $enableval; do
1299 if test "X$pkg" = "X$p"; then
1300 enable_fast_install=yes
1301 fi
1302 done
1303 IFS="$ac_save_ifs"
1304 ;;
1305esac
1306else
1307 enable_fast_install=yes
1308fi
1309
dfac8a13
TT
1310# Check whether --with-gnu-ld or --without-gnu-ld was given.
1311if test "${with_gnu_ld+set}" = set; then
1312 withval="$with_gnu_ld"
1313 test "$withval" = no || with_gnu_ld=yes
1314else
1315 with_gnu_ld=no
1316fi
1317
1318ac_prog=ld
0fd91e0a 1319if test "$GCC" = yes; then
dfac8a13
TT
1320 # Check if gcc -print-prog-name=ld gives a path.
1321 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
8b55628e 1322echo "configure:1323: checking for ld used by GCC" >&5
0fd91e0a
AO
1323 case $host in
1324 *-*-mingw*)
1325 # gcc leaves a trailing carriage return which upsets mingw
1326 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1327 *)
1328 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1329 esac
1330 case $ac_prog in
dfac8a13 1331 # Accept absolute paths.
0fd91e0a 1332 [\\/]* | [A-Za-z]:[\\/]*)
dfac8a13
TT
1333 re_direlt='/[^/][^/]*/\.\./'
1334 # Canonicalize the path of ld
1335 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1336 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1337 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1338 done
1339 test -z "$LD" && LD="$ac_prog"
1340 ;;
1341 "")
1342 # If it fails, then pretend we aren't using GCC.
1343 ac_prog=ld
1344 ;;
1345 *)
1346 # If it is relative, then search for the first ld in PATH.
1347 with_gnu_ld=unknown
1348 ;;
1349 esac
1350elif test "$with_gnu_ld" = yes; then
1351 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
8b55628e 1352echo "configure:1353: checking for GNU ld" >&5
dfac8a13
TT
1353else
1354 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
8b55628e 1355echo "configure:1356: checking for non-GNU ld" >&5
dfac8a13 1356fi
0fd91e0a 1357if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
dfac8a13
TT
1358 echo $ac_n "(cached) $ac_c" 1>&6
1359else
1360 if test -z "$LD"; then
0fd91e0a 1361 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
dfac8a13
TT
1362 for ac_dir in $PATH; do
1363 test -z "$ac_dir" && ac_dir=.
0fd91e0a
AO
1364 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1365 lt_cv_path_LD="$ac_dir/$ac_prog"
dfac8a13
TT
1366 # Check to see if the program is GNU ld. I'd rather use --version,
1367 # but apparently some GNU ld's only accept -v.
1368 # Break only if it was the GNU/non-GNU ld that we prefer.
0fd91e0a 1369 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
dfac8a13
TT
1370 test "$with_gnu_ld" != no && break
1371 else
1372 test "$with_gnu_ld" != yes && break
1373 fi
1374 fi
1375 done
1376 IFS="$ac_save_ifs"
1377else
0fd91e0a 1378 lt_cv_path_LD="$LD" # Let the user override the test with a path.
dfac8a13
TT
1379fi
1380fi
1381
0fd91e0a 1382LD="$lt_cv_path_LD"
dfac8a13
TT
1383if test -n "$LD"; then
1384 echo "$ac_t""$LD" 1>&6
1385else
1386 echo "$ac_t""no" 1>&6
1387fi
1388test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
dfac8a13 1389echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
8b55628e 1390echo "configure:1391: checking if the linker ($LD) is GNU ld" >&5
0fd91e0a 1391if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
dfac8a13
TT
1392 echo $ac_n "(cached) $ac_c" 1>&6
1393else
1394 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1395if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
0fd91e0a 1396 lt_cv_prog_gnu_ld=yes
dfac8a13 1397else
0fd91e0a 1398 lt_cv_prog_gnu_ld=no
dfac8a13
TT
1399fi
1400fi
1401
0fd91e0a
AO
1402echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1403with_gnu_ld=$lt_cv_prog_gnu_ld
dfac8a13
TT
1404
1405
0fd91e0a 1406echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
8b55628e 1407echo "configure:1408: checking for $LD option to reload object files" >&5
0fd91e0a
AO
1408if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1409 echo $ac_n "(cached) $ac_c" 1>&6
1410else
1411 lt_cv_ld_reload_flag='-r'
1412fi
1413
1414echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1415reload_flag=$lt_cv_ld_reload_flag
1416test -n "$reload_flag" && reload_flag=" $reload_flag"
1417
dfac8a13 1418echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
8b55628e 1419echo "configure:1420: checking for BSD-compatible nm" >&5
0fd91e0a 1420if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
dfac8a13
TT
1421 echo $ac_n "(cached) $ac_c" 1>&6
1422else
1423 if test -n "$NM"; then
1424 # Let the user override the test.
0fd91e0a 1425 lt_cv_path_NM="$NM"
dfac8a13 1426else
0fd91e0a 1427 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
dfac8a13
TT
1428 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1429 test -z "$ac_dir" && ac_dir=.
0fd91e0a
AO
1430 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1431 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
dfac8a13
TT
1432 # Check to see if the nm accepts a BSD-compat flag.
1433 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1434 # nm: unknown option "B" ignored
0fd91e0a
AO
1435 # Tru64's nm complains that /dev/null is an invalid object file
1436 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1437 lt_cv_path_NM="$tmp_nm -B"
dfac8a13 1438 break
0fd91e0a
AO
1439 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1440 lt_cv_path_NM="$tmp_nm -p"
dfac8a13
TT
1441 break
1442 else
0fd91e0a 1443 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
dfac8a13
TT
1444 continue # so that we can try to find one that supports BSD flags
1445 fi
1446 fi
1447 done
1448 IFS="$ac_save_ifs"
0fd91e0a 1449 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
dfac8a13
TT
1450fi
1451fi
1452
0fd91e0a 1453NM="$lt_cv_path_NM"
dfac8a13
TT
1454echo "$ac_t""$NM" 1>&6
1455
0fd91e0a 1456echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
8b55628e 1457echo "configure:1458: checking whether ln -s works" >&5
0fd91e0a 1458if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
025fd00e
TT
1459 echo $ac_n "(cached) $ac_c" 1>&6
1460else
0fd91e0a
AO
1461 rm -f conftestdata
1462if ln -s X conftestdata 2>/dev/null
1463then
1464 rm -f conftestdata
1465 ac_cv_prog_LN_S="ln -s"
1466else
1467 ac_cv_prog_LN_S=ln
1468fi
1469fi
1470LN_S="$ac_cv_prog_LN_S"
1471if test "$ac_cv_prog_LN_S" = "ln -s"; then
1472 echo "$ac_t""yes" 1>&6
1473else
1474 echo "$ac_t""no" 1>&6
1475fi
025fd00e 1476
0fd91e0a 1477echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
8b55628e 1478echo "configure:1479: checking how to recognise dependant libraries" >&5
0fd91e0a
AO
1479if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1480 echo $ac_n "(cached) $ac_c" 1>&6
1481else
1482 lt_cv_file_magic_cmd='$MAGIC_CMD'
1483lt_cv_file_magic_test_file=
1484lt_cv_deplibs_check_method='unknown'
1485# Need to set the preceding variable on all platforms that support
1486# interlibrary dependencies.
1487# 'none' -- dependencies not supported.
1488# `unknown' -- same as none, but documents that we really don't know.
1489# 'pass_all' -- all dependencies passed with no checks.
1490# 'test_compile' -- check by making test program.
1491# 'file_magic [regex]' -- check by looking for files in library path
1492# which responds to the $file_magic_cmd with a given egrep regex.
1493# If you have `file' or equivalent on your system and you're not sure
1494# whether `pass_all' will *always* work, you probably want this one.
1495
1496case $host_os in
025fd00e 1497aix*)
0fd91e0a 1498 lt_cv_deplibs_check_method=pass_all
025fd00e 1499 ;;
025fd00e 1500
0fd91e0a
AO
1501beos*)
1502 lt_cv_deplibs_check_method=pass_all
1503 ;;
025fd00e 1504
0fd91e0a
AO
1505bsdi4*)
1506 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1507 lt_cv_file_magic_cmd='/usr/bin/file -L'
1508 lt_cv_file_magic_test_file=/shlib/libc.so
1509 ;;
025fd00e 1510
0fd91e0a
AO
1511cygwin* | mingw* |pw32*)
1512 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1513 lt_cv_file_magic_cmd='$OBJDUMP -f'
1514 ;;
025fd00e 1515
0fd91e0a
AO
1516darwin* | rhapsody*)
1517 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1518 lt_cv_file_magic_cmd='/usr/bin/file -L'
1519 case "$host_os" in
1520 rhapsody* | darwin1.012)
1521 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1522 ;;
1523 *) # Darwin 1.3 on
1524 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1525 ;;
1526 esac
1527 ;;
025fd00e 1528
0fd91e0a
AO
1529freebsd* )
1530 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1531 case $host_cpu in
1532 i*86 )
1533 # Not sure whether the presence of OpenBSD here was a mistake.
1534 # Let's accept both of them until this is cleared up.
1535 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1536 lt_cv_file_magic_cmd=/usr/bin/file
1537 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1538 ;;
1539 esac
1540 else
1541 lt_cv_deplibs_check_method=pass_all
1542 fi
1543 ;;
025fd00e 1544
0fd91e0a
AO
1545gnu*)
1546 lt_cv_deplibs_check_method=pass_all
1547 ;;
025fd00e 1548
0fd91e0a
AO
1549hpux10.20*|hpux11*)
1550 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1551 lt_cv_file_magic_cmd=/usr/bin/file
1552 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1553 ;;
025fd00e 1554
0fd91e0a
AO
1555irix5* | irix6*)
1556 case $host_os in
1557 irix5*)
1558 # this will be overridden with pass_all, but let us keep it just in case
1559 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1560 ;;
1561 *)
1562 case $LD in
1563 *-32|*"-32 ") libmagic=32-bit;;
1564 *-n32|*"-n32 ") libmagic=N32;;
1565 *-64|*"-64 ") libmagic=64-bit;;
1566 *) libmagic=never-match;;
1567 esac
1568 # this will be overridden with pass_all, but let us keep it just in case
1569 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1570 ;;
1571 esac
1572 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1573 lt_cv_deplibs_check_method=pass_all
1574 ;;
025fd00e 1575
0fd91e0a
AO
1576# This must be Linux ELF.
1577linux-gnu*)
1578 case $host_cpu in
33456445 1579 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
0fd91e0a
AO
1580 lt_cv_deplibs_check_method=pass_all ;;
1581 *)
1582 # glibc up to 2.1.1 does not perform some relocations on ARM
1583 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1584 esac
1585 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1586 ;;
025fd00e 1587
0fd91e0a
AO
1588netbsd*)
1589 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1590 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
025fd00e 1591 else
0fd91e0a 1592 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
025fd00e 1593 fi
0fd91e0a 1594 ;;
025fd00e 1595
0fd91e0a
AO
1596newsos6)
1597 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1598 lt_cv_file_magic_cmd=/usr/bin/file
1599 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1600 ;;
025fd00e 1601
0fd91e0a
AO
1602osf3* | osf4* | osf5*)
1603 # this will be overridden with pass_all, but let us keep it just in case
1604 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1605 lt_cv_file_magic_test_file=/shlib/libc.so
1606 lt_cv_deplibs_check_method=pass_all
1607 ;;
025fd00e 1608
0fd91e0a
AO
1609sco3.2v5*)
1610 lt_cv_deplibs_check_method=pass_all
1611 ;;
025fd00e 1612
0fd91e0a
AO
1613solaris*)
1614 lt_cv_deplibs_check_method=pass_all
1615 lt_cv_file_magic_test_file=/lib/libc.so
1616 ;;
025fd00e 1617
33456445
AO
1618sysv5uw[78]* | sysv4*uw2*)
1619 lt_cv_deplibs_check_method=pass_all
1620 ;;
1621
0fd91e0a
AO
1622sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1623 case $host_vendor in
1624 ncr)
1625 lt_cv_deplibs_check_method=pass_all
1626 ;;
1627 motorola)
1628 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]'
1629 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1630 ;;
1631 esac
1632 ;;
1633esac
025fd00e
TT
1634
1635fi
1636
0fd91e0a
AO
1637echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1638file_magic_cmd=$lt_cv_file_magic_cmd
1639deplibs_check_method=$lt_cv_deplibs_check_method
025fd00e 1640
0fd91e0a 1641echo $ac_n "checking for object suffix""... $ac_c" 1>&6
8b55628e 1642echo "configure:1643: checking for object suffix" >&5
0fd91e0a 1643if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
dfac8a13
TT
1644 echo $ac_n "(cached) $ac_c" 1>&6
1645else
0fd91e0a
AO
1646 rm -f conftest*
1647echo 'int i = 1;' > conftest.$ac_ext
8b55628e 1648if { (eval echo configure:1649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
0fd91e0a
AO
1649 for ac_file in conftest.*; do
1650 case $ac_file in
1651 *.c) ;;
1652 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1653 esac
1654 done
dfac8a13 1655else
0fd91e0a 1656 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
dfac8a13 1657fi
0fd91e0a 1658rm -f conftest*
dfac8a13
TT
1659fi
1660
0fd91e0a
AO
1661echo "$ac_t""$ac_cv_objext" 1>&6
1662OBJEXT=$ac_cv_objext
1663ac_objext=$ac_cv_objext
1664
025fd00e
TT
1665if test $host != $build; then
1666 ac_tool_prefix=${host_alias}-
1667else
1668 ac_tool_prefix=
1669fi
1670
0fd91e0a 1671# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
dfac8a13 1672
0fd91e0a
AO
1673# Only perform the check for file, if the check method requires it
1674case $deplibs_check_method in
1675file_magic*)
1676 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1677 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
8b55628e 1678echo "configure:1679: checking for ${ac_tool_prefix}file" >&5
0fd91e0a
AO
1679if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1680 echo $ac_n "(cached) $ac_c" 1>&6
1681else
1682 case $MAGIC_CMD in
1683 /*)
1684 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1685 ;;
1686 ?:/*)
1687 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1688 ;;
1689 *)
1690 ac_save_MAGIC_CMD="$MAGIC_CMD"
1691 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1692 ac_dummy="/usr/bin:$PATH"
1693 for ac_dir in $ac_dummy; do
1694 test -z "$ac_dir" && ac_dir=.
1695 if test -f $ac_dir/${ac_tool_prefix}file; then
1696 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
1697 if test -n "$file_magic_test_file"; then
1698 case $deplibs_check_method in
1699 "file_magic "*)
1700 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1701 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1702 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1703 egrep "$file_magic_regex" > /dev/null; then
1704 :
1705 else
1706 cat <<EOF 1>&2
dfac8a13 1707
0fd91e0a
AO
1708*** Warning: the command libtool uses to detect shared libraries,
1709*** $file_magic_cmd, produces output that libtool cannot recognize.
1710*** The result is that libtool may fail to recognize shared libraries
1711*** as such. This will affect the creation of libtool libraries that
1712*** depend on shared libraries, but programs linked with such libtool
1713*** libraries will work regardless of this problem. Nevertheless, you
1714*** may want to report the problem to your system manager and/or to
1715*** bug-libtool@gnu.org
1716
1717EOF
1718 fi ;;
1719 esac
1720 fi
1721 break
1722 fi
1723 done
1724 IFS="$ac_save_ifs"
1725 MAGIC_CMD="$ac_save_MAGIC_CMD"
dfac8a13 1726 ;;
0fd91e0a
AO
1727esac
1728fi
dfac8a13 1729
0fd91e0a
AO
1730MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1731if test -n "$MAGIC_CMD"; then
1732 echo "$ac_t""$MAGIC_CMD" 1>&6
1733else
1734 echo "$ac_t""no" 1>&6
1735fi
1736
1737if test -z "$lt_cv_path_MAGIC_CMD"; then
1738 if test -n "$ac_tool_prefix"; then
1739 echo $ac_n "checking for file""... $ac_c" 1>&6
8b55628e 1740echo "configure:1741: checking for file" >&5
0fd91e0a 1741if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
dfac8a13
TT
1742 echo $ac_n "(cached) $ac_c" 1>&6
1743else
0fd91e0a
AO
1744 case $MAGIC_CMD in
1745 /*)
1746 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1747 ;;
1748 ?:/*)
1749 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1750 ;;
1751 *)
1752 ac_save_MAGIC_CMD="$MAGIC_CMD"
1753 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1754 ac_dummy="/usr/bin:$PATH"
1755 for ac_dir in $ac_dummy; do
1756 test -z "$ac_dir" && ac_dir=.
1757 if test -f $ac_dir/file; then
1758 lt_cv_path_MAGIC_CMD="$ac_dir/file"
1759 if test -n "$file_magic_test_file"; then
1760 case $deplibs_check_method in
1761 "file_magic "*)
1762 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1763 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1764 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1765 egrep "$file_magic_regex" > /dev/null; then
1766 :
1767 else
1768 cat <<EOF 1>&2
c45f211e 1769
0fd91e0a
AO
1770*** Warning: the command libtool uses to detect shared libraries,
1771*** $file_magic_cmd, produces output that libtool cannot recognize.
1772*** The result is that libtool may fail to recognize shared libraries
1773*** as such. This will affect the creation of libtool libraries that
1774*** depend on shared libraries, but programs linked with such libtool
1775*** libraries will work regardless of this problem. Nevertheless, you
1776*** may want to report the problem to your system manager and/or to
1777*** bug-libtool@gnu.org
dfac8a13 1778
c45f211e 1779EOF
0fd91e0a
AO
1780 fi ;;
1781 esac
1782 fi
1783 break
1784 fi
1785 done
1786 IFS="$ac_save_ifs"
1787 MAGIC_CMD="$ac_save_MAGIC_CMD"
1788 ;;
1789esac
1790fi
1791
1792MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1793if test -n "$MAGIC_CMD"; then
1794 echo "$ac_t""$MAGIC_CMD" 1>&6
dfac8a13 1795else
0fd91e0a 1796 echo "$ac_t""no" 1>&6
dfac8a13 1797fi
0fd91e0a
AO
1798
1799 else
1800 MAGIC_CMD=:
1801 fi
dfac8a13
TT
1802fi
1803
dfac8a13
TT
1804 fi
1805 ;;
0fd91e0a 1806esac
dfac8a13 1807
0fd91e0a
AO
1808# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1809set dummy ${ac_tool_prefix}ranlib; ac_word=$2
025fd00e 1810echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8b55628e 1811echo "configure:1812: checking for $ac_word" >&5
0fd91e0a 1812if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
025fd00e
TT
1813 echo $ac_n "(cached) $ac_c" 1>&6
1814else
0fd91e0a
AO
1815 if test -n "$RANLIB"; then
1816 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
025fd00e
TT
1817else
1818 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1819 ac_dummy="$PATH"
1820 for ac_dir in $ac_dummy; do
1821 test -z "$ac_dir" && ac_dir=.
1822 if test -f $ac_dir/$ac_word; then
0fd91e0a 1823 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
025fd00e
TT
1824 break
1825 fi
1826 done
1827 IFS="$ac_save_ifs"
1828fi
1829fi
0fd91e0a
AO
1830RANLIB="$ac_cv_prog_RANLIB"
1831if test -n "$RANLIB"; then
1832 echo "$ac_t""$RANLIB" 1>&6
025fd00e
TT
1833else
1834 echo "$ac_t""no" 1>&6
1835fi
1836
1837
0fd91e0a 1838if test -z "$ac_cv_prog_RANLIB"; then
025fd00e 1839if test -n "$ac_tool_prefix"; then
0fd91e0a
AO
1840 # Extract the first word of "ranlib", so it can be a program name with args.
1841set dummy ranlib; ac_word=$2
025fd00e 1842echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8b55628e 1843echo "configure:1844: checking for $ac_word" >&5
0fd91e0a 1844if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
025fd00e
TT
1845 echo $ac_n "(cached) $ac_c" 1>&6
1846else
0fd91e0a
AO
1847 if test -n "$RANLIB"; then
1848 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
025fd00e
TT
1849else
1850 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1851 ac_dummy="$PATH"
1852 for ac_dir in $ac_dummy; do
1853 test -z "$ac_dir" && ac_dir=.
1854 if test -f $ac_dir/$ac_word; then
0fd91e0a 1855 ac_cv_prog_RANLIB="ranlib"
025fd00e
TT
1856 break
1857 fi
1858 done
1859 IFS="$ac_save_ifs"
0fd91e0a 1860 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
025fd00e
TT
1861fi
1862fi
0fd91e0a
AO
1863RANLIB="$ac_cv_prog_RANLIB"
1864if test -n "$RANLIB"; then
1865 echo "$ac_t""$RANLIB" 1>&6
025fd00e
TT
1866else
1867 echo "$ac_t""no" 1>&6
1868fi
1869
1870else
0fd91e0a 1871 RANLIB=":"
025fd00e
TT
1872fi
1873fi
1874
0fd91e0a
AO
1875# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1876set dummy ${ac_tool_prefix}strip; ac_word=$2
025fd00e 1877echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8b55628e 1878echo "configure:1879: checking for $ac_word" >&5
0fd91e0a 1879if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
025fd00e
TT
1880 echo $ac_n "(cached) $ac_c" 1>&6
1881else
0fd91e0a
AO
1882 if test -n "$STRIP"; then
1883 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
025fd00e
TT
1884else
1885 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1886 ac_dummy="$PATH"
1887 for ac_dir in $ac_dummy; do
1888 test -z "$ac_dir" && ac_dir=.
1889 if test -f $ac_dir/$ac_word; then
0fd91e0a 1890 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
025fd00e
TT
1891 break
1892 fi
1893 done
1894 IFS="$ac_save_ifs"
1895fi
1896fi
0fd91e0a
AO
1897STRIP="$ac_cv_prog_STRIP"
1898if test -n "$STRIP"; then
1899 echo "$ac_t""$STRIP" 1>&6
025fd00e
TT
1900else
1901 echo "$ac_t""no" 1>&6
1902fi
1903
1904
0fd91e0a 1905if test -z "$ac_cv_prog_STRIP"; then
025fd00e 1906if test -n "$ac_tool_prefix"; then
0fd91e0a
AO
1907 # Extract the first word of "strip", so it can be a program name with args.
1908set dummy strip; ac_word=$2
025fd00e 1909echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8b55628e 1910echo "configure:1911: checking for $ac_word" >&5
0fd91e0a 1911if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
025fd00e
TT
1912 echo $ac_n "(cached) $ac_c" 1>&6
1913else
0fd91e0a
AO
1914 if test -n "$STRIP"; then
1915 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
025fd00e
TT
1916else
1917 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1918 ac_dummy="$PATH"
1919 for ac_dir in $ac_dummy; do
1920 test -z "$ac_dir" && ac_dir=.
1921 if test -f $ac_dir/$ac_word; then
0fd91e0a 1922 ac_cv_prog_STRIP="strip"
025fd00e
TT
1923 break
1924 fi
1925 done
1926 IFS="$ac_save_ifs"
0fd91e0a 1927 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
025fd00e
TT
1928fi
1929fi
0fd91e0a
AO
1930STRIP="$ac_cv_prog_STRIP"
1931if test -n "$STRIP"; then
1932 echo "$ac_t""$STRIP" 1>&6
025fd00e
TT
1933else
1934 echo "$ac_t""no" 1>&6
1935fi
1936
1937else
0fd91e0a 1938 STRIP=":"
025fd00e
TT
1939fi
1940fi
1941
1942
0fd91e0a
AO
1943# Check for any special flags to pass to ltconfig.
1944libtool_flags="--cache-file=$cache_file"
1945test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1946test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1947test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1948test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
1949test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
c45f211e 1950
025fd00e
TT
1951
1952# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1953if test "${enable_libtool_lock+set}" = set; then
1954 enableval="$enable_libtool_lock"
0fd91e0a
AO
1955 :
1956fi
1957
1958test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1959test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1960
1961# Check whether --with-pic or --without-pic was given.
1962if test "${with_pic+set}" = set; then
1963 withval="$with_pic"
1964 pic_mode="$withval"
025fd00e 1965else
0fd91e0a 1966 pic_mode=default
025fd00e
TT
1967fi
1968
0fd91e0a
AO
1969test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
1970test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
1971
1972# Some flags need to be propagated to the compiler or linker for good
1973# libtool support.
1974case $host in
1975*-*-irix6*)
1976 # Find out which ABI we are using.
8b55628e
TT
1977 echo '#line 1978 "configure"' > conftest.$ac_ext
1978 if { (eval echo configure:1979: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
0fd91e0a
AO
1979 case `/usr/bin/file conftest.$ac_objext` in
1980 *32-bit*)
1981 LD="${LD-ld} -32"
1982 ;;
1983 *N32*)
1984 LD="${LD-ld} -n32"
1985 ;;
1986 *64-bit*)
1987 LD="${LD-ld} -64"
1988 ;;
1989 esac
1990 fi
1991 rm -rf conftest*
1992 ;;
025fd00e 1993
0fd91e0a
AO
1994*-*-sco3.2v5*)
1995 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1996 SAVE_CFLAGS="$CFLAGS"
1997 CFLAGS="$CFLAGS -belf"
1998 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
8b55628e 1999echo "configure:2000: checking whether the C compiler needs -belf" >&5
0fd91e0a
AO
2000if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2001 echo $ac_n "(cached) $ac_c" 1>&6
2002else
2003
2004 ac_ext=c
2005# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2006ac_cpp='$CPP $CPPFLAGS'
2007ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2008ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2009cross_compiling=$ac_cv_prog_cc_cross
2010
2011 cat > conftest.$ac_ext <<EOF
8b55628e 2012#line 2013 "configure"
0fd91e0a
AO
2013#include "confdefs.h"
2014
2015int main() {
2016
2017; return 0; }
2018EOF
8b55628e 2019if { (eval echo configure:2020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
0fd91e0a
AO
2020 rm -rf conftest*
2021 lt_cv_cc_needs_belf=yes
2022else
2023 echo "configure: failed program was:" >&5
2024 cat conftest.$ac_ext >&5
2025 rm -rf conftest*
2026 lt_cv_cc_needs_belf=no
025fd00e 2027fi
0fd91e0a
AO
2028rm -f conftest*
2029 ac_ext=c
2030# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2031ac_cpp='$CPP $CPPFLAGS'
2032ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2033ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2034cross_compiling=$ac_cv_prog_cc_cross
2035
2036fi
2037
2038echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2039 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2040 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2041 CFLAGS="$SAVE_CFLAGS"
2042 fi
2043 ;;
2044
2045
2046esac
025fd00e 2047
dfac8a13
TT
2048
2049# Save cache, so that ltconfig can load it
2050cat > confcache <<\EOF
2051# This file is a shell script that caches the results of configure
2052# tests run on this system so they can be shared between configure
2053# scripts and configure runs. It is not useful on other systems.
2054# If it contains results you don't want to keep, you may remove or edit it.
2055#
2056# By default, configure uses ./config.cache as the cache file,
2057# creating it if it does not exist already. You can give configure
2058# the --cache-file=FILE option to use a different cache file; that is
2059# what configure does when it calls configure scripts in
2060# subdirectories, so they share the cache.
2061# Giving --cache-file=/dev/null disables caching, for debugging configure.
2062# config.status only pays attention to the cache file if you give it the
2063# --recheck option to rerun configure.
2064#
2065EOF
2066# The following way of writing the cache mishandles newlines in values,
2067# but we know of no workaround that is simple, portable, and efficient.
2068# So, don't put newlines in cache variables' values.
2069# Ultrix sh set writes to stderr and can't be redirected directly,
2070# and sets the high bit in the cache file unless we assign to the vars.
2071(set) 2>&1 |
2072 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2073 *ac_space=\ *)
2074 # `set' does not quote correctly, so add quotes (double-quote substitution
2075 # turns \\\\ into \\, and sed turns \\ into \).
2076 sed -n \
2077 -e "s/'/'\\\\''/g" \
2078 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2079 ;;
2080 *)
2081 # `set' quotes correctly as required by POSIX, so do not add quotes.
2082 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2083 ;;
2084 esac >> confcache
2085if cmp -s $cache_file confcache; then
2086 :
2087else
2088 if test -w $cache_file; then
2089 echo "updating cache $cache_file"
2090 cat confcache > $cache_file
c45f211e 2091 else
dfac8a13 2092 echo "not updating unwritable cache $cache_file"
c45f211e
TT
2093 fi
2094fi
dfac8a13
TT
2095rm -f confcache
2096
2097
2098# Actually configure libtool. ac_aux_dir is where install-sh is found.
0fd91e0a
AO
2099AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2100MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2101LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2102AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2103objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2104deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
dfac8a13 2105${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
0fd91e0a 2106$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
dfac8a13
TT
2107|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2108
2109# Reload cache, that may have been modified by ltconfig
2110if test -r "$cache_file"; then
2111 echo "loading cache $cache_file"
2112 . $cache_file
2113else
2114 echo "creating cache $cache_file"
2115 > $cache_file
2116fi
2117
2118
2119# This can be used to rebuild libtool when needed
0fd91e0a 2120LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
dfac8a13
TT
2121
2122# Always use our own libtool.
2123LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2124
2125# Redirect the config.log output again, so that the ltconfig log is not
2126# clobbered by the next message.
2127exec 5>>./config.log
2128
0fd91e0a
AO
2129
2130
2131
2132
2133
dfac8a13
TT
2134
2135if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2136 COMPPATH=.
2137else
2138 COMPPATH=..
2139fi
2140
2141
35241f18
CD
2142# Find CPP now so that any conditional tests below won't do it and
2143# thereby make the resulting definitions conditional.
2144echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
8b55628e 2145echo "configure:2146: checking how to run the C preprocessor" >&5
dfac8a13
TT
2146# On Suns, sometimes $CPP names a directory.
2147if test -n "$CPP" && test -d "$CPP"; then
2148 CPP=
2149fi
2150if test -z "$CPP"; then
2151if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2152 echo $ac_n "(cached) $ac_c" 1>&6
2153else
2154 # This must be in double quotes, not single quotes, because CPP may get
2155 # substituted into the Makefile and "${CC-cc}" will confuse make.
2156 CPP="${CC-cc} -E"
2157 # On the NeXT, cc -E runs the code through the compiler's parser,
2158 # not just through cpp.
2159 cat > conftest.$ac_ext <<EOF
8b55628e 2160#line 2161 "configure"
dfac8a13
TT
2161#include "confdefs.h"
2162#include <assert.h>
2163Syntax Error
2164EOF
2165ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8b55628e 2166{ (eval echo configure:2167: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
dfac8a13
TT
2167ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2168if test -z "$ac_err"; then
2169 :
2170else
2171 echo "$ac_err" >&5
2172 echo "configure: failed program was:" >&5
2173 cat conftest.$ac_ext >&5
2174 rm -rf conftest*
2175 CPP="${CC-cc} -E -traditional-cpp"
2176 cat > conftest.$ac_ext <<EOF
8b55628e 2177#line 2178 "configure"
dfac8a13
TT
2178#include "confdefs.h"
2179#include <assert.h>
2180Syntax Error
2181EOF
2182ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8b55628e 2183{ (eval echo configure:2184: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
dfac8a13
TT
2184ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2185if test -z "$ac_err"; then
2186 :
2187else
2188 echo "$ac_err" >&5
2189 echo "configure: failed program was:" >&5
2190 cat conftest.$ac_ext >&5
2191 rm -rf conftest*
2192 CPP="${CC-cc} -nologo -E"
2193 cat > conftest.$ac_ext <<EOF
8b55628e 2194#line 2195 "configure"
dfac8a13
TT
2195#include "confdefs.h"
2196#include <assert.h>
2197Syntax Error
2198EOF
2199ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8b55628e 2200{ (eval echo configure:2201: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
dfac8a13
TT
2201ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2202if test -z "$ac_err"; then
2203 :
2204else
2205 echo "$ac_err" >&5
2206 echo "configure: failed program was:" >&5
2207 cat conftest.$ac_ext >&5
2208 rm -rf conftest*
2209 CPP=/lib/cpp
2210fi
2211rm -f conftest*
2212fi
2213rm -f conftest*
2214fi
2215rm -f conftest*
2216 ac_cv_prog_CPP="$CPP"
2217fi
2218 CPP="$ac_cv_prog_CPP"
2219else
2220 ac_cv_prog_CPP="$CPP"
2221fi
2222echo "$ac_t""$CPP" 1>&6
2223
35241f18
CD
2224
2225if test -n "$with_cross_host"; then
2226 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
2227 # may not work correctly, because the compiler may not be able to
2228 # link executables.
2229
2230 # We assume newlib. This lets us hard-code the functions we know
2231 # we'll have.
2232 cat >> confdefs.h <<\EOF
2233#define HAVE_MEMCPY 1
2234EOF
2235
2236 cat >> confdefs.h <<\EOF
2237#define HAVE_STRERROR 1
2238EOF
2239
2240
2241 # We ignore --with-system-zlib in this case.
2242 target_all=libzgcj.la
2243else
2244 for ac_hdr in unistd.h
dfac8a13
TT
2245do
2246ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2247echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8b55628e 2248echo "configure:2249: checking for $ac_hdr" >&5
dfac8a13
TT
2249if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2250 echo $ac_n "(cached) $ac_c" 1>&6
2251else
2252 cat > conftest.$ac_ext <<EOF
8b55628e 2253#line 2254 "configure"
dfac8a13
TT
2254#include "confdefs.h"
2255#include <$ac_hdr>
2256EOF
2257ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8b55628e 2258{ (eval echo configure:2259: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
dfac8a13
TT
2259ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2260if test -z "$ac_err"; then
2261 rm -rf conftest*
2262 eval "ac_cv_header_$ac_safe=yes"
2263else
2264 echo "$ac_err" >&5
2265 echo "configure: failed program was:" >&5
2266 cat conftest.$ac_ext >&5
2267 rm -rf conftest*
2268 eval "ac_cv_header_$ac_safe=no"
2269fi
2270rm -f conftest*
2271fi
2272if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2273 echo "$ac_t""yes" 1>&6
2274 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2275 cat >> confdefs.h <<EOF
2276#define $ac_tr_hdr 1
2277EOF
2278
2279else
2280 echo "$ac_t""no" 1>&6
c45f211e 2281fi
dfac8a13
TT
2282done
2283
2284for ac_func in getpagesize
2285do
2286echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8b55628e 2287echo "configure:2288: checking for $ac_func" >&5
dfac8a13
TT
2288if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2289 echo $ac_n "(cached) $ac_c" 1>&6
2290else
2291 cat > conftest.$ac_ext <<EOF
8b55628e 2292#line 2293 "configure"
dfac8a13
TT
2293#include "confdefs.h"
2294/* System header to define __stub macros and hopefully few prototypes,
2295 which can conflict with char $ac_func(); below. */
2296#include <assert.h>
2297/* Override any gcc2 internal prototype to avoid an error. */
2298/* We use char because int might match the return type of a gcc2
2299 builtin and then its argument prototype would still apply. */
2300char $ac_func();
2301
2302int main() {
2303
2304/* The GNU C library defines this for functions which it implements
2305 to always fail with ENOSYS. Some functions are actually named
2306 something starting with __ and the normal name is an alias. */
2307#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2308choke me
2309#else
2310$ac_func();
2311#endif
c45f211e 2312
dfac8a13 2313; return 0; }
c45f211e 2314EOF
8b55628e 2315if { (eval echo configure:2316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
dfac8a13
TT
2316 rm -rf conftest*
2317 eval "ac_cv_func_$ac_func=yes"
c45f211e 2318else
dfac8a13
TT
2319 echo "configure: failed program was:" >&5
2320 cat conftest.$ac_ext >&5
2321 rm -rf conftest*
2322 eval "ac_cv_func_$ac_func=no"
2323fi
2324rm -f conftest*
c45f211e
TT
2325fi
2326
dfac8a13
TT
2327if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2328 echo "$ac_t""yes" 1>&6
2329 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2330 cat >> confdefs.h <<EOF
2331#define $ac_tr_func 1
c45f211e 2332EOF
dfac8a13 2333
c45f211e 2334else
dfac8a13 2335 echo "$ac_t""no" 1>&6
c45f211e 2336fi
dfac8a13
TT
2337done
2338
2339echo $ac_n "checking for working mmap""... $ac_c" 1>&6
8b55628e 2340echo "configure:2341: checking for working mmap" >&5
dfac8a13
TT
2341if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2342 echo $ac_n "(cached) $ac_c" 1>&6
2343else
2344 if test "$cross_compiling" = yes; then
2345 ac_cv_func_mmap_fixed_mapped=no
2346else
2347 cat > conftest.$ac_ext <<EOF
8b55628e 2348#line 2349 "configure"
dfac8a13
TT
2349#include "confdefs.h"
2350
2351/* Thanks to Mike Haertel and Jim Avera for this test.
2352 Here is a matrix of mmap possibilities:
2353 mmap private not fixed
2354 mmap private fixed at somewhere currently unmapped
2355 mmap private fixed at somewhere already mapped
2356 mmap shared not fixed
2357 mmap shared fixed at somewhere currently unmapped
2358 mmap shared fixed at somewhere already mapped
2359 For private mappings, we should verify that changes cannot be read()
2360 back from the file, nor mmap's back from the file at a different
2361 address. (There have been systems where private was not correctly
2362 implemented like the infamous i386 svr4.0, and systems where the
2363 VM page cache was not coherent with the filesystem buffer cache
2364 like early versions of FreeBSD and possibly contemporary NetBSD.)
2365 For shared mappings, we should conversely verify that changes get
2366 propogated back to all the places they're supposed to be.
c45f211e 2367
dfac8a13
TT
2368 Grep wants private fixed already mapped.
2369 The main things grep needs to know about mmap are:
2370 * does it exist and is it safe to write into the mmap'd area
2371 * how to use it (BSD variants) */
c45f211e 2372#include <sys/types.h>
dfac8a13 2373#include <fcntl.h>
c45f211e 2374#include <sys/mman.h>
dfac8a13
TT
2375
2376/* This mess was copied from the GNU getpagesize.h. */
2377#ifndef HAVE_GETPAGESIZE
2378# ifdef HAVE_UNISTD_H
2379# include <unistd.h>
2380# endif
2381
2382/* Assume that all systems that can run configure have sys/param.h. */
2383# ifndef HAVE_SYS_PARAM_H
2384# define HAVE_SYS_PARAM_H 1
2385# endif
2386
2387# ifdef _SC_PAGESIZE
2388# define getpagesize() sysconf(_SC_PAGESIZE)
2389# else /* no _SC_PAGESIZE */
2390# ifdef HAVE_SYS_PARAM_H
2391# include <sys/param.h>
2392# ifdef EXEC_PAGESIZE
2393# define getpagesize() EXEC_PAGESIZE
2394# else /* no EXEC_PAGESIZE */
2395# ifdef NBPG
2396# define getpagesize() NBPG * CLSIZE
2397# ifndef CLSIZE
2398# define CLSIZE 1
2399# endif /* no CLSIZE */
2400# else /* no NBPG */
2401# ifdef NBPC
2402# define getpagesize() NBPC
2403# else /* no NBPC */
2404# ifdef PAGESIZE
2405# define getpagesize() PAGESIZE
2406# endif /* PAGESIZE */
2407# endif /* no NBPC */
2408# endif /* no NBPG */
2409# endif /* no EXEC_PAGESIZE */
2410# else /* no HAVE_SYS_PARAM_H */
2411# define getpagesize() 8192 /* punt totally */
2412# endif /* no HAVE_SYS_PARAM_H */
2413# endif /* no _SC_PAGESIZE */
2414
2415#endif /* no HAVE_GETPAGESIZE */
2416
2417#ifdef __cplusplus
2418extern "C" { void *malloc(unsigned); }
2419#else
2420char *malloc();
2421#endif
2422
2423int
2424main()
2425{
2426 char *data, *data2, *data3;
2427 int i, pagesize;
2428 int fd;
2429
2430 pagesize = getpagesize();
2431
2432 /*
2433 * First, make a file with some known garbage in it.
2434 */
2435 data = malloc(pagesize);
2436 if (!data)
2437 exit(1);
2438 for (i = 0; i < pagesize; ++i)
2439 *(data + i) = rand();
2440 umask(0);
2441 fd = creat("conftestmmap", 0600);
2442 if (fd < 0)
2443 exit(1);
2444 if (write(fd, data, pagesize) != pagesize)
2445 exit(1);
2446 close(fd);
2447
2448 /*
2449 * Next, try to mmap the file at a fixed address which
2450 * already has something else allocated at it. If we can,
2451 * also make sure that we see the same garbage.
2452 */
2453 fd = open("conftestmmap", O_RDWR);
2454 if (fd < 0)
2455 exit(1);
2456 data2 = malloc(2 * pagesize);
2457 if (!data2)
2458 exit(1);
2459 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2460 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2461 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2462 exit(1);
2463 for (i = 0; i < pagesize; ++i)
2464 if (*(data + i) != *(data2 + i))
2465 exit(1);
2466
2467 /*
2468 * Finally, make sure that changes to the mapped area
2469 * do not percolate back to the file as seen by read().
2470 * (This is a bug on some variants of i386 svr4.0.)
2471 */
2472 for (i = 0; i < pagesize; ++i)
2473 *(data2 + i) = *(data2 + i) + 1;
2474 data3 = malloc(pagesize);
2475 if (!data3)
2476 exit(1);
2477 if (read(fd, data3, pagesize) != pagesize)
2478 exit(1);
2479 for (i = 0; i < pagesize; ++i)
2480 if (*(data + i) != *(data3 + i))
2481 exit(1);
2482 close(fd);
2483 unlink("conftestmmap");
2484 exit(0);
c45f211e 2485}
dfac8a13
TT
2486
2487EOF
8b55628e 2488if { (eval echo configure:2489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
dfac8a13
TT
2489then
2490 ac_cv_func_mmap_fixed_mapped=yes
2491else
2492 echo "configure: failed program was:" >&5
2493 cat conftest.$ac_ext >&5
2494 rm -fr conftest*
2495 ac_cv_func_mmap_fixed_mapped=no
2496fi
2497rm -fr conftest*
2498fi
2499
2500fi
2501
2502echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2503if test $ac_cv_func_mmap_fixed_mapped = yes; then
2504 cat >> confdefs.h <<\EOF
2505#define HAVE_MMAP 1
2506EOF
2507
2508fi
2509
2510 for ac_func in memcpy strerror
2511do
2512echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8b55628e 2513echo "configure:2514: checking for $ac_func" >&5
dfac8a13
TT
2514if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2515 echo $ac_n "(cached) $ac_c" 1>&6
2516else
2517 cat > conftest.$ac_ext <<EOF
8b55628e 2518#line 2519 "configure"
dfac8a13
TT
2519#include "confdefs.h"
2520/* System header to define __stub macros and hopefully few prototypes,
2521 which can conflict with char $ac_func(); below. */
2522#include <assert.h>
2523/* Override any gcc2 internal prototype to avoid an error. */
2524/* We use char because int might match the return type of a gcc2
2525 builtin and then its argument prototype would still apply. */
2526char $ac_func();
2527
2528int main() {
2529
2530/* The GNU C library defines this for functions which it implements
2531 to always fail with ENOSYS. Some functions are actually named
2532 something starting with __ and the normal name is an alias. */
2533#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2534choke me
2535#else
2536$ac_func();
2537#endif
2538
2539; return 0; }
2540EOF
8b55628e 2541if { (eval echo configure:2542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
dfac8a13
TT
2542 rm -rf conftest*
2543 eval "ac_cv_func_$ac_func=yes"
2544else
2545 echo "configure: failed program was:" >&5
2546 cat conftest.$ac_ext >&5
2547 rm -rf conftest*
2548 eval "ac_cv_func_$ac_func=no"
2549fi
2550rm -f conftest*
2551fi
2552
2553if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2554 echo "$ac_t""yes" 1>&6
2555 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2556 cat >> confdefs.h <<EOF
2557#define $ac_tr_func 1
2558EOF
2559
2560else
2561 echo "$ac_t""no" 1>&6
2562fi
2563done
2564
79a9a529
TT
2565
2566 if test "$with_system_zlib" = yes; then
2567 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
8b55628e 2568echo "configure:2569: checking for deflate in -lz" >&5
79a9a529
TT
2569ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
2570if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2571 echo $ac_n "(cached) $ac_c" 1>&6
2572else
2573 ac_save_LIBS="$LIBS"
2574LIBS="-lz $LIBS"
2575cat > conftest.$ac_ext <<EOF
8b55628e 2576#line 2577 "configure"
79a9a529
TT
2577#include "confdefs.h"
2578/* Override any gcc2 internal prototype to avoid an error. */
2579/* We use char because int might match the return type of a gcc2
2580 builtin and then its argument prototype would still apply. */
2581char deflate();
2582
2583int main() {
2584deflate()
2585; return 0; }
2586EOF
8b55628e 2587if { (eval echo configure:2588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
79a9a529
TT
2588 rm -rf conftest*
2589 eval "ac_cv_lib_$ac_lib_var=yes"
2590else
2591 echo "configure: failed program was:" >&5
2592 cat conftest.$ac_ext >&5
2593 rm -rf conftest*
2594 eval "ac_cv_lib_$ac_lib_var=no"
dfac8a13 2595fi
79a9a529
TT
2596rm -f conftest*
2597LIBS="$ac_save_LIBS"
2598
2599fi
2600if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2601 echo "$ac_t""yes" 1>&6
2602 target_all=
2603else
2604 echo "$ac_t""no" 1>&6
2605target_all=libzgcj.la
2606fi
2607
2608 else
2609 target_all=libzgcj.la
2610 fi
2611fi
2612
2613
dfac8a13
TT
2614
2615for ac_hdr in unistd.h
2616do
2617ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2618echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8b55628e 2619echo "configure:2620: checking for $ac_hdr" >&5
dfac8a13
TT
2620if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2621 echo $ac_n "(cached) $ac_c" 1>&6
2622else
2623 cat > conftest.$ac_ext <<EOF
8b55628e 2624#line 2625 "configure"
dfac8a13
TT
2625#include "confdefs.h"
2626#include <$ac_hdr>
2627EOF
2628ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8b55628e 2629{ (eval echo configure:2630: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
dfac8a13
TT
2630ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2631if test -z "$ac_err"; then
2632 rm -rf conftest*
2633 eval "ac_cv_header_$ac_safe=yes"
2634else
2635 echo "$ac_err" >&5
2636 echo "configure: failed program was:" >&5
2637 cat conftest.$ac_ext >&5
2638 rm -rf conftest*
2639 eval "ac_cv_header_$ac_safe=no"
2640fi
2641rm -f conftest*
2642fi
2643if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2644 echo "$ac_t""yes" 1>&6
2645 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2646 cat >> confdefs.h <<EOF
2647#define $ac_tr_hdr 1
2648EOF
2649
2650else
2651 echo "$ac_t""no" 1>&6
2652fi
2653done
2654
2655
b48ed568
TT
2656
2657
2658if test -z "$with_cross_host"; then
2659 USE_LIBDIR_TRUE=
2660 USE_LIBDIR_FALSE='#'
2661else
2662 USE_LIBDIR_TRUE='#'
2663 USE_LIBDIR_FALSE=
2664fi
2665
e093c992
AG
2666
2667if test -n "$with_target_subdir"; then
2668 TARGET_LIBRARY_TRUE=
2669 TARGET_LIBRARY_FALSE='#'
2670else
2671 TARGET_LIBRARY_TRUE='#'
2672 TARGET_LIBRARY_FALSE=
2673fi
2674
dfac8a13
TT
2675if test "${multilib}" = "yes"; then
2676 multilib_arg="--enable-multilib"
2677else
2678 multilib_arg=
2679fi
2680
2681trap '' 1 2 15
2682cat > confcache <<\EOF
2683# This file is a shell script that caches the results of configure
2684# tests run on this system so they can be shared between configure
2685# scripts and configure runs. It is not useful on other systems.
2686# If it contains results you don't want to keep, you may remove or edit it.
2687#
2688# By default, configure uses ./config.cache as the cache file,
2689# creating it if it does not exist already. You can give configure
2690# the --cache-file=FILE option to use a different cache file; that is
2691# what configure does when it calls configure scripts in
2692# subdirectories, so they share the cache.
2693# Giving --cache-file=/dev/null disables caching, for debugging configure.
2694# config.status only pays attention to the cache file if you give it the
2695# --recheck option to rerun configure.
2696#
c45f211e 2697EOF
dfac8a13
TT
2698# The following way of writing the cache mishandles newlines in values,
2699# but we know of no workaround that is simple, portable, and efficient.
2700# So, don't put newlines in cache variables' values.
2701# Ultrix sh set writes to stderr and can't be redirected directly,
2702# and sets the high bit in the cache file unless we assign to the vars.
2703(set) 2>&1 |
2704 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2705 *ac_space=\ *)
2706 # `set' does not quote correctly, so add quotes (double-quote substitution
2707 # turns \\\\ into \\, and sed turns \\ into \).
2708 sed -n \
2709 -e "s/'/'\\\\''/g" \
2710 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2711 ;;
2712 *)
2713 # `set' quotes correctly as required by POSIX, so do not add quotes.
2714 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2715 ;;
2716 esac >> confcache
2717if cmp -s $cache_file confcache; then
2718 :
c45f211e 2719else
dfac8a13
TT
2720 if test -w $cache_file; then
2721 echo "updating cache $cache_file"
2722 cat confcache > $cache_file
2723 else
2724 echo "not updating unwritable cache $cache_file"
2725 fi
2726fi
2727rm -f confcache
2728
2729trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2730
2731test "x$prefix" = xNONE && prefix=$ac_default_prefix
2732# Let make expand exec_prefix.
2733test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2734
2735# Any assignment to VPATH causes Sun make to only execute
2736# the first set of double-colon rules, so remove it if not needed.
2737# If there is a colon in the path, we need to keep it.
2738if test "x$srcdir" = x.; then
2739 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
c45f211e
TT
2740fi
2741
dfac8a13
TT
2742trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2743
2744# Transform confdefs.h into DEFS.
2745# Protect against shell expansion while executing Makefile rules.
2746# Protect against Makefile macro expansion.
2747cat > conftest.defs <<\EOF
2748s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2749s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2750s%\[%\\&%g
2751s%\]%\\&%g
2752s%\$%$$%g
2753EOF
2754DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2755rm -f conftest.defs
2756
2757
2758# Without the "./", some shells look in PATH for config.status.
2759: ${CONFIG_STATUS=./config.status}
2760
2761echo creating $CONFIG_STATUS
2762rm -f $CONFIG_STATUS
2763cat > $CONFIG_STATUS <<EOF
2764#! /bin/sh
2765# Generated automatically by configure.
2766# Run this file to recreate the current configuration.
2767# This directory was configured as follows,
2768# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2769#
2770# $0 $ac_configure_args
2771#
2772# Compiler output produced by configure, useful for debugging
2773# configure, is in ./config.log if it exists.
2774
2775ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2776for ac_option
2777do
2778 case "\$ac_option" in
2779 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2780 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2781 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2782 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2783 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2784 exit 0 ;;
2785 -help | --help | --hel | --he | --h)
2786 echo "\$ac_cs_usage"; exit 0 ;;
2787 *) echo "\$ac_cs_usage"; exit 1 ;;
2788 esac
2789done
2790
2791ac_given_srcdir=$srcdir
2792ac_given_INSTALL="$INSTALL"
2793
2794trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2795EOF
2796cat >> $CONFIG_STATUS <<EOF
2797
2798# Protect against being on the right side of a sed subst in config.status.
2799sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2800 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2801$ac_vpsub
2802$extrasub
2803s%@SHELL@%$SHELL%g
2804s%@CFLAGS@%$CFLAGS%g
2805s%@CPPFLAGS@%$CPPFLAGS%g
2806s%@CXXFLAGS@%$CXXFLAGS%g
2807s%@FFLAGS@%$FFLAGS%g
2808s%@DEFS@%$DEFS%g
2809s%@LDFLAGS@%$LDFLAGS%g
2810s%@LIBS@%$LIBS%g
2811s%@exec_prefix@%$exec_prefix%g
2812s%@prefix@%$prefix%g
2813s%@program_transform_name@%$program_transform_name%g
2814s%@bindir@%$bindir%g
2815s%@sbindir@%$sbindir%g
2816s%@libexecdir@%$libexecdir%g
2817s%@datadir@%$datadir%g
2818s%@sysconfdir@%$sysconfdir%g
2819s%@sharedstatedir@%$sharedstatedir%g
2820s%@localstatedir@%$localstatedir%g
2821s%@libdir@%$libdir%g
2822s%@includedir@%$includedir%g
2823s%@oldincludedir@%$oldincludedir%g
2824s%@infodir@%$infodir%g
2825s%@mandir@%$mandir%g
0fd91e0a 2826s%@zlib_basedir@%$zlib_basedir%g
dfac8a13
TT
2827s%@host@%$host%g
2828s%@host_alias@%$host_alias%g
2829s%@host_cpu@%$host_cpu%g
2830s%@host_vendor@%$host_vendor%g
2831s%@host_os@%$host_os%g
2832s%@target@%$target%g
2833s%@target_alias@%$target_alias%g
2834s%@target_cpu@%$target_cpu%g
2835s%@target_vendor@%$target_vendor%g
2836s%@target_os@%$target_os%g
2837s%@build@%$build%g
2838s%@build_alias@%$build_alias%g
2839s%@build_cpu@%$build_cpu%g
2840s%@build_vendor@%$build_vendor%g
2841s%@build_os@%$build_os%g
8b55628e 2842s%@mkinstalldirs@%$mkinstalldirs%g
dfac8a13
TT
2843s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2844s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2845s%@INSTALL_DATA@%$INSTALL_DATA%g
2846s%@PACKAGE@%$PACKAGE%g
2847s%@VERSION@%$VERSION%g
2848s%@ACLOCAL@%$ACLOCAL%g
2849s%@AUTOCONF@%$AUTOCONF%g
2850s%@AUTOMAKE@%$AUTOMAKE%g
2851s%@AUTOHEADER@%$AUTOHEADER%g
2852s%@MAKEINFO@%$MAKEINFO%g
2853s%@SET_MAKE@%$SET_MAKE%g
2854s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2855s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2856s%@MAINT@%$MAINT%g
e093c992 2857s%@CC@%$CC%g
dfac8a13 2858s%@EXEEXT@%$EXEEXT%g
dfac8a13 2859s%@LN_S@%$LN_S%g
0fd91e0a
AO
2860s%@OBJEXT@%$OBJEXT%g
2861s%@RANLIB@%$RANLIB%g
2862s%@STRIP@%$STRIP%g
dfac8a13
TT
2863s%@LIBTOOL@%$LIBTOOL%g
2864s%@COMPPATH@%$COMPPATH%g
2865s%@CPP@%$CPP%g
79a9a529 2866s%@target_all@%$target_all%g
b48ed568
TT
2867s%@USE_LIBDIR_TRUE@%$USE_LIBDIR_TRUE%g
2868s%@USE_LIBDIR_FALSE@%$USE_LIBDIR_FALSE%g
e093c992
AG
2869s%@TARGET_LIBRARY_TRUE@%$TARGET_LIBRARY_TRUE%g
2870s%@TARGET_LIBRARY_FALSE@%$TARGET_LIBRARY_FALSE%g
dfac8a13
TT
2871
2872CEOF
2873EOF
2874
2875cat >> $CONFIG_STATUS <<\EOF
2876
2877# Split the substitutions into bite-sized pieces for seds with
2878# small command number limits, like on Digital OSF/1 and HP-UX.
2879ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2880ac_file=1 # Number of current file.
2881ac_beg=1 # First line for current file.
2882ac_end=$ac_max_sed_cmds # Line after last line for current file.
2883ac_more_lines=:
2884ac_sed_cmds=""
2885while $ac_more_lines; do
2886 if test $ac_beg -gt 1; then
2887 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2888 else
2889 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2890 fi
2891 if test ! -s conftest.s$ac_file; then
2892 ac_more_lines=false
2893 rm -f conftest.s$ac_file
2894 else
2895 if test -z "$ac_sed_cmds"; then
2896 ac_sed_cmds="sed -f conftest.s$ac_file"
c45f211e 2897 else
dfac8a13
TT
2898 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2899 fi
2900 ac_file=`expr $ac_file + 1`
2901 ac_beg=$ac_end
2902 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2903 fi
2904done
2905if test -z "$ac_sed_cmds"; then
2906 ac_sed_cmds=cat
2907fi
2908EOF
2909
2910cat >> $CONFIG_STATUS <<EOF
2911
2912CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2913EOF
2914cat >> $CONFIG_STATUS <<\EOF
2915for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2916 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2917 case "$ac_file" in
2918 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2919 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2920 *) ac_file_in="${ac_file}.in" ;;
2921 esac
2922
2923 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2924
2925 # Remove last slash and all that follows it. Not all systems have dirname.
2926 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2927 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2928 # The file is in a subdirectory.
2929 test ! -d "$ac_dir" && mkdir "$ac_dir"
2930 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2931 # A "../" for each directory in $ac_dir_suffix.
2932 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2933 else
2934 ac_dir_suffix= ac_dots=
2935 fi
2936
2937 case "$ac_given_srcdir" in
2938 .) srcdir=.
2939 if test -z "$ac_dots"; then top_srcdir=.
2940 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2941 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2942 *) # Relative path.
2943 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2944 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2945 esac
2946
2947 case "$ac_given_INSTALL" in
2948 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2949 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2950 esac
2951
2952 echo creating "$ac_file"
2953 rm -f "$ac_file"
2954 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2955 case "$ac_file" in
2956 *Makefile*) ac_comsub="1i\\
2957# $configure_input" ;;
2958 *) ac_comsub= ;;
2959 esac
2960
2961 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2962 sed -e "$ac_comsub
2963s%@configure_input@%$configure_input%g
2964s%@srcdir@%$srcdir%g
2965s%@top_srcdir@%$top_srcdir%g
2966s%@INSTALL@%$INSTALL%g
2967" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2968fi; done
2969rm -f conftest.s*
2970
2971EOF
2972cat >> $CONFIG_STATUS <<EOF
2973srcdir=${srcdir}
2974host=${host}
2975target=${target}
2976with_multisubdir=${with_multisubdir}
2977ac_configure_args="${multilib_arg} ${ac_configure_args}"
2978CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
2979zlib_basedir=${zlib_basedir}
2980CC="${CC}"
2981CXX="${CXX}"
2982
2983EOF
2984cat >> $CONFIG_STATUS <<\EOF
2985if test -n "$CONFIG_FILES"; then
2986 ac_file=Makefile . ${zlib_basedir}/../config-ml.in
2987fi
2988exit 0
2989EOF
2990chmod +x $CONFIG_STATUS
2991rm -fr confdefs* $ac_clean_files
2992test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
c45f211e 2993