]> git.ipfire.org Git - thirdparty/gcc.git/blame - zlib/configure
hashtable.h: Trivial formatting fixes.
[thirdparty/gcc.git] / zlib / configure
CommitLineData
dfac8a13 1#! /bin/sh
dfac8a13 2# Guess values for system-dependent variables and create Makefiles.
a8aea176 3# Generated by GNU Autoconf 2.59.
c45f211e 4#
a8aea176 5# Copyright (C) 2003 Free Software Foundation, Inc.
dfac8a13
TT
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
a8aea176
NN
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
dfac8a13 185
a8aea176
NN
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
dfac8a13 254ac_default_prefix=/usr/local
a8aea176
NN
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="zlib.h"
275# Factoring default headers for most tests.
276ac_includes_default="\
277#include <stdio.h>
278#if HAVE_SYS_TYPES_H
279# include <sys/types.h>
280#endif
281#if HAVE_SYS_STAT_H
282# include <sys/stat.h>
283#endif
284#if STDC_HEADERS
285# include <stdlib.h>
286# include <stddef.h>
287#else
288# if HAVE_STDLIB_H
289# include <stdlib.h>
290# endif
291#endif
292#if HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H
294# include <memory.h>
295# endif
296# include <string.h>
297#endif
298#if HAVE_STRINGS_H
299# include <strings.h>
300#endif
301#if HAVE_INTTYPES_H
302# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305# include <stdint.h>
306# endif
307#endif
308#if HAVE_UNISTD_H
309# include <unistd.h>
310#endif"
311
9fabf579 312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS zlib_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os mkinstalldirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT COMPPATH CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S RANLIB ac_ct_RANLIB LIBTOOL CPP EGREP target_all toolexecdir toolexeclibdir TARGET_LIBRARY_TRUE TARGET_LIBRARY_FALSE LIBOBJS LTLIBOBJS'
a8aea176 313ac_subst_files=''
dfac8a13
TT
314
315# Initialize some variables set by options.
a8aea176
NN
316ac_init_help=
317ac_init_version=false
dfac8a13
TT
318# The variables have the same names as the options, with
319# dashes changed to underlines.
a8aea176 320cache_file=/dev/null
dfac8a13 321exec_prefix=NONE
dfac8a13 322no_create=
dfac8a13
TT
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
dfac8a13
TT
331verbose=
332x_includes=NONE
333x_libraries=NONE
a8aea176
NN
334
335# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them.
dfac8a13
TT
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
dfac8a13
TT
353ac_prev=
354for ac_option
355do
dfac8a13
TT
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
361 fi
362
a8aea176 363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
dfac8a13
TT
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
a8aea176 367 case $ac_option in
dfac8a13
TT
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
a8aea176 372 bindir=$ac_optarg ;;
dfac8a13
TT
373
374 -build | --build | --buil | --bui | --bu)
a8aea176 375 ac_prev=build_alias ;;
dfac8a13 376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
a8aea176 377 build_alias=$ac_optarg ;;
dfac8a13
TT
378
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
a8aea176
NN
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
dfac8a13
TT
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
a8aea176 393 datadir=$ac_optarg ;;
dfac8a13
TT
394
395 -disable-* | --disable-*)
a8aea176 396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
dfac8a13 397 # Reject names that are not valid shell variable names.
a8aea176
NN
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
dfac8a13
TT
403
404 -enable-* | --enable-*)
a8aea176 405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
dfac8a13 406 # Reject names that are not valid shell variable names.
a8aea176
NN
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
dfac8a13
TT
413 *) ac_optarg=yes ;;
414 esac
a8aea176 415 eval "enable_$ac_feature='$ac_optarg'" ;;
dfac8a13
TT
416
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
a8aea176 424 exec_prefix=$ac_optarg ;;
dfac8a13
TT
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
a8aea176
NN
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
dfac8a13
TT
436
437 -host | --host | --hos | --ho)
a8aea176 438 ac_prev=host_alias ;;
dfac8a13 439 -host=* | --host=* | --hos=* | --ho=*)
a8aea176 440 host_alias=$ac_optarg ;;
dfac8a13
TT
441
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
a8aea176 447 includedir=$ac_optarg ;;
dfac8a13
TT
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
a8aea176 452 infodir=$ac_optarg ;;
dfac8a13
TT
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
a8aea176 457 libdir=$ac_optarg ;;
dfac8a13
TT
458
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
a8aea176 464 libexecdir=$ac_optarg ;;
dfac8a13
TT
465
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
a8aea176 473 localstatedir=$ac_optarg ;;
dfac8a13
TT
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
a8aea176 478 mandir=$ac_optarg ;;
dfac8a13
TT
479
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
483
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a8aea176 485 | --no-cr | --no-c | -n)
dfac8a13
TT
486 no_create=yes ;;
487
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
491
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
a8aea176 499 oldincludedir=$ac_optarg ;;
dfac8a13
TT
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
a8aea176 504 prefix=$ac_optarg ;;
dfac8a13
TT
505
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
a8aea176 511 program_prefix=$ac_optarg ;;
dfac8a13
TT
512
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
a8aea176 518 program_suffix=$ac_optarg ;;
dfac8a13
TT
519
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
a8aea176 535 program_transform_name=$ac_optarg ;;
dfac8a13
TT
536
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
540
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
a8aea176 545 sbindir=$ac_optarg ;;
dfac8a13
TT
546
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
a8aea176 556 sharedstatedir=$ac_optarg ;;
dfac8a13
TT
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
a8aea176 561 site=$ac_optarg ;;
dfac8a13
TT
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
a8aea176 566 srcdir=$ac_optarg ;;
dfac8a13
TT
567
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
a8aea176 573 sysconfdir=$ac_optarg ;;
dfac8a13
TT
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
a8aea176 576 ac_prev=target_alias ;;
dfac8a13 577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
a8aea176 578 target_alias=$ac_optarg ;;
dfac8a13
TT
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
a8aea176
NN
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
dfac8a13
TT
585
586 -with-* | --with-*)
a8aea176 587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
dfac8a13 588 # Reject names that are not valid shell variable names.
a8aea176
NN
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
dfac8a13 592 ac_package=`echo $ac_package| sed 's/-/_/g'`
a8aea176
NN
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
dfac8a13
TT
595 *) ac_optarg=yes ;;
596 esac
a8aea176 597 eval "with_$ac_package='$ac_optarg'" ;;
dfac8a13
TT
598
599 -without-* | --without-*)
a8aea176 600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
dfac8a13 601 # Reject names that are not valid shell variable names.
a8aea176
NN
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
dfac8a13
TT
607
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
611
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
a8aea176 617 x_includes=$ac_optarg ;;
dfac8a13
TT
618
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
a8aea176 624 x_libraries=$ac_optarg ;;
dfac8a13 625
a8aea176
NN
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
dfac8a13
TT
629 ;;
630
a8aea176
NN
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
640
dfac8a13 641 *)
a8aea176
NN
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
dfac8a13
TT
647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
a8aea176
NN
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
dfac8a13 656fi
dfac8a13 657
a8aea176
NN
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667done
dfac8a13 668
a8aea176
NN
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
c45f211e 672do
a8aea176
NN
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
dfac8a13
TT
678 esac
679done
680
a8aea176
NN
681# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc.
683# FIXME: To remove some day.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
696 fi
697fi
dfac8a13 698
a8aea176
NN
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
dfac8a13 703
dfac8a13
TT
704
705# Find the source files, if location was not specified.
706if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
a8aea176
NN
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
dfac8a13
TT
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
724 fi
725else
726 ac_srcdir_defaulted=no
727fi
728if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
a8aea176
NN
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
dfac8a13 732 else
a8aea176
NN
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
dfac8a13
TT
735 fi
736fi
a8aea176
NN
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
773
774#
775# Report the --help message.
776#
777if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
780 cat <<_ACEOF
781\`configure' configures this package to adapt to many kinds of systems.
782
783Usage: $0 [OPTION]... [VAR=VALUE]...
784
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE. See below for descriptions of some of the useful variables.
787
788Defaults for the options are specified in brackets.
789
790Configuration:
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
800
801_ACEOF
802
803 cat <<_ACEOF
804Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
806 [$ac_default_prefix]
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
808 [PREFIX]
809
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
814
815For better control, use the options below.
816
817Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
830_ACEOF
831
832 cat <<\_ACEOF
833
834Program names:
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
838
839System types:
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
842 --target=TARGET configure for building compilers for TARGET [HOST]
843_ACEOF
844fi
845
846if test -n "$ac_init_help"; then
847
848 cat <<\_ACEOF
849
850Optional Features:
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --enable-maintainer-mode enable make rules and dependencies not useful
854 (and sometimes confusing) to the casual installer
855 --enable-multilib build many library versions (default)
9fabf579
KC
856 --disable-dependency-tracking Speeds up one-time builds
857 --enable-dependency-tracking Do not reject slow dependency extractors
a8aea176
NN
858 --enable-shared=PKGS build shared libraries default=yes
859 --enable-static=PKGS build static libraries default=yes
860 --enable-fast-install=PKGS optimize for fast installation default=yes
861 --disable-libtool-lock avoid locking (might break parallel builds)
862
863Optional Packages:
864 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
865 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
866 --with-target-subdir=SUBDIR
867 configuring in a subdirectory
868 --with-cross-host=HOST configuring with a cross compiler
869 --with-system-zlib use installed libz
870 --with-gnu-ld assume the C compiler uses GNU ld default=no
871 --with-pic try to use only PIC/non-PIC objects default=use both
872
873Some influential environment variables:
874 CC C compiler command
875 CFLAGS C compiler flags
876 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
877 nonstandard directory <lib dir>
878 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
879 headers in a nonstandard directory <include dir>
880 CPP C preprocessor
881
882Use these variables to override the choices made by `configure' or to help
883it to find libraries and programs with nonstandard names/locations.
884
885_ACEOF
886fi
887
888if test "$ac_init_help" = "recursive"; then
889 # If there are subdirs, report their specific --help.
890 ac_popdir=`pwd`
891 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
892 test -d $ac_dir || continue
893 ac_builddir=.
894
895if test "$ac_dir" != .; then
896 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
897 # A "../" for each directory in $ac_dir_suffix.
898 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
899else
900 ac_dir_suffix= ac_top_builddir=
901fi
902
903case $srcdir in
904 .) # No --srcdir option. We are building in place.
905 ac_srcdir=.
906 if test -z "$ac_top_builddir"; then
907 ac_top_srcdir=.
908 else
909 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
910 fi ;;
911 [\\/]* | ?:[\\/]* ) # Absolute path.
912 ac_srcdir=$srcdir$ac_dir_suffix;
913 ac_top_srcdir=$srcdir ;;
914 *) # Relative path.
915 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
916 ac_top_srcdir=$ac_top_builddir$srcdir ;;
917esac
918
919# Do not use `cd foo && pwd` to compute absolute paths, because
920# the directories may not exist.
921case `pwd` in
922.) ac_abs_builddir="$ac_dir";;
923*)
924 case "$ac_dir" in
925 .) ac_abs_builddir=`pwd`;;
926 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
927 *) ac_abs_builddir=`pwd`/"$ac_dir";;
928 esac;;
929esac
930case $ac_abs_builddir in
931.) ac_abs_top_builddir=${ac_top_builddir}.;;
932*)
933 case ${ac_top_builddir}. in
934 .) ac_abs_top_builddir=$ac_abs_builddir;;
935 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
936 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
937 esac;;
938esac
939case $ac_abs_builddir in
940.) ac_abs_srcdir=$ac_srcdir;;
941*)
942 case $ac_srcdir in
943 .) ac_abs_srcdir=$ac_abs_builddir;;
944 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
945 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
946 esac;;
947esac
948case $ac_abs_builddir in
949.) ac_abs_top_srcdir=$ac_top_srcdir;;
950*)
951 case $ac_top_srcdir in
952 .) ac_abs_top_srcdir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
954 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
955 esac;;
956esac
957
958 cd $ac_dir
959 # Check for guested configure; otherwise get Cygnus style configure.
960 if test -f $ac_srcdir/configure.gnu; then
961 echo
962 $SHELL $ac_srcdir/configure.gnu --help=recursive
963 elif test -f $ac_srcdir/configure; then
964 echo
965 $SHELL $ac_srcdir/configure --help=recursive
966 elif test -f $ac_srcdir/configure.ac ||
967 test -f $ac_srcdir/configure.in; then
968 echo
969 $ac_configure --help
970 else
971 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
972 fi
9fabf579 973 cd $ac_popdir
a8aea176
NN
974 done
975fi
976
977test -n "$ac_init_help" && exit 0
978if $ac_init_version; then
979 cat <<\_ACEOF
980
981Copyright (C) 2003 Free Software Foundation, Inc.
982This configure script is free software; the Free Software Foundation
983gives unlimited permission to copy, distribute and modify it.
984_ACEOF
985 exit 0
986fi
987exec 5>config.log
988cat >&5 <<_ACEOF
989This file contains any messages produced by compilers while
990running configure, to aid debugging if configure makes a mistake.
991
992It was created by $as_me, which was
993generated by GNU Autoconf 2.59. Invocation command line was
994
995 $ $0 $@
996
997_ACEOF
998{
999cat <<_ASUNAME
1000## --------- ##
1001## Platform. ##
1002## --------- ##
1003
1004hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1005uname -m = `(uname -m) 2>/dev/null || echo unknown`
1006uname -r = `(uname -r) 2>/dev/null || echo unknown`
1007uname -s = `(uname -s) 2>/dev/null || echo unknown`
1008uname -v = `(uname -v) 2>/dev/null || echo unknown`
1009
1010/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1011/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1012
1013/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1014/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1015/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1016hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1017/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1018/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1019/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1020
1021_ASUNAME
1022
1023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1024for as_dir in $PATH
1025do
1026 IFS=$as_save_IFS
1027 test -z "$as_dir" && as_dir=.
1028 echo "PATH: $as_dir"
1029done
1030
1031} >&5
1032
1033cat >&5 <<_ACEOF
1034
1035
1036## ----------- ##
1037## Core tests. ##
1038## ----------- ##
1039
1040_ACEOF
1041
1042
1043# Keep a trace of the command line.
1044# Strip out --no-create and --no-recursion so they do not pile up.
1045# Strip out --silent because we don't want to record it for future runs.
1046# Also quote any args containing shell meta-characters.
1047# Make two passes to allow for proper duplicate-argument suppression.
1048ac_configure_args=
1049ac_configure_args0=
1050ac_configure_args1=
1051ac_sep=
1052ac_must_keep_next=false
1053for ac_pass in 1 2
1054do
1055 for ac_arg
1056 do
1057 case $ac_arg in
1058 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1059 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1060 | -silent | --silent | --silen | --sile | --sil)
1061 continue ;;
1062 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1063 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1064 esac
1065 case $ac_pass in
1066 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1067 2)
1068 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1069 if test $ac_must_keep_next = true; then
1070 ac_must_keep_next=false # Got value, back to normal.
1071 else
1072 case $ac_arg in
1073 *=* | --config-cache | -C | -disable-* | --disable-* \
1074 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1075 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1076 | -with-* | --with-* | -without-* | --without-* | --x)
1077 case "$ac_configure_args0 " in
1078 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1079 esac
1080 ;;
1081 -* ) ac_must_keep_next=true ;;
1082 esac
1083 fi
1084 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1085 # Get rid of the leading space.
1086 ac_sep=" "
1087 ;;
1088 esac
1089 done
1090done
1091$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1092$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1093
1094# When interrupted or exit'd, cleanup temporary files, and complete
1095# config.log. We remove comments because anyway the quotes in there
1096# would cause problems or look ugly.
1097# WARNING: Be sure not to use single quotes in there, as some shells,
1098# such as our DU 5.0 friend, will then `close' the trap.
1099trap 'exit_status=$?
1100 # Save into config.log some information that might help in debugging.
1101 {
1102 echo
1103
1104 cat <<\_ASBOX
1105## ---------------- ##
1106## Cache variables. ##
1107## ---------------- ##
1108_ASBOX
1109 echo
1110 # The following way of writing the cache mishandles newlines in values,
1111{
1112 (set) 2>&1 |
1113 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1114 *ac_space=\ *)
1115 sed -n \
1116 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1117 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1118 ;;
1119 *)
1120 sed -n \
1121 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1122 ;;
1123 esac;
1124}
1125 echo
1126
1127 cat <<\_ASBOX
1128## ----------------- ##
1129## Output variables. ##
1130## ----------------- ##
1131_ASBOX
1132 echo
1133 for ac_var in $ac_subst_vars
1134 do
1135 eval ac_val=$`echo $ac_var`
1136 echo "$ac_var='"'"'$ac_val'"'"'"
1137 done | sort
1138 echo
1139
1140 if test -n "$ac_subst_files"; then
1141 cat <<\_ASBOX
1142## ------------- ##
1143## Output files. ##
1144## ------------- ##
1145_ASBOX
1146 echo
1147 for ac_var in $ac_subst_files
1148 do
1149 eval ac_val=$`echo $ac_var`
1150 echo "$ac_var='"'"'$ac_val'"'"'"
1151 done | sort
1152 echo
1153 fi
1154
1155 if test -s confdefs.h; then
1156 cat <<\_ASBOX
1157## ----------- ##
1158## confdefs.h. ##
1159## ----------- ##
1160_ASBOX
1161 echo
1162 sed "/^$/d" confdefs.h | sort
1163 echo
1164 fi
1165 test "$ac_signal" != 0 &&
1166 echo "$as_me: caught signal $ac_signal"
1167 echo "$as_me: exit $exit_status"
1168 } >&5
1169 rm -f core *.core &&
1170 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1171 exit $exit_status
1172 ' 0
1173for ac_signal in 1 2 13 15; do
1174 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1175done
1176ac_signal=0
dfac8a13 1177
a8aea176
NN
1178# confdefs.h avoids OS command line length limits that DEFS can exceed.
1179rm -rf conftest* confdefs.h
1180# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1181echo >confdefs.h
1182
1183# Predefined preprocessor variables.
1184
1185cat >>confdefs.h <<_ACEOF
1186#define PACKAGE_NAME "$PACKAGE_NAME"
1187_ACEOF
1188
1189
1190cat >>confdefs.h <<_ACEOF
1191#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1192_ACEOF
1193
1194
1195cat >>confdefs.h <<_ACEOF
1196#define PACKAGE_VERSION "$PACKAGE_VERSION"
1197_ACEOF
1198
1199
1200cat >>confdefs.h <<_ACEOF
1201#define PACKAGE_STRING "$PACKAGE_STRING"
1202_ACEOF
1203
1204
1205cat >>confdefs.h <<_ACEOF
1206#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1207_ACEOF
1208
1209
1210# Let the site file select an alternate cache file if it wants to.
dfac8a13 1211# Prefer explicitly selected file to automatically selected ones.
0ccf2c33
AO
1212if test -z "$CONFIG_SITE"; then
1213 if test "x$prefix" != xNONE; then
1214 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1215 else
1216 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
dfac8a13
TT
1217 fi
1218fi
1219for ac_site_file in $CONFIG_SITE; do
1220 if test -r "$ac_site_file"; then
a8aea176
NN
1221 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1222echo "$as_me: loading site script $ac_site_file" >&6;}
1223 sed 's/^/| /' "$ac_site_file" >&5
dfac8a13
TT
1224 . "$ac_site_file"
1225 fi
1226done
1227
1228if test -r "$cache_file"; then
a8aea176
NN
1229 # Some versions of bash will fail to source /dev/null (special
1230 # files actually), so we avoid doing that.
1231 if test -f "$cache_file"; then
1232 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1233echo "$as_me: loading cache $cache_file" >&6;}
1234 case $cache_file in
1235 [\\/]* | ?:[\\/]* ) . $cache_file;;
1236 *) . ./$cache_file;;
1237 esac
1238 fi
dfac8a13 1239else
a8aea176
NN
1240 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1241echo "$as_me: creating cache $cache_file" >&6;}
1242 >$cache_file
1243fi
1244
1245# Check that the precious variables saved in the cache have kept the same
1246# value.
1247ac_cache_corrupted=false
1248for ac_var in `(set) 2>&1 |
1249 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1250 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1251 eval ac_new_set=\$ac_env_${ac_var}_set
1252 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1253 eval ac_new_val="\$ac_env_${ac_var}_value"
1254 case $ac_old_set,$ac_new_set in
1255 set,)
1256 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1257echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1258 ac_cache_corrupted=: ;;
1259 ,set)
1260 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1261echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1262 ac_cache_corrupted=: ;;
1263 ,);;
1264 *)
1265 if test "x$ac_old_val" != "x$ac_new_val"; then
1266 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1267echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1268 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1269echo "$as_me: former value: $ac_old_val" >&2;}
1270 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1271echo "$as_me: current value: $ac_new_val" >&2;}
1272 ac_cache_corrupted=:
1273 fi;;
1274 esac
1275 # Pass precious variables to config.status.
1276 if test "$ac_new_set" = set; then
1277 case $ac_new_val in
1278 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1279 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1280 *) ac_arg=$ac_var=$ac_new_val ;;
1281 esac
1282 case " $ac_configure_args " in
1283 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1284 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1285 esac
1286 fi
1287done
1288if $ac_cache_corrupted; then
1289 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1290echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1291 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1292echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1293 { (exit 1); exit 1; }; }
dfac8a13
TT
1294fi
1295
1296ac_ext=c
dfac8a13 1297ac_cpp='$CPP $CPPFLAGS'
a8aea176
NN
1298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1300ac_compiler_gnu=$ac_cv_c_compiler_gnu
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
dfac8a13
TT
1319
1320
0fd91e0a 1321
6706f116
AO
1322# This works around the fact that libtool configuration may change LD
1323# for this particular configuration, but some shells, instead of
1324# keeping the changes in LD private, export them just because LD is
1325# exported.
1326ORIGINAL_LD_FOR_MULTILIBS=$LD
1327
0fd91e0a
AO
1328
1329if test "x${with_target_subdir}" != x && \
1330 test "${srcdir}" = "."; then
1331 if test "${with_target_subdir}" != "."; then
1332 zlib_basedir="${srcdir}/${with_multisrctop}../"
1333 else
1334 zlib_basedir="${srcdir}/${with_multisrctop}"
1335 fi
1336else
1337 zlib_basedir="${srcdir}/"
1338fi
1339
dfac8a13 1340ac_aux_dir=
0fd91e0a 1341for ac_dir in $zlib_basedir.. $srcdir/$zlib_basedir..; do
dfac8a13
TT
1342 if test -f $ac_dir/install-sh; then
1343 ac_aux_dir=$ac_dir
1344 ac_install_sh="$ac_aux_dir/install-sh -c"
1345 break
1346 elif test -f $ac_dir/install.sh; then
1347 ac_aux_dir=$ac_dir
1348 ac_install_sh="$ac_aux_dir/install.sh -c"
1349 break
a8aea176
NN
1350 elif test -f $ac_dir/shtool; then
1351 ac_aux_dir=$ac_dir
1352 ac_install_sh="$ac_aux_dir/shtool install -c"
1353 break
dfac8a13
TT
1354 fi
1355done
1356if test -z "$ac_aux_dir"; then
a8aea176
NN
1357 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $zlib_basedir.. $srcdir/$zlib_basedir.." >&5
1358echo "$as_me: error: cannot find install-sh or install.sh in $zlib_basedir.. $srcdir/$zlib_basedir.." >&2;}
1359 { (exit 1); exit 1; }; }
dfac8a13 1360fi
a8aea176
NN
1361ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1362ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1363ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
dfac8a13 1364
0fd91e0a
AO
1365if :; then :; else
1366 # This overrides the previous occurrence for automake, but not for
1367 # autoconf, which is exactly what we want.
1368 ac_aux_dir=
1369for ac_dir in .. $srcdir/..; do
1370 if test -f $ac_dir/install-sh; then
1371 ac_aux_dir=$ac_dir
1372 ac_install_sh="$ac_aux_dir/install-sh -c"
1373 break
1374 elif test -f $ac_dir/install.sh; then
1375 ac_aux_dir=$ac_dir
1376 ac_install_sh="$ac_aux_dir/install.sh -c"
1377 break
a8aea176
NN
1378 elif test -f $ac_dir/shtool; then
1379 ac_aux_dir=$ac_dir
1380 ac_install_sh="$ac_aux_dir/shtool install -c"
1381 break
1382 fi
0fd91e0a
AO
1383done
1384if test -z "$ac_aux_dir"; then
a8aea176
NN
1385 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1386echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1387 { (exit 1); exit 1; }; }
0fd91e0a 1388fi
a8aea176
NN
1389ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1390ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1391ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
0fd91e0a
AO
1392
1393fi
1394
dfac8a13 1395# Make sure we can run config.sub.
a8aea176
NN
1396$ac_config_sub sun4 >/dev/null 2>&1 ||
1397 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1398echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1399 { (exit 1); exit 1; }; }
1400
1401echo "$as_me:$LINENO: checking build system type" >&5
1402echo $ECHO_N "checking build system type... $ECHO_C" >&6
1403if test "${ac_cv_build+set}" = set; then
1404 echo $ECHO_N "(cached) $ECHO_C" >&6
1405else
1406 ac_cv_build_alias=$build_alias
1407test -z "$ac_cv_build_alias" &&
1408 ac_cv_build_alias=`$ac_config_guess`
1409test -z "$ac_cv_build_alias" &&
1410 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1411echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1412 { (exit 1); exit 1; }; }
1413ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1414 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1415echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1416 { (exit 1); exit 1; }; }
1417
1418fi
1419echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1420echo "${ECHO_T}$ac_cv_build" >&6
1421build=$ac_cv_build
1422build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1423build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1424build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1425
1426
1427echo "$as_me:$LINENO: checking host system type" >&5
1428echo $ECHO_N "checking host system type... $ECHO_C" >&6
1429if test "${ac_cv_host+set}" = set; then
1430 echo $ECHO_N "(cached) $ECHO_C" >&6
1431else
1432 ac_cv_host_alias=$host_alias
1433test -z "$ac_cv_host_alias" &&
1434 ac_cv_host_alias=$ac_cv_build_alias
1435ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1436 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1437echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1438 { (exit 1); exit 1; }; }
1439
1440fi
1441echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1442echo "${ECHO_T}$ac_cv_host" >&6
1443host=$ac_cv_host
1444host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1445host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1446host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1447
1448
1449echo "$as_me:$LINENO: checking target system type" >&5
1450echo $ECHO_N "checking target system type... $ECHO_C" >&6
1451if test "${ac_cv_target+set}" = set; then
1452 echo $ECHO_N "(cached) $ECHO_C" >&6
1453else
1454 ac_cv_target_alias=$target_alias
1455test "x$ac_cv_target_alias" = "x" &&
1456 ac_cv_target_alias=$ac_cv_host_alias
1457ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1458 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1459echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1460 { (exit 1); exit 1; }; }
dfac8a13 1461
a8aea176
NN
1462fi
1463echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1464echo "${ECHO_T}$ac_cv_target" >&6
1465target=$ac_cv_target
1466target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1467target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1468target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
dfac8a13 1469
dfac8a13 1470
a8aea176
NN
1471# The aliases save the names the user supplied, while $host etc.
1472# will get canonicalized.
1473test -n "$target_alias" &&
dfac8a13
TT
1474 test "$program_prefix$program_suffix$program_transform_name" = \
1475 NONENONEs,x,x, &&
1476 program_prefix=${target_alias}-
1477
8b55628e 1478# This works around an automake problem.
1e6347d8 1479mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
8b55628e
TT
1480
1481
9fabf579 1482am__api_version="1.7"
dfac8a13
TT
1483# Find a good install program. We prefer a C program (faster),
1484# so one script is as good as another. But avoid the broken or
1485# incompatible versions:
1486# SysV /etc/install, /usr/sbin/install
1487# SunOS /usr/etc/install
1488# IRIX /sbin/install
1489# AIX /bin/install
a8aea176 1490# AmigaOS /C/install, which installs bootblocks on floppy discs
dfac8a13
TT
1491# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1492# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1493# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a8aea176 1494# OS/2's system install, which has a completely different semantic
dfac8a13 1495# ./install, which can be erroneously created by make from ./install.sh.
a8aea176
NN
1496echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1497echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
dfac8a13 1498if test -z "$INSTALL"; then
a8aea176
NN
1499if test "${ac_cv_path_install+set}" = set; then
1500 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13 1501else
a8aea176
NN
1502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1503for as_dir in $PATH
1504do
1505 IFS=$as_save_IFS
1506 test -z "$as_dir" && as_dir=.
1507 # Account for people who put trailing slashes in PATH elements.
1508case $as_dir/ in
1509 ./ | .// | /cC/* | \
1510 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1511 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1512 /usr/ucb/* ) ;;
1513 *)
1514 # OSF1 and SCO ODT 3.0 have their own names for install.
1515 # Don't use installbsd from OSF since it installs stuff as root
1516 # by default.
1517 for ac_prog in ginstall scoinst install; do
1518 for ac_exec_ext in '' $ac_executable_extensions; do
1519 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
dfac8a13 1520 if test $ac_prog = install &&
a8aea176 1521 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
dfac8a13
TT
1522 # AIX install. It has an incompatible calling convention.
1523 :
a8aea176
NN
1524 elif test $ac_prog = install &&
1525 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1526 # program-specific install script used by HP pwplus--don't use.
1527 :
dfac8a13 1528 else
a8aea176
NN
1529 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1530 break 3
dfac8a13
TT
1531 fi
1532 fi
1533 done
a8aea176
NN
1534 done
1535 ;;
1536esac
1537done
1538
dfac8a13
TT
1539
1540fi
1541 if test "${ac_cv_path_install+set}" = set; then
a8aea176 1542 INSTALL=$ac_cv_path_install
dfac8a13
TT
1543 else
1544 # As a last resort, use the slow shell script. We don't cache a
1545 # path for INSTALL within a source directory, because that will
1546 # break other packages using the cache if that directory is
1547 # removed, or if the path is relative.
a8aea176 1548 INSTALL=$ac_install_sh
dfac8a13
TT
1549 fi
1550fi
a8aea176
NN
1551echo "$as_me:$LINENO: result: $INSTALL" >&5
1552echo "${ECHO_T}$INSTALL" >&6
dfac8a13
TT
1553
1554# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1555# It thinks the first close brace ends the variable substitution.
1556test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1557
a8aea176 1558test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
dfac8a13
TT
1559
1560test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1561
a8aea176
NN
1562echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1563echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
dfac8a13
TT
1564# Just in case
1565sleep 1
9fabf579 1566echo timestamp > conftest.file
dfac8a13
TT
1567# Do `set' in a subshell so we don't clobber the current shell's
1568# arguments. Must try -L first in case configure is actually a
1569# symlink; some systems play weird games with the mod time of symlinks
1570# (eg FreeBSD returns the mod time of the symlink's containing
1571# directory).
1572if (
9fabf579 1573 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
dfac8a13
TT
1574 if test "$*" = "X"; then
1575 # -L didn't work.
9fabf579 1576 set X `ls -t $srcdir/configure conftest.file`
dfac8a13 1577 fi
9fabf579
KC
1578 rm -f conftest.file
1579 if test "$*" != "X $srcdir/configure conftest.file" \
1580 && test "$*" != "X conftest.file $srcdir/configure"; then
dfac8a13
TT
1581
1582 # If neither matched, then we have a broken ls. This can happen
1583 # if, for instance, CONFIG_SHELL is bash and it inherits a
1584 # broken ls alias from the environment. This has actually
1585 # happened. Such a system could not be considered "sane".
a8aea176
NN
1586 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1587alias in your environment" >&5
1588echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1589alias in your environment" >&2;}
1590 { (exit 1); exit 1; }; }
dfac8a13
TT
1591 fi
1592
9fabf579 1593 test "$2" = conftest.file
dfac8a13
TT
1594 )
1595then
1596 # Ok.
1597 :
1598else
a8aea176
NN
1599 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1600Check your system clock" >&5
1601echo "$as_me: error: newly created file is older than distributed files!
1602Check your system clock" >&2;}
1603 { (exit 1); exit 1; }; }
dfac8a13 1604fi
a8aea176
NN
1605echo "$as_me:$LINENO: result: yes" >&5
1606echo "${ECHO_T}yes" >&6
dfac8a13 1607test "$program_prefix" != NONE &&
a8aea176 1608 program_transform_name="s,^,$program_prefix,;$program_transform_name"
dfac8a13
TT
1609# Use a double $ so make ignores it.
1610test "$program_suffix" != NONE &&
a8aea176
NN
1611 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1612# Double any \ or $. echo might interpret backslashes.
1613# By default was `s,x,x', remove it if useless.
1614cat <<\_ACEOF >conftest.sed
1615s/[\\$]/&&/g;s/;s,x,x,$//
1616_ACEOF
1617program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1618rm conftest.sed
1619
9fabf579
KC
1620
1621# expand $ac_aux_dir to an absolute path
1622am_aux_dir=`cd $ac_aux_dir && pwd`
1623
1624test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1625# Use eval to expand $SHELL
1626if eval "$MISSING --run true"; then
1627 am_missing_run="$MISSING --run "
1628else
1629 am_missing_run=
1630 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1631echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1632fi
1633
1634for ac_prog in gawk mawk nawk awk
1635do
1636 # Extract the first word of "$ac_prog", so it can be a program name with args.
1637set dummy $ac_prog; ac_word=$2
1638echo "$as_me:$LINENO: checking for $ac_word" >&5
1639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1640if test "${ac_cv_prog_AWK+set}" = set; then
1641 echo $ECHO_N "(cached) $ECHO_C" >&6
1642else
1643 if test -n "$AWK"; then
1644 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1645else
1646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1647for as_dir in $PATH
1648do
1649 IFS=$as_save_IFS
1650 test -z "$as_dir" && as_dir=.
1651 for ac_exec_ext in '' $ac_executable_extensions; do
1652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1653 ac_cv_prog_AWK="$ac_prog"
1654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1655 break 2
1656 fi
1657done
1658done
1659
1660fi
1661fi
1662AWK=$ac_cv_prog_AWK
1663if test -n "$AWK"; then
1664 echo "$as_me:$LINENO: result: $AWK" >&5
1665echo "${ECHO_T}$AWK" >&6
1666else
1667 echo "$as_me:$LINENO: result: no" >&5
1668echo "${ECHO_T}no" >&6
1669fi
1670
1671 test -n "$AWK" && break
1672done
1673
a8aea176
NN
1674echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1675echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1676set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1677if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1678 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13 1679else
a8aea176 1680 cat >conftest.make <<\_ACEOF
dfac8a13 1681all:
a8aea176
NN
1682 @echo 'ac_maketemp="$(MAKE)"'
1683_ACEOF
dfac8a13 1684# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
a8aea176 1685eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
dfac8a13
TT
1686if test -n "$ac_maketemp"; then
1687 eval ac_cv_prog_make_${ac_make}_set=yes
1688else
1689 eval ac_cv_prog_make_${ac_make}_set=no
1690fi
a8aea176 1691rm -f conftest.make
dfac8a13
TT
1692fi
1693if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
a8aea176
NN
1694 echo "$as_me:$LINENO: result: yes" >&5
1695echo "${ECHO_T}yes" >&6
dfac8a13
TT
1696 SET_MAKE=
1697else
a8aea176
NN
1698 echo "$as_me:$LINENO: result: no" >&5
1699echo "${ECHO_T}no" >&6
dfac8a13
TT
1700 SET_MAKE="MAKE=${MAKE-make}"
1701fi
1702
9fabf579
KC
1703rm -rf .tst 2>/dev/null
1704mkdir .tst 2>/dev/null
1705if test -d .tst; then
1706 am__leading_dot=.
1707else
1708 am__leading_dot=_
1709fi
1710rmdir .tst 2>/dev/null
dfac8a13 1711
9fabf579
KC
1712 # test to see if srcdir already configured
1713if test "`cd $srcdir && pwd`" != "`pwd`" &&
1714 test -f $srcdir/config.status; then
a8aea176
NN
1715 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1716echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1717 { (exit 1); exit 1; }; }
dfac8a13 1718fi
a8aea176 1719
9fabf579
KC
1720# test whether we have cygpath
1721if test -z "$CYGPATH_W"; then
1722 if (cygpath --version) >/dev/null 2>/dev/null; then
1723 CYGPATH_W='cygpath -w'
1724 else
1725 CYGPATH_W=echo
1726 fi
1727fi
1728
1729
1730# Define the identity of the package.
1731 PACKAGE=zlib
1732 VERSION=1.1.4
1733
1734
a8aea176 1735cat >>confdefs.h <<_ACEOF
dfac8a13 1736#define PACKAGE "$PACKAGE"
a8aea176 1737_ACEOF
dfac8a13 1738
a8aea176
NN
1739
1740cat >>confdefs.h <<_ACEOF
dfac8a13 1741#define VERSION "$VERSION"
a8aea176 1742_ACEOF
dfac8a13 1743
9fabf579
KC
1744# Some tools Automake needs.
1745
1746ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1747
1748
1749AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1750
1751
1752AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
dfac8a13
TT
1753
1754
9fabf579
KC
1755AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1756
1757
1758MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1759
1760
1761AMTAR=${AMTAR-"${am_missing_run}tar"}
1762
1763install_sh=${install_sh-"$am_aux_dir/install-sh"}
1764
1765# Installed binaries are usually stripped using `strip' when the user
1766# run `make install-strip'. However `strip' might not be the right
1767# tool to use in cross-compilation environments, therefore Automake
1768# will honor the `STRIP' environment variable to overrule this program.
1769if test "$cross_compiling" != no; then
1770 if test -n "$ac_tool_prefix"; then
1771 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1772set dummy ${ac_tool_prefix}strip; ac_word=$2
1773echo "$as_me:$LINENO: checking for $ac_word" >&5
1774echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1775if test "${ac_cv_prog_STRIP+set}" = set; then
1776 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13 1777else
9fabf579
KC
1778 if test -n "$STRIP"; then
1779 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1780else
1781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1782for as_dir in $PATH
1783do
1784 IFS=$as_save_IFS
1785 test -z "$as_dir" && as_dir=.
1786 for ac_exec_ext in '' $ac_executable_extensions; do
1787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1788 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1790 break 2
1791 fi
1792done
1793done
dfac8a13 1794
9fabf579
KC
1795fi
1796fi
1797STRIP=$ac_cv_prog_STRIP
1798if test -n "$STRIP"; then
1799 echo "$as_me:$LINENO: result: $STRIP" >&5
1800echo "${ECHO_T}$STRIP" >&6
dfac8a13 1801else
9fabf579
KC
1802 echo "$as_me:$LINENO: result: no" >&5
1803echo "${ECHO_T}no" >&6
dfac8a13
TT
1804fi
1805
dfac8a13 1806fi
9fabf579
KC
1807if test -z "$ac_cv_prog_STRIP"; then
1808 ac_ct_STRIP=$STRIP
1809 # Extract the first word of "strip", so it can be a program name with args.
1810set dummy strip; ac_word=$2
1811echo "$as_me:$LINENO: checking for $ac_word" >&5
1812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1813if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1814 echo $ECHO_N "(cached) $ECHO_C" >&6
1815else
1816 if test -n "$ac_ct_STRIP"; then
1817 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1818else
1819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1820for as_dir in $PATH
1821do
1822 IFS=$as_save_IFS
1823 test -z "$as_dir" && as_dir=.
1824 for ac_exec_ext in '' $ac_executable_extensions; do
1825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1826 ac_cv_prog_ac_ct_STRIP="strip"
1827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1828 break 2
1829 fi
1830done
1831done
dfac8a13 1832
9fabf579
KC
1833 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1834fi
1835fi
1836ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1837if test -n "$ac_ct_STRIP"; then
1838 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1839echo "${ECHO_T}$ac_ct_STRIP" >&6
dfac8a13 1840else
9fabf579
KC
1841 echo "$as_me:$LINENO: result: no" >&5
1842echo "${ECHO_T}no" >&6
dfac8a13
TT
1843fi
1844
9fabf579 1845 STRIP=$ac_ct_STRIP
dfac8a13 1846else
9fabf579
KC
1847 STRIP="$ac_cv_prog_STRIP"
1848fi
1849
dfac8a13 1850fi
9fabf579
KC
1851INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1852
1853# We need awk for the "check" target. The system "awk" is bad on
1854# some platforms.
1855
dfac8a13
TT
1856
1857
1858
a8aea176
NN
1859echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1860echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
e093c992
AG
1861 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1862if test "${enable_maintainer_mode+set}" = set; then
1863 enableval="$enable_maintainer_mode"
1864 USE_MAINTAINER_MODE=$enableval
1865else
1866 USE_MAINTAINER_MODE=no
a8aea176
NN
1867fi;
1868 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1869echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
e093c992 1870
e093c992
AG
1871
1872if test $USE_MAINTAINER_MODE = yes; then
1873 MAINTAINER_MODE_TRUE=
1874 MAINTAINER_MODE_FALSE='#'
1875else
1876 MAINTAINER_MODE_TRUE='#'
1877 MAINTAINER_MODE_FALSE=
1878fi
9fabf579 1879
e093c992 1880 MAINT=$MAINTAINER_MODE_TRUE
a8aea176
NN
1881
1882
e093c992
AG
1883
1884
dfac8a13
TT
1885# Check whether --with-target-subdir or --without-target-subdir was given.
1886if test "${with_target_subdir+set}" = set; then
1887 withval="$with_target_subdir"
a8aea176
NN
1888
1889fi;
1890
1891if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
1892 COMPPATH=.
1893else
1894 COMPPATH=..
dfac8a13
TT
1895fi
1896
a8aea176
NN
1897
1898
dfac8a13
TT
1899# Check whether --with-cross-host or --without-cross-host was given.
1900if test "${with_cross_host+set}" = set; then
1901 withval="$with_cross_host"
dfac8a13 1902
a8aea176 1903fi;
dfac8a13
TT
1904
1905# Check whether --enable-multilib or --disable-multilib was given.
1906if test "${enable_multilib+set}" = set; then
1907 enableval="$enable_multilib"
1908 case "${enableval}" in
1909 yes) multilib=yes ;;
1910 no) multilib=no ;;
a8aea176
NN
1911 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1912echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1913 { (exit 1); exit 1; }; } ;;
dfac8a13
TT
1914 esac
1915else
67d08194 1916 test -z "$with_target_subdir" && multilib=no || multilib=yes
a8aea176 1917fi;
dfac8a13 1918
79a9a529
TT
1919# Check whether --with-system-zlib or --without-system-zlib was given.
1920if test "${with_system_zlib+set}" = set; then
1921 withval="$with_system_zlib"
79a9a529 1922
a8aea176
NN
1923fi;
1924
1925# Make sure we don't test executables when making cross-tools.
1926
1927
1928ac_ext=c
1929ac_cpp='$CPP $CPPFLAGS'
1930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1932ac_compiler_gnu=$ac_cv_c_compiler_gnu
1933if test -n "$ac_tool_prefix"; then
1934 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1935set dummy ${ac_tool_prefix}gcc; ac_word=$2
1936echo "$as_me:$LINENO: checking for $ac_word" >&5
1937echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1938if test "${ac_cv_prog_CC+set}" = set; then
1939 echo $ECHO_N "(cached) $ECHO_C" >&6
1940else
1941 if test -n "$CC"; then
1942 ac_cv_prog_CC="$CC" # Let the user override the test.
1943else
1944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1945for as_dir in $PATH
1946do
1947 IFS=$as_save_IFS
1948 test -z "$as_dir" && as_dir=.
1949 for ac_exec_ext in '' $ac_executable_extensions; do
1950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1951 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1953 break 2
1954 fi
1955done
1956done
79a9a529 1957
a8aea176
NN
1958fi
1959fi
1960CC=$ac_cv_prog_CC
1961if test -n "$CC"; then
1962 echo "$as_me:$LINENO: result: $CC" >&5
1963echo "${ECHO_T}$CC" >&6
1964else
1965 echo "$as_me:$LINENO: result: no" >&5
1966echo "${ECHO_T}no" >&6
1967fi
025fd00e 1968
a8aea176
NN
1969fi
1970if test -z "$ac_cv_prog_CC"; then
1971 ac_ct_CC=$CC
1972 # Extract the first word of "gcc", so it can be a program name with args.
dfac8a13 1973set dummy gcc; ac_word=$2
a8aea176
NN
1974echo "$as_me:$LINENO: checking for $ac_word" >&5
1975echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1976if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1977 echo $ECHO_N "(cached) $ECHO_C" >&6
1978else
1979 if test -n "$ac_ct_CC"; then
1980 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1981else
1982as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1983for as_dir in $PATH
1984do
1985 IFS=$as_save_IFS
1986 test -z "$as_dir" && as_dir=.
1987 for ac_exec_ext in '' $ac_executable_extensions; do
1988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1989 ac_cv_prog_ac_ct_CC="gcc"
1990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1991 break 2
1992 fi
1993done
1994done
1995
1996fi
1997fi
1998ac_ct_CC=$ac_cv_prog_ac_ct_CC
1999if test -n "$ac_ct_CC"; then
2000 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2001echo "${ECHO_T}$ac_ct_CC" >&6
2002else
2003 echo "$as_me:$LINENO: result: no" >&5
2004echo "${ECHO_T}no" >&6
2005fi
2006
2007 CC=$ac_ct_CC
2008else
2009 CC="$ac_cv_prog_CC"
2010fi
2011
2012if test -z "$CC"; then
2013 if test -n "$ac_tool_prefix"; then
2014 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2015set dummy ${ac_tool_prefix}cc; ac_word=$2
2016echo "$as_me:$LINENO: checking for $ac_word" >&5
2017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2018if test "${ac_cv_prog_CC+set}" = set; then
2019 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13
TT
2020else
2021 if test -n "$CC"; then
2022 ac_cv_prog_CC="$CC" # Let the user override the test.
2023else
a8aea176
NN
2024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025for as_dir in $PATH
2026do
2027 IFS=$as_save_IFS
2028 test -z "$as_dir" && as_dir=.
2029 for ac_exec_ext in '' $ac_executable_extensions; do
2030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2031 ac_cv_prog_CC="${ac_tool_prefix}cc"
2032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2033 break 2
2034 fi
2035done
2036done
2037
dfac8a13
TT
2038fi
2039fi
a8aea176 2040CC=$ac_cv_prog_CC
dfac8a13 2041if test -n "$CC"; then
a8aea176
NN
2042 echo "$as_me:$LINENO: result: $CC" >&5
2043echo "${ECHO_T}$CC" >&6
2044else
2045 echo "$as_me:$LINENO: result: no" >&5
2046echo "${ECHO_T}no" >&6
2047fi
2048
2049fi
2050if test -z "$ac_cv_prog_CC"; then
2051 ac_ct_CC=$CC
2052 # Extract the first word of "cc", so it can be a program name with args.
2053set dummy cc; ac_word=$2
2054echo "$as_me:$LINENO: checking for $ac_word" >&5
2055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2056if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2057 echo $ECHO_N "(cached) $ECHO_C" >&6
2058else
2059 if test -n "$ac_ct_CC"; then
2060 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2061else
2062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063for as_dir in $PATH
2064do
2065 IFS=$as_save_IFS
2066 test -z "$as_dir" && as_dir=.
2067 for ac_exec_ext in '' $ac_executable_extensions; do
2068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2069 ac_cv_prog_ac_ct_CC="cc"
2070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2071 break 2
2072 fi
2073done
2074done
2075
2076fi
2077fi
2078ac_ct_CC=$ac_cv_prog_ac_ct_CC
2079if test -n "$ac_ct_CC"; then
2080 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2081echo "${ECHO_T}$ac_ct_CC" >&6
dfac8a13 2082else
a8aea176
NN
2083 echo "$as_me:$LINENO: result: no" >&5
2084echo "${ECHO_T}no" >&6
dfac8a13
TT
2085fi
2086
a8aea176
NN
2087 CC=$ac_ct_CC
2088else
2089 CC="$ac_cv_prog_CC"
2090fi
2091
2092fi
dfac8a13
TT
2093if test -z "$CC"; then
2094 # Extract the first word of "cc", so it can be a program name with args.
2095set dummy cc; ac_word=$2
a8aea176
NN
2096echo "$as_me:$LINENO: checking for $ac_word" >&5
2097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2098if test "${ac_cv_prog_CC+set}" = set; then
2099 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13
TT
2100else
2101 if test -n "$CC"; then
2102 ac_cv_prog_CC="$CC" # Let the user override the test.
2103else
dfac8a13 2104 ac_prog_rejected=no
a8aea176
NN
2105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2106for as_dir in $PATH
2107do
2108 IFS=$as_save_IFS
2109 test -z "$as_dir" && as_dir=.
2110 for ac_exec_ext in '' $ac_executable_extensions; do
2111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2112 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2113 ac_prog_rejected=yes
2114 continue
2115 fi
2116 ac_cv_prog_CC="cc"
2117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2118 break 2
2119 fi
2120done
2121done
2122
dfac8a13
TT
2123if test $ac_prog_rejected = yes; then
2124 # We found a bogon in the path, so make sure we never use it.
2125 set dummy $ac_cv_prog_CC
2126 shift
a8aea176 2127 if test $# != 0; then
dfac8a13
TT
2128 # We chose a different compiler from the bogus one.
2129 # However, it has the same basename, so the bogon will be chosen
2130 # first if we set CC to just the basename; use the full file name.
2131 shift
a8aea176 2132 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
dfac8a13
TT
2133 fi
2134fi
2135fi
2136fi
a8aea176 2137CC=$ac_cv_prog_CC
dfac8a13 2138if test -n "$CC"; then
a8aea176
NN
2139 echo "$as_me:$LINENO: result: $CC" >&5
2140echo "${ECHO_T}$CC" >&6
dfac8a13 2141else
a8aea176
NN
2142 echo "$as_me:$LINENO: result: no" >&5
2143echo "${ECHO_T}no" >&6
dfac8a13
TT
2144fi
2145
dfac8a13 2146fi
a8aea176
NN
2147if test -z "$CC"; then
2148 if test -n "$ac_tool_prefix"; then
2149 for ac_prog in cl
2150 do
2151 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2152set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2153echo "$as_me:$LINENO: checking for $ac_word" >&5
2154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2155if test "${ac_cv_prog_CC+set}" = set; then
2156 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13 2157else
a8aea176
NN
2158 if test -n "$CC"; then
2159 ac_cv_prog_CC="$CC" # Let the user override the test.
dfac8a13 2160else
a8aea176
NN
2161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162for as_dir in $PATH
2163do
2164 IFS=$as_save_IFS
2165 test -z "$as_dir" && as_dir=.
2166 for ac_exec_ext in '' $ac_executable_extensions; do
2167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2168 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2170 break 2
2171 fi
2172done
2173done
2174
dfac8a13 2175fi
a8aea176
NN
2176fi
2177CC=$ac_cv_prog_CC
2178if test -n "$CC"; then
2179 echo "$as_me:$LINENO: result: $CC" >&5
2180echo "${ECHO_T}$CC" >&6
2181else
2182 echo "$as_me:$LINENO: result: no" >&5
2183echo "${ECHO_T}no" >&6
dfac8a13
TT
2184fi
2185
a8aea176
NN
2186 test -n "$CC" && break
2187 done
2188fi
2189if test -z "$CC"; then
2190 ac_ct_CC=$CC
2191 for ac_prog in cl
2192do
2193 # Extract the first word of "$ac_prog", so it can be a program name with args.
2194set dummy $ac_prog; ac_word=$2
2195echo "$as_me:$LINENO: checking for $ac_word" >&5
2196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2197if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2198 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13 2199else
a8aea176
NN
2200 if test -n "$ac_ct_CC"; then
2201 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2202else
2203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2204for as_dir in $PATH
2205do
2206 IFS=$as_save_IFS
2207 test -z "$as_dir" && as_dir=.
2208 for ac_exec_ext in '' $ac_executable_extensions; do
2209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2210 ac_cv_prog_ac_ct_CC="$ac_prog"
2211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2212 break 2
2213 fi
2214done
2215done
2216
2217fi
2218fi
2219ac_ct_CC=$ac_cv_prog_ac_ct_CC
2220if test -n "$ac_ct_CC"; then
2221 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2222echo "${ECHO_T}$ac_ct_CC" >&6
dfac8a13 2223else
a8aea176
NN
2224 echo "$as_me:$LINENO: result: no" >&5
2225echo "${ECHO_T}no" >&6
dfac8a13 2226fi
dfac8a13 2227
a8aea176
NN
2228 test -n "$ac_ct_CC" && break
2229done
2230
2231 CC=$ac_ct_CC
2232fi
2233
2234fi
2235
2236
2237test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2238See \`config.log' for more details." >&5
2239echo "$as_me: error: no acceptable C compiler found in \$PATH
2240See \`config.log' for more details." >&2;}
2241 { (exit 1); exit 1; }; }
2242
2243# Provide some information about the compiler.
2244echo "$as_me:$LINENO:" \
2245 "checking for C compiler version" >&5
2246ac_compiler=`set X $ac_compile; echo $2`
2247{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2248 (eval $ac_compiler --version </dev/null >&5) 2>&5
2249 ac_status=$?
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); }
2252{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2253 (eval $ac_compiler -v </dev/null >&5) 2>&5
2254 ac_status=$?
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); }
2257{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2258 (eval $ac_compiler -V </dev/null >&5) 2>&5
2259 ac_status=$?
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); }
2262
2263cat >conftest.$ac_ext <<_ACEOF
2264/* confdefs.h. */
2265_ACEOF
2266cat confdefs.h >>conftest.$ac_ext
2267cat >>conftest.$ac_ext <<_ACEOF
2268/* end confdefs.h. */
2269
2270int
2271main ()
2272{
2273
2274 ;
2275 return 0;
2276}
2277_ACEOF
2278# FIXME: Cleanup?
2279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2280 (eval $ac_link) 2>&5
2281 ac_status=$?
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); }; then
2284 gcc_no_link=no
2285else
2286 gcc_no_link=yes
dfac8a13
TT
2287fi
2288
a8aea176
NN
2289if test x$gcc_no_link = xyes; then
2290 # Setting cross_compile will disable run tests; it will
2291 # also disable AC_CHECK_FILE but that's generally
2292 # correct if we can't link.
2293 cross_compiling=yes
2294 EXEEXT=
2295else
2296 cat >conftest.$ac_ext <<_ACEOF
2297/* confdefs.h. */
2298_ACEOF
2299cat confdefs.h >>conftest.$ac_ext
2300cat >>conftest.$ac_ext <<_ACEOF
2301/* end confdefs.h. */
2302
2303int
2304main ()
2305{
2306
2307 ;
2308 return 0;
2309}
2310_ACEOF
2311ac_clean_files_save=$ac_clean_files
2312ac_clean_files="$ac_clean_files a.out a.exe b.out"
2313# Try to create an executable without -o first, disregard a.out.
2314# It will help us diagnose broken compilers, and finding out an intuition
2315# of exeext.
2316echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2317echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2318ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2319if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2320 (eval $ac_link_default) 2>&5
2321 ac_status=$?
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); }; then
2324 # Find the output, starting from the most likely. This scheme is
2325# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2326# resort.
2327
2328# Be careful to initialize this variable, since it used to be cached.
2329# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2330ac_cv_exeext=
2331# b.out is created by i960 compilers.
2332for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2333do
2334 test -f "$ac_file" || continue
2335 case $ac_file in
2336 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2337 ;;
2338 conftest.$ac_ext )
2339 # This is the source file.
2340 ;;
2341 [ab].out )
2342 # We found the default executable, but exeext='' is most
2343 # certainly right.
2344 break;;
2345 *.* )
2346 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2347 # FIXME: I believe we export ac_cv_exeext for Libtool,
2348 # but it would be cool to find out if it's true. Does anybody
2349 # maintain Libtool? --akim.
2350 export ac_cv_exeext
2351 break;;
2352 * )
2353 break;;
2354 esac
2355done
2356else
2357 echo "$as_me: failed program was:" >&5
2358sed 's/^/| /' conftest.$ac_ext >&5
2359
2360{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2361See \`config.log' for more details." >&5
2362echo "$as_me: error: C compiler cannot create executables
2363See \`config.log' for more details." >&2;}
2364 { (exit 77); exit 77; }; }
2365fi
2366
2367ac_exeext=$ac_cv_exeext
2368echo "$as_me:$LINENO: result: $ac_file" >&5
2369echo "${ECHO_T}$ac_file" >&6
2370
2371# Check the compiler produces executables we can run. If not, either
2372# the compiler is broken, or we cross compile.
2373echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2374echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2375# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2376# If not cross compiling, check that we can run a simple program.
2377if test "$cross_compiling" != yes; then
2378 if { ac_try='./$ac_file'
2379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2380 (eval $ac_try) 2>&5
2381 ac_status=$?
2382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2383 (exit $ac_status); }; }; then
2384 cross_compiling=no
dfac8a13 2385 else
a8aea176
NN
2386 if test "$cross_compiling" = maybe; then
2387 cross_compiling=yes
2388 else
2389 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2390If you meant to cross compile, use \`--host'.
2391See \`config.log' for more details." >&5
2392echo "$as_me: error: cannot run C compiled programs.
2393If you meant to cross compile, use \`--host'.
2394See \`config.log' for more details." >&2;}
2395 { (exit 1); exit 1; }; }
2396 fi
dfac8a13 2397 fi
a8aea176
NN
2398fi
2399echo "$as_me:$LINENO: result: yes" >&5
2400echo "${ECHO_T}yes" >&6
2401
2402rm -f a.out a.exe conftest$ac_cv_exeext b.out
2403ac_clean_files=$ac_clean_files_save
2404# Check the compiler produces executables we can run. If not, either
2405# the compiler is broken, or we cross compile.
2406echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2407echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2408echo "$as_me:$LINENO: result: $cross_compiling" >&5
2409echo "${ECHO_T}$cross_compiling" >&6
2410
2411echo "$as_me:$LINENO: checking for suffix of executables" >&5
2412echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2414 (eval $ac_link) 2>&5
2415 ac_status=$?
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; then
2418 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2419# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2420# work properly (i.e., refer to `conftest.exe'), while it won't with
2421# `rm'.
2422for ac_file in conftest.exe conftest conftest.*; do
2423 test -f "$ac_file" || continue
2424 case $ac_file in
2425 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2426 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2427 export ac_cv_exeext
2428 break;;
2429 * ) break;;
2430 esac
2431done
dfac8a13 2432else
a8aea176
NN
2433 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2434See \`config.log' for more details." >&5
2435echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2436See \`config.log' for more details." >&2;}
2437 { (exit 1); exit 1; }; }
2438fi
2439
2440rm -f conftest$ac_cv_exeext
2441echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2442echo "${ECHO_T}$ac_cv_exeext" >&6
2443
2444rm -f conftest.$ac_ext
2445EXEEXT=$ac_cv_exeext
2446ac_exeext=$EXEEXT
2447fi
2448echo "$as_me:$LINENO: checking for suffix of object files" >&5
2449echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2450if test "${ac_cv_objext+set}" = set; then
2451 echo $ECHO_N "(cached) $ECHO_C" >&6
5d836b57 2452else
a8aea176
NN
2453 cat >conftest.$ac_ext <<_ACEOF
2454/* confdefs.h. */
2455_ACEOF
2456cat confdefs.h >>conftest.$ac_ext
2457cat >>conftest.$ac_ext <<_ACEOF
2458/* end confdefs.h. */
5d836b57 2459
a8aea176
NN
2460int
2461main ()
2462{
5d836b57 2463
a8aea176
NN
2464 ;
2465 return 0;
2466}
2467_ACEOF
2468rm -f conftest.o conftest.obj
2469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2470 (eval $ac_compile) 2>&5
2471 ac_status=$?
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }; then
2474 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2475 case $ac_file in
2476 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2477 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2478 break;;
2479 esac
2480done
5d836b57 2481else
a8aea176
NN
2482 echo "$as_me: failed program was:" >&5
2483sed 's/^/| /' conftest.$ac_ext >&5
2484
2485{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2486See \`config.log' for more details." >&5
2487echo "$as_me: error: cannot compute suffix of object files: cannot compile
2488See \`config.log' for more details." >&2;}
2489 { (exit 1); exit 1; }; }
5d836b57
TT
2490fi
2491
a8aea176
NN
2492rm -f conftest.$ac_cv_objext conftest.$ac_ext
2493fi
2494echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2495echo "${ECHO_T}$ac_cv_objext" >&6
2496OBJEXT=$ac_cv_objext
2497ac_objext=$OBJEXT
2498echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2499echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2500if test "${ac_cv_c_compiler_gnu+set}" = set; then
2501 echo $ECHO_N "(cached) $ECHO_C" >&6
5d836b57 2502else
a8aea176
NN
2503 cat >conftest.$ac_ext <<_ACEOF
2504/* confdefs.h. */
2505_ACEOF
2506cat confdefs.h >>conftest.$ac_ext
2507cat >>conftest.$ac_ext <<_ACEOF
2508/* end confdefs.h. */
5d836b57 2509
a8aea176
NN
2510int
2511main ()
2512{
2513#ifndef __GNUC__
2514 choke me
2515#endif
2516
2517 ;
2518 return 0;
2519}
2520_ACEOF
2521rm -f conftest.$ac_objext
2522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2523 (eval $ac_compile) 2>conftest.er1
2524 ac_status=$?
2525 grep -v '^ *+' conftest.er1 >conftest.err
2526 rm -f conftest.er1
2527 cat conftest.err >&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); } &&
9fabf579
KC
2530 { ac_try='test -z "$ac_c_werror_flag"
2531 || test ! -s conftest.err'
a8aea176
NN
2532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2533 (eval $ac_try) 2>&5
2534 ac_status=$?
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }; } &&
2537 { ac_try='test -s conftest.$ac_objext'
2538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2539 (eval $ac_try) 2>&5
2540 ac_status=$?
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); }; }; then
2543 ac_compiler_gnu=yes
5d836b57 2544else
a8aea176
NN
2545 echo "$as_me: failed program was:" >&5
2546sed 's/^/| /' conftest.$ac_ext >&5
2547
2548ac_compiler_gnu=no
5d836b57 2549fi
a8aea176
NN
2550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2551ac_cv_c_compiler_gnu=$ac_compiler_gnu
5d836b57 2552
a8aea176
NN
2553fi
2554echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2555echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2556GCC=`test $ac_compiler_gnu = yes && echo yes`
2557ac_test_CFLAGS=${CFLAGS+set}
2558ac_save_CFLAGS=$CFLAGS
2559CFLAGS="-g"
2560echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2561echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2562if test "${ac_cv_prog_cc_g+set}" = set; then
2563 echo $ECHO_N "(cached) $ECHO_C" >&6
2564else
2565 cat >conftest.$ac_ext <<_ACEOF
2566/* confdefs.h. */
2567_ACEOF
2568cat confdefs.h >>conftest.$ac_ext
2569cat >>conftest.$ac_ext <<_ACEOF
2570/* end confdefs.h. */
5d836b57 2571
a8aea176
NN
2572int
2573main ()
2574{
5d836b57 2575
a8aea176
NN
2576 ;
2577 return 0;
2578}
2579_ACEOF
2580rm -f conftest.$ac_objext
2581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2582 (eval $ac_compile) 2>conftest.er1
2583 ac_status=$?
2584 grep -v '^ *+' conftest.er1 >conftest.err
2585 rm -f conftest.er1
2586 cat conftest.err >&5
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); } &&
9fabf579
KC
2589 { ac_try='test -z "$ac_c_werror_flag"
2590 || test ! -s conftest.err'
a8aea176
NN
2591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2592 (eval $ac_try) 2>&5
2593 ac_status=$?
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); }; } &&
2596 { ac_try='test -s conftest.$ac_objext'
2597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598 (eval $ac_try) 2>&5
2599 ac_status=$?
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); }; }; then
2602 ac_cv_prog_cc_g=yes
5d836b57 2603else
a8aea176
NN
2604 echo "$as_me: failed program was:" >&5
2605sed 's/^/| /' conftest.$ac_ext >&5
2606
2607ac_cv_prog_cc_g=no
2608fi
2609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2610fi
2611echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2612echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2613if test "$ac_test_CFLAGS" = set; then
2614 CFLAGS=$ac_save_CFLAGS
2615elif test $ac_cv_prog_cc_g = yes; then
2616 if test "$GCC" = yes; then
2617 CFLAGS="-g -O2"
2618 else
2619 CFLAGS="-g"
2620 fi
5d836b57 2621else
a8aea176
NN
2622 if test "$GCC" = yes; then
2623 CFLAGS="-O2"
5d836b57 2624 else
a8aea176 2625 CFLAGS=
5d836b57 2626 fi
5d836b57 2627fi
a8aea176
NN
2628echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2629echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2630if test "${ac_cv_prog_cc_stdc+set}" = set; then
2631 echo $ECHO_N "(cached) $ECHO_C" >&6
2632else
2633 ac_cv_prog_cc_stdc=no
2634ac_save_CC=$CC
2635cat >conftest.$ac_ext <<_ACEOF
2636/* confdefs.h. */
2637_ACEOF
2638cat confdefs.h >>conftest.$ac_ext
2639cat >>conftest.$ac_ext <<_ACEOF
2640/* end confdefs.h. */
2641#include <stdarg.h>
2642#include <stdio.h>
2643#include <sys/types.h>
2644#include <sys/stat.h>
2645/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2646struct buf { int x; };
2647FILE * (*rcsopen) (struct buf *, struct stat *, int);
2648static char *e (p, i)
2649 char **p;
2650 int i;
2651{
2652 return p[i];
2653}
2654static char *f (char * (*g) (char **, int), char **p, ...)
2655{
2656 char *s;
2657 va_list v;
2658 va_start (v,p);
2659 s = g (p, va_arg (v,int));
2660 va_end (v);
2661 return s;
2662}
5d836b57 2663
a8aea176
NN
2664/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2665 function prototypes and stuff, but not '\xHH' hex character constants.
2666 These don't provoke an error unfortunately, instead are silently treated
2667 as 'x'. The following induces an error, until -std1 is added to get
2668 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2669 array size at least. It's necessary to write '\x00'==0 to get something
2670 that's true only with -std1. */
2671int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2672
2673int test (int i, double x);
2674struct s1 {int (*f) (int a);};
2675struct s2 {int (*f) (double a);};
2676int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2677int argc;
2678char **argv;
2679int
2680main ()
2681{
2682return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2683 ;
2684 return 0;
2685}
2686_ACEOF
2687# Don't try gcc -ansi; that turns off useful extensions and
2688# breaks some systems' header files.
2689# AIX -qlanglvl=ansi
2690# Ultrix and OSF/1 -std1
2691# HP-UX 10.20 and later -Ae
2692# HP-UX older versions -Aa -D_HPUX_SOURCE
2693# SVR4 -Xc -D__EXTENSIONS__
2694for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2695do
2696 CC="$ac_save_CC $ac_arg"
2697 rm -f conftest.$ac_objext
2698if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2699 (eval $ac_compile) 2>conftest.er1
2700 ac_status=$?
2701 grep -v '^ *+' conftest.er1 >conftest.err
2702 rm -f conftest.er1
2703 cat conftest.err >&5
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); } &&
9fabf579
KC
2706 { ac_try='test -z "$ac_c_werror_flag"
2707 || test ! -s conftest.err'
a8aea176
NN
2708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709 (eval $ac_try) 2>&5
2710 ac_status=$?
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); }; } &&
2713 { ac_try='test -s conftest.$ac_objext'
2714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2715 (eval $ac_try) 2>&5
2716 ac_status=$?
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }; }; then
2719 ac_cv_prog_cc_stdc=$ac_arg
2720break
2721else
2722 echo "$as_me: failed program was:" >&5
2723sed 's/^/| /' conftest.$ac_ext >&5
2724
2725fi
2726rm -f conftest.err conftest.$ac_objext
2727done
2728rm -f conftest.$ac_ext conftest.$ac_objext
2729CC=$ac_save_CC
2730
2731fi
2732
2733case "x$ac_cv_prog_cc_stdc" in
2734 x|xno)
2735 echo "$as_me:$LINENO: result: none needed" >&5
2736echo "${ECHO_T}none needed" >&6 ;;
2737 *)
2738 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2739echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2740 CC="$CC $ac_cv_prog_cc_stdc" ;;
2741esac
2742
2743# Some people use a C++ compiler to compile C. Since we use `exit',
2744# in C++ we need to declare it. In case someone uses the same compiler
2745# for both compiling C and C++ we need to have the C++ compiler decide
2746# the declaration of exit, since it's the most demanding environment.
2747cat >conftest.$ac_ext <<_ACEOF
2748#ifndef __cplusplus
2749 choke me
2750#endif
2751_ACEOF
2752rm -f conftest.$ac_objext
2753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2754 (eval $ac_compile) 2>conftest.er1
2755 ac_status=$?
2756 grep -v '^ *+' conftest.er1 >conftest.err
2757 rm -f conftest.er1
2758 cat conftest.err >&5
2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760 (exit $ac_status); } &&
9fabf579
KC
2761 { ac_try='test -z "$ac_c_werror_flag"
2762 || test ! -s conftest.err'
a8aea176
NN
2763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2764 (eval $ac_try) 2>&5
2765 ac_status=$?
2766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767 (exit $ac_status); }; } &&
2768 { ac_try='test -s conftest.$ac_objext'
2769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2770 (eval $ac_try) 2>&5
2771 ac_status=$?
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); }; }; then
2774 for ac_declaration in \
2775 '' \
2776 'extern "C" void std::exit (int) throw (); using std::exit;' \
2777 'extern "C" void std::exit (int); using std::exit;' \
2778 'extern "C" void exit (int) throw ();' \
2779 'extern "C" void exit (int);' \
2780 'void exit (int);'
2781do
2782 cat >conftest.$ac_ext <<_ACEOF
2783/* confdefs.h. */
2784_ACEOF
2785cat confdefs.h >>conftest.$ac_ext
2786cat >>conftest.$ac_ext <<_ACEOF
2787/* end confdefs.h. */
2788$ac_declaration
2789#include <stdlib.h>
2790int
2791main ()
2792{
2793exit (42);
2794 ;
2795 return 0;
2796}
2797_ACEOF
2798rm -f conftest.$ac_objext
2799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2800 (eval $ac_compile) 2>conftest.er1
2801 ac_status=$?
2802 grep -v '^ *+' conftest.er1 >conftest.err
2803 rm -f conftest.er1
2804 cat conftest.err >&5
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); } &&
9fabf579
KC
2807 { ac_try='test -z "$ac_c_werror_flag"
2808 || test ! -s conftest.err'
a8aea176
NN
2809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2810 (eval $ac_try) 2>&5
2811 ac_status=$?
2812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2813 (exit $ac_status); }; } &&
2814 { ac_try='test -s conftest.$ac_objext'
2815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2816 (eval $ac_try) 2>&5
2817 ac_status=$?
2818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819 (exit $ac_status); }; }; then
2820 :
2821else
2822 echo "$as_me: failed program was:" >&5
2823sed 's/^/| /' conftest.$ac_ext >&5
2824
2825continue
2826fi
2827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2828 cat >conftest.$ac_ext <<_ACEOF
2829/* confdefs.h. */
2830_ACEOF
2831cat confdefs.h >>conftest.$ac_ext
2832cat >>conftest.$ac_ext <<_ACEOF
2833/* end confdefs.h. */
2834$ac_declaration
2835int
2836main ()
2837{
2838exit (42);
2839 ;
2840 return 0;
2841}
2842_ACEOF
2843rm -f conftest.$ac_objext
2844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2845 (eval $ac_compile) 2>conftest.er1
2846 ac_status=$?
2847 grep -v '^ *+' conftest.er1 >conftest.err
2848 rm -f conftest.er1
2849 cat conftest.err >&5
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); } &&
9fabf579
KC
2852 { ac_try='test -z "$ac_c_werror_flag"
2853 || test ! -s conftest.err'
a8aea176
NN
2854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855 (eval $ac_try) 2>&5
2856 ac_status=$?
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }; } &&
2859 { ac_try='test -s conftest.$ac_objext'
2860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861 (eval $ac_try) 2>&5
2862 ac_status=$?
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); }; }; then
2865 break
2866else
2867 echo "$as_me: failed program was:" >&5
2868sed 's/^/| /' conftest.$ac_ext >&5
2869
2870fi
2871rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2872done
2873rm -f conftest*
2874if test -n "$ac_declaration"; then
2875 echo '#ifdef __cplusplus' >>confdefs.h
2876 echo $ac_declaration >>confdefs.h
2877 echo '#endif' >>confdefs.h
2878fi
2879
2880else
2881 echo "$as_me: failed program was:" >&5
2882sed 's/^/| /' conftest.$ac_ext >&5
5d836b57 2883
5d836b57 2884fi
a8aea176
NN
2885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2886ac_ext=c
2887ac_cpp='$CPP $CPPFLAGS'
2888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2890ac_compiler_gnu=$ac_cv_c_compiler_gnu
9fabf579
KC
2891DEPDIR="${am__leading_dot}deps"
2892
2893 ac_config_commands="$ac_config_commands depfiles"
2894
2895
2896am_make=${MAKE-make}
2897cat > confinc << 'END'
2898am__doit:
2899 @echo done
2900.PHONY: am__doit
2901END
2902# If we don't find an include directive, just comment out the code.
2903echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2904echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2905am__include="#"
2906am__quote=
2907_am_result=none
2908# First try GNU make style include.
2909echo "include confinc" > confmf
2910# We grep out `Entering directory' and `Leaving directory'
2911# messages which can occur if `w' ends up in MAKEFLAGS.
2912# In particular we don't look at `^make:' because GNU make might
2913# be invoked under some other name (usually "gmake"), in which
2914# case it prints its new name instead of `make'.
2915if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2916 am__include=include
2917 am__quote=
2918 _am_result=GNU
2919fi
2920# Now try BSD make style include.
2921if test "$am__include" = "#"; then
2922 echo '.include "confinc"' > confmf
2923 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2924 am__include=.include
2925 am__quote="\""
2926 _am_result=BSD
2927 fi
2928fi
2929
2930
2931echo "$as_me:$LINENO: result: $_am_result" >&5
2932echo "${ECHO_T}$_am_result" >&6
2933rm -f confinc confmf
2934
2935# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2936if test "${enable_dependency_tracking+set}" = set; then
2937 enableval="$enable_dependency_tracking"
2938
2939fi;
2940if test "x$enable_dependency_tracking" != xno; then
2941 am_depcomp="$ac_aux_dir/depcomp"
2942 AMDEPBACKSLASH='\'
2943fi
2944
2945
2946if test "x$enable_dependency_tracking" != xno; then
2947 AMDEP_TRUE=
2948 AMDEP_FALSE='#'
2949else
2950 AMDEP_TRUE='#'
2951 AMDEP_FALSE=
2952fi
2953
2954
2955
2956
2957depcc="$CC" am_compiler_list=
2958
2959echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2960echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2961if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2962 echo $ECHO_N "(cached) $ECHO_C" >&6
2963else
2964 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2965 # We make a subdir and do the tests there. Otherwise we can end up
2966 # making bogus files that we don't know about and never remove. For
2967 # instance it was reported that on HP-UX the gcc test will end up
2968 # making a dummy file named `D' -- because `-MD' means `put the output
2969 # in D'.
2970 mkdir conftest.dir
2971 # Copy depcomp to subdir because otherwise we won't find it if we're
2972 # using a relative directory.
2973 cp "$am_depcomp" conftest.dir
2974 cd conftest.dir
2975 # We will build objects and dependencies in a subdirectory because
2976 # it helps to detect inapplicable dependency modes. For instance
2977 # both Tru64's cc and ICC support -MD to output dependencies as a
2978 # side effect of compilation, but ICC will put the dependencies in
2979 # the current directory while Tru64 will put them in the object
2980 # directory.
2981 mkdir sub
2982
2983 am_cv_CC_dependencies_compiler_type=none
2984 if test "$am_compiler_list" = ""; then
2985 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2986 fi
2987 for depmode in $am_compiler_list; do
2988 # Setup a source with many dependencies, because some compilers
2989 # like to wrap large dependency lists on column 80 (with \), and
2990 # we should not choose a depcomp mode which is confused by this.
2991 #
2992 # We need to recreate these files for each test, as the compiler may
2993 # overwrite some of them when testing with obscure command lines.
2994 # This happens at least with the AIX C compiler.
2995 : > sub/conftest.c
2996 for i in 1 2 3 4 5 6; do
2997 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2998 : > sub/conftst$i.h
2999 done
3000 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3001
3002 case $depmode in
3003 nosideeffect)
3004 # after this tag, mechanisms are not by side-effect, so they'll
3005 # only be used when explicitly requested
3006 if test "x$enable_dependency_tracking" = xyes; then
3007 continue
3008 else
3009 break
3010 fi
3011 ;;
3012 none) break ;;
3013 esac
3014 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3015 # mode. It turns out that the SunPro C++ compiler does not properly
3016 # handle `-M -o', and we need to detect this.
3017 if depmode=$depmode \
3018 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3019 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3020 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3021 >/dev/null 2>conftest.err &&
3022 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3023 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3024 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3025 # icc doesn't choke on unknown options, it will just issue warnings
3026 # (even with -Werror). So we grep stderr for any message
3027 # that says an option was ignored.
3028 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3029 am_cv_CC_dependencies_compiler_type=$depmode
3030 break
3031 fi
3032 fi
3033 done
3034
3035 cd ..
3036 rm -rf conftest.dir
3037else
3038 am_cv_CC_dependencies_compiler_type=none
3039fi
3040
3041fi
3042echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3043echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3044CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3045
3046
3047
3048if
3049 test "x$enable_dependency_tracking" != xno \
3050 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3051 am__fastdepCC_TRUE=
3052 am__fastdepCC_FALSE='#'
3053else
3054 am__fastdepCC_TRUE='#'
3055 am__fastdepCC_FALSE=
3056fi
3057
a8aea176
NN
3058
3059
dfac8a13
TT
3060# Check whether --enable-shared or --disable-shared was given.
3061if test "${enable_shared+set}" = set; then
3062 enableval="$enable_shared"
3063 p=${PACKAGE-default}
0fd91e0a 3064case $enableval in
dfac8a13
TT
3065yes) enable_shared=yes ;;
3066no) enable_shared=no ;;
3067*)
3068 enable_shared=no
3069 # Look at the argument we got. We use all the common list separators.
3070 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3071 for pkg in $enableval; do
3072 if test "X$pkg" = "X$p"; then
3073 enable_shared=yes
3074 fi
3075 done
3076 IFS="$ac_save_ifs"
3077 ;;
3078esac
3079else
3080 enable_shared=yes
a8aea176 3081fi;
dfac8a13
TT
3082# Check whether --enable-static or --disable-static was given.
3083if test "${enable_static+set}" = set; then
3084 enableval="$enable_static"
3085 p=${PACKAGE-default}
0fd91e0a 3086case $enableval in
dfac8a13
TT
3087yes) enable_static=yes ;;
3088no) enable_static=no ;;
3089*)
3090 enable_static=no
3091 # Look at the argument we got. We use all the common list separators.
3092 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3093 for pkg in $enableval; do
3094 if test "X$pkg" = "X$p"; then
3095 enable_static=yes
3096 fi
3097 done
3098 IFS="$ac_save_ifs"
3099 ;;
3100esac
3101else
3102 enable_static=yes
a8aea176 3103fi;
dfac8a13
TT
3104# Check whether --enable-fast-install or --disable-fast-install was given.
3105if test "${enable_fast_install+set}" = set; then
3106 enableval="$enable_fast_install"
3107 p=${PACKAGE-default}
0fd91e0a 3108case $enableval in
dfac8a13
TT
3109yes) enable_fast_install=yes ;;
3110no) enable_fast_install=no ;;
3111*)
3112 enable_fast_install=no
3113 # Look at the argument we got. We use all the common list separators.
3114 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3115 for pkg in $enableval; do
3116 if test "X$pkg" = "X$p"; then
3117 enable_fast_install=yes
3118 fi
3119 done
3120 IFS="$ac_save_ifs"
3121 ;;
3122esac
3123else
3124 enable_fast_install=yes
a8aea176 3125fi;
dfac8a13 3126
dfac8a13
TT
3127# Check whether --with-gnu-ld or --without-gnu-ld was given.
3128if test "${with_gnu_ld+set}" = set; then
3129 withval="$with_gnu_ld"
3130 test "$withval" = no || with_gnu_ld=yes
3131else
3132 with_gnu_ld=no
a8aea176 3133fi;
dfac8a13 3134ac_prog=ld
0fd91e0a 3135if test "$GCC" = yes; then
dfac8a13 3136 # Check if gcc -print-prog-name=ld gives a path.
a8aea176
NN
3137 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3138echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
0fd91e0a
AO
3139 case $host in
3140 *-*-mingw*)
3141 # gcc leaves a trailing carriage return which upsets mingw
3142 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3143 *)
3144 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3145 esac
3146 case $ac_prog in
dfac8a13 3147 # Accept absolute paths.
0fd91e0a 3148 [\\/]* | [A-Za-z]:[\\/]*)
dfac8a13
TT
3149 re_direlt='/[^/][^/]*/\.\./'
3150 # Canonicalize the path of ld
3151 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3152 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3153 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3154 done
3155 test -z "$LD" && LD="$ac_prog"
3156 ;;
3157 "")
3158 # If it fails, then pretend we aren't using GCC.
3159 ac_prog=ld
3160 ;;
3161 *)
3162 # If it is relative, then search for the first ld in PATH.
3163 with_gnu_ld=unknown
3164 ;;
3165 esac
3166elif test "$with_gnu_ld" = yes; then
a8aea176
NN
3167 echo "$as_me:$LINENO: checking for GNU ld" >&5
3168echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
dfac8a13 3169else
a8aea176
NN
3170 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3171echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
dfac8a13 3172fi
a8aea176
NN
3173if test "${lt_cv_path_LD+set}" = set; then
3174 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13
TT
3175else
3176 if test -z "$LD"; then
0fd91e0a 3177 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
dfac8a13
TT
3178 for ac_dir in $PATH; do
3179 test -z "$ac_dir" && ac_dir=.
0fd91e0a
AO
3180 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3181 lt_cv_path_LD="$ac_dir/$ac_prog"
dfac8a13
TT
3182 # Check to see if the program is GNU ld. I'd rather use --version,
3183 # but apparently some GNU ld's only accept -v.
3184 # Break only if it was the GNU/non-GNU ld that we prefer.
0fd91e0a 3185 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
dfac8a13
TT
3186 test "$with_gnu_ld" != no && break
3187 else
3188 test "$with_gnu_ld" != yes && break
3189 fi
3190 fi
3191 done
3192 IFS="$ac_save_ifs"
3193else
0fd91e0a 3194 lt_cv_path_LD="$LD" # Let the user override the test with a path.
dfac8a13
TT
3195fi
3196fi
3197
0fd91e0a 3198LD="$lt_cv_path_LD"
dfac8a13 3199if test -n "$LD"; then
a8aea176
NN
3200 echo "$as_me:$LINENO: result: $LD" >&5
3201echo "${ECHO_T}$LD" >&6
dfac8a13 3202else
a8aea176
NN
3203 echo "$as_me:$LINENO: result: no" >&5
3204echo "${ECHO_T}no" >&6
3205fi
3206test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3207echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3208 { (exit 1); exit 1; }; }
3209echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3210echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3211if test "${lt_cv_prog_gnu_ld+set}" = set; then
3212 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13
TT
3213else
3214 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3215if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
0fd91e0a 3216 lt_cv_prog_gnu_ld=yes
dfac8a13 3217else
0fd91e0a 3218 lt_cv_prog_gnu_ld=no
dfac8a13
TT
3219fi
3220fi
a8aea176
NN
3221echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3222echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
0fd91e0a 3223with_gnu_ld=$lt_cv_prog_gnu_ld
dfac8a13
TT
3224
3225
a8aea176
NN
3226echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3227echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3228if test "${lt_cv_ld_reload_flag+set}" = set; then
3229 echo $ECHO_N "(cached) $ECHO_C" >&6
0fd91e0a
AO
3230else
3231 lt_cv_ld_reload_flag='-r'
3232fi
a8aea176
NN
3233echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3234echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
0fd91e0a
AO
3235reload_flag=$lt_cv_ld_reload_flag
3236test -n "$reload_flag" && reload_flag=" $reload_flag"
3237
a8aea176
NN
3238echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3239echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3240if test "${lt_cv_path_NM+set}" = set; then
3241 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13
TT
3242else
3243 if test -n "$NM"; then
3244 # Let the user override the test.
0fd91e0a 3245 lt_cv_path_NM="$NM"
dfac8a13 3246else
0fd91e0a 3247 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
dfac8a13
TT
3248 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3249 test -z "$ac_dir" && ac_dir=.
0fd91e0a
AO
3250 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3251 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
dfac8a13
TT
3252 # Check to see if the nm accepts a BSD-compat flag.
3253 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3254 # nm: unknown option "B" ignored
0fd91e0a
AO
3255 # Tru64's nm complains that /dev/null is an invalid object file
3256 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3257 lt_cv_path_NM="$tmp_nm -B"
dfac8a13 3258 break
0fd91e0a
AO
3259 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3260 lt_cv_path_NM="$tmp_nm -p"
dfac8a13
TT
3261 break
3262 else
0fd91e0a 3263 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
dfac8a13
TT
3264 continue # so that we can try to find one that supports BSD flags
3265 fi
3266 fi
3267 done
3268 IFS="$ac_save_ifs"
0fd91e0a 3269 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
dfac8a13
TT
3270fi
3271fi
3272
0fd91e0a 3273NM="$lt_cv_path_NM"
a8aea176
NN
3274echo "$as_me:$LINENO: result: $NM" >&5
3275echo "${ECHO_T}$NM" >&6
3276
3277echo "$as_me:$LINENO: checking whether ln -s works" >&5
3278echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3279LN_S=$as_ln_s
3280if test "$LN_S" = "ln -s"; then
3281 echo "$as_me:$LINENO: result: yes" >&5
3282echo "${ECHO_T}yes" >&6
0fd91e0a 3283else
a8aea176
NN
3284 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3285echo "${ECHO_T}no, using $LN_S" >&6
0fd91e0a 3286fi
025fd00e 3287
a8aea176
NN
3288echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3289echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3290if test "${lt_cv_deplibs_check_method+set}" = set; then
3291 echo $ECHO_N "(cached) $ECHO_C" >&6
0fd91e0a
AO
3292else
3293 lt_cv_file_magic_cmd='$MAGIC_CMD'
3294lt_cv_file_magic_test_file=
3295lt_cv_deplibs_check_method='unknown'
3296# Need to set the preceding variable on all platforms that support
3297# interlibrary dependencies.
3298# 'none' -- dependencies not supported.
3299# `unknown' -- same as none, but documents that we really don't know.
3300# 'pass_all' -- all dependencies passed with no checks.
3301# 'test_compile' -- check by making test program.
3302# 'file_magic [regex]' -- check by looking for files in library path
3303# which responds to the $file_magic_cmd with a given egrep regex.
3304# If you have `file' or equivalent on your system and you're not sure
3305# whether `pass_all' will *always* work, you probably want this one.
3306
3307case $host_os in
025fd00e 3308aix*)
0fd91e0a 3309 lt_cv_deplibs_check_method=pass_all
025fd00e 3310 ;;
025fd00e 3311
0fd91e0a
AO
3312beos*)
3313 lt_cv_deplibs_check_method=pass_all
3314 ;;
025fd00e 3315
0fd91e0a
AO
3316bsdi4*)
3317 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3318 lt_cv_file_magic_cmd='/usr/bin/file -L'
3319 lt_cv_file_magic_test_file=/shlib/libc.so
3320 ;;
025fd00e 3321
0fd91e0a
AO
3322cygwin* | mingw* |pw32*)
3323 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3324 lt_cv_file_magic_cmd='$OBJDUMP -f'
3325 ;;
025fd00e 3326
0fd91e0a 3327darwin* | rhapsody*)
a8aea176 3328 # this will be overwritten by pass_all, but leave it in just in case
0fd91e0a
AO
3329 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3330 lt_cv_file_magic_cmd='/usr/bin/file -L'
3331 case "$host_os" in
3332 rhapsody* | darwin1.012)
3333 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
3334 ;;
3335 *) # Darwin 1.3 on
3336 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3337 ;;
3338 esac
a8aea176 3339 lt_cv_deplibs_check_method=pass_all
0fd91e0a 3340 ;;
025fd00e 3341
0fd91e0a
AO
3342freebsd* )
3343 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3344 case $host_cpu in
3345 i*86 )
3346 # Not sure whether the presence of OpenBSD here was a mistake.
3347 # Let's accept both of them until this is cleared up.
3348 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3349 lt_cv_file_magic_cmd=/usr/bin/file
3350 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3351 ;;
3352 esac
3353 else
3354 lt_cv_deplibs_check_method=pass_all
3355 fi
3356 ;;
025fd00e 3357
0fd91e0a
AO
3358gnu*)
3359 lt_cv_deplibs_check_method=pass_all
3360 ;;
025fd00e 3361
0fd91e0a 3362hpux10.20*|hpux11*)
f5cc59a7
AO
3363 case $host_cpu in
3364 hppa*)
3365 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3366 lt_cv_file_magic_cmd=/usr/bin/file
3367 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3368 ;;
3369 ia64*)
3370 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3371 lt_cv_file_magic_cmd=/usr/bin/file
3372 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3373 ;;
3374 esac
0fd91e0a 3375 ;;
025fd00e 3376
0fd91e0a
AO
3377irix5* | irix6*)
3378 case $host_os in
3379 irix5*)
3380 # this will be overridden with pass_all, but let us keep it just in case
3381 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3382 ;;
3383 *)
3384 case $LD in
3385 *-32|*"-32 ") libmagic=32-bit;;
3386 *-n32|*"-n32 ") libmagic=N32;;
3387 *-64|*"-64 ") libmagic=64-bit;;
3388 *) libmagic=never-match;;
3389 esac
3390 # this will be overridden with pass_all, but let us keep it just in case
3391 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3392 ;;
3393 esac
3394 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3395 lt_cv_deplibs_check_method=pass_all
3396 ;;
025fd00e 3397
0fd91e0a
AO
3398# This must be Linux ELF.
3399linux-gnu*)
3400 case $host_cpu in
c779c42f 3401 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* | sh* )
0fd91e0a
AO
3402 lt_cv_deplibs_check_method=pass_all ;;
3403 *)
3404 # glibc up to 2.1.1 does not perform some relocations on ARM
3405 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3406 esac
3407 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3408 ;;
025fd00e 3409
0fd91e0a
AO
3410netbsd*)
3411 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3412 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
025fd00e 3413 else
0fd91e0a 3414 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
025fd00e 3415 fi
0fd91e0a 3416 ;;
025fd00e 3417
0fd91e0a
AO
3418newsos6)
3419 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3420 lt_cv_file_magic_cmd=/usr/bin/file
3421 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3422 ;;
025fd00e 3423
0fd91e0a
AO
3424osf3* | osf4* | osf5*)
3425 # this will be overridden with pass_all, but let us keep it just in case
3426 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3427 lt_cv_file_magic_test_file=/shlib/libc.so
3428 lt_cv_deplibs_check_method=pass_all
3429 ;;
025fd00e 3430
0fd91e0a
AO
3431sco3.2v5*)
3432 lt_cv_deplibs_check_method=pass_all
3433 ;;
025fd00e 3434
0fd91e0a
AO
3435solaris*)
3436 lt_cv_deplibs_check_method=pass_all
3437 lt_cv_file_magic_test_file=/lib/libc.so
3438 ;;
025fd00e 3439
33456445
AO
3440sysv5uw[78]* | sysv4*uw2*)
3441 lt_cv_deplibs_check_method=pass_all
3442 ;;
3443
0fd91e0a
AO
3444sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3445 case $host_vendor in
3446 ncr)
3447 lt_cv_deplibs_check_method=pass_all
3448 ;;
3449 motorola)
3450 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]'
3451 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3452 ;;
3453 esac
3454 ;;
3455esac
025fd00e
TT
3456
3457fi
a8aea176
NN
3458echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3459echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
0fd91e0a
AO
3460file_magic_cmd=$lt_cv_file_magic_cmd
3461deplibs_check_method=$lt_cv_deplibs_check_method
025fd00e 3462
dfac8a13 3463
0fd91e0a 3464
a8aea176 3465
025fd00e 3466
0fd91e0a 3467# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
dfac8a13 3468
0fd91e0a
AO
3469# Only perform the check for file, if the check method requires it
3470case $deplibs_check_method in
3471file_magic*)
3472 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
a8aea176
NN
3473 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3474echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3475if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3476 echo $ECHO_N "(cached) $ECHO_C" >&6
0fd91e0a
AO
3477else
3478 case $MAGIC_CMD in
3479 /*)
3480 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3481 ;;
3482 ?:/*)
3483 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3484 ;;
3485 *)
3486 ac_save_MAGIC_CMD="$MAGIC_CMD"
3487 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3488 ac_dummy="/usr/bin:$PATH"
3489 for ac_dir in $ac_dummy; do
3490 test -z "$ac_dir" && ac_dir=.
3491 if test -f $ac_dir/${ac_tool_prefix}file; then
3492 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3493 if test -n "$file_magic_test_file"; then
3494 case $deplibs_check_method in
3495 "file_magic "*)
3496 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3497 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3498 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3499 egrep "$file_magic_regex" > /dev/null; then
3500 :
3501 else
3502 cat <<EOF 1>&2
dfac8a13 3503
0fd91e0a
AO
3504*** Warning: the command libtool uses to detect shared libraries,
3505*** $file_magic_cmd, produces output that libtool cannot recognize.
3506*** The result is that libtool may fail to recognize shared libraries
3507*** as such. This will affect the creation of libtool libraries that
3508*** depend on shared libraries, but programs linked with such libtool
3509*** libraries will work regardless of this problem. Nevertheless, you
3510*** may want to report the problem to your system manager and/or to
3511*** bug-libtool@gnu.org
3512
3513EOF
3514 fi ;;
3515 esac
3516 fi
3517 break
3518 fi
3519 done
3520 IFS="$ac_save_ifs"
3521 MAGIC_CMD="$ac_save_MAGIC_CMD"
dfac8a13 3522 ;;
0fd91e0a
AO
3523esac
3524fi
dfac8a13 3525
0fd91e0a
AO
3526MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3527if test -n "$MAGIC_CMD"; then
a8aea176
NN
3528 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3529echo "${ECHO_T}$MAGIC_CMD" >&6
0fd91e0a 3530else
a8aea176
NN
3531 echo "$as_me:$LINENO: result: no" >&5
3532echo "${ECHO_T}no" >&6
0fd91e0a
AO
3533fi
3534
3535if test -z "$lt_cv_path_MAGIC_CMD"; then
3536 if test -n "$ac_tool_prefix"; then
a8aea176
NN
3537 echo "$as_me:$LINENO: checking for file" >&5
3538echo $ECHO_N "checking for file... $ECHO_C" >&6
3539if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3540 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13 3541else
0fd91e0a
AO
3542 case $MAGIC_CMD in
3543 /*)
3544 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3545 ;;
3546 ?:/*)
3547 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3548 ;;
3549 *)
3550 ac_save_MAGIC_CMD="$MAGIC_CMD"
3551 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3552 ac_dummy="/usr/bin:$PATH"
3553 for ac_dir in $ac_dummy; do
3554 test -z "$ac_dir" && ac_dir=.
3555 if test -f $ac_dir/file; then
3556 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3557 if test -n "$file_magic_test_file"; then
3558 case $deplibs_check_method in
3559 "file_magic "*)
3560 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3561 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3562 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3563 egrep "$file_magic_regex" > /dev/null; then
3564 :
3565 else
3566 cat <<EOF 1>&2
c45f211e 3567
0fd91e0a
AO
3568*** Warning: the command libtool uses to detect shared libraries,
3569*** $file_magic_cmd, produces output that libtool cannot recognize.
3570*** The result is that libtool may fail to recognize shared libraries
3571*** as such. This will affect the creation of libtool libraries that
3572*** depend on shared libraries, but programs linked with such libtool
3573*** libraries will work regardless of this problem. Nevertheless, you
3574*** may want to report the problem to your system manager and/or to
3575*** bug-libtool@gnu.org
dfac8a13 3576
c45f211e 3577EOF
0fd91e0a
AO
3578 fi ;;
3579 esac
3580 fi
3581 break
3582 fi
3583 done
3584 IFS="$ac_save_ifs"
3585 MAGIC_CMD="$ac_save_MAGIC_CMD"
3586 ;;
3587esac
3588fi
3589
3590MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3591if test -n "$MAGIC_CMD"; then
a8aea176
NN
3592 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3593echo "${ECHO_T}$MAGIC_CMD" >&6
dfac8a13 3594else
a8aea176
NN
3595 echo "$as_me:$LINENO: result: no" >&5
3596echo "${ECHO_T}no" >&6
dfac8a13 3597fi
0fd91e0a
AO
3598
3599 else
3600 MAGIC_CMD=:
3601 fi
dfac8a13
TT
3602fi
3603
dfac8a13
TT
3604 fi
3605 ;;
0fd91e0a 3606esac
dfac8a13 3607
a8aea176
NN
3608if test -n "$ac_tool_prefix"; then
3609 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
0fd91e0a 3610set dummy ${ac_tool_prefix}ranlib; ac_word=$2
a8aea176
NN
3611echo "$as_me:$LINENO: checking for $ac_word" >&5
3612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3613if test "${ac_cv_prog_RANLIB+set}" = set; then
3614 echo $ECHO_N "(cached) $ECHO_C" >&6
025fd00e 3615else
0fd91e0a
AO
3616 if test -n "$RANLIB"; then
3617 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
025fd00e 3618else
a8aea176
NN
3619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3620for as_dir in $PATH
3621do
3622 IFS=$as_save_IFS
3623 test -z "$as_dir" && as_dir=.
3624 for ac_exec_ext in '' $ac_executable_extensions; do
3625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3626 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3628 break 2
3629 fi
3630done
3631done
3632
025fd00e
TT
3633fi
3634fi
a8aea176 3635RANLIB=$ac_cv_prog_RANLIB
0fd91e0a 3636if test -n "$RANLIB"; then
a8aea176
NN
3637 echo "$as_me:$LINENO: result: $RANLIB" >&5
3638echo "${ECHO_T}$RANLIB" >&6
025fd00e 3639else
a8aea176
NN
3640 echo "$as_me:$LINENO: result: no" >&5
3641echo "${ECHO_T}no" >&6
025fd00e
TT
3642fi
3643
a8aea176 3644fi
0fd91e0a 3645if test -z "$ac_cv_prog_RANLIB"; then
a8aea176 3646 ac_ct_RANLIB=$RANLIB
0fd91e0a
AO
3647 # Extract the first word of "ranlib", so it can be a program name with args.
3648set dummy ranlib; ac_word=$2
a8aea176
NN
3649echo "$as_me:$LINENO: checking for $ac_word" >&5
3650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3651if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3652 echo $ECHO_N "(cached) $ECHO_C" >&6
025fd00e 3653else
a8aea176
NN
3654 if test -n "$ac_ct_RANLIB"; then
3655 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
025fd00e 3656else
a8aea176
NN
3657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3658for as_dir in $PATH
3659do
3660 IFS=$as_save_IFS
3661 test -z "$as_dir" && as_dir=.
3662 for ac_exec_ext in '' $ac_executable_extensions; do
3663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3664 ac_cv_prog_ac_ct_RANLIB="ranlib"
3665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3666 break 2
3667 fi
3668done
3669done
3670
3671 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
025fd00e
TT
3672fi
3673fi
a8aea176
NN
3674ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3675if test -n "$ac_ct_RANLIB"; then
3676 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3677echo "${ECHO_T}$ac_ct_RANLIB" >&6
025fd00e 3678else
a8aea176
NN
3679 echo "$as_me:$LINENO: result: no" >&5
3680echo "${ECHO_T}no" >&6
025fd00e
TT
3681fi
3682
a8aea176 3683 RANLIB=$ac_ct_RANLIB
025fd00e 3684else
a8aea176 3685 RANLIB="$ac_cv_prog_RANLIB"
025fd00e
TT
3686fi
3687
a8aea176
NN
3688if test -n "$ac_tool_prefix"; then
3689 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
0fd91e0a 3690set dummy ${ac_tool_prefix}strip; ac_word=$2
a8aea176
NN
3691echo "$as_me:$LINENO: checking for $ac_word" >&5
3692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3693if test "${ac_cv_prog_STRIP+set}" = set; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
025fd00e 3695else
0fd91e0a
AO
3696 if test -n "$STRIP"; then
3697 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
025fd00e 3698else
a8aea176
NN
3699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700for as_dir in $PATH
3701do
3702 IFS=$as_save_IFS
3703 test -z "$as_dir" && as_dir=.
3704 for ac_exec_ext in '' $ac_executable_extensions; do
3705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3706 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3708 break 2
3709 fi
3710done
3711done
3712
025fd00e
TT
3713fi
3714fi
a8aea176 3715STRIP=$ac_cv_prog_STRIP
0fd91e0a 3716if test -n "$STRIP"; then
a8aea176
NN
3717 echo "$as_me:$LINENO: result: $STRIP" >&5
3718echo "${ECHO_T}$STRIP" >&6
025fd00e 3719else
a8aea176
NN
3720 echo "$as_me:$LINENO: result: no" >&5
3721echo "${ECHO_T}no" >&6
025fd00e
TT
3722fi
3723
a8aea176 3724fi
0fd91e0a 3725if test -z "$ac_cv_prog_STRIP"; then
a8aea176 3726 ac_ct_STRIP=$STRIP
0fd91e0a
AO
3727 # Extract the first word of "strip", so it can be a program name with args.
3728set dummy strip; ac_word=$2
a8aea176
NN
3729echo "$as_me:$LINENO: checking for $ac_word" >&5
3730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3731if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3732 echo $ECHO_N "(cached) $ECHO_C" >&6
025fd00e 3733else
a8aea176
NN
3734 if test -n "$ac_ct_STRIP"; then
3735 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
025fd00e 3736else
a8aea176
NN
3737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738for as_dir in $PATH
3739do
3740 IFS=$as_save_IFS
3741 test -z "$as_dir" && as_dir=.
3742 for ac_exec_ext in '' $ac_executable_extensions; do
3743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3744 ac_cv_prog_ac_ct_STRIP="strip"
3745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3746 break 2
3747 fi
3748done
3749done
3750
3751 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
025fd00e
TT
3752fi
3753fi
a8aea176
NN
3754ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3755if test -n "$ac_ct_STRIP"; then
3756 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3757echo "${ECHO_T}$ac_ct_STRIP" >&6
025fd00e 3758else
a8aea176
NN
3759 echo "$as_me:$LINENO: result: no" >&5
3760echo "${ECHO_T}no" >&6
025fd00e
TT
3761fi
3762
a8aea176 3763 STRIP=$ac_ct_STRIP
025fd00e 3764else
a8aea176 3765 STRIP="$ac_cv_prog_STRIP"
025fd00e
TT
3766fi
3767
3768
0fd91e0a
AO
3769# Check for any special flags to pass to ltconfig.
3770libtool_flags="--cache-file=$cache_file"
3771test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3772test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3773test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
3774test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
3775test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
c45f211e 3776
025fd00e
TT
3777
3778# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3779if test "${enable_libtool_lock+set}" = set; then
3780 enableval="$enable_libtool_lock"
0fd91e0a 3781
a8aea176 3782fi;
0fd91e0a
AO
3783test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
3784test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
3785
a8aea176 3786
0fd91e0a
AO
3787# Check whether --with-pic or --without-pic was given.
3788if test "${with_pic+set}" = set; then
3789 withval="$with_pic"
3790 pic_mode="$withval"
025fd00e 3791else
0fd91e0a 3792 pic_mode=default
a8aea176 3793fi;
0fd91e0a
AO
3794test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
3795test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
3796
3797# Some flags need to be propagated to the compiler or linker for good
3798# libtool support.
3799case $host in
3800*-*-irix6*)
3801 # Find out which ABI we are using.
9fabf579 3802 echo '#line 3802 "configure"' > conftest.$ac_ext
a8aea176
NN
3803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3804 (eval $ac_compile) 2>&5
3805 ac_status=$?
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); }; then
905280ac
AO
3808 if test "$lt_cv_prog_gnu_ld" = yes; then
3809 case `/usr/bin/file conftest.$ac_objext` in
3810 *32-bit*)
3811 LD="${LD-ld} -melf32bsmip"
3812 ;;
3813 *N32*)
3814 LD="${LD-ld} -melf32bmipn32"
3815 ;;
3816 *64-bit*)
3817 LD="${LD-ld} -melf64bmip"
3818 ;;
3819 esac
3820 else
0fd91e0a
AO
3821 case `/usr/bin/file conftest.$ac_objext` in
3822 *32-bit*)
3823 LD="${LD-ld} -32"
3824 ;;
3825 *N32*)
3826 LD="${LD-ld} -n32"
3827 ;;
3828 *64-bit*)
3829 LD="${LD-ld} -64"
3830 ;;
3831 esac
905280ac 3832 fi
0fd91e0a
AO
3833 fi
3834 rm -rf conftest*
3835 ;;
025fd00e 3836
f5cc59a7
AO
3837ia64-*-hpux*)
3838 # Find out which ABI we are using.
3839 echo 'int i;' > conftest.$ac_ext
a8aea176
NN
3840 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3841 (eval $ac_compile) 2>&5
3842 ac_status=$?
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); }; then
f5cc59a7
AO
3845 case "`/usr/bin/file conftest.o`" in
3846 *ELF-32*)
3847 HPUX_IA64_MODE="32"
3848 ;;
3849 *ELF-64*)
3850 HPUX_IA64_MODE="64"
3851 ;;
3852 esac
3853 fi
3854 rm -rf conftest*
3855 ;;
3856
0ccf2c33
AO
3857x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3858 # Find out which ABI we are using.
3859 echo 'int i;' > conftest.$ac_ext
a8aea176
NN
3860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3861 (eval $ac_compile) 2>&5
3862 ac_status=$?
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); }; then
0ccf2c33
AO
3865 case "`/usr/bin/file conftest.o`" in
3866 *32-bit*)
3867 case $host in
3868 x86_64-*linux*)
3869 LD="${LD-ld} -m elf_i386"
3870 ;;
e517f636 3871 ppc64-*linux*|powerpc64-*linux*)
0ccf2c33
AO
3872 LD="${LD-ld} -m elf32ppclinux"
3873 ;;
3874 s390x-*linux*)
3875 LD="${LD-ld} -m elf_s390"
3876 ;;
3877 sparc64-*linux*)
3878 LD="${LD-ld} -m elf32_sparc"
3879 ;;
3880 esac
3881 ;;
3882 *64-bit*)
3883 case $host in
3884 x86_64-*linux*)
3885 LD="${LD-ld} -m elf_x86_64"
3886 ;;
3887 ppc*-*linux*|powerpc*-*linux*)
3888 LD="${LD-ld} -m elf64ppc"
3889 ;;
3890 s390*-*linux*)
3891 LD="${LD-ld} -m elf64_s390"
3892 ;;
3893 sparc*-*linux*)
3894 LD="${LD-ld} -m elf64_sparc"
3895 ;;
3896 esac
3897 ;;
3898 esac
3899 fi
3900 rm -rf conftest*
3901 ;;
3902
0fd91e0a
AO
3903*-*-sco3.2v5*)
3904 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3905 SAVE_CFLAGS="$CFLAGS"
3906 CFLAGS="$CFLAGS -belf"
a8aea176
NN
3907 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3908echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3909if test "${lt_cv_cc_needs_belf+set}" = set; then
3910 echo $ECHO_N "(cached) $ECHO_C" >&6
0fd91e0a 3911else
a8aea176
NN
3912
3913
0fd91e0a 3914 ac_ext=c
0fd91e0a 3915ac_cpp='$CPP $CPPFLAGS'
a8aea176
NN
3916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3918ac_compiler_gnu=$ac_cv_c_compiler_gnu
3919
3920 if test x$gcc_no_link = xyes; then
3921 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
3922echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
3923 { (exit 1); exit 1; }; }
3924fi
3925cat >conftest.$ac_ext <<_ACEOF
3926/* confdefs.h. */
3927_ACEOF
3928cat confdefs.h >>conftest.$ac_ext
3929cat >>conftest.$ac_ext <<_ACEOF
3930/* end confdefs.h. */
0fd91e0a 3931
a8aea176
NN
3932int
3933main ()
3934{
0fd91e0a 3935
a8aea176
NN
3936 ;
3937 return 0;
3938}
3939_ACEOF
3940rm -f conftest.$ac_objext conftest$ac_exeext
3941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3942 (eval $ac_link) 2>conftest.er1
3943 ac_status=$?
3944 grep -v '^ *+' conftest.er1 >conftest.err
3945 rm -f conftest.er1
3946 cat conftest.err >&5
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); } &&
9fabf579
KC
3949 { ac_try='test -z "$ac_c_werror_flag"
3950 || test ! -s conftest.err'
a8aea176
NN
3951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3952 (eval $ac_try) 2>&5
3953 ac_status=$?
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); }; } &&
3956 { ac_try='test -s conftest$ac_exeext'
3957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3958 (eval $ac_try) 2>&5
3959 ac_status=$?
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); }; }; then
0fd91e0a
AO
3962 lt_cv_cc_needs_belf=yes
3963else
a8aea176
NN
3964 echo "$as_me: failed program was:" >&5
3965sed 's/^/| /' conftest.$ac_ext >&5
3966
3967lt_cv_cc_needs_belf=no
025fd00e 3968fi
a8aea176
NN
3969rm -f conftest.err conftest.$ac_objext \
3970 conftest$ac_exeext conftest.$ac_ext
0fd91e0a 3971 ac_ext=c
0fd91e0a 3972ac_cpp='$CPP $CPPFLAGS'
a8aea176
NN
3973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3975ac_compiler_gnu=$ac_cv_c_compiler_gnu
0fd91e0a
AO
3976
3977fi
a8aea176
NN
3978echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3979echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
0fd91e0a
AO
3980 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3981 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3982 CFLAGS="$SAVE_CFLAGS"
3983 fi
3984 ;;
3985
3986
3987esac
025fd00e 3988
dfac8a13
TT
3989
3990# Save cache, so that ltconfig can load it
a8aea176 3991cat >confcache <<\_ACEOF
dfac8a13
TT
3992# This file is a shell script that caches the results of configure
3993# tests run on this system so they can be shared between configure
a8aea176
NN
3994# scripts and configure runs, see configure's option --config-cache.
3995# It is not useful on other systems. If it contains results you don't
3996# want to keep, you may remove or edit it.
dfac8a13 3997#
a8aea176
NN
3998# config.status only pays attention to the cache file if you give it
3999# the --recheck option to rerun configure.
dfac8a13 4000#
a8aea176
NN
4001# `ac_cv_env_foo' variables (set or unset) will be overridden when
4002# loading this file, other *unset* `ac_cv_foo' will be assigned the
4003# following values.
4004
4005_ACEOF
4006
dfac8a13
TT
4007# The following way of writing the cache mishandles newlines in values,
4008# but we know of no workaround that is simple, portable, and efficient.
4009# So, don't put newlines in cache variables' values.
4010# Ultrix sh set writes to stderr and can't be redirected directly,
4011# and sets the high bit in the cache file unless we assign to the vars.
a8aea176
NN
4012{
4013 (set) 2>&1 |
4014 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4015 *ac_space=\ *)
4016 # `set' does not quote correctly, so add quotes (double-quote
4017 # substitution turns \\\\ into \\, and sed turns \\ into \).
4018 sed -n \
4019 "s/'/'\\\\''/g;
4020 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4021 ;;
4022 *)
4023 # `set' quotes correctly as required by POSIX, so do not add quotes.
4024 sed -n \
4025 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4026 ;;
4027 esac;
4028} |
4029 sed '
4030 t clear
4031 : clear
4032 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4033 t end
4034 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4035 : end' >>confcache
4036if diff $cache_file confcache >/dev/null 2>&1; then :; else
dfac8a13 4037 if test -w $cache_file; then
a8aea176
NN
4038 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4039 cat confcache >$cache_file
c45f211e 4040 else
dfac8a13 4041 echo "not updating unwritable cache $cache_file"
c45f211e
TT
4042 fi
4043fi
dfac8a13
TT
4044rm -f confcache
4045
dfac8a13 4046# Actually configure libtool. ac_aux_dir is where install-sh is found.
0fd91e0a
AO
4047AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
4048MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
4049LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
4050AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
4051objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
4052deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
dfac8a13 4053${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
0fd91e0a 4054$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
a8aea176
NN
4055|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
4056echo "$as_me: error: libtool configure failed" >&2;}
4057 { (exit 1); exit 1; }; }
dfac8a13
TT
4058
4059# Reload cache, that may have been modified by ltconfig
4060if test -r "$cache_file"; then
a8aea176
NN
4061 # Some versions of bash will fail to source /dev/null (special
4062 # files actually), so we avoid doing that.
4063 if test -f "$cache_file"; then
4064 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
4065echo "$as_me: loading cache $cache_file" >&6;}
4066 case $cache_file in
4067 [\\/]* | ?:[\\/]* ) . $cache_file;;
4068 *) . ./$cache_file;;
4069 esac
4070 fi
dfac8a13 4071else
a8aea176
NN
4072 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
4073echo "$as_me: creating cache $cache_file" >&6;}
4074 >$cache_file
dfac8a13
TT
4075fi
4076
4077
4078# This can be used to rebuild libtool when needed
0fd91e0a 4079LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
dfac8a13
TT
4080
4081# Always use our own libtool.
4082LIBTOOL='$(SHELL) $(top_builddir)/libtool'
4083
4084# Redirect the config.log output again, so that the ltconfig log is not
4085# clobbered by the next message.
4086exec 5>>./config.log
4087
0fd91e0a 4088
dfac8a13 4089
a8aea176
NN
4090
4091
dfac8a13
TT
4092
4093
35241f18
CD
4094# Find CPP now so that any conditional tests below won't do it and
4095# thereby make the resulting definitions conditional.
a8aea176
NN
4096ac_ext=c
4097ac_cpp='$CPP $CPPFLAGS'
4098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4100ac_compiler_gnu=$ac_cv_c_compiler_gnu
4101echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4102echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
dfac8a13
TT
4103# On Suns, sometimes $CPP names a directory.
4104if test -n "$CPP" && test -d "$CPP"; then
4105 CPP=
4106fi
4107if test -z "$CPP"; then
a8aea176
NN
4108 if test "${ac_cv_prog_CPP+set}" = set; then
4109 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13 4110else
a8aea176
NN
4111 # Double quotes because CPP needs to be expanded
4112 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4113 do
4114 ac_preproc_ok=false
4115for ac_c_preproc_warn_flag in '' yes
4116do
4117 # Use a header file that comes with gcc, so configuring glibc
4118 # with a fresh cross-compiler works.
4119 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4120 # <limits.h> exists even on freestanding compilers.
dfac8a13 4121 # On the NeXT, cc -E runs the code through the compiler's parser,
a8aea176
NN
4122 # not just through cpp. "Syntax error" is here to catch this case.
4123 cat >conftest.$ac_ext <<_ACEOF
4124/* confdefs.h. */
4125_ACEOF
4126cat confdefs.h >>conftest.$ac_ext
4127cat >>conftest.$ac_ext <<_ACEOF
4128/* end confdefs.h. */
4129#ifdef __STDC__
4130# include <limits.h>
4131#else
4132# include <assert.h>
4133#endif
4134 Syntax error
4135_ACEOF
4136if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4138 ac_status=$?
4139 grep -v '^ *+' conftest.er1 >conftest.err
4140 rm -f conftest.er1
4141 cat conftest.err >&5
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); } >/dev/null; then
4144 if test -s conftest.err; then
4145 ac_cpp_err=$ac_c_preproc_warn_flag
4146 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4147 else
4148 ac_cpp_err=
4149 fi
dfac8a13 4150else
a8aea176
NN
4151 ac_cpp_err=yes
4152fi
4153if test -z "$ac_cpp_err"; then
dfac8a13
TT
4154 :
4155else
a8aea176
NN
4156 echo "$as_me: failed program was:" >&5
4157sed 's/^/| /' conftest.$ac_ext >&5
4158
4159 # Broken: fails on valid input.
4160continue
4161fi
4162rm -f conftest.err conftest.$ac_ext
4163
4164 # OK, works on sane cases. Now check whether non-existent headers
4165 # can be detected and how.
4166 cat >conftest.$ac_ext <<_ACEOF
4167/* confdefs.h. */
4168_ACEOF
4169cat confdefs.h >>conftest.$ac_ext
4170cat >>conftest.$ac_ext <<_ACEOF
4171/* end confdefs.h. */
4172#include <ac_nonexistent.h>
4173_ACEOF
4174if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4176 ac_status=$?
4177 grep -v '^ *+' conftest.er1 >conftest.err
4178 rm -f conftest.er1
4179 cat conftest.err >&5
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); } >/dev/null; then
4182 if test -s conftest.err; then
4183 ac_cpp_err=$ac_c_preproc_warn_flag
4184 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4185 else
4186 ac_cpp_err=
4187 fi
dfac8a13 4188else
a8aea176 4189 ac_cpp_err=yes
dfac8a13 4190fi
a8aea176
NN
4191if test -z "$ac_cpp_err"; then
4192 # Broken: success on invalid input.
4193continue
4194else
4195 echo "$as_me: failed program was:" >&5
4196sed 's/^/| /' conftest.$ac_ext >&5
4197
4198 # Passes both tests.
4199ac_preproc_ok=:
4200break
dfac8a13 4201fi
a8aea176
NN
4202rm -f conftest.err conftest.$ac_ext
4203
4204done
4205# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4206rm -f conftest.err conftest.$ac_ext
4207if $ac_preproc_ok; then
4208 break
dfac8a13 4209fi
a8aea176
NN
4210
4211 done
4212 ac_cv_prog_CPP=$CPP
4213
4214fi
4215 CPP=$ac_cv_prog_CPP
4216else
4217 ac_cv_prog_CPP=$CPP
4218fi
4219echo "$as_me:$LINENO: result: $CPP" >&5
4220echo "${ECHO_T}$CPP" >&6
4221ac_preproc_ok=false
4222for ac_c_preproc_warn_flag in '' yes
4223do
4224 # Use a header file that comes with gcc, so configuring glibc
4225 # with a fresh cross-compiler works.
4226 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4227 # <limits.h> exists even on freestanding compilers.
4228 # On the NeXT, cc -E runs the code through the compiler's parser,
4229 # not just through cpp. "Syntax error" is here to catch this case.
4230 cat >conftest.$ac_ext <<_ACEOF
4231/* confdefs.h. */
4232_ACEOF
4233cat confdefs.h >>conftest.$ac_ext
4234cat >>conftest.$ac_ext <<_ACEOF
4235/* end confdefs.h. */
4236#ifdef __STDC__
4237# include <limits.h>
4238#else
4239# include <assert.h>
4240#endif
4241 Syntax error
4242_ACEOF
4243if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4245 ac_status=$?
4246 grep -v '^ *+' conftest.er1 >conftest.err
4247 rm -f conftest.er1
4248 cat conftest.err >&5
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); } >/dev/null; then
4251 if test -s conftest.err; then
4252 ac_cpp_err=$ac_c_preproc_warn_flag
4253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4254 else
4255 ac_cpp_err=
4256 fi
4257else
4258 ac_cpp_err=yes
4259fi
4260if test -z "$ac_cpp_err"; then
4261 :
4262else
4263 echo "$as_me: failed program was:" >&5
4264sed 's/^/| /' conftest.$ac_ext >&5
4265
4266 # Broken: fails on valid input.
4267continue
4268fi
4269rm -f conftest.err conftest.$ac_ext
4270
4271 # OK, works on sane cases. Now check whether non-existent headers
4272 # can be detected and how.
4273 cat >conftest.$ac_ext <<_ACEOF
4274/* confdefs.h. */
4275_ACEOF
4276cat confdefs.h >>conftest.$ac_ext
4277cat >>conftest.$ac_ext <<_ACEOF
4278/* end confdefs.h. */
4279#include <ac_nonexistent.h>
4280_ACEOF
4281if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4282 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4283 ac_status=$?
4284 grep -v '^ *+' conftest.er1 >conftest.err
4285 rm -f conftest.er1
4286 cat conftest.err >&5
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); } >/dev/null; then
4289 if test -s conftest.err; then
4290 ac_cpp_err=$ac_c_preproc_warn_flag
4291 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4292 else
4293 ac_cpp_err=
4294 fi
4295else
4296 ac_cpp_err=yes
4297fi
4298if test -z "$ac_cpp_err"; then
4299 # Broken: success on invalid input.
4300continue
4301else
4302 echo "$as_me: failed program was:" >&5
4303sed 's/^/| /' conftest.$ac_ext >&5
4304
4305 # Passes both tests.
4306ac_preproc_ok=:
4307break
dfac8a13 4308fi
a8aea176
NN
4309rm -f conftest.err conftest.$ac_ext
4310
4311done
4312# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4313rm -f conftest.err conftest.$ac_ext
4314if $ac_preproc_ok; then
4315 :
dfac8a13 4316else
a8aea176
NN
4317 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4318See \`config.log' for more details." >&5
4319echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4320See \`config.log' for more details." >&2;}
4321 { (exit 1); exit 1; }; }
dfac8a13 4322fi
a8aea176
NN
4323
4324ac_ext=c
4325ac_cpp='$CPP $CPPFLAGS'
4326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4328ac_compiler_gnu=$ac_cv_c_compiler_gnu
dfac8a13 4329
35241f18
CD
4330
4331if test -n "$with_cross_host"; then
4332 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
4333 # may not work correctly, because the compiler may not be able to
4334 # link executables.
4335
4336 # We assume newlib. This lets us hard-code the functions we know
4337 # we'll have.
a8aea176 4338 cat >>confdefs.h <<\_ACEOF
35241f18 4339#define HAVE_MEMCPY 1
a8aea176 4340_ACEOF
35241f18 4341
a8aea176 4342 cat >>confdefs.h <<\_ACEOF
35241f18 4343#define HAVE_STRERROR 1
a8aea176 4344_ACEOF
35241f18
CD
4345
4346
4347 # We ignore --with-system-zlib in this case.
4348 target_all=libzgcj.la
4349else
a8aea176
NN
4350 if test x$gcc_no_link = xyes; then
4351 if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
4352 ac_cv_func_mmap_fixed_mapped=no
4353 fi
dfac8a13 4354fi
a8aea176
NN
4355if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
4356
4357echo "$as_me:$LINENO: checking for egrep" >&5
4358echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4359if test "${ac_cv_prog_egrep+set}" = set; then
4360 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13 4361else
a8aea176
NN
4362 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4363 then ac_cv_prog_egrep='grep -E'
4364 else ac_cv_prog_egrep='egrep'
4365 fi
c45f211e 4366fi
a8aea176
NN
4367echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4368echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4369 EGREP=$ac_cv_prog_egrep
dfac8a13 4370
dfac8a13 4371
a8aea176
NN
4372echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4373echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4374if test "${ac_cv_header_stdc+set}" = set; then
4375 echo $ECHO_N "(cached) $ECHO_C" >&6
4376else
4377 cat >conftest.$ac_ext <<_ACEOF
4378/* confdefs.h. */
4379_ACEOF
4380cat confdefs.h >>conftest.$ac_ext
4381cat >>conftest.$ac_ext <<_ACEOF
4382/* end confdefs.h. */
4383#include <stdlib.h>
4384#include <stdarg.h>
4385#include <string.h>
4386#include <float.h>
dfac8a13 4387
a8aea176
NN
4388int
4389main ()
4390{
c45f211e 4391
a8aea176
NN
4392 ;
4393 return 0;
4394}
4395_ACEOF
4396rm -f conftest.$ac_objext
4397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4398 (eval $ac_compile) 2>conftest.er1
4399 ac_status=$?
4400 grep -v '^ *+' conftest.er1 >conftest.err
4401 rm -f conftest.er1
4402 cat conftest.err >&5
4403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404 (exit $ac_status); } &&
9fabf579
KC
4405 { ac_try='test -z "$ac_c_werror_flag"
4406 || test ! -s conftest.err'
a8aea176
NN
4407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4408 (eval $ac_try) 2>&5
4409 ac_status=$?
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); }; } &&
4412 { ac_try='test -s conftest.$ac_objext'
4413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4414 (eval $ac_try) 2>&5
4415 ac_status=$?
4416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); }; }; then
4418 ac_cv_header_stdc=yes
c45f211e 4419else
a8aea176
NN
4420 echo "$as_me: failed program was:" >&5
4421sed 's/^/| /' conftest.$ac_ext >&5
4422
4423ac_cv_header_stdc=no
4424fi
4425rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4426
4427if test $ac_cv_header_stdc = yes; then
4428 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4429 cat >conftest.$ac_ext <<_ACEOF
4430/* confdefs.h. */
4431_ACEOF
4432cat confdefs.h >>conftest.$ac_ext
4433cat >>conftest.$ac_ext <<_ACEOF
4434/* end confdefs.h. */
4435#include <string.h>
4436
4437_ACEOF
4438if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4439 $EGREP "memchr" >/dev/null 2>&1; then
4440 :
4441else
4442 ac_cv_header_stdc=no
dfac8a13
TT
4443fi
4444rm -f conftest*
a8aea176 4445
c45f211e
TT
4446fi
4447
a8aea176
NN
4448if test $ac_cv_header_stdc = yes; then
4449 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4450 cat >conftest.$ac_ext <<_ACEOF
4451/* confdefs.h. */
4452_ACEOF
4453cat confdefs.h >>conftest.$ac_ext
4454cat >>conftest.$ac_ext <<_ACEOF
4455/* end confdefs.h. */
4456#include <stdlib.h>
4457
4458_ACEOF
4459if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4460 $EGREP "free" >/dev/null 2>&1; then
4461 :
c45f211e 4462else
a8aea176 4463 ac_cv_header_stdc=no
c45f211e 4464fi
a8aea176
NN
4465rm -f conftest*
4466
4467fi
4468
4469if test $ac_cv_header_stdc = yes; then
4470 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4471 if test "$cross_compiling" = yes; then
4472 :
4473else
4474 cat >conftest.$ac_ext <<_ACEOF
4475/* confdefs.h. */
4476_ACEOF
4477cat confdefs.h >>conftest.$ac_ext
4478cat >>conftest.$ac_ext <<_ACEOF
4479/* end confdefs.h. */
4480#include <ctype.h>
4481#if ((' ' & 0x0FF) == 0x020)
4482# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4483# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4484#else
4485# define ISLOWER(c) \
4486 (('a' <= (c) && (c) <= 'i') \
4487 || ('j' <= (c) && (c) <= 'r') \
4488 || ('s' <= (c) && (c) <= 'z'))
4489# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4490#endif
4491
4492#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4493int
4494main ()
4495{
4496 int i;
4497 for (i = 0; i < 256; i++)
4498 if (XOR (islower (i), ISLOWER (i))
4499 || toupper (i) != TOUPPER (i))
4500 exit(2);
4501 exit (0);
4502}
4503_ACEOF
4504rm -f conftest$ac_exeext
4505if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4506 (eval $ac_link) 2>&5
4507 ac_status=$?
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4511 (eval $ac_try) 2>&5
4512 ac_status=$?
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); }; }; then
4515 :
4516else
4517 echo "$as_me: program exited with status $ac_status" >&5
4518echo "$as_me: failed program was:" >&5
4519sed 's/^/| /' conftest.$ac_ext >&5
4520
4521( exit $ac_status )
4522ac_cv_header_stdc=no
4523fi
4524rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4525fi
4526fi
4527fi
4528echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4529echo "${ECHO_T}$ac_cv_header_stdc" >&6
4530if test $ac_cv_header_stdc = yes; then
4531
4532cat >>confdefs.h <<\_ACEOF
4533#define STDC_HEADERS 1
4534_ACEOF
4535
4536fi
4537
4538# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4539
4540
dfac8a13 4541
a8aea176
NN
4542
4543
4544
4545
4546
4547
4548for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4549 inttypes.h stdint.h unistd.h
4550do
4551as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4552echo "$as_me:$LINENO: checking for $ac_header" >&5
4553echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4554if eval "test \"\${$as_ac_Header+set}\" = set"; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4556else
4557 cat >conftest.$ac_ext <<_ACEOF
4558/* confdefs.h. */
4559_ACEOF
4560cat confdefs.h >>conftest.$ac_ext
4561cat >>conftest.$ac_ext <<_ACEOF
4562/* end confdefs.h. */
4563$ac_includes_default
4564
4565#include <$ac_header>
4566_ACEOF
4567rm -f conftest.$ac_objext
4568if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4569 (eval $ac_compile) 2>conftest.er1
4570 ac_status=$?
4571 grep -v '^ *+' conftest.er1 >conftest.err
4572 rm -f conftest.er1
4573 cat conftest.err >&5
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); } &&
9fabf579
KC
4576 { ac_try='test -z "$ac_c_werror_flag"
4577 || test ! -s conftest.err'
a8aea176
NN
4578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4579 (eval $ac_try) 2>&5
4580 ac_status=$?
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); }; } &&
4583 { ac_try='test -s conftest.$ac_objext'
4584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4585 (eval $ac_try) 2>&5
4586 ac_status=$?
4587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4588 (exit $ac_status); }; }; then
4589 eval "$as_ac_Header=yes"
4590else
4591 echo "$as_me: failed program was:" >&5
4592sed 's/^/| /' conftest.$ac_ext >&5
4593
4594eval "$as_ac_Header=no"
4595fi
4596rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4597fi
4598echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4599echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4600if test `eval echo '${'$as_ac_Header'}'` = yes; then
4601 cat >>confdefs.h <<_ACEOF
4602#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4603_ACEOF
4604
4605fi
4606
4607done
4608
4609
4610
4611
4612for ac_header in stdlib.h unistd.h
4613do
4614as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4615if eval "test \"\${$as_ac_Header+set}\" = set"; then
4616 echo "$as_me:$LINENO: checking for $ac_header" >&5
4617echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4618if eval "test \"\${$as_ac_Header+set}\" = set"; then
4619 echo $ECHO_N "(cached) $ECHO_C" >&6
4620fi
4621echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4622echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4623else
4624 # Is the header compilable?
4625echo "$as_me:$LINENO: checking $ac_header usability" >&5
4626echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4627cat >conftest.$ac_ext <<_ACEOF
4628/* confdefs.h. */
4629_ACEOF
4630cat confdefs.h >>conftest.$ac_ext
4631cat >>conftest.$ac_ext <<_ACEOF
4632/* end confdefs.h. */
4633$ac_includes_default
4634#include <$ac_header>
4635_ACEOF
4636rm -f conftest.$ac_objext
4637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4638 (eval $ac_compile) 2>conftest.er1
4639 ac_status=$?
4640 grep -v '^ *+' conftest.er1 >conftest.err
4641 rm -f conftest.er1
4642 cat conftest.err >&5
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); } &&
9fabf579
KC
4645 { ac_try='test -z "$ac_c_werror_flag"
4646 || test ! -s conftest.err'
a8aea176
NN
4647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4648 (eval $ac_try) 2>&5
4649 ac_status=$?
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); }; } &&
4652 { ac_try='test -s conftest.$ac_objext'
4653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4654 (eval $ac_try) 2>&5
4655 ac_status=$?
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); }; }; then
4658 ac_header_compiler=yes
4659else
4660 echo "$as_me: failed program was:" >&5
4661sed 's/^/| /' conftest.$ac_ext >&5
4662
4663ac_header_compiler=no
4664fi
4665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4666echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4667echo "${ECHO_T}$ac_header_compiler" >&6
4668
4669# Is the header present?
4670echo "$as_me:$LINENO: checking $ac_header presence" >&5
4671echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4672cat >conftest.$ac_ext <<_ACEOF
4673/* confdefs.h. */
4674_ACEOF
4675cat confdefs.h >>conftest.$ac_ext
4676cat >>conftest.$ac_ext <<_ACEOF
4677/* end confdefs.h. */
4678#include <$ac_header>
4679_ACEOF
4680if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4681 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4682 ac_status=$?
4683 grep -v '^ *+' conftest.er1 >conftest.err
4684 rm -f conftest.er1
4685 cat conftest.err >&5
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); } >/dev/null; then
4688 if test -s conftest.err; then
4689 ac_cpp_err=$ac_c_preproc_warn_flag
4690 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4691 else
4692 ac_cpp_err=
4693 fi
4694else
4695 ac_cpp_err=yes
4696fi
4697if test -z "$ac_cpp_err"; then
4698 ac_header_preproc=yes
4699else
4700 echo "$as_me: failed program was:" >&5
4701sed 's/^/| /' conftest.$ac_ext >&5
4702
4703 ac_header_preproc=no
4704fi
4705rm -f conftest.err conftest.$ac_ext
4706echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4707echo "${ECHO_T}$ac_header_preproc" >&6
4708
4709# So? What about this header?
4710case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4711 yes:no: )
4712 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4713echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4715echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4716 ac_header_preproc=yes
4717 ;;
4718 no:yes:* )
4719 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4720echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4721 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4722echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4723 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4724echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4725 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4726echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4728echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4729 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4730echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4731 (
4732 cat <<\_ASBOX
4733## ------------------------------------------ ##
4734## Report this to the AC_PACKAGE_NAME lists. ##
4735## ------------------------------------------ ##
4736_ASBOX
4737 ) |
4738 sed "s/^/$as_me: WARNING: /" >&2
4739 ;;
4740esac
4741echo "$as_me:$LINENO: checking for $ac_header" >&5
4742echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4743if eval "test \"\${$as_ac_Header+set}\" = set"; then
4744 echo $ECHO_N "(cached) $ECHO_C" >&6
4745else
4746 eval "$as_ac_Header=\$ac_header_preproc"
4747fi
4748echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4749echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4750
4751fi
4752if test `eval echo '${'$as_ac_Header'}'` = yes; then
4753 cat >>confdefs.h <<_ACEOF
4754#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4755_ACEOF
4756
4757fi
4758
4759done
4760
4761
4762for ac_func in getpagesize
4763do
4764as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4765echo "$as_me:$LINENO: checking for $ac_func" >&5
4766echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4767if eval "test \"\${$as_ac_var+set}\" = set"; then
4768 echo $ECHO_N "(cached) $ECHO_C" >&6
4769else
4770 if test x$gcc_no_link = xyes; then
4771 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
4772echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
4773 { (exit 1); exit 1; }; }
4774fi
4775cat >conftest.$ac_ext <<_ACEOF
4776/* confdefs.h. */
4777_ACEOF
4778cat confdefs.h >>conftest.$ac_ext
4779cat >>conftest.$ac_ext <<_ACEOF
4780/* end confdefs.h. */
4781/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4783#define $ac_func innocuous_$ac_func
4784
4785/* System header to define __stub macros and hopefully few prototypes,
4786 which can conflict with char $ac_func (); below.
4787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4788 <limits.h> exists even on freestanding compilers. */
4789
4790#ifdef __STDC__
4791# include <limits.h>
4792#else
4793# include <assert.h>
4794#endif
4795
4796#undef $ac_func
4797
4798/* Override any gcc2 internal prototype to avoid an error. */
4799#ifdef __cplusplus
4800extern "C"
4801{
4802#endif
4803/* We use char because int might match the return type of a gcc2
4804 builtin and then its argument prototype would still apply. */
4805char $ac_func ();
4806/* The GNU C library defines this for functions which it implements
4807 to always fail with ENOSYS. Some functions are actually named
4808 something starting with __ and the normal name is an alias. */
4809#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4810choke me
4811#else
4812char (*f) () = $ac_func;
4813#endif
4814#ifdef __cplusplus
4815}
4816#endif
4817
4818int
4819main ()
4820{
4821return f != $ac_func;
4822 ;
4823 return 0;
4824}
4825_ACEOF
4826rm -f conftest.$ac_objext conftest$ac_exeext
4827if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4828 (eval $ac_link) 2>conftest.er1
4829 ac_status=$?
4830 grep -v '^ *+' conftest.er1 >conftest.err
4831 rm -f conftest.er1
4832 cat conftest.err >&5
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); } &&
9fabf579
KC
4835 { ac_try='test -z "$ac_c_werror_flag"
4836 || test ! -s conftest.err'
a8aea176
NN
4837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4838 (eval $ac_try) 2>&5
4839 ac_status=$?
4840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841 (exit $ac_status); }; } &&
4842 { ac_try='test -s conftest$ac_exeext'
4843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4844 (eval $ac_try) 2>&5
4845 ac_status=$?
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); }; }; then
4848 eval "$as_ac_var=yes"
4849else
4850 echo "$as_me: failed program was:" >&5
4851sed 's/^/| /' conftest.$ac_ext >&5
4852
4853eval "$as_ac_var=no"
4854fi
4855rm -f conftest.err conftest.$ac_objext \
4856 conftest$ac_exeext conftest.$ac_ext
4857fi
4858echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4859echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4860if test `eval echo '${'$as_ac_var'}'` = yes; then
4861 cat >>confdefs.h <<_ACEOF
4862#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4863_ACEOF
4864
4865fi
4866done
4867
4868echo "$as_me:$LINENO: checking for working mmap" >&5
4869echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4870if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4871 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13
TT
4872else
4873 if test "$cross_compiling" = yes; then
4874 ac_cv_func_mmap_fixed_mapped=no
4875else
a8aea176
NN
4876 cat >conftest.$ac_ext <<_ACEOF
4877/* confdefs.h. */
4878_ACEOF
4879cat confdefs.h >>conftest.$ac_ext
4880cat >>conftest.$ac_ext <<_ACEOF
4881/* end confdefs.h. */
4882$ac_includes_default
4883/* malloc might have been renamed as rpl_malloc. */
4884#undef malloc
dfac8a13
TT
4885
4886/* Thanks to Mike Haertel and Jim Avera for this test.
4887 Here is a matrix of mmap possibilities:
4888 mmap private not fixed
4889 mmap private fixed at somewhere currently unmapped
4890 mmap private fixed at somewhere already mapped
4891 mmap shared not fixed
4892 mmap shared fixed at somewhere currently unmapped
4893 mmap shared fixed at somewhere already mapped
4894 For private mappings, we should verify that changes cannot be read()
4895 back from the file, nor mmap's back from the file at a different
4896 address. (There have been systems where private was not correctly
4897 implemented like the infamous i386 svr4.0, and systems where the
a8aea176 4898 VM page cache was not coherent with the file system buffer cache
dfac8a13
TT
4899 like early versions of FreeBSD and possibly contemporary NetBSD.)
4900 For shared mappings, we should conversely verify that changes get
a8aea176 4901 propagated back to all the places they're supposed to be.
c45f211e 4902
dfac8a13
TT
4903 Grep wants private fixed already mapped.
4904 The main things grep needs to know about mmap are:
4905 * does it exist and is it safe to write into the mmap'd area
4906 * how to use it (BSD variants) */
a8aea176 4907
dfac8a13 4908#include <fcntl.h>
c45f211e 4909#include <sys/mman.h>
dfac8a13 4910
a8aea176
NN
4911#if !STDC_HEADERS && !HAVE_STDLIB_H
4912char *malloc ();
4913#endif
dfac8a13 4914
a8aea176
NN
4915/* This mess was copied from the GNU getpagesize.h. */
4916#if !HAVE_GETPAGESIZE
dfac8a13 4917/* Assume that all systems that can run configure have sys/param.h. */
a8aea176 4918# if !HAVE_SYS_PARAM_H
dfac8a13
TT
4919# define HAVE_SYS_PARAM_H 1
4920# endif
4921
4922# ifdef _SC_PAGESIZE
4923# define getpagesize() sysconf(_SC_PAGESIZE)
4924# else /* no _SC_PAGESIZE */
a8aea176 4925# if HAVE_SYS_PARAM_H
dfac8a13
TT
4926# include <sys/param.h>
4927# ifdef EXEC_PAGESIZE
4928# define getpagesize() EXEC_PAGESIZE
4929# else /* no EXEC_PAGESIZE */
4930# ifdef NBPG
4931# define getpagesize() NBPG * CLSIZE
4932# ifndef CLSIZE
4933# define CLSIZE 1
4934# endif /* no CLSIZE */
4935# else /* no NBPG */
4936# ifdef NBPC
4937# define getpagesize() NBPC
4938# else /* no NBPC */
4939# ifdef PAGESIZE
4940# define getpagesize() PAGESIZE
4941# endif /* PAGESIZE */
4942# endif /* no NBPC */
4943# endif /* no NBPG */
4944# endif /* no EXEC_PAGESIZE */
4945# else /* no HAVE_SYS_PARAM_H */
4946# define getpagesize() 8192 /* punt totally */
4947# endif /* no HAVE_SYS_PARAM_H */
4948# endif /* no _SC_PAGESIZE */
4949
4950#endif /* no HAVE_GETPAGESIZE */
4951
dfac8a13 4952int
a8aea176 4953main ()
dfac8a13 4954{
a8aea176
NN
4955 char *data, *data2, *data3;
4956 int i, pagesize;
4957 int fd;
4958
4959 pagesize = getpagesize ();
4960
4961 /* First, make a file with some known garbage in it. */
4962 data = (char *) malloc (pagesize);
4963 if (!data)
4964 exit (1);
4965 for (i = 0; i < pagesize; ++i)
4966 *(data + i) = rand ();
4967 umask (0);
4968 fd = creat ("conftest.mmap", 0600);
4969 if (fd < 0)
4970 exit (1);
4971 if (write (fd, data, pagesize) != pagesize)
4972 exit (1);
4973 close (fd);
4974
4975 /* Next, try to mmap the file at a fixed address which already has
4976 something else allocated at it. If we can, also make sure that
4977 we see the same garbage. */
4978 fd = open ("conftest.mmap", O_RDWR);
4979 if (fd < 0)
4980 exit (1);
4981 data2 = (char *) malloc (2 * pagesize);
4982 if (!data2)
4983 exit (1);
4984 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
4985 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4986 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4987 exit (1);
4988 for (i = 0; i < pagesize; ++i)
4989 if (*(data + i) != *(data2 + i))
4990 exit (1);
4991
4992 /* Finally, make sure that changes to the mapped area do not
4993 percolate back to the file as seen by read(). (This is a bug on
4994 some variants of i386 svr4.0.) */
4995 for (i = 0; i < pagesize; ++i)
4996 *(data2 + i) = *(data2 + i) + 1;
4997 data3 = (char *) malloc (pagesize);
4998 if (!data3)
4999 exit (1);
5000 if (read (fd, data3, pagesize) != pagesize)
5001 exit (1);
5002 for (i = 0; i < pagesize; ++i)
5003 if (*(data + i) != *(data3 + i))
5004 exit (1);
5005 close (fd);
5006 exit (0);
c45f211e 5007}
a8aea176
NN
5008_ACEOF
5009rm -f conftest$ac_exeext
5010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5011 (eval $ac_link) 2>&5
5012 ac_status=$?
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5016 (eval $ac_try) 2>&5
5017 ac_status=$?
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); }; }; then
dfac8a13
TT
5020 ac_cv_func_mmap_fixed_mapped=yes
5021else
a8aea176
NN
5022 echo "$as_me: program exited with status $ac_status" >&5
5023echo "$as_me: failed program was:" >&5
5024sed 's/^/| /' conftest.$ac_ext >&5
5025
5026( exit $ac_status )
5027ac_cv_func_mmap_fixed_mapped=no
dfac8a13 5028fi
a8aea176 5029rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
dfac8a13 5030fi
dfac8a13 5031fi
a8aea176
NN
5032echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5033echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
dfac8a13 5034if test $ac_cv_func_mmap_fixed_mapped = yes; then
a8aea176
NN
5035
5036cat >>confdefs.h <<\_ACEOF
dfac8a13 5037#define HAVE_MMAP 1
a8aea176 5038_ACEOF
dfac8a13
TT
5039
5040fi
a8aea176 5041rm -f conftest.mmap
dfac8a13 5042
a8aea176
NN
5043fi
5044
5045
5046for ac_func in memcpy strerror
dfac8a13 5047do
a8aea176
NN
5048as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5049echo "$as_me:$LINENO: checking for $ac_func" >&5
5050echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5051if eval "test \"\${$as_ac_var+set}\" = set"; then
5052 echo $ECHO_N "(cached) $ECHO_C" >&6
5053else
5054 if test x$gcc_no_link = xyes; then
5055 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5056echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5057 { (exit 1); exit 1; }; }
5058fi
5059cat >conftest.$ac_ext <<_ACEOF
5060/* confdefs.h. */
5061_ACEOF
5062cat confdefs.h >>conftest.$ac_ext
5063cat >>conftest.$ac_ext <<_ACEOF
5064/* end confdefs.h. */
5065/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5066 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5067#define $ac_func innocuous_$ac_func
5068
dfac8a13 5069/* System header to define __stub macros and hopefully few prototypes,
a8aea176
NN
5070 which can conflict with char $ac_func (); below.
5071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5072 <limits.h> exists even on freestanding compilers. */
5073
5074#ifdef __STDC__
5075# include <limits.h>
5076#else
5077# include <assert.h>
5078#endif
dfac8a13 5079
a8aea176 5080#undef $ac_func
dfac8a13 5081
a8aea176
NN
5082/* Override any gcc2 internal prototype to avoid an error. */
5083#ifdef __cplusplus
5084extern "C"
5085{
5086#endif
5087/* We use char because int might match the return type of a gcc2
5088 builtin and then its argument prototype would still apply. */
5089char $ac_func ();
dfac8a13
TT
5090/* The GNU C library defines this for functions which it implements
5091 to always fail with ENOSYS. Some functions are actually named
5092 something starting with __ and the normal name is an alias. */
5093#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5094choke me
5095#else
a8aea176
NN
5096char (*f) () = $ac_func;
5097#endif
5098#ifdef __cplusplus
5099}
dfac8a13
TT
5100#endif
5101
a8aea176
NN
5102int
5103main ()
5104{
5105return f != $ac_func;
5106 ;
5107 return 0;
5108}
5109_ACEOF
5110rm -f conftest.$ac_objext conftest$ac_exeext
5111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5112 (eval $ac_link) 2>conftest.er1
5113 ac_status=$?
5114 grep -v '^ *+' conftest.er1 >conftest.err
5115 rm -f conftest.er1
5116 cat conftest.err >&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); } &&
9fabf579
KC
5119 { ac_try='test -z "$ac_c_werror_flag"
5120 || test ! -s conftest.err'
a8aea176
NN
5121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5122 (eval $ac_try) 2>&5
5123 ac_status=$?
5124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125 (exit $ac_status); }; } &&
5126 { ac_try='test -s conftest$ac_exeext'
5127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5128 (eval $ac_try) 2>&5
5129 ac_status=$?
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); }; }; then
5132 eval "$as_ac_var=yes"
dfac8a13 5133else
a8aea176
NN
5134 echo "$as_me: failed program was:" >&5
5135sed 's/^/| /' conftest.$ac_ext >&5
5136
5137eval "$as_ac_var=no"
dfac8a13 5138fi
a8aea176
NN
5139rm -f conftest.err conftest.$ac_objext \
5140 conftest$ac_exeext conftest.$ac_ext
dfac8a13 5141fi
a8aea176
NN
5142echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5143echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5144if test `eval echo '${'$as_ac_var'}'` = yes; then
5145 cat >>confdefs.h <<_ACEOF
5146#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5147_ACEOF
dfac8a13 5148
dfac8a13
TT
5149fi
5150done
5151
79a9a529
TT
5152
5153 if test "$with_system_zlib" = yes; then
a8aea176
NN
5154 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
5155echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
5156if test "${ac_cv_lib_z_deflate+set}" = set; then
5157 echo $ECHO_N "(cached) $ECHO_C" >&6
79a9a529 5158else
a8aea176 5159 ac_check_lib_save_LIBS=$LIBS
79a9a529 5160LIBS="-lz $LIBS"
a8aea176
NN
5161if test x$gcc_no_link = xyes; then
5162 { { echo "$as_me:$LINENO: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&5
5163echo "$as_me: error: Link tests are not allowed after GCC_NO_EXECUTABLES." >&2;}
5164 { (exit 1); exit 1; }; }
5165fi
5166cat >conftest.$ac_ext <<_ACEOF
5167/* confdefs.h. */
5168_ACEOF
5169cat confdefs.h >>conftest.$ac_ext
5170cat >>conftest.$ac_ext <<_ACEOF
5171/* end confdefs.h. */
5172
79a9a529 5173/* Override any gcc2 internal prototype to avoid an error. */
a8aea176
NN
5174#ifdef __cplusplus
5175extern "C"
5176#endif
79a9a529 5177/* We use char because int might match the return type of a gcc2
a8aea176
NN
5178 builtin and then its argument prototype would still apply. */
5179char deflate ();
5180int
5181main ()
5182{
5183deflate ();
5184 ;
5185 return 0;
5186}
5187_ACEOF
5188rm -f conftest.$ac_objext conftest$ac_exeext
5189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5190 (eval $ac_link) 2>conftest.er1
5191 ac_status=$?
5192 grep -v '^ *+' conftest.er1 >conftest.err
5193 rm -f conftest.er1
5194 cat conftest.err >&5
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); } &&
9fabf579
KC
5197 { ac_try='test -z "$ac_c_werror_flag"
5198 || test ! -s conftest.err'
a8aea176
NN
5199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5200 (eval $ac_try) 2>&5
5201 ac_status=$?
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); }; } &&
5204 { ac_try='test -s conftest$ac_exeext'
5205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5206 (eval $ac_try) 2>&5
5207 ac_status=$?
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); }; }; then
5210 ac_cv_lib_z_deflate=yes
79a9a529 5211else
a8aea176
NN
5212 echo "$as_me: failed program was:" >&5
5213sed 's/^/| /' conftest.$ac_ext >&5
79a9a529 5214
a8aea176
NN
5215ac_cv_lib_z_deflate=no
5216fi
5217rm -f conftest.err conftest.$ac_objext \
5218 conftest$ac_exeext conftest.$ac_ext
5219LIBS=$ac_check_lib_save_LIBS
79a9a529 5220fi
a8aea176
NN
5221echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
5222echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
5223if test $ac_cv_lib_z_deflate = yes; then
79a9a529
TT
5224 target_all=
5225else
a8aea176 5226 target_all=libzgcj.la
79a9a529
TT
5227fi
5228
5229 else
5230 target_all=libzgcj.la
5231 fi
5232fi
5233
5234
dfac8a13 5235
a8aea176
NN
5236
5237for ac_header in unistd.h
dfac8a13 5238do
a8aea176
NN
5239as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5240if eval "test \"\${$as_ac_Header+set}\" = set"; then
5241 echo "$as_me:$LINENO: checking for $ac_header" >&5
5242echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5243if eval "test \"\${$as_ac_Header+set}\" = set"; then
5244 echo $ECHO_N "(cached) $ECHO_C" >&6
5245fi
5246echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5247echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
dfac8a13 5248else
a8aea176
NN
5249 # Is the header compilable?
5250echo "$as_me:$LINENO: checking $ac_header usability" >&5
5251echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5252cat >conftest.$ac_ext <<_ACEOF
5253/* confdefs.h. */
5254_ACEOF
5255cat confdefs.h >>conftest.$ac_ext
5256cat >>conftest.$ac_ext <<_ACEOF
5257/* end confdefs.h. */
5258$ac_includes_default
5259#include <$ac_header>
5260_ACEOF
5261rm -f conftest.$ac_objext
5262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5263 (eval $ac_compile) 2>conftest.er1
5264 ac_status=$?
5265 grep -v '^ *+' conftest.er1 >conftest.err
5266 rm -f conftest.er1
5267 cat conftest.err >&5
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); } &&
9fabf579
KC
5270 { ac_try='test -z "$ac_c_werror_flag"
5271 || test ! -s conftest.err'
a8aea176
NN
5272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5273 (eval $ac_try) 2>&5
5274 ac_status=$?
5275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5276 (exit $ac_status); }; } &&
5277 { ac_try='test -s conftest.$ac_objext'
5278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5279 (eval $ac_try) 2>&5
5280 ac_status=$?
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); }; }; then
5283 ac_header_compiler=yes
5284else
5285 echo "$as_me: failed program was:" >&5
5286sed 's/^/| /' conftest.$ac_ext >&5
5287
5288ac_header_compiler=no
5289fi
5290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5291echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5292echo "${ECHO_T}$ac_header_compiler" >&6
5293
5294# Is the header present?
5295echo "$as_me:$LINENO: checking $ac_header presence" >&5
5296echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5297cat >conftest.$ac_ext <<_ACEOF
5298/* confdefs.h. */
5299_ACEOF
5300cat confdefs.h >>conftest.$ac_ext
5301cat >>conftest.$ac_ext <<_ACEOF
5302/* end confdefs.h. */
5303#include <$ac_header>
5304_ACEOF
5305if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5306 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5307 ac_status=$?
5308 grep -v '^ *+' conftest.er1 >conftest.err
5309 rm -f conftest.er1
5310 cat conftest.err >&5
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); } >/dev/null; then
5313 if test -s conftest.err; then
5314 ac_cpp_err=$ac_c_preproc_warn_flag
5315 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5316 else
5317 ac_cpp_err=
5318 fi
5319else
5320 ac_cpp_err=yes
dfac8a13 5321fi
a8aea176
NN
5322if test -z "$ac_cpp_err"; then
5323 ac_header_preproc=yes
5324else
5325 echo "$as_me: failed program was:" >&5
5326sed 's/^/| /' conftest.$ac_ext >&5
5327
5328 ac_header_preproc=no
5329fi
5330rm -f conftest.err conftest.$ac_ext
5331echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5332echo "${ECHO_T}$ac_header_preproc" >&6
5333
5334# So? What about this header?
5335case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5336 yes:no: )
5337 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5338echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5340echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5341 ac_header_preproc=yes
5342 ;;
5343 no:yes:* )
5344 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5345echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5346 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5347echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5348 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5349echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5350 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5351echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5353echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5354 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5355echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5356 (
5357 cat <<\_ASBOX
5358## ------------------------------------------ ##
5359## Report this to the AC_PACKAGE_NAME lists. ##
5360## ------------------------------------------ ##
5361_ASBOX
5362 ) |
5363 sed "s/^/$as_me: WARNING: /" >&2
5364 ;;
5365esac
5366echo "$as_me:$LINENO: checking for $ac_header" >&5
5367echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5368if eval "test \"\${$as_ac_Header+set}\" = set"; then
5369 echo $ECHO_N "(cached) $ECHO_C" >&6
dfac8a13 5370else
a8aea176 5371 eval "$as_ac_Header=\$ac_header_preproc"
dfac8a13 5372fi
a8aea176
NN
5373echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5374echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5375
5376fi
5377if test `eval echo '${'$as_ac_Header'}'` = yes; then
5378 cat >>confdefs.h <<_ACEOF
5379#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5380_ACEOF
5381
5382fi
5383
dfac8a13
TT
5384done
5385
5386
0ccf2c33
AO
5387if test -n "$with_cross_host" &&
5388 test x"$with_cross_host" != x"no"; then
5389 toolexecdir='$(exec_prefix)/$(target_alias)'
5390 toolexeclibdir='$(toolexecdir)/lib'
b48ed568 5391else
0ccf2c33
AO
5392 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
5393 toolexeclibdir='$(libdir)'
b48ed568 5394fi
905280ac
AO
5395if test "$GCC" = yes && $CC -print-multi-os-directory > /dev/null 2>&1; then
5396 multiosdir=/`$CC -print-multi-os-directory`
ff8b9ca8
AS
5397 case $multiosdir in
5398 /.) multiosdir= ;; # Avoid trailing /.
5399 esac
905280ac
AO
5400else
5401 multiosdir=
5402fi
5403toolexeclibdir=${toolexeclibdir}${multiosdir}
0ccf2c33
AO
5404
5405
5406
b48ed568 5407
e093c992
AG
5408
5409if test -n "$with_target_subdir"; then
5410 TARGET_LIBRARY_TRUE=
5411 TARGET_LIBRARY_FALSE='#'
5412else
5413 TARGET_LIBRARY_TRUE='#'
5414 TARGET_LIBRARY_FALSE=
5415fi
5416
9fabf579 5417
dfac8a13
TT
5418if test "${multilib}" = "yes"; then
5419 multilib_arg="--enable-multilib"
5420else
5421 multilib_arg=
5422fi
5423
a8aea176
NN
5424 ac_config_files="$ac_config_files Makefile"
5425
5426
5427 ac_config_commands="$ac_config_commands default"
5428
5429
5430cat >confcache <<\_ACEOF
dfac8a13
TT
5431# This file is a shell script that caches the results of configure
5432# tests run on this system so they can be shared between configure
a8aea176
NN
5433# scripts and configure runs, see configure's option --config-cache.
5434# It is not useful on other systems. If it contains results you don't
5435# want to keep, you may remove or edit it.
dfac8a13 5436#
a8aea176
NN
5437# config.status only pays attention to the cache file if you give it
5438# the --recheck option to rerun configure.
dfac8a13 5439#
a8aea176
NN
5440# `ac_cv_env_foo' variables (set or unset) will be overridden when
5441# loading this file, other *unset* `ac_cv_foo' will be assigned the
5442# following values.
5443
5444_ACEOF
5445
dfac8a13
TT
5446# The following way of writing the cache mishandles newlines in values,
5447# but we know of no workaround that is simple, portable, and efficient.
5448# So, don't put newlines in cache variables' values.
5449# Ultrix sh set writes to stderr and can't be redirected directly,
5450# and sets the high bit in the cache file unless we assign to the vars.
a8aea176
NN
5451{
5452 (set) 2>&1 |
5453 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5454 *ac_space=\ *)
5455 # `set' does not quote correctly, so add quotes (double-quote
5456 # substitution turns \\\\ into \\, and sed turns \\ into \).
5457 sed -n \
5458 "s/'/'\\\\''/g;
5459 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5460 ;;
5461 *)
5462 # `set' quotes correctly as required by POSIX, so do not add quotes.
5463 sed -n \
5464 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5465 ;;
5466 esac;
5467} |
5468 sed '
5469 t clear
5470 : clear
5471 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5472 t end
5473 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5474 : end' >>confcache
5475if diff $cache_file confcache >/dev/null 2>&1; then :; else
dfac8a13 5476 if test -w $cache_file; then
a8aea176
NN
5477 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5478 cat confcache >$cache_file
dfac8a13
TT
5479 else
5480 echo "not updating unwritable cache $cache_file"
5481 fi
5482fi
5483rm -f confcache
5484
dfac8a13
TT
5485test "x$prefix" = xNONE && prefix=$ac_default_prefix
5486# Let make expand exec_prefix.
5487test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5488
a8aea176
NN
5489# VPATH may cause trouble with some makes, so we remove $(srcdir),
5490# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5491# trailing colons and then remove the whole line if VPATH becomes empty
5492# (actually we leave an empty line to preserve line numbers).
dfac8a13 5493if test "x$srcdir" = x.; then
a8aea176
NN
5494 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5495s/:*\$(srcdir):*/:/;
5496s/:*\${srcdir}:*/:/;
5497s/:*@srcdir@:*/:/;
5498s/^\([^=]*=[ ]*\):*/\1/;
5499s/:*$//;
5500s/^[^=]*=[ ]*$//;
5501}'
c45f211e
TT
5502fi
5503
dfac8a13
TT
5504# Transform confdefs.h into DEFS.
5505# Protect against shell expansion while executing Makefile rules.
5506# Protect against Makefile macro expansion.
a8aea176
NN
5507#
5508# If the first sed substitution is executed (which looks for macros that
5509# take arguments), then we branch to the quote section. Otherwise,
5510# look for a macro that doesn't take arguments.
5511cat >confdef2opt.sed <<\_ACEOF
5512t clear
5513: clear
5514s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
5515t quote
5516s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
5517t quote
5518d
5519: quote
5520s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
5521s,\[,\\&,g
5522s,\],\\&,g
5523s,\$,$$,g
5524p
5525_ACEOF
5526# We use echo to avoid assuming a particular line-breaking character.
5527# The extra dot is to prevent the shell from consuming trailing
5528# line-breaks from the sub-command output. A line-break within
5529# single-quotes doesn't work because, if this script is created in a
5530# platform that uses two characters for line-breaks (e.g., DOS), tr
5531# would break.
5532ac_LF_and_DOT=`echo; echo .`
5533DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
5534rm -f confdef2opt.sed
5535
5536
5537ac_libobjs=
5538ac_ltlibobjs=
5539for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5540 # 1. Remove the extension, and $U if already installed.
5541 ac_i=`echo "$ac_i" |
5542 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5543 # 2. Add them.
5544 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5545 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5546done
5547LIBOBJS=$ac_libobjs
dfac8a13 5548
a8aea176 5549LTLIBOBJS=$ac_ltlibobjs
dfac8a13 5550
dfac8a13 5551
9fabf579
KC
5552if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5553 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
5554Usually this means the macro was only invoked conditionally." >&5
5555echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
5556Usually this means the macro was only invoked conditionally." >&2;}
5557 { (exit 1); exit 1; }; }
5558fi
5559if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5560 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5561Usually this means the macro was only invoked conditionally." >&5
5562echo "$as_me: error: conditional \"AMDEP\" was never defined.
5563Usually this means the macro was only invoked conditionally." >&2;}
5564 { (exit 1); exit 1; }; }
5565fi
5566if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5567 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
5568Usually this means the macro was only invoked conditionally." >&5
5569echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
5570Usually this means the macro was only invoked conditionally." >&2;}
5571 { (exit 1); exit 1; }; }
5572fi
5573if test -z "${TARGET_LIBRARY_TRUE}" && test -z "${TARGET_LIBRARY_FALSE}"; then
5574 { { echo "$as_me:$LINENO: error: conditional \"TARGET_LIBRARY\" was never defined.
5575Usually this means the macro was only invoked conditionally." >&5
5576echo "$as_me: error: conditional \"TARGET_LIBRARY\" was never defined.
5577Usually this means the macro was only invoked conditionally." >&2;}
5578 { (exit 1); exit 1; }; }
5579fi
a8aea176
NN
5580
5581: ${CONFIG_STATUS=./config.status}
5582ac_clean_files_save=$ac_clean_files
5583ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5584{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5585echo "$as_me: creating $CONFIG_STATUS" >&6;}
5586cat >$CONFIG_STATUS <<_ACEOF
5587#! $SHELL
5588# Generated by $as_me.
dfac8a13 5589# Run this file to recreate the current configuration.
dfac8a13 5590# Compiler output produced by configure, useful for debugging
a8aea176
NN
5591# configure, is in config.log if it exists.
5592
5593debug=false
5594ac_cs_recheck=false
5595ac_cs_silent=false
5596SHELL=\${CONFIG_SHELL-$SHELL}
5597_ACEOF
5598
5599cat >>$CONFIG_STATUS <<\_ACEOF
5600## --------------------- ##
5601## M4sh Initialization. ##
5602## --------------------- ##
5603
5604# Be Bourne compatible
5605if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5606 emulate sh
5607 NULLCMD=:
5608 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5609 # is contrary to our usage. Disable this feature.
5610 alias -g '${1+"$@"}'='"$@"'
5611elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5612 set -o posix
5613fi
5614DUALCASE=1; export DUALCASE # for MKS sh
5615
5616# Support unset when possible.
5617if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5618 as_unset=unset
5619else
5620 as_unset=false
5621fi
dfac8a13 5622
a8aea176
NN
5623
5624# Work around bugs in pre-3.0 UWIN ksh.
5625$as_unset ENV MAIL MAILPATH
5626PS1='$ '
5627PS2='> '
5628PS4='+ '
5629
5630# NLS nuisances.
5631for as_var in \
5632 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5633 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5634 LC_TELEPHONE LC_TIME
dfac8a13 5635do
a8aea176
NN
5636 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5637 eval $as_var=C; export $as_var
5638 else
5639 $as_unset $as_var
5640 fi
dfac8a13
TT
5641done
5642
a8aea176
NN
5643# Required to use basename.
5644if expr a : '\(a\)' >/dev/null 2>&1; then
5645 as_expr=expr
5646else
5647 as_expr=false
5648fi
dfac8a13 5649
a8aea176
NN
5650if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5651 as_basename=basename
5652else
5653 as_basename=false
5654fi
5655
5656
5657# Name of the executable.
5658as_me=`$as_basename "$0" ||
5659$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5660 X"$0" : 'X\(//\)$' \| \
5661 X"$0" : 'X\(/\)$' \| \
5662 . : '\(.\)' 2>/dev/null ||
5663echo X/"$0" |
5664 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5665 /^X\/\(\/\/\)$/{ s//\1/; q; }
5666 /^X\/\(\/\).*/{ s//\1/; q; }
5667 s/.*/./; q'`
5668
5669
5670# PATH needs CR, and LINENO needs CR and PATH.
5671# Avoid depending upon Character Ranges.
5672as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5673as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5674as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5675as_cr_digits='0123456789'
5676as_cr_alnum=$as_cr_Letters$as_cr_digits
5677
5678# The user is always right.
5679if test "${PATH_SEPARATOR+set}" != set; then
5680 echo "#! /bin/sh" >conf$$.sh
5681 echo "exit 0" >>conf$$.sh
5682 chmod +x conf$$.sh
5683 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5684 PATH_SEPARATOR=';'
5685 else
5686 PATH_SEPARATOR=:
5687 fi
5688 rm -f conf$$.sh
5689fi
dfac8a13 5690
dfac8a13 5691
a8aea176
NN
5692 as_lineno_1=$LINENO
5693 as_lineno_2=$LINENO
5694 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5695 test "x$as_lineno_1" != "x$as_lineno_2" &&
5696 test "x$as_lineno_3" = "x$as_lineno_2" || {
5697 # Find who we are. Look in the path if we contain no path at all
5698 # relative or not.
5699 case $0 in
5700 *[\\/]* ) as_myself=$0 ;;
5701 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702for as_dir in $PATH
5703do
5704 IFS=$as_save_IFS
5705 test -z "$as_dir" && as_dir=.
5706 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5707done
dfac8a13 5708
a8aea176
NN
5709 ;;
5710 esac
5711 # We did not find ourselves, most probably we were run as `sh COMMAND'
5712 # in which case we are not to be found in the path.
5713 if test "x$as_myself" = x; then
5714 as_myself=$0
dfac8a13 5715 fi
a8aea176
NN
5716 if test ! -f "$as_myself"; then
5717 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5718echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5719 { (exit 1); exit 1; }; }
dfac8a13 5720 fi
a8aea176
NN
5721 case $CONFIG_SHELL in
5722 '')
5723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5724for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5725do
5726 IFS=$as_save_IFS
5727 test -z "$as_dir" && as_dir=.
5728 for as_base in sh bash ksh sh5; do
5729 case $as_dir in
5730 /*)
5731 if ("$as_dir/$as_base" -c '
5732 as_lineno_1=$LINENO
5733 as_lineno_2=$LINENO
5734 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5735 test "x$as_lineno_1" != "x$as_lineno_2" &&
5736 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5737 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5738 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5739 CONFIG_SHELL=$as_dir/$as_base
5740 export CONFIG_SHELL
5741 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5742 fi;;
5743 esac
5744 done
dfac8a13 5745done
a8aea176
NN
5746;;
5747 esac
dfac8a13 5748
a8aea176
NN
5749 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5750 # uniformly replaced by the line number. The first 'sed' inserts a
5751 # line-number line before each line; the second 'sed' does the real
5752 # work. The second script uses 'N' to pair each line-number line
5753 # with the numbered line, and appends trailing '-' during
5754 # substitution so that $LINENO is not a special case at line end.
5755 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5756 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5757 sed '=' <$as_myself |
5758 sed '
5759 N
5760 s,$,-,
5761 : loop
5762 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5763 t loop
5764 s,-$,,
5765 s,^['$as_cr_digits']*\n,,
5766 ' >$as_me.lineno &&
5767 chmod +x $as_me.lineno ||
5768 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5769echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5770 { (exit 1); exit 1; }; }
5771
5772 # Don't try to exec as it changes $[0], causing all sort of problems
5773 # (the dirname of $[0] is not the place where we might find the
5774 # original and so on. Autoconf is especially sensible to this).
5775 . ./$as_me.lineno
5776 # Exit status is that of the last command.
5777 exit
5778}
dfac8a13 5779
dfac8a13 5780
a8aea176
NN
5781case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5782 *c*,-n*) ECHO_N= ECHO_C='
5783' ECHO_T=' ' ;;
5784 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5785 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5786esac
dfac8a13 5787
a8aea176
NN
5788if expr a : '\(a\)' >/dev/null 2>&1; then
5789 as_expr=expr
5790else
5791 as_expr=false
5792fi
5793
5794rm -f conf$$ conf$$.exe conf$$.file
5795echo >conf$$.file
5796if ln -s conf$$.file conf$$ 2>/dev/null; then
5797 # We could just check for DJGPP; but this test a) works b) is more generic
5798 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5799 if test -f conf$$.exe; then
5800 # Don't use ln at all; we don't have any links
5801 as_ln_s='cp -p'
dfac8a13 5802 else
a8aea176 5803 as_ln_s='ln -s'
dfac8a13 5804 fi
a8aea176
NN
5805elif ln conf$$.file conf$$ 2>/dev/null; then
5806 as_ln_s=ln
5807else
5808 as_ln_s='cp -p'
5809fi
5810rm -f conf$$ conf$$.exe conf$$.file
dfac8a13 5811
a8aea176
NN
5812if mkdir -p . 2>/dev/null; then
5813 as_mkdir_p=:
5814else
5815 test -d ./-p && rmdir ./-p
5816 as_mkdir_p=false
5817fi
5818
5819as_executable_p="test -f"
dfac8a13 5820
a8aea176
NN
5821# Sed expression to map a string onto a valid CPP name.
5822as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5823
5824# Sed expression to map a string onto a valid variable name.
5825as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5826
5827
5828# IFS
5829# We need space, tab and new line, in precisely that order.
5830as_nl='
5831'
5832IFS=" $as_nl"
5833
5834# CDPATH.
5835$as_unset CDPATH
5836
5837exec 6>&1
5838
5839# Open the log real soon, to keep \$[0] and so on meaningful, and to
5840# report actual input values of CONFIG_FILES etc. instead of their
5841# values after options handling. Logging --version etc. is OK.
5842exec 5>>config.log
5843{
5844 echo
5845 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5846## Running $as_me. ##
5847_ASBOX
5848} >&5
5849cat >&5 <<_CSEOF
5850
5851This file was extended by $as_me, which was
5852generated by GNU Autoconf 2.59. Invocation command line was
5853
5854 CONFIG_FILES = $CONFIG_FILES
5855 CONFIG_HEADERS = $CONFIG_HEADERS
5856 CONFIG_LINKS = $CONFIG_LINKS
5857 CONFIG_COMMANDS = $CONFIG_COMMANDS
5858 $ $0 $@
5859
5860_CSEOF
5861echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5862echo >&5
5863_ACEOF
5864
5865# Files that config.status was made for.
5866if test -n "$ac_config_files"; then
5867 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5868fi
5869
5870if test -n "$ac_config_headers"; then
5871 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5872fi
5873
5874if test -n "$ac_config_links"; then
5875 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5876fi
5877
5878if test -n "$ac_config_commands"; then
5879 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5880fi
5881
5882cat >>$CONFIG_STATUS <<\_ACEOF
5883
5884ac_cs_usage="\
5885\`$as_me' instantiates files from templates according to the
5886current configuration.
5887
5888Usage: $0 [OPTIONS] [FILE]...
5889
5890 -h, --help print this help, then exit
5891 -V, --version print version number, then exit
5892 -q, --quiet do not print progress messages
5893 -d, --debug don't remove temporary files
5894 --recheck update $as_me by reconfiguring in the same conditions
5895 --file=FILE[:TEMPLATE]
5896 instantiate the configuration file FILE
5897
5898Configuration files:
5899$config_files
5900
5901Configuration commands:
5902$config_commands
5903
5904Report bugs to <bug-autoconf@gnu.org>."
5905_ACEOF
5906
5907cat >>$CONFIG_STATUS <<_ACEOF
5908ac_cs_version="\\
5909config.status
5910configured by $0, generated by GNU Autoconf 2.59,
5911 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5912
5913Copyright (C) 2003 Free Software Foundation, Inc.
5914This config.status script is free software; the Free Software Foundation
5915gives unlimited permission to copy, distribute and modify it."
5916srcdir=$srcdir
5917INSTALL="$INSTALL"
5918_ACEOF
5919
5920cat >>$CONFIG_STATUS <<\_ACEOF
5921# If no file are specified by the user, then we need to provide default
5922# value. By we need to know if files were specified by the user.
5923ac_need_defaults=:
5924while test $# != 0
5925do
5926 case $1 in
5927 --*=*)
5928 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5929 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5930 ac_shift=:
5931 ;;
5932 -*)
5933 ac_option=$1
5934 ac_optarg=$2
5935 ac_shift=shift
5936 ;;
5937 *) # This is not an option, so the user has probably given explicit
5938 # arguments.
5939 ac_option=$1
5940 ac_need_defaults=false;;
dfac8a13
TT
5941 esac
5942
a8aea176
NN
5943 case $ac_option in
5944 # Handling of the options.
5945_ACEOF
5946cat >>$CONFIG_STATUS <<\_ACEOF
5947 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5948 ac_cs_recheck=: ;;
5949 --version | --vers* | -V )
5950 echo "$ac_cs_version"; exit 0 ;;
5951 --he | --h)
5952 # Conflict between --help and --header
5953 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5954Try \`$0 --help' for more information." >&5
5955echo "$as_me: error: ambiguous option: $1
5956Try \`$0 --help' for more information." >&2;}
5957 { (exit 1); exit 1; }; };;
5958 --help | --hel | -h )
5959 echo "$ac_cs_usage"; exit 0 ;;
5960 --debug | --d* | -d )
5961 debug=: ;;
5962 --file | --fil | --fi | --f )
5963 $ac_shift
5964 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5965 ac_need_defaults=false;;
5966 --header | --heade | --head | --hea )
5967 $ac_shift
5968 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5969 ac_need_defaults=false;;
5970 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5971 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5972 ac_cs_silent=: ;;
5973
5974 # This is an error.
5975 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5976Try \`$0 --help' for more information." >&5
5977echo "$as_me: error: unrecognized option: $1
5978Try \`$0 --help' for more information." >&2;}
5979 { (exit 1); exit 1; }; } ;;
5980
5981 *) ac_config_targets="$ac_config_targets $1" ;;
5982
dfac8a13 5983 esac
a8aea176
NN
5984 shift
5985done
dfac8a13 5986
a8aea176
NN
5987ac_configure_extra_args=
5988
5989if $ac_cs_silent; then
5990 exec 6>/dev/null
5991 ac_configure_extra_args="$ac_configure_extra_args --silent"
5992fi
5993
5994_ACEOF
5995cat >>$CONFIG_STATUS <<_ACEOF
5996if \$ac_cs_recheck; then
5997 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5998 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5999fi
6000
6001_ACEOF
6002
6003cat >>$CONFIG_STATUS <<_ACEOF
6004#
6005# INIT-COMMANDS section.
6006#
dfac8a13 6007
9fabf579 6008AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
dfac8a13
TT
6009srcdir=${srcdir}
6010host=${host}
6011target=${target}
6012with_multisubdir=${with_multisubdir}
6013ac_configure_args="${multilib_arg} ${ac_configure_args}"
6014CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
6015zlib_basedir=${zlib_basedir}
6016CC="${CC}"
6017CXX="${CXX}"
3343fdd2 6018ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}"
dfac8a13 6019
a8aea176
NN
6020
6021_ACEOF
6022
6023
6024
6025cat >>$CONFIG_STATUS <<\_ACEOF
6026for ac_config_target in $ac_config_targets
6027do
6028 case "$ac_config_target" in
6029 # Handling of arguments.
6030 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9fabf579 6031 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
a8aea176
NN
6032 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
6033 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6034echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6035 { (exit 1); exit 1; }; };;
6036 esac
6037done
6038
6039# If the user did not use the arguments to specify the items to instantiate,
6040# then the envvar interface is used. Set only those that are not.
6041# We use the long form for the default assignment because of an extremely
6042# bizarre bug on SunOS 4.1.3.
6043if $ac_need_defaults; then
6044 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6045 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6046fi
6047
6048# Have a temporary directory for convenience. Make it in the build tree
6049# simply because there is no reason to put it here, and in addition,
6050# creating and moving files from /tmp can sometimes cause problems.
6051# Create a temporary directory, and hook for its removal unless debugging.
6052$debug ||
6053{
6054 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6055 trap '{ (exit 1); exit 1; }' 1 2 13 15
6056}
6057
6058# Create a (secure) tmp directory for tmp files.
6059
6060{
6061 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
6062 test -n "$tmp" && test -d "$tmp"
6063} ||
6064{
6065 tmp=./confstat$$-$RANDOM
6066 (umask 077 && mkdir $tmp)
6067} ||
6068{
6069 echo "$me: cannot create a temporary directory in ." >&2
6070 { (exit 1); exit 1; }
6071}
6072
6073_ACEOF
6074
6075cat >>$CONFIG_STATUS <<_ACEOF
6076
6077#
6078# CONFIG_FILES section.
6079#
6080
6081# No need to generate the scripts if there are no CONFIG_FILES.
6082# This happens for instance when ./config.status config.h
6083if test -n "\$CONFIG_FILES"; then
6084 # Protect against being on the right side of a sed subst in config.status.
6085 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6086 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6087s,@SHELL@,$SHELL,;t t
6088s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6089s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6090s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6091s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6092s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6093s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6094s,@exec_prefix@,$exec_prefix,;t t
6095s,@prefix@,$prefix,;t t
6096s,@program_transform_name@,$program_transform_name,;t t
6097s,@bindir@,$bindir,;t t
6098s,@sbindir@,$sbindir,;t t
6099s,@libexecdir@,$libexecdir,;t t
6100s,@datadir@,$datadir,;t t
6101s,@sysconfdir@,$sysconfdir,;t t
6102s,@sharedstatedir@,$sharedstatedir,;t t
6103s,@localstatedir@,$localstatedir,;t t
6104s,@libdir@,$libdir,;t t
6105s,@includedir@,$includedir,;t t
6106s,@oldincludedir@,$oldincludedir,;t t
6107s,@infodir@,$infodir,;t t
6108s,@mandir@,$mandir,;t t
6109s,@build_alias@,$build_alias,;t t
6110s,@host_alias@,$host_alias,;t t
6111s,@target_alias@,$target_alias,;t t
6112s,@DEFS@,$DEFS,;t t
6113s,@ECHO_C@,$ECHO_C,;t t
6114s,@ECHO_N@,$ECHO_N,;t t
6115s,@ECHO_T@,$ECHO_T,;t t
6116s,@LIBS@,$LIBS,;t t
6117s,@zlib_basedir@,$zlib_basedir,;t t
6118s,@build@,$build,;t t
6119s,@build_cpu@,$build_cpu,;t t
6120s,@build_vendor@,$build_vendor,;t t
6121s,@build_os@,$build_os,;t t
6122s,@host@,$host,;t t
6123s,@host_cpu@,$host_cpu,;t t
6124s,@host_vendor@,$host_vendor,;t t
6125s,@host_os@,$host_os,;t t
6126s,@target@,$target,;t t
6127s,@target_cpu@,$target_cpu,;t t
6128s,@target_vendor@,$target_vendor,;t t
6129s,@target_os@,$target_os,;t t
6130s,@mkinstalldirs@,$mkinstalldirs,;t t
6131s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6132s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6133s,@INSTALL_DATA@,$INSTALL_DATA,;t t
9fabf579 6134s,@CYGPATH_W@,$CYGPATH_W,;t t
a8aea176
NN
6135s,@PACKAGE@,$PACKAGE,;t t
6136s,@VERSION@,$VERSION,;t t
6137s,@ACLOCAL@,$ACLOCAL,;t t
6138s,@AUTOCONF@,$AUTOCONF,;t t
6139s,@AUTOMAKE@,$AUTOMAKE,;t t
6140s,@AUTOHEADER@,$AUTOHEADER,;t t
6141s,@MAKEINFO@,$MAKEINFO,;t t
9fabf579
KC
6142s,@AMTAR@,$AMTAR,;t t
6143s,@install_sh@,$install_sh,;t t
6144s,@STRIP@,$STRIP,;t t
6145s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
6146s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
6147s,@AWK@,$AWK,;t t
a8aea176 6148s,@SET_MAKE@,$SET_MAKE,;t t
9fabf579 6149s,@am__leading_dot@,$am__leading_dot,;t t
a8aea176
NN
6150s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
6151s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
6152s,@MAINT@,$MAINT,;t t
6153s,@COMPPATH@,$COMPPATH,;t t
6154s,@CC@,$CC,;t t
6155s,@CFLAGS@,$CFLAGS,;t t
6156s,@LDFLAGS@,$LDFLAGS,;t t
6157s,@CPPFLAGS@,$CPPFLAGS,;t t
6158s,@ac_ct_CC@,$ac_ct_CC,;t t
6159s,@EXEEXT@,$EXEEXT,;t t
6160s,@OBJEXT@,$OBJEXT,;t t
9fabf579
KC
6161s,@DEPDIR@,$DEPDIR,;t t
6162s,@am__include@,$am__include,;t t
6163s,@am__quote@,$am__quote,;t t
6164s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
6165s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
6166s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
6167s,@CCDEPMODE@,$CCDEPMODE,;t t
6168s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
6169s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
a8aea176
NN
6170s,@LN_S@,$LN_S,;t t
6171s,@RANLIB@,$RANLIB,;t t
6172s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
a8aea176
NN
6173s,@LIBTOOL@,$LIBTOOL,;t t
6174s,@CPP@,$CPP,;t t
6175s,@EGREP@,$EGREP,;t t
6176s,@target_all@,$target_all,;t t
6177s,@toolexecdir@,$toolexecdir,;t t
6178s,@toolexeclibdir@,$toolexeclibdir,;t t
6179s,@TARGET_LIBRARY_TRUE@,$TARGET_LIBRARY_TRUE,;t t
6180s,@TARGET_LIBRARY_FALSE@,$TARGET_LIBRARY_FALSE,;t t
6181s,@LIBOBJS@,$LIBOBJS,;t t
6182s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6183CEOF
6184
6185_ACEOF
6186
6187 cat >>$CONFIG_STATUS <<\_ACEOF
6188 # Split the substitutions into bite-sized pieces for seds with
6189 # small command number limits, like on Digital OSF/1 and HP-UX.
6190 ac_max_sed_lines=48
6191 ac_sed_frag=1 # Number of current file.
6192 ac_beg=1 # First line for current file.
6193 ac_end=$ac_max_sed_lines # Line after last line for current file.
6194 ac_more_lines=:
6195 ac_sed_cmds=
6196 while $ac_more_lines; do
6197 if test $ac_beg -gt 1; then
6198 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6199 else
6200 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6201 fi
6202 if test ! -s $tmp/subs.frag; then
6203 ac_more_lines=false
6204 else
6205 # The purpose of the label and of the branching condition is to
6206 # speed up the sed processing (if there are no `@' at all, there
6207 # is no need to browse any of the substitutions).
6208 # These are the two extra sed commands mentioned above.
6209 (echo ':t
6210 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6211 if test -z "$ac_sed_cmds"; then
6212 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6213 else
6214 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6215 fi
6216 ac_sed_frag=`expr $ac_sed_frag + 1`
6217 ac_beg=$ac_end
6218 ac_end=`expr $ac_end + $ac_max_sed_lines`
6219 fi
6220 done
6221 if test -z "$ac_sed_cmds"; then
6222 ac_sed_cmds=cat
6223 fi
6224fi # test -n "$CONFIG_FILES"
6225
6226_ACEOF
6227cat >>$CONFIG_STATUS <<\_ACEOF
6228for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6229 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6230 case $ac_file in
6231 - | *:- | *:-:* ) # input from stdin
6232 cat >$tmp/stdin
6233 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6234 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6235 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6236 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6237 * ) ac_file_in=$ac_file.in ;;
6238 esac
6239
6240 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6241 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6242$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6243 X"$ac_file" : 'X\(//\)[^/]' \| \
6244 X"$ac_file" : 'X\(//\)$' \| \
6245 X"$ac_file" : 'X\(/\)' \| \
6246 . : '\(.\)' 2>/dev/null ||
6247echo X"$ac_file" |
6248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6249 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6250 /^X\(\/\/\)$/{ s//\1/; q; }
6251 /^X\(\/\).*/{ s//\1/; q; }
6252 s/.*/./; q'`
6253 { if $as_mkdir_p; then
6254 mkdir -p "$ac_dir"
6255 else
6256 as_dir="$ac_dir"
6257 as_dirs=
6258 while test ! -d "$as_dir"; do
6259 as_dirs="$as_dir $as_dirs"
6260 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6261$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6262 X"$as_dir" : 'X\(//\)[^/]' \| \
6263 X"$as_dir" : 'X\(//\)$' \| \
6264 X"$as_dir" : 'X\(/\)' \| \
6265 . : '\(.\)' 2>/dev/null ||
6266echo X"$as_dir" |
6267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6268 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6269 /^X\(\/\/\)$/{ s//\1/; q; }
6270 /^X\(\/\).*/{ s//\1/; q; }
6271 s/.*/./; q'`
6272 done
6273 test ! -n "$as_dirs" || mkdir $as_dirs
6274 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6275echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6276 { (exit 1); exit 1; }; }; }
6277
6278 ac_builddir=.
6279
6280if test "$ac_dir" != .; then
6281 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6282 # A "../" for each directory in $ac_dir_suffix.
6283 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6284else
6285 ac_dir_suffix= ac_top_builddir=
6286fi
6287
6288case $srcdir in
6289 .) # No --srcdir option. We are building in place.
6290 ac_srcdir=.
6291 if test -z "$ac_top_builddir"; then
6292 ac_top_srcdir=.
6293 else
6294 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6295 fi ;;
6296 [\\/]* | ?:[\\/]* ) # Absolute path.
6297 ac_srcdir=$srcdir$ac_dir_suffix;
6298 ac_top_srcdir=$srcdir ;;
6299 *) # Relative path.
6300 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6301 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6302esac
6303
6304# Do not use `cd foo && pwd` to compute absolute paths, because
6305# the directories may not exist.
6306case `pwd` in
6307.) ac_abs_builddir="$ac_dir";;
6308*)
6309 case "$ac_dir" in
6310 .) ac_abs_builddir=`pwd`;;
6311 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6312 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6313 esac;;
6314esac
6315case $ac_abs_builddir in
6316.) ac_abs_top_builddir=${ac_top_builddir}.;;
6317*)
6318 case ${ac_top_builddir}. in
6319 .) ac_abs_top_builddir=$ac_abs_builddir;;
6320 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6321 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6322 esac;;
6323esac
6324case $ac_abs_builddir in
6325.) ac_abs_srcdir=$ac_srcdir;;
6326*)
6327 case $ac_srcdir in
6328 .) ac_abs_srcdir=$ac_abs_builddir;;
6329 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6330 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6331 esac;;
6332esac
6333case $ac_abs_builddir in
6334.) ac_abs_top_srcdir=$ac_top_srcdir;;
6335*)
6336 case $ac_top_srcdir in
6337 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6338 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6339 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6340 esac;;
6341esac
6342
6343
6344 case $INSTALL in
6345 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6346 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6347 esac
6348
9fabf579
KC
6349 if test x"$ac_file" != x-; then
6350 { echo "$as_me:$LINENO: creating $ac_file" >&5
6351echo "$as_me: creating $ac_file" >&6;}
6352 rm -f "$ac_file"
6353 fi
a8aea176
NN
6354 # Let's still pretend it is `configure' which instantiates (i.e., don't
6355 # use $as_me), people would be surprised to read:
6356 # /* config.h. Generated by config.status. */
6357 if test x"$ac_file" = x-; then
6358 configure_input=
6359 else
6360 configure_input="$ac_file. "
6361 fi
6362 configure_input=$configure_input"Generated from `echo $ac_file_in |
6363 sed 's,.*/,,'` by configure."
6364
6365 # First look for the input files in the build tree, otherwise in the
6366 # src tree.
6367 ac_file_inputs=`IFS=:
6368 for f in $ac_file_in; do
6369 case $f in
6370 -) echo $tmp/stdin ;;
6371 [\\/$]*)
6372 # Absolute (can't be DOS-style, as IFS=:)
6373 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6374echo "$as_me: error: cannot find input file: $f" >&2;}
6375 { (exit 1); exit 1; }; }
6376 echo "$f";;
6377 *) # Relative
6378 if test -f "$f"; then
6379 # Build tree
6380 echo "$f"
6381 elif test -f "$srcdir/$f"; then
6382 # Source tree
6383 echo "$srcdir/$f"
6384 else
6385 # /dev/null tree
6386 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6387echo "$as_me: error: cannot find input file: $f" >&2;}
6388 { (exit 1); exit 1; }; }
6389 fi;;
6390 esac
6391 done` || { (exit 1); exit 1; }
a8aea176
NN
6392_ACEOF
6393cat >>$CONFIG_STATUS <<_ACEOF
6394 sed "$ac_vpsub
6395$extrasub
6396_ACEOF
6397cat >>$CONFIG_STATUS <<\_ACEOF
6398:t
6399/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6400s,@configure_input@,$configure_input,;t t
6401s,@srcdir@,$ac_srcdir,;t t
6402s,@abs_srcdir@,$ac_abs_srcdir,;t t
6403s,@top_srcdir@,$ac_top_srcdir,;t t
6404s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6405s,@builddir@,$ac_builddir,;t t
6406s,@abs_builddir@,$ac_abs_builddir,;t t
6407s,@top_builddir@,$ac_top_builddir,;t t
6408s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6409s,@INSTALL@,$ac_INSTALL,;t t
6410" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6411 rm -f $tmp/stdin
6412 if test x"$ac_file" != x-; then
6413 mv $tmp/out $ac_file
6414 else
6415 cat $tmp/out
6416 rm -f $tmp/out
6417 fi
6418
6419done
6420_ACEOF
6421cat >>$CONFIG_STATUS <<\_ACEOF
6422
6423#
6424# CONFIG_COMMANDS section.
6425#
6426for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6427 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6428 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6429 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6430$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6431 X"$ac_dest" : 'X\(//\)[^/]' \| \
6432 X"$ac_dest" : 'X\(//\)$' \| \
6433 X"$ac_dest" : 'X\(/\)' \| \
6434 . : '\(.\)' 2>/dev/null ||
6435echo X"$ac_dest" |
6436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6437 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6438 /^X\(\/\/\)$/{ s//\1/; q; }
6439 /^X\(\/\).*/{ s//\1/; q; }
6440 s/.*/./; q'`
6441 { if $as_mkdir_p; then
6442 mkdir -p "$ac_dir"
6443 else
6444 as_dir="$ac_dir"
6445 as_dirs=
6446 while test ! -d "$as_dir"; do
6447 as_dirs="$as_dir $as_dirs"
6448 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6449$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6450 X"$as_dir" : 'X\(//\)[^/]' \| \
6451 X"$as_dir" : 'X\(//\)$' \| \
6452 X"$as_dir" : 'X\(/\)' \| \
6453 . : '\(.\)' 2>/dev/null ||
6454echo X"$as_dir" |
6455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6456 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6457 /^X\(\/\/\)$/{ s//\1/; q; }
6458 /^X\(\/\).*/{ s//\1/; q; }
6459 s/.*/./; q'`
6460 done
6461 test ! -n "$as_dirs" || mkdir $as_dirs
6462 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6463echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6464 { (exit 1); exit 1; }; }; }
6465
6466 ac_builddir=.
6467
6468if test "$ac_dir" != .; then
6469 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6470 # A "../" for each directory in $ac_dir_suffix.
6471 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6472else
6473 ac_dir_suffix= ac_top_builddir=
6474fi
6475
6476case $srcdir in
6477 .) # No --srcdir option. We are building in place.
6478 ac_srcdir=.
6479 if test -z "$ac_top_builddir"; then
6480 ac_top_srcdir=.
6481 else
6482 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6483 fi ;;
6484 [\\/]* | ?:[\\/]* ) # Absolute path.
6485 ac_srcdir=$srcdir$ac_dir_suffix;
6486 ac_top_srcdir=$srcdir ;;
6487 *) # Relative path.
6488 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6489 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6490esac
6491
6492# Do not use `cd foo && pwd` to compute absolute paths, because
6493# the directories may not exist.
6494case `pwd` in
6495.) ac_abs_builddir="$ac_dir";;
6496*)
6497 case "$ac_dir" in
6498 .) ac_abs_builddir=`pwd`;;
6499 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6500 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6501 esac;;
6502esac
6503case $ac_abs_builddir in
6504.) ac_abs_top_builddir=${ac_top_builddir}.;;
6505*)
6506 case ${ac_top_builddir}. in
6507 .) ac_abs_top_builddir=$ac_abs_builddir;;
6508 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6509 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6510 esac;;
6511esac
6512case $ac_abs_builddir in
6513.) ac_abs_srcdir=$ac_srcdir;;
6514*)
6515 case $ac_srcdir in
6516 .) ac_abs_srcdir=$ac_abs_builddir;;
6517 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6518 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6519 esac;;
6520esac
6521case $ac_abs_builddir in
6522.) ac_abs_top_srcdir=$ac_top_srcdir;;
6523*)
6524 case $ac_top_srcdir in
6525 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6526 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6527 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6528 esac;;
6529esac
6530
6531
6532 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6533echo "$as_me: executing $ac_dest commands" >&6;}
6534 case $ac_dest in
9fabf579
KC
6535 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
6536 # Strip MF so we end up with the name of the file.
6537 mf=`echo "$mf" | sed -e 's/:.*$//'`
6538 # Check whether this is an Automake generated Makefile or not.
6539 # We used to match only the files named `Makefile.in', but
6540 # some people rename them; so instead we look at the file content.
6541 # Grep'ing the first line is not enough: some people post-process
6542 # each Makefile.in and add a new line on top of each file to say so.
6543 # So let's grep whole file.
6544 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6545 dirpart=`(dirname "$mf") 2>/dev/null ||
6546$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6547 X"$mf" : 'X\(//\)[^/]' \| \
6548 X"$mf" : 'X\(//\)$' \| \
6549 X"$mf" : 'X\(/\)' \| \
6550 . : '\(.\)' 2>/dev/null ||
6551echo X"$mf" |
6552 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6553 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6554 /^X\(\/\/\)$/{ s//\1/; q; }
6555 /^X\(\/\).*/{ s//\1/; q; }
6556 s/.*/./; q'`
6557 else
6558 continue
6559 fi
6560 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
6561 # Extract the definition of DEP_FILES from the Makefile without
6562 # running `make'.
6563 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
6564 test -z "$DEPDIR" && continue
6565 # When using ansi2knr, U may be empty or an underscore; expand it
6566 U=`sed -n -e '/^U = / s///p' < "$mf"`
6567 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
6568 # We invoke sed twice because it is the simplest approach to
6569 # changing $(DEPDIR) to its actual value in the expansion.
6570 for file in `sed -n -e '
6571 /^DEP_FILES = .*\\\\$/ {
6572 s/^DEP_FILES = //
6573 :loop
6574 s/\\\\$//
6575 p
6576 n
6577 /\\\\$/ b loop
6578 p
6579 }
6580 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
6581 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6582 # Make sure the directory exists.
6583 test -f "$dirpart/$file" && continue
6584 fdir=`(dirname "$file") 2>/dev/null ||
6585$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6586 X"$file" : 'X\(//\)[^/]' \| \
6587 X"$file" : 'X\(//\)$' \| \
6588 X"$file" : 'X\(/\)' \| \
6589 . : '\(.\)' 2>/dev/null ||
6590echo X"$file" |
6591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6592 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6593 /^X\(\/\/\)$/{ s//\1/; q; }
6594 /^X\(\/\).*/{ s//\1/; q; }
6595 s/.*/./; q'`
6596 { if $as_mkdir_p; then
6597 mkdir -p $dirpart/$fdir
6598 else
6599 as_dir=$dirpart/$fdir
6600 as_dirs=
6601 while test ! -d "$as_dir"; do
6602 as_dirs="$as_dir $as_dirs"
6603 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6604$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6605 X"$as_dir" : 'X\(//\)[^/]' \| \
6606 X"$as_dir" : 'X\(//\)$' \| \
6607 X"$as_dir" : 'X\(/\)' \| \
6608 . : '\(.\)' 2>/dev/null ||
6609echo X"$as_dir" |
6610 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6611 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6612 /^X\(\/\/\)$/{ s//\1/; q; }
6613 /^X\(\/\).*/{ s//\1/; q; }
6614 s/.*/./; q'`
6615 done
6616 test ! -n "$as_dirs" || mkdir $as_dirs
6617 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
6618echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
6619 { (exit 1); exit 1; }; }; }
6620
6621 # echo "creating $dirpart/$file"
6622 echo '# dummy' > "$dirpart/$file"
6623 done
6624done
6625 ;;
a8aea176 6626 default ) if test -n "$CONFIG_FILES"; then
6706f116 6627 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
dfac8a13 6628 ac_file=Makefile . ${zlib_basedir}/../config-ml.in
a8aea176
NN
6629fi ;;
6630 esac
6631done
6632_ACEOF
6633
6634cat >>$CONFIG_STATUS <<\_ACEOF
6635
6636{ (exit 0); exit 0; }
6637_ACEOF
dfac8a13 6638chmod +x $CONFIG_STATUS
a8aea176
NN
6639ac_clean_files=$ac_clean_files_save
6640
6641
6642# configure is writing to config.log, and then calls config.status.
6643# config.status does its own redirection, appending to config.log.
6644# Unfortunately, on DOS this fails, as config.log is still kept open
6645# by configure, so config.status won't be able to write to it; its
6646# output is simply discarded. So we exec the FD to /dev/null,
6647# effectively closing config.log, so it can be properly (re)opened and
6648# appended to by config.status. When coming back to configure, we
6649# need to make the FD available again.
6650if test "$no_create" != yes; then
6651 ac_cs_success=:
6652 ac_config_status_args=
6653 test "$silent" = yes &&
6654 ac_config_status_args="$ac_config_status_args --quiet"
6655 exec 5>/dev/null
6656 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6657 exec 5>>config.log
6658 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6659 # would make configure fail if this is the last instruction.
6660 $ac_cs_success || { (exit 1); exit 1; }
6661fi
c45f211e 6662