]> git.wh0rd.org - dump.git/blob - configure
Version 0.4b5.
[dump.git] / configure
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:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-dumpdates-patch apply the dumpdates patch from Debian"
16 ac_help="$ac_help
17 --enable-debug include debugging code"
18 ac_help="$ac_help
19 --enable-static link dump and restore statically"
20 ac_help="$ac_help
21 --enable-rmt compile and install rmt"
22 ac_help="$ac_help
23 --with-cc=COMPILER select compiler to use"
24 ac_help="$ac_help
25 --with-linker=LINKER select linker to use"
26 ac_help="$ac_help
27 --with-ccopts=CCOPTS select compiler command line options"
28 ac_help="$ac_help
29 --with-ldopts=LDOPTS select linker command line options"
30 ac_help="$ac_help
31 --with-binowner=USER select owner for binaries"
32 ac_help="$ac_help
33 --with-bingrp=GROUP select group for binaries"
34 ac_help="$ac_help
35 --with-binmode=MODE select mode for binaries"
36 ac_help="$ac_help
37 --with-manowner=USER select owner for manual pages"
38 ac_help="$ac_help
39 --with-mangrp=group select group for manual pages"
40 ac_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.
46 build=NONE
47 cache_file=./config.cache
48 exec_prefix=NONE
49 host=NONE
50 no_create=
51 nonopt=NONE
52 no_recursion=
53 prefix=NONE
54 program_prefix=NONE
55 program_suffix=NONE
56 program_transform_name=s,x,x,
57 silent=
58 site=
59 srcdir=
60 target=NONE
61 verbose=
62 x_includes=NONE
63 x_libraries=NONE
64 bindir='${exec_prefix}/bin'
65 sbindir='${exec_prefix}/sbin'
66 libexecdir='${exec_prefix}/libexec'
67 datadir='${prefix}/share'
68 sysconfdir='${prefix}/etc'
69 sharedstatedir='${prefix}/com'
70 localstatedir='${prefix}/var'
71 libdir='${exec_prefix}/lib'
72 includedir='${prefix}/include'
73 oldincludedir='/usr/include'
74 infodir='${prefix}/info'
75 mandir='${prefix}/man'
76
77 # Initialize some other variables.
78 subdirs=
79 MFLAGS= MAKEFLAGS=
80 # Maximum number of lines to put in a shell here document.
81 ac_max_here_lines=12
82
83 ac_prev=
84 for ac_option
85 do
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
165 Usage: configure [options] [host]
166 Options: [defaults in brackets after descriptions]
167 Configuration:
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
173 Directory 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
197 EOF
198 cat << EOF
199 Host 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]
203 Features 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
210 EOF
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
420 done
421
422 if test -n "$ac_prev"; then
423 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
424 fi
425
426 trap '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
436 if test "$silent" = yes; then
437 exec 6>/dev/null
438 else
439 exec 6>&1
440 fi
441 exec 5>./config.log
442
443 echo "\
444 This file contains any messages produced by compilers while
445 running 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.
450 ac_configure_args=
451 for ac_arg
452 do
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
462 done
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.
469 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
470 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
471 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
472 if 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.
475 rm -rf conftest* confdefs.h
476 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
477 echo > 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.
481 ac_unique_file=dump/dump.h
482
483 # Find the source files, if location was not specified.
484 if 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
494 else
495 ac_srcdir_defaulted=no
496 fi
497 if 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
503 fi
504 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
505
506 # Prefer explicitly selected file to automatically selected ones.
507 if 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
513 fi
514 for 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
519 done
520
521 if test -r "$cache_file"; then
522 echo "loading cache $cache_file"
523 . $cache_file
524 else
525 echo "creating cache $cache_file"
526 > $cache_file
527 fi
528
529 ac_ext=c
530 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
531 ac_cpp='$CPP $CPPFLAGS'
532 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
533 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
534 cross_compiling=$ac_cv_prog_cc_cross
535
536 if (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
544 else
545 ac_n= ac_c='\c' ac_t=
546 fi
547
548
549
550 MCONFIG=./MCONFIG
551
552
553
554
555 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
556 echo "configure:557: checking whether ${MAKE-make} sets \${MAKE}" >&5
557 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
558 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
559 echo $ac_n "(cached) $ac_c" 1>&6
560 else
561 cat > conftestmake <<\EOF
562 all:
563 @echo 'ac_maketemp="${MAKE}"'
564 EOF
565 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
566 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
567 if test -n "$ac_maketemp"; then
568 eval ac_cv_prog_make_${ac_make}_set=yes
569 else
570 eval ac_cv_prog_make_${ac_make}_set=no
571 fi
572 rm -f conftestmake
573 fi
574 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
575 echo "$ac_t""yes" 1>&6
576 SET_MAKE=
577 else
578 echo "$ac_t""no" 1>&6
579 SET_MAKE="MAKE=${MAKE-make}"
580 fi
581
582 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
583 echo "configure:584: checking whether ln -s works" >&5
584 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
585 echo $ac_n "(cached) $ac_c" 1>&6
586 else
587 rm -f conftestdata
588 if ln -s X conftestdata 2>/dev/null
589 then
590 rm -f conftestdata
591 ac_cv_prog_LN_S="ln -s"
592 else
593 ac_cv_prog_LN_S=ln
594 fi
595 fi
596 LN_S="$ac_cv_prog_LN_S"
597 if test "$ac_cv_prog_LN_S" = "ln -s"; then
598 echo "$ac_t""yes" 1>&6
599 else
600 echo "$ac_t""no" 1>&6
601 fi
602
603 # Extract the first word of "cp", so it can be a program name with args.
604 set dummy cp; ac_word=$2
605 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
606 echo "configure:607: checking for $ac_word" >&5
607 if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
608 echo $ac_n "(cached) $ac_c" 1>&6
609 else
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 ;;
626 esac
627 fi
628 CP="$ac_cv_path_CP"
629 if test -n "$CP"; then
630 echo "$ac_t""$CP" 1>&6
631 else
632 echo "$ac_t""no" 1>&6
633 fi
634
635 # Extract the first word of "mv", so it can be a program name with args.
636 set dummy mv; ac_word=$2
637 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
638 echo "configure:639: checking for $ac_word" >&5
639 if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
640 echo $ac_n "(cached) $ac_c" 1>&6
641 else
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 ;;
658 esac
659 fi
660 MV="$ac_cv_path_MV"
661 if test -n "$MV"; then
662 echo "$ac_t""$MV" 1>&6
663 else
664 echo "$ac_t""no" 1>&6
665 fi
666
667 # Extract the first word of "rm", so it can be a program name with args.
668 set dummy rm; ac_word=$2
669 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
670 echo "configure:671: checking for $ac_word" >&5
671 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
672 echo $ac_n "(cached) $ac_c" 1>&6
673 else
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 ;;
690 esac
691 fi
692 RM="$ac_cv_path_RM"
693 if test -n "$RM"; then
694 echo "$ac_t""$RM" 1>&6
695 else
696 echo "$ac_t""no" 1>&6
697 fi
698
699 ac_aux_dir=
700 for 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
710 done
711 if 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; }
713 fi
714 ac_config_guess=$ac_aux_dir/config.guess
715 ac_config_sub=$ac_aux_dir/config.sub
716 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
717
718
719 # Make sure we can run config.sub.
720 if $ac_config_sub sun4 >/dev/null 2>&1; then :
721 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
722 fi
723
724 echo $ac_n "checking host system type""... $ac_c" 1>&6
725 echo "configure:726: checking host system type" >&5
726
727 host_alias=$host
728 case "$host_alias" in
729 NONE)
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 ;;
737 esac
738
739 host=`$ac_config_sub $host_alias`
740 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
741 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
742 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
743 echo "$ac_t""$host" 1>&6
744
745 echo $ac_n "checking build system type""... $ac_c" 1>&6
746 echo "configure:747: checking build system type" >&5
747
748 build_alias=$build
749 case "$build_alias" in
750 NONE)
751 case $nonopt in
752 NONE) build_alias=$host_alias ;;
753 *) build_alias=$nonopt ;;
754 esac ;;
755 esac
756
757 build=`$ac_config_sub $build_alias`
758 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
759 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
760 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
761 echo "$ac_t""$build" 1>&6
762
763 if test $host != $build; then
764 ac_tool_prefix=${host_alias}-
765 else
766 ac_tool_prefix=
767 fi
768
769 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
770 set dummy ${ac_tool_prefix}ar; ac_word=$2
771 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
772 echo "configure:773: checking for $ac_word" >&5
773 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
774 echo $ac_n "(cached) $ac_c" 1>&6
775 else
776 if test -n "$AR"; then
777 ac_cv_prog_AR="$AR" # Let the user override the test.
778 else
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"
788 fi
789 fi
790 AR="$ac_cv_prog_AR"
791 if test -n "$AR"; then
792 echo "$ac_t""$AR" 1>&6
793 else
794 echo "$ac_t""no" 1>&6
795 fi
796
797
798 if test -z "$ac_cv_prog_AR"; then
799 if test -n "$ac_tool_prefix"; then
800 # Extract the first word of "ar", so it can be a program name with args.
801 set dummy ar; ac_word=$2
802 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
803 echo "configure:804: checking for $ac_word" >&5
804 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
805 echo $ac_n "(cached) $ac_c" 1>&6
806 else
807 if test -n "$AR"; then
808 ac_cv_prog_AR="$AR" # Let the user override the test.
809 else
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"
820 fi
821 fi
822 AR="$ac_cv_prog_AR"
823 if test -n "$AR"; then
824 echo "$ac_t""$AR" 1>&6
825 else
826 echo "$ac_t""no" 1>&6
827 fi
828
829 else
830 AR="ar"
831 fi
832 fi
833
834 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
835 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
836 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
837 echo "configure:838: checking for $ac_word" >&5
838 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
839 echo $ac_n "(cached) $ac_c" 1>&6
840 else
841 if test -n "$RANLIB"; then
842 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
843 else
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"
853 fi
854 fi
855 RANLIB="$ac_cv_prog_RANLIB"
856 if test -n "$RANLIB"; then
857 echo "$ac_t""$RANLIB" 1>&6
858 else
859 echo "$ac_t""no" 1>&6
860 fi
861
862
863 if test -z "$ac_cv_prog_RANLIB"; then
864 if test -n "$ac_tool_prefix"; then
865 # Extract the first word of "ranlib", so it can be a program name with args.
866 set dummy ranlib; ac_word=$2
867 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
868 echo "configure:869: checking for $ac_word" >&5
869 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
870 echo $ac_n "(cached) $ac_c" 1>&6
871 else
872 if test -n "$RANLIB"; then
873 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
874 else
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=":"
885 fi
886 fi
887 RANLIB="$ac_cv_prog_RANLIB"
888 if test -n "$RANLIB"; then
889 echo "$ac_t""$RANLIB" 1>&6
890 else
891 echo "$ac_t""no" 1>&6
892 fi
893
894 else
895 RANLIB=":"
896 fi
897 fi
898
899 # Extract the first word of "${ac_tool_prefix}patch", so it can be a program name with args.
900 set dummy ${ac_tool_prefix}patch; ac_word=$2
901 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
902 echo "configure:903: checking for $ac_word" >&5
903 if eval "test \"`echo '$''{'ac_cv_prog_PATCH'+set}'`\" = set"; then
904 echo $ac_n "(cached) $ac_c" 1>&6
905 else
906 if test -n "$PATCH"; then
907 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
908 else
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"
918 fi
919 fi
920 PATCH="$ac_cv_prog_PATCH"
921 if test -n "$PATCH"; then
922 echo "$ac_t""$PATCH" 1>&6
923 else
924 echo "$ac_t""no" 1>&6
925 fi
926
927
928 if test -z "$ac_cv_prog_PATCH"; then
929 if test -n "$ac_tool_prefix"; then
930 # Extract the first word of "patch", so it can be a program name with args.
931 set dummy patch; ac_word=$2
932 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
933 echo "configure:934: checking for $ac_word" >&5
934 if eval "test \"`echo '$''{'ac_cv_prog_PATCH'+set}'`\" = set"; then
935 echo $ac_n "(cached) $ac_c" 1>&6
936 else
937 if test -n "$PATCH"; then
938 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
939 else
940 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${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=":"
950 fi
951 fi
952 PATCH="$ac_cv_prog_PATCH"
953 if test -n "$PATCH"; then
954 echo "$ac_t""$PATCH" 1>&6
955 else
956 echo "$ac_t""no" 1>&6
957 fi
958
959 else
960 PATCH=":"
961 fi
962 fi
963
964 # Extract the first word of "gcc", so it can be a program name with args.
965 set dummy gcc; ac_word=$2
966 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
967 echo "configure:968: checking for $ac_word" >&5
968 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
969 echo $ac_n "(cached) $ac_c" 1>&6
970 else
971 if test -n "$CC"; then
972 ac_cv_prog_CC="$CC" # Let the user override the test.
973 else
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"
983 fi
984 fi
985 CC="$ac_cv_prog_CC"
986 if test -n "$CC"; then
987 echo "$ac_t""$CC" 1>&6
988 else
989 echo "$ac_t""no" 1>&6
990 fi
991
992 if test -z "$CC"; then
993 # Extract the first word of "cc", so it can be a program name with args.
994 set dummy cc; 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="${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"
1017 if 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
1030 fi
1031 fi
1032 fi
1033 CC="$ac_cv_prog_CC"
1034 if test -n "$CC"; then
1035 echo "$ac_t""$CC" 1>&6
1036 else
1037 echo "$ac_t""no" 1>&6
1038 fi
1039
1040 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1041 fi
1042
1043 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1044 echo "configure:1045: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1045
1046 ac_ext=c
1047 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1048 ac_cpp='$CPP $CPPFLAGS'
1049 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1050 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1051 cross_compiling=$ac_cv_prog_cc_cross
1052
1053 cat > conftest.$ac_ext <<EOF
1054 #line 1055 "configure"
1055 #include "confdefs.h"
1056 main(){return(0);}
1057 EOF
1058 if { (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
1066 else
1067 echo "configure: failed program was:" >&5
1068 cat conftest.$ac_ext >&5
1069 ac_cv_prog_cc_works=no
1070 fi
1071 rm -fr conftest*
1072
1073 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1074 if 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; }
1076 fi
1077 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1078 echo "configure:1079: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1079 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1080 cross_compiling=$ac_cv_prog_cc_cross
1081
1082 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1083 echo "configure:1084: checking whether we are using GNU C" >&5
1084 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1085 echo $ac_n "(cached) $ac_c" 1>&6
1086 else
1087 cat > conftest.c <<EOF
1088 #ifdef __GNUC__
1089 yes;
1090 #endif
1091 EOF
1092 if { 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
1094 else
1095 ac_cv_prog_gcc=no
1096 fi
1097 fi
1098
1099 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1100
1101 if 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
1107 echo "configure:1108: checking whether ${CC-cc} accepts -g" >&5
1108 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1109 echo $ac_n "(cached) $ac_c" 1>&6
1110 else
1111 echo 'void f(){}' > conftest.c
1112 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1113 ac_cv_prog_cc_g=yes
1114 else
1115 ac_cv_prog_cc_g=no
1116 fi
1117 rm -f conftest*
1118
1119 fi
1120
1121 echo "$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
1129 else
1130 GCC=
1131 test "${CFLAGS+set}" = set || CFLAGS="-g"
1132 fi
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.
1144 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1145 echo "configure:1146: checking for a BSD compatible install" >&5
1146 if test -z "$INSTALL"; then
1147 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1148 echo $ac_n "(cached) $ac_c" 1>&6
1149 else
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
1175 fi
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
1185 fi
1186 echo "$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.
1190 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1191
1192 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1193
1194
1195 # Check whether --enable-dumpdates-patch or --disable-dumpdates-patch was given.
1196 if test "${enable_dumpdates_patch+set}" = set; then
1197 enableval="$enable_dumpdates_patch"
1198 if test "$enableval" = "yes"
1199 then
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)
1205 fi
1206
1207 fi
1208
1209
1210 # Check whether --enable-debug or --disable-debug was given.
1211 if test "${enable_debug+set}" = set; then
1212 enableval="$enable_debug"
1213 if test "$enableval" = "no"
1214 then
1215 DUMPDEBUG=""
1216 RESTOREDEBUG=""
1217 else
1218 DUMPDEBUG="-DFDEBUG -DTDEBUG -DWRITEDEBUG -DDIRDEBUG"
1219 RESTOREDEBUG="-DDIRDEBUG"
1220 fi
1221 else
1222 DUMPDEBUG=""
1223 RESTOREDEBUG=""
1224
1225 fi
1226
1227
1228
1229
1230 # Check whether --enable-static or --disable-static was given.
1231 if test "${enable_static+set}" = set; then
1232 enableval="$enable_static"
1233 if test "$enableval" = "no"
1234 then
1235 STATIC=""
1236 else
1237 STATIC="-static"
1238 fi
1239
1240 else
1241 STATIC=""
1242 echo "Linking dump and restore dynamically by default"
1243
1244 fi
1245
1246
1247
1248 # Check whether --enable-rmt or --disable-rmt was given.
1249 if test "${enable_rmt+set}" = set; then
1250 enableval="$enable_rmt"
1251 if test "$enableval" = "no"
1252 then
1253 RMTDIR=""
1254 RMTMAKEFILE=""
1255 else
1256 RMTDIR="rmt"
1257 RMTMAKEFILE="rmt/Makefile"
1258 fi
1259
1260 else
1261 RMTDIR=""
1262 echo "Not compiling rmt by default"
1263
1264 fi
1265
1266
1267
1268 # Check whether --with-cc or --without-cc was given.
1269 if test "${with_cc+set}" = set; then
1270 withval="$with_cc"
1271 echo "$ac_t""CC=$withval" 1>&6
1272 CC=$withval
1273 else
1274 if test -z "$CC" ; then CC=cc; fi
1275 echo "$ac_t""CC defaults to $CC" 1>&6
1276 fi
1277 export CC
1278
1279
1280 # Check whether --with-linker or --without-linker was given.
1281 if test "${with_linker+set}" = set; then
1282 withval="$with_linker"
1283 echo "$ac_t""LD=$withval" 1>&6
1284 LD=$withval
1285 else
1286 if test -z "$LD" ; then LD=$CC; fi
1287 echo "$ac_t""LD defaults to $LD" 1>&6
1288 fi
1289 export LD
1290
1291
1292 # Check whether --with-ccopts or --without-ccopts was given.
1293 if test "${with_ccopts+set}" = set; then
1294 withval="$with_ccopts"
1295 echo "$ac_t""CCOPTS is $withval" 1>&6
1296 CCOPTS=$withval
1297 CFLAGS="$CFLAGS $withval"
1298 else
1299 CCOPTS=
1300 fi
1301
1302
1303 # Check whether --with-ldopts or --without-ldopts was given.
1304 if test "${with_ldopts+set}" = set; then
1305 withval="$with_ldopts"
1306 echo "$ac_t""LDFLAGS is $withval" 1>&6
1307 LDFLAGS=$withval
1308 else
1309 LDFLAGS=
1310 fi
1311
1312
1313 # Check whether --with-binowner or --without-binowner was given.
1314 if test "${with_binowner+set}" = set; then
1315 withval="$with_binowner"
1316 echo "$ac_t""BINOWNER is $withval" 1>&6
1317 BINOWNER=$withval
1318 else
1319 BINOWNER=root
1320 echo "BINOWNER defaults to $BINOWNER"
1321
1322 fi
1323
1324
1325 # Check whether --with-bingrp or --without-bingrp was given.
1326 if test "${with_bingrp+set}" = set; then
1327 withval="$with_bingrp"
1328 echo "$ac_t""BINGRP is $withval" 1>&6
1329 BINGRP=$withval
1330 else
1331 BINGRP=tty
1332 echo "BINGRP defaults to $BINGRP"
1333
1334 fi
1335
1336
1337 # Check whether --with-binmode or --without-binmode was given.
1338 if test "${with_binmode+set}" = set; then
1339 withval="$with_binmode"
1340 echo "$ac_t""BINMODE is $withval" 1>&6
1341 BINMODE=$withval
1342 else
1343 BINMODE=6555
1344 echo "BINMODE defaults to $BINMODE"
1345
1346 fi
1347
1348
1349 # Check whether --with-manowner or --without-manowner was given.
1350 if test "${with_manowner+set}" = set; then
1351 withval="$with_manowner"
1352 echo "$ac_t""MANOWNER is $withval" 1>&6
1353 MANOWNER=$withval
1354 else
1355 MANOWNER=man
1356 echo "MANOWNER defaults to $MANOWNER"
1357
1358 fi
1359
1360
1361 # Check whether --with-mangrp or --without-mangrp was given.
1362 if test "${with_mangrp+set}" = set; then
1363 withval="$with_mangrp"
1364 echo "$ac_t""MANGRP is $withval" 1>&6
1365 MANGRP=$withval
1366 else
1367 MANGRP=tty
1368 echo "MANGRP defaults to $MANGRP"
1369
1370 fi
1371
1372
1373 # Check whether --with-manmode or --without-manmode was given.
1374 if test "${with_manmode+set}" = set; then
1375 withval="$with_manmode"
1376 echo "$ac_t""MANMODE is $withval" 1>&6
1377 MANMODE=$withval
1378 else
1379 MANMODE=0444
1380 echo "MANMODE defaults to $MANMODE"
1381
1382 fi
1383
1384
1385 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1386 echo "configure:1387: checking how to run the C preprocessor" >&5
1387 # On Suns, sometimes $CPP names a directory.
1388 if test -n "$CPP" && test -d "$CPP"; then
1389 CPP=
1390 fi
1391 if test -z "$CPP"; then
1392 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1393 echo $ac_n "(cached) $ac_c" 1>&6
1394 else
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>
1404 Syntax Error
1405 EOF
1406 ac_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; }
1408 ac_err=`grep -v '^ *+' conftest.out`
1409 if test -z "$ac_err"; then
1410 :
1411 else
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>
1421 Syntax Error
1422 EOF
1423 ac_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; }
1425 ac_err=`grep -v '^ *+' conftest.out`
1426 if test -z "$ac_err"; then
1427 :
1428 else
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
1434 fi
1435 rm -f conftest*
1436 fi
1437 rm -f conftest*
1438 ac_cv_prog_CPP="$CPP"
1439 fi
1440 CPP="$ac_cv_prog_CPP"
1441 else
1442 ac_cv_prog_CPP="$CPP"
1443 fi
1444 echo "$ac_t""$CPP" 1>&6
1445
1446 ac_safe=`echo "ext2fs/ext2fs.h" | sed 'y%./+-%__p_%'`
1447 echo $ac_n "checking for ext2fs/ext2fs.h""... $ac_c" 1>&6
1448 echo "configure:1449: checking for ext2fs/ext2fs.h" >&5
1449 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1450 echo $ac_n "(cached) $ac_c" 1>&6
1451 else
1452 cat > conftest.$ac_ext <<EOF
1453 #line 1454 "configure"
1454 #include "confdefs.h"
1455 #include <ext2fs/ext2fs.h>
1456 EOF
1457 ac_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; }
1459 ac_err=`grep -v '^ *+' conftest.out`
1460 if test -z "$ac_err"; then
1461 rm -rf conftest*
1462 eval "ac_cv_header_$ac_safe=yes"
1463 else
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"
1469 fi
1470 rm -f conftest*
1471 fi
1472 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1473 echo "$ac_t""yes" 1>&6
1474 ext2fs_h=yes
1475 else
1476 echo "$ac_t""no" 1>&6
1477 ext2fs_h=no
1478 fi
1479
1480 echo $ac_n "checking for ext2fs_open in -lext2fs""... $ac_c" 1>&6
1481 echo "configure:1482: checking for ext2fs_open in -lext2fs" >&5
1482 ac_lib_var=`echo ext2fs'_'ext2fs_open | sed 'y%./+-%__p_%'`
1483 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1484 echo $ac_n "(cached) $ac_c" 1>&6
1485 else
1486 ac_save_LIBS="$LIBS"
1487 LIBS="-lext2fs -lcom_err $LIBS"
1488 cat > 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. */
1494 char ext2fs_open();
1495
1496 int main() {
1497 ext2fs_open()
1498 ; return 0; }
1499 EOF
1500 if { (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"
1503 else
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"
1508 fi
1509 rm -f conftest*
1510 LIBS="$ac_save_LIBS"
1511
1512 fi
1513 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1514 echo "$ac_t""yes" 1>&6
1515 ext2fs_lib=yes
1516 else
1517 echo "$ac_t""no" 1>&6
1518 ext2fs_lib=no
1519 fi
1520
1521 if 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; }
1523 fi
1524
1525 for ac_func in err errc errx verr verrc verrx vwarn vwarnc vwarnx warn warnc warnx realpath
1526 do
1527 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1528 echo "configure:1529: checking for $ac_func" >&5
1529 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1530 echo $ac_n "(cached) $ac_c" 1>&6
1531 else
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. */
1541 char $ac_func();
1542
1543 int 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)
1549 choke me
1550 #else
1551 $ac_func();
1552 #endif
1553
1554 ; return 0; }
1555 EOF
1556 if { (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"
1559 else
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"
1564 fi
1565 rm -f conftest*
1566 fi
1567
1568 if 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
1573 EOF
1574
1575 else
1576 echo "$ac_t""no" 1>&6
1577 fi
1578 done
1579
1580
1581 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1582 echo "configure:1583: checking for ANSI C header files" >&5
1583 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1584 echo $ac_n "(cached) $ac_c" 1>&6
1585 else
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>
1593 EOF
1594 ac_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; }
1596 ac_err=`grep -v '^ *+' conftest.out`
1597 if test -z "$ac_err"; then
1598 rm -rf conftest*
1599 ac_cv_header_stdc=yes
1600 else
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
1606 fi
1607 rm -f conftest*
1608
1609 if test $ac_cv_header_stdc = yes; then
1610 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1611 cat > conftest.$ac_ext <<EOF
1612 #line 1613 "configure"
1613 #include "confdefs.h"
1614 #include <string.h>
1615 EOF
1616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1617 egrep "memchr" >/dev/null 2>&1; then
1618 :
1619 else
1620 rm -rf conftest*
1621 ac_cv_header_stdc=no
1622 fi
1623 rm -f conftest*
1624
1625 fi
1626
1627 if test $ac_cv_header_stdc = yes; then
1628 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1629 cat > conftest.$ac_ext <<EOF
1630 #line 1631 "configure"
1631 #include "confdefs.h"
1632 #include <stdlib.h>
1633 EOF
1634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1635 egrep "free" >/dev/null 2>&1; then
1636 :
1637 else
1638 rm -rf conftest*
1639 ac_cv_header_stdc=no
1640 fi
1641 rm -f conftest*
1642
1643 fi
1644
1645 if test $ac_cv_header_stdc = yes; then
1646 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1647 if test "$cross_compiling" = yes; then
1648 :
1649 else
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)))
1657 int main () { int i; for (i = 0; i < 256; i++)
1658 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1659 exit (0); }
1660
1661 EOF
1662 if { (eval echo configure:1663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1663 then
1664 :
1665 else
1666 echo "configure: failed program was:" >&5
1667 cat conftest.$ac_ext >&5
1668 rm -fr conftest*
1669 ac_cv_header_stdc=no
1670 fi
1671 rm -fr conftest*
1672 fi
1673
1674 fi
1675 fi
1676
1677 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1678 if test $ac_cv_header_stdc = yes; then
1679 cat >> confdefs.h <<\EOF
1680 #define STDC_HEADERS 1
1681 EOF
1682
1683 fi
1684
1685 echo $ac_n "checking for quad_t""... $ac_c" 1>&6
1686 echo "configure:1687: checking for quad_t" >&5
1687 if eval "test \"`echo '$''{'ac_cv_type_quad_t'+set}'`\" = set"; then
1688 echo $ac_n "(cached) $ac_c" 1>&6
1689 else
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
1698 EOF
1699 if (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
1703 else
1704 rm -rf conftest*
1705 ac_cv_type_quad_t=no
1706 fi
1707 rm -f conftest*
1708
1709 fi
1710 echo "$ac_t""$ac_cv_type_quad_t" 1>&6
1711 if test $ac_cv_type_quad_t = no; then
1712 cat >> confdefs.h <<\EOF
1713 #define quad_t __s64
1714 EOF
1715
1716 fi
1717
1718 echo $ac_n "checking for u_quad_t""... $ac_c" 1>&6
1719 echo "configure:1720: checking for u_quad_t" >&5
1720 if eval "test \"`echo '$''{'ac_cv_type_u_quad_t'+set}'`\" = set"; then
1721 echo $ac_n "(cached) $ac_c" 1>&6
1722 else
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
1731 EOF
1732 if (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
1736 else
1737 rm -rf conftest*
1738 ac_cv_type_u_quad_t=no
1739 fi
1740 rm -f conftest*
1741
1742 fi
1743 echo "$ac_t""$ac_cv_type_u_quad_t" 1>&6
1744 if test $ac_cv_type_u_quad_t = no; then
1745 cat >> confdefs.h <<\EOF
1746 #define u_quad_t __u64
1747 EOF
1748
1749 fi
1750
1751
1752 top_builddir=`cd .; pwd`
1753
1754
1755 test -d compat || mkdir compat
1756 test -d compat/lib || mkdir compat/lib
1757
1758 trap '' 1 2 15
1759 cat > 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 #
1774 EOF
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
1794 if cmp -s $cache_file confcache; then
1795 :
1796 else
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
1803 fi
1804 rm -f confcache
1805
1806 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1807
1808 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1809 # Let make expand exec_prefix.
1810 test "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.
1815 if test "x$srcdir" = x.; then
1816 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1817 fi
1818
1819 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1820
1821 DEFS=-DHAVE_CONFIG_H
1822
1823 # Without the "./", some shells look in PATH for config.status.
1824 : ${CONFIG_STATUS=./config.status}
1825
1826 echo creating $CONFIG_STATUS
1827 rm -f $CONFIG_STATUS
1828 cat > $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
1840 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1841 for ac_option
1842 do
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
1854 done
1855
1856 ac_given_srcdir=$srcdir
1857 ac_given_INSTALL="$INSTALL"
1858
1859 trap '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
1860 EOF
1861 cat >> $CONFIG_STATUS <<EOF
1862
1863 # Protect against being on the right side of a sed subst in config.status.
1864 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1865 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1866 $ac_vpsub
1867 $extrasub
1868 s%@CFLAGS@%$CFLAGS%g
1869 s%@CPPFLAGS@%$CPPFLAGS%g
1870 s%@CXXFLAGS@%$CXXFLAGS%g
1871 s%@DEFS@%$DEFS%g
1872 s%@LDFLAGS@%$LDFLAGS%g
1873 s%@LIBS@%$LIBS%g
1874 s%@exec_prefix@%$exec_prefix%g
1875 s%@prefix@%$prefix%g
1876 s%@program_transform_name@%$program_transform_name%g
1877 s%@bindir@%$bindir%g
1878 s%@sbindir@%$sbindir%g
1879 s%@libexecdir@%$libexecdir%g
1880 s%@datadir@%$datadir%g
1881 s%@sysconfdir@%$sysconfdir%g
1882 s%@sharedstatedir@%$sharedstatedir%g
1883 s%@localstatedir@%$localstatedir%g
1884 s%@libdir@%$libdir%g
1885 s%@includedir@%$includedir%g
1886 s%@oldincludedir@%$oldincludedir%g
1887 s%@infodir@%$infodir%g
1888 s%@mandir@%$mandir%g
1889 /@MCONFIG@/r $MCONFIG
1890 s%@MCONFIG@%%g
1891 s%@SET_MAKE@%$SET_MAKE%g
1892 s%@LN_S@%$LN_S%g
1893 s%@CP@%$CP%g
1894 s%@MV@%$MV%g
1895 s%@RM@%$RM%g
1896 s%@host@%$host%g
1897 s%@host_alias@%$host_alias%g
1898 s%@host_cpu@%$host_cpu%g
1899 s%@host_vendor@%$host_vendor%g
1900 s%@host_os@%$host_os%g
1901 s%@build@%$build%g
1902 s%@build_alias@%$build_alias%g
1903 s%@build_cpu@%$build_cpu%g
1904 s%@build_vendor@%$build_vendor%g
1905 s%@build_os@%$build_os%g
1906 s%@AR@%$AR%g
1907 s%@RANLIB@%$RANLIB%g
1908 s%@PATCH@%$PATCH%g
1909 s%@CC@%$CC%g
1910 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1911 s%@INSTALL_DATA@%$INSTALL_DATA%g
1912 s%@DUMPDEBUG@%$DUMPDEBUG%g
1913 s%@RESTOREDEBUG@%$RESTOREDEBUG%g
1914 s%@STATIC@%$STATIC%g
1915 s%@RMTDIR@%$RMTDIR%g
1916 s%@LD@%$LD%g
1917 s%@CCOPTS@%$CCOPTS%g
1918 s%@BINOWNER@%$BINOWNER%g
1919 s%@BINGRP@%$BINGRP%g
1920 s%@BINMODE@%$BINMODE%g
1921 s%@MANOWNER@%$MANOWNER%g
1922 s%@MANGRP@%$MANGRP%g
1923 s%@MANMODE@%$MANMODE%g
1924 s%@CPP@%$CPP%g
1925 s%@top_builddir@%$top_builddir%g
1926
1927 CEOF
1928 EOF
1929
1930 cat >> $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.
1934 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1935 ac_file=1 # Number of current file.
1936 ac_beg=1 # First line for current file.
1937 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1938 ac_more_lines=:
1939 ac_sed_cmds=""
1940 while $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
1959 done
1960 if test -z "$ac_sed_cmds"; then
1961 ac_sed_cmds=cat
1962 fi
1963 EOF
1964
1965 cat >> $CONFIG_STATUS <<EOF
1966
1967 CONFIG_FILES=\${CONFIG_FILES-"MCONFIG Makefile common/Makefile compat/lib/Makefile dump/Makefile restore/Makefile $RMTMAKEFILE"}
1968 EOF
1969 cat >> $CONFIG_STATUS <<\EOF
1970 for 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
2018 s%@configure_input@%$configure_input%g
2019 s%@srcdir@%$srcdir%g
2020 s%@top_srcdir@%$top_srcdir%g
2021 s%@INSTALL@%$INSTALL%g
2022 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2023 fi; done
2024 rm -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.
2030 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2031 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2032 ac_dC='\3'
2033 ac_dD='%g'
2034 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2035 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2036 ac_uB='\([ ]\)%\1#\2define\3'
2037 ac_uC=' '
2038 ac_uD='\4%g'
2039 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2040 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2041 ac_eB='$%\1#\2define\3'
2042 ac_eC=' '
2043 ac_eD='%g'
2044
2045 if test "${CONFIG_HEADERS+set}" != set; then
2046 EOF
2047 cat >> $CONFIG_STATUS <<EOF
2048 CONFIG_HEADERS="config.h"
2049 EOF
2050 cat >> $CONFIG_STATUS <<\EOF
2051 fi
2052 for 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
2066 EOF
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.
2072 rm -f conftest.vals
2073 cat > conftest.hdr <<\EOF
2074 s/[\\&%]/\\&/g
2075 s%[\\$`]%\\&%g
2076 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2077 s%ac_d%ac_u%gp
2078 s%ac_u%ac_e%gp
2079 EOF
2080 sed -n -f conftest.hdr confdefs.h > conftest.vals
2081 rm -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.
2086 cat >> conftest.vals <<\EOF
2087 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2088 EOF
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
2093 rm -f conftest.tail
2094 while :
2095 do
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
2110 done
2111 rm -f conftest.vals
2112
2113 cat >> $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
2131 fi; done
2132
2133 EOF
2134 cat >> $CONFIG_STATUS <<EOF
2135
2136 EOF
2137 cat >> $CONFIG_STATUS <<\EOF
2138
2139 exit 0
2140 EOF
2141 chmod +x $CONFIG_STATUS
2142 rm -fr confdefs* $ac_clean_files
2143 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2144