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