source: trunk/third/m4/configure @ 13394

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