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