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}-
656 VERSION=`sed -e 's/nmh-//' ${srcdir}/VERSION`
657 echo "configuring for nmh-$VERSION"
659 # Check whether --with-mts or --without-mts was given.
660 if test "${with_mts+set}" = set; then
666 if test x$with_mts = xsmtp; then
668 MTSLIB="mts/smtp/libsmtp.a"
669 cat >> confdefs.h <<\EOF
672 elif test x$with_mts = xsendmail; then
674 MTSLIB="mts/sendmail/libsend.a"
675 cat >> confdefs.h <<\EOF
680 MTSLIB="mts/smtp/libsmtp.a"
681 cat >> confdefs.h <<\EOF
689 # Check whether --with-editor or --without-editor was given.
690 if test "${with_editor+set}" = set; then
691 withval="$with_editor"
696 if test -n "$with_editor"; then
697 editorpath="$with_editor"
700 # Check whether --with-pager or --without-pager was given.
701 if test "${with_pager+set}" = set; then
702 withval="$with_pager"
707 if test -n "$with_pager"; then
708 pagerpath="$with_pager"
711 # Check whether --enable-nmh-mhe or --disable-nmh-mhe was given.
712 if test "${enable_nmh_mhe+set}" = set; then
713 enableval="$enable_nmh_mhe"
718 if test x$enable_nmh_mhe != xno; then
719 cat >> confdefs.h <<\EOF
724 # Check whether --enable-nmh-pop or --disable-nmh-pop was given.
725 if test "${enable_nmh_pop+set}" = set; then
726 enableval="$enable_nmh_pop"
730 if test x$enable_nmh_pop = xyes; then
731 cat >> confdefs.h <<\EOF
735 POPSED='/^%nmhbeginpop%/d;/^%nmhendpop%/d'
737 POPSED='/^%nmhbeginpop%/,/^%nmhendpop%/d'
740 # Check whether --with-krb4 or --without-krb4 was given.
741 if test "${with_krb4+set}" = set; then
746 if test x$with_krb4 != x -a x$with_krb4 != xno; then
747 cat >> confdefs.h <<\EOF
750 cat >> confdefs.h <<\EOF
751 #define KPOP_PRINCIPAL "pop"
755 # Check whether --with-hesiod or --without-hesiod was given.
756 if test "${with_hesiod+set}" = set; then
757 withval="$with_hesiod"
761 if test x$with_hesiod != x -a x$with_hesiod != xno; then
762 cat >> confdefs.h <<\EOF
767 # Check whether --enable-nmh-debug or --disable-nmh-debug was given.
768 if test "${enable_nmh_debug+set}" = set; then
769 enableval="$enable_nmh_debug"
776 test -z "$CFLAGS" && CFLAGS= auto_cflags=1
777 if test x$enable_nmh_debug = xyes; then
778 test -z "$LDFLAGS" && LDFLAGS=-g
781 # Extract the first word of "gcc", so it can be a program name with args.
782 set dummy gcc; ac_word=$2
783 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
784 echo "configure:785: checking for $ac_word" >&5
785 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
786 echo $ac_n "(cached) $ac_c" 1>&6
788 if test -n "$CC"; then
789 ac_cv_prog_CC="$CC" # Let the user override the test.
791 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
793 for ac_dir in $ac_dummy; do
794 test -z "$ac_dir" && ac_dir=.
795 if test -f $ac_dir/$ac_word; then
804 if test -n "$CC"; then
805 echo "$ac_t""$CC" 1>&6
807 echo "$ac_t""no" 1>&6
810 if test -z "$CC"; then
811 # Extract the first word of "cc", so it can be a program name with args.
812 set dummy cc; ac_word=$2
813 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
814 echo "configure:815: checking for $ac_word" >&5
815 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
816 echo $ac_n "(cached) $ac_c" 1>&6
818 if test -n "$CC"; then
819 ac_cv_prog_CC="$CC" # Let the user override the test.
821 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
824 for ac_dir in $ac_dummy; do
825 test -z "$ac_dir" && ac_dir=.
826 if test -f $ac_dir/$ac_word; then
827 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
836 if test $ac_prog_rejected = yes; then
837 # We found a bogon in the path, so make sure we never use it.
838 set dummy $ac_cv_prog_CC
840 if test $# -gt 0; then
841 # We chose a different compiler from the bogus one.
842 # However, it has the same basename, so the bogon will be chosen
843 # first if we set CC to just the basename; use the full file name.
845 set dummy "$ac_dir/$ac_word" "$@"
853 if test -n "$CC"; then
854 echo "$ac_t""$CC" 1>&6
856 echo "$ac_t""no" 1>&6
859 if test -z "$CC"; then
862 # Extract the first word of "cl", so it can be a program name with args.
863 set dummy cl; ac_word=$2
864 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
865 echo "configure:866: checking for $ac_word" >&5
866 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
867 echo $ac_n "(cached) $ac_c" 1>&6
869 if test -n "$CC"; then
870 ac_cv_prog_CC="$CC" # Let the user override the test.
872 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
874 for ac_dir in $ac_dummy; do
875 test -z "$ac_dir" && ac_dir=.
876 if test -f $ac_dir/$ac_word; then
885 if test -n "$CC"; then
886 echo "$ac_t""$CC" 1>&6
888 echo "$ac_t""no" 1>&6
893 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
896 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
897 echo "configure:898: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
900 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
901 ac_cpp='$CPP $CPPFLAGS'
902 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
903 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
904 cross_compiling=$ac_cv_prog_cc_cross
906 cat > conftest.$ac_ext << EOF
908 #line 909 "configure"
909 #include "confdefs.h"
913 if { (eval echo configure:914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
914 ac_cv_prog_cc_works=yes
915 # If we can't run a trivial program, we are probably using a cross compiler.
916 if (./conftest; exit) 2>/dev/null; then
917 ac_cv_prog_cc_cross=no
919 ac_cv_prog_cc_cross=yes
922 echo "configure: failed program was:" >&5
923 cat conftest.$ac_ext >&5
924 ac_cv_prog_cc_works=no
928 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
929 ac_cpp='$CPP $CPPFLAGS'
930 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
931 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
932 cross_compiling=$ac_cv_prog_cc_cross
934 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
935 if test $ac_cv_prog_cc_works = no; then
936 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
938 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
939 echo "configure:940: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
940 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
941 cross_compiling=$ac_cv_prog_cc_cross
943 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
944 echo "configure:945: checking whether we are using GNU C" >&5
945 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
946 echo $ac_n "(cached) $ac_c" 1>&6
948 cat > conftest.c <<EOF
953 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
960 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
962 if test $ac_cv_prog_gcc = yes; then
968 ac_test_CFLAGS="${CFLAGS+set}"
969 ac_save_CFLAGS="$CFLAGS"
971 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
972 echo "configure:973: checking whether ${CC-cc} accepts -g" >&5
973 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
974 echo $ac_n "(cached) $ac_c" 1>&6
976 echo 'void f(){}' > conftest.c
977 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
986 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
987 if test "$ac_test_CFLAGS" = set; then
988 CFLAGS="$ac_save_CFLAGS"
989 elif test $ac_cv_prog_cc_g = yes; then
990 if test "$GCC" = yes; then
996 if test "$GCC" = yes; then
1004 if test -n "$auto_cflags"; then
1005 if test x$enable_nmh_debug = xyes; then
1006 if test -n "$GCC"; then
1007 test -z "$CFLAGS" && CFLAGS="-Wall -g" || CFLAGS="$CFLAGS -Wall -g"
1009 test -z "$CFLAGS" && CFLAGS=-g || CFLAGS="$CFLAGS -g"
1012 test -z "$LDFLAGS" && LDFLAGS=-s
1013 if test -n "$GCC"; then
1014 test -z "$CFLAGS" && CFLAGS=-O2 || CFLAGS="$CFLAGS -O2"
1016 test -z "$CFLAGS" && CFLAGS=-O || CFLAGS="$CFLAGS -O"
1021 echo $ac_n "checking for working const""... $ac_c" 1>&6
1022 echo "configure:1023: checking for working const" >&5
1023 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1024 echo $ac_n "(cached) $ac_c" 1>&6
1026 cat > conftest.$ac_ext <<EOF
1027 #line 1028 "configure"
1028 #include "confdefs.h"
1032 /* Ultrix mips cc rejects this. */
1033 typedef int charset[2]; const charset x;
1034 /* SunOS 4.1.1 cc rejects this. */
1035 char const *const *ccp;
1037 /* NEC SVR4.0.2 mips cc rejects this. */
1038 struct point {int x, y;};
1039 static struct point const zero = {0,0};
1040 /* AIX XL C 1.02.0.0 rejects this.
1041 It does not let you subtract one const X* pointer from another in an arm
1042 of an if-expression whose if-part is not a constant expression */
1043 const char *g = "string";
1044 ccp = &g + (g ? g-g : 0);
1045 /* HPUX 7.0 cc rejects these. */
1048 ccp = (char const *const *) p;
1049 { /* SCO 3.2v4 cc rejects this. */
1051 char const *s = 0 ? (char *) 0 : (char const *) 0;
1055 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1057 const int *foo = &x[0];
1060 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1061 typedef const int *iptr;
1065 { /* AIX XL C 1.02.0.0 rejects this saying
1066 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1067 struct s { int j; const int *ap[3]; };
1068 struct s *b; b->j = 5;
1070 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1076 if { (eval echo configure:1077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1080 echo "configure: failed program was:" >&5
1081 cat conftest.$ac_ext >&5
1088 echo "$ac_t""$ac_cv_c_const" 1>&6
1089 if test $ac_cv_c_const = no; then
1090 cat >> confdefs.h <<\EOF
1096 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1097 echo "configure:1098: checking whether ${MAKE-make} sets \${MAKE}" >&5
1098 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1099 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1100 echo $ac_n "(cached) $ac_c" 1>&6
1102 cat > conftestmake <<\EOF
1104 @echo 'ac_maketemp="${MAKE}"'
1106 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1107 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1108 if test -n "$ac_maketemp"; then
1109 eval ac_cv_prog_make_${ac_make}_set=yes
1111 eval ac_cv_prog_make_${ac_make}_set=no
1115 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1116 echo "$ac_t""yes" 1>&6
1119 echo "$ac_t""no" 1>&6
1120 SET_MAKE="MAKE=${MAKE-make}"
1122 # Find a good install program. We prefer a C program (faster),
1123 # so one script is as good as another. But avoid the broken or
1124 # incompatible versions:
1125 # SysV /etc/install, /usr/sbin/install
1126 # SunOS /usr/etc/install
1127 # IRIX /sbin/install
1129 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1130 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1131 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1132 # ./install, which can be erroneously created by make from ./install.sh.
1133 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1134 echo "configure:1135: checking for a BSD compatible install" >&5
1135 if test -z "$INSTALL"; then
1136 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1137 echo $ac_n "(cached) $ac_c" 1>&6
1139 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1140 for ac_dir in $PATH; do
1141 # Account for people who put trailing slashes in PATH elements.
1143 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1145 # OSF1 and SCO ODT 3.0 have their own names for install.
1146 # Don't use installbsd from OSF since it installs stuff as root
1148 for ac_prog in ginstall scoinst install; do
1149 if test -f $ac_dir/$ac_prog; then
1150 if test $ac_prog = install &&
1151 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1152 # AIX install. It has an incompatible calling convention.
1155 ac_cv_path_install="$ac_dir/$ac_prog -c"
1166 if test "${ac_cv_path_install+set}" = set; then
1167 INSTALL="$ac_cv_path_install"
1169 # As a last resort, use the slow shell script. We don't cache a
1170 # path for INSTALL within a source directory, because that will
1171 # break other packages using the cache if that directory is
1172 # removed, or if the path is relative.
1173 INSTALL="$ac_install_sh"
1176 echo "$ac_t""$INSTALL" 1>&6
1178 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1179 # It thinks the first close brace ends the variable substitution.
1180 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1182 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1184 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1185 # Extract the first word of "ranlib", so it can be a program name with args.
1186 set dummy ranlib; ac_word=$2
1187 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1188 echo "configure:1189: checking for $ac_word" >&5
1189 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1190 echo $ac_n "(cached) $ac_c" 1>&6
1192 if test -n "$RANLIB"; then
1193 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1195 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1197 for ac_dir in $ac_dummy; do
1198 test -z "$ac_dir" && ac_dir=.
1199 if test -f $ac_dir/$ac_word; then
1200 ac_cv_prog_RANLIB="ranlib"
1205 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1208 RANLIB="$ac_cv_prog_RANLIB"
1209 if test -n "$RANLIB"; then
1210 echo "$ac_t""$RANLIB" 1>&6
1212 echo "$ac_t""no" 1>&6
1214 for ac_prog in mawk gawk nawk awk
1216 # Extract the first word of "$ac_prog", so it can be a program name with args.
1217 set dummy $ac_prog; ac_word=$2
1218 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1219 echo "configure:1220: checking for $ac_word" >&5
1220 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1221 echo $ac_n "(cached) $ac_c" 1>&6
1223 if test -n "$AWK"; then
1224 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1226 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1228 for ac_dir in $ac_dummy; do
1229 test -z "$ac_dir" && ac_dir=.
1230 if test -f $ac_dir/$ac_word; then
1231 ac_cv_prog_AWK="$ac_prog"
1238 AWK="$ac_cv_prog_AWK"
1239 if test -n "$AWK"; then
1240 echo "$ac_t""$AWK" 1>&6
1242 echo "$ac_t""no" 1>&6
1245 test -n "$AWK" && break
1247 # Extract the first word of "flex", so it can be a program name with args.
1248 set dummy flex; ac_word=$2
1249 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1250 echo "configure:1251: checking for $ac_word" >&5
1251 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1252 echo $ac_n "(cached) $ac_c" 1>&6
1254 if test -n "$LEX"; then
1255 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1257 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1259 for ac_dir in $ac_dummy; do
1260 test -z "$ac_dir" && ac_dir=.
1261 if test -f $ac_dir/$ac_word; then
1262 ac_cv_prog_LEX="flex"
1267 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1270 LEX="$ac_cv_prog_LEX"
1271 if test -n "$LEX"; then
1272 echo "$ac_t""$LEX" 1>&6
1274 echo "$ac_t""no" 1>&6
1277 if test -z "$LEXLIB"
1283 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1284 echo "configure:1285: checking for yywrap in -l$ac_lib" >&5
1285 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1286 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1287 echo $ac_n "(cached) $ac_c" 1>&6
1289 ac_save_LIBS="$LIBS"
1290 LIBS="-l$ac_lib $LIBS"
1291 cat > conftest.$ac_ext <<EOF
1292 #line 1293 "configure"
1293 #include "confdefs.h"
1294 /* Override any gcc2 internal prototype to avoid an error. */
1295 /* We use char because int might match the return type of a gcc2
1296 builtin and then its argument prototype would still apply. */
1303 if { (eval echo configure:1304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1305 eval "ac_cv_lib_$ac_lib_var=yes"
1307 echo "configure: failed program was:" >&5
1308 cat conftest.$ac_ext >&5
1310 eval "ac_cv_lib_$ac_lib_var=no"
1313 LIBS="$ac_save_LIBS"
1316 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1317 echo "$ac_t""yes" 1>&6
1320 echo "$ac_t""no" 1>&6
1325 pathtmp=/usr/bin:/bin:/usr/local/bin:/usr/xpg4/bin:/usr/ucb
1326 # Extract the first word of "cut", so it can be a program name with args.
1327 set dummy cut; ac_word=$2
1328 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1329 echo "configure:1330: checking for $ac_word" >&5
1330 if eval "test \"`echo '$''{'ac_cv_path_cutpath'+set}'`\" = set"; then
1331 echo $ac_n "(cached) $ac_c" 1>&6
1335 ac_cv_path_cutpath="$cutpath" # Let the user override the test with a path.
1338 ac_cv_path_cutpath="$cutpath" # Let the user override the test with a dos path.
1341 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1343 for ac_dir in $ac_dummy; do
1344 test -z "$ac_dir" && ac_dir=.
1345 if test -f $ac_dir/$ac_word; then
1346 ac_cv_path_cutpath="$ac_dir/$ac_word"
1351 test -z "$ac_cv_path_cutpath" && ac_cv_path_cutpath="no"
1355 cutpath="$ac_cv_path_cutpath"
1356 if test -n "$cutpath"; then
1357 echo "$ac_t""$cutpath" 1>&6
1359 echo "$ac_t""no" 1>&6
1364 # Extract the first word of "libtool", so it can be a program name with args.
1365 set dummy libtool; ac_word=$2
1366 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1367 echo "configure:1368: checking for $ac_word" >&5
1368 if eval "test \"`echo '$''{'ac_cv_prog_LIBTOOL'+set}'`\" = set"; then
1369 echo $ac_n "(cached) $ac_c" 1>&6
1371 if test -n "$LIBTOOL"; then
1372 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
1374 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1376 for ac_dir in $ac_dummy; do
1377 test -z "$ac_dir" && ac_dir=.
1378 if test -f $ac_dir/$ac_word; then
1379 ac_cv_prog_LIBTOOL="libtool"
1386 LIBTOOL="$ac_cv_prog_LIBTOOL"
1387 if test -n "$LIBTOOL"; then
1388 echo "$ac_t""$LIBTOOL" 1>&6
1390 echo "$ac_t""no" 1>&6
1394 tmptest=`$LIBTOOL --version 2>&1 | grep GNU`
1395 if test x"$tmptest" != x ; then
1400 # Extract the first word of "lorder", so it can be a program name with args.
1401 set dummy lorder; ac_word=$2
1402 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1403 echo "configure:1404: checking for $ac_word" >&5
1404 if eval "test \"`echo '$''{'ac_cv_prog_LORDER'+set}'`\" = set"; then
1405 echo $ac_n "(cached) $ac_c" 1>&6
1407 if test -n "$LORDER"; then
1408 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
1410 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1412 for ac_dir in $ac_dummy; do
1413 test -z "$ac_dir" && ac_dir=.
1414 if test -f $ac_dir/$ac_word; then
1415 ac_cv_prog_LORDER="lorder"
1420 test -z "$ac_cv_prog_LORDER" && ac_cv_prog_LORDER="no"
1423 LORDER="$ac_cv_prog_LORDER"
1424 if test -n "$LORDER"; then
1425 echo "$ac_t""$LORDER" 1>&6
1427 echo "$ac_t""no" 1>&6
1429 # Extract the first word of "tsort", so it can be a program name with args.
1430 set dummy tsort; ac_word=$2
1431 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1432 echo "configure:1433: checking for $ac_word" >&5
1433 if eval "test \"`echo '$''{'ac_cv_prog_TSORT'+set}'`\" = set"; then
1434 echo $ac_n "(cached) $ac_c" 1>&6
1436 if test -n "$TSORT"; then
1437 ac_cv_prog_TSORT="$TSORT" # Let the user override the test.
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_prog_TSORT="tsort"
1449 test -z "$ac_cv_prog_TSORT" && ac_cv_prog_TSORT="no"
1452 TSORT="$ac_cv_prog_TSORT"
1453 if test -n "$TSORT"; then
1454 echo "$ac_t""$TSORT" 1>&6
1456 echo "$ac_t""no" 1>&6
1459 if test x$ac_cv_prog_LORDER != xlorder -o x$ac_cv_prog_TSORT != xtsort; then
1464 pathtmp=/usr/bin:/bin:/usr/local/bin:/usr/xpg4/bin:/usr/ucb
1465 # Extract the first word of "ls", so it can be a program name with args.
1466 set dummy ls; ac_word=$2
1467 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1468 echo "configure:1469: checking for $ac_word" >&5
1469 if eval "test \"`echo '$''{'ac_cv_path_lspath'+set}'`\" = set"; then
1470 echo $ac_n "(cached) $ac_c" 1>&6
1474 ac_cv_path_lspath="$lspath" # Let the user override the test with a path.
1477 ac_cv_path_lspath="$lspath" # Let the user override the test with a dos path.
1480 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1482 for ac_dir in $ac_dummy; do
1483 test -z "$ac_dir" && ac_dir=.
1484 if test -f $ac_dir/$ac_word; then
1485 ac_cv_path_lspath="$ac_dir/$ac_word"
1490 test -z "$ac_cv_path_lspath" && ac_cv_path_lspath="no"
1494 lspath="$ac_cv_path_lspath"
1495 if test -n "$lspath"; then
1496 echo "$ac_t""$lspath" 1>&6
1498 echo "$ac_t""no" 1>&6
1502 if test "$lspath" != "no"; then
1503 echo $ac_n "checking how to get ls to show us the group ownership of a file""... $ac_c" 1>&6
1504 echo "configure:1505: checking how to get ls to show us the group ownership of a file" >&5
1505 if eval "test \"`echo '$''{'nmh_cv_ls_grpopt'+set}'`\" = set"; then
1506 echo $ac_n "(cached) $ac_c" 1>&6
1508 if test x"`$lspath -dl / | $AWK '{print $9}'`" = x"/"; then
1509 nmh_cv_ls_grpopt="-l"
1511 nmh_cv_ls_grpopt="-lg"
1515 echo "$ac_t""$nmh_cv_ls_grpopt" 1>&6
1518 pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin
1519 # Extract the first word of "more", so it can be a program name with args.
1520 set dummy more; ac_word=$2
1521 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1522 echo "configure:1523: checking for $ac_word" >&5
1523 if eval "test \"`echo '$''{'ac_cv_path_morepath'+set}'`\" = set"; then
1524 echo $ac_n "(cached) $ac_c" 1>&6
1528 ac_cv_path_morepath="$morepath" # Let the user override the test with a path.
1531 ac_cv_path_morepath="$morepath" # Let the user override the test with a dos path.
1534 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1536 for ac_dir in $ac_dummy; do
1537 test -z "$ac_dir" && ac_dir=.
1538 if test -f $ac_dir/$ac_word; then
1539 ac_cv_path_morepath="$ac_dir/$ac_word"
1544 test -z "$ac_cv_path_morepath" && ac_cv_path_morepath="no"
1548 morepath="$ac_cv_path_morepath"
1549 if test -n "$morepath"; then
1550 echo "$ac_t""$morepath" 1>&6
1552 echo "$ac_t""no" 1>&6
1556 if test -z "$pagerpath"; then
1557 pagerpath="$morepath"
1560 pathtmp=/usr/lib:/usr/sbin:/usr/etc:/usr/ucblib:/usr/bin:/bin
1561 # Extract the first word of "sendmail", so it can be a program name with args.
1562 set dummy sendmail; ac_word=$2
1563 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1564 echo "configure:1565: checking for $ac_word" >&5
1565 if eval "test \"`echo '$''{'ac_cv_path_sendmailpath'+set}'`\" = set"; then
1566 echo $ac_n "(cached) $ac_c" 1>&6
1568 case "$sendmailpath" in
1570 ac_cv_path_sendmailpath="$sendmailpath" # Let the user override the test with a path.
1573 ac_cv_path_sendmailpath="$sendmailpath" # Let the user override the test with a dos path.
1576 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1578 for ac_dir in $ac_dummy; do
1579 test -z "$ac_dir" && ac_dir=.
1580 if test -f $ac_dir/$ac_word; then
1581 ac_cv_path_sendmailpath="$ac_dir/$ac_word"
1586 test -z "$ac_cv_path_sendmailpath" && ac_cv_path_sendmailpath="no"
1590 sendmailpath="$ac_cv_path_sendmailpath"
1591 if test -n "$sendmailpath"; then
1592 echo "$ac_t""$sendmailpath" 1>&6
1594 echo "$ac_t""no" 1>&6
1598 pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin
1599 # Extract the first word of "vi", so it can be a program name with args.
1600 set dummy vi; ac_word=$2
1601 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1602 echo "configure:1603: checking for $ac_word" >&5
1603 if eval "test \"`echo '$''{'ac_cv_path_vipath'+set}'`\" = set"; then
1604 echo $ac_n "(cached) $ac_c" 1>&6
1608 ac_cv_path_vipath="$vipath" # Let the user override the test with a path.
1611 ac_cv_path_vipath="$vipath" # Let the user override the test with a dos path.
1614 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1616 for ac_dir in $ac_dummy; do
1617 test -z "$ac_dir" && ac_dir=.
1618 if test -f $ac_dir/$ac_word; then
1619 ac_cv_path_vipath="$ac_dir/$ac_word"
1624 test -z "$ac_cv_path_vipath" && ac_cv_path_vipath="no"
1628 vipath="$ac_cv_path_vipath"
1629 if test -n "$vipath"; then
1630 echo "$ac_t""$vipath" 1>&6
1632 echo "$ac_t""no" 1>&6
1636 if test -z "$editorpath"; then
1637 editorpath="$vipath"
1640 echo $ac_n "checking for broken vi""... $ac_c" 1>&6
1641 echo "configure:1642: checking for broken vi" >&5
1642 if eval "test \"`echo '$''{'nmh_cv_attvibug'+set}'`\" = set"; then
1643 echo $ac_n "(cached) $ac_c" 1>&6
1645 if echo 'r /nonexist-file
1646 q' | ex > /dev/null 2>&1
1654 echo "$ac_t""$nmh_cv_attvibug" 1>&6
1656 if test "$nmh_cv_attvibug" = yes; then
1657 cat >> confdefs.h <<\EOF
1663 echo $ac_n "checking where mail spool is located""... $ac_c" 1>&6
1664 echo "configure:1665: checking where mail spool is located" >&5
1665 if eval "test \"`echo '$''{'nmh_cv_mailspool'+set}'`\" = set"; then
1666 echo $ac_n "(cached) $ac_c" 1>&6
1668 for mailspool in /var/mail /var/spool/mail /usr/spool/mail /dev/null; do
1669 test -d $mailspool && break
1671 nmh_cv_mailspool=$mailspool
1675 echo "$ac_t""$nmh_cv_mailspool" 1>&6
1676 mailspool=$nmh_cv_mailspool
1678 if test "$lspath" != "no" -a "$cutpath" != "no"; then
1679 echo $ac_n "checking whether the mail spool is world-writable""... $ac_c" 1>&6
1680 echo "configure:1681: checking whether the mail spool is world-writable" >&5
1681 if eval "test \"`echo '$''{'nmh_cv_mailspool_world_writable'+set}'`\" = set"; then
1682 echo $ac_n "(cached) $ac_c" 1>&6
1684 if test "`$lspath -dlL $mailspool | $cutpath -c9`" = "-"; then
1685 nmh_cv_mailspool_world_writable=no
1687 nmh_cv_mailspool_world_writable=yes
1691 echo "$ac_t""$nmh_cv_mailspool_world_writable" 1>&6
1694 if test x"$nmh_cv_mailspool_world_writable" = x"no"; then
1695 cat >> confdefs.h <<\EOF
1701 echo $ac_n "checking what group owns the mail spool""... $ac_c" 1>&6
1702 echo "configure:1703: checking what group owns the mail spool" >&5
1703 if eval "test \"`echo '$''{'nmh_cv_ls_mail_grp'+set}'`\" = set"; then
1704 echo $ac_n "(cached) $ac_c" 1>&6
1706 nmh_cv_ls_mail_grp=`$lspath -dL $nmh_cv_ls_grpopt $mailspool|$AWK '{print $4}'`
1710 echo "$ac_t""$nmh_cv_ls_mail_grp" 1>&6
1711 MAIL_SPOOL_GRP=$nmh_cv_ls_mail_grp
1714 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1716 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1717 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1718 echo "configure:1719: checking for $ac_hdr that defines DIR" >&5
1719 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1720 echo $ac_n "(cached) $ac_c" 1>&6
1722 cat > conftest.$ac_ext <<EOF
1723 #line 1724 "configure"
1724 #include "confdefs.h"
1725 #include <sys/types.h>
1731 if { (eval echo configure:1732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1733 eval "ac_cv_header_dirent_$ac_safe=yes"
1735 echo "configure: failed program was:" >&5
1736 cat conftest.$ac_ext >&5
1738 eval "ac_cv_header_dirent_$ac_safe=no"
1742 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1743 echo "$ac_t""yes" 1>&6
1744 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1745 cat >> confdefs.h <<EOF
1746 #define $ac_tr_hdr 1
1748 ac_header_dirent=$ac_hdr; break
1750 echo "$ac_t""no" 1>&6
1753 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1754 if test $ac_header_dirent = dirent.h; then
1755 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1756 echo "configure:1757: checking for opendir in -ldir" >&5
1757 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1758 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1759 echo $ac_n "(cached) $ac_c" 1>&6
1761 ac_save_LIBS="$LIBS"
1763 cat > conftest.$ac_ext <<EOF
1764 #line 1765 "configure"
1765 #include "confdefs.h"
1766 /* Override any gcc2 internal prototype to avoid an error. */
1767 /* We use char because int might match the return type of a gcc2
1768 builtin and then its argument prototype would still apply. */
1775 if { (eval echo configure:1776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1777 eval "ac_cv_lib_$ac_lib_var=yes"
1779 echo "configure: failed program was:" >&5
1780 cat conftest.$ac_ext >&5
1782 eval "ac_cv_lib_$ac_lib_var=no"
1785 LIBS="$ac_save_LIBS"
1788 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1789 echo "$ac_t""yes" 1>&6
1792 echo "$ac_t""no" 1>&6
1796 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1797 echo "configure:1798: checking for opendir in -lx" >&5
1798 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1799 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1800 echo $ac_n "(cached) $ac_c" 1>&6
1802 ac_save_LIBS="$LIBS"
1804 cat > conftest.$ac_ext <<EOF
1805 #line 1806 "configure"
1806 #include "confdefs.h"
1807 /* Override any gcc2 internal prototype to avoid an error. */
1808 /* We use char because int might match the return type of a gcc2
1809 builtin and then its argument prototype would still apply. */
1816 if { (eval echo configure:1817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1818 eval "ac_cv_lib_$ac_lib_var=yes"
1820 echo "configure: failed program was:" >&5
1821 cat conftest.$ac_ext >&5
1823 eval "ac_cv_lib_$ac_lib_var=no"
1826 LIBS="$ac_save_LIBS"
1829 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1830 echo "$ac_t""yes" 1>&6
1833 echo "$ac_t""no" 1>&6
1838 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1839 echo "configure:1840: checking how to run the C preprocessor" >&5
1840 # On Suns, sometimes $CPP names a directory.
1841 if test -n "$CPP" && test -d "$CPP"; then
1844 if test -z "$CPP"; then
1845 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1846 echo $ac_n "(cached) $ac_c" 1>&6
1848 # This must be in double quotes, not single quotes, because CPP may get
1849 # substituted into the Makefile and "${CC-cc}" will confuse make.
1851 # On the NeXT, cc -E runs the code through the compiler's parser,
1852 # not just through cpp.
1853 cat > conftest.$ac_ext <<EOF
1854 #line 1855 "configure"
1855 #include "confdefs.h"
1859 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1860 { (eval echo configure:1861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1861 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1862 if test -z "$ac_err"; then
1866 echo "configure: failed program was:" >&5
1867 cat conftest.$ac_ext >&5
1869 CPP="${CC-cc} -E -traditional-cpp"
1870 cat > conftest.$ac_ext <<EOF
1871 #line 1872 "configure"
1872 #include "confdefs.h"
1876 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1877 { (eval echo configure:1878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1878 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1879 if test -z "$ac_err"; then
1883 echo "configure: failed program was:" >&5
1884 cat conftest.$ac_ext >&5
1886 CPP="${CC-cc} -nologo -E"
1887 cat > conftest.$ac_ext <<EOF
1888 #line 1889 "configure"
1889 #include "confdefs.h"
1893 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1894 { (eval echo configure:1895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1895 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1896 if test -z "$ac_err"; then
1900 echo "configure: failed program was:" >&5
1901 cat conftest.$ac_ext >&5
1910 ac_cv_prog_CPP="$CPP"
1912 CPP="$ac_cv_prog_CPP"
1914 ac_cv_prog_CPP="$CPP"
1916 echo "$ac_t""$CPP" 1>&6
1918 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1919 echo "configure:1920: checking for ANSI C header files" >&5
1920 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1921 echo $ac_n "(cached) $ac_c" 1>&6
1923 cat > conftest.$ac_ext <<EOF
1924 #line 1925 "configure"
1925 #include "confdefs.h"
1931 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1932 { (eval echo configure:1933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1933 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1934 if test -z "$ac_err"; then
1936 ac_cv_header_stdc=yes
1939 echo "configure: failed program was:" >&5
1940 cat conftest.$ac_ext >&5
1942 ac_cv_header_stdc=no
1946 if test $ac_cv_header_stdc = yes; then
1947 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1948 cat > conftest.$ac_ext <<EOF
1949 #line 1950 "configure"
1950 #include "confdefs.h"
1953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1954 egrep "memchr" >/dev/null 2>&1; then
1958 ac_cv_header_stdc=no
1964 if test $ac_cv_header_stdc = yes; then
1965 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1966 cat > conftest.$ac_ext <<EOF
1967 #line 1968 "configure"
1968 #include "confdefs.h"
1971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1972 egrep "free" >/dev/null 2>&1; then
1976 ac_cv_header_stdc=no
1982 if test $ac_cv_header_stdc = yes; then
1983 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1984 if test "$cross_compiling" = yes; then
1987 cat > conftest.$ac_ext <<EOF
1988 #line 1989 "configure"
1989 #include "confdefs.h"
1991 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1992 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1993 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1994 int main () { int i; for (i = 0; i < 256; i++)
1995 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1999 if { (eval echo configure:2000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2003 echo "configure: failed program was:" >&5
2004 cat conftest.$ac_ext >&5
2006 ac_cv_header_stdc=no
2014 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2015 if test $ac_cv_header_stdc = yes; then
2016 cat >> confdefs.h <<\EOF
2017 #define STDC_HEADERS 1
2022 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2023 echo "configure:2024: checking whether time.h and sys/time.h may both be included" >&5
2024 if eval "test \"`echo '$''{'ac_cv_header_time'+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/time.h>
2037 if { (eval echo configure:2038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2039 ac_cv_header_time=yes
2041 echo "configure: failed program was:" >&5
2042 cat conftest.$ac_ext >&5
2044 ac_cv_header_time=no
2049 echo "$ac_t""$ac_cv_header_time" 1>&6
2050 if test $ac_cv_header_time = yes; then
2051 cat >> confdefs.h <<\EOF
2052 #define TIME_WITH_SYS_TIME 1
2057 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2058 echo "configure:2059: checking for sys/wait.h that is POSIX.1 compatible" >&5
2059 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2060 echo $ac_n "(cached) $ac_c" 1>&6
2062 cat > conftest.$ac_ext <<EOF
2063 #line 2064 "configure"
2064 #include "confdefs.h"
2065 #include <sys/types.h>
2066 #include <sys/wait.h>
2068 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2071 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2076 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2079 if { (eval echo configure:2080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2081 ac_cv_header_sys_wait_h=yes
2083 echo "configure: failed program was:" >&5
2084 cat conftest.$ac_ext >&5
2086 ac_cv_header_sys_wait_h=no
2091 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2092 if test $ac_cv_header_sys_wait_h = yes; then
2093 cat >> confdefs.h <<\EOF
2094 #define HAVE_SYS_WAIT_H 1
2099 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
2100 echo "configure:2101: checking whether stat file-mode macros are broken" >&5
2101 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
2102 echo $ac_n "(cached) $ac_c" 1>&6
2104 cat > conftest.$ac_ext <<EOF
2105 #line 2106 "configure"
2106 #include "confdefs.h"
2107 #include <sys/types.h>
2108 #include <sys/stat.h>
2110 #if defined(S_ISBLK) && defined(S_IFDIR)
2111 # if S_ISBLK (S_IFDIR)
2116 #if defined(S_ISBLK) && defined(S_IFCHR)
2117 # if S_ISBLK (S_IFCHR)
2122 #if defined(S_ISLNK) && defined(S_IFREG)
2123 # if S_ISLNK (S_IFREG)
2128 #if defined(S_ISSOCK) && defined(S_IFREG)
2129 # if S_ISSOCK (S_IFREG)
2135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2136 egrep "You lose" >/dev/null 2>&1; then
2138 ac_cv_header_stat_broken=yes
2141 ac_cv_header_stat_broken=no
2147 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
2148 if test $ac_cv_header_stat_broken = yes; then
2149 cat >> confdefs.h <<\EOF
2150 #define STAT_MACROS_BROKEN 1
2155 for ac_hdr in string.h memory.h stdlib.h unistd.h errno.h fcntl.h \
2156 limits.h crypt.h termcap.h termio.h termios.h locale.h \
2157 netdb.h sys/param.h sys/time.h sys/utsname.h arpa/inet.h \
2160 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2161 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2162 echo "configure:2163: checking for $ac_hdr" >&5
2163 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2164 echo $ac_n "(cached) $ac_c" 1>&6
2166 cat > conftest.$ac_ext <<EOF
2167 #line 2168 "configure"
2168 #include "confdefs.h"
2171 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2172 { (eval echo configure:2173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2173 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2174 if test -z "$ac_err"; then
2176 eval "ac_cv_header_$ac_safe=yes"
2179 echo "configure: failed program was:" >&5
2180 cat conftest.$ac_ext >&5
2182 eval "ac_cv_header_$ac_safe=no"
2186 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2187 echo "$ac_t""yes" 1>&6
2188 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2189 cat >> confdefs.h <<EOF
2190 #define $ac_tr_hdr 1
2194 echo "$ac_t""no" 1>&6
2200 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
2201 echo "configure:2202: checking POSIX termios" >&5
2202 if eval "test \"`echo '$''{'nmh_cv_sys_posix_termios'+set}'`\" = set"; then
2203 echo $ac_n "(cached) $ac_c" 1>&6
2205 cat > conftest.$ac_ext <<EOF
2206 #line 2207 "configure"
2207 #include "confdefs.h"
2208 #include <sys/types.h>
2210 #include <termios.h>
2212 /* SunOS 4.0.3 has termios.h but not the library calls. */
2216 if { (eval echo configure:2217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2218 nmh_cv_sys_posix_termios=yes
2220 echo "configure: failed program was:" >&5
2221 cat conftest.$ac_ext >&5
2223 nmh_cv_sys_posix_termios=no
2228 echo "$ac_t""$nmh_cv_sys_posix_termios" 1>&6
2230 if test $nmh_cv_sys_posix_termios = yes; then
2231 echo $ac_n "checking TIOCGWINSZ in termios.h""... $ac_c" 1>&6
2232 echo "configure:2233: checking TIOCGWINSZ in termios.h" >&5
2233 if eval "test \"`echo '$''{'nmh_cv_header_termios_h_tiocgwinsz'+set}'`\" = set"; then
2234 echo $ac_n "(cached) $ac_c" 1>&6
2236 cat > conftest.$ac_ext <<EOF
2237 #line 2238 "configure"
2238 #include "confdefs.h"
2239 #include <sys/types.h>
2240 #include <termios.h>
2245 if { (eval echo configure:2246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2247 nmh_cv_header_termios_h_tiocgwinsz=yes
2249 echo "configure: failed program was:" >&5
2250 cat conftest.$ac_ext >&5
2252 nmh_cv_header_termios_h_tiocgwinsz=no
2257 echo "$ac_t""$nmh_cv_header_termios_h_tiocgwinsz" 1>&6
2259 nmh_cv_header_termios_h_tiocgwinsz=no
2262 if test $nmh_cv_header_termios_h_tiocgwinsz = no; then
2263 echo $ac_n "checking TIOCGWINSZ in sys/ioctl.h""... $ac_c" 1>&6
2264 echo "configure:2265: checking TIOCGWINSZ in sys/ioctl.h" >&5
2265 if eval "test \"`echo '$''{'nmh_cv_header_sys_ioctl_h_tiocgwinsz'+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/types.h>
2272 #include <sys/ioctl.h>
2277 if { (eval echo configure:2278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2279 nmh_cv_header_sys_ioctl_h_tiocgwinsz=yes
2281 echo "configure: failed program was:" >&5
2282 cat conftest.$ac_ext >&5
2284 nmh_cv_header_sys_ioctl_h_tiocgwinsz=no
2289 echo "$ac_t""$nmh_cv_header_sys_ioctl_h_tiocgwinsz" 1>&6
2290 if test $nmh_cv_header_sys_ioctl_h_tiocgwinsz = yes; then
2291 cat >> confdefs.h <<\EOF
2292 #define GWINSZ_IN_SYS_IOCTL 1
2298 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2299 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2300 echo "configure:2301: checking for libio.h" >&5
2301 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+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"
2309 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2310 { (eval echo configure:2311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2311 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2312 if test -z "$ac_err"; then
2314 eval "ac_cv_header_$ac_safe=yes"
2317 echo "configure: failed program was:" >&5
2318 cat conftest.$ac_ext >&5
2320 eval "ac_cv_header_$ac_safe=no"
2324 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2325 echo "$ac_t""yes" 1>&6
2327 cat > conftest.$ac_ext <<EOF
2328 #line 2329 "configure"
2329 #include "confdefs.h"
2332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2333 egrep "_IO_write_ptr" >/dev/null 2>&1; then
2336 cat >> confdefs.h <<\EOF
2337 #define LINUX_STDIO 1
2344 echo "$ac_t""no" 1>&6
2348 ac_safe=`echo "sys/ptem.h" | sed 'y%./+-%__p_%'`
2349 echo $ac_n "checking for sys/ptem.h""... $ac_c" 1>&6
2350 echo "configure:2351: checking for sys/ptem.h" >&5
2351 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2352 echo $ac_n "(cached) $ac_c" 1>&6
2354 cat > conftest.$ac_ext <<EOF
2355 #line 2356 "configure"
2356 #include "confdefs.h"
2357 #include <sys/ptem.h>
2359 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2360 { (eval echo configure:2361: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2361 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2362 if test -z "$ac_err"; then
2364 eval "ac_cv_header_$ac_safe=yes"
2367 echo "configure: failed program was:" >&5
2368 cat conftest.$ac_ext >&5
2370 eval "ac_cv_header_$ac_safe=no"
2374 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2375 echo "$ac_t""yes" 1>&6
2376 cat >> confdefs.h <<\EOF
2377 #define WINSIZE_IN_PTEM 1
2381 echo "$ac_t""no" 1>&6
2385 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2386 echo "configure:2387: checking for pid_t" >&5
2387 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2388 echo $ac_n "(cached) $ac_c" 1>&6
2390 cat > conftest.$ac_ext <<EOF
2391 #line 2392 "configure"
2392 #include "confdefs.h"
2393 #include <sys/types.h>
2399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2400 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2402 ac_cv_type_pid_t=yes
2410 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2411 if test $ac_cv_type_pid_t = no; then
2412 cat >> confdefs.h <<\EOF
2418 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2419 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2420 echo "configure:2421: checking for vfork.h" >&5
2421 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2422 echo $ac_n "(cached) $ac_c" 1>&6
2424 cat > conftest.$ac_ext <<EOF
2425 #line 2426 "configure"
2426 #include "confdefs.h"
2429 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2430 { (eval echo configure:2431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2431 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2432 if test -z "$ac_err"; then
2434 eval "ac_cv_header_$ac_safe=yes"
2437 echo "configure: failed program was:" >&5
2438 cat conftest.$ac_ext >&5
2440 eval "ac_cv_header_$ac_safe=no"
2444 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2445 echo "$ac_t""yes" 1>&6
2446 cat >> confdefs.h <<\EOF
2447 #define HAVE_VFORK_H 1
2451 echo "$ac_t""no" 1>&6
2454 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2455 echo "configure:2456: checking for working vfork" >&5
2456 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2457 echo $ac_n "(cached) $ac_c" 1>&6
2459 if test "$cross_compiling" = yes; then
2460 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2461 echo "configure:2462: checking for vfork" >&5
2462 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2463 echo $ac_n "(cached) $ac_c" 1>&6
2465 cat > conftest.$ac_ext <<EOF
2466 #line 2467 "configure"
2467 #include "confdefs.h"
2468 /* System header to define __stub macros and hopefully few prototypes,
2469 which can conflict with char vfork(); below. */
2471 /* Override any gcc2 internal prototype to avoid an error. */
2472 /* We use char because int might match the return type of a gcc2
2473 builtin and then its argument prototype would still apply. */
2478 /* The GNU C library defines this for functions which it implements
2479 to always fail with ENOSYS. Some functions are actually named
2480 something starting with __ and the normal name is an alias. */
2481 #if defined (__stub_vfork) || defined (__stub___vfork)
2489 if { (eval echo configure:2490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2491 eval "ac_cv_func_vfork=yes"
2493 echo "configure: failed program was:" >&5
2494 cat conftest.$ac_ext >&5
2496 eval "ac_cv_func_vfork=no"
2501 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2502 echo "$ac_t""yes" 1>&6
2505 echo "$ac_t""no" 1>&6
2508 ac_cv_func_vfork_works=$ac_cv_func_vfork
2510 cat > conftest.$ac_ext <<EOF
2511 #line 2512 "configure"
2512 #include "confdefs.h"
2513 /* Thanks to Paul Eggert for this test. */
2515 #include <sys/types.h>
2516 #include <sys/stat.h>
2517 #ifdef HAVE_UNISTD_H
2523 /* On some sparc systems, changes by the child to local and incoming
2524 argument registers are propagated back to the parent.
2525 The compiler is told about this with #include <vfork.h>,
2526 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2527 Test for this by using a static variable whose address
2528 is put into a register that is clobbered by the vfork. */
2531 sparc_address_test (int arg)
2533 sparc_address_test (arg) int arg;
2551 pid_t parent = getpid ();
2554 sparc_address_test ();
2559 /* Here is another test for sparc vfork register problems.
2560 This test uses lots of local variables, at least
2561 as many local variables as main has allocated so far
2562 including compiler temporaries. 4 locals are enough for
2563 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2564 A buggy compiler should reuse the register of parent
2565 for one of the local variables, since it will think that
2566 parent can't possibly be used any more in this routine.
2567 Assigning to the local variable will thus munge parent
2568 in the parent process. */
2570 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2571 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2572 /* Convince the compiler that p..p7 are live; otherwise, it might
2573 use the same hardware register for all 8 local variables. */
2574 if (p != p1 || p != p2 || p != p3 || p != p4
2575 || p != p5 || p != p6 || p != p7)
2578 /* On some systems (e.g. IRIX 3.3),
2579 vfork doesn't separate parent from child file descriptors.
2580 If the child closes a descriptor before it execs or exits,
2581 this munges the parent's descriptor as well.
2582 Test for this by closing stdout in the child. */
2583 _exit(close(fileno(stdout)) != 0);
2588 while (wait(&status) != child)
2591 /* Was there some problem with vforking? */
2594 /* Did the child fail? (This shouldn't happen.) */
2597 /* Did the vfork/compiler bug occur? */
2598 || parent != getpid()
2600 /* Did the file descriptor bug occur? */
2601 || fstat(fileno(stdout), &st) != 0
2606 if { (eval echo configure:2607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2608 ac_cv_func_vfork_works=yes
2610 echo "configure: failed program was:" >&5
2611 cat conftest.$ac_ext >&5
2613 ac_cv_func_vfork_works=no
2620 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2621 if test $ac_cv_func_vfork_works = no; then
2622 cat >> confdefs.h <<\EOF
2628 echo $ac_n "checking for mkstemp in -lmkstemp""... $ac_c" 1>&6
2629 echo "configure:2630: checking for mkstemp in -lmkstemp" >&5
2630 ac_lib_var=`echo mkstemp'_'mkstemp | sed 'y%./+-%__p_%'`
2631 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2632 echo $ac_n "(cached) $ac_c" 1>&6
2634 ac_save_LIBS="$LIBS"
2635 LIBS="-lmkstemp $LIBS"
2636 cat > conftest.$ac_ext <<EOF
2637 #line 2638 "configure"
2638 #include "confdefs.h"
2639 /* Override any gcc2 internal prototype to avoid an error. */
2640 /* We use char because int might match the return type of a gcc2
2641 builtin and then its argument prototype would still apply. */
2648 if { (eval echo configure:2649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2650 eval "ac_cv_lib_$ac_lib_var=yes"
2652 echo "configure: failed program was:" >&5
2653 cat conftest.$ac_ext >&5
2655 eval "ac_cv_lib_$ac_lib_var=no"
2658 LIBS="$ac_save_LIBS"
2661 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2662 echo "$ac_t""yes" 1>&6
2663 ac_tr_lib=HAVE_LIB`echo mkstemp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2664 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2665 cat >> confdefs.h <<EOF
2666 #define $ac_tr_lib 1
2669 LIBS="-lmkstemp $LIBS"
2672 echo "$ac_t""no" 1>&6
2675 for ac_func in waitpid wait3 sigaction sigprocmask sigblock sigsetmask \
2676 sighold sigrelse writev lstat uname tzset killpg mkstemp \
2679 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2680 echo "configure:2681: checking for $ac_func" >&5
2681 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2682 echo $ac_n "(cached) $ac_c" 1>&6
2684 cat > conftest.$ac_ext <<EOF
2685 #line 2686 "configure"
2686 #include "confdefs.h"
2687 /* System header to define __stub macros and hopefully few prototypes,
2688 which can conflict with char $ac_func(); below. */
2690 /* Override any gcc2 internal prototype to avoid an error. */
2691 /* We use char because int might match the return type of a gcc2
2692 builtin and then its argument prototype would still apply. */
2697 /* The GNU C library defines this for functions which it implements
2698 to always fail with ENOSYS. Some functions are actually named
2699 something starting with __ and the normal name is an alias. */
2700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2708 if { (eval echo configure:2709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2710 eval "ac_cv_func_$ac_func=yes"
2712 echo "configure: failed program was:" >&5
2713 cat conftest.$ac_ext >&5
2715 eval "ac_cv_func_$ac_func=no"
2720 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2721 echo "$ac_t""yes" 1>&6
2722 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2723 cat >> confdefs.h <<EOF
2724 #define $ac_tr_func 1
2728 echo "$ac_t""no" 1>&6
2733 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2734 echo "configure:2735: checking for gethostbyname" >&5
2735 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2736 echo $ac_n "(cached) $ac_c" 1>&6
2738 cat > conftest.$ac_ext <<EOF
2739 #line 2740 "configure"
2740 #include "confdefs.h"
2741 /* System header to define __stub macros and hopefully few prototypes,
2742 which can conflict with char gethostbyname(); below. */
2744 /* Override any gcc2 internal prototype to avoid an error. */
2745 /* We use char because int might match the return type of a gcc2
2746 builtin and then its argument prototype would still apply. */
2747 char gethostbyname();
2751 /* The GNU C library defines this for functions which it implements
2752 to always fail with ENOSYS. Some functions are actually named
2753 something starting with __ and the normal name is an alias. */
2754 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2762 if { (eval echo configure:2763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2764 eval "ac_cv_func_gethostbyname=yes"
2766 echo "configure: failed program was:" >&5
2767 cat conftest.$ac_ext >&5
2769 eval "ac_cv_func_gethostbyname=no"
2774 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2775 echo "$ac_t""yes" 1>&6
2776 cat >> confdefs.h <<\EOF
2777 #define HAVE_GETHOSTBYNAME 1
2781 echo "$ac_t""no" 1>&6
2782 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2783 echo "configure:2784: checking for gethostbyname in -lnsl" >&5
2784 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2785 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2786 echo $ac_n "(cached) $ac_c" 1>&6
2788 ac_save_LIBS="$LIBS"
2790 cat > conftest.$ac_ext <<EOF
2791 #line 2792 "configure"
2792 #include "confdefs.h"
2793 /* Override any gcc2 internal prototype to avoid an error. */
2794 /* We use char because int might match the return type of a gcc2
2795 builtin and then its argument prototype would still apply. */
2796 char gethostbyname();
2802 if { (eval echo configure:2803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2804 eval "ac_cv_lib_$ac_lib_var=yes"
2806 echo "configure: failed program was:" >&5
2807 cat conftest.$ac_ext >&5
2809 eval "ac_cv_lib_$ac_lib_var=no"
2812 LIBS="$ac_save_LIBS"
2815 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2816 echo "$ac_t""yes" 1>&6
2817 cat >> confdefs.h <<\EOF
2818 #define HAVE_GETHOSTBYNAME 1
2822 echo "$ac_t""no" 1>&6
2828 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
2829 echo "configure:2830: checking for sigsetjmp" >&5
2830 cat > conftest.$ac_ext <<EOF
2831 #line 2832 "configure"
2832 #include "confdefs.h"
2835 sigsetjmp((void *)0, 0);
2838 if { (eval echo configure:2839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2840 cat >> confdefs.h <<\EOF
2841 #define HAVE_SIGSETJMP 1
2843 echo "$ac_t""yes" 1>&6
2845 echo "configure: failed program was:" >&5
2846 cat conftest.$ac_ext >&5
2848 echo "$ac_t""no" 1>&6
2852 for ac_func in snprintf strerror strdup
2854 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2855 echo "configure:2856: checking for $ac_func" >&5
2856 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2857 echo $ac_n "(cached) $ac_c" 1>&6
2859 cat > conftest.$ac_ext <<EOF
2860 #line 2861 "configure"
2861 #include "confdefs.h"
2862 /* System header to define __stub macros and hopefully few prototypes,
2863 which can conflict with char $ac_func(); below. */
2865 /* Override any gcc2 internal prototype to avoid an error. */
2866 /* We use char because int might match the return type of a gcc2
2867 builtin and then its argument prototype would still apply. */
2872 /* The GNU C library defines this for functions which it implements
2873 to always fail with ENOSYS. Some functions are actually named
2874 something starting with __ and the normal name is an alias. */
2875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2883 if { (eval echo configure:2884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2885 eval "ac_cv_func_$ac_func=yes"
2887 echo "configure: failed program was:" >&5
2888 cat conftest.$ac_ext >&5
2890 eval "ac_cv_func_$ac_func=no"
2895 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2896 echo "$ac_t""yes" 1>&6
2897 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2898 cat >> confdefs.h <<EOF
2899 #define $ac_tr_func 1
2903 echo "$ac_t""no" 1>&6
2904 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
2910 cat > conftest.$ac_ext <<EOF
2911 #line 2912 "configure"
2912 #include "confdefs.h"
2915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2916 egrep "snprintf" >/dev/null 2>&1; then
2918 cat >> confdefs.h <<\EOF
2919 #define HAVE_SNPRINTF_PROTOTYPE 1
2926 echo $ac_n "checking for modf""... $ac_c" 1>&6
2927 echo "configure:2928: checking for modf" >&5
2928 if eval "test \"`echo '$''{'ac_cv_func_modf'+set}'`\" = set"; then
2929 echo $ac_n "(cached) $ac_c" 1>&6
2931 cat > conftest.$ac_ext <<EOF
2932 #line 2933 "configure"
2933 #include "confdefs.h"
2934 /* System header to define __stub macros and hopefully few prototypes,
2935 which can conflict with char modf(); below. */
2937 /* Override any gcc2 internal prototype to avoid an error. */
2938 /* We use char because int might match the return type of a gcc2
2939 builtin and then its argument prototype would still apply. */
2944 /* The GNU C library defines this for functions which it implements
2945 to always fail with ENOSYS. Some functions are actually named
2946 something starting with __ and the normal name is an alias. */
2947 #if defined (__stub_modf) || defined (__stub___modf)
2955 if { (eval echo configure:2956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2957 eval "ac_cv_func_modf=yes"
2959 echo "configure: failed program was:" >&5
2960 cat conftest.$ac_ext >&5
2962 eval "ac_cv_func_modf=no"
2967 if eval "test \"`echo '$ac_cv_func_'modf`\" = yes"; then
2968 echo "$ac_t""yes" 1>&6
2971 echo "$ac_t""no" 1>&6
2972 echo $ac_n "checking for modf in -lm""... $ac_c" 1>&6
2973 echo "configure:2974: checking for modf in -lm" >&5
2974 ac_lib_var=`echo m'_'modf | sed 'y%./+-%__p_%'`
2975 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2976 echo $ac_n "(cached) $ac_c" 1>&6
2978 ac_save_LIBS="$LIBS"
2980 cat > conftest.$ac_ext <<EOF
2981 #line 2982 "configure"
2982 #include "confdefs.h"
2983 /* Override any gcc2 internal prototype to avoid an error. */
2984 /* We use char because int might match the return type of a gcc2
2985 builtin and then its argument prototype would still apply. */
2992 if { (eval echo configure:2993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2994 eval "ac_cv_lib_$ac_lib_var=yes"
2996 echo "configure: failed program was:" >&5
2997 cat conftest.$ac_ext >&5
2999 eval "ac_cv_lib_$ac_lib_var=no"
3002 LIBS="$ac_save_LIBS"
3005 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3006 echo "$ac_t""yes" 1>&6
3007 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
3008 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3009 cat >> confdefs.h <<EOF
3010 #define $ac_tr_lib 1
3016 echo "$ac_t""no" 1>&6
3022 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3023 echo "configure:3024: checking for gethostbyname" >&5
3024 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3025 echo $ac_n "(cached) $ac_c" 1>&6
3027 cat > conftest.$ac_ext <<EOF
3028 #line 3029 "configure"
3029 #include "confdefs.h"
3030 /* System header to define __stub macros and hopefully few prototypes,
3031 which can conflict with char gethostbyname(); below. */
3033 /* Override any gcc2 internal prototype to avoid an error. */
3034 /* We use char because int might match the return type of a gcc2
3035 builtin and then its argument prototype would still apply. */
3036 char gethostbyname();
3040 /* The GNU C library defines this for functions which it implements
3041 to always fail with ENOSYS. Some functions are actually named
3042 something starting with __ and the normal name is an alias. */
3043 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3051 if { (eval echo configure:3052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3053 eval "ac_cv_func_gethostbyname=yes"
3055 echo "configure: failed program was:" >&5
3056 cat conftest.$ac_ext >&5
3058 eval "ac_cv_func_gethostbyname=no"
3063 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3064 echo "$ac_t""yes" 1>&6
3067 echo "$ac_t""no" 1>&6
3068 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3069 echo "configure:3070: checking for gethostbyname in -lnsl" >&5
3070 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3071 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3072 echo $ac_n "(cached) $ac_c" 1>&6
3074 ac_save_LIBS="$LIBS"
3076 cat > conftest.$ac_ext <<EOF
3077 #line 3078 "configure"
3078 #include "confdefs.h"
3079 /* Override any gcc2 internal prototype to avoid an error. */
3080 /* We use char because int might match the return type of a gcc2
3081 builtin and then its argument prototype would still apply. */
3082 char gethostbyname();
3088 if { (eval echo configure:3089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3090 eval "ac_cv_lib_$ac_lib_var=yes"
3092 echo "configure: failed program was:" >&5
3093 cat conftest.$ac_ext >&5
3095 eval "ac_cv_lib_$ac_lib_var=no"
3098 LIBS="$ac_save_LIBS"
3101 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3102 echo "$ac_t""yes" 1>&6
3103 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
3104 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3105 cat >> confdefs.h <<EOF
3106 #define $ac_tr_lib 1
3112 echo "$ac_t""no" 1>&6
3113 echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6
3114 echo "configure:3115: checking for gethostbyname in -lresolv" >&5
3115 ac_lib_var=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'`
3116 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3117 echo $ac_n "(cached) $ac_c" 1>&6
3119 ac_save_LIBS="$LIBS"
3120 LIBS="-lresolv $LIBS"
3121 cat > conftest.$ac_ext <<EOF
3122 #line 3123 "configure"
3123 #include "confdefs.h"
3124 /* Override any gcc2 internal prototype to avoid an error. */
3125 /* We use char because int might match the return type of a gcc2
3126 builtin and then its argument prototype would still apply. */
3127 char gethostbyname();
3133 if { (eval echo configure:3134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3135 eval "ac_cv_lib_$ac_lib_var=yes"
3137 echo "configure: failed program was:" >&5
3138 cat conftest.$ac_ext >&5
3140 eval "ac_cv_lib_$ac_lib_var=no"
3143 LIBS="$ac_save_LIBS"
3146 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3147 echo "$ac_t""yes" 1>&6
3148 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
3149 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3150 cat >> confdefs.h <<EOF
3151 #define $ac_tr_lib 1
3154 LIBS="-lresolv $LIBS"
3157 echo "$ac_t""no" 1>&6
3164 echo $ac_n "checking for socket""... $ac_c" 1>&6
3165 echo "configure:3166: checking for socket" >&5
3166 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
3167 echo $ac_n "(cached) $ac_c" 1>&6
3169 cat > conftest.$ac_ext <<EOF
3170 #line 3171 "configure"
3171 #include "confdefs.h"
3172 /* System header to define __stub macros and hopefully few prototypes,
3173 which can conflict with char socket(); below. */
3175 /* Override any gcc2 internal prototype to avoid an error. */
3176 /* We use char because int might match the return type of a gcc2
3177 builtin and then its argument prototype would still apply. */
3182 /* The GNU C library defines this for functions which it implements
3183 to always fail with ENOSYS. Some functions are actually named
3184 something starting with __ and the normal name is an alias. */
3185 #if defined (__stub_socket) || defined (__stub___socket)
3193 if { (eval echo configure:3194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3195 eval "ac_cv_func_socket=yes"
3197 echo "configure: failed program was:" >&5
3198 cat conftest.$ac_ext >&5
3200 eval "ac_cv_func_socket=no"
3205 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
3206 echo "$ac_t""yes" 1>&6
3209 echo "$ac_t""no" 1>&6
3210 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
3211 echo "configure:3212: checking for socket in -lsocket" >&5
3212 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
3213 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3214 echo $ac_n "(cached) $ac_c" 1>&6
3216 ac_save_LIBS="$LIBS"
3217 LIBS="-lsocket $LIBS"
3218 cat > conftest.$ac_ext <<EOF
3219 #line 3220 "configure"
3220 #include "confdefs.h"
3221 /* Override any gcc2 internal prototype to avoid an error. */
3222 /* We use char because int might match the return type of a gcc2
3223 builtin and then its argument prototype would still apply. */
3230 if { (eval echo configure:3231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3232 eval "ac_cv_lib_$ac_lib_var=yes"
3234 echo "configure: failed program was:" >&5
3235 cat conftest.$ac_ext >&5
3237 eval "ac_cv_lib_$ac_lib_var=no"
3240 LIBS="$ac_save_LIBS"
3243 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3244 echo "$ac_t""yes" 1>&6
3245 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
3246 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3247 cat >> confdefs.h <<EOF
3248 #define $ac_tr_lib 1
3251 LIBS="-lsocket $LIBS"
3254 echo "$ac_t""no" 1>&6
3261 echo $ac_n "checking for ruserpass""... $ac_c" 1>&6
3262 echo "configure:3263: checking for ruserpass" >&5
3263 if eval "test \"`echo '$''{'ac_cv_func_ruserpass'+set}'`\" = set"; then
3264 echo $ac_n "(cached) $ac_c" 1>&6
3266 cat > conftest.$ac_ext <<EOF
3267 #line 3268 "configure"
3268 #include "confdefs.h"
3269 /* System header to define __stub macros and hopefully few prototypes,
3270 which can conflict with char ruserpass(); below. */
3272 /* Override any gcc2 internal prototype to avoid an error. */
3273 /* We use char because int might match the return type of a gcc2
3274 builtin and then its argument prototype would still apply. */
3279 /* The GNU C library defines this for functions which it implements
3280 to always fail with ENOSYS. Some functions are actually named
3281 something starting with __ and the normal name is an alias. */
3282 #if defined (__stub_ruserpass) || defined (__stub___ruserpass)
3290 if { (eval echo configure:3291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3292 eval "ac_cv_func_ruserpass=yes"
3294 echo "configure: failed program was:" >&5
3295 cat conftest.$ac_ext >&5
3297 eval "ac_cv_func_ruserpass=no"
3302 if eval "test \"`echo '$ac_cv_func_'ruserpass`\" = yes"; then
3303 echo "$ac_t""yes" 1>&6
3306 echo "$ac_t""no" 1>&6
3307 echo $ac_n "checking for _ruserpass""... $ac_c" 1>&6
3308 echo "configure:3309: checking for _ruserpass" >&5
3309 if eval "test \"`echo '$''{'ac_cv_func__ruserpass'+set}'`\" = set"; then
3310 echo $ac_n "(cached) $ac_c" 1>&6
3312 cat > conftest.$ac_ext <<EOF
3313 #line 3314 "configure"
3314 #include "confdefs.h"
3315 /* System header to define __stub macros and hopefully few prototypes,
3316 which can conflict with char _ruserpass(); below. */
3318 /* Override any gcc2 internal prototype to avoid an error. */
3319 /* We use char because int might match the return type of a gcc2
3320 builtin and then its argument prototype would still apply. */
3325 /* The GNU C library defines this for functions which it implements
3326 to always fail with ENOSYS. Some functions are actually named
3327 something starting with __ and the normal name is an alias. */
3328 #if defined (__stub__ruserpass) || defined (__stub____ruserpass)
3336 if { (eval echo configure:3337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3338 eval "ac_cv_func__ruserpass=yes"
3340 echo "configure: failed program was:" >&5
3341 cat conftest.$ac_ext >&5
3343 eval "ac_cv_func__ruserpass=no"
3348 if eval "test \"`echo '$ac_cv_func_'_ruserpass`\" = yes"; then
3349 echo "$ac_t""yes" 1>&6
3352 echo "$ac_t""no" 1>&6
3353 echo $ac_n "checking for _ruserpass in -lsocket""... $ac_c" 1>&6
3354 echo "configure:3355: checking for _ruserpass in -lsocket" >&5
3355 ac_lib_var=`echo socket'_'_ruserpass | sed 'y%./+-%__p_%'`
3356 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3357 echo $ac_n "(cached) $ac_c" 1>&6
3359 ac_save_LIBS="$LIBS"
3360 LIBS="-lsocket $LIBS"
3361 cat > conftest.$ac_ext <<EOF
3362 #line 3363 "configure"
3363 #include "confdefs.h"
3364 /* Override any gcc2 internal prototype to avoid an error. */
3365 /* We use char because int might match the return type of a gcc2
3366 builtin and then its argument prototype would still apply. */
3373 if { (eval echo configure:3374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3375 eval "ac_cv_lib_$ac_lib_var=yes"
3377 echo "configure: failed program was:" >&5
3378 cat conftest.$ac_ext >&5
3380 eval "ac_cv_lib_$ac_lib_var=no"
3383 LIBS="$ac_save_LIBS"
3386 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3387 echo "$ac_t""yes" 1>&6
3388 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
3389 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3390 cat >> confdefs.h <<EOF
3391 #define $ac_tr_lib 1
3394 LIBS="-lsocket $LIBS"
3397 echo "$ac_t""no" 1>&6
3404 if test x$ac_cv_func_ruserpass = xno; then
3405 if test x$ac_cv_func__ruserpass = xyes -o x$ac_cv_lib_socket__ruserpass = xyes; then
3406 cat >> confdefs.h <<\EOF
3407 #define ruserpass _ruserpass
3411 LIBOBJS="$LIBOBJS ruserpass.o"
3416 termcap_curses_order="termcap curses ncurses"
3417 for lib in $termcap_curses_order; do
3418 echo $ac_n "checking for tgetent in -l${lib}""... $ac_c" 1>&6
3419 echo "configure:3420: checking for tgetent in -l${lib}" >&5
3420 ac_lib_var=`echo ${lib}'_'tgetent | sed 'y%./+-%__p_%'`
3421 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3422 echo $ac_n "(cached) $ac_c" 1>&6
3424 ac_save_LIBS="$LIBS"
3425 LIBS="-l${lib} $LIBS"
3426 cat > conftest.$ac_ext <<EOF
3427 #line 3428 "configure"
3428 #include "confdefs.h"
3429 /* Override any gcc2 internal prototype to avoid an error. */
3430 /* We use char because int might match the return type of a gcc2
3431 builtin and then its argument prototype would still apply. */
3438 if { (eval echo configure:3439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3440 eval "ac_cv_lib_$ac_lib_var=yes"
3442 echo "configure: failed program was:" >&5
3443 cat conftest.$ac_ext >&5
3445 eval "ac_cv_lib_$ac_lib_var=no"
3448 LIBS="$ac_save_LIBS"
3451 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3452 echo "$ac_t""yes" 1>&6
3453 TERMLIB="-l$lib"; break
3455 echo "$ac_t""no" 1>&6
3461 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
3462 echo "configure:3463: checking for dbm_open" >&5
3463 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
3464 echo $ac_n "(cached) $ac_c" 1>&6
3466 cat > conftest.$ac_ext <<EOF
3467 #line 3468 "configure"
3468 #include "confdefs.h"
3469 /* System header to define __stub macros and hopefully few prototypes,
3470 which can conflict with char dbm_open(); below. */
3472 /* Override any gcc2 internal prototype to avoid an error. */
3473 /* We use char because int might match the return type of a gcc2
3474 builtin and then its argument prototype would still apply. */
3479 /* The GNU C library defines this for functions which it implements
3480 to always fail with ENOSYS. Some functions are actually named
3481 something starting with __ and the normal name is an alias. */
3482 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
3490 if { (eval echo configure:3491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3492 eval "ac_cv_func_dbm_open=yes"
3494 echo "configure: failed program was:" >&5
3495 cat conftest.$ac_ext >&5
3497 eval "ac_cv_func_dbm_open=no"
3502 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
3503 echo "$ac_t""yes" 1>&6
3506 echo "$ac_t""no" 1>&6
3507 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
3508 echo "configure:3509: checking for dbm_open in -lndbm" >&5
3509 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
3510 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3511 echo $ac_n "(cached) $ac_c" 1>&6
3513 ac_save_LIBS="$LIBS"
3515 cat > conftest.$ac_ext <<EOF
3516 #line 3517 "configure"
3517 #include "confdefs.h"
3518 /* Override any gcc2 internal prototype to avoid an error. */
3519 /* We use char because int might match the return type of a gcc2
3520 builtin and then its argument prototype would still apply. */
3527 if { (eval echo configure:3528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3529 eval "ac_cv_lib_$ac_lib_var=yes"
3531 echo "configure: failed program was:" >&5
3532 cat conftest.$ac_ext >&5
3534 eval "ac_cv_lib_$ac_lib_var=no"
3537 LIBS="$ac_save_LIBS"
3540 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3541 echo "$ac_t""yes" 1>&6
3542 ac_tr_lib=HAVE_LIB`echo ndbm | sed -e 's/^a-zA-Z0-9_/_/g' \
3543 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3544 cat >> confdefs.h <<EOF
3545 #define $ac_tr_lib 1
3551 echo "$ac_t""no" 1>&6
3552 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
3553 echo "configure:3554: checking for dbm_open in -ldbm" >&5
3554 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
3555 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3556 echo $ac_n "(cached) $ac_c" 1>&6
3558 ac_save_LIBS="$LIBS"
3560 cat > conftest.$ac_ext <<EOF
3561 #line 3562 "configure"
3562 #include "confdefs.h"
3563 /* Override any gcc2 internal prototype to avoid an error. */
3564 /* We use char because int might match the return type of a gcc2
3565 builtin and then its argument prototype would still apply. */
3572 if { (eval echo configure:3573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3574 eval "ac_cv_lib_$ac_lib_var=yes"
3576 echo "configure: failed program was:" >&5
3577 cat conftest.$ac_ext >&5
3579 eval "ac_cv_lib_$ac_lib_var=no"
3582 LIBS="$ac_save_LIBS"
3585 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3586 echo "$ac_t""yes" 1>&6
3587 ac_tr_lib=HAVE_LIB`echo dbm | sed -e 's/^a-zA-Z0-9_/_/g' \
3588 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3589 cat >> confdefs.h <<EOF
3590 #define $ac_tr_lib 1
3596 echo "$ac_t""no" 1>&6
3604 for ac_hdr in db1/ndbm.h
3606 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3607 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3608 echo "configure:3609: checking for $ac_hdr" >&5
3609 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3610 echo $ac_n "(cached) $ac_c" 1>&6
3612 cat > conftest.$ac_ext <<EOF
3613 #line 3614 "configure"
3614 #include "confdefs.h"
3617 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3618 { (eval echo configure:3619: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3619 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3620 if test -z "$ac_err"; then
3622 eval "ac_cv_header_$ac_safe=yes"
3625 echo "configure: failed program was:" >&5
3626 cat conftest.$ac_ext >&5
3628 eval "ac_cv_header_$ac_safe=no"
3632 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3633 echo "$ac_t""yes" 1>&6
3634 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3635 cat >> confdefs.h <<EOF
3636 #define $ac_tr_hdr 1
3640 echo "$ac_t""no" 1>&6
3645 if test x$with_hesiod != x -a x$with_hesiod != xno; then
3646 if test x$with_hesiod != xyes; then
3647 HESIOD_INCLUDES="-I$with_hesiod/include"
3648 HESIOD_LIBS="-L$with_hesiod/lib"
3650 echo $ac_n "checking for res_send""... $ac_c" 1>&6
3651 echo "configure:3652: checking for res_send" >&5
3652 if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then
3653 echo $ac_n "(cached) $ac_c" 1>&6
3655 cat > conftest.$ac_ext <<EOF
3656 #line 3657 "configure"
3657 #include "confdefs.h"
3658 /* System header to define __stub macros and hopefully few prototypes,
3659 which can conflict with char res_send(); below. */
3661 /* Override any gcc2 internal prototype to avoid an error. */
3662 /* We use char because int might match the return type of a gcc2
3663 builtin and then its argument prototype would still apply. */
3668 /* The GNU C library defines this for functions which it implements
3669 to always fail with ENOSYS. Some functions are actually named
3670 something starting with __ and the normal name is an alias. */
3671 #if defined (__stub_res_send) || defined (__stub___res_send)
3679 if { (eval echo configure:3680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3681 eval "ac_cv_func_res_send=yes"
3683 echo "configure: failed program was:" >&5
3684 cat conftest.$ac_ext >&5
3686 eval "ac_cv_func_res_send=no"
3691 if eval "test \"`echo '$ac_cv_func_'res_send`\" = yes"; then
3692 echo "$ac_t""yes" 1>&6
3695 echo "$ac_t""no" 1>&6
3696 echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6
3697 echo "configure:3698: checking for res_send in -lresolv" >&5
3698 ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'`
3699 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3700 echo $ac_n "(cached) $ac_c" 1>&6
3702 ac_save_LIBS="$LIBS"
3703 LIBS="-lresolv $LIBS"
3704 cat > conftest.$ac_ext <<EOF
3705 #line 3706 "configure"
3706 #include "confdefs.h"
3707 /* Override any gcc2 internal prototype to avoid an error. */
3708 /* We use char because int might match the return type of a gcc2
3709 builtin and then its argument prototype would still apply. */
3716 if { (eval echo configure:3717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3718 eval "ac_cv_lib_$ac_lib_var=yes"
3720 echo "configure: failed program was:" >&5
3721 cat conftest.$ac_ext >&5
3723 eval "ac_cv_lib_$ac_lib_var=no"
3726 LIBS="$ac_save_LIBS"
3729 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3730 echo "$ac_t""yes" 1>&6
3731 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
3732 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3733 cat >> confdefs.h <<EOF
3734 #define $ac_tr_lib 1
3737 LIBS="-lresolv $LIBS"
3740 echo "$ac_t""no" 1>&6
3745 echo $ac_n "checking for hes_resolve in -lhesiod""... $ac_c" 1>&6
3746 echo "configure:3747: checking for hes_resolve in -lhesiod" >&5
3747 ac_lib_var=`echo hesiod'_'hes_resolve | sed 'y%./+-%__p_%'`
3748 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3749 echo $ac_n "(cached) $ac_c" 1>&6
3751 ac_save_LIBS="$LIBS"
3752 LIBS="-lhesiod $HESIOD_LIBS $LIBS"
3753 cat > conftest.$ac_ext <<EOF
3754 #line 3755 "configure"
3755 #include "confdefs.h"
3756 /* Override any gcc2 internal prototype to avoid an error. */
3757 /* We use char because int might match the return type of a gcc2
3758 builtin and then its argument prototype would still apply. */
3765 if { (eval echo configure:3766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3767 eval "ac_cv_lib_$ac_lib_var=yes"
3769 echo "configure: failed program was:" >&5
3770 cat conftest.$ac_ext >&5
3772 eval "ac_cv_lib_$ac_lib_var=no"
3775 LIBS="$ac_save_LIBS"
3778 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3779 echo "$ac_t""yes" 1>&6
3780 HESIOD_LIBS="$HESIOD_LIBS -lhesiod"
3782 echo "$ac_t""no" 1>&6
3783 { echo "configure: error: Hesiod library not found" 1>&2; exit 1; }
3788 if test x$with_krb4 != x -a x$with_krb4 != xno; then
3789 if test x$with_krb4 != xyes; then
3790 KRB4_INCLUDES="-I$with_krb4/include"
3791 if test -d "$with_krb4/include/kerberosIV"; then
3792 KRB4_INCLUDES="$KRB4_INCLUDES -I$with_krb4/include/kerberosIV"
3794 KRB4_LIBS="-L$with_krb4/lib"
3795 elif test -d /usr/include/kerberosIV; then
3796 KRB4_INCLUDES="-I/usr/include/kerberosIV"
3798 echo $ac_n "checking for krb_rd_req in -lkrb4""... $ac_c" 1>&6
3799 echo "configure:3800: checking for krb_rd_req in -lkrb4" >&5
3800 ac_lib_var=`echo krb4'_'krb_rd_req | sed 'y%./+-%__p_%'`
3801 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3802 echo $ac_n "(cached) $ac_c" 1>&6
3804 ac_save_LIBS="$LIBS"
3805 LIBS="-lkrb4 $KRB4_LIBS -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
3806 cat > conftest.$ac_ext <<EOF
3807 #line 3808 "configure"
3808 #include "confdefs.h"
3809 /* Override any gcc2 internal prototype to avoid an error. */
3810 /* We use char because int might match the return type of a gcc2
3811 builtin and then its argument prototype would still apply. */
3818 if { (eval echo configure:3819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3820 eval "ac_cv_lib_$ac_lib_var=yes"
3822 echo "configure: failed program was:" >&5
3823 cat conftest.$ac_ext >&5
3825 eval "ac_cv_lib_$ac_lib_var=no"
3828 LIBS="$ac_save_LIBS"
3831 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3832 echo "$ac_t""yes" 1>&6
3833 KRB4_LIBS="$KRB4_LIBS -lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err"
3835 echo "$ac_t""no" 1>&6
3836 echo $ac_n "checking for krb_rd_req in -lkrb""... $ac_c" 1>&6
3837 echo "configure:3838: checking for krb_rd_req in -lkrb" >&5
3838 ac_lib_var=`echo krb'_'krb_rd_req | sed 'y%./+-%__p_%'`
3839 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3840 echo $ac_n "(cached) $ac_c" 1>&6
3842 ac_save_LIBS="$LIBS"
3843 LIBS="-lkrb $KRB4_LIBS -ldes $LIBS"
3844 cat > conftest.$ac_ext <<EOF
3845 #line 3846 "configure"
3846 #include "confdefs.h"
3847 /* Override any gcc2 internal prototype to avoid an error. */
3848 /* We use char because int might match the return type of a gcc2
3849 builtin and then its argument prototype would still apply. */
3856 if { (eval echo configure:3857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3858 eval "ac_cv_lib_$ac_lib_var=yes"
3860 echo "configure: failed program was:" >&5
3861 cat conftest.$ac_ext >&5
3863 eval "ac_cv_lib_$ac_lib_var=no"
3866 LIBS="$ac_save_LIBS"
3869 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3870 echo "$ac_t""yes" 1>&6
3871 KRB4_LIBS="$KRB4_LIBS -lkrb -ldes"
3873 echo "$ac_t""no" 1>&6
3874 { echo "configure: error: Kerberos 4 libraries not found" 1>&2; exit 1; }
3882 nmh_save_LIBS="$LIBS"
3883 LIBS="$TERMLIB $LIBS"
3885 echo $ac_n "checking if an include file defines ospeed""... $ac_c" 1>&6
3886 echo "configure:3887: checking if an include file defines ospeed" >&5
3887 if eval "test \"`echo '$''{'nmh_cv_decl_ospeed_include_defines'+set}'`\" = set"; then
3888 echo $ac_n "(cached) $ac_c" 1>&6
3890 cat > conftest.$ac_ext <<EOF
3891 #line 3892 "configure"
3892 #include "confdefs.h"
3893 #include <sys/types.h>
3895 #include <termios.h>
3898 #include <termcap.h>
3904 if { (eval echo configure:3905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3906 nmh_cv_decl_ospeed_include_defines=yes
3908 echo "configure: failed program was:" >&5
3909 cat conftest.$ac_ext >&5
3911 nmh_cv_decl_ospeed_include_defines=no
3916 echo "$ac_t""$nmh_cv_decl_ospeed_include_defines" 1>&6
3918 if test $nmh_cv_decl_ospeed_include_defines = no; then
3919 echo $ac_n "checking if you must define ospeed""... $ac_c" 1>&6
3920 echo "configure:3921: checking if you must define ospeed" >&5
3921 if eval "test \"`echo '$''{'nmh_cv_decl_ospeed_must_define'+set}'`\" = set"; then
3922 echo $ac_n "(cached) $ac_c" 1>&6
3924 cat > conftest.$ac_ext <<EOF
3925 #line 3926 "configure"
3926 #include "confdefs.h"
3929 extern short ospeed; ospeed = 0;
3932 if { (eval echo configure:3933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3934 nmh_cv_decl_ospeed_must_define=yes
3936 echo "configure: failed program was:" >&5
3937 cat conftest.$ac_ext >&5
3939 nmh_cv_decl_ospeed_must_define=no
3944 echo "$ac_t""$nmh_cv_decl_ospeed_must_define" 1>&6
3947 if test $nmh_cv_decl_ospeed_include_defines = yes; then
3948 cat >> confdefs.h <<\EOF
3949 #define HAVE_OSPEED 1
3952 elif test $nmh_cv_decl_ospeed_must_define = yes; then
3953 cat >> confdefs.h <<\EOF
3954 #define HAVE_OSPEED 1
3957 cat >> confdefs.h <<\EOF
3958 #define MUST_DEFINE_OSPEED 1
3964 LIBS="$nmh_save_LIBS"
3966 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3967 echo "configure:3968: checking return type of signal handlers" >&5
3968 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3969 echo $ac_n "(cached) $ac_c" 1>&6
3971 cat > conftest.$ac_ext <<EOF
3972 #line 3973 "configure"
3973 #include "confdefs.h"
3974 #include <sys/types.h>
3980 extern "C" void (*signal (int, void (*)(int)))(int);
3982 void (*signal ()) ();
3989 if { (eval echo configure:3990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3991 ac_cv_type_signal=void
3993 echo "configure: failed program was:" >&5
3994 cat conftest.$ac_ext >&5
3996 ac_cv_type_signal=int
4001 echo "$ac_t""$ac_cv_type_signal" 1>&6
4002 cat >> confdefs.h <<EOF
4003 #define RETSIGTYPE $ac_cv_type_signal
4007 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
4008 echo "configure:4009: checking for pid_t" >&5
4009 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
4010 echo $ac_n "(cached) $ac_c" 1>&6
4012 cat > conftest.$ac_ext <<EOF
4013 #line 4014 "configure"
4014 #include "confdefs.h"
4015 #include <sys/types.h>
4021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4022 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4024 ac_cv_type_pid_t=yes
4032 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
4033 if test $ac_cv_type_pid_t = no; then
4034 cat >> confdefs.h <<\EOF
4040 echo $ac_n "checking for off_t""... $ac_c" 1>&6
4041 echo "configure:4042: checking for off_t" >&5
4042 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
4043 echo $ac_n "(cached) $ac_c" 1>&6
4045 cat > conftest.$ac_ext <<EOF
4046 #line 4047 "configure"
4047 #include "confdefs.h"
4048 #include <sys/types.h>
4054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4055 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4057 ac_cv_type_off_t=yes
4065 echo "$ac_t""$ac_cv_type_off_t" 1>&6
4066 if test $ac_cv_type_off_t = no; then
4067 cat >> confdefs.h <<\EOF
4073 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
4074 echo "configure:4075: checking for uid_t in sys/types.h" >&5
4075 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
4076 echo $ac_n "(cached) $ac_c" 1>&6
4078 cat > conftest.$ac_ext <<EOF
4079 #line 4080 "configure"
4080 #include "confdefs.h"
4081 #include <sys/types.h>
4083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4084 egrep "uid_t" >/dev/null 2>&1; then
4086 ac_cv_type_uid_t=yes
4095 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
4096 if test $ac_cv_type_uid_t = no; then
4097 cat >> confdefs.h <<\EOF
4101 cat >> confdefs.h <<\EOF
4107 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
4108 echo "configure:4109: checking for mode_t" >&5
4109 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
4110 echo $ac_n "(cached) $ac_c" 1>&6
4112 cat > conftest.$ac_ext <<EOF
4113 #line 4114 "configure"
4114 #include "confdefs.h"
4115 #include <sys/types.h>
4121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4122 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4124 ac_cv_type_mode_t=yes
4127 ac_cv_type_mode_t=no
4132 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
4133 if test $ac_cv_type_mode_t = no; then
4134 cat >> confdefs.h <<\EOF
4140 echo $ac_n "checking for size_t""... $ac_c" 1>&6
4141 echo "configure:4142: checking for size_t" >&5
4142 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
4143 echo $ac_n "(cached) $ac_c" 1>&6
4145 cat > conftest.$ac_ext <<EOF
4146 #line 4147 "configure"
4147 #include "confdefs.h"
4148 #include <sys/types.h>
4154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4155 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4157 ac_cv_type_size_t=yes
4160 ac_cv_type_size_t=no
4165 echo "$ac_t""$ac_cv_type_size_t" 1>&6
4166 if test $ac_cv_type_size_t = no; then
4167 cat >> confdefs.h <<\EOF
4168 #define size_t unsigned
4174 echo $ac_n "checking for sigset_t""... $ac_c" 1>&6
4175 echo "configure:4176: checking for sigset_t" >&5
4176 if eval "test \"`echo '$''{'nmh_cv_type_sigset_t'+set}'`\" = set"; then
4177 echo $ac_n "(cached) $ac_c" 1>&6
4179 cat > conftest.$ac_ext <<EOF
4180 #line 4181 "configure"
4181 #include "confdefs.h"
4182 #include <sys/types.h>
4185 sigset_t tempsigset;
4188 if { (eval echo configure:4189: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4190 nmh_cv_type_sigset_t=yes
4192 echo "configure: failed program was:" >&5
4193 cat conftest.$ac_ext >&5
4195 nmh_cv_type_sigset_t=no
4200 echo "$ac_t""$nmh_cv_type_sigset_t" 1>&6
4201 if test $nmh_cv_type_sigset_t = no; then
4202 cat >> confdefs.h <<\EOF
4203 #define sigset_t unsigned int
4208 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
4209 echo "configure:4210: checking for st_blksize in struct stat" >&5
4210 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
4211 echo $ac_n "(cached) $ac_c" 1>&6
4213 cat > conftest.$ac_ext <<EOF
4214 #line 4215 "configure"
4215 #include "confdefs.h"
4216 #include <sys/types.h>
4217 #include <sys/stat.h>
4219 struct stat s; s.st_blksize;
4222 if { (eval echo configure:4223: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4224 ac_cv_struct_st_blksize=yes
4226 echo "configure: failed program was:" >&5
4227 cat conftest.$ac_ext >&5
4229 ac_cv_struct_st_blksize=no
4234 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
4235 if test $ac_cv_struct_st_blksize = yes; then
4236 cat >> confdefs.h <<\EOF
4237 #define HAVE_ST_BLKSIZE 1
4243 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
4244 echo "configure:4245: checking for tm_gmtoff in struct tm" >&5
4245 if eval "test \"`echo '$''{'nmh_cv_struct_tm_gmtoff'+set}'`\" = set"; then
4246 echo $ac_n "(cached) $ac_c" 1>&6
4248 cat > conftest.$ac_ext <<EOF
4249 #line 4250 "configure"
4250 #include "confdefs.h"
4251 #ifdef TIME_WITH_SYS_TIME
4252 # include <sys/time.h>
4255 # ifdef TM_IN_SYS_TIME
4256 # include <sys/time.h>
4262 struct tm temptm; temptm.tm_gmtoff = 0;
4265 if { (eval echo configure:4266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4267 nmh_cv_struct_tm_gmtoff=yes
4269 echo "configure: failed program was:" >&5
4270 cat conftest.$ac_ext >&5
4272 nmh_cv_struct_tm_gmtoff=no
4277 echo "$ac_t""$nmh_cv_struct_tm_gmtoff" 1>&6
4278 if test $nmh_cv_struct_tm_gmtoff = yes; then
4279 cat >> confdefs.h <<\EOF
4280 #define HAVE_TM_GMTOFF 1
4285 echo $ac_n "checking what style of signals to use""... $ac_c" 1>&6
4286 echo "configure:4287: checking what style of signals to use" >&5
4287 if test $ac_cv_func_sigaction = yes -a $ac_cv_func_sigprocmask = yes; then
4288 signals_style=POSIX_SIGNALS
4289 cat >> confdefs.h <<\EOF
4290 #define POSIX_SIGNALS 1
4293 cat >> confdefs.h <<\EOF
4294 #define RELIABLE_SIGNALS 1
4297 elif test $ac_cv_func_sigblock = yes -a $ac_cv_func_sigsetmask = yes; then
4298 signals_style=BSD_SIGNALS
4299 cat >> confdefs.h <<\EOF
4300 #define BSD_SIGNALS 1
4303 cat >> confdefs.h <<\EOF
4304 #define RELIABLE_SIGNALS 1
4307 elif test $ac_cv_func_sighold = yes -a $ac_cv_func_sigrelse = yes; then
4308 signals_style=SYSV_SIGNALS
4309 cat >> confdefs.h <<\EOF
4310 #define SYSV_SIGNALS 1
4314 signals_style=NO_SIGNAL_BLOCKING
4315 cat >> confdefs.h <<\EOF
4316 #define NO_SIGNAL_BLOCKING 1
4321 echo "$ac_t""$signals_style" 1>&6
4323 echo $ac_n "checking where signal.h is located""... $ac_c" 1>&6
4324 echo "configure:4325: checking where signal.h is located" >&5
4325 if eval "test \"`echo '$''{'nmh_cv_path_signal_h'+set}'`\" = set"; then
4326 echo $ac_n "(cached) $ac_c" 1>&6
4328 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
4329 test -f $SIGNAL_H && \
4330 grep '#[ ]*define[ ][ ]*SIG[0-9A-Z]*[ ]*[0-9][0-9]*' $SIGNAL_H > /dev/null && \
4333 nmh_cv_path_signal_h=$SIGNAL_H
4337 echo "$ac_t""$nmh_cv_path_signal_h" 1>&6
4338 SIGNAL_H=$nmh_cv_path_signal_h
4340 case "$target_os" in
4343 cat >> confdefs.h <<\EOF
4347 cat >> confdefs.h <<\EOF
4353 cat >> confdefs.h <<\EOF
4357 cat >> confdefs.h <<\EOF
4363 cat >> confdefs.h <<\EOF
4367 cat >> confdefs.h <<\EOF
4373 cat >> confdefs.h <<\EOF
4377 cat >> confdefs.h <<\EOF
4383 cat >> confdefs.h <<\EOF
4389 cat >> confdefs.h <<\EOF
4393 cat >> confdefs.h <<\EOF
4399 cat >> confdefs.h <<\EOF
4403 cat >> confdefs.h <<\EOF
4409 cat >> confdefs.h <<\EOF
4413 cat >> confdefs.h <<\EOF
4419 cat >> confdefs.h <<\EOF
4423 cat >> confdefs.h <<\EOF
4429 cat >> confdefs.h <<\EOF
4433 cat >> confdefs.h <<\EOF
4434 #define SCO_5_STDIO 1
4442 cat > confcache <<\EOF
4443 # This file is a shell script that caches the results of configure
4444 # tests run on this system so they can be shared between configure
4445 # scripts and configure runs. It is not useful on other systems.
4446 # If it contains results you don't want to keep, you may remove or edit it.
4448 # By default, configure uses ./config.cache as the cache file,
4449 # creating it if it does not exist already. You can give configure
4450 # the --cache-file=FILE option to use a different cache file; that is
4451 # what configure does when it calls configure scripts in
4452 # subdirectories, so they share the cache.
4453 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4454 # config.status only pays attention to the cache file if you give it the
4455 # --recheck option to rerun configure.
4458 # The following way of writing the cache mishandles newlines in values,
4459 # but we know of no workaround that is simple, portable, and efficient.
4460 # So, don't put newlines in cache variables' values.
4461 # Ultrix sh set writes to stderr and can't be redirected directly,
4462 # and sets the high bit in the cache file unless we assign to the vars.
4464 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4466 # `set' does not quote correctly, so add quotes (double-quote substitution
4467 # turns \\\\ into \\, and sed turns \\ into \).
4469 -e "s/'/'\\\\''/g" \
4470 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4473 # `set' quotes correctly as required by POSIX, so do not add quotes.
4474 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4477 if cmp -s $cache_file confcache; then
4480 if test -w $cache_file; then
4481 echo "updating cache $cache_file"
4482 cat confcache > $cache_file
4484 echo "not updating unwritable cache $cache_file"
4489 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4491 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4492 # Let make expand exec_prefix.
4493 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4495 # Any assignment to VPATH causes Sun make to only execute
4496 # the first set of double-colon rules, so remove it if not needed.
4497 # If there is a colon in the path, we need to keep it.
4498 if test "x$srcdir" = x.; then
4499 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4502 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4504 DEFS=-DHAVE_CONFIG_H
4506 # Without the "./", some shells look in PATH for config.status.
4507 : ${CONFIG_STATUS=./config.status}
4509 echo creating $CONFIG_STATUS
4510 rm -f $CONFIG_STATUS
4511 cat > $CONFIG_STATUS <<EOF
4513 # Generated automatically by configure.
4514 # Run this file to recreate the current configuration.
4515 # This directory was configured as follows,
4516 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4518 # $0 $ac_configure_args
4520 # Compiler output produced by configure, useful for debugging
4521 # configure, is in ./config.log if it exists.
4523 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4526 case "\$ac_option" in
4527 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4528 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4529 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4530 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4531 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4533 -help | --help | --hel | --he | --h)
4534 echo "\$ac_cs_usage"; exit 0 ;;
4535 *) echo "\$ac_cs_usage"; exit 1 ;;
4539 ac_given_srcdir=$srcdir
4540 ac_given_INSTALL="$INSTALL"
4542 trap 'rm -fr `echo "Makefile config/Makefile h/Makefile sbr/Makefile uip/Makefile \
4543 zotnet/Makefile zotnet/mts/Makefile zotnet/tws/Makefile \
4544 zotnet/mf/Makefile zotnet/bboards/Makefile mts/Makefile \
4545 mts/smtp/Makefile mts/sendmail/Makefile mts/mmdf/Makefile \
4546 etc/Makefile man/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4548 cat >> $CONFIG_STATUS <<EOF
4550 # Protect against being on the right side of a sed subst in config.status.
4551 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4552 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4556 s%@CFLAGS@%$CFLAGS%g
4557 s%@CPPFLAGS@%$CPPFLAGS%g
4558 s%@CXXFLAGS@%$CXXFLAGS%g
4559 s%@FFLAGS@%$FFLAGS%g
4561 s%@LDFLAGS@%$LDFLAGS%g
4563 s%@exec_prefix@%$exec_prefix%g
4564 s%@prefix@%$prefix%g
4565 s%@program_transform_name@%$program_transform_name%g
4566 s%@bindir@%$bindir%g
4567 s%@sbindir@%$sbindir%g
4568 s%@libexecdir@%$libexecdir%g
4569 s%@datadir@%$datadir%g
4570 s%@sysconfdir@%$sysconfdir%g
4571 s%@sharedstatedir@%$sharedstatedir%g
4572 s%@localstatedir@%$localstatedir%g
4573 s%@libdir@%$libdir%g
4574 s%@includedir@%$includedir%g
4575 s%@oldincludedir@%$oldincludedir%g
4576 s%@infodir@%$infodir%g
4577 s%@mandir@%$mandir%g
4579 s%@host_alias@%$host_alias%g
4580 s%@host_cpu@%$host_cpu%g
4581 s%@host_vendor@%$host_vendor%g
4582 s%@host_os@%$host_os%g
4583 s%@target@%$target%g
4584 s%@target_alias@%$target_alias%g
4585 s%@target_cpu@%$target_cpu%g
4586 s%@target_vendor@%$target_vendor%g
4587 s%@target_os@%$target_os%g
4589 s%@build_alias@%$build_alias%g
4590 s%@build_cpu@%$build_cpu%g
4591 s%@build_vendor@%$build_vendor%g
4592 s%@build_os@%$build_os%g
4593 s%@VERSION@%$VERSION%g
4595 s%@MTSLIB@%$MTSLIB%g
4596 s%@POPLIB@%$POPLIB%g
4597 s%@POPSED@%$POPSED%g
4599 s%@SET_MAKE@%$SET_MAKE%g
4600 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4601 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4602 s%@INSTALL_DATA@%$INSTALL_DATA%g
4603 s%@RANLIB@%$RANLIB%g
4606 s%@LEXLIB@%$LEXLIB%g
4607 s%@cutpath@%$cutpath%g
4608 s%@LIBTOOL@%$LIBTOOL%g
4609 s%@GNU_LIBTOOL@%$GNU_LIBTOOL%g
4610 s%@LORDER@%$LORDER%g
4612 s%@lspath@%$lspath%g
4613 s%@morepath@%$morepath%g
4614 s%@pagerpath@%$pagerpath%g
4615 s%@sendmailpath@%$sendmailpath%g
4616 s%@vipath@%$vipath%g
4617 s%@editorpath@%$editorpath%g
4618 s%@mailspool@%$mailspool%g
4619 s%@SETGID_MAIL@%$SETGID_MAIL%g
4620 s%@MAIL_SPOOL_GRP@%$MAIL_SPOOL_GRP%g
4622 s%@LIBOBJS@%$LIBOBJS%g
4623 s%@TERMLIB@%$TERMLIB%g
4624 s%@HESIOD_INCLUDES@%$HESIOD_INCLUDES%g
4625 s%@HESIOD_LIBS@%$HESIOD_LIBS%g
4626 s%@KRB4_INCLUDES@%$KRB4_INCLUDES%g
4627 s%@KRB4_LIBS@%$KRB4_LIBS%g
4628 s%@SIGNAL_H@%$SIGNAL_H%g
4633 cat >> $CONFIG_STATUS <<\EOF
4635 # Split the substitutions into bite-sized pieces for seds with
4636 # small command number limits, like on Digital OSF/1 and HP-UX.
4637 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4638 ac_file=1 # Number of current file.
4639 ac_beg=1 # First line for current file.
4640 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4643 while $ac_more_lines; do
4644 if test $ac_beg -gt 1; then
4645 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4647 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4649 if test ! -s conftest.s$ac_file; then
4651 rm -f conftest.s$ac_file
4653 if test -z "$ac_sed_cmds"; then
4654 ac_sed_cmds="sed -f conftest.s$ac_file"
4656 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4658 ac_file=`expr $ac_file + 1`
4660 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4663 if test -z "$ac_sed_cmds"; then
4668 cat >> $CONFIG_STATUS <<EOF
4670 CONFIG_FILES=\${CONFIG_FILES-"Makefile config/Makefile h/Makefile sbr/Makefile uip/Makefile \
4671 zotnet/Makefile zotnet/mts/Makefile zotnet/tws/Makefile \
4672 zotnet/mf/Makefile zotnet/bboards/Makefile mts/Makefile \
4673 mts/smtp/Makefile mts/sendmail/Makefile mts/mmdf/Makefile \
4674 etc/Makefile man/Makefile"}
4676 cat >> $CONFIG_STATUS <<\EOF
4677 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4678 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4680 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4681 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4682 *) ac_file_in="${ac_file}.in" ;;
4685 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4687 # Remove last slash and all that follows it. Not all systems have dirname.
4688 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4689 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4690 # The file is in a subdirectory.
4691 test ! -d "$ac_dir" && mkdir "$ac_dir"
4692 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4693 # A "../" for each directory in $ac_dir_suffix.
4694 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4696 ac_dir_suffix= ac_dots=
4699 case "$ac_given_srcdir" in
4701 if test -z "$ac_dots"; then top_srcdir=.
4702 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4703 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4705 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4706 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4709 case "$ac_given_INSTALL" in
4710 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4711 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4714 echo creating "$ac_file"
4716 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4718 *Makefile*) ac_comsub="1i\\
4719 # $configure_input" ;;
4723 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4725 s%@configure_input@%$configure_input%g
4726 s%@srcdir@%$srcdir%g
4727 s%@top_srcdir@%$top_srcdir%g
4728 s%@INSTALL@%$INSTALL%g
4729 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4733 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4734 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4736 # ac_d sets the value in "#define NAME VALUE" lines.
4737 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4738 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4741 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4742 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4743 ac_uB='\([ ]\)%\1#\2define\3'
4746 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4747 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4748 ac_eB='$%\1#\2define\3'
4752 if test "${CONFIG_HEADERS+set}" != set; then
4754 cat >> $CONFIG_STATUS <<EOF
4755 CONFIG_HEADERS="config.h"
4757 cat >> $CONFIG_STATUS <<\EOF
4759 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4760 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4762 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4763 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4764 *) ac_file_in="${ac_file}.in" ;;
4767 echo creating $ac_file
4769 rm -f conftest.frag conftest.in conftest.out
4770 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4771 cat $ac_file_inputs > conftest.in
4775 # Transform confdefs.h into a sed script conftest.vals that substitutes
4776 # the proper values into config.h.in to produce config.h. And first:
4777 # Protect against being on the right side of a sed subst in config.status.
4778 # Protect against being in an unquoted here document in config.status.
4780 cat > conftest.hdr <<\EOF
4783 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4787 sed -n -f conftest.hdr confdefs.h > conftest.vals
4790 # This sed command replaces #undef with comments. This is necessary, for
4791 # example, in the case of _POSIX_SOURCE, which is predefined and required
4792 # on some systems where configure will not decide to define it.
4793 cat >> conftest.vals <<\EOF
4794 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4797 # Break up conftest.vals because some shells have a limit on
4798 # the size of here documents, and old seds have small limits too.
4803 ac_lines=`grep -c . conftest.vals`
4804 # grep -c gives empty output for an empty file on some AIX systems.
4805 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4806 # Write a limited-size here document to conftest.frag.
4807 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4808 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4810 sed -f conftest.frag conftest.in > conftest.out
4812 mv conftest.out conftest.in
4814 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4816 mv conftest.tail conftest.vals
4820 cat >> $CONFIG_STATUS <<\EOF
4821 rm -f conftest.frag conftest.h
4822 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4823 cat conftest.in >> conftest.h
4825 if cmp -s $ac_file conftest.h 2>/dev/null; then
4826 echo "$ac_file is unchanged"
4829 # Remove last slash and all that follows it. Not all systems have dirname.
4830 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4831 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4832 # The file is in a subdirectory.
4833 test ! -d "$ac_dir" && mkdir "$ac_dir"
4836 mv conftest.h $ac_file
4841 cat >> $CONFIG_STATUS <<EOF
4844 cat >> $CONFIG_STATUS <<\EOF
4846 test -z "$CONFIG_HEADERS" || echo > stamp-h
4849 chmod +x $CONFIG_STATUS
4850 rm -fr confdefs* $ac_clean_files
4851 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4854 eval "nmhbin=${bindir}"; eval "nmhbin2=${nmhbin}"
4855 eval "nmhsysconf=${sysconfdir}"; eval "nmhsysconf2=${nmhsysconf}"
4856 eval "nmhlib=${libdir}"; eval "nmhlib2=${nmhlib}"
4857 eval "nmhman=${mandir}"
4862 nmh version : ${VERSION}
4863 target os : ${target}
4865 compiler flags : ${CFLAGS}
4866 linker flags : ${LDFLAGS}
4867 source code location : ${srcdir}
4868 binary install path : ${nmhbin2}
4869 libary install path : ${nmhlib2}
4870 config files install path : ${nmhsysconf2}
4871 man page install path : ${nmhman}
4872 transport system : ${MTS}
4873 default editor : ${editorpath}
4874 default pager : ${pagerpath}"