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