source: trunk/gsdl/packages/mg-1.3d/configure@ 13

Last change on this file since 13 was 13, checked in by rjmcnab, 25 years ago

* empty log message *

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 65.9 KB
Line 
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.4
5# Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15 --with-dmalloc use dmalloc, as in
16 ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz"
17ac_help="$ac_help
18 --with-regex use older regex in lieu of GNU rx for matching"
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.4"
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 core.* *.core $ac_clean_files; exit 1' 1 2 15
288
289# File descriptor usage:
290# 0 standard input
291# 1 file creation
292# 2 errors and warnings
293# 3 some systems may open it to /dev/tty
294# 4 used on the Kubota Titan
295# 6 checking for... messages and results
296# 5 compiler messages saved in config.log
297if test "$silent" = yes; then
298 exec 6>/dev/null
299else
300 exec 6>&1
301fi
302exec 5>./config.log
303
304echo "\
305This file contains any messages produced by compilers while
306running configure, to aid debugging if configure makes a mistake.
307" 1>&5
308
309# Strip out --no-create and --no-recursion so they do not pile up.
310# Also quote any args containing shell metacharacters.
311ac_configure_args=
312for ac_arg
313do
314 case "$ac_arg" in
315 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
316 | --no-cr | --no-c) ;;
317 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
318 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
319 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
320 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
321 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
322 esac
323done
324
325# NLS nuisances.
326# Only set LANG and LC_ALL to C if already set.
327# These must not be set unconditionally because not all systems understand
328# e.g. LANG=C (notably SCO).
329if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
330if test "${LANG+set}" = set; then LANG=C; export LANG; fi
331
332# confdefs.h avoids OS command line length limits that DEFS can exceed.
333rm -rf conftest* confdefs.h
334# AIX cpp loses on an empty file, so make sure it contains at least a newline.
335echo > confdefs.h
336
337# A filename unique to this package, relative to the directory that
338# configure is in, which we can look for to find out if srcdir is correct.
339ac_unique_file=src/text/mgquery.c
340
341# Find the source files, if location was not specified.
342if test -z "$srcdir"; then
343 ac_srcdir_defaulted=yes
344 # Try the directory containing this script, then its parent.
345 ac_prog=$0
346 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
347 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
348 srcdir=$ac_confdir
349 if test ! -r $srcdir/$ac_unique_file; then
350 srcdir=..
351 fi
352else
353 ac_srcdir_defaulted=no
354fi
355if test ! -r $srcdir/$ac_unique_file; then
356 if test "$ac_srcdir_defaulted" = yes; then
357 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
358 else
359 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
360 fi
361fi
362srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
363
364# Prefer explicitly selected file to automatically selected ones.
365if test -z "$CONFIG_SITE"; then
366 if test "x$prefix" != xNONE; then
367 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
368 else
369 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
370 fi
371fi
372for ac_site_file in $CONFIG_SITE; do
373 if test -r "$ac_site_file"; then
374 echo "loading site script $ac_site_file"
375 . "$ac_site_file"
376 fi
377done
378
379if test -r "$cache_file"; then
380 echo "loading cache $cache_file"
381 . $cache_file
382else
383 echo "creating cache $cache_file"
384 > $cache_file
385fi
386
387ac_ext=c
388# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
389ac_cpp='$CPP $CPPFLAGS'
390ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 2>&5'
391ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2>&5'
392
393if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
394 # Stardent Vistra SVR4 grep lacks -e, says [email protected].
395 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
396 ac_n= ac_c='
397' ac_t=' '
398 else
399 ac_n=-n ac_c= ac_t=
400 fi
401else
402 ac_n= ac_c='\c' ac_t=
403fi
404
405
406
407if test "$program_transform_name" = s,x,x,; then
408 program_transform_name=
409else
410 # Double any \ or $.
411 echo 's,\\,\\\\,g; s,\$,$$,g' > conftestsed
412 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
413 rm -f conftestsed
414fi
415test "$program_prefix" != NONE &&
416 program_transform_name="s,^,${program_prefix},; $program_transform_name"
417# Use a double $ so make ignores it.
418test "$program_suffix" != NONE &&
419 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
420
421# sed with no file args requires a program.
422test "$program_transform_name" = "" && program_transform_name="s,x,x,"
423
424
425PACKAGE=mg
426VERSION=1.2
427
428cat >> confdefs.h <<EOF
429#define PACKAGE "$PACKAGE"
430EOF
431
432cat >> confdefs.h <<EOF
433#define VERSION "$VERSION"
434EOF
435
436
437
438
439for ac_prog in $CCC c++ g++ gcc CC cxx
440do
441# Extract the first word of "$ac_prog", so it can be a program name with args.
442set dummy $ac_prog; ac_word=$2
443echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
444if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
445 echo $ac_n "(cached) $ac_c" 1>&6
446else
447 if test -n "$CXX"; then
448 ac_cv_prog_CXX="$CXX" # Let the user override the test.
449else
450 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
451 for ac_dir in $PATH; do
452 test -z "$ac_dir" && ac_dir=.
453 if test -f $ac_dir/$ac_word; then
454 ac_cv_prog_CXX="$ac_prog"
455 break
456 fi
457 done
458 IFS="$ac_save_ifs"
459fi
460fi
461CXX="$ac_cv_prog_CXX"
462if test -n "$CXX"; then
463 echo "$ac_t""$CXX" 1>&6
464else
465 echo "$ac_t""no" 1>&6
466fi
467
468test -n "$CXX" && break
469done
470test -n "$CXX" || CXX="gcc"
471
472
473echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
474if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
475 echo $ac_n "(cached) $ac_c" 1>&6
476else
477 cat > conftest.C <<EOF
478#ifdef __GNUC__
479 yes;
480#endif
481EOF
482if ${CXX-g++} -E conftest.C 2>&5 | egrep yes >/dev/null 2>&1; then
483 ac_cv_prog_gxx=yes
484else
485 ac_cv_prog_gxx=no
486fi
487fi
488echo "$ac_t""$ac_cv_prog_gxx" 1>&6
489if test $ac_cv_prog_gxx = yes; then
490 GXX=yes
491 if test "${CXXFLAGS+set}" != set; then
492 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
493if eval "test \"`echo '$''{'ac_cv_prog_gxx_g'+set}'`\" = set"; then
494 echo $ac_n "(cached) $ac_c" 1>&6
495else
496 echo 'void f(){}' > conftest.cc
497if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
498 ac_cv_prog_gxx_g=yes
499else
500 ac_cv_prog_gxx_g=no
501fi
502rm -f conftest*
503
504fi
505 echo "$ac_t""$ac_cv_prog_gxx_g" 1>&6
506 if test $ac_cv_prog_gxx_g = yes; then
507 CXXFLAGS="-g -O"
508 else
509 CXXFLAGS="-O"
510 fi
511 fi
512else
513 GXX=
514 test "${CXXFLAGS+set}" = set || CXXFLAGS="-g"
515fi
516
517for ac_prog in mawk gawk nawk awk
518do
519# Extract the first word of "$ac_prog", so it can be a program name with args.
520set dummy $ac_prog; ac_word=$2
521echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
522if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
523 echo $ac_n "(cached) $ac_c" 1>&6
524else
525 if test -n "$AWK"; then
526 ac_cv_prog_AWK="$AWK" # Let the user override the test.
527else
528 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
529 for ac_dir in $PATH; do
530 test -z "$ac_dir" && ac_dir=.
531 if test -f $ac_dir/$ac_word; then
532 ac_cv_prog_AWK="$ac_prog"
533 break
534 fi
535 done
536 IFS="$ac_save_ifs"
537fi
538fi
539AWK="$ac_cv_prog_AWK"
540if test -n "$AWK"; then
541 echo "$ac_t""$AWK" 1>&6
542else
543 echo "$ac_t""no" 1>&6
544fi
545
546test -n "$AWK" && break
547done
548
549for ac_prog in 'bison -y' byacc
550do
551# Extract the first word of "$ac_prog", so it can be a program name with args.
552set dummy $ac_prog; ac_word=$2
553echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
554if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
555 echo $ac_n "(cached) $ac_c" 1>&6
556else
557 if test -n "$YACC"; then
558 ac_cv_prog_YACC="$YACC" # Let the user override the test.
559else
560 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
561 for ac_dir in $PATH; do
562 test -z "$ac_dir" && ac_dir=.
563 if test -f $ac_dir/$ac_word; then
564 ac_cv_prog_YACC="$ac_prog"
565 break
566 fi
567 done
568 IFS="$ac_save_ifs"
569fi
570fi
571YACC="$ac_cv_prog_YACC"
572if test -n "$YACC"; then
573 echo "$ac_t""$YACC" 1>&6
574else
575 echo "$ac_t""no" 1>&6
576fi
577
578test -n "$YACC" && break
579done
580test -n "$YACC" || YACC="yacc"
581
582# Extract the first word of "gcc", so it can be a program name with args.
583set dummy gcc; ac_word=$2
584echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
585if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
586 echo $ac_n "(cached) $ac_c" 1>&6
587else
588 if test -n "$CC"; then
589 ac_cv_prog_CC="$CC" # Let the user override the test.
590else
591 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
592 for ac_dir in $PATH; do
593 test -z "$ac_dir" && ac_dir=.
594 if test -f $ac_dir/$ac_word; then
595 ac_cv_prog_CC="gcc"
596 break
597 fi
598 done
599 IFS="$ac_save_ifs"
600 test -z "$ac_cv_prog_CC" && ac_cv_prog_CC="cc"
601fi
602fi
603CC="$ac_cv_prog_CC"
604if test -n "$CC"; then
605 echo "$ac_t""$CC" 1>&6
606else
607 echo "$ac_t""no" 1>&6
608fi
609
610
611echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
612if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
613 echo $ac_n "(cached) $ac_c" 1>&6
614else
615 cat > conftest.c <<EOF
616#ifdef __GNUC__
617 yes;
618#endif
619EOF
620if ${CC-cc} -E conftest.c 2>&5 | egrep yes >/dev/null 2>&1; then
621 ac_cv_prog_gcc=yes
622else
623 ac_cv_prog_gcc=no
624fi
625fi
626echo "$ac_t""$ac_cv_prog_gcc" 1>&6
627if test $ac_cv_prog_gcc = yes; then
628 GCC=yes
629 if test "${CFLAGS+set}" != set; then
630 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
631if eval "test \"`echo '$''{'ac_cv_prog_gcc_g'+set}'`\" = set"; then
632 echo $ac_n "(cached) $ac_c" 1>&6
633else
634 echo 'void f(){}' > conftest.c
635if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
636 ac_cv_prog_gcc_g=yes
637else
638 ac_cv_prog_gcc_g=no
639fi
640rm -f conftest*
641
642fi
643 echo "$ac_t""$ac_cv_prog_gcc_g" 1>&6
644 if test $ac_cv_prog_gcc_g = yes; then
645 CFLAGS="-g -O"
646 else
647 CFLAGS="-O"
648 fi
649 fi
650else
651 GCC=
652 test "${CFLAGS+set}" = set || CFLAGS="-g"
653fi
654
655ac_aux_dir=
656for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
657 if test -f $ac_dir/install-sh; then
658 ac_aux_dir=$ac_dir
659 ac_install_sh="$ac_aux_dir/install-sh -c"
660 break
661 elif test -f $ac_dir/install.sh; then
662 ac_aux_dir=$ac_dir
663 ac_install_sh="$ac_aux_dir/install.sh -c"
664 break
665 fi
666done
667if test -z "$ac_aux_dir"; then
668 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
669fi
670ac_config_guess=$ac_aux_dir/config.guess
671ac_config_sub=$ac_aux_dir/config.sub
672ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
673
674# Find a good install program. We prefer a C program (faster),
675# so one script is as good as another. But avoid the broken or
676# incompatible versions:
677# SysV /etc/install, /usr/sbin/install
678# SunOS /usr/etc/install
679# IRIX /sbin/install
680# AIX /bin/install
681# AFS /usr/afsws/bin/install, which mishandles nonexistent args
682# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
683# ./install, which can be erroneously created by make from ./install.sh.
684echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
685if test -z "$INSTALL"; then
686if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
687 echo $ac_n "(cached) $ac_c" 1>&6
688else
689 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
690 for ac_dir in $PATH; do
691 # Account for people who put trailing slashes in PATH elements.
692 case "$ac_dir/" in
693 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
694 *)
695 # OSF1 and SCO ODT 3.0 have their own names for install.
696 for ac_prog in ginstall installbsd scoinst install; do
697 if test -f $ac_dir/$ac_prog; then
698 if test $ac_prog = install &&
699 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
700 # AIX install. It has an incompatible calling convention.
701 # OSF/1 installbsd also uses dspmsg, but is usable.
702 :
703 else
704 ac_cv_path_install="$ac_dir/$ac_prog -c"
705 break 2
706 fi
707 fi
708 done
709 ;;
710 esac
711 done
712 IFS="$ac_save_ifs"
713 # As a last resort, use the slow shell script.
714 test -z "$ac_cv_path_install" && ac_cv_path_install="$ac_install_sh"
715fi
716 INSTALL="$ac_cv_path_install"
717fi
718echo "$ac_t""$INSTALL" 1>&6
719
720# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
721# It thinks the first close brace ends the variable substitution.
722test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
723
724test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
725
726echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
727if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
728 echo $ac_n "(cached) $ac_c" 1>&6
729else
730 rm -f conftestdata
731if ln -s X conftestdata 2>/dev/null
732then
733 rm -f conftestdata
734 ac_cv_prog_LN_S="ln -s"
735else
736 ac_cv_prog_LN_S=ln
737fi
738fi
739LN_S="$ac_cv_prog_LN_S"
740if test "$ac_cv_prog_LN_S" = "ln -s"; then
741 echo "$ac_t""yes" 1>&6
742else
743 echo "$ac_t""no" 1>&6
744fi
745
746echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
747set dummy ${MAKE-make}; ac_make=$2
748if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
749 echo $ac_n "(cached) $ac_c" 1>&6
750else
751 cat > conftestmake <<\EOF
752all:
753 @echo 'ac_maketemp="${MAKE}"'
754EOF
755# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
756eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
757if test -n "$ac_maketemp"; then
758 eval ac_cv_prog_make_${ac_make}_set=yes
759else
760 eval ac_cv_prog_make_${ac_make}_set=no
761fi
762rm -f conftestmake
763fi
764if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
765 echo "$ac_t""yes" 1>&6
766 SET_MAKE=
767else
768 echo "$ac_t""no" 1>&6
769 SET_MAKE="MAKE=${MAKE-make}"
770fi
771
772# Extract the first word of "ranlib", so it can be a program name with args.
773set dummy ranlib; ac_word=$2
774echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
775if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
776 echo $ac_n "(cached) $ac_c" 1>&6
777else
778 if test -n "$RANLIB"; then
779 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
780else
781 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
782 for ac_dir in $PATH; do
783 test -z "$ac_dir" && ac_dir=.
784 if test -f $ac_dir/$ac_word; then
785 ac_cv_prog_RANLIB="ranlib"
786 break
787 fi
788 done
789 IFS="$ac_save_ifs"
790 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
791fi
792fi
793RANLIB="$ac_cv_prog_RANLIB"
794if test -n "$RANLIB"; then
795 echo "$ac_t""$RANLIB" 1>&6
796else
797 echo "$ac_t""no" 1>&6
798fi
799
800
801echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
802# On Suns, sometimes $CPP names a directory.
803if test -n "$CPP" && test -d "$CPP"; then
804 CPP=
805fi
806if test -z "$CPP"; then
807if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
808 echo $ac_n "(cached) $ac_c" 1>&6
809else
810 # This must be in double quotes, not single quotes, because CPP may get
811 # substituted into the Makefile and "${CC-cc}" will confuse make.
812 CPP="${CC-cc} -E"
813 # On the NeXT, cc -E runs the code through the compiler's parser,
814 # not just through cpp.
815 cat > conftest.$ac_ext <<EOF
816#line 817 "configure"
817#include "confdefs.h"
818#include <assert.h>
819Syntax Error
820EOF
821eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
822ac_err=`grep -v '^ *+' conftest.out`
823if test -z "$ac_err"; then
824 :
825else
826 echo "$ac_err" >&5
827 rm -rf conftest*
828 CPP="${CC-cc} -E -traditional-cpp"
829 cat > conftest.$ac_ext <<EOF
830#line 831 "configure"
831#include "confdefs.h"
832#include <assert.h>
833Syntax Error
834EOF
835eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
836ac_err=`grep -v '^ *+' conftest.out`
837if test -z "$ac_err"; then
838 :
839else
840 echo "$ac_err" >&5
841 rm -rf conftest*
842 CPP=/lib/cpp
843fi
844rm -f conftest*
845fi
846rm -f conftest*
847 ac_cv_prog_CPP="$CPP"
848fi
849 CPP="$ac_cv_prog_CPP"
850else
851 ac_cv_prog_CPP="$CPP"
852fi
853echo "$ac_t""$CPP" 1>&6
854
855echo $ac_n "checking for AIX""... $ac_c" 1>&6
856cat > conftest.$ac_ext <<EOF
857#line 858 "configure"
858#include "confdefs.h"
859#ifdef _AIX
860 yes
861#endif
862
863EOF
864if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
865 egrep "yes" >/dev/null 2>&1; then
866 rm -rf conftest*
867 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
868#define _ALL_SOURCE 1
869EOF
870
871else
872 rm -rf conftest*
873 echo "$ac_t""no" 1>&6
874fi
875rm -f conftest*
876
877
878echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
879if test -d /etc/conf/kconfig.d &&
880 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
881then
882 echo "$ac_t""yes" 1>&6
883 ISC=yes # If later tests want to check for ISC.
884 cat >> confdefs.h <<\EOF
885#define _POSIX_SOURCE 1
886EOF
887
888 if test "$GCC" = yes; then
889 CC="$CC -posix"
890 else
891 CC="$CC -Xp"
892 fi
893else
894 echo "$ac_t""no" 1>&6
895 ISC=
896fi
897
898ac_safe=`echo "minix/config.h" | tr './\055' '___'`
899echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
900if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
901 echo $ac_n "(cached) $ac_c" 1>&6
902else
903 cat > conftest.$ac_ext <<EOF
904#line 905 "configure"
905#include "confdefs.h"
906#include <minix/config.h>
907EOF
908eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
909ac_err=`grep -v '^ *+' conftest.out`
910if test -z "$ac_err"; then
911 rm -rf conftest*
912 eval "ac_cv_header_$ac_safe=yes"
913else
914 echo "$ac_err" >&5
915 rm -rf conftest*
916 eval "ac_cv_header_$ac_safe=no"
917fi
918rm -f conftest*
919fi
920if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
921 echo "$ac_t""yes" 1>&6
922 MINIX=yes
923else
924 echo "$ac_t""no" 1>&6
925MINIX=
926fi
927
928if test "$MINIX" = yes; then
929 cat >> confdefs.h <<\EOF
930#define _POSIX_SOURCE 1
931EOF
932
933 cat >> confdefs.h <<\EOF
934#define _POSIX_1_SOURCE 2
935EOF
936
937 cat >> confdefs.h <<\EOF
938#define _MINIX 1
939EOF
940
941fi
942
943echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
944if eval "test \"`echo '$''{'ac_cv_prog_cc_stdc'+set}'`\" = set"; then
945 echo $ac_n "(cached) $ac_c" 1>&6
946else
947 ac_cv_prog_cc_stdc=no
948ac_save_CFLAGS="$CFLAGS"
949# Don't try gcc -ansi; that turns off useful extensions and
950# breaks some systems' header files.
951# AIX -qlanglvl=ansi
952# Ultrix and OSF/1 -std1
953# HP-UX -Aa -D_HPUX_SOURCE
954# SVR4 -Xc
955for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" -Xc
956do
957 CFLAGS="$ac_save_CFLAGS $ac_arg"
958 cat > conftest.$ac_ext <<EOF
959#line 960 "configure"
960#include "confdefs.h"
961#if !defined(__STDC__) || __STDC__ != 1
962choke me
963#endif
964
965int main() { return 0; }
966int t() {
967int test (int i, double x);
968struct s1 {int (*f) (int a);};
969struct s2 {int (*f) (double a);};
970; return 0; }
971EOF
972if eval $ac_compile; then
973 rm -rf conftest*
974 ac_cv_prog_cc_stdc="$ac_arg"; break
975fi
976rm -f conftest*
977
978done
979CFLAGS="$ac_save_CFLAGS"
980
981fi
982
983echo "$ac_t""$ac_cv_prog_cc_stdc" 1>&6
984case "x$ac_cv_prog_cc_stdc" in
985 x|xno) ;;
986 *) CC="$CC $ac_cv_prog_cc_stdc" ;;
987esac
988
989
990echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
991if test "$ac_cv_prog_cc_stdc" != no; then
992 echo "$ac_t""yes" 1>&6
993 cat >> confdefs.h <<\EOF
994#define PROTOTYPES 1
995EOF
996
997 U= ANSI2KNR=
998else
999 echo "$ac_t""no" 1>&6
1000 U=_ ANSI2KNR=ansi2knr
1001fi
1002
1003echo $ac_n "checking for working const""... $ac_c" 1>&6
1004if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1005 echo $ac_n "(cached) $ac_c" 1>&6
1006else
1007 cat > conftest.$ac_ext <<EOF
1008#line 1009 "configure"
1009#include "confdefs.h"
1010
1011int main() { return 0; }
1012int t() {
1013
1014/* Ultrix mips cc rejects this. */
1015typedef int charset[2]; const charset x;
1016/* SunOS 4.1.1 cc rejects this. */
1017char const *const *ccp;
1018char **p;
1019/* NEC SVR4.0.2 mips cc rejects this. */
1020struct point {int x, y;};
1021static struct point const zero;
1022/* AIX XL C 1.02.0.0 rejects this.
1023 It does not let you subtract one const X* pointer from another in an arm
1024 of an if-expression whose if-part is not a constant expression */
1025const char *g = "string";
1026ccp = &g + (g ? g-g : 0);
1027/* HPUX 7.0 cc rejects these. */
1028++ccp;
1029p = (char**) ccp;
1030ccp = (char const *const *) p;
1031{ /* SCO 3.2v4 cc rejects this. */
1032 char *t;
1033 char const *s = 0 ? (char *) 0 : (char const *) 0;
1034
1035 *t++ = 0;
1036}
1037{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1038 int x[] = {25, 17};
1039 const int *foo = &x[0];
1040 ++foo;
1041}
1042{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1043 typedef const int *iptr;
1044 iptr p = 0;
1045 ++p;
1046}
1047{ /* AIX XL C 1.02.0.0 rejects this saying
1048 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1049 struct s { int j; const int *ap[3]; };
1050 struct s *b; b->j = 5;
1051}
1052{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1053 const int foo = 10;
1054}
1055
1056; return 0; }
1057EOF
1058if eval $ac_compile; then
1059 rm -rf conftest*
1060 ac_cv_c_const=yes
1061else
1062 rm -rf conftest*
1063 ac_cv_c_const=no
1064fi
1065rm -f conftest*
1066
1067fi
1068echo "$ac_t""$ac_cv_c_const" 1>&6
1069if test $ac_cv_c_const = no; then
1070 cat >> confdefs.h <<\EOF
1071#define const
1072EOF
1073
1074fi
1075
1076# If we cannot run a trivial program, we must be cross compiling.
1077echo $ac_n "checking whether cross-compiling""... $ac_c" 1>&6
1078if eval "test \"`echo '$''{'ac_cv_c_cross'+set}'`\" = set"; then
1079 echo $ac_n "(cached) $ac_c" 1>&6
1080else
1081 if test "$cross_compiling" = yes; then
1082 ac_cv_c_cross=yes
1083else
1084cat > conftest.$ac_ext <<EOF
1085#line 1086 "configure"
1086#include "confdefs.h"
1087main(){return(0);}
1088EOF
1089eval $ac_link
1090if test -s conftest && (./conftest; exit) 2>/dev/null; then
1091 ac_cv_c_cross=no
1092else
1093 ac_cv_c_cross=yes
1094fi
1095fi
1096rm -fr conftest*
1097fi
1098cross_compiling=$ac_cv_c_cross
1099echo "$ac_t""$ac_cv_c_cross" 1>&6
1100
1101echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1102if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1103 echo $ac_n "(cached) $ac_c" 1>&6
1104else
1105 cat > conftest.$ac_ext <<EOF
1106#line 1107 "configure"
1107#include "confdefs.h"
1108#include <stdlib.h>
1109#include <stdarg.h>
1110#include <string.h>
1111#include <float.h>
1112EOF
1113eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1114ac_err=`grep -v '^ *+' conftest.out`
1115if test -z "$ac_err"; then
1116 rm -rf conftest*
1117 ac_cv_header_stdc=yes
1118else
1119 echo "$ac_err" >&5
1120 rm -rf conftest*
1121 ac_cv_header_stdc=no
1122fi
1123rm -f conftest*
1124
1125if test $ac_cv_header_stdc = yes; then
1126 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1127cat > conftest.$ac_ext <<EOF
1128#line 1129 "configure"
1129#include "confdefs.h"
1130#include <string.h>
1131EOF
1132if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1133 egrep "memchr" >/dev/null 2>&1; then
1134 :
1135else
1136 rm -rf conftest*
1137 ac_cv_header_stdc=no
1138fi
1139rm -f conftest*
1140
1141fi
1142
1143if test $ac_cv_header_stdc = yes; then
1144 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1145cat > conftest.$ac_ext <<EOF
1146#line 1147 "configure"
1147#include "confdefs.h"
1148#include <stdlib.h>
1149EOF
1150if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1151 egrep "free" >/dev/null 2>&1; then
1152 :
1153else
1154 rm -rf conftest*
1155 ac_cv_header_stdc=no
1156fi
1157rm -f conftest*
1158
1159fi
1160
1161if test $ac_cv_header_stdc = yes; then
1162 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1163if test "$cross_compiling" = yes; then
1164 ac_cv_header_stdc=no
1165else
1166cat > conftest.$ac_ext <<EOF
1167#line 1168 "configure"
1168#include "confdefs.h"
1169#include <ctype.h>
1170#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1171#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1172#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1173int main () { int i; for (i = 0; i < 256; i++)
1174if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1175exit (0); }
1176
1177EOF
1178eval $ac_link
1179if test -s conftest && (./conftest; exit) 2>/dev/null; then
1180 :
1181else
1182 ac_cv_header_stdc=no
1183fi
1184fi
1185rm -fr conftest*
1186fi
1187fi
1188echo "$ac_t""$ac_cv_header_stdc" 1>&6
1189if test $ac_cv_header_stdc = yes; then
1190 cat >> confdefs.h <<\EOF
1191#define STDC_HEADERS 1
1192EOF
1193
1194fi
1195
1196echo $ac_n "checking for off_t""... $ac_c" 1>&6
1197if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
1198 echo $ac_n "(cached) $ac_c" 1>&6
1199else
1200 cat > conftest.$ac_ext <<EOF
1201#line 1202 "configure"
1202#include "confdefs.h"
1203#include <sys/types.h>
1204#if STDC_HEADERS
1205#include <stdlib.h>
1206#endif
1207EOF
1208if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1209 egrep "off_t" >/dev/null 2>&1; then
1210 rm -rf conftest*
1211 ac_cv_type_off_t=yes
1212else
1213 rm -rf conftest*
1214 ac_cv_type_off_t=no
1215fi
1216rm -f conftest*
1217
1218fi
1219echo "$ac_t""$ac_cv_type_off_t" 1>&6
1220if test $ac_cv_type_off_t = no; then
1221 cat >> confdefs.h <<\EOF
1222#define off_t long
1223EOF
1224
1225fi
1226
1227echo $ac_n "checking for size_t""... $ac_c" 1>&6
1228if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
1229 echo $ac_n "(cached) $ac_c" 1>&6
1230else
1231 cat > conftest.$ac_ext <<EOF
1232#line 1233 "configure"
1233#include "confdefs.h"
1234#include <sys/types.h>
1235#if STDC_HEADERS
1236#include <stdlib.h>
1237#endif
1238EOF
1239if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1240 egrep "size_t" >/dev/null 2>&1; then
1241 rm -rf conftest*
1242 ac_cv_type_size_t=yes
1243else
1244 rm -rf conftest*
1245 ac_cv_type_size_t=no
1246fi
1247rm -f conftest*
1248
1249fi
1250echo "$ac_t""$ac_cv_type_size_t" 1>&6
1251if test $ac_cv_type_size_t = no; then
1252 cat >> confdefs.h <<\EOF
1253#define size_t unsigned
1254EOF
1255
1256fi
1257
1258echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1259if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1260 echo $ac_n "(cached) $ac_c" 1>&6
1261else
1262 cat > conftest.$ac_ext <<EOF
1263#line 1264 "configure"
1264#include "confdefs.h"
1265#include <sys/types.h>
1266#include <sys/time.h>
1267#include <time.h>
1268int main() { return 0; }
1269int t() {
1270struct tm *tp;
1271; return 0; }
1272EOF
1273if eval $ac_compile; then
1274 rm -rf conftest*
1275 ac_cv_header_time=yes
1276else
1277 rm -rf conftest*
1278 ac_cv_header_time=no
1279fi
1280rm -f conftest*
1281
1282fi
1283echo "$ac_t""$ac_cv_header_time" 1>&6
1284if test $ac_cv_header_time = yes; then
1285 cat >> confdefs.h <<\EOF
1286#define TIME_WITH_SYS_TIME 1
1287EOF
1288
1289fi
1290
1291echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1292if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1293 echo $ac_n "(cached) $ac_c" 1>&6
1294else
1295 cat > conftest.$ac_ext <<EOF
1296#line 1297 "configure"
1297#include "confdefs.h"
1298#include <sys/types.h>
1299#include <time.h>
1300int main() { return 0; }
1301int t() {
1302struct tm *tp; tp->tm_sec;
1303; return 0; }
1304EOF
1305if eval $ac_compile; then
1306 rm -rf conftest*
1307 ac_cv_struct_tm=time.h
1308else
1309 rm -rf conftest*
1310 ac_cv_struct_tm=sys/time.h
1311fi
1312rm -f conftest*
1313
1314fi
1315echo "$ac_t""$ac_cv_struct_tm" 1>&6
1316if test $ac_cv_struct_tm = sys/time.h; then
1317 cat >> confdefs.h <<\EOF
1318#define TM_IN_SYS_TIME 1
1319EOF
1320
1321fi
1322
1323
1324if test "$ac_cv_prog_cc_stdc" = '-Xc'; then
1325cat > conftest.$ac_ext <<EOF
1326#line 1327 "configure"
1327#include "confdefs.h"
1328#include <stdio.h>
1329
1330int main() { return 0; }
1331int t() {
1332 FILE *rubbish = popen("yes", "r");
1333; return 0; }
1334EOF
1335if eval $ac_compile; then
1336 :
1337else
1338 rm -rf conftest*
1339 CC="`echo $CC | sed 's/-Xc/-Xa/'`" ac_cv_prog_cc_stdc='-Xa'
1340fi
1341rm -f conftest*
1342
1343fi
1344
1345
1346echo $ac_n "checking for -lm""... $ac_c" 1>&6
1347if eval "test \"`echo '$''{'ac_cv_lib_m'+set}'`\" = set"; then
1348 echo $ac_n "(cached) $ac_c" 1>&6
1349else
1350 ac_save_LIBS="$LIBS"
1351LIBS="-lm $LIBS"
1352cat > conftest.$ac_ext <<EOF
1353#line 1354 "configure"
1354#include "confdefs.h"
1355
1356int main() { return 0; }
1357int t() {
1358main()
1359; return 0; }
1360EOF
1361if eval $ac_link; then
1362 rm -rf conftest*
1363 eval "ac_cv_lib_m=yes"
1364else
1365 rm -rf conftest*
1366 eval "ac_cv_lib_m=no"
1367fi
1368rm -f conftest*
1369LIBS="$ac_save_LIBS"
1370
1371fi
1372if eval "test \"`echo '$ac_cv_lib_'m`\" = yes"; then
1373 echo "$ac_t""yes" 1>&6
1374 ac_tr_lib=HAVE_LIB`echo m | tr '[a-z]' '[A-Z]'`
1375 cat >> confdefs.h <<EOF
1376#define $ac_tr_lib 1
1377EOF
1378
1379 LIBS="-lm $LIBS"
1380
1381else
1382 echo "$ac_t""no" 1>&6
1383fi
1384
1385
1386ac_header_dirent=no
1387for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1388do
1389ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
1390echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1391if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1392 echo $ac_n "(cached) $ac_c" 1>&6
1393else
1394 cat > conftest.$ac_ext <<EOF
1395#line 1396 "configure"
1396#include "confdefs.h"
1397#include <sys/types.h>
1398#include <$ac_hdr>
1399int main() { return 0; }
1400int t() {
1401DIR *dirp = 0;
1402; return 0; }
1403EOF
1404if eval $ac_compile; then
1405 rm -rf conftest*
1406 eval "ac_cv_header_dirent_$ac_safe=yes"
1407else
1408 rm -rf conftest*
1409 eval "ac_cv_header_dirent_$ac_safe=no"
1410fi
1411rm -f conftest*
1412
1413fi
1414if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1415 echo "$ac_t""yes" 1>&6
1416 ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
1417 cat >> confdefs.h <<EOF
1418#define $ac_tr_hdr 1
1419EOF
1420 ac_header_dirent=$ac_hdr; break
1421else
1422 echo "$ac_t""no" 1>&6
1423fi
1424done
1425# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1426if test $ac_header_dirent = dirent.h; then
1427echo $ac_n "checking for -ldir""... $ac_c" 1>&6
1428if eval "test \"`echo '$''{'ac_cv_lib_dir'+set}'`\" = set"; then
1429 echo $ac_n "(cached) $ac_c" 1>&6
1430else
1431 ac_save_LIBS="$LIBS"
1432LIBS="-ldir $LIBS"
1433cat > conftest.$ac_ext <<EOF
1434#line 1435 "configure"
1435#include "confdefs.h"
1436
1437int main() { return 0; }
1438int t() {
1439opendir()
1440; return 0; }
1441EOF
1442if eval $ac_link; then
1443 rm -rf conftest*
1444 eval "ac_cv_lib_dir=yes"
1445else
1446 rm -rf conftest*
1447 eval "ac_cv_lib_dir=no"
1448fi
1449rm -f conftest*
1450LIBS="$ac_save_LIBS"
1451
1452fi
1453if eval "test \"`echo '$ac_cv_lib_'dir`\" = yes"; then
1454 echo "$ac_t""yes" 1>&6
1455 LIBS="$LIBS -ldir"
1456else
1457 echo "$ac_t""no" 1>&6
1458fi
1459
1460else
1461echo $ac_n "checking for -lx""... $ac_c" 1>&6
1462if eval "test \"`echo '$''{'ac_cv_lib_x'+set}'`\" = set"; then
1463 echo $ac_n "(cached) $ac_c" 1>&6
1464else
1465 ac_save_LIBS="$LIBS"
1466LIBS="-lx $LIBS"
1467cat > conftest.$ac_ext <<EOF
1468#line 1469 "configure"
1469#include "confdefs.h"
1470
1471int main() { return 0; }
1472int t() {
1473opendir()
1474; return 0; }
1475EOF
1476if eval $ac_link; then
1477 rm -rf conftest*
1478 eval "ac_cv_lib_x=yes"
1479else
1480 rm -rf conftest*
1481 eval "ac_cv_lib_x=no"
1482fi
1483rm -f conftest*
1484LIBS="$ac_save_LIBS"
1485
1486fi
1487if eval "test \"`echo '$ac_cv_lib_'x`\" = yes"; then
1488 echo "$ac_t""yes" 1>&6
1489 LIBS="$LIBS -lx"
1490else
1491 echo "$ac_t""no" 1>&6
1492fi
1493
1494fi
1495
1496echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1497if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1498 echo $ac_n "(cached) $ac_c" 1>&6
1499else
1500 cat > conftest.$ac_ext <<EOF
1501#line 1502 "configure"
1502#include "confdefs.h"
1503#include <stdlib.h>
1504#include <stdarg.h>
1505#include <string.h>
1506#include <float.h>
1507EOF
1508eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1509ac_err=`grep -v '^ *+' conftest.out`
1510if test -z "$ac_err"; then
1511 rm -rf conftest*
1512 ac_cv_header_stdc=yes
1513else
1514 echo "$ac_err" >&5
1515 rm -rf conftest*
1516 ac_cv_header_stdc=no
1517fi
1518rm -f conftest*
1519
1520if test $ac_cv_header_stdc = yes; then
1521 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1522cat > conftest.$ac_ext <<EOF
1523#line 1524 "configure"
1524#include "confdefs.h"
1525#include <string.h>
1526EOF
1527if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1528 egrep "memchr" >/dev/null 2>&1; then
1529 :
1530else
1531 rm -rf conftest*
1532 ac_cv_header_stdc=no
1533fi
1534rm -f conftest*
1535
1536fi
1537
1538if test $ac_cv_header_stdc = yes; then
1539 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1540cat > conftest.$ac_ext <<EOF
1541#line 1542 "configure"
1542#include "confdefs.h"
1543#include <stdlib.h>
1544EOF
1545if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1546 egrep "free" >/dev/null 2>&1; then
1547 :
1548else
1549 rm -rf conftest*
1550 ac_cv_header_stdc=no
1551fi
1552rm -f conftest*
1553
1554fi
1555
1556if test $ac_cv_header_stdc = yes; then
1557 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1558if test "$cross_compiling" = yes; then
1559 ac_cv_header_stdc=no
1560else
1561cat > conftest.$ac_ext <<EOF
1562#line 1563 "configure"
1563#include "confdefs.h"
1564#include <ctype.h>
1565#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1566#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1567#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1568int main () { int i; for (i = 0; i < 256; i++)
1569if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1570exit (0); }
1571
1572EOF
1573eval $ac_link
1574if test -s conftest && (./conftest; exit) 2>/dev/null; then
1575 :
1576else
1577 ac_cv_header_stdc=no
1578fi
1579fi
1580rm -fr conftest*
1581fi
1582fi
1583echo "$ac_t""$ac_cv_header_stdc" 1>&6
1584if test $ac_cv_header_stdc = yes; then
1585 cat >> confdefs.h <<\EOF
1586#define STDC_HEADERS 1
1587EOF
1588
1589fi
1590
1591for ac_hdr in fcntl.h limits.h sys/time.h unistd.h string.h memory.h sys/procfs.h
1592do
1593ac_safe=`echo "$ac_hdr" | tr './\055' '___'`
1594echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1595if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1596 echo $ac_n "(cached) $ac_c" 1>&6
1597else
1598 cat > conftest.$ac_ext <<EOF
1599#line 1600 "configure"
1600#include "confdefs.h"
1601#include <$ac_hdr>
1602EOF
1603eval "$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1604ac_err=`grep -v '^ *+' conftest.out`
1605if test -z "$ac_err"; then
1606 rm -rf conftest*
1607 eval "ac_cv_header_$ac_safe=yes"
1608else
1609 echo "$ac_err" >&5
1610 rm -rf conftest*
1611 eval "ac_cv_header_$ac_safe=no"
1612fi
1613rm -f conftest*
1614fi
1615if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1616 echo "$ac_t""yes" 1>&6
1617 ac_tr_hdr=HAVE_`echo $ac_hdr | tr '[a-z]./\055' '[A-Z]___'`
1618 cat >> confdefs.h <<EOF
1619#define $ac_tr_hdr 1
1620EOF
1621
1622else
1623 echo "$ac_t""no" 1>&6
1624fi
1625done
1626
1627cat > conftest.$ac_ext <<EOF
1628#line 1629 "configure"
1629#include "confdefs.h"
1630#include <stdio.h>
1631EOF
1632if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1633 egrep "fread" >/dev/null 2>&1; then
1634 rm -rf conftest*
1635 cat >> confdefs.h <<\EOF
1636#define HAVE_FREAD_DECL 1
1637EOF
1638
1639fi
1640rm -f conftest*
1641
1642cat > conftest.$ac_ext <<EOF
1643#line 1644 "configure"
1644#include "confdefs.h"
1645#include <stdio.h>
1646EOF
1647if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1648 egrep "fgetc" >/dev/null 2>&1; then
1649 rm -rf conftest*
1650 cat >> confdefs.h <<\EOF
1651#define HAVE_FGETC_DECL 1
1652EOF
1653
1654fi
1655rm -f conftest*
1656
1657cat > conftest.$ac_ext <<EOF
1658#line 1659 "configure"
1659#include "confdefs.h"
1660#include <sys/procfs.h>
1661EOF
1662if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1663 egrep "pr_brksize" >/dev/null 2>&1; then
1664 rm -rf conftest*
1665 cat >> confdefs.h <<\EOF
1666#define HAVE_PR_BRKSIZE 1
1667EOF
1668
1669fi
1670rm -f conftest*
1671
1672
1673# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1674# for constant arguments. Useless!
1675echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1676if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+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 <alloca.h>
1683int main() { return 0; }
1684int t() {
1685char *p = alloca(2 * sizeof(int));
1686; return 0; }
1687EOF
1688if eval $ac_link; then
1689 rm -rf conftest*
1690 ac_cv_header_alloca_h=yes
1691else
1692 rm -rf conftest*
1693 ac_cv_header_alloca_h=no
1694fi
1695rm -f conftest*
1696
1697fi
1698echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1699if test $ac_cv_header_alloca_h = yes; then
1700 cat >> confdefs.h <<\EOF
1701#define HAVE_ALLOCA_H 1
1702EOF
1703
1704fi
1705
1706echo $ac_n "checking for alloca""... $ac_c" 1>&6
1707if eval "test \"`echo '$''{'ac_cv_func_alloca'+set}'`\" = set"; then
1708 echo $ac_n "(cached) $ac_c" 1>&6
1709else
1710 cat > conftest.$ac_ext <<EOF
1711#line 1712 "configure"
1712#include "confdefs.h"
1713
1714#ifdef __GNUC__
1715# define alloca __builtin_alloca
1716#else
1717# if HAVE_ALLOCA_H
1718# include <alloca.h>
1719# else
1720# ifdef _AIX
1721 #pragma alloca
1722# else
1723# ifndef alloca /* predefined by HP cc +Olibcalls */
1724char *alloca ();
1725# endif
1726# endif
1727# endif
1728#endif
1729
1730int main() { return 0; }
1731int t() {
1732char *p = (char *) alloca(1);
1733; return 0; }
1734EOF
1735if eval $ac_link; then
1736 rm -rf conftest*
1737 ac_cv_func_alloca=yes
1738else
1739 rm -rf conftest*
1740 ac_cv_func_alloca=no
1741fi
1742rm -f conftest*
1743
1744fi
1745echo "$ac_t""$ac_cv_func_alloca" 1>&6
1746if test $ac_cv_func_alloca = yes; then
1747 cat >> confdefs.h <<\EOF
1748#define HAVE_ALLOCA 1
1749EOF
1750
1751fi
1752
1753if test $ac_cv_func_alloca = no; then
1754 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1755 # that cause trouble. Some versions do not even contain alloca or
1756 # contain a buggy version. If you still want to use their alloca,
1757 # use ar to extract alloca.o from them instead of compiling alloca.c.
1758 ALLOCA=alloca.o
1759 cat >> confdefs.h <<\EOF
1760#define C_ALLOCA 1
1761EOF
1762
1763
1764echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1765if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1766 echo $ac_n "(cached) $ac_c" 1>&6
1767else
1768 cat > conftest.$ac_ext <<EOF
1769#line 1770 "configure"
1770#include "confdefs.h"
1771#if defined(CRAY) && ! defined(CRAY2)
1772webecray
1773#else
1774wenotbecray
1775#endif
1776
1777EOF
1778if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1779 egrep "webecray" >/dev/null 2>&1; then
1780 rm -rf conftest*
1781 ac_cv_os_cray=yes
1782else
1783 rm -rf conftest*
1784 ac_cv_os_cray=no
1785fi
1786rm -f conftest*
1787
1788fi
1789echo "$ac_t""$ac_cv_os_cray" 1>&6
1790if test $ac_cv_os_cray = yes; then
1791for ac_func in _getb67 GETB67 getb67; do
1792 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1793if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1794 echo $ac_n "(cached) $ac_c" 1>&6
1795else
1796 cat > conftest.$ac_ext <<EOF
1797#line 1798 "configure"
1798#include "confdefs.h"
1799/* System header to define __stub macros and hopefully few prototypes,
1800 which can conflict with char $ac_func(); below. */
1801#include <assert.h>
1802/* Override any gcc2 internal prototype to avoid an error. */
1803char $ac_func();
1804
1805int main() { return 0; }
1806int t() {
1807
1808/* The GNU C library defines this for functions which it implements
1809 to always fail with ENOSYS. Some functions are actually named
1810 something starting with __ and the normal name is an alias. */
1811#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1812choke me
1813#else
1814$ac_func();
1815#endif
1816
1817; return 0; }
1818EOF
1819if eval $ac_link; then
1820 rm -rf conftest*
1821 eval "ac_cv_func_$ac_func=yes"
1822else
1823 rm -rf conftest*
1824 eval "ac_cv_func_$ac_func=no"
1825fi
1826rm -f conftest*
1827
1828fi
1829if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1830 echo "$ac_t""yes" 1>&6
1831 cat >> confdefs.h <<EOF
1832#define CRAY_STACKSEG_END $ac_func
1833EOF
1834
1835 break
1836else
1837 echo "$ac_t""no" 1>&6
1838fi
1839
1840done
1841fi
1842
1843echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1844if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1845 echo $ac_n "(cached) $ac_c" 1>&6
1846else
1847 if test "$cross_compiling" = yes; then
1848 ac_cv_c_stack_direction=0
1849else
1850cat > conftest.$ac_ext <<EOF
1851#line 1852 "configure"
1852#include "confdefs.h"
1853find_stack_direction ()
1854{
1855 static char *addr = 0;
1856 auto char dummy;
1857 if (addr == 0)
1858 {
1859 addr = &dummy;
1860 return find_stack_direction ();
1861 }
1862 else
1863 return (&dummy > addr) ? 1 : -1;
1864}
1865main ()
1866{
1867 exit (find_stack_direction() < 0);
1868}
1869EOF
1870eval $ac_link
1871if test -s conftest && (./conftest; exit) 2>/dev/null; then
1872 ac_cv_c_stack_direction=1
1873else
1874 ac_cv_c_stack_direction=-1
1875fi
1876fi
1877rm -fr conftest*
1878fi
1879echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1880cat >> confdefs.h <<EOF
1881#define STACK_DIRECTION $ac_cv_c_stack_direction
1882EOF
1883
1884fi
1885
1886if test $ac_cv_prog_gcc = yes; then
1887 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1888if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1889 echo $ac_n "(cached) $ac_c" 1>&6
1890else
1891 ac_pattern="Autoconf.*'x'"
1892 cat > conftest.$ac_ext <<EOF
1893#line 1894 "configure"
1894#include "confdefs.h"
1895#include <sgtty.h>
1896Autoconf TIOCGETP
1897EOF
1898if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1899 egrep "$ac_pattern" >/dev/null 2>&1; then
1900 rm -rf conftest*
1901 ac_cv_prog_gcc_traditional=yes
1902else
1903 rm -rf conftest*
1904 ac_cv_prog_gcc_traditional=no
1905fi
1906rm -f conftest*
1907
1908
1909 if test $ac_cv_prog_gcc_traditional = no; then
1910 cat > conftest.$ac_ext <<EOF
1911#line 1912 "configure"
1912#include "confdefs.h"
1913#include <termio.h>
1914Autoconf TCGETA
1915EOF
1916if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1917 egrep "$ac_pattern" >/dev/null 2>&1; then
1918 rm -rf conftest*
1919 ac_cv_prog_gcc_traditional=yes
1920fi
1921rm -f conftest*
1922
1923 fi
1924fi
1925 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1926 if test $ac_cv_prog_gcc_traditional = yes; then
1927 CC="$CC -traditional"
1928 fi
1929fi
1930
1931echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1932if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1933 echo $ac_n "(cached) $ac_c" 1>&6
1934else
1935 cat > conftest.$ac_ext <<EOF
1936#line 1937 "configure"
1937#include "confdefs.h"
1938#include <sys/types.h>
1939#include <signal.h>
1940#ifdef signal
1941#undef signal
1942#endif
1943#ifdef __cplusplus
1944extern "C"
1945#endif
1946void (*signal ()) ();
1947int main() { return 0; }
1948int t() {
1949int i;
1950; return 0; }
1951EOF
1952if eval $ac_compile; then
1953 rm -rf conftest*
1954 ac_cv_type_signal=void
1955else
1956 rm -rf conftest*
1957 ac_cv_type_signal=int
1958fi
1959rm -f conftest*
1960
1961fi
1962echo "$ac_t""$ac_cv_type_signal" 1>&6
1963cat >> confdefs.h <<EOF
1964#define RETSIGTYPE $ac_cv_type_signal
1965EOF
1966
1967
1968echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1969if eval "test \"`echo '$''{'ac_cv_func_vprintf'+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/* System header to define __stub macros and hopefully few prototypes,
1976 which can conflict with char vprintf(); below. */
1977#include <assert.h>
1978/* Override any gcc2 internal prototype to avoid an error. */
1979char vprintf();
1980
1981int main() { return 0; }
1982int t() {
1983
1984/* The GNU C library defines this for functions which it implements
1985 to always fail with ENOSYS. Some functions are actually named
1986 something starting with __ and the normal name is an alias. */
1987#if defined (__stub_vprintf) || defined (__stub___vprintf)
1988choke me
1989#else
1990vprintf();
1991#endif
1992
1993; return 0; }
1994EOF
1995if eval $ac_link; then
1996 rm -rf conftest*
1997 eval "ac_cv_func_vprintf=yes"
1998else
1999 rm -rf conftest*
2000 eval "ac_cv_func_vprintf=no"
2001fi
2002rm -f conftest*
2003
2004fi
2005if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2006 echo "$ac_t""yes" 1>&6
2007 cat >> confdefs.h <<\EOF
2008#define HAVE_VPRINTF 1
2009EOF
2010
2011else
2012 echo "$ac_t""no" 1>&6
2013fi
2014
2015if test "$ac_cv_func_vprintf" != yes; then
2016echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2017if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2018 echo $ac_n "(cached) $ac_c" 1>&6
2019else
2020 cat > conftest.$ac_ext <<EOF
2021#line 2022 "configure"
2022#include "confdefs.h"
2023/* System header to define __stub macros and hopefully few prototypes,
2024 which can conflict with char _doprnt(); below. */
2025#include <assert.h>
2026/* Override any gcc2 internal prototype to avoid an error. */
2027char _doprnt();
2028
2029int main() { return 0; }
2030int t() {
2031
2032/* The GNU C library defines this for functions which it implements
2033 to always fail with ENOSYS. Some functions are actually named
2034 something starting with __ and the normal name is an alias. */
2035#if defined (__stub__doprnt) || defined (__stub____doprnt)
2036choke me
2037#else
2038_doprnt();
2039#endif
2040
2041; return 0; }
2042EOF
2043if eval $ac_link; then
2044 rm -rf conftest*
2045 eval "ac_cv_func__doprnt=yes"
2046else
2047 rm -rf conftest*
2048 eval "ac_cv_func__doprnt=no"
2049fi
2050rm -f conftest*
2051
2052fi
2053if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2054 echo "$ac_t""yes" 1>&6
2055 cat >> confdefs.h <<\EOF
2056#define HAVE_DOPRNT 1
2057EOF
2058
2059else
2060 echo "$ac_t""no" 1>&6
2061fi
2062
2063fi
2064
2065for ac_func in ftime select strftime strtol getrusage times mallinfo setbuffer getpagesize
2066do
2067echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2068if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2069 echo $ac_n "(cached) $ac_c" 1>&6
2070else
2071 cat > conftest.$ac_ext <<EOF
2072#line 2073 "configure"
2073#include "confdefs.h"
2074/* System header to define __stub macros and hopefully few prototypes,
2075 which can conflict with char $ac_func(); below. */
2076#include <assert.h>
2077/* Override any gcc2 internal prototype to avoid an error. */
2078char $ac_func();
2079
2080int main() { return 0; }
2081int t() {
2082
2083/* The GNU C library defines this for functions which it implements
2084 to always fail with ENOSYS. Some functions are actually named
2085 something starting with __ and the normal name is an alias. */
2086#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2087choke me
2088#else
2089$ac_func();
2090#endif
2091
2092; return 0; }
2093EOF
2094if eval $ac_link; then
2095 rm -rf conftest*
2096 eval "ac_cv_func_$ac_func=yes"
2097else
2098 rm -rf conftest*
2099 eval "ac_cv_func_$ac_func=no"
2100fi
2101rm -f conftest*
2102
2103fi
2104if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2105 echo "$ac_t""yes" 1>&6
2106 ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
2107 cat >> confdefs.h <<EOF
2108#define $ac_tr_func 1
2109EOF
2110
2111else
2112 echo "$ac_t""no" 1>&6
2113fi
2114done
2115
2116for ac_func in ftruncate strstr strcasecmp
2117do
2118echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2119if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2120 echo $ac_n "(cached) $ac_c" 1>&6
2121else
2122 cat > conftest.$ac_ext <<EOF
2123#line 2124 "configure"
2124#include "confdefs.h"
2125/* System header to define __stub macros and hopefully few prototypes,
2126 which can conflict with char $ac_func(); below. */
2127#include <assert.h>
2128/* Override any gcc2 internal prototype to avoid an error. */
2129char $ac_func();
2130
2131int main() { return 0; }
2132int t() {
2133
2134/* The GNU C library defines this for functions which it implements
2135 to always fail with ENOSYS. Some functions are actually named
2136 something starting with __ and the normal name is an alias. */
2137#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2138choke me
2139#else
2140$ac_func();
2141#endif
2142
2143; return 0; }
2144EOF
2145if eval $ac_link; then
2146 rm -rf conftest*
2147 eval "ac_cv_func_$ac_func=yes"
2148else
2149 rm -rf conftest*
2150 eval "ac_cv_func_$ac_func=no"
2151fi
2152rm -f conftest*
2153
2154fi
2155if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2156 echo "$ac_t""yes" 1>&6
2157 :
2158else
2159 echo "$ac_t""no" 1>&6
2160LIBOBJS="$LIBOBJS ${ac_func}.o"
2161fi
2162
2163done
2164
2165
2166
2167# *** Custom checking (based on GNU tar configure.in) ***
2168# ---------------------------------------------------------------------------
2169echo $ac_n "checking for HP-UX needing gmalloc""... $ac_c" 1>&6
2170if test "`(uname -s) 2> /dev/null`" = 'HP-UX'; then
2171 echo "$ac_t""yes" 1>&6
2172 LIBOBJS="$LIBOBJS gmalloc.o"
2173 cat >> confdefs.h <<\EOF
2174#define HAVE_VALLOC 1
2175EOF
2176
2177else
2178 echo "$ac_t""no" 1>&6
2179 for ac_func in valloc
2180do
2181echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2182if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2183 echo $ac_n "(cached) $ac_c" 1>&6
2184else
2185 cat > conftest.$ac_ext <<EOF
2186#line 2187 "configure"
2187#include "confdefs.h"
2188/* System header to define __stub macros and hopefully few prototypes,
2189 which can conflict with char $ac_func(); below. */
2190#include <assert.h>
2191/* Override any gcc2 internal prototype to avoid an error. */
2192char $ac_func();
2193
2194int main() { return 0; }
2195int t() {
2196
2197/* The GNU C library defines this for functions which it implements
2198 to always fail with ENOSYS. Some functions are actually named
2199 something starting with __ and the normal name is an alias. */
2200#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2201choke me
2202#else
2203$ac_func();
2204#endif
2205
2206; return 0; }
2207EOF
2208if eval $ac_link; then
2209 rm -rf conftest*
2210 eval "ac_cv_func_$ac_func=yes"
2211else
2212 rm -rf conftest*
2213 eval "ac_cv_func_$ac_func=no"
2214fi
2215rm -f conftest*
2216
2217fi
2218if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2219 echo "$ac_t""yes" 1>&6
2220 ac_tr_func=HAVE_`echo $ac_func | tr '[a-z]' '[A-Z]'`
2221 cat >> confdefs.h <<EOF
2222#define $ac_tr_func 1
2223EOF
2224
2225else
2226 echo "$ac_t""no" 1>&6
2227fi
2228done
2229
2230fi
2231
2232echo $ac_n "checking if malloc debugging is wanted""... $ac_c" 1>&6
2233# Check whether --with-dmalloc or --without-dmalloc was given.
2234withval="$with_dmalloc"
2235if test -n "$withval"; then
2236 if test "$withval" = yes; then
2237 echo "$ac_t""yes" 1>&6
2238 cat >> confdefs.h <<\EOF
2239#define WITH_DMALLOC 1
2240EOF
2241
2242 LIBS="$LIBS -ldmalloc"
2243 LDFLAGS="$LDFLAGS -g"
2244else
2245 echo "$ac_t""no" 1>&6
2246fi
2247else
2248 echo "$ac_t""no" 1>&6
2249fi
2250
2251
2252echo $ac_n "checking which of rx or regex is wanted""... $ac_c" 1>&6
2253# Check whether --with-regex or --without-regex was given.
2254withval="$with_regex"
2255if test -n "$withval"; then
2256 if test "$withval" = yes; then
2257 ac_with_regex=1
2258 echo "$ac_t""regex" 1>&6
2259 cat >> confdefs.h <<\EOF
2260#define WITH_REGEX 1
2261EOF
2262
2263 LIBOBJS="$LIBOBJS regex.o"
2264fi
2265fi
2266
2267if test -z "$ac_with_regex"; then
2268 echo "$ac_t""rx" 1>&6
2269 echo $ac_n "checking for re_rx_search""... $ac_c" 1>&6
2270if eval "test \"`echo '$''{'ac_cv_func_re_rx_search'+set}'`\" = set"; then
2271 echo $ac_n "(cached) $ac_c" 1>&6
2272else
2273 cat > conftest.$ac_ext <<EOF
2274#line 2275 "configure"
2275#include "confdefs.h"
2276/* System header to define __stub macros and hopefully few prototypes,
2277 which can conflict with char re_rx_search(); below. */
2278#include <assert.h>
2279/* Override any gcc2 internal prototype to avoid an error. */
2280char re_rx_search();
2281
2282int main() { return 0; }
2283int t() {
2284
2285/* The GNU C library defines this for functions which it implements
2286 to always fail with ENOSYS. Some functions are actually named
2287 something starting with __ and the normal name is an alias. */
2288#if defined (__stub_re_rx_search) || defined (__stub___re_rx_search)
2289choke me
2290#else
2291re_rx_search();
2292#endif
2293
2294; return 0; }
2295EOF
2296if eval $ac_link; then
2297 rm -rf conftest*
2298 eval "ac_cv_func_re_rx_search=yes"
2299else
2300 rm -rf conftest*
2301 eval "ac_cv_func_re_rx_search=no"
2302fi
2303rm -f conftest*
2304
2305fi
2306if eval "test \"`echo '$ac_cv_func_'re_rx_search`\" = yes"; then
2307 echo "$ac_t""yes" 1>&6
2308 :
2309else
2310 echo "$ac_t""no" 1>&6
2311LIBOBJS="$LIBOBJS rx.o"
2312fi
2313
2314fi
2315
2316
2317# ---------------------------------------------------------------------------
2318if test "$ac_cv_func_alloca" = 'no'; then
2319 LIBOBJS="$LIBOBJS xmalloc.o error.o"
2320fi
2321
2322
2323# ---------------------------------------------------------------------------
2324
2325trap '' 1 2 15
2326cat > confcache <<\EOF
2327# This file is a shell script that caches the results of configure
2328# tests run on this system so they can be shared between configure
2329# scripts and configure runs. It is not useful on other systems.
2330# If it contains results you don't want to keep, you may remove or edit it.
2331#
2332# By default, configure uses ./config.cache as the cache file,
2333# creating it if it does not exist already. You can give configure
2334# the --cache-file=FILE option to use a different cache file; that is
2335# what configure does when it calls configure scripts in
2336# subdirectories, so they share the cache.
2337# Giving --cache-file=/dev/null disables caching, for debugging configure.
2338# config.status only pays attention to the cache file if you give it the
2339# --recheck option to rerun configure.
2340#
2341EOF
2342# Ultrix sh set writes to stderr and can't be redirected directly,
2343# and sets the high bit in the cache file unless we assign to the vars.
2344(set) 2>&1 |
2345 sed -n "s/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=\${\1='\2'}/p" \
2346 >> confcache
2347if cmp -s $cache_file confcache; then
2348 :
2349else
2350 if test -w $cache_file; then
2351 echo "updating cache $cache_file"
2352 cat confcache > $cache_file
2353 else
2354 echo "not updating unwritable cache $cache_file"
2355 fi
2356fi
2357rm -f confcache
2358
2359trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2360
2361test "x$prefix" = xNONE && prefix=$ac_default_prefix
2362# Let make expand exec_prefix.
2363test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2364
2365# Any assignment to VPATH causes Sun make to only execute
2366# the first set of double-colon rules, so remove it if not needed.
2367# If there is a colon in the path, we need to keep it.
2368if test "x$srcdir" = x.; then
2369 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2370fi
2371
2372trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2373
2374DEFS=-DHAVE_CONFIG_H
2375
2376# Without the "./", some shells look in PATH for config.status.
2377: ${CONFIG_STATUS=./config.status}
2378
2379echo creating $CONFIG_STATUS
2380rm -f $CONFIG_STATUS
2381cat > $CONFIG_STATUS <<EOF
2382#! /bin/sh
2383# Generated automatically by configure.
2384# Run this file to recreate the current configuration.
2385# This directory was configured as follows,
2386# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2387#
2388# $0 $ac_configure_args
2389#
2390# Compiler output produced by configure, useful for debugging
2391# configure, is in ./config.log if it exists.
2392
2393ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2394for ac_option
2395do
2396 case "\$ac_option" in
2397 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2398 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2399 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2400 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2401 echo "$CONFIG_STATUS generated by autoconf version 2.4"
2402 exit 0 ;;
2403 -help | --help | --hel | --he | --h)
2404 echo "\$ac_cs_usage"; exit 0 ;;
2405 *) echo "\$ac_cs_usage"; exit 1 ;;
2406 esac
2407done
2408
2409ac_given_srcdir=$srcdir
2410ac_given_INSTALL="$INSTALL"
2411
2412trap 'rm -fr `echo "Makefile src/text/Makefile src/images/Makefile
2413 src/scripts/Makefile lib/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2414
2415# Protect against being on the right side of a sed subst in config.status.
2416sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\\\&%]/\\\\&/g;
2417 s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
2418$ac_vpsub
2419$extrasub
2420s%@CFLAGS@%$CFLAGS%g
2421s%@CPPFLAGS@%$CPPFLAGS%g
2422s%@CXXFLAGS@%$CXXFLAGS%g
2423s%@DEFS@%$DEFS%g
2424s%@LDFLAGS@%$LDFLAGS%g
2425s%@LIBS@%$LIBS%g
2426s%@exec_prefix@%$exec_prefix%g
2427s%@prefix@%$prefix%g
2428s%@program_transform_name@%$program_transform_name%g
2429s%@PACKAGE@%$PACKAGE%g
2430s%@VERSION@%$VERSION%g
2431s%@CXX@%$CXX%g
2432s%@AWK@%$AWK%g
2433s%@YACC@%$YACC%g
2434s%@CC@%$CC%g
2435s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2436s%@INSTALL_DATA@%$INSTALL_DATA%g
2437s%@LN_S@%$LN_S%g
2438s%@SET_MAKE@%$SET_MAKE%g
2439s%@RANLIB@%$RANLIB%g
2440s%@CPP@%$CPP%g
2441s%@U@%$U%g
2442s%@ANSI2KNR@%$ANSI2KNR%g
2443s%@ALLOCA@%$ALLOCA%g
2444s%@LIBOBJS@%$LIBOBJS%g
2445
2446CEOF
2447EOF
2448cat >> $CONFIG_STATUS <<EOF
2449
2450CONFIG_FILES=\${CONFIG_FILES-"Makefile src/text/Makefile src/images/Makefile
2451 src/scripts/Makefile lib/Makefile "}
2452EOF
2453cat >> $CONFIG_STATUS <<\EOF
2454for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2455 # Support "outfile[:infile]", defaulting infile="outfile.in".
2456 case "$ac_file" in
2457 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
2458 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2459 *) ac_file_in="${ac_file}.in" ;;
2460 esac
2461
2462 # Adjust relative srcdir, etc. for subdirectories.
2463
2464 # Remove last slash and all that follows it. Not all systems have dirname.
2465 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2466 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2467 # The file is in a subdirectory.
2468 test ! -d "$ac_dir" && mkdir "$ac_dir"
2469 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2470 # A "../" for each directory in $ac_dir_suffix.
2471 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2472 else
2473 ac_dir_suffix= ac_dots=
2474 fi
2475
2476 case "$ac_given_srcdir" in
2477 .) srcdir=.
2478 if test -z "$ac_dots"; then top_srcdir=.
2479 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2480 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2481 *) # Relative path.
2482 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2483 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2484 esac
2485
2486 case "$ac_given_INSTALL" in
2487 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2488 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2489 esac
2490 echo creating "$ac_file"
2491 rm -f "$ac_file"
2492 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2493 case "$ac_file" in
2494 *Makefile*) ac_comsub="1i\\
2495# $configure_input" ;;
2496 *) ac_comsub= ;;
2497 esac
2498 sed -e "$ac_comsub
2499s%@configure_input@%$configure_input%g
2500s%@srcdir@%$srcdir%g
2501s%@top_srcdir@%$top_srcdir%g
2502s%@INSTALL@%$INSTALL%g
2503" -f conftest.subs $ac_given_srcdir/$ac_file_in > $ac_file
2504fi; done
2505rm -f conftest.subs
2506
2507# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2508# NAME is the cpp macro being defined and VALUE is the value it is being given.
2509#
2510# ac_d sets the value in "#define NAME VALUE" lines.
2511ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2512ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2513ac_dC='\3'
2514ac_dD='%g'
2515# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2516ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2517ac_uB='\([ ]\)%\1#\2define\3'
2518ac_uC=' '
2519ac_uD='\4%g'
2520# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2521ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2522ac_eB='$%\1#\2define\3'
2523ac_eC=' '
2524ac_eD='%g'
2525
2526CONFIG_HEADERS=${CONFIG_HEADERS-"config.h"}
2527for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2528 # Support "outfile[:infile]", defaulting infile="outfile.in".
2529 case "$ac_file" in
2530 *:*) ac_file_in=`echo "$ac_file"|sed 's%.*:%%'`
2531 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2532 *) ac_file_in="${ac_file}.in" ;;
2533 esac
2534
2535 echo creating $ac_file
2536
2537 rm -f conftest.frag conftest.in conftest.out
2538 cp $ac_given_srcdir/$ac_file_in conftest.in
2539
2540EOF
2541
2542# Transform confdefs.h into a sed script conftest.vals that substitutes
2543# the proper values into config.h.in to produce config.h. And first:
2544# Protect against being on the right side of a sed subst in config.status.
2545# Protect against being in an unquoted here document in config.status.
2546rm -f conftest.vals
2547cat > conftest.hdr <<\EOF
2548s/[\\&%]/\\&/g
2549s%[\\$`]%\\&%g
2550s%#define \([A-Za-z_][A-Za-z0-9_]*\) \(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2551s%ac_d%ac_u%gp
2552s%ac_u%ac_e%gp
2553EOF
2554sed -n -f conftest.hdr confdefs.h > conftest.vals
2555rm -f conftest.hdr
2556
2557# This sed command replaces #undef with comments. This is necessary, for
2558# example, in the case of _POSIX_SOURCE, which is predefined and required
2559# on some systems where configure will not decide to define it.
2560cat >> conftest.vals <<\EOF
2561s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2562EOF
2563
2564# Break up conftest.vals because some shells have a limit on
2565# the size of here documents, and old seds have small limits too.
2566# Maximum number of lines to put in a single here document.
2567ac_max_here_lines=12
2568
2569rm -f conftest.tail
2570while :
2571do
2572 ac_lines=`grep -c . conftest.vals`
2573 # grep -c gives empty output for an empty file on some AIX systems.
2574 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2575 # Write a limited-size here document to conftest.frag.
2576 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2577 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2578 echo 'CEOF
2579 sed -f conftest.frag conftest.in > conftest.out
2580 rm -f conftest.in
2581 mv conftest.out conftest.in
2582' >> $CONFIG_STATUS
2583 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2584 rm -f conftest.vals
2585 mv conftest.tail conftest.vals
2586done
2587rm -f conftest.vals
2588
2589cat >> $CONFIG_STATUS <<\EOF
2590 rm -f conftest.frag conftest.h
2591 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2592 cat conftest.in >> conftest.h
2593 rm -f conftest.in
2594 if cmp -s $ac_file conftest.h 2>/dev/null; then
2595 echo "$ac_file is unchanged"
2596 rm -f conftest.h
2597 else
2598 rm -f $ac_file
2599 mv conftest.h $ac_file
2600 fi
2601fi; done
2602
2603
2604test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
2605exit 0
2606EOF
2607chmod +x $CONFIG_STATUS
2608rm -fr confdefs* $ac_clean_files
2609test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2610
Note: See TracBrowser for help on using the repository browser.