configure revision 110949
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:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15  --disable-elf            disable builtin ELF support"
16ac_help="$ac_help
17  --disable-elf-core       disable ELF core file support"
18ac_help="$ac_help
19  --enable-fsect-man5      enable file formats in man section 5"
20ac_help="$ac_help
21  --disable-largefile     omit support for large files"
22
23# Initialize some variables set by options.
24# The variables have the same names as the options, with
25# dashes changed to underlines.
26build=NONE
27cache_file=./config.cache
28exec_prefix=NONE
29host=NONE
30no_create=
31nonopt=NONE
32no_recursion=
33prefix=NONE
34program_prefix=NONE
35program_suffix=NONE
36program_transform_name=s,x,x,
37silent=
38site=
39srcdir=
40target=NONE
41verbose=
42x_includes=NONE
43x_libraries=NONE
44bindir='${exec_prefix}/bin'
45sbindir='${exec_prefix}/sbin'
46libexecdir='${exec_prefix}/libexec'
47datadir='${prefix}/share'
48sysconfdir='${prefix}/etc'
49sharedstatedir='${prefix}/com'
50localstatedir='${prefix}/var'
51libdir='${exec_prefix}/lib'
52includedir='${prefix}/include'
53oldincludedir='/usr/include'
54infodir='${prefix}/info'
55mandir='${prefix}/man'
56
57# Initialize some other variables.
58subdirs=
59MFLAGS= MAKEFLAGS=
60SHELL=${CONFIG_SHELL-/bin/sh}
61# Maximum number of lines to put in a shell here document.
62ac_max_here_lines=12
63
64ac_prev=
65for ac_option
66do
67
68  # If the previous option needs an argument, assign it.
69  if test -n "$ac_prev"; then
70    eval "$ac_prev=\$ac_option"
71    ac_prev=
72    continue
73  fi
74
75  case "$ac_option" in
76  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
77  *) ac_optarg= ;;
78  esac
79
80  # Accept the important Cygnus configure options, so we can diagnose typos.
81
82  case "$ac_option" in
83
84  -bindir | --bindir | --bindi | --bind | --bin | --bi)
85    ac_prev=bindir ;;
86  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
87    bindir="$ac_optarg" ;;
88
89  -build | --build | --buil | --bui | --bu)
90    ac_prev=build ;;
91  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
92    build="$ac_optarg" ;;
93
94  -cache-file | --cache-file | --cache-fil | --cache-fi \
95  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
96    ac_prev=cache_file ;;
97  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
98  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
99    cache_file="$ac_optarg" ;;
100
101  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
102    ac_prev=datadir ;;
103  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
104  | --da=*)
105    datadir="$ac_optarg" ;;
106
107  -disable-* | --disable-*)
108    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
109    # Reject names that are not valid shell variable names.
110    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
111      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
112    fi
113    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
114    eval "enable_${ac_feature}=no" ;;
115
116  -enable-* | --enable-*)
117    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
118    # Reject names that are not valid shell variable names.
119    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
120      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
121    fi
122    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
123    case "$ac_option" in
124      *=*) ;;
125      *) ac_optarg=yes ;;
126    esac
127    eval "enable_${ac_feature}='$ac_optarg'" ;;
128
129  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
130  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
131  | --exec | --exe | --ex)
132    ac_prev=exec_prefix ;;
133  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
134  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
135  | --exec=* | --exe=* | --ex=*)
136    exec_prefix="$ac_optarg" ;;
137
138  -gas | --gas | --ga | --g)
139    # Obsolete; use --with-gas.
140    with_gas=yes ;;
141
142  -help | --help | --hel | --he)
143    # Omit some internal or obsolete options to make the list less imposing.
144    # This message is too long to be a string in the A/UX 3.1 sh.
145    cat << EOF
146Usage: configure [options] [host]
147Options: [defaults in brackets after descriptions]
148Configuration:
149  --cache-file=FILE       cache test results in FILE
150  --help                  print this message
151  --no-create             do not create output files
152  --quiet, --silent       do not print \`checking...' messages
153  --version               print the version of autoconf that created configure
154Directory and file names:
155  --prefix=PREFIX         install architecture-independent files in PREFIX
156                          [$ac_default_prefix]
157  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
158                          [same as prefix]
159  --bindir=DIR            user executables in DIR [EPREFIX/bin]
160  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
161  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
162  --datadir=DIR           read-only architecture-independent data in DIR
163                          [PREFIX/share]
164  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
165  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
166                          [PREFIX/com]
167  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
168  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
169  --includedir=DIR        C header files in DIR [PREFIX/include]
170  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
171  --infodir=DIR           info documentation in DIR [PREFIX/info]
172  --mandir=DIR            man documentation in DIR [PREFIX/man]
173  --srcdir=DIR            find the sources in DIR [configure dir or ..]
174  --program-prefix=PREFIX prepend PREFIX to installed program names
175  --program-suffix=SUFFIX append SUFFIX to installed program names
176  --program-transform-name=PROGRAM
177                          run sed PROGRAM on installed program names
178EOF
179    cat << EOF
180Host type:
181  --build=BUILD           configure for building on BUILD [BUILD=HOST]
182  --host=HOST             configure for HOST [guessed]
183  --target=TARGET         configure for TARGET [TARGET=HOST]
184Features and packages:
185  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
186  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
187  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
188  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
189  --x-includes=DIR        X include files are in DIR
190  --x-libraries=DIR       X library files are in DIR
191EOF
192    if test -n "$ac_help"; then
193      echo "--enable and --with options recognized:$ac_help"
194    fi
195    exit 0 ;;
196
197  -host | --host | --hos | --ho)
198    ac_prev=host ;;
199  -host=* | --host=* | --hos=* | --ho=*)
200    host="$ac_optarg" ;;
201
202  -includedir | --includedir | --includedi | --included | --include \
203  | --includ | --inclu | --incl | --inc)
204    ac_prev=includedir ;;
205  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
206  | --includ=* | --inclu=* | --incl=* | --inc=*)
207    includedir="$ac_optarg" ;;
208
209  -infodir | --infodir | --infodi | --infod | --info | --inf)
210    ac_prev=infodir ;;
211  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
212    infodir="$ac_optarg" ;;
213
214  -libdir | --libdir | --libdi | --libd)
215    ac_prev=libdir ;;
216  -libdir=* | --libdir=* | --libdi=* | --libd=*)
217    libdir="$ac_optarg" ;;
218
219  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
220  | --libexe | --libex | --libe)
221    ac_prev=libexecdir ;;
222  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
223  | --libexe=* | --libex=* | --libe=*)
224    libexecdir="$ac_optarg" ;;
225
226  -localstatedir | --localstatedir | --localstatedi | --localstated \
227  | --localstate | --localstat | --localsta | --localst \
228  | --locals | --local | --loca | --loc | --lo)
229    ac_prev=localstatedir ;;
230  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
231  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
232  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
233    localstatedir="$ac_optarg" ;;
234
235  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
236    ac_prev=mandir ;;
237  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
238    mandir="$ac_optarg" ;;
239
240  -nfp | --nfp | --nf)
241    # Obsolete; use --without-fp.
242    with_fp=no ;;
243
244  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
245  | --no-cr | --no-c)
246    no_create=yes ;;
247
248  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
249  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
250    no_recursion=yes ;;
251
252  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
253  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
254  | --oldin | --oldi | --old | --ol | --o)
255    ac_prev=oldincludedir ;;
256  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
257  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
258  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
259    oldincludedir="$ac_optarg" ;;
260
261  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
262    ac_prev=prefix ;;
263  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
264    prefix="$ac_optarg" ;;
265
266  -program-prefix | --program-prefix | --program-prefi | --program-pref \
267  | --program-pre | --program-pr | --program-p)
268    ac_prev=program_prefix ;;
269  -program-prefix=* | --program-prefix=* | --program-prefi=* \
270  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
271    program_prefix="$ac_optarg" ;;
272
273  -program-suffix | --program-suffix | --program-suffi | --program-suff \
274  | --program-suf | --program-su | --program-s)
275    ac_prev=program_suffix ;;
276  -program-suffix=* | --program-suffix=* | --program-suffi=* \
277  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
278    program_suffix="$ac_optarg" ;;
279
280  -program-transform-name | --program-transform-name \
281  | --program-transform-nam | --program-transform-na \
282  | --program-transform-n | --program-transform- \
283  | --program-transform | --program-transfor \
284  | --program-transfo | --program-transf \
285  | --program-trans | --program-tran \
286  | --progr-tra | --program-tr | --program-t)
287    ac_prev=program_transform_name ;;
288  -program-transform-name=* | --program-transform-name=* \
289  | --program-transform-nam=* | --program-transform-na=* \
290  | --program-transform-n=* | --program-transform-=* \
291  | --program-transform=* | --program-transfor=* \
292  | --program-transfo=* | --program-transf=* \
293  | --program-trans=* | --program-tran=* \
294  | --progr-tra=* | --program-tr=* | --program-t=*)
295    program_transform_name="$ac_optarg" ;;
296
297  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
298  | -silent | --silent | --silen | --sile | --sil)
299    silent=yes ;;
300
301  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
302    ac_prev=sbindir ;;
303  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
304  | --sbi=* | --sb=*)
305    sbindir="$ac_optarg" ;;
306
307  -sharedstatedir | --sharedstatedir | --sharedstatedi \
308  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
309  | --sharedst | --shareds | --shared | --share | --shar \
310  | --sha | --sh)
311    ac_prev=sharedstatedir ;;
312  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
313  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
314  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
315  | --sha=* | --sh=*)
316    sharedstatedir="$ac_optarg" ;;
317
318  -site | --site | --sit)
319    ac_prev=site ;;
320  -site=* | --site=* | --sit=*)
321    site="$ac_optarg" ;;
322
323  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
324    ac_prev=srcdir ;;
325  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
326    srcdir="$ac_optarg" ;;
327
328  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
329  | --syscon | --sysco | --sysc | --sys | --sy)
330    ac_prev=sysconfdir ;;
331  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
332  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
333    sysconfdir="$ac_optarg" ;;
334
335  -target | --target | --targe | --targ | --tar | --ta | --t)
336    ac_prev=target ;;
337  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
338    target="$ac_optarg" ;;
339
340  -v | -verbose | --verbose | --verbos | --verbo | --verb)
341    verbose=yes ;;
342
343  -version | --version | --versio | --versi | --vers)
344    echo "configure generated by autoconf version 2.13"
345    exit 0 ;;
346
347  -with-* | --with-*)
348    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
349    # Reject names that are not valid shell variable names.
350    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
351      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
352    fi
353    ac_package=`echo $ac_package| sed 's/-/_/g'`
354    case "$ac_option" in
355      *=*) ;;
356      *) ac_optarg=yes ;;
357    esac
358    eval "with_${ac_package}='$ac_optarg'" ;;
359
360  -without-* | --without-*)
361    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
362    # Reject names that are not valid shell variable names.
363    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
364      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
365    fi
366    ac_package=`echo $ac_package| sed 's/-/_/g'`
367    eval "with_${ac_package}=no" ;;
368
369  --x)
370    # Obsolete; use --with-x.
371    with_x=yes ;;
372
373  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
374  | --x-incl | --x-inc | --x-in | --x-i)
375    ac_prev=x_includes ;;
376  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
377  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
378    x_includes="$ac_optarg" ;;
379
380  -x-libraries | --x-libraries | --x-librarie | --x-librari \
381  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
382    ac_prev=x_libraries ;;
383  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
384  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
385    x_libraries="$ac_optarg" ;;
386
387  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
388    ;;
389
390  *)
391    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
392      echo "configure: warning: $ac_option: invalid host type" 1>&2
393    fi
394    if test "x$nonopt" != xNONE; then
395      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
396    fi
397    nonopt="$ac_option"
398    ;;
399
400  esac
401done
402
403if test -n "$ac_prev"; then
404  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
405fi
406
407trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
408
409# File descriptor usage:
410# 0 standard input
411# 1 file creation
412# 2 errors and warnings
413# 3 some systems may open it to /dev/tty
414# 4 used on the Kubota Titan
415# 6 checking for... messages and results
416# 5 compiler messages saved in config.log
417if test "$silent" = yes; then
418  exec 6>/dev/null
419else
420  exec 6>&1
421fi
422exec 5>./config.log
423
424echo "\
425This file contains any messages produced by compilers while
426running configure, to aid debugging if configure makes a mistake.
427" 1>&5
428
429# Strip out --no-create and --no-recursion so they do not pile up.
430# Also quote any args containing shell metacharacters.
431ac_configure_args=
432for ac_arg
433do
434  case "$ac_arg" in
435  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
436  | --no-cr | --no-c) ;;
437  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
438  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
439  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
440  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
441  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
442  esac
443done
444
445# NLS nuisances.
446# Only set these to C if already set.  These must not be set unconditionally
447# because not all systems understand e.g. LANG=C (notably SCO).
448# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
449# Non-C LC_CTYPE values break the ctype check.
450if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
451if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
452if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
453if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
454
455# confdefs.h avoids OS command line length limits that DEFS can exceed.
456rm -rf conftest* confdefs.h
457# AIX cpp loses on an empty file, so make sure it contains at least a newline.
458echo > confdefs.h
459
460# A filename unique to this package, relative to the directory that
461# configure is in, which we can look for to find out if srcdir is correct.
462ac_unique_file=file.c
463
464# Find the source files, if location was not specified.
465if test -z "$srcdir"; then
466  ac_srcdir_defaulted=yes
467  # Try the directory containing this script, then its parent.
468  ac_prog=$0
469  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
470  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
471  srcdir=$ac_confdir
472  if test ! -r $srcdir/$ac_unique_file; then
473    srcdir=..
474  fi
475else
476  ac_srcdir_defaulted=no
477fi
478if test ! -r $srcdir/$ac_unique_file; then
479  if test "$ac_srcdir_defaulted" = yes; then
480    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
481  else
482    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
483  fi
484fi
485srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
486
487# Prefer explicitly selected file to automatically selected ones.
488if test -z "$CONFIG_SITE"; then
489  if test "x$prefix" != xNONE; then
490    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
491  else
492    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
493  fi
494fi
495for ac_site_file in $CONFIG_SITE; do
496  if test -r "$ac_site_file"; then
497    echo "loading site script $ac_site_file"
498    . "$ac_site_file"
499  fi
500done
501
502if test -r "$cache_file"; then
503  echo "loading cache $cache_file"
504  . $cache_file
505else
506  echo "creating cache $cache_file"
507  > $cache_file
508fi
509
510ac_ext=c
511# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
512ac_cpp='$CPP $CPPFLAGS'
513ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
514ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
515cross_compiling=$ac_cv_prog_cc_cross
516
517ac_exeext=
518ac_objext=o
519if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
520  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
521  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
522    ac_n= ac_c='
523' ac_t='	'
524  else
525    ac_n=-n ac_c= ac_t=
526  fi
527else
528  ac_n= ac_c='\c' ac_t=
529fi
530
531
532ac_aux_dir=
533for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
534  if test -f $ac_dir/install-sh; then
535    ac_aux_dir=$ac_dir
536    ac_install_sh="$ac_aux_dir/install-sh -c"
537    break
538  elif test -f $ac_dir/install.sh; then
539    ac_aux_dir=$ac_dir
540    ac_install_sh="$ac_aux_dir/install.sh -c"
541    break
542  fi
543done
544if test -z "$ac_aux_dir"; then
545  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
546fi
547ac_config_guess=$ac_aux_dir/config.guess
548ac_config_sub=$ac_aux_dir/config.sub
549ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
550
551# Find a good install program.  We prefer a C program (faster),
552# so one script is as good as another.  But avoid the broken or
553# incompatible versions:
554# SysV /etc/install, /usr/sbin/install
555# SunOS /usr/etc/install
556# IRIX /sbin/install
557# AIX /bin/install
558# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
559# AFS /usr/afsws/bin/install, which mishandles nonexistent args
560# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
561# ./install, which can be erroneously created by make from ./install.sh.
562echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
563echo "configure:564: checking for a BSD compatible install" >&5
564if test -z "$INSTALL"; then
565if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
566  echo $ac_n "(cached) $ac_c" 1>&6
567else
568    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
569  for ac_dir in $PATH; do
570    # Account for people who put trailing slashes in PATH elements.
571    case "$ac_dir/" in
572    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
573    *)
574      # OSF1 and SCO ODT 3.0 have their own names for install.
575      # Don't use installbsd from OSF since it installs stuff as root
576      # by default.
577      for ac_prog in ginstall scoinst install; do
578        if test -f $ac_dir/$ac_prog; then
579	  if test $ac_prog = install &&
580            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
581	    # AIX install.  It has an incompatible calling convention.
582	    :
583	  else
584	    ac_cv_path_install="$ac_dir/$ac_prog -c"
585	    break 2
586	  fi
587	fi
588      done
589      ;;
590    esac
591  done
592  IFS="$ac_save_IFS"
593
594fi
595  if test "${ac_cv_path_install+set}" = set; then
596    INSTALL="$ac_cv_path_install"
597  else
598    # As a last resort, use the slow shell script.  We don't cache a
599    # path for INSTALL within a source directory, because that will
600    # break other packages using the cache if that directory is
601    # removed, or if the path is relative.
602    INSTALL="$ac_install_sh"
603  fi
604fi
605echo "$ac_t""$INSTALL" 1>&6
606
607# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
608# It thinks the first close brace ends the variable substitution.
609test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
610
611test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
612
613test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
614
615echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
616echo "configure:617: checking whether build environment is sane" >&5
617# Just in case
618sleep 1
619echo timestamp > conftestfile
620# Do `set' in a subshell so we don't clobber the current shell's
621# arguments.  Must try -L first in case configure is actually a
622# symlink; some systems play weird games with the mod time of symlinks
623# (eg FreeBSD returns the mod time of the symlink's containing
624# directory).
625if (
626   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
627   if test "$*" = "X"; then
628      # -L didn't work.
629      set X `ls -t $srcdir/configure conftestfile`
630   fi
631   if test "$*" != "X $srcdir/configure conftestfile" \
632      && test "$*" != "X conftestfile $srcdir/configure"; then
633
634      # If neither matched, then we have a broken ls.  This can happen
635      # if, for instance, CONFIG_SHELL is bash and it inherits a
636      # broken ls alias from the environment.  This has actually
637      # happened.  Such a system could not be considered "sane".
638      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
639alias in your environment" 1>&2; exit 1; }
640   fi
641
642   test "$2" = conftestfile
643   )
644then
645   # Ok.
646   :
647else
648   { echo "configure: error: newly created file is older than distributed files!
649Check your system clock" 1>&2; exit 1; }
650fi
651rm -f conftest*
652echo "$ac_t""yes" 1>&6
653if test "$program_transform_name" = s,x,x,; then
654  program_transform_name=
655else
656  # Double any \ or $.  echo might interpret backslashes.
657  cat <<\EOF_SED > conftestsed
658s,\\,\\\\,g; s,\$,$$,g
659EOF_SED
660  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
661  rm -f conftestsed
662fi
663test "$program_prefix" != NONE &&
664  program_transform_name="s,^,${program_prefix},; $program_transform_name"
665# Use a double $ so make ignores it.
666test "$program_suffix" != NONE &&
667  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
668
669# sed with no file args requires a program.
670test "$program_transform_name" = "" && program_transform_name="s,x,x,"
671
672echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
673echo "configure:674: checking whether ${MAKE-make} sets \${MAKE}" >&5
674set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
675if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
676  echo $ac_n "(cached) $ac_c" 1>&6
677else
678  cat > conftestmake <<\EOF
679all:
680	@echo 'ac_maketemp="${MAKE}"'
681EOF
682# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
683eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
684if test -n "$ac_maketemp"; then
685  eval ac_cv_prog_make_${ac_make}_set=yes
686else
687  eval ac_cv_prog_make_${ac_make}_set=no
688fi
689rm -f conftestmake
690fi
691if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
692  echo "$ac_t""yes" 1>&6
693  SET_MAKE=
694else
695  echo "$ac_t""no" 1>&6
696  SET_MAKE="MAKE=${MAKE-make}"
697fi
698
699
700PACKAGE=file
701
702VERSION=3.40
703
704if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
705  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
706fi
707cat >> confdefs.h <<EOF
708#define PACKAGE "$PACKAGE"
709EOF
710
711cat >> confdefs.h <<EOF
712#define VERSION "$VERSION"
713EOF
714
715
716
717missing_dir=`cd $ac_aux_dir && pwd`
718echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
719echo "configure:720: checking for working aclocal" >&5
720# Run test in a subshell; some versions of sh will print an error if
721# an executable is not found, even if stderr is redirected.
722# Redirect stdin to placate older versions of autoconf.  Sigh.
723if (aclocal --version) < /dev/null > /dev/null 2>&1; then
724   ACLOCAL=aclocal
725   echo "$ac_t""found" 1>&6
726else
727   ACLOCAL="$missing_dir/missing aclocal"
728   echo "$ac_t""missing" 1>&6
729fi
730
731echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
732echo "configure:733: checking for working autoconf" >&5
733# Run test in a subshell; some versions of sh will print an error if
734# an executable is not found, even if stderr is redirected.
735# Redirect stdin to placate older versions of autoconf.  Sigh.
736if (autoconf --version) < /dev/null > /dev/null 2>&1; then
737   AUTOCONF=autoconf
738   echo "$ac_t""found" 1>&6
739else
740   AUTOCONF="$missing_dir/missing autoconf"
741   echo "$ac_t""missing" 1>&6
742fi
743
744echo $ac_n "checking for working automake""... $ac_c" 1>&6
745echo "configure:746: checking for working automake" >&5
746# Run test in a subshell; some versions of sh will print an error if
747# an executable is not found, even if stderr is redirected.
748# Redirect stdin to placate older versions of autoconf.  Sigh.
749if (automake --version) < /dev/null > /dev/null 2>&1; then
750   AUTOMAKE=automake
751   echo "$ac_t""found" 1>&6
752else
753   AUTOMAKE="$missing_dir/missing automake"
754   echo "$ac_t""missing" 1>&6
755fi
756
757echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
758echo "configure:759: checking for working autoheader" >&5
759# Run test in a subshell; some versions of sh will print an error if
760# an executable is not found, even if stderr is redirected.
761# Redirect stdin to placate older versions of autoconf.  Sigh.
762if (autoheader --version) < /dev/null > /dev/null 2>&1; then
763   AUTOHEADER=autoheader
764   echo "$ac_t""found" 1>&6
765else
766   AUTOHEADER="$missing_dir/missing autoheader"
767   echo "$ac_t""missing" 1>&6
768fi
769
770echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
771echo "configure:772: checking for working makeinfo" >&5
772# Run test in a subshell; some versions of sh will print an error if
773# an executable is not found, even if stderr is redirected.
774# Redirect stdin to placate older versions of autoconf.  Sigh.
775if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
776   MAKEINFO=makeinfo
777   echo "$ac_t""found" 1>&6
778else
779   MAKEINFO="$missing_dir/missing makeinfo"
780   echo "$ac_t""missing" 1>&6
781fi
782
783
784
785
786
787
788echo $ac_n "checking for builtin ELF support""... $ac_c" 1>&6
789echo "configure:790: checking for builtin ELF support" >&5
790# Check whether --enable-elf or --disable-elf was given.
791if test "${enable_elf+set}" = set; then
792  enableval="$enable_elf"
793  if test "${enableval}" = yes; then
794  echo "$ac_t""yes" 1>&6
795  cat >> confdefs.h <<\EOF
796#define BUILTIN_ELF 1
797EOF
798
799else
800  echo "$ac_t""no" 1>&6
801fi
802else
803  
804  # enable by default
805  echo "$ac_t""yes" 1>&6
806  cat >> confdefs.h <<\EOF
807#define BUILTIN_ELF 1
808EOF
809
810
811fi
812
813
814echo $ac_n "checking for ELF core file support""... $ac_c" 1>&6
815echo "configure:816: checking for ELF core file support" >&5
816# Check whether --enable-elf-core or --disable-elf-core was given.
817if test "${enable_elf_core+set}" = set; then
818  enableval="$enable_elf_core"
819  if test "${enableval}" = yes; then
820  echo "$ac_t""yes" 1>&6
821  cat >> confdefs.h <<\EOF
822#define ELFCORE 1
823EOF
824
825else
826  echo "$ac_t""no" 1>&6
827fi
828else
829  
830  # enable by default
831  echo "$ac_t""yes" 1>&6
832  cat >> confdefs.h <<\EOF
833#define ELFCORE 1
834EOF
835
836
837fi
838
839
840echo $ac_n "checking for file formats in man section 5""... $ac_c" 1>&6
841echo "configure:842: checking for file formats in man section 5" >&5
842# Check whether --enable-fsect-man5 or --disable-fsect-man5 was given.
843if test "${enable_fsect_man5+set}" = set; then
844  enableval="$enable_fsect_man5"
845  if test "${enableval}" = yes; then
846  echo "$ac_t""yes" 1>&6
847  fsect=5
848else
849  echo "$ac_t""no" 1>&6
850  fsect=4
851fi
852else
853  
854  # disable by default
855  echo "$ac_t""no" 1>&6
856  fsect=4
857
858fi
859
860
861
862
863if test x$fsect = x5; then
864  FSECT5_TRUE=
865  FSECT5_FALSE='#'
866else
867  FSECT5_TRUE='#'
868  FSECT5_FALSE=
869fi
870
871# Extract the first word of "gcc", so it can be a program name with args.
872set dummy gcc; ac_word=$2
873echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
874echo "configure:875: checking for $ac_word" >&5
875if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
876  echo $ac_n "(cached) $ac_c" 1>&6
877else
878  if test -n "$CC"; then
879  ac_cv_prog_CC="$CC" # Let the user override the test.
880else
881  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
882  ac_dummy="$PATH"
883  for ac_dir in $ac_dummy; do
884    test -z "$ac_dir" && ac_dir=.
885    if test -f $ac_dir/$ac_word; then
886      ac_cv_prog_CC="gcc"
887      break
888    fi
889  done
890  IFS="$ac_save_ifs"
891fi
892fi
893CC="$ac_cv_prog_CC"
894if test -n "$CC"; then
895  echo "$ac_t""$CC" 1>&6
896else
897  echo "$ac_t""no" 1>&6
898fi
899
900if test -z "$CC"; then
901  # Extract the first word of "cc", so it can be a program name with args.
902set dummy cc; ac_word=$2
903echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
904echo "configure:905: checking for $ac_word" >&5
905if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
906  echo $ac_n "(cached) $ac_c" 1>&6
907else
908  if test -n "$CC"; then
909  ac_cv_prog_CC="$CC" # Let the user override the test.
910else
911  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
912  ac_prog_rejected=no
913  ac_dummy="$PATH"
914  for ac_dir in $ac_dummy; do
915    test -z "$ac_dir" && ac_dir=.
916    if test -f $ac_dir/$ac_word; then
917      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
918        ac_prog_rejected=yes
919	continue
920      fi
921      ac_cv_prog_CC="cc"
922      break
923    fi
924  done
925  IFS="$ac_save_ifs"
926if test $ac_prog_rejected = yes; then
927  # We found a bogon in the path, so make sure we never use it.
928  set dummy $ac_cv_prog_CC
929  shift
930  if test $# -gt 0; then
931    # We chose a different compiler from the bogus one.
932    # However, it has the same basename, so the bogon will be chosen
933    # first if we set CC to just the basename; use the full file name.
934    shift
935    set dummy "$ac_dir/$ac_word" "$@"
936    shift
937    ac_cv_prog_CC="$@"
938  fi
939fi
940fi
941fi
942CC="$ac_cv_prog_CC"
943if test -n "$CC"; then
944  echo "$ac_t""$CC" 1>&6
945else
946  echo "$ac_t""no" 1>&6
947fi
948
949  if test -z "$CC"; then
950    case "`uname -s`" in
951    *win32* | *WIN32*)
952      # Extract the first word of "cl", so it can be a program name with args.
953set dummy cl; ac_word=$2
954echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
955echo "configure:956: checking for $ac_word" >&5
956if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
957  echo $ac_n "(cached) $ac_c" 1>&6
958else
959  if test -n "$CC"; then
960  ac_cv_prog_CC="$CC" # Let the user override the test.
961else
962  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
963  ac_dummy="$PATH"
964  for ac_dir in $ac_dummy; do
965    test -z "$ac_dir" && ac_dir=.
966    if test -f $ac_dir/$ac_word; then
967      ac_cv_prog_CC="cl"
968      break
969    fi
970  done
971  IFS="$ac_save_ifs"
972fi
973fi
974CC="$ac_cv_prog_CC"
975if test -n "$CC"; then
976  echo "$ac_t""$CC" 1>&6
977else
978  echo "$ac_t""no" 1>&6
979fi
980 ;;
981    esac
982  fi
983  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
984fi
985
986echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
987echo "configure:988: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
988
989ac_ext=c
990# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
991ac_cpp='$CPP $CPPFLAGS'
992ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
993ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
994cross_compiling=$ac_cv_prog_cc_cross
995
996cat > conftest.$ac_ext << EOF
997
998#line 999 "configure"
999#include "confdefs.h"
1000
1001main(){return(0);}
1002EOF
1003if { (eval echo configure:1004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1004  ac_cv_prog_cc_works=yes
1005  # If we can't run a trivial program, we are probably using a cross compiler.
1006  if (./conftest; exit) 2>/dev/null; then
1007    ac_cv_prog_cc_cross=no
1008  else
1009    ac_cv_prog_cc_cross=yes
1010  fi
1011else
1012  echo "configure: failed program was:" >&5
1013  cat conftest.$ac_ext >&5
1014  ac_cv_prog_cc_works=no
1015fi
1016rm -fr conftest*
1017ac_ext=c
1018# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1019ac_cpp='$CPP $CPPFLAGS'
1020ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1021ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1022cross_compiling=$ac_cv_prog_cc_cross
1023
1024echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1025if test $ac_cv_prog_cc_works = no; then
1026  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1027fi
1028echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1029echo "configure:1030: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1030echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1031cross_compiling=$ac_cv_prog_cc_cross
1032
1033echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1034echo "configure:1035: checking whether we are using GNU C" >&5
1035if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1036  echo $ac_n "(cached) $ac_c" 1>&6
1037else
1038  cat > conftest.c <<EOF
1039#ifdef __GNUC__
1040  yes;
1041#endif
1042EOF
1043if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1044  ac_cv_prog_gcc=yes
1045else
1046  ac_cv_prog_gcc=no
1047fi
1048fi
1049
1050echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1051
1052if test $ac_cv_prog_gcc = yes; then
1053  GCC=yes
1054else
1055  GCC=
1056fi
1057
1058ac_test_CFLAGS="${CFLAGS+set}"
1059ac_save_CFLAGS="$CFLAGS"
1060CFLAGS=
1061echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1062echo "configure:1063: checking whether ${CC-cc} accepts -g" >&5
1063if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1064  echo $ac_n "(cached) $ac_c" 1>&6
1065else
1066  echo 'void f(){}' > conftest.c
1067if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1068  ac_cv_prog_cc_g=yes
1069else
1070  ac_cv_prog_cc_g=no
1071fi
1072rm -f conftest*
1073
1074fi
1075
1076echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1077if test "$ac_test_CFLAGS" = set; then
1078  CFLAGS="$ac_save_CFLAGS"
1079elif test $ac_cv_prog_cc_g = yes; then
1080  if test "$GCC" = yes; then
1081    CFLAGS="-g -O2"
1082  else
1083    CFLAGS="-g"
1084  fi
1085else
1086  if test "$GCC" = yes; then
1087    CFLAGS="-O2"
1088  else
1089    CFLAGS=
1090  fi
1091fi
1092
1093# Find a good install program.  We prefer a C program (faster),
1094# so one script is as good as another.  But avoid the broken or
1095# incompatible versions:
1096# SysV /etc/install, /usr/sbin/install
1097# SunOS /usr/etc/install
1098# IRIX /sbin/install
1099# AIX /bin/install
1100# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1101# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1102# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1103# ./install, which can be erroneously created by make from ./install.sh.
1104echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1105echo "configure:1106: checking for a BSD compatible install" >&5
1106if test -z "$INSTALL"; then
1107if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1108  echo $ac_n "(cached) $ac_c" 1>&6
1109else
1110    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
1111  for ac_dir in $PATH; do
1112    # Account for people who put trailing slashes in PATH elements.
1113    case "$ac_dir/" in
1114    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1115    *)
1116      # OSF1 and SCO ODT 3.0 have their own names for install.
1117      # Don't use installbsd from OSF since it installs stuff as root
1118      # by default.
1119      for ac_prog in ginstall scoinst install; do
1120        if test -f $ac_dir/$ac_prog; then
1121	  if test $ac_prog = install &&
1122            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1123	    # AIX install.  It has an incompatible calling convention.
1124	    :
1125	  else
1126	    ac_cv_path_install="$ac_dir/$ac_prog -c"
1127	    break 2
1128	  fi
1129	fi
1130      done
1131      ;;
1132    esac
1133  done
1134  IFS="$ac_save_IFS"
1135
1136fi
1137  if test "${ac_cv_path_install+set}" = set; then
1138    INSTALL="$ac_cv_path_install"
1139  else
1140    # As a last resort, use the slow shell script.  We don't cache a
1141    # path for INSTALL within a source directory, because that will
1142    # break other packages using the cache if that directory is
1143    # removed, or if the path is relative.
1144    INSTALL="$ac_install_sh"
1145  fi
1146fi
1147echo "$ac_t""$INSTALL" 1>&6
1148
1149# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1150# It thinks the first close brace ends the variable substitution.
1151test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1152
1153test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1154
1155test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1156
1157echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1158echo "configure:1159: checking whether ln -s works" >&5
1159if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1160  echo $ac_n "(cached) $ac_c" 1>&6
1161else
1162  rm -f conftestdata
1163if ln -s X conftestdata 2>/dev/null
1164then
1165  rm -f conftestdata
1166  ac_cv_prog_LN_S="ln -s"
1167else
1168  ac_cv_prog_LN_S=ln
1169fi
1170fi
1171LN_S="$ac_cv_prog_LN_S"
1172if test "$ac_cv_prog_LN_S" = "ln -s"; then
1173  echo "$ac_t""yes" 1>&6
1174else
1175  echo "$ac_t""no" 1>&6
1176fi
1177
1178
1179echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1180echo "configure:1181: checking how to run the C preprocessor" >&5
1181# On Suns, sometimes $CPP names a directory.
1182if test -n "$CPP" && test -d "$CPP"; then
1183  CPP=
1184fi
1185if test -z "$CPP"; then
1186if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1187  echo $ac_n "(cached) $ac_c" 1>&6
1188else
1189    # This must be in double quotes, not single quotes, because CPP may get
1190  # substituted into the Makefile and "${CC-cc}" will confuse make.
1191  CPP="${CC-cc} -E"
1192  # On the NeXT, cc -E runs the code through the compiler's parser,
1193  # not just through cpp.
1194  cat > conftest.$ac_ext <<EOF
1195#line 1196 "configure"
1196#include "confdefs.h"
1197#include <assert.h>
1198Syntax Error
1199EOF
1200ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1201{ (eval echo configure:1202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1202ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1203if test -z "$ac_err"; then
1204  :
1205else
1206  echo "$ac_err" >&5
1207  echo "configure: failed program was:" >&5
1208  cat conftest.$ac_ext >&5
1209  rm -rf conftest*
1210  CPP="${CC-cc} -E -traditional-cpp"
1211  cat > conftest.$ac_ext <<EOF
1212#line 1213 "configure"
1213#include "confdefs.h"
1214#include <assert.h>
1215Syntax Error
1216EOF
1217ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1218{ (eval echo configure:1219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1219ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1220if test -z "$ac_err"; then
1221  :
1222else
1223  echo "$ac_err" >&5
1224  echo "configure: failed program was:" >&5
1225  cat conftest.$ac_ext >&5
1226  rm -rf conftest*
1227  CPP="${CC-cc} -nologo -E"
1228  cat > conftest.$ac_ext <<EOF
1229#line 1230 "configure"
1230#include "confdefs.h"
1231#include <assert.h>
1232Syntax Error
1233EOF
1234ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1235{ (eval echo configure:1236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1236ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1237if test -z "$ac_err"; then
1238  :
1239else
1240  echo "$ac_err" >&5
1241  echo "configure: failed program was:" >&5
1242  cat conftest.$ac_ext >&5
1243  rm -rf conftest*
1244  CPP=/lib/cpp
1245fi
1246rm -f conftest*
1247fi
1248rm -f conftest*
1249fi
1250rm -f conftest*
1251  ac_cv_prog_CPP="$CPP"
1252fi
1253  CPP="$ac_cv_prog_CPP"
1254else
1255  ac_cv_prog_CPP="$CPP"
1256fi
1257echo "$ac_t""$CPP" 1>&6
1258
1259echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1260echo "configure:1261: checking for ANSI C header files" >&5
1261if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1262  echo $ac_n "(cached) $ac_c" 1>&6
1263else
1264  cat > conftest.$ac_ext <<EOF
1265#line 1266 "configure"
1266#include "confdefs.h"
1267#include <stdlib.h>
1268#include <stdarg.h>
1269#include <string.h>
1270#include <float.h>
1271EOF
1272ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1273{ (eval echo configure:1274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1274ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1275if test -z "$ac_err"; then
1276  rm -rf conftest*
1277  ac_cv_header_stdc=yes
1278else
1279  echo "$ac_err" >&5
1280  echo "configure: failed program was:" >&5
1281  cat conftest.$ac_ext >&5
1282  rm -rf conftest*
1283  ac_cv_header_stdc=no
1284fi
1285rm -f conftest*
1286
1287if test $ac_cv_header_stdc = yes; then
1288  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1289cat > conftest.$ac_ext <<EOF
1290#line 1291 "configure"
1291#include "confdefs.h"
1292#include <string.h>
1293EOF
1294if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1295  egrep "memchr" >/dev/null 2>&1; then
1296  :
1297else
1298  rm -rf conftest*
1299  ac_cv_header_stdc=no
1300fi
1301rm -f conftest*
1302
1303fi
1304
1305if test $ac_cv_header_stdc = yes; then
1306  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1307cat > conftest.$ac_ext <<EOF
1308#line 1309 "configure"
1309#include "confdefs.h"
1310#include <stdlib.h>
1311EOF
1312if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1313  egrep "free" >/dev/null 2>&1; then
1314  :
1315else
1316  rm -rf conftest*
1317  ac_cv_header_stdc=no
1318fi
1319rm -f conftest*
1320
1321fi
1322
1323if test $ac_cv_header_stdc = yes; then
1324  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1325if test "$cross_compiling" = yes; then
1326  :
1327else
1328  cat > conftest.$ac_ext <<EOF
1329#line 1330 "configure"
1330#include "confdefs.h"
1331#include <ctype.h>
1332#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1333#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1334#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1335int main () { int i; for (i = 0; i < 256; i++)
1336if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1337exit (0); }
1338
1339EOF
1340if { (eval echo configure:1341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1341then
1342  :
1343else
1344  echo "configure: failed program was:" >&5
1345  cat conftest.$ac_ext >&5
1346  rm -fr conftest*
1347  ac_cv_header_stdc=no
1348fi
1349rm -fr conftest*
1350fi
1351
1352fi
1353fi
1354
1355echo "$ac_t""$ac_cv_header_stdc" 1>&6
1356if test $ac_cv_header_stdc = yes; then
1357  cat >> confdefs.h <<\EOF
1358#define STDC_HEADERS 1
1359EOF
1360
1361fi
1362
1363echo $ac_n "checking whether sys/types.h defines makedev""... $ac_c" 1>&6
1364echo "configure:1365: checking whether sys/types.h defines makedev" >&5
1365if eval "test \"`echo '$''{'ac_cv_header_sys_types_h_makedev'+set}'`\" = set"; then
1366  echo $ac_n "(cached) $ac_c" 1>&6
1367else
1368  cat > conftest.$ac_ext <<EOF
1369#line 1370 "configure"
1370#include "confdefs.h"
1371#include <sys/types.h>
1372int main() {
1373return makedev(0, 0);
1374; return 0; }
1375EOF
1376if { (eval echo configure:1377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1377  rm -rf conftest*
1378  ac_cv_header_sys_types_h_makedev=yes
1379else
1380  echo "configure: failed program was:" >&5
1381  cat conftest.$ac_ext >&5
1382  rm -rf conftest*
1383  ac_cv_header_sys_types_h_makedev=no
1384fi
1385rm -f conftest*
1386
1387fi
1388
1389echo "$ac_t""$ac_cv_header_sys_types_h_makedev" 1>&6
1390
1391if test $ac_cv_header_sys_types_h_makedev = no; then
1392ac_safe=`echo "sys/mkdev.h" | sed 'y%./+-%__p_%'`
1393echo $ac_n "checking for sys/mkdev.h""... $ac_c" 1>&6
1394echo "configure:1395: checking for sys/mkdev.h" >&5
1395if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1396  echo $ac_n "(cached) $ac_c" 1>&6
1397else
1398  cat > conftest.$ac_ext <<EOF
1399#line 1400 "configure"
1400#include "confdefs.h"
1401#include <sys/mkdev.h>
1402EOF
1403ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1404{ (eval echo configure:1405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1405ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1406if test -z "$ac_err"; then
1407  rm -rf conftest*
1408  eval "ac_cv_header_$ac_safe=yes"
1409else
1410  echo "$ac_err" >&5
1411  echo "configure: failed program was:" >&5
1412  cat conftest.$ac_ext >&5
1413  rm -rf conftest*
1414  eval "ac_cv_header_$ac_safe=no"
1415fi
1416rm -f conftest*
1417fi
1418if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1419  echo "$ac_t""yes" 1>&6
1420  cat >> confdefs.h <<\EOF
1421#define MAJOR_IN_MKDEV 1
1422EOF
1423
1424else
1425  echo "$ac_t""no" 1>&6
1426fi
1427
1428
1429  if test $ac_cv_header_sys_mkdev_h = no; then
1430ac_safe=`echo "sys/sysmacros.h" | sed 'y%./+-%__p_%'`
1431echo $ac_n "checking for sys/sysmacros.h""... $ac_c" 1>&6
1432echo "configure:1433: checking for sys/sysmacros.h" >&5
1433if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1434  echo $ac_n "(cached) $ac_c" 1>&6
1435else
1436  cat > conftest.$ac_ext <<EOF
1437#line 1438 "configure"
1438#include "confdefs.h"
1439#include <sys/sysmacros.h>
1440EOF
1441ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1442{ (eval echo configure:1443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1443ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1444if test -z "$ac_err"; then
1445  rm -rf conftest*
1446  eval "ac_cv_header_$ac_safe=yes"
1447else
1448  echo "$ac_err" >&5
1449  echo "configure: failed program was:" >&5
1450  cat conftest.$ac_ext >&5
1451  rm -rf conftest*
1452  eval "ac_cv_header_$ac_safe=no"
1453fi
1454rm -f conftest*
1455fi
1456if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1457  echo "$ac_t""yes" 1>&6
1458  cat >> confdefs.h <<\EOF
1459#define MAJOR_IN_SYSMACROS 1
1460EOF
1461
1462else
1463  echo "$ac_t""no" 1>&6
1464fi
1465
1466  fi
1467fi
1468
1469echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1470echo "configure:1471: checking for sys/wait.h that is POSIX.1 compatible" >&5
1471if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1472  echo $ac_n "(cached) $ac_c" 1>&6
1473else
1474  cat > conftest.$ac_ext <<EOF
1475#line 1476 "configure"
1476#include "confdefs.h"
1477#include <sys/types.h>
1478#include <sys/wait.h>
1479#ifndef WEXITSTATUS
1480#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1481#endif
1482#ifndef WIFEXITED
1483#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1484#endif
1485int main() {
1486int s;
1487wait (&s);
1488s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1489; return 0; }
1490EOF
1491if { (eval echo configure:1492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1492  rm -rf conftest*
1493  ac_cv_header_sys_wait_h=yes
1494else
1495  echo "configure: failed program was:" >&5
1496  cat conftest.$ac_ext >&5
1497  rm -rf conftest*
1498  ac_cv_header_sys_wait_h=no
1499fi
1500rm -f conftest*
1501fi
1502
1503echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1504if test $ac_cv_header_sys_wait_h = yes; then
1505  cat >> confdefs.h <<\EOF
1506#define HAVE_SYS_WAIT_H 1
1507EOF
1508
1509fi
1510
1511for ac_hdr in stdint.h
1512do
1513ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1514echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1515echo "configure:1516: checking for $ac_hdr" >&5
1516if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1517  echo $ac_n "(cached) $ac_c" 1>&6
1518else
1519  cat > conftest.$ac_ext <<EOF
1520#line 1521 "configure"
1521#include "confdefs.h"
1522#include <$ac_hdr>
1523EOF
1524ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1525{ (eval echo configure:1526: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1526ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1527if test -z "$ac_err"; then
1528  rm -rf conftest*
1529  eval "ac_cv_header_$ac_safe=yes"
1530else
1531  echo "$ac_err" >&5
1532  echo "configure: failed program was:" >&5
1533  cat conftest.$ac_ext >&5
1534  rm -rf conftest*
1535  eval "ac_cv_header_$ac_safe=no"
1536fi
1537rm -f conftest*
1538fi
1539if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1540  echo "$ac_t""yes" 1>&6
1541    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1542  cat >> confdefs.h <<EOF
1543#define $ac_tr_hdr 1
1544EOF
1545 
1546else
1547  echo "$ac_t""no" 1>&6
1548fi
1549done
1550
1551for ac_hdr in fcntl.h locale.h
1552do
1553ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1554echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1555echo "configure:1556: checking for $ac_hdr" >&5
1556if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1557  echo $ac_n "(cached) $ac_c" 1>&6
1558else
1559  cat > conftest.$ac_ext <<EOF
1560#line 1561 "configure"
1561#include "confdefs.h"
1562#include <$ac_hdr>
1563EOF
1564ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1565{ (eval echo configure:1566: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1566ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1567if test -z "$ac_err"; then
1568  rm -rf conftest*
1569  eval "ac_cv_header_$ac_safe=yes"
1570else
1571  echo "$ac_err" >&5
1572  echo "configure: failed program was:" >&5
1573  cat conftest.$ac_ext >&5
1574  rm -rf conftest*
1575  eval "ac_cv_header_$ac_safe=no"
1576fi
1577rm -f conftest*
1578fi
1579if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1580  echo "$ac_t""yes" 1>&6
1581    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1582  cat >> confdefs.h <<EOF
1583#define $ac_tr_hdr 1
1584EOF
1585 
1586else
1587  echo "$ac_t""no" 1>&6
1588fi
1589done
1590
1591for ac_hdr in sys/mman.h sys/stat.h sys/types.h
1592do
1593ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1594echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1595echo "configure:1596: checking for $ac_hdr" >&5
1596if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1597  echo $ac_n "(cached) $ac_c" 1>&6
1598else
1599  cat > conftest.$ac_ext <<EOF
1600#line 1601 "configure"
1601#include "confdefs.h"
1602#include <$ac_hdr>
1603EOF
1604ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1605{ (eval echo configure:1606: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1606ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1607if test -z "$ac_err"; then
1608  rm -rf conftest*
1609  eval "ac_cv_header_$ac_safe=yes"
1610else
1611  echo "$ac_err" >&5
1612  echo "configure: failed program was:" >&5
1613  cat conftest.$ac_ext >&5
1614  rm -rf conftest*
1615  eval "ac_cv_header_$ac_safe=no"
1616fi
1617rm -f conftest*
1618fi
1619if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1620  echo "$ac_t""yes" 1>&6
1621    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1622  cat >> confdefs.h <<EOF
1623#define $ac_tr_hdr 1
1624EOF
1625 
1626else
1627  echo "$ac_t""no" 1>&6
1628fi
1629done
1630
1631for ac_hdr in unistd.h
1632do
1633ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1634echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1635echo "configure:1636: checking for $ac_hdr" >&5
1636if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1637  echo $ac_n "(cached) $ac_c" 1>&6
1638else
1639  cat > conftest.$ac_ext <<EOF
1640#line 1641 "configure"
1641#include "confdefs.h"
1642#include <$ac_hdr>
1643EOF
1644ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1645{ (eval echo configure:1646: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1646ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1647if test -z "$ac_err"; then
1648  rm -rf conftest*
1649  eval "ac_cv_header_$ac_safe=yes"
1650else
1651  echo "$ac_err" >&5
1652  echo "configure: failed program was:" >&5
1653  cat conftest.$ac_ext >&5
1654  rm -rf conftest*
1655  eval "ac_cv_header_$ac_safe=no"
1656fi
1657rm -f conftest*
1658fi
1659if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1660  echo "$ac_t""yes" 1>&6
1661    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1662  cat >> confdefs.h <<EOF
1663#define $ac_tr_hdr 1
1664EOF
1665 
1666else
1667  echo "$ac_t""no" 1>&6
1668fi
1669done
1670
1671for ac_hdr in getopt.h
1672do
1673ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1674echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1675echo "configure:1676: checking for $ac_hdr" >&5
1676if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1677  echo $ac_n "(cached) $ac_c" 1>&6
1678else
1679  cat > conftest.$ac_ext <<EOF
1680#line 1681 "configure"
1681#include "confdefs.h"
1682#include <$ac_hdr>
1683EOF
1684ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1685{ (eval echo configure:1686: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1686ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1687if test -z "$ac_err"; then
1688  rm -rf conftest*
1689  eval "ac_cv_header_$ac_safe=yes"
1690else
1691  echo "$ac_err" >&5
1692  echo "configure: failed program was:" >&5
1693  cat conftest.$ac_ext >&5
1694  rm -rf conftest*
1695  eval "ac_cv_header_$ac_safe=no"
1696fi
1697rm -f conftest*
1698fi
1699if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1700  echo "$ac_t""yes" 1>&6
1701    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1702  cat >> confdefs.h <<EOF
1703#define $ac_tr_hdr 1
1704EOF
1705 
1706else
1707  echo "$ac_t""no" 1>&6
1708fi
1709done
1710
1711for ac_hdr in locale.h
1712do
1713ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1714echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1715echo "configure:1716: checking for $ac_hdr" >&5
1716if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1717  echo $ac_n "(cached) $ac_c" 1>&6
1718else
1719  cat > conftest.$ac_ext <<EOF
1720#line 1721 "configure"
1721#include "confdefs.h"
1722#include <$ac_hdr>
1723EOF
1724ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1725{ (eval echo configure:1726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1726ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1727if test -z "$ac_err"; then
1728  rm -rf conftest*
1729  eval "ac_cv_header_$ac_safe=yes"
1730else
1731  echo "$ac_err" >&5
1732  echo "configure: failed program was:" >&5
1733  cat conftest.$ac_ext >&5
1734  rm -rf conftest*
1735  eval "ac_cv_header_$ac_safe=no"
1736fi
1737rm -f conftest*
1738fi
1739if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1740  echo "$ac_t""yes" 1>&6
1741    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1742  cat >> confdefs.h <<EOF
1743#define $ac_tr_hdr 1
1744EOF
1745 
1746else
1747  echo "$ac_t""no" 1>&6
1748fi
1749done
1750
1751for ac_hdr in stdint.h
1752do
1753ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1754echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1755echo "configure:1756: checking for $ac_hdr" >&5
1756if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1757  echo $ac_n "(cached) $ac_c" 1>&6
1758else
1759  cat > conftest.$ac_ext <<EOF
1760#line 1761 "configure"
1761#include "confdefs.h"
1762#include <$ac_hdr>
1763EOF
1764ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1765{ (eval echo configure:1766: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1766ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1767if test -z "$ac_err"; then
1768  rm -rf conftest*
1769  eval "ac_cv_header_$ac_safe=yes"
1770else
1771  echo "$ac_err" >&5
1772  echo "configure: failed program was:" >&5
1773  cat conftest.$ac_ext >&5
1774  rm -rf conftest*
1775  eval "ac_cv_header_$ac_safe=no"
1776fi
1777rm -f conftest*
1778fi
1779if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1780  echo "$ac_t""yes" 1>&6
1781    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1782  cat >> confdefs.h <<EOF
1783#define $ac_tr_hdr 1
1784EOF
1785 
1786else
1787  echo "$ac_t""no" 1>&6
1788fi
1789done
1790
1791
1792echo $ac_n "checking for working const""... $ac_c" 1>&6
1793echo "configure:1794: checking for working const" >&5
1794if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1795  echo $ac_n "(cached) $ac_c" 1>&6
1796else
1797  cat > conftest.$ac_ext <<EOF
1798#line 1799 "configure"
1799#include "confdefs.h"
1800
1801int main() {
1802
1803/* Ultrix mips cc rejects this.  */
1804typedef int charset[2]; const charset x;
1805/* SunOS 4.1.1 cc rejects this.  */
1806char const *const *ccp;
1807char **p;
1808/* NEC SVR4.0.2 mips cc rejects this.  */
1809struct point {int x, y;};
1810static struct point const zero = {0,0};
1811/* AIX XL C 1.02.0.0 rejects this.
1812   It does not let you subtract one const X* pointer from another in an arm
1813   of an if-expression whose if-part is not a constant expression */
1814const char *g = "string";
1815ccp = &g + (g ? g-g : 0);
1816/* HPUX 7.0 cc rejects these. */
1817++ccp;
1818p = (char**) ccp;
1819ccp = (char const *const *) p;
1820{ /* SCO 3.2v4 cc rejects this.  */
1821  char *t;
1822  char const *s = 0 ? (char *) 0 : (char const *) 0;
1823
1824  *t++ = 0;
1825}
1826{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
1827  int x[] = {25, 17};
1828  const int *foo = &x[0];
1829  ++foo;
1830}
1831{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1832  typedef const int *iptr;
1833  iptr p = 0;
1834  ++p;
1835}
1836{ /* AIX XL C 1.02.0.0 rejects this saying
1837     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1838  struct s { int j; const int *ap[3]; };
1839  struct s *b; b->j = 5;
1840}
1841{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1842  const int foo = 10;
1843}
1844
1845; return 0; }
1846EOF
1847if { (eval echo configure:1848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1848  rm -rf conftest*
1849  ac_cv_c_const=yes
1850else
1851  echo "configure: failed program was:" >&5
1852  cat conftest.$ac_ext >&5
1853  rm -rf conftest*
1854  ac_cv_c_const=no
1855fi
1856rm -f conftest*
1857fi
1858
1859echo "$ac_t""$ac_cv_c_const" 1>&6
1860if test $ac_cv_c_const = no; then
1861  cat >> confdefs.h <<\EOF
1862#define const 
1863EOF
1864
1865fi
1866
1867echo $ac_n "checking for off_t""... $ac_c" 1>&6
1868echo "configure:1869: checking for off_t" >&5
1869if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1870  echo $ac_n "(cached) $ac_c" 1>&6
1871else
1872  cat > conftest.$ac_ext <<EOF
1873#line 1874 "configure"
1874#include "confdefs.h"
1875#include <sys/types.h>
1876#if STDC_HEADERS
1877#include <stdlib.h>
1878#include <stddef.h>
1879#endif
1880EOF
1881if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1882  egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1883  rm -rf conftest*
1884  ac_cv_type_off_t=yes
1885else
1886  rm -rf conftest*
1887  ac_cv_type_off_t=no
1888fi
1889rm -f conftest*
1890
1891fi
1892echo "$ac_t""$ac_cv_type_off_t" 1>&6
1893if test $ac_cv_type_off_t = no; then
1894  cat >> confdefs.h <<\EOF
1895#define off_t long
1896EOF
1897
1898fi
1899
1900echo $ac_n "checking for size_t""... $ac_c" 1>&6
1901echo "configure:1902: checking for size_t" >&5
1902if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1903  echo $ac_n "(cached) $ac_c" 1>&6
1904else
1905  cat > conftest.$ac_ext <<EOF
1906#line 1907 "configure"
1907#include "confdefs.h"
1908#include <sys/types.h>
1909#if STDC_HEADERS
1910#include <stdlib.h>
1911#include <stddef.h>
1912#endif
1913EOF
1914if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1915  egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1916  rm -rf conftest*
1917  ac_cv_type_size_t=yes
1918else
1919  rm -rf conftest*
1920  ac_cv_type_size_t=no
1921fi
1922rm -f conftest*
1923
1924fi
1925echo "$ac_t""$ac_cv_type_size_t" 1>&6
1926if test $ac_cv_type_size_t = no; then
1927  cat >> confdefs.h <<\EOF
1928#define size_t unsigned
1929EOF
1930
1931fi
1932
1933echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
1934echo "configure:1935: checking for st_rdev in struct stat" >&5
1935if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
1936  echo $ac_n "(cached) $ac_c" 1>&6
1937else
1938  cat > conftest.$ac_ext <<EOF
1939#line 1940 "configure"
1940#include "confdefs.h"
1941#include <sys/types.h>
1942#include <sys/stat.h>
1943int main() {
1944struct stat s; s.st_rdev;
1945; return 0; }
1946EOF
1947if { (eval echo configure:1948: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1948  rm -rf conftest*
1949  ac_cv_struct_st_rdev=yes
1950else
1951  echo "configure: failed program was:" >&5
1952  cat conftest.$ac_ext >&5
1953  rm -rf conftest*
1954  ac_cv_struct_st_rdev=no
1955fi
1956rm -f conftest*
1957fi
1958
1959echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
1960if test $ac_cv_struct_st_rdev = yes; then
1961  cat >> confdefs.h <<\EOF
1962#define HAVE_ST_RDEV 1
1963EOF
1964
1965fi
1966
1967echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1968echo "configure:1969: checking whether struct tm is in sys/time.h or time.h" >&5
1969if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1970  echo $ac_n "(cached) $ac_c" 1>&6
1971else
1972  cat > conftest.$ac_ext <<EOF
1973#line 1974 "configure"
1974#include "confdefs.h"
1975#include <sys/types.h>
1976#include <time.h>
1977int main() {
1978struct tm *tp; tp->tm_sec;
1979; return 0; }
1980EOF
1981if { (eval echo configure:1982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1982  rm -rf conftest*
1983  ac_cv_struct_tm=time.h
1984else
1985  echo "configure: failed program was:" >&5
1986  cat conftest.$ac_ext >&5
1987  rm -rf conftest*
1988  ac_cv_struct_tm=sys/time.h
1989fi
1990rm -f conftest*
1991fi
1992
1993echo "$ac_t""$ac_cv_struct_tm" 1>&6
1994if test $ac_cv_struct_tm = sys/time.h; then
1995  cat >> confdefs.h <<\EOF
1996#define TM_IN_SYS_TIME 1
1997EOF
1998
1999fi
2000
2001echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
2002echo "configure:2003: checking for tm_zone in struct tm" >&5
2003if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
2004  echo $ac_n "(cached) $ac_c" 1>&6
2005else
2006  cat > conftest.$ac_ext <<EOF
2007#line 2008 "configure"
2008#include "confdefs.h"
2009#include <sys/types.h>
2010#include <$ac_cv_struct_tm>
2011int main() {
2012struct tm tm; tm.tm_zone;
2013; return 0; }
2014EOF
2015if { (eval echo configure:2016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2016  rm -rf conftest*
2017  ac_cv_struct_tm_zone=yes
2018else
2019  echo "configure: failed program was:" >&5
2020  cat conftest.$ac_ext >&5
2021  rm -rf conftest*
2022  ac_cv_struct_tm_zone=no
2023fi
2024rm -f conftest*
2025fi
2026
2027echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
2028if test "$ac_cv_struct_tm_zone" = yes; then
2029  cat >> confdefs.h <<\EOF
2030#define HAVE_TM_ZONE 1
2031EOF
2032
2033fi
2034echo $ac_n "checking for tzname""... $ac_c" 1>&6
2035echo "configure:2036: checking for tzname" >&5
2036if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
2037  echo $ac_n "(cached) $ac_c" 1>&6
2038else
2039  cat > conftest.$ac_ext <<EOF
2040#line 2041 "configure"
2041#include "confdefs.h"
2042#include <time.h>
2043#ifndef tzname /* For SGI.  */
2044extern char *tzname[]; /* RS6000 and others reject char **tzname.  */
2045#endif
2046int main() {
2047atoi(*tzname);
2048; return 0; }
2049EOF
2050if { (eval echo configure:2051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2051  rm -rf conftest*
2052  ac_cv_var_tzname=yes
2053else
2054  echo "configure: failed program was:" >&5
2055  cat conftest.$ac_ext >&5
2056  rm -rf conftest*
2057  ac_cv_var_tzname=no
2058fi
2059rm -f conftest*
2060fi
2061
2062echo "$ac_t""$ac_cv_var_tzname" 1>&6
2063  if test $ac_cv_var_tzname = yes; then
2064    cat >> confdefs.h <<\EOF
2065#define HAVE_TZNAME 1
2066EOF
2067
2068  fi
2069
2070echo $ac_n "checking for tm_isdst in struct tm""... $ac_c" 1>&6
2071echo "configure:2072: checking for tm_isdst in struct tm" >&5
2072if eval "test \"`echo '$''{'ac_cv_struct_tm_isdst'+set}'`\" = set"; then
2073  echo $ac_n "(cached) $ac_c" 1>&6
2074else
2075  cat > conftest.$ac_ext <<EOF
2076#line 2077 "configure"
2077#include "confdefs.h"
2078#include <sys/types.h>
2079#include <$ac_cv_struct_tm>
2080int main() {
2081struct tm tm; tm.tm_isdst;
2082; return 0; }
2083EOF
2084if { (eval echo configure:2085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2085  rm -rf conftest*
2086  ac_cv_struct_tm_isdst=yes
2087else
2088  echo "configure: failed program was:" >&5
2089  cat conftest.$ac_ext >&5
2090  rm -rf conftest*
2091  ac_cv_struct_tm_isdst=no
2092fi
2093rm -f conftest*
2094fi
2095
2096echo "$ac_t""$ac_cv_struct_tm_isdst" 1>&6
2097if test "$ac_cv_struct_tm_isdst" = yes; then
2098  cat >> confdefs.h <<\EOF
2099#define HAVE_TM_ISDST 1
2100EOF
2101
2102fi
2103echo $ac_n "checking for daylight""... $ac_c" 1>&6
2104echo "configure:2105: checking for daylight" >&5
2105if eval "test \"`echo '$''{'ac_cv_var_daylight'+set}'`\" = set"; then
2106  echo $ac_n "(cached) $ac_c" 1>&6
2107else
2108  cat > conftest.$ac_ext <<EOF
2109#line 2110 "configure"
2110#include "confdefs.h"
2111#include <time.h>
2112#ifndef daylight /* In case IRIX #defines this, too  */
2113extern int daylight;
2114#endif
2115int main() {
2116atoi(daylight);
2117; return 0; }
2118EOF
2119if { (eval echo configure:2120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2120  rm -rf conftest*
2121  ac_cv_var_daylight=yes
2122else
2123  echo "configure: failed program was:" >&5
2124  cat conftest.$ac_ext >&5
2125  rm -rf conftest*
2126  ac_cv_var_daylight=no
2127fi
2128rm -f conftest*
2129fi
2130
2131echo "$ac_t""$ac_cv_var_daylight" 1>&6
2132  if test $ac_cv_var_daylight = yes; then
2133    cat >> confdefs.h <<\EOF
2134#define HAVE_DAYLIGHT 1
2135EOF
2136
2137  fi
2138
2139
2140   # Check whether --enable-largefile or --disable-largefile was given.
2141if test "${enable_largefile+set}" = set; then
2142  enableval="$enable_largefile"
2143  :
2144fi
2145
2146   if test "$enable_largefile" != no; then
2147
2148     echo $ac_n "checking for special C compiler options needed for large files=
2149""... $ac_c" 1>&6
2150echo "configure:2151: checking for special C compiler options needed for large files=
2151" >&5
2152if eval "test \"`echo '$''{'ac_cv_sys_largefile_CC'+set}'`\" = set"; then
2153  echo $ac_n "(cached) $ac_c" 1>&6
2154else
2155  ac_cv_sys_largefile_CC=no
2156        if test "$GCC" != yes; then
2157	  # IRIX 6.2 and later do not support large files by default,
2158	  # so use the C compiler's -n32 option if that helps.
2159	  cat > conftest.$ac_ext <<EOF
2160#line 2161 "configure"
2161#include "confdefs.h"
2162#include <sys/types.h>
2163    /* Check that off_t can represent 2**63 - 1 correctly.
2164       We can't simply "#define LARGE_OFF_T 9223372036854775807",
2165       since some C++ compilers masquerading as C compilers
2166       incorrectly reject 9223372036854775807.  */
2167#   define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2168    int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2169			&& LARGE_OFF_T % 2147483647 == 1)
2170		       ? 1 : -1];
2171  
2172int main() {
2173
2174; return 0; }
2175EOF
2176if { (eval echo configure:2177: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2177  :
2178else
2179  echo "configure: failed program was:" >&5
2180  cat conftest.$ac_ext >&5
2181  rm -rf conftest*
2182  ac_save_CC="$CC"
2183	     CC="$CC -n32"
2184	     cat > conftest.$ac_ext <<EOF
2185#line 2186 "configure"
2186#include "confdefs.h"
2187#include <sys/types.h>
2188    /* Check that off_t can represent 2**63 - 1 correctly.
2189       We can't simply "#define LARGE_OFF_T 9223372036854775807",
2190       since some C++ compilers masquerading as C compilers
2191       incorrectly reject 9223372036854775807.  */
2192#   define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2193    int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2194			&& LARGE_OFF_T % 2147483647 == 1)
2195		       ? 1 : -1];
2196  
2197int main() {
2198
2199; return 0; }
2200EOF
2201if { (eval echo configure:2202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2202  rm -rf conftest*
2203  ac_cv_sys_largefile_CC=' -n32'
2204else
2205  echo "configure: failed program was:" >&5
2206  cat conftest.$ac_ext >&5
2207fi
2208rm -f conftest*
2209	     CC="$ac_save_CC"
2210fi
2211rm -f conftest*
2212        fi
2213fi
2214
2215echo "$ac_t""$ac_cv_sys_largefile_CC" 1>&6
2216     if test "$ac_cv_sys_largefile_CC" != no; then
2217       CC="$CC$ac_cv_sys_largefile_CC"
2218     fi
2219
2220     echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
2221echo "configure:2222: checking for _FILE_OFFSET_BITS value needed for large files" >&5
2222if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
2223  echo $ac_n "(cached) $ac_c" 1>&6
2224else
2225  ac_cv_sys_file_offset_bits=no
2226      cat > conftest.$ac_ext <<EOF
2227#line 2228 "configure"
2228#include "confdefs.h"
2229#include <sys/types.h>
2230    /* Check that off_t can represent 2**63 - 1 correctly.
2231       We can't simply "#define LARGE_OFF_T 9223372036854775807",
2232       since some C++ compilers masquerading as C compilers
2233       incorrectly reject 9223372036854775807.  */
2234#   define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2235    int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2236			&& LARGE_OFF_T % 2147483647 == 1)
2237		       ? 1 : -1];
2238  
2239int main() {
2240
2241; return 0; }
2242EOF
2243if { (eval echo configure:2244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2244  :
2245else
2246  echo "configure: failed program was:" >&5
2247  cat conftest.$ac_ext >&5
2248  rm -rf conftest*
2249  cat > conftest.$ac_ext <<EOF
2250#line 2251 "configure"
2251#include "confdefs.h"
2252#define _FILE_OFFSET_BITS 64
2253#include <sys/types.h>
2254    /* Check that off_t can represent 2**63 - 1 correctly.
2255       We can't simply "#define LARGE_OFF_T 9223372036854775807",
2256       since some C++ compilers masquerading as C compilers
2257       incorrectly reject 9223372036854775807.  */
2258#   define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2259    int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2260			&& LARGE_OFF_T % 2147483647 == 1)
2261		       ? 1 : -1];
2262  
2263	   
2264int main() {
2265
2266; return 0; }
2267EOF
2268if { (eval echo configure:2269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2269  rm -rf conftest*
2270  ac_cv_sys_file_offset_bits=64
2271else
2272  echo "configure: failed program was:" >&5
2273  cat conftest.$ac_ext >&5
2274fi
2275rm -f conftest*
2276fi
2277rm -f conftest*
2278fi
2279
2280echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
2281   if test "$ac_cv_sys_file_offset_bits" != no; then
2282     cat >> confdefs.h <<EOF
2283#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
2284EOF
2285
2286   fi
2287     echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
2288echo "configure:2289: checking for _LARGE_FILES value needed for large files" >&5
2289if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
2290  echo $ac_n "(cached) $ac_c" 1>&6
2291else
2292  ac_cv_sys_large_files=no
2293      cat > conftest.$ac_ext <<EOF
2294#line 2295 "configure"
2295#include "confdefs.h"
2296#include <sys/types.h>
2297    /* Check that off_t can represent 2**63 - 1 correctly.
2298       We can't simply "#define LARGE_OFF_T 9223372036854775807",
2299       since some C++ compilers masquerading as C compilers
2300       incorrectly reject 9223372036854775807.  */
2301#   define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2302    int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2303			&& LARGE_OFF_T % 2147483647 == 1)
2304		       ? 1 : -1];
2305  
2306int main() {
2307
2308; return 0; }
2309EOF
2310if { (eval echo configure:2311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2311  :
2312else
2313  echo "configure: failed program was:" >&5
2314  cat conftest.$ac_ext >&5
2315  rm -rf conftest*
2316  cat > conftest.$ac_ext <<EOF
2317#line 2318 "configure"
2318#include "confdefs.h"
2319#define _LARGE_FILES 1
2320#include <sys/types.h>
2321    /* Check that off_t can represent 2**63 - 1 correctly.
2322       We can't simply "#define LARGE_OFF_T 9223372036854775807",
2323       since some C++ compilers masquerading as C compilers
2324       incorrectly reject 9223372036854775807.  */
2325#   define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2326    int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2327			&& LARGE_OFF_T % 2147483647 == 1)
2328		       ? 1 : -1];
2329  
2330	   
2331int main() {
2332
2333; return 0; }
2334EOF
2335if { (eval echo configure:2336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2336  rm -rf conftest*
2337  ac_cv_sys_large_files=1
2338else
2339  echo "configure: failed program was:" >&5
2340  cat conftest.$ac_ext >&5
2341fi
2342rm -f conftest*
2343fi
2344rm -f conftest*
2345fi
2346
2347echo "$ac_t""$ac_cv_sys_large_files" 1>&6
2348   if test "$ac_cv_sys_large_files" != no; then
2349     cat >> confdefs.h <<EOF
2350#define _LARGE_FILES $ac_cv_sys_large_files
2351EOF
2352
2353   fi
2354   fi
2355  
2356
2357echo $ac_n "checking for uint8_t""... $ac_c" 1>&6
2358echo "configure:2359: checking for uint8_t" >&5
2359if eval "test \"`echo '$''{'ac_cv_type_uint8_t'+set}'`\" = set"; then
2360  echo $ac_n "(cached) $ac_c" 1>&6
2361else
2362  cat > conftest.$ac_ext <<EOF
2363#line 2364 "configure"
2364#include "confdefs.h"
2365#if HAVE_STDINT_H
2366#include <stdint.h>
2367#endif
2368#include <sys/types.h>
2369#if STDC_HEADERS
2370#include <stdlib.h>
2371#include <stddef.h>
2372#endif
2373EOF
2374if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2375  egrep "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2376  rm -rf conftest*
2377  ac_cv_type_uint8_t=yes
2378else
2379  rm -rf conftest*
2380  ac_cv_type_uint8_t=no
2381fi
2382rm -f conftest*
2383
2384fi
2385echo "$ac_t""$ac_cv_type_uint8_t" 1>&6
2386if test $ac_cv_type_uint8_t = no; then
2387  cat >> confdefs.h <<\EOF
2388#define uint8_t unsigned char
2389EOF
2390
2391fi
2392
2393echo $ac_n "checking for uint16_t""... $ac_c" 1>&6
2394echo "configure:2395: checking for uint16_t" >&5
2395if eval "test \"`echo '$''{'ac_cv_type_uint16_t'+set}'`\" = set"; then
2396  echo $ac_n "(cached) $ac_c" 1>&6
2397else
2398  cat > conftest.$ac_ext <<EOF
2399#line 2400 "configure"
2400#include "confdefs.h"
2401#if HAVE_STDINT_H
2402#include <stdint.h>
2403#endif
2404#include <sys/types.h>
2405#if STDC_HEADERS
2406#include <stdlib.h>
2407#include <stddef.h>
2408#endif
2409EOF
2410if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2411  egrep "(^|[^a-zA-Z_0-9])uint16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2412  rm -rf conftest*
2413  ac_cv_type_uint16_t=yes
2414else
2415  rm -rf conftest*
2416  ac_cv_type_uint16_t=no
2417fi
2418rm -f conftest*
2419
2420fi
2421echo "$ac_t""$ac_cv_type_uint16_t" 1>&6
2422if test $ac_cv_type_uint16_t = no; then
2423  cat >> confdefs.h <<\EOF
2424#define uint16_t unsigned short
2425EOF
2426
2427fi
2428
2429echo $ac_n "checking for uint32_t""... $ac_c" 1>&6
2430echo "configure:2431: checking for uint32_t" >&5
2431if eval "test \"`echo '$''{'ac_cv_type_uint32_t'+set}'`\" = set"; then
2432  echo $ac_n "(cached) $ac_c" 1>&6
2433else
2434  cat > conftest.$ac_ext <<EOF
2435#line 2436 "configure"
2436#include "confdefs.h"
2437#if HAVE_STDINT_H
2438#include <stdint.h>
2439#endif
2440#include <sys/types.h>
2441#if STDC_HEADERS
2442#include <stdlib.h>
2443#include <stddef.h>
2444#endif
2445EOF
2446if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2447  egrep "(^|[^a-zA-Z_0-9])uint32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2448  rm -rf conftest*
2449  ac_cv_type_uint32_t=yes
2450else
2451  rm -rf conftest*
2452  ac_cv_type_uint32_t=no
2453fi
2454rm -f conftest*
2455
2456fi
2457echo "$ac_t""$ac_cv_type_uint32_t" 1>&6
2458if test $ac_cv_type_uint32_t = no; then
2459  cat >> confdefs.h <<\EOF
2460#define uint32_t unsigned int
2461EOF
2462
2463fi
2464
2465echo $ac_n "checking for long long""... $ac_c" 1>&6
2466echo "configure:2467: checking for long long" >&5
2467if eval "test \"`echo '$''{'ac_cv_c_long_long'+set}'`\" = set"; then
2468  echo $ac_n "(cached) $ac_c" 1>&6
2469else
2470  if test "$GCC" = yes; then
2471  ac_cv_c_long_long=yes
2472else
2473if test "$cross_compiling" = yes; then
2474    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2475else
2476  cat > conftest.$ac_ext <<EOF
2477#line 2478 "configure"
2478#include "confdefs.h"
2479int main() {
2480long long foo = 0;
2481exit(sizeof(long long) < sizeof(long)); }
2482EOF
2483if { (eval echo configure:2484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2484then
2485  ac_cv_c_long_long=yes
2486else
2487  echo "configure: failed program was:" >&5
2488  cat conftest.$ac_ext >&5
2489  rm -fr conftest*
2490  ac_cv_c_long_long=no
2491fi
2492rm -fr conftest*
2493fi
2494
2495fi
2496fi
2497
2498echo "$ac_t""$ac_cv_c_long_long" 1>&6
2499if test $ac_cv_c_long_long = yes; then
2500  cat >> confdefs.h <<\EOF
2501#define HAVE_LONG_LONG 1
2502EOF
2503
2504fi
2505
2506if test $ac_cv_c_long_long = yes; then
2507  long64='unsigned long long';
2508else
2509  long64='unsigned long';
2510fi
2511echo $ac_n "checking for uint64_t""... $ac_c" 1>&6
2512echo "configure:2513: checking for uint64_t" >&5
2513if eval "test \"`echo '$''{'ac_cv_type_uint64_t'+set}'`\" = set"; then
2514  echo $ac_n "(cached) $ac_c" 1>&6
2515else
2516  cat > conftest.$ac_ext <<EOF
2517#line 2518 "configure"
2518#include "confdefs.h"
2519#if HAVE_STDINT_H
2520#include <stdint.h>
2521#endif
2522#include <sys/types.h>
2523#if STDC_HEADERS
2524#include <stdlib.h>
2525#include <stddef.h>
2526#endif
2527EOF
2528if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2529  egrep "(^|[^a-zA-Z_0-9])uint64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2530  rm -rf conftest*
2531  eval "ac_cv_type_uint64_t=yes"
2532else
2533  rm -rf conftest*
2534  eval "ac_cv_type_uint64_t=no"
2535fi
2536rm -f conftest*
2537
2538fi
2539if eval "test \"`echo '$ac_cv_type_'uint64_t`\" = yes"; then
2540  echo "$ac_t""yes" 1>&6
2541else
2542  echo "$ac_t""no" 1>&6
2543  cat >> confdefs.h <<EOF
2544#define uint64_t $long64
2545EOF
2546
2547fi
2548
2549
2550echo $ac_n "checking size of uint8_t""... $ac_c" 1>&6
2551echo "configure:2552: checking size of uint8_t" >&5
2552if eval "test \"`echo '$''{'ac_cv_sizeof_uint8_t'+set}'`\" = set"; then
2553  echo $ac_n "(cached) $ac_c" 1>&6
2554else
2555  if test "$cross_compiling" = yes; then
2556  ac_cv_sizeof_uint8_t=0
2557else
2558  cat > conftest.$ac_ext <<EOF
2559#line 2560 "configure"
2560#include "confdefs.h"
2561#if HAVE_STDINT_H
2562#include <stdint.h>
2563#endif
2564#include <sys/types.h>
2565#ifdef STDC_HEADERS
2566#include <stdlib.h>
2567#endif
2568
2569#include <stdio.h>
2570main()
2571{
2572  FILE *f=fopen("conftestval", "w");
2573  if (!f) exit(1);
2574  fprintf(f, "%d\n", sizeof(uint8_t));
2575  exit(0);
2576}
2577EOF
2578if { (eval echo configure:2579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2579then
2580  ac_cv_sizeof_uint8_t=`cat conftestval`
2581else
2582  echo "configure: failed program was:" >&5
2583  cat conftest.$ac_ext >&5
2584  rm -fr conftest*
2585  ac_cv_sizeof_uint8_t=0
2586fi
2587rm -fr conftest*
2588fi
2589
2590fi
2591echo "$ac_t""$ac_cv_sizeof_uint8_t" 1>&6
2592cat >> confdefs.h <<EOF
2593#define SIZEOF_UINT8_T $ac_cv_sizeof_uint8_t
2594EOF
2595
2596
2597
2598echo $ac_n "checking size of uint16_t""... $ac_c" 1>&6
2599echo "configure:2600: checking size of uint16_t" >&5
2600if eval "test \"`echo '$''{'ac_cv_sizeof_uint16_t'+set}'`\" = set"; then
2601  echo $ac_n "(cached) $ac_c" 1>&6
2602else
2603  if test "$cross_compiling" = yes; then
2604  ac_cv_sizeof_uint16_t=0
2605else
2606  cat > conftest.$ac_ext <<EOF
2607#line 2608 "configure"
2608#include "confdefs.h"
2609#if HAVE_STDINT_H
2610#include <stdint.h>
2611#endif
2612#include <sys/types.h>
2613#ifdef STDC_HEADERS
2614#include <stdlib.h>
2615#endif
2616
2617#include <stdio.h>
2618main()
2619{
2620  FILE *f=fopen("conftestval", "w");
2621  if (!f) exit(1);
2622  fprintf(f, "%d\n", sizeof(uint16_t));
2623  exit(0);
2624}
2625EOF
2626if { (eval echo configure:2627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2627then
2628  ac_cv_sizeof_uint16_t=`cat conftestval`
2629else
2630  echo "configure: failed program was:" >&5
2631  cat conftest.$ac_ext >&5
2632  rm -fr conftest*
2633  ac_cv_sizeof_uint16_t=0
2634fi
2635rm -fr conftest*
2636fi
2637
2638fi
2639echo "$ac_t""$ac_cv_sizeof_uint16_t" 1>&6
2640cat >> confdefs.h <<EOF
2641#define SIZEOF_UINT16_T $ac_cv_sizeof_uint16_t
2642EOF
2643
2644
2645
2646echo $ac_n "checking size of uint32_t""... $ac_c" 1>&6
2647echo "configure:2648: checking size of uint32_t" >&5
2648if eval "test \"`echo '$''{'ac_cv_sizeof_uint32_t'+set}'`\" = set"; then
2649  echo $ac_n "(cached) $ac_c" 1>&6
2650else
2651  if test "$cross_compiling" = yes; then
2652  ac_cv_sizeof_uint32_t=0
2653else
2654  cat > conftest.$ac_ext <<EOF
2655#line 2656 "configure"
2656#include "confdefs.h"
2657#if HAVE_STDINT_H
2658#include <stdint.h>
2659#endif
2660#include <sys/types.h>
2661#ifdef STDC_HEADERS
2662#include <stdlib.h>
2663#endif
2664
2665#include <stdio.h>
2666main()
2667{
2668  FILE *f=fopen("conftestval", "w");
2669  if (!f) exit(1);
2670  fprintf(f, "%d\n", sizeof(uint32_t));
2671  exit(0);
2672}
2673EOF
2674if { (eval echo configure:2675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2675then
2676  ac_cv_sizeof_uint32_t=`cat conftestval`
2677else
2678  echo "configure: failed program was:" >&5
2679  cat conftest.$ac_ext >&5
2680  rm -fr conftest*
2681  ac_cv_sizeof_uint32_t=0
2682fi
2683rm -fr conftest*
2684fi
2685
2686fi
2687echo "$ac_t""$ac_cv_sizeof_uint32_t" 1>&6
2688cat >> confdefs.h <<EOF
2689#define SIZEOF_UINT32_T $ac_cv_sizeof_uint32_t
2690EOF
2691
2692
2693
2694echo $ac_n "checking size of uint64_t""... $ac_c" 1>&6
2695echo "configure:2696: checking size of uint64_t" >&5
2696if eval "test \"`echo '$''{'ac_cv_sizeof_uint64_t'+set}'`\" = set"; then
2697  echo $ac_n "(cached) $ac_c" 1>&6
2698else
2699  if test "$cross_compiling" = yes; then
2700  ac_cv_sizeof_uint64_t=0
2701else
2702  cat > conftest.$ac_ext <<EOF
2703#line 2704 "configure"
2704#include "confdefs.h"
2705#if HAVE_STDINT_H
2706#include <stdint.h>
2707#endif
2708#include <sys/types.h>
2709#ifdef STDC_HEADERS
2710#include <stdlib.h>
2711#endif
2712
2713#include <stdio.h>
2714main()
2715{
2716  FILE *f=fopen("conftestval", "w");
2717  if (!f) exit(1);
2718  fprintf(f, "%d\n", sizeof(uint64_t));
2719  exit(0);
2720}
2721EOF
2722if { (eval echo configure:2723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2723then
2724  ac_cv_sizeof_uint64_t=`cat conftestval`
2725else
2726  echo "configure: failed program was:" >&5
2727  cat conftest.$ac_ext >&5
2728  rm -fr conftest*
2729  ac_cv_sizeof_uint64_t=0
2730fi
2731rm -fr conftest*
2732fi
2733
2734fi
2735echo "$ac_t""$ac_cv_sizeof_uint64_t" 1>&6
2736cat >> confdefs.h <<EOF
2737#define SIZEOF_UINT64_T $ac_cv_sizeof_uint64_t
2738EOF
2739
2740
2741
2742
2743for ac_func in mmap strerror strtoul mkstemp getopt_long
2744do
2745echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2746echo "configure:2747: checking for $ac_func" >&5
2747if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2748  echo $ac_n "(cached) $ac_c" 1>&6
2749else
2750  cat > conftest.$ac_ext <<EOF
2751#line 2752 "configure"
2752#include "confdefs.h"
2753/* System header to define __stub macros and hopefully few prototypes,
2754    which can conflict with char $ac_func(); below.  */
2755#include <assert.h>
2756/* Override any gcc2 internal prototype to avoid an error.  */
2757/* We use char because int might match the return type of a gcc2
2758    builtin and then its argument prototype would still apply.  */
2759char $ac_func();
2760
2761int main() {
2762
2763/* The GNU C library defines this for functions which it implements
2764    to always fail with ENOSYS.  Some functions are actually named
2765    something starting with __ and the normal name is an alias.  */
2766#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2767choke me
2768#else
2769$ac_func();
2770#endif
2771
2772; return 0; }
2773EOF
2774if { (eval echo configure:2775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2775  rm -rf conftest*
2776  eval "ac_cv_func_$ac_func=yes"
2777else
2778  echo "configure: failed program was:" >&5
2779  cat conftest.$ac_ext >&5
2780  rm -rf conftest*
2781  eval "ac_cv_func_$ac_func=no"
2782fi
2783rm -f conftest*
2784fi
2785
2786if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2787  echo "$ac_t""yes" 1>&6
2788    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2789  cat >> confdefs.h <<EOF
2790#define $ac_tr_func 1
2791EOF
2792 
2793else
2794  echo "$ac_t""no" 1>&6
2795fi
2796done
2797
2798
2799echo $ac_n "checking for gzopen in -lz""... $ac_c" 1>&6
2800echo "configure:2801: checking for gzopen in -lz" >&5
2801ac_lib_var=`echo z'_'gzopen | sed 'y%./+-%__p_%'`
2802if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2803  echo $ac_n "(cached) $ac_c" 1>&6
2804else
2805  ac_save_LIBS="$LIBS"
2806LIBS="-lz  $LIBS"
2807cat > conftest.$ac_ext <<EOF
2808#line 2809 "configure"
2809#include "confdefs.h"
2810/* Override any gcc2 internal prototype to avoid an error.  */
2811/* We use char because int might match the return type of a gcc2
2812    builtin and then its argument prototype would still apply.  */
2813char gzopen();
2814
2815int main() {
2816gzopen()
2817; return 0; }
2818EOF
2819if { (eval echo configure:2820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2820  rm -rf conftest*
2821  eval "ac_cv_lib_$ac_lib_var=yes"
2822else
2823  echo "configure: failed program was:" >&5
2824  cat conftest.$ac_ext >&5
2825  rm -rf conftest*
2826  eval "ac_cv_lib_$ac_lib_var=no"
2827fi
2828rm -f conftest*
2829LIBS="$ac_save_LIBS"
2830
2831fi
2832if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2833  echo "$ac_t""yes" 1>&6
2834    ac_tr_lib=HAVE_LIB`echo z | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2835    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2836  cat >> confdefs.h <<EOF
2837#define $ac_tr_lib 1
2838EOF
2839
2840  LIBS="-lz $LIBS"
2841
2842else
2843  echo "$ac_t""no" 1>&6
2844fi
2845
2846
2847trap '' 1 2 15
2848cat > confcache <<\EOF
2849# This file is a shell script that caches the results of configure
2850# tests run on this system so they can be shared between configure
2851# scripts and configure runs.  It is not useful on other systems.
2852# If it contains results you don't want to keep, you may remove or edit it.
2853#
2854# By default, configure uses ./config.cache as the cache file,
2855# creating it if it does not exist already.  You can give configure
2856# the --cache-file=FILE option to use a different cache file; that is
2857# what configure does when it calls configure scripts in
2858# subdirectories, so they share the cache.
2859# Giving --cache-file=/dev/null disables caching, for debugging configure.
2860# config.status only pays attention to the cache file if you give it the
2861# --recheck option to rerun configure.
2862#
2863EOF
2864# The following way of writing the cache mishandles newlines in values,
2865# but we know of no workaround that is simple, portable, and efficient.
2866# So, don't put newlines in cache variables' values.
2867# Ultrix sh set writes to stderr and can't be redirected directly,
2868# and sets the high bit in the cache file unless we assign to the vars.
2869(set) 2>&1 |
2870  case `(ac_space=' '; set | grep ac_space) 2>&1` in
2871  *ac_space=\ *)
2872    # `set' does not quote correctly, so add quotes (double-quote substitution
2873    # turns \\\\ into \\, and sed turns \\ into \).
2874    sed -n \
2875      -e "s/'/'\\\\''/g" \
2876      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2877    ;;
2878  *)
2879    # `set' quotes correctly as required by POSIX, so do not add quotes.
2880    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2881    ;;
2882  esac >> confcache
2883if cmp -s $cache_file confcache; then
2884  :
2885else
2886  if test -w $cache_file; then
2887    echo "updating cache $cache_file"
2888    cat confcache > $cache_file
2889  else
2890    echo "not updating unwritable cache $cache_file"
2891  fi
2892fi
2893rm -f confcache
2894
2895trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2896
2897test "x$prefix" = xNONE && prefix=$ac_default_prefix
2898# Let make expand exec_prefix.
2899test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2900
2901# Any assignment to VPATH causes Sun make to only execute
2902# the first set of double-colon rules, so remove it if not needed.
2903# If there is a colon in the path, we need to keep it.
2904if test "x$srcdir" = x.; then
2905  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
2906fi
2907
2908trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2909
2910DEFS=-DHAVE_CONFIG_H
2911
2912# Without the "./", some shells look in PATH for config.status.
2913: ${CONFIG_STATUS=./config.status}
2914
2915echo creating $CONFIG_STATUS
2916rm -f $CONFIG_STATUS
2917cat > $CONFIG_STATUS <<EOF
2918#! /bin/sh
2919# Generated automatically by configure.
2920# Run this file to recreate the current configuration.
2921# This directory was configured as follows,
2922# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2923#
2924# $0 $ac_configure_args
2925#
2926# Compiler output produced by configure, useful for debugging
2927# configure, is in ./config.log if it exists.
2928
2929ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2930for ac_option
2931do
2932  case "\$ac_option" in
2933  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2934    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2935    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2936  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2937    echo "$CONFIG_STATUS generated by autoconf version 2.13"
2938    exit 0 ;;
2939  -help | --help | --hel | --he | --h)
2940    echo "\$ac_cs_usage"; exit 0 ;;
2941  *) echo "\$ac_cs_usage"; exit 1 ;;
2942  esac
2943done
2944
2945ac_given_srcdir=$srcdir
2946ac_given_INSTALL="$INSTALL"
2947
2948trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2949EOF
2950cat >> $CONFIG_STATUS <<EOF
2951
2952# Protect against being on the right side of a sed subst in config.status.
2953sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2954 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2955$ac_vpsub
2956$extrasub
2957s%@SHELL@%$SHELL%g
2958s%@CFLAGS@%$CFLAGS%g
2959s%@CPPFLAGS@%$CPPFLAGS%g
2960s%@CXXFLAGS@%$CXXFLAGS%g
2961s%@FFLAGS@%$FFLAGS%g
2962s%@DEFS@%$DEFS%g
2963s%@LDFLAGS@%$LDFLAGS%g
2964s%@LIBS@%$LIBS%g
2965s%@exec_prefix@%$exec_prefix%g
2966s%@prefix@%$prefix%g
2967s%@program_transform_name@%$program_transform_name%g
2968s%@bindir@%$bindir%g
2969s%@sbindir@%$sbindir%g
2970s%@libexecdir@%$libexecdir%g
2971s%@datadir@%$datadir%g
2972s%@sysconfdir@%$sysconfdir%g
2973s%@sharedstatedir@%$sharedstatedir%g
2974s%@localstatedir@%$localstatedir%g
2975s%@libdir@%$libdir%g
2976s%@includedir@%$includedir%g
2977s%@oldincludedir@%$oldincludedir%g
2978s%@infodir@%$infodir%g
2979s%@mandir@%$mandir%g
2980s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2981s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2982s%@INSTALL_DATA@%$INSTALL_DATA%g
2983s%@PACKAGE@%$PACKAGE%g
2984s%@VERSION@%$VERSION%g
2985s%@ACLOCAL@%$ACLOCAL%g
2986s%@AUTOCONF@%$AUTOCONF%g
2987s%@AUTOMAKE@%$AUTOMAKE%g
2988s%@AUTOHEADER@%$AUTOHEADER%g
2989s%@MAKEINFO@%$MAKEINFO%g
2990s%@SET_MAKE@%$SET_MAKE%g
2991s%@fsect@%$fsect%g
2992s%@FSECT5_TRUE@%$FSECT5_TRUE%g
2993s%@FSECT5_FALSE@%$FSECT5_FALSE%g
2994s%@CC@%$CC%g
2995s%@LN_S@%$LN_S%g
2996s%@CPP@%$CPP%g
2997
2998CEOF
2999EOF
3000
3001cat >> $CONFIG_STATUS <<\EOF
3002
3003# Split the substitutions into bite-sized pieces for seds with
3004# small command number limits, like on Digital OSF/1 and HP-UX.
3005ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3006ac_file=1 # Number of current file.
3007ac_beg=1 # First line for current file.
3008ac_end=$ac_max_sed_cmds # Line after last line for current file.
3009ac_more_lines=:
3010ac_sed_cmds=""
3011while $ac_more_lines; do
3012  if test $ac_beg -gt 1; then
3013    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3014  else
3015    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3016  fi
3017  if test ! -s conftest.s$ac_file; then
3018    ac_more_lines=false
3019    rm -f conftest.s$ac_file
3020  else
3021    if test -z "$ac_sed_cmds"; then
3022      ac_sed_cmds="sed -f conftest.s$ac_file"
3023    else
3024      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3025    fi
3026    ac_file=`expr $ac_file + 1`
3027    ac_beg=$ac_end
3028    ac_end=`expr $ac_end + $ac_max_sed_cmds`
3029  fi
3030done
3031if test -z "$ac_sed_cmds"; then
3032  ac_sed_cmds=cat
3033fi
3034EOF
3035
3036cat >> $CONFIG_STATUS <<EOF
3037
3038CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
3039EOF
3040cat >> $CONFIG_STATUS <<\EOF
3041for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3042  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3043  case "$ac_file" in
3044  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3045       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3046  *) ac_file_in="${ac_file}.in" ;;
3047  esac
3048
3049  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3050
3051  # Remove last slash and all that follows it.  Not all systems have dirname.
3052  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3053  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3054    # The file is in a subdirectory.
3055    test ! -d "$ac_dir" && mkdir "$ac_dir"
3056    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3057    # A "../" for each directory in $ac_dir_suffix.
3058    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3059  else
3060    ac_dir_suffix= ac_dots=
3061  fi
3062
3063  case "$ac_given_srcdir" in
3064  .)  srcdir=.
3065      if test -z "$ac_dots"; then top_srcdir=.
3066      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3067  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3068  *) # Relative path.
3069    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3070    top_srcdir="$ac_dots$ac_given_srcdir" ;;
3071  esac
3072
3073  case "$ac_given_INSTALL" in
3074  [/$]*) INSTALL="$ac_given_INSTALL" ;;
3075  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3076  esac
3077
3078  echo creating "$ac_file"
3079  rm -f "$ac_file"
3080  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3081  case "$ac_file" in
3082  *Makefile*) ac_comsub="1i\\
3083# $configure_input" ;;
3084  *) ac_comsub= ;;
3085  esac
3086
3087  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3088  sed -e "$ac_comsub
3089s%@configure_input@%$configure_input%g
3090s%@srcdir@%$srcdir%g
3091s%@top_srcdir@%$top_srcdir%g
3092s%@INSTALL@%$INSTALL%g
3093" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3094fi; done
3095rm -f conftest.s*
3096
3097# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3098# NAME is the cpp macro being defined and VALUE is the value it is being given.
3099#
3100# ac_d sets the value in "#define NAME VALUE" lines.
3101ac_dA='s%^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
3102ac_dB='\([ 	][ 	]*\)[^ 	]*%\1#\2'
3103ac_dC='\3'
3104ac_dD='%g'
3105# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3106ac_uA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
3107ac_uB='\([ 	]\)%\1#\2define\3'
3108ac_uC=' '
3109ac_uD='\4%g'
3110# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3111ac_eA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
3112ac_eB='$%\1#\2define\3'
3113ac_eC=' '
3114ac_eD='%g'
3115
3116if test "${CONFIG_HEADERS+set}" != set; then
3117EOF
3118cat >> $CONFIG_STATUS <<EOF
3119  CONFIG_HEADERS="config.h"
3120EOF
3121cat >> $CONFIG_STATUS <<\EOF
3122fi
3123for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3124  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3125  case "$ac_file" in
3126  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3127       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3128  *) ac_file_in="${ac_file}.in" ;;
3129  esac
3130
3131  echo creating $ac_file
3132
3133  rm -f conftest.frag conftest.in conftest.out
3134  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3135  cat $ac_file_inputs > conftest.in
3136
3137EOF
3138
3139# Transform confdefs.h into a sed script conftest.vals that substitutes
3140# the proper values into config.h.in to produce config.h.  And first:
3141# Protect against being on the right side of a sed subst in config.status.
3142# Protect against being in an unquoted here document in config.status.
3143rm -f conftest.vals
3144cat > conftest.hdr <<\EOF
3145s/[\\&%]/\\&/g
3146s%[\\$`]%\\&%g
3147s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3148s%ac_d%ac_u%gp
3149s%ac_u%ac_e%gp
3150EOF
3151sed -n -f conftest.hdr confdefs.h > conftest.vals
3152rm -f conftest.hdr
3153
3154# This sed command replaces #undef with comments.  This is necessary, for
3155# example, in the case of _POSIX_SOURCE, which is predefined and required
3156# on some systems where configure will not decide to define it.
3157cat >> conftest.vals <<\EOF
3158s%^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3159EOF
3160
3161# Break up conftest.vals because some shells have a limit on
3162# the size of here documents, and old seds have small limits too.
3163
3164rm -f conftest.tail
3165while :
3166do
3167  ac_lines=`grep -c . conftest.vals`
3168  # grep -c gives empty output for an empty file on some AIX systems.
3169  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3170  # Write a limited-size here document to conftest.frag.
3171  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3172  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3173  echo 'CEOF
3174  sed -f conftest.frag conftest.in > conftest.out
3175  rm -f conftest.in
3176  mv conftest.out conftest.in
3177' >> $CONFIG_STATUS
3178  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3179  rm -f conftest.vals
3180  mv conftest.tail conftest.vals
3181done
3182rm -f conftest.vals
3183
3184cat >> $CONFIG_STATUS <<\EOF
3185  rm -f conftest.frag conftest.h
3186  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
3187  cat conftest.in >> conftest.h
3188  rm -f conftest.in
3189  if cmp -s $ac_file conftest.h 2>/dev/null; then
3190    echo "$ac_file is unchanged"
3191    rm -f conftest.h
3192  else
3193    # Remove last slash and all that follows it.  Not all systems have dirname.
3194      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3195      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3196      # The file is in a subdirectory.
3197      test ! -d "$ac_dir" && mkdir "$ac_dir"
3198    fi
3199    rm -f $ac_file
3200    mv conftest.h $ac_file
3201  fi
3202fi; done
3203
3204EOF
3205cat >> $CONFIG_STATUS <<EOF
3206
3207
3208EOF
3209cat >> $CONFIG_STATUS <<\EOF
3210test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3211
3212exit 0
3213EOF
3214chmod +x $CONFIG_STATUS
3215rm -fr confdefs* $ac_clean_files
3216test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3217
3218