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