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

Last change on this file since 492 was 80, checked in by bird, 22 years ago

Regenerated configure on OS/2.

  • Property cvs2svn:cvs-rev set to 1.2
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 93.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 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1647 lt_cv_file_magic_cmd=/usr/bin/file
1648 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1649 ;;
1650
1651irix5* | irix6*)
1652 case $host_os in
1653 irix5*)
1654 # this will be overridden with pass_all, but let us keep it just in case
1655 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1656 ;;
1657 *)
1658 case $LD in
1659 *-32|*"-32 ") libmagic=32-bit;;
1660 *-n32|*"-n32 ") libmagic=N32;;
1661 *-64|*"-64 ") libmagic=64-bit;;
1662 *) libmagic=never-match;;
1663 esac
1664 # this will be overridden with pass_all, but let us keep it just in case
1665 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1666 ;;
1667 esac
1668 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1669 lt_cv_deplibs_check_method=pass_all
1670 ;;
1671
1672# This must be Linux ELF.
1673linux-gnu*)
1674 case $host_cpu in
1675 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1676 lt_cv_deplibs_check_method=pass_all ;;
1677 *)
1678 # glibc up to 2.1.1 does not perform some relocations on ARM
1679 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1680 esac
1681 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1682 ;;
1683
1684netbsd*)
1685 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1686 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1687 else
1688 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1689 fi
1690 ;;
1691
1692newsos6)
1693 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1694 lt_cv_file_magic_cmd=/usr/bin/file
1695 lt_cv_file_magic_test_file=/usr/lib/libnls.so
1696 ;;
1697
1698osf3* | osf4* | osf5*)
1699 # this will be overridden with pass_all, but let us keep it just in case
1700 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1701 lt_cv_file_magic_test_file=/shlib/libc.so
1702 lt_cv_deplibs_check_method=pass_all
1703 ;;
1704
1705sco3.2v5*)
1706 lt_cv_deplibs_check_method=pass_all
1707 ;;
1708
1709solaris*)
1710 lt_cv_deplibs_check_method=pass_all
1711 lt_cv_file_magic_test_file=/lib/libc.so
1712 ;;
1713
1714sysv5uw[78]* | sysv4*uw2*)
1715 lt_cv_deplibs_check_method=pass_all
1716 ;;
1717
1718sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1719 case $host_vendor in
1720 ncr)
1721 lt_cv_deplibs_check_method=pass_all
1722 ;;
1723 motorola)
1724 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]'
1725 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1726 ;;
1727 esac
1728 ;;
1729esac
1730
1731fi
1732
1733echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1734file_magic_cmd=$lt_cv_file_magic_cmd
1735deplibs_check_method=$lt_cv_deplibs_check_method
1736
1737echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1738echo "configure:1739: checking for object suffix" >&5
1739if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1740 echo $ac_n "(cached) $ac_c" 1>&6
1741else
1742 rm -f conftest*
1743echo 'int i = 1;' > conftest.$ac_ext
1744if { (eval echo configure:1745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1745 for ac_file in conftest.*; do
1746 case $ac_file in
1747 *.c) ;;
1748 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1749 esac
1750 done
1751else
1752 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1753fi
1754rm -f conftest*
1755fi
1756
1757echo "$ac_t""$ac_cv_objext" 1>&6
1758OBJEXT=$ac_cv_objext
1759ac_objext=$ac_cv_objext
1760
1761if test $host != $build; then
1762 ac_tool_prefix=${host_alias}-
1763else
1764 ac_tool_prefix=
1765fi
1766
1767# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1768
1769# Only perform the check for file, if the check method requires it
1770case $deplibs_check_method in
1771file_magic*)
1772 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1773 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1774echo "configure:1775: checking for ${ac_tool_prefix}file" >&5
1775if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1776 echo $ac_n "(cached) $ac_c" 1>&6
1777else
1778 case $MAGIC_CMD in
1779 /*)
1780 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1781 ;;
1782 ?:/*)
1783 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1784 ;;
1785 *)
1786 ac_save_MAGIC_CMD="$MAGIC_CMD"
1787 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1788 ac_dummy="/usr/bin:$PATH"
1789 for ac_dir in $ac_dummy; do
1790 test -z "$ac_dir" && ac_dir=.
1791 if test -f $ac_dir/${ac_tool_prefix}file; then
1792 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
1793 if test -n "$file_magic_test_file"; then
1794 case $deplibs_check_method in
1795 "file_magic "*)
1796 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1797 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1798 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1799 egrep "$file_magic_regex" > /dev/null; then
1800 :
1801 else
1802 cat <<EOF 1>&2
1803
1804*** Warning: the command libtool uses to detect shared libraries,
1805*** $file_magic_cmd, produces output that libtool cannot recognize.
1806*** The result is that libtool may fail to recognize shared libraries
1807*** as such. This will affect the creation of libtool libraries that
1808*** depend on shared libraries, but programs linked with such libtool
1809*** libraries will work regardless of this problem. Nevertheless, you
1810*** may want to report the problem to your system manager and/or to
1811*** bug-libtool@gnu.org
1812
1813EOF
1814 fi ;;
1815 esac
1816 fi
1817 break
1818 fi
1819 done
1820 IFS="$ac_save_ifs"
1821 MAGIC_CMD="$ac_save_MAGIC_CMD"
1822 ;;
1823esac
1824fi
1825
1826MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1827if test -n "$MAGIC_CMD"; then
1828 echo "$ac_t""$MAGIC_CMD" 1>&6
1829else
1830 echo "$ac_t""no" 1>&6
1831fi
1832
1833if test -z "$lt_cv_path_MAGIC_CMD"; then
1834 if test -n "$ac_tool_prefix"; then
1835 echo $ac_n "checking for file""... $ac_c" 1>&6
1836echo "configure:1837: checking for file" >&5
1837if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
1838 echo $ac_n "(cached) $ac_c" 1>&6
1839else
1840 case $MAGIC_CMD in
1841 /*)
1842 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
1843 ;;
1844 ?:/*)
1845 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
1846 ;;
1847 *)
1848 ac_save_MAGIC_CMD="$MAGIC_CMD"
1849 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1850 ac_dummy="/usr/bin:$PATH"
1851 for ac_dir in $ac_dummy; do
1852 test -z "$ac_dir" && ac_dir=.
1853 if test -f $ac_dir/file; then
1854 lt_cv_path_MAGIC_CMD="$ac_dir/file"
1855 if test -n "$file_magic_test_file"; then
1856 case $deplibs_check_method in
1857 "file_magic "*)
1858 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1859 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1860 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1861 egrep "$file_magic_regex" > /dev/null; then
1862 :
1863 else
1864 cat <<EOF 1>&2
1865
1866*** Warning: the command libtool uses to detect shared libraries,
1867*** $file_magic_cmd, produces output that libtool cannot recognize.
1868*** The result is that libtool may fail to recognize shared libraries
1869*** as such. This will affect the creation of libtool libraries that
1870*** depend on shared libraries, but programs linked with such libtool
1871*** libraries will work regardless of this problem. Nevertheless, you
1872*** may want to report the problem to your system manager and/or to
1873*** bug-libtool@gnu.org
1874
1875EOF
1876 fi ;;
1877 esac
1878 fi
1879 break
1880 fi
1881 done
1882 IFS="$ac_save_ifs"
1883 MAGIC_CMD="$ac_save_MAGIC_CMD"
1884 ;;
1885esac
1886fi
1887
1888MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
1889if test -n "$MAGIC_CMD"; then
1890 echo "$ac_t""$MAGIC_CMD" 1>&6
1891else
1892 echo "$ac_t""no" 1>&6
1893fi
1894
1895 else
1896 MAGIC_CMD=:
1897 fi
1898fi
1899
1900 fi
1901 ;;
1902esac
1903
1904# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1905set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1906echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1907echo "configure:1908: checking for $ac_word" >&5
1908if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1909 echo $ac_n "(cached) $ac_c" 1>&6
1910else
1911 if test -n "$RANLIB"; then
1912 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1913else
1914 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1915 ac_dummy="$PATH"
1916 for ac_dir in $ac_dummy; do
1917 test -z "$ac_dir" && ac_dir=.
1918 if test -f $ac_dir/$ac_word -o \
1919 -f $ac_dir/$ac_word$ac_exeext ; then
1920 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1921 break
1922 fi
1923 done
1924 IFS="$ac_save_ifs"
1925fi
1926fi
1927RANLIB="$ac_cv_prog_RANLIB"
1928if test -n "$RANLIB"; then
1929 echo "$ac_t""$RANLIB" 1>&6
1930else
1931 echo "$ac_t""no" 1>&6
1932fi
1933
1934
1935if test -z "$ac_cv_prog_RANLIB"; then
1936if test -n "$ac_tool_prefix"; then
1937 # Extract the first word of "ranlib", so it can be a program name with args.
1938set dummy ranlib; ac_word=$2
1939echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1940echo "configure:1941: checking for $ac_word" >&5
1941if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1942 echo $ac_n "(cached) $ac_c" 1>&6
1943else
1944 if test -n "$RANLIB"; then
1945 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1946else
1947 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1948 ac_dummy="$PATH"
1949 for ac_dir in $ac_dummy; do
1950 test -z "$ac_dir" && ac_dir=.
1951 if test -f $ac_dir/$ac_word -o \
1952 -f $ac_dir/$ac_word$ac_exeext ; then
1953 ac_cv_prog_RANLIB="ranlib"
1954 break
1955 fi
1956 done
1957 IFS="$ac_save_ifs"
1958 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1959fi
1960fi
1961RANLIB="$ac_cv_prog_RANLIB"
1962if test -n "$RANLIB"; then
1963 echo "$ac_t""$RANLIB" 1>&6
1964else
1965 echo "$ac_t""no" 1>&6
1966fi
1967
1968else
1969 RANLIB=":"
1970fi
1971fi
1972
1973# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1974set dummy ${ac_tool_prefix}strip; ac_word=$2
1975echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1976echo "configure:1977: checking for $ac_word" >&5
1977if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1978 echo $ac_n "(cached) $ac_c" 1>&6
1979else
1980 if test -n "$STRIP"; then
1981 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1982else
1983 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1984 ac_dummy="$PATH"
1985 for ac_dir in $ac_dummy; do
1986 test -z "$ac_dir" && ac_dir=.
1987 if test -f $ac_dir/$ac_word -o \
1988 -f $ac_dir/$ac_word$ac_exeext ; then
1989 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1990 break
1991 fi
1992 done
1993 IFS="$ac_save_ifs"
1994fi
1995fi
1996STRIP="$ac_cv_prog_STRIP"
1997if test -n "$STRIP"; then
1998 echo "$ac_t""$STRIP" 1>&6
1999else
2000 echo "$ac_t""no" 1>&6
2001fi
2002
2003
2004if test -z "$ac_cv_prog_STRIP"; then
2005if test -n "$ac_tool_prefix"; then
2006 # Extract the first word of "strip", so it can be a program name with args.
2007set dummy strip; ac_word=$2
2008echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2009echo "configure:2010: checking for $ac_word" >&5
2010if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2011 echo $ac_n "(cached) $ac_c" 1>&6
2012else
2013 if test -n "$STRIP"; then
2014 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2015else
2016 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2017 ac_dummy="$PATH"
2018 for ac_dir in $ac_dummy; do
2019 test -z "$ac_dir" && ac_dir=.
2020 if test -f $ac_dir/$ac_word -o \
2021 -f $ac_dir/$ac_word$ac_exeext ; then
2022 ac_cv_prog_STRIP="strip"
2023 break
2024 fi
2025 done
2026 IFS="$ac_save_ifs"
2027 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2028fi
2029fi
2030STRIP="$ac_cv_prog_STRIP"
2031if test -n "$STRIP"; then
2032 echo "$ac_t""$STRIP" 1>&6
2033else
2034 echo "$ac_t""no" 1>&6
2035fi
2036
2037else
2038 STRIP=":"
2039fi
2040fi
2041
2042
2043# Check for any special flags to pass to ltconfig.
2044libtool_flags="--cache-file=$cache_file"
2045test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2046test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2047test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2048test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2049test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2050
2051
2052# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2053if test "${enable_libtool_lock+set}" = set; then
2054 enableval="$enable_libtool_lock"
2055 :
2056fi
2057
2058test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2059test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2060
2061# Check whether --with-pic or --without-pic was given.
2062if test "${with_pic+set}" = set; then
2063 withval="$with_pic"
2064 pic_mode="$withval"
2065else
2066 pic_mode=default
2067fi
2068
2069test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2070test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2071
2072# Some flags need to be propagated to the compiler or linker for good
2073# libtool support.
2074case $host in
2075*-*-irix6*)
2076 # Find out which ABI we are using.
2077 echo '#line 2078 "configure"' > conftest.$ac_ext
2078 if { (eval echo configure:2079: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2079 case `/usr/bin/file conftest.$ac_objext` in
2080 *32-bit*)
2081 LD="${LD-ld} -32"
2082 ;;
2083 *N32*)
2084 LD="${LD-ld} -n32"
2085 ;;
2086 *64-bit*)
2087 LD="${LD-ld} -64"
2088 ;;
2089 esac
2090 fi
2091 rm -rf conftest*
2092 ;;
2093
2094*-*-sco3.2v5*)
2095 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2096 SAVE_CFLAGS="$CFLAGS"
2097 CFLAGS="$CFLAGS -belf"
2098 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2099echo "configure:2100: checking whether the C compiler needs -belf" >&5
2100if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2101 echo $ac_n "(cached) $ac_c" 1>&6
2102else
2103
2104 ac_ext=c
2105# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2106ac_cpp='$CPP $CPPFLAGS'
2107ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2108ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2109cross_compiling=$ac_cv_prog_cc_cross
2110
2111 cat > conftest.$ac_ext <<EOF
2112#line 2113 "configure"
2113#include "confdefs.h"
2114
2115int main() {
2116
2117; return 0; }
2118EOF
2119if { (eval echo configure:2120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2120 rm -rf conftest*
2121 lt_cv_cc_needs_belf=yes
2122else
2123 echo "configure: failed program was:" >&5
2124 cat conftest.$ac_ext >&5
2125 rm -rf conftest*
2126 lt_cv_cc_needs_belf=no
2127fi
2128rm -f conftest*
2129 ac_ext=c
2130# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2131ac_cpp='$CPP $CPPFLAGS'
2132ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2133ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2134cross_compiling=$ac_cv_prog_cc_cross
2135
2136fi
2137
2138echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2139 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2140 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2141 CFLAGS="$SAVE_CFLAGS"
2142 fi
2143 ;;
2144
2145
2146esac
2147
2148
2149# Save cache, so that ltconfig can load it
2150cat > confcache <<\EOF
2151# This file is a shell script that caches the results of configure
2152# tests run on this system so they can be shared between configure
2153# scripts and configure runs. It is not useful on other systems.
2154# If it contains results you don't want to keep, you may remove or edit it.
2155#
2156# By default, configure uses ./config.cache as the cache file,
2157# creating it if it does not exist already. You can give configure
2158# the --cache-file=FILE option to use a different cache file; that is
2159# what configure does when it calls configure scripts in
2160# subdirectories, so they share the cache.
2161# Giving --cache-file=/dev/null disables caching, for debugging configure.
2162# config.status only pays attention to the cache file if you give it the
2163# --recheck option to rerun configure.
2164#
2165EOF
2166# The following way of writing the cache mishandles newlines in values,
2167# but we know of no workaround that is simple, portable, and efficient.
2168# So, don't put newlines in cache variables' values.
2169# Ultrix sh set writes to stderr and can't be redirected directly,
2170# and sets the high bit in the cache file unless we assign to the vars.
2171(set) 2>&1 |
2172 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2173 *ac_space=\ *)
2174 # `set' does not quote correctly, so add quotes (double-quote substitution
2175 # turns \\\\ into \\, and sed turns \\ into \).
2176 sed -n \
2177 -e "s/'/'\\\\''/g" \
2178 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2179 ;;
2180 *)
2181 # `set' quotes correctly as required by POSIX, so do not add quotes.
2182 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2183 ;;
2184 esac >> confcache
2185if cmp -s $cache_file confcache; then
2186 :
2187else
2188 if test -w $cache_file; then
2189 echo "updating cache $cache_file"
2190 cat confcache > $cache_file
2191 else
2192 echo "not updating unwritable cache $cache_file"
2193 fi
2194fi
2195rm -f confcache
2196
2197
2198# Actually configure libtool. ac_aux_dir is where install-sh is found.
2199AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2200MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2201LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2202AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2203objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2204deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2205${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2206$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2207|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2208
2209# Reload cache, that may have been modified by ltconfig
2210if test -r "$cache_file"; then
2211 echo "loading cache $cache_file"
2212 . $cache_file
2213else
2214 echo "creating cache $cache_file"
2215 > $cache_file
2216fi
2217
2218
2219# This can be used to rebuild libtool when needed
2220LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2221
2222# Always use our own libtool.
2223LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2224
2225# Redirect the config.log output again, so that the ltconfig log is not
2226# clobbered by the next message.
2227exec 5>>./config.log
2228
2229
2230
2231
2232
2233
2234
2235if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2236 COMPPATH=.
2237else
2238 COMPPATH=..
2239fi
2240
2241
2242# Find CPP now so that any conditional tests below won't do it and
2243# thereby make the resulting definitions conditional.
2244echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2245echo "configure:2246: checking how to run the C preprocessor" >&5
2246# On Suns, sometimes $CPP names a directory.
2247if test -n "$CPP" && test -d "$CPP"; then
2248 CPP=
2249fi
2250if test -z "$CPP"; then
2251if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2252 echo $ac_n "(cached) $ac_c" 1>&6
2253else
2254 # This must be in double quotes, not single quotes, because CPP may get
2255 # substituted into the Makefile and "${CC-cc}" will confuse make.
2256 CPP="${CC-cc} -E"
2257 # On the NeXT, cc -E runs the code through the compiler's parser,
2258 # not just through cpp.
2259 cat > conftest.$ac_ext <<EOF
2260#include <sys/types.h>
2261#line 2262 "configure"
2262#include "confdefs.h"
2263#include <assert.h>
2264Syntax Error
2265EOF
2266ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2267{ (eval echo configure:2268: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2268ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2269if test -z "$ac_err"; then
2270 :
2271else
2272 echo "$ac_err" >&5
2273 echo "configure: failed program was:" >&5
2274 cat conftest.$ac_ext >&5
2275 rm -rf conftest*
2276 CPP="${CC-cc} -E -traditional-cpp"
2277 cat > conftest.$ac_ext <<EOF
2278#include <sys/types.h>
2279#line 2280 "configure"
2280#include "confdefs.h"
2281#include <assert.h>
2282Syntax Error
2283EOF
2284ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2285{ (eval echo configure:2286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2286ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2287if test -z "$ac_err"; then
2288 :
2289else
2290 echo "$ac_err" >&5
2291 echo "configure: failed program was:" >&5
2292 cat conftest.$ac_ext >&5
2293 rm -rf conftest*
2294 CPP="${CC-cc} -nologo -E"
2295 cat > conftest.$ac_ext <<EOF
2296#include <sys/types.h>
2297#line 2298 "configure"
2298#include "confdefs.h"
2299#include <assert.h>
2300Syntax Error
2301EOF
2302ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2303{ (eval echo configure:2304: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2304ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2305if test -z "$ac_err"; then
2306 :
2307else
2308 echo "$ac_err" >&5
2309 echo "configure: failed program was:" >&5
2310 cat conftest.$ac_ext >&5
2311 rm -rf conftest*
2312 CPP=/lib/cpp
2313fi
2314rm -f conftest*
2315fi
2316rm -f conftest*
2317fi
2318rm -f conftest*
2319 ac_cv_prog_CPP="$CPP"
2320fi
2321 CPP="$ac_cv_prog_CPP"
2322else
2323 ac_cv_prog_CPP="$CPP"
2324fi
2325echo "$ac_t""$CPP" 1>&6
2326
2327
2328if test -n "$with_cross_host"; then
2329 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
2330 # may not work correctly, because the compiler may not be able to
2331 # link executables.
2332
2333 # We assume newlib. This lets us hard-code the functions we know
2334 # we'll have.
2335 cat >> confdefs.h <<\EOF
2336#define HAVE_MEMCPY 1
2337EOF
2338
2339 cat >> confdefs.h <<\EOF
2340#define HAVE_STRERROR 1
2341EOF
2342
2343
2344 # We ignore --with-system-zlib in this case.
2345 target_all=libzgcj.la
2346else
2347 for ac_hdr in unistd.h
2348do
2349ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2350echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2351echo "configure:2352: checking for $ac_hdr" >&5
2352if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2353 echo $ac_n "(cached) $ac_c" 1>&6
2354else
2355 cat > conftest.$ac_ext <<EOF
2356#include <sys/types.h>
2357#line 2358 "configure"
2358#include "confdefs.h"
2359#include <$ac_hdr>
2360EOF
2361ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2362{ (eval echo configure:2363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2363ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2364if test -z "$ac_err"; then
2365 rm -rf conftest*
2366 eval "ac_cv_header_$ac_safe=yes"
2367else
2368 echo "$ac_err" >&5
2369 echo "configure: failed program was:" >&5
2370 cat conftest.$ac_ext >&5
2371 rm -rf conftest*
2372 eval "ac_cv_header_$ac_safe=no"
2373fi
2374rm -f conftest*
2375fi
2376if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2377 echo "$ac_t""yes" 1>&6
2378 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2379 cat >> confdefs.h <<EOF
2380#define $ac_tr_hdr 1
2381EOF
2382
2383else
2384 echo "$ac_t""no" 1>&6
2385fi
2386done
2387
2388for ac_func in getpagesize
2389do
2390echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2391echo "configure:2392: checking for $ac_func" >&5
2392if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2393 echo $ac_n "(cached) $ac_c" 1>&6
2394else
2395 cat > conftest.$ac_ext <<EOF
2396#line 2397 "configure"
2397#include "confdefs.h"
2398/* System header to define __stub macros and hopefully few prototypes,
2399 which can conflict with char $ac_func(); below. */
2400#include <assert.h>
2401/* Override any gcc2 internal prototype to avoid an error. */
2402/* We use char because int might match the return type of a gcc2
2403 builtin and then its argument prototype would still apply. */
2404char $ac_func();
2405
2406int main() {
2407
2408/* The GNU C library defines this for functions which it implements
2409 to always fail with ENOSYS. Some functions are actually named
2410 something starting with __ and the normal name is an alias. */
2411#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2412choke me
2413#else
2414$ac_func();
2415#endif
2416
2417; return 0; }
2418EOF
2419if { (eval echo configure:2420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2420 rm -rf conftest*
2421 eval "ac_cv_func_$ac_func=yes"
2422else
2423 echo "configure: failed program was:" >&5
2424 cat conftest.$ac_ext >&5
2425 rm -rf conftest*
2426 eval "ac_cv_func_$ac_func=no"
2427fi
2428rm -f conftest*
2429fi
2430
2431if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2432 echo "$ac_t""yes" 1>&6
2433 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2434 cat >> confdefs.h <<EOF
2435#define $ac_tr_func 1
2436EOF
2437
2438else
2439 echo "$ac_t""no" 1>&6
2440fi
2441done
2442
2443echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2444echo "configure:2445: checking for working mmap" >&5
2445if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2446 echo $ac_n "(cached) $ac_c" 1>&6
2447else
2448 if test "$cross_compiling" = yes; then
2449 ac_cv_func_mmap_fixed_mapped=no
2450else
2451 cat > conftest.$ac_ext <<EOF
2452#line 2453 "configure"
2453#include "confdefs.h"
2454
2455/* Thanks to Mike Haertel and Jim Avera for this test.
2456 Here is a matrix of mmap possibilities:
2457 mmap private not fixed
2458 mmap private fixed at somewhere currently unmapped
2459 mmap private fixed at somewhere already mapped
2460 mmap shared not fixed
2461 mmap shared fixed at somewhere currently unmapped
2462 mmap shared fixed at somewhere already mapped
2463 For private mappings, we should verify that changes cannot be read()
2464 back from the file, nor mmap's back from the file at a different
2465 address. (There have been systems where private was not correctly
2466 implemented like the infamous i386 svr4.0, and systems where the
2467 VM page cache was not coherent with the filesystem buffer cache
2468 like early versions of FreeBSD and possibly contemporary NetBSD.)
2469 For shared mappings, we should conversely verify that changes get
2470 propogated back to all the places they're supposed to be.
2471
2472 Grep wants private fixed already mapped.
2473 The main things grep needs to know about mmap are:
2474 * does it exist and is it safe to write into the mmap'd area
2475 * how to use it (BSD variants) */
2476#include <sys/types.h>
2477#include <fcntl.h>
2478#include <sys/mman.h>
2479
2480/* This mess was copied from the GNU getpagesize.h. */
2481#ifndef HAVE_GETPAGESIZE
2482# ifdef HAVE_UNISTD_H
2483# include <unistd.h>
2484# endif
2485
2486/* Assume that all systems that can run configure have sys/param.h. */
2487# ifndef HAVE_SYS_PARAM_H
2488# define HAVE_SYS_PARAM_H 1
2489# endif
2490
2491# ifdef _SC_PAGESIZE
2492# define getpagesize() sysconf(_SC_PAGESIZE)
2493# else /* no _SC_PAGESIZE */
2494# ifdef HAVE_SYS_PARAM_H
2495# include <sys/param.h>
2496# ifdef EXEC_PAGESIZE
2497# define getpagesize() EXEC_PAGESIZE
2498# else /* no EXEC_PAGESIZE */
2499# ifdef NBPG
2500# define getpagesize() NBPG * CLSIZE
2501# ifndef CLSIZE
2502# define CLSIZE 1
2503# endif /* no CLSIZE */
2504# else /* no NBPG */
2505# ifdef NBPC
2506# define getpagesize() NBPC
2507# else /* no NBPC */
2508# ifdef PAGESIZE
2509# define getpagesize() PAGESIZE
2510# endif /* PAGESIZE */
2511# endif /* no NBPC */
2512# endif /* no NBPG */
2513# endif /* no EXEC_PAGESIZE */
2514# else /* no HAVE_SYS_PARAM_H */
2515# define getpagesize() 8192 /* punt totally */
2516# endif /* no HAVE_SYS_PARAM_H */
2517# endif /* no _SC_PAGESIZE */
2518
2519#endif /* no HAVE_GETPAGESIZE */
2520
2521#ifdef __cplusplus
2522extern "C" { void *malloc(unsigned); }
2523#else
2524char *malloc();
2525#endif
2526
2527int
2528main()
2529{
2530 char *data, *data2, *data3;
2531 int i, pagesize;
2532 int fd;
2533
2534 pagesize = getpagesize();
2535
2536 /*
2537 * First, make a file with some known garbage in it.
2538 */
2539 data = malloc(pagesize);
2540 if (!data)
2541 exit(1);
2542 for (i = 0; i < pagesize; ++i)
2543 *(data + i) = rand();
2544 umask(0);
2545 fd = creat("conftestmmap", 0600);
2546 if (fd < 0)
2547 exit(1);
2548 if (write(fd, data, pagesize) != pagesize)
2549 exit(1);
2550 close(fd);
2551
2552 /*
2553 * Next, try to mmap the file at a fixed address which
2554 * already has something else allocated at it. If we can,
2555 * also make sure that we see the same garbage.
2556 */
2557 fd = open("conftestmmap", O_RDWR);
2558 if (fd < 0)
2559 exit(1);
2560 data2 = malloc(2 * pagesize);
2561 if (!data2)
2562 exit(1);
2563 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2564 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2565 MAP_PRIVATE | MAP_FIXED, fd, 0L))
2566 exit(1);
2567 for (i = 0; i < pagesize; ++i)
2568 if (*(data + i) != *(data2 + i))
2569 exit(1);
2570
2571 /*
2572 * Finally, make sure that changes to the mapped area
2573 * do not percolate back to the file as seen by read().
2574 * (This is a bug on some variants of i386 svr4.0.)
2575 */
2576 for (i = 0; i < pagesize; ++i)
2577 *(data2 + i) = *(data2 + i) + 1;
2578 data3 = malloc(pagesize);
2579 if (!data3)
2580 exit(1);
2581 if (read(fd, data3, pagesize) != pagesize)
2582 exit(1);
2583 for (i = 0; i < pagesize; ++i)
2584 if (*(data + i) != *(data3 + i))
2585 exit(1);
2586 close(fd);
2587 unlink("conftestmmap");
2588 exit(0);
2589}
2590
2591EOF
2592if { (eval echo configure:2593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2593then
2594 ac_cv_func_mmap_fixed_mapped=yes
2595else
2596 echo "configure: failed program was:" >&5
2597 cat conftest.$ac_ext >&5
2598 rm -fr conftest*
2599 ac_cv_func_mmap_fixed_mapped=no
2600fi
2601rm -fr conftest*
2602fi
2603
2604fi
2605
2606echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2607if test $ac_cv_func_mmap_fixed_mapped = yes; then
2608 cat >> confdefs.h <<\EOF
2609#define HAVE_MMAP 1
2610EOF
2611
2612fi
2613
2614 for ac_func in memcpy strerror
2615do
2616echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2617echo "configure:2618: checking for $ac_func" >&5
2618if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2619 echo $ac_n "(cached) $ac_c" 1>&6
2620else
2621 cat > conftest.$ac_ext <<EOF
2622#line 2623 "configure"
2623#include "confdefs.h"
2624/* System header to define __stub macros and hopefully few prototypes,
2625 which can conflict with char $ac_func(); below. */
2626#include <assert.h>
2627/* Override any gcc2 internal prototype to avoid an error. */
2628/* We use char because int might match the return type of a gcc2
2629 builtin and then its argument prototype would still apply. */
2630char $ac_func();
2631
2632int main() {
2633
2634/* The GNU C library defines this for functions which it implements
2635 to always fail with ENOSYS. Some functions are actually named
2636 something starting with __ and the normal name is an alias. */
2637#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2638choke me
2639#else
2640$ac_func();
2641#endif
2642
2643; return 0; }
2644EOF
2645if { (eval echo configure:2646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2646 rm -rf conftest*
2647 eval "ac_cv_func_$ac_func=yes"
2648else
2649 echo "configure: failed program was:" >&5
2650 cat conftest.$ac_ext >&5
2651 rm -rf conftest*
2652 eval "ac_cv_func_$ac_func=no"
2653fi
2654rm -f conftest*
2655fi
2656
2657if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2658 echo "$ac_t""yes" 1>&6
2659 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2660 cat >> confdefs.h <<EOF
2661#define $ac_tr_func 1
2662EOF
2663
2664else
2665 echo "$ac_t""no" 1>&6
2666fi
2667done
2668
2669
2670 if test "$with_system_zlib" = yes; then
2671 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
2672echo "configure:2673: checking for deflate in -lz" >&5
2673ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
2674if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2675 echo $ac_n "(cached) $ac_c" 1>&6
2676else
2677 ac_save_LIBS="$LIBS"
2678LIBS="-lz $LIBS"
2679cat > conftest.$ac_ext <<EOF
2680#line 2681 "configure"
2681#include "confdefs.h"
2682/* Override any gcc2 internal prototype to avoid an error. */
2683/* We use char because int might match the return type of a gcc2
2684 builtin and then its argument prototype would still apply. */
2685char deflate();
2686
2687int main() {
2688deflate()
2689; return 0; }
2690EOF
2691if { (eval echo configure:2692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2692 rm -rf conftest*
2693 eval "ac_cv_lib_$ac_lib_var=yes"
2694else
2695 echo "configure: failed program was:" >&5
2696 cat conftest.$ac_ext >&5
2697 rm -rf conftest*
2698 eval "ac_cv_lib_$ac_lib_var=no"
2699fi
2700rm -f conftest*
2701LIBS="$ac_save_LIBS"
2702
2703fi
2704if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2705 echo "$ac_t""yes" 1>&6
2706 target_all=
2707else
2708 echo "$ac_t""no" 1>&6
2709target_all=libzgcj.la
2710fi
2711
2712 else
2713 target_all=libzgcj.la
2714 fi
2715fi
2716
2717
2718
2719for ac_hdr in unistd.h
2720do
2721ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2722echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2723echo "configure:2724: checking for $ac_hdr" >&5
2724if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2725 echo $ac_n "(cached) $ac_c" 1>&6
2726else
2727 cat > conftest.$ac_ext <<EOF
2728#include <sys/types.h>
2729#line 2730 "configure"
2730#include "confdefs.h"
2731#include <$ac_hdr>
2732EOF
2733ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2734{ (eval echo configure:2735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2735ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2736if test -z "$ac_err"; then
2737 rm -rf conftest*
2738 eval "ac_cv_header_$ac_safe=yes"
2739else
2740 echo "$ac_err" >&5
2741 echo "configure: failed program was:" >&5
2742 cat conftest.$ac_ext >&5
2743 rm -rf conftest*
2744 eval "ac_cv_header_$ac_safe=no"
2745fi
2746rm -f conftest*
2747fi
2748if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2749 echo "$ac_t""yes" 1>&6
2750 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2751 cat >> confdefs.h <<EOF
2752#define $ac_tr_hdr 1
2753EOF
2754
2755else
2756 echo "$ac_t""no" 1>&6
2757fi
2758done
2759
2760
2761if test -n "$with_cross_host" &&
2762 test x"$with_cross_host" != x"no"; then
2763 toolexecdir='$(exec_prefix)/$(target_alias)'
2764 toolexeclibdir='$(toolexecdir)/lib'
2765else
2766 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
2767 toolexeclibdir='$(libdir)'
2768fi
2769toolexeclibdir=$toolexeclibdir/`$CC -print-multi-os-directory 2>/dev/null || echo .`
2770
2771
2772
2773
2774
2775if test -n "$with_target_subdir"; then
2776 TARGET_LIBRARY_TRUE=
2777 TARGET_LIBRARY_FALSE='#'
2778else
2779 TARGET_LIBRARY_TRUE='#'
2780 TARGET_LIBRARY_FALSE=
2781fi
2782
2783if test "${multilib}" = "yes"; then
2784 multilib_arg="--enable-multilib"
2785else
2786 multilib_arg=
2787fi
2788
2789trap '' 1 2 15
2790cat > confcache <<\EOF
2791# This file is a shell script that caches the results of configure
2792# tests run on this system so they can be shared between configure
2793# scripts and configure runs. It is not useful on other systems.
2794# If it contains results you don't want to keep, you may remove or edit it.
2795#
2796# By default, configure uses ./config.cache as the cache file,
2797# creating it if it does not exist already. You can give configure
2798# the --cache-file=FILE option to use a different cache file; that is
2799# what configure does when it calls configure scripts in
2800# subdirectories, so they share the cache.
2801# Giving --cache-file=/dev/null disables caching, for debugging configure.
2802# config.status only pays attention to the cache file if you give it the
2803# --recheck option to rerun configure.
2804#
2805EOF
2806# The following way of writing the cache mishandles newlines in values,
2807# but we know of no workaround that is simple, portable, and efficient.
2808# So, don't put newlines in cache variables' values.
2809# Ultrix sh set writes to stderr and can't be redirected directly,
2810# and sets the high bit in the cache file unless we assign to the vars.
2811(set) 2>&1 |
2812 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2813 *ac_space=\ *)
2814 # `set' does not quote correctly, so add quotes (double-quote substitution
2815 # turns \\\\ into \\, and sed turns \\ into \).
2816 sed -n \
2817 -e "s/'/'\\\\''/g" \
2818 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2819 ;;
2820 *)
2821 # `set' quotes correctly as required by POSIX, so do not add quotes.
2822 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2823 ;;
2824 esac >> confcache
2825if cmp -s $cache_file confcache; then
2826 :
2827else
2828 if test -w $cache_file; then
2829 echo "updating cache $cache_file"
2830 cat confcache > $cache_file
2831 else
2832 echo "not updating unwritable cache $cache_file"
2833 fi
2834fi
2835rm -f confcache
2836
2837trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2838
2839test "x$prefix" = xNONE && prefix=$ac_default_prefix
2840# Let make expand exec_prefix.
2841test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2842
2843# Any assignment to VPATH causes Sun make to only execute
2844# the first set of double-colon rules, so remove it if not needed.
2845# If there is a colon in the path, we need to keep it.
2846if test "x$srcdir" = x.; then
2847 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2848fi
2849
2850trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2851
2852# Transform confdefs.h into DEFS.
2853# Protect against shell expansion while executing Makefile rules.
2854# Protect against Makefile macro expansion.
2855cat > conftest.defs <<\EOF
2856s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2857s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2858s%\[%\\&%g
2859s%\]%\\&%g
2860s%\$%$$%g
2861EOF
2862DEFS=`sed -f conftest.defs confdefs.h | tr '\012\015' ' '`
2863rm -f conftest.defs
2864
2865
2866# Without the "./", some shells look in PATH for config.status.
2867: ${CONFIG_STATUS=./config.status}
2868
2869echo creating $CONFIG_STATUS
2870rm -f $CONFIG_STATUS
2871cat > $CONFIG_STATUS <<EOF
2872#! /bin/sh
2873# Generated automatically by configure.
2874# Run this file to recreate the current configuration.
2875# This directory was configured as follows,
2876EOF
2877echo ': ${CONFIG_SHELL='"${CONFIG_SHELL-/bin/sh}"'}' >> $CONFIG_STATUS
2878cat >> $CONFIG_STATUS <<EOF
2879# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2880#
2881# $0 $ac_configure_args
2882#
2883# Compiler output produced by configure, useful for debugging
2884# configure, is in ./config.log if it exists.
2885
2886ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2887for ac_option
2888do
2889 case "\$ac_option" in
2890 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2891 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2892 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2893 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2894 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2895 exit 0 ;;
2896 -help | --help | --hel | --he | --h)
2897 echo "\$ac_cs_usage"; exit 0 ;;
2898 *) echo "\$ac_cs_usage"; exit 1 ;;
2899 esac
2900done
2901
2902ac_given_srcdir=$srcdir
2903ac_given_INSTALL="$INSTALL"
2904PATHIFS="$PATH_IFS"
2905
2906trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2907EOF
2908cat >> $CONFIG_STATUS <<EOF
2909
2910# Protect against being on the right side of a sed subst in config.status.
2911sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2912 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2913$ac_vpsub
2914$extrasub
2915s,\([^a-zA-Z0-9:]\)/bin/sh\(.exe\),\1${CONFIG_SHELL-/bin/sh}\2,g
2916s%@SHELL@%$SHELL%g
2917s%@CFLAGS@%$CFLAGS%g
2918s%@CPPFLAGS@%$CPPFLAGS%g
2919s%@CXXFLAGS@%$CXXFLAGS%g
2920s%@FFLAGS@%$FFLAGS%g
2921s%@DEFS@%$DEFS%g
2922s%@LDFLAGS@%$LDFLAGS%g
2923s%@LIBS@%$LIBS%g
2924s%@exec_prefix@%$exec_prefix%g
2925s%@prefix@%$prefix%g
2926s%@program_transform_name@%$program_transform_name%g
2927s%@bindir@%$bindir%g
2928s%@sbindir@%$sbindir%g
2929s%@libexecdir@%$libexecdir%g
2930s%@datadir@%$datadir%g
2931s%@sysconfdir@%$sysconfdir%g
2932s%@sharedstatedir@%$sharedstatedir%g
2933s%@localstatedir@%$localstatedir%g
2934s%@libdir@%$libdir%g
2935s%@includedir@%$includedir%g
2936s%@oldincludedir@%$oldincludedir%g
2937s%@infodir@%$infodir%g
2938s%@mandir@%$mandir%g
2939s%@PATH_IFS@%$PATH_IFS%g
2940s%@EXEEXT@%$EXEEXT%g
2941s%@zlib_basedir@%$zlib_basedir%g
2942s%@host@%$host%g
2943s%@host_alias@%$host_alias%g
2944s%@host_cpu@%$host_cpu%g
2945s%@host_vendor@%$host_vendor%g
2946s%@host_os@%$host_os%g
2947s%@target@%$target%g
2948s%@target_alias@%$target_alias%g
2949s%@target_cpu@%$target_cpu%g
2950s%@target_vendor@%$target_vendor%g
2951s%@target_os@%$target_os%g
2952s%@build@%$build%g
2953s%@build_alias@%$build_alias%g
2954s%@build_cpu@%$build_cpu%g
2955s%@build_vendor@%$build_vendor%g
2956s%@build_os@%$build_os%g
2957s%@mkinstalldirs@%$mkinstalldirs%g
2958s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2959s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2960s%@INSTALL_DATA@%$INSTALL_DATA%g
2961s%@PACKAGE@%$PACKAGE%g
2962s%@VERSION@%$VERSION%g
2963s%@ACLOCAL@%$ACLOCAL%g
2964s%@AUTOCONF@%$AUTOCONF%g
2965s%@AUTOMAKE@%$AUTOMAKE%g
2966s%@AUTOHEADER@%$AUTOHEADER%g
2967s%@MAKEINFO@%$MAKEINFO%g
2968s%@SET_MAKE@%$SET_MAKE%g
2969s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
2970s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
2971s%@MAINT@%$MAINT%g
2972s%@CC@%$CC%g
2973s%@LN_S@%$LN_S%g
2974s%@OBJEXT@%$OBJEXT%g
2975s%@RANLIB@%$RANLIB%g
2976s%@STRIP@%$STRIP%g
2977s%@LIBTOOL@%$LIBTOOL%g
2978s%@COMPPATH@%$COMPPATH%g
2979s%@CPP@%$CPP%g
2980s%@target_all@%$target_all%g
2981s%@toolexecdir@%$toolexecdir%g
2982s%@toolexeclibdir@%$toolexeclibdir%g
2983s%@TARGET_LIBRARY_TRUE@%$TARGET_LIBRARY_TRUE%g
2984s%@TARGET_LIBRARY_FALSE@%$TARGET_LIBRARY_FALSE%g
2985
2986CEOF
2987EOF
2988
2989cat >> $CONFIG_STATUS <<\EOF
2990
2991# Split the substitutions into bite-sized pieces for seds with
2992# small command number limits, like on Digital OSF/1 and HP-UX.
2993ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2994ac_file=1 # Number of current file.
2995ac_beg=1 # First line for current file.
2996ac_end=$ac_max_sed_cmds # Line after last line for current file.
2997ac_more_lines=:
2998ac_sed_cmds=""
2999while $ac_more_lines; do
3000 if test $ac_beg -gt 1; then
3001 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3002 else
3003 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3004 fi
3005 if test ! -s conftest.s$ac_file; then
3006 ac_more_lines=false
3007 rm -f conftest.s$ac_file
3008 else
3009 if test -z "$ac_sed_cmds"; then
3010 ac_sed_cmds="sed -f conftest.s$ac_file"
3011 else
3012 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3013 fi
3014 ac_file=`expr $ac_file + 1`
3015 ac_beg=$ac_end
3016 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3017 fi
3018done
3019if test -z "$ac_sed_cmds"; then
3020 ac_sed_cmds=cat
3021fi
3022EOF
3023
3024cat >> $CONFIG_STATUS <<EOF
3025
3026CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
3027EOF
3028cat >> $CONFIG_STATUS <<\EOF
3029for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3030 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3031 case "$ac_file" in
3032 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3033 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3034 *) ac_file_in="${ac_file}.in" ;;
3035 esac
3036
3037 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3038
3039 # Remove last slash and all that follows it. Not all systems have dirname.
3040 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3041 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3042 # The file is in a subdirectory.
3043 test ! -d "$ac_dir" && mkdir "$ac_dir"
3044 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3045 # A "../" for each directory in $ac_dir_suffix.
3046 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3047 else
3048 ac_dir_suffix= ac_dots=
3049 fi
3050
3051 case "$ac_given_srcdir" in
3052 .) srcdir=.
3053 if test -z "$ac_dots"; then top_srcdir=.
3054 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3055 /* | [A-Za-z]:*)
3056 srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3057 *) # Relative path.
3058 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3059 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3060 esac
3061
3062 case "$ac_given_INSTALL" in
3063 [/$]* | [A-Za-z]:*) INSTALL="$ac_given_INSTALL" ;;
3064 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3065 esac
3066
3067 echo creating "$ac_file"
3068 rm -f "$ac_file"
3069 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3070 case "$ac_file" in
3071 *Makefile*) ac_comsub="1i\\
3072# $configure_input" ;;
3073 *) ac_comsub= ;;
3074 esac
3075
3076 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%$PATHIFS% $ac_given_srcdir/%g"`
3077 sed -e "$ac_comsub
3078s%@configure_input@%$configure_input%g
3079s%@srcdir@%$srcdir%g
3080s%@top_srcdir@%$top_srcdir%g
3081s%@INSTALL@%$INSTALL%g
3082" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3083fi; done
3084rm -f conftest.s*
3085
3086EOF
3087cat >> $CONFIG_STATUS <<EOF
3088srcdir=${srcdir}
3089host=${host}
3090target=${target}
3091with_multisubdir=${with_multisubdir}
3092ac_configure_args="${multilib_arg} ${ac_configure_args}"
3093CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
3094zlib_basedir=${zlib_basedir}
3095CC="${CC}"
3096CXX="${CXX}"
3097
3098EOF
3099cat >> $CONFIG_STATUS <<\EOF
3100if test -n "$CONFIG_FILES"; then
3101 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
3102 ac_file=Makefile . ${zlib_basedir}/../config-ml.in
3103fi
3104exit 0
3105EOF
3106chmod +x $CONFIG_STATUS
3107rm -fr confdefs* $ac_clean_files
3108test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3109
Note: See TracBrowser for help on using the repository browser.