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