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

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

Regenerated with new autoconf (forced to use stable).

  • Property cvs2svn:cvs-rev set to 1.3
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 160.5 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
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}
185
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#
254ac_default_prefix=/usr/local
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
312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS zlib_basedir build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os mkinstalldirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC LN_S RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP LIBTOOL COMPPATH CPP CPPFLAGS EGREP target_all toolexecdir toolexeclibdir TARGET_LIBRARY_TRUE TARGET_LIBRARY_FALSE LIBOBJS LTLIBOBJS'
313ac_subst_files=''
314
315# Initialize some variables set by options.
316ac_init_help=
317ac_init_version=false
318# The variables have the same names as the options, with
319# dashes changed to underlines.
320cache_file=/dev/null
321exec_prefix=NONE
322no_create=
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
331verbose=
332x_includes=NONE
333x_libraries=NONE
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.
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
353ac_prev=
354for ac_option
355do
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
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365 # Accept the important Cygnus configure options, so we can diagnose typos.
366
367 case $ac_option in
368
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
373
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
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=*)
384 cache_file=$ac_optarg ;;
385
386 --config-cache | -C)
387 cache_file=config.cache ;;
388
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
394
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
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" ;;
403
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
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"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
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=*)
424 exec_prefix=$ac_optarg ;;
425
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
429
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 ;;
436
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
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=*)
447 includedir=$ac_optarg ;;
448
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
453
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
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=*)
464 libexecdir=$ac_optarg ;;
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=*)
473 localstatedir=$ac_optarg ;;
474
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
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 \
485 | --no-cr | --no-c | -n)
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=*)
499 oldincludedir=$ac_optarg ;;
500
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
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=*)
511 program_prefix=$ac_optarg ;;
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=*)
518 program_suffix=$ac_optarg ;;
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=*)
535 program_transform_name=$ac_optarg ;;
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=*)
545 sbindir=$ac_optarg ;;
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=*)
556 sharedstatedir=$ac_optarg ;;
557
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
562
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
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=*)
573 sysconfdir=$ac_optarg ;;
574
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
579
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
582
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
585
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
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; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
598
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
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" ;;
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=*)
617 x_includes=$ac_optarg ;;
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=*)
624 x_libraries=$ac_optarg ;;
625
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
629 ;;
630
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
641 *)
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}
647 ;;
648
649 esac
650done
651
652if test -n "$ac_prev"; then
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; }; }
656fi
657
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
668
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672do
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; }; };;
678 esac
679done
680
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
698
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
703
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.
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'`
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
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
735 fi
736fi
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CPP_set=${CPP+set}
754ac_env_CPP_value=$CPP
755ac_cv_env_CPP_set=${CPP+set}
756ac_cv_env_CPP_value=$CPP
757ac_env_CPPFLAGS_set=${CPPFLAGS+set}
758ac_env_CPPFLAGS_value=$CPPFLAGS
759ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
760ac_cv_env_CPPFLAGS_value=$CPPFLAGS
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]
841 --enable-maintainer-mode enable make rules and dependencies not useful
842 (and sometimes confusing) to the casual installer
843 --enable-multilib build many library versions (default)
844 --enable-shared=PKGS build shared libraries default=yes
845 --enable-static=PKGS build static libraries default=yes
846 --enable-fast-install=PKGS optimize for fast installation default=yes
847 --disable-libtool-lock avoid locking (might break parallel builds)
848
849Optional Packages:
850 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
851 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
852 --with-target-subdir=SUBDIR
853 configuring in a subdirectory
854 --with-cross-host=HOST configuring with a cross compiler
855 --with-system-zlib use installed libz
856 --with-gnu-ld assume the C compiler uses GNU ld default=no
857 --with-pic try to use only PIC/non-PIC objects default=use both
858
859Some influential environment variables:
860 CPP C preprocessor
861 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
862 headers in a nonstandard directory <include dir>
863
864Use these variables to override the choices made by `configure' or to help
865it to find libraries and programs with nonstandard names/locations.
866
867_ACEOF
868fi
869
870if test "$ac_init_help" = "recursive"; then
871 # If there are subdirs, report their specific --help.
872 ac_popdir=`pwd`
873 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
874 test -d $ac_dir || continue
875 ac_builddir=.
876
877if test "$ac_dir" != .; then
878 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
879 # A "../" for each directory in $ac_dir_suffix.
880 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
881else
882 ac_dir_suffix= ac_top_builddir=
883fi
884
885case $srcdir in
886 .) # No --srcdir option. We are building in place.
887 ac_srcdir=.
888 if test -z "$ac_top_builddir"; then
889 ac_top_srcdir=.
890 else
891 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
892 fi ;;
893 [\\/]* | ?:[\\/]* ) # Absolute path.
894 ac_srcdir=$srcdir$ac_dir_suffix;
895 ac_top_srcdir=$srcdir ;;
896 *) # Relative path.
897 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
898 ac_top_srcdir=$ac_top_builddir$srcdir ;;
899esac
900
901# Do not use `cd foo && pwd` to compute absolute paths, because
902# the directories may not exist.
903case `pwd` in
904.) ac_abs_builddir="$ac_dir";;
905*)
906 case "$ac_dir" in
907 .) ac_abs_builddir=`pwd`;;
908 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
909 *) ac_abs_builddir=`pwd`/"$ac_dir";;
910 esac;;
911esac
912case $ac_abs_builddir in
913.) ac_abs_top_builddir=${ac_top_builddir}.;;
914*)
915 case ${ac_top_builddir}. in
916 .) ac_abs_top_builddir=$ac_abs_builddir;;
917 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
918 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
919 esac;;
920esac
921case $ac_abs_builddir in
922.) ac_abs_srcdir=$ac_srcdir;;
923*)
924 case $ac_srcdir in
925 .) ac_abs_srcdir=$ac_abs_builddir;;
926 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
927 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
928 esac;;
929esac
930case $ac_abs_builddir in
931.) ac_abs_top_srcdir=$ac_top_srcdir;;
932*)
933 case $ac_top_srcdir in
934 .) ac_abs_top_srcdir=$ac_abs_builddir;;
935 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
936 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
937 esac;;
938esac
939
940 cd $ac_dir
941 # Check for guested configure; otherwise get Cygnus style configure.
942 if test -f $ac_srcdir/configure.gnu; then
943 echo
944 $SHELL $ac_srcdir/configure.gnu --help=recursive
945 elif test -f $ac_srcdir/configure; then
946 echo
947 $SHELL $ac_srcdir/configure --help=recursive
948 elif test -f $ac_srcdir/configure.ac ||
949 test -f $ac_srcdir/configure.in; then
950 echo
951 $ac_configure --help
952 else
953 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
954 fi
955 cd $ac_popdir
956 done
957fi
958
959test -n "$ac_init_help" && exit 0
960if $ac_init_version; then
961 cat <<\_ACEOF
962
963Copyright (C) 2003 Free Software Foundation, Inc.
964This configure script is free software; the Free Software Foundation
965gives unlimited permission to copy, distribute and modify it.
966_ACEOF
967 exit 0
968fi
969exec 5>config.log
970cat >&5 <<_ACEOF
971This file contains any messages produced by compilers while
972running configure, to aid debugging if configure makes a mistake.
973
974It was created by $as_me, which was
975generated by GNU Autoconf 2.59. Invocation command line was
976
977 $ $0 $@
978
979_ACEOF
980{
981cat <<_ASUNAME
982## --------- ##
983## Platform. ##
984## --------- ##
985
986hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
987uname -m = `(uname -m) 2>/dev/null || echo unknown`
988uname -r = `(uname -r) 2>/dev/null || echo unknown`
989uname -s = `(uname -s) 2>/dev/null || echo unknown`
990uname -v = `(uname -v) 2>/dev/null || echo unknown`
991
992/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
993/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
994
995/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
996/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
997/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
998hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
999/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1000/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1001/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1002
1003_ASUNAME
1004
1005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1006for as_dir in $PATH
1007do
1008 IFS=$as_save_IFS
1009 test -z "$as_dir" && as_dir=.
1010 echo "PATH: $as_dir"
1011done
1012
1013} >&5
1014
1015cat >&5 <<_ACEOF
1016
1017
1018## ----------- ##
1019## Core tests. ##
1020## ----------- ##
1021
1022_ACEOF
1023
1024
1025# Keep a trace of the command line.
1026# Strip out --no-create and --no-recursion so they do not pile up.
1027# Strip out --silent because we don't want to record it for future runs.
1028# Also quote any args containing shell meta-characters.
1029# Make two passes to allow for proper duplicate-argument suppression.
1030ac_configure_args=
1031ac_configure_args0=
1032ac_configure_args1=
1033ac_sep=
1034ac_must_keep_next=false
1035for ac_pass in 1 2
1036do
1037 for ac_arg
1038 do
1039 case $ac_arg in
1040 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1041 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1042 | -silent | --silent | --silen | --sile | --sil)
1043 continue ;;
1044 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1045 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1046 esac
1047 case $ac_pass in
1048 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1049 2)
1050 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1051 if test $ac_must_keep_next = true; then
1052 ac_must_keep_next=false # Got value, back to normal.
1053 else
1054 case $ac_arg in
1055 *=* | --config-cache | -C | -disable-* | --disable-* \
1056 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1057 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1058 | -with-* | --with-* | -without-* | --without-* | --x)
1059 case "$ac_configure_args0 " in
1060 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1061 esac
1062 ;;
1063 -* ) ac_must_keep_next=true ;;
1064 esac
1065 fi
1066 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1067 # Get rid of the leading space.
1068 ac_sep=" "
1069 ;;
1070 esac
1071 done
1072done
1073$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1074$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1075
1076# When interrupted or exit'd, cleanup temporary files, and complete
1077# config.log. We remove comments because anyway the quotes in there
1078# would cause problems or look ugly.
1079# WARNING: Be sure not to use single quotes in there, as some shells,
1080# such as our DU 5.0 friend, will then `close' the trap.
1081trap 'exit_status=$?
1082 # Save into config.log some information that might help in debugging.
1083 {
1084 echo
1085
1086 cat <<\_ASBOX
1087## ---------------- ##
1088## Cache variables. ##
1089## ---------------- ##
1090_ASBOX
1091 echo
1092 # The following way of writing the cache mishandles newlines in values,
1093{
1094 (set) 2>&1 |
1095 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1096 *ac_space=\ *)
1097 sed -n \
1098 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1099 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1100 ;;
1101 *)
1102 sed -n \
1103 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1104 ;;
1105 esac;
1106}
1107 echo
1108
1109 cat <<\_ASBOX
1110## ----------------- ##
1111## Output variables. ##
1112## ----------------- ##
1113_ASBOX
1114 echo
1115 for ac_var in $ac_subst_vars
1116 do
1117 eval ac_val=$`echo $ac_var`
1118 echo "$ac_var='"'"'$ac_val'"'"'"
1119 done | sort
1120 echo
1121
1122 if test -n "$ac_subst_files"; then
1123 cat <<\_ASBOX
1124## ------------- ##
1125## Output files. ##
1126## ------------- ##
1127_ASBOX
1128 echo
1129 for ac_var in $ac_subst_files
1130 do
1131 eval ac_val=$`echo $ac_var`
1132 echo "$ac_var='"'"'$ac_val'"'"'"
1133 done | sort
1134 echo
1135 fi
1136
1137 if test -s confdefs.h; then
1138 cat <<\_ASBOX
1139## ----------- ##
1140## confdefs.h. ##
1141## ----------- ##
1142_ASBOX
1143 echo
1144 sed "/^$/d" confdefs.h | sort
1145 echo
1146 fi
1147 test "$ac_signal" != 0 &&
1148 echo "$as_me: caught signal $ac_signal"
1149 echo "$as_me: exit $exit_status"
1150 } >&5
1151 rm -f core *.core &&
1152 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1153 exit $exit_status
1154 ' 0
1155for ac_signal in 1 2 13 15; do
1156 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1157done
1158ac_signal=0
1159
1160# confdefs.h avoids OS command line length limits that DEFS can exceed.
1161rm -rf conftest* confdefs.h
1162# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1163echo >confdefs.h
1164
1165# Predefined preprocessor variables.
1166
1167cat >>confdefs.h <<_ACEOF
1168#define PACKAGE_NAME "$PACKAGE_NAME"
1169_ACEOF
1170
1171
1172cat >>confdefs.h <<_ACEOF
1173#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1174_ACEOF
1175
1176
1177cat >>confdefs.h <<_ACEOF
1178#define PACKAGE_VERSION "$PACKAGE_VERSION"
1179_ACEOF
1180
1181
1182cat >>confdefs.h <<_ACEOF
1183#define PACKAGE_STRING "$PACKAGE_STRING"
1184_ACEOF
1185
1186
1187cat >>confdefs.h <<_ACEOF
1188#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1189_ACEOF
1190
1191
1192# Let the site file select an alternate cache file if it wants to.
1193# Prefer explicitly selected file to automatically selected ones.
1194if test -z "$CONFIG_SITE"; then
1195 if test "x$prefix" != xNONE; then
1196 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1197 else
1198 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1199 fi
1200fi
1201for ac_site_file in $CONFIG_SITE; do
1202 if test -r "$ac_site_file"; then
1203 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1204echo "$as_me: loading site script $ac_site_file" >&6;}
1205 sed 's/^/| /' "$ac_site_file" >&5
1206 . "$ac_site_file"
1207 fi
1208done
1209
1210# Backslashes into forward slashes:
1211# The following OS/2 specific code is performed AFTER config.site
1212# has been loaded to allow users to change their environment there.
1213# This strange code is necessary to deal with handling of backslashes by ksh.
1214
1215if test "$ac_emxsupport" != "no" -a "$ac_emxsupport" != "NO"; then
1216 ac_save_IFS="$IFS"
1217 IFS="\\"
1218 ac_TEMP_PATH=
1219 for ac_dir in $PATH; do
1220 IFS=$ac_save_IFS
1221 if test -z "$ac_TEMP_PATH"; then
1222 ac_TEMP_PATH="$ac_dir"
1223 else
1224 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1225 fi
1226 done
1227 export PATH="$ac_TEMP_PATH"
1228 unset ac_TEMP_PATH
1229fi
1230
1231# set ac_executable_extensions!
1232if test "$ac_executable_extensions" = ""; then
1233 if ls.exe --version >/dev/null 2>/dev/null; then
1234 { echo "$as_me:$LINENO: WARNING: ac_executable_extensions not set, assuming .exe" >&5
1235echo "$as_me: WARNING: ac_executable_extensions not set, assuming .exe" >&2;}
1236 ac_executable_extensions=".exe"
1237 export ac_executable_extensions
1238 fi
1239fi
1240
1241if test -r "$cache_file"; then
1242 # Some versions of bash will fail to source /dev/null (special
1243 # files actually), so we avoid doing that.
1244 if test -f "$cache_file"; then
1245 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1246echo "$as_me: loading cache $cache_file" >&6;}
1247 case $cache_file in
1248 [\\/]* | ?:[\\/]* ) . $cache_file;;
1249 *) . ./$cache_file;;
1250 esac
1251 fi
1252else
1253 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1254echo "$as_me: creating cache $cache_file" >&6;}
1255 >$cache_file
1256fi
1257
1258# Check that the precious variables saved in the cache have kept the same
1259# value.
1260ac_cache_corrupted=false
1261for ac_var in `(set) 2>&1 |
1262 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1263 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1264 eval ac_new_set=\$ac_env_${ac_var}_set
1265 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1266 eval ac_new_val="\$ac_env_${ac_var}_value"
1267 case $ac_old_set,$ac_new_set in
1268 set,)
1269 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1270echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1271 ac_cache_corrupted=: ;;
1272 ,set)
1273 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1274echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1275 ac_cache_corrupted=: ;;
1276 ,);;
1277 *)
1278 if test "x$ac_old_val" != "x$ac_new_val"; then
1279 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1280echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1281 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1282echo "$as_me: former value: $ac_old_val" >&2;}
1283 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1284echo "$as_me: current value: $ac_new_val" >&2;}
1285 ac_cache_corrupted=:
1286 fi;;
1287 esac
1288 # Pass precious variables to config.status.
1289 if test "$ac_new_set" = set; then
1290 case $ac_new_val in
1291 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1292 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1293 *) ac_arg=$ac_var=$ac_new_val ;;
1294 esac
1295 case " $ac_configure_args " in
1296 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1297 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1298 esac
1299 fi
1300done
1301if $ac_cache_corrupted; then
1302 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1303echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1304 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1305echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1306 { (exit 1); exit 1; }; }
1307fi
1308
1309ac_ext=c
1310ac_cpp='$CPP $CPPFLAGS'
1311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1313ac_compiler_gnu=$ac_cv_c_compiler_gnu
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334# This works around the fact that libtool configuration may change LD
1335# for this particular configuration, but some shells, instead of
1336# keeping the changes in LD private, export them just because LD is
1337# exported.
1338ORIGINAL_LD_FOR_MULTILIBS=$LD
1339
1340
1341if test "x${with_target_subdir}" != x && \
1342 test "${srcdir}" = "."; then
1343 if test "${with_target_subdir}" != "."; then
1344 zlib_basedir="${srcdir}/${with_multisrctop}../"
1345 else
1346 zlib_basedir="${srcdir}/${with_multisrctop}"
1347 fi
1348else
1349 zlib_basedir="${srcdir}/"
1350fi
1351
1352ac_aux_dir=
1353for ac_dir in $zlib_basedir.. $srcdir/$zlib_basedir..; do
1354 if test -f $ac_dir/install-sh; then
1355 ac_aux_dir=$ac_dir
1356 ac_install_sh="$ac_aux_dir/install-sh -c"
1357 break
1358 elif test -f $ac_dir/install.sh; then
1359 ac_aux_dir=$ac_dir
1360 ac_install_sh="$ac_aux_dir/install.sh -c"
1361 break
1362 elif test -f $ac_dir/shtool; then
1363 ac_aux_dir=$ac_dir
1364 ac_install_sh="$ac_aux_dir/shtool install -c"
1365 break
1366 fi
1367done
1368if test -z "$ac_aux_dir"; then
1369 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $zlib_basedir.. $srcdir/$zlib_basedir.." >&5
1370echo "$as_me: error: cannot find install-sh or install.sh in $zlib_basedir.. $srcdir/$zlib_basedir.." >&2;}
1371 { (exit 1); exit 1; }; }
1372fi
1373ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1374ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1375ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1376
1377if :; then :; else
1378 # This overrides the previous occurrence for automake, but not for
1379 # autoconf, which is exactly what we want.
1380 ac_aux_dir=
1381for ac_dir in .. $srcdir/..; do
1382 if test -f $ac_dir/install-sh; then
1383 ac_aux_dir=$ac_dir
1384 ac_install_sh="$ac_aux_dir/install-sh -c"
1385 break
1386 elif test -f $ac_dir/install.sh; then
1387 ac_aux_dir=$ac_dir
1388 ac_install_sh="$ac_aux_dir/install.sh -c"
1389 break
1390 elif test -f $ac_dir/shtool; then
1391 ac_aux_dir=$ac_dir
1392 ac_install_sh="$ac_aux_dir/shtool install -c"
1393 break
1394 fi
1395done
1396if test -z "$ac_aux_dir"; then
1397 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
1398echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
1399 { (exit 1); exit 1; }; }
1400fi
1401ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1402ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1403ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1404
1405fi
1406
1407# Make sure we can run config.sub.
1408$ac_config_sub sun4 >/dev/null 2>&1 ||
1409 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1410echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1411 { (exit 1); exit 1; }; }
1412
1413echo "$as_me:$LINENO: checking build system type" >&5
1414echo $ECHO_N "checking build system type... $ECHO_C" >&6
1415if test "${ac_cv_build+set}" = set; then
1416 echo $ECHO_N "(cached) $ECHO_C" >&6
1417else
1418 ac_cv_build_alias=$build_alias
1419test -z "$ac_cv_build_alias" &&
1420 ac_cv_build_alias=`$ac_config_guess`
1421test -z "$ac_cv_build_alias" &&
1422 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1423echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1424 { (exit 1); exit 1; }; }
1425ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1426 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1427echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1428 { (exit 1); exit 1; }; }
1429
1430fi
1431echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1432echo "${ECHO_T}$ac_cv_build" >&6
1433build=$ac_cv_build
1434build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1435build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1436build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1437
1438
1439echo "$as_me:$LINENO: checking host system type" >&5
1440echo $ECHO_N "checking host system type... $ECHO_C" >&6
1441if test "${ac_cv_host+set}" = set; then
1442 echo $ECHO_N "(cached) $ECHO_C" >&6
1443else
1444 ac_cv_host_alias=$host_alias
1445test -z "$ac_cv_host_alias" &&
1446 ac_cv_host_alias=$ac_cv_build_alias
1447ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1448 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1449echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1450 { (exit 1); exit 1; }; }
1451
1452fi
1453echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1454echo "${ECHO_T}$ac_cv_host" >&6
1455host=$ac_cv_host
1456host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1457host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1458host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1459
1460
1461echo "$as_me:$LINENO: checking target system type" >&5
1462echo $ECHO_N "checking target system type... $ECHO_C" >&6
1463if test "${ac_cv_target+set}" = set; then
1464 echo $ECHO_N "(cached) $ECHO_C" >&6
1465else
1466 ac_cv_target_alias=$target_alias
1467test "x$ac_cv_target_alias" = "x" &&
1468 ac_cv_target_alias=$ac_cv_host_alias
1469ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1470 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1471echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1472 { (exit 1); exit 1; }; }
1473
1474fi
1475echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1476echo "${ECHO_T}$ac_cv_target" >&6
1477target=$ac_cv_target
1478target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1479target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1480target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1481
1482
1483# The aliases save the names the user supplied, while $host etc.
1484# will get canonicalized.
1485test -n "$target_alias" &&
1486 test "$program_prefix$program_suffix$program_transform_name" = \
1487 NONENONEs,x,x, &&
1488 program_prefix=${target_alias}-
1489
1490# This works around an automake problem.
1491mkinstalldirs="`cd $ac_aux_dir && pwd`/mkinstalldirs"
1492
1493
1494# Find a good install program. We prefer a C program (faster),
1495# so one script is as good as another. But avoid the broken or
1496# incompatible versions:
1497# SysV /etc/install, /usr/sbin/install
1498# SunOS /usr/etc/install
1499# IRIX /sbin/install
1500# AIX /bin/install
1501# AmigaOS /C/install, which installs bootblocks on floppy discs
1502# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1503# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1504# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1505# OS/2's system install, which has a completely different semantic
1506# ./install, which can be erroneously created by make from ./install.sh.
1507echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1508echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1509if test -z "$INSTALL"; then
1510if test "${ac_cv_path_install+set}" = set; then
1511 echo $ECHO_N "(cached) $ECHO_C" >&6
1512else
1513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1514for as_dir in $PATH
1515do
1516 IFS=$as_save_IFS
1517 test -z "$as_dir" && as_dir=.
1518 # Account for people who put trailing slashes in PATH elements.
1519case $as_dir/ in
1520 ./ | .// | /cC/* | \
1521 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1522 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1523 /usr/ucb/* ) ;;
1524 *)
1525 # OSF1 and SCO ODT 3.0 have their own names for install.
1526 # Don't use installbsd from OSF since it installs stuff as root
1527 # by default.
1528 for ac_prog in ginstall scoinst install; do
1529 for ac_exec_ext in '' $ac_executable_extensions; do
1530 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1531 if test $ac_prog = install &&
1532 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1533 # AIX install. It has an incompatible calling convention.
1534 :
1535 elif test $ac_prog = install &&
1536 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1537 # program-specific install script used by HP pwplus--don't use.
1538 :
1539 else
1540 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1541 break 3
1542 fi
1543 fi
1544 done
1545 done
1546 ;;
1547esac
1548done
1549
1550
1551fi
1552 if test "${ac_cv_path_install+set}" = set; then
1553 INSTALL=$ac_cv_path_install
1554 else
1555 # As a last resort, use the slow shell script. We don't cache a
1556 # path for INSTALL within a source directory, because that will
1557 # break other packages using the cache if that directory is
1558 # removed, or if the path is relative.
1559 INSTALL=$ac_install_sh
1560 fi
1561fi
1562echo "$as_me:$LINENO: result: $INSTALL" >&5
1563echo "${ECHO_T}$INSTALL" >&6
1564
1565# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1566# It thinks the first close brace ends the variable substitution.
1567test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1568
1569test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1570
1571test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1572
1573echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1574echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1575# Just in case
1576sleep 1
1577echo timestamp > conftestfile
1578# Do `set' in a subshell so we don't clobber the current shell's
1579# arguments. Must try -L first in case configure is actually a
1580# symlink; some systems play weird games with the mod time of symlinks
1581# (eg FreeBSD returns the mod time of the symlink's containing
1582# directory).
1583if (
1584 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1585 if test "$*" = "X"; then
1586 # -L didn't work.
1587 set X `ls -t $srcdir/configure conftestfile`
1588 fi
1589 if test "$*" != "X $srcdir/configure conftestfile" \
1590 && test "$*" != "X conftestfile $srcdir/configure"; then
1591
1592 # If neither matched, then we have a broken ls. This can happen
1593 # if, for instance, CONFIG_SHELL is bash and it inherits a
1594 # broken ls alias from the environment. This has actually
1595 # happened. Such a system could not be considered "sane".
1596 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1597alias in your environment" >&5
1598echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1599alias in your environment" >&2;}
1600 { (exit 1); exit 1; }; }
1601 fi
1602
1603 test "$2" = conftestfile
1604 )
1605then
1606 # Ok.
1607 :
1608else
1609 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1610Check your system clock" >&5
1611echo "$as_me: error: newly created file is older than distributed files!
1612Check your system clock" >&2;}
1613 { (exit 1); exit 1; }; }
1614fi
1615rm -f conftest*
1616echo "$as_me:$LINENO: result: yes" >&5
1617echo "${ECHO_T}yes" >&6
1618test "$program_prefix" != NONE &&
1619 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1620# Use a double $ so make ignores it.
1621test "$program_suffix" != NONE &&
1622 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1623# Double any \ or $. echo might interpret backslashes.
1624# By default was `s,x,x', remove it if useless.
1625cat <<\_ACEOF >conftest.sed
1626s/[\\$]/&&/g;s/;s,x,x,$//
1627_ACEOF
1628program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1629rm conftest.sed
1630
1631echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1632echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1633set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1634if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1635 echo $ECHO_N "(cached) $ECHO_C" >&6
1636else
1637 cat >conftest.make <<\_ACEOF
1638all:
1639 @echo 'ac_maketemp="$(MAKE)"'
1640_ACEOF
1641# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1642eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1643if test -n "$ac_maketemp"; then
1644 eval ac_cv_prog_make_${ac_make}_set=yes
1645else
1646 eval ac_cv_prog_make_${ac_make}_set=no
1647fi
1648rm -f conftest.make
1649fi
1650if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1651 echo "$as_me:$LINENO: result: yes" >&5
1652echo "${ECHO_T}yes" >&6
1653 SET_MAKE=
1654else
1655 echo "$as_me:$LINENO: result: no" >&5
1656echo "${ECHO_T}no" >&6
1657 SET_MAKE="MAKE=${MAKE-make}"
1658fi
1659
1660
1661PACKAGE=zlib
1662
1663VERSION=1.1.3
1664
1665if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1666 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1667echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1668 { (exit 1); exit 1; }; }
1669fi
1670
1671cat >>confdefs.h <<_ACEOF
1672#define PACKAGE "$PACKAGE"
1673_ACEOF
1674
1675
1676cat >>confdefs.h <<_ACEOF
1677#define VERSION "$VERSION"
1678_ACEOF
1679
1680
1681
1682missing_dir=`cd $ac_aux_dir && pwd`
1683echo "$as_me:$LINENO: checking for working aclocal" >&5
1684echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
1685# Run test in a subshell; some versions of sh will print an error if
1686# an executable is not found, even if stderr is redirected.
1687# Redirect stdin to placate older versions of autoconf. Sigh.
1688if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1689 ACLOCAL=aclocal
1690 echo "$as_me:$LINENO: result: found" >&5
1691echo "${ECHO_T}found" >&6
1692else
1693 ACLOCAL="$missing_dir/missing aclocal"
1694 echo "$as_me:$LINENO: result: missing" >&5
1695echo "${ECHO_T}missing" >&6
1696fi
1697
1698echo "$as_me:$LINENO: checking for working autoconf" >&5
1699echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1700# Run test in a subshell; some versions of sh will print an error if
1701# an executable is not found, even if stderr is redirected.
1702# Redirect stdin to placate older versions of autoconf. Sigh.
1703if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1704 AUTOCONF=autoconf
1705 echo "$as_me:$LINENO: result: found" >&5
1706echo "${ECHO_T}found" >&6
1707else
1708 AUTOCONF="$missing_dir/missing autoconf"
1709 echo "$as_me:$LINENO: result: missing" >&5
1710echo "${ECHO_T}missing" >&6
1711fi
1712
1713echo "$as_me:$LINENO: checking for working automake" >&5
1714echo $ECHO_N "checking for working automake... $ECHO_C" >&6
1715# Run test in a subshell; some versions of sh will print an error if
1716# an executable is not found, even if stderr is redirected.
1717# Redirect stdin to placate older versions of autoconf. Sigh.
1718if (automake --version) < /dev/null > /dev/null 2>&1; then
1719 AUTOMAKE=automake
1720 echo "$as_me:$LINENO: result: found" >&5
1721echo "${ECHO_T}found" >&6
1722else
1723 AUTOMAKE="$missing_dir/missing automake"
1724 echo "$as_me:$LINENO: result: missing" >&5
1725echo "${ECHO_T}missing" >&6
1726fi
1727
1728echo "$as_me:$LINENO: checking for working autoheader" >&5
1729echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1730# Run test in a subshell; some versions of sh will print an error if
1731# an executable is not found, even if stderr is redirected.
1732# Redirect stdin to placate older versions of autoconf. Sigh.
1733if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1734 AUTOHEADER=autoheader
1735 echo "$as_me:$LINENO: result: found" >&5
1736echo "${ECHO_T}found" >&6
1737else
1738 AUTOHEADER="$missing_dir/missing autoheader"
1739 echo "$as_me:$LINENO: result: missing" >&5
1740echo "${ECHO_T}missing" >&6
1741fi
1742
1743echo "$as_me:$LINENO: checking for working makeinfo" >&5
1744echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1745# Run test in a subshell; some versions of sh will print an error if
1746# an executable is not found, even if stderr is redirected.
1747# Redirect stdin to placate older versions of autoconf. Sigh.
1748if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1749 MAKEINFO=makeinfo
1750 echo "$as_me:$LINENO: result: found" >&5
1751echo "${ECHO_T}found" >&6
1752else
1753 MAKEINFO="$missing_dir/missing makeinfo"
1754 echo "$as_me:$LINENO: result: missing" >&5
1755echo "${ECHO_T}missing" >&6
1756fi
1757
1758
1759
1760echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1761echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1762 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1763if test "${enable_maintainer_mode+set}" = set; then
1764 enableval="$enable_maintainer_mode"
1765 USE_MAINTAINER_MODE=$enableval
1766else
1767 USE_MAINTAINER_MODE=no
1768fi;
1769 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1770echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1771
1772
1773if test $USE_MAINTAINER_MODE = yes; then
1774 MAINTAINER_MODE_TRUE=
1775 MAINTAINER_MODE_FALSE='#'
1776else
1777 MAINTAINER_MODE_TRUE='#'
1778 MAINTAINER_MODE_FALSE=
1779fi
1780 MAINT=$MAINTAINER_MODE_TRUE
1781
1782
1783
1784
1785# Check whether --with-target-subdir or --without-target-subdir was given.
1786if test "${with_target_subdir+set}" = set; then
1787 withval="$with_target_subdir"
1788
1789fi;
1790
1791# Check whether --with-cross-host or --without-cross-host was given.
1792if test "${with_cross_host+set}" = set; then
1793 withval="$with_cross_host"
1794
1795fi;
1796
1797# Check whether --enable-multilib or --disable-multilib was given.
1798if test "${enable_multilib+set}" = set; then
1799 enableval="$enable_multilib"
1800 case "${enableval}" in
1801 yes) multilib=yes ;;
1802 no) multilib=no ;;
1803 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for multilib option" >&5
1804echo "$as_me: error: bad value ${enableval} for multilib option" >&2;}
1805 { (exit 1); exit 1; }; } ;;
1806 esac
1807else
1808 test -z "$with_target_subdir" && multilib=no || multilib=yes
1809fi;
1810
1811# Check whether --with-system-zlib or --without-system-zlib was given.
1812if test "${with_system_zlib+set}" = set; then
1813 withval="$with_system_zlib"
1814
1815fi;
1816
1817
1818# Extract the first word of "gcc", so it can be a program name with args.
1819set dummy gcc; 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_CC+set}" = set; then
1823 echo $ECHO_N "(cached) $ECHO_C" >&6
1824else
1825 if test -n "$CC"; then
1826 ac_cv_prog_CC="$CC" # 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_CC="gcc"
1836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1837 break 2
1838 fi
1839done
1840done
1841
1842fi
1843fi
1844CC=$ac_cv_prog_CC
1845if test -n "$CC"; then
1846 echo "$as_me:$LINENO: result: $CC" >&5
1847echo "${ECHO_T}$CC" >&6
1848else
1849 echo "$as_me:$LINENO: result: no" >&5
1850echo "${ECHO_T}no" >&6
1851fi
1852
1853if test -z "$CC"; then
1854 # Extract the first word of "cc", so it can be a program name with args.
1855set dummy cc; ac_word=$2
1856echo "$as_me:$LINENO: checking for $ac_word" >&5
1857echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1858if test "${ac_cv_prog_CC+set}" = set; then
1859 echo $ECHO_N "(cached) $ECHO_C" >&6
1860else
1861 if test -n "$CC"; then
1862 ac_cv_prog_CC="$CC" # Let the user override the test.
1863else
1864 ac_prog_rejected=no
1865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1866for as_dir in $PATH
1867do
1868 IFS=$as_save_IFS
1869 test -z "$as_dir" && as_dir=.
1870 for ac_exec_ext in '' $ac_executable_extensions; do
1871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1872 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1873 ac_prog_rejected=yes
1874 continue
1875 fi
1876 ac_cv_prog_CC="cc"
1877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1878 break 2
1879 fi
1880done
1881done
1882
1883if test $ac_prog_rejected = yes; then
1884 # We found a bogon in the path, so make sure we never use it.
1885 set dummy $ac_cv_prog_CC
1886 shift
1887 if test $# != 0; then
1888 # We chose a different compiler from the bogus one.
1889 # However, it has the same basename, so the bogon will be chosen
1890 # first if we set CC to just the basename; use the full file name.
1891 shift
1892 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1893 fi
1894fi
1895fi
1896fi
1897CC=$ac_cv_prog_CC
1898if test -n "$CC"; then
1899 echo "$as_me:$LINENO: result: $CC" >&5
1900echo "${ECHO_T}$CC" >&6
1901else
1902 echo "$as_me:$LINENO: result: no" >&5
1903echo "${ECHO_T}no" >&6
1904fi
1905
1906 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
1907echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1908 { (exit 1); exit 1; }; }
1909fi
1910
1911AC_PROG_CC_GNU
1912
1913if test $ac_cv_c_compiler_gnu = yes; then
1914 GCC=yes
1915 ac_test_CFLAGS="${CFLAGS+set}"
1916 ac_save_CFLAGS="$CFLAGS"
1917 CFLAGS=
1918 AC_PROG_CC_G
1919 if test "$ac_test_CFLAGS" = set; then
1920 CFLAGS="$ac_save_CFLAGS"
1921 elif test $ac_cv_prog_cc_g = yes; then
1922 CFLAGS="-g -O2"
1923 else
1924 CFLAGS="-O2"
1925 fi
1926else
1927 GCC=
1928 test "${CFLAGS+set}" = set || CFLAGS="-g"
1929fi
1930
1931# We need AC_EXEEXT to keep automake happy in cygnus mode. However,
1932# at least currently, we never actually build a program, so we never
1933# need to use $(EXEEXT). Moreover, the test for EXEEXT normally
1934# fails, because we are probably configuring with a cross compiler
1935# which cant create executables. So we include AC_EXEEXT to keep
1936# automake happy, but we dont execute it, since we dont care about
1937# the result.
1938if false; then
1939 # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands
1940 # to nothing, so nothing would remain between `then' and `fi' if it
1941 # were not for the `:' below.
1942 :
1943
1944fi
1945# Check whether --enable-shared or --disable-shared was given.
1946if test "${enable_shared+set}" = set; then
1947 enableval="$enable_shared"
1948 p=${PACKAGE-default}
1949case $enableval in
1950yes) enable_shared=yes ;;
1951no) enable_shared=no ;;
1952*)
1953 enable_shared=no
1954 # Look at the argument we got. We use all the common list separators.
1955 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1956 for pkg in $enableval; do
1957 if test "X$pkg" = "X$p"; then
1958 enable_shared=yes
1959 fi
1960 done
1961 IFS="$ac_save_ifs"
1962 ;;
1963esac
1964else
1965 enable_shared=yes
1966fi;
1967# Check whether --enable-static or --disable-static was given.
1968if test "${enable_static+set}" = set; then
1969 enableval="$enable_static"
1970 p=${PACKAGE-default}
1971case $enableval in
1972yes) enable_static=yes ;;
1973no) enable_static=no ;;
1974*)
1975 enable_static=no
1976 # Look at the argument we got. We use all the common list separators.
1977 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1978 for pkg in $enableval; do
1979 if test "X$pkg" = "X$p"; then
1980 enable_static=yes
1981 fi
1982 done
1983 IFS="$ac_save_ifs"
1984 ;;
1985esac
1986else
1987 enable_static=yes
1988fi;
1989# Check whether --enable-fast-install or --disable-fast-install was given.
1990if test "${enable_fast_install+set}" = set; then
1991 enableval="$enable_fast_install"
1992 p=${PACKAGE-default}
1993case $enableval in
1994yes) enable_fast_install=yes ;;
1995no) enable_fast_install=no ;;
1996*)
1997 enable_fast_install=no
1998 # Look at the argument we got. We use all the common list separators.
1999 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2000 for pkg in $enableval; do
2001 if test "X$pkg" = "X$p"; then
2002 enable_fast_install=yes
2003 fi
2004 done
2005 IFS="$ac_save_ifs"
2006 ;;
2007esac
2008else
2009 enable_fast_install=yes
2010fi;
2011
2012# Check whether --with-gnu-ld or --without-gnu-ld was given.
2013if test "${with_gnu_ld+set}" = set; then
2014 withval="$with_gnu_ld"
2015 test "$withval" = no || with_gnu_ld=yes
2016else
2017 with_gnu_ld=no
2018fi;
2019ac_prog=ld
2020if test "$GCC" = yes; then
2021 # Check if gcc -print-prog-name=ld gives a path.
2022 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2023echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2024 case $host in
2025 *-*-mingw*)
2026 # gcc leaves a trailing carriage return which upsets mingw
2027 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2028 *)
2029 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2030 esac
2031 case $ac_prog in
2032 # Accept absolute paths.
2033 [\\/]* | [A-Za-z]:[\\/]*)
2034 re_direlt='/[^/][^/]*/\.\./'
2035 # Canonicalize the path of ld
2036 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2037 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2038 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2039 done
2040 test -z "$LD" && LD="$ac_prog"
2041 ;;
2042 "")
2043 # If it fails, then pretend we aren't using GCC.
2044 ac_prog=ld
2045 ;;
2046 *)
2047 # If it is relative, then search for the first ld in PATH.
2048 with_gnu_ld=unknown
2049 ;;
2050 esac
2051elif test "$with_gnu_ld" = yes; then
2052 echo "$as_me:$LINENO: checking for GNU ld" >&5
2053echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2054else
2055 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2056echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2057fi
2058if test "${lt_cv_path_LD+set}" = set; then
2059 echo $ECHO_N "(cached) $ECHO_C" >&6
2060else
2061 if test -z "$LD"; then
2062 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2063 for ac_dir in $PATH; do
2064 test -z "$ac_dir" && ac_dir=.
2065 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2066 lt_cv_path_LD="$ac_dir/$ac_prog"
2067 # Check to see if the program is GNU ld. I'd rather use --version,
2068 # but apparently some GNU ld's only accept -v.
2069 # Break only if it was the GNU/non-GNU ld that we prefer.
2070 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2071 test "$with_gnu_ld" != no && break
2072 else
2073 test "$with_gnu_ld" != yes && break
2074 fi
2075 fi
2076 done
2077 IFS="$ac_save_ifs"
2078else
2079 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2080fi
2081fi
2082
2083LD="$lt_cv_path_LD"
2084if test -n "$LD"; then
2085 echo "$as_me:$LINENO: result: $LD" >&5
2086echo "${ECHO_T}$LD" >&6
2087else
2088 echo "$as_me:$LINENO: result: no" >&5
2089echo "${ECHO_T}no" >&6
2090fi
2091test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2092echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2093 { (exit 1); exit 1; }; }
2094echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2095echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2096if test "${lt_cv_prog_gnu_ld+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
2098else
2099 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2100if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2101 lt_cv_prog_gnu_ld=yes
2102else
2103 lt_cv_prog_gnu_ld=no
2104fi
2105fi
2106echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2107echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2108with_gnu_ld=$lt_cv_prog_gnu_ld
2109
2110
2111echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2112echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2113if test "${lt_cv_ld_reload_flag+set}" = set; then
2114 echo $ECHO_N "(cached) $ECHO_C" >&6
2115else
2116 lt_cv_ld_reload_flag='-r'
2117fi
2118echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2119echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2120reload_flag=$lt_cv_ld_reload_flag
2121test -n "$reload_flag" && reload_flag=" $reload_flag"
2122
2123echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2124echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2125if test "${lt_cv_path_NM+set}" = set; then
2126 echo $ECHO_N "(cached) $ECHO_C" >&6
2127else
2128 if test -n "$NM"; then
2129 # Let the user override the test.
2130 lt_cv_path_NM="$NM"
2131else
2132 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2133 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2134 test -z "$ac_dir" && ac_dir=.
2135 tmp_nm=$ac_dir/${ac_tool_prefix}nm
2136 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2137 # Check to see if the nm accepts a BSD-compat flag.
2138 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2139 # nm: unknown option "B" ignored
2140 # Tru64's nm complains that /dev/null is an invalid object file
2141 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2142 lt_cv_path_NM="$tmp_nm -B"
2143 break
2144 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2145 lt_cv_path_NM="$tmp_nm -p"
2146 break
2147 else
2148 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2149 continue # so that we can try to find one that supports BSD flags
2150 fi
2151 fi
2152 done
2153 IFS="$ac_save_ifs"
2154 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2155fi
2156fi
2157
2158NM="$lt_cv_path_NM"
2159echo "$as_me:$LINENO: result: $NM" >&5
2160echo "${ECHO_T}$NM" >&6
2161
2162echo "$as_me:$LINENO: checking whether ln -s works" >&5
2163echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2164LN_S=$as_ln_s
2165if test "$LN_S" = "ln -s"; then
2166 echo "$as_me:$LINENO: result: yes" >&5
2167echo "${ECHO_T}yes" >&6
2168else
2169 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2170echo "${ECHO_T}no, using $LN_S" >&6
2171fi
2172
2173echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
2174echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2175if test "${lt_cv_deplibs_check_method+set}" = set; then
2176 echo $ECHO_N "(cached) $ECHO_C" >&6
2177else
2178 lt_cv_file_magic_cmd='$MAGIC_CMD'
2179lt_cv_file_magic_test_file=
2180lt_cv_deplibs_check_method='unknown'
2181# Need to set the preceding variable on all platforms that support
2182# interlibrary dependencies.
2183# 'none' -- dependencies not supported.
2184# `unknown' -- same as none, but documents that we really don't know.
2185# 'pass_all' -- all dependencies passed with no checks.
2186# 'test_compile' -- check by making test program.
2187# 'file_magic [regex]' -- check by looking for files in library path
2188# which responds to the $file_magic_cmd with a given egrep regex.
2189# If you have `file' or equivalent on your system and you're not sure
2190# whether `pass_all' will *always* work, you probably want this one.
2191
2192case $host_os in
2193aix*)
2194 lt_cv_deplibs_check_method=pass_all
2195 ;;
2196
2197beos*)
2198 lt_cv_deplibs_check_method=pass_all
2199 ;;
2200
2201bsdi4*)
2202 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2203 lt_cv_file_magic_cmd='/usr/bin/file -L'
2204 lt_cv_file_magic_test_file=/shlib/libc.so
2205 ;;
2206
2207cygwin* | mingw* |pw32*)
2208 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2209 lt_cv_file_magic_cmd='$OBJDUMP -f'
2210 ;;
2211
2212darwin* | rhapsody*)
2213 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2214 lt_cv_file_magic_cmd='/usr/bin/file -L'
2215 case "$host_os" in
2216 rhapsody* | darwin1.012)
2217 lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
2218 ;;
2219 *) # Darwin 1.3 on
2220 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2221 ;;
2222 esac
2223 ;;
2224
2225freebsd* )
2226 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2227 case $host_cpu in
2228 i*86 )
2229 # Not sure whether the presence of OpenBSD here was a mistake.
2230 # Let's accept both of them until this is cleared up.
2231 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2232 lt_cv_file_magic_cmd=/usr/bin/file
2233 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2234 ;;
2235 esac
2236 else
2237 lt_cv_deplibs_check_method=pass_all
2238 fi
2239 ;;
2240
2241gnu*)
2242 lt_cv_deplibs_check_method=pass_all
2243 ;;
2244
2245hpux10.20*|hpux11*)
2246 case $host_cpu in
2247 hppa*)
2248 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2249 lt_cv_file_magic_cmd=/usr/bin/file
2250 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2251 ;;
2252 ia64*)
2253 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
2254 lt_cv_file_magic_cmd=/usr/bin/file
2255 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2256 ;;
2257 esac
2258 ;;
2259
2260irix5* | irix6*)
2261 case $host_os in
2262 irix5*)
2263 # this will be overridden with pass_all, but let us keep it just in case
2264 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2265 ;;
2266 *)
2267 case $LD in
2268 *-32|*"-32 ") libmagic=32-bit;;
2269 *-n32|*"-n32 ") libmagic=N32;;
2270 *-64|*"-64 ") libmagic=64-bit;;
2271 *) libmagic=never-match;;
2272 esac
2273 # this will be overridden with pass_all, but let us keep it just in case
2274 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2275 ;;
2276 esac
2277 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2278 lt_cv_deplibs_check_method=pass_all
2279 ;;
2280
2281# This must be Linux ELF.
2282linux-gnu*)
2283 case $host_cpu in
2284 alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2285 lt_cv_deplibs_check_method=pass_all ;;
2286 *)
2287 # glibc up to 2.1.1 does not perform some relocations on ARM
2288 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2289 esac
2290 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2291 ;;
2292
2293netbsd*)
2294 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2295 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2296 else
2297 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2298 fi
2299 ;;
2300
2301newsos6)
2302 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2303 lt_cv_file_magic_cmd=/usr/bin/file
2304 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2305 ;;
2306
2307os2*)
2308 lt_cv_deplibs_check_method=pass_all
2309 ;;
2310
2311osf3* | osf4* | osf5*)
2312 # this will be overridden with pass_all, but let us keep it just in case
2313 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2314 lt_cv_file_magic_test_file=/shlib/libc.so
2315 lt_cv_deplibs_check_method=pass_all
2316 ;;
2317
2318sco3.2v5*)
2319 lt_cv_deplibs_check_method=pass_all
2320 ;;
2321
2322solaris*)
2323 lt_cv_deplibs_check_method=pass_all
2324 lt_cv_file_magic_test_file=/lib/libc.so
2325 ;;
2326
2327sysv5uw[78]* | sysv4*uw2*)
2328 lt_cv_deplibs_check_method=pass_all
2329 ;;
2330
2331sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2332 case $host_vendor in
2333 ncr)
2334 lt_cv_deplibs_check_method=pass_all
2335 ;;
2336 motorola)
2337 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]'
2338 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2339 ;;
2340 esac
2341 ;;
2342esac
2343
2344fi
2345echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
2346echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
2347file_magic_cmd=$lt_cv_file_magic_cmd
2348deplibs_check_method=$lt_cv_deplibs_check_method
2349
2350
2351
2352
2353# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2354
2355# Only perform the check for file, if the check method requires it
2356case $deplibs_check_method in
2357file_magic*)
2358 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2359 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
2360echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
2361if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2363else
2364 case $MAGIC_CMD in
2365 /*)
2366 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2367 ;;
2368 ?:/*)
2369 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2370 ;;
2371 *)
2372 ac_save_MAGIC_CMD="$MAGIC_CMD"
2373 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2374 ac_dummy="/usr/bin:$PATH"
2375 for ac_dir in $ac_dummy; do
2376 test -z "$ac_dir" && ac_dir=.
2377 if test -f $ac_dir/${ac_tool_prefix}file; then
2378 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2379 if test -n "$file_magic_test_file"; then
2380 case $deplibs_check_method in
2381 "file_magic "*)
2382 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2383 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2384 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2385 egrep "$file_magic_regex" > /dev/null; then
2386 :
2387 else
2388 cat <<EOF 1>&2
2389
2390*** Warning: the command libtool uses to detect shared libraries,
2391*** $file_magic_cmd, produces output that libtool cannot recognize.
2392*** The result is that libtool may fail to recognize shared libraries
2393*** as such. This will affect the creation of libtool libraries that
2394*** depend on shared libraries, but programs linked with such libtool
2395*** libraries will work regardless of this problem. Nevertheless, you
2396*** may want to report the problem to your system manager and/or to
2397*** bug-libtool@gnu.org
2398
2399EOF
2400 fi ;;
2401 esac
2402 fi
2403 break
2404 fi
2405 done
2406 IFS="$ac_save_ifs"
2407 MAGIC_CMD="$ac_save_MAGIC_CMD"
2408 ;;
2409esac
2410fi
2411
2412MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2413if test -n "$MAGIC_CMD"; then
2414 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
2415echo "${ECHO_T}$MAGIC_CMD" >&6
2416else
2417 echo "$as_me:$LINENO: result: no" >&5
2418echo "${ECHO_T}no" >&6
2419fi
2420
2421if test -z "$lt_cv_path_MAGIC_CMD"; then
2422 if test -n "$ac_tool_prefix"; then
2423 echo "$as_me:$LINENO: checking for file" >&5
2424echo $ECHO_N "checking for file... $ECHO_C" >&6
2425if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
2426 echo $ECHO_N "(cached) $ECHO_C" >&6
2427else
2428 case $MAGIC_CMD in
2429 /*)
2430 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2431 ;;
2432 ?:/*)
2433 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2434 ;;
2435 *)
2436 ac_save_MAGIC_CMD="$MAGIC_CMD"
2437 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2438 ac_dummy="/usr/bin:$PATH"
2439 for ac_dir in $ac_dummy; do
2440 test -z "$ac_dir" && ac_dir=.
2441 if test -f $ac_dir/file; then
2442 lt_cv_path_MAGIC_CMD="$ac_dir/file"
2443 if test -n "$file_magic_test_file"; then
2444 case $deplibs_check_method in
2445 "file_magic "*)
2446 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2447 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2448 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2449 egrep "$file_magic_regex" > /dev/null; then
2450 :
2451 else
2452 cat <<EOF 1>&2
2453
2454*** Warning: the command libtool uses to detect shared libraries,
2455*** $file_magic_cmd, produces output that libtool cannot recognize.
2456*** The result is that libtool may fail to recognize shared libraries
2457*** as such. This will affect the creation of libtool libraries that
2458*** depend on shared libraries, but programs linked with such libtool
2459*** libraries will work regardless of this problem. Nevertheless, you
2460*** may want to report the problem to your system manager and/or to
2461*** bug-libtool@gnu.org
2462
2463EOF
2464 fi ;;
2465 esac
2466 fi
2467 break
2468 fi
2469 done
2470 IFS="$ac_save_ifs"
2471 MAGIC_CMD="$ac_save_MAGIC_CMD"
2472 ;;
2473esac
2474fi
2475
2476MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2477if test -n "$MAGIC_CMD"; then
2478 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
2479echo "${ECHO_T}$MAGIC_CMD" >&6
2480else
2481 echo "$as_me:$LINENO: result: no" >&5
2482echo "${ECHO_T}no" >&6
2483fi
2484
2485 else
2486 MAGIC_CMD=:
2487 fi
2488fi
2489
2490 fi
2491 ;;
2492esac
2493
2494if test -n "$ac_tool_prefix"; then
2495 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2496set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2497echo "$as_me:$LINENO: checking for $ac_word" >&5
2498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2499if test "${ac_cv_prog_RANLIB+set}" = set; then
2500 echo $ECHO_N "(cached) $ECHO_C" >&6
2501else
2502 if test -n "$RANLIB"; then
2503 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2504else
2505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506for as_dir in $PATH
2507do
2508 IFS=$as_save_IFS
2509 test -z "$as_dir" && as_dir=.
2510 for ac_exec_ext in '' $ac_executable_extensions; do
2511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2512 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2514 break 2
2515 fi
2516done
2517done
2518
2519fi
2520fi
2521RANLIB=$ac_cv_prog_RANLIB
2522if test -n "$RANLIB"; then
2523 echo "$as_me:$LINENO: result: $RANLIB" >&5
2524echo "${ECHO_T}$RANLIB" >&6
2525else
2526 echo "$as_me:$LINENO: result: no" >&5
2527echo "${ECHO_T}no" >&6
2528fi
2529
2530fi
2531if test -z "$ac_cv_prog_RANLIB"; then
2532 ac_ct_RANLIB=$RANLIB
2533 # Extract the first word of "ranlib", so it can be a program name with args.
2534set dummy ranlib; ac_word=$2
2535echo "$as_me:$LINENO: checking for $ac_word" >&5
2536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2537if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
2539else
2540 if test -n "$ac_ct_RANLIB"; then
2541 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2542else
2543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544for as_dir in $PATH
2545do
2546 IFS=$as_save_IFS
2547 test -z "$as_dir" && as_dir=.
2548 for ac_exec_ext in '' $ac_executable_extensions; do
2549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2550 ac_cv_prog_ac_ct_RANLIB="ranlib"
2551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2552 break 2
2553 fi
2554done
2555done
2556
2557 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2558fi
2559fi
2560ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2561if test -n "$ac_ct_RANLIB"; then
2562 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2563echo "${ECHO_T}$ac_ct_RANLIB" >&6
2564else
2565 echo "$as_me:$LINENO: result: no" >&5
2566echo "${ECHO_T}no" >&6
2567fi
2568
2569 RANLIB=$ac_ct_RANLIB
2570else
2571 RANLIB="$ac_cv_prog_RANLIB"
2572fi
2573
2574if test -n "$ac_tool_prefix"; then
2575 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2576set dummy ${ac_tool_prefix}strip; ac_word=$2
2577echo "$as_me:$LINENO: checking for $ac_word" >&5
2578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2579if test "${ac_cv_prog_STRIP+set}" = set; then
2580 echo $ECHO_N "(cached) $ECHO_C" >&6
2581else
2582 if test -n "$STRIP"; then
2583 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2584else
2585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586for as_dir in $PATH
2587do
2588 IFS=$as_save_IFS
2589 test -z "$as_dir" && as_dir=.
2590 for ac_exec_ext in '' $ac_executable_extensions; do
2591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2592 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2594 break 2
2595 fi
2596done
2597done
2598
2599fi
2600fi
2601STRIP=$ac_cv_prog_STRIP
2602if test -n "$STRIP"; then
2603 echo "$as_me:$LINENO: result: $STRIP" >&5
2604echo "${ECHO_T}$STRIP" >&6
2605else
2606 echo "$as_me:$LINENO: result: no" >&5
2607echo "${ECHO_T}no" >&6
2608fi
2609
2610fi
2611if test -z "$ac_cv_prog_STRIP"; then
2612 ac_ct_STRIP=$STRIP
2613 # Extract the first word of "strip", so it can be a program name with args.
2614set dummy strip; ac_word=$2
2615echo "$as_me:$LINENO: checking for $ac_word" >&5
2616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2617if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2618 echo $ECHO_N "(cached) $ECHO_C" >&6
2619else
2620 if test -n "$ac_ct_STRIP"; then
2621 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2622else
2623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624for as_dir in $PATH
2625do
2626 IFS=$as_save_IFS
2627 test -z "$as_dir" && as_dir=.
2628 for ac_exec_ext in '' $ac_executable_extensions; do
2629 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2630 ac_cv_prog_ac_ct_STRIP="strip"
2631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2632 break 2
2633 fi
2634done
2635done
2636
2637 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2638fi
2639fi
2640ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2641if test -n "$ac_ct_STRIP"; then
2642 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2643echo "${ECHO_T}$ac_ct_STRIP" >&6
2644else
2645 echo "$as_me:$LINENO: result: no" >&5
2646echo "${ECHO_T}no" >&6
2647fi
2648
2649 STRIP=$ac_ct_STRIP
2650else
2651 STRIP="$ac_cv_prog_STRIP"
2652fi
2653
2654
2655# Check for any special flags to pass to ltconfig.
2656libtool_flags="--cache-file=$cache_file"
2657test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2658test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2659test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2660test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2661test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2662
2663
2664# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2665if test "${enable_libtool_lock+set}" = set; then
2666 enableval="$enable_libtool_lock"
2667
2668fi;
2669test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2670test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2671
2672
2673# Check whether --with-pic or --without-pic was given.
2674if test "${with_pic+set}" = set; then
2675 withval="$with_pic"
2676 pic_mode="$withval"
2677else
2678 pic_mode=default
2679fi;
2680test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2681test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2682
2683# Some flags need to be propagated to the compiler or linker for good
2684# libtool support.
2685case $host in
2686*-*-irix6*)
2687 # Find out which ABI we are using.
2688 echo '#line 2688 "configure"' > conftest.$ac_ext
2689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2690 (eval $ac_compile) 2>&5
2691 ac_status=$?
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; then
2694 if test "$lt_cv_prog_gnu_ld" = yes; then
2695 case `/usr/bin/file conftest.$ac_objext` in
2696 *32-bit*)
2697 LD="${LD-ld} -melf32bsmip"
2698 ;;
2699 *N32*)
2700 LD="${LD-ld} -melf32bmipn32"
2701 ;;
2702 *64-bit*)
2703 LD="${LD-ld} -melf64bmip"
2704 ;;
2705 esac
2706 else
2707 case `/usr/bin/file conftest.$ac_objext` in
2708 *32-bit*)
2709 LD="${LD-ld} -32"
2710 ;;
2711 *N32*)
2712 LD="${LD-ld} -n32"
2713 ;;
2714 *64-bit*)
2715 LD="${LD-ld} -64"
2716 ;;
2717 esac
2718 fi
2719 fi
2720 rm -rf conftest*
2721 ;;
2722
2723ia64-*-hpux*)
2724 # Find out which ABI we are using.
2725 echo 'int i;' > conftest.$ac_ext
2726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2727 (eval $ac_compile) 2>&5
2728 ac_status=$?
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }; then
2731 case "`/usr/bin/file conftest.o`" in
2732 *ELF-32*)
2733 HPUX_IA64_MODE="32"
2734 ;;
2735 *ELF-64*)
2736 HPUX_IA64_MODE="64"
2737 ;;
2738 esac
2739 fi
2740 rm -rf conftest*
2741 ;;
2742
2743*-*-sco3.2v5*)
2744 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2745 SAVE_CFLAGS="$CFLAGS"
2746 CFLAGS="$CFLAGS -belf"
2747 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
2748echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
2749if test "${lt_cv_cc_needs_belf+set}" = set; then
2750 echo $ECHO_N "(cached) $ECHO_C" >&6
2751else
2752
2753
2754 ac_ext=c
2755ac_cpp='$CPP $CPPFLAGS'
2756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2758ac_compiler_gnu=$ac_cv_c_compiler_gnu
2759
2760 cat >conftest.$ac_ext <<_ACEOF
2761/* confdefs.h. */
2762_ACEOF
2763cat confdefs.h >>conftest.$ac_ext
2764cat >>conftest.$ac_ext <<_ACEOF
2765/* end confdefs.h. */
2766
2767int
2768main ()
2769{
2770
2771 ;
2772 return 0;
2773}
2774_ACEOF
2775rm -f conftest.$ac_objext conftest$ac_exeext
2776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2777 (eval $ac_link) 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); } &&
2784 { ac_try='test -z "$ac_c_werror_flag"
2785 || test ! -s conftest.err'
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_exeext'
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 lt_cv_cc_needs_belf=yes
2798else
2799 echo "$as_me: failed program was:" >&5
2800sed 's/^/| /' conftest.$ac_ext >&5
2801
2802lt_cv_cc_needs_belf=no
2803fi
2804rm -f conftest.err conftest.$ac_objext \
2805 conftest$ac_exeext conftest.$ac_ext
2806 ac_ext=c
2807ac_cpp='$CPP $CPPFLAGS'
2808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2810ac_compiler_gnu=$ac_cv_c_compiler_gnu
2811
2812fi
2813echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
2814echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
2815 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2816 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2817 CFLAGS="$SAVE_CFLAGS"
2818 fi
2819 ;;
2820
2821
2822esac
2823
2824
2825# Save cache, so that ltconfig can load it
2826cat >confcache <<\_ACEOF
2827# This file is a shell script that caches the results of configure
2828# tests run on this system so they can be shared between configure
2829# scripts and configure runs, see configure's option --config-cache.
2830# It is not useful on other systems. If it contains results you don't
2831# want to keep, you may remove or edit it.
2832#
2833# config.status only pays attention to the cache file if you give it
2834# the --recheck option to rerun configure.
2835#
2836# `ac_cv_env_foo' variables (set or unset) will be overridden when
2837# loading this file, other *unset* `ac_cv_foo' will be assigned the
2838# following values.
2839
2840_ACEOF
2841
2842# The following way of writing the cache mishandles newlines in values,
2843# but we know of no workaround that is simple, portable, and efficient.
2844# So, don't put newlines in cache variables' values.
2845# Ultrix sh set writes to stderr and can't be redirected directly,
2846# and sets the high bit in the cache file unless we assign to the vars.
2847{
2848 (set) 2>&1 |
2849 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2850 *ac_space=\ *)
2851 # `set' does not quote correctly, so add quotes (double-quote
2852 # substitution turns \\\\ into \\, and sed turns \\ into \).
2853 sed -n \
2854 "s/'/'\\\\''/g;
2855 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2856 ;;
2857 *)
2858 # `set' quotes correctly as required by POSIX, so do not add quotes.
2859 sed -n \
2860 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
2861 ;;
2862 esac;
2863} |
2864 sed '
2865 t clear
2866 : clear
2867 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2868 t end
2869 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2870 : end' >>confcache
2871if diff $cache_file confcache >/dev/null 2>&1; then :; else
2872 if test -w $cache_file; then
2873 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
2874 cat confcache >$cache_file
2875 else
2876 echo "not updating unwritable cache $cache_file"
2877 fi
2878fi
2879rm -f confcache
2880
2881# Actually configure libtool. ac_aux_dir is where install-sh is found.
2882AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2883MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2884LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2885AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2886objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2887deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2888${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2889$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2890|| { { echo "$as_me:$LINENO: error: libtool configure failed" >&5
2891echo "$as_me: error: libtool configure failed" >&2;}
2892 { (exit 1); exit 1; }; }
2893
2894# Reload cache, that may have been modified by ltconfig
2895if test -r "$cache_file"; then
2896 # Some versions of bash will fail to source /dev/null (special
2897 # files actually), so we avoid doing that.
2898 if test -f "$cache_file"; then
2899 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2900echo "$as_me: loading cache $cache_file" >&6;}
2901 case $cache_file in
2902 [\\/]* | ?:[\\/]* ) . $cache_file;;
2903 *) . ./$cache_file;;
2904 esac
2905 fi
2906else
2907 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2908echo "$as_me: creating cache $cache_file" >&6;}
2909 >$cache_file
2910fi
2911
2912
2913# This can be used to rebuild libtool when needed
2914LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2915
2916# Always use our own libtool.
2917LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2918
2919# Redirect the config.log output again, so that the ltconfig log is not
2920# clobbered by the next message.
2921exec 5>>./config.log
2922
2923
2924
2925
2926
2927
2928
2929if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
2930 COMPPATH=.
2931else
2932 COMPPATH=..
2933fi
2934
2935
2936# Find CPP now so that any conditional tests below won't do it and
2937# thereby make the resulting definitions conditional.
2938ac_ext=c
2939ac_cpp='$CPP $CPPFLAGS'
2940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2942ac_compiler_gnu=$ac_cv_c_compiler_gnu
2943echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2944echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2945# On Suns, sometimes $CPP names a directory.
2946if test -n "$CPP" && test -d "$CPP"; then
2947 CPP=
2948fi
2949if test -z "$CPP"; then
2950 if test "${ac_cv_prog_CPP+set}" = set; then
2951 echo $ECHO_N "(cached) $ECHO_C" >&6
2952else
2953 # Double quotes because CPP needs to be expanded
2954 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2955 do
2956 ac_preproc_ok=false
2957for ac_c_preproc_warn_flag in '' yes
2958do
2959 # Use a header file that comes with gcc, so configuring glibc
2960 # with a fresh cross-compiler works.
2961 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2962 # <limits.h> exists even on freestanding compilers.
2963 # On the NeXT, cc -E runs the code through the compiler's parser,
2964 # not just through cpp. "Syntax error" is here to catch this case.
2965 cat >conftest.$ac_ext <<_ACEOF
2966/* confdefs.h. */
2967_ACEOF
2968cat confdefs.h >>conftest.$ac_ext
2969cat >>conftest.$ac_ext <<_ACEOF
2970/* end confdefs.h. */
2971#ifdef __STDC__
2972# include <limits.h>
2973#else
2974# include <assert.h>
2975#endif
2976 Syntax error
2977_ACEOF
2978if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2979 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2980 ac_status=$?
2981 grep -v '^ *+' conftest.er1 >conftest.err
2982 rm -f conftest.er1
2983 cat conftest.err >&5
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985 (exit $ac_status); } >/dev/null; then
2986 if test -s conftest.err; then
2987 ac_cpp_err=$ac_c_preproc_warn_flag
2988 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2989 else
2990 ac_cpp_err=
2991 fi
2992else
2993 ac_cpp_err=yes
2994fi
2995if test -z "$ac_cpp_err"; then
2996 :
2997else
2998 echo "$as_me: failed program was:" >&5
2999sed 's/^/| /' conftest.$ac_ext >&5
3000
3001 # Broken: fails on valid input.
3002continue
3003fi
3004rm -f conftest.err conftest.$ac_ext
3005
3006 # OK, works on sane cases. Now check whether non-existent headers
3007 # can be detected and how.
3008 cat >conftest.$ac_ext <<_ACEOF
3009/* confdefs.h. */
3010_ACEOF
3011cat confdefs.h >>conftest.$ac_ext
3012cat >>conftest.$ac_ext <<_ACEOF
3013/* end confdefs.h. */
3014#include <ac_nonexistent.h>
3015_ACEOF
3016if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3017 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3018 ac_status=$?
3019 grep -v '^ *+' conftest.er1 >conftest.err
3020 rm -f conftest.er1
3021 cat conftest.err >&5
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); } >/dev/null; then
3024 if test -s conftest.err; then
3025 ac_cpp_err=$ac_c_preproc_warn_flag
3026 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3027 else
3028 ac_cpp_err=
3029 fi
3030else
3031 ac_cpp_err=yes
3032fi
3033if test -z "$ac_cpp_err"; then
3034 # Broken: success on invalid input.
3035continue
3036else
3037 echo "$as_me: failed program was:" >&5
3038sed 's/^/| /' conftest.$ac_ext >&5
3039
3040 # Passes both tests.
3041ac_preproc_ok=:
3042break
3043fi
3044rm -f conftest.err conftest.$ac_ext
3045
3046done
3047# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3048rm -f conftest.err conftest.$ac_ext
3049if $ac_preproc_ok; then
3050 break
3051fi
3052
3053 done
3054 ac_cv_prog_CPP=$CPP
3055
3056fi
3057 CPP=$ac_cv_prog_CPP
3058else
3059 ac_cv_prog_CPP=$CPP
3060fi
3061echo "$as_me:$LINENO: result: $CPP" >&5
3062echo "${ECHO_T}$CPP" >&6
3063ac_preproc_ok=false
3064for ac_c_preproc_warn_flag in '' yes
3065do
3066 # Use a header file that comes with gcc, so configuring glibc
3067 # with a fresh cross-compiler works.
3068 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3069 # <limits.h> exists even on freestanding compilers.
3070 # On the NeXT, cc -E runs the code through the compiler's parser,
3071 # not just through cpp. "Syntax error" is here to catch this case.
3072 cat >conftest.$ac_ext <<_ACEOF
3073/* confdefs.h. */
3074_ACEOF
3075cat confdefs.h >>conftest.$ac_ext
3076cat >>conftest.$ac_ext <<_ACEOF
3077/* end confdefs.h. */
3078#ifdef __STDC__
3079# include <limits.h>
3080#else
3081# include <assert.h>
3082#endif
3083 Syntax error
3084_ACEOF
3085if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3087 ac_status=$?
3088 grep -v '^ *+' conftest.er1 >conftest.err
3089 rm -f conftest.er1
3090 cat conftest.err >&5
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); } >/dev/null; then
3093 if test -s conftest.err; then
3094 ac_cpp_err=$ac_c_preproc_warn_flag
3095 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3096 else
3097 ac_cpp_err=
3098 fi
3099else
3100 ac_cpp_err=yes
3101fi
3102if test -z "$ac_cpp_err"; then
3103 :
3104else
3105 echo "$as_me: failed program was:" >&5
3106sed 's/^/| /' conftest.$ac_ext >&5
3107
3108 # Broken: fails on valid input.
3109continue
3110fi
3111rm -f conftest.err conftest.$ac_ext
3112
3113 # OK, works on sane cases. Now check whether non-existent headers
3114 # can be detected and how.
3115 cat >conftest.$ac_ext <<_ACEOF
3116/* confdefs.h. */
3117_ACEOF
3118cat confdefs.h >>conftest.$ac_ext
3119cat >>conftest.$ac_ext <<_ACEOF
3120/* end confdefs.h. */
3121#include <ac_nonexistent.h>
3122_ACEOF
3123if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3124 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3125 ac_status=$?
3126 grep -v '^ *+' conftest.er1 >conftest.err
3127 rm -f conftest.er1
3128 cat conftest.err >&5
3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130 (exit $ac_status); } >/dev/null; then
3131 if test -s conftest.err; then
3132 ac_cpp_err=$ac_c_preproc_warn_flag
3133 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3134 else
3135 ac_cpp_err=
3136 fi
3137else
3138 ac_cpp_err=yes
3139fi
3140if test -z "$ac_cpp_err"; then
3141 # Broken: success on invalid input.
3142continue
3143else
3144 echo "$as_me: failed program was:" >&5
3145sed 's/^/| /' conftest.$ac_ext >&5
3146
3147 # Passes both tests.
3148ac_preproc_ok=:
3149break
3150fi
3151rm -f conftest.err conftest.$ac_ext
3152
3153done
3154# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3155rm -f conftest.err conftest.$ac_ext
3156if $ac_preproc_ok; then
3157 :
3158else
3159 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3160See \`config.log' for more details." >&5
3161echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3162See \`config.log' for more details." >&2;}
3163 { (exit 1); exit 1; }; }
3164fi
3165
3166ac_ext=c
3167ac_cpp='$CPP $CPPFLAGS'
3168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3170ac_compiler_gnu=$ac_cv_c_compiler_gnu
3171
3172
3173if test -n "$with_cross_host"; then
3174 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
3175 # may not work correctly, because the compiler may not be able to
3176 # link executables.
3177
3178 # We assume newlib. This lets us hard-code the functions we know
3179 # we'll have.
3180 cat >>confdefs.h <<\_ACEOF
3181#define HAVE_MEMCPY 1
3182_ACEOF
3183
3184 cat >>confdefs.h <<\_ACEOF
3185#define HAVE_STRERROR 1
3186_ACEOF
3187
3188
3189 # We ignore --with-system-zlib in this case.
3190 target_all=libzgcj.la
3191else
3192
3193echo "$as_me:$LINENO: checking for egrep" >&5
3194echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3195if test "${ac_cv_prog_egrep+set}" = set; then
3196 echo $ECHO_N "(cached) $ECHO_C" >&6
3197else
3198 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3199 then ac_cv_prog_egrep='grep -E'
3200 else ac_cv_prog_egrep='egrep'
3201 fi
3202fi
3203echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3204echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3205 EGREP=$ac_cv_prog_egrep
3206
3207
3208echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3209echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3210if test "${ac_cv_header_stdc+set}" = set; then
3211 echo $ECHO_N "(cached) $ECHO_C" >&6
3212else
3213 cat >conftest.$ac_ext <<_ACEOF
3214/* confdefs.h. */
3215_ACEOF
3216cat confdefs.h >>conftest.$ac_ext
3217cat >>conftest.$ac_ext <<_ACEOF
3218/* end confdefs.h. */
3219#include <stdlib.h>
3220#include <stdarg.h>
3221#include <string.h>
3222#include <float.h>
3223
3224int
3225main ()
3226{
3227
3228 ;
3229 return 0;
3230}
3231_ACEOF
3232rm -f conftest.$ac_objext
3233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3234 (eval $ac_compile) 2>conftest.er1
3235 ac_status=$?
3236 grep -v '^ *+' conftest.er1 >conftest.err
3237 rm -f conftest.er1
3238 cat conftest.err >&5
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); } &&
3241 { ac_try='test -z "$ac_c_werror_flag"
3242 || test ! -s conftest.err'
3243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3244 (eval $ac_try) 2>&5
3245 ac_status=$?
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }; } &&
3248 { ac_try='test -s conftest.$ac_objext'
3249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3250 (eval $ac_try) 2>&5
3251 ac_status=$?
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); }; }; then
3254 ac_cv_header_stdc=yes
3255else
3256 echo "$as_me: failed program was:" >&5
3257sed 's/^/| /' conftest.$ac_ext >&5
3258
3259ac_cv_header_stdc=no
3260fi
3261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3262
3263if test $ac_cv_header_stdc = yes; then
3264 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3265 cat >conftest.$ac_ext <<_ACEOF
3266/* confdefs.h. */
3267_ACEOF
3268cat confdefs.h >>conftest.$ac_ext
3269cat >>conftest.$ac_ext <<_ACEOF
3270/* end confdefs.h. */
3271#include <string.h>
3272
3273_ACEOF
3274if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3275 $EGREP "memchr" >/dev/null 2>&1; then
3276 :
3277else
3278 ac_cv_header_stdc=no
3279fi
3280rm -f conftest*
3281
3282fi
3283
3284if test $ac_cv_header_stdc = yes; then
3285 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3286 cat >conftest.$ac_ext <<_ACEOF
3287/* confdefs.h. */
3288_ACEOF
3289cat confdefs.h >>conftest.$ac_ext
3290cat >>conftest.$ac_ext <<_ACEOF
3291/* end confdefs.h. */
3292#include <stdlib.h>
3293
3294_ACEOF
3295if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3296 $EGREP "free" >/dev/null 2>&1; then
3297 :
3298else
3299 ac_cv_header_stdc=no
3300fi
3301rm -f conftest*
3302
3303fi
3304
3305if test $ac_cv_header_stdc = yes; then
3306 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3307 if test "$cross_compiling" = yes; then
3308 :
3309else
3310 cat >conftest.$ac_ext <<_ACEOF
3311/* confdefs.h. */
3312_ACEOF
3313cat confdefs.h >>conftest.$ac_ext
3314cat >>conftest.$ac_ext <<_ACEOF
3315/* end confdefs.h. */
3316#include <ctype.h>
3317#if ((' ' & 0x0FF) == 0x020)
3318# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3319# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3320#else
3321# define ISLOWER(c) \
3322 (('a' <= (c) && (c) <= 'i') \
3323 || ('j' <= (c) && (c) <= 'r') \
3324 || ('s' <= (c) && (c) <= 'z'))
3325# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3326#endif
3327
3328#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3329int
3330main ()
3331{
3332 int i;
3333 for (i = 0; i < 256; i++)
3334 if (XOR (islower (i), ISLOWER (i))
3335 || toupper (i) != TOUPPER (i))
3336 exit(2);
3337 exit (0);
3338}
3339_ACEOF
3340rm -f conftest$ac_exeext
3341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3342 (eval $ac_link) 2>&5
3343 ac_status=$?
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3347 (eval $ac_try) 2>&5
3348 ac_status=$?
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); }; }; then
3351 :
3352else
3353 echo "$as_me: program exited with status $ac_status" >&5
3354echo "$as_me: failed program was:" >&5
3355sed 's/^/| /' conftest.$ac_ext >&5
3356
3357( exit $ac_status )
3358ac_cv_header_stdc=no
3359fi
3360rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3361fi
3362fi
3363fi
3364echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3365echo "${ECHO_T}$ac_cv_header_stdc" >&6
3366if test $ac_cv_header_stdc = yes; then
3367
3368cat >>confdefs.h <<\_ACEOF
3369#define STDC_HEADERS 1
3370_ACEOF
3371
3372fi
3373
3374# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3385 inttypes.h stdint.h unistd.h
3386do
3387as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3388echo "$as_me:$LINENO: checking for $ac_header" >&5
3389echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3390if eval "test \"\${$as_ac_Header+set}\" = set"; then
3391 echo $ECHO_N "(cached) $ECHO_C" >&6
3392else
3393 cat >conftest.$ac_ext <<_ACEOF
3394/* confdefs.h. */
3395_ACEOF
3396cat confdefs.h >>conftest.$ac_ext
3397cat >>conftest.$ac_ext <<_ACEOF
3398/* end confdefs.h. */
3399$ac_includes_default
3400
3401#include <$ac_header>
3402_ACEOF
3403rm -f conftest.$ac_objext
3404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3405 (eval $ac_compile) 2>conftest.er1
3406 ac_status=$?
3407 grep -v '^ *+' conftest.er1 >conftest.err
3408 rm -f conftest.er1
3409 cat conftest.err >&5
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); } &&
3412 { ac_try='test -z "$ac_c_werror_flag"
3413 || test ! -s conftest.err'
3414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3415 (eval $ac_try) 2>&5
3416 ac_status=$?
3417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); }; } &&
3419 { ac_try='test -s conftest.$ac_objext'
3420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3421 (eval $ac_try) 2>&5
3422 ac_status=$?
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); }; }; then
3425 eval "$as_ac_Header=yes"
3426else
3427 echo "$as_me: failed program was:" >&5
3428sed 's/^/| /' conftest.$ac_ext >&5
3429
3430eval "$as_ac_Header=no"
3431fi
3432rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3433fi
3434echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3435echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3436if test `eval echo '${'$as_ac_Header'}'` = yes; then
3437 cat >>confdefs.h <<_ACEOF
3438#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3439_ACEOF
3440
3441fi
3442
3443done
3444
3445
3446
3447
3448for ac_header in stdlib.h unistd.h
3449do
3450as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3451if eval "test \"\${$as_ac_Header+set}\" = set"; then
3452 echo "$as_me:$LINENO: checking for $ac_header" >&5
3453echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3454if eval "test \"\${$as_ac_Header+set}\" = set"; then
3455 echo $ECHO_N "(cached) $ECHO_C" >&6
3456fi
3457echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3458echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3459else
3460 # Is the header compilable?
3461echo "$as_me:$LINENO: checking $ac_header usability" >&5
3462echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3463cat >conftest.$ac_ext <<_ACEOF
3464/* confdefs.h. */
3465_ACEOF
3466cat confdefs.h >>conftest.$ac_ext
3467cat >>conftest.$ac_ext <<_ACEOF
3468/* end confdefs.h. */
3469$ac_includes_default
3470#include <$ac_header>
3471_ACEOF
3472rm -f conftest.$ac_objext
3473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3474 (eval $ac_compile) 2>conftest.er1
3475 ac_status=$?
3476 grep -v '^ *+' conftest.er1 >conftest.err
3477 rm -f conftest.er1
3478 cat conftest.err >&5
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); } &&
3481 { ac_try='test -z "$ac_c_werror_flag"
3482 || test ! -s conftest.err'
3483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3484 (eval $ac_try) 2>&5
3485 ac_status=$?
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); }; } &&
3488 { ac_try='test -s conftest.$ac_objext'
3489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3490 (eval $ac_try) 2>&5
3491 ac_status=$?
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); }; }; then
3494 ac_header_compiler=yes
3495else
3496 echo "$as_me: failed program was:" >&5
3497sed 's/^/| /' conftest.$ac_ext >&5
3498
3499ac_header_compiler=no
3500fi
3501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3502echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3503echo "${ECHO_T}$ac_header_compiler" >&6
3504
3505# Is the header present?
3506echo "$as_me:$LINENO: checking $ac_header presence" >&5
3507echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3508cat >conftest.$ac_ext <<_ACEOF
3509/* confdefs.h. */
3510_ACEOF
3511cat confdefs.h >>conftest.$ac_ext
3512cat >>conftest.$ac_ext <<_ACEOF
3513/* end confdefs.h. */
3514#include <$ac_header>
3515_ACEOF
3516if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3518 ac_status=$?
3519 grep -v '^ *+' conftest.er1 >conftest.err
3520 rm -f conftest.er1
3521 cat conftest.err >&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); } >/dev/null; then
3524 if test -s conftest.err; then
3525 ac_cpp_err=$ac_c_preproc_warn_flag
3526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3527 else
3528 ac_cpp_err=
3529 fi
3530else
3531 ac_cpp_err=yes
3532fi
3533if test -z "$ac_cpp_err"; then
3534 ac_header_preproc=yes
3535else
3536 echo "$as_me: failed program was:" >&5
3537sed 's/^/| /' conftest.$ac_ext >&5
3538
3539 ac_header_preproc=no
3540fi
3541rm -f conftest.err conftest.$ac_ext
3542echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3543echo "${ECHO_T}$ac_header_preproc" >&6
3544
3545# So? What about this header?
3546case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3547 yes:no: )
3548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3549echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3551echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3552 ac_header_preproc=yes
3553 ;;
3554 no:yes:* )
3555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3556echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3558echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3559 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3560echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3561 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3562echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3564echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3565 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3566echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3567 (
3568 cat <<\_ASBOX
3569## ------------------------------------------ ##
3570## Report this to the AC_PACKAGE_NAME lists. ##
3571## ------------------------------------------ ##
3572_ASBOX
3573 ) |
3574 sed "s/^/$as_me: WARNING: /" >&2
3575 ;;
3576esac
3577echo "$as_me:$LINENO: checking for $ac_header" >&5
3578echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3579if eval "test \"\${$as_ac_Header+set}\" = set"; then
3580 echo $ECHO_N "(cached) $ECHO_C" >&6
3581else
3582 eval "$as_ac_Header=\$ac_header_preproc"
3583fi
3584echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3585echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3586
3587fi
3588if test `eval echo '${'$as_ac_Header'}'` = yes; then
3589 cat >>confdefs.h <<_ACEOF
3590#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3591_ACEOF
3592
3593fi
3594
3595done
3596
3597
3598for ac_func in getpagesize
3599do
3600as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3601echo "$as_me:$LINENO: checking for $ac_func" >&5
3602echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3603if eval "test \"\${$as_ac_var+set}\" = set"; then
3604 echo $ECHO_N "(cached) $ECHO_C" >&6
3605else
3606 cat >conftest.$ac_ext <<_ACEOF
3607/* confdefs.h. */
3608_ACEOF
3609cat confdefs.h >>conftest.$ac_ext
3610cat >>conftest.$ac_ext <<_ACEOF
3611/* end confdefs.h. */
3612/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3614#define $ac_func innocuous_$ac_func
3615
3616/* System header to define __stub macros and hopefully few prototypes,
3617 which can conflict with char $ac_func (); below.
3618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3619 <limits.h> exists even on freestanding compilers. */
3620
3621#ifdef __STDC__
3622# include <limits.h>
3623#else
3624# include <assert.h>
3625#endif
3626
3627#undef $ac_func
3628
3629/* Override any gcc2 internal prototype to avoid an error. */
3630#ifdef __cplusplus
3631extern "C"
3632{
3633#endif
3634/* We use char because int might match the return type of a gcc2
3635 builtin and then its argument prototype would still apply. */
3636char $ac_func ();
3637/* The GNU C library defines this for functions which it implements
3638 to always fail with ENOSYS. Some functions are actually named
3639 something starting with __ and the normal name is an alias. */
3640#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3641choke me
3642#else
3643char (*f) () = $ac_func;
3644#endif
3645#ifdef __cplusplus
3646}
3647#endif
3648
3649int
3650main ()
3651{
3652return f != $ac_func;
3653 ;
3654 return 0;
3655}
3656_ACEOF
3657rm -f conftest.$ac_objext conftest$ac_exeext
3658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3659 (eval $ac_link) 2>conftest.er1
3660 ac_status=$?
3661 grep -v '^ *+' conftest.er1 >conftest.err
3662 rm -f conftest.er1
3663 cat conftest.err >&5
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); } &&
3666 { ac_try='test -z "$ac_c_werror_flag"
3667 || test ! -s conftest.err'
3668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669 (eval $ac_try) 2>&5
3670 ac_status=$?
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); }; } &&
3673 { ac_try='test -s conftest$ac_exeext'
3674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675 (eval $ac_try) 2>&5
3676 ac_status=$?
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); }; }; then
3679 eval "$as_ac_var=yes"
3680else
3681 echo "$as_me: failed program was:" >&5
3682sed 's/^/| /' conftest.$ac_ext >&5
3683
3684eval "$as_ac_var=no"
3685fi
3686rm -f conftest.err conftest.$ac_objext \
3687 conftest$ac_exeext conftest.$ac_ext
3688fi
3689echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3690echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3691if test `eval echo '${'$as_ac_var'}'` = yes; then
3692 cat >>confdefs.h <<_ACEOF
3693#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3694_ACEOF
3695
3696fi
3697done
3698
3699echo "$as_me:$LINENO: checking for working mmap" >&5
3700echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
3701if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
3702 echo $ECHO_N "(cached) $ECHO_C" >&6
3703else
3704 if test "$cross_compiling" = yes; then
3705 ac_cv_func_mmap_fixed_mapped=no
3706else
3707 cat >conftest.$ac_ext <<_ACEOF
3708/* confdefs.h. */
3709_ACEOF
3710cat confdefs.h >>conftest.$ac_ext
3711cat >>conftest.$ac_ext <<_ACEOF
3712/* end confdefs.h. */
3713$ac_includes_default
3714/* malloc might have been renamed as rpl_malloc. */
3715#undef malloc
3716
3717/* Thanks to Mike Haertel and Jim Avera for this test.
3718 Here is a matrix of mmap possibilities:
3719 mmap private not fixed
3720 mmap private fixed at somewhere currently unmapped
3721 mmap private fixed at somewhere already mapped
3722 mmap shared not fixed
3723 mmap shared fixed at somewhere currently unmapped
3724 mmap shared fixed at somewhere already mapped
3725 For private mappings, we should verify that changes cannot be read()
3726 back from the file, nor mmap's back from the file at a different
3727 address. (There have been systems where private was not correctly
3728 implemented like the infamous i386 svr4.0, and systems where the
3729 VM page cache was not coherent with the file system buffer cache
3730 like early versions of FreeBSD and possibly contemporary NetBSD.)
3731 For shared mappings, we should conversely verify that changes get
3732 propagated back to all the places they're supposed to be.
3733
3734 Grep wants private fixed already mapped.
3735 The main things grep needs to know about mmap are:
3736 * does it exist and is it safe to write into the mmap'd area
3737 * how to use it (BSD variants) */
3738
3739#include <fcntl.h>
3740#include <sys/mman.h>
3741
3742#if !STDC_HEADERS && !HAVE_STDLIB_H
3743char *malloc ();
3744#endif
3745
3746/* This mess was copied from the GNU getpagesize.h. */
3747#if !HAVE_GETPAGESIZE
3748/* Assume that all systems that can run configure have sys/param.h. */
3749# if !HAVE_SYS_PARAM_H
3750# define HAVE_SYS_PARAM_H 1
3751# endif
3752
3753# ifdef _SC_PAGESIZE
3754# define getpagesize() sysconf(_SC_PAGESIZE)
3755# else /* no _SC_PAGESIZE */
3756# if HAVE_SYS_PARAM_H
3757# include <sys/param.h>
3758# ifdef EXEC_PAGESIZE
3759# define getpagesize() EXEC_PAGESIZE
3760# else /* no EXEC_PAGESIZE */
3761# ifdef NBPG
3762# define getpagesize() NBPG * CLSIZE
3763# ifndef CLSIZE
3764# define CLSIZE 1
3765# endif /* no CLSIZE */
3766# else /* no NBPG */
3767# ifdef NBPC
3768# define getpagesize() NBPC
3769# else /* no NBPC */
3770# ifdef PAGESIZE
3771# define getpagesize() PAGESIZE
3772# endif /* PAGESIZE */
3773# endif /* no NBPC */
3774# endif /* no NBPG */
3775# endif /* no EXEC_PAGESIZE */
3776# else /* no HAVE_SYS_PARAM_H */
3777# define getpagesize() 8192 /* punt totally */
3778# endif /* no HAVE_SYS_PARAM_H */
3779# endif /* no _SC_PAGESIZE */
3780
3781#endif /* no HAVE_GETPAGESIZE */
3782
3783int
3784main ()
3785{
3786 char *data, *data2, *data3;
3787 int i, pagesize;
3788 int fd;
3789
3790 pagesize = getpagesize ();
3791
3792 /* First, make a file with some known garbage in it. */
3793 data = (char *) malloc (pagesize);
3794 if (!data)
3795 exit (1);
3796 for (i = 0; i < pagesize; ++i)
3797 *(data + i) = rand ();
3798 umask (0);
3799 fd = creat ("conftest.mmap", 0600);
3800 if (fd < 0)
3801 exit (1);
3802 if (write (fd, data, pagesize) != pagesize)
3803 exit (1);
3804 close (fd);
3805
3806 /* Next, try to mmap the file at a fixed address which already has
3807 something else allocated at it. If we can, also make sure that
3808 we see the same garbage. */
3809 fd = open ("conftest.mmap", O_RDWR);
3810 if (fd < 0)
3811 exit (1);
3812 data2 = (char *) malloc (2 * pagesize);
3813 if (!data2)
3814 exit (1);
3815 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
3816 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
3817 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3818 exit (1);
3819 for (i = 0; i < pagesize; ++i)
3820 if (*(data + i) != *(data2 + i))
3821 exit (1);
3822
3823 /* Finally, make sure that changes to the mapped area do not
3824 percolate back to the file as seen by read(). (This is a bug on
3825 some variants of i386 svr4.0.) */
3826 for (i = 0; i < pagesize; ++i)
3827 *(data2 + i) = *(data2 + i) + 1;
3828 data3 = (char *) malloc (pagesize);
3829 if (!data3)
3830 exit (1);
3831 if (read (fd, data3, pagesize) != pagesize)
3832 exit (1);
3833 for (i = 0; i < pagesize; ++i)
3834 if (*(data + i) != *(data3 + i))
3835 exit (1);
3836 close (fd);
3837 exit (0);
3838}
3839_ACEOF
3840rm -f conftest$ac_exeext
3841if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3842 (eval $ac_link) 2>&5
3843 ac_status=$?
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3847 (eval $ac_try) 2>&5
3848 ac_status=$?
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); }; }; then
3851 ac_cv_func_mmap_fixed_mapped=yes
3852else
3853 echo "$as_me: program exited with status $ac_status" >&5
3854echo "$as_me: failed program was:" >&5
3855sed 's/^/| /' conftest.$ac_ext >&5
3856
3857( exit $ac_status )
3858ac_cv_func_mmap_fixed_mapped=no
3859fi
3860rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3861fi
3862fi
3863echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
3864echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
3865if test $ac_cv_func_mmap_fixed_mapped = yes; then
3866
3867cat >>confdefs.h <<\_ACEOF
3868#define HAVE_MMAP 1
3869_ACEOF
3870
3871fi
3872rm -f conftest.mmap
3873
3874
3875
3876for ac_func in memcpy strerror
3877do
3878as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3879echo "$as_me:$LINENO: checking for $ac_func" >&5
3880echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3881if eval "test \"\${$as_ac_var+set}\" = set"; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
3883else
3884 cat >conftest.$ac_ext <<_ACEOF
3885/* confdefs.h. */
3886_ACEOF
3887cat confdefs.h >>conftest.$ac_ext
3888cat >>conftest.$ac_ext <<_ACEOF
3889/* end confdefs.h. */
3890/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3892#define $ac_func innocuous_$ac_func
3893
3894/* System header to define __stub macros and hopefully few prototypes,
3895 which can conflict with char $ac_func (); below.
3896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3897 <limits.h> exists even on freestanding compilers. */
3898
3899#ifdef __STDC__
3900# include <limits.h>
3901#else
3902# include <assert.h>
3903#endif
3904
3905#undef $ac_func
3906
3907/* Override any gcc2 internal prototype to avoid an error. */
3908#ifdef __cplusplus
3909extern "C"
3910{
3911#endif
3912/* We use char because int might match the return type of a gcc2
3913 builtin and then its argument prototype would still apply. */
3914char $ac_func ();
3915/* The GNU C library defines this for functions which it implements
3916 to always fail with ENOSYS. Some functions are actually named
3917 something starting with __ and the normal name is an alias. */
3918#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3919choke me
3920#else
3921char (*f) () = $ac_func;
3922#endif
3923#ifdef __cplusplus
3924}
3925#endif
3926
3927int
3928main ()
3929{
3930return f != $ac_func;
3931 ;
3932 return 0;
3933}
3934_ACEOF
3935rm -f conftest.$ac_objext conftest$ac_exeext
3936if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3937 (eval $ac_link) 2>conftest.er1
3938 ac_status=$?
3939 grep -v '^ *+' conftest.er1 >conftest.err
3940 rm -f conftest.er1
3941 cat conftest.err >&5
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); } &&
3944 { ac_try='test -z "$ac_c_werror_flag"
3945 || test ! -s conftest.err'
3946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3947 (eval $ac_try) 2>&5
3948 ac_status=$?
3949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3950 (exit $ac_status); }; } &&
3951 { ac_try='test -s conftest$ac_exeext'
3952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3953 (eval $ac_try) 2>&5
3954 ac_status=$?
3955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956 (exit $ac_status); }; }; then
3957 eval "$as_ac_var=yes"
3958else
3959 echo "$as_me: failed program was:" >&5
3960sed 's/^/| /' conftest.$ac_ext >&5
3961
3962eval "$as_ac_var=no"
3963fi
3964rm -f conftest.err conftest.$ac_objext \
3965 conftest$ac_exeext conftest.$ac_ext
3966fi
3967echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3968echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3969if test `eval echo '${'$as_ac_var'}'` = yes; then
3970 cat >>confdefs.h <<_ACEOF
3971#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3972_ACEOF
3973
3974fi
3975done
3976
3977
3978 if test "$with_system_zlib" = yes; then
3979 echo "$as_me:$LINENO: checking for deflate" >&5
3980echo $ECHO_N "checking for deflate... $ECHO_C" >&6
3981if test "${ac_cv_func_deflate+set}" = set; then
3982 echo $ECHO_N "(cached) $ECHO_C" >&6
3983else
3984 cat >conftest.$ac_ext <<_ACEOF
3985/* confdefs.h. */
3986_ACEOF
3987cat confdefs.h >>conftest.$ac_ext
3988cat >>conftest.$ac_ext <<_ACEOF
3989/* end confdefs.h. */
3990/* Define deflate to an innocuous variant, in case <limits.h> declares deflate.
3991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3992#define deflate innocuous_deflate
3993
3994/* System header to define __stub macros and hopefully few prototypes,
3995 which can conflict with char deflate (); below.
3996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3997 <limits.h> exists even on freestanding compilers. */
3998
3999#ifdef __STDC__
4000# include <limits.h>
4001#else
4002# include <assert.h>
4003#endif
4004
4005#undef deflate
4006
4007/* Override any gcc2 internal prototype to avoid an error. */
4008#ifdef __cplusplus
4009extern "C"
4010{
4011#endif
4012/* We use char because int might match the return type of a gcc2
4013 builtin and then its argument prototype would still apply. */
4014char deflate ();
4015/* The GNU C library defines this for functions which it implements
4016 to always fail with ENOSYS. Some functions are actually named
4017 something starting with __ and the normal name is an alias. */
4018#if defined (__stub_deflate) || defined (__stub___deflate)
4019choke me
4020#else
4021char (*f) () = deflate;
4022#endif
4023#ifdef __cplusplus
4024}
4025#endif
4026
4027int
4028main ()
4029{
4030return f != deflate;
4031 ;
4032 return 0;
4033}
4034_ACEOF
4035rm -f conftest.$ac_objext conftest$ac_exeext
4036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4037 (eval $ac_link) 2>conftest.er1
4038 ac_status=$?
4039 grep -v '^ *+' conftest.er1 >conftest.err
4040 rm -f conftest.er1
4041 cat conftest.err >&5
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); } &&
4044 { ac_try='test -z "$ac_c_werror_flag"
4045 || test ! -s conftest.err'
4046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4047 (eval $ac_try) 2>&5
4048 ac_status=$?
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); }; } &&
4051 { ac_try='test -s conftest$ac_exeext'
4052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4053 (eval $ac_try) 2>&5
4054 ac_status=$?
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); }; }; then
4057 ac_cv_func_deflate=yes
4058else
4059 echo "$as_me: failed program was:" >&5
4060sed 's/^/| /' conftest.$ac_ext >&5
4061
4062ac_cv_func_deflate=no
4063fi
4064rm -f conftest.err conftest.$ac_objext \
4065 conftest$ac_exeext conftest.$ac_ext
4066fi
4067echo "$as_me:$LINENO: result: $ac_cv_func_deflate" >&5
4068echo "${ECHO_T}$ac_cv_func_deflate" >&6
4069
4070echo "$as_me:$LINENO: checking for deflate in -lz" >&5
4071echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
4072if test "${ac_cv_lib_z_deflate+set}" = set; then
4073 echo $ECHO_N "(cached) $ECHO_C" >&6
4074else
4075 ac_check_lib_save_LIBS=$LIBS
4076LIBS="-lz $LIBS"
4077if test "$ac_cv_func_deflate" = yes; then
4078 ac_cv_lib_z_deflate=no
4079else
4080 cat >conftest.$ac_ext <<_ACEOF
4081/* confdefs.h. */
4082_ACEOF
4083cat confdefs.h >>conftest.$ac_ext
4084cat >>conftest.$ac_ext <<_ACEOF
4085/* end confdefs.h. */
4086
4087/* Override any gcc2 internal prototype to avoid an error. */
4088#ifdef __cplusplus
4089extern "C"
4090#endif
4091/* We use char because int might match the return type of a gcc2
4092 builtin and then its argument prototype would still apply. */
4093char deflate ();
4094int
4095main ()
4096{
4097deflate ();
4098 ;
4099 return 0;
4100}
4101_ACEOF
4102rm -f conftest.$ac_objext conftest$ac_exeext
4103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4104 (eval $ac_link) 2>conftest.er1
4105 ac_status=$?
4106 grep -v '^ *+' conftest.er1 >conftest.err
4107 rm -f conftest.er1
4108 cat conftest.err >&5
4109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); } &&
4111 { ac_try='test -z "$ac_c_werror_flag"
4112 || test ! -s conftest.err'
4113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4114 (eval $ac_try) 2>&5
4115 ac_status=$?
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); }; } &&
4118 { ac_try='test -s conftest$ac_exeext'
4119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4120 (eval $ac_try) 2>&5
4121 ac_status=$?
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); }; }; then
4124 ac_cv_lib_z_deflate=yes
4125else
4126 echo "$as_me: failed program was:" >&5
4127sed 's/^/| /' conftest.$ac_ext >&5
4128
4129ac_cv_lib_z_deflate=no
4130fi
4131rm -f conftest.err conftest.$ac_objext \
4132 conftest$ac_exeext conftest.$ac_ext
4133fi
4134LIBS=$ac_check_lib_save_LIBS
4135fi
4136echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
4137echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
4138if test $ac_cv_lib_z_deflate = yes; then
4139 target_all=
4140else
4141 target_all=libzgcj.la
4142fi
4143
4144 else
4145 target_all=libzgcj.la
4146 fi
4147fi
4148
4149
4150
4151
4152for ac_header in unistd.h
4153do
4154as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4155if eval "test \"\${$as_ac_Header+set}\" = set"; then
4156 echo "$as_me:$LINENO: checking for $ac_header" >&5
4157echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4158if eval "test \"\${$as_ac_Header+set}\" = set"; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4160fi
4161echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4162echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4163else
4164 # Is the header compilable?
4165echo "$as_me:$LINENO: checking $ac_header usability" >&5
4166echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4167cat >conftest.$ac_ext <<_ACEOF
4168/* confdefs.h. */
4169_ACEOF
4170cat confdefs.h >>conftest.$ac_ext
4171cat >>conftest.$ac_ext <<_ACEOF
4172/* end confdefs.h. */
4173$ac_includes_default
4174#include <$ac_header>
4175_ACEOF
4176rm -f conftest.$ac_objext
4177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4178 (eval $ac_compile) 2>conftest.er1
4179 ac_status=$?
4180 grep -v '^ *+' conftest.er1 >conftest.err
4181 rm -f conftest.er1
4182 cat conftest.err >&5
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); } &&
4185 { ac_try='test -z "$ac_c_werror_flag"
4186 || test ! -s conftest.err'
4187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4188 (eval $ac_try) 2>&5
4189 ac_status=$?
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); }; } &&
4192 { ac_try='test -s conftest.$ac_objext'
4193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4194 (eval $ac_try) 2>&5
4195 ac_status=$?
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); }; }; then
4198 ac_header_compiler=yes
4199else
4200 echo "$as_me: failed program was:" >&5
4201sed 's/^/| /' conftest.$ac_ext >&5
4202
4203ac_header_compiler=no
4204fi
4205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4206echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4207echo "${ECHO_T}$ac_header_compiler" >&6
4208
4209# Is the header present?
4210echo "$as_me:$LINENO: checking $ac_header presence" >&5
4211echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4212cat >conftest.$ac_ext <<_ACEOF
4213/* confdefs.h. */
4214_ACEOF
4215cat confdefs.h >>conftest.$ac_ext
4216cat >>conftest.$ac_ext <<_ACEOF
4217/* end confdefs.h. */
4218#include <$ac_header>
4219_ACEOF
4220if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4221 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4222 ac_status=$?
4223 grep -v '^ *+' conftest.er1 >conftest.err
4224 rm -f conftest.er1
4225 cat conftest.err >&5
4226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4227 (exit $ac_status); } >/dev/null; then
4228 if test -s conftest.err; then
4229 ac_cpp_err=$ac_c_preproc_warn_flag
4230 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4231 else
4232 ac_cpp_err=
4233 fi
4234else
4235 ac_cpp_err=yes
4236fi
4237if test -z "$ac_cpp_err"; then
4238 ac_header_preproc=yes
4239else
4240 echo "$as_me: failed program was:" >&5
4241sed 's/^/| /' conftest.$ac_ext >&5
4242
4243 ac_header_preproc=no
4244fi
4245rm -f conftest.err conftest.$ac_ext
4246echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4247echo "${ECHO_T}$ac_header_preproc" >&6
4248
4249# So? What about this header?
4250case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4251 yes:no: )
4252 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4253echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4255echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4256 ac_header_preproc=yes
4257 ;;
4258 no:yes:* )
4259 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4260echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4261 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4262echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4263 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4264echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4265 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4266echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4268echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4269 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4270echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4271 (
4272 cat <<\_ASBOX
4273## ------------------------------------------ ##
4274## Report this to the AC_PACKAGE_NAME lists. ##
4275## ------------------------------------------ ##
4276_ASBOX
4277 ) |
4278 sed "s/^/$as_me: WARNING: /" >&2
4279 ;;
4280esac
4281echo "$as_me:$LINENO: checking for $ac_header" >&5
4282echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4283if eval "test \"\${$as_ac_Header+set}\" = set"; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4285else
4286 eval "$as_ac_Header=\$ac_header_preproc"
4287fi
4288echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4289echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4290
4291fi
4292if test `eval echo '${'$as_ac_Header'}'` = yes; then
4293 cat >>confdefs.h <<_ACEOF
4294#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4295_ACEOF
4296
4297fi
4298
4299done
4300
4301
4302if test -n "$with_cross_host" &&
4303 test x"$with_cross_host" != x"no"; then
4304 toolexecdir='$(exec_prefix)/$(target_alias)'
4305 toolexeclibdir='$(toolexecdir)/lib'
4306else
4307 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4308 toolexeclibdir='$(libdir)'
4309fi
4310toolexeclibdir=$toolexeclibdir/`$CC -print-multi-os-directory 2>/dev/null || echo .`
4311
4312
4313
4314
4315
4316if test -n "$with_target_subdir"; then
4317 TARGET_LIBRARY_TRUE=
4318 TARGET_LIBRARY_FALSE='#'
4319else
4320 TARGET_LIBRARY_TRUE='#'
4321 TARGET_LIBRARY_FALSE=
4322fi
4323
4324if test "${multilib}" = "yes"; then
4325 multilib_arg="--enable-multilib"
4326else
4327 multilib_arg=
4328fi
4329
4330 ac_config_files="$ac_config_files Makefile"
4331 ac_config_commands="$ac_config_commands default"
4332cat >confcache <<\_ACEOF
4333# This file is a shell script that caches the results of configure
4334# tests run on this system so they can be shared between configure
4335# scripts and configure runs, see configure's option --config-cache.
4336# It is not useful on other systems. If it contains results you don't
4337# want to keep, you may remove or edit it.
4338#
4339# config.status only pays attention to the cache file if you give it
4340# the --recheck option to rerun configure.
4341#
4342# `ac_cv_env_foo' variables (set or unset) will be overridden when
4343# loading this file, other *unset* `ac_cv_foo' will be assigned the
4344# following values.
4345
4346_ACEOF
4347
4348# The following way of writing the cache mishandles newlines in values,
4349# but we know of no workaround that is simple, portable, and efficient.
4350# So, don't put newlines in cache variables' values.
4351# Ultrix sh set writes to stderr and can't be redirected directly,
4352# and sets the high bit in the cache file unless we assign to the vars.
4353{
4354 (set) 2>&1 |
4355 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4356 *ac_space=\ *)
4357 # `set' does not quote correctly, so add quotes (double-quote
4358 # substitution turns \\\\ into \\, and sed turns \\ into \).
4359 sed -n \
4360 "s/'/'\\\\''/g;
4361 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4362 ;;
4363 *)
4364 # `set' quotes correctly as required by POSIX, so do not add quotes.
4365 sed -n \
4366 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4367 ;;
4368 esac;
4369} |
4370 sed '
4371 t clear
4372 : clear
4373 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4374 t end
4375 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4376 : end' >>confcache
4377if diff $cache_file confcache >/dev/null 2>&1; then :; else
4378 if test -w $cache_file; then
4379 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4380 cat confcache >$cache_file
4381 else
4382 echo "not updating unwritable cache $cache_file"
4383 fi
4384fi
4385rm -f confcache
4386
4387test "x$prefix" = xNONE && prefix=$ac_default_prefix
4388# Let make expand exec_prefix.
4389test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4390
4391# VPATH may cause trouble with some makes, so we remove $(srcdir),
4392# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4393# trailing colons and then remove the whole line if VPATH becomes empty
4394# (actually we leave an empty line to preserve line numbers).
4395if test "x$srcdir" = x.; then
4396 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4397s/:*\$(srcdir):*/:/;
4398s/:*\${srcdir}:*/:/;
4399s/:*@srcdir@:*/:/;
4400s/^\([^=]*=[ ]*\):*/\1/;
4401s/:*$//;
4402s/^[^=]*=[ ]*$//;
4403}'
4404fi
4405
4406# Transform confdefs.h into DEFS.
4407# Protect against shell expansion while executing Makefile rules.
4408# Protect against Makefile macro expansion.
4409#
4410# If the first sed substitution is executed (which looks for macros that
4411# take arguments), then we branch to the quote section. Otherwise,
4412# look for a macro that doesn't take arguments.
4413cat >confdef2opt.sed <<\_ACEOF
4414t clear
4415: clear
4416s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
4417t quote
4418s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
4419t quote
4420d
4421: quote
4422s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
4423s,\[,\\&,g
4424s,\],\\&,g
4425s,\$,$$,g
4426p
4427_ACEOF
4428# We use echo to avoid assuming a particular line-breaking character.
4429# The extra dot is to prevent the shell from consuming trailing
4430# line-breaks from the sub-command output. A line-break within
4431# single-quotes doesn't work because, if this script is created in a
4432# platform that uses two characters for line-breaks (e.g., DOS), tr
4433# would break.
4434ac_LF_and_DOT=`echo; echo .`
4435DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
4436rm -f confdef2opt.sed
4437
4438
4439ac_libobjs=
4440ac_ltlibobjs=
4441for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4442 # 1. Remove the extension, and $U if already installed.
4443 ac_i=`echo "$ac_i" |
4444 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4445 # 2. Add them.
4446 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4447 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4448done
4449LIBOBJS=$ac_libobjs
4450
4451LTLIBOBJS=$ac_ltlibobjs
4452
4453
4454
4455: ${CONFIG_STATUS=./config.status}
4456ac_clean_files_save=$ac_clean_files
4457ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4458{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4459echo "$as_me: creating $CONFIG_STATUS" >&6;}
4460cat >$CONFIG_STATUS <<_ACEOF
4461#! $SHELL
4462# Generated by $as_me.
4463# Run this file to recreate the current configuration.
4464# Compiler output produced by configure, useful for debugging
4465# configure, is in config.log if it exists.
4466
4467debug=false
4468ac_cs_recheck=false
4469ac_cs_silent=false
4470SHELL=\${CONFIG_SHELL-$SHELL}
4471_ACEOF
4472
4473cat >>$CONFIG_STATUS <<\_ACEOF
4474## --------------------- ##
4475## M4sh Initialization. ##
4476## --------------------- ##
4477
4478# Be Bourne compatible
4479if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4480 emulate sh
4481 NULLCMD=:
4482 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4483 # is contrary to our usage. Disable this feature.
4484 alias -g '${1+"$@"}'='"$@"'
4485elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4486 set -o posix
4487fi
4488DUALCASE=1; export DUALCASE # for MKS sh
4489
4490# Support unset when possible.
4491if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4492 as_unset=unset
4493else
4494 as_unset=false
4495fi
4496
4497
4498# Work around bugs in pre-3.0 UWIN ksh.
4499$as_unset ENV MAIL MAILPATH
4500PS1='$ '
4501PS2='> '
4502PS4='+ '
4503
4504# NLS nuisances.
4505for as_var in \
4506 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4507 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4508 LC_TELEPHONE LC_TIME
4509do
4510 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4511 eval $as_var=C; export $as_var
4512 else
4513 $as_unset $as_var
4514 fi
4515done
4516
4517# Required to use basename.
4518if expr a : '\(a\)' >/dev/null 2>&1; then
4519 as_expr=expr
4520else
4521 as_expr=false
4522fi
4523
4524if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4525 as_basename=basename
4526else
4527 as_basename=false
4528fi
4529
4530
4531# Name of the executable.
4532as_me=`$as_basename "$0" ||
4533$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4534 X"$0" : 'X\(//\)$' \| \
4535 X"$0" : 'X\(/\)$' \| \
4536 . : '\(.\)' 2>/dev/null ||
4537echo X/"$0" |
4538 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4539 /^X\/\(\/\/\)$/{ s//\1/; q; }
4540 /^X\/\(\/\).*/{ s//\1/; q; }
4541 s/.*/./; q'`
4542
4543
4544# PATH needs CR, and LINENO needs CR and PATH.
4545# Avoid depending upon Character Ranges.
4546as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4547as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4548as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4549as_cr_digits='0123456789'
4550as_cr_alnum=$as_cr_Letters$as_cr_digits
4551
4552# The user is always right.
4553if test "${PATH_SEPARATOR+set}" != set; then
4554 echo "#! /bin/sh" >conf$$.sh
4555 echo "exit 0" >>conf$$.sh
4556 chmod +x conf$$.sh
4557 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4558 PATH_SEPARATOR=';'
4559 else
4560 PATH_SEPARATOR=:
4561 fi
4562 rm -f conf$$.sh
4563fi
4564
4565
4566 as_lineno_1=$LINENO
4567 as_lineno_2=$LINENO
4568 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4569 test "x$as_lineno_1" != "x$as_lineno_2" &&
4570 test "x$as_lineno_3" = "x$as_lineno_2" || {
4571 # Find who we are. Look in the path if we contain no path at all
4572 # relative or not.
4573 case $0 in
4574 *[\\/]* ) as_myself=$0 ;;
4575 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576for as_dir in $PATH
4577do
4578 IFS=$as_save_IFS
4579 test -z "$as_dir" && as_dir=.
4580 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4581done
4582
4583 ;;
4584 esac
4585 # We did not find ourselves, most probably we were run as `sh COMMAND'
4586 # in which case we are not to be found in the path.
4587 if test "x$as_myself" = x; then
4588 as_myself=$0
4589 fi
4590 if test ! -f "$as_myself"; then
4591 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4592echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4593 { (exit 1); exit 1; }; }
4594 fi
4595 case $CONFIG_SHELL in
4596 '')
4597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4599do
4600 IFS=$as_save_IFS
4601 test -z "$as_dir" && as_dir=.
4602 for as_base in sh bash ksh sh5; do
4603 case $as_dir in
4604 /*)
4605 if ("$as_dir/$as_base" -c '
4606 as_lineno_1=$LINENO
4607 as_lineno_2=$LINENO
4608 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4609 test "x$as_lineno_1" != "x$as_lineno_2" &&
4610 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4611 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4612 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4613 CONFIG_SHELL=$as_dir/$as_base
4614 export CONFIG_SHELL
4615 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4616 fi;;
4617 esac
4618 done
4619done
4620;;
4621 esac
4622
4623 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4624 # uniformly replaced by the line number. The first 'sed' inserts a
4625 # line-number line before each line; the second 'sed' does the real
4626 # work. The second script uses 'N' to pair each line-number line
4627 # with the numbered line, and appends trailing '-' during
4628 # substitution so that $LINENO is not a special case at line end.
4629 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4630 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4631 sed '=' <$as_myself |
4632 sed '
4633 N
4634 s,$,-,
4635 : loop
4636 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4637 t loop
4638 s,-$,,
4639 s,^['$as_cr_digits']*\n,,
4640 ' >$as_me.lineno &&
4641 chmod +x $as_me.lineno ||
4642 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4643echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4644 { (exit 1); exit 1; }; }
4645
4646 # Don't try to exec as it changes $[0], causing all sort of problems
4647 # (the dirname of $[0] is not the place where we might find the
4648 # original and so on. Autoconf is especially sensible to this).
4649 . ./$as_me.lineno
4650 # Exit status is that of the last command.
4651 exit
4652}
4653
4654
4655case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4656 *c*,-n*) ECHO_N= ECHO_C='
4657' ECHO_T=' ' ;;
4658 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4659 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4660esac
4661
4662if expr a : '\(a\)' >/dev/null 2>&1; then
4663 as_expr=expr
4664else
4665 as_expr=false
4666fi
4667
4668rm -f conf$$ conf$$.exe conf$$.file
4669echo >conf$$.file
4670if ln -s conf$$.file conf$$ 2>/dev/null; then
4671 # We could just check for DJGPP; but this test a) works b) is more generic
4672 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4673 if test -f conf$$.exe; then
4674 # Don't use ln at all; we don't have any links
4675 as_ln_s='cp -p'
4676 else
4677 as_ln_s='ln -s'
4678 fi
4679elif ln conf$$.file conf$$ 2>/dev/null; then
4680 as_ln_s=ln
4681else
4682 as_ln_s='cp -p'
4683fi
4684rm -f conf$$ conf$$.exe conf$$.file
4685
4686if mkdir -p . 2>/dev/null; then
4687 as_mkdir_p=:
4688else
4689 test -d ./-p && rmdir ./-p
4690 as_mkdir_p=false
4691fi
4692
4693as_executable_p="test -f"
4694
4695# Sed expression to map a string onto a valid CPP name.
4696as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4697
4698# Sed expression to map a string onto a valid variable name.
4699as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4700
4701
4702# IFS
4703# We need space, tab and new line, in precisely that order.
4704as_nl='
4705'
4706IFS=" $as_nl"
4707
4708# CDPATH.
4709$as_unset CDPATH
4710
4711exec 6>&1
4712
4713# Open the log real soon, to keep \$[0] and so on meaningful, and to
4714# report actual input values of CONFIG_FILES etc. instead of their
4715# values after options handling. Logging --version etc. is OK.
4716exec 5>>config.log
4717{
4718 echo
4719 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4720## Running $as_me. ##
4721_ASBOX
4722} >&5
4723cat >&5 <<_CSEOF
4724
4725This file was extended by $as_me, which was
4726generated by GNU Autoconf 2.59. Invocation command line was
4727
4728 CONFIG_FILES = $CONFIG_FILES
4729 CONFIG_HEADERS = $CONFIG_HEADERS
4730 CONFIG_LINKS = $CONFIG_LINKS
4731 CONFIG_COMMANDS = $CONFIG_COMMANDS
4732 $ $0 $@
4733
4734_CSEOF
4735echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4736echo >&5
4737_ACEOF
4738
4739# Files that config.status was made for.
4740if test -n "$ac_config_files"; then
4741 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4742fi
4743
4744if test -n "$ac_config_headers"; then
4745 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4746fi
4747
4748if test -n "$ac_config_links"; then
4749 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4750fi
4751
4752if test -n "$ac_config_commands"; then
4753 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4754fi
4755
4756cat >>$CONFIG_STATUS <<\_ACEOF
4757
4758ac_cs_usage="\
4759\`$as_me' instantiates files from templates according to the
4760current configuration.
4761
4762Usage: $0 [OPTIONS] [FILE]...
4763
4764 -h, --help print this help, then exit
4765 -V, --version print version number, then exit
4766 -q, --quiet do not print progress messages
4767 -d, --debug don't remove temporary files
4768 --recheck update $as_me by reconfiguring in the same conditions
4769 --file=FILE[:TEMPLATE]
4770 instantiate the configuration file FILE
4771
4772Configuration files:
4773$config_files
4774
4775Configuration commands:
4776$config_commands
4777
4778Report bugs to <bug-autoconf@gnu.org>."
4779_ACEOF
4780
4781cat >>$CONFIG_STATUS <<_ACEOF
4782ac_cs_version="\\
4783config.status
4784configured by $0, generated by GNU Autoconf 2.59,
4785 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4786
4787Copyright (C) 2003 Free Software Foundation, Inc.
4788This config.status script is free software; the Free Software Foundation
4789gives unlimited permission to copy, distribute and modify it."
4790srcdir=$srcdir
4791INSTALL="$INSTALL"
4792_ACEOF
4793
4794cat >>$CONFIG_STATUS <<\_ACEOF
4795# If no file are specified by the user, then we need to provide default
4796# value. By we need to know if files were specified by the user.
4797ac_need_defaults=:
4798while test $# != 0
4799do
4800 case $1 in
4801 --*=*)
4802 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4803 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4804 ac_shift=:
4805 ;;
4806 -*)
4807 ac_option=$1
4808 ac_optarg=$2
4809 ac_shift=shift
4810 ;;
4811 *) # This is not an option, so the user has probably given explicit
4812 # arguments.
4813 ac_option=$1
4814 ac_need_defaults=false;;
4815 esac
4816
4817 case $ac_option in
4818 # Handling of the options.
4819_ACEOF
4820cat >>$CONFIG_STATUS <<\_ACEOF
4821 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4822 ac_cs_recheck=: ;;
4823 --version | --vers* | -V )
4824 echo "$ac_cs_version"; exit 0 ;;
4825 --he | --h)
4826 # Conflict between --help and --header
4827 { { echo "$as_me:$LINENO: error: ambiguous option: $1
4828Try \`$0 --help' for more information." >&5
4829echo "$as_me: error: ambiguous option: $1
4830Try \`$0 --help' for more information." >&2;}
4831 { (exit 1); exit 1; }; };;
4832 --help | --hel | -h )
4833 echo "$ac_cs_usage"; exit 0 ;;
4834 --debug | --d* | -d )
4835 debug=: ;;
4836 --file | --fil | --fi | --f )
4837 $ac_shift
4838 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4839 ac_need_defaults=false;;
4840 --header | --heade | --head | --hea )
4841 $ac_shift
4842 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4843 ac_need_defaults=false;;
4844 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4845 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4846 ac_cs_silent=: ;;
4847
4848 # This is an error.
4849 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4850Try \`$0 --help' for more information." >&5
4851echo "$as_me: error: unrecognized option: $1
4852Try \`$0 --help' for more information." >&2;}
4853 { (exit 1); exit 1; }; } ;;
4854
4855 *) ac_config_targets="$ac_config_targets $1" ;;
4856
4857 esac
4858 shift
4859done
4860
4861ac_configure_extra_args=
4862
4863if $ac_cs_silent; then
4864 exec 6>/dev/null
4865 ac_configure_extra_args="$ac_configure_extra_args --silent"
4866fi
4867
4868_ACEOF
4869cat >>$CONFIG_STATUS <<_ACEOF
4870if \$ac_cs_recheck; then
4871 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4872 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4873fi
4874
4875_ACEOF
4876
4877cat >>$CONFIG_STATUS <<_ACEOF
4878#
4879# INIT-COMMANDS section.
4880#
4881
4882srcdir=${srcdir}
4883host=${host}
4884target=${target}
4885with_multisubdir=${with_multisubdir}
4886ac_configure_args="${multilib_arg} ${ac_configure_args}"
4887CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
4888zlib_basedir=${zlib_basedir}
4889CC="${CC}"
4890CXX="${CXX}"
4891
4892
4893_ACEOF
4894
4895
4896
4897cat >>$CONFIG_STATUS <<\_ACEOF
4898for ac_config_target in $ac_config_targets
4899do
4900 case "$ac_config_target" in
4901 # Handling of arguments.
4902 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4903 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
4904 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4905echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4906 { (exit 1); exit 1; }; };;
4907 esac
4908done
4909
4910# If the user did not use the arguments to specify the items to instantiate,
4911# then the envvar interface is used. Set only those that are not.
4912# We use the long form for the default assignment because of an extremely
4913# bizarre bug on SunOS 4.1.3.
4914if $ac_need_defaults; then
4915 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4916 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4917fi
4918
4919# Have a temporary directory for convenience. Make it in the build tree
4920# simply because there is no reason to put it here, and in addition,
4921# creating and moving files from /tmp can sometimes cause problems.
4922# Create a temporary directory, and hook for its removal unless debugging.
4923$debug ||
4924{
4925 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4926 trap '{ (exit 1); exit 1; }' 1 2 13 15
4927}
4928
4929# Create a (secure) tmp directory for tmp files.
4930
4931{
4932 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4933 test -n "$tmp" && test -d "$tmp"
4934} ||
4935{
4936 tmp=./confstat$$-$RANDOM
4937 (umask 077 && mkdir $tmp)
4938} ||
4939{
4940 echo "$me: cannot create a temporary directory in ." >&2
4941 { (exit 1); exit 1; }
4942}
4943
4944_ACEOF
4945
4946cat >>$CONFIG_STATUS <<_ACEOF
4947
4948#
4949# CONFIG_FILES section.
4950#
4951
4952# No need to generate the scripts if there are no CONFIG_FILES.
4953# This happens for instance when ./config.status config.h
4954if test -n "\$CONFIG_FILES"; then
4955 # Protect against being on the right side of a sed subst in config.status.
4956 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4957 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4958s,@SHELL@,$SHELL,;t t
4959s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4960s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4961s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4962s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4963s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4964s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4965s,@exec_prefix@,$exec_prefix,;t t
4966s,@prefix@,$prefix,;t t
4967s,@program_transform_name@,$program_transform_name,;t t
4968s,@bindir@,$bindir,;t t
4969s,@sbindir@,$sbindir,;t t
4970s,@libexecdir@,$libexecdir,;t t
4971s,@datadir@,$datadir,;t t
4972s,@sysconfdir@,$sysconfdir,;t t
4973s,@sharedstatedir@,$sharedstatedir,;t t
4974s,@localstatedir@,$localstatedir,;t t
4975s,@libdir@,$libdir,;t t
4976s,@includedir@,$includedir,;t t
4977s,@oldincludedir@,$oldincludedir,;t t
4978s,@infodir@,$infodir,;t t
4979s,@mandir@,$mandir,;t t
4980s,@build_alias@,$build_alias,;t t
4981s,@host_alias@,$host_alias,;t t
4982s,@target_alias@,$target_alias,;t t
4983s,@DEFS@,$DEFS,;t t
4984s,@ECHO_C@,$ECHO_C,;t t
4985s,@ECHO_N@,$ECHO_N,;t t
4986s,@ECHO_T@,$ECHO_T,;t t
4987s,@LIBS@,$LIBS,;t t
4988s,@zlib_basedir@,$zlib_basedir,;t t
4989s,@build@,$build,;t t
4990s,@build_cpu@,$build_cpu,;t t
4991s,@build_vendor@,$build_vendor,;t t
4992s,@build_os@,$build_os,;t t
4993s,@host@,$host,;t t
4994s,@host_cpu@,$host_cpu,;t t
4995s,@host_vendor@,$host_vendor,;t t
4996s,@host_os@,$host_os,;t t
4997s,@target@,$target,;t t
4998s,@target_cpu@,$target_cpu,;t t
4999s,@target_vendor@,$target_vendor,;t t
5000s,@target_os@,$target_os,;t t
5001s,@mkinstalldirs@,$mkinstalldirs,;t t
5002s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5003s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5004s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5005s,@PACKAGE@,$PACKAGE,;t t
5006s,@VERSION@,$VERSION,;t t
5007s,@ACLOCAL@,$ACLOCAL,;t t
5008s,@AUTOCONF@,$AUTOCONF,;t t
5009s,@AUTOMAKE@,$AUTOMAKE,;t t
5010s,@AUTOHEADER@,$AUTOHEADER,;t t
5011s,@MAKEINFO@,$MAKEINFO,;t t
5012s,@SET_MAKE@,$SET_MAKE,;t t
5013s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
5014s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
5015s,@MAINT@,$MAINT,;t t
5016s,@CC@,$CC,;t t
5017s,@LN_S@,$LN_S,;t t
5018s,@RANLIB@,$RANLIB,;t t
5019s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5020s,@STRIP@,$STRIP,;t t
5021s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
5022s,@LIBTOOL@,$LIBTOOL,;t t
5023s,@COMPPATH@,$COMPPATH,;t t
5024s,@CPP@,$CPP,;t t
5025s,@CPPFLAGS@,$CPPFLAGS,;t t
5026s,@EGREP@,$EGREP,;t t
5027s,@target_all@,$target_all,;t t
5028s,@toolexecdir@,$toolexecdir,;t t
5029s,@toolexeclibdir@,$toolexeclibdir,;t t
5030s,@TARGET_LIBRARY_TRUE@,$TARGET_LIBRARY_TRUE,;t t
5031s,@TARGET_LIBRARY_FALSE@,$TARGET_LIBRARY_FALSE,;t t
5032s,@LIBOBJS@,$LIBOBJS,;t t
5033s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5034CEOF
5035
5036_ACEOF
5037
5038 cat >>$CONFIG_STATUS <<\_ACEOF
5039 # Split the substitutions into bite-sized pieces for seds with
5040 # small command number limits, like on Digital OSF/1 and HP-UX.
5041 ac_max_sed_lines=48
5042 ac_sed_frag=1 # Number of current file.
5043 ac_beg=1 # First line for current file.
5044 ac_end=$ac_max_sed_lines # Line after last line for current file.
5045 ac_more_lines=:
5046 ac_sed_cmds=
5047 while $ac_more_lines; do
5048 if test $ac_beg -gt 1; then
5049 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5050 else
5051 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5052 fi
5053 if test ! -s $tmp/subs.frag; then
5054 ac_more_lines=false
5055 else
5056 # The purpose of the label and of the branching condition is to
5057 # speed up the sed processing (if there are no `@' at all, there
5058 # is no need to browse any of the substitutions).
5059 # These are the two extra sed commands mentioned above.
5060 (echo ':t
5061 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5062 if test -z "$ac_sed_cmds"; then
5063 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5064 else
5065 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5066 fi
5067 ac_sed_frag=`expr $ac_sed_frag + 1`
5068 ac_beg=$ac_end
5069 ac_end=`expr $ac_end + $ac_max_sed_lines`
5070 fi
5071 done
5072 if test -z "$ac_sed_cmds"; then
5073 ac_sed_cmds=cat
5074 fi
5075fi # test -n "$CONFIG_FILES"
5076
5077_ACEOF
5078cat >>$CONFIG_STATUS <<\_ACEOF
5079for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5080 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5081 case $ac_file in
5082 - | *:- | *:-:* ) # input from stdin
5083 cat >$tmp/stdin
5084 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5085 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5086 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5087 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5088 * ) ac_file_in=$ac_file.in ;;
5089 esac
5090
5091 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5092 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5093$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5094 X"$ac_file" : 'X\(//\)[^/]' \| \
5095 X"$ac_file" : 'X\(//\)$' \| \
5096 X"$ac_file" : 'X\(/\)' \| \
5097 . : '\(.\)' 2>/dev/null ||
5098echo X"$ac_file" |
5099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5100 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5101 /^X\(\/\/\)$/{ s//\1/; q; }
5102 /^X\(\/\).*/{ s//\1/; q; }
5103 s/.*/./; q'`
5104 { if $as_mkdir_p; then
5105 mkdir -p "$ac_dir"
5106 else
5107 as_dir="$ac_dir"
5108 as_dirs=
5109 while test ! -d "$as_dir"; do
5110 as_dirs="$as_dir $as_dirs"
5111 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5112$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5113 X"$as_dir" : 'X\(//\)[^/]' \| \
5114 X"$as_dir" : 'X\(//\)$' \| \
5115 X"$as_dir" : 'X\(/\)' \| \
5116 . : '\(.\)' 2>/dev/null ||
5117echo X"$as_dir" |
5118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5119 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5120 /^X\(\/\/\)$/{ s//\1/; q; }
5121 /^X\(\/\).*/{ s//\1/; q; }
5122 s/.*/./; q'`
5123 done
5124 test ! -n "$as_dirs" || mkdir $as_dirs
5125 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5126echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5127 { (exit 1); exit 1; }; }; }
5128
5129 ac_builddir=.
5130
5131if test "$ac_dir" != .; then
5132 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5133 # A "../" for each directory in $ac_dir_suffix.
5134 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5135else
5136 ac_dir_suffix= ac_top_builddir=
5137fi
5138
5139case $srcdir in
5140 .) # No --srcdir option. We are building in place.
5141 ac_srcdir=.
5142 if test -z "$ac_top_builddir"; then
5143 ac_top_srcdir=.
5144 else
5145 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5146 fi ;;
5147 [\\/]* | ?:[\\/]* ) # Absolute path.
5148 ac_srcdir=$srcdir$ac_dir_suffix;
5149 ac_top_srcdir=$srcdir ;;
5150 *) # Relative path.
5151 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5152 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5153esac
5154
5155# Do not use `cd foo && pwd` to compute absolute paths, because
5156# the directories may not exist.
5157case `pwd` in
5158.) ac_abs_builddir="$ac_dir";;
5159*)
5160 case "$ac_dir" in
5161 .) ac_abs_builddir=`pwd`;;
5162 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5163 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5164 esac;;
5165esac
5166case $ac_abs_builddir in
5167.) ac_abs_top_builddir=${ac_top_builddir}.;;
5168*)
5169 case ${ac_top_builddir}. in
5170 .) ac_abs_top_builddir=$ac_abs_builddir;;
5171 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5172 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5173 esac;;
5174esac
5175case $ac_abs_builddir in
5176.) ac_abs_srcdir=$ac_srcdir;;
5177*)
5178 case $ac_srcdir in
5179 .) ac_abs_srcdir=$ac_abs_builddir;;
5180 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5181 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5182 esac;;
5183esac
5184case $ac_abs_builddir in
5185.) ac_abs_top_srcdir=$ac_top_srcdir;;
5186*)
5187 case $ac_top_srcdir in
5188 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5189 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5190 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5191 esac;;
5192esac
5193
5194
5195 case $INSTALL in
5196 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5197 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5198 esac
5199
5200 if test x"$ac_file" != x-; then
5201 { echo "$as_me:$LINENO: creating $ac_file" >&5
5202echo "$as_me: creating $ac_file" >&6;}
5203 rm -f "$ac_file"
5204 fi
5205 # Let's still pretend it is `configure' which instantiates (i.e., don't
5206 # use $as_me), people would be surprised to read:
5207 # /* config.h. Generated by config.status. */
5208 if test x"$ac_file" = x-; then
5209 configure_input=
5210 else
5211 configure_input="$ac_file. "
5212 fi
5213 configure_input=$configure_input"Generated from `echo $ac_file_in |
5214 sed 's,.*/,,'` by configure."
5215
5216 # First look for the input files in the build tree, otherwise in the
5217 # src tree.
5218 ac_file_inputs=`IFS=:
5219 for f in $ac_file_in; do
5220 case $f in
5221 -) echo $tmp/stdin ;;
5222 [\\/$]*)
5223 # Absolute (can't be DOS-style, as IFS=:)
5224 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5225echo "$as_me: error: cannot find input file: $f" >&2;}
5226 { (exit 1); exit 1; }; }
5227 echo "$f";;
5228 *) # Relative
5229 if test -f "$f"; then
5230 # Build tree
5231 echo "$f"
5232 elif test -f "$srcdir/$f"; then
5233 # Source tree
5234 echo "$srcdir/$f"
5235 else
5236 # /dev/null tree
5237 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5238echo "$as_me: error: cannot find input file: $f" >&2;}
5239 { (exit 1); exit 1; }; }
5240 fi;;
5241 esac
5242 done` || { (exit 1); exit 1; }
5243_ACEOF
5244cat >>$CONFIG_STATUS <<_ACEOF
5245 sed "$ac_vpsub
5246$extrasub
5247_ACEOF
5248cat >>$CONFIG_STATUS <<\_ACEOF
5249:t
5250/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5251s,@configure_input@,$configure_input,;t t
5252s,@srcdir@,$ac_srcdir,;t t
5253s,@abs_srcdir@,$ac_abs_srcdir,;t t
5254s,@top_srcdir@,$ac_top_srcdir,;t t
5255s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5256s,@builddir@,$ac_builddir,;t t
5257s,@abs_builddir@,$ac_abs_builddir,;t t
5258s,@top_builddir@,$ac_top_builddir,;t t
5259s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5260s,@INSTALL@,$ac_INSTALL,;t t
5261" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5262 rm -f $tmp/stdin
5263 if test x"$ac_file" != x-; then
5264 mv $tmp/out $ac_file
5265 else
5266 cat $tmp/out
5267 rm -f $tmp/out
5268 fi
5269
5270done
5271_ACEOF
5272cat >>$CONFIG_STATUS <<\_ACEOF
5273
5274#
5275# CONFIG_COMMANDS section.
5276#
5277for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5278 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5279 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5280 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5281$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5282 X"$ac_dest" : 'X\(//\)[^/]' \| \
5283 X"$ac_dest" : 'X\(//\)$' \| \
5284 X"$ac_dest" : 'X\(/\)' \| \
5285 . : '\(.\)' 2>/dev/null ||
5286echo X"$ac_dest" |
5287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5288 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5289 /^X\(\/\/\)$/{ s//\1/; q; }
5290 /^X\(\/\).*/{ s//\1/; q; }
5291 s/.*/./; q'`
5292 { if $as_mkdir_p; then
5293 mkdir -p "$ac_dir"
5294 else
5295 as_dir="$ac_dir"
5296 as_dirs=
5297 while test ! -d "$as_dir"; do
5298 as_dirs="$as_dir $as_dirs"
5299 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5300$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5301 X"$as_dir" : 'X\(//\)[^/]' \| \
5302 X"$as_dir" : 'X\(//\)$' \| \
5303 X"$as_dir" : 'X\(/\)' \| \
5304 . : '\(.\)' 2>/dev/null ||
5305echo X"$as_dir" |
5306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5307 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5308 /^X\(\/\/\)$/{ s//\1/; q; }
5309 /^X\(\/\).*/{ s//\1/; q; }
5310 s/.*/./; q'`
5311 done
5312 test ! -n "$as_dirs" || mkdir $as_dirs
5313 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5314echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5315 { (exit 1); exit 1; }; }; }
5316
5317 ac_builddir=.
5318
5319if test "$ac_dir" != .; then
5320 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5321 # A "../" for each directory in $ac_dir_suffix.
5322 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5323else
5324 ac_dir_suffix= ac_top_builddir=
5325fi
5326
5327case $srcdir in
5328 .) # No --srcdir option. We are building in place.
5329 ac_srcdir=.
5330 if test -z "$ac_top_builddir"; then
5331 ac_top_srcdir=.
5332 else
5333 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5334 fi ;;
5335 [\\/]* | ?:[\\/]* ) # Absolute path.
5336 ac_srcdir=$srcdir$ac_dir_suffix;
5337 ac_top_srcdir=$srcdir ;;
5338 *) # Relative path.
5339 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5340 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5341esac
5342
5343# Do not use `cd foo && pwd` to compute absolute paths, because
5344# the directories may not exist.
5345case `pwd` in
5346.) ac_abs_builddir="$ac_dir";;
5347*)
5348 case "$ac_dir" in
5349 .) ac_abs_builddir=`pwd`;;
5350 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5351 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5352 esac;;
5353esac
5354case $ac_abs_builddir in
5355.) ac_abs_top_builddir=${ac_top_builddir}.;;
5356*)
5357 case ${ac_top_builddir}. in
5358 .) ac_abs_top_builddir=$ac_abs_builddir;;
5359 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5360 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5361 esac;;
5362esac
5363case $ac_abs_builddir in
5364.) ac_abs_srcdir=$ac_srcdir;;
5365*)
5366 case $ac_srcdir in
5367 .) ac_abs_srcdir=$ac_abs_builddir;;
5368 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5369 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5370 esac;;
5371esac
5372case $ac_abs_builddir in
5373.) ac_abs_top_srcdir=$ac_top_srcdir;;
5374*)
5375 case $ac_top_srcdir in
5376 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5377 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5378 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5379 esac;;
5380esac
5381
5382
5383 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5384echo "$as_me: executing $ac_dest commands" >&6;}
5385 case $ac_dest in
5386 default ) if test -n "$CONFIG_FILES"; then
5387 LD="${ORIGINAL_LD_FOR_MULTILIBS}"
5388 ac_file=Makefile . ${zlib_basedir}/../config-ml.in
5389fi ;;
5390 esac
5391done
5392_ACEOF
5393
5394cat >>$CONFIG_STATUS <<\_ACEOF
5395
5396{ (exit 0); exit 0; }
5397_ACEOF
5398chmod +x $CONFIG_STATUS
5399ac_clean_files=$ac_clean_files_save
5400
5401
5402# configure is writing to config.log, and then calls config.status.
5403# config.status does its own redirection, appending to config.log.
5404# Unfortunately, on DOS this fails, as config.log is still kept open
5405# by configure, so config.status won't be able to write to it; its
5406# output is simply discarded. So we exec the FD to /dev/null,
5407# effectively closing config.log, so it can be properly (re)opened and
5408# appended to by config.status. When coming back to configure, we
5409# need to make the FD available again.
5410if test "$no_create" != yes; then
5411 ac_cs_success=:
5412 ac_config_status_args=
5413 test "$silent" = yes &&
5414 ac_config_status_args="$ac_config_status_args --quiet"
5415 exec 5>/dev/null
5416 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5417 exec 5>>config.log
5418 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5419 # would make configure fail if this is the last instruction.
5420 $ac_cs_success || { (exit 1); exit 1; }
5421fi
5422
Note: See TracBrowser for help on using the repository browser.