3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-mts=MTS specify the mail transport agent"
17 --with-editor=EDITOR specify the default editor"
19 --with-pager=PAGER specify the default pager"
21 --enable-nmh-mhe enable mhe support (DEFAULT)"
23 --enable-nmh-pop enable client-side support for pop"
25 --with-krb4=PREFIX specify location of Kerberos V4 for kpop support"
27 --with-hesiod=PREFIX specify location of Hesiod"
29 --enable-nmh-debug enable nmh code debugging"
30 ac_default_prefix=/usr/local/nmh
32 # Initialize some variables set by options.
33 # The variables have the same names as the options, with
34 # dashes changed to underlines.
36 cache_file=./config.cache
45 program_transform_name=s,x,x,
53 bindir='${exec_prefix}/bin'
54 sbindir='${exec_prefix}/sbin'
55 libexecdir='${exec_prefix}/libexec'
56 datadir='${prefix}/share'
57 sysconfdir='${prefix}/etc'
58 sharedstatedir='${prefix}/com'
59 localstatedir='${prefix}/var'
60 libdir='${exec_prefix}/lib'
61 includedir='${prefix}/include'
62 oldincludedir='/usr/include'
63 infodir='${prefix}/info'
64 mandir='${prefix}/man'
66 # Initialize some other variables.
69 # Maximum number of lines to put in a shell here document.
76 # If the previous option needs an argument, assign it.
77 if test -n "$ac_prev"; then
78 eval "$ac_prev=\$ac_option"
84 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
88 # Accept the important Cygnus configure options, so we can diagnose typos.
92 -bindir | --bindir | --bindi | --bind | --bin | --bi)
94 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
95 bindir="$ac_optarg" ;;
97 -build | --build | --buil | --bui | --bu)
99 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
100 build="$ac_optarg" ;;
102 -cache-file | --cache-file | --cache-fil | --cache-fi \
103 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
104 ac_prev=cache_file ;;
105 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
106 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
107 cache_file="$ac_optarg" ;;
109 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
111 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
113 datadir="$ac_optarg" ;;
115 -disable-* | --disable-*)
116 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
117 # Reject names that are not valid shell variable names.
118 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
119 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
121 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
122 eval "enable_${ac_feature}=no" ;;
124 -enable-* | --enable-*)
125 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
126 # Reject names that are not valid shell variable names.
127 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
128 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
130 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
135 eval "enable_${ac_feature}='$ac_optarg'" ;;
137 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
138 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
139 | --exec | --exe | --ex)
140 ac_prev=exec_prefix ;;
141 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
142 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
143 | --exec=* | --exe=* | --ex=*)
144 exec_prefix="$ac_optarg" ;;
146 -gas | --gas | --ga | --g)
147 # Obsolete; use --with-gas.
150 -help | --help | --hel | --he)
151 # Omit some internal or obsolete options to make the list less imposing.
152 # This message is too long to be a string in the A/UX 3.1 sh.
154 Usage: configure [options] [host]
155 Options: [defaults in brackets after descriptions]
157 --cache-file=FILE cache test results in FILE
158 --help print this message
159 --no-create do not create output files
160 --quiet, --silent do not print \`checking...' messages
161 --version print the version of autoconf that created configure
162 Directory and file names:
163 --prefix=PREFIX install architecture-independent files in PREFIX
165 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
167 --bindir=DIR user executables in DIR [EPREFIX/bin]
168 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
169 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
170 --datadir=DIR read-only architecture-independent data in DIR
172 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
173 --sharedstatedir=DIR modifiable architecture-independent data in DIR
175 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
176 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
177 --includedir=DIR C header files in DIR [PREFIX/include]
178 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
179 --infodir=DIR info documentation in DIR [PREFIX/info]
180 --mandir=DIR man documentation in DIR [PREFIX/man]
181 --srcdir=DIR find the sources in DIR [configure dir or ..]
182 --program-prefix=PREFIX prepend PREFIX to installed program names
183 --program-suffix=SUFFIX append SUFFIX to installed program names
184 --program-transform-name=PROGRAM
185 run sed PROGRAM on installed program names
189 --build=BUILD configure for building on BUILD [BUILD=HOST]
190 --host=HOST configure for HOST [guessed]
191 --target=TARGET configure for TARGET [TARGET=HOST]
192 Features and packages:
193 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
194 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
195 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
196 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
197 --x-includes=DIR X include files are in DIR
198 --x-libraries=DIR X library files are in DIR
200 if test -n "$ac_help"; then
201 echo "--enable and --with options recognized:$ac_help"
205 -host | --host | --hos | --ho)
207 -host=* | --host=* | --hos=* | --ho=*)
210 -includedir | --includedir | --includedi | --included | --include \
211 | --includ | --inclu | --incl | --inc)
212 ac_prev=includedir ;;
213 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
214 | --includ=* | --inclu=* | --incl=* | --inc=*)
215 includedir="$ac_optarg" ;;
217 -infodir | --infodir | --infodi | --infod | --info | --inf)
219 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
220 infodir="$ac_optarg" ;;
222 -libdir | --libdir | --libdi | --libd)
224 -libdir=* | --libdir=* | --libdi=* | --libd=*)
225 libdir="$ac_optarg" ;;
227 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
228 | --libexe | --libex | --libe)
229 ac_prev=libexecdir ;;
230 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
231 | --libexe=* | --libex=* | --libe=*)
232 libexecdir="$ac_optarg" ;;
234 -localstatedir | --localstatedir | --localstatedi | --localstated \
235 | --localstate | --localstat | --localsta | --localst \
236 | --locals | --local | --loca | --loc | --lo)
237 ac_prev=localstatedir ;;
238 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
239 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
240 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
241 localstatedir="$ac_optarg" ;;
243 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
245 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
246 mandir="$ac_optarg" ;;
249 # Obsolete; use --without-fp.
252 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
256 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
257 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
260 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
261 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
262 | --oldin | --oldi | --old | --ol | --o)
263 ac_prev=oldincludedir ;;
264 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
265 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
266 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
267 oldincludedir="$ac_optarg" ;;
269 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
271 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
272 prefix="$ac_optarg" ;;
274 -program-prefix | --program-prefix | --program-prefi | --program-pref \
275 | --program-pre | --program-pr | --program-p)
276 ac_prev=program_prefix ;;
277 -program-prefix=* | --program-prefix=* | --program-prefi=* \
278 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
279 program_prefix="$ac_optarg" ;;
281 -program-suffix | --program-suffix | --program-suffi | --program-suff \
282 | --program-suf | --program-su | --program-s)
283 ac_prev=program_suffix ;;
284 -program-suffix=* | --program-suffix=* | --program-suffi=* \
285 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
286 program_suffix="$ac_optarg" ;;
288 -program-transform-name | --program-transform-name \
289 | --program-transform-nam | --program-transform-na \
290 | --program-transform-n | --program-transform- \
291 | --program-transform | --program-transfor \
292 | --program-transfo | --program-transf \
293 | --program-trans | --program-tran \
294 | --progr-tra | --program-tr | --program-t)
295 ac_prev=program_transform_name ;;
296 -program-transform-name=* | --program-transform-name=* \
297 | --program-transform-nam=* | --program-transform-na=* \
298 | --program-transform-n=* | --program-transform-=* \
299 | --program-transform=* | --program-transfor=* \
300 | --program-transfo=* | --program-transf=* \
301 | --program-trans=* | --program-tran=* \
302 | --progr-tra=* | --program-tr=* | --program-t=*)
303 program_transform_name="$ac_optarg" ;;
305 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
306 | -silent | --silent | --silen | --sile | --sil)
309 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
311 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
313 sbindir="$ac_optarg" ;;
315 -sharedstatedir | --sharedstatedir | --sharedstatedi \
316 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
317 | --sharedst | --shareds | --shared | --share | --shar \
319 ac_prev=sharedstatedir ;;
320 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
321 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
322 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
324 sharedstatedir="$ac_optarg" ;;
326 -site | --site | --sit)
328 -site=* | --site=* | --sit=*)
331 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
333 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
334 srcdir="$ac_optarg" ;;
336 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
337 | --syscon | --sysco | --sysc | --sys | --sy)
338 ac_prev=sysconfdir ;;
339 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
340 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
341 sysconfdir="$ac_optarg" ;;
343 -target | --target | --targe | --targ | --tar | --ta | --t)
345 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
346 target="$ac_optarg" ;;
348 -v | -verbose | --verbose | --verbos | --verbo | --verb)
351 -version | --version | --versio | --versi | --vers)
352 echo "configure generated by autoconf version 2.12"
356 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
357 # Reject names that are not valid shell variable names.
358 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
359 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
361 ac_package=`echo $ac_package| sed 's/-/_/g'`
366 eval "with_${ac_package}='$ac_optarg'" ;;
368 -without-* | --without-*)
369 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
370 # Reject names that are not valid shell variable names.
371 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
372 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
374 ac_package=`echo $ac_package| sed 's/-/_/g'`
375 eval "with_${ac_package}=no" ;;
378 # Obsolete; use --with-x.
381 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
382 | --x-incl | --x-inc | --x-in | --x-i)
383 ac_prev=x_includes ;;
384 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
385 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
386 x_includes="$ac_optarg" ;;
388 -x-libraries | --x-libraries | --x-librarie | --x-librari \
389 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
390 ac_prev=x_libraries ;;
391 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
392 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
393 x_libraries="$ac_optarg" ;;
395 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
399 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
400 echo "configure: warning: $ac_option: invalid host type" 1>&2
402 if test "x$nonopt" != xNONE; then
403 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
411 if test -n "$ac_prev"; then
412 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
415 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
417 # File descriptor usage:
420 # 2 errors and warnings
421 # 3 some systems may open it to /dev/tty
422 # 4 used on the Kubota Titan
423 # 6 checking for... messages and results
424 # 5 compiler messages saved in config.log
425 if test "$silent" = yes; then
433 This file contains any messages produced by compilers while
434 running configure, to aid debugging if configure makes a mistake.
437 # Strip out --no-create and --no-recursion so they do not pile up.
438 # Also quote any args containing shell metacharacters.
443 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
444 | --no-cr | --no-c) ;;
445 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
446 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
447 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
448 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
449 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
454 # Only set these to C if already set. These must not be set unconditionally
455 # because not all systems understand e.g. LANG=C (notably SCO).
456 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
457 # Non-C LC_CTYPE values break the ctype check.
458 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
459 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
460 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
461 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
463 # confdefs.h avoids OS command line length limits that DEFS can exceed.
464 rm -rf conftest* confdefs.h
465 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
468 # A filename unique to this package, relative to the directory that
469 # configure is in, which we can look for to find out if srcdir is correct.
470 ac_unique_file=h/nmh.h
472 # Find the source files, if location was not specified.
473 if test -z "$srcdir"; then
474 ac_srcdir_defaulted=yes
475 # Try the directory containing this script, then its parent.
477 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
478 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
480 if test ! -r $srcdir/$ac_unique_file; then
484 ac_srcdir_defaulted=no
486 if test ! -r $srcdir/$ac_unique_file; then
487 if test "$ac_srcdir_defaulted" = yes; then
488 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
490 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
493 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
495 # Prefer explicitly selected file to automatically selected ones.
496 if test -z "$CONFIG_SITE"; then
497 if test "x$prefix" != xNONE; then
498 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
500 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
503 for ac_site_file in $CONFIG_SITE; do
504 if test -r "$ac_site_file"; then
505 echo "loading site script $ac_site_file"
510 if test -r "$cache_file"; then
511 echo "loading cache $cache_file"
514 echo "creating cache $cache_file"
519 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
520 ac_cpp='$CPP $CPPFLAGS'
521 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
522 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
523 cross_compiling=$ac_cv_prog_cc_cross
525 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
526 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
527 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
534 ac_n= ac_c='\c' ac_t=
540 VERSION=`sed -e 's/nmh-//' ${srcdir}/VERSION`
541 echo "configuring for nmh-$VERSION"
543 # Check whether --with-mts or --without-mts was given.
544 if test "${with_mts+set}" = set; then
550 if test x$with_mts = xsmtp; then
552 MTSLIB="mts/smtp/libsmtp.a"
553 cat >> confdefs.h <<\EOF
556 elif test x$with_mts = xsendmail; then
558 MTSLIB="mts/sendmail/libsend.a"
559 cat >> confdefs.h <<\EOF
564 MTSLIB="mts/smtp/libsmtp.a"
565 cat >> confdefs.h <<\EOF
573 # Check whether --with-editor or --without-editor was given.
574 if test "${with_editor+set}" = set; then
575 withval="$with_editor"
580 if test -n "$with_editor"; then
581 editorpath="$with_editor"
584 # Check whether --with-pager or --without-pager was given.
585 if test "${with_pager+set}" = set; then
586 withval="$with_pager"
591 if test -n "$with_pager"; then
592 pagerpath="$with_pager"
595 # Check whether --enable-nmh-mhe or --disable-nmh-mhe was given.
596 if test "${enable_nmh_mhe+set}" = set; then
597 enableval="$enable_nmh_mhe"
602 if test x$enable_nmh_mhe != xno; then
603 cat >> confdefs.h <<\EOF
608 # Check whether --enable-nmh-pop or --disable-nmh-pop was given.
609 if test "${enable_nmh_pop+set}" = set; then
610 enableval="$enable_nmh_pop"
614 if test x$enable_nmh_pop = xyes; then
615 cat >> confdefs.h <<\EOF
619 POPSED='/^%nmhbeginpop%/d;/^%nmhendpop%/d'
621 POPSED='/^%nmhbeginpop%/,/^%nmhendpop%/d'
624 # Check whether --with-krb4 or --without-krb4 was given.
625 if test "${with_krb4+set}" = set; then
630 if test x$with_krb4 != x -a x$with_krb4 != xno; then
631 cat >> confdefs.h <<\EOF
634 cat >> confdefs.h <<\EOF
635 #define KPOP_PRINCIPAL "pop"
639 # Check whether --with-hesiod or --without-hesiod was given.
640 if test "${with_hesiod+set}" = set; then
641 withval="$with_hesiod"
645 if test x$with_hesiod != x -a x$with_hesiod != xno; then
646 cat >> confdefs.h <<\EOF
651 # Check whether --enable-nmh-debug or --disable-nmh-debug was given.
652 if test "${enable_nmh_debug+set}" = set; then
653 enableval="$enable_nmh_debug"
660 test -z "$CFLAGS" && CFLAGS= auto_cflags=1
661 if test x$enable_nmh_debug = xyes; then
662 test -z "$LDFLAGS" && LDFLAGS=-g
665 # Extract the first word of "gcc", so it can be a program name with args.
666 set dummy gcc; ac_word=$2
667 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
668 echo "configure:669: checking for $ac_word" >&5
669 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
670 echo $ac_n "(cached) $ac_c" 1>&6
672 if test -n "$CC"; then
673 ac_cv_prog_CC="$CC" # Let the user override the test.
675 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
676 for ac_dir in $PATH; do
677 test -z "$ac_dir" && ac_dir=.
678 if test -f $ac_dir/$ac_word; then
687 if test -n "$CC"; then
688 echo "$ac_t""$CC" 1>&6
690 echo "$ac_t""no" 1>&6
693 if test -z "$CC"; then
694 # Extract the first word of "cc", so it can be a program name with args.
695 set dummy cc; ac_word=$2
696 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
697 echo "configure:698: checking for $ac_word" >&5
698 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
699 echo $ac_n "(cached) $ac_c" 1>&6
701 if test -n "$CC"; then
702 ac_cv_prog_CC="$CC" # Let the user override the test.
704 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
706 for ac_dir in $PATH; do
707 test -z "$ac_dir" && ac_dir=.
708 if test -f $ac_dir/$ac_word; then
709 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
718 if test $ac_prog_rejected = yes; then
719 # We found a bogon in the path, so make sure we never use it.
720 set dummy $ac_cv_prog_CC
722 if test $# -gt 0; then
723 # We chose a different compiler from the bogus one.
724 # However, it has the same basename, so the bogon will be chosen
725 # first if we set CC to just the basename; use the full file name.
727 set dummy "$ac_dir/$ac_word" "$@"
735 if test -n "$CC"; then
736 echo "$ac_t""$CC" 1>&6
738 echo "$ac_t""no" 1>&6
741 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
744 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
745 echo "configure:746: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
748 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
749 ac_cpp='$CPP $CPPFLAGS'
750 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
751 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
752 cross_compiling=$ac_cv_prog_cc_cross
754 cat > conftest.$ac_ext <<EOF
755 #line 756 "configure"
756 #include "confdefs.h"
759 if { (eval echo configure:760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
760 ac_cv_prog_cc_works=yes
761 # If we can't run a trivial program, we are probably using a cross compiler.
762 if (./conftest; exit) 2>/dev/null; then
763 ac_cv_prog_cc_cross=no
765 ac_cv_prog_cc_cross=yes
768 echo "configure: failed program was:" >&5
769 cat conftest.$ac_ext >&5
770 ac_cv_prog_cc_works=no
774 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
775 if test $ac_cv_prog_cc_works = no; then
776 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
778 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
779 echo "configure:780: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
780 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
781 cross_compiling=$ac_cv_prog_cc_cross
783 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
784 echo "configure:785: checking whether we are using GNU C" >&5
785 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
786 echo $ac_n "(cached) $ac_c" 1>&6
788 cat > conftest.c <<EOF
793 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
800 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
802 if test $ac_cv_prog_gcc = yes; then
804 ac_test_CFLAGS="${CFLAGS+set}"
805 ac_save_CFLAGS="$CFLAGS"
807 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
808 echo "configure:809: checking whether ${CC-cc} accepts -g" >&5
809 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
810 echo $ac_n "(cached) $ac_c" 1>&6
812 echo 'void f(){}' > conftest.c
813 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
822 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
823 if test "$ac_test_CFLAGS" = set; then
824 CFLAGS="$ac_save_CFLAGS"
825 elif test $ac_cv_prog_cc_g = yes; then
832 test "${CFLAGS+set}" = set || CFLAGS="-g"
836 if test -n "$auto_cflags"; then
837 if test x$enable_nmh_debug = xyes; then
838 if test -n "$GCC"; then
839 test -z "$CFLAGS" && CFLAGS="-Wall -g" || CFLAGS="$CFLAGS -Wall -g"
841 test -z "$CFLAGS" && CFLAGS=-g || CFLAGS="$CFLAGS -g"
844 test -z "$LDFLAGS" && LDFLAGS=-s
845 if test -n "$GCC"; then
846 test -z "$CFLAGS" && CFLAGS=-O2 || CFLAGS="$CFLAGS -O2"
848 test -z "$CFLAGS" && CFLAGS=-O || CFLAGS="$CFLAGS -O"
853 echo $ac_n "checking for working const""... $ac_c" 1>&6
854 echo "configure:855: checking for working const" >&5
855 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
856 echo $ac_n "(cached) $ac_c" 1>&6
858 cat > conftest.$ac_ext <<EOF
859 #line 860 "configure"
860 #include "confdefs.h"
864 /* Ultrix mips cc rejects this. */
865 typedef int charset[2]; const charset x;
866 /* SunOS 4.1.1 cc rejects this. */
867 char const *const *ccp;
869 /* NEC SVR4.0.2 mips cc rejects this. */
870 struct point {int x, y;};
871 static struct point const zero = {0,0};
872 /* AIX XL C 1.02.0.0 rejects this.
873 It does not let you subtract one const X* pointer from another in an arm
874 of an if-expression whose if-part is not a constant expression */
875 const char *g = "string";
876 ccp = &g + (g ? g-g : 0);
877 /* HPUX 7.0 cc rejects these. */
880 ccp = (char const *const *) p;
881 { /* SCO 3.2v4 cc rejects this. */
883 char const *s = 0 ? (char *) 0 : (char const *) 0;
887 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
889 const int *foo = &x[0];
892 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
893 typedef const int *iptr;
897 { /* AIX XL C 1.02.0.0 rejects this saying
898 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
899 struct s { int j; const int *ap[3]; };
900 struct s *b; b->j = 5;
902 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
908 if { (eval echo configure:909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
912 echo "configure: failed program was:" >&5
913 cat conftest.$ac_ext >&5
920 echo "$ac_t""$ac_cv_c_const" 1>&6
921 if test $ac_cv_c_const = no; then
922 cat >> confdefs.h <<\EOF
928 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
929 echo "configure:930: checking whether ${MAKE-make} sets \${MAKE}" >&5
930 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
931 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
932 echo $ac_n "(cached) $ac_c" 1>&6
934 cat > conftestmake <<\EOF
936 @echo 'ac_maketemp="${MAKE}"'
938 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
939 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
940 if test -n "$ac_maketemp"; then
941 eval ac_cv_prog_make_${ac_make}_set=yes
943 eval ac_cv_prog_make_${ac_make}_set=no
947 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
948 echo "$ac_t""yes" 1>&6
951 echo "$ac_t""no" 1>&6
952 SET_MAKE="MAKE=${MAKE-make}"
955 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
956 if test -f $ac_dir/install-sh; then
958 ac_install_sh="$ac_aux_dir/install-sh -c"
960 elif test -f $ac_dir/install.sh; then
962 ac_install_sh="$ac_aux_dir/install.sh -c"
966 if test -z "$ac_aux_dir"; then
967 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
969 ac_config_guess=$ac_aux_dir/config.guess
970 ac_config_sub=$ac_aux_dir/config.sub
971 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
973 # Find a good install program. We prefer a C program (faster),
974 # so one script is as good as another. But avoid the broken or
975 # incompatible versions:
976 # SysV /etc/install, /usr/sbin/install
977 # SunOS /usr/etc/install
980 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
981 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
982 # ./install, which can be erroneously created by make from ./install.sh.
983 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
984 echo "configure:985: checking for a BSD compatible install" >&5
985 if test -z "$INSTALL"; then
986 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
987 echo $ac_n "(cached) $ac_c" 1>&6
989 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
990 for ac_dir in $PATH; do
991 # Account for people who put trailing slashes in PATH elements.
993 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
995 # OSF1 and SCO ODT 3.0 have their own names for install.
996 for ac_prog in ginstall installbsd scoinst install; do
997 if test -f $ac_dir/$ac_prog; then
998 if test $ac_prog = install &&
999 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1000 # AIX install. It has an incompatible calling convention.
1001 # OSF/1 installbsd also uses dspmsg, but is usable.
1004 ac_cv_path_install="$ac_dir/$ac_prog -c"
1015 if test "${ac_cv_path_install+set}" = set; then
1016 INSTALL="$ac_cv_path_install"
1018 # As a last resort, use the slow shell script. We don't cache a
1019 # path for INSTALL within a source directory, because that will
1020 # break other packages using the cache if that directory is
1021 # removed, or if the path is relative.
1022 INSTALL="$ac_install_sh"
1025 echo "$ac_t""$INSTALL" 1>&6
1027 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1028 # It thinks the first close brace ends the variable substitution.
1029 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1031 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1032 # Extract the first word of "ranlib", so it can be a program name with args.
1033 set dummy ranlib; ac_word=$2
1034 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1035 echo "configure:1036: checking for $ac_word" >&5
1036 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1037 echo $ac_n "(cached) $ac_c" 1>&6
1039 if test -n "$RANLIB"; then
1040 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1042 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1043 for ac_dir in $PATH; do
1044 test -z "$ac_dir" && ac_dir=.
1045 if test -f $ac_dir/$ac_word; then
1046 ac_cv_prog_RANLIB="ranlib"
1051 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1054 RANLIB="$ac_cv_prog_RANLIB"
1055 if test -n "$RANLIB"; then
1056 echo "$ac_t""$RANLIB" 1>&6
1058 echo "$ac_t""no" 1>&6
1060 for ac_prog in mawk gawk nawk awk
1062 # Extract the first word of "$ac_prog", so it can be a program name with args.
1063 set dummy $ac_prog; ac_word=$2
1064 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1065 echo "configure:1066: checking for $ac_word" >&5
1066 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1067 echo $ac_n "(cached) $ac_c" 1>&6
1069 if test -n "$AWK"; then
1070 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1072 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1073 for ac_dir in $PATH; do
1074 test -z "$ac_dir" && ac_dir=.
1075 if test -f $ac_dir/$ac_word; then
1076 ac_cv_prog_AWK="$ac_prog"
1083 AWK="$ac_cv_prog_AWK"
1084 if test -n "$AWK"; then
1085 echo "$ac_t""$AWK" 1>&6
1087 echo "$ac_t""no" 1>&6
1090 test -n "$AWK" && break
1092 # Extract the first word of "flex", so it can be a program name with args.
1093 set dummy flex; ac_word=$2
1094 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1095 echo "configure:1096: checking for $ac_word" >&5
1096 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1097 echo $ac_n "(cached) $ac_c" 1>&6
1099 if test -n "$LEX"; then
1100 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1102 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1103 for ac_dir in $PATH; do
1104 test -z "$ac_dir" && ac_dir=.
1105 if test -f $ac_dir/$ac_word; then
1106 ac_cv_prog_LEX="flex"
1111 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1114 LEX="$ac_cv_prog_LEX"
1115 if test -n "$LEX"; then
1116 echo "$ac_t""$LEX" 1>&6
1118 echo "$ac_t""no" 1>&6
1121 if test -z "$LEXLIB"
1127 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1128 echo "configure:1129: checking for yywrap in -l$ac_lib" >&5
1129 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1130 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1131 echo $ac_n "(cached) $ac_c" 1>&6
1133 ac_save_LIBS="$LIBS"
1134 LIBS="-l$ac_lib $LIBS"
1135 cat > conftest.$ac_ext <<EOF
1136 #line 1137 "configure"
1137 #include "confdefs.h"
1138 /* Override any gcc2 internal prototype to avoid an error. */
1139 /* We use char because int might match the return type of a gcc2
1140 builtin and then its argument prototype would still apply. */
1147 if { (eval echo configure:1148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1149 eval "ac_cv_lib_$ac_lib_var=yes"
1151 echo "configure: failed program was:" >&5
1152 cat conftest.$ac_ext >&5
1154 eval "ac_cv_lib_$ac_lib_var=no"
1157 LIBS="$ac_save_LIBS"
1160 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1161 echo "$ac_t""yes" 1>&6
1164 echo "$ac_t""no" 1>&6
1169 # Extract the first word of "lorder", so it can be a program name with args.
1170 set dummy lorder; ac_word=$2
1171 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1172 echo "configure:1173: checking for $ac_word" >&5
1173 if eval "test \"`echo '$''{'ac_cv_prog_LORDER'+set}'`\" = set"; then
1174 echo $ac_n "(cached) $ac_c" 1>&6
1176 if test -n "$LORDER"; then
1177 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
1179 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1180 for ac_dir in $PATH; do
1181 test -z "$ac_dir" && ac_dir=.
1182 if test -f $ac_dir/$ac_word; then
1183 ac_cv_prog_LORDER="lorder"
1188 test -z "$ac_cv_prog_LORDER" && ac_cv_prog_LORDER="no"
1191 LORDER="$ac_cv_prog_LORDER"
1192 if test -n "$LORDER"; then
1193 echo "$ac_t""$LORDER" 1>&6
1195 echo "$ac_t""no" 1>&6
1197 # Extract the first word of "tsort", so it can be a program name with args.
1198 set dummy tsort; ac_word=$2
1199 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1200 echo "configure:1201: checking for $ac_word" >&5
1201 if eval "test \"`echo '$''{'ac_cv_prog_TSORT'+set}'`\" = set"; then
1202 echo $ac_n "(cached) $ac_c" 1>&6
1204 if test -n "$TSORT"; then
1205 ac_cv_prog_TSORT="$TSORT" # Let the user override the test.
1207 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1208 for ac_dir in $PATH; do
1209 test -z "$ac_dir" && ac_dir=.
1210 if test -f $ac_dir/$ac_word; then
1211 ac_cv_prog_TSORT="tsort"
1216 test -z "$ac_cv_prog_TSORT" && ac_cv_prog_TSORT="no"
1219 TSORT="$ac_cv_prog_TSORT"
1220 if test -n "$TSORT"; then
1221 echo "$ac_t""$TSORT" 1>&6
1223 echo "$ac_t""no" 1>&6
1226 if test x$ac_cv_prog_LORDER != xlorder -o x$ac_cv_prog_TSORT != xtsort; then
1231 pathtmp=/usr/lib:/usr/sbin:/usr/etc:/usr/ucblib:/usr/bin:/bin
1232 # Extract the first word of "sendmail", so it can be a program name with args.
1233 set dummy sendmail; ac_word=$2
1234 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1235 echo "configure:1236: checking for $ac_word" >&5
1236 if eval "test \"`echo '$''{'ac_cv_path_sendmailpath'+set}'`\" = set"; then
1237 echo $ac_n "(cached) $ac_c" 1>&6
1239 case "$sendmailpath" in
1241 ac_cv_path_sendmailpath="$sendmailpath" # Let the user override the test with a path.
1244 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1245 for ac_dir in $pathtmp$ac_dummy; do
1246 test -z "$ac_dir" && ac_dir=.
1247 if test -f $ac_dir/$ac_word; then
1248 ac_cv_path_sendmailpath="$ac_dir/$ac_word"
1253 test -z "$ac_cv_path_sendmailpath" && ac_cv_path_sendmailpath="no"
1257 sendmailpath="$ac_cv_path_sendmailpath"
1258 if test -n "$sendmailpath"; then
1259 echo "$ac_t""$sendmailpath" 1>&6
1261 echo "$ac_t""no" 1>&6
1265 pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin
1266 # Extract the first word of "more", so it can be a program name with args.
1267 set dummy more; ac_word=$2
1268 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1269 echo "configure:1270: checking for $ac_word" >&5
1270 if eval "test \"`echo '$''{'ac_cv_path_morepath'+set}'`\" = set"; then
1271 echo $ac_n "(cached) $ac_c" 1>&6
1275 ac_cv_path_morepath="$morepath" # Let the user override the test with a path.
1278 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1279 for ac_dir in $pathtmp$ac_dummy; do
1280 test -z "$ac_dir" && ac_dir=.
1281 if test -f $ac_dir/$ac_word; then
1282 ac_cv_path_morepath="$ac_dir/$ac_word"
1287 test -z "$ac_cv_path_morepath" && ac_cv_path_morepath="no"
1291 morepath="$ac_cv_path_morepath"
1292 if test -n "$morepath"; then
1293 echo "$ac_t""$morepath" 1>&6
1295 echo "$ac_t""no" 1>&6
1299 if test -z "$pagerpath"; then
1300 pagerpath="$morepath"
1303 pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin
1304 # Extract the first word of "vi", so it can be a program name with args.
1305 set dummy vi; ac_word=$2
1306 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1307 echo "configure:1308: checking for $ac_word" >&5
1308 if eval "test \"`echo '$''{'ac_cv_path_vipath'+set}'`\" = set"; then
1309 echo $ac_n "(cached) $ac_c" 1>&6
1313 ac_cv_path_vipath="$vipath" # Let the user override the test with a path.
1316 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1317 for ac_dir in $pathtmp$ac_dummy; do
1318 test -z "$ac_dir" && ac_dir=.
1319 if test -f $ac_dir/$ac_word; then
1320 ac_cv_path_vipath="$ac_dir/$ac_word"
1325 test -z "$ac_cv_path_vipath" && ac_cv_path_vipath="no"
1329 vipath="$ac_cv_path_vipath"
1330 if test -n "$vipath"; then
1331 echo "$ac_t""$vipath" 1>&6
1333 echo "$ac_t""no" 1>&6
1337 if test -z "$editorpath"; then
1338 editorpath="$vipath"
1341 echo $ac_n "checking for broken vi""... $ac_c" 1>&6
1342 echo "configure:1343: checking for broken vi" >&5
1343 if eval "test \"`echo '$''{'nmh_cv_attvibug'+set}'`\" = set"; then
1344 echo $ac_n "(cached) $ac_c" 1>&6
1346 if echo 'r /nonexist-file
1347 q' | ex > /dev/null 2>&1
1355 echo "$ac_t""$nmh_cv_attvibug" 1>&6
1357 if test "$nmh_cv_attvibug" = yes; then
1358 cat >> confdefs.h <<\EOF
1364 echo $ac_n "checking where mail spool is located""... $ac_c" 1>&6
1365 echo "configure:1366: checking where mail spool is located" >&5
1366 if eval "test \"`echo '$''{'nmh_cv_mailspool'+set}'`\" = set"; then
1367 echo $ac_n "(cached) $ac_c" 1>&6
1369 for mailspool in /var/mail /var/spool/mail /usr/spool/mail /dev/null; do
1370 test -d $mailspool && break
1372 nmh_cv_mailspool=$mailspool
1376 echo "$ac_t""$nmh_cv_mailspool" 1>&6
1377 mailspool=$nmh_cv_mailspool
1380 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1382 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1383 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1384 echo "configure:1385: checking for $ac_hdr that defines DIR" >&5
1385 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1386 echo $ac_n "(cached) $ac_c" 1>&6
1388 cat > conftest.$ac_ext <<EOF
1389 #line 1390 "configure"
1390 #include "confdefs.h"
1391 #include <sys/types.h>
1397 if { (eval echo configure:1398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1399 eval "ac_cv_header_dirent_$ac_safe=yes"
1401 echo "configure: failed program was:" >&5
1402 cat conftest.$ac_ext >&5
1404 eval "ac_cv_header_dirent_$ac_safe=no"
1408 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1409 echo "$ac_t""yes" 1>&6
1410 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1411 cat >> confdefs.h <<EOF
1412 #define $ac_tr_hdr 1
1414 ac_header_dirent=$ac_hdr; break
1416 echo "$ac_t""no" 1>&6
1419 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1420 if test $ac_header_dirent = dirent.h; then
1421 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1422 echo "configure:1423: checking for opendir in -ldir" >&5
1423 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1424 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1425 echo $ac_n "(cached) $ac_c" 1>&6
1427 ac_save_LIBS="$LIBS"
1429 cat > conftest.$ac_ext <<EOF
1430 #line 1431 "configure"
1431 #include "confdefs.h"
1432 /* Override any gcc2 internal prototype to avoid an error. */
1433 /* We use char because int might match the return type of a gcc2
1434 builtin and then its argument prototype would still apply. */
1441 if { (eval echo configure:1442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1443 eval "ac_cv_lib_$ac_lib_var=yes"
1445 echo "configure: failed program was:" >&5
1446 cat conftest.$ac_ext >&5
1448 eval "ac_cv_lib_$ac_lib_var=no"
1451 LIBS="$ac_save_LIBS"
1454 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1455 echo "$ac_t""yes" 1>&6
1458 echo "$ac_t""no" 1>&6
1462 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1463 echo "configure:1464: checking for opendir in -lx" >&5
1464 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1465 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1466 echo $ac_n "(cached) $ac_c" 1>&6
1468 ac_save_LIBS="$LIBS"
1470 cat > conftest.$ac_ext <<EOF
1471 #line 1472 "configure"
1472 #include "confdefs.h"
1473 /* Override any gcc2 internal prototype to avoid an error. */
1474 /* We use char because int might match the return type of a gcc2
1475 builtin and then its argument prototype would still apply. */
1482 if { (eval echo configure:1483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1484 eval "ac_cv_lib_$ac_lib_var=yes"
1486 echo "configure: failed program was:" >&5
1487 cat conftest.$ac_ext >&5
1489 eval "ac_cv_lib_$ac_lib_var=no"
1492 LIBS="$ac_save_LIBS"
1495 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1496 echo "$ac_t""yes" 1>&6
1499 echo "$ac_t""no" 1>&6
1504 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1505 echo "configure:1506: checking how to run the C preprocessor" >&5
1506 # On Suns, sometimes $CPP names a directory.
1507 if test -n "$CPP" && test -d "$CPP"; then
1510 if test -z "$CPP"; then
1511 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1512 echo $ac_n "(cached) $ac_c" 1>&6
1514 # This must be in double quotes, not single quotes, because CPP may get
1515 # substituted into the Makefile and "${CC-cc}" will confuse make.
1517 # On the NeXT, cc -E runs the code through the compiler's parser,
1518 # not just through cpp.
1519 cat > conftest.$ac_ext <<EOF
1520 #line 1521 "configure"
1521 #include "confdefs.h"
1525 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1526 { (eval echo configure:1527: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1527 ac_err=`grep -v '^ *+' conftest.out`
1528 if test -z "$ac_err"; then
1532 echo "configure: failed program was:" >&5
1533 cat conftest.$ac_ext >&5
1535 CPP="${CC-cc} -E -traditional-cpp"
1536 cat > conftest.$ac_ext <<EOF
1537 #line 1538 "configure"
1538 #include "confdefs.h"
1542 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1543 { (eval echo configure:1544: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1544 ac_err=`grep -v '^ *+' conftest.out`
1545 if test -z "$ac_err"; then
1549 echo "configure: failed program was:" >&5
1550 cat conftest.$ac_ext >&5
1557 ac_cv_prog_CPP="$CPP"
1559 CPP="$ac_cv_prog_CPP"
1561 ac_cv_prog_CPP="$CPP"
1563 echo "$ac_t""$CPP" 1>&6
1565 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1566 echo "configure:1567: checking for ANSI C header files" >&5
1567 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1568 echo $ac_n "(cached) $ac_c" 1>&6
1570 cat > conftest.$ac_ext <<EOF
1571 #line 1572 "configure"
1572 #include "confdefs.h"
1578 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1579 { (eval echo configure:1580: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1580 ac_err=`grep -v '^ *+' conftest.out`
1581 if test -z "$ac_err"; then
1583 ac_cv_header_stdc=yes
1586 echo "configure: failed program was:" >&5
1587 cat conftest.$ac_ext >&5
1589 ac_cv_header_stdc=no
1593 if test $ac_cv_header_stdc = yes; then
1594 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1595 cat > conftest.$ac_ext <<EOF
1596 #line 1597 "configure"
1597 #include "confdefs.h"
1600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1601 egrep "memchr" >/dev/null 2>&1; then
1605 ac_cv_header_stdc=no
1611 if test $ac_cv_header_stdc = yes; then
1612 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1613 cat > conftest.$ac_ext <<EOF
1614 #line 1615 "configure"
1615 #include "confdefs.h"
1618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1619 egrep "free" >/dev/null 2>&1; then
1623 ac_cv_header_stdc=no
1629 if test $ac_cv_header_stdc = yes; then
1630 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1631 if test "$cross_compiling" = yes; then
1634 cat > conftest.$ac_ext <<EOF
1635 #line 1636 "configure"
1636 #include "confdefs.h"
1638 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1639 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1640 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1641 int main () { int i; for (i = 0; i < 256; i++)
1642 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1646 if { (eval echo configure:1647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1650 echo "configure: failed program was:" >&5
1651 cat conftest.$ac_ext >&5
1653 ac_cv_header_stdc=no
1661 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1662 if test $ac_cv_header_stdc = yes; then
1663 cat >> confdefs.h <<\EOF
1664 #define STDC_HEADERS 1
1669 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1670 echo "configure:1671: checking whether time.h and sys/time.h may both be included" >&5
1671 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1672 echo $ac_n "(cached) $ac_c" 1>&6
1674 cat > conftest.$ac_ext <<EOF
1675 #line 1676 "configure"
1676 #include "confdefs.h"
1677 #include <sys/types.h>
1678 #include <sys/time.h>
1684 if { (eval echo configure:1685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1686 ac_cv_header_time=yes
1688 echo "configure: failed program was:" >&5
1689 cat conftest.$ac_ext >&5
1691 ac_cv_header_time=no
1696 echo "$ac_t""$ac_cv_header_time" 1>&6
1697 if test $ac_cv_header_time = yes; then
1698 cat >> confdefs.h <<\EOF
1699 #define TIME_WITH_SYS_TIME 1
1704 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1705 echo "configure:1706: checking for sys/wait.h that is POSIX.1 compatible" >&5
1706 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1707 echo $ac_n "(cached) $ac_c" 1>&6
1709 cat > conftest.$ac_ext <<EOF
1710 #line 1711 "configure"
1711 #include "confdefs.h"
1712 #include <sys/types.h>
1713 #include <sys/wait.h>
1715 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1718 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1723 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1726 if { (eval echo configure:1727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1728 ac_cv_header_sys_wait_h=yes
1730 echo "configure: failed program was:" >&5
1731 cat conftest.$ac_ext >&5
1733 ac_cv_header_sys_wait_h=no
1738 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1739 if test $ac_cv_header_sys_wait_h = yes; then
1740 cat >> confdefs.h <<\EOF
1741 #define HAVE_SYS_WAIT_H 1
1746 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
1747 echo "configure:1748: checking whether stat file-mode macros are broken" >&5
1748 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
1749 echo $ac_n "(cached) $ac_c" 1>&6
1751 cat > conftest.$ac_ext <<EOF
1752 #line 1753 "configure"
1753 #include "confdefs.h"
1754 #include <sys/types.h>
1755 #include <sys/stat.h>
1757 #if defined(S_ISBLK) && defined(S_IFDIR)
1758 # if S_ISBLK (S_IFDIR)
1763 #if defined(S_ISBLK) && defined(S_IFCHR)
1764 # if S_ISBLK (S_IFCHR)
1769 #if defined(S_ISLNK) && defined(S_IFREG)
1770 # if S_ISLNK (S_IFREG)
1775 #if defined(S_ISSOCK) && defined(S_IFREG)
1776 # if S_ISSOCK (S_IFREG)
1782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1783 egrep "You lose" >/dev/null 2>&1; then
1785 ac_cv_header_stat_broken=yes
1788 ac_cv_header_stat_broken=no
1794 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
1795 if test $ac_cv_header_stat_broken = yes; then
1796 cat >> confdefs.h <<\EOF
1797 #define STAT_MACROS_BROKEN 1
1802 for ac_hdr in string.h memory.h stdlib.h unistd.h errno.h fcntl.h \
1803 limits.h crypt.h termcap.h termio.h termios.h locale.h \
1804 sys/param.h sys/time.h sys/utsname.h arpa/inet.h \
1807 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1808 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1809 echo "configure:1810: checking for $ac_hdr" >&5
1810 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1811 echo $ac_n "(cached) $ac_c" 1>&6
1813 cat > conftest.$ac_ext <<EOF
1814 #line 1815 "configure"
1815 #include "confdefs.h"
1818 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1819 { (eval echo configure:1820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1820 ac_err=`grep -v '^ *+' conftest.out`
1821 if test -z "$ac_err"; then
1823 eval "ac_cv_header_$ac_safe=yes"
1826 echo "configure: failed program was:" >&5
1827 cat conftest.$ac_ext >&5
1829 eval "ac_cv_header_$ac_safe=no"
1833 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1834 echo "$ac_t""yes" 1>&6
1835 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1836 cat >> confdefs.h <<EOF
1837 #define $ac_tr_hdr 1
1841 echo "$ac_t""no" 1>&6
1846 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
1847 echo "configure:1848: checking POSIX termios" >&5
1848 if eval "test \"`echo '$''{'nmh_cv_sys_posix_termios'+set}'`\" = set"; then
1849 echo $ac_n "(cached) $ac_c" 1>&6
1851 cat > conftest.$ac_ext <<EOF
1852 #line 1853 "configure"
1853 #include "confdefs.h"
1854 #include <sys/types.h>
1856 #include <termios.h>
1858 /* SunOS 4.0.3 has termios.h but not the library calls. */
1862 if { (eval echo configure:1863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1864 nmh_cv_sys_posix_termios=yes
1866 echo "configure: failed program was:" >&5
1867 cat conftest.$ac_ext >&5
1869 nmh_cv_sys_posix_termios=no
1874 echo "$ac_t""$nmh_cv_sys_posix_termios" 1>&6
1876 if test $nmh_cv_sys_posix_termios = yes; then
1877 echo $ac_n "checking TIOCGWINSZ in termios.h""... $ac_c" 1>&6
1878 echo "configure:1879: checking TIOCGWINSZ in termios.h" >&5
1879 if eval "test \"`echo '$''{'nmh_cv_header_termios_h_tiocgwinsz'+set}'`\" = set"; then
1880 echo $ac_n "(cached) $ac_c" 1>&6
1882 cat > conftest.$ac_ext <<EOF
1883 #line 1884 "configure"
1884 #include "confdefs.h"
1885 #include <sys/types.h>
1886 #include <termios.h>
1891 if { (eval echo configure:1892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1893 nmh_cv_header_termios_h_tiocgwinsz=yes
1895 echo "configure: failed program was:" >&5
1896 cat conftest.$ac_ext >&5
1898 nmh_cv_header_termios_h_tiocgwinsz=no
1903 echo "$ac_t""$nmh_cv_header_termios_h_tiocgwinsz" 1>&6
1905 nmh_cv_header_termios_h_tiocgwinsz=no
1908 if test $nmh_cv_header_termios_h_tiocgwinsz = no; then
1909 echo $ac_n "checking TIOCGWINSZ in sys/ioctl.h""... $ac_c" 1>&6
1910 echo "configure:1911: checking TIOCGWINSZ in sys/ioctl.h" >&5
1911 if eval "test \"`echo '$''{'nmh_cv_header_sys_ioctl_h_tiocgwinsz'+set}'`\" = set"; then
1912 echo $ac_n "(cached) $ac_c" 1>&6
1914 cat > conftest.$ac_ext <<EOF
1915 #line 1916 "configure"
1916 #include "confdefs.h"
1917 #include <sys/types.h>
1918 #include <sys/ioctl.h>
1923 if { (eval echo configure:1924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1925 nmh_cv_header_sys_ioctl_h_tiocgwinsz=yes
1927 echo "configure: failed program was:" >&5
1928 cat conftest.$ac_ext >&5
1930 nmh_cv_header_sys_ioctl_h_tiocgwinsz=no
1935 echo "$ac_t""$nmh_cv_header_sys_ioctl_h_tiocgwinsz" 1>&6
1936 if test $nmh_cv_header_sys_ioctl_h_tiocgwinsz = yes; then
1937 cat >> confdefs.h <<\EOF
1938 #define GWINSZ_IN_SYS_IOCTL 1
1944 ac_safe=`echo "sys/ptem.h" | sed 'y%./+-%__p_%'`
1945 echo $ac_n "checking for sys/ptem.h""... $ac_c" 1>&6
1946 echo "configure:1947: checking for sys/ptem.h" >&5
1947 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1948 echo $ac_n "(cached) $ac_c" 1>&6
1950 cat > conftest.$ac_ext <<EOF
1951 #line 1952 "configure"
1952 #include "confdefs.h"
1953 #include <sys/ptem.h>
1955 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1956 { (eval echo configure:1957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1957 ac_err=`grep -v '^ *+' conftest.out`
1958 if test -z "$ac_err"; then
1960 eval "ac_cv_header_$ac_safe=yes"
1963 echo "configure: failed program was:" >&5
1964 cat conftest.$ac_ext >&5
1966 eval "ac_cv_header_$ac_safe=no"
1970 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1971 echo "$ac_t""yes" 1>&6
1972 cat >> confdefs.h <<\EOF
1973 #define WINSIZE_IN_PTEM 1
1977 echo "$ac_t""no" 1>&6
1981 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
1982 echo "configure:1983: checking for pid_t" >&5
1983 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
1984 echo $ac_n "(cached) $ac_c" 1>&6
1986 cat > conftest.$ac_ext <<EOF
1987 #line 1988 "configure"
1988 #include "confdefs.h"
1989 #include <sys/types.h>
1995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1996 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1998 ac_cv_type_pid_t=yes
2006 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2007 if test $ac_cv_type_pid_t = no; then
2008 cat >> confdefs.h <<\EOF
2014 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2015 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2016 echo "configure:2017: checking for vfork.h" >&5
2017 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2018 echo $ac_n "(cached) $ac_c" 1>&6
2020 cat > conftest.$ac_ext <<EOF
2021 #line 2022 "configure"
2022 #include "confdefs.h"
2025 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2026 { (eval echo configure:2027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2027 ac_err=`grep -v '^ *+' conftest.out`
2028 if test -z "$ac_err"; then
2030 eval "ac_cv_header_$ac_safe=yes"
2033 echo "configure: failed program was:" >&5
2034 cat conftest.$ac_ext >&5
2036 eval "ac_cv_header_$ac_safe=no"
2040 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2041 echo "$ac_t""yes" 1>&6
2042 cat >> confdefs.h <<\EOF
2043 #define HAVE_VFORK_H 1
2047 echo "$ac_t""no" 1>&6
2050 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2051 echo "configure:2052: checking for working vfork" >&5
2052 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2053 echo $ac_n "(cached) $ac_c" 1>&6
2055 if test "$cross_compiling" = yes; then
2056 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2057 echo "configure:2058: checking for vfork" >&5
2058 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2059 echo $ac_n "(cached) $ac_c" 1>&6
2061 cat > conftest.$ac_ext <<EOF
2062 #line 2063 "configure"
2063 #include "confdefs.h"
2064 /* System header to define __stub macros and hopefully few prototypes,
2065 which can conflict with char vfork(); below. */
2067 /* Override any gcc2 internal prototype to avoid an error. */
2068 /* We use char because int might match the return type of a gcc2
2069 builtin and then its argument prototype would still apply. */
2074 /* The GNU C library defines this for functions which it implements
2075 to always fail with ENOSYS. Some functions are actually named
2076 something starting with __ and the normal name is an alias. */
2077 #if defined (__stub_vfork) || defined (__stub___vfork)
2085 if { (eval echo configure:2086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2087 eval "ac_cv_func_vfork=yes"
2089 echo "configure: failed program was:" >&5
2090 cat conftest.$ac_ext >&5
2092 eval "ac_cv_func_vfork=no"
2097 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2098 echo "$ac_t""yes" 1>&6
2101 echo "$ac_t""no" 1>&6
2105 cat > conftest.$ac_ext <<EOF
2106 #line 2107 "configure"
2107 #include "confdefs.h"
2108 /* Thanks to Paul Eggert for this test. */
2110 #include <sys/types.h>
2111 #include <sys/stat.h>
2112 #ifdef HAVE_UNISTD_H
2118 /* On some sparc systems, changes by the child to local and incoming
2119 argument registers are propagated back to the parent.
2120 The compiler is told about this with #include <vfork.h>,
2121 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2122 Test for this by using a static variable whose address
2123 is put into a register that is clobbered by the vfork. */
2126 sparc_address_test (int arg)
2128 sparc_address_test (arg) int arg;
2146 pid_t parent = getpid ();
2149 sparc_address_test ();
2154 /* Here is another test for sparc vfork register problems.
2155 This test uses lots of local variables, at least
2156 as many local variables as main has allocated so far
2157 including compiler temporaries. 4 locals are enough for
2158 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2159 A buggy compiler should reuse the register of parent
2160 for one of the local variables, since it will think that
2161 parent can't possibly be used any more in this routine.
2162 Assigning to the local variable will thus munge parent
2163 in the parent process. */
2165 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2166 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2167 /* Convince the compiler that p..p7 are live; otherwise, it might
2168 use the same hardware register for all 8 local variables. */
2169 if (p != p1 || p != p2 || p != p3 || p != p4
2170 || p != p5 || p != p6 || p != p7)
2173 /* On some systems (e.g. IRIX 3.3),
2174 vfork doesn't separate parent from child file descriptors.
2175 If the child closes a descriptor before it execs or exits,
2176 this munges the parent's descriptor as well.
2177 Test for this by closing stdout in the child. */
2178 _exit(close(fileno(stdout)) != 0);
2183 while (wait(&status) != child)
2186 /* Was there some problem with vforking? */
2189 /* Did the child fail? (This shouldn't happen.) */
2192 /* Did the vfork/compiler bug occur? */
2193 || parent != getpid()
2195 /* Did the file descriptor bug occur? */
2196 || fstat(fileno(stdout), &st) != 0
2201 if { (eval echo configure:2202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2203 ac_cv_func_vfork_works=yes
2205 echo "configure: failed program was:" >&5
2206 cat conftest.$ac_ext >&5
2208 ac_cv_func_vfork_works=no
2215 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2216 if test $ac_cv_func_vfork_works = no; then
2217 cat >> confdefs.h <<\EOF
2223 for ac_func in waitpid wait3 sigaction sigprocmask sigblock sigsetmask \
2224 sighold sigrelse writev lstat uname tzset killpg \
2227 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2228 echo "configure:2229: checking for $ac_func" >&5
2229 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2230 echo $ac_n "(cached) $ac_c" 1>&6
2232 cat > conftest.$ac_ext <<EOF
2233 #line 2234 "configure"
2234 #include "confdefs.h"
2235 /* System header to define __stub macros and hopefully few prototypes,
2236 which can conflict with char $ac_func(); below. */
2238 /* Override any gcc2 internal prototype to avoid an error. */
2239 /* We use char because int might match the return type of a gcc2
2240 builtin and then its argument prototype would still apply. */
2245 /* The GNU C library defines this for functions which it implements
2246 to always fail with ENOSYS. Some functions are actually named
2247 something starting with __ and the normal name is an alias. */
2248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2256 if { (eval echo configure:2257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2258 eval "ac_cv_func_$ac_func=yes"
2260 echo "configure: failed program was:" >&5
2261 cat conftest.$ac_ext >&5
2263 eval "ac_cv_func_$ac_func=no"
2268 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2269 echo "$ac_t""yes" 1>&6
2270 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2271 cat >> confdefs.h <<EOF
2272 #define $ac_tr_func 1
2276 echo "$ac_t""no" 1>&6
2281 for ac_func in snprintf strerror strdup
2283 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2284 echo "configure:2285: checking for $ac_func" >&5
2285 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2286 echo $ac_n "(cached) $ac_c" 1>&6
2288 cat > conftest.$ac_ext <<EOF
2289 #line 2290 "configure"
2290 #include "confdefs.h"
2291 /* System header to define __stub macros and hopefully few prototypes,
2292 which can conflict with char $ac_func(); below. */
2294 /* Override any gcc2 internal prototype to avoid an error. */
2295 /* We use char because int might match the return type of a gcc2
2296 builtin and then its argument prototype would still apply. */
2301 /* The GNU C library defines this for functions which it implements
2302 to always fail with ENOSYS. Some functions are actually named
2303 something starting with __ and the normal name is an alias. */
2304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2312 if { (eval echo configure:2313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2314 eval "ac_cv_func_$ac_func=yes"
2316 echo "configure: failed program was:" >&5
2317 cat conftest.$ac_ext >&5
2319 eval "ac_cv_func_$ac_func=no"
2324 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2325 echo "$ac_t""yes" 1>&6
2326 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2327 cat >> confdefs.h <<EOF
2328 #define $ac_tr_func 1
2332 echo "$ac_t""no" 1>&6
2333 LIBOBJS="$LIBOBJS ${ac_func}.o"
2339 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2340 echo "configure:2341: checking for gethostbyname" >&5
2341 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2342 echo $ac_n "(cached) $ac_c" 1>&6
2344 cat > conftest.$ac_ext <<EOF
2345 #line 2346 "configure"
2346 #include "confdefs.h"
2347 /* System header to define __stub macros and hopefully few prototypes,
2348 which can conflict with char gethostbyname(); below. */
2350 /* Override any gcc2 internal prototype to avoid an error. */
2351 /* We use char because int might match the return type of a gcc2
2352 builtin and then its argument prototype would still apply. */
2353 char gethostbyname();
2357 /* The GNU C library defines this for functions which it implements
2358 to always fail with ENOSYS. Some functions are actually named
2359 something starting with __ and the normal name is an alias. */
2360 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2368 if { (eval echo configure:2369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2370 eval "ac_cv_func_gethostbyname=yes"
2372 echo "configure: failed program was:" >&5
2373 cat conftest.$ac_ext >&5
2375 eval "ac_cv_func_gethostbyname=no"
2380 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2381 echo "$ac_t""yes" 1>&6
2384 echo "$ac_t""no" 1>&6
2385 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2386 echo "configure:2387: checking for gethostbyname in -lnsl" >&5
2387 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2388 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2389 echo $ac_n "(cached) $ac_c" 1>&6
2391 ac_save_LIBS="$LIBS"
2393 cat > conftest.$ac_ext <<EOF
2394 #line 2395 "configure"
2395 #include "confdefs.h"
2396 /* Override any gcc2 internal prototype to avoid an error. */
2397 /* We use char because int might match the return type of a gcc2
2398 builtin and then its argument prototype would still apply. */
2399 char gethostbyname();
2405 if { (eval echo configure:2406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2407 eval "ac_cv_lib_$ac_lib_var=yes"
2409 echo "configure: failed program was:" >&5
2410 cat conftest.$ac_ext >&5
2412 eval "ac_cv_lib_$ac_lib_var=no"
2415 LIBS="$ac_save_LIBS"
2418 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2419 echo "$ac_t""yes" 1>&6
2420 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
2421 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2422 cat >> confdefs.h <<EOF
2423 #define $ac_tr_lib 1
2429 echo "$ac_t""no" 1>&6
2430 echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6
2431 echo "configure:2432: checking for gethostbyname in -lresolv" >&5
2432 ac_lib_var=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'`
2433 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2434 echo $ac_n "(cached) $ac_c" 1>&6
2436 ac_save_LIBS="$LIBS"
2437 LIBS="-lresolv $LIBS"
2438 cat > conftest.$ac_ext <<EOF
2439 #line 2440 "configure"
2440 #include "confdefs.h"
2441 /* Override any gcc2 internal prototype to avoid an error. */
2442 /* We use char because int might match the return type of a gcc2
2443 builtin and then its argument prototype would still apply. */
2444 char gethostbyname();
2450 if { (eval echo configure:2451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2452 eval "ac_cv_lib_$ac_lib_var=yes"
2454 echo "configure: failed program was:" >&5
2455 cat conftest.$ac_ext >&5
2457 eval "ac_cv_lib_$ac_lib_var=no"
2460 LIBS="$ac_save_LIBS"
2463 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2464 echo "$ac_t""yes" 1>&6
2465 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
2466 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2467 cat >> confdefs.h <<EOF
2468 #define $ac_tr_lib 1
2471 LIBS="-lresolv $LIBS"
2474 echo "$ac_t""no" 1>&6
2481 echo $ac_n "checking for socket""... $ac_c" 1>&6
2482 echo "configure:2483: checking for socket" >&5
2483 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
2484 echo $ac_n "(cached) $ac_c" 1>&6
2486 cat > conftest.$ac_ext <<EOF
2487 #line 2488 "configure"
2488 #include "confdefs.h"
2489 /* System header to define __stub macros and hopefully few prototypes,
2490 which can conflict with char socket(); below. */
2492 /* Override any gcc2 internal prototype to avoid an error. */
2493 /* We use char because int might match the return type of a gcc2
2494 builtin and then its argument prototype would still apply. */
2499 /* The GNU C library defines this for functions which it implements
2500 to always fail with ENOSYS. Some functions are actually named
2501 something starting with __ and the normal name is an alias. */
2502 #if defined (__stub_socket) || defined (__stub___socket)
2510 if { (eval echo configure:2511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2512 eval "ac_cv_func_socket=yes"
2514 echo "configure: failed program was:" >&5
2515 cat conftest.$ac_ext >&5
2517 eval "ac_cv_func_socket=no"
2522 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
2523 echo "$ac_t""yes" 1>&6
2526 echo "$ac_t""no" 1>&6
2527 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
2528 echo "configure:2529: checking for socket in -lsocket" >&5
2529 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
2530 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2531 echo $ac_n "(cached) $ac_c" 1>&6
2533 ac_save_LIBS="$LIBS"
2534 LIBS="-lsocket $LIBS"
2535 cat > conftest.$ac_ext <<EOF
2536 #line 2537 "configure"
2537 #include "confdefs.h"
2538 /* Override any gcc2 internal prototype to avoid an error. */
2539 /* We use char because int might match the return type of a gcc2
2540 builtin and then its argument prototype would still apply. */
2547 if { (eval echo configure:2548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2549 eval "ac_cv_lib_$ac_lib_var=yes"
2551 echo "configure: failed program was:" >&5
2552 cat conftest.$ac_ext >&5
2554 eval "ac_cv_lib_$ac_lib_var=no"
2557 LIBS="$ac_save_LIBS"
2560 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2561 echo "$ac_t""yes" 1>&6
2562 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2563 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2564 cat >> confdefs.h <<EOF
2565 #define $ac_tr_lib 1
2568 LIBS="-lsocket $LIBS"
2571 echo "$ac_t""no" 1>&6
2578 echo $ac_n "checking for ruserpass""... $ac_c" 1>&6
2579 echo "configure:2580: checking for ruserpass" >&5
2580 if eval "test \"`echo '$''{'ac_cv_func_ruserpass'+set}'`\" = set"; then
2581 echo $ac_n "(cached) $ac_c" 1>&6
2583 cat > conftest.$ac_ext <<EOF
2584 #line 2585 "configure"
2585 #include "confdefs.h"
2586 /* System header to define __stub macros and hopefully few prototypes,
2587 which can conflict with char ruserpass(); below. */
2589 /* Override any gcc2 internal prototype to avoid an error. */
2590 /* We use char because int might match the return type of a gcc2
2591 builtin and then its argument prototype would still apply. */
2596 /* The GNU C library defines this for functions which it implements
2597 to always fail with ENOSYS. Some functions are actually named
2598 something starting with __ and the normal name is an alias. */
2599 #if defined (__stub_ruserpass) || defined (__stub___ruserpass)
2607 if { (eval echo configure:2608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2609 eval "ac_cv_func_ruserpass=yes"
2611 echo "configure: failed program was:" >&5
2612 cat conftest.$ac_ext >&5
2614 eval "ac_cv_func_ruserpass=no"
2619 if eval "test \"`echo '$ac_cv_func_'ruserpass`\" = yes"; then
2620 echo "$ac_t""yes" 1>&6
2623 echo "$ac_t""no" 1>&6
2624 echo $ac_n "checking for _ruserpass""... $ac_c" 1>&6
2625 echo "configure:2626: checking for _ruserpass" >&5
2626 if eval "test \"`echo '$''{'ac_cv_func__ruserpass'+set}'`\" = set"; then
2627 echo $ac_n "(cached) $ac_c" 1>&6
2629 cat > conftest.$ac_ext <<EOF
2630 #line 2631 "configure"
2631 #include "confdefs.h"
2632 /* System header to define __stub macros and hopefully few prototypes,
2633 which can conflict with char _ruserpass(); below. */
2635 /* Override any gcc2 internal prototype to avoid an error. */
2636 /* We use char because int might match the return type of a gcc2
2637 builtin and then its argument prototype would still apply. */
2642 /* The GNU C library defines this for functions which it implements
2643 to always fail with ENOSYS. Some functions are actually named
2644 something starting with __ and the normal name is an alias. */
2645 #if defined (__stub__ruserpass) || defined (__stub____ruserpass)
2653 if { (eval echo configure:2654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2655 eval "ac_cv_func__ruserpass=yes"
2657 echo "configure: failed program was:" >&5
2658 cat conftest.$ac_ext >&5
2660 eval "ac_cv_func__ruserpass=no"
2665 if eval "test \"`echo '$ac_cv_func_'_ruserpass`\" = yes"; then
2666 echo "$ac_t""yes" 1>&6
2669 echo "$ac_t""no" 1>&6
2670 echo $ac_n "checking for _ruserpass in -lsocket""... $ac_c" 1>&6
2671 echo "configure:2672: checking for _ruserpass in -lsocket" >&5
2672 ac_lib_var=`echo socket'_'_ruserpass | sed 'y%./+-%__p_%'`
2673 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2674 echo $ac_n "(cached) $ac_c" 1>&6
2676 ac_save_LIBS="$LIBS"
2677 LIBS="-lsocket $LIBS"
2678 cat > conftest.$ac_ext <<EOF
2679 #line 2680 "configure"
2680 #include "confdefs.h"
2681 /* Override any gcc2 internal prototype to avoid an error. */
2682 /* We use char because int might match the return type of a gcc2
2683 builtin and then its argument prototype would still apply. */
2690 if { (eval echo configure:2691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2692 eval "ac_cv_lib_$ac_lib_var=yes"
2694 echo "configure: failed program was:" >&5
2695 cat conftest.$ac_ext >&5
2697 eval "ac_cv_lib_$ac_lib_var=no"
2700 LIBS="$ac_save_LIBS"
2703 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2704 echo "$ac_t""yes" 1>&6
2705 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2706 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2707 cat >> confdefs.h <<EOF
2708 #define $ac_tr_lib 1
2711 LIBS="-lsocket $LIBS"
2714 echo "$ac_t""no" 1>&6
2721 if test x$ac_cv_func_ruserpass = xno; then
2722 if test x$ac_cv_func__ruserpass = xyes -o x$ac_cv_lib_socket__ruserpass = xyes; then
2723 cat >> confdefs.h <<\EOF
2724 #define ruserpass _ruserpass
2728 LIBOBJS="$LIBOBJS ruserpass.o"
2733 termcap_curses_order="termcap curses ncurses"
2734 for lib in $termcap_curses_order; do
2735 echo $ac_n "checking for tgetent in -l${lib}""... $ac_c" 1>&6
2736 echo "configure:2737: checking for tgetent in -l${lib}" >&5
2737 ac_lib_var=`echo ${lib}'_'tgetent | sed 'y%./+-%__p_%'`
2738 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2739 echo $ac_n "(cached) $ac_c" 1>&6
2741 ac_save_LIBS="$LIBS"
2742 LIBS="-l${lib} $LIBS"
2743 cat > conftest.$ac_ext <<EOF
2744 #line 2745 "configure"
2745 #include "confdefs.h"
2746 /* Override any gcc2 internal prototype to avoid an error. */
2747 /* We use char because int might match the return type of a gcc2
2748 builtin and then its argument prototype would still apply. */
2755 if { (eval echo configure:2756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2757 eval "ac_cv_lib_$ac_lib_var=yes"
2759 echo "configure: failed program was:" >&5
2760 cat conftest.$ac_ext >&5
2762 eval "ac_cv_lib_$ac_lib_var=no"
2765 LIBS="$ac_save_LIBS"
2768 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2769 echo "$ac_t""yes" 1>&6
2770 TERMLIB="-l$lib"; break
2772 echo "$ac_t""no" 1>&6
2777 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
2778 echo "configure:2779: checking for dbm_open" >&5
2779 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
2780 echo $ac_n "(cached) $ac_c" 1>&6
2782 cat > conftest.$ac_ext <<EOF
2783 #line 2784 "configure"
2784 #include "confdefs.h"
2785 /* System header to define __stub macros and hopefully few prototypes,
2786 which can conflict with char dbm_open(); below. */
2788 /* Override any gcc2 internal prototype to avoid an error. */
2789 /* We use char because int might match the return type of a gcc2
2790 builtin and then its argument prototype would still apply. */
2795 /* The GNU C library defines this for functions which it implements
2796 to always fail with ENOSYS. Some functions are actually named
2797 something starting with __ and the normal name is an alias. */
2798 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
2806 if { (eval echo configure:2807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2808 eval "ac_cv_func_dbm_open=yes"
2810 echo "configure: failed program was:" >&5
2811 cat conftest.$ac_ext >&5
2813 eval "ac_cv_func_dbm_open=no"
2818 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
2819 echo "$ac_t""yes" 1>&6
2822 echo "$ac_t""no" 1>&6
2823 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
2824 echo "configure:2825: checking for dbm_open in -lndbm" >&5
2825 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
2826 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2827 echo $ac_n "(cached) $ac_c" 1>&6
2829 ac_save_LIBS="$LIBS"
2831 cat > conftest.$ac_ext <<EOF
2832 #line 2833 "configure"
2833 #include "confdefs.h"
2834 /* Override any gcc2 internal prototype to avoid an error. */
2835 /* We use char because int might match the return type of a gcc2
2836 builtin and then its argument prototype would still apply. */
2843 if { (eval echo configure:2844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2845 eval "ac_cv_lib_$ac_lib_var=yes"
2847 echo "configure: failed program was:" >&5
2848 cat conftest.$ac_ext >&5
2850 eval "ac_cv_lib_$ac_lib_var=no"
2853 LIBS="$ac_save_LIBS"
2856 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2857 echo "$ac_t""yes" 1>&6
2858 ac_tr_lib=HAVE_LIB`echo ndbm | sed -e 's/^a-zA-Z0-9_/_/g' \
2859 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2860 cat >> confdefs.h <<EOF
2861 #define $ac_tr_lib 1
2867 echo "$ac_t""no" 1>&6
2868 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
2869 echo "configure:2870: checking for dbm_open in -ldbm" >&5
2870 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
2871 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2872 echo $ac_n "(cached) $ac_c" 1>&6
2874 ac_save_LIBS="$LIBS"
2876 cat > conftest.$ac_ext <<EOF
2877 #line 2878 "configure"
2878 #include "confdefs.h"
2879 /* Override any gcc2 internal prototype to avoid an error. */
2880 /* We use char because int might match the return type of a gcc2
2881 builtin and then its argument prototype would still apply. */
2888 if { (eval echo configure:2889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2890 eval "ac_cv_lib_$ac_lib_var=yes"
2892 echo "configure: failed program was:" >&5
2893 cat conftest.$ac_ext >&5
2895 eval "ac_cv_lib_$ac_lib_var=no"
2898 LIBS="$ac_save_LIBS"
2901 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2902 echo "$ac_t""yes" 1>&6
2903 ac_tr_lib=HAVE_LIB`echo dbm | sed -e 's/^a-zA-Z0-9_/_/g' \
2904 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2905 cat >> confdefs.h <<EOF
2906 #define $ac_tr_lib 1
2912 echo "$ac_t""no" 1>&6
2920 if test x$with_hesiod != x -a x$with_hesiod != xno; then
2921 if test x$with_hesiod != xyes; then
2922 HESIOD_INCLUDES="-I$with_hesiod/include"
2923 HESIOD_LIBS="-L$with_hesiod/lib"
2925 echo $ac_n "checking for res_send""... $ac_c" 1>&6
2926 echo "configure:2927: checking for res_send" >&5
2927 if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then
2928 echo $ac_n "(cached) $ac_c" 1>&6
2930 cat > conftest.$ac_ext <<EOF
2931 #line 2932 "configure"
2932 #include "confdefs.h"
2933 /* System header to define __stub macros and hopefully few prototypes,
2934 which can conflict with char res_send(); below. */
2936 /* Override any gcc2 internal prototype to avoid an error. */
2937 /* We use char because int might match the return type of a gcc2
2938 builtin and then its argument prototype would still apply. */
2943 /* The GNU C library defines this for functions which it implements
2944 to always fail with ENOSYS. Some functions are actually named
2945 something starting with __ and the normal name is an alias. */
2946 #if defined (__stub_res_send) || defined (__stub___res_send)
2954 if { (eval echo configure:2955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2956 eval "ac_cv_func_res_send=yes"
2958 echo "configure: failed program was:" >&5
2959 cat conftest.$ac_ext >&5
2961 eval "ac_cv_func_res_send=no"
2966 if eval "test \"`echo '$ac_cv_func_'res_send`\" = yes"; then
2967 echo "$ac_t""yes" 1>&6
2970 echo "$ac_t""no" 1>&6
2971 echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6
2972 echo "configure:2973: checking for res_send in -lresolv" >&5
2973 ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'`
2974 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2975 echo $ac_n "(cached) $ac_c" 1>&6
2977 ac_save_LIBS="$LIBS"
2978 LIBS="-lresolv $LIBS"
2979 cat > conftest.$ac_ext <<EOF
2980 #line 2981 "configure"
2981 #include "confdefs.h"
2982 /* Override any gcc2 internal prototype to avoid an error. */
2983 /* We use char because int might match the return type of a gcc2
2984 builtin and then its argument prototype would still apply. */
2991 if { (eval echo configure:2992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2993 eval "ac_cv_lib_$ac_lib_var=yes"
2995 echo "configure: failed program was:" >&5
2996 cat conftest.$ac_ext >&5
2998 eval "ac_cv_lib_$ac_lib_var=no"
3001 LIBS="$ac_save_LIBS"
3004 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3005 echo "$ac_t""yes" 1>&6
3006 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
3007 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3008 cat >> confdefs.h <<EOF
3009 #define $ac_tr_lib 1
3012 LIBS="-lresolv $LIBS"
3015 echo "$ac_t""no" 1>&6
3020 echo $ac_n "checking for hes_resolve in -lhesiod""... $ac_c" 1>&6
3021 echo "configure:3022: checking for hes_resolve in -lhesiod" >&5
3022 ac_lib_var=`echo hesiod'_'hes_resolve | sed 'y%./+-%__p_%'`
3023 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3024 echo $ac_n "(cached) $ac_c" 1>&6
3026 ac_save_LIBS="$LIBS"
3027 LIBS="-lhesiod $HESIOD_LIBS $LIBS"
3028 cat > conftest.$ac_ext <<EOF
3029 #line 3030 "configure"
3030 #include "confdefs.h"
3031 /* Override any gcc2 internal prototype to avoid an error. */
3032 /* We use char because int might match the return type of a gcc2
3033 builtin and then its argument prototype would still apply. */
3040 if { (eval echo configure:3041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3042 eval "ac_cv_lib_$ac_lib_var=yes"
3044 echo "configure: failed program was:" >&5
3045 cat conftest.$ac_ext >&5
3047 eval "ac_cv_lib_$ac_lib_var=no"
3050 LIBS="$ac_save_LIBS"
3053 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3054 echo "$ac_t""yes" 1>&6
3055 HESIOD_LIBS="$HESIOD_LIBS -lhesiod"
3057 echo "$ac_t""no" 1>&6
3058 { echo "configure: error: Hesiod library not found" 1>&2; exit 1; }
3063 if test x$with_krb4 != x -a x$with_krb4 != xno; then
3064 if test x$with_krb4 != xyes; then
3065 KRB4_INCLUDES="-I$with_krb4/include"
3066 if test -d "$with_krb4/include/kerberosIV"; then
3067 KRB4_INCLUDES="$KRB4_INCLUDES -I$with_krb4/include/kerberosIV"
3069 KRB4_LIBS="-L$with_krb4/lib"
3070 elif test -d /usr/include/kerberosIV; then
3071 KRB4_INCLUDES="-I/usr/include/kerberosIV"
3073 echo $ac_n "checking for krb_rd_req in -lkrb4""... $ac_c" 1>&6
3074 echo "configure:3075: checking for krb_rd_req in -lkrb4" >&5
3075 ac_lib_var=`echo krb4'_'krb_rd_req | sed 'y%./+-%__p_%'`
3076 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3077 echo $ac_n "(cached) $ac_c" 1>&6
3079 ac_save_LIBS="$LIBS"
3080 LIBS="-lkrb4 $KRB4_LIBS -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
3081 cat > conftest.$ac_ext <<EOF
3082 #line 3083 "configure"
3083 #include "confdefs.h"
3084 /* Override any gcc2 internal prototype to avoid an error. */
3085 /* We use char because int might match the return type of a gcc2
3086 builtin and then its argument prototype would still apply. */
3093 if { (eval echo configure:3094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3095 eval "ac_cv_lib_$ac_lib_var=yes"
3097 echo "configure: failed program was:" >&5
3098 cat conftest.$ac_ext >&5
3100 eval "ac_cv_lib_$ac_lib_var=no"
3103 LIBS="$ac_save_LIBS"
3106 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3107 echo "$ac_t""yes" 1>&6
3108 KRB4_LIBS="$KRB4_LIBS -lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err"
3110 echo "$ac_t""no" 1>&6
3111 echo $ac_n "checking for krb_rd_req in -lkrb""... $ac_c" 1>&6
3112 echo "configure:3113: checking for krb_rd_req in -lkrb" >&5
3113 ac_lib_var=`echo krb'_'krb_rd_req | sed 'y%./+-%__p_%'`
3114 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3115 echo $ac_n "(cached) $ac_c" 1>&6
3117 ac_save_LIBS="$LIBS"
3118 LIBS="-lkrb $KRB4_LIBS -ldes $LIBS"
3119 cat > conftest.$ac_ext <<EOF
3120 #line 3121 "configure"
3121 #include "confdefs.h"
3122 /* Override any gcc2 internal prototype to avoid an error. */
3123 /* We use char because int might match the return type of a gcc2
3124 builtin and then its argument prototype would still apply. */
3131 if { (eval echo configure:3132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3133 eval "ac_cv_lib_$ac_lib_var=yes"
3135 echo "configure: failed program was:" >&5
3136 cat conftest.$ac_ext >&5
3138 eval "ac_cv_lib_$ac_lib_var=no"
3141 LIBS="$ac_save_LIBS"
3144 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3145 echo "$ac_t""yes" 1>&6
3146 KRB4_LIBS="-lkrb -ldes"
3148 echo "$ac_t""no" 1>&6
3149 { echo "configure: error: Kerberos 4 libraries not found" 1>&2; exit 1; }
3157 nmh_save_LIBS="$LIBS"
3158 LIBS="$TERMLIB $LIBS"
3160 echo $ac_n "checking if an include file defines ospeed""... $ac_c" 1>&6
3161 echo "configure:3162: checking if an include file defines ospeed" >&5
3162 if eval "test \"`echo '$''{'nmh_cv_decl_ospeed_include_defines'+set}'`\" = set"; then
3163 echo $ac_n "(cached) $ac_c" 1>&6
3165 cat > conftest.$ac_ext <<EOF
3166 #line 3167 "configure"
3167 #include "confdefs.h"
3168 #include <sys/types.h>
3170 #include <termios.h>
3173 #include <termcap.h>
3179 if { (eval echo configure:3180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3181 nmh_cv_decl_ospeed_include_defines=yes
3183 echo "configure: failed program was:" >&5
3184 cat conftest.$ac_ext >&5
3186 nmh_cv_decl_ospeed_include_defines=no
3191 echo "$ac_t""$nmh_cv_decl_ospeed_include_defines" 1>&6
3193 if test $nmh_cv_decl_ospeed_include_defines = no; then
3194 echo $ac_n "checking if you must define ospeed""... $ac_c" 1>&6
3195 echo "configure:3196: checking if you must define ospeed" >&5
3196 if eval "test \"`echo '$''{'nmh_cv_decl_ospeed_must_define'+set}'`\" = set"; then
3197 echo $ac_n "(cached) $ac_c" 1>&6
3199 cat > conftest.$ac_ext <<EOF
3200 #line 3201 "configure"
3201 #include "confdefs.h"
3204 extern short ospeed; ospeed = 0;
3207 if { (eval echo configure:3208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3209 nmh_cv_decl_ospeed_must_define=yes
3211 echo "configure: failed program was:" >&5
3212 cat conftest.$ac_ext >&5
3214 nmh_cv_decl_ospeed_must_define=no
3219 echo "$ac_t""$nmh_cv_decl_ospeed_must_define" 1>&6
3222 if test $nmh_cv_decl_ospeed_include_defines = yes; then
3223 cat >> confdefs.h <<\EOF
3224 #define HAVE_OSPEED 1
3227 elif test $nmh_cv_decl_ospeed_must_define = yes; then
3228 cat >> confdefs.h <<\EOF
3229 #define HAVE_OSPEED 1
3232 cat >> confdefs.h <<\EOF
3233 #define MUST_DEFINE_OSPEED 1
3239 LIBS="$nmh_save_LIBS"
3241 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3242 echo "configure:3243: checking return type of signal handlers" >&5
3243 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3244 echo $ac_n "(cached) $ac_c" 1>&6
3246 cat > conftest.$ac_ext <<EOF
3247 #line 3248 "configure"
3248 #include "confdefs.h"
3249 #include <sys/types.h>
3255 extern "C" void (*signal (int, void (*)(int)))(int);
3257 void (*signal ()) ();
3264 if { (eval echo configure:3265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3266 ac_cv_type_signal=void
3268 echo "configure: failed program was:" >&5
3269 cat conftest.$ac_ext >&5
3271 ac_cv_type_signal=int
3276 echo "$ac_t""$ac_cv_type_signal" 1>&6
3277 cat >> confdefs.h <<EOF
3278 #define RETSIGTYPE $ac_cv_type_signal
3282 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3283 echo "configure:3284: checking for pid_t" >&5
3284 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3285 echo $ac_n "(cached) $ac_c" 1>&6
3287 cat > conftest.$ac_ext <<EOF
3288 #line 3289 "configure"
3289 #include "confdefs.h"
3290 #include <sys/types.h>
3296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3297 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3299 ac_cv_type_pid_t=yes
3307 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3308 if test $ac_cv_type_pid_t = no; then
3309 cat >> confdefs.h <<\EOF
3315 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3316 echo "configure:3317: checking for off_t" >&5
3317 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3318 echo $ac_n "(cached) $ac_c" 1>&6
3320 cat > conftest.$ac_ext <<EOF
3321 #line 3322 "configure"
3322 #include "confdefs.h"
3323 #include <sys/types.h>
3329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3330 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3332 ac_cv_type_off_t=yes
3340 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3341 if test $ac_cv_type_off_t = no; then
3342 cat >> confdefs.h <<\EOF
3348 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3349 echo "configure:3350: checking for uid_t in sys/types.h" >&5
3350 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3351 echo $ac_n "(cached) $ac_c" 1>&6
3353 cat > conftest.$ac_ext <<EOF
3354 #line 3355 "configure"
3355 #include "confdefs.h"
3356 #include <sys/types.h>
3358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3359 egrep "uid_t" >/dev/null 2>&1; then
3361 ac_cv_type_uid_t=yes
3370 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3371 if test $ac_cv_type_uid_t = no; then
3372 cat >> confdefs.h <<\EOF
3376 cat >> confdefs.h <<\EOF
3382 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3383 echo "configure:3384: checking for mode_t" >&5
3384 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3385 echo $ac_n "(cached) $ac_c" 1>&6
3387 cat > conftest.$ac_ext <<EOF
3388 #line 3389 "configure"
3389 #include "confdefs.h"
3390 #include <sys/types.h>
3396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3397 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3399 ac_cv_type_mode_t=yes
3402 ac_cv_type_mode_t=no
3407 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3408 if test $ac_cv_type_mode_t = no; then
3409 cat >> confdefs.h <<\EOF
3415 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3416 echo "configure:3417: checking for size_t" >&5
3417 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3418 echo $ac_n "(cached) $ac_c" 1>&6
3420 cat > conftest.$ac_ext <<EOF
3421 #line 3422 "configure"
3422 #include "confdefs.h"
3423 #include <sys/types.h>
3429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3430 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3432 ac_cv_type_size_t=yes
3435 ac_cv_type_size_t=no
3440 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3441 if test $ac_cv_type_size_t = no; then
3442 cat >> confdefs.h <<\EOF
3443 #define size_t unsigned
3449 echo $ac_n "checking for sigset_t""... $ac_c" 1>&6
3450 echo "configure:3451: checking for sigset_t" >&5
3451 if eval "test \"`echo '$''{'nmh_cv_type_sigset_t'+set}'`\" = set"; then
3452 echo $ac_n "(cached) $ac_c" 1>&6
3454 cat > conftest.$ac_ext <<EOF
3455 #line 3456 "configure"
3456 #include "confdefs.h"
3457 #include <sys/types.h>
3460 sigset_t tempsigset;
3463 if { (eval echo configure:3464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3465 nmh_cv_type_sigset_t=yes
3467 echo "configure: failed program was:" >&5
3468 cat conftest.$ac_ext >&5
3470 nmh_cv_type_sigset_t=no
3475 echo "$ac_t""$nmh_cv_type_sigset_t" 1>&6
3476 if test $nmh_cv_type_sigset_t = no; then
3477 cat >> confdefs.h <<\EOF
3478 #define sigset_t unsigned int
3483 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
3484 echo "configure:3485: checking for st_blksize in struct stat" >&5
3485 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
3486 echo $ac_n "(cached) $ac_c" 1>&6
3488 cat > conftest.$ac_ext <<EOF
3489 #line 3490 "configure"
3490 #include "confdefs.h"
3491 #include <sys/types.h>
3492 #include <sys/stat.h>
3494 struct stat s; s.st_blksize;
3497 if { (eval echo configure:3498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3499 ac_cv_struct_st_blksize=yes
3501 echo "configure: failed program was:" >&5
3502 cat conftest.$ac_ext >&5
3504 ac_cv_struct_st_blksize=no
3509 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
3510 if test $ac_cv_struct_st_blksize = yes; then
3511 cat >> confdefs.h <<\EOF
3512 #define HAVE_ST_BLKSIZE 1
3518 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
3519 echo "configure:3520: checking for tm_gmtoff in struct tm" >&5
3520 if eval "test \"`echo '$''{'nmh_cv_struct_tm_gmtoff'+set}'`\" = set"; then
3521 echo $ac_n "(cached) $ac_c" 1>&6
3523 cat > conftest.$ac_ext <<EOF
3524 #line 3525 "configure"
3525 #include "confdefs.h"
3526 #ifdef TIME_WITH_SYS_TIME
3527 # include <sys/time.h>
3530 # ifdef TM_IN_SYS_TIME
3531 # include <sys/time.h>
3537 struct tm temptm; temptm.tm_gmtoff = 0;
3540 if { (eval echo configure:3541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3542 nmh_cv_struct_tm_gmtoff=yes
3544 echo "configure: failed program was:" >&5
3545 cat conftest.$ac_ext >&5
3547 nmh_cv_struct_tm_gmtoff=no
3552 echo "$ac_t""$nmh_cv_struct_tm_gmtoff" 1>&6
3553 if test $nmh_cv_struct_tm_gmtoff = yes; then
3554 cat >> confdefs.h <<\EOF
3555 #define HAVE_TM_GMTOFF 1
3560 echo $ac_n "checking what style of signals to use""... $ac_c" 1>&6
3561 echo "configure:3562: checking what style of signals to use" >&5
3562 if test $ac_cv_func_sigaction = yes -a $ac_cv_func_sigprocmask = yes; then
3563 signals_style=POSIX_SIGNALS
3564 cat >> confdefs.h <<\EOF
3565 #define POSIX_SIGNALS 1
3568 cat >> confdefs.h <<\EOF
3569 #define RELIABLE_SIGNALS 1
3572 elif test $ac_cv_func_sigblock = yes -a $ac_cv_func_sigsetmask = yes; then
3573 signals_style=BSD_SIGNALS
3574 cat >> confdefs.h <<\EOF
3575 #define BSD_SIGNALS 1
3578 cat >> confdefs.h <<\EOF
3579 #define RELIABLE_SIGNALS 1
3582 elif test $ac_cv_func_sighold = yes -a $ac_cv_func_sigrelse = yes; then
3583 signals_style=SYSV_SIGNALS
3584 cat >> confdefs.h <<\EOF
3585 #define SYSV_SIGNALS 1
3589 signals_style=NO_SIGNAL_BLOCKING
3590 cat >> confdefs.h <<\EOF
3591 #define NO_SIGNAL_BLOCKING 1
3596 echo "$ac_t""$signals_style" 1>&6
3598 echo $ac_n "checking where signal.h is located""... $ac_c" 1>&6
3599 echo "configure:3600: checking where signal.h is located" >&5
3600 if eval "test \"`echo '$''{'nmh_cv_path_signal_h'+set}'`\" = set"; then
3601 echo $ac_n "(cached) $ac_c" 1>&6
3603 for SIGNAL_H in /usr/include/bsd/sys/signal.h /usr/include/asm/signal.h /usr/include/asm/signum.h /usr/include/linux/signal.h /usr/include/sys/signal.h /dev/null; do
3604 test -f $SIGNAL_H && \
3605 grep '#[ ]*define[ ][ ]*SIG[0-9A-Z]*[ ]*[0-9][0-9]*' $SIGNAL_H > /dev/null && \
3608 nmh_cv_path_signal_h=$SIGNAL_H
3612 echo "$ac_t""$nmh_cv_path_signal_h" 1>&6
3613 SIGNAL_H=$nmh_cv_path_signal_h
3616 cat > confcache <<\EOF
3617 # This file is a shell script that caches the results of configure
3618 # tests run on this system so they can be shared between configure
3619 # scripts and configure runs. It is not useful on other systems.
3620 # If it contains results you don't want to keep, you may remove or edit it.
3622 # By default, configure uses ./config.cache as the cache file,
3623 # creating it if it does not exist already. You can give configure
3624 # the --cache-file=FILE option to use a different cache file; that is
3625 # what configure does when it calls configure scripts in
3626 # subdirectories, so they share the cache.
3627 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3628 # config.status only pays attention to the cache file if you give it the
3629 # --recheck option to rerun configure.
3632 # The following way of writing the cache mishandles newlines in values,
3633 # but we know of no workaround that is simple, portable, and efficient.
3634 # So, don't put newlines in cache variables' values.
3635 # Ultrix sh set writes to stderr and can't be redirected directly,
3636 # and sets the high bit in the cache file unless we assign to the vars.
3638 case `(ac_space=' '; set) 2>&1` in
3640 # `set' does not quote correctly, so add quotes (double-quote substitution
3641 # turns \\\\ into \\, and sed turns \\ into \).
3643 -e "s/'/'\\\\''/g" \
3644 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3647 # `set' quotes correctly as required by POSIX, so do not add quotes.
3648 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3651 if cmp -s $cache_file confcache; then
3654 if test -w $cache_file; then
3655 echo "updating cache $cache_file"
3656 cat confcache > $cache_file
3658 echo "not updating unwritable cache $cache_file"
3663 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3665 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3666 # Let make expand exec_prefix.
3667 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3669 # Any assignment to VPATH causes Sun make to only execute
3670 # the first set of double-colon rules, so remove it if not needed.
3671 # If there is a colon in the path, we need to keep it.
3672 if test "x$srcdir" = x.; then
3673 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3676 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3678 DEFS=-DHAVE_CONFIG_H
3680 # Without the "./", some shells look in PATH for config.status.
3681 : ${CONFIG_STATUS=./config.status}
3683 echo creating $CONFIG_STATUS
3684 rm -f $CONFIG_STATUS
3685 cat > $CONFIG_STATUS <<EOF
3687 # Generated automatically by configure.
3688 # Run this file to recreate the current configuration.
3689 # This directory was configured as follows,
3690 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3692 # $0 $ac_configure_args
3694 # Compiler output produced by configure, useful for debugging
3695 # configure, is in ./config.log if it exists.
3697 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3700 case "\$ac_option" in
3701 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3702 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3703 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3704 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3705 echo "$CONFIG_STATUS generated by autoconf version 2.12"
3707 -help | --help | --hel | --he | --h)
3708 echo "\$ac_cs_usage"; exit 0 ;;
3709 *) echo "\$ac_cs_usage"; exit 1 ;;
3713 ac_given_srcdir=$srcdir
3714 ac_given_INSTALL="$INSTALL"
3716 trap 'rm -fr `echo "Makefile config/Makefile h/Makefile sbr/Makefile uip/Makefile \
3717 zotnet/Makefile zotnet/mts/Makefile zotnet/tws/Makefile \
3718 zotnet/mf/Makefile zotnet/bboards/Makefile mts/Makefile \
3719 mts/smtp/Makefile mts/sendmail/Makefile mts/mmdf/Makefile \
3720 etc/Makefile man/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3722 cat >> $CONFIG_STATUS <<EOF
3724 # Protect against being on the right side of a sed subst in config.status.
3725 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3726 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3729 s%@CFLAGS@%$CFLAGS%g
3730 s%@CPPFLAGS@%$CPPFLAGS%g
3731 s%@CXXFLAGS@%$CXXFLAGS%g
3733 s%@LDFLAGS@%$LDFLAGS%g
3735 s%@exec_prefix@%$exec_prefix%g
3736 s%@prefix@%$prefix%g
3737 s%@program_transform_name@%$program_transform_name%g
3738 s%@bindir@%$bindir%g
3739 s%@sbindir@%$sbindir%g
3740 s%@libexecdir@%$libexecdir%g
3741 s%@datadir@%$datadir%g
3742 s%@sysconfdir@%$sysconfdir%g
3743 s%@sharedstatedir@%$sharedstatedir%g
3744 s%@localstatedir@%$localstatedir%g
3745 s%@libdir@%$libdir%g
3746 s%@includedir@%$includedir%g
3747 s%@oldincludedir@%$oldincludedir%g
3748 s%@infodir@%$infodir%g
3749 s%@mandir@%$mandir%g
3750 s%@VERSION@%$VERSION%g
3752 s%@MTSLIB@%$MTSLIB%g
3753 s%@POPLIB@%$POPLIB%g
3754 s%@POPSED@%$POPSED%g
3756 s%@SET_MAKE@%$SET_MAKE%g
3757 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3758 s%@INSTALL_DATA@%$INSTALL_DATA%g
3759 s%@RANLIB@%$RANLIB%g
3762 s%@LEXLIB@%$LEXLIB%g
3763 s%@LORDER@%$LORDER%g
3765 s%@sendmailpath@%$sendmailpath%g
3766 s%@morepath@%$morepath%g
3767 s%@pagerpath@%$pagerpath%g
3768 s%@vipath@%$vipath%g
3769 s%@editorpath@%$editorpath%g
3770 s%@mailspool@%$mailspool%g
3772 s%@LIBOBJS@%$LIBOBJS%g
3773 s%@TERMLIB@%$TERMLIB%g
3774 s%@HESIOD_INCLUDES@%$HESIOD_INCLUDES%g
3775 s%@HESIOD_LIBS@%$HESIOD_LIBS%g
3776 s%@KRB4_INCLUDES@%$KRB4_INCLUDES%g
3777 s%@KRB4_LIBS@%$KRB4_LIBS%g
3778 s%@SIGNAL_H@%$SIGNAL_H%g
3783 cat >> $CONFIG_STATUS <<\EOF
3785 # Split the substitutions into bite-sized pieces for seds with
3786 # small command number limits, like on Digital OSF/1 and HP-UX.
3787 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3788 ac_file=1 # Number of current file.
3789 ac_beg=1 # First line for current file.
3790 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3793 while $ac_more_lines; do
3794 if test $ac_beg -gt 1; then
3795 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3797 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3799 if test ! -s conftest.s$ac_file; then
3801 rm -f conftest.s$ac_file
3803 if test -z "$ac_sed_cmds"; then
3804 ac_sed_cmds="sed -f conftest.s$ac_file"
3806 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3808 ac_file=`expr $ac_file + 1`
3810 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3813 if test -z "$ac_sed_cmds"; then
3818 cat >> $CONFIG_STATUS <<EOF
3820 CONFIG_FILES=\${CONFIG_FILES-"Makefile config/Makefile h/Makefile sbr/Makefile uip/Makefile \
3821 zotnet/Makefile zotnet/mts/Makefile zotnet/tws/Makefile \
3822 zotnet/mf/Makefile zotnet/bboards/Makefile mts/Makefile \
3823 mts/smtp/Makefile mts/sendmail/Makefile mts/mmdf/Makefile \
3824 etc/Makefile man/Makefile"}
3826 cat >> $CONFIG_STATUS <<\EOF
3827 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3828 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3830 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3831 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3832 *) ac_file_in="${ac_file}.in" ;;
3835 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3837 # Remove last slash and all that follows it. Not all systems have dirname.
3838 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3839 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3840 # The file is in a subdirectory.
3841 test ! -d "$ac_dir" && mkdir "$ac_dir"
3842 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3843 # A "../" for each directory in $ac_dir_suffix.
3844 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3846 ac_dir_suffix= ac_dots=
3849 case "$ac_given_srcdir" in
3851 if test -z "$ac_dots"; then top_srcdir=.
3852 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3853 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3855 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3856 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3859 case "$ac_given_INSTALL" in
3860 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3861 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3864 echo creating "$ac_file"
3866 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3868 *Makefile*) ac_comsub="1i\\
3869 # $configure_input" ;;
3873 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3875 s%@configure_input@%$configure_input%g
3876 s%@srcdir@%$srcdir%g
3877 s%@top_srcdir@%$top_srcdir%g
3878 s%@INSTALL@%$INSTALL%g
3879 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3883 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3884 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3886 # ac_d sets the value in "#define NAME VALUE" lines.
3887 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3888 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3891 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3892 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3893 ac_uB='\([ ]\)%\1#\2define\3'
3896 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3897 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3898 ac_eB='$%\1#\2define\3'
3902 if test "${CONFIG_HEADERS+set}" != set; then
3904 cat >> $CONFIG_STATUS <<EOF
3905 CONFIG_HEADERS="config.h"
3907 cat >> $CONFIG_STATUS <<\EOF
3909 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3910 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3912 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3913 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3914 *) ac_file_in="${ac_file}.in" ;;
3917 echo creating $ac_file
3919 rm -f conftest.frag conftest.in conftest.out
3920 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3921 cat $ac_file_inputs > conftest.in
3925 # Transform confdefs.h into a sed script conftest.vals that substitutes
3926 # the proper values into config.h.in to produce config.h. And first:
3927 # Protect against being on the right side of a sed subst in config.status.
3928 # Protect against being in an unquoted here document in config.status.
3930 cat > conftest.hdr <<\EOF
3933 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3937 sed -n -f conftest.hdr confdefs.h > conftest.vals
3940 # This sed command replaces #undef with comments. This is necessary, for
3941 # example, in the case of _POSIX_SOURCE, which is predefined and required
3942 # on some systems where configure will not decide to define it.
3943 cat >> conftest.vals <<\EOF
3944 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3947 # Break up conftest.vals because some shells have a limit on
3948 # the size of here documents, and old seds have small limits too.
3953 ac_lines=`grep -c . conftest.vals`
3954 # grep -c gives empty output for an empty file on some AIX systems.
3955 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3956 # Write a limited-size here document to conftest.frag.
3957 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3958 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3960 sed -f conftest.frag conftest.in > conftest.out
3962 mv conftest.out conftest.in
3964 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3966 mv conftest.tail conftest.vals
3970 cat >> $CONFIG_STATUS <<\EOF
3971 rm -f conftest.frag conftest.h
3972 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3973 cat conftest.in >> conftest.h
3975 if cmp -s $ac_file conftest.h 2>/dev/null; then
3976 echo "$ac_file is unchanged"
3979 # Remove last slash and all that follows it. Not all systems have dirname.
3980 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3981 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3982 # The file is in a subdirectory.
3983 test ! -d "$ac_dir" && mkdir "$ac_dir"
3986 mv conftest.h $ac_file
3991 cat >> $CONFIG_STATUS <<EOF
3994 cat >> $CONFIG_STATUS <<\EOF
3996 test -z "$CONFIG_HEADERS" || echo > stamp-h
3999 chmod +x $CONFIG_STATUS
4000 rm -fr confdefs* $ac_clean_files
4001 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4004 eval "nmhbin=${bindir}"; eval "nmhbin2=${nmhbin}"
4005 eval "nmhsysconf=${sysconfdir}"; eval "nmhsysconf2=${nmhsysconf}"
4006 eval "nmhlib=${libdir}"; eval "nmhlib2=${nmhlib}"
4007 eval "nmhman=${mandir}"
4012 nmh version : ${VERSION}
4014 compiler flags : ${CFLAGS}
4015 linker flags : ${LDFLAGS}
4016 source code location : ${srcdir}
4017 binary install path : ${nmhbin2}
4018 libary install path : ${nmhlib2}
4019 config files install path : ${nmhsysconf2}
4020 man page install path : ${nmhman}
4021 transport system : ${MTS}
4022 default editor : ${editorpath}
4023 default pager : ${pagerpath}"