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