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