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