Whamcloud - gitweb
tag.c (blkid_set_tag): Fix bug; don't return an error when
[tools/e2fsprogs.git] / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --with-cc=COMPILER      select compiler to use"
16 ac_help="$ac_help
17   --with-linker=LINKER    select linker to use"
18 ac_help="$ac_help
19   --with-ccopts=CCOPTS    select compiler command line options"
20 ac_help="$ac_help
21   --with-ldopts=LDOPTS    select linker command line options"
22 ac_help="$ac_help
23   --with-root-prefix=PREFIX override prefix variable for files to be placed in the root"
24 ac_help="$ac_help
25   --enable-compression    enable EXPERIMENTAL compression support"
26 ac_help="$ac_help
27   --enable-htree          enable EXPERIMENTAL htree directory support"
28 ac_help="$ac_help
29   --enable-htree-clear    clear htree because we don't trust e2fsck"
30 ac_help="$ac_help
31   --enable-evms-10        use EVMS 1.0 ABI (instead of EVMS 1.2)"
32 ac_help="$ac_help
33   --enable-evms-11        use EVMS 1.1 ABI (instead of EVMS 1.1)"
34 ac_help="$ac_help
35   --enable-dll-shlibs     select DLL libraries"
36 ac_help="$ac_help
37   --enable-elf-shlibs     select ELF shared libraries"
38 ac_help="$ac_help
39   --enable-bsd-shlibs     select BSD shared libraries"
40 ac_help="$ac_help
41   --enable-profile        build profiling libraries"
42 ac_help="$ac_help
43   --enable-checker        build checker libraries"
44 ac_help="$ac_help
45   --enable-jbd-debug      enable journal debugging"
46 ac_help="$ac_help
47   --enable-blkid-debug            enable blkid debugging"
48 ac_help="$ac_help
49   --disable-swapfs        disable support of legacy byte-swapped filesystems"
50 ac_help="$ac_help
51   --disable-debugfs       disable support of debugfs program"
52 ac_help="$ac_help
53   --disable-imager        disable support of e2image program"
54 ac_help="$ac_help
55   --disable-resizer       disable support of e2resize program"
56 ac_help="$ac_help
57   --enable-dynamic-e2fsck build e2fsck dynamically"
58 ac_help="$ac_help
59   --enable-fsck           build fsck wrapper program"
60 ac_help="$ac_help
61   --enable-old-bitops     Use old (non-standard but native) bitmask operations"
62 ac_help="$ac_help
63   --enable-nls           Turn on Native Language Support"
64 ac_help="$ac_help
65   --with-included-gettext use the GNU gettext library included here"
66 ac_help="$ac_help
67   --with-catgets          use catgets functions if available"
68
69 # Initialize some variables set by options.
70 # The variables have the same names as the options, with
71 # dashes changed to underlines.
72 build=NONE
73 cache_file=./config.cache
74 exec_prefix=NONE
75 host=NONE
76 no_create=
77 nonopt=NONE
78 no_recursion=
79 prefix=NONE
80 program_prefix=NONE
81 program_suffix=NONE
82 program_transform_name=s,x,x,
83 silent=
84 site=
85 srcdir=
86 target=NONE
87 verbose=
88 x_includes=NONE
89 x_libraries=NONE
90 bindir='${exec_prefix}/bin'
91 sbindir='${exec_prefix}/sbin'
92 libexecdir='${exec_prefix}/libexec'
93 datadir='${prefix}/share'
94 sysconfdir='${prefix}/etc'
95 sharedstatedir='${prefix}/com'
96 localstatedir='${prefix}/var'
97 libdir='${exec_prefix}/lib'
98 includedir='${prefix}/include'
99 oldincludedir='/usr/include'
100 infodir='${prefix}/info'
101 mandir='${prefix}/man'
102
103 # Initialize some other variables.
104 subdirs=
105 MFLAGS= MAKEFLAGS=
106 SHELL=${CONFIG_SHELL-/bin/sh}
107 # Maximum number of lines to put in a shell here document.
108 ac_max_here_lines=12
109
110 ac_prev=
111 for ac_option
112 do
113
114   # If the previous option needs an argument, assign it.
115   if test -n "$ac_prev"; then
116     eval "$ac_prev=\$ac_option"
117     ac_prev=
118     continue
119   fi
120
121   case "$ac_option" in
122   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
123   *) ac_optarg= ;;
124   esac
125
126   # Accept the important Cygnus configure options, so we can diagnose typos.
127
128   case "$ac_option" in
129
130   -bindir | --bindir | --bindi | --bind | --bin | --bi)
131     ac_prev=bindir ;;
132   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
133     bindir="$ac_optarg" ;;
134
135   -build | --build | --buil | --bui | --bu)
136     ac_prev=build ;;
137   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
138     build="$ac_optarg" ;;
139
140   -cache-file | --cache-file | --cache-fil | --cache-fi \
141   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
142     ac_prev=cache_file ;;
143   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
144   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
145     cache_file="$ac_optarg" ;;
146
147   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
148     ac_prev=datadir ;;
149   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
150   | --da=*)
151     datadir="$ac_optarg" ;;
152
153   -disable-* | --disable-*)
154     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
155     # Reject names that are not valid shell variable names.
156     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
157       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
158     fi
159     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
160     eval "enable_${ac_feature}=no" ;;
161
162   -enable-* | --enable-*)
163     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
164     # Reject names that are not valid shell variable names.
165     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
166       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
167     fi
168     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
169     case "$ac_option" in
170       *=*) ;;
171       *) ac_optarg=yes ;;
172     esac
173     eval "enable_${ac_feature}='$ac_optarg'" ;;
174
175   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
176   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
177   | --exec | --exe | --ex)
178     ac_prev=exec_prefix ;;
179   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
180   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
181   | --exec=* | --exe=* | --ex=*)
182     exec_prefix="$ac_optarg" ;;
183
184   -gas | --gas | --ga | --g)
185     # Obsolete; use --with-gas.
186     with_gas=yes ;;
187
188   -help | --help | --hel | --he)
189     # Omit some internal or obsolete options to make the list less imposing.
190     # This message is too long to be a string in the A/UX 3.1 sh.
191     cat << EOF
192 Usage: configure [options] [host]
193 Options: [defaults in brackets after descriptions]
194 Configuration:
195   --cache-file=FILE       cache test results in FILE
196   --help                  print this message
197   --no-create             do not create output files
198   --quiet, --silent       do not print \`checking...' messages
199   --version               print the version of autoconf that created configure
200 Directory and file names:
201   --prefix=PREFIX         install architecture-independent files in PREFIX
202                           [$ac_default_prefix]
203   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
204                           [same as prefix]
205   --bindir=DIR            user executables in DIR [EPREFIX/bin]
206   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
207   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
208   --datadir=DIR           read-only architecture-independent data in DIR
209                           [PREFIX/share]
210   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
211   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
212                           [PREFIX/com]
213   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
214   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
215   --includedir=DIR        C header files in DIR [PREFIX/include]
216   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
217   --infodir=DIR           info documentation in DIR [PREFIX/info]
218   --mandir=DIR            man documentation in DIR [PREFIX/man]
219   --srcdir=DIR            find the sources in DIR [configure dir or ..]
220   --program-prefix=PREFIX prepend PREFIX to installed program names
221   --program-suffix=SUFFIX append SUFFIX to installed program names
222   --program-transform-name=PROGRAM
223                           run sed PROGRAM on installed program names
224 EOF
225     cat << EOF
226 Host type:
227   --build=BUILD           configure for building on BUILD [BUILD=HOST]
228   --host=HOST             configure for HOST [guessed]
229   --target=TARGET         configure for TARGET [TARGET=HOST]
230 Features and packages:
231   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
232   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
233   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
234   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
235   --x-includes=DIR        X include files are in DIR
236   --x-libraries=DIR       X library files are in DIR
237 EOF
238     if test -n "$ac_help"; then
239       echo "--enable and --with options recognized:$ac_help"
240     fi
241     exit 0 ;;
242
243   -host | --host | --hos | --ho)
244     ac_prev=host ;;
245   -host=* | --host=* | --hos=* | --ho=*)
246     host="$ac_optarg" ;;
247
248   -includedir | --includedir | --includedi | --included | --include \
249   | --includ | --inclu | --incl | --inc)
250     ac_prev=includedir ;;
251   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
252   | --includ=* | --inclu=* | --incl=* | --inc=*)
253     includedir="$ac_optarg" ;;
254
255   -infodir | --infodir | --infodi | --infod | --info | --inf)
256     ac_prev=infodir ;;
257   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
258     infodir="$ac_optarg" ;;
259
260   -libdir | --libdir | --libdi | --libd)
261     ac_prev=libdir ;;
262   -libdir=* | --libdir=* | --libdi=* | --libd=*)
263     libdir="$ac_optarg" ;;
264
265   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
266   | --libexe | --libex | --libe)
267     ac_prev=libexecdir ;;
268   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
269   | --libexe=* | --libex=* | --libe=*)
270     libexecdir="$ac_optarg" ;;
271
272   -localstatedir | --localstatedir | --localstatedi | --localstated \
273   | --localstate | --localstat | --localsta | --localst \
274   | --locals | --local | --loca | --loc | --lo)
275     ac_prev=localstatedir ;;
276   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
277   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
278   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
279     localstatedir="$ac_optarg" ;;
280
281   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
282     ac_prev=mandir ;;
283   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
284     mandir="$ac_optarg" ;;
285
286   -nfp | --nfp | --nf)
287     # Obsolete; use --without-fp.
288     with_fp=no ;;
289
290   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
291   | --no-cr | --no-c)
292     no_create=yes ;;
293
294   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
295   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
296     no_recursion=yes ;;
297
298   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
299   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
300   | --oldin | --oldi | --old | --ol | --o)
301     ac_prev=oldincludedir ;;
302   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
303   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
304   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
305     oldincludedir="$ac_optarg" ;;
306
307   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
308     ac_prev=prefix ;;
309   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
310     prefix="$ac_optarg" ;;
311
312   -program-prefix | --program-prefix | --program-prefi | --program-pref \
313   | --program-pre | --program-pr | --program-p)
314     ac_prev=program_prefix ;;
315   -program-prefix=* | --program-prefix=* | --program-prefi=* \
316   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
317     program_prefix="$ac_optarg" ;;
318
319   -program-suffix | --program-suffix | --program-suffi | --program-suff \
320   | --program-suf | --program-su | --program-s)
321     ac_prev=program_suffix ;;
322   -program-suffix=* | --program-suffix=* | --program-suffi=* \
323   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
324     program_suffix="$ac_optarg" ;;
325
326   -program-transform-name | --program-transform-name \
327   | --program-transform-nam | --program-transform-na \
328   | --program-transform-n | --program-transform- \
329   | --program-transform | --program-transfor \
330   | --program-transfo | --program-transf \
331   | --program-trans | --program-tran \
332   | --progr-tra | --program-tr | --program-t)
333     ac_prev=program_transform_name ;;
334   -program-transform-name=* | --program-transform-name=* \
335   | --program-transform-nam=* | --program-transform-na=* \
336   | --program-transform-n=* | --program-transform-=* \
337   | --program-transform=* | --program-transfor=* \
338   | --program-transfo=* | --program-transf=* \
339   | --program-trans=* | --program-tran=* \
340   | --progr-tra=* | --program-tr=* | --program-t=*)
341     program_transform_name="$ac_optarg" ;;
342
343   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
344   | -silent | --silent | --silen | --sile | --sil)
345     silent=yes ;;
346
347   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
348     ac_prev=sbindir ;;
349   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
350   | --sbi=* | --sb=*)
351     sbindir="$ac_optarg" ;;
352
353   -sharedstatedir | --sharedstatedir | --sharedstatedi \
354   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
355   | --sharedst | --shareds | --shared | --share | --shar \
356   | --sha | --sh)
357     ac_prev=sharedstatedir ;;
358   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
359   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
360   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
361   | --sha=* | --sh=*)
362     sharedstatedir="$ac_optarg" ;;
363
364   -site | --site | --sit)
365     ac_prev=site ;;
366   -site=* | --site=* | --sit=*)
367     site="$ac_optarg" ;;
368
369   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
370     ac_prev=srcdir ;;
371   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
372     srcdir="$ac_optarg" ;;
373
374   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
375   | --syscon | --sysco | --sysc | --sys | --sy)
376     ac_prev=sysconfdir ;;
377   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
378   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
379     sysconfdir="$ac_optarg" ;;
380
381   -target | --target | --targe | --targ | --tar | --ta | --t)
382     ac_prev=target ;;
383   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
384     target="$ac_optarg" ;;
385
386   -v | -verbose | --verbose | --verbos | --verbo | --verb)
387     verbose=yes ;;
388
389   -version | --version | --versio | --versi | --vers)
390     echo "configure generated by autoconf version 2.13"
391     exit 0 ;;
392
393   -with-* | --with-*)
394     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
395     # Reject names that are not valid shell variable names.
396     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
397       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
398     fi
399     ac_package=`echo $ac_package| sed 's/-/_/g'`
400     case "$ac_option" in
401       *=*) ;;
402       *) ac_optarg=yes ;;
403     esac
404     eval "with_${ac_package}='$ac_optarg'" ;;
405
406   -without-* | --without-*)
407     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
408     # Reject names that are not valid shell variable names.
409     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
410       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
411     fi
412     ac_package=`echo $ac_package| sed 's/-/_/g'`
413     eval "with_${ac_package}=no" ;;
414
415   --x)
416     # Obsolete; use --with-x.
417     with_x=yes ;;
418
419   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
420   | --x-incl | --x-inc | --x-in | --x-i)
421     ac_prev=x_includes ;;
422   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
423   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
424     x_includes="$ac_optarg" ;;
425
426   -x-libraries | --x-libraries | --x-librarie | --x-librari \
427   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
428     ac_prev=x_libraries ;;
429   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
430   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
431     x_libraries="$ac_optarg" ;;
432
433   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
434     ;;
435
436   *)
437     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
438       echo "configure: warning: $ac_option: invalid host type" 1>&2
439     fi
440     if test "x$nonopt" != xNONE; then
441       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
442     fi
443     nonopt="$ac_option"
444     ;;
445
446   esac
447 done
448
449 if test -n "$ac_prev"; then
450   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
451 fi
452
453 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
454
455 # File descriptor usage:
456 # 0 standard input
457 # 1 file creation
458 # 2 errors and warnings
459 # 3 some systems may open it to /dev/tty
460 # 4 used on the Kubota Titan
461 # 6 checking for... messages and results
462 # 5 compiler messages saved in config.log
463 if test "$silent" = yes; then
464   exec 6>/dev/null
465 else
466   exec 6>&1
467 fi
468 exec 5>./config.log
469
470 echo "\
471 This file contains any messages produced by compilers while
472 running configure, to aid debugging if configure makes a mistake.
473 " 1>&5
474
475 # Strip out --no-create and --no-recursion so they do not pile up.
476 # Also quote any args containing shell metacharacters.
477 ac_configure_args=
478 for ac_arg
479 do
480   case "$ac_arg" in
481   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
482   | --no-cr | --no-c) ;;
483   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
484   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
485   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
486   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
487   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
488   esac
489 done
490
491 # NLS nuisances.
492 # Only set these to C if already set.  These must not be set unconditionally
493 # because not all systems understand e.g. LANG=C (notably SCO).
494 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
495 # Non-C LC_CTYPE values break the ctype check.
496 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
497 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
498 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
499 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
500
501 # confdefs.h avoids OS command line length limits that DEFS can exceed.
502 rm -rf conftest* confdefs.h
503 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
504 echo > confdefs.h
505
506 # A filename unique to this package, relative to the directory that
507 # configure is in, which we can look for to find out if srcdir is correct.
508 ac_unique_file=version.h
509
510 # Find the source files, if location was not specified.
511 if test -z "$srcdir"; then
512   ac_srcdir_defaulted=yes
513   # Try the directory containing this script, then its parent.
514   ac_prog=$0
515   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
516   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
517   srcdir=$ac_confdir
518   if test ! -r $srcdir/$ac_unique_file; then
519     srcdir=..
520   fi
521 else
522   ac_srcdir_defaulted=no
523 fi
524 if test ! -r $srcdir/$ac_unique_file; then
525   if test "$ac_srcdir_defaulted" = yes; then
526     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
527   else
528     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
529   fi
530 fi
531 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
532
533 # Prefer explicitly selected file to automatically selected ones.
534 if test -z "$CONFIG_SITE"; then
535   if test "x$prefix" != xNONE; then
536     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
537   else
538     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
539   fi
540 fi
541 for ac_site_file in $CONFIG_SITE; do
542   if test -r "$ac_site_file"; then
543     echo "loading site script $ac_site_file"
544     . "$ac_site_file"
545   fi
546 done
547
548 if test -r "$cache_file"; then
549   echo "loading cache $cache_file"
550   . $cache_file
551 else
552   echo "creating cache $cache_file"
553   > $cache_file
554 fi
555
556 ac_ext=c
557 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
558 ac_cpp='$CPP $CPPFLAGS'
559 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
560 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
561 cross_compiling=$ac_cv_prog_cc_cross
562
563 ac_exeext=
564 ac_objext=o
565 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
566   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
567   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
568     ac_n= ac_c='
569 ' ac_t='        '
570   else
571     ac_n=-n ac_c= ac_t=
572   fi
573 else
574   ac_n= ac_c='\c' ac_t=
575 fi
576
577
578
579 MCONFIG=./MCONFIG
580
581 BINARY_TYPE=bin
582 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h  \
583         | awk '{print $3}' | tr \" " " | awk '{print $1}'`
584 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
585         | tr \" " "`
586 MONTH=`echo $DATE | awk -F- '{print $2}'`
587 YEAR=`echo $DATE | awk -F- '{print $3}'`
588
589 if expr $YEAR ">" 1900 > /dev/null ; then
590         E2FSPROGS_YEAR=$YEAR
591 elif expr $YEAR ">" 90 >/dev/null ; then
592         E2FSPROGS_YEAR=19$YEAR
593 else
594         E2FSPROGS_YEAR=20$YEAR
595 fi
596
597 case $MONTH in
598 Jan)    E2FSPROGS_MONTH="January" ;;
599 Feb)    E2FSPROGS_MONTH="February" ;;
600 Mar)    E2FSPROGS_MONTH="March" ;;
601 Apr)    E2FSPROGS_MONTH="April" ;;
602 May)    E2FSPROGS_MONTH="May" ;;
603 Jun)    E2FSPROGS_MONTH="June" ;;
604 Jul)    E2FSPROGS_MONTH="July" ;;
605 Aug)    E2FSPROGS_MONTH="August" ;;
606 Sep)    E2FSPROGS_MONTH="September" ;;
607 Oct)    E2FSPROGS_MONTH="October" ;;
608 Nov)    E2FSPROGS_MONTH="November" ;;
609 Dec)    E2FSPROGS_MONTH="December" ;;
610 *)      echo "Unknown month $MONTH??" ;;
611 esac
612
613 unset DATE MONTH YEAR
614 echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
615 echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
616
617
618
619 ac_aux_dir=
620 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
621   if test -f $ac_dir/install-sh; then
622     ac_aux_dir=$ac_dir
623     ac_install_sh="$ac_aux_dir/install-sh -c"
624     break
625   elif test -f $ac_dir/install.sh; then
626     ac_aux_dir=$ac_dir
627     ac_install_sh="$ac_aux_dir/install.sh -c"
628     break
629   fi
630 done
631 if test -z "$ac_aux_dir"; then
632   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
633 fi
634 ac_config_guess=$ac_aux_dir/config.guess
635 ac_config_sub=$ac_aux_dir/config.sub
636 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
637
638
639 # Make sure we can run config.sub.
640 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
641 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
642 fi
643
644 echo $ac_n "checking host system type""... $ac_c" 1>&6
645 echo "configure:646: checking host system type" >&5
646
647 host_alias=$host
648 case "$host_alias" in
649 NONE)
650   case $nonopt in
651   NONE)
652     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
653     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
654     fi ;;
655   *) host_alias=$nonopt ;;
656   esac ;;
657 esac
658
659 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
660 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
661 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
662 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
663 echo "$ac_t""$host" 1>&6
664
665 # Check whether --with-cc or --without-cc was given.
666 if test "${with_cc+set}" = set; then
667   withval="$with_cc"
668   echo "$ac_t""CC=$withval" 1>&6
669 CC=$withval
670 else
671   if test -z "$CC" ; then CC=cc; fi
672 echo "$ac_t""CC defaults to $CC" 1>&6
673 fi
674 export CC
675
676 # Extract the first word of "gcc", so it can be a program name with args.
677 set dummy gcc; ac_word=$2
678 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
679 echo "configure:680: checking for $ac_word" >&5
680 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
681   echo $ac_n "(cached) $ac_c" 1>&6
682 else
683   if test -n "$CC"; then
684   ac_cv_prog_CC="$CC" # Let the user override the test.
685 else
686   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
687   ac_dummy="$PATH"
688   for ac_dir in $ac_dummy; do
689     test -z "$ac_dir" && ac_dir=.
690     if test -f $ac_dir/$ac_word; then
691       ac_cv_prog_CC="gcc"
692       break
693     fi
694   done
695   IFS="$ac_save_ifs"
696 fi
697 fi
698 CC="$ac_cv_prog_CC"
699 if test -n "$CC"; then
700   echo "$ac_t""$CC" 1>&6
701 else
702   echo "$ac_t""no" 1>&6
703 fi
704
705 if test -z "$CC"; then
706   # Extract the first word of "cc", so it can be a program name with args.
707 set dummy cc; ac_word=$2
708 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
709 echo "configure:710: checking for $ac_word" >&5
710 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
711   echo $ac_n "(cached) $ac_c" 1>&6
712 else
713   if test -n "$CC"; then
714   ac_cv_prog_CC="$CC" # Let the user override the test.
715 else
716   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
717   ac_prog_rejected=no
718   ac_dummy="$PATH"
719   for ac_dir in $ac_dummy; do
720     test -z "$ac_dir" && ac_dir=.
721     if test -f $ac_dir/$ac_word; then
722       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
723         ac_prog_rejected=yes
724         continue
725       fi
726       ac_cv_prog_CC="cc"
727       break
728     fi
729   done
730   IFS="$ac_save_ifs"
731 if test $ac_prog_rejected = yes; then
732   # We found a bogon in the path, so make sure we never use it.
733   set dummy $ac_cv_prog_CC
734   shift
735   if test $# -gt 0; then
736     # We chose a different compiler from the bogus one.
737     # However, it has the same basename, so the bogon will be chosen
738     # first if we set CC to just the basename; use the full file name.
739     shift
740     set dummy "$ac_dir/$ac_word" "$@"
741     shift
742     ac_cv_prog_CC="$@"
743   fi
744 fi
745 fi
746 fi
747 CC="$ac_cv_prog_CC"
748 if test -n "$CC"; then
749   echo "$ac_t""$CC" 1>&6
750 else
751   echo "$ac_t""no" 1>&6
752 fi
753
754   if test -z "$CC"; then
755     case "`uname -s`" in
756     *win32* | *WIN32*)
757       # Extract the first word of "cl", so it can be a program name with args.
758 set dummy cl; ac_word=$2
759 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
760 echo "configure:761: checking for $ac_word" >&5
761 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
762   echo $ac_n "(cached) $ac_c" 1>&6
763 else
764   if test -n "$CC"; then
765   ac_cv_prog_CC="$CC" # Let the user override the test.
766 else
767   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
768   ac_dummy="$PATH"
769   for ac_dir in $ac_dummy; do
770     test -z "$ac_dir" && ac_dir=.
771     if test -f $ac_dir/$ac_word; then
772       ac_cv_prog_CC="cl"
773       break
774     fi
775   done
776   IFS="$ac_save_ifs"
777 fi
778 fi
779 CC="$ac_cv_prog_CC"
780 if test -n "$CC"; then
781   echo "$ac_t""$CC" 1>&6
782 else
783   echo "$ac_t""no" 1>&6
784 fi
785  ;;
786     esac
787   fi
788   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
789 fi
790
791 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
792 echo "configure:793: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
793
794 ac_ext=c
795 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
796 ac_cpp='$CPP $CPPFLAGS'
797 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
798 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
799 cross_compiling=$ac_cv_prog_cc_cross
800
801 cat > conftest.$ac_ext << EOF
802
803 #line 804 "configure"
804 #include "confdefs.h"
805
806 main(){return(0);}
807 EOF
808 if { (eval echo configure:809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
809   ac_cv_prog_cc_works=yes
810   # If we can't run a trivial program, we are probably using a cross compiler.
811   if (./conftest; exit) 2>/dev/null; then
812     ac_cv_prog_cc_cross=no
813   else
814     ac_cv_prog_cc_cross=yes
815   fi
816 else
817   echo "configure: failed program was:" >&5
818   cat conftest.$ac_ext >&5
819   ac_cv_prog_cc_works=no
820 fi
821 rm -fr conftest*
822 ac_ext=c
823 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
824 ac_cpp='$CPP $CPPFLAGS'
825 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
826 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
827 cross_compiling=$ac_cv_prog_cc_cross
828
829 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
830 if test $ac_cv_prog_cc_works = no; then
831   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
832 fi
833 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
834 echo "configure:835: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
835 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
836 cross_compiling=$ac_cv_prog_cc_cross
837
838 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
839 echo "configure:840: checking whether we are using GNU C" >&5
840 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
841   echo $ac_n "(cached) $ac_c" 1>&6
842 else
843   cat > conftest.c <<EOF
844 #ifdef __GNUC__
845   yes;
846 #endif
847 EOF
848 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
849   ac_cv_prog_gcc=yes
850 else
851   ac_cv_prog_gcc=no
852 fi
853 fi
854
855 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
856
857 if test $ac_cv_prog_gcc = yes; then
858   GCC=yes
859 else
860   GCC=
861 fi
862
863 ac_test_CFLAGS="${CFLAGS+set}"
864 ac_save_CFLAGS="$CFLAGS"
865 CFLAGS=
866 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
867 echo "configure:868: checking whether ${CC-cc} accepts -g" >&5
868 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
869   echo $ac_n "(cached) $ac_c" 1>&6
870 else
871   echo 'void f(){}' > conftest.c
872 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
873   ac_cv_prog_cc_g=yes
874 else
875   ac_cv_prog_cc_g=no
876 fi
877 rm -f conftest*
878
879 fi
880
881 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
882 if test "$ac_test_CFLAGS" = set; then
883   CFLAGS="$ac_save_CFLAGS"
884 elif test $ac_cv_prog_cc_g = yes; then
885   if test "$GCC" = yes; then
886     CFLAGS="-g -O2"
887   else
888     CFLAGS="-g"
889   fi
890 else
891   if test "$GCC" = yes; then
892     CFLAGS="-O2"
893   else
894     CFLAGS=
895   fi
896 fi
897
898 # Check whether --with-linker or --without-linker was given.
899 if test "${with_linker+set}" = set; then
900   withval="$with_linker"
901   echo "$ac_t""LD=$withval" 1>&6
902 LD=$withval
903 else
904   if test -z "$LD" ; then LD=$CC; fi
905 echo "$ac_t""LD defaults to $LD" 1>&6
906 fi
907 export LD
908
909 # Check whether --with-ccopts or --without-ccopts was given.
910 if test "${with_ccopts+set}" = set; then
911   withval="$with_ccopts"
912   echo "$ac_t""CCOPTS is $withval" 1>&6
913 CFLAGS=$withval
914 fi
915 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
916 echo "configure:917: checking how to run the C preprocessor" >&5
917 # On Suns, sometimes $CPP names a directory.
918 if test -n "$CPP" && test -d "$CPP"; then
919   CPP=
920 fi
921 if test -z "$CPP"; then
922 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
923   echo $ac_n "(cached) $ac_c" 1>&6
924 else
925     # This must be in double quotes, not single quotes, because CPP may get
926   # substituted into the Makefile and "${CC-cc}" will confuse make.
927   CPP="${CC-cc} -E"
928   # On the NeXT, cc -E runs the code through the compiler's parser,
929   # not just through cpp.
930   cat > conftest.$ac_ext <<EOF
931 #line 932 "configure"
932 #include "confdefs.h"
933 #include <assert.h>
934 Syntax Error
935 EOF
936 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
937 { (eval echo configure:938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
938 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
939 if test -z "$ac_err"; then
940   :
941 else
942   echo "$ac_err" >&5
943   echo "configure: failed program was:" >&5
944   cat conftest.$ac_ext >&5
945   rm -rf conftest*
946   CPP="${CC-cc} -E -traditional-cpp"
947   cat > conftest.$ac_ext <<EOF
948 #line 949 "configure"
949 #include "confdefs.h"
950 #include <assert.h>
951 Syntax Error
952 EOF
953 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
954 { (eval echo configure:955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
955 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
956 if test -z "$ac_err"; then
957   :
958 else
959   echo "$ac_err" >&5
960   echo "configure: failed program was:" >&5
961   cat conftest.$ac_ext >&5
962   rm -rf conftest*
963   CPP="${CC-cc} -nologo -E"
964   cat > conftest.$ac_ext <<EOF
965 #line 966 "configure"
966 #include "confdefs.h"
967 #include <assert.h>
968 Syntax Error
969 EOF
970 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
971 { (eval echo configure:972: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
972 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
973 if test -z "$ac_err"; then
974   :
975 else
976   echo "$ac_err" >&5
977   echo "configure: failed program was:" >&5
978   cat conftest.$ac_ext >&5
979   rm -rf conftest*
980   CPP=/lib/cpp
981 fi
982 rm -f conftest*
983 fi
984 rm -f conftest*
985 fi
986 rm -f conftest*
987   ac_cv_prog_CPP="$CPP"
988 fi
989   CPP="$ac_cv_prog_CPP"
990 else
991   ac_cv_prog_CPP="$CPP"
992 fi
993 echo "$ac_t""$CPP" 1>&6
994
995 ac_safe=`echo "linux/fs.h" | sed 'y%./+-%__p_%'`
996 echo $ac_n "checking for linux/fs.h""... $ac_c" 1>&6
997 echo "configure:998: checking for linux/fs.h" >&5
998 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
999   echo $ac_n "(cached) $ac_c" 1>&6
1000 else
1001   cat > conftest.$ac_ext <<EOF
1002 #line 1003 "configure"
1003 #include "confdefs.h"
1004 #include <linux/fs.h>
1005 EOF
1006 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1007 { (eval echo configure:1008: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1008 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1009 if test -z "$ac_err"; then
1010   rm -rf conftest*
1011   eval "ac_cv_header_$ac_safe=yes"
1012 else
1013   echo "$ac_err" >&5
1014   echo "configure: failed program was:" >&5
1015   cat conftest.$ac_ext >&5
1016   rm -rf conftest*
1017   eval "ac_cv_header_$ac_safe=no"
1018 fi
1019 rm -f conftest*
1020 fi
1021 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1022   echo "$ac_t""yes" 1>&6
1023   linux_headers=yes
1024 else
1025   echo "$ac_t""no" 1>&6
1026 linux_headers=no
1027 fi
1028
1029 if test "$linux_headers" != yes; then
1030   LINUX_INCLUDE='-I$(top_builddir)/include'
1031 fi
1032
1033 LIB_EXT=.a
1034 STATIC_LIB_EXT=.a
1035 PROFILE_LIB_EXT=.a
1036 # Check whether --with-ldopts or --without-ldopts was given.
1037 if test "${with_ldopts+set}" = set; then
1038   withval="$with_ldopts"
1039   echo "$ac_t""LDFLAGS is $withval" 1>&6
1040 LDFLAGS=$withval
1041 else
1042   LDFLAGS=
1043 fi
1044
1045 # Check whether --with-root-prefix or --without-root-prefix was given.
1046 if test "${with_root_prefix+set}" = set; then
1047   withval="$with_root_prefix"
1048   root_prefix=$withval
1049 else
1050   root_prefix=NONE
1051 fi
1052 # Check whether --enable-compression or --disable-compression was given.
1053 if test "${enable_compression+set}" = set; then
1054   enableval="$enable_compression"
1055   if test "$enableval" = "no"
1056 then
1057         echo "Disabling compression support"
1058 else
1059         cat >> confdefs.h <<\EOF
1060 #define ENABLE_COMPRESSION 1
1061 EOF
1062
1063         echo "Enabling compression support"
1064         echo "WARNING: Compression support is experimental"
1065 fi
1066
1067 else
1068   echo "Disabling compression support by default"
1069
1070 fi
1071
1072 # Check whether --enable-htree or --disable-htree was given.
1073 if test "${enable_htree+set}" = set; then
1074   enableval="$enable_htree"
1075   if test "$enableval" = "no"
1076 then
1077         HTREE_CMT=#
1078         echo "Disabling htree directory support"
1079 else
1080         HTREE_CMT=
1081         cat >> confdefs.h <<\EOF
1082 #define ENABLE_HTREE 1
1083 EOF
1084
1085         echo "Enabling htree directory support"
1086 fi
1087
1088 else
1089   HTREE_CMT=
1090 cat >> confdefs.h <<\EOF
1091 #define ENABLE_HTREE 1
1092 EOF
1093
1094 echo "Enabling htree directory support by default"
1095
1096 fi
1097
1098
1099 # Check whether --enable-htree-clear or --disable-htree-clear was given.
1100 if test "${enable_htree_clear+set}" = set; then
1101   enableval="$enable_htree_clear"
1102   if test "$enableval" = "no"
1103 then
1104         HTREE_CLR_CMT=#
1105         echo "Disabling htree clearing"
1106 else
1107         HTREE_CLR_CMT=
1108         cat >> confdefs.h <<\EOF
1109 #define ENABLE_HTREE_CLEAR 1
1110 EOF
1111
1112         echo "Enabling htree clearing"
1113 fi
1114
1115 else
1116   HTREE_CLR_CMT=#
1117 echo "Disabling htree clearing by default"
1118
1119 fi
1120
1121
1122 EVMS_ABI_CODE=120
1123 # Check whether --enable-evms-10 or --disable-evms-10 was given.
1124 if test "${enable_evms_10+set}" = set; then
1125   enableval="$enable_evms_10"
1126   if test "$enableval" != "no"
1127 then
1128         EVMS_ABI_CODE=100
1129         echo "Enabling EVMS 1.0.0 ABI"
1130 fi
1131
1132 fi
1133
1134 # Check whether --enable-evms-11 or --disable-evms-11 was given.
1135 if test "${enable_evms_11+set}" = set; then
1136   enableval="$enable_evms_11"
1137   if test "$enableval" != "no"
1138 then
1139         EVMS_ABI_CODE=110
1140         echo "Enabling EVMS 1.1.0 ABI"
1141 fi
1142
1143 fi
1144
1145 if test "$EVMS_ABI_CODE" = "120"
1146 then
1147         echo "Using EVMS 1.2.0 ABI by default"
1148 fi
1149
1150 # Check whether --enable-dll-shlibs or --disable-dll-shlibs was given.
1151 if test "${enable_dll_shlibs+set}" = set; then
1152   enableval="$enable_dll_shlibs"
1153   if test "$enableval" = "no"
1154 then
1155         DLL_CMT=#
1156         MAKEFILE_DLL=/dev/null
1157         echo "Disabling DLL shared libraries"
1158 else
1159         DLL_CMT=
1160         MAKEFILE_DLL=$srcdir/lib/Makefile.dll-lib
1161         BINARY_TYPE=dllbin
1162         LIB_EXT=.sa
1163         echo "Enabling DLL shared libraries"
1164 fi
1165
1166 else
1167   MAKEFILE_DLL=/dev/null
1168 DLL_CMT=#
1169 echo "Disabling DLL shared libraries by default"
1170
1171 fi
1172
1173
1174
1175 # Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
1176 if test "${enable_elf_shlibs+set}" = set; then
1177   enableval="$enable_elf_shlibs"
1178   if test "$enableval" = "no"
1179 then
1180         ELF_CMT=#
1181         MAKEFILE_ELF=/dev/null
1182         echo "Disabling ELF shared libraries"
1183 else
1184         ELF_CMT=
1185         MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
1186         case "$host_os" in
1187         solaris2.*)
1188                 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
1189         ;;
1190         esac
1191         BINARY_TYPE=elfbin
1192         LIB_EXT=.so
1193         echo "Enabling ELF shared libraries"
1194 fi
1195
1196 else
1197   MAKEFILE_ELF=/dev/null
1198 ELF_CMT=#
1199 echo "Disabling ELF shared libraries by default"
1200
1201 fi
1202
1203
1204
1205 # Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
1206 if test "${enable_bsd_shlibs+set}" = set; then
1207   enableval="$enable_bsd_shlibs"
1208   if test "$enableval" = "no"
1209 then
1210         BSDLIB_CMT=#
1211         MAKEFILE_BSDLIB=/dev/null
1212         echo "Disabling BSD shared libraries"
1213 else
1214         BSDLIB_CMT=
1215         MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
1216         LIB_EXT=.so
1217         echo "Enabling BSD shared libraries"
1218 fi
1219
1220 else
1221   MAKEFILE_BSDLIB=/dev/null
1222 BSDLIB_CMT=#
1223 echo "Disabling BSD shared libraries by default"
1224
1225 fi
1226
1227
1228
1229 # Check whether --enable-profile or --disable-profile was given.
1230 if test "${enable_profile+set}" = set; then
1231   enableval="$enable_profile"
1232   if test "$enableval" = "no"
1233 then
1234         PROFILE_CMT=#
1235         MAKEFILE_PROFILE=/dev/null
1236         echo "Disabling profiling libraries"
1237 else
1238         PROFILE_CMT=
1239         MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
1240         PROFILED_LIB_EXT=_p.a
1241         echo "Building profiling libraries"
1242 fi
1243
1244 else
1245   PROFILE_CMT=#
1246 MAKEFILE_PROFILE=/dev/null
1247 echo "Disabling profiling libraries by default"
1248
1249 fi
1250
1251
1252
1253 # Check whether --enable-checker or --disable-checker was given.
1254 if test "${enable_checker+set}" = set; then
1255   enableval="$enable_checker"
1256   if test "$enableval" = "no"
1257 then
1258         CHECKER_CMT=#
1259         MAKEFILE_CHECKER=/dev/null
1260         echo "Disabling checker libraries"
1261 else
1262         CHECKER_CMT=
1263         MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
1264         echo "Building checker libraries"
1265 fi
1266
1267 else
1268   CHECKER_CMT=#
1269 MAKEFILE_CHECKER=/dev/null
1270 echo "Disabling checker libraries by default"
1271
1272 fi
1273
1274
1275
1276
1277
1278
1279 # Check whether --enable-jbd-debug or --disable-jbd-debug was given.
1280 if test "${enable_jbd_debug+set}" = set; then
1281   enableval="$enable_jbd_debug"
1282   if test "$enableval" = "no"
1283 then
1284         echo "Disabling journal debugging"
1285 else
1286         cat >> confdefs.h <<\EOF
1287 #define CONFIG_JBD_DEBUG 1
1288 EOF
1289
1290         echo "Enabling journal debugging"
1291 fi
1292
1293 else
1294   echo "Disabling journal debugging by default"
1295
1296 fi
1297
1298 # Check whether --enable-blkid-debug or --disable-blkid-debug was given.
1299 if test "${enable_blkid_debug+set}" = set; then
1300   enableval="$enable_blkid_debug"
1301   if test "$enableval" = "no"
1302 then
1303         echo "Disabling blkid debugging"
1304 else
1305         cat >> confdefs.h <<\EOF
1306 #define CONFIG_BLKID_DEBUG 1
1307 EOF
1308
1309         echo "Enabling blkid debugging"
1310 fi
1311
1312 else
1313   echo "Disabling blkid debugging by default"
1314
1315 fi
1316
1317 # Check whether --enable-swapfs or --disable-swapfs was given.
1318 if test "${enable_swapfs+set}" = set; then
1319   enableval="$enable_swapfs"
1320   if test "$enableval" = "no"
1321 then
1322         SWAPFS_CMT=#
1323         echo "Disabling swapfs support"
1324 else
1325         SWAPFS_CMT=
1326         cat >> confdefs.h <<\EOF
1327 #define ENABLE_SWAPFS 1
1328 EOF
1329
1330         echo "Enabling swapfs support"
1331 fi
1332
1333 else
1334   SWAPFS_CMT=
1335 echo "Enabling swapfs support by default"
1336 cat >> confdefs.h <<\EOF
1337 #define ENABLE_SWAPFS 1
1338 EOF
1339
1340
1341 fi
1342
1343
1344 # Check whether --enable-debugfs or --disable-debugfs was given.
1345 if test "${enable_debugfs+set}" = set; then
1346   enableval="$enable_debugfs"
1347   if test "$enableval" = "no"
1348 then
1349         echo "Disabling debugfs support"
1350         DEBUGFS_CMT="#"
1351 else
1352         DEBUGFS_CMT=
1353         echo "Enabling debugfs support"
1354 fi
1355
1356 else
1357   echo "Enabling debugfs support by default"
1358 DEBUGFS_CMT=
1359
1360 fi
1361
1362
1363 # Check whether --enable-imager or --disable-imager was given.
1364 if test "${enable_imager+set}" = set; then
1365   enableval="$enable_imager"
1366   if test "$enableval" = "no"
1367 then
1368         echo "Disabling e2image support"
1369         IMAGER_CMT="#"
1370 else
1371         IMAGER_CMT=
1372         echo "Enabling e2image support"
1373 fi
1374
1375 else
1376   echo "Enabling e2image support by default"
1377 IMAGER_CMT=
1378
1379 fi
1380
1381
1382 # Check whether --enable-resizer or --disable-resizer was given.
1383 if test "${enable_resizer+set}" = set; then
1384   enableval="$enable_resizer"
1385   if test "$enableval" = "no"
1386 then
1387         echo "Disabling e2resize support"
1388         RESIZER_CMT="#"
1389 else
1390         RESIZER_CMT=
1391         echo "Enabling e2resize support"
1392 fi
1393
1394 else
1395   echo "Enabling e2resize support by default"
1396 RESIZER_CMT=
1397
1398 fi
1399
1400
1401 # Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
1402 if test "${enable_dynamic_e2fsck+set}" = set; then
1403   enableval="$enable_dynamic_e2fsck"
1404   if test "$enableval" = "no"
1405 then
1406         E2FSCK_TYPE=static
1407         echo "Building e2fsck statically"
1408 else
1409         E2FSCK_TYPE=shared
1410         echo "Building e2fsck dynamically"
1411 fi
1412
1413 else
1414   E2FSCK_TYPE=static
1415 echo "Building e2fsck statically by default"
1416
1417 fi
1418
1419
1420 # Check whether --enable-fsck or --disable-fsck was given.
1421 if test "${enable_fsck+set}" = set; then
1422   enableval="$enable_fsck"
1423   if test "$enableval" = "no"
1424 then
1425         FSCK_PROG='' FSCK_MAN=''
1426         echo "Not building fsck wrapper"
1427 else
1428         FSCK_PROG=fsck FSCK_MAN=fsck.8
1429         echo "Building fsck wrapper"
1430 fi
1431
1432 else
1433   case "$host_os" in
1434   gnu*)
1435     FSCK_PROG='' FSCK_MAN=''
1436     echo "Not building fsck wrapper by default"
1437     ;;
1438   *)
1439     FSCK_PROG=fsck FSCK_MAN=fsck.8
1440     echo "Building fsck wrapper by default"
1441 esac
1442
1443 fi
1444
1445
1446
1447 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
1448
1449 # Check whether --enable-old-bitops or --disable-old-bitops was given.
1450 if test "${enable_old_bitops+set}" = set; then
1451   enableval="$enable_old_bitops"
1452   if test "$enableval" = "no"
1453 then
1454         echo "Using new (standard) bitmask operations"
1455 else
1456         cat >> confdefs.h <<\EOF
1457 #define EXT2_OLD_BITOPS 1
1458 EOF
1459
1460         echo "Using old (native) bitmask operations"
1461
1462 fi
1463
1464 else
1465   echo "Using standard bitmask operations by default"
1466
1467 fi
1468
1469 PACKAGE=e2fsprogs
1470 VERSION="$E2FSPROGS_VERSION"
1471 cat >> confdefs.h <<EOF
1472 #define PACKAGE "$PACKAGE"
1473 EOF
1474
1475 cat >> confdefs.h <<EOF
1476 #define VERSION "$VERSION"
1477 EOF
1478
1479
1480
1481
1482 ALL_LINGUAS="it nyc tr de de-utf"
1483 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1484 echo "configure:1485: checking whether ${MAKE-make} sets \${MAKE}" >&5
1485 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1486 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1487   echo $ac_n "(cached) $ac_c" 1>&6
1488 else
1489   cat > conftestmake <<\EOF
1490 all:
1491         @echo 'ac_maketemp="${MAKE}"'
1492 EOF
1493 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1494 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1495 if test -n "$ac_maketemp"; then
1496   eval ac_cv_prog_make_${ac_make}_set=yes
1497 else
1498   eval ac_cv_prog_make_${ac_make}_set=no
1499 fi
1500 rm -f conftestmake
1501 fi
1502 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1503   echo "$ac_t""yes" 1>&6
1504   SET_MAKE=
1505 else
1506   echo "$ac_t""no" 1>&6
1507   SET_MAKE="MAKE=${MAKE-make}"
1508 fi
1509
1510 # Extract the first word of "ranlib", so it can be a program name with args.
1511 set dummy ranlib; ac_word=$2
1512 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1513 echo "configure:1514: checking for $ac_word" >&5
1514 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1515   echo $ac_n "(cached) $ac_c" 1>&6
1516 else
1517   if test -n "$RANLIB"; then
1518   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1519 else
1520   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1521   ac_dummy="$PATH"
1522   for ac_dir in $ac_dummy; do
1523     test -z "$ac_dir" && ac_dir=.
1524     if test -f $ac_dir/$ac_word; then
1525       ac_cv_prog_RANLIB="ranlib"
1526       break
1527     fi
1528   done
1529   IFS="$ac_save_ifs"
1530   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1531 fi
1532 fi
1533 RANLIB="$ac_cv_prog_RANLIB"
1534 if test -n "$RANLIB"; then
1535   echo "$ac_t""$RANLIB" 1>&6
1536 else
1537   echo "$ac_t""no" 1>&6
1538 fi
1539
1540 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1541 echo "configure:1542: checking for POSIXized ISC" >&5
1542 if test -d /etc/conf/kconfig.d &&
1543   grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1544 then
1545   echo "$ac_t""yes" 1>&6
1546   ISC=yes # If later tests want to check for ISC.
1547   cat >> confdefs.h <<\EOF
1548 #define _POSIX_SOURCE 1
1549 EOF
1550
1551   if test "$GCC" = yes; then
1552     CC="$CC -posix"
1553   else
1554     CC="$CC -Xp"
1555   fi
1556 else
1557   echo "$ac_t""no" 1>&6
1558   ISC=
1559 fi
1560
1561 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1562 echo "configure:1563: checking for ANSI C header files" >&5
1563 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1564   echo $ac_n "(cached) $ac_c" 1>&6
1565 else
1566   cat > conftest.$ac_ext <<EOF
1567 #line 1568 "configure"
1568 #include "confdefs.h"
1569 #include <stdlib.h>
1570 #include <stdarg.h>
1571 #include <string.h>
1572 #include <float.h>
1573 EOF
1574 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1575 { (eval echo configure:1576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1576 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1577 if test -z "$ac_err"; then
1578   rm -rf conftest*
1579   ac_cv_header_stdc=yes
1580 else
1581   echo "$ac_err" >&5
1582   echo "configure: failed program was:" >&5
1583   cat conftest.$ac_ext >&5
1584   rm -rf conftest*
1585   ac_cv_header_stdc=no
1586 fi
1587 rm -f conftest*
1588
1589 if test $ac_cv_header_stdc = yes; then
1590   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1591 cat > conftest.$ac_ext <<EOF
1592 #line 1593 "configure"
1593 #include "confdefs.h"
1594 #include <string.h>
1595 EOF
1596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1597   egrep "memchr" >/dev/null 2>&1; then
1598   :
1599 else
1600   rm -rf conftest*
1601   ac_cv_header_stdc=no
1602 fi
1603 rm -f conftest*
1604
1605 fi
1606
1607 if test $ac_cv_header_stdc = yes; then
1608   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1609 cat > conftest.$ac_ext <<EOF
1610 #line 1611 "configure"
1611 #include "confdefs.h"
1612 #include <stdlib.h>
1613 EOF
1614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1615   egrep "free" >/dev/null 2>&1; then
1616   :
1617 else
1618   rm -rf conftest*
1619   ac_cv_header_stdc=no
1620 fi
1621 rm -f conftest*
1622
1623 fi
1624
1625 if test $ac_cv_header_stdc = yes; then
1626   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1627 if test "$cross_compiling" = yes; then
1628   :
1629 else
1630   cat > conftest.$ac_ext <<EOF
1631 #line 1632 "configure"
1632 #include "confdefs.h"
1633 #include <ctype.h>
1634 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1635 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1636 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1637 int main () { int i; for (i = 0; i < 256; i++)
1638 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1639 exit (0); }
1640
1641 EOF
1642 if { (eval echo configure:1643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1643 then
1644   :
1645 else
1646   echo "configure: failed program was:" >&5
1647   cat conftest.$ac_ext >&5
1648   rm -fr conftest*
1649   ac_cv_header_stdc=no
1650 fi
1651 rm -fr conftest*
1652 fi
1653
1654 fi
1655 fi
1656
1657 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1658 if test $ac_cv_header_stdc = yes; then
1659   cat >> confdefs.h <<\EOF
1660 #define STDC_HEADERS 1
1661 EOF
1662
1663 fi
1664
1665 echo $ac_n "checking for working const""... $ac_c" 1>&6
1666 echo "configure:1667: checking for working const" >&5
1667 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1668   echo $ac_n "(cached) $ac_c" 1>&6
1669 else
1670   cat > conftest.$ac_ext <<EOF
1671 #line 1672 "configure"
1672 #include "confdefs.h"
1673
1674 int main() {
1675
1676 /* Ultrix mips cc rejects this.  */
1677 typedef int charset[2]; const charset x;
1678 /* SunOS 4.1.1 cc rejects this.  */
1679 char const *const *ccp;
1680 char **p;
1681 /* NEC SVR4.0.2 mips cc rejects this.  */
1682 struct point {int x, y;};
1683 static struct point const zero = {0,0};
1684 /* AIX XL C 1.02.0.0 rejects this.
1685    It does not let you subtract one const X* pointer from another in an arm
1686    of an if-expression whose if-part is not a constant expression */
1687 const char *g = "string";
1688 ccp = &g + (g ? g-g : 0);
1689 /* HPUX 7.0 cc rejects these. */
1690 ++ccp;
1691 p = (char**) ccp;
1692 ccp = (char const *const *) p;
1693 { /* SCO 3.2v4 cc rejects this.  */
1694   char *t;
1695   char const *s = 0 ? (char *) 0 : (char const *) 0;
1696
1697   *t++ = 0;
1698 }
1699 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
1700   int x[] = {25, 17};
1701   const int *foo = &x[0];
1702   ++foo;
1703 }
1704 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1705   typedef const int *iptr;
1706   iptr p = 0;
1707   ++p;
1708 }
1709 { /* AIX XL C 1.02.0.0 rejects this saying
1710      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1711   struct s { int j; const int *ap[3]; };
1712   struct s *b; b->j = 5;
1713 }
1714 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1715   const int foo = 10;
1716 }
1717
1718 ; return 0; }
1719 EOF
1720 if { (eval echo configure:1721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1721   rm -rf conftest*
1722   ac_cv_c_const=yes
1723 else
1724   echo "configure: failed program was:" >&5
1725   cat conftest.$ac_ext >&5
1726   rm -rf conftest*
1727   ac_cv_c_const=no
1728 fi
1729 rm -f conftest*
1730 fi
1731
1732 echo "$ac_t""$ac_cv_c_const" 1>&6
1733 if test $ac_cv_c_const = no; then
1734   cat >> confdefs.h <<\EOF
1735 #define const 
1736 EOF
1737
1738 fi
1739
1740 echo $ac_n "checking for inline""... $ac_c" 1>&6
1741 echo "configure:1742: checking for inline" >&5
1742 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1743   echo $ac_n "(cached) $ac_c" 1>&6
1744 else
1745   ac_cv_c_inline=no
1746 for ac_kw in inline __inline__ __inline; do
1747   cat > conftest.$ac_ext <<EOF
1748 #line 1749 "configure"
1749 #include "confdefs.h"
1750
1751 int main() {
1752 } $ac_kw foo() {
1753 ; return 0; }
1754 EOF
1755 if { (eval echo configure:1756: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1756   rm -rf conftest*
1757   ac_cv_c_inline=$ac_kw; break
1758 else
1759   echo "configure: failed program was:" >&5
1760   cat conftest.$ac_ext >&5
1761 fi
1762 rm -f conftest*
1763 done
1764
1765 fi
1766
1767 echo "$ac_t""$ac_cv_c_inline" 1>&6
1768 case "$ac_cv_c_inline" in
1769   inline | yes) ;;
1770   no) cat >> confdefs.h <<\EOF
1771 #define inline 
1772 EOF
1773  ;;
1774   *)  cat >> confdefs.h <<EOF
1775 #define inline $ac_cv_c_inline
1776 EOF
1777  ;;
1778 esac
1779
1780 echo $ac_n "checking for off_t""... $ac_c" 1>&6
1781 echo "configure:1782: checking for off_t" >&5
1782 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1783   echo $ac_n "(cached) $ac_c" 1>&6
1784 else
1785   cat > conftest.$ac_ext <<EOF
1786 #line 1787 "configure"
1787 #include "confdefs.h"
1788 #include <sys/types.h>
1789 #if STDC_HEADERS
1790 #include <stdlib.h>
1791 #include <stddef.h>
1792 #endif
1793 EOF
1794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1795   egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1796   rm -rf conftest*
1797   ac_cv_type_off_t=yes
1798 else
1799   rm -rf conftest*
1800   ac_cv_type_off_t=no
1801 fi
1802 rm -f conftest*
1803
1804 fi
1805 echo "$ac_t""$ac_cv_type_off_t" 1>&6
1806 if test $ac_cv_type_off_t = no; then
1807   cat >> confdefs.h <<\EOF
1808 #define off_t long
1809 EOF
1810
1811 fi
1812
1813 echo $ac_n "checking for size_t""... $ac_c" 1>&6
1814 echo "configure:1815: checking for size_t" >&5
1815 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1816   echo $ac_n "(cached) $ac_c" 1>&6
1817 else
1818   cat > conftest.$ac_ext <<EOF
1819 #line 1820 "configure"
1820 #include "confdefs.h"
1821 #include <sys/types.h>
1822 #if STDC_HEADERS
1823 #include <stdlib.h>
1824 #include <stddef.h>
1825 #endif
1826 EOF
1827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1828   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1829   rm -rf conftest*
1830   ac_cv_type_size_t=yes
1831 else
1832   rm -rf conftest*
1833   ac_cv_type_size_t=no
1834 fi
1835 rm -f conftest*
1836
1837 fi
1838 echo "$ac_t""$ac_cv_type_size_t" 1>&6
1839 if test $ac_cv_type_size_t = no; then
1840   cat >> confdefs.h <<\EOF
1841 #define size_t unsigned
1842 EOF
1843
1844 fi
1845
1846 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1847 # for constant arguments.  Useless!
1848 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1849 echo "configure:1850: checking for working alloca.h" >&5
1850 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1851   echo $ac_n "(cached) $ac_c" 1>&6
1852 else
1853   cat > conftest.$ac_ext <<EOF
1854 #line 1855 "configure"
1855 #include "confdefs.h"
1856 #include <alloca.h>
1857 int main() {
1858 char *p = alloca(2 * sizeof(int));
1859 ; return 0; }
1860 EOF
1861 if { (eval echo configure:1862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1862   rm -rf conftest*
1863   ac_cv_header_alloca_h=yes
1864 else
1865   echo "configure: failed program was:" >&5
1866   cat conftest.$ac_ext >&5
1867   rm -rf conftest*
1868   ac_cv_header_alloca_h=no
1869 fi
1870 rm -f conftest*
1871 fi
1872
1873 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1874 if test $ac_cv_header_alloca_h = yes; then
1875   cat >> confdefs.h <<\EOF
1876 #define HAVE_ALLOCA_H 1
1877 EOF
1878
1879 fi
1880
1881 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1882 echo "configure:1883: checking for alloca" >&5
1883 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1884   echo $ac_n "(cached) $ac_c" 1>&6
1885 else
1886   cat > conftest.$ac_ext <<EOF
1887 #line 1888 "configure"
1888 #include "confdefs.h"
1889
1890 #ifdef __GNUC__
1891 # define alloca __builtin_alloca
1892 #else
1893 # ifdef _MSC_VER
1894 #  include <malloc.h>
1895 #  define alloca _alloca
1896 # else
1897 #  if HAVE_ALLOCA_H
1898 #   include <alloca.h>
1899 #  else
1900 #   ifdef _AIX
1901  #pragma alloca
1902 #   else
1903 #    ifndef alloca /* predefined by HP cc +Olibcalls */
1904 char *alloca ();
1905 #    endif
1906 #   endif
1907 #  endif
1908 # endif
1909 #endif
1910
1911 int main() {
1912 char *p = (char *) alloca(1);
1913 ; return 0; }
1914 EOF
1915 if { (eval echo configure:1916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1916   rm -rf conftest*
1917   ac_cv_func_alloca_works=yes
1918 else
1919   echo "configure: failed program was:" >&5
1920   cat conftest.$ac_ext >&5
1921   rm -rf conftest*
1922   ac_cv_func_alloca_works=no
1923 fi
1924 rm -f conftest*
1925 fi
1926
1927 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1928 if test $ac_cv_func_alloca_works = yes; then
1929   cat >> confdefs.h <<\EOF
1930 #define HAVE_ALLOCA 1
1931 EOF
1932
1933 fi
1934
1935 if test $ac_cv_func_alloca_works = no; then
1936   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1937   # that cause trouble.  Some versions do not even contain alloca or
1938   # contain a buggy version.  If you still want to use their alloca,
1939   # use ar to extract alloca.o from them instead of compiling alloca.c.
1940   ALLOCA=alloca.${ac_objext}
1941   cat >> confdefs.h <<\EOF
1942 #define C_ALLOCA 1
1943 EOF
1944
1945
1946 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1947 echo "configure:1948: checking whether alloca needs Cray hooks" >&5
1948 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1949   echo $ac_n "(cached) $ac_c" 1>&6
1950 else
1951   cat > conftest.$ac_ext <<EOF
1952 #line 1953 "configure"
1953 #include "confdefs.h"
1954 #if defined(CRAY) && ! defined(CRAY2)
1955 webecray
1956 #else
1957 wenotbecray
1958 #endif
1959
1960 EOF
1961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1962   egrep "webecray" >/dev/null 2>&1; then
1963   rm -rf conftest*
1964   ac_cv_os_cray=yes
1965 else
1966   rm -rf conftest*
1967   ac_cv_os_cray=no
1968 fi
1969 rm -f conftest*
1970
1971 fi
1972
1973 echo "$ac_t""$ac_cv_os_cray" 1>&6
1974 if test $ac_cv_os_cray = yes; then
1975 for ac_func in _getb67 GETB67 getb67; do
1976   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1977 echo "configure:1978: checking for $ac_func" >&5
1978 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1979   echo $ac_n "(cached) $ac_c" 1>&6
1980 else
1981   cat > conftest.$ac_ext <<EOF
1982 #line 1983 "configure"
1983 #include "confdefs.h"
1984 /* System header to define __stub macros and hopefully few prototypes,
1985     which can conflict with char $ac_func(); below.  */
1986 #include <assert.h>
1987 /* Override any gcc2 internal prototype to avoid an error.  */
1988 /* We use char because int might match the return type of a gcc2
1989     builtin and then its argument prototype would still apply.  */
1990 char $ac_func();
1991
1992 int main() {
1993
1994 /* The GNU C library defines this for functions which it implements
1995     to always fail with ENOSYS.  Some functions are actually named
1996     something starting with __ and the normal name is an alias.  */
1997 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1998 choke me
1999 #else
2000 $ac_func();
2001 #endif
2002
2003 ; return 0; }
2004 EOF
2005 if { (eval echo configure:2006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2006   rm -rf conftest*
2007   eval "ac_cv_func_$ac_func=yes"
2008 else
2009   echo "configure: failed program was:" >&5
2010   cat conftest.$ac_ext >&5
2011   rm -rf conftest*
2012   eval "ac_cv_func_$ac_func=no"
2013 fi
2014 rm -f conftest*
2015 fi
2016
2017 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2018   echo "$ac_t""yes" 1>&6
2019   cat >> confdefs.h <<EOF
2020 #define CRAY_STACKSEG_END $ac_func
2021 EOF
2022
2023   break
2024 else
2025   echo "$ac_t""no" 1>&6
2026 fi
2027
2028 done
2029 fi
2030
2031 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2032 echo "configure:2033: checking stack direction for C alloca" >&5
2033 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2034   echo $ac_n "(cached) $ac_c" 1>&6
2035 else
2036   if test "$cross_compiling" = yes; then
2037   ac_cv_c_stack_direction=0
2038 else
2039   cat > conftest.$ac_ext <<EOF
2040 #line 2041 "configure"
2041 #include "confdefs.h"
2042 find_stack_direction ()
2043 {
2044   static char *addr = 0;
2045   auto char dummy;
2046   if (addr == 0)
2047     {
2048       addr = &dummy;
2049       return find_stack_direction ();
2050     }
2051   else
2052     return (&dummy > addr) ? 1 : -1;
2053 }
2054 main ()
2055 {
2056   exit (find_stack_direction() < 0);
2057 }
2058 EOF
2059 if { (eval echo configure:2060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2060 then
2061   ac_cv_c_stack_direction=1
2062 else
2063   echo "configure: failed program was:" >&5
2064   cat conftest.$ac_ext >&5
2065   rm -fr conftest*
2066   ac_cv_c_stack_direction=-1
2067 fi
2068 rm -fr conftest*
2069 fi
2070
2071 fi
2072
2073 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2074 cat >> confdefs.h <<EOF
2075 #define STACK_DIRECTION $ac_cv_c_stack_direction
2076 EOF
2077
2078 fi
2079
2080 for ac_hdr in unistd.h
2081 do
2082 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2083 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2084 echo "configure:2085: checking for $ac_hdr" >&5
2085 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2086   echo $ac_n "(cached) $ac_c" 1>&6
2087 else
2088   cat > conftest.$ac_ext <<EOF
2089 #line 2090 "configure"
2090 #include "confdefs.h"
2091 #include <$ac_hdr>
2092 EOF
2093 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2094 { (eval echo configure:2095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2095 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2096 if test -z "$ac_err"; then
2097   rm -rf conftest*
2098   eval "ac_cv_header_$ac_safe=yes"
2099 else
2100   echo "$ac_err" >&5
2101   echo "configure: failed program was:" >&5
2102   cat conftest.$ac_ext >&5
2103   rm -rf conftest*
2104   eval "ac_cv_header_$ac_safe=no"
2105 fi
2106 rm -f conftest*
2107 fi
2108 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2109   echo "$ac_t""yes" 1>&6
2110     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2111   cat >> confdefs.h <<EOF
2112 #define $ac_tr_hdr 1
2113 EOF
2114  
2115 else
2116   echo "$ac_t""no" 1>&6
2117 fi
2118 done
2119
2120 for ac_func in getpagesize
2121 do
2122 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2123 echo "configure:2124: checking for $ac_func" >&5
2124 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2125   echo $ac_n "(cached) $ac_c" 1>&6
2126 else
2127   cat > conftest.$ac_ext <<EOF
2128 #line 2129 "configure"
2129 #include "confdefs.h"
2130 /* System header to define __stub macros and hopefully few prototypes,
2131     which can conflict with char $ac_func(); below.  */
2132 #include <assert.h>
2133 /* Override any gcc2 internal prototype to avoid an error.  */
2134 /* We use char because int might match the return type of a gcc2
2135     builtin and then its argument prototype would still apply.  */
2136 char $ac_func();
2137
2138 int main() {
2139
2140 /* The GNU C library defines this for functions which it implements
2141     to always fail with ENOSYS.  Some functions are actually named
2142     something starting with __ and the normal name is an alias.  */
2143 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2144 choke me
2145 #else
2146 $ac_func();
2147 #endif
2148
2149 ; return 0; }
2150 EOF
2151 if { (eval echo configure:2152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2152   rm -rf conftest*
2153   eval "ac_cv_func_$ac_func=yes"
2154 else
2155   echo "configure: failed program was:" >&5
2156   cat conftest.$ac_ext >&5
2157   rm -rf conftest*
2158   eval "ac_cv_func_$ac_func=no"
2159 fi
2160 rm -f conftest*
2161 fi
2162
2163 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2164   echo "$ac_t""yes" 1>&6
2165     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2166   cat >> confdefs.h <<EOF
2167 #define $ac_tr_func 1
2168 EOF
2169  
2170 else
2171   echo "$ac_t""no" 1>&6
2172 fi
2173 done
2174
2175 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2176 echo "configure:2177: checking for working mmap" >&5
2177 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2178   echo $ac_n "(cached) $ac_c" 1>&6
2179 else
2180   if test "$cross_compiling" = yes; then
2181   ac_cv_func_mmap_fixed_mapped=no
2182 else
2183   cat > conftest.$ac_ext <<EOF
2184 #line 2185 "configure"
2185 #include "confdefs.h"
2186
2187 /* Thanks to Mike Haertel and Jim Avera for this test.
2188    Here is a matrix of mmap possibilities:
2189         mmap private not fixed
2190         mmap private fixed at somewhere currently unmapped
2191         mmap private fixed at somewhere already mapped
2192         mmap shared not fixed
2193         mmap shared fixed at somewhere currently unmapped
2194         mmap shared fixed at somewhere already mapped
2195    For private mappings, we should verify that changes cannot be read()
2196    back from the file, nor mmap's back from the file at a different
2197    address.  (There have been systems where private was not correctly
2198    implemented like the infamous i386 svr4.0, and systems where the
2199    VM page cache was not coherent with the filesystem buffer cache
2200    like early versions of FreeBSD and possibly contemporary NetBSD.)
2201    For shared mappings, we should conversely verify that changes get
2202    propogated back to all the places they're supposed to be.
2203
2204    Grep wants private fixed already mapped.
2205    The main things grep needs to know about mmap are:
2206    * does it exist and is it safe to write into the mmap'd area
2207    * how to use it (BSD variants)  */
2208 #include <sys/types.h>
2209 #include <fcntl.h>
2210 #include <sys/mman.h>
2211
2212 /* This mess was copied from the GNU getpagesize.h.  */
2213 #ifndef HAVE_GETPAGESIZE
2214 # ifdef HAVE_UNISTD_H
2215 #  include <unistd.h>
2216 # endif
2217
2218 /* Assume that all systems that can run configure have sys/param.h.  */
2219 # ifndef HAVE_SYS_PARAM_H
2220 #  define HAVE_SYS_PARAM_H 1
2221 # endif
2222
2223 # ifdef _SC_PAGESIZE
2224 #  define getpagesize() sysconf(_SC_PAGESIZE)
2225 # else /* no _SC_PAGESIZE */
2226 #  ifdef HAVE_SYS_PARAM_H
2227 #   include <sys/param.h>
2228 #   ifdef EXEC_PAGESIZE
2229 #    define getpagesize() EXEC_PAGESIZE
2230 #   else /* no EXEC_PAGESIZE */
2231 #    ifdef NBPG
2232 #     define getpagesize() NBPG * CLSIZE
2233 #     ifndef CLSIZE
2234 #      define CLSIZE 1
2235 #     endif /* no CLSIZE */
2236 #    else /* no NBPG */
2237 #     ifdef NBPC
2238 #      define getpagesize() NBPC
2239 #     else /* no NBPC */
2240 #      ifdef PAGESIZE
2241 #       define getpagesize() PAGESIZE
2242 #      endif /* PAGESIZE */
2243 #     endif /* no NBPC */
2244 #    endif /* no NBPG */
2245 #   endif /* no EXEC_PAGESIZE */
2246 #  else /* no HAVE_SYS_PARAM_H */
2247 #   define getpagesize() 8192   /* punt totally */
2248 #  endif /* no HAVE_SYS_PARAM_H */
2249 # endif /* no _SC_PAGESIZE */
2250
2251 #endif /* no HAVE_GETPAGESIZE */
2252
2253 #ifdef __cplusplus
2254 extern "C" { void *malloc(unsigned); }
2255 #else
2256 char *malloc();
2257 #endif
2258
2259 int
2260 main()
2261 {
2262         char *data, *data2, *data3;
2263         int i, pagesize;
2264         int fd;
2265
2266         pagesize = getpagesize();
2267
2268         /*
2269          * First, make a file with some known garbage in it.
2270          */
2271         data = malloc(pagesize);
2272         if (!data)
2273                 exit(1);
2274         for (i = 0; i < pagesize; ++i)
2275                 *(data + i) = rand();
2276         umask(0);
2277         fd = creat("conftestmmap", 0600);
2278         if (fd < 0)
2279                 exit(1);
2280         if (write(fd, data, pagesize) != pagesize)
2281                 exit(1);
2282         close(fd);
2283
2284         /*
2285          * Next, try to mmap the file at a fixed address which
2286          * already has something else allocated at it.  If we can,
2287          * also make sure that we see the same garbage.
2288          */
2289         fd = open("conftestmmap", O_RDWR);
2290         if (fd < 0)
2291                 exit(1);
2292         data2 = malloc(2 * pagesize);
2293         if (!data2)
2294                 exit(1);
2295         data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2296         if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2297             MAP_PRIVATE | MAP_FIXED, fd, 0L))
2298                 exit(1);
2299         for (i = 0; i < pagesize; ++i)
2300                 if (*(data + i) != *(data2 + i))
2301                         exit(1);
2302
2303         /*
2304          * Finally, make sure that changes to the mapped area
2305          * do not percolate back to the file as seen by read().
2306          * (This is a bug on some variants of i386 svr4.0.)
2307          */
2308         for (i = 0; i < pagesize; ++i)
2309                 *(data2 + i) = *(data2 + i) + 1;
2310         data3 = malloc(pagesize);
2311         if (!data3)
2312                 exit(1);
2313         if (read(fd, data3, pagesize) != pagesize)
2314                 exit(1);
2315         for (i = 0; i < pagesize; ++i)
2316                 if (*(data + i) != *(data3 + i))
2317                         exit(1);
2318         close(fd);
2319         unlink("conftestmmap");
2320         exit(0);
2321 }
2322
2323 EOF
2324 if { (eval echo configure:2325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2325 then
2326   ac_cv_func_mmap_fixed_mapped=yes
2327 else
2328   echo "configure: failed program was:" >&5
2329   cat conftest.$ac_ext >&5
2330   rm -fr conftest*
2331   ac_cv_func_mmap_fixed_mapped=no
2332 fi
2333 rm -fr conftest*
2334 fi
2335
2336 fi
2337
2338 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2339 if test $ac_cv_func_mmap_fixed_mapped = yes; then
2340   cat >> confdefs.h <<\EOF
2341 #define HAVE_MMAP 1
2342 EOF
2343
2344 fi
2345
2346                               
2347    for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
2348 unistd.h sys/param.h
2349 do
2350 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2351 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2352 echo "configure:2353: checking for $ac_hdr" >&5
2353 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2354   echo $ac_n "(cached) $ac_c" 1>&6
2355 else
2356   cat > conftest.$ac_ext <<EOF
2357 #line 2358 "configure"
2358 #include "confdefs.h"
2359 #include <$ac_hdr>
2360 EOF
2361 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2362 { (eval echo configure:2363: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2363 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2364 if test -z "$ac_err"; then
2365   rm -rf conftest*
2366   eval "ac_cv_header_$ac_safe=yes"
2367 else
2368   echo "$ac_err" >&5
2369   echo "configure: failed program was:" >&5
2370   cat conftest.$ac_ext >&5
2371   rm -rf conftest*
2372   eval "ac_cv_header_$ac_safe=no"
2373 fi
2374 rm -f conftest*
2375 fi
2376 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2377   echo "$ac_t""yes" 1>&6
2378     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2379   cat >> confdefs.h <<EOF
2380 #define $ac_tr_hdr 1
2381 EOF
2382  
2383 else
2384   echo "$ac_t""no" 1>&6
2385 fi
2386 done
2387
2388    for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
2389 strdup __argz_count __argz_stringify __argz_next
2390 do
2391 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2392 echo "configure:2393: checking for $ac_func" >&5
2393 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2394   echo $ac_n "(cached) $ac_c" 1>&6
2395 else
2396   cat > conftest.$ac_ext <<EOF
2397 #line 2398 "configure"
2398 #include "confdefs.h"
2399 /* System header to define __stub macros and hopefully few prototypes,
2400     which can conflict with char $ac_func(); below.  */
2401 #include <assert.h>
2402 /* Override any gcc2 internal prototype to avoid an error.  */
2403 /* We use char because int might match the return type of a gcc2
2404     builtin and then its argument prototype would still apply.  */
2405 char $ac_func();
2406
2407 int main() {
2408
2409 /* The GNU C library defines this for functions which it implements
2410     to always fail with ENOSYS.  Some functions are actually named
2411     something starting with __ and the normal name is an alias.  */
2412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2413 choke me
2414 #else
2415 $ac_func();
2416 #endif
2417
2418 ; return 0; }
2419 EOF
2420 if { (eval echo configure:2421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2421   rm -rf conftest*
2422   eval "ac_cv_func_$ac_func=yes"
2423 else
2424   echo "configure: failed program was:" >&5
2425   cat conftest.$ac_ext >&5
2426   rm -rf conftest*
2427   eval "ac_cv_func_$ac_func=no"
2428 fi
2429 rm -f conftest*
2430 fi
2431
2432 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2433   echo "$ac_t""yes" 1>&6
2434     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2435   cat >> confdefs.h <<EOF
2436 #define $ac_tr_func 1
2437 EOF
2438  
2439 else
2440   echo "$ac_t""no" 1>&6
2441 fi
2442 done
2443
2444
2445    if test "${ac_cv_func_stpcpy+set}" != "set"; then
2446      for ac_func in stpcpy
2447 do
2448 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2449 echo "configure:2450: checking for $ac_func" >&5
2450 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2451   echo $ac_n "(cached) $ac_c" 1>&6
2452 else
2453   cat > conftest.$ac_ext <<EOF
2454 #line 2455 "configure"
2455 #include "confdefs.h"
2456 /* System header to define __stub macros and hopefully few prototypes,
2457     which can conflict with char $ac_func(); below.  */
2458 #include <assert.h>
2459 /* Override any gcc2 internal prototype to avoid an error.  */
2460 /* We use char because int might match the return type of a gcc2
2461     builtin and then its argument prototype would still apply.  */
2462 char $ac_func();
2463
2464 int main() {
2465
2466 /* The GNU C library defines this for functions which it implements
2467     to always fail with ENOSYS.  Some functions are actually named
2468     something starting with __ and the normal name is an alias.  */
2469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2470 choke me
2471 #else
2472 $ac_func();
2473 #endif
2474
2475 ; return 0; }
2476 EOF
2477 if { (eval echo configure:2478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2478   rm -rf conftest*
2479   eval "ac_cv_func_$ac_func=yes"
2480 else
2481   echo "configure: failed program was:" >&5
2482   cat conftest.$ac_ext >&5
2483   rm -rf conftest*
2484   eval "ac_cv_func_$ac_func=no"
2485 fi
2486 rm -f conftest*
2487 fi
2488
2489 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2490   echo "$ac_t""yes" 1>&6
2491     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2492   cat >> confdefs.h <<EOF
2493 #define $ac_tr_func 1
2494 EOF
2495  
2496 else
2497   echo "$ac_t""no" 1>&6
2498 fi
2499 done
2500
2501    fi
2502    if test "${ac_cv_func_stpcpy}" = "yes"; then
2503      cat >> confdefs.h <<\EOF
2504 #define HAVE_STPCPY 1
2505 EOF
2506
2507    fi
2508
2509    if test $ac_cv_header_locale_h = yes; then
2510     echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
2511 echo "configure:2512: checking for LC_MESSAGES" >&5
2512 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
2513   echo $ac_n "(cached) $ac_c" 1>&6
2514 else
2515   cat > conftest.$ac_ext <<EOF
2516 #line 2517 "configure"
2517 #include "confdefs.h"
2518 #include <locale.h>
2519 int main() {
2520 return LC_MESSAGES
2521 ; return 0; }
2522 EOF
2523 if { (eval echo configure:2524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2524   rm -rf conftest*
2525   am_cv_val_LC_MESSAGES=yes
2526 else
2527   echo "configure: failed program was:" >&5
2528   cat conftest.$ac_ext >&5
2529   rm -rf conftest*
2530   am_cv_val_LC_MESSAGES=no
2531 fi
2532 rm -f conftest*
2533 fi
2534
2535 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
2536     if test $am_cv_val_LC_MESSAGES = yes; then
2537       cat >> confdefs.h <<\EOF
2538 #define HAVE_LC_MESSAGES 1
2539 EOF
2540
2541     fi
2542   fi
2543    echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
2544 echo "configure:2545: checking whether NLS is requested" >&5
2545         # Check whether --enable-nls or --disable-nls was given.
2546 if test "${enable_nls+set}" = set; then
2547   enableval="$enable_nls"
2548   USE_NLS=$enableval
2549 else
2550   USE_NLS=no
2551 fi
2552
2553     echo "$ac_t""$USE_NLS" 1>&6
2554     
2555
2556     USE_INCLUDED_LIBINTL=no
2557
2558         if test "$USE_NLS" = "yes"; then
2559       cat >> confdefs.h <<\EOF
2560 #define ENABLE_NLS 1
2561 EOF
2562
2563       echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
2564 echo "configure:2565: checking whether included gettext is requested" >&5
2565       # Check whether --with-included-gettext or --without-included-gettext was given.
2566 if test "${with_included_gettext+set}" = set; then
2567   withval="$with_included_gettext"
2568   nls_cv_force_use_gnu_gettext=$withval
2569 else
2570   nls_cv_force_use_gnu_gettext=no
2571 fi
2572
2573       echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
2574
2575       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
2576       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
2577                                         nls_cv_header_intl=
2578         nls_cv_header_libgt=
2579         CATOBJEXT=NONE
2580
2581         ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
2582 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
2583 echo "configure:2584: checking for libintl.h" >&5
2584 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2585   echo $ac_n "(cached) $ac_c" 1>&6
2586 else
2587   cat > conftest.$ac_ext <<EOF
2588 #line 2589 "configure"
2589 #include "confdefs.h"
2590 #include <libintl.h>
2591 EOF
2592 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2593 { (eval echo configure:2594: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2594 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2595 if test -z "$ac_err"; then
2596   rm -rf conftest*
2597   eval "ac_cv_header_$ac_safe=yes"
2598 else
2599   echo "$ac_err" >&5
2600   echo "configure: failed program was:" >&5
2601   cat conftest.$ac_ext >&5
2602   rm -rf conftest*
2603   eval "ac_cv_header_$ac_safe=no"
2604 fi
2605 rm -f conftest*
2606 fi
2607 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2608   echo "$ac_t""yes" 1>&6
2609   echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
2610 echo "configure:2611: checking for gettext in libc" >&5
2611 if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
2612   echo $ac_n "(cached) $ac_c" 1>&6
2613 else
2614   cat > conftest.$ac_ext <<EOF
2615 #line 2616 "configure"
2616 #include "confdefs.h"
2617 #include <libintl.h>
2618 int main() {
2619 return (int) gettext ("")
2620 ; return 0; }
2621 EOF
2622 if { (eval echo configure:2623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2623   rm -rf conftest*
2624   gt_cv_func_gettext_libc=yes
2625 else
2626   echo "configure: failed program was:" >&5
2627   cat conftest.$ac_ext >&5
2628   rm -rf conftest*
2629   gt_cv_func_gettext_libc=no
2630 fi
2631 rm -f conftest*
2632 fi
2633
2634 echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
2635
2636            if test "$gt_cv_func_gettext_libc" != "yes"; then
2637              echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
2638 echo "configure:2639: checking for bindtextdomain in -lintl" >&5
2639 ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
2640 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2641   echo $ac_n "(cached) $ac_c" 1>&6
2642 else
2643   ac_save_LIBS="$LIBS"
2644 LIBS="-lintl  $LIBS"
2645 cat > conftest.$ac_ext <<EOF
2646 #line 2647 "configure"
2647 #include "confdefs.h"
2648 /* Override any gcc2 internal prototype to avoid an error.  */
2649 /* We use char because int might match the return type of a gcc2
2650     builtin and then its argument prototype would still apply.  */
2651 char bindtextdomain();
2652
2653 int main() {
2654 bindtextdomain()
2655 ; return 0; }
2656 EOF
2657 if { (eval echo configure:2658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2658   rm -rf conftest*
2659   eval "ac_cv_lib_$ac_lib_var=yes"
2660 else
2661   echo "configure: failed program was:" >&5
2662   cat conftest.$ac_ext >&5
2663   rm -rf conftest*
2664   eval "ac_cv_lib_$ac_lib_var=no"
2665 fi
2666 rm -f conftest*
2667 LIBS="$ac_save_LIBS"
2668
2669 fi
2670 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2671   echo "$ac_t""yes" 1>&6
2672   echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
2673 echo "configure:2674: checking for gettext in libintl" >&5
2674 if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
2675   echo $ac_n "(cached) $ac_c" 1>&6
2676 else
2677   echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2678 echo "configure:2679: checking for gettext in -lintl" >&5
2679 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2680 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2681   echo $ac_n "(cached) $ac_c" 1>&6
2682 else
2683   ac_save_LIBS="$LIBS"
2684 LIBS="-lintl  $LIBS"
2685 cat > conftest.$ac_ext <<EOF
2686 #line 2687 "configure"
2687 #include "confdefs.h"
2688 /* Override any gcc2 internal prototype to avoid an error.  */
2689 /* We use char because int might match the return type of a gcc2
2690     builtin and then its argument prototype would still apply.  */
2691 char gettext();
2692
2693 int main() {
2694 gettext()
2695 ; return 0; }
2696 EOF
2697 if { (eval echo configure:2698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2698   rm -rf conftest*
2699   eval "ac_cv_lib_$ac_lib_var=yes"
2700 else
2701   echo "configure: failed program was:" >&5
2702   cat conftest.$ac_ext >&5
2703   rm -rf conftest*
2704   eval "ac_cv_lib_$ac_lib_var=no"
2705 fi
2706 rm -f conftest*
2707 LIBS="$ac_save_LIBS"
2708
2709 fi
2710 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2711   echo "$ac_t""yes" 1>&6
2712   gt_cv_func_gettext_libintl=yes
2713 else
2714   echo "$ac_t""no" 1>&6
2715 gt_cv_func_gettext_libintl=no
2716 fi
2717
2718 fi
2719
2720 echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
2721 else
2722   echo "$ac_t""no" 1>&6
2723 fi
2724
2725            fi
2726
2727            if test "$gt_cv_func_gettext_libc" = "yes" \
2728               || test "$gt_cv_func_gettext_libintl" = "yes"; then
2729               cat >> confdefs.h <<\EOF
2730 #define HAVE_GETTEXT 1
2731 EOF
2732
2733               # Extract the first word of "msgfmt", so it can be a program name with args.
2734 set dummy msgfmt; ac_word=$2
2735 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2736 echo "configure:2737: checking for $ac_word" >&5
2737 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2738   echo $ac_n "(cached) $ac_c" 1>&6
2739 else
2740   case "$MSGFMT" in
2741   /*)
2742   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2743   ;;
2744   *)
2745   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2746   for ac_dir in $PATH; do
2747     test -z "$ac_dir" && ac_dir=.
2748     if test -f $ac_dir/$ac_word; then
2749       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
2750         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2751         break
2752       fi
2753     fi
2754   done
2755   IFS="$ac_save_ifs"
2756   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
2757   ;;
2758 esac
2759 fi
2760 MSGFMT="$ac_cv_path_MSGFMT"
2761 if test -n "$MSGFMT"; then
2762   echo "$ac_t""$MSGFMT" 1>&6
2763 else
2764   echo "$ac_t""no" 1>&6
2765 fi
2766               if test "$MSGFMT" != "no"; then
2767                 for ac_func in dcgettext
2768 do
2769 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2770 echo "configure:2771: checking for $ac_func" >&5
2771 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2772   echo $ac_n "(cached) $ac_c" 1>&6
2773 else
2774   cat > conftest.$ac_ext <<EOF
2775 #line 2776 "configure"
2776 #include "confdefs.h"
2777 /* System header to define __stub macros and hopefully few prototypes,
2778     which can conflict with char $ac_func(); below.  */
2779 #include <assert.h>
2780 /* Override any gcc2 internal prototype to avoid an error.  */
2781 /* We use char because int might match the return type of a gcc2
2782     builtin and then its argument prototype would still apply.  */
2783 char $ac_func();
2784
2785 int main() {
2786
2787 /* The GNU C library defines this for functions which it implements
2788     to always fail with ENOSYS.  Some functions are actually named
2789     something starting with __ and the normal name is an alias.  */
2790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2791 choke me
2792 #else
2793 $ac_func();
2794 #endif
2795
2796 ; return 0; }
2797 EOF
2798 if { (eval echo configure:2799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2799   rm -rf conftest*
2800   eval "ac_cv_func_$ac_func=yes"
2801 else
2802   echo "configure: failed program was:" >&5
2803   cat conftest.$ac_ext >&5
2804   rm -rf conftest*
2805   eval "ac_cv_func_$ac_func=no"
2806 fi
2807 rm -f conftest*
2808 fi
2809
2810 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2811   echo "$ac_t""yes" 1>&6
2812     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2813   cat >> confdefs.h <<EOF
2814 #define $ac_tr_func 1
2815 EOF
2816  
2817 else
2818   echo "$ac_t""no" 1>&6
2819 fi
2820 done
2821
2822                 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2823 set dummy gmsgfmt; ac_word=$2
2824 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2825 echo "configure:2826: checking for $ac_word" >&5
2826 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
2827   echo $ac_n "(cached) $ac_c" 1>&6
2828 else
2829   case "$GMSGFMT" in
2830   /*)
2831   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2832   ;;
2833   ?:/*)                  
2834   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
2835   ;;
2836   *)
2837   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2838   ac_dummy="$PATH"
2839   for ac_dir in $ac_dummy; do 
2840     test -z "$ac_dir" && ac_dir=.
2841     if test -f $ac_dir/$ac_word; then
2842       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
2843       break
2844     fi
2845   done
2846   IFS="$ac_save_ifs"
2847   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2848   ;;
2849 esac
2850 fi
2851 GMSGFMT="$ac_cv_path_GMSGFMT"
2852 if test -n "$GMSGFMT"; then
2853   echo "$ac_t""$GMSGFMT" 1>&6
2854 else
2855   echo "$ac_t""no" 1>&6
2856 fi
2857
2858                 # Extract the first word of "xgettext", so it can be a program name with args.
2859 set dummy xgettext; ac_word=$2
2860 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2861 echo "configure:2862: checking for $ac_word" >&5
2862 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
2863   echo $ac_n "(cached) $ac_c" 1>&6
2864 else
2865   case "$XGETTEXT" in
2866   /*)
2867   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2868   ;;
2869   *)
2870   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2871   for ac_dir in $PATH; do
2872     test -z "$ac_dir" && ac_dir=.
2873     if test -f $ac_dir/$ac_word; then
2874       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
2875         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
2876         break
2877       fi
2878     fi
2879   done
2880   IFS="$ac_save_ifs"
2881   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2882   ;;
2883 esac
2884 fi
2885 XGETTEXT="$ac_cv_path_XGETTEXT"
2886 if test -n "$XGETTEXT"; then
2887   echo "$ac_t""$XGETTEXT" 1>&6
2888 else
2889   echo "$ac_t""no" 1>&6
2890 fi
2891
2892                 cat > conftest.$ac_ext <<EOF
2893 #line 2894 "configure"
2894 #include "confdefs.h"
2895
2896 int main() {
2897 extern int _nl_msg_cat_cntr;
2898                                return _nl_msg_cat_cntr
2899 ; return 0; }
2900 EOF
2901 if { (eval echo configure:2902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2902   rm -rf conftest*
2903   CATOBJEXT=.gmo
2904                    DATADIRNAME=share
2905 else
2906   echo "configure: failed program was:" >&5
2907   cat conftest.$ac_ext >&5
2908   rm -rf conftest*
2909   CATOBJEXT=.mo
2910                    DATADIRNAME=lib
2911 fi
2912 rm -f conftest*
2913                 INSTOBJEXT=.mo
2914               fi
2915             fi
2916         
2917 else
2918   echo "$ac_t""no" 1>&6
2919 fi
2920
2921
2922         if test "$CATOBJEXT" = "NONE"; then
2923           echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
2924 echo "configure:2925: checking whether catgets can be used" >&5
2925           # Check whether --with-catgets or --without-catgets was given.
2926 if test "${with_catgets+set}" = set; then
2927   withval="$with_catgets"
2928   nls_cv_use_catgets=$withval
2929 else
2930   nls_cv_use_catgets=no
2931 fi
2932
2933           echo "$ac_t""$nls_cv_use_catgets" 1>&6
2934
2935           if test "$nls_cv_use_catgets" = "yes"; then
2936                     echo $ac_n "checking for main in -li""... $ac_c" 1>&6
2937 echo "configure:2938: checking for main in -li" >&5
2938 ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
2939 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2940   echo $ac_n "(cached) $ac_c" 1>&6
2941 else
2942   ac_save_LIBS="$LIBS"
2943 LIBS="-li  $LIBS"
2944 cat > conftest.$ac_ext <<EOF
2945 #line 2946 "configure"
2946 #include "confdefs.h"
2947
2948 int main() {
2949 main()
2950 ; return 0; }
2951 EOF
2952 if { (eval echo configure:2953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2953   rm -rf conftest*
2954   eval "ac_cv_lib_$ac_lib_var=yes"
2955 else
2956   echo "configure: failed program was:" >&5
2957   cat conftest.$ac_ext >&5
2958   rm -rf conftest*
2959   eval "ac_cv_lib_$ac_lib_var=no"
2960 fi
2961 rm -f conftest*
2962 LIBS="$ac_save_LIBS"
2963
2964 fi
2965 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2966   echo "$ac_t""yes" 1>&6
2967     ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2968     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2969   cat >> confdefs.h <<EOF
2970 #define $ac_tr_lib 1
2971 EOF
2972
2973   LIBS="-li $LIBS"
2974
2975 else
2976   echo "$ac_t""no" 1>&6
2977 fi
2978
2979             echo $ac_n "checking for catgets""... $ac_c" 1>&6
2980 echo "configure:2981: checking for catgets" >&5
2981 if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
2982   echo $ac_n "(cached) $ac_c" 1>&6
2983 else
2984   cat > conftest.$ac_ext <<EOF
2985 #line 2986 "configure"
2986 #include "confdefs.h"
2987 /* System header to define __stub macros and hopefully few prototypes,
2988     which can conflict with char catgets(); below.  */
2989 #include <assert.h>
2990 /* Override any gcc2 internal prototype to avoid an error.  */
2991 /* We use char because int might match the return type of a gcc2
2992     builtin and then its argument prototype would still apply.  */
2993 char catgets();
2994
2995 int main() {
2996
2997 /* The GNU C library defines this for functions which it implements
2998     to always fail with ENOSYS.  Some functions are actually named
2999     something starting with __ and the normal name is an alias.  */
3000 #if defined (__stub_catgets) || defined (__stub___catgets)
3001 choke me
3002 #else
3003 catgets();
3004 #endif
3005
3006 ; return 0; }
3007 EOF
3008 if { (eval echo configure:3009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3009   rm -rf conftest*
3010   eval "ac_cv_func_catgets=yes"
3011 else
3012   echo "configure: failed program was:" >&5
3013   cat conftest.$ac_ext >&5
3014   rm -rf conftest*
3015   eval "ac_cv_func_catgets=no"
3016 fi
3017 rm -f conftest*
3018 fi
3019
3020 if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
3021   echo "$ac_t""yes" 1>&6
3022   cat >> confdefs.h <<\EOF
3023 #define HAVE_CATGETS 1
3024 EOF
3025
3026                INTLOBJS="\$(CATOBJS)"
3027                # Extract the first word of "gencat", so it can be a program name with args.
3028 set dummy gencat; ac_word=$2
3029 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3030 echo "configure:3031: checking for $ac_word" >&5
3031 if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
3032   echo $ac_n "(cached) $ac_c" 1>&6
3033 else
3034   case "$GENCAT" in
3035   /*)
3036   ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
3037   ;;
3038   ?:/*)                  
3039   ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
3040   ;;
3041   *)
3042   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3043   ac_dummy="$PATH"
3044   for ac_dir in $ac_dummy; do 
3045     test -z "$ac_dir" && ac_dir=.
3046     if test -f $ac_dir/$ac_word; then
3047       ac_cv_path_GENCAT="$ac_dir/$ac_word"
3048       break
3049     fi
3050   done
3051   IFS="$ac_save_ifs"
3052   test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
3053   ;;
3054 esac
3055 fi
3056 GENCAT="$ac_cv_path_GENCAT"
3057 if test -n "$GENCAT"; then
3058   echo "$ac_t""$GENCAT" 1>&6
3059 else
3060   echo "$ac_t""no" 1>&6
3061 fi
3062                if test "$GENCAT" != "no"; then
3063                  # Extract the first word of "gmsgfmt", so it can be a program name with args.
3064 set dummy gmsgfmt; ac_word=$2
3065 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3066 echo "configure:3067: checking for $ac_word" >&5
3067 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3068   echo $ac_n "(cached) $ac_c" 1>&6
3069 else
3070   case "$GMSGFMT" in
3071   /*)
3072   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3073   ;;
3074   ?:/*)                  
3075   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3076   ;;
3077   *)
3078   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3079   ac_dummy="$PATH"
3080   for ac_dir in $ac_dummy; do 
3081     test -z "$ac_dir" && ac_dir=.
3082     if test -f $ac_dir/$ac_word; then
3083       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3084       break
3085     fi
3086   done
3087   IFS="$ac_save_ifs"
3088   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
3089   ;;
3090 esac
3091 fi
3092 GMSGFMT="$ac_cv_path_GMSGFMT"
3093 if test -n "$GMSGFMT"; then
3094   echo "$ac_t""$GMSGFMT" 1>&6
3095 else
3096   echo "$ac_t""no" 1>&6
3097 fi
3098
3099                  if test "$GMSGFMT" = "no"; then
3100                    # Extract the first word of "msgfmt", so it can be a program name with args.
3101 set dummy msgfmt; ac_word=$2
3102 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3103 echo "configure:3104: checking for $ac_word" >&5
3104 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3105   echo $ac_n "(cached) $ac_c" 1>&6
3106 else
3107   case "$GMSGFMT" in
3108   /*)
3109   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3110   ;;
3111   *)
3112   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3113   for ac_dir in $PATH; do
3114     test -z "$ac_dir" && ac_dir=.
3115     if test -f $ac_dir/$ac_word; then
3116       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3117         ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3118         break
3119       fi
3120     fi
3121   done
3122   IFS="$ac_save_ifs"
3123   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
3124   ;;
3125 esac
3126 fi
3127 GMSGFMT="$ac_cv_path_GMSGFMT"
3128 if test -n "$GMSGFMT"; then
3129   echo "$ac_t""$GMSGFMT" 1>&6
3130 else
3131   echo "$ac_t""no" 1>&6
3132 fi
3133
3134                  fi
3135                  # Extract the first word of "xgettext", so it can be a program name with args.
3136 set dummy xgettext; ac_word=$2
3137 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3138 echo "configure:3139: checking for $ac_word" >&5
3139 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3140   echo $ac_n "(cached) $ac_c" 1>&6
3141 else
3142   case "$XGETTEXT" in
3143   /*)
3144   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3145   ;;
3146   *)
3147   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3148   for ac_dir in $PATH; do
3149     test -z "$ac_dir" && ac_dir=.
3150     if test -f $ac_dir/$ac_word; then
3151       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3152         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3153         break
3154       fi
3155     fi
3156   done
3157   IFS="$ac_save_ifs"
3158   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3159   ;;
3160 esac
3161 fi
3162 XGETTEXT="$ac_cv_path_XGETTEXT"
3163 if test -n "$XGETTEXT"; then
3164   echo "$ac_t""$XGETTEXT" 1>&6
3165 else
3166   echo "$ac_t""no" 1>&6
3167 fi
3168
3169                  USE_INCLUDED_LIBINTL=yes
3170                  CATOBJEXT=.cat
3171                  INSTOBJEXT=.cat
3172                  DATADIRNAME=lib
3173                  INTLDEPS='$(top_builddir)/intl/libintl.a'
3174                  INTLLIBS=$INTLDEPS
3175                  LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3176                  nls_cv_header_intl=intl/libintl.h
3177                  nls_cv_header_libgt=intl/libgettext.h
3178                fi
3179 else
3180   echo "$ac_t""no" 1>&6
3181 fi
3182
3183           fi
3184         fi
3185
3186         if test "$CATOBJEXT" = "NONE"; then
3187                           nls_cv_use_gnu_gettext=yes
3188         fi
3189       fi
3190
3191       if test "$nls_cv_use_gnu_gettext" = "yes"; then
3192                 INTLOBJS="\$(GETTOBJS)"
3193         # Extract the first word of "msgfmt", so it can be a program name with args.
3194 set dummy msgfmt; ac_word=$2
3195 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3196 echo "configure:3197: checking for $ac_word" >&5
3197 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3198   echo $ac_n "(cached) $ac_c" 1>&6
3199 else
3200   case "$MSGFMT" in
3201   /*)
3202   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3203   ;;
3204   *)
3205   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3206   for ac_dir in $PATH; do
3207     test -z "$ac_dir" && ac_dir=.
3208     if test -f $ac_dir/$ac_word; then
3209       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
3210         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3211         break
3212       fi
3213     fi
3214   done
3215   IFS="$ac_save_ifs"
3216   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
3217   ;;
3218 esac
3219 fi
3220 MSGFMT="$ac_cv_path_MSGFMT"
3221 if test -n "$MSGFMT"; then
3222   echo "$ac_t""$MSGFMT" 1>&6
3223 else
3224   echo "$ac_t""no" 1>&6
3225 fi
3226
3227         # Extract the first word of "gmsgfmt", so it can be a program name with args.
3228 set dummy gmsgfmt; ac_word=$2
3229 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3230 echo "configure:3231: checking for $ac_word" >&5
3231 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3232   echo $ac_n "(cached) $ac_c" 1>&6
3233 else
3234   case "$GMSGFMT" in
3235   /*)
3236   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3237   ;;
3238   ?:/*)                  
3239   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3240   ;;
3241   *)
3242   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3243   ac_dummy="$PATH"
3244   for ac_dir in $ac_dummy; do 
3245     test -z "$ac_dir" && ac_dir=.
3246     if test -f $ac_dir/$ac_word; then
3247       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3248       break
3249     fi
3250   done
3251   IFS="$ac_save_ifs"
3252   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3253   ;;
3254 esac
3255 fi
3256 GMSGFMT="$ac_cv_path_GMSGFMT"
3257 if test -n "$GMSGFMT"; then
3258   echo "$ac_t""$GMSGFMT" 1>&6
3259 else
3260   echo "$ac_t""no" 1>&6
3261 fi
3262
3263         # Extract the first word of "xgettext", so it can be a program name with args.
3264 set dummy xgettext; ac_word=$2
3265 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3266 echo "configure:3267: checking for $ac_word" >&5
3267 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3268   echo $ac_n "(cached) $ac_c" 1>&6
3269 else
3270   case "$XGETTEXT" in
3271   /*)
3272   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3273   ;;
3274   *)
3275   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3276   for ac_dir in $PATH; do
3277     test -z "$ac_dir" && ac_dir=.
3278     if test -f $ac_dir/$ac_word; then
3279       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3280         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3281         break
3282       fi
3283     fi
3284   done
3285   IFS="$ac_save_ifs"
3286   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3287   ;;
3288 esac
3289 fi
3290 XGETTEXT="$ac_cv_path_XGETTEXT"
3291 if test -n "$XGETTEXT"; then
3292   echo "$ac_t""$XGETTEXT" 1>&6
3293 else
3294   echo "$ac_t""no" 1>&6
3295 fi
3296
3297         
3298         USE_INCLUDED_LIBINTL=yes
3299         CATOBJEXT=.gmo
3300         INSTOBJEXT=.mo
3301         DATADIRNAME=share
3302         INTLDEPS='$(top_builddir)/intl/libintl.a'
3303         INTLLIBS=$INTLDEPS
3304         LIBS=`echo $LIBS | sed -e 's/-lintl//'`
3305         nls_cv_header_intl=intl/libintl.h
3306         nls_cv_header_libgt=intl/libgettext.h
3307       fi
3308
3309             if test "$XGETTEXT" != ":"; then
3310                         if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
3311           : ;
3312         else
3313           echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
3314           XGETTEXT=":"
3315         fi
3316       fi
3317
3318       # We need to process the po/ directory.
3319       POSUB=po
3320     else
3321       DATADIRNAME=share
3322       nls_cv_header_intl=intl/libintl.h
3323       nls_cv_header_libgt=intl/libgettext.h
3324     fi
3325     
3326     
3327
3328
3329     # If this is used in GNU gettext we have to set USE_NLS to `yes'
3330     # because some of the sources are only built for this goal.
3331     if test "$PACKAGE" = gettext; then
3332       USE_NLS=yes
3333       USE_INCLUDED_LIBINTL=yes
3334     fi
3335
3336                 for lang in $ALL_LINGUAS; do
3337       GMOFILES="$GMOFILES $lang.gmo"
3338       POFILES="$POFILES $lang.po"
3339     done
3340
3341         
3342     
3343     
3344     
3345     
3346     
3347     
3348     
3349     
3350     
3351     
3352   
3353
3354    if test "x$CATOBJEXT" != "x"; then
3355      if test "x$ALL_LINGUAS" = "x"; then
3356        LINGUAS=
3357      else
3358        echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3359 echo "configure:3360: checking for catalogs to be installed" >&5
3360        NEW_LINGUAS=
3361        for lang in ${LINGUAS=$ALL_LINGUAS}; do
3362          case "$ALL_LINGUAS" in
3363           *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
3364          esac
3365        done
3366        LINGUAS=$NEW_LINGUAS
3367        echo "$ac_t""$LINGUAS" 1>&6
3368      fi
3369
3370           if test -n "$LINGUAS"; then
3371        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3372      fi
3373    fi
3374
3375             if test $ac_cv_header_locale_h = yes; then
3376      INCLUDE_LOCALE_H="#include <locale.h>"
3377    else
3378      INCLUDE_LOCALE_H="\
3379 /* The system does not provide the header <locale.h>.  Take care yourself.  */"
3380    fi
3381    
3382
3383             test -d intl || mkdir intl
3384    if test "$CATOBJEXT" = ".cat"; then
3385      ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
3386 echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
3387 echo "configure:3388: checking for linux/version.h" >&5
3388 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3389   echo $ac_n "(cached) $ac_c" 1>&6
3390 else
3391   cat > conftest.$ac_ext <<EOF
3392 #line 3393 "configure"
3393 #include "confdefs.h"
3394 #include <linux/version.h>
3395 EOF
3396 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3397 { (eval echo configure:3398: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3398 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3399 if test -z "$ac_err"; then
3400   rm -rf conftest*
3401   eval "ac_cv_header_$ac_safe=yes"
3402 else
3403   echo "$ac_err" >&5
3404   echo "configure: failed program was:" >&5
3405   cat conftest.$ac_ext >&5
3406   rm -rf conftest*
3407   eval "ac_cv_header_$ac_safe=no"
3408 fi
3409 rm -f conftest*
3410 fi
3411 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3412   echo "$ac_t""yes" 1>&6
3413   msgformat=linux
3414 else
3415   echo "$ac_t""no" 1>&6
3416 msgformat=xopen
3417 fi
3418
3419
3420                sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
3421    fi
3422       sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
3423      $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
3424
3425             if test "$PACKAGE" = "gettext"; then
3426      GT_NO="#NO#"
3427      GT_YES=
3428    else
3429      GT_NO=
3430      GT_YES="#YES#"
3431    fi
3432    
3433    
3434
3435             MKINSTALLDIRS=
3436    if test -n "$ac_aux_dir"; then
3437      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3438    fi
3439    if test -z "$MKINSTALLDIRS"; then
3440      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3441    fi
3442    
3443
3444       l=
3445    
3446
3447          test -d po || mkdir po
3448    if test "x$srcdir" != "x."; then
3449      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
3450        posrcprefix="$srcdir/"
3451      else
3452        posrcprefix="../$srcdir/"
3453      fi
3454    else
3455      posrcprefix="../"
3456    fi
3457    rm -f po/POTFILES
3458    sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
3459         < $srcdir/po/POTFILES.in > po/POTFILES
3460   
3461
3462 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
3463 echo "configure:3464: checking whether ${MAKE-make} sets \${MAKE}" >&5
3464 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
3465 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
3466   echo $ac_n "(cached) $ac_c" 1>&6
3467 else
3468   cat > conftestmake <<\EOF
3469 all:
3470         @echo 'ac_maketemp="${MAKE}"'
3471 EOF
3472 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3473 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
3474 if test -n "$ac_maketemp"; then
3475   eval ac_cv_prog_make_${ac_make}_set=yes
3476 else
3477   eval ac_cv_prog_make_${ac_make}_set=no
3478 fi
3479 rm -f conftestmake
3480 fi
3481 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3482   echo "$ac_t""yes" 1>&6
3483   SET_MAKE=
3484 else
3485   echo "$ac_t""no" 1>&6
3486   SET_MAKE="MAKE=${MAKE-make}"
3487 fi
3488
3489 # Extract the first word of "ln", so it can be a program name with args.
3490 set dummy ln; ac_word=$2
3491 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3492 echo "configure:3493: checking for $ac_word" >&5
3493 if eval "test \"`echo '$''{'ac_cv_path_LN'+set}'`\" = set"; then
3494   echo $ac_n "(cached) $ac_c" 1>&6
3495 else
3496   case "$LN" in
3497   /*)
3498   ac_cv_path_LN="$LN" # Let the user override the test with a path.
3499   ;;
3500   ?:/*)                  
3501   ac_cv_path_LN="$LN" # Let the user override the test with a dos path.
3502   ;;
3503   *)
3504   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3505   ac_dummy="$PATH"
3506   for ac_dir in $ac_dummy; do 
3507     test -z "$ac_dir" && ac_dir=.
3508     if test -f $ac_dir/$ac_word; then
3509       ac_cv_path_LN="$ac_dir/$ac_word"
3510       break
3511     fi
3512   done
3513   IFS="$ac_save_ifs"
3514   test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
3515   ;;
3516 esac
3517 fi
3518 LN="$ac_cv_path_LN"
3519 if test -n "$LN"; then
3520   echo "$ac_t""$LN" 1>&6
3521 else
3522   echo "$ac_t""no" 1>&6
3523 fi
3524
3525 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3526 echo "configure:3527: checking whether ln -s works" >&5
3527 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
3528   echo $ac_n "(cached) $ac_c" 1>&6
3529 else
3530   rm -f conftestdata
3531 if ln -s X conftestdata 2>/dev/null
3532 then
3533   rm -f conftestdata
3534   ac_cv_prog_LN_S="ln -s"
3535 else
3536   ac_cv_prog_LN_S=ln
3537 fi
3538 fi
3539 LN_S="$ac_cv_prog_LN_S"
3540 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3541   echo "$ac_t""yes" 1>&6
3542 else
3543   echo "$ac_t""no" 1>&6
3544 fi
3545
3546 # Extract the first word of "mv", so it can be a program name with args.
3547 set dummy mv; ac_word=$2
3548 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3549 echo "configure:3550: checking for $ac_word" >&5
3550 if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
3551   echo $ac_n "(cached) $ac_c" 1>&6
3552 else
3553   case "$MV" in
3554   /*)
3555   ac_cv_path_MV="$MV" # Let the user override the test with a path.
3556   ;;
3557   ?:/*)                  
3558   ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
3559   ;;
3560   *)
3561   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3562   ac_dummy="$PATH"
3563   for ac_dir in $ac_dummy; do 
3564     test -z "$ac_dir" && ac_dir=.
3565     if test -f $ac_dir/$ac_word; then
3566       ac_cv_path_MV="$ac_dir/$ac_word"
3567       break
3568     fi
3569   done
3570   IFS="$ac_save_ifs"
3571   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3572   ;;
3573 esac
3574 fi
3575 MV="$ac_cv_path_MV"
3576 if test -n "$MV"; then
3577   echo "$ac_t""$MV" 1>&6
3578 else
3579   echo "$ac_t""no" 1>&6
3580 fi
3581
3582 # Extract the first word of "cp", so it can be a program name with args.
3583 set dummy cp; ac_word=$2
3584 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3585 echo "configure:3586: checking for $ac_word" >&5
3586 if eval "test \"`echo '$''{'ac_cv_path_CP'+set}'`\" = set"; then
3587   echo $ac_n "(cached) $ac_c" 1>&6
3588 else
3589   case "$CP" in
3590   /*)
3591   ac_cv_path_CP="$CP" # Let the user override the test with a path.
3592   ;;
3593   ?:/*)                  
3594   ac_cv_path_CP="$CP" # Let the user override the test with a dos path.
3595   ;;
3596   *)
3597   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3598   ac_dummy="$PATH"
3599   for ac_dir in $ac_dummy; do 
3600     test -z "$ac_dir" && ac_dir=.
3601     if test -f $ac_dir/$ac_word; then
3602       ac_cv_path_CP="$ac_dir/$ac_word"
3603       break
3604     fi
3605   done
3606   IFS="$ac_save_ifs"
3607   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3608   ;;
3609 esac
3610 fi
3611 CP="$ac_cv_path_CP"
3612 if test -n "$CP"; then
3613   echo "$ac_t""$CP" 1>&6
3614 else
3615   echo "$ac_t""no" 1>&6
3616 fi
3617
3618 # Extract the first word of "rm", so it can be a program name with args.
3619 set dummy rm; ac_word=$2
3620 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3621 echo "configure:3622: checking for $ac_word" >&5
3622 if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
3623   echo $ac_n "(cached) $ac_c" 1>&6
3624 else
3625   case "$RM" in
3626   /*)
3627   ac_cv_path_RM="$RM" # Let the user override the test with a path.
3628   ;;
3629   ?:/*)                  
3630   ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
3631   ;;
3632   *)
3633   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3634   ac_dummy="$PATH"
3635   for ac_dir in $ac_dummy; do 
3636     test -z "$ac_dir" && ac_dir=.
3637     if test -f $ac_dir/$ac_word; then
3638       ac_cv_path_RM="$ac_dir/$ac_word"
3639       break
3640     fi
3641   done
3642   IFS="$ac_save_ifs"
3643   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3644   ;;
3645 esac
3646 fi
3647 RM="$ac_cv_path_RM"
3648 if test -n "$RM"; then
3649   echo "$ac_t""$RM" 1>&6
3650 else
3651   echo "$ac_t""no" 1>&6
3652 fi
3653
3654 # Extract the first word of "chmod", so it can be a program name with args.
3655 set dummy chmod; ac_word=$2
3656 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3657 echo "configure:3658: checking for $ac_word" >&5
3658 if eval "test \"`echo '$''{'ac_cv_path_CHMOD'+set}'`\" = set"; then
3659   echo $ac_n "(cached) $ac_c" 1>&6
3660 else
3661   case "$CHMOD" in
3662   /*)
3663   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3664   ;;
3665   ?:/*)                  
3666   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a dos path.
3667   ;;
3668   *)
3669   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3670   ac_dummy="$PATH"
3671   for ac_dir in $ac_dummy; do 
3672     test -z "$ac_dir" && ac_dir=.
3673     if test -f $ac_dir/$ac_word; then
3674       ac_cv_path_CHMOD="$ac_dir/$ac_word"
3675       break
3676     fi
3677   done
3678   IFS="$ac_save_ifs"
3679   test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
3680   ;;
3681 esac
3682 fi
3683 CHMOD="$ac_cv_path_CHMOD"
3684 if test -n "$CHMOD"; then
3685   echo "$ac_t""$CHMOD" 1>&6
3686 else
3687   echo "$ac_t""no" 1>&6
3688 fi
3689
3690 # Extract the first word of "awk", so it can be a program name with args.
3691 set dummy awk; ac_word=$2
3692 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3693 echo "configure:3694: checking for $ac_word" >&5
3694 if eval "test \"`echo '$''{'ac_cv_path_AWK'+set}'`\" = set"; then
3695   echo $ac_n "(cached) $ac_c" 1>&6
3696 else
3697   case "$AWK" in
3698   /*)
3699   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3700   ;;
3701   ?:/*)                  
3702   ac_cv_path_AWK="$AWK" # Let the user override the test with a dos path.
3703   ;;
3704   *)
3705   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3706   ac_dummy="$PATH"
3707   for ac_dir in $ac_dummy; do 
3708     test -z "$ac_dir" && ac_dir=.
3709     if test -f $ac_dir/$ac_word; then
3710       ac_cv_path_AWK="$ac_dir/$ac_word"
3711       break
3712     fi
3713   done
3714   IFS="$ac_save_ifs"
3715   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3716   ;;
3717 esac
3718 fi
3719 AWK="$ac_cv_path_AWK"
3720 if test -n "$AWK"; then
3721   echo "$ac_t""$AWK" 1>&6
3722 else
3723   echo "$ac_t""no" 1>&6
3724 fi
3725
3726 # Extract the first word of "sed", so it can be a program name with args.
3727 set dummy sed; ac_word=$2
3728 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3729 echo "configure:3730: checking for $ac_word" >&5
3730 if eval "test \"`echo '$''{'ac_cv_path_SED'+set}'`\" = set"; then
3731   echo $ac_n "(cached) $ac_c" 1>&6
3732 else
3733   case "$SED" in
3734   /*)
3735   ac_cv_path_SED="$SED" # Let the user override the test with a path.
3736   ;;
3737   ?:/*)                  
3738   ac_cv_path_SED="$SED" # Let the user override the test with a dos path.
3739   ;;
3740   *)
3741   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3742   ac_dummy="$PATH"
3743   for ac_dir in $ac_dummy; do 
3744     test -z "$ac_dir" && ac_dir=.
3745     if test -f $ac_dir/$ac_word; then
3746       ac_cv_path_SED="$ac_dir/$ac_word"
3747       break
3748     fi
3749   done
3750   IFS="$ac_save_ifs"
3751   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3752   ;;
3753 esac
3754 fi
3755 SED="$ac_cv_path_SED"
3756 if test -n "$SED"; then
3757   echo "$ac_t""$SED" 1>&6
3758 else
3759   echo "$ac_t""no" 1>&6
3760 fi
3761
3762 # Extract the first word of "perl", so it can be a program name with args.
3763 set dummy perl; ac_word=$2
3764 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3765 echo "configure:3766: checking for $ac_word" >&5
3766 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
3767   echo $ac_n "(cached) $ac_c" 1>&6
3768 else
3769   case "$PERL" in
3770   /*)
3771   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
3772   ;;
3773   ?:/*)                  
3774   ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
3775   ;;
3776   *)
3777   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3778   ac_dummy="$PATH"
3779   for ac_dir in $ac_dummy; do 
3780     test -z "$ac_dir" && ac_dir=.
3781     if test -f $ac_dir/$ac_word; then
3782       ac_cv_path_PERL="$ac_dir/$ac_word"
3783       break
3784     fi
3785   done
3786   IFS="$ac_save_ifs"
3787   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
3788   ;;
3789 esac
3790 fi
3791 PERL="$ac_cv_path_PERL"
3792 if test -n "$PERL"; then
3793   echo "$ac_t""$PERL" 1>&6
3794 else
3795   echo "$ac_t""no" 1>&6
3796 fi
3797
3798 # Extract the first word of "ldconfig", so it can be a program name with args.
3799 set dummy ldconfig; ac_word=$2
3800 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3801 echo "configure:3802: checking for $ac_word" >&5
3802 if eval "test \"`echo '$''{'ac_cv_path_LDCONFIG'+set}'`\" = set"; then
3803   echo $ac_n "(cached) $ac_c" 1>&6
3804 else
3805   case "$LDCONFIG" in
3806   /*)
3807   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
3808   ;;
3809   ?:/*)                  
3810   ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a dos path.
3811   ;;
3812   *)
3813   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3814   ac_dummy="$PATH"
3815   for ac_dir in $ac_dummy; do 
3816     test -z "$ac_dir" && ac_dir=.
3817     if test -f $ac_dir/$ac_word; then
3818       ac_cv_path_LDCONFIG="$ac_dir/$ac_word"
3819       break
3820     fi
3821   done
3822   IFS="$ac_save_ifs"
3823   test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
3824   ;;
3825 esac
3826 fi
3827 LDCONFIG="$ac_cv_path_LDCONFIG"
3828 if test -n "$LDCONFIG"; then
3829   echo "$ac_t""$LDCONFIG" 1>&6
3830 else
3831   echo "$ac_t""no" 1>&6
3832 fi
3833
3834 echo $ac_n "checking build system type""... $ac_c" 1>&6
3835 echo "configure:3836: checking build system type" >&5
3836
3837 build_alias=$build
3838 case "$build_alias" in
3839 NONE)
3840   case $nonopt in
3841   NONE) build_alias=$host_alias ;;
3842   *) build_alias=$nonopt ;;
3843   esac ;;
3844 esac
3845
3846 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
3847 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3848 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3849 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3850 echo "$ac_t""$build" 1>&6
3851
3852 if test $host != $build; then
3853   ac_tool_prefix=${host_alias}-
3854 else
3855   ac_tool_prefix=
3856 fi
3857
3858 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3859 set dummy ${ac_tool_prefix}ar; ac_word=$2
3860 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3861 echo "configure:3862: checking for $ac_word" >&5
3862 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3863   echo $ac_n "(cached) $ac_c" 1>&6
3864 else
3865   if test -n "$AR"; then
3866   ac_cv_prog_AR="$AR" # Let the user override the test.
3867 else
3868   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3869   ac_dummy="$PATH"
3870   for ac_dir in $ac_dummy; do
3871     test -z "$ac_dir" && ac_dir=.
3872     if test -f $ac_dir/$ac_word; then
3873       ac_cv_prog_AR="${ac_tool_prefix}ar"
3874       break
3875     fi
3876   done
3877   IFS="$ac_save_ifs"
3878 fi
3879 fi
3880 AR="$ac_cv_prog_AR"
3881 if test -n "$AR"; then
3882   echo "$ac_t""$AR" 1>&6
3883 else
3884   echo "$ac_t""no" 1>&6
3885 fi
3886
3887
3888 if test -z "$ac_cv_prog_AR"; then
3889 if test -n "$ac_tool_prefix"; then
3890   # Extract the first word of "ar", so it can be a program name with args.
3891 set dummy ar; ac_word=$2
3892 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3893 echo "configure:3894: checking for $ac_word" >&5
3894 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
3895   echo $ac_n "(cached) $ac_c" 1>&6
3896 else
3897   if test -n "$AR"; then
3898   ac_cv_prog_AR="$AR" # Let the user override the test.
3899 else
3900   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3901   ac_dummy="$PATH"
3902   for ac_dir in $ac_dummy; do
3903     test -z "$ac_dir" && ac_dir=.
3904     if test -f $ac_dir/$ac_word; then
3905       ac_cv_prog_AR="ar"
3906       break
3907     fi
3908   done
3909   IFS="$ac_save_ifs"
3910   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
3911 fi
3912 fi
3913 AR="$ac_cv_prog_AR"
3914 if test -n "$AR"; then
3915   echo "$ac_t""$AR" 1>&6
3916 else
3917   echo "$ac_t""no" 1>&6
3918 fi
3919
3920 else
3921   AR="ar"
3922 fi
3923 fi
3924
3925 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3926 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3927 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3928 echo "configure:3929: checking for $ac_word" >&5
3929 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3930   echo $ac_n "(cached) $ac_c" 1>&6
3931 else
3932   if test -n "$RANLIB"; then
3933   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3934 else
3935   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3936   ac_dummy="$PATH"
3937   for ac_dir in $ac_dummy; do
3938     test -z "$ac_dir" && ac_dir=.
3939     if test -f $ac_dir/$ac_word; then
3940       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3941       break
3942     fi
3943   done
3944   IFS="$ac_save_ifs"
3945 fi
3946 fi
3947 RANLIB="$ac_cv_prog_RANLIB"
3948 if test -n "$RANLIB"; then
3949   echo "$ac_t""$RANLIB" 1>&6
3950 else
3951   echo "$ac_t""no" 1>&6
3952 fi
3953
3954
3955 if test -z "$ac_cv_prog_RANLIB"; then
3956 if test -n "$ac_tool_prefix"; then
3957   # Extract the first word of "ranlib", so it can be a program name with args.
3958 set dummy ranlib; ac_word=$2
3959 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3960 echo "configure:3961: checking for $ac_word" >&5
3961 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
3962   echo $ac_n "(cached) $ac_c" 1>&6
3963 else
3964   if test -n "$RANLIB"; then
3965   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3966 else
3967   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3968   ac_dummy="$PATH"
3969   for ac_dir in $ac_dummy; do
3970     test -z "$ac_dir" && ac_dir=.
3971     if test -f $ac_dir/$ac_word; then
3972       ac_cv_prog_RANLIB="ranlib"
3973       break
3974     fi
3975   done
3976   IFS="$ac_save_ifs"
3977   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
3978 fi
3979 fi
3980 RANLIB="$ac_cv_prog_RANLIB"
3981 if test -n "$RANLIB"; then
3982   echo "$ac_t""$RANLIB" 1>&6
3983 else
3984   echo "$ac_t""no" 1>&6
3985 fi
3986
3987 else
3988   RANLIB=":"
3989 fi
3990 fi
3991
3992 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3993 set dummy ${ac_tool_prefix}strip; ac_word=$2
3994 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3995 echo "configure:3996: checking for $ac_word" >&5
3996 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
3997   echo $ac_n "(cached) $ac_c" 1>&6
3998 else
3999   if test -n "$STRIP"; then
4000   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4001 else
4002   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4003   ac_dummy="$PATH"
4004   for ac_dir in $ac_dummy; do
4005     test -z "$ac_dir" && ac_dir=.
4006     if test -f $ac_dir/$ac_word; then
4007       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4008       break
4009     fi
4010   done
4011   IFS="$ac_save_ifs"
4012 fi
4013 fi
4014 STRIP="$ac_cv_prog_STRIP"
4015 if test -n "$STRIP"; then
4016   echo "$ac_t""$STRIP" 1>&6
4017 else
4018   echo "$ac_t""no" 1>&6
4019 fi
4020
4021
4022 if test -z "$ac_cv_prog_STRIP"; then
4023 if test -n "$ac_tool_prefix"; then
4024   # Extract the first word of "strip", so it can be a program name with args.
4025 set dummy strip; ac_word=$2
4026 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4027 echo "configure:4028: checking for $ac_word" >&5
4028 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
4029   echo $ac_n "(cached) $ac_c" 1>&6
4030 else
4031   if test -n "$STRIP"; then
4032   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4033 else
4034   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4035   ac_dummy="$PATH"
4036   for ac_dir in $ac_dummy; do
4037     test -z "$ac_dir" && ac_dir=.
4038     if test -f $ac_dir/$ac_word; then
4039       ac_cv_prog_STRIP="strip"
4040       break
4041     fi
4042   done
4043   IFS="$ac_save_ifs"
4044   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4045 fi
4046 fi
4047 STRIP="$ac_cv_prog_STRIP"
4048 if test -n "$STRIP"; then
4049   echo "$ac_t""$STRIP" 1>&6
4050 else
4051   echo "$ac_t""no" 1>&6
4052 fi
4053
4054 else
4055   STRIP=":"
4056 fi
4057 fi
4058
4059 # Find a good install program.  We prefer a C program (faster),
4060 # so one script is as good as another.  But avoid the broken or
4061 # incompatible versions:
4062 # SysV /etc/install, /usr/sbin/install
4063 # SunOS /usr/etc/install
4064 # IRIX /sbin/install
4065 # AIX /bin/install
4066 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4067 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4068 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4069 # ./install, which can be erroneously created by make from ./install.sh.
4070 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
4071 echo "configure:4072: checking for a BSD compatible install" >&5
4072 if test -z "$INSTALL"; then
4073 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
4074   echo $ac_n "(cached) $ac_c" 1>&6
4075 else
4076     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
4077   for ac_dir in $PATH; do
4078     # Account for people who put trailing slashes in PATH elements.
4079     case "$ac_dir/" in
4080     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
4081     *)
4082       # OSF1 and SCO ODT 3.0 have their own names for install.
4083       # Don't use installbsd from OSF since it installs stuff as root
4084       # by default.
4085       for ac_prog in ginstall scoinst install; do
4086         if test -f $ac_dir/$ac_prog; then
4087           if test $ac_prog = install &&
4088             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
4089             # AIX install.  It has an incompatible calling convention.
4090             :
4091           else
4092             ac_cv_path_install="$ac_dir/$ac_prog -c"
4093             break 2
4094           fi
4095         fi
4096       done
4097       ;;
4098     esac
4099   done
4100   IFS="$ac_save_IFS"
4101
4102 fi
4103   if test "${ac_cv_path_install+set}" = set; then
4104     INSTALL="$ac_cv_path_install"
4105   else
4106     # As a last resort, use the slow shell script.  We don't cache a
4107     # path for INSTALL within a source directory, because that will
4108     # break other packages using the cache if that directory is
4109     # removed, or if the path is relative.
4110     INSTALL="$ac_install_sh"
4111   fi
4112 fi
4113 echo "$ac_t""$INSTALL" 1>&6
4114
4115 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4116 # It thinks the first close brace ends the variable substitution.
4117 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4118
4119 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
4120
4121 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4122
4123 # See if we need a separate native compiler.
4124 if test $cross_compiling = no; then
4125   BUILD_CC="$CC"
4126   
4127 else
4128   for ac_prog in gcc cc
4129 do
4130 # Extract the first word of "$ac_prog", so it can be a program name with args.
4131 set dummy $ac_prog; ac_word=$2
4132 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4133 echo "configure:4134: checking for $ac_word" >&5
4134 if eval "test \"`echo '$''{'ac_cv_prog_BUILD_CC'+set}'`\" = set"; then
4135   echo $ac_n "(cached) $ac_c" 1>&6
4136 else
4137   if test -n "$BUILD_CC"; then
4138   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4139 else
4140   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4141   ac_dummy="$PATH"
4142   for ac_dir in $ac_dummy; do
4143     test -z "$ac_dir" && ac_dir=.
4144     if test -f $ac_dir/$ac_word; then
4145       ac_cv_prog_BUILD_CC="$ac_prog"
4146       break
4147     fi
4148   done
4149   IFS="$ac_save_ifs"
4150 fi
4151 fi
4152 BUILD_CC="$ac_cv_prog_BUILD_CC"
4153 if test -n "$BUILD_CC"; then
4154   echo "$ac_t""$BUILD_CC" 1>&6
4155 else
4156   echo "$ac_t""no" 1>&6
4157 fi
4158
4159 test -n "$BUILD_CC" && break
4160 done
4161
4162 fi
4163 for ac_hdr in stdlib.h unistd.h stdarg.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disklabel.h sys/ioctl.h sys/mkdev.h sys/mount.h sys/sockio.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h net/if.h netinet/in.h
4164 do
4165 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4166 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4167 echo "configure:4168: checking for $ac_hdr" >&5
4168 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4169   echo $ac_n "(cached) $ac_c" 1>&6
4170 else
4171   cat > conftest.$ac_ext <<EOF
4172 #line 4173 "configure"
4173 #include "confdefs.h"
4174 #include <$ac_hdr>
4175 EOF
4176 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4177 { (eval echo configure:4178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4178 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4179 if test -z "$ac_err"; then
4180   rm -rf conftest*
4181   eval "ac_cv_header_$ac_safe=yes"
4182 else
4183   echo "$ac_err" >&5
4184   echo "configure: failed program was:" >&5
4185   cat conftest.$ac_ext >&5
4186   rm -rf conftest*
4187   eval "ac_cv_header_$ac_safe=no"
4188 fi
4189 rm -f conftest*
4190 fi
4191 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4192   echo "$ac_t""yes" 1>&6
4193     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4194   cat >> confdefs.h <<EOF
4195 #define $ac_tr_hdr 1
4196 EOF
4197  
4198 else
4199   echo "$ac_t""no" 1>&6
4200 fi
4201 done
4202
4203 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
4204 echo "configure:4205: checking for vprintf" >&5
4205 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
4206   echo $ac_n "(cached) $ac_c" 1>&6
4207 else
4208   cat > conftest.$ac_ext <<EOF
4209 #line 4210 "configure"
4210 #include "confdefs.h"
4211 /* System header to define __stub macros and hopefully few prototypes,
4212     which can conflict with char vprintf(); below.  */
4213 #include <assert.h>
4214 /* Override any gcc2 internal prototype to avoid an error.  */
4215 /* We use char because int might match the return type of a gcc2
4216     builtin and then its argument prototype would still apply.  */
4217 char vprintf();
4218
4219 int main() {
4220
4221 /* The GNU C library defines this for functions which it implements
4222     to always fail with ENOSYS.  Some functions are actually named
4223     something starting with __ and the normal name is an alias.  */
4224 #if defined (__stub_vprintf) || defined (__stub___vprintf)
4225 choke me
4226 #else
4227 vprintf();
4228 #endif
4229
4230 ; return 0; }
4231 EOF
4232 if { (eval echo configure:4233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4233   rm -rf conftest*
4234   eval "ac_cv_func_vprintf=yes"
4235 else
4236   echo "configure: failed program was:" >&5
4237   cat conftest.$ac_ext >&5
4238   rm -rf conftest*
4239   eval "ac_cv_func_vprintf=no"
4240 fi
4241 rm -f conftest*
4242 fi
4243
4244 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
4245   echo "$ac_t""yes" 1>&6
4246   cat >> confdefs.h <<\EOF
4247 #define HAVE_VPRINTF 1
4248 EOF
4249
4250 else
4251   echo "$ac_t""no" 1>&6
4252 fi
4253
4254 if test "$ac_cv_func_vprintf" != yes; then
4255 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
4256 echo "configure:4257: checking for _doprnt" >&5
4257 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
4258   echo $ac_n "(cached) $ac_c" 1>&6
4259 else
4260   cat > conftest.$ac_ext <<EOF
4261 #line 4262 "configure"
4262 #include "confdefs.h"
4263 /* System header to define __stub macros and hopefully few prototypes,
4264     which can conflict with char _doprnt(); below.  */
4265 #include <assert.h>
4266 /* Override any gcc2 internal prototype to avoid an error.  */
4267 /* We use char because int might match the return type of a gcc2
4268     builtin and then its argument prototype would still apply.  */
4269 char _doprnt();
4270
4271 int main() {
4272
4273 /* The GNU C library defines this for functions which it implements
4274     to always fail with ENOSYS.  Some functions are actually named
4275     something starting with __ and the normal name is an alias.  */
4276 #if defined (__stub__doprnt) || defined (__stub____doprnt)
4277 choke me
4278 #else
4279 _doprnt();
4280 #endif
4281
4282 ; return 0; }
4283 EOF
4284 if { (eval echo configure:4285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4285   rm -rf conftest*
4286   eval "ac_cv_func__doprnt=yes"
4287 else
4288   echo "configure: failed program was:" >&5
4289   cat conftest.$ac_ext >&5
4290   rm -rf conftest*
4291   eval "ac_cv_func__doprnt=no"
4292 fi
4293 rm -f conftest*
4294 fi
4295
4296 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
4297   echo "$ac_t""yes" 1>&6
4298   cat >> confdefs.h <<\EOF
4299 #define HAVE_DOPRNT 1
4300 EOF
4301
4302 else
4303   echo "$ac_t""no" 1>&6
4304 fi
4305
4306 fi
4307
4308 echo $ac_n "checking whether llseek declared in unistd.h""... $ac_c" 1>&6
4309 echo "configure:4310: checking whether llseek declared in unistd.h" >&5
4310 if eval "test \"`echo '$''{'e2fsprogs_cv_have_llseek_prototype'+set}'`\" = set"; then
4311   echo $ac_n "(cached) $ac_c" 1>&6
4312 else
4313   cat > conftest.$ac_ext <<EOF
4314 #line 4315 "configure"
4315 #include "confdefs.h"
4316 #include <unistd.h>
4317 int main() {
4318 extern int llseek(int);
4319 ; return 0; }
4320 EOF
4321 if { (eval echo configure:4322: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4322   rm -rf conftest*
4323   e2fsprogs_cv_have_llseek_prototype=no
4324 else
4325   echo "configure: failed program was:" >&5
4326   cat conftest.$ac_ext >&5
4327   rm -rf conftest*
4328   e2fsprogs_cv_have_llseek_prototype=yes
4329 fi
4330 rm -f conftest*
4331 fi
4332
4333 echo "$ac_t""$e2fsprogs_cv_have_llseek_prototype" 1>&6
4334 if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then
4335    cat >> confdefs.h <<\EOF
4336 #define HAVE_LLSEEK_PROTOTYPE 1
4337 EOF
4338
4339 fi
4340 echo $ac_n "checking whether lseek64 declared in unistd.h""... $ac_c" 1>&6
4341 echo "configure:4342: checking whether lseek64 declared in unistd.h" >&5
4342 if eval "test \"`echo '$''{'e2fsprogs_cv_have_lseek64_prototype'+set}'`\" = set"; then
4343   echo $ac_n "(cached) $ac_c" 1>&6
4344 else
4345   cat > conftest.$ac_ext <<EOF
4346 #line 4347 "configure"
4347 #include "confdefs.h"
4348 #define _LARGEFILE_SOURCE
4349 #define _LARGEFILE64_SOURCE
4350 #include <unistd.h>
4351 int main() {
4352 extern int lseek64(int);
4353 ; return 0; }
4354 EOF
4355 if { (eval echo configure:4356: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4356   rm -rf conftest*
4357   e2fsprogs_cv_have_lseek64_prototype=no
4358 else
4359   echo "configure: failed program was:" >&5
4360   cat conftest.$ac_ext >&5
4361   rm -rf conftest*
4362   e2fsprogs_cv_have_lseek64_prototype=yes
4363 fi
4364 rm -f conftest*
4365 fi
4366
4367 echo "$ac_t""$e2fsprogs_cv_have_lseek64_prototype" 1>&6
4368 if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then
4369    cat >> confdefs.h <<\EOF
4370 #define HAVE_LSEEK64_PROTOTYPE 1
4371 EOF
4372
4373 fi
4374 if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
4375   # if cross-compiling, with no cached values, just assume something common. 
4376   ac_cv_sizeof_short=2
4377   ac_cv_sizeof_int=4
4378   ac_cv_sizeof_long=4
4379   ac_cv_sizeof_long_long=8
4380   echo "configure: warning: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" 1>&2
4381 fi
4382 echo $ac_n "checking size of short""... $ac_c" 1>&6
4383 echo "configure:4384: checking size of short" >&5
4384 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
4385   echo $ac_n "(cached) $ac_c" 1>&6
4386 else
4387   if test "$cross_compiling" = yes; then
4388     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4389 else
4390   cat > conftest.$ac_ext <<EOF
4391 #line 4392 "configure"
4392 #include "confdefs.h"
4393 #include <stdio.h>
4394 #include <sys/types.h>
4395 main()
4396 {
4397   FILE *f=fopen("conftestval", "w");
4398   if (!f) exit(1);
4399   fprintf(f, "%d\n", sizeof(short));
4400   exit(0);
4401 }
4402 EOF
4403 if { (eval echo configure:4404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4404 then
4405   ac_cv_sizeof_short=`cat conftestval`
4406 else
4407   echo "configure: failed program was:" >&5
4408   cat conftest.$ac_ext >&5
4409   rm -fr conftest*
4410   ac_cv_sizeof_short=0
4411 fi
4412 rm -fr conftest*
4413 fi
4414
4415 fi
4416 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
4417 cat >> confdefs.h <<EOF
4418 #define SIZEOF_SHORT $ac_cv_sizeof_short
4419 EOF
4420
4421
4422 echo $ac_n "checking size of int""... $ac_c" 1>&6
4423 echo "configure:4424: checking size of int" >&5
4424 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4425   echo $ac_n "(cached) $ac_c" 1>&6
4426 else
4427   if test "$cross_compiling" = yes; then
4428     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4429 else
4430   cat > conftest.$ac_ext <<EOF
4431 #line 4432 "configure"
4432 #include "confdefs.h"
4433 #include <stdio.h>
4434 #include <sys/types.h>
4435 main()
4436 {
4437   FILE *f=fopen("conftestval", "w");
4438   if (!f) exit(1);
4439   fprintf(f, "%d\n", sizeof(int));
4440   exit(0);
4441 }
4442 EOF
4443 if { (eval echo configure:4444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4444 then
4445   ac_cv_sizeof_int=`cat conftestval`
4446 else
4447   echo "configure: failed program was:" >&5
4448   cat conftest.$ac_ext >&5
4449   rm -fr conftest*
4450   ac_cv_sizeof_int=0
4451 fi
4452 rm -fr conftest*
4453 fi
4454
4455 fi
4456 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4457 cat >> confdefs.h <<EOF
4458 #define SIZEOF_INT $ac_cv_sizeof_int
4459 EOF
4460
4461
4462 echo $ac_n "checking size of long""... $ac_c" 1>&6
4463 echo "configure:4464: checking size of long" >&5
4464 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4465   echo $ac_n "(cached) $ac_c" 1>&6
4466 else
4467   if test "$cross_compiling" = yes; then
4468     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4469 else
4470   cat > conftest.$ac_ext <<EOF
4471 #line 4472 "configure"
4472 #include "confdefs.h"
4473 #include <stdio.h>
4474 #include <sys/types.h>
4475 main()
4476 {
4477   FILE *f=fopen("conftestval", "w");
4478   if (!f) exit(1);
4479   fprintf(f, "%d\n", sizeof(long));
4480   exit(0);
4481 }
4482 EOF
4483 if { (eval echo configure:4484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4484 then
4485   ac_cv_sizeof_long=`cat conftestval`
4486 else
4487   echo "configure: failed program was:" >&5
4488   cat conftest.$ac_ext >&5
4489   rm -fr conftest*
4490   ac_cv_sizeof_long=0
4491 fi
4492 rm -fr conftest*
4493 fi
4494
4495 fi
4496 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4497 cat >> confdefs.h <<EOF
4498 #define SIZEOF_LONG $ac_cv_sizeof_long
4499 EOF
4500
4501
4502 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4503 echo "configure:4504: checking size of long long" >&5
4504 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4505   echo $ac_n "(cached) $ac_c" 1>&6
4506 else
4507   if test "$cross_compiling" = yes; then
4508     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4509 else
4510   cat > conftest.$ac_ext <<EOF
4511 #line 4512 "configure"
4512 #include "confdefs.h"
4513 #include <stdio.h>
4514 #include <sys/types.h>
4515 main()
4516 {
4517   FILE *f=fopen("conftestval", "w");
4518   if (!f) exit(1);
4519   fprintf(f, "%d\n", sizeof(long long));
4520   exit(0);
4521 }
4522 EOF
4523 if { (eval echo configure:4524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4524 then
4525   ac_cv_sizeof_long_long=`cat conftestval`
4526 else
4527   echo "configure: failed program was:" >&5
4528   cat conftest.$ac_ext >&5
4529   rm -fr conftest*
4530   ac_cv_sizeof_long_long=0
4531 fi
4532 rm -fr conftest*
4533 fi
4534
4535 fi
4536 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4537 cat >> confdefs.h <<EOF
4538 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4539 EOF
4540
4541
4542 SIZEOF_SHORT=$ac_cv_sizeof_short
4543 SIZEOF_INT=$ac_cv_sizeof_int
4544 SIZEOF_LONG=$ac_cv_sizeof_long
4545 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
4546
4547
4548
4549
4550 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4551 echo "configure:4552: checking whether byte ordering is bigendian" >&5
4552 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
4553   echo $ac_n "(cached) $ac_c" 1>&6
4554 else
4555   ac_cv_c_bigendian=unknown
4556 # See if sys/param.h defines the BYTE_ORDER macro.
4557 cat > conftest.$ac_ext <<EOF
4558 #line 4559 "configure"
4559 #include "confdefs.h"
4560 #include <sys/types.h>
4561 #include <sys/param.h>
4562 int main() {
4563
4564 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4565  bogus endian macros
4566 #endif
4567 ; return 0; }
4568 EOF
4569 if { (eval echo configure:4570: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4570   rm -rf conftest*
4571   # It does; now see whether it defined to BIG_ENDIAN or not.
4572 cat > conftest.$ac_ext <<EOF
4573 #line 4574 "configure"
4574 #include "confdefs.h"
4575 #include <sys/types.h>
4576 #include <sys/param.h>
4577 int main() {
4578
4579 #if BYTE_ORDER != BIG_ENDIAN
4580  not big endian
4581 #endif
4582 ; return 0; }
4583 EOF
4584 if { (eval echo configure:4585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4585   rm -rf conftest*
4586   ac_cv_c_bigendian=yes
4587 else
4588   echo "configure: failed program was:" >&5
4589   cat conftest.$ac_ext >&5
4590   rm -rf conftest*
4591   ac_cv_c_bigendian=no
4592 fi
4593 rm -f conftest*
4594 else
4595   echo "configure: failed program was:" >&5
4596   cat conftest.$ac_ext >&5
4597 fi
4598 rm -f conftest*
4599 if test $ac_cv_c_bigendian = unknown; then
4600 if test "$cross_compiling" = yes; then
4601     { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4602 else
4603   cat > conftest.$ac_ext <<EOF
4604 #line 4605 "configure"
4605 #include "confdefs.h"
4606 main () {
4607   /* Are we little or big endian?  From Harbison&Steele.  */
4608   union
4609   {
4610     long l;
4611     char c[sizeof (long)];
4612   } u;
4613   u.l = 1;
4614   exit (u.c[sizeof (long) - 1] == 1);
4615 }
4616 EOF
4617 if { (eval echo configure:4618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4618 then
4619   ac_cv_c_bigendian=no
4620 else
4621   echo "configure: failed program was:" >&5
4622   cat conftest.$ac_ext >&5
4623   rm -fr conftest*
4624   ac_cv_c_bigendian=yes
4625 fi
4626 rm -fr conftest*
4627 fi
4628
4629 fi
4630 fi
4631
4632 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4633 if test $ac_cv_c_bigendian = yes; then
4634   cat >> confdefs.h <<\EOF
4635 #define WORDS_BIGENDIAN 1
4636 EOF
4637
4638 fi
4639
4640 echo $ac_n "checking whether struct stat has a st_flags field""... $ac_c" 1>&6
4641 echo "configure:4642: checking whether struct stat has a st_flags field" >&5
4642 if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags'+set}'`\" = set"; then
4643   echo $ac_n "(cached) $ac_c" 1>&6
4644 else
4645   cat > conftest.$ac_ext <<EOF
4646 #line 4647 "configure"
4647 #include "confdefs.h"
4648 #include <sys/stat.h>
4649 int main() {
4650 struct stat stat; stat.st_flags = 0;
4651 ; return 0; }
4652 EOF
4653 if { (eval echo configure:4654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4654   rm -rf conftest*
4655   e2fsprogs_cv_struct_st_flags=yes
4656 else
4657   echo "configure: failed program was:" >&5
4658   cat conftest.$ac_ext >&5
4659   rm -rf conftest*
4660   e2fsprogs_cv_struct_st_flags=no
4661 fi
4662 rm -f conftest*
4663 fi
4664
4665 echo "$ac_t""$e2fsprogs_cv_struct_st_flags" 1>&6
4666 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
4667   echo $ac_n "checking whether st_flags field is useful""... $ac_c" 1>&6
4668 echo "configure:4669: checking whether st_flags field is useful" >&5
4669   if eval "test \"`echo '$''{'e2fsprogs_cv_struct_st_flags_immut'+set}'`\" = set"; then
4670   echo $ac_n "(cached) $ac_c" 1>&6
4671 else
4672   cat > conftest.$ac_ext <<EOF
4673 #line 4674 "configure"
4674 #include "confdefs.h"
4675 #include <sys/stat.h>
4676 int main() {
4677 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
4678 ; return 0; }
4679 EOF
4680 if { (eval echo configure:4681: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4681   rm -rf conftest*
4682   e2fsprogs_cv_struct_st_flags_immut=yes
4683 else
4684   echo "configure: failed program was:" >&5
4685   cat conftest.$ac_ext >&5
4686   rm -rf conftest*
4687   e2fsprogs_cv_struct_st_flags_immut=no
4688 fi
4689 rm -f conftest*
4690 fi
4691
4692   echo "$ac_t""$e2fsprogs_cv_struct_st_flags_immut" 1>&6
4693   if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
4694           cat >> confdefs.h <<\EOF
4695 #define HAVE_STAT_FLAGS 1
4696 EOF
4697
4698   fi
4699 fi
4700 for ac_func in chflags getrusage llseek lseek64 open64 getmntinfo strtoull strcasecmp srandom fchown mallinfo fdatasync strnlen sysconf pathconf
4701 do
4702 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4703 echo "configure:4704: checking for $ac_func" >&5
4704 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4705   echo $ac_n "(cached) $ac_c" 1>&6
4706 else
4707   cat > conftest.$ac_ext <<EOF
4708 #line 4709 "configure"
4709 #include "confdefs.h"
4710 /* System header to define __stub macros and hopefully few prototypes,
4711     which can conflict with char $ac_func(); below.  */
4712 #include <assert.h>
4713 /* Override any gcc2 internal prototype to avoid an error.  */
4714 /* We use char because int might match the return type of a gcc2
4715     builtin and then its argument prototype would still apply.  */
4716 char $ac_func();
4717
4718 int main() {
4719
4720 /* The GNU C library defines this for functions which it implements
4721     to always fail with ENOSYS.  Some functions are actually named
4722     something starting with __ and the normal name is an alias.  */
4723 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4724 choke me
4725 #else
4726 $ac_func();
4727 #endif
4728
4729 ; return 0; }
4730 EOF
4731 if { (eval echo configure:4732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4732   rm -rf conftest*
4733   eval "ac_cv_func_$ac_func=yes"
4734 else
4735   echo "configure: failed program was:" >&5
4736   cat conftest.$ac_ext >&5
4737   rm -rf conftest*
4738   eval "ac_cv_func_$ac_func=no"
4739 fi
4740 rm -f conftest*
4741 fi
4742
4743 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4744   echo "$ac_t""yes" 1>&6
4745     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4746   cat >> confdefs.h <<EOF
4747 #define $ac_tr_func 1
4748 EOF
4749  
4750 else
4751   echo "$ac_t""no" 1>&6
4752 fi
4753 done
4754
4755 SOCKET_LIB=''
4756 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
4757 echo "configure:4758: checking for socket in -lsocket" >&5
4758 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
4759 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4760   echo $ac_n "(cached) $ac_c" 1>&6
4761 else
4762   ac_save_LIBS="$LIBS"
4763 LIBS="-lsocket  $LIBS"
4764 cat > conftest.$ac_ext <<EOF
4765 #line 4766 "configure"
4766 #include "confdefs.h"
4767 /* Override any gcc2 internal prototype to avoid an error.  */
4768 /* We use char because int might match the return type of a gcc2
4769     builtin and then its argument prototype would still apply.  */
4770 char socket();
4771
4772 int main() {
4773 socket()
4774 ; return 0; }
4775 EOF
4776 if { (eval echo configure:4777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4777   rm -rf conftest*
4778   eval "ac_cv_lib_$ac_lib_var=yes"
4779 else
4780   echo "configure: failed program was:" >&5
4781   cat conftest.$ac_ext >&5
4782   rm -rf conftest*
4783   eval "ac_cv_lib_$ac_lib_var=no"
4784 fi
4785 rm -f conftest*
4786 LIBS="$ac_save_LIBS"
4787
4788 fi
4789 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4790   echo "$ac_t""yes" 1>&6
4791   SOCKET_LIB=-lsocket
4792 else
4793   echo "$ac_t""no" 1>&6
4794 fi
4795
4796
4797 echo $ac_n "checking for optreset""... $ac_c" 1>&6
4798 echo "configure:4799: checking for optreset" >&5
4799 if eval "test \"`echo '$''{'ac_cv_have_optreset'+set}'`\" = set"; then
4800   echo $ac_n "(cached) $ac_c" 1>&6
4801 else
4802   cat > conftest.$ac_ext <<EOF
4803 #line 4804 "configure"
4804 #include "confdefs.h"
4805 #include <unistd.h>
4806 EOF
4807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4808   egrep "optreset" >/dev/null 2>&1; then
4809   rm -rf conftest*
4810   ac_cv_have_optreset=yes
4811 else
4812   rm -rf conftest*
4813   ac_cv_have_optreset=no
4814 fi
4815 rm -f conftest*
4816
4817 fi
4818 echo "$ac_t""$ac_cv_have_optreset" 1>&6
4819 if test $ac_cv_have_optreset = yes; then
4820   cat >> confdefs.h <<\EOF
4821 #define HAVE_OPTRESET 1
4822 EOF
4823
4824 fi
4825 case "$host_os" in
4826 linux*)
4827         cat >> confdefs.h <<\EOF
4828 #define HAVE_EXT2_IOCTLS 1
4829 EOF
4830
4831         ;;
4832 esac
4833 LINUX_CMT="#"
4834 case "$host_os" in
4835 linux*)
4836         LINUX_CMT=
4837         ;;
4838 esac
4839
4840 case "$host_os" in
4841 linux* | gnu*)
4842         if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
4843                 root_prefix="";
4844                 echo "On $host_os systems, root_prefix defaults to ''"
4845         fi
4846         ;;
4847 esac
4848 case "$host_os" in
4849 linux* | gnu*)
4850         if test "$prefix" = NONE ; then
4851                 prefix="/usr";
4852                 echo "On $host_os systems, prefix defaults to /usr"
4853                 if test "$mandir" = '${prefix}/man' ; then
4854                         echo "...and mandir defaults to /usr/share/man"
4855                         mandir=/usr/share/man
4856                 fi
4857         fi
4858 ;;
4859 esac
4860 if test "$root_prefix" = NONE ; then
4861         if test "$prefix" = NONE ; then
4862                 root_prefix="$ac_default_prefix"
4863         else
4864                 root_prefix="$prefix"
4865         fi
4866         root_bindir=$bindir
4867         root_sbindir=$sbindir
4868         root_libdir=$libdir
4869         root_sysconfdir=$sysconfdir
4870 else
4871         root_bindir='${root_prefix}/bin'
4872         root_sbindir='${root_prefix}/sbin'
4873         root_libdir='${root_prefix}/lib'
4874         root_sysconfdir='${root_prefix}/etc'
4875 fi
4876
4877
4878
4879
4880
4881 echo $ac_n "checking whether linker accepts -static""... $ac_c" 1>&6
4882 echo "configure:4883: checking whether linker accepts -static" >&5
4883 if eval "test \"`echo '$''{'ac_cv_e2fsprogs_use_static'+set}'`\" = set"; then
4884   echo $ac_n "(cached) $ac_c" 1>&6
4885 else
4886   SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
4887 cat > conftest.$ac_ext <<EOF
4888 #line 4889 "configure"
4889 #include "confdefs.h"
4890 #include <stdio.h>
4891 int main() {
4892 fflush(stdout);
4893 ; return 0; }
4894 EOF
4895 if { (eval echo configure:4896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4896   rm -rf conftest*
4897   ac_cv_e2fsprogs_use_static=yes
4898 else
4899   echo "configure: failed program was:" >&5
4900   cat conftest.$ac_ext >&5
4901   rm -rf conftest*
4902   ac_cv_e2fsprogs_use_static=no
4903 fi
4904 rm -f conftest*
4905 LDFLAGS=$SAVE_LDFLAGS
4906 fi
4907
4908 case "$host_os" in
4909 solaris2.*)
4910         ac_cv_e2fsprogs_use_static=no   
4911 ;;
4912 esac
4913 echo "$ac_t""$ac_cv_e2fsprogs_use_static" 1>&6
4914 LDFLAG_STATIC=
4915 if test $ac_cv_e2fsprogs_use_static = yes; then
4916         LDFLAG_STATIC=-static
4917 fi
4918
4919 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
4920 ET_DIR=`cd ${srcdir}/lib/et; pwd`
4921
4922
4923 if test "$cross_compiling" = yes ; then
4924   DO_TEST_SUITE=
4925 else
4926   DO_TEST_SUITE=check
4927 fi
4928
4929 test -d lib || mkdir lib
4930 test -d include || mkdir include
4931 test -d include/linux || mkdir include/linux
4932 test -d include/asm || mkdir include/asm
4933 rmakefile=
4934 if test -d ${srcdir}/resize ; then
4935    rmakefile=resize/Makefile
4936 fi
4937 trap '' 1 2 15
4938 cat > confcache <<\EOF
4939 # This file is a shell script that caches the results of configure
4940 # tests run on this system so they can be shared between configure
4941 # scripts and configure runs.  It is not useful on other systems.
4942 # If it contains results you don't want to keep, you may remove or edit it.
4943 #
4944 # By default, configure uses ./config.cache as the cache file,
4945 # creating it if it does not exist already.  You can give configure
4946 # the --cache-file=FILE option to use a different cache file; that is
4947 # what configure does when it calls configure scripts in
4948 # subdirectories, so they share the cache.
4949 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4950 # config.status only pays attention to the cache file if you give it the
4951 # --recheck option to rerun configure.
4952 #
4953 EOF
4954 # The following way of writing the cache mishandles newlines in values,
4955 # but we know of no workaround that is simple, portable, and efficient.
4956 # So, don't put newlines in cache variables' values.
4957 # Ultrix sh set writes to stderr and can't be redirected directly,
4958 # and sets the high bit in the cache file unless we assign to the vars.
4959 (set) 2>&1 |
4960   case `(ac_space=' '; set | grep ac_space) 2>&1` in
4961   *ac_space=\ *)
4962     # `set' does not quote correctly, so add quotes (double-quote substitution
4963     # turns \\\\ into \\, and sed turns \\ into \).
4964     sed -n \
4965       -e "s/'/'\\\\''/g" \
4966       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4967     ;;
4968   *)
4969     # `set' quotes correctly as required by POSIX, so do not add quotes.
4970     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4971     ;;
4972   esac >> confcache
4973 if cmp -s $cache_file confcache; then
4974   :
4975 else
4976   if test -w $cache_file; then
4977     echo "updating cache $cache_file"
4978     cat confcache > $cache_file
4979   else
4980     echo "not updating unwritable cache $cache_file"
4981   fi
4982 fi
4983 rm -f confcache
4984
4985 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4986
4987 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4988 # Let make expand exec_prefix.
4989 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4990
4991 # Any assignment to VPATH causes Sun make to only execute
4992 # the first set of double-colon rules, so remove it if not needed.
4993 # If there is a colon in the path, we need to keep it.
4994 if test "x$srcdir" = x.; then
4995   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
4996 fi
4997
4998 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4999
5000 # Transform confdefs.h into DEFS.
5001 # Protect against shell expansion while executing Makefile rules.
5002 # Protect against Makefile macro expansion.
5003 cat > conftest.defs <<\EOF
5004 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
5005 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
5006 s%\[%\\&%g
5007 s%\]%\\&%g
5008 s%\$%$$%g
5009 EOF
5010 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
5011 rm -f conftest.defs
5012
5013
5014 # Without the "./", some shells look in PATH for config.status.
5015 : ${CONFIG_STATUS=./config.status}
5016
5017 echo creating $CONFIG_STATUS
5018 rm -f $CONFIG_STATUS
5019 cat > $CONFIG_STATUS <<EOF
5020 #! /bin/sh
5021 # Generated automatically by configure.
5022 # Run this file to recreate the current configuration.
5023 # This directory was configured as follows,
5024 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5025 #
5026 # $0 $ac_configure_args
5027 #
5028 # Compiler output produced by configure, useful for debugging
5029 # configure, is in ./config.log if it exists.
5030
5031 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5032 for ac_option
5033 do
5034   case "\$ac_option" in
5035   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5036     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5037     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5038   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5039     echo "$CONFIG_STATUS generated by autoconf version 2.13"
5040     exit 0 ;;
5041   -help | --help | --hel | --he | --h)
5042     echo "\$ac_cs_usage"; exit 0 ;;
5043   *) echo "\$ac_cs_usage"; exit 1 ;;
5044   esac
5045 done
5046
5047 ac_given_srcdir=$srcdir
5048 ac_given_INSTALL="$INSTALL"
5049
5050 trap 'rm -fr `echo "MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile 
5051         lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
5052         lib/blkid/Makefile lib/blkid/blkid_types.h lib/evms/Makefile
5053         misc/Makefile ext2ed/Makefile e2fsck/Makefile debugfs/Makefile \
5054         tests/Makefile tests/progs/Makefile $rmakefile doc/Makefile 
5055         intl/Makefile po/Makefile.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5056 EOF
5057 cat >> $CONFIG_STATUS <<EOF
5058
5059 # Protect against being on the right side of a sed subst in config.status.
5060 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5061  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5062 $ac_vpsub
5063 $extrasub
5064 s%@SHELL@%$SHELL%g
5065 s%@CFLAGS@%$CFLAGS%g
5066 s%@CPPFLAGS@%$CPPFLAGS%g
5067 s%@CXXFLAGS@%$CXXFLAGS%g
5068 s%@FFLAGS@%$FFLAGS%g
5069 s%@DEFS@%$DEFS%g
5070 s%@LDFLAGS@%$LDFLAGS%g
5071 s%@LIBS@%$LIBS%g
5072 s%@exec_prefix@%$exec_prefix%g
5073 s%@prefix@%$prefix%g
5074 s%@program_transform_name@%$program_transform_name%g
5075 s%@bindir@%$bindir%g
5076 s%@sbindir@%$sbindir%g
5077 s%@libexecdir@%$libexecdir%g
5078 s%@datadir@%$datadir%g
5079 s%@sysconfdir@%$sysconfdir%g
5080 s%@sharedstatedir@%$sharedstatedir%g
5081 s%@localstatedir@%$localstatedir%g
5082 s%@libdir@%$libdir%g
5083 s%@includedir@%$includedir%g
5084 s%@oldincludedir@%$oldincludedir%g
5085 s%@infodir@%$infodir%g
5086 s%@mandir@%$mandir%g
5087 /@MCONFIG@/r $MCONFIG
5088 s%@MCONFIG@%%g
5089 s%@E2FSPROGS_YEAR@%$E2FSPROGS_YEAR%g
5090 s%@E2FSPROGS_MONTH@%$E2FSPROGS_MONTH%g
5091 s%@E2FSPROGS_VERSION@%$E2FSPROGS_VERSION%g
5092 s%@host@%$host%g
5093 s%@host_alias@%$host_alias%g
5094 s%@host_cpu@%$host_cpu%g
5095 s%@host_vendor@%$host_vendor%g
5096 s%@host_os@%$host_os%g
5097 s%@CC@%$CC%g
5098 s%@LD@%$LD%g
5099 s%@CPP@%$CPP%g
5100 s%@LINUX_INCLUDE@%$LINUX_INCLUDE%g
5101 s%@HTREE_CMT@%$HTREE_CMT%g
5102 s%@HTREE_CLR_CMT@%$HTREE_CLR_CMT%g
5103 s%@EVMS_ABI_CODE@%$EVMS_ABI_CODE%g
5104 s%@DLL_CMT@%$DLL_CMT%g
5105 /@MAKEFILE_DLL@/r $MAKEFILE_DLL
5106 s%@MAKEFILE_DLL@%%g
5107 s%@ELF_CMT@%$ELF_CMT%g
5108 /@MAKEFILE_ELF@/r $MAKEFILE_ELF
5109 s%@MAKEFILE_ELF@%%g
5110 s%@BSDLIB_CMT@%$BSDLIB_CMT%g
5111 /@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
5112 s%@MAKEFILE_BSDLIB@%%g
5113 s%@PROFILE_CMT@%$PROFILE_CMT%g
5114 /@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
5115 s%@MAKEFILE_PROFILE@%%g
5116 s%@CHECKER_CMT@%$CHECKER_CMT%g
5117 /@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
5118 s%@MAKEFILE_CHECKER@%%g
5119 s%@LIB_EXT@%$LIB_EXT%g
5120 s%@STATIC_LIB_EXT@%$STATIC_LIB_EXT%g
5121 s%@PROFILED_LIB_EXT@%$PROFILED_LIB_EXT%g
5122 s%@SWAPFS_CMT@%$SWAPFS_CMT%g
5123 s%@DEBUGFS_CMT@%$DEBUGFS_CMT%g
5124 s%@IMAGER_CMT@%$IMAGER_CMT%g
5125 s%@RESIZER_CMT@%$RESIZER_CMT%g
5126 s%@E2FSCK_TYPE@%$E2FSCK_TYPE%g
5127 s%@FSCK_PROG@%$FSCK_PROG%g
5128 s%@FSCK_MAN@%$FSCK_MAN%g
5129 /@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
5130 s%@MAKEFILE_LIBRARY@%%g
5131 s%@PACKAGE@%$PACKAGE%g
5132 s%@VERSION@%$VERSION%g
5133 s%@SET_MAKE@%$SET_MAKE%g
5134 s%@RANLIB@%$RANLIB%g
5135 s%@ALLOCA@%$ALLOCA%g
5136 s%@USE_NLS@%$USE_NLS%g
5137 s%@MSGFMT@%$MSGFMT%g
5138 s%@GMSGFMT@%$GMSGFMT%g
5139 s%@XGETTEXT@%$XGETTEXT%g
5140 s%@GENCAT@%$GENCAT%g
5141 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
5142 s%@CATALOGS@%$CATALOGS%g
5143 s%@CATOBJEXT@%$CATOBJEXT%g
5144 s%@DATADIRNAME@%$DATADIRNAME%g
5145 s%@GMOFILES@%$GMOFILES%g
5146 s%@INSTOBJEXT@%$INSTOBJEXT%g
5147 s%@INTLDEPS@%$INTLDEPS%g
5148 s%@INTLLIBS@%$INTLLIBS%g
5149 s%@INTLOBJS@%$INTLOBJS%g
5150 s%@POFILES@%$POFILES%g
5151 s%@POSUB@%$POSUB%g
5152 s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
5153 s%@GT_NO@%$GT_NO%g
5154 s%@GT_YES@%$GT_YES%g
5155 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
5156 s%@l@%$l%g
5157 s%@BINARY_TYPE@%$BINARY_TYPE%g
5158 s%@LN@%$LN%g
5159 s%@LN_S@%$LN_S%g
5160 s%@MV@%$MV%g
5161 s%@CP@%$CP%g
5162 s%@RM@%$RM%g
5163 s%@CHMOD@%$CHMOD%g
5164 s%@AWK@%$AWK%g
5165 s%@SED@%$SED%g
5166 s%@PERL@%$PERL%g
5167 s%@LDCONFIG@%$LDCONFIG%g
5168 s%@build@%$build%g
5169 s%@build_alias@%$build_alias%g
5170 s%@build_cpu@%$build_cpu%g
5171 s%@build_vendor@%$build_vendor%g
5172 s%@build_os@%$build_os%g
5173 s%@AR@%$AR%g
5174 s%@STRIP@%$STRIP%g
5175 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5176 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5177 s%@INSTALL_DATA@%$INSTALL_DATA%g
5178 s%@BUILD_CC@%$BUILD_CC%g
5179 s%@SIZEOF_SHORT@%$SIZEOF_SHORT%g
5180 s%@SIZEOF_INT@%$SIZEOF_INT%g
5181 s%@SIZEOF_LONG@%$SIZEOF_LONG%g
5182 s%@SIZEOF_LONG_LONG@%$SIZEOF_LONG_LONG%g
5183 s%@SOCKET_LIB@%$SOCKET_LIB%g
5184 s%@LINUX_CMT@%$LINUX_CMT%g
5185 s%@root_prefix@%$root_prefix%g
5186 s%@root_bindir@%$root_bindir%g
5187 s%@root_sbindir@%$root_sbindir%g
5188 s%@root_libdir@%$root_libdir%g
5189 s%@root_sysconfdir@%$root_sysconfdir%g
5190 s%@LDFLAG_STATIC@%$LDFLAG_STATIC%g
5191 s%@SS_DIR@%$SS_DIR%g
5192 s%@ET_DIR@%$ET_DIR%g
5193 s%@DO_TEST_SUITE@%$DO_TEST_SUITE%g
5194
5195 CEOF
5196 EOF
5197
5198 cat >> $CONFIG_STATUS <<\EOF
5199
5200 # Split the substitutions into bite-sized pieces for seds with
5201 # small command number limits, like on Digital OSF/1 and HP-UX.
5202 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5203 ac_file=1 # Number of current file.
5204 ac_beg=1 # First line for current file.
5205 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5206 ac_more_lines=:
5207 ac_sed_cmds=""
5208 while $ac_more_lines; do
5209   if test $ac_beg -gt 1; then
5210     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5211   else
5212     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5213   fi
5214   if test ! -s conftest.s$ac_file; then
5215     ac_more_lines=false
5216     rm -f conftest.s$ac_file
5217   else
5218     if test -z "$ac_sed_cmds"; then
5219       ac_sed_cmds="sed -f conftest.s$ac_file"
5220     else
5221       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5222     fi
5223     ac_file=`expr $ac_file + 1`
5224     ac_beg=$ac_end
5225     ac_end=`expr $ac_end + $ac_max_sed_cmds`
5226   fi
5227 done
5228 if test -z "$ac_sed_cmds"; then
5229   ac_sed_cmds=cat
5230 fi
5231 EOF
5232
5233 cat >> $CONFIG_STATUS <<EOF
5234
5235 CONFIG_FILES=\${CONFIG_FILES-"MCONFIG Makefile util/Makefile util/subst.conf lib/et/Makefile 
5236         lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile lib/uuid/Makefile
5237         lib/blkid/Makefile lib/blkid/blkid_types.h lib/evms/Makefile
5238         misc/Makefile ext2ed/Makefile e2fsck/Makefile debugfs/Makefile \
5239         tests/Makefile tests/progs/Makefile $rmakefile doc/Makefile 
5240         intl/Makefile po/Makefile.in"}
5241 EOF
5242 cat >> $CONFIG_STATUS <<\EOF
5243 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5244   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5245   case "$ac_file" in
5246   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5247        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5248   *) ac_file_in="${ac_file}.in" ;;
5249   esac
5250
5251   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5252
5253   # Remove last slash and all that follows it.  Not all systems have dirname.
5254   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5255   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5256     # The file is in a subdirectory.
5257     test ! -d "$ac_dir" && mkdir "$ac_dir"
5258     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5259     # A "../" for each directory in $ac_dir_suffix.
5260     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5261   else
5262     ac_dir_suffix= ac_dots=
5263   fi
5264
5265   case "$ac_given_srcdir" in
5266   .)  srcdir=.
5267       if test -z "$ac_dots"; then top_srcdir=.
5268       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5269   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5270   *) # Relative path.
5271     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5272     top_srcdir="$ac_dots$ac_given_srcdir" ;;
5273   esac
5274
5275   case "$ac_given_INSTALL" in
5276   [/$]*) INSTALL="$ac_given_INSTALL" ;;
5277   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5278   esac
5279
5280   echo creating "$ac_file"
5281   rm -f "$ac_file"
5282   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5283   case "$ac_file" in
5284   *Makefile*) ac_comsub="1i\\
5285 # $configure_input" ;;
5286   *) ac_comsub= ;;
5287   esac
5288
5289   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5290   sed -e "$ac_comsub
5291 s%@configure_input@%$configure_input%g
5292 s%@srcdir@%$srcdir%g
5293 s%@top_srcdir@%$top_srcdir%g
5294 s%@INSTALL@%$INSTALL%g
5295 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5296 fi; done
5297 rm -f conftest.s*
5298
5299 EOF
5300
5301 cat >> $CONFIG_STATUS <<EOF
5302 ac_sources="$nls_cv_header_libgt"
5303 ac_dests="$nls_cv_header_intl"
5304 EOF
5305
5306 cat >> $CONFIG_STATUS <<\EOF
5307 srcdir=$ac_given_srcdir
5308 while test -n "$ac_sources"; do
5309   set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5310   set $ac_sources; ac_source=$1; shift; ac_sources=$*
5311
5312   echo "linking $srcdir/$ac_source to $ac_dest"
5313
5314   if test ! -r $srcdir/$ac_source; then
5315     { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
5316   fi
5317   rm -f $ac_dest
5318
5319   # Make relative symlinks.
5320   # Remove last slash and all that follows it.  Not all systems have dirname.
5321   ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
5322   if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5323     # The dest file is in a subdirectory.
5324     test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5325     ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
5326     # A "../" for each directory in $ac_dest_dir_suffix.
5327     ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
5328   else
5329     ac_dest_dir_suffix= ac_dots=
5330   fi
5331
5332   case "$srcdir" in
5333   [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5334   *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5335   esac
5336
5337   # Make a symlink if possible; otherwise try a hard link.
5338   if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5339     ln $srcdir/$ac_source $ac_dest; then :
5340   else
5341     { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5342   fi
5343 done
5344 EOF
5345 cat >> $CONFIG_STATUS <<EOF
5346
5347
5348 EOF
5349 cat >> $CONFIG_STATUS <<\EOF
5350 case "$CONFIG_FILES" in *po/Makefile.in*)
5351         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
5352       esac
5353
5354 exit 0
5355 EOF
5356 chmod +x $CONFIG_STATUS
5357 rm -fr confdefs* $ac_clean_files
5358 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5359