source: trunk/src/gcc/zlib/configure@ 1392

Last change on this file since 1392 was 1124, checked in by bird, 22 years ago

Regenerated with new autoconf (forced to use stable).

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