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