3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
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 SHELL=${CONFIG_SHELL-/bin/sh}
70 # Maximum number of lines to put in a shell here document.
77 # If the previous option needs an argument, assign it.
78 if test -n "$ac_prev"; then
79 eval "$ac_prev=\$ac_option"
85 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
89 # Accept the important Cygnus configure options, so we can diagnose typos.
93 -bindir | --bindir | --bindi | --bind | --bin | --bi)
95 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
96 bindir="$ac_optarg" ;;
98 -build | --build | --buil | --bui | --bu)
100 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
101 build="$ac_optarg" ;;
103 -cache-file | --cache-file | --cache-fil | --cache-fi \
104 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
105 ac_prev=cache_file ;;
106 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
107 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
108 cache_file="$ac_optarg" ;;
110 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
112 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
114 datadir="$ac_optarg" ;;
116 -disable-* | --disable-*)
117 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
118 # Reject names that are not valid shell variable names.
119 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
120 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
122 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
123 eval "enable_${ac_feature}=no" ;;
125 -enable-* | --enable-*)
126 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
127 # Reject names that are not valid shell variable names.
128 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
136 eval "enable_${ac_feature}='$ac_optarg'" ;;
138 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
139 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
140 | --exec | --exe | --ex)
141 ac_prev=exec_prefix ;;
142 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
143 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
144 | --exec=* | --exe=* | --ex=*)
145 exec_prefix="$ac_optarg" ;;
147 -gas | --gas | --ga | --g)
148 # Obsolete; use --with-gas.
151 -help | --help | --hel | --he)
152 # Omit some internal or obsolete options to make the list less imposing.
153 # This message is too long to be a string in the A/UX 3.1 sh.
155 Usage: configure [options] [host]
156 Options: [defaults in brackets after descriptions]
158 --cache-file=FILE cache test results in FILE
159 --help print this message
160 --no-create do not create output files
161 --quiet, --silent do not print \`checking...' messages
162 --version print the version of autoconf that created configure
163 Directory and file names:
164 --prefix=PREFIX install architecture-independent files in PREFIX
166 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
168 --bindir=DIR user executables in DIR [EPREFIX/bin]
169 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
170 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
171 --datadir=DIR read-only architecture-independent data in DIR
173 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
174 --sharedstatedir=DIR modifiable architecture-independent data in DIR
176 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
177 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
178 --includedir=DIR C header files in DIR [PREFIX/include]
179 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
180 --infodir=DIR info documentation in DIR [PREFIX/info]
181 --mandir=DIR man documentation in DIR [PREFIX/man]
182 --srcdir=DIR find the sources in DIR [configure dir or ..]
183 --program-prefix=PREFIX prepend PREFIX to installed program names
184 --program-suffix=SUFFIX append SUFFIX to installed program names
185 --program-transform-name=PROGRAM
186 run sed PROGRAM on installed program names
190 --build=BUILD configure for building on BUILD [BUILD=HOST]
191 --host=HOST configure for HOST [guessed]
192 --target=TARGET configure for TARGET [TARGET=HOST]
193 Features and packages:
194 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
195 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
196 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
197 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
198 --x-includes=DIR X include files are in DIR
199 --x-libraries=DIR X library files are in DIR
201 if test -n "$ac_help"; then
202 echo "--enable and --with options recognized:$ac_help"
206 -host | --host | --hos | --ho)
208 -host=* | --host=* | --hos=* | --ho=*)
211 -includedir | --includedir | --includedi | --included | --include \
212 | --includ | --inclu | --incl | --inc)
213 ac_prev=includedir ;;
214 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
215 | --includ=* | --inclu=* | --incl=* | --inc=*)
216 includedir="$ac_optarg" ;;
218 -infodir | --infodir | --infodi | --infod | --info | --inf)
220 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
221 infodir="$ac_optarg" ;;
223 -libdir | --libdir | --libdi | --libd)
225 -libdir=* | --libdir=* | --libdi=* | --libd=*)
226 libdir="$ac_optarg" ;;
228 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
229 | --libexe | --libex | --libe)
230 ac_prev=libexecdir ;;
231 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
232 | --libexe=* | --libex=* | --libe=*)
233 libexecdir="$ac_optarg" ;;
235 -localstatedir | --localstatedir | --localstatedi | --localstated \
236 | --localstate | --localstat | --localsta | --localst \
237 | --locals | --local | --loca | --loc | --lo)
238 ac_prev=localstatedir ;;
239 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
240 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
241 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
242 localstatedir="$ac_optarg" ;;
244 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
246 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
247 mandir="$ac_optarg" ;;
250 # Obsolete; use --without-fp.
253 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
257 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
258 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
261 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
262 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
263 | --oldin | --oldi | --old | --ol | --o)
264 ac_prev=oldincludedir ;;
265 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
266 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
267 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
268 oldincludedir="$ac_optarg" ;;
270 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
272 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
273 prefix="$ac_optarg" ;;
275 -program-prefix | --program-prefix | --program-prefi | --program-pref \
276 | --program-pre | --program-pr | --program-p)
277 ac_prev=program_prefix ;;
278 -program-prefix=* | --program-prefix=* | --program-prefi=* \
279 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
280 program_prefix="$ac_optarg" ;;
282 -program-suffix | --program-suffix | --program-suffi | --program-suff \
283 | --program-suf | --program-su | --program-s)
284 ac_prev=program_suffix ;;
285 -program-suffix=* | --program-suffix=* | --program-suffi=* \
286 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
287 program_suffix="$ac_optarg" ;;
289 -program-transform-name | --program-transform-name \
290 | --program-transform-nam | --program-transform-na \
291 | --program-transform-n | --program-transform- \
292 | --program-transform | --program-transfor \
293 | --program-transfo | --program-transf \
294 | --program-trans | --program-tran \
295 | --progr-tra | --program-tr | --program-t)
296 ac_prev=program_transform_name ;;
297 -program-transform-name=* | --program-transform-name=* \
298 | --program-transform-nam=* | --program-transform-na=* \
299 | --program-transform-n=* | --program-transform-=* \
300 | --program-transform=* | --program-transfor=* \
301 | --program-transfo=* | --program-transf=* \
302 | --program-trans=* | --program-tran=* \
303 | --progr-tra=* | --program-tr=* | --program-t=*)
304 program_transform_name="$ac_optarg" ;;
306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
307 | -silent | --silent | --silen | --sile | --sil)
310 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
312 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
314 sbindir="$ac_optarg" ;;
316 -sharedstatedir | --sharedstatedir | --sharedstatedi \
317 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
318 | --sharedst | --shareds | --shared | --share | --shar \
320 ac_prev=sharedstatedir ;;
321 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
322 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
323 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
325 sharedstatedir="$ac_optarg" ;;
327 -site | --site | --sit)
329 -site=* | --site=* | --sit=*)
332 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
334 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
335 srcdir="$ac_optarg" ;;
337 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
338 | --syscon | --sysco | --sysc | --sys | --sy)
339 ac_prev=sysconfdir ;;
340 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
341 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
342 sysconfdir="$ac_optarg" ;;
344 -target | --target | --targe | --targ | --tar | --ta | --t)
346 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
347 target="$ac_optarg" ;;
349 -v | -verbose | --verbose | --verbos | --verbo | --verb)
352 -version | --version | --versio | --versi | --vers)
353 echo "configure generated by autoconf version 2.13"
357 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
358 # Reject names that are not valid shell variable names.
359 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
360 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
362 ac_package=`echo $ac_package| sed 's/-/_/g'`
367 eval "with_${ac_package}='$ac_optarg'" ;;
369 -without-* | --without-*)
370 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
371 # Reject names that are not valid shell variable names.
372 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
373 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375 ac_package=`echo $ac_package| sed 's/-/_/g'`
376 eval "with_${ac_package}=no" ;;
379 # Obsolete; use --with-x.
382 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
383 | --x-incl | --x-inc | --x-in | --x-i)
384 ac_prev=x_includes ;;
385 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
386 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
387 x_includes="$ac_optarg" ;;
389 -x-libraries | --x-libraries | --x-librarie | --x-librari \
390 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
391 ac_prev=x_libraries ;;
392 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
393 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
394 x_libraries="$ac_optarg" ;;
396 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
400 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
401 echo "configure: warning: $ac_option: invalid host type" 1>&2
403 if test "x$nonopt" != xNONE; then
404 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
412 if test -n "$ac_prev"; then
413 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
416 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
418 # File descriptor usage:
421 # 2 errors and warnings
422 # 3 some systems may open it to /dev/tty
423 # 4 used on the Kubota Titan
424 # 6 checking for... messages and results
425 # 5 compiler messages saved in config.log
426 if test "$silent" = yes; then
434 This file contains any messages produced by compilers while
435 running configure, to aid debugging if configure makes a mistake.
438 # Strip out --no-create and --no-recursion so they do not pile up.
439 # Also quote any args containing shell metacharacters.
444 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
445 | --no-cr | --no-c) ;;
446 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
447 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
448 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
449 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
450 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
455 # Only set these to C if already set. These must not be set unconditionally
456 # because not all systems understand e.g. LANG=C (notably SCO).
457 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
458 # Non-C LC_CTYPE values break the ctype check.
459 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
460 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
461 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
462 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
464 # confdefs.h avoids OS command line length limits that DEFS can exceed.
465 rm -rf conftest* confdefs.h
466 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
469 # A filename unique to this package, relative to the directory that
470 # configure is in, which we can look for to find out if srcdir is correct.
471 ac_unique_file=h/nmh.h
473 # Find the source files, if location was not specified.
474 if test -z "$srcdir"; then
475 ac_srcdir_defaulted=yes
476 # Try the directory containing this script, then its parent.
478 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
479 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
481 if test ! -r $srcdir/$ac_unique_file; then
485 ac_srcdir_defaulted=no
487 if test ! -r $srcdir/$ac_unique_file; then
488 if test "$ac_srcdir_defaulted" = yes; then
489 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
491 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
494 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
496 # Prefer explicitly selected file to automatically selected ones.
497 if test -z "$CONFIG_SITE"; then
498 if test "x$prefix" != xNONE; then
499 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
501 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
504 for ac_site_file in $CONFIG_SITE; do
505 if test -r "$ac_site_file"; then
506 echo "loading site script $ac_site_file"
511 if test -r "$cache_file"; then
512 echo "loading cache $cache_file"
515 echo "creating cache $cache_file"
520 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
521 ac_cpp='$CPP $CPPFLAGS'
522 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
523 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
524 cross_compiling=$ac_cv_prog_cc_cross
528 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
529 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
530 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
537 ac_n= ac_c='\c' ac_t=
544 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
545 if test -f $ac_dir/install-sh; then
547 ac_install_sh="$ac_aux_dir/install-sh -c"
549 elif test -f $ac_dir/install.sh; then
551 ac_install_sh="$ac_aux_dir/install.sh -c"
555 if test -z "$ac_aux_dir"; then
556 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
558 ac_config_guess=$ac_aux_dir/config.guess
559 ac_config_sub=$ac_aux_dir/config.sub
560 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
563 # Do some error checking and defaulting for the host and target type.
565 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
568 # 1. You are not allowed to specify --host, --target, and nonopt at the
570 # 2. Host defaults to nonopt.
571 # 3. If nonopt is not specified, then host defaults to the current host,
572 # as determined by config.guess.
573 # 4. Target and build default to nonopt.
574 # 5. If nonopt is not specified, then target and build default to host.
576 # The aliases save the names the user supplied, while $host etc.
577 # will get canonicalized.
578 case $host---$target---$nonopt in
579 NONE---*---* | *---NONE---* | *---*---NONE) ;;
580 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
584 # Make sure we can run config.sub.
585 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
586 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
589 echo $ac_n "checking host system type""... $ac_c" 1>&6
590 echo "configure:591: checking host system type" >&5
593 case "$host_alias" in
597 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
598 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
600 *) host_alias=$nonopt ;;
604 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
605 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
606 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
607 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
608 echo "$ac_t""$host" 1>&6
610 echo $ac_n "checking target system type""... $ac_c" 1>&6
611 echo "configure:612: checking target system type" >&5
614 case "$target_alias" in
617 NONE) target_alias=$host_alias ;;
618 *) target_alias=$nonopt ;;
622 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
623 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
624 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
625 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
626 echo "$ac_t""$target" 1>&6
628 echo $ac_n "checking build system type""... $ac_c" 1>&6
629 echo "configure:630: checking build system type" >&5
632 case "$build_alias" in
635 NONE) build_alias=$host_alias ;;
636 *) build_alias=$nonopt ;;
640 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
641 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
642 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
643 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
644 echo "$ac_t""$build" 1>&6
646 test "$host_alias" != "$target_alias" &&
647 test "$program_prefix$program_suffix$program_transform_name" = \
649 program_prefix=${target_alias}-
652 VERSION=`sed -e 's/nmh-//' ${srcdir}/VERSION`
653 echo "configuring for nmh-$VERSION"
655 # Check whether --with-mts or --without-mts was given.
656 if test "${with_mts+set}" = set; then
662 if test x$with_mts = xsmtp; then
664 MTSLIB="mts/smtp/libsmtp.a"
665 cat >> confdefs.h <<\EOF
668 elif test x$with_mts = xsendmail; then
670 MTSLIB="mts/sendmail/libsend.a"
671 cat >> confdefs.h <<\EOF
676 MTSLIB="mts/smtp/libsmtp.a"
677 cat >> confdefs.h <<\EOF
685 # Check whether --with-editor or --without-editor was given.
686 if test "${with_editor+set}" = set; then
687 withval="$with_editor"
692 if test -n "$with_editor"; then
693 editorpath="$with_editor"
696 # Check whether --with-pager or --without-pager was given.
697 if test "${with_pager+set}" = set; then
698 withval="$with_pager"
703 if test -n "$with_pager"; then
704 pagerpath="$with_pager"
707 # Check whether --enable-nmh-mhe or --disable-nmh-mhe was given.
708 if test "${enable_nmh_mhe+set}" = set; then
709 enableval="$enable_nmh_mhe"
714 if test x$enable_nmh_mhe != xno; then
715 cat >> confdefs.h <<\EOF
720 # Check whether --enable-nmh-pop or --disable-nmh-pop was given.
721 if test "${enable_nmh_pop+set}" = set; then
722 enableval="$enable_nmh_pop"
726 if test x$enable_nmh_pop = xyes; then
727 cat >> confdefs.h <<\EOF
731 POPSED='/^%nmhbeginpop%/d;/^%nmhendpop%/d'
733 POPSED='/^%nmhbeginpop%/,/^%nmhendpop%/d'
736 # Check whether --with-krb4 or --without-krb4 was given.
737 if test "${with_krb4+set}" = set; then
742 if test x$with_krb4 != x -a x$with_krb4 != xno; then
743 cat >> confdefs.h <<\EOF
746 cat >> confdefs.h <<\EOF
747 #define KPOP_PRINCIPAL "pop"
751 # Check whether --with-hesiod or --without-hesiod was given.
752 if test "${with_hesiod+set}" = set; then
753 withval="$with_hesiod"
757 if test x$with_hesiod != x -a x$with_hesiod != xno; then
758 cat >> confdefs.h <<\EOF
763 # Check whether --enable-nmh-debug or --disable-nmh-debug was given.
764 if test "${enable_nmh_debug+set}" = set; then
765 enableval="$enable_nmh_debug"
772 test -z "$CFLAGS" && CFLAGS= auto_cflags=1
773 if test x$enable_nmh_debug = xyes; then
774 test -z "$LDFLAGS" && LDFLAGS=-g
777 # Extract the first word of "gcc", so it can be a program name with args.
778 set dummy gcc; ac_word=$2
779 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
780 echo "configure:781: checking for $ac_word" >&5
781 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
782 echo $ac_n "(cached) $ac_c" 1>&6
784 if test -n "$CC"; then
785 ac_cv_prog_CC="$CC" # Let the user override the test.
787 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
789 for ac_dir in $ac_dummy; do
790 test -z "$ac_dir" && ac_dir=.
791 if test -f $ac_dir/$ac_word; then
800 if test -n "$CC"; then
801 echo "$ac_t""$CC" 1>&6
803 echo "$ac_t""no" 1>&6
806 if test -z "$CC"; then
807 # Extract the first word of "cc", so it can be a program name with args.
808 set dummy cc; ac_word=$2
809 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
810 echo "configure:811: checking for $ac_word" >&5
811 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
812 echo $ac_n "(cached) $ac_c" 1>&6
814 if test -n "$CC"; then
815 ac_cv_prog_CC="$CC" # Let the user override the test.
817 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
820 for ac_dir in $ac_dummy; do
821 test -z "$ac_dir" && ac_dir=.
822 if test -f $ac_dir/$ac_word; then
823 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
832 if test $ac_prog_rejected = yes; then
833 # We found a bogon in the path, so make sure we never use it.
834 set dummy $ac_cv_prog_CC
836 if test $# -gt 0; then
837 # We chose a different compiler from the bogus one.
838 # However, it has the same basename, so the bogon will be chosen
839 # first if we set CC to just the basename; use the full file name.
841 set dummy "$ac_dir/$ac_word" "$@"
849 if test -n "$CC"; then
850 echo "$ac_t""$CC" 1>&6
852 echo "$ac_t""no" 1>&6
855 if test -z "$CC"; then
858 # Extract the first word of "cl", so it can be a program name with args.
859 set dummy cl; ac_word=$2
860 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
861 echo "configure:862: checking for $ac_word" >&5
862 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
863 echo $ac_n "(cached) $ac_c" 1>&6
865 if test -n "$CC"; then
866 ac_cv_prog_CC="$CC" # Let the user override the test.
868 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
870 for ac_dir in $ac_dummy; do
871 test -z "$ac_dir" && ac_dir=.
872 if test -f $ac_dir/$ac_word; then
881 if test -n "$CC"; then
882 echo "$ac_t""$CC" 1>&6
884 echo "$ac_t""no" 1>&6
889 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
892 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
893 echo "configure:894: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
896 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
897 ac_cpp='$CPP $CPPFLAGS'
898 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
899 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
900 cross_compiling=$ac_cv_prog_cc_cross
902 cat > conftest.$ac_ext << EOF
904 #line 905 "configure"
905 #include "confdefs.h"
909 if { (eval echo configure:910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
910 ac_cv_prog_cc_works=yes
911 # If we can't run a trivial program, we are probably using a cross compiler.
912 if (./conftest; exit) 2>/dev/null; then
913 ac_cv_prog_cc_cross=no
915 ac_cv_prog_cc_cross=yes
918 echo "configure: failed program was:" >&5
919 cat conftest.$ac_ext >&5
920 ac_cv_prog_cc_works=no
924 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
925 ac_cpp='$CPP $CPPFLAGS'
926 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
927 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
928 cross_compiling=$ac_cv_prog_cc_cross
930 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
931 if test $ac_cv_prog_cc_works = no; then
932 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
934 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
935 echo "configure:936: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
936 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
937 cross_compiling=$ac_cv_prog_cc_cross
939 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
940 echo "configure:941: checking whether we are using GNU C" >&5
941 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
942 echo $ac_n "(cached) $ac_c" 1>&6
944 cat > conftest.c <<EOF
949 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
956 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
958 if test $ac_cv_prog_gcc = yes; then
964 ac_test_CFLAGS="${CFLAGS+set}"
965 ac_save_CFLAGS="$CFLAGS"
967 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
968 echo "configure:969: checking whether ${CC-cc} accepts -g" >&5
969 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
970 echo $ac_n "(cached) $ac_c" 1>&6
972 echo 'void f(){}' > conftest.c
973 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
982 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
983 if test "$ac_test_CFLAGS" = set; then
984 CFLAGS="$ac_save_CFLAGS"
985 elif test $ac_cv_prog_cc_g = yes; then
986 if test "$GCC" = yes; then
992 if test "$GCC" = yes; then
1000 if test -n "$auto_cflags"; then
1001 if test x$enable_nmh_debug = xyes; then
1002 if test -n "$GCC"; then
1003 test -z "$CFLAGS" && CFLAGS="-Wall -g" || CFLAGS="$CFLAGS -Wall -g"
1005 test -z "$CFLAGS" && CFLAGS=-g || CFLAGS="$CFLAGS -g"
1008 test -z "$LDFLAGS" && LDFLAGS=-s
1009 if test -n "$GCC"; then
1010 test -z "$CFLAGS" && CFLAGS=-O2 || CFLAGS="$CFLAGS -O2"
1012 test -z "$CFLAGS" && CFLAGS=-O || CFLAGS="$CFLAGS -O"
1017 echo $ac_n "checking for working const""... $ac_c" 1>&6
1018 echo "configure:1019: checking for working const" >&5
1019 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1020 echo $ac_n "(cached) $ac_c" 1>&6
1022 cat > conftest.$ac_ext <<EOF
1023 #line 1024 "configure"
1024 #include "confdefs.h"
1028 /* Ultrix mips cc rejects this. */
1029 typedef int charset[2]; const charset x;
1030 /* SunOS 4.1.1 cc rejects this. */
1031 char const *const *ccp;
1033 /* NEC SVR4.0.2 mips cc rejects this. */
1034 struct point {int x, y;};
1035 static struct point const zero = {0,0};
1036 /* AIX XL C 1.02.0.0 rejects this.
1037 It does not let you subtract one const X* pointer from another in an arm
1038 of an if-expression whose if-part is not a constant expression */
1039 const char *g = "string";
1040 ccp = &g + (g ? g-g : 0);
1041 /* HPUX 7.0 cc rejects these. */
1044 ccp = (char const *const *) p;
1045 { /* SCO 3.2v4 cc rejects this. */
1047 char const *s = 0 ? (char *) 0 : (char const *) 0;
1051 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1053 const int *foo = &x[0];
1056 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1057 typedef const int *iptr;
1061 { /* AIX XL C 1.02.0.0 rejects this saying
1062 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1063 struct s { int j; const int *ap[3]; };
1064 struct s *b; b->j = 5;
1066 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1072 if { (eval echo configure:1073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1076 echo "configure: failed program was:" >&5
1077 cat conftest.$ac_ext >&5
1084 echo "$ac_t""$ac_cv_c_const" 1>&6
1085 if test $ac_cv_c_const = no; then
1086 cat >> confdefs.h <<\EOF
1092 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1093 echo "configure:1094: checking whether ${MAKE-make} sets \${MAKE}" >&5
1094 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1095 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1096 echo $ac_n "(cached) $ac_c" 1>&6
1098 cat > conftestmake <<\EOF
1100 @echo 'ac_maketemp="${MAKE}"'
1102 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1103 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1104 if test -n "$ac_maketemp"; then
1105 eval ac_cv_prog_make_${ac_make}_set=yes
1107 eval ac_cv_prog_make_${ac_make}_set=no
1111 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1112 echo "$ac_t""yes" 1>&6
1115 echo "$ac_t""no" 1>&6
1116 SET_MAKE="MAKE=${MAKE-make}"
1118 # Find a good install program. We prefer a C program (faster),
1119 # so one script is as good as another. But avoid the broken or
1120 # incompatible versions:
1121 # SysV /etc/install, /usr/sbin/install
1122 # SunOS /usr/etc/install
1123 # IRIX /sbin/install
1125 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1126 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1127 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1128 # ./install, which can be erroneously created by make from ./install.sh.
1129 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1130 echo "configure:1131: checking for a BSD compatible install" >&5
1131 if test -z "$INSTALL"; then
1132 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1133 echo $ac_n "(cached) $ac_c" 1>&6
1135 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1136 for ac_dir in $PATH; do
1137 # Account for people who put trailing slashes in PATH elements.
1139 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1141 # OSF1 and SCO ODT 3.0 have their own names for install.
1142 # Don't use installbsd from OSF since it installs stuff as root
1144 for ac_prog in ginstall scoinst install; do
1145 if test -f $ac_dir/$ac_prog; then
1146 if test $ac_prog = install &&
1147 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1148 # AIX install. It has an incompatible calling convention.
1151 ac_cv_path_install="$ac_dir/$ac_prog -c"
1162 if test "${ac_cv_path_install+set}" = set; then
1163 INSTALL="$ac_cv_path_install"
1165 # As a last resort, use the slow shell script. We don't cache a
1166 # path for INSTALL within a source directory, because that will
1167 # break other packages using the cache if that directory is
1168 # removed, or if the path is relative.
1169 INSTALL="$ac_install_sh"
1172 echo "$ac_t""$INSTALL" 1>&6
1174 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1175 # It thinks the first close brace ends the variable substitution.
1176 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1178 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1180 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1181 # Extract the first word of "ranlib", so it can be a program name with args.
1182 set dummy ranlib; ac_word=$2
1183 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1184 echo "configure:1185: checking for $ac_word" >&5
1185 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1186 echo $ac_n "(cached) $ac_c" 1>&6
1188 if test -n "$RANLIB"; then
1189 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1191 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1193 for ac_dir in $ac_dummy; do
1194 test -z "$ac_dir" && ac_dir=.
1195 if test -f $ac_dir/$ac_word; then
1196 ac_cv_prog_RANLIB="ranlib"
1201 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1204 RANLIB="$ac_cv_prog_RANLIB"
1205 if test -n "$RANLIB"; then
1206 echo "$ac_t""$RANLIB" 1>&6
1208 echo "$ac_t""no" 1>&6
1210 for ac_prog in mawk gawk nawk awk
1212 # Extract the first word of "$ac_prog", so it can be a program name with args.
1213 set dummy $ac_prog; ac_word=$2
1214 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1215 echo "configure:1216: checking for $ac_word" >&5
1216 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1217 echo $ac_n "(cached) $ac_c" 1>&6
1219 if test -n "$AWK"; then
1220 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1222 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1224 for ac_dir in $ac_dummy; do
1225 test -z "$ac_dir" && ac_dir=.
1226 if test -f $ac_dir/$ac_word; then
1227 ac_cv_prog_AWK="$ac_prog"
1234 AWK="$ac_cv_prog_AWK"
1235 if test -n "$AWK"; then
1236 echo "$ac_t""$AWK" 1>&6
1238 echo "$ac_t""no" 1>&6
1241 test -n "$AWK" && break
1243 # Extract the first word of "flex", so it can be a program name with args.
1244 set dummy flex; ac_word=$2
1245 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1246 echo "configure:1247: checking for $ac_word" >&5
1247 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1248 echo $ac_n "(cached) $ac_c" 1>&6
1250 if test -n "$LEX"; then
1251 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1253 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1255 for ac_dir in $ac_dummy; do
1256 test -z "$ac_dir" && ac_dir=.
1257 if test -f $ac_dir/$ac_word; then
1258 ac_cv_prog_LEX="flex"
1263 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1266 LEX="$ac_cv_prog_LEX"
1267 if test -n "$LEX"; then
1268 echo "$ac_t""$LEX" 1>&6
1270 echo "$ac_t""no" 1>&6
1273 if test -z "$LEXLIB"
1279 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1280 echo "configure:1281: checking for yywrap in -l$ac_lib" >&5
1281 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1282 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1283 echo $ac_n "(cached) $ac_c" 1>&6
1285 ac_save_LIBS="$LIBS"
1286 LIBS="-l$ac_lib $LIBS"
1287 cat > conftest.$ac_ext <<EOF
1288 #line 1289 "configure"
1289 #include "confdefs.h"
1290 /* Override any gcc2 internal prototype to avoid an error. */
1291 /* We use char because int might match the return type of a gcc2
1292 builtin and then its argument prototype would still apply. */
1299 if { (eval echo configure:1300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1301 eval "ac_cv_lib_$ac_lib_var=yes"
1303 echo "configure: failed program was:" >&5
1304 cat conftest.$ac_ext >&5
1306 eval "ac_cv_lib_$ac_lib_var=no"
1309 LIBS="$ac_save_LIBS"
1312 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1313 echo "$ac_t""yes" 1>&6
1316 echo "$ac_t""no" 1>&6
1321 pathtmp=/usr/bin:/bin:/usr/local/bin:/usr/xpg4/bin:/usr/ucb
1322 # Extract the first word of "cut", so it can be a program name with args.
1323 set dummy cut; ac_word=$2
1324 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1325 echo "configure:1326: checking for $ac_word" >&5
1326 if eval "test \"`echo '$''{'ac_cv_path_cutpath'+set}'`\" = set"; then
1327 echo $ac_n "(cached) $ac_c" 1>&6
1331 ac_cv_path_cutpath="$cutpath" # Let the user override the test with a path.
1334 ac_cv_path_cutpath="$cutpath" # Let the user override the test with a dos path.
1337 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1339 for ac_dir in $ac_dummy; do
1340 test -z "$ac_dir" && ac_dir=.
1341 if test -f $ac_dir/$ac_word; then
1342 ac_cv_path_cutpath="$ac_dir/$ac_word"
1347 test -z "$ac_cv_path_cutpath" && ac_cv_path_cutpath="no"
1351 cutpath="$ac_cv_path_cutpath"
1352 if test -n "$cutpath"; then
1353 echo "$ac_t""$cutpath" 1>&6
1355 echo "$ac_t""no" 1>&6
1359 # Extract the first word of "lorder", so it can be a program name with args.
1360 set dummy lorder; ac_word=$2
1361 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1362 echo "configure:1363: checking for $ac_word" >&5
1363 if eval "test \"`echo '$''{'ac_cv_prog_LORDER'+set}'`\" = set"; then
1364 echo $ac_n "(cached) $ac_c" 1>&6
1366 if test -n "$LORDER"; then
1367 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
1369 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1371 for ac_dir in $ac_dummy; do
1372 test -z "$ac_dir" && ac_dir=.
1373 if test -f $ac_dir/$ac_word; then
1374 ac_cv_prog_LORDER="lorder"
1379 test -z "$ac_cv_prog_LORDER" && ac_cv_prog_LORDER="no"
1382 LORDER="$ac_cv_prog_LORDER"
1383 if test -n "$LORDER"; then
1384 echo "$ac_t""$LORDER" 1>&6
1386 echo "$ac_t""no" 1>&6
1388 # Extract the first word of "tsort", so it can be a program name with args.
1389 set dummy tsort; ac_word=$2
1390 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1391 echo "configure:1392: checking for $ac_word" >&5
1392 if eval "test \"`echo '$''{'ac_cv_prog_TSORT'+set}'`\" = set"; then
1393 echo $ac_n "(cached) $ac_c" 1>&6
1395 if test -n "$TSORT"; then
1396 ac_cv_prog_TSORT="$TSORT" # Let the user override the test.
1398 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1400 for ac_dir in $ac_dummy; do
1401 test -z "$ac_dir" && ac_dir=.
1402 if test -f $ac_dir/$ac_word; then
1403 ac_cv_prog_TSORT="tsort"
1408 test -z "$ac_cv_prog_TSORT" && ac_cv_prog_TSORT="no"
1411 TSORT="$ac_cv_prog_TSORT"
1412 if test -n "$TSORT"; then
1413 echo "$ac_t""$TSORT" 1>&6
1415 echo "$ac_t""no" 1>&6
1418 if test x$ac_cv_prog_LORDER != xlorder -o x$ac_cv_prog_TSORT != xtsort; then
1423 pathtmp=/usr/bin:/bin:/usr/local/bin:/usr/xpg4/bin:/usr/ucb
1424 # Extract the first word of "ls", so it can be a program name with args.
1425 set dummy ls; ac_word=$2
1426 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1427 echo "configure:1428: checking for $ac_word" >&5
1428 if eval "test \"`echo '$''{'ac_cv_path_lspath'+set}'`\" = set"; then
1429 echo $ac_n "(cached) $ac_c" 1>&6
1433 ac_cv_path_lspath="$lspath" # Let the user override the test with a path.
1436 ac_cv_path_lspath="$lspath" # Let the user override the test with a dos path.
1439 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1441 for ac_dir in $ac_dummy; do
1442 test -z "$ac_dir" && ac_dir=.
1443 if test -f $ac_dir/$ac_word; then
1444 ac_cv_path_lspath="$ac_dir/$ac_word"
1449 test -z "$ac_cv_path_lspath" && ac_cv_path_lspath="no"
1453 lspath="$ac_cv_path_lspath"
1454 if test -n "$lspath"; then
1455 echo "$ac_t""$lspath" 1>&6
1457 echo "$ac_t""no" 1>&6
1461 if test "$lspath" != "no"; then
1462 echo $ac_n "checking how to get ls to show us the group ownership of a file""... $ac_c" 1>&6
1463 echo "configure:1464: checking how to get ls to show us the group ownership of a file" >&5
1464 if eval "test \"`echo '$''{'nmh_cv_ls_grpopt'+set}'`\" = set"; then
1465 echo $ac_n "(cached) $ac_c" 1>&6
1467 if test x"`$lspath -dl / | $AWK '{print $9}'`" = x"/"; then
1468 nmh_cv_ls_grpopt="-l"
1470 nmh_cv_ls_grpopt="-lg"
1474 echo "$ac_t""$nmh_cv_ls_grpopt" 1>&6
1477 pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin
1478 # Extract the first word of "more", so it can be a program name with args.
1479 set dummy more; ac_word=$2
1480 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1481 echo "configure:1482: checking for $ac_word" >&5
1482 if eval "test \"`echo '$''{'ac_cv_path_morepath'+set}'`\" = set"; then
1483 echo $ac_n "(cached) $ac_c" 1>&6
1487 ac_cv_path_morepath="$morepath" # Let the user override the test with a path.
1490 ac_cv_path_morepath="$morepath" # Let the user override the test with a dos path.
1493 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1495 for ac_dir in $ac_dummy; do
1496 test -z "$ac_dir" && ac_dir=.
1497 if test -f $ac_dir/$ac_word; then
1498 ac_cv_path_morepath="$ac_dir/$ac_word"
1503 test -z "$ac_cv_path_morepath" && ac_cv_path_morepath="no"
1507 morepath="$ac_cv_path_morepath"
1508 if test -n "$morepath"; then
1509 echo "$ac_t""$morepath" 1>&6
1511 echo "$ac_t""no" 1>&6
1515 if test -z "$pagerpath"; then
1516 pagerpath="$morepath"
1519 pathtmp=/usr/lib:/usr/sbin:/usr/etc:/usr/ucblib:/usr/bin:/bin
1520 # Extract the first word of "sendmail", so it can be a program name with args.
1521 set dummy sendmail; ac_word=$2
1522 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1523 echo "configure:1524: checking for $ac_word" >&5
1524 if eval "test \"`echo '$''{'ac_cv_path_sendmailpath'+set}'`\" = set"; then
1525 echo $ac_n "(cached) $ac_c" 1>&6
1527 case "$sendmailpath" in
1529 ac_cv_path_sendmailpath="$sendmailpath" # Let the user override the test with a path.
1532 ac_cv_path_sendmailpath="$sendmailpath" # Let the user override the test with a dos path.
1535 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1537 for ac_dir in $ac_dummy; do
1538 test -z "$ac_dir" && ac_dir=.
1539 if test -f $ac_dir/$ac_word; then
1540 ac_cv_path_sendmailpath="$ac_dir/$ac_word"
1545 test -z "$ac_cv_path_sendmailpath" && ac_cv_path_sendmailpath="no"
1549 sendmailpath="$ac_cv_path_sendmailpath"
1550 if test -n "$sendmailpath"; then
1551 echo "$ac_t""$sendmailpath" 1>&6
1553 echo "$ac_t""no" 1>&6
1557 pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin
1558 # Extract the first word of "vi", so it can be a program name with args.
1559 set dummy vi; ac_word=$2
1560 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1561 echo "configure:1562: checking for $ac_word" >&5
1562 if eval "test \"`echo '$''{'ac_cv_path_vipath'+set}'`\" = set"; then
1563 echo $ac_n "(cached) $ac_c" 1>&6
1567 ac_cv_path_vipath="$vipath" # Let the user override the test with a path.
1570 ac_cv_path_vipath="$vipath" # Let the user override the test with a dos path.
1573 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1575 for ac_dir in $ac_dummy; do
1576 test -z "$ac_dir" && ac_dir=.
1577 if test -f $ac_dir/$ac_word; then
1578 ac_cv_path_vipath="$ac_dir/$ac_word"
1583 test -z "$ac_cv_path_vipath" && ac_cv_path_vipath="no"
1587 vipath="$ac_cv_path_vipath"
1588 if test -n "$vipath"; then
1589 echo "$ac_t""$vipath" 1>&6
1591 echo "$ac_t""no" 1>&6
1595 if test -z "$editorpath"; then
1596 editorpath="$vipath"
1599 echo $ac_n "checking for broken vi""... $ac_c" 1>&6
1600 echo "configure:1601: checking for broken vi" >&5
1601 if eval "test \"`echo '$''{'nmh_cv_attvibug'+set}'`\" = set"; then
1602 echo $ac_n "(cached) $ac_c" 1>&6
1604 if echo 'r /nonexist-file
1605 q' | ex > /dev/null 2>&1
1613 echo "$ac_t""$nmh_cv_attvibug" 1>&6
1615 if test "$nmh_cv_attvibug" = yes; then
1616 cat >> confdefs.h <<\EOF
1622 echo $ac_n "checking where mail spool is located""... $ac_c" 1>&6
1623 echo "configure:1624: checking where mail spool is located" >&5
1624 if eval "test \"`echo '$''{'nmh_cv_mailspool'+set}'`\" = set"; then
1625 echo $ac_n "(cached) $ac_c" 1>&6
1627 for mailspool in /var/mail /var/spool/mail /usr/spool/mail /dev/null; do
1628 test -d $mailspool && break
1630 nmh_cv_mailspool=$mailspool
1634 echo "$ac_t""$nmh_cv_mailspool" 1>&6
1635 mailspool=$nmh_cv_mailspool
1637 if test "$lspath" != "no" -a "$cutpath" != "no"; then
1638 echo $ac_n "checking whether the mail spool is world-writable""... $ac_c" 1>&6
1639 echo "configure:1640: checking whether the mail spool is world-writable" >&5
1640 if eval "test \"`echo '$''{'nmh_cv_mailspool_world_writable'+set}'`\" = set"; then
1641 echo $ac_n "(cached) $ac_c" 1>&6
1643 if test "`$lspath -dlL $mailspool | $cutpath -c9`" = "-"; then
1644 nmh_cv_mailspool_world_writable=no
1646 nmh_cv_mailspool_world_writable=yes
1650 echo "$ac_t""$nmh_cv_mailspool_world_writable" 1>&6
1653 if test x"$nmh_cv_mailspool_world_writable" = x"no"; then
1654 cat >> confdefs.h <<\EOF
1661 echo $ac_n "checking what group owns the mail spool""... $ac_c" 1>&6
1662 echo "configure:1663: checking what group owns the mail spool" >&5
1663 if eval "test \"`echo '$''{'nmh_cv_ls_mail_grp'+set}'`\" = set"; then
1664 echo $ac_n "(cached) $ac_c" 1>&6
1666 nmh_cv_ls_mail_grp=`$lspath -dL $nmh_cv_ls_grpopt $mailspool|$AWK '{print $4}'`
1667 if test x$nmh_cv_ls_mail_grp = xmail; then
1668 MAIL_SPOOL_GRP="mail"
1669 elif test x$nmh_cv_ls_mail_grp = xwheel; then
1670 MAIL_SPOOL_GRP="wheel"
1672 MAIL_SPOOL_GRP="'0'"
1676 echo "$ac_t""$nmh_cv_ls_mail_grp" 1>&6
1679 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1681 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1682 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1683 echo "configure:1684: checking for $ac_hdr that defines DIR" >&5
1684 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1685 echo $ac_n "(cached) $ac_c" 1>&6
1687 cat > conftest.$ac_ext <<EOF
1688 #line 1689 "configure"
1689 #include "confdefs.h"
1690 #include <sys/types.h>
1696 if { (eval echo configure:1697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1698 eval "ac_cv_header_dirent_$ac_safe=yes"
1700 echo "configure: failed program was:" >&5
1701 cat conftest.$ac_ext >&5
1703 eval "ac_cv_header_dirent_$ac_safe=no"
1707 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1708 echo "$ac_t""yes" 1>&6
1709 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1710 cat >> confdefs.h <<EOF
1711 #define $ac_tr_hdr 1
1713 ac_header_dirent=$ac_hdr; break
1715 echo "$ac_t""no" 1>&6
1718 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1719 if test $ac_header_dirent = dirent.h; then
1720 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1721 echo "configure:1722: checking for opendir in -ldir" >&5
1722 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1723 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1724 echo $ac_n "(cached) $ac_c" 1>&6
1726 ac_save_LIBS="$LIBS"
1728 cat > conftest.$ac_ext <<EOF
1729 #line 1730 "configure"
1730 #include "confdefs.h"
1731 /* Override any gcc2 internal prototype to avoid an error. */
1732 /* We use char because int might match the return type of a gcc2
1733 builtin and then its argument prototype would still apply. */
1740 if { (eval echo configure:1741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1742 eval "ac_cv_lib_$ac_lib_var=yes"
1744 echo "configure: failed program was:" >&5
1745 cat conftest.$ac_ext >&5
1747 eval "ac_cv_lib_$ac_lib_var=no"
1750 LIBS="$ac_save_LIBS"
1753 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1754 echo "$ac_t""yes" 1>&6
1757 echo "$ac_t""no" 1>&6
1761 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1762 echo "configure:1763: checking for opendir in -lx" >&5
1763 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1764 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1765 echo $ac_n "(cached) $ac_c" 1>&6
1767 ac_save_LIBS="$LIBS"
1769 cat > conftest.$ac_ext <<EOF
1770 #line 1771 "configure"
1771 #include "confdefs.h"
1772 /* Override any gcc2 internal prototype to avoid an error. */
1773 /* We use char because int might match the return type of a gcc2
1774 builtin and then its argument prototype would still apply. */
1781 if { (eval echo configure:1782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1783 eval "ac_cv_lib_$ac_lib_var=yes"
1785 echo "configure: failed program was:" >&5
1786 cat conftest.$ac_ext >&5
1788 eval "ac_cv_lib_$ac_lib_var=no"
1791 LIBS="$ac_save_LIBS"
1794 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1795 echo "$ac_t""yes" 1>&6
1798 echo "$ac_t""no" 1>&6
1803 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1804 echo "configure:1805: checking how to run the C preprocessor" >&5
1805 # On Suns, sometimes $CPP names a directory.
1806 if test -n "$CPP" && test -d "$CPP"; then
1809 if test -z "$CPP"; then
1810 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1811 echo $ac_n "(cached) $ac_c" 1>&6
1813 # This must be in double quotes, not single quotes, because CPP may get
1814 # substituted into the Makefile and "${CC-cc}" will confuse make.
1816 # On the NeXT, cc -E runs the code through the compiler's parser,
1817 # not just through cpp.
1818 cat > conftest.$ac_ext <<EOF
1819 #line 1820 "configure"
1820 #include "confdefs.h"
1824 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1825 { (eval echo configure:1826: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1826 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1827 if test -z "$ac_err"; then
1831 echo "configure: failed program was:" >&5
1832 cat conftest.$ac_ext >&5
1834 CPP="${CC-cc} -E -traditional-cpp"
1835 cat > conftest.$ac_ext <<EOF
1836 #line 1837 "configure"
1837 #include "confdefs.h"
1841 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1842 { (eval echo configure:1843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1843 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1844 if test -z "$ac_err"; then
1848 echo "configure: failed program was:" >&5
1849 cat conftest.$ac_ext >&5
1851 CPP="${CC-cc} -nologo -E"
1852 cat > conftest.$ac_ext <<EOF
1853 #line 1854 "configure"
1854 #include "confdefs.h"
1858 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1859 { (eval echo configure:1860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1860 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1861 if test -z "$ac_err"; then
1865 echo "configure: failed program was:" >&5
1866 cat conftest.$ac_ext >&5
1875 ac_cv_prog_CPP="$CPP"
1877 CPP="$ac_cv_prog_CPP"
1879 ac_cv_prog_CPP="$CPP"
1881 echo "$ac_t""$CPP" 1>&6
1883 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1884 echo "configure:1885: checking for ANSI C header files" >&5
1885 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1886 echo $ac_n "(cached) $ac_c" 1>&6
1888 cat > conftest.$ac_ext <<EOF
1889 #line 1890 "configure"
1890 #include "confdefs.h"
1896 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1897 { (eval echo configure:1898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1898 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1899 if test -z "$ac_err"; then
1901 ac_cv_header_stdc=yes
1904 echo "configure: failed program was:" >&5
1905 cat conftest.$ac_ext >&5
1907 ac_cv_header_stdc=no
1911 if test $ac_cv_header_stdc = yes; then
1912 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1913 cat > conftest.$ac_ext <<EOF
1914 #line 1915 "configure"
1915 #include "confdefs.h"
1918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1919 egrep "memchr" >/dev/null 2>&1; then
1923 ac_cv_header_stdc=no
1929 if test $ac_cv_header_stdc = yes; then
1930 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1931 cat > conftest.$ac_ext <<EOF
1932 #line 1933 "configure"
1933 #include "confdefs.h"
1936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1937 egrep "free" >/dev/null 2>&1; then
1941 ac_cv_header_stdc=no
1947 if test $ac_cv_header_stdc = yes; then
1948 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1949 if test "$cross_compiling" = yes; then
1952 cat > conftest.$ac_ext <<EOF
1953 #line 1954 "configure"
1954 #include "confdefs.h"
1956 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1957 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1958 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1959 int main () { int i; for (i = 0; i < 256; i++)
1960 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1964 if { (eval echo configure:1965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1968 echo "configure: failed program was:" >&5
1969 cat conftest.$ac_ext >&5
1971 ac_cv_header_stdc=no
1979 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1980 if test $ac_cv_header_stdc = yes; then
1981 cat >> confdefs.h <<\EOF
1982 #define STDC_HEADERS 1
1987 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1988 echo "configure:1989: checking whether time.h and sys/time.h may both be included" >&5
1989 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1990 echo $ac_n "(cached) $ac_c" 1>&6
1992 cat > conftest.$ac_ext <<EOF
1993 #line 1994 "configure"
1994 #include "confdefs.h"
1995 #include <sys/types.h>
1996 #include <sys/time.h>
2002 if { (eval echo configure:2003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2004 ac_cv_header_time=yes
2006 echo "configure: failed program was:" >&5
2007 cat conftest.$ac_ext >&5
2009 ac_cv_header_time=no
2014 echo "$ac_t""$ac_cv_header_time" 1>&6
2015 if test $ac_cv_header_time = yes; then
2016 cat >> confdefs.h <<\EOF
2017 #define TIME_WITH_SYS_TIME 1
2022 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2023 echo "configure:2024: checking for sys/wait.h that is POSIX.1 compatible" >&5
2024 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2025 echo $ac_n "(cached) $ac_c" 1>&6
2027 cat > conftest.$ac_ext <<EOF
2028 #line 2029 "configure"
2029 #include "confdefs.h"
2030 #include <sys/types.h>
2031 #include <sys/wait.h>
2033 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2036 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2041 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2044 if { (eval echo configure:2045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2046 ac_cv_header_sys_wait_h=yes
2048 echo "configure: failed program was:" >&5
2049 cat conftest.$ac_ext >&5
2051 ac_cv_header_sys_wait_h=no
2056 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2057 if test $ac_cv_header_sys_wait_h = yes; then
2058 cat >> confdefs.h <<\EOF
2059 #define HAVE_SYS_WAIT_H 1
2064 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
2065 echo "configure:2066: checking whether stat file-mode macros are broken" >&5
2066 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
2067 echo $ac_n "(cached) $ac_c" 1>&6
2069 cat > conftest.$ac_ext <<EOF
2070 #line 2071 "configure"
2071 #include "confdefs.h"
2072 #include <sys/types.h>
2073 #include <sys/stat.h>
2075 #if defined(S_ISBLK) && defined(S_IFDIR)
2076 # if S_ISBLK (S_IFDIR)
2081 #if defined(S_ISBLK) && defined(S_IFCHR)
2082 # if S_ISBLK (S_IFCHR)
2087 #if defined(S_ISLNK) && defined(S_IFREG)
2088 # if S_ISLNK (S_IFREG)
2093 #if defined(S_ISSOCK) && defined(S_IFREG)
2094 # if S_ISSOCK (S_IFREG)
2100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2101 egrep "You lose" >/dev/null 2>&1; then
2103 ac_cv_header_stat_broken=yes
2106 ac_cv_header_stat_broken=no
2112 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
2113 if test $ac_cv_header_stat_broken = yes; then
2114 cat >> confdefs.h <<\EOF
2115 #define STAT_MACROS_BROKEN 1
2120 for ac_hdr in string.h memory.h stdlib.h unistd.h errno.h fcntl.h \
2121 limits.h crypt.h termcap.h termio.h termios.h locale.h \
2122 sys/param.h sys/time.h sys/utsname.h arpa/inet.h \
2125 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2126 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2127 echo "configure:2128: checking for $ac_hdr" >&5
2128 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2129 echo $ac_n "(cached) $ac_c" 1>&6
2131 cat > conftest.$ac_ext <<EOF
2132 #line 2133 "configure"
2133 #include "confdefs.h"
2136 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2137 { (eval echo configure:2138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2138 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2139 if test -z "$ac_err"; then
2141 eval "ac_cv_header_$ac_safe=yes"
2144 echo "configure: failed program was:" >&5
2145 cat conftest.$ac_ext >&5
2147 eval "ac_cv_header_$ac_safe=no"
2151 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2152 echo "$ac_t""yes" 1>&6
2153 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2154 cat >> confdefs.h <<EOF
2155 #define $ac_tr_hdr 1
2159 echo "$ac_t""no" 1>&6
2164 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
2165 echo "configure:2166: checking POSIX termios" >&5
2166 if eval "test \"`echo '$''{'nmh_cv_sys_posix_termios'+set}'`\" = set"; then
2167 echo $ac_n "(cached) $ac_c" 1>&6
2169 cat > conftest.$ac_ext <<EOF
2170 #line 2171 "configure"
2171 #include "confdefs.h"
2172 #include <sys/types.h>
2174 #include <termios.h>
2176 /* SunOS 4.0.3 has termios.h but not the library calls. */
2180 if { (eval echo configure:2181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2182 nmh_cv_sys_posix_termios=yes
2184 echo "configure: failed program was:" >&5
2185 cat conftest.$ac_ext >&5
2187 nmh_cv_sys_posix_termios=no
2192 echo "$ac_t""$nmh_cv_sys_posix_termios" 1>&6
2194 if test $nmh_cv_sys_posix_termios = yes; then
2195 echo $ac_n "checking TIOCGWINSZ in termios.h""... $ac_c" 1>&6
2196 echo "configure:2197: checking TIOCGWINSZ in termios.h" >&5
2197 if eval "test \"`echo '$''{'nmh_cv_header_termios_h_tiocgwinsz'+set}'`\" = set"; then
2198 echo $ac_n "(cached) $ac_c" 1>&6
2200 cat > conftest.$ac_ext <<EOF
2201 #line 2202 "configure"
2202 #include "confdefs.h"
2203 #include <sys/types.h>
2204 #include <termios.h>
2209 if { (eval echo configure:2210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2211 nmh_cv_header_termios_h_tiocgwinsz=yes
2213 echo "configure: failed program was:" >&5
2214 cat conftest.$ac_ext >&5
2216 nmh_cv_header_termios_h_tiocgwinsz=no
2221 echo "$ac_t""$nmh_cv_header_termios_h_tiocgwinsz" 1>&6
2223 nmh_cv_header_termios_h_tiocgwinsz=no
2226 if test $nmh_cv_header_termios_h_tiocgwinsz = no; then
2227 echo $ac_n "checking TIOCGWINSZ in sys/ioctl.h""... $ac_c" 1>&6
2228 echo "configure:2229: checking TIOCGWINSZ in sys/ioctl.h" >&5
2229 if eval "test \"`echo '$''{'nmh_cv_header_sys_ioctl_h_tiocgwinsz'+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 #include <sys/types.h>
2236 #include <sys/ioctl.h>
2241 if { (eval echo configure:2242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2243 nmh_cv_header_sys_ioctl_h_tiocgwinsz=yes
2245 echo "configure: failed program was:" >&5
2246 cat conftest.$ac_ext >&5
2248 nmh_cv_header_sys_ioctl_h_tiocgwinsz=no
2253 echo "$ac_t""$nmh_cv_header_sys_ioctl_h_tiocgwinsz" 1>&6
2254 if test $nmh_cv_header_sys_ioctl_h_tiocgwinsz = yes; then
2255 cat >> confdefs.h <<\EOF
2256 #define GWINSZ_IN_SYS_IOCTL 1
2262 ac_safe=`echo "sys/ptem.h" | sed 'y%./+-%__p_%'`
2263 echo $ac_n "checking for sys/ptem.h""... $ac_c" 1>&6
2264 echo "configure:2265: checking for sys/ptem.h" >&5
2265 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2266 echo $ac_n "(cached) $ac_c" 1>&6
2268 cat > conftest.$ac_ext <<EOF
2269 #line 2270 "configure"
2270 #include "confdefs.h"
2271 #include <sys/ptem.h>
2273 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2274 { (eval echo configure:2275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2275 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2276 if test -z "$ac_err"; then
2278 eval "ac_cv_header_$ac_safe=yes"
2281 echo "configure: failed program was:" >&5
2282 cat conftest.$ac_ext >&5
2284 eval "ac_cv_header_$ac_safe=no"
2288 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2289 echo "$ac_t""yes" 1>&6
2290 cat >> confdefs.h <<\EOF
2291 #define WINSIZE_IN_PTEM 1
2295 echo "$ac_t""no" 1>&6
2299 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2300 echo "configure:2301: checking for pid_t" >&5
2301 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2302 echo $ac_n "(cached) $ac_c" 1>&6
2304 cat > conftest.$ac_ext <<EOF
2305 #line 2306 "configure"
2306 #include "confdefs.h"
2307 #include <sys/types.h>
2313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2314 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2316 ac_cv_type_pid_t=yes
2324 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2325 if test $ac_cv_type_pid_t = no; then
2326 cat >> confdefs.h <<\EOF
2332 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2333 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2334 echo "configure:2335: checking for vfork.h" >&5
2335 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2336 echo $ac_n "(cached) $ac_c" 1>&6
2338 cat > conftest.$ac_ext <<EOF
2339 #line 2340 "configure"
2340 #include "confdefs.h"
2343 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2344 { (eval echo configure:2345: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2345 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2346 if test -z "$ac_err"; then
2348 eval "ac_cv_header_$ac_safe=yes"
2351 echo "configure: failed program was:" >&5
2352 cat conftest.$ac_ext >&5
2354 eval "ac_cv_header_$ac_safe=no"
2358 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2359 echo "$ac_t""yes" 1>&6
2360 cat >> confdefs.h <<\EOF
2361 #define HAVE_VFORK_H 1
2365 echo "$ac_t""no" 1>&6
2368 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2369 echo "configure:2370: checking for working vfork" >&5
2370 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2371 echo $ac_n "(cached) $ac_c" 1>&6
2373 if test "$cross_compiling" = yes; then
2374 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2375 echo "configure:2376: checking for vfork" >&5
2376 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2377 echo $ac_n "(cached) $ac_c" 1>&6
2379 cat > conftest.$ac_ext <<EOF
2380 #line 2381 "configure"
2381 #include "confdefs.h"
2382 /* System header to define __stub macros and hopefully few prototypes,
2383 which can conflict with char vfork(); below. */
2385 /* Override any gcc2 internal prototype to avoid an error. */
2386 /* We use char because int might match the return type of a gcc2
2387 builtin and then its argument prototype would still apply. */
2392 /* The GNU C library defines this for functions which it implements
2393 to always fail with ENOSYS. Some functions are actually named
2394 something starting with __ and the normal name is an alias. */
2395 #if defined (__stub_vfork) || defined (__stub___vfork)
2403 if { (eval echo configure:2404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2405 eval "ac_cv_func_vfork=yes"
2407 echo "configure: failed program was:" >&5
2408 cat conftest.$ac_ext >&5
2410 eval "ac_cv_func_vfork=no"
2415 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2416 echo "$ac_t""yes" 1>&6
2419 echo "$ac_t""no" 1>&6
2422 ac_cv_func_vfork_works=$ac_cv_func_vfork
2424 cat > conftest.$ac_ext <<EOF
2425 #line 2426 "configure"
2426 #include "confdefs.h"
2427 /* Thanks to Paul Eggert for this test. */
2429 #include <sys/types.h>
2430 #include <sys/stat.h>
2431 #ifdef HAVE_UNISTD_H
2437 /* On some sparc systems, changes by the child to local and incoming
2438 argument registers are propagated back to the parent.
2439 The compiler is told about this with #include <vfork.h>,
2440 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2441 Test for this by using a static variable whose address
2442 is put into a register that is clobbered by the vfork. */
2445 sparc_address_test (int arg)
2447 sparc_address_test (arg) int arg;
2465 pid_t parent = getpid ();
2468 sparc_address_test ();
2473 /* Here is another test for sparc vfork register problems.
2474 This test uses lots of local variables, at least
2475 as many local variables as main has allocated so far
2476 including compiler temporaries. 4 locals are enough for
2477 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2478 A buggy compiler should reuse the register of parent
2479 for one of the local variables, since it will think that
2480 parent can't possibly be used any more in this routine.
2481 Assigning to the local variable will thus munge parent
2482 in the parent process. */
2484 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2485 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2486 /* Convince the compiler that p..p7 are live; otherwise, it might
2487 use the same hardware register for all 8 local variables. */
2488 if (p != p1 || p != p2 || p != p3 || p != p4
2489 || p != p5 || p != p6 || p != p7)
2492 /* On some systems (e.g. IRIX 3.3),
2493 vfork doesn't separate parent from child file descriptors.
2494 If the child closes a descriptor before it execs or exits,
2495 this munges the parent's descriptor as well.
2496 Test for this by closing stdout in the child. */
2497 _exit(close(fileno(stdout)) != 0);
2502 while (wait(&status) != child)
2505 /* Was there some problem with vforking? */
2508 /* Did the child fail? (This shouldn't happen.) */
2511 /* Did the vfork/compiler bug occur? */
2512 || parent != getpid()
2514 /* Did the file descriptor bug occur? */
2515 || fstat(fileno(stdout), &st) != 0
2520 if { (eval echo configure:2521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2522 ac_cv_func_vfork_works=yes
2524 echo "configure: failed program was:" >&5
2525 cat conftest.$ac_ext >&5
2527 ac_cv_func_vfork_works=no
2534 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2535 if test $ac_cv_func_vfork_works = no; then
2536 cat >> confdefs.h <<\EOF
2542 echo $ac_n "checking for mkstemp in -lmkstemp""... $ac_c" 1>&6
2543 echo "configure:2544: checking for mkstemp in -lmkstemp" >&5
2544 ac_lib_var=`echo mkstemp'_'mkstemp | sed 'y%./+-%__p_%'`
2545 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2546 echo $ac_n "(cached) $ac_c" 1>&6
2548 ac_save_LIBS="$LIBS"
2549 LIBS="-lmkstemp $LIBS"
2550 cat > conftest.$ac_ext <<EOF
2551 #line 2552 "configure"
2552 #include "confdefs.h"
2553 /* Override any gcc2 internal prototype to avoid an error. */
2554 /* We use char because int might match the return type of a gcc2
2555 builtin and then its argument prototype would still apply. */
2562 if { (eval echo configure:2563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2564 eval "ac_cv_lib_$ac_lib_var=yes"
2566 echo "configure: failed program was:" >&5
2567 cat conftest.$ac_ext >&5
2569 eval "ac_cv_lib_$ac_lib_var=no"
2572 LIBS="$ac_save_LIBS"
2575 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2576 echo "$ac_t""yes" 1>&6
2577 ac_tr_lib=HAVE_LIB`echo mkstemp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2578 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2579 cat >> confdefs.h <<EOF
2580 #define $ac_tr_lib 1
2583 LIBS="-lmkstemp $LIBS"
2586 echo "$ac_t""no" 1>&6
2589 for ac_func in waitpid wait3 sigaction sigprocmask sigblock sigsetmask \
2590 sighold sigrelse writev lstat uname tzset killpg mkstemp
2592 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2593 echo "configure:2594: checking for $ac_func" >&5
2594 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2595 echo $ac_n "(cached) $ac_c" 1>&6
2597 cat > conftest.$ac_ext <<EOF
2598 #line 2599 "configure"
2599 #include "confdefs.h"
2600 /* System header to define __stub macros and hopefully few prototypes,
2601 which can conflict with char $ac_func(); below. */
2603 /* Override any gcc2 internal prototype to avoid an error. */
2604 /* We use char because int might match the return type of a gcc2
2605 builtin and then its argument prototype would still apply. */
2610 /* The GNU C library defines this for functions which it implements
2611 to always fail with ENOSYS. Some functions are actually named
2612 something starting with __ and the normal name is an alias. */
2613 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2621 if { (eval echo configure:2622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2623 eval "ac_cv_func_$ac_func=yes"
2625 echo "configure: failed program was:" >&5
2626 cat conftest.$ac_ext >&5
2628 eval "ac_cv_func_$ac_func=no"
2633 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2634 echo "$ac_t""yes" 1>&6
2635 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2636 cat >> confdefs.h <<EOF
2637 #define $ac_tr_func 1
2641 echo "$ac_t""no" 1>&6
2646 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
2647 echo "configure:2648: checking for sigsetjmp" >&5
2648 cat > conftest.$ac_ext <<EOF
2649 #line 2650 "configure"
2650 #include "confdefs.h"
2653 sigsetjmp((void *)0, 0);
2656 if { (eval echo configure:2657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2658 cat >> confdefs.h <<\EOF
2659 #define HAVE_SIGSETJMP 1
2661 echo "$ac_t""yes" 1>&6
2663 echo "configure: failed program was:" >&5
2664 cat conftest.$ac_ext >&5
2666 echo "$ac_t""no" 1>&6
2670 for ac_func in snprintf strerror strdup
2672 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2673 echo "configure:2674: checking for $ac_func" >&5
2674 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2675 echo $ac_n "(cached) $ac_c" 1>&6
2677 cat > conftest.$ac_ext <<EOF
2678 #line 2679 "configure"
2679 #include "confdefs.h"
2680 /* System header to define __stub macros and hopefully few prototypes,
2681 which can conflict with char $ac_func(); below. */
2683 /* Override any gcc2 internal prototype to avoid an error. */
2684 /* We use char because int might match the return type of a gcc2
2685 builtin and then its argument prototype would still apply. */
2690 /* The GNU C library defines this for functions which it implements
2691 to always fail with ENOSYS. Some functions are actually named
2692 something starting with __ and the normal name is an alias. */
2693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2701 if { (eval echo configure:2702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2703 eval "ac_cv_func_$ac_func=yes"
2705 echo "configure: failed program was:" >&5
2706 cat conftest.$ac_ext >&5
2708 eval "ac_cv_func_$ac_func=no"
2713 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2714 echo "$ac_t""yes" 1>&6
2715 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2716 cat >> confdefs.h <<EOF
2717 #define $ac_tr_func 1
2721 echo "$ac_t""no" 1>&6
2722 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
2728 echo $ac_n "checking for modf""... $ac_c" 1>&6
2729 echo "configure:2730: checking for modf" >&5
2730 if eval "test \"`echo '$''{'ac_cv_func_modf'+set}'`\" = set"; then
2731 echo $ac_n "(cached) $ac_c" 1>&6
2733 cat > conftest.$ac_ext <<EOF
2734 #line 2735 "configure"
2735 #include "confdefs.h"
2736 /* System header to define __stub macros and hopefully few prototypes,
2737 which can conflict with char modf(); below. */
2739 /* Override any gcc2 internal prototype to avoid an error. */
2740 /* We use char because int might match the return type of a gcc2
2741 builtin and then its argument prototype would still apply. */
2746 /* The GNU C library defines this for functions which it implements
2747 to always fail with ENOSYS. Some functions are actually named
2748 something starting with __ and the normal name is an alias. */
2749 #if defined (__stub_modf) || defined (__stub___modf)
2757 if { (eval echo configure:2758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2759 eval "ac_cv_func_modf=yes"
2761 echo "configure: failed program was:" >&5
2762 cat conftest.$ac_ext >&5
2764 eval "ac_cv_func_modf=no"
2769 if eval "test \"`echo '$ac_cv_func_'modf`\" = yes"; then
2770 echo "$ac_t""yes" 1>&6
2773 echo "$ac_t""no" 1>&6
2774 echo $ac_n "checking for modf in -lm""... $ac_c" 1>&6
2775 echo "configure:2776: checking for modf in -lm" >&5
2776 ac_lib_var=`echo m'_'modf | sed 'y%./+-%__p_%'`
2777 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2778 echo $ac_n "(cached) $ac_c" 1>&6
2780 ac_save_LIBS="$LIBS"
2782 cat > conftest.$ac_ext <<EOF
2783 #line 2784 "configure"
2784 #include "confdefs.h"
2785 /* Override any gcc2 internal prototype to avoid an error. */
2786 /* We use char because int might match the return type of a gcc2
2787 builtin and then its argument prototype would still apply. */
2794 if { (eval echo configure:2795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2796 eval "ac_cv_lib_$ac_lib_var=yes"
2798 echo "configure: failed program was:" >&5
2799 cat conftest.$ac_ext >&5
2801 eval "ac_cv_lib_$ac_lib_var=no"
2804 LIBS="$ac_save_LIBS"
2807 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2808 echo "$ac_t""yes" 1>&6
2809 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
2810 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2811 cat >> confdefs.h <<EOF
2812 #define $ac_tr_lib 1
2818 echo "$ac_t""no" 1>&6
2824 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2825 echo "configure:2826: checking for gethostbyname" >&5
2826 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2827 echo $ac_n "(cached) $ac_c" 1>&6
2829 cat > conftest.$ac_ext <<EOF
2830 #line 2831 "configure"
2831 #include "confdefs.h"
2832 /* System header to define __stub macros and hopefully few prototypes,
2833 which can conflict with char gethostbyname(); below. */
2835 /* Override any gcc2 internal prototype to avoid an error. */
2836 /* We use char because int might match the return type of a gcc2
2837 builtin and then its argument prototype would still apply. */
2838 char gethostbyname();
2842 /* The GNU C library defines this for functions which it implements
2843 to always fail with ENOSYS. Some functions are actually named
2844 something starting with __ and the normal name is an alias. */
2845 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2853 if { (eval echo configure:2854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2855 eval "ac_cv_func_gethostbyname=yes"
2857 echo "configure: failed program was:" >&5
2858 cat conftest.$ac_ext >&5
2860 eval "ac_cv_func_gethostbyname=no"
2865 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2866 echo "$ac_t""yes" 1>&6
2869 echo "$ac_t""no" 1>&6
2870 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2871 echo "configure:2872: checking for gethostbyname in -lnsl" >&5
2872 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2873 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2874 echo $ac_n "(cached) $ac_c" 1>&6
2876 ac_save_LIBS="$LIBS"
2878 cat > conftest.$ac_ext <<EOF
2879 #line 2880 "configure"
2880 #include "confdefs.h"
2881 /* Override any gcc2 internal prototype to avoid an error. */
2882 /* We use char because int might match the return type of a gcc2
2883 builtin and then its argument prototype would still apply. */
2884 char gethostbyname();
2890 if { (eval echo configure:2891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2892 eval "ac_cv_lib_$ac_lib_var=yes"
2894 echo "configure: failed program was:" >&5
2895 cat conftest.$ac_ext >&5
2897 eval "ac_cv_lib_$ac_lib_var=no"
2900 LIBS="$ac_save_LIBS"
2903 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2904 echo "$ac_t""yes" 1>&6
2905 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
2906 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2907 cat >> confdefs.h <<EOF
2908 #define $ac_tr_lib 1
2914 echo "$ac_t""no" 1>&6
2915 echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6
2916 echo "configure:2917: checking for gethostbyname in -lresolv" >&5
2917 ac_lib_var=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'`
2918 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2919 echo $ac_n "(cached) $ac_c" 1>&6
2921 ac_save_LIBS="$LIBS"
2922 LIBS="-lresolv $LIBS"
2923 cat > conftest.$ac_ext <<EOF
2924 #line 2925 "configure"
2925 #include "confdefs.h"
2926 /* Override any gcc2 internal prototype to avoid an error. */
2927 /* We use char because int might match the return type of a gcc2
2928 builtin and then its argument prototype would still apply. */
2929 char gethostbyname();
2935 if { (eval echo configure:2936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2937 eval "ac_cv_lib_$ac_lib_var=yes"
2939 echo "configure: failed program was:" >&5
2940 cat conftest.$ac_ext >&5
2942 eval "ac_cv_lib_$ac_lib_var=no"
2945 LIBS="$ac_save_LIBS"
2948 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2949 echo "$ac_t""yes" 1>&6
2950 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
2951 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2952 cat >> confdefs.h <<EOF
2953 #define $ac_tr_lib 1
2956 LIBS="-lresolv $LIBS"
2959 echo "$ac_t""no" 1>&6
2966 echo $ac_n "checking for socket""... $ac_c" 1>&6
2967 echo "configure:2968: checking for socket" >&5
2968 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
2969 echo $ac_n "(cached) $ac_c" 1>&6
2971 cat > conftest.$ac_ext <<EOF
2972 #line 2973 "configure"
2973 #include "confdefs.h"
2974 /* System header to define __stub macros and hopefully few prototypes,
2975 which can conflict with char socket(); below. */
2977 /* Override any gcc2 internal prototype to avoid an error. */
2978 /* We use char because int might match the return type of a gcc2
2979 builtin and then its argument prototype would still apply. */
2984 /* The GNU C library defines this for functions which it implements
2985 to always fail with ENOSYS. Some functions are actually named
2986 something starting with __ and the normal name is an alias. */
2987 #if defined (__stub_socket) || defined (__stub___socket)
2995 if { (eval echo configure:2996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2997 eval "ac_cv_func_socket=yes"
2999 echo "configure: failed program was:" >&5
3000 cat conftest.$ac_ext >&5
3002 eval "ac_cv_func_socket=no"
3007 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
3008 echo "$ac_t""yes" 1>&6
3011 echo "$ac_t""no" 1>&6
3012 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
3013 echo "configure:3014: checking for socket in -lsocket" >&5
3014 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
3015 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3016 echo $ac_n "(cached) $ac_c" 1>&6
3018 ac_save_LIBS="$LIBS"
3019 LIBS="-lsocket $LIBS"
3020 cat > conftest.$ac_ext <<EOF
3021 #line 3022 "configure"
3022 #include "confdefs.h"
3023 /* Override any gcc2 internal prototype to avoid an error. */
3024 /* We use char because int might match the return type of a gcc2
3025 builtin and then its argument prototype would still apply. */
3032 if { (eval echo configure:3033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3034 eval "ac_cv_lib_$ac_lib_var=yes"
3036 echo "configure: failed program was:" >&5
3037 cat conftest.$ac_ext >&5
3039 eval "ac_cv_lib_$ac_lib_var=no"
3042 LIBS="$ac_save_LIBS"
3045 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3046 echo "$ac_t""yes" 1>&6
3047 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
3048 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3049 cat >> confdefs.h <<EOF
3050 #define $ac_tr_lib 1
3053 LIBS="-lsocket $LIBS"
3056 echo "$ac_t""no" 1>&6
3063 echo $ac_n "checking for ruserpass""... $ac_c" 1>&6
3064 echo "configure:3065: checking for ruserpass" >&5
3065 if eval "test \"`echo '$''{'ac_cv_func_ruserpass'+set}'`\" = set"; then
3066 echo $ac_n "(cached) $ac_c" 1>&6
3068 cat > conftest.$ac_ext <<EOF
3069 #line 3070 "configure"
3070 #include "confdefs.h"
3071 /* System header to define __stub macros and hopefully few prototypes,
3072 which can conflict with char ruserpass(); below. */
3074 /* Override any gcc2 internal prototype to avoid an error. */
3075 /* We use char because int might match the return type of a gcc2
3076 builtin and then its argument prototype would still apply. */
3081 /* The GNU C library defines this for functions which it implements
3082 to always fail with ENOSYS. Some functions are actually named
3083 something starting with __ and the normal name is an alias. */
3084 #if defined (__stub_ruserpass) || defined (__stub___ruserpass)
3092 if { (eval echo configure:3093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3094 eval "ac_cv_func_ruserpass=yes"
3096 echo "configure: failed program was:" >&5
3097 cat conftest.$ac_ext >&5
3099 eval "ac_cv_func_ruserpass=no"
3104 if eval "test \"`echo '$ac_cv_func_'ruserpass`\" = yes"; then
3105 echo "$ac_t""yes" 1>&6
3108 echo "$ac_t""no" 1>&6
3109 echo $ac_n "checking for _ruserpass""... $ac_c" 1>&6
3110 echo "configure:3111: checking for _ruserpass" >&5
3111 if eval "test \"`echo '$''{'ac_cv_func__ruserpass'+set}'`\" = set"; then
3112 echo $ac_n "(cached) $ac_c" 1>&6
3114 cat > conftest.$ac_ext <<EOF
3115 #line 3116 "configure"
3116 #include "confdefs.h"
3117 /* System header to define __stub macros and hopefully few prototypes,
3118 which can conflict with char _ruserpass(); below. */
3120 /* Override any gcc2 internal prototype to avoid an error. */
3121 /* We use char because int might match the return type of a gcc2
3122 builtin and then its argument prototype would still apply. */
3127 /* The GNU C library defines this for functions which it implements
3128 to always fail with ENOSYS. Some functions are actually named
3129 something starting with __ and the normal name is an alias. */
3130 #if defined (__stub__ruserpass) || defined (__stub____ruserpass)
3138 if { (eval echo configure:3139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3140 eval "ac_cv_func__ruserpass=yes"
3142 echo "configure: failed program was:" >&5
3143 cat conftest.$ac_ext >&5
3145 eval "ac_cv_func__ruserpass=no"
3150 if eval "test \"`echo '$ac_cv_func_'_ruserpass`\" = yes"; then
3151 echo "$ac_t""yes" 1>&6
3154 echo "$ac_t""no" 1>&6
3155 echo $ac_n "checking for _ruserpass in -lsocket""... $ac_c" 1>&6
3156 echo "configure:3157: checking for _ruserpass in -lsocket" >&5
3157 ac_lib_var=`echo socket'_'_ruserpass | sed 'y%./+-%__p_%'`
3158 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3159 echo $ac_n "(cached) $ac_c" 1>&6
3161 ac_save_LIBS="$LIBS"
3162 LIBS="-lsocket $LIBS"
3163 cat > conftest.$ac_ext <<EOF
3164 #line 3165 "configure"
3165 #include "confdefs.h"
3166 /* Override any gcc2 internal prototype to avoid an error. */
3167 /* We use char because int might match the return type of a gcc2
3168 builtin and then its argument prototype would still apply. */
3175 if { (eval echo configure:3176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3177 eval "ac_cv_lib_$ac_lib_var=yes"
3179 echo "configure: failed program was:" >&5
3180 cat conftest.$ac_ext >&5
3182 eval "ac_cv_lib_$ac_lib_var=no"
3185 LIBS="$ac_save_LIBS"
3188 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3189 echo "$ac_t""yes" 1>&6
3190 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
3191 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3192 cat >> confdefs.h <<EOF
3193 #define $ac_tr_lib 1
3196 LIBS="-lsocket $LIBS"
3199 echo "$ac_t""no" 1>&6
3206 if test x$ac_cv_func_ruserpass = xno; then
3207 if test x$ac_cv_func__ruserpass = xyes -o x$ac_cv_lib_socket__ruserpass = xyes; then
3208 cat >> confdefs.h <<\EOF
3209 #define ruserpass _ruserpass
3213 LIBOBJS="$LIBOBJS ruserpass.o"
3218 termcap_curses_order="termcap curses ncurses"
3219 for lib in $termcap_curses_order; do
3220 echo $ac_n "checking for tgetent in -l${lib}""... $ac_c" 1>&6
3221 echo "configure:3222: checking for tgetent in -l${lib}" >&5
3222 ac_lib_var=`echo ${lib}'_'tgetent | sed 'y%./+-%__p_%'`
3223 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3224 echo $ac_n "(cached) $ac_c" 1>&6
3226 ac_save_LIBS="$LIBS"
3227 LIBS="-l${lib} $LIBS"
3228 cat > conftest.$ac_ext <<EOF
3229 #line 3230 "configure"
3230 #include "confdefs.h"
3231 /* Override any gcc2 internal prototype to avoid an error. */
3232 /* We use char because int might match the return type of a gcc2
3233 builtin and then its argument prototype would still apply. */
3240 if { (eval echo configure:3241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3242 eval "ac_cv_lib_$ac_lib_var=yes"
3244 echo "configure: failed program was:" >&5
3245 cat conftest.$ac_ext >&5
3247 eval "ac_cv_lib_$ac_lib_var=no"
3250 LIBS="$ac_save_LIBS"
3253 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3254 echo "$ac_t""yes" 1>&6
3255 TERMLIB="-l$lib"; break
3257 echo "$ac_t""no" 1>&6
3263 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
3264 echo "configure:3265: checking for dbm_open" >&5
3265 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
3266 echo $ac_n "(cached) $ac_c" 1>&6
3268 cat > conftest.$ac_ext <<EOF
3269 #line 3270 "configure"
3270 #include "confdefs.h"
3271 /* System header to define __stub macros and hopefully few prototypes,
3272 which can conflict with char dbm_open(); below. */
3274 /* Override any gcc2 internal prototype to avoid an error. */
3275 /* We use char because int might match the return type of a gcc2
3276 builtin and then its argument prototype would still apply. */
3281 /* The GNU C library defines this for functions which it implements
3282 to always fail with ENOSYS. Some functions are actually named
3283 something starting with __ and the normal name is an alias. */
3284 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
3292 if { (eval echo configure:3293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3294 eval "ac_cv_func_dbm_open=yes"
3296 echo "configure: failed program was:" >&5
3297 cat conftest.$ac_ext >&5
3299 eval "ac_cv_func_dbm_open=no"
3304 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
3305 echo "$ac_t""yes" 1>&6
3308 echo "$ac_t""no" 1>&6
3309 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
3310 echo "configure:3311: checking for dbm_open in -lndbm" >&5
3311 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
3312 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3313 echo $ac_n "(cached) $ac_c" 1>&6
3315 ac_save_LIBS="$LIBS"
3317 cat > conftest.$ac_ext <<EOF
3318 #line 3319 "configure"
3319 #include "confdefs.h"
3320 /* Override any gcc2 internal prototype to avoid an error. */
3321 /* We use char because int might match the return type of a gcc2
3322 builtin and then its argument prototype would still apply. */
3329 if { (eval echo configure:3330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3331 eval "ac_cv_lib_$ac_lib_var=yes"
3333 echo "configure: failed program was:" >&5
3334 cat conftest.$ac_ext >&5
3336 eval "ac_cv_lib_$ac_lib_var=no"
3339 LIBS="$ac_save_LIBS"
3342 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3343 echo "$ac_t""yes" 1>&6
3344 ac_tr_lib=HAVE_LIB`echo ndbm | sed -e 's/^a-zA-Z0-9_/_/g' \
3345 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3346 cat >> confdefs.h <<EOF
3347 #define $ac_tr_lib 1
3353 echo "$ac_t""no" 1>&6
3354 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
3355 echo "configure:3356: checking for dbm_open in -ldbm" >&5
3356 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
3357 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3358 echo $ac_n "(cached) $ac_c" 1>&6
3360 ac_save_LIBS="$LIBS"
3362 cat > conftest.$ac_ext <<EOF
3363 #line 3364 "configure"
3364 #include "confdefs.h"
3365 /* Override any gcc2 internal prototype to avoid an error. */
3366 /* We use char because int might match the return type of a gcc2
3367 builtin and then its argument prototype would still apply. */
3374 if { (eval echo configure:3375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3376 eval "ac_cv_lib_$ac_lib_var=yes"
3378 echo "configure: failed program was:" >&5
3379 cat conftest.$ac_ext >&5
3381 eval "ac_cv_lib_$ac_lib_var=no"
3384 LIBS="$ac_save_LIBS"
3387 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3388 echo "$ac_t""yes" 1>&6
3389 ac_tr_lib=HAVE_LIB`echo dbm | sed -e 's/^a-zA-Z0-9_/_/g' \
3390 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3391 cat >> confdefs.h <<EOF
3392 #define $ac_tr_lib 1
3398 echo "$ac_t""no" 1>&6
3406 for ac_hdr in db1/ndbm.h
3408 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3409 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3410 echo "configure:3411: checking for $ac_hdr" >&5
3411 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3412 echo $ac_n "(cached) $ac_c" 1>&6
3414 cat > conftest.$ac_ext <<EOF
3415 #line 3416 "configure"
3416 #include "confdefs.h"
3419 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3420 { (eval echo configure:3421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3421 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3422 if test -z "$ac_err"; then
3424 eval "ac_cv_header_$ac_safe=yes"
3427 echo "configure: failed program was:" >&5
3428 cat conftest.$ac_ext >&5
3430 eval "ac_cv_header_$ac_safe=no"
3434 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3435 echo "$ac_t""yes" 1>&6
3436 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3437 cat >> confdefs.h <<EOF
3438 #define $ac_tr_hdr 1
3442 echo "$ac_t""no" 1>&6
3447 if test x$with_hesiod != x -a x$with_hesiod != xno; then
3448 if test x$with_hesiod != xyes; then
3449 HESIOD_INCLUDES="-I$with_hesiod/include"
3450 HESIOD_LIBS="-L$with_hesiod/lib"
3452 echo $ac_n "checking for res_send""... $ac_c" 1>&6
3453 echo "configure:3454: checking for res_send" >&5
3454 if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then
3455 echo $ac_n "(cached) $ac_c" 1>&6
3457 cat > conftest.$ac_ext <<EOF
3458 #line 3459 "configure"
3459 #include "confdefs.h"
3460 /* System header to define __stub macros and hopefully few prototypes,
3461 which can conflict with char res_send(); below. */
3463 /* Override any gcc2 internal prototype to avoid an error. */
3464 /* We use char because int might match the return type of a gcc2
3465 builtin and then its argument prototype would still apply. */
3470 /* The GNU C library defines this for functions which it implements
3471 to always fail with ENOSYS. Some functions are actually named
3472 something starting with __ and the normal name is an alias. */
3473 #if defined (__stub_res_send) || defined (__stub___res_send)
3481 if { (eval echo configure:3482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3483 eval "ac_cv_func_res_send=yes"
3485 echo "configure: failed program was:" >&5
3486 cat conftest.$ac_ext >&5
3488 eval "ac_cv_func_res_send=no"
3493 if eval "test \"`echo '$ac_cv_func_'res_send`\" = yes"; then
3494 echo "$ac_t""yes" 1>&6
3497 echo "$ac_t""no" 1>&6
3498 echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6
3499 echo "configure:3500: checking for res_send in -lresolv" >&5
3500 ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'`
3501 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3502 echo $ac_n "(cached) $ac_c" 1>&6
3504 ac_save_LIBS="$LIBS"
3505 LIBS="-lresolv $LIBS"
3506 cat > conftest.$ac_ext <<EOF
3507 #line 3508 "configure"
3508 #include "confdefs.h"
3509 /* Override any gcc2 internal prototype to avoid an error. */
3510 /* We use char because int might match the return type of a gcc2
3511 builtin and then its argument prototype would still apply. */
3518 if { (eval echo configure:3519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3520 eval "ac_cv_lib_$ac_lib_var=yes"
3522 echo "configure: failed program was:" >&5
3523 cat conftest.$ac_ext >&5
3525 eval "ac_cv_lib_$ac_lib_var=no"
3528 LIBS="$ac_save_LIBS"
3531 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3532 echo "$ac_t""yes" 1>&6
3533 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
3534 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3535 cat >> confdefs.h <<EOF
3536 #define $ac_tr_lib 1
3539 LIBS="-lresolv $LIBS"
3542 echo "$ac_t""no" 1>&6
3547 echo $ac_n "checking for hes_resolve in -lhesiod""... $ac_c" 1>&6
3548 echo "configure:3549: checking for hes_resolve in -lhesiod" >&5
3549 ac_lib_var=`echo hesiod'_'hes_resolve | sed 'y%./+-%__p_%'`
3550 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3551 echo $ac_n "(cached) $ac_c" 1>&6
3553 ac_save_LIBS="$LIBS"
3554 LIBS="-lhesiod $HESIOD_LIBS $LIBS"
3555 cat > conftest.$ac_ext <<EOF
3556 #line 3557 "configure"
3557 #include "confdefs.h"
3558 /* Override any gcc2 internal prototype to avoid an error. */
3559 /* We use char because int might match the return type of a gcc2
3560 builtin and then its argument prototype would still apply. */
3567 if { (eval echo configure:3568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3569 eval "ac_cv_lib_$ac_lib_var=yes"
3571 echo "configure: failed program was:" >&5
3572 cat conftest.$ac_ext >&5
3574 eval "ac_cv_lib_$ac_lib_var=no"
3577 LIBS="$ac_save_LIBS"
3580 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3581 echo "$ac_t""yes" 1>&6
3582 HESIOD_LIBS="$HESIOD_LIBS -lhesiod"
3584 echo "$ac_t""no" 1>&6
3585 { echo "configure: error: Hesiod library not found" 1>&2; exit 1; }
3590 if test x$with_krb4 != x -a x$with_krb4 != xno; then
3591 if test x$with_krb4 != xyes; then
3592 KRB4_INCLUDES="-I$with_krb4/include"
3593 if test -d "$with_krb4/include/kerberosIV"; then
3594 KRB4_INCLUDES="$KRB4_INCLUDES -I$with_krb4/include/kerberosIV"
3596 KRB4_LIBS="-L$with_krb4/lib"
3597 elif test -d /usr/include/kerberosIV; then
3598 KRB4_INCLUDES="-I/usr/include/kerberosIV"
3600 echo $ac_n "checking for krb_rd_req in -lkrb4""... $ac_c" 1>&6
3601 echo "configure:3602: checking for krb_rd_req in -lkrb4" >&5
3602 ac_lib_var=`echo krb4'_'krb_rd_req | sed 'y%./+-%__p_%'`
3603 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3604 echo $ac_n "(cached) $ac_c" 1>&6
3606 ac_save_LIBS="$LIBS"
3607 LIBS="-lkrb4 $KRB4_LIBS -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
3608 cat > conftest.$ac_ext <<EOF
3609 #line 3610 "configure"
3610 #include "confdefs.h"
3611 /* Override any gcc2 internal prototype to avoid an error. */
3612 /* We use char because int might match the return type of a gcc2
3613 builtin and then its argument prototype would still apply. */
3620 if { (eval echo configure:3621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3622 eval "ac_cv_lib_$ac_lib_var=yes"
3624 echo "configure: failed program was:" >&5
3625 cat conftest.$ac_ext >&5
3627 eval "ac_cv_lib_$ac_lib_var=no"
3630 LIBS="$ac_save_LIBS"
3633 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3634 echo "$ac_t""yes" 1>&6
3635 KRB4_LIBS="$KRB4_LIBS -lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err"
3637 echo "$ac_t""no" 1>&6
3638 echo $ac_n "checking for krb_rd_req in -lkrb""... $ac_c" 1>&6
3639 echo "configure:3640: checking for krb_rd_req in -lkrb" >&5
3640 ac_lib_var=`echo krb'_'krb_rd_req | sed 'y%./+-%__p_%'`
3641 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3642 echo $ac_n "(cached) $ac_c" 1>&6
3644 ac_save_LIBS="$LIBS"
3645 LIBS="-lkrb $KRB4_LIBS -ldes $LIBS"
3646 cat > conftest.$ac_ext <<EOF
3647 #line 3648 "configure"
3648 #include "confdefs.h"
3649 /* Override any gcc2 internal prototype to avoid an error. */
3650 /* We use char because int might match the return type of a gcc2
3651 builtin and then its argument prototype would still apply. */
3658 if { (eval echo configure:3659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3660 eval "ac_cv_lib_$ac_lib_var=yes"
3662 echo "configure: failed program was:" >&5
3663 cat conftest.$ac_ext >&5
3665 eval "ac_cv_lib_$ac_lib_var=no"
3668 LIBS="$ac_save_LIBS"
3671 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3672 echo "$ac_t""yes" 1>&6
3673 KRB4_LIBS="$KRB4_LIBS -lkrb -ldes"
3675 echo "$ac_t""no" 1>&6
3676 { echo "configure: error: Kerberos 4 libraries not found" 1>&2; exit 1; }
3684 nmh_save_LIBS="$LIBS"
3685 LIBS="$TERMLIB $LIBS"
3687 echo $ac_n "checking if an include file defines ospeed""... $ac_c" 1>&6
3688 echo "configure:3689: checking if an include file defines ospeed" >&5
3689 if eval "test \"`echo '$''{'nmh_cv_decl_ospeed_include_defines'+set}'`\" = set"; then
3690 echo $ac_n "(cached) $ac_c" 1>&6
3692 cat > conftest.$ac_ext <<EOF
3693 #line 3694 "configure"
3694 #include "confdefs.h"
3695 #include <sys/types.h>
3697 #include <termios.h>
3700 #include <termcap.h>
3706 if { (eval echo configure:3707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3708 nmh_cv_decl_ospeed_include_defines=yes
3710 echo "configure: failed program was:" >&5
3711 cat conftest.$ac_ext >&5
3713 nmh_cv_decl_ospeed_include_defines=no
3718 echo "$ac_t""$nmh_cv_decl_ospeed_include_defines" 1>&6
3720 if test $nmh_cv_decl_ospeed_include_defines = no; then
3721 echo $ac_n "checking if you must define ospeed""... $ac_c" 1>&6
3722 echo "configure:3723: checking if you must define ospeed" >&5
3723 if eval "test \"`echo '$''{'nmh_cv_decl_ospeed_must_define'+set}'`\" = set"; then
3724 echo $ac_n "(cached) $ac_c" 1>&6
3726 cat > conftest.$ac_ext <<EOF
3727 #line 3728 "configure"
3728 #include "confdefs.h"
3731 extern short ospeed; ospeed = 0;
3734 if { (eval echo configure:3735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3736 nmh_cv_decl_ospeed_must_define=yes
3738 echo "configure: failed program was:" >&5
3739 cat conftest.$ac_ext >&5
3741 nmh_cv_decl_ospeed_must_define=no
3746 echo "$ac_t""$nmh_cv_decl_ospeed_must_define" 1>&6
3749 if test $nmh_cv_decl_ospeed_include_defines = yes; then
3750 cat >> confdefs.h <<\EOF
3751 #define HAVE_OSPEED 1
3754 elif test $nmh_cv_decl_ospeed_must_define = yes; then
3755 cat >> confdefs.h <<\EOF
3756 #define HAVE_OSPEED 1
3759 cat >> confdefs.h <<\EOF
3760 #define MUST_DEFINE_OSPEED 1
3766 LIBS="$nmh_save_LIBS"
3768 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3769 echo "configure:3770: checking return type of signal handlers" >&5
3770 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3771 echo $ac_n "(cached) $ac_c" 1>&6
3773 cat > conftest.$ac_ext <<EOF
3774 #line 3775 "configure"
3775 #include "confdefs.h"
3776 #include <sys/types.h>
3782 extern "C" void (*signal (int, void (*)(int)))(int);
3784 void (*signal ()) ();
3791 if { (eval echo configure:3792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3793 ac_cv_type_signal=void
3795 echo "configure: failed program was:" >&5
3796 cat conftest.$ac_ext >&5
3798 ac_cv_type_signal=int
3803 echo "$ac_t""$ac_cv_type_signal" 1>&6
3804 cat >> confdefs.h <<EOF
3805 #define RETSIGTYPE $ac_cv_type_signal
3809 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3810 echo "configure:3811: checking for pid_t" >&5
3811 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3812 echo $ac_n "(cached) $ac_c" 1>&6
3814 cat > conftest.$ac_ext <<EOF
3815 #line 3816 "configure"
3816 #include "confdefs.h"
3817 #include <sys/types.h>
3823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3824 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3826 ac_cv_type_pid_t=yes
3834 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3835 if test $ac_cv_type_pid_t = no; then
3836 cat >> confdefs.h <<\EOF
3842 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3843 echo "configure:3844: checking for off_t" >&5
3844 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3845 echo $ac_n "(cached) $ac_c" 1>&6
3847 cat > conftest.$ac_ext <<EOF
3848 #line 3849 "configure"
3849 #include "confdefs.h"
3850 #include <sys/types.h>
3856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3857 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3859 ac_cv_type_off_t=yes
3867 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3868 if test $ac_cv_type_off_t = no; then
3869 cat >> confdefs.h <<\EOF
3875 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3876 echo "configure:3877: checking for uid_t in sys/types.h" >&5
3877 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3878 echo $ac_n "(cached) $ac_c" 1>&6
3880 cat > conftest.$ac_ext <<EOF
3881 #line 3882 "configure"
3882 #include "confdefs.h"
3883 #include <sys/types.h>
3885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3886 egrep "uid_t" >/dev/null 2>&1; then
3888 ac_cv_type_uid_t=yes
3897 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3898 if test $ac_cv_type_uid_t = no; then
3899 cat >> confdefs.h <<\EOF
3903 cat >> confdefs.h <<\EOF
3909 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3910 echo "configure:3911: checking for mode_t" >&5
3911 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3912 echo $ac_n "(cached) $ac_c" 1>&6
3914 cat > conftest.$ac_ext <<EOF
3915 #line 3916 "configure"
3916 #include "confdefs.h"
3917 #include <sys/types.h>
3923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3924 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3926 ac_cv_type_mode_t=yes
3929 ac_cv_type_mode_t=no
3934 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3935 if test $ac_cv_type_mode_t = no; then
3936 cat >> confdefs.h <<\EOF
3942 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3943 echo "configure:3944: checking for size_t" >&5
3944 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3945 echo $ac_n "(cached) $ac_c" 1>&6
3947 cat > conftest.$ac_ext <<EOF
3948 #line 3949 "configure"
3949 #include "confdefs.h"
3950 #include <sys/types.h>
3956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3957 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3959 ac_cv_type_size_t=yes
3962 ac_cv_type_size_t=no
3967 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3968 if test $ac_cv_type_size_t = no; then
3969 cat >> confdefs.h <<\EOF
3970 #define size_t unsigned
3976 echo $ac_n "checking for sigset_t""... $ac_c" 1>&6
3977 echo "configure:3978: checking for sigset_t" >&5
3978 if eval "test \"`echo '$''{'nmh_cv_type_sigset_t'+set}'`\" = set"; then
3979 echo $ac_n "(cached) $ac_c" 1>&6
3981 cat > conftest.$ac_ext <<EOF
3982 #line 3983 "configure"
3983 #include "confdefs.h"
3984 #include <sys/types.h>
3987 sigset_t tempsigset;
3990 if { (eval echo configure:3991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3992 nmh_cv_type_sigset_t=yes
3994 echo "configure: failed program was:" >&5
3995 cat conftest.$ac_ext >&5
3997 nmh_cv_type_sigset_t=no
4002 echo "$ac_t""$nmh_cv_type_sigset_t" 1>&6
4003 if test $nmh_cv_type_sigset_t = no; then
4004 cat >> confdefs.h <<\EOF
4005 #define sigset_t unsigned int
4010 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
4011 echo "configure:4012: checking for st_blksize in struct stat" >&5
4012 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
4013 echo $ac_n "(cached) $ac_c" 1>&6
4015 cat > conftest.$ac_ext <<EOF
4016 #line 4017 "configure"
4017 #include "confdefs.h"
4018 #include <sys/types.h>
4019 #include <sys/stat.h>
4021 struct stat s; s.st_blksize;
4024 if { (eval echo configure:4025: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4026 ac_cv_struct_st_blksize=yes
4028 echo "configure: failed program was:" >&5
4029 cat conftest.$ac_ext >&5
4031 ac_cv_struct_st_blksize=no
4036 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
4037 if test $ac_cv_struct_st_blksize = yes; then
4038 cat >> confdefs.h <<\EOF
4039 #define HAVE_ST_BLKSIZE 1
4045 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
4046 echo "configure:4047: checking for tm_gmtoff in struct tm" >&5
4047 if eval "test \"`echo '$''{'nmh_cv_struct_tm_gmtoff'+set}'`\" = set"; then
4048 echo $ac_n "(cached) $ac_c" 1>&6
4050 cat > conftest.$ac_ext <<EOF
4051 #line 4052 "configure"
4052 #include "confdefs.h"
4053 #ifdef TIME_WITH_SYS_TIME
4054 # include <sys/time.h>
4057 # ifdef TM_IN_SYS_TIME
4058 # include <sys/time.h>
4064 struct tm temptm; temptm.tm_gmtoff = 0;
4067 if { (eval echo configure:4068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4069 nmh_cv_struct_tm_gmtoff=yes
4071 echo "configure: failed program was:" >&5
4072 cat conftest.$ac_ext >&5
4074 nmh_cv_struct_tm_gmtoff=no
4079 echo "$ac_t""$nmh_cv_struct_tm_gmtoff" 1>&6
4080 if test $nmh_cv_struct_tm_gmtoff = yes; then
4081 cat >> confdefs.h <<\EOF
4082 #define HAVE_TM_GMTOFF 1
4087 echo $ac_n "checking what style of signals to use""... $ac_c" 1>&6
4088 echo "configure:4089: checking what style of signals to use" >&5
4089 if test $ac_cv_func_sigaction = yes -a $ac_cv_func_sigprocmask = yes; then
4090 signals_style=POSIX_SIGNALS
4091 cat >> confdefs.h <<\EOF
4092 #define POSIX_SIGNALS 1
4095 cat >> confdefs.h <<\EOF
4096 #define RELIABLE_SIGNALS 1
4099 elif test $ac_cv_func_sigblock = yes -a $ac_cv_func_sigsetmask = yes; then
4100 signals_style=BSD_SIGNALS
4101 cat >> confdefs.h <<\EOF
4102 #define BSD_SIGNALS 1
4105 cat >> confdefs.h <<\EOF
4106 #define RELIABLE_SIGNALS 1
4109 elif test $ac_cv_func_sighold = yes -a $ac_cv_func_sigrelse = yes; then
4110 signals_style=SYSV_SIGNALS
4111 cat >> confdefs.h <<\EOF
4112 #define SYSV_SIGNALS 1
4116 signals_style=NO_SIGNAL_BLOCKING
4117 cat >> confdefs.h <<\EOF
4118 #define NO_SIGNAL_BLOCKING 1
4123 echo "$ac_t""$signals_style" 1>&6
4125 echo $ac_n "checking where signal.h is located""... $ac_c" 1>&6
4126 echo "configure:4127: checking where signal.h is located" >&5
4127 if eval "test \"`echo '$''{'nmh_cv_path_signal_h'+set}'`\" = set"; then
4128 echo $ac_n "(cached) $ac_c" 1>&6
4130 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
4131 test -f $SIGNAL_H && \
4132 grep '#[ ]*define[ ][ ]*SIG[0-9A-Z]*[ ]*[0-9][0-9]*' $SIGNAL_H > /dev/null && \
4135 nmh_cv_path_signal_h=$SIGNAL_H
4139 echo "$ac_t""$nmh_cv_path_signal_h" 1>&6
4140 SIGNAL_H=$nmh_cv_path_signal_h
4142 case "$target_os" in
4145 cat >> confdefs.h <<\EOF
4149 cat >> confdefs.h <<\EOF
4155 cat >> confdefs.h <<\EOF
4159 cat >> confdefs.h <<\EOF
4165 cat >> confdefs.h <<\EOF
4169 cat >> confdefs.h <<\EOF
4175 cat >> confdefs.h <<\EOF
4179 cat >> confdefs.h <<\EOF
4185 cat >> confdefs.h <<\EOF
4189 cat >> confdefs.h <<\EOF
4195 cat >> confdefs.h <<\EOF
4196 #define LINUX_STDIO 1
4201 cat >> confdefs.h <<\EOF
4205 cat >> confdefs.h <<\EOF
4209 cat >> confdefs.h <<\EOF
4215 cat >> confdefs.h <<\EOF
4219 cat >> confdefs.h <<\EOF
4223 cat >> confdefs.h <<\EOF
4229 cat >> confdefs.h <<\EOF
4233 cat >> confdefs.h <<\EOF
4237 cat >> confdefs.h <<\EOF
4243 cat >> confdefs.h <<\EOF
4247 cat >> confdefs.h <<\EOF
4251 cat >> confdefs.h <<\EOF
4257 cat >> confdefs.h <<\EOF
4261 cat >> confdefs.h <<\EOF
4262 #define SCO_5_STDIO 1
4270 cat > confcache <<\EOF
4271 # This file is a shell script that caches the results of configure
4272 # tests run on this system so they can be shared between configure
4273 # scripts and configure runs. It is not useful on other systems.
4274 # If it contains results you don't want to keep, you may remove or edit it.
4276 # By default, configure uses ./config.cache as the cache file,
4277 # creating it if it does not exist already. You can give configure
4278 # the --cache-file=FILE option to use a different cache file; that is
4279 # what configure does when it calls configure scripts in
4280 # subdirectories, so they share the cache.
4281 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4282 # config.status only pays attention to the cache file if you give it the
4283 # --recheck option to rerun configure.
4286 # The following way of writing the cache mishandles newlines in values,
4287 # but we know of no workaround that is simple, portable, and efficient.
4288 # So, don't put newlines in cache variables' values.
4289 # Ultrix sh set writes to stderr and can't be redirected directly,
4290 # and sets the high bit in the cache file unless we assign to the vars.
4292 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4294 # `set' does not quote correctly, so add quotes (double-quote substitution
4295 # turns \\\\ into \\, and sed turns \\ into \).
4297 -e "s/'/'\\\\''/g" \
4298 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4301 # `set' quotes correctly as required by POSIX, so do not add quotes.
4302 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4305 if cmp -s $cache_file confcache; then
4308 if test -w $cache_file; then
4309 echo "updating cache $cache_file"
4310 cat confcache > $cache_file
4312 echo "not updating unwritable cache $cache_file"
4317 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4319 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4320 # Let make expand exec_prefix.
4321 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4323 # Any assignment to VPATH causes Sun make to only execute
4324 # the first set of double-colon rules, so remove it if not needed.
4325 # If there is a colon in the path, we need to keep it.
4326 if test "x$srcdir" = x.; then
4327 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'