]> git.wh0rd.org - dump.git/blob - configure
Prepare for release 0.4b24.
[dump.git] / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-debug include debugging code"
16 ac_help="$ac_help
17 --enable-static link dump and restore statically"
18 ac_help="$ac_help
19 --enable-rmt compile and install rmt"
20 ac_help="$ac_help
21 --enable-kerberos compile kerberos extensions"
22 ac_help="$ac_help
23 --enable-readline enable readline support in restore"
24 ac_help="$ac_help
25 --enable-oldstylefscript enable old style F script (no arguments)"
26 ac_help="$ac_help
27 --enable-largefile enable Large File System support (your glibc needs to support it)"
28 ac_help="$ac_help
29 --enable-qfa enable Quick File Access support"
30 ac_help="$ac_help
31 --enable-qfadebug include Quick File Access debugging code"
32 ac_help="$ac_help
33 --with-cc=COMPILER select compiler to use"
34 ac_help="$ac_help
35 --with-linker=LINKER select linker to use"
36 ac_help="$ac_help
37 --with-ccopts=CCOPTS select compiler command line options"
38 ac_help="$ac_help
39 --with-ldopts=LDOPTS select linker command line options"
40 ac_help="$ac_help
41 --with-binowner=USER select owner for binaries"
42 ac_help="$ac_help
43 --with-bingrp=GROUP select group for binaries"
44 ac_help="$ac_help
45 --with-binmode=MODE select mode for binaries"
46 ac_help="$ac_help
47 --with-manowner=USER select owner for manual pages"
48 ac_help="$ac_help
49 --with-mangrp=GROUP select group for manual pages"
50 ac_help="$ac_help
51 --with-manmode=MODE select mode for manual pages"
52 ac_help="$ac_help
53 --with-dumpdatespath=PATH select path for dumpdates file"
54
55 # Initialize some variables set by options.
56 # The variables have the same names as the options, with
57 # dashes changed to underlines.
58 build=NONE
59 cache_file=./config.cache
60 exec_prefix=NONE
61 host=NONE
62 no_create=
63 nonopt=NONE
64 no_recursion=
65 prefix=NONE
66 program_prefix=NONE
67 program_suffix=NONE
68 program_transform_name=s,x,x,
69 silent=
70 site=
71 srcdir=
72 target=NONE
73 verbose=
74 x_includes=NONE
75 x_libraries=NONE
76 bindir='${exec_prefix}/bin'
77 sbindir='${exec_prefix}/sbin'
78 libexecdir='${exec_prefix}/libexec'
79 datadir='${prefix}/share'
80 sysconfdir='${prefix}/etc'
81 sharedstatedir='${prefix}/com'
82 localstatedir='${prefix}/var'
83 libdir='${exec_prefix}/lib'
84 includedir='${prefix}/include'
85 oldincludedir='/usr/include'
86 infodir='${prefix}/info'
87 mandir='${prefix}/man'
88
89 # Initialize some other variables.
90 subdirs=
91 MFLAGS= MAKEFLAGS=
92 SHELL=${CONFIG_SHELL-/bin/sh}
93 # Maximum number of lines to put in a shell here document.
94 ac_max_here_lines=12
95
96 ac_prev=
97 for ac_option
98 do
99
100 # If the previous option needs an argument, assign it.
101 if test -n "$ac_prev"; then
102 eval "$ac_prev=\$ac_option"
103 ac_prev=
104 continue
105 fi
106
107 case "$ac_option" in
108 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
109 *) ac_optarg= ;;
110 esac
111
112 # Accept the important Cygnus configure options, so we can diagnose typos.
113
114 case "$ac_option" in
115
116 -bindir | --bindir | --bindi | --bind | --bin | --bi)
117 ac_prev=bindir ;;
118 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
119 bindir="$ac_optarg" ;;
120
121 -build | --build | --buil | --bui | --bu)
122 ac_prev=build ;;
123 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
124 build="$ac_optarg" ;;
125
126 -cache-file | --cache-file | --cache-fil | --cache-fi \
127 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
128 ac_prev=cache_file ;;
129 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
130 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
131 cache_file="$ac_optarg" ;;
132
133 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
134 ac_prev=datadir ;;
135 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
136 | --da=*)
137 datadir="$ac_optarg" ;;
138
139 -disable-* | --disable-*)
140 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
141 # Reject names that are not valid shell variable names.
142 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
143 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
144 fi
145 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
146 eval "enable_${ac_feature}=no" ;;
147
148 -enable-* | --enable-*)
149 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
150 # Reject names that are not valid shell variable names.
151 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
152 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
153 fi
154 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
155 case "$ac_option" in
156 *=*) ;;
157 *) ac_optarg=yes ;;
158 esac
159 eval "enable_${ac_feature}='$ac_optarg'" ;;
160
161 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
162 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
163 | --exec | --exe | --ex)
164 ac_prev=exec_prefix ;;
165 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
166 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
167 | --exec=* | --exe=* | --ex=*)
168 exec_prefix="$ac_optarg" ;;
169
170 -gas | --gas | --ga | --g)
171 # Obsolete; use --with-gas.
172 with_gas=yes ;;
173
174 -help | --help | --hel | --he)
175 # Omit some internal or obsolete options to make the list less imposing.
176 # This message is too long to be a string in the A/UX 3.1 sh.
177 cat << EOF
178 Usage: configure [options] [host]
179 Options: [defaults in brackets after descriptions]
180 Configuration:
181 --cache-file=FILE cache test results in FILE
182 --help print this message
183 --no-create do not create output files
184 --quiet, --silent do not print \`checking...' messages
185 --version print the version of autoconf that created configure
186 Directory and file names:
187 --prefix=PREFIX install architecture-independent files in PREFIX
188 [$ac_default_prefix]
189 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
190 [same as prefix]
191 --bindir=DIR user executables in DIR [EPREFIX/bin]
192 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
193 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
194 --datadir=DIR read-only architecture-independent data in DIR
195 [PREFIX/share]
196 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
197 --sharedstatedir=DIR modifiable architecture-independent data in DIR
198 [PREFIX/com]
199 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
200 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
201 --includedir=DIR C header files in DIR [PREFIX/include]
202 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
203 --infodir=DIR info documentation in DIR [PREFIX/info]
204 --mandir=DIR man documentation in DIR [PREFIX/man]
205 --srcdir=DIR find the sources in DIR [configure dir or ..]
206 --program-prefix=PREFIX prepend PREFIX to installed program names
207 --program-suffix=SUFFIX append SUFFIX to installed program names
208 --program-transform-name=PROGRAM
209 run sed PROGRAM on installed program names
210 EOF
211 cat << EOF
212 Host type:
213 --build=BUILD configure for building on BUILD [BUILD=HOST]
214 --host=HOST configure for HOST [guessed]
215 --target=TARGET configure for TARGET [TARGET=HOST]
216 Features and packages:
217 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
218 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
219 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
220 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
221 --x-includes=DIR X include files are in DIR
222 --x-libraries=DIR X library files are in DIR
223 EOF
224 if test -n "$ac_help"; then
225 echo "--enable and --with options recognized:$ac_help"
226 fi
227 exit 0 ;;
228
229 -host | --host | --hos | --ho)
230 ac_prev=host ;;
231 -host=* | --host=* | --hos=* | --ho=*)
232 host="$ac_optarg" ;;
233
234 -includedir | --includedir | --includedi | --included | --include \
235 | --includ | --inclu | --incl | --inc)
236 ac_prev=includedir ;;
237 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
238 | --includ=* | --inclu=* | --incl=* | --inc=*)
239 includedir="$ac_optarg" ;;
240
241 -infodir | --infodir | --infodi | --infod | --info | --inf)
242 ac_prev=infodir ;;
243 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
244 infodir="$ac_optarg" ;;
245
246 -libdir | --libdir | --libdi | --libd)
247 ac_prev=libdir ;;
248 -libdir=* | --libdir=* | --libdi=* | --libd=*)
249 libdir="$ac_optarg" ;;
250
251 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
252 | --libexe | --libex | --libe)
253 ac_prev=libexecdir ;;
254 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
255 | --libexe=* | --libex=* | --libe=*)
256 libexecdir="$ac_optarg" ;;
257
258 -localstatedir | --localstatedir | --localstatedi | --localstated \
259 | --localstate | --localstat | --localsta | --localst \
260 | --locals | --local | --loca | --loc | --lo)
261 ac_prev=localstatedir ;;
262 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
263 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
264 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
265 localstatedir="$ac_optarg" ;;
266
267 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
268 ac_prev=mandir ;;
269 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
270 mandir="$ac_optarg" ;;
271
272 -nfp | --nfp | --nf)
273 # Obsolete; use --without-fp.
274 with_fp=no ;;
275
276 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
277 | --no-cr | --no-c)
278 no_create=yes ;;
279
280 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
281 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
282 no_recursion=yes ;;
283
284 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
285 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
286 | --oldin | --oldi | --old | --ol | --o)
287 ac_prev=oldincludedir ;;
288 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
289 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
290 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
291 oldincludedir="$ac_optarg" ;;
292
293 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
294 ac_prev=prefix ;;
295 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
296 prefix="$ac_optarg" ;;
297
298 -program-prefix | --program-prefix | --program-prefi | --program-pref \
299 | --program-pre | --program-pr | --program-p)
300 ac_prev=program_prefix ;;
301 -program-prefix=* | --program-prefix=* | --program-prefi=* \
302 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
303 program_prefix="$ac_optarg" ;;
304
305 -program-suffix | --program-suffix | --program-suffi | --program-suff \
306 | --program-suf | --program-su | --program-s)
307 ac_prev=program_suffix ;;
308 -program-suffix=* | --program-suffix=* | --program-suffi=* \
309 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
310 program_suffix="$ac_optarg" ;;
311
312 -program-transform-name | --program-transform-name \
313 | --program-transform-nam | --program-transform-na \
314 | --program-transform-n | --program-transform- \
315 | --program-transform | --program-transfor \
316 | --program-transfo | --program-transf \
317 | --program-trans | --program-tran \
318 | --progr-tra | --program-tr | --program-t)
319 ac_prev=program_transform_name ;;
320 -program-transform-name=* | --program-transform-name=* \
321 | --program-transform-nam=* | --program-transform-na=* \
322 | --program-transform-n=* | --program-transform-=* \
323 | --program-transform=* | --program-transfor=* \
324 | --program-transfo=* | --program-transf=* \
325 | --program-trans=* | --program-tran=* \
326 | --progr-tra=* | --program-tr=* | --program-t=*)
327 program_transform_name="$ac_optarg" ;;
328
329 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
330 | -silent | --silent | --silen | --sile | --sil)
331 silent=yes ;;
332
333 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
334 ac_prev=sbindir ;;
335 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
336 | --sbi=* | --sb=*)
337 sbindir="$ac_optarg" ;;
338
339 -sharedstatedir | --sharedstatedir | --sharedstatedi \
340 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
341 | --sharedst | --shareds | --shared | --share | --shar \
342 | --sha | --sh)
343 ac_prev=sharedstatedir ;;
344 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
345 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
346 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
347 | --sha=* | --sh=*)
348 sharedstatedir="$ac_optarg" ;;
349
350 -site | --site | --sit)
351 ac_prev=site ;;
352 -site=* | --site=* | --sit=*)
353 site="$ac_optarg" ;;
354
355 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
356 ac_prev=srcdir ;;
357 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
358 srcdir="$ac_optarg" ;;
359
360 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
361 | --syscon | --sysco | --sysc | --sys | --sy)
362 ac_prev=sysconfdir ;;
363 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
364 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
365 sysconfdir="$ac_optarg" ;;
366
367 -target | --target | --targe | --targ | --tar | --ta | --t)
368 ac_prev=target ;;
369 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
370 target="$ac_optarg" ;;
371
372 -v | -verbose | --verbose | --verbos | --verbo | --verb)
373 verbose=yes ;;
374
375 -version | --version | --versio | --versi | --vers)
376 echo "configure generated by autoconf version 2.13"
377 exit 0 ;;
378
379 -with-* | --with-*)
380 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
381 # Reject names that are not valid shell variable names.
382 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
383 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
384 fi
385 ac_package=`echo $ac_package| sed 's/-/_/g'`
386 case "$ac_option" in
387 *=*) ;;
388 *) ac_optarg=yes ;;
389 esac
390 eval "with_${ac_package}='$ac_optarg'" ;;
391
392 -without-* | --without-*)
393 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
394 # Reject names that are not valid shell variable names.
395 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
396 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
397 fi
398 ac_package=`echo $ac_package| sed 's/-/_/g'`
399 eval "with_${ac_package}=no" ;;
400
401 --x)
402 # Obsolete; use --with-x.
403 with_x=yes ;;
404
405 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
406 | --x-incl | --x-inc | --x-in | --x-i)
407 ac_prev=x_includes ;;
408 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
409 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
410 x_includes="$ac_optarg" ;;
411
412 -x-libraries | --x-libraries | --x-librarie | --x-librari \
413 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
414 ac_prev=x_libraries ;;
415 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
416 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
417 x_libraries="$ac_optarg" ;;
418
419 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
420 ;;
421
422 *)
423 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
424 echo "configure: warning: $ac_option: invalid host type" 1>&2
425 fi
426 if test "x$nonopt" != xNONE; then
427 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
428 fi
429 nonopt="$ac_option"
430 ;;
431
432 esac
433 done
434
435 if test -n "$ac_prev"; then
436 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
437 fi
438
439 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
440
441 # File descriptor usage:
442 # 0 standard input
443 # 1 file creation
444 # 2 errors and warnings
445 # 3 some systems may open it to /dev/tty
446 # 4 used on the Kubota Titan
447 # 6 checking for... messages and results
448 # 5 compiler messages saved in config.log
449 if test "$silent" = yes; then
450 exec 6>/dev/null
451 else
452 exec 6>&1
453 fi
454 exec 5>./config.log
455
456 echo "\
457 This file contains any messages produced by compilers while
458 running configure, to aid debugging if configure makes a mistake.
459 " 1>&5
460
461 # Strip out --no-create and --no-recursion so they do not pile up.
462 # Also quote any args containing shell metacharacters.
463 ac_configure_args=
464 for ac_arg
465 do
466 case "$ac_arg" in
467 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
468 | --no-cr | --no-c) ;;
469 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
470 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
471 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
472 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
473 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
474 esac
475 done
476
477 # NLS nuisances.
478 # Only set these to C if already set. These must not be set unconditionally
479 # because not all systems understand e.g. LANG=C (notably SCO).
480 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
481 # Non-C LC_CTYPE values break the ctype check.
482 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
483 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
484 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
485 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
486
487 # confdefs.h avoids OS command line length limits that DEFS can exceed.
488 rm -rf conftest* confdefs.h
489 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
490 echo > confdefs.h
491
492 # A filename unique to this package, relative to the directory that
493 # configure is in, which we can look for to find out if srcdir is correct.
494 ac_unique_file=dump/dump.h
495
496 # Find the source files, if location was not specified.
497 if test -z "$srcdir"; then
498 ac_srcdir_defaulted=yes
499 # Try the directory containing this script, then its parent.
500 ac_prog=$0
501 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
502 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
503 srcdir=$ac_confdir
504 if test ! -r $srcdir/$ac_unique_file; then
505 srcdir=..
506 fi
507 else
508 ac_srcdir_defaulted=no
509 fi
510 if test ! -r $srcdir/$ac_unique_file; then
511 if test "$ac_srcdir_defaulted" = yes; then
512 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
513 else
514 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
515 fi
516 fi
517 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
518
519 # Prefer explicitly selected file to automatically selected ones.
520 if test -z "$CONFIG_SITE"; then
521 if test "x$prefix" != xNONE; then
522 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
523 else
524 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
525 fi
526 fi
527 for ac_site_file in $CONFIG_SITE; do
528 if test -r "$ac_site_file"; then
529 echo "loading site script $ac_site_file"
530 . "$ac_site_file"
531 fi
532 done
533
534 if test -r "$cache_file"; then
535 echo "loading cache $cache_file"
536 . $cache_file
537 else
538 echo "creating cache $cache_file"
539 > $cache_file
540 fi
541
542 ac_ext=c
543 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
544 ac_cpp='$CPP $CPPFLAGS'
545 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
546 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
547 cross_compiling=$ac_cv_prog_cc_cross
548
549 ac_exeext=
550 ac_objext=o
551 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
552 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
553 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
554 ac_n= ac_c='
555 ' ac_t=' '
556 else
557 ac_n=-n ac_c= ac_t=
558 fi
559 else
560 ac_n= ac_c='\c' ac_t=
561 fi
562
563
564
565 MCONFIG=./MCONFIG
566
567
568
569
570 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
571 echo "configure:572: checking whether ${MAKE-make} sets \${MAKE}" >&5
572 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
573 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
574 echo $ac_n "(cached) $ac_c" 1>&6
575 else
576 cat > conftestmake <<\EOF
577 all:
578 @echo 'ac_maketemp="${MAKE}"'
579 EOF
580 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
581 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
582 if test -n "$ac_maketemp"; then
583 eval ac_cv_prog_make_${ac_make}_set=yes
584 else
585 eval ac_cv_prog_make_${ac_make}_set=no
586 fi
587 rm -f conftestmake
588 fi
589 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
590 echo "$ac_t""yes" 1>&6
591 SET_MAKE=
592 else
593 echo "$ac_t""no" 1>&6
594 SET_MAKE="MAKE=${MAKE-make}"
595 fi
596
597 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
598 echo "configure:599: checking whether ln -s works" >&5
599 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
600 echo $ac_n "(cached) $ac_c" 1>&6
601 else
602 rm -f conftestdata
603 if ln -s X conftestdata 2>/dev/null
604 then
605 rm -f conftestdata
606 ac_cv_prog_LN_S="ln -s"
607 else
608 ac_cv_prog_LN_S=ln
609 fi
610 fi
611 LN_S="$ac_cv_prog_LN_S"
612 if test "$ac_cv_prog_LN_S" = "ln -s"; then
613 echo "$ac_t""yes" 1>&6
614 else
615 echo "$ac_t""no" 1>&6
616 fi
617
618 # Extract the first word of "cp", so it can be a program name with args.
619 set dummy cp; ac_word=$2
620 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
621 echo "configure:622: checking for $ac_word" >&5
622 if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
623 echo $ac_n "(cached) $ac_c" 1>&6
624 else
625 case "$CP" in
626 /*)
627 ac_cv_path_CP="$CP" # Let the user override the test with a path.
628 ;;
629 ?:/*)
630 ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
631 ;;
632 *)
633 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
634 ac_dummy="$PATH"
635 for ac_dir in $ac_dummy; do
636 test -z "$ac_dir" && ac_dir=.
637 if test -f $ac_dir/$ac_word; then
638 ac_cv_path_CP="$ac_dir/$ac_word"
639 break
640 fi
641 done
642 IFS="$ac_save_ifs"
643 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
644 ;;
645 esac
646 fi
647 CP="$ac_cv_path_CP"
648 if test -n "$CP"; then
649 echo "$ac_t""$CP" 1>&6
650 else
651 echo "$ac_t""no" 1>&6
652 fi
653
654 # Extract the first word of "mv", so it can be a program name with args.
655 set dummy mv; ac_word=$2
656 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
657 echo "configure:658: checking for $ac_word" >&5
658 if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
659 echo $ac_n "(cached) $ac_c" 1>&6
660 else
661 case "$MV" in
662 /*)
663 ac_cv_path_MV="$MV" # Let the user override the test with a path.
664 ;;
665 ?:/*)
666 ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
667 ;;
668 *)
669 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
670 ac_dummy="$PATH"
671 for ac_dir in $ac_dummy; do
672 test -z "$ac_dir" && ac_dir=.
673 if test -f $ac_dir/$ac_word; then
674 ac_cv_path_MV="$ac_dir/$ac_word"
675 break
676 fi
677 done
678 IFS="$ac_save_ifs"
679 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
680 ;;
681 esac
682 fi
683 MV="$ac_cv_path_MV"
684 if test -n "$MV"; then
685 echo "$ac_t""$MV" 1>&6
686 else
687 echo "$ac_t""no" 1>&6
688 fi
689
690 # Extract the first word of "rm", so it can be a program name with args.
691 set dummy rm; ac_word=$2
692 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
693 echo "configure:694: checking for $ac_word" >&5
694 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
695 echo $ac_n "(cached) $ac_c" 1>&6
696 else
697 case "$RM" in
698 /*)
699 ac_cv_path_RM="$RM" # Let the user override the test with a path.
700 ;;
701 ?:/*)
702 ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
703 ;;
704 *)
705 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
706 ac_dummy="$PATH"
707 for ac_dir in $ac_dummy; do
708 test -z "$ac_dir" && ac_dir=.
709 if test -f $ac_dir/$ac_word; then
710 ac_cv_path_RM="$ac_dir/$ac_word"
711 break
712 fi
713 done
714 IFS="$ac_save_ifs"
715 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
716 ;;
717 esac
718 fi
719 RM="$ac_cv_path_RM"
720 if test -n "$RM"; then
721 echo "$ac_t""$RM" 1>&6
722 else
723 echo "$ac_t""no" 1>&6
724 fi
725
726 ac_aux_dir=
727 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
728 if test -f $ac_dir/install-sh; then
729 ac_aux_dir=$ac_dir
730 ac_install_sh="$ac_aux_dir/install-sh -c"
731 break
732 elif test -f $ac_dir/install.sh; then
733 ac_aux_dir=$ac_dir
734 ac_install_sh="$ac_aux_dir/install.sh -c"
735 break
736 fi
737 done
738 if test -z "$ac_aux_dir"; then
739 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
740 fi
741 ac_config_guess=$ac_aux_dir/config.guess
742 ac_config_sub=$ac_aux_dir/config.sub
743 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
744
745
746 # Make sure we can run config.sub.
747 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
748 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
749 fi
750
751 echo $ac_n "checking host system type""... $ac_c" 1>&6
752 echo "configure:753: checking host system type" >&5
753
754 host_alias=$host
755 case "$host_alias" in
756 NONE)
757 case $nonopt in
758 NONE)
759 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
760 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
761 fi ;;
762 *) host_alias=$nonopt ;;
763 esac ;;
764 esac
765
766 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
767 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
768 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
769 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
770 echo "$ac_t""$host" 1>&6
771
772 echo $ac_n "checking build system type""... $ac_c" 1>&6
773 echo "configure:774: checking build system type" >&5
774
775 build_alias=$build
776 case "$build_alias" in
777 NONE)
778 case $nonopt in
779 NONE) build_alias=$host_alias ;;
780 *) build_alias=$nonopt ;;
781 esac ;;
782 esac
783
784 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
785 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
786 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
787 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
788 echo "$ac_t""$build" 1>&6
789
790 if test $host != $build; then
791 ac_tool_prefix=${host_alias}-
792 else
793 ac_tool_prefix=
794 fi
795
796 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
797 set dummy ${ac_tool_prefix}ar; ac_word=$2
798 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
799 echo "configure:800: checking for $ac_word" >&5
800 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
801 echo $ac_n "(cached) $ac_c" 1>&6
802 else
803 if test -n "$AR"; then
804 ac_cv_prog_AR="$AR" # Let the user override the test.
805 else
806 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
807 ac_dummy="$PATH"
808 for ac_dir in $ac_dummy; do
809 test -z "$ac_dir" && ac_dir=.
810 if test -f $ac_dir/$ac_word; then
811 ac_cv_prog_AR="${ac_tool_prefix}ar"
812 break
813 fi
814 done
815 IFS="$ac_save_ifs"
816 fi
817 fi
818 AR="$ac_cv_prog_AR"
819 if test -n "$AR"; then
820 echo "$ac_t""$AR" 1>&6
821 else
822 echo "$ac_t""no" 1>&6
823 fi
824
825
826 if test -z "$ac_cv_prog_AR"; then
827 if test -n "$ac_tool_prefix"; then
828 # Extract the first word of "ar", so it can be a program name with args.
829 set dummy ar; ac_word=$2
830 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
831 echo "configure:832: checking for $ac_word" >&5
832 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
833 echo $ac_n "(cached) $ac_c" 1>&6
834 else
835 if test -n "$AR"; then
836 ac_cv_prog_AR="$AR" # Let the user override the test.
837 else
838 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
839 ac_dummy="$PATH"
840 for ac_dir in $ac_dummy; do
841 test -z "$ac_dir" && ac_dir=.
842 if test -f $ac_dir/$ac_word; then
843 ac_cv_prog_AR="ar"
844 break
845 fi
846 done
847 IFS="$ac_save_ifs"
848 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
849 fi
850 fi
851 AR="$ac_cv_prog_AR"
852 if test -n "$AR"; then
853 echo "$ac_t""$AR" 1>&6
854 else
855 echo "$ac_t""no" 1>&6
856 fi
857
858 else
859 AR="ar"
860 fi
861 fi
862
863 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
864 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
865 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
866 echo "configure:867: checking for $ac_word" >&5
867 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
868 echo $ac_n "(cached) $ac_c" 1>&6
869 else
870 if test -n "$RANLIB"; then
871 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
872 else
873 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
874 ac_dummy="$PATH"
875 for ac_dir in $ac_dummy; do
876 test -z "$ac_dir" && ac_dir=.
877 if test -f $ac_dir/$ac_word; then
878 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
879 break
880 fi
881 done
882 IFS="$ac_save_ifs"
883 fi
884 fi
885 RANLIB="$ac_cv_prog_RANLIB"
886 if test -n "$RANLIB"; then
887 echo "$ac_t""$RANLIB" 1>&6
888 else
889 echo "$ac_t""no" 1>&6
890 fi
891
892
893 if test -z "$ac_cv_prog_RANLIB"; then
894 if test -n "$ac_tool_prefix"; then
895 # Extract the first word of "ranlib", so it can be a program name with args.
896 set dummy ranlib; ac_word=$2
897 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
898 echo "configure:899: checking for $ac_word" >&5
899 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
900 echo $ac_n "(cached) $ac_c" 1>&6
901 else
902 if test -n "$RANLIB"; then
903 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
904 else
905 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
906 ac_dummy="$PATH"
907 for ac_dir in $ac_dummy; do
908 test -z "$ac_dir" && ac_dir=.
909 if test -f $ac_dir/$ac_word; then
910 ac_cv_prog_RANLIB="ranlib"
911 break
912 fi
913 done
914 IFS="$ac_save_ifs"
915 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
916 fi
917 fi
918 RANLIB="$ac_cv_prog_RANLIB"
919 if test -n "$RANLIB"; then
920 echo "$ac_t""$RANLIB" 1>&6
921 else
922 echo "$ac_t""no" 1>&6
923 fi
924
925 else
926 RANLIB=":"
927 fi
928 fi
929
930 # Extract the first word of "${ac_tool_prefix}patch", so it can be a program name with args.
931 set dummy ${ac_tool_prefix}patch; ac_word=$2
932 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
933 echo "configure:934: checking for $ac_word" >&5
934 if eval "test \"`echo '$''{'ac_cv_prog_PATCH'+set}'`\" = set"; then
935 echo $ac_n "(cached) $ac_c" 1>&6
936 else
937 if test -n "$PATCH"; then
938 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
939 else
940 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
941 ac_dummy="$PATH"
942 for ac_dir in $ac_dummy; do
943 test -z "$ac_dir" && ac_dir=.
944 if test -f $ac_dir/$ac_word; then
945 ac_cv_prog_PATCH="${ac_tool_prefix}patch"
946 break
947 fi
948 done
949 IFS="$ac_save_ifs"
950 fi
951 fi
952 PATCH="$ac_cv_prog_PATCH"
953 if test -n "$PATCH"; then
954 echo "$ac_t""$PATCH" 1>&6
955 else
956 echo "$ac_t""no" 1>&6
957 fi
958
959
960 if test -z "$ac_cv_prog_PATCH"; then
961 if test -n "$ac_tool_prefix"; then
962 # Extract the first word of "patch", so it can be a program name with args.
963 set dummy patch; ac_word=$2
964 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
965 echo "configure:966: checking for $ac_word" >&5
966 if eval "test \"`echo '$''{'ac_cv_prog_PATCH'+set}'`\" = set"; then
967 echo $ac_n "(cached) $ac_c" 1>&6
968 else
969 if test -n "$PATCH"; then
970 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
971 else
972 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
973 ac_dummy="$PATH"
974 for ac_dir in $ac_dummy; do
975 test -z "$ac_dir" && ac_dir=.
976 if test -f $ac_dir/$ac_word; then
977 ac_cv_prog_PATCH="patch"
978 break
979 fi
980 done
981 IFS="$ac_save_ifs"
982 test -z "$ac_cv_prog_PATCH" && ac_cv_prog_PATCH=":"
983 fi
984 fi
985 PATCH="$ac_cv_prog_PATCH"
986 if test -n "$PATCH"; then
987 echo "$ac_t""$PATCH" 1>&6
988 else
989 echo "$ac_t""no" 1>&6
990 fi
991
992 else
993 PATCH=":"
994 fi
995 fi
996
997 # Extract the first word of "gcc", so it can be a program name with args.
998 set dummy gcc; ac_word=$2
999 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1000 echo "configure:1001: checking for $ac_word" >&5
1001 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1002 echo $ac_n "(cached) $ac_c" 1>&6
1003 else
1004 if test -n "$CC"; then
1005 ac_cv_prog_CC="$CC" # Let the user override the test.
1006 else
1007 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1008 ac_dummy="$PATH"
1009 for ac_dir in $ac_dummy; do
1010 test -z "$ac_dir" && ac_dir=.
1011 if test -f $ac_dir/$ac_word; then
1012 ac_cv_prog_CC="gcc"
1013 break
1014 fi
1015 done
1016 IFS="$ac_save_ifs"
1017 fi
1018 fi
1019 CC="$ac_cv_prog_CC"
1020 if test -n "$CC"; then
1021 echo "$ac_t""$CC" 1>&6
1022 else
1023 echo "$ac_t""no" 1>&6
1024 fi
1025
1026 if test -z "$CC"; then
1027 # Extract the first word of "cc", so it can be a program name with args.
1028 set dummy cc; ac_word=$2
1029 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1030 echo "configure:1031: checking for $ac_word" >&5
1031 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1032 echo $ac_n "(cached) $ac_c" 1>&6
1033 else
1034 if test -n "$CC"; then
1035 ac_cv_prog_CC="$CC" # Let the user override the test.
1036 else
1037 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1038 ac_prog_rejected=no
1039 ac_dummy="$PATH"
1040 for ac_dir in $ac_dummy; do
1041 test -z "$ac_dir" && ac_dir=.
1042 if test -f $ac_dir/$ac_word; then
1043 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1044 ac_prog_rejected=yes
1045 continue
1046 fi
1047 ac_cv_prog_CC="cc"
1048 break
1049 fi
1050 done
1051 IFS="$ac_save_ifs"
1052 if test $ac_prog_rejected = yes; then
1053 # We found a bogon in the path, so make sure we never use it.
1054 set dummy $ac_cv_prog_CC
1055 shift
1056 if test $# -gt 0; then
1057 # We chose a different compiler from the bogus one.
1058 # However, it has the same basename, so the bogon will be chosen
1059 # first if we set CC to just the basename; use the full file name.
1060 shift
1061 set dummy "$ac_dir/$ac_word" "$@"
1062 shift
1063 ac_cv_prog_CC="$@"
1064 fi
1065 fi
1066 fi
1067 fi
1068 CC="$ac_cv_prog_CC"
1069 if test -n "$CC"; then
1070 echo "$ac_t""$CC" 1>&6
1071 else
1072 echo "$ac_t""no" 1>&6
1073 fi
1074
1075 if test -z "$CC"; then
1076 case "`uname -s`" in
1077 *win32* | *WIN32*)
1078 # Extract the first word of "cl", so it can be a program name with args.
1079 set dummy cl; ac_word=$2
1080 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1081 echo "configure:1082: checking for $ac_word" >&5
1082 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1083 echo $ac_n "(cached) $ac_c" 1>&6
1084 else
1085 if test -n "$CC"; then
1086 ac_cv_prog_CC="$CC" # Let the user override the test.
1087 else
1088 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1089 ac_dummy="$PATH"
1090 for ac_dir in $ac_dummy; do
1091 test -z "$ac_dir" && ac_dir=.
1092 if test -f $ac_dir/$ac_word; then
1093 ac_cv_prog_CC="cl"
1094 break
1095 fi
1096 done
1097 IFS="$ac_save_ifs"
1098 fi
1099 fi
1100 CC="$ac_cv_prog_CC"
1101 if test -n "$CC"; then
1102 echo "$ac_t""$CC" 1>&6
1103 else
1104 echo "$ac_t""no" 1>&6
1105 fi
1106 ;;
1107 esac
1108 fi
1109 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1110 fi
1111
1112 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1113 echo "configure:1114: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1114
1115 ac_ext=c
1116 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1117 ac_cpp='$CPP $CPPFLAGS'
1118 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1119 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1120 cross_compiling=$ac_cv_prog_cc_cross
1121
1122 cat > conftest.$ac_ext << EOF
1123
1124 #line 1125 "configure"
1125 #include "confdefs.h"
1126
1127 main(){return(0);}
1128 EOF
1129 if { (eval echo configure:1130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1130 ac_cv_prog_cc_works=yes
1131 # If we can't run a trivial program, we are probably using a cross compiler.
1132 if (./conftest; exit) 2>/dev/null; then
1133 ac_cv_prog_cc_cross=no
1134 else
1135 ac_cv_prog_cc_cross=yes
1136 fi
1137 else
1138 echo "configure: failed program was:" >&5
1139 cat conftest.$ac_ext >&5
1140 ac_cv_prog_cc_works=no
1141 fi
1142 rm -fr conftest*
1143 ac_ext=c
1144 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1145 ac_cpp='$CPP $CPPFLAGS'
1146 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1147 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1148 cross_compiling=$ac_cv_prog_cc_cross
1149
1150 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1151 if test $ac_cv_prog_cc_works = no; then
1152 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1153 fi
1154 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1155 echo "configure:1156: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1156 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1157 cross_compiling=$ac_cv_prog_cc_cross
1158
1159 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1160 echo "configure:1161: checking whether we are using GNU C" >&5
1161 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1162 echo $ac_n "(cached) $ac_c" 1>&6
1163 else
1164 cat > conftest.c <<EOF
1165 #ifdef __GNUC__
1166 yes;
1167 #endif
1168 EOF
1169 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1170 ac_cv_prog_gcc=yes
1171 else
1172 ac_cv_prog_gcc=no
1173 fi
1174 fi
1175
1176 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1177
1178 if test $ac_cv_prog_gcc = yes; then
1179 GCC=yes
1180 else
1181 GCC=
1182 fi
1183
1184 ac_test_CFLAGS="${CFLAGS+set}"
1185 ac_save_CFLAGS="$CFLAGS"
1186 CFLAGS=
1187 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1188 echo "configure:1189: checking whether ${CC-cc} accepts -g" >&5
1189 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1190 echo $ac_n "(cached) $ac_c" 1>&6
1191 else
1192 echo 'void f(){}' > conftest.c
1193 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1194 ac_cv_prog_cc_g=yes
1195 else
1196 ac_cv_prog_cc_g=no
1197 fi
1198 rm -f conftest*
1199
1200 fi
1201
1202 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1203 if test "$ac_test_CFLAGS" = set; then
1204 CFLAGS="$ac_save_CFLAGS"
1205 elif test $ac_cv_prog_cc_g = yes; then
1206 if test "$GCC" = yes; then
1207 CFLAGS="-g -O2"
1208 else
1209 CFLAGS="-g"
1210 fi
1211 else
1212 if test "$GCC" = yes; then
1213 CFLAGS="-O2"
1214 else
1215 CFLAGS=
1216 fi
1217 fi
1218
1219 # Find a good install program. We prefer a C program (faster),
1220 # so one script is as good as another. But avoid the broken or
1221 # incompatible versions:
1222 # SysV /etc/install, /usr/sbin/install
1223 # SunOS /usr/etc/install
1224 # IRIX /sbin/install
1225 # AIX /bin/install
1226 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1227 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1228 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1229 # ./install, which can be erroneously created by make from ./install.sh.
1230 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1231 echo "configure:1232: checking for a BSD compatible install" >&5
1232 if test -z "$INSTALL"; then
1233 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1234 echo $ac_n "(cached) $ac_c" 1>&6
1235 else
1236 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1237 for ac_dir in $PATH; do
1238 # Account for people who put trailing slashes in PATH elements.
1239 case "$ac_dir/" in
1240 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1241 *)
1242 # OSF1 and SCO ODT 3.0 have their own names for install.
1243 # Don't use installbsd from OSF since it installs stuff as root
1244 # by default.
1245 for ac_prog in ginstall scoinst install; do
1246 if test -f $ac_dir/$ac_prog; then
1247 if test $ac_prog = install &&
1248 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1249 # AIX install. It has an incompatible calling convention.
1250 :
1251 else
1252 ac_cv_path_install="$ac_dir/$ac_prog -c"
1253 break 2
1254 fi
1255 fi
1256 done
1257 ;;
1258 esac
1259 done
1260 IFS="$ac_save_IFS"
1261
1262 fi
1263 if test "${ac_cv_path_install+set}" = set; then
1264 INSTALL="$ac_cv_path_install"
1265 else
1266 # As a last resort, use the slow shell script. We don't cache a
1267 # path for INSTALL within a source directory, because that will
1268 # break other packages using the cache if that directory is
1269 # removed, or if the path is relative.
1270 INSTALL="$ac_install_sh"
1271 fi
1272 fi
1273 echo "$ac_t""$INSTALL" 1>&6
1274
1275 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1276 # It thinks the first close brace ends the variable substitution.
1277 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1278
1279 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1280
1281 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1282
1283
1284 # Check whether --enable-debug or --disable-debug was given.
1285 if test "${enable_debug+set}" = set; then
1286 enableval="$enable_debug"
1287 if test "$enableval" = "no"
1288 then
1289 DUMPDEBUG=""
1290 RESTOREDEBUG=""
1291 else
1292 DUMPDEBUG="-DFDEBUG -DTDEBUG -DWRITEDEBUG -DDIRDEBUG"
1293 RESTOREDEBUG="-DDIRDEBUG"
1294 fi
1295 else
1296 DUMPDEBUG=""
1297 RESTOREDEBUG=""
1298
1299 fi
1300
1301
1302
1303
1304 # Check whether --enable-static or --disable-static was given.
1305 if test "${enable_static+set}" = set; then
1306 enableval="$enable_static"
1307 if test "$enableval" = "no"
1308 then
1309 STATIC=""
1310 else
1311 STATIC="-static"
1312 fi
1313
1314 else
1315 STATIC=""
1316 echo "Linking dump and restore dynamically by default"
1317
1318 fi
1319
1320
1321
1322 # Check whether --enable-rmt or --disable-rmt was given.
1323 if test "${enable_rmt+set}" = set; then
1324 enableval="$enable_rmt"
1325 if test "$enableval" = "no"
1326 then
1327 RMTDIR=""
1328 RMTMAKEFILE=""
1329 else
1330 RMTDIR="rmt"
1331 RMTMAKEFILE="rmt/Makefile"
1332 fi
1333
1334 else
1335 RMTDIR=""
1336 echo "Not compiling rmt by default"
1337
1338 fi
1339
1340
1341
1342 # Check whether --enable-kerberos or --disable-kerberos was given.
1343 if test "${enable_kerberos+set}" = set; then
1344 enableval="$enable_kerberos"
1345 if test "$enableval" = "yes"
1346 then
1347 OPTDEFS="-DKERBEROS"
1348 else
1349 OPTDEFS=""
1350 fi
1351
1352 else
1353 OPTDEFS=""
1354 echo "Not compiling kerberos extensions by default"
1355
1356 fi
1357
1358
1359
1360 # Check whether --enable-readline or --disable-readline was given.
1361 if test "${enable_readline+set}" = set; then
1362 enableval="$enable_readline"
1363 if test "$enableval" = "no"
1364 then
1365 READLINE=""
1366 else
1367 READLINE="-lreadline -ltermcap"
1368 cat >> confdefs.h <<\EOF
1369 #define HAVE_READLINE 1
1370 EOF
1371
1372 fi
1373
1374 else
1375 READLINE=""
1376 echo "Not including readline support by default"
1377
1378 fi
1379
1380
1381
1382 # Check whether --enable-oldstylefscript or --disable-oldstylefscript was given.
1383 if test "${enable_oldstylefscript+set}" = set; then
1384 enableval="$enable_oldstylefscript"
1385 if test "$enableval" = "yes"
1386 then
1387 cat >> confdefs.h <<\EOF
1388 #define OLD_STYLE_FSCRIPT 1
1389 EOF
1390
1391 fi
1392
1393 else
1394 echo "Using new style F script"
1395
1396 fi
1397
1398
1399 # Check whether --enable-largefile or --disable-largefile was given.
1400 if test "${enable_largefile+set}" = set; then
1401 enableval="$enable_largefile"
1402 if test "$enableval" = "yes"
1403 then
1404 cat >> confdefs.h <<\EOF
1405 #define USE_LFS 1
1406 EOF
1407
1408 fi
1409
1410 else
1411 echo "Not enabling Large File System support"
1412
1413 fi
1414
1415
1416 # Check whether --enable-qfa or --disable-qfa was given.
1417 if test "${enable_qfa+set}" = set; then
1418 enableval="$enable_qfa"
1419 if test "$enableval" = "yes"
1420 then
1421 cat >> confdefs.h <<\EOF
1422 #define USE_QFA 1
1423 EOF
1424
1425 fi
1426
1427 else
1428 echo "Not enabling Quick File Access support"
1429
1430 fi
1431
1432
1433 # Check whether --enable-qfadebug or --disable-qfadebug was given.
1434 if test "${enable_qfadebug+set}" = set; then
1435 enableval="$enable_qfadebug"
1436 if test "$enableval" = "yes"
1437 then
1438 cat >> confdefs.h <<\EOF
1439 #define DEBUG_QFA 1
1440 EOF
1441
1442 fi
1443
1444 else
1445 echo "Not including Quick File Access debugging code"
1446
1447 fi
1448
1449
1450 # Check whether --with-cc or --without-cc was given.
1451 if test "${with_cc+set}" = set; then
1452 withval="$with_cc"
1453 echo "$ac_t""CC=$withval" 1>&6
1454 CC=$withval
1455 else
1456 if test -z "$CC" ; then CC=cc; fi
1457 echo "$ac_t""CC defaults to $CC" 1>&6
1458 fi
1459 export CC
1460
1461
1462 # Check whether --with-linker or --without-linker was given.
1463 if test "${with_linker+set}" = set; then
1464 withval="$with_linker"
1465 echo "$ac_t""LD=$withval" 1>&6
1466 LD=$withval
1467 else
1468 if test -z "$LD" ; then LD=$CC; fi
1469 echo "$ac_t""LD defaults to $LD" 1>&6
1470 fi
1471 export LD
1472
1473
1474 # Check whether --with-ccopts or --without-ccopts was given.
1475 if test "${with_ccopts+set}" = set; then
1476 withval="$with_ccopts"
1477 echo "$ac_t""CCOPTS is $withval" 1>&6
1478 CCOPTS=$withval
1479 CFLAGS="$CFLAGS $withval"
1480 else
1481 CCOPTS=
1482 fi
1483
1484
1485 # Check whether --with-ldopts or --without-ldopts was given.
1486 if test "${with_ldopts+set}" = set; then
1487 withval="$with_ldopts"
1488 echo "$ac_t""LDFLAGS is $withval" 1>&6
1489 LDFLAGS=$withval
1490 else
1491 LDFLAGS=
1492 fi
1493
1494
1495 # Check whether --with-binowner or --without-binowner was given.
1496 if test "${with_binowner+set}" = set; then
1497 withval="$with_binowner"
1498 echo "$ac_t""BINOWNER is $withval" 1>&6
1499 BINOWNER=$withval
1500 else
1501 BINOWNER=root
1502 echo "BINOWNER defaults to $BINOWNER"
1503
1504 fi
1505
1506
1507 # Check whether --with-bingrp or --without-bingrp was given.
1508 if test "${with_bingrp+set}" = set; then
1509 withval="$with_bingrp"
1510 echo "$ac_t""BINGRP is $withval" 1>&6
1511 BINGRP=$withval
1512 else
1513 BINGRP=tty
1514 echo "BINGRP defaults to $BINGRP"
1515
1516 fi
1517
1518
1519 # Check whether --with-binmode or --without-binmode was given.
1520 if test "${with_binmode+set}" = set; then
1521 withval="$with_binmode"
1522 echo "$ac_t""BINMODE is $withval" 1>&6
1523 BINMODE=$withval
1524 else
1525 BINMODE=0755
1526 echo "BINMODE defaults to $BINMODE"
1527
1528 fi
1529
1530
1531 # Check whether --with-manowner or --without-manowner was given.
1532 if test "${with_manowner+set}" = set; then
1533 withval="$with_manowner"
1534 echo "$ac_t""MANOWNER is $withval" 1>&6
1535 MANOWNER=$withval
1536 else
1537 MANOWNER=man
1538 echo "MANOWNER defaults to $MANOWNER"
1539
1540 fi
1541
1542
1543 # Check whether --with-mangrp or --without-mangrp was given.
1544 if test "${with_mangrp+set}" = set; then
1545 withval="$with_mangrp"
1546 echo "$ac_t""MANGRP is $withval" 1>&6
1547 MANGRP=$withval
1548 else
1549 MANGRP=tty
1550 echo "MANGRP defaults to $MANGRP"
1551
1552 fi
1553
1554
1555 # Check whether --with-manmode or --without-manmode was given.
1556 if test "${with_manmode+set}" = set; then
1557 withval="$with_manmode"
1558 echo "$ac_t""MANMODE is $withval" 1>&6
1559 MANMODE=$withval
1560 else
1561 MANMODE=0644
1562 echo "MANMODE defaults to $MANMODE"
1563
1564 fi
1565
1566
1567 # Check whether --with-dumpdatespath or --without-dumpdatespath was given.
1568 if test "${with_dumpdatespath+set}" = set; then
1569 withval="$with_dumpdatespath"
1570 echo "$ac_t""DUMPDATESPATH is $withval" 1>&6
1571 DUMPDATESPATH=$withval
1572 else
1573 DUMPDATESPATH="${sysconfdir}/dumpdates"
1574 echo "DUMPDATESPATH defaults to $DUMPDATESPATH"
1575
1576 fi
1577
1578
1579 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1580 echo "configure:1581: checking how to run the C preprocessor" >&5
1581 # On Suns, sometimes $CPP names a directory.
1582 if test -n "$CPP" && test -d "$CPP"; then
1583 CPP=
1584 fi
1585 if test -z "$CPP"; then
1586 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1587 echo $ac_n "(cached) $ac_c" 1>&6
1588 else
1589 # This must be in double quotes, not single quotes, because CPP may get
1590 # substituted into the Makefile and "${CC-cc}" will confuse make.
1591 CPP="${CC-cc} -E"
1592 # On the NeXT, cc -E runs the code through the compiler's parser,
1593 # not just through cpp.
1594 cat > conftest.$ac_ext <<EOF
1595 #line 1596 "configure"
1596 #include "confdefs.h"
1597 #include <assert.h>
1598 Syntax Error
1599 EOF
1600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1601 { (eval echo configure:1602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1602 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1603 if test -z "$ac_err"; then
1604 :
1605 else
1606 echo "$ac_err" >&5
1607 echo "configure: failed program was:" >&5
1608 cat conftest.$ac_ext >&5
1609 rm -rf conftest*
1610 CPP="${CC-cc} -E -traditional-cpp"
1611 cat > conftest.$ac_ext <<EOF
1612 #line 1613 "configure"
1613 #include "confdefs.h"
1614 #include <assert.h>
1615 Syntax Error
1616 EOF
1617 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1618 { (eval echo configure:1619: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1619 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1620 if test -z "$ac_err"; then
1621 :
1622 else
1623 echo "$ac_err" >&5
1624 echo "configure: failed program was:" >&5
1625 cat conftest.$ac_ext >&5
1626 rm -rf conftest*
1627 CPP="${CC-cc} -nologo -E"
1628 cat > conftest.$ac_ext <<EOF
1629 #line 1630 "configure"
1630 #include "confdefs.h"
1631 #include <assert.h>
1632 Syntax Error
1633 EOF
1634 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1635 { (eval echo configure:1636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1636 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1637 if test -z "$ac_err"; then
1638 :
1639 else
1640 echo "$ac_err" >&5
1641 echo "configure: failed program was:" >&5
1642 cat conftest.$ac_ext >&5
1643 rm -rf conftest*
1644 CPP=/lib/cpp
1645 fi
1646 rm -f conftest*
1647 fi
1648 rm -f conftest*
1649 fi
1650 rm -f conftest*
1651 ac_cv_prog_CPP="$CPP"
1652 fi
1653 CPP="$ac_cv_prog_CPP"
1654 else
1655 ac_cv_prog_CPP="$CPP"
1656 fi
1657 echo "$ac_t""$CPP" 1>&6
1658
1659 ac_safe=`echo "ext2fs/ext2fs.h" | sed 'y%./+-%__p_%'`
1660 echo $ac_n "checking for ext2fs/ext2fs.h""... $ac_c" 1>&6
1661 echo "configure:1662: checking for ext2fs/ext2fs.h" >&5
1662 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1663 echo $ac_n "(cached) $ac_c" 1>&6
1664 else
1665 cat > conftest.$ac_ext <<EOF
1666 #line 1667 "configure"
1667 #include "confdefs.h"
1668 #include <ext2fs/ext2fs.h>
1669 EOF
1670 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1671 { (eval echo configure:1672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1672 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1673 if test -z "$ac_err"; then
1674 rm -rf conftest*
1675 eval "ac_cv_header_$ac_safe=yes"
1676 else
1677 echo "$ac_err" >&5
1678 echo "configure: failed program was:" >&5
1679 cat conftest.$ac_ext >&5
1680 rm -rf conftest*
1681 eval "ac_cv_header_$ac_safe=no"
1682 fi
1683 rm -f conftest*
1684 fi
1685 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1686 echo "$ac_t""yes" 1>&6
1687 ext2fs_h=yes
1688 else
1689 echo "$ac_t""no" 1>&6
1690 ext2fs_h=no
1691 fi
1692
1693 echo $ac_n "checking for ext2fs_open in -lext2fs""... $ac_c" 1>&6
1694 echo "configure:1695: checking for ext2fs_open in -lext2fs" >&5
1695 ac_lib_var=`echo ext2fs'_'ext2fs_open | sed 'y%./+-%__p_%'`
1696 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1697 echo $ac_n "(cached) $ac_c" 1>&6
1698 else
1699 ac_save_LIBS="$LIBS"
1700 LIBS="-lext2fs -lcom_err $LIBS"
1701 cat > conftest.$ac_ext <<EOF
1702 #line 1703 "configure"
1703 #include "confdefs.h"
1704 /* Override any gcc2 internal prototype to avoid an error. */
1705 /* We use char because int might match the return type of a gcc2
1706 builtin and then its argument prototype would still apply. */
1707 char ext2fs_open();
1708
1709 int main() {
1710 ext2fs_open()
1711 ; return 0; }
1712 EOF
1713 if { (eval echo configure:1714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1714 rm -rf conftest*
1715 eval "ac_cv_lib_$ac_lib_var=yes"
1716 else
1717 echo "configure: failed program was:" >&5
1718 cat conftest.$ac_ext >&5
1719 rm -rf conftest*
1720 eval "ac_cv_lib_$ac_lib_var=no"
1721 fi
1722 rm -f conftest*
1723 LIBS="$ac_save_LIBS"
1724
1725 fi
1726 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1727 echo "$ac_t""yes" 1>&6
1728 ext2fs_lib=yes
1729 else
1730 echo "$ac_t""no" 1>&6
1731 ext2fs_lib=no
1732 fi
1733
1734 if test "$ext2fs_h" = no -o "$ext2fs_lib" = no; then
1735 { echo "configure: error: You need to install the Ext2fs libraries from the E2fsprogs distribution first - hint: make install-libs" 1>&2; exit 1; }
1736 fi
1737
1738 for ac_hdr in ext2fs/ext2_fs.h
1739 do
1740 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1741 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1742 echo "configure:1743: checking for $ac_hdr" >&5
1743 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1744 echo $ac_n "(cached) $ac_c" 1>&6
1745 else
1746 cat > conftest.$ac_ext <<EOF
1747 #line 1748 "configure"
1748 #include "confdefs.h"
1749 #include <$ac_hdr>
1750 EOF
1751 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1752 { (eval echo configure:1753: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1753 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1754 if test -z "$ac_err"; then
1755 rm -rf conftest*
1756 eval "ac_cv_header_$ac_safe=yes"
1757 else
1758 echo "$ac_err" >&5
1759 echo "configure: failed program was:" >&5
1760 cat conftest.$ac_ext >&5
1761 rm -rf conftest*
1762 eval "ac_cv_header_$ac_safe=no"
1763 fi
1764 rm -f conftest*
1765 fi
1766 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1767 echo "$ac_t""yes" 1>&6
1768 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1769 cat >> confdefs.h <<EOF
1770 #define $ac_tr_hdr 1
1771 EOF
1772
1773 else
1774 echo "$ac_t""no" 1>&6
1775 fi
1776 done
1777
1778
1779 echo $ac_n "checking for ext2_ino_t type in libext2fs headers""... $ac_c" 1>&6
1780 echo "configure:1781: checking for ext2_ino_t type in libext2fs headers" >&5
1781 cat > conftest.$ac_ext <<EOF
1782 #line 1783 "configure"
1783 #include "confdefs.h"
1784 #include <stdio.h>
1785 #ifdef HAVE_EXT2FS_EXT2_FS_H
1786 #include <ext2fs/ext2_fs.h>
1787 #else
1788 #include <linux/ext2_fs.h>
1789 #endif
1790 #include <ext2fs/ext2fs.h>
1791 int main() {
1792 ext2_ino_t ino = 0;
1793 ; return 0; }
1794 EOF
1795 if { (eval echo configure:1796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1796 rm -rf conftest*
1797 cat >> confdefs.h <<\EOF
1798 #define HAVE_EXT2_INO_T 1
1799 EOF
1800 echo "$ac_t""yes" 1>&6
1801 else
1802 echo "configure: failed program was:" >&5
1803 cat conftest.$ac_ext >&5
1804 rm -rf conftest*
1805 echo "$ac_t""no" 1>&6
1806 fi
1807 rm -f conftest*
1808
1809 echo $ac_n "checking for s_journal_inum field in ext2_super_block struct""... $ac_c" 1>&6
1810 echo "configure:1811: checking for s_journal_inum field in ext2_super_block struct" >&5
1811 cat > conftest.$ac_ext <<EOF
1812 #line 1813 "configure"
1813 #include "confdefs.h"
1814 #include <stdio.h>
1815 #ifdef HAVE_EXT2FS_EXT2_FS_H
1816 #include <ext2fs/ext2_fs.h>
1817 #else
1818 #include <linux/ext2_fs.h>
1819 #endif
1820 #include <ext2fs/ext2fs.h>
1821 int main() {
1822 struct ext2_super_block es; es.s_journal_inum = 0;
1823 ; return 0; }
1824 EOF
1825 if { (eval echo configure:1826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1826 rm -rf conftest*
1827 cat >> confdefs.h <<\EOF
1828 #define HAVE_EXT2_JOURNAL_INUM 1
1829 EOF
1830 echo "$ac_t""yes" 1>&6
1831 else
1832 echo "configure: failed program was:" >&5
1833 cat conftest.$ac_ext >&5
1834 rm -rf conftest*
1835 echo "$ac_t""no" 1>&6
1836 fi
1837 rm -f conftest*
1838
1839 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
1840 echo "configure:1841: checking for tgetent in -ltermcap" >&5
1841 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
1842 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1843 echo $ac_n "(cached) $ac_c" 1>&6
1844 else
1845 ac_save_LIBS="$LIBS"
1846 LIBS="-ltermcap $LIBS"
1847 cat > conftest.$ac_ext <<EOF
1848 #line 1849 "configure"
1849 #include "confdefs.h"
1850 /* Override any gcc2 internal prototype to avoid an error. */
1851 /* We use char because int might match the return type of a gcc2
1852 builtin and then its argument prototype would still apply. */
1853 char tgetent();
1854
1855 int main() {
1856 tgetent()
1857 ; return 0; }
1858 EOF
1859 if { (eval echo configure:1860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1860 rm -rf conftest*
1861 eval "ac_cv_lib_$ac_lib_var=yes"
1862 else
1863 echo "configure: failed program was:" >&5
1864 cat conftest.$ac_ext >&5
1865 rm -rf conftest*
1866 eval "ac_cv_lib_$ac_lib_var=no"
1867 fi
1868 rm -f conftest*
1869 LIBS="$ac_save_LIBS"
1870
1871 fi
1872 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1873 echo "$ac_t""yes" 1>&6
1874 termcap_lib=yes
1875 else
1876 echo "$ac_t""no" 1>&6
1877 termcap_lib=no
1878 fi
1879
1880 if test "$termcap_lib" = no; then
1881 if test "$READLINE" = "-lreadline -ltermcap"; then
1882 { echo "configure: error: You need to install the GNU termcap library or configure without --enable-readline" 1>&2; exit 1; }
1883 fi
1884 fi
1885
1886 ac_safe=`echo "readline/readline.h" | sed 'y%./+-%__p_%'`
1887 echo $ac_n "checking for readline/readline.h""... $ac_c" 1>&6
1888 echo "configure:1889: checking for readline/readline.h" >&5
1889 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1890 echo $ac_n "(cached) $ac_c" 1>&6
1891 else
1892 cat > conftest.$ac_ext <<EOF
1893 #line 1894 "configure"
1894 #include "confdefs.h"
1895 #include <readline/readline.h>
1896 EOF
1897 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1898 { (eval echo configure:1899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1899 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1900 if test -z "$ac_err"; then
1901 rm -rf conftest*
1902 eval "ac_cv_header_$ac_safe=yes"
1903 else
1904 echo "$ac_err" >&5
1905 echo "configure: failed program was:" >&5
1906 cat conftest.$ac_ext >&5
1907 rm -rf conftest*
1908 eval "ac_cv_header_$ac_safe=no"
1909 fi
1910 rm -f conftest*
1911 fi
1912 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1913 echo "$ac_t""yes" 1>&6
1914 readline_h=yes
1915 else
1916 echo "$ac_t""no" 1>&6
1917 readline_h=no
1918 fi
1919
1920 echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
1921 echo "configure:1922: checking for readline in -lreadline" >&5
1922 ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
1923 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1924 echo $ac_n "(cached) $ac_c" 1>&6
1925 else
1926 ac_save_LIBS="$LIBS"
1927 LIBS="-lreadline "-ltermcap" $LIBS"
1928 cat > conftest.$ac_ext <<EOF
1929 #line 1930 "configure"
1930 #include "confdefs.h"
1931 /* Override any gcc2 internal prototype to avoid an error. */
1932 /* We use char because int might match the return type of a gcc2
1933 builtin and then its argument prototype would still apply. */
1934 char readline();
1935
1936 int main() {
1937 readline()
1938 ; return 0; }
1939 EOF
1940 if { (eval echo configure:1941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1941 rm -rf conftest*
1942 eval "ac_cv_lib_$ac_lib_var=yes"
1943 else
1944 echo "configure: failed program was:" >&5
1945 cat conftest.$ac_ext >&5
1946 rm -rf conftest*
1947 eval "ac_cv_lib_$ac_lib_var=no"
1948 fi
1949 rm -f conftest*
1950 LIBS="$ac_save_LIBS"
1951
1952 fi
1953 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1954 echo "$ac_t""yes" 1>&6
1955 readline_lib=yes
1956 else
1957 echo "$ac_t""no" 1>&6
1958 readline_lib=no
1959 fi
1960
1961 if test "$readline_h" = no -o "$readline_lib" = no; then
1962 if test "$READLINE" = "-lreadline -ltermcap"; then
1963 { echo "configure: error: You need to install the GNU readline library or configure without --enable-readline" 1>&2; exit 1; }
1964 fi
1965 fi
1966
1967 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
1968 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
1969 echo "configure:1970: checking for zlib.h" >&5
1970 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1971 echo $ac_n "(cached) $ac_c" 1>&6
1972 else
1973 cat > conftest.$ac_ext <<EOF
1974 #line 1975 "configure"
1975 #include "confdefs.h"
1976 #include <zlib.h>
1977 EOF
1978 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1979 { (eval echo configure:1980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1980 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1981 if test -z "$ac_err"; then
1982 rm -rf conftest*
1983 eval "ac_cv_header_$ac_safe=yes"
1984 else
1985 echo "$ac_err" >&5
1986 echo "configure: failed program was:" >&5
1987 cat conftest.$ac_ext >&5
1988 rm -rf conftest*
1989 eval "ac_cv_header_$ac_safe=no"
1990 fi
1991 rm -f conftest*
1992 fi
1993 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1994 echo "$ac_t""yes" 1>&6
1995 zlib_h=yes
1996 else
1997 echo "$ac_t""no" 1>&6
1998 zlib_h=no
1999 fi
2000
2001 echo $ac_n "checking for compress2 in -lz""... $ac_c" 1>&6
2002 echo "configure:2003: checking for compress2 in -lz" >&5
2003 ac_lib_var=`echo z'_'compress2 | sed 'y%./+-%__p_%'`
2004 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2005 echo $ac_n "(cached) $ac_c" 1>&6
2006 else
2007 ac_save_LIBS="$LIBS"
2008 LIBS="-lz $LIBS"
2009 cat > conftest.$ac_ext <<EOF
2010 #line 2011 "configure"
2011 #include "confdefs.h"
2012 /* Override any gcc2 internal prototype to avoid an error. */
2013 /* We use char because int might match the return type of a gcc2
2014 builtin and then its argument prototype would still apply. */
2015 char compress2();
2016
2017 int main() {
2018 compress2()
2019 ; return 0; }
2020 EOF
2021 if { (eval echo configure:2022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2022 rm -rf conftest*
2023 eval "ac_cv_lib_$ac_lib_var=yes"
2024 else
2025 echo "configure: failed program was:" >&5
2026 cat conftest.$ac_ext >&5
2027 rm -rf conftest*
2028 eval "ac_cv_lib_$ac_lib_var=no"
2029 fi
2030 rm -f conftest*
2031 LIBS="$ac_save_LIBS"
2032
2033 fi
2034 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2035 echo "$ac_t""yes" 1>&6
2036 zlib_lib=yes
2037 else
2038 echo "$ac_t""no" 1>&6
2039 zlib_lib=no
2040 fi
2041
2042 if test "$zlib_h" = yes -a "$zlib_lib" = yes; then
2043 ZLIB="-lz"
2044 cat >> confdefs.h <<\EOF
2045 #define HAVE_ZLIB 1
2046 EOF
2047
2048 else
2049 ZLIB=""
2050 fi
2051
2052
2053 ac_safe=`echo "bzlib.h" | sed 'y%./+-%__p_%'`
2054 echo $ac_n "checking for bzlib.h""... $ac_c" 1>&6
2055 echo "configure:2056: checking for bzlib.h" >&5
2056 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2057 echo $ac_n "(cached) $ac_c" 1>&6
2058 else
2059 cat > conftest.$ac_ext <<EOF
2060 #line 2061 "configure"
2061 #include "confdefs.h"
2062 #include <bzlib.h>
2063 EOF
2064 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2065 { (eval echo configure:2066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2066 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2067 if test -z "$ac_err"; then
2068 rm -rf conftest*
2069 eval "ac_cv_header_$ac_safe=yes"
2070 else
2071 echo "$ac_err" >&5
2072 echo "configure: failed program was:" >&5
2073 cat conftest.$ac_ext >&5
2074 rm -rf conftest*
2075 eval "ac_cv_header_$ac_safe=no"
2076 fi
2077 rm -f conftest*
2078 fi
2079 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2080 echo "$ac_t""yes" 1>&6
2081 bzlib_h=yes
2082 else
2083 echo "$ac_t""no" 1>&6
2084 bzlib_h=no
2085 fi
2086
2087 echo $ac_n "checking for BZ2_bzBuffToBuffCompress in -lbz2""... $ac_c" 1>&6
2088 echo "configure:2089: checking for BZ2_bzBuffToBuffCompress in -lbz2" >&5
2089 ac_lib_var=`echo bz2'_'BZ2_bzBuffToBuffCompress | sed 'y%./+-%__p_%'`
2090 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2091 echo $ac_n "(cached) $ac_c" 1>&6
2092 else
2093 ac_save_LIBS="$LIBS"
2094 LIBS="-lbz2 $LIBS"
2095 cat > conftest.$ac_ext <<EOF
2096 #line 2097 "configure"
2097 #include "confdefs.h"
2098 /* Override any gcc2 internal prototype to avoid an error. */
2099 /* We use char because int might match the return type of a gcc2
2100 builtin and then its argument prototype would still apply. */
2101 char BZ2_bzBuffToBuffCompress();
2102
2103 int main() {
2104 BZ2_bzBuffToBuffCompress()
2105 ; return 0; }
2106 EOF
2107 if { (eval echo configure:2108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2108 rm -rf conftest*
2109 eval "ac_cv_lib_$ac_lib_var=yes"
2110 else
2111 echo "configure: failed program was:" >&5
2112 cat conftest.$ac_ext >&5
2113 rm -rf conftest*
2114 eval "ac_cv_lib_$ac_lib_var=no"
2115 fi
2116 rm -f conftest*
2117 LIBS="$ac_save_LIBS"
2118
2119 fi
2120 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2121 echo "$ac_t""yes" 1>&6
2122 bzlib_lib=yes
2123 else
2124 echo "$ac_t""no" 1>&6
2125 bzlib_lib=no
2126 fi
2127
2128 if test "$bzlib_h" = yes -a "$bzlib_lib" = yes; then
2129 BZLIB="-lbz2"
2130 cat >> confdefs.h <<\EOF
2131 #define HAVE_BZLIB 1
2132 EOF
2133
2134 else
2135 BZLIB=""
2136 fi
2137
2138
2139 for ac_func in err errx verr verrx vwarn vwarnx warn warnx realpath lchown
2140 do
2141 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2142 echo "configure:2143: checking for $ac_func" >&5
2143 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2144 echo $ac_n "(cached) $ac_c" 1>&6
2145 else
2146 cat > conftest.$ac_ext <<EOF
2147 #line 2148 "configure"
2148 #include "confdefs.h"
2149 /* System header to define __stub macros and hopefully few prototypes,
2150 which can conflict with char $ac_func(); below. */
2151 #include <assert.h>
2152 /* Override any gcc2 internal prototype to avoid an error. */
2153 /* We use char because int might match the return type of a gcc2
2154 builtin and then its argument prototype would still apply. */
2155 char $ac_func();
2156
2157 int main() {
2158
2159 /* The GNU C library defines this for functions which it implements
2160 to always fail with ENOSYS. Some functions are actually named
2161 something starting with __ and the normal name is an alias. */
2162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2163 choke me
2164 #else
2165 $ac_func();
2166 #endif
2167
2168 ; return 0; }
2169 EOF
2170 if { (eval echo configure:2171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2171 rm -rf conftest*
2172 eval "ac_cv_func_$ac_func=yes"
2173 else
2174 echo "configure: failed program was:" >&5
2175 cat conftest.$ac_ext >&5
2176 rm -rf conftest*
2177 eval "ac_cv_func_$ac_func=no"
2178 fi
2179 rm -f conftest*
2180 fi
2181
2182 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2183 echo "$ac_t""yes" 1>&6
2184 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2185 cat >> confdefs.h <<EOF
2186 #define $ac_tr_func 1
2187 EOF
2188
2189 else
2190 echo "$ac_t""no" 1>&6
2191 fi
2192 done
2193
2194 echo $ac_n "checking for glob""... $ac_c" 1>&6
2195 echo "configure:2196: checking for glob" >&5
2196 if eval "test \"`echo '$''{'ac_cv_func_glob'+set}'`\" = set"; then
2197 echo $ac_n "(cached) $ac_c" 1>&6
2198 else
2199 cat > conftest.$ac_ext <<EOF
2200 #line 2201 "configure"
2201 #include "confdefs.h"
2202 /* System header to define __stub macros and hopefully few prototypes,
2203 which can conflict with char glob(); below. */
2204 #include <assert.h>
2205 /* Override any gcc2 internal prototype to avoid an error. */
2206 /* We use char because int might match the return type of a gcc2
2207 builtin and then its argument prototype would still apply. */
2208 char glob();
2209
2210 int main() {
2211
2212 /* The GNU C library defines this for functions which it implements
2213 to always fail with ENOSYS. Some functions are actually named
2214 something starting with __ and the normal name is an alias. */
2215 #if defined (__stub_glob) || defined (__stub___glob)
2216 choke me
2217 #else
2218 glob();
2219 #endif
2220
2221 ; return 0; }
2222 EOF
2223 if { (eval echo configure:2224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2224 rm -rf conftest*
2225 eval "ac_cv_func_glob=yes"
2226 else
2227 echo "configure: failed program was:" >&5
2228 cat conftest.$ac_ext >&5
2229 rm -rf conftest*
2230 eval "ac_cv_func_glob=no"
2231 fi
2232 rm -f conftest*
2233 fi
2234
2235 if eval "test \"`echo '$ac_cv_func_'glob`\" = yes"; then
2236 echo "$ac_t""yes" 1>&6
2237 :
2238 else
2239 echo "$ac_t""no" 1>&6
2240 fi
2241
2242
2243 echo $ac_n "checking for extended glob routines""... $ac_c" 1>&6
2244 echo "configure:2245: checking for extended glob routines" >&5
2245 if test "$ac_cv_func_glob" = "yes"; then
2246 cat > conftest.$ac_ext <<EOF
2247 #line 2248 "configure"
2248 #include "confdefs.h"
2249
2250 # include <glob.h>
2251 # ifdef GLOB_ALTDIRFUNC
2252 yes
2253 # endif
2254
2255 EOF
2256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2257 egrep "yes" >/dev/null 2>&1; then
2258 rm -rf conftest*
2259
2260 cat >> confdefs.h <<\EOF
2261 #define HAVE_GLOB 1
2262 EOF
2263
2264 echo "$ac_t""yes" 1>&6
2265
2266 else
2267 rm -rf conftest*
2268
2269 echo "$ac_t""no" 1>&6
2270 echo "Your system does not support extended glob, will use the internal routines"
2271
2272 fi
2273 rm -f conftest*
2274
2275 fi
2276
2277 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2278 echo "configure:2279: checking for ANSI C header files" >&5
2279 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2280 echo $ac_n "(cached) $ac_c" 1>&6
2281 else
2282 cat > conftest.$ac_ext <<EOF
2283 #line 2284 "configure"
2284 #include "confdefs.h"
2285 #include <stdlib.h>
2286 #include <stdarg.h>
2287 #include <string.h>
2288 #include <float.h>
2289 EOF
2290 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2291 { (eval echo configure:2292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2292 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2293 if test -z "$ac_err"; then
2294 rm -rf conftest*
2295 ac_cv_header_stdc=yes
2296 else
2297 echo "$ac_err" >&5
2298 echo "configure: failed program was:" >&5
2299 cat conftest.$ac_ext >&5
2300 rm -rf conftest*
2301 ac_cv_header_stdc=no
2302 fi
2303 rm -f conftest*
2304
2305 if test $ac_cv_header_stdc = yes; then
2306 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2307 cat > conftest.$ac_ext <<EOF
2308 #line 2309 "configure"
2309 #include "confdefs.h"
2310 #include <string.h>
2311 EOF
2312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2313 egrep "memchr" >/dev/null 2>&1; then
2314 :
2315 else
2316 rm -rf conftest*
2317 ac_cv_header_stdc=no
2318 fi
2319 rm -f conftest*
2320
2321 fi
2322
2323 if test $ac_cv_header_stdc = yes; then
2324 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2325 cat > conftest.$ac_ext <<EOF
2326 #line 2327 "configure"
2327 #include "confdefs.h"
2328 #include <stdlib.h>
2329 EOF
2330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2331 egrep "free" >/dev/null 2>&1; then
2332 :
2333 else
2334 rm -rf conftest*
2335 ac_cv_header_stdc=no
2336 fi
2337 rm -f conftest*
2338
2339 fi
2340
2341 if test $ac_cv_header_stdc = yes; then
2342 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2343 if test "$cross_compiling" = yes; then
2344 :
2345 else
2346 cat > conftest.$ac_ext <<EOF
2347 #line 2348 "configure"
2348 #include "confdefs.h"
2349 #include <ctype.h>
2350 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2351 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2352 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2353 int main () { int i; for (i = 0; i < 256; i++)
2354 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2355 exit (0); }
2356
2357 EOF
2358 if { (eval echo configure:2359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2359 then
2360 :
2361 else
2362 echo "configure: failed program was:" >&5
2363 cat conftest.$ac_ext >&5
2364 rm -fr conftest*
2365 ac_cv_header_stdc=no
2366 fi
2367 rm -fr conftest*
2368 fi
2369
2370 fi
2371 fi
2372
2373 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2374 if test $ac_cv_header_stdc = yes; then
2375 cat >> confdefs.h <<\EOF
2376 #define STDC_HEADERS 1
2377 EOF
2378
2379 fi
2380
2381 echo $ac_n "checking for quad_t""... $ac_c" 1>&6
2382 echo "configure:2383: checking for quad_t" >&5
2383 if eval "test \"`echo '$''{'ac_cv_type_quad_t'+set}'`\" = set"; then
2384 echo $ac_n "(cached) $ac_c" 1>&6
2385 else
2386 cat > conftest.$ac_ext <<EOF
2387 #line 2388 "configure"
2388 #include "confdefs.h"
2389 #include <sys/types.h>
2390 #if STDC_HEADERS
2391 #include <stdlib.h>
2392 #include <stddef.h>
2393 #endif
2394 EOF
2395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2396 egrep "(^|[^a-zA-Z_0-9])quad_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2397 rm -rf conftest*
2398 ac_cv_type_quad_t=yes
2399 else
2400 rm -rf conftest*
2401 ac_cv_type_quad_t=no
2402 fi
2403 rm -f conftest*
2404
2405 fi
2406 echo "$ac_t""$ac_cv_type_quad_t" 1>&6
2407 if test $ac_cv_type_quad_t = no; then
2408 cat >> confdefs.h <<\EOF
2409 #define quad_t __s64
2410 EOF
2411
2412 fi
2413
2414 echo $ac_n "checking for u_quad_t""... $ac_c" 1>&6
2415 echo "configure:2416: checking for u_quad_t" >&5
2416 if eval "test \"`echo '$''{'ac_cv_type_u_quad_t'+set}'`\" = set"; then
2417 echo $ac_n "(cached) $ac_c" 1>&6
2418 else
2419 cat > conftest.$ac_ext <<EOF
2420 #line 2421 "configure"
2421 #include "confdefs.h"
2422 #include <sys/types.h>
2423 #if STDC_HEADERS
2424 #include <stdlib.h>
2425 #include <stddef.h>
2426 #endif
2427 EOF
2428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2429 egrep "(^|[^a-zA-Z_0-9])u_quad_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2430 rm -rf conftest*
2431 ac_cv_type_u_quad_t=yes
2432 else
2433 rm -rf conftest*
2434 ac_cv_type_u_quad_t=no
2435 fi
2436 rm -f conftest*
2437
2438 fi
2439 echo "$ac_t""$ac_cv_type_u_quad_t" 1>&6
2440 if test $ac_cv_type_u_quad_t = no; then
2441 cat >> confdefs.h <<\EOF
2442 #define u_quad_t __u64
2443 EOF
2444
2445 fi
2446
2447
2448 top_builddir=`cd .; pwd`
2449
2450
2451 test -d compat || mkdir compat
2452 test -d compat/lib || mkdir compat/lib
2453
2454 trap '' 1 2 15
2455 cat > confcache <<\EOF
2456 # This file is a shell script that caches the results of configure
2457 # tests run on this system so they can be shared between configure
2458 # scripts and configure runs. It is not useful on other systems.
2459 # If it contains results you don't want to keep, you may remove or edit it.
2460 #
2461 # By default, configure uses ./config.cache as the cache file,
2462 # creating it if it does not exist already. You can give configure
2463 # the --cache-file=FILE option to use a different cache file; that is
2464 # what configure does when it calls configure scripts in
2465 # subdirectories, so they share the cache.
2466 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2467 # config.status only pays attention to the cache file if you give it the
2468 # --recheck option to rerun configure.
2469 #
2470 EOF
2471 # The following way of writing the cache mishandles newlines in values,
2472 # but we know of no workaround that is simple, portable, and efficient.
2473 # So, don't put newlines in cache variables' values.
2474 # Ultrix sh set writes to stderr and can't be redirected directly,
2475 # and sets the high bit in the cache file unless we assign to the vars.
2476 (set) 2>&1 |
2477 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2478 *ac_space=\ *)
2479 # `set' does not quote correctly, so add quotes (double-quote substitution
2480 # turns \\\\ into \\, and sed turns \\ into \).
2481 sed -n \
2482 -e "s/'/'\\\\''/g" \
2483 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2484 ;;
2485 *)
2486 # `set' quotes correctly as required by POSIX, so do not add quotes.
2487 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2488 ;;
2489 esac >> confcache
2490 if cmp -s $cache_file confcache; then
2491 :
2492 else
2493 if test -w $cache_file; then
2494 echo "updating cache $cache_file"
2495 cat confcache > $cache_file
2496 else
2497 echo "not updating unwritable cache $cache_file"
2498 fi
2499 fi
2500 rm -f confcache
2501
2502 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2503
2504 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2505 # Let make expand exec_prefix.
2506 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2507
2508 # Any assignment to VPATH causes Sun make to only execute
2509 # the first set of double-colon rules, so remove it if not needed.
2510 # If there is a colon in the path, we need to keep it.
2511 if test "x$srcdir" = x.; then
2512 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2513 fi
2514
2515 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2516
2517 DEFS=-DHAVE_CONFIG_H
2518
2519 # Without the "./", some shells look in PATH for config.status.
2520 : ${CONFIG_STATUS=./config.status}
2521
2522 echo creating $CONFIG_STATUS
2523 rm -f $CONFIG_STATUS
2524 cat > $CONFIG_STATUS <<EOF
2525 #! /bin/sh
2526 # Generated automatically by configure.
2527 # Run this file to recreate the current configuration.
2528 # This directory was configured as follows,
2529 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2530 #
2531 # $0 $ac_configure_args
2532 #
2533 # Compiler output produced by configure, useful for debugging
2534 # configure, is in ./config.log if it exists.
2535
2536 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2537 for ac_option
2538 do
2539 case "\$ac_option" in
2540 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2541 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2542 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2543 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2544 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2545 exit 0 ;;
2546 -help | --help | --hel | --he | --h)
2547 echo "\$ac_cs_usage"; exit 0 ;;
2548 *) echo "\$ac_cs_usage"; exit 1 ;;
2549 esac
2550 done
2551
2552 ac_given_srcdir=$srcdir
2553 ac_given_INSTALL="$INSTALL"
2554
2555 trap 'rm -fr `echo "MCONFIG Makefile common/Makefile compat/include/Makefile compat/lib/Makefile dump/Makefile restore/Makefile $RMTMAKEFILE config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2556 EOF
2557 cat >> $CONFIG_STATUS <<EOF
2558
2559 # Protect against being on the right side of a sed subst in config.status.
2560 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2561 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2562 $ac_vpsub
2563 $extrasub
2564 s%@SHELL@%$SHELL%g
2565 s%@CFLAGS@%$CFLAGS%g
2566 s%@CPPFLAGS@%$CPPFLAGS%g
2567 s%@CXXFLAGS@%$CXXFLAGS%g
2568 s%@FFLAGS@%$FFLAGS%g
2569 s%@DEFS@%$DEFS%g
2570 s%@LDFLAGS@%$LDFLAGS%g
2571 s%@LIBS@%$LIBS%g
2572 s%@exec_prefix@%$exec_prefix%g
2573 s%@prefix@%$prefix%g
2574 s%@program_transform_name@%$program_transform_name%g
2575 s%@bindir@%$bindir%g
2576 s%@sbindir@%$sbindir%g
2577 s%@libexecdir@%$libexecdir%g
2578 s%@datadir@%$datadir%g
2579 s%@sysconfdir@%$sysconfdir%g
2580 s%@sharedstatedir@%$sharedstatedir%g
2581 s%@localstatedir@%$localstatedir%g
2582 s%@libdir@%$libdir%g
2583 s%@includedir@%$includedir%g
2584 s%@oldincludedir@%$oldincludedir%g
2585 s%@infodir@%$infodir%g
2586 s%@mandir@%$mandir%g
2587 /@MCONFIG@/r $MCONFIG
2588 s%@MCONFIG@%%g
2589 s%@SET_MAKE@%$SET_MAKE%g
2590 s%@LN_S@%$LN_S%g
2591 s%@CP@%$CP%g
2592 s%@MV@%$MV%g
2593 s%@RM@%$RM%g
2594 s%@host@%$host%g
2595 s%@host_alias@%$host_alias%g
2596 s%@host_cpu@%$host_cpu%g
2597 s%@host_vendor@%$host_vendor%g
2598 s%@host_os@%$host_os%g
2599 s%@build@%$build%g
2600 s%@build_alias@%$build_alias%g
2601 s%@build_cpu@%$build_cpu%g
2602 s%@build_vendor@%$build_vendor%g
2603 s%@build_os@%$build_os%g
2604 s%@AR@%$AR%g
2605 s%@RANLIB@%$RANLIB%g
2606 s%@PATCH@%$PATCH%g
2607 s%@CC@%$CC%g
2608 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2609 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2610 s%@INSTALL_DATA@%$INSTALL_DATA%g
2611 s%@DUMPDEBUG@%$DUMPDEBUG%g
2612 s%@RESTOREDEBUG@%$RESTOREDEBUG%g
2613 s%@STATIC@%$STATIC%g
2614 s%@RMTDIR@%$RMTDIR%g
2615 s%@OPTDEFS@%$OPTDEFS%g
2616 s%@READLINE@%$READLINE%g
2617 s%@LD@%$LD%g
2618 s%@CCOPTS@%$CCOPTS%g
2619 s%@BINOWNER@%$BINOWNER%g
2620 s%@BINGRP@%$BINGRP%g
2621 s%@BINMODE@%$BINMODE%g
2622 s%@MANOWNER@%$MANOWNER%g
2623 s%@MANGRP@%$MANGRP%g
2624 s%@MANMODE@%$MANMODE%g
2625 s%@DUMPDATESPATH@%$DUMPDATESPATH%g
2626 s%@CPP@%$CPP%g
2627 s%@ZLIB@%$ZLIB%g
2628 s%@BZLIB@%$BZLIB%g
2629 s%@top_builddir@%$top_builddir%g
2630
2631 CEOF
2632 EOF
2633
2634 cat >> $CONFIG_STATUS <<\EOF
2635
2636 # Split the substitutions into bite-sized pieces for seds with
2637 # small command number limits, like on Digital OSF/1 and HP-UX.
2638 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2639 ac_file=1 # Number of current file.
2640 ac_beg=1 # First line for current file.
2641 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2642 ac_more_lines=:
2643 ac_sed_cmds=""
2644 while $ac_more_lines; do
2645 if test $ac_beg -gt 1; then
2646 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2647 else
2648 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2649 fi
2650 if test ! -s conftest.s$ac_file; then
2651 ac_more_lines=false
2652 rm -f conftest.s$ac_file
2653 else
2654 if test -z "$ac_sed_cmds"; then
2655 ac_sed_cmds="sed -f conftest.s$ac_file"
2656 else
2657 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2658 fi
2659 ac_file=`expr $ac_file + 1`
2660 ac_beg=$ac_end
2661 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2662 fi
2663 done
2664 if test -z "$ac_sed_cmds"; then
2665 ac_sed_cmds=cat
2666 fi
2667 EOF
2668
2669 cat >> $CONFIG_STATUS <<EOF
2670
2671 CONFIG_FILES=\${CONFIG_FILES-"MCONFIG Makefile common/Makefile compat/include/Makefile compat/lib/Makefile dump/Makefile restore/Makefile $RMTMAKEFILE"}
2672 EOF
2673 cat >> $CONFIG_STATUS <<\EOF
2674 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2675 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2676 case "$ac_file" in
2677 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2678 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2679 *) ac_file_in="${ac_file}.in" ;;
2680 esac
2681
2682 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2683
2684 # Remove last slash and all that follows it. Not all systems have dirname.
2685 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2686 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2687 # The file is in a subdirectory.
2688 test ! -d "$ac_dir" && mkdir "$ac_dir"
2689 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2690 # A "../" for each directory in $ac_dir_suffix.
2691 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2692 else
2693 ac_dir_suffix= ac_dots=
2694 fi
2695
2696 case "$ac_given_srcdir" in
2697 .) srcdir=.
2698 if test -z "$ac_dots"; then top_srcdir=.
2699 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2700 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2701 *) # Relative path.
2702 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2703 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2704 esac
2705
2706 case "$ac_given_INSTALL" in
2707 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2708 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2709 esac
2710
2711 echo creating "$ac_file"
2712 rm -f "$ac_file"
2713 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2714 case "$ac_file" in
2715 *Makefile*) ac_comsub="1i\\
2716 # $configure_input" ;;
2717 *) ac_comsub= ;;
2718 esac
2719
2720 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2721 sed -e "$ac_comsub
2722 s%@configure_input@%$configure_input%g
2723 s%@srcdir@%$srcdir%g
2724 s%@top_srcdir@%$top_srcdir%g
2725 s%@INSTALL@%$INSTALL%g
2726 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2727 fi; done
2728 rm -f conftest.s*
2729
2730 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2731 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2732 #
2733 # ac_d sets the value in "#define NAME VALUE" lines.
2734 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2735 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2736 ac_dC='\3'
2737 ac_dD='%g'
2738 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2739 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2740 ac_uB='\([ ]\)%\1#\2define\3'
2741 ac_uC=' '
2742 ac_uD='\4%g'
2743 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2744 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2745 ac_eB='$%\1#\2define\3'
2746 ac_eC=' '
2747 ac_eD='%g'
2748
2749 if test "${CONFIG_HEADERS+set}" != set; then
2750 EOF
2751 cat >> $CONFIG_STATUS <<EOF
2752 CONFIG_HEADERS="config.h"
2753 EOF
2754 cat >> $CONFIG_STATUS <<\EOF
2755 fi
2756 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2757 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2758 case "$ac_file" in
2759 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2760 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2761 *) ac_file_in="${ac_file}.in" ;;
2762 esac
2763
2764 echo creating $ac_file
2765
2766 rm -f conftest.frag conftest.in conftest.out
2767 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2768 cat $ac_file_inputs > conftest.in
2769
2770 EOF
2771
2772 # Transform confdefs.h into a sed script conftest.vals that substitutes
2773 # the proper values into config.h.in to produce config.h. And first:
2774 # Protect against being on the right side of a sed subst in config.status.
2775 # Protect against being in an unquoted here document in config.status.
2776 rm -f conftest.vals
2777 cat > conftest.hdr <<\EOF
2778 s/[\\&%]/\\&/g
2779 s%[\\$`]%\\&%g
2780 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2781 s%ac_d%ac_u%gp
2782 s%ac_u%ac_e%gp
2783 EOF
2784 sed -n -f conftest.hdr confdefs.h > conftest.vals
2785 rm -f conftest.hdr
2786
2787 # This sed command replaces #undef with comments. This is necessary, for
2788 # example, in the case of _POSIX_SOURCE, which is predefined and required
2789 # on some systems where configure will not decide to define it.
2790 cat >> conftest.vals <<\EOF
2791 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2792 EOF
2793
2794 # Break up conftest.vals because some shells have a limit on
2795 # the size of here documents, and old seds have small limits too.
2796
2797 rm -f conftest.tail
2798 while :
2799 do
2800 ac_lines=`grep -c . conftest.vals`
2801 # grep -c gives empty output for an empty file on some AIX systems.
2802 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2803 # Write a limited-size here document to conftest.frag.
2804 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2805 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2806 echo 'CEOF
2807 sed -f conftest.frag conftest.in > conftest.out
2808 rm -f conftest.in
2809 mv conftest.out conftest.in
2810 ' >> $CONFIG_STATUS
2811 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2812 rm -f conftest.vals
2813 mv conftest.tail conftest.vals
2814 done
2815 rm -f conftest.vals
2816
2817 cat >> $CONFIG_STATUS <<\EOF
2818 rm -f conftest.frag conftest.h
2819 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2820 cat conftest.in >> conftest.h
2821 rm -f conftest.in
2822 if cmp -s $ac_file conftest.h 2>/dev/null; then
2823 echo "$ac_file is unchanged"
2824 rm -f conftest.h
2825 else
2826 # Remove last slash and all that follows it. Not all systems have dirname.
2827 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2828 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2829 # The file is in a subdirectory.
2830 test ! -d "$ac_dir" && mkdir "$ac_dir"
2831 fi
2832 rm -f $ac_file
2833 mv conftest.h $ac_file
2834 fi
2835 fi; done
2836
2837 EOF
2838 cat >> $CONFIG_STATUS <<EOF
2839
2840 EOF
2841 cat >> $CONFIG_STATUS <<\EOF
2842
2843 exit 0
2844 EOF
2845 chmod +x $CONFIG_STATUS
2846 rm -fr confdefs* $ac_clean_files
2847 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2848