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