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