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