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
1401 # Extract the first word of "lorder", so it can be a program name with args.
1402 set dummy lorder; ac_word=$2
1403 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1404 echo "configure:1405: checking for $ac_word" >&5
1405 if eval "test \"`echo '$''{'ac_cv_prog_LORDER'+set}'`\" = set"; then
1406 echo $ac_n "(cached) $ac_c" 1>&6
1408 if test -n "$LORDER"; then
1409 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
1411 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1413 for ac_dir in $ac_dummy; do
1414 test -z "$ac_dir" && ac_dir=.
1415 if test -f $ac_dir/$ac_word; then
1416 ac_cv_prog_LORDER="lorder"
1421 test -z "$ac_cv_prog_LORDER" && ac_cv_prog_LORDER="no"
1424 LORDER="$ac_cv_prog_LORDER"
1425 if test -n "$LORDER"; then
1426 echo "$ac_t""$LORDER" 1>&6
1428 echo "$ac_t""no" 1>&6
1430 # Extract the first word of "tsort", so it can be a program name with args.
1431 set dummy tsort; ac_word=$2
1432 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1433 echo "configure:1434: checking for $ac_word" >&5
1434 if eval "test \"`echo '$''{'ac_cv_prog_TSORT'+set}'`\" = set"; then
1435 echo $ac_n "(cached) $ac_c" 1>&6
1437 if test -n "$TSORT"; then
1438 ac_cv_prog_TSORT="$TSORT" # Let the user override the test.
1440 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1442 for ac_dir in $ac_dummy; do
1443 test -z "$ac_dir" && ac_dir=.
1444 if test -f $ac_dir/$ac_word; then
1445 ac_cv_prog_TSORT="tsort"
1450 test -z "$ac_cv_prog_TSORT" && ac_cv_prog_TSORT="no"
1453 TSORT="$ac_cv_prog_TSORT"
1454 if test -n "$TSORT"; then
1455 echo "$ac_t""$TSORT" 1>&6
1457 echo "$ac_t""no" 1>&6
1460 if test x$ac_cv_prog_LORDER != xlorder -o x$ac_cv_prog_TSORT != xtsort; then
1465 pathtmp=/usr/bin:/bin:/usr/local/bin:/usr/xpg4/bin:/usr/ucb
1466 # Extract the first word of "ls", so it can be a program name with args.
1467 set dummy ls; ac_word=$2
1468 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1469 echo "configure:1470: checking for $ac_word" >&5
1470 if eval "test \"`echo '$''{'ac_cv_path_lspath'+set}'`\" = set"; then
1471 echo $ac_n "(cached) $ac_c" 1>&6
1475 ac_cv_path_lspath="$lspath" # Let the user override the test with a path.
1478 ac_cv_path_lspath="$lspath" # Let the user override the test with a dos path.
1481 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1483 for ac_dir in $ac_dummy; do
1484 test -z "$ac_dir" && ac_dir=.
1485 if test -f $ac_dir/$ac_word; then
1486 ac_cv_path_lspath="$ac_dir/$ac_word"
1491 test -z "$ac_cv_path_lspath" && ac_cv_path_lspath="no"
1495 lspath="$ac_cv_path_lspath"
1496 if test -n "$lspath"; then
1497 echo "$ac_t""$lspath" 1>&6
1499 echo "$ac_t""no" 1>&6
1503 if test "$lspath" != "no"; then
1504 echo $ac_n "checking how to get ls to show us the group ownership of a file""... $ac_c" 1>&6
1505 echo "configure:1506: checking how to get ls to show us the group ownership of a file" >&5
1506 if eval "test \"`echo '$''{'nmh_cv_ls_grpopt'+set}'`\" = set"; then
1507 echo $ac_n "(cached) $ac_c" 1>&6
1509 if test x"`$lspath -dl / | $AWK '{print $9}'`" = x"/"; then
1510 nmh_cv_ls_grpopt="-l"
1512 nmh_cv_ls_grpopt="-lg"
1516 echo "$ac_t""$nmh_cv_ls_grpopt" 1>&6
1519 pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin
1520 # Extract the first word of "more", so it can be a program name with args.
1521 set dummy more; ac_word=$2
1522 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1523 echo "configure:1524: checking for $ac_word" >&5
1524 if eval "test \"`echo '$''{'ac_cv_path_morepath'+set}'`\" = set"; then
1525 echo $ac_n "(cached) $ac_c" 1>&6
1529 ac_cv_path_morepath="$morepath" # Let the user override the test with a path.
1532 ac_cv_path_morepath="$morepath" # Let the user override the test with a dos path.
1535 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1537 for ac_dir in $ac_dummy; do
1538 test -z "$ac_dir" && ac_dir=.
1539 if test -f $ac_dir/$ac_word; then
1540 ac_cv_path_morepath="$ac_dir/$ac_word"
1545 test -z "$ac_cv_path_morepath" && ac_cv_path_morepath="no"
1549 morepath="$ac_cv_path_morepath"
1550 if test -n "$morepath"; then
1551 echo "$ac_t""$morepath" 1>&6
1553 echo "$ac_t""no" 1>&6
1557 if test -z "$pagerpath"; then
1558 pagerpath="$morepath"
1561 pathtmp=/usr/lib:/usr/sbin:/usr/etc:/usr/ucblib:/usr/bin:/bin
1562 # Extract the first word of "sendmail", so it can be a program name with args.
1563 set dummy sendmail; ac_word=$2
1564 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1565 echo "configure:1566: checking for $ac_word" >&5
1566 if eval "test \"`echo '$''{'ac_cv_path_sendmailpath'+set}'`\" = set"; then
1567 echo $ac_n "(cached) $ac_c" 1>&6
1569 case "$sendmailpath" in
1571 ac_cv_path_sendmailpath="$sendmailpath" # Let the user override the test with a path.
1574 ac_cv_path_sendmailpath="$sendmailpath" # Let the user override the test with a dos path.
1577 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1579 for ac_dir in $ac_dummy; do
1580 test -z "$ac_dir" && ac_dir=.
1581 if test -f $ac_dir/$ac_word; then
1582 ac_cv_path_sendmailpath="$ac_dir/$ac_word"
1587 test -z "$ac_cv_path_sendmailpath" && ac_cv_path_sendmailpath="no"
1591 sendmailpath="$ac_cv_path_sendmailpath"
1592 if test -n "$sendmailpath"; then
1593 echo "$ac_t""$sendmailpath" 1>&6
1595 echo "$ac_t""no" 1>&6
1599 pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin
1600 # Extract the first word of "vi", so it can be a program name with args.
1601 set dummy vi; ac_word=$2
1602 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1603 echo "configure:1604: checking for $ac_word" >&5
1604 if eval "test \"`echo '$''{'ac_cv_path_vipath'+set}'`\" = set"; then
1605 echo $ac_n "(cached) $ac_c" 1>&6
1609 ac_cv_path_vipath="$vipath" # Let the user override the test with a path.
1612 ac_cv_path_vipath="$vipath" # Let the user override the test with a dos path.
1615 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1617 for ac_dir in $ac_dummy; do
1618 test -z "$ac_dir" && ac_dir=.
1619 if test -f $ac_dir/$ac_word; then
1620 ac_cv_path_vipath="$ac_dir/$ac_word"
1625 test -z "$ac_cv_path_vipath" && ac_cv_path_vipath="no"
1629 vipath="$ac_cv_path_vipath"
1630 if test -n "$vipath"; then
1631 echo "$ac_t""$vipath" 1>&6
1633 echo "$ac_t""no" 1>&6
1637 if test -z "$editorpath"; then
1638 editorpath="$vipath"
1641 echo $ac_n "checking for broken vi""... $ac_c" 1>&6
1642 echo "configure:1643: checking for broken vi" >&5
1643 if eval "test \"`echo '$''{'nmh_cv_attvibug'+set}'`\" = set"; then
1644 echo $ac_n "(cached) $ac_c" 1>&6
1646 if echo 'r /nonexist-file
1647 q' | ex > /dev/null 2>&1
1655 echo "$ac_t""$nmh_cv_attvibug" 1>&6
1657 if test "$nmh_cv_attvibug" = yes; then
1658 cat >> confdefs.h <<\EOF
1664 echo $ac_n "checking where mail spool is located""... $ac_c" 1>&6
1665 echo "configure:1666: checking where mail spool is located" >&5
1666 if eval "test \"`echo '$''{'nmh_cv_mailspool'+set}'`\" = set"; then
1667 echo $ac_n "(cached) $ac_c" 1>&6
1669 for mailspool in /var/mail /var/spool/mail /usr/spool/mail /dev/null; do
1670 test -d $mailspool && break
1672 nmh_cv_mailspool=$mailspool
1676 echo "$ac_t""$nmh_cv_mailspool" 1>&6
1677 mailspool=$nmh_cv_mailspool
1679 if test "$lspath" != "no" -a "$cutpath" != "no"; then
1680 echo $ac_n "checking whether the mail spool is world-writable""... $ac_c" 1>&6
1681 echo "configure:1682: checking whether the mail spool is world-writable" >&5
1682 if eval "test \"`echo '$''{'nmh_cv_mailspool_world_writable'+set}'`\" = set"; then
1683 echo $ac_n "(cached) $ac_c" 1>&6
1685 if test "`$lspath -dlL $mailspool | $cutpath -c9`" = "-"; then
1686 nmh_cv_mailspool_world_writable=no
1688 nmh_cv_mailspool_world_writable=yes
1692 echo "$ac_t""$nmh_cv_mailspool_world_writable" 1>&6
1695 if test x"$nmh_cv_mailspool_world_writable" = x"no"; then
1696 cat >> confdefs.h <<\EOF
1703 echo $ac_n "checking what group owns the mail spool""... $ac_c" 1>&6
1704 echo "configure:1705: checking what group owns the mail spool" >&5
1705 if eval "test \"`echo '$''{'nmh_cv_ls_mail_grp'+set}'`\" = set"; then
1706 echo $ac_n "(cached) $ac_c" 1>&6
1708 nmh_cv_ls_mail_grp=`$lspath -dL $nmh_cv_ls_grpopt $mailspool|$AWK '{print $4}'`
1709 if test x$nmh_cv_ls_mail_grp = xmail; then
1710 MAIL_SPOOL_GRP="mail"
1711 elif test x$nmh_cv_ls_mail_grp = xwheel; then
1712 MAIL_SPOOL_GRP="wheel"
1714 MAIL_SPOOL_GRP="'0'"
1718 echo "$ac_t""$nmh_cv_ls_mail_grp" 1>&6
1721 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1723 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1724 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1725 echo "configure:1726: checking for $ac_hdr that defines DIR" >&5
1726 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1727 echo $ac_n "(cached) $ac_c" 1>&6
1729 cat > conftest.$ac_ext <<EOF
1730 #line 1731 "configure"
1731 #include "confdefs.h"
1732 #include <sys/types.h>
1738 if { (eval echo configure:1739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1740 eval "ac_cv_header_dirent_$ac_safe=yes"
1742 echo "configure: failed program was:" >&5
1743 cat conftest.$ac_ext >&5
1745 eval "ac_cv_header_dirent_$ac_safe=no"
1749 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1750 echo "$ac_t""yes" 1>&6
1751 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1752 cat >> confdefs.h <<EOF
1753 #define $ac_tr_hdr 1
1755 ac_header_dirent=$ac_hdr; break
1757 echo "$ac_t""no" 1>&6
1760 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1761 if test $ac_header_dirent = dirent.h; then
1762 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1763 echo "configure:1764: checking for opendir in -ldir" >&5
1764 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1765 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1766 echo $ac_n "(cached) $ac_c" 1>&6
1768 ac_save_LIBS="$LIBS"
1770 cat > conftest.$ac_ext <<EOF
1771 #line 1772 "configure"
1772 #include "confdefs.h"
1773 /* Override any gcc2 internal prototype to avoid an error. */
1774 /* We use char because int might match the return type of a gcc2
1775 builtin and then its argument prototype would still apply. */
1782 if { (eval echo configure:1783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1784 eval "ac_cv_lib_$ac_lib_var=yes"
1786 echo "configure: failed program was:" >&5
1787 cat conftest.$ac_ext >&5
1789 eval "ac_cv_lib_$ac_lib_var=no"
1792 LIBS="$ac_save_LIBS"
1795 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1796 echo "$ac_t""yes" 1>&6
1799 echo "$ac_t""no" 1>&6
1803 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1804 echo "configure:1805: checking for opendir in -lx" >&5
1805 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1806 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1807 echo $ac_n "(cached) $ac_c" 1>&6
1809 ac_save_LIBS="$LIBS"
1811 cat > conftest.$ac_ext <<EOF
1812 #line 1813 "configure"
1813 #include "confdefs.h"
1814 /* Override any gcc2 internal prototype to avoid an error. */
1815 /* We use char because int might match the return type of a gcc2
1816 builtin and then its argument prototype would still apply. */
1823 if { (eval echo configure:1824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1825 eval "ac_cv_lib_$ac_lib_var=yes"
1827 echo "configure: failed program was:" >&5
1828 cat conftest.$ac_ext >&5
1830 eval "ac_cv_lib_$ac_lib_var=no"
1833 LIBS="$ac_save_LIBS"
1836 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1837 echo "$ac_t""yes" 1>&6
1840 echo "$ac_t""no" 1>&6
1845 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1846 echo "configure:1847: checking how to run the C preprocessor" >&5
1847 # On Suns, sometimes $CPP names a directory.
1848 if test -n "$CPP" && test -d "$CPP"; then
1851 if test -z "$CPP"; then
1852 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1853 echo $ac_n "(cached) $ac_c" 1>&6
1855 # This must be in double quotes, not single quotes, because CPP may get
1856 # substituted into the Makefile and "${CC-cc}" will confuse make.
1858 # On the NeXT, cc -E runs the code through the compiler's parser,
1859 # not just through cpp.
1860 cat > conftest.$ac_ext <<EOF
1861 #line 1862 "configure"
1862 #include "confdefs.h"
1866 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1867 { (eval echo configure:1868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1868 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1869 if test -z "$ac_err"; then
1873 echo "configure: failed program was:" >&5
1874 cat conftest.$ac_ext >&5
1876 CPP="${CC-cc} -E -traditional-cpp"
1877 cat > conftest.$ac_ext <<EOF
1878 #line 1879 "configure"
1879 #include "confdefs.h"
1883 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1884 { (eval echo configure:1885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1885 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1886 if test -z "$ac_err"; then
1890 echo "configure: failed program was:" >&5
1891 cat conftest.$ac_ext >&5
1893 CPP="${CC-cc} -nologo -E"
1894 cat > conftest.$ac_ext <<EOF
1895 #line 1896 "configure"
1896 #include "confdefs.h"
1900 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1901 { (eval echo configure:1902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1902 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1903 if test -z "$ac_err"; then
1907 echo "configure: failed program was:" >&5
1908 cat conftest.$ac_ext >&5
1917 ac_cv_prog_CPP="$CPP"
1919 CPP="$ac_cv_prog_CPP"
1921 ac_cv_prog_CPP="$CPP"
1923 echo "$ac_t""$CPP" 1>&6
1925 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1926 echo "configure:1927: checking for ANSI C header files" >&5
1927 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1928 echo $ac_n "(cached) $ac_c" 1>&6
1930 cat > conftest.$ac_ext <<EOF
1931 #line 1932 "configure"
1932 #include "confdefs.h"
1938 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1939 { (eval echo configure:1940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1940 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1941 if test -z "$ac_err"; then
1943 ac_cv_header_stdc=yes
1946 echo "configure: failed program was:" >&5
1947 cat conftest.$ac_ext >&5
1949 ac_cv_header_stdc=no
1953 if test $ac_cv_header_stdc = yes; then
1954 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1955 cat > conftest.$ac_ext <<EOF
1956 #line 1957 "configure"
1957 #include "confdefs.h"
1960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1961 egrep "memchr" >/dev/null 2>&1; then
1965 ac_cv_header_stdc=no
1971 if test $ac_cv_header_stdc = yes; then
1972 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1973 cat > conftest.$ac_ext <<EOF
1974 #line 1975 "configure"
1975 #include "confdefs.h"
1978 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1979 egrep "free" >/dev/null 2>&1; then
1983 ac_cv_header_stdc=no
1989 if test $ac_cv_header_stdc = yes; then
1990 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1991 if test "$cross_compiling" = yes; then
1994 cat > conftest.$ac_ext <<EOF
1995 #line 1996 "configure"
1996 #include "confdefs.h"
1998 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1999 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2000 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2001 int main () { int i; for (i = 0; i < 256; i++)
2002 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2006 if { (eval echo configure:2007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2010 echo "configure: failed program was:" >&5
2011 cat conftest.$ac_ext >&5
2013 ac_cv_header_stdc=no
2021 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2022 if test $ac_cv_header_stdc = yes; then
2023 cat >> confdefs.h <<\EOF
2024 #define STDC_HEADERS 1
2029 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2030 echo "configure:2031: checking whether time.h and sys/time.h may both be included" >&5
2031 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2032 echo $ac_n "(cached) $ac_c" 1>&6
2034 cat > conftest.$ac_ext <<EOF
2035 #line 2036 "configure"
2036 #include "confdefs.h"
2037 #include <sys/types.h>
2038 #include <sys/time.h>
2044 if { (eval echo configure:2045: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2046 ac_cv_header_time=yes
2048 echo "configure: failed program was:" >&5
2049 cat conftest.$ac_ext >&5
2051 ac_cv_header_time=no
2056 echo "$ac_t""$ac_cv_header_time" 1>&6
2057 if test $ac_cv_header_time = yes; then
2058 cat >> confdefs.h <<\EOF
2059 #define TIME_WITH_SYS_TIME 1
2064 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2065 echo "configure:2066: checking for sys/wait.h that is POSIX.1 compatible" >&5
2066 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2067 echo $ac_n "(cached) $ac_c" 1>&6
2069 cat > conftest.$ac_ext <<EOF
2070 #line 2071 "configure"
2071 #include "confdefs.h"
2072 #include <sys/types.h>
2073 #include <sys/wait.h>
2075 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2078 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2083 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2086 if { (eval echo configure:2087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2088 ac_cv_header_sys_wait_h=yes
2090 echo "configure: failed program was:" >&5
2091 cat conftest.$ac_ext >&5
2093 ac_cv_header_sys_wait_h=no
2098 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2099 if test $ac_cv_header_sys_wait_h = yes; then
2100 cat >> confdefs.h <<\EOF
2101 #define HAVE_SYS_WAIT_H 1
2106 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
2107 echo "configure:2108: checking whether stat file-mode macros are broken" >&5
2108 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
2109 echo $ac_n "(cached) $ac_c" 1>&6
2111 cat > conftest.$ac_ext <<EOF
2112 #line 2113 "configure"
2113 #include "confdefs.h"
2114 #include <sys/types.h>
2115 #include <sys/stat.h>
2117 #if defined(S_ISBLK) && defined(S_IFDIR)
2118 # if S_ISBLK (S_IFDIR)
2123 #if defined(S_ISBLK) && defined(S_IFCHR)
2124 # if S_ISBLK (S_IFCHR)
2129 #if defined(S_ISLNK) && defined(S_IFREG)
2130 # if S_ISLNK (S_IFREG)
2135 #if defined(S_ISSOCK) && defined(S_IFREG)
2136 # if S_ISSOCK (S_IFREG)
2142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2143 egrep "You lose" >/dev/null 2>&1; then
2145 ac_cv_header_stat_broken=yes
2148 ac_cv_header_stat_broken=no
2154 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
2155 if test $ac_cv_header_stat_broken = yes; then
2156 cat >> confdefs.h <<\EOF
2157 #define STAT_MACROS_BROKEN 1
2162 for ac_hdr in string.h memory.h stdlib.h unistd.h errno.h fcntl.h \
2163 limits.h crypt.h termcap.h termio.h termios.h locale.h \
2164 netdb.h sys/param.h sys/time.h sys/utsname.h arpa/inet.h \
2167 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2168 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2169 echo "configure:2170: checking for $ac_hdr" >&5
2170 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2171 echo $ac_n "(cached) $ac_c" 1>&6
2173 cat > conftest.$ac_ext <<EOF
2174 #line 2175 "configure"
2175 #include "confdefs.h"
2178 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2179 { (eval echo configure:2180: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2180 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2181 if test -z "$ac_err"; then
2183 eval "ac_cv_header_$ac_safe=yes"
2186 echo "configure: failed program was:" >&5
2187 cat conftest.$ac_ext >&5
2189 eval "ac_cv_header_$ac_safe=no"
2193 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2194 echo "$ac_t""yes" 1>&6
2195 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2196 cat >> confdefs.h <<EOF
2197 #define $ac_tr_hdr 1
2201 echo "$ac_t""no" 1>&6
2207 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
2208 echo "configure:2209: checking POSIX termios" >&5
2209 if eval "test \"`echo '$''{'nmh_cv_sys_posix_termios'+set}'`\" = set"; then
2210 echo $ac_n "(cached) $ac_c" 1>&6
2212 cat > conftest.$ac_ext <<EOF
2213 #line 2214 "configure"
2214 #include "confdefs.h"
2215 #include <sys/types.h>
2217 #include <termios.h>
2219 /* SunOS 4.0.3 has termios.h but not the library calls. */
2223 if { (eval echo configure:2224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2225 nmh_cv_sys_posix_termios=yes
2227 echo "configure: failed program was:" >&5
2228 cat conftest.$ac_ext >&5
2230 nmh_cv_sys_posix_termios=no
2235 echo "$ac_t""$nmh_cv_sys_posix_termios" 1>&6
2237 if test $nmh_cv_sys_posix_termios = yes; then
2238 echo $ac_n "checking TIOCGWINSZ in termios.h""... $ac_c" 1>&6
2239 echo "configure:2240: checking TIOCGWINSZ in termios.h" >&5
2240 if eval "test \"`echo '$''{'nmh_cv_header_termios_h_tiocgwinsz'+set}'`\" = set"; then
2241 echo $ac_n "(cached) $ac_c" 1>&6
2243 cat > conftest.$ac_ext <<EOF
2244 #line 2245 "configure"
2245 #include "confdefs.h"
2246 #include <sys/types.h>
2247 #include <termios.h>
2252 if { (eval echo configure:2253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2254 nmh_cv_header_termios_h_tiocgwinsz=yes
2256 echo "configure: failed program was:" >&5
2257 cat conftest.$ac_ext >&5
2259 nmh_cv_header_termios_h_tiocgwinsz=no
2264 echo "$ac_t""$nmh_cv_header_termios_h_tiocgwinsz" 1>&6
2266 nmh_cv_header_termios_h_tiocgwinsz=no
2269 if test $nmh_cv_header_termios_h_tiocgwinsz = no; then
2270 echo $ac_n "checking TIOCGWINSZ in sys/ioctl.h""... $ac_c" 1>&6
2271 echo "configure:2272: checking TIOCGWINSZ in sys/ioctl.h" >&5
2272 if eval "test \"`echo '$''{'nmh_cv_header_sys_ioctl_h_tiocgwinsz'+set}'`\" = set"; then
2273 echo $ac_n "(cached) $ac_c" 1>&6
2275 cat > conftest.$ac_ext <<EOF
2276 #line 2277 "configure"
2277 #include "confdefs.h"
2278 #include <sys/types.h>
2279 #include <sys/ioctl.h>
2284 if { (eval echo configure:2285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2286 nmh_cv_header_sys_ioctl_h_tiocgwinsz=yes
2288 echo "configure: failed program was:" >&5
2289 cat conftest.$ac_ext >&5
2291 nmh_cv_header_sys_ioctl_h_tiocgwinsz=no
2296 echo "$ac_t""$nmh_cv_header_sys_ioctl_h_tiocgwinsz" 1>&6
2297 if test $nmh_cv_header_sys_ioctl_h_tiocgwinsz = yes; then
2298 cat >> confdefs.h <<\EOF
2299 #define GWINSZ_IN_SYS_IOCTL 1
2305 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2306 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2307 echo "configure:2308: checking for libio.h" >&5
2308 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2309 echo $ac_n "(cached) $ac_c" 1>&6
2311 cat > conftest.$ac_ext <<EOF
2312 #line 2313 "configure"
2313 #include "confdefs.h"
2316 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2317 { (eval echo configure:2318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2318 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2319 if test -z "$ac_err"; then
2321 eval "ac_cv_header_$ac_safe=yes"
2324 echo "configure: failed program was:" >&5
2325 cat conftest.$ac_ext >&5
2327 eval "ac_cv_header_$ac_safe=no"
2331 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2332 echo "$ac_t""yes" 1>&6
2334 cat > conftest.$ac_ext <<EOF
2335 #line 2336 "configure"
2336 #include "confdefs.h"
2339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2340 egrep "_IO_write_ptr" >/dev/null 2>&1; then
2343 cat >> confdefs.h <<\EOF
2344 #define LINUX_STDIO 1
2351 echo "$ac_t""no" 1>&6
2355 ac_safe=`echo "sys/ptem.h" | sed 'y%./+-%__p_%'`
2356 echo $ac_n "checking for sys/ptem.h""... $ac_c" 1>&6
2357 echo "configure:2358: checking for sys/ptem.h" >&5
2358 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2359 echo $ac_n "(cached) $ac_c" 1>&6
2361 cat > conftest.$ac_ext <<EOF
2362 #line 2363 "configure"
2363 #include "confdefs.h"
2364 #include <sys/ptem.h>
2366 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2367 { (eval echo configure:2368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2368 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2369 if test -z "$ac_err"; then
2371 eval "ac_cv_header_$ac_safe=yes"
2374 echo "configure: failed program was:" >&5
2375 cat conftest.$ac_ext >&5
2377 eval "ac_cv_header_$ac_safe=no"
2381 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2382 echo "$ac_t""yes" 1>&6
2383 cat >> confdefs.h <<\EOF
2384 #define WINSIZE_IN_PTEM 1
2388 echo "$ac_t""no" 1>&6
2392 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2393 echo "configure:2394: checking for pid_t" >&5
2394 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2395 echo $ac_n "(cached) $ac_c" 1>&6
2397 cat > conftest.$ac_ext <<EOF
2398 #line 2399 "configure"
2399 #include "confdefs.h"
2400 #include <sys/types.h>
2406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2407 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2409 ac_cv_type_pid_t=yes
2417 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2418 if test $ac_cv_type_pid_t = no; then
2419 cat >> confdefs.h <<\EOF
2425 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2426 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2427 echo "configure:2428: checking for vfork.h" >&5
2428 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2429 echo $ac_n "(cached) $ac_c" 1>&6
2431 cat > conftest.$ac_ext <<EOF
2432 #line 2433 "configure"
2433 #include "confdefs.h"
2436 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2437 { (eval echo configure:2438: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2438 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2439 if test -z "$ac_err"; then
2441 eval "ac_cv_header_$ac_safe=yes"
2444 echo "configure: failed program was:" >&5
2445 cat conftest.$ac_ext >&5
2447 eval "ac_cv_header_$ac_safe=no"
2451 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2452 echo "$ac_t""yes" 1>&6
2453 cat >> confdefs.h <<\EOF
2454 #define HAVE_VFORK_H 1
2458 echo "$ac_t""no" 1>&6
2461 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2462 echo "configure:2463: checking for working vfork" >&5
2463 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2464 echo $ac_n "(cached) $ac_c" 1>&6
2466 if test "$cross_compiling" = yes; then
2467 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2468 echo "configure:2469: checking for vfork" >&5
2469 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2470 echo $ac_n "(cached) $ac_c" 1>&6
2472 cat > conftest.$ac_ext <<EOF
2473 #line 2474 "configure"
2474 #include "confdefs.h"
2475 /* System header to define __stub macros and hopefully few prototypes,
2476 which can conflict with char vfork(); below. */
2478 /* Override any gcc2 internal prototype to avoid an error. */
2479 /* We use char because int might match the return type of a gcc2
2480 builtin and then its argument prototype would still apply. */
2485 /* The GNU C library defines this for functions which it implements
2486 to always fail with ENOSYS. Some functions are actually named
2487 something starting with __ and the normal name is an alias. */
2488 #if defined (__stub_vfork) || defined (__stub___vfork)
2496 if { (eval echo configure:2497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2498 eval "ac_cv_func_vfork=yes"
2500 echo "configure: failed program was:" >&5
2501 cat conftest.$ac_ext >&5
2503 eval "ac_cv_func_vfork=no"
2508 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2509 echo "$ac_t""yes" 1>&6
2512 echo "$ac_t""no" 1>&6
2515 ac_cv_func_vfork_works=$ac_cv_func_vfork
2517 cat > conftest.$ac_ext <<EOF
2518 #line 2519 "configure"
2519 #include "confdefs.h"
2520 /* Thanks to Paul Eggert for this test. */
2522 #include <sys/types.h>
2523 #include <sys/stat.h>
2524 #ifdef HAVE_UNISTD_H
2530 /* On some sparc systems, changes by the child to local and incoming
2531 argument registers are propagated back to the parent.
2532 The compiler is told about this with #include <vfork.h>,
2533 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2534 Test for this by using a static variable whose address
2535 is put into a register that is clobbered by the vfork. */
2538 sparc_address_test (int arg)
2540 sparc_address_test (arg) int arg;
2558 pid_t parent = getpid ();
2561 sparc_address_test ();
2566 /* Here is another test for sparc vfork register problems.
2567 This test uses lots of local variables, at least
2568 as many local variables as main has allocated so far
2569 including compiler temporaries. 4 locals are enough for
2570 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2571 A buggy compiler should reuse the register of parent
2572 for one of the local variables, since it will think that
2573 parent can't possibly be used any more in this routine.
2574 Assigning to the local variable will thus munge parent
2575 in the parent process. */
2577 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2578 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2579 /* Convince the compiler that p..p7 are live; otherwise, it might
2580 use the same hardware register for all 8 local variables. */
2581 if (p != p1 || p != p2 || p != p3 || p != p4
2582 || p != p5 || p != p6 || p != p7)
2585 /* On some systems (e.g. IRIX 3.3),
2586 vfork doesn't separate parent from child file descriptors.
2587 If the child closes a descriptor before it execs or exits,
2588 this munges the parent's descriptor as well.
2589 Test for this by closing stdout in the child. */
2590 _exit(close(fileno(stdout)) != 0);
2595 while (wait(&status) != child)
2598 /* Was there some problem with vforking? */
2601 /* Did the child fail? (This shouldn't happen.) */
2604 /* Did the vfork/compiler bug occur? */
2605 || parent != getpid()
2607 /* Did the file descriptor bug occur? */
2608 || fstat(fileno(stdout), &st) != 0
2613 if { (eval echo configure:2614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2615 ac_cv_func_vfork_works=yes
2617 echo "configure: failed program was:" >&5
2618 cat conftest.$ac_ext >&5
2620 ac_cv_func_vfork_works=no
2627 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2628 if test $ac_cv_func_vfork_works = no; then
2629 cat >> confdefs.h <<\EOF
2635 echo $ac_n "checking for mkstemp in -lmkstemp""... $ac_c" 1>&6
2636 echo "configure:2637: checking for mkstemp in -lmkstemp" >&5
2637 ac_lib_var=`echo mkstemp'_'mkstemp | sed 'y%./+-%__p_%'`
2638 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2639 echo $ac_n "(cached) $ac_c" 1>&6
2641 ac_save_LIBS="$LIBS"
2642 LIBS="-lmkstemp $LIBS"
2643 cat > conftest.$ac_ext <<EOF
2644 #line 2645 "configure"
2645 #include "confdefs.h"
2646 /* Override any gcc2 internal prototype to avoid an error. */
2647 /* We use char because int might match the return type of a gcc2
2648 builtin and then its argument prototype would still apply. */
2655 if { (eval echo configure:2656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2657 eval "ac_cv_lib_$ac_lib_var=yes"
2659 echo "configure: failed program was:" >&5
2660 cat conftest.$ac_ext >&5
2662 eval "ac_cv_lib_$ac_lib_var=no"
2665 LIBS="$ac_save_LIBS"
2668 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2669 echo "$ac_t""yes" 1>&6
2670 ac_tr_lib=HAVE_LIB`echo mkstemp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2671 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2672 cat >> confdefs.h <<EOF
2673 #define $ac_tr_lib 1
2676 LIBS="-lmkstemp $LIBS"
2679 echo "$ac_t""no" 1>&6
2682 for ac_func in waitpid wait3 sigaction sigprocmask sigblock sigsetmask \
2683 sighold sigrelse writev lstat uname tzset killpg mkstemp \
2686 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2687 echo "configure:2688: checking for $ac_func" >&5
2688 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2689 echo $ac_n "(cached) $ac_c" 1>&6
2691 cat > conftest.$ac_ext <<EOF
2692 #line 2693 "configure"
2693 #include "confdefs.h"
2694 /* System header to define __stub macros and hopefully few prototypes,
2695 which can conflict with char $ac_func(); below. */
2697 /* Override any gcc2 internal prototype to avoid an error. */
2698 /* We use char because int might match the return type of a gcc2
2699 builtin and then its argument prototype would still apply. */
2704 /* The GNU C library defines this for functions which it implements
2705 to always fail with ENOSYS. Some functions are actually named
2706 something starting with __ and the normal name is an alias. */
2707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2715 if { (eval echo configure:2716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2717 eval "ac_cv_func_$ac_func=yes"
2719 echo "configure: failed program was:" >&5
2720 cat conftest.$ac_ext >&5
2722 eval "ac_cv_func_$ac_func=no"
2727 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2728 echo "$ac_t""yes" 1>&6
2729 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2730 cat >> confdefs.h <<EOF
2731 #define $ac_tr_func 1
2735 echo "$ac_t""no" 1>&6
2740 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2741 echo "configure:2742: checking for gethostbyname" >&5
2742 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2743 echo $ac_n "(cached) $ac_c" 1>&6
2745 cat > conftest.$ac_ext <<EOF
2746 #line 2747 "configure"
2747 #include "confdefs.h"
2748 /* System header to define __stub macros and hopefully few prototypes,
2749 which can conflict with char gethostbyname(); below. */
2751 /* Override any gcc2 internal prototype to avoid an error. */
2752 /* We use char because int might match the return type of a gcc2
2753 builtin and then its argument prototype would still apply. */
2754 char gethostbyname();
2758 /* The GNU C library defines this for functions which it implements
2759 to always fail with ENOSYS. Some functions are actually named
2760 something starting with __ and the normal name is an alias. */
2761 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2769 if { (eval echo configure:2770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2771 eval "ac_cv_func_gethostbyname=yes"
2773 echo "configure: failed program was:" >&5
2774 cat conftest.$ac_ext >&5
2776 eval "ac_cv_func_gethostbyname=no"
2781 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2782 echo "$ac_t""yes" 1>&6
2783 cat >> confdefs.h <<\EOF
2784 #define HAVE_GETHOSTBYNAME 1
2788 echo "$ac_t""no" 1>&6
2789 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2790 echo "configure:2791: checking for gethostbyname in -lnsl" >&5
2791 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2792 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2793 echo $ac_n "(cached) $ac_c" 1>&6
2795 ac_save_LIBS="$LIBS"
2797 cat > conftest.$ac_ext <<EOF
2798 #line 2799 "configure"
2799 #include "confdefs.h"
2800 /* Override any gcc2 internal prototype to avoid an error. */
2801 /* We use char because int might match the return type of a gcc2
2802 builtin and then its argument prototype would still apply. */
2803 char gethostbyname();
2809 if { (eval echo configure:2810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2811 eval "ac_cv_lib_$ac_lib_var=yes"
2813 echo "configure: failed program was:" >&5
2814 cat conftest.$ac_ext >&5
2816 eval "ac_cv_lib_$ac_lib_var=no"
2819 LIBS="$ac_save_LIBS"
2822 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2823 echo "$ac_t""yes" 1>&6
2824 cat >> confdefs.h <<\EOF
2825 #define HAVE_GETHOSTBYNAME 1
2829 echo "$ac_t""no" 1>&6
2835 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
2836 echo "configure:2837: checking for sigsetjmp" >&5
2837 cat > conftest.$ac_ext <<EOF
2838 #line 2839 "configure"
2839 #include "confdefs.h"
2842 sigsetjmp((void *)0, 0);
2845 if { (eval echo configure:2846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2847 cat >> confdefs.h <<\EOF
2848 #define HAVE_SIGSETJMP 1
2850 echo "$ac_t""yes" 1>&6
2852 echo "configure: failed program was:" >&5
2853 cat conftest.$ac_ext >&5
2855 echo "$ac_t""no" 1>&6
2859 for ac_func in snprintf strerror strdup
2861 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2862 echo "configure:2863: checking for $ac_func" >&5
2863 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2864 echo $ac_n "(cached) $ac_c" 1>&6
2866 cat > conftest.$ac_ext <<EOF
2867 #line 2868 "configure"
2868 #include "confdefs.h"
2869 /* System header to define __stub macros and hopefully few prototypes,
2870 which can conflict with char $ac_func(); below. */
2872 /* Override any gcc2 internal prototype to avoid an error. */
2873 /* We use char because int might match the return type of a gcc2
2874 builtin and then its argument prototype would still apply. */
2879 /* The GNU C library defines this for functions which it implements
2880 to always fail with ENOSYS. Some functions are actually named
2881 something starting with __ and the normal name is an alias. */
2882 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2890 if { (eval echo configure:2891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2892 eval "ac_cv_func_$ac_func=yes"
2894 echo "configure: failed program was:" >&5
2895 cat conftest.$ac_ext >&5
2897 eval "ac_cv_func_$ac_func=no"
2902 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2903 echo "$ac_t""yes" 1>&6
2904 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2905 cat >> confdefs.h <<EOF
2906 #define $ac_tr_func 1
2910 echo "$ac_t""no" 1>&6
2911 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
2917 cat > conftest.$ac_ext <<EOF
2918 #line 2919 "configure"
2919 #include "confdefs.h"
2922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2923 egrep "snprintf" >/dev/null 2>&1; then
2925 cat >> confdefs.h <<\EOF
2926 #define HAVE_SNPRINTF_PROTOTYPE 1
2933 echo $ac_n "checking for modf""... $ac_c" 1>&6
2934 echo "configure:2935: checking for modf" >&5
2935 if eval "test \"`echo '$''{'ac_cv_func_modf'+set}'`\" = set"; then
2936 echo $ac_n "(cached) $ac_c" 1>&6
2938 cat > conftest.$ac_ext <<EOF
2939 #line 2940 "configure"
2940 #include "confdefs.h"
2941 /* System header to define __stub macros and hopefully few prototypes,
2942 which can conflict with char modf(); below. */
2944 /* Override any gcc2 internal prototype to avoid an error. */
2945 /* We use char because int might match the return type of a gcc2
2946 builtin and then its argument prototype would still apply. */
2951 /* The GNU C library defines this for functions which it implements
2952 to always fail with ENOSYS. Some functions are actually named
2953 something starting with __ and the normal name is an alias. */
2954 #if defined (__stub_modf) || defined (__stub___modf)
2962 if { (eval echo configure:2963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2964 eval "ac_cv_func_modf=yes"
2966 echo "configure: failed program was:" >&5
2967 cat conftest.$ac_ext >&5
2969 eval "ac_cv_func_modf=no"
2974 if eval "test \"`echo '$ac_cv_func_'modf`\" = yes"; then
2975 echo "$ac_t""yes" 1>&6
2978 echo "$ac_t""no" 1>&6
2979 echo $ac_n "checking for modf in -lm""... $ac_c" 1>&6
2980 echo "configure:2981: checking for modf in -lm" >&5
2981 ac_lib_var=`echo m'_'modf | sed 'y%./+-%__p_%'`
2982 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2983 echo $ac_n "(cached) $ac_c" 1>&6
2985 ac_save_LIBS="$LIBS"
2987 cat > conftest.$ac_ext <<EOF
2988 #line 2989 "configure"
2989 #include "confdefs.h"
2990 /* Override any gcc2 internal prototype to avoid an error. */
2991 /* We use char because int might match the return type of a gcc2
2992 builtin and then its argument prototype would still apply. */
2999 if { (eval echo configure:3000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3001 eval "ac_cv_lib_$ac_lib_var=yes"
3003 echo "configure: failed program was:" >&5
3004 cat conftest.$ac_ext >&5
3006 eval "ac_cv_lib_$ac_lib_var=no"
3009 LIBS="$ac_save_LIBS"
3012 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3013 echo "$ac_t""yes" 1>&6
3014 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
3015 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3016 cat >> confdefs.h <<EOF
3017 #define $ac_tr_lib 1
3023 echo "$ac_t""no" 1>&6
3029 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3030 echo "configure:3031: checking for gethostbyname" >&5
3031 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3032 echo $ac_n "(cached) $ac_c" 1>&6
3034 cat > conftest.$ac_ext <<EOF
3035 #line 3036 "configure"
3036 #include "confdefs.h"
3037 /* System header to define __stub macros and hopefully few prototypes,
3038 which can conflict with char gethostbyname(); below. */
3040 /* Override any gcc2 internal prototype to avoid an error. */
3041 /* We use char because int might match the return type of a gcc2
3042 builtin and then its argument prototype would still apply. */
3043 char gethostbyname();
3047 /* The GNU C library defines this for functions which it implements
3048 to always fail with ENOSYS. Some functions are actually named
3049 something starting with __ and the normal name is an alias. */
3050 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3058 if { (eval echo configure:3059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3060 eval "ac_cv_func_gethostbyname=yes"
3062 echo "configure: failed program was:" >&5
3063 cat conftest.$ac_ext >&5
3065 eval "ac_cv_func_gethostbyname=no"
3070 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3071 echo "$ac_t""yes" 1>&6
3074 echo "$ac_t""no" 1>&6
3075 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3076 echo "configure:3077: checking for gethostbyname in -lnsl" >&5
3077 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3078 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3079 echo $ac_n "(cached) $ac_c" 1>&6
3081 ac_save_LIBS="$LIBS"
3083 cat > conftest.$ac_ext <<EOF
3084 #line 3085 "configure"
3085 #include "confdefs.h"
3086 /* Override any gcc2 internal prototype to avoid an error. */
3087 /* We use char because int might match the return type of a gcc2
3088 builtin and then its argument prototype would still apply. */
3089 char gethostbyname();
3095 if { (eval echo configure:3096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3097 eval "ac_cv_lib_$ac_lib_var=yes"
3099 echo "configure: failed program was:" >&5
3100 cat conftest.$ac_ext >&5
3102 eval "ac_cv_lib_$ac_lib_var=no"
3105 LIBS="$ac_save_LIBS"
3108 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3109 echo "$ac_t""yes" 1>&6
3110 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
3111 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3112 cat >> confdefs.h <<EOF
3113 #define $ac_tr_lib 1
3119 echo "$ac_t""no" 1>&6
3120 echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6
3121 echo "configure:3122: checking for gethostbyname in -lresolv" >&5
3122 ac_lib_var=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'`
3123 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3124 echo $ac_n "(cached) $ac_c" 1>&6
3126 ac_save_LIBS="$LIBS"
3127 LIBS="-lresolv $LIBS"
3128 cat > conftest.$ac_ext <<EOF
3129 #line 3130 "configure"
3130 #include "confdefs.h"
3131 /* Override any gcc2 internal prototype to avoid an error. */
3132 /* We use char because int might match the return type of a gcc2
3133 builtin and then its argument prototype would still apply. */
3134 char gethostbyname();
3140 if { (eval echo configure:3141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3142 eval "ac_cv_lib_$ac_lib_var=yes"
3144 echo "configure: failed program was:" >&5
3145 cat conftest.$ac_ext >&5
3147 eval "ac_cv_lib_$ac_lib_var=no"
3150 LIBS="$ac_save_LIBS"
3153 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3154 echo "$ac_t""yes" 1>&6
3155 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
3156 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3157 cat >> confdefs.h <<EOF
3158 #define $ac_tr_lib 1
3161 LIBS="-lresolv $LIBS"
3164 echo "$ac_t""no" 1>&6
3171 echo $ac_n "checking for socket""... $ac_c" 1>&6
3172 echo "configure:3173: checking for socket" >&5
3173 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
3174 echo $ac_n "(cached) $ac_c" 1>&6
3176 cat > conftest.$ac_ext <<EOF
3177 #line 3178 "configure"
3178 #include "confdefs.h"
3179 /* System header to define __stub macros and hopefully few prototypes,
3180 which can conflict with char socket(); below. */
3182 /* Override any gcc2 internal prototype to avoid an error. */
3183 /* We use char because int might match the return type of a gcc2
3184 builtin and then its argument prototype would still apply. */
3189 /* The GNU C library defines this for functions which it implements
3190 to always fail with ENOSYS. Some functions are actually named
3191 something starting with __ and the normal name is an alias. */
3192 #if defined (__stub_socket) || defined (__stub___socket)
3200 if { (eval echo configure:3201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3202 eval "ac_cv_func_socket=yes"
3204 echo "configure: failed program was:" >&5
3205 cat conftest.$ac_ext >&5
3207 eval "ac_cv_func_socket=no"
3212 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
3213 echo "$ac_t""yes" 1>&6
3216 echo "$ac_t""no" 1>&6
3217 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
3218 echo "configure:3219: checking for socket in -lsocket" >&5
3219 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
3220 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3221 echo $ac_n "(cached) $ac_c" 1>&6
3223 ac_save_LIBS="$LIBS"
3224 LIBS="-lsocket $LIBS"
3225 cat > conftest.$ac_ext <<EOF
3226 #line 3227 "configure"
3227 #include "confdefs.h"
3228 /* Override any gcc2 internal prototype to avoid an error. */
3229 /* We use char because int might match the return type of a gcc2
3230 builtin and then its argument prototype would still apply. */
3237 if { (eval echo configure:3238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3239 eval "ac_cv_lib_$ac_lib_var=yes"
3241 echo "configure: failed program was:" >&5
3242 cat conftest.$ac_ext >&5
3244 eval "ac_cv_lib_$ac_lib_var=no"
3247 LIBS="$ac_save_LIBS"
3250 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3251 echo "$ac_t""yes" 1>&6
3252 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
3253 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3254 cat >> confdefs.h <<EOF
3255 #define $ac_tr_lib 1
3258 LIBS="-lsocket $LIBS"
3261 echo "$ac_t""no" 1>&6
3268 echo $ac_n "checking for ruserpass""... $ac_c" 1>&6
3269 echo "configure:3270: checking for ruserpass" >&5
3270 if eval "test \"`echo '$''{'ac_cv_func_ruserpass'+set}'`\" = set"; then
3271 echo $ac_n "(cached) $ac_c" 1>&6
3273 cat > conftest.$ac_ext <<EOF
3274 #line 3275 "configure"
3275 #include "confdefs.h"
3276 /* System header to define __stub macros and hopefully few prototypes,
3277 which can conflict with char ruserpass(); below. */
3279 /* Override any gcc2 internal prototype to avoid an error. */
3280 /* We use char because int might match the return type of a gcc2
3281 builtin and then its argument prototype would still apply. */
3286 /* The GNU C library defines this for functions which it implements
3287 to always fail with ENOSYS. Some functions are actually named
3288 something starting with __ and the normal name is an alias. */
3289 #if defined (__stub_ruserpass) || defined (__stub___ruserpass)
3297 if { (eval echo configure:3298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3299 eval "ac_cv_func_ruserpass=yes"
3301 echo "configure: failed program was:" >&5
3302 cat conftest.$ac_ext >&5
3304 eval "ac_cv_func_ruserpass=no"
3309 if eval "test \"`echo '$ac_cv_func_'ruserpass`\" = yes"; then
3310 echo "$ac_t""yes" 1>&6
3313 echo "$ac_t""no" 1>&6
3314 echo $ac_n "checking for _ruserpass""... $ac_c" 1>&6
3315 echo "configure:3316: checking for _ruserpass" >&5
3316 if eval "test \"`echo '$''{'ac_cv_func__ruserpass'+set}'`\" = set"; then
3317 echo $ac_n "(cached) $ac_c" 1>&6
3319 cat > conftest.$ac_ext <<EOF
3320 #line 3321 "configure"
3321 #include "confdefs.h"
3322 /* System header to define __stub macros and hopefully few prototypes,
3323 which can conflict with char _ruserpass(); below. */
3325 /* Override any gcc2 internal prototype to avoid an error. */
3326 /* We use char because int might match the return type of a gcc2
3327 builtin and then its argument prototype would still apply. */
3332 /* The GNU C library defines this for functions which it implements
3333 to always fail with ENOSYS. Some functions are actually named
3334 something starting with __ and the normal name is an alias. */
3335 #if defined (__stub__ruserpass) || defined (__stub____ruserpass)
3343 if { (eval echo configure:3344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3345 eval "ac_cv_func__ruserpass=yes"
3347 echo "configure: failed program was:" >&5
3348 cat conftest.$ac_ext >&5
3350 eval "ac_cv_func__ruserpass=no"
3355 if eval "test \"`echo '$ac_cv_func_'_ruserpass`\" = yes"; then
3356 echo "$ac_t""yes" 1>&6
3359 echo "$ac_t""no" 1>&6
3360 echo $ac_n "checking for _ruserpass in -lsocket""... $ac_c" 1>&6
3361 echo "configure:3362: checking for _ruserpass in -lsocket" >&5
3362 ac_lib_var=`echo socket'_'_ruserpass | sed 'y%./+-%__p_%'`
3363 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3364 echo $ac_n "(cached) $ac_c" 1>&6
3366 ac_save_LIBS="$LIBS"
3367 LIBS="-lsocket $LIBS"
3368 cat > conftest.$ac_ext <<EOF
3369 #line 3370 "configure"
3370 #include "confdefs.h"
3371 /* Override any gcc2 internal prototype to avoid an error. */
3372 /* We use char because int might match the return type of a gcc2
3373 builtin and then its argument prototype would still apply. */
3380 if { (eval echo configure:3381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3382 eval "ac_cv_lib_$ac_lib_var=yes"
3384 echo "configure: failed program was:" >&5
3385 cat conftest.$ac_ext >&5
3387 eval "ac_cv_lib_$ac_lib_var=no"
3390 LIBS="$ac_save_LIBS"
3393 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3394 echo "$ac_t""yes" 1>&6
3395 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
3396 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3397 cat >> confdefs.h <<EOF
3398 #define $ac_tr_lib 1
3401 LIBS="-lsocket $LIBS"
3404 echo "$ac_t""no" 1>&6
3411 if test x$ac_cv_func_ruserpass = xno; then
3412 if test x$ac_cv_func__ruserpass = xyes -o x$ac_cv_lib_socket__ruserpass = xyes; then
3413 cat >> confdefs.h <<\EOF
3414 #define ruserpass _ruserpass
3418 LIBOBJS="$LIBOBJS ruserpass.o"
3423 termcap_curses_order="termcap curses ncurses"
3424 for lib in $termcap_curses_order; do
3425 echo $ac_n "checking for tgetent in -l${lib}""... $ac_c" 1>&6
3426 echo "configure:3427: checking for tgetent in -l${lib}" >&5
3427 ac_lib_var=`echo ${lib}'_'tgetent | sed 'y%./+-%__p_%'`
3428 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3429 echo $ac_n "(cached) $ac_c" 1>&6
3431 ac_save_LIBS="$LIBS"
3432 LIBS="-l${lib} $LIBS"
3433 cat > conftest.$ac_ext <<EOF
3434 #line 3435 "configure"
3435 #include "confdefs.h"
3436 /* Override any gcc2 internal prototype to avoid an error. */
3437 /* We use char because int might match the return type of a gcc2
3438 builtin and then its argument prototype would still apply. */
3445 if { (eval echo configure:3446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3447 eval "ac_cv_lib_$ac_lib_var=yes"
3449 echo "configure: failed program was:" >&5
3450 cat conftest.$ac_ext >&5
3452 eval "ac_cv_lib_$ac_lib_var=no"
3455 LIBS="$ac_save_LIBS"
3458 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3459 echo "$ac_t""yes" 1>&6
3460 TERMLIB="-l$lib"; break
3462 echo "$ac_t""no" 1>&6
3468 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
3469 echo "configure:3470: checking for dbm_open" >&5
3470 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
3471 echo $ac_n "(cached) $ac_c" 1>&6
3473 cat > conftest.$ac_ext <<EOF
3474 #line 3475 "configure"
3475 #include "confdefs.h"
3476 /* System header to define __stub macros and hopefully few prototypes,
3477 which can conflict with char dbm_open(); below. */
3479 /* Override any gcc2 internal prototype to avoid an error. */
3480 /* We use char because int might match the return type of a gcc2
3481 builtin and then its argument prototype would still apply. */
3486 /* The GNU C library defines this for functions which it implements
3487 to always fail with ENOSYS. Some functions are actually named
3488 something starting with __ and the normal name is an alias. */
3489 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
3497 if { (eval echo configure:3498: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3499 eval "ac_cv_func_dbm_open=yes"
3501 echo "configure: failed program was:" >&5
3502 cat conftest.$ac_ext >&5
3504 eval "ac_cv_func_dbm_open=no"
3509 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
3510 echo "$ac_t""yes" 1>&6
3513 echo "$ac_t""no" 1>&6
3514 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
3515 echo "configure:3516: checking for dbm_open in -lndbm" >&5
3516 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
3517 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3518 echo $ac_n "(cached) $ac_c" 1>&6
3520 ac_save_LIBS="$LIBS"
3522 cat > conftest.$ac_ext <<EOF
3523 #line 3524 "configure"
3524 #include "confdefs.h"
3525 /* Override any gcc2 internal prototype to avoid an error. */
3526 /* We use char because int might match the return type of a gcc2
3527 builtin and then its argument prototype would still apply. */
3534 if { (eval echo configure:3535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3536 eval "ac_cv_lib_$ac_lib_var=yes"
3538 echo "configure: failed program was:" >&5
3539 cat conftest.$ac_ext >&5
3541 eval "ac_cv_lib_$ac_lib_var=no"
3544 LIBS="$ac_save_LIBS"
3547 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3548 echo "$ac_t""yes" 1>&6
3549 ac_tr_lib=HAVE_LIB`echo ndbm | sed -e 's/^a-zA-Z0-9_/_/g' \
3550 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3551 cat >> confdefs.h <<EOF
3552 #define $ac_tr_lib 1
3558 echo "$ac_t""no" 1>&6
3559 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
3560 echo "configure:3561: checking for dbm_open in -ldbm" >&5
3561 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
3562 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3563 echo $ac_n "(cached) $ac_c" 1>&6
3565 ac_save_LIBS="$LIBS"
3567 cat > conftest.$ac_ext <<EOF
3568 #line 3569 "configure"
3569 #include "confdefs.h"
3570 /* Override any gcc2 internal prototype to avoid an error. */
3571 /* We use char because int might match the return type of a gcc2
3572 builtin and then its argument prototype would still apply. */
3579 if { (eval echo configure:3580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3581 eval "ac_cv_lib_$ac_lib_var=yes"
3583 echo "configure: failed program was:" >&5
3584 cat conftest.$ac_ext >&5
3586 eval "ac_cv_lib_$ac_lib_var=no"
3589 LIBS="$ac_save_LIBS"
3592 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3593 echo "$ac_t""yes" 1>&6
3594 ac_tr_lib=HAVE_LIB`echo dbm | sed -e 's/^a-zA-Z0-9_/_/g' \
3595 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3596 cat >> confdefs.h <<EOF
3597 #define $ac_tr_lib 1
3603 echo "$ac_t""no" 1>&6
3611 for ac_hdr in db1/ndbm.h
3613 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3614 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3615 echo "configure:3616: checking for $ac_hdr" >&5
3616 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3617 echo $ac_n "(cached) $ac_c" 1>&6
3619 cat > conftest.$ac_ext <<EOF
3620 #line 3621 "configure"
3621 #include "confdefs.h"
3624 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3625 { (eval echo configure:3626: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3626 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3627 if test -z "$ac_err"; then
3629 eval "ac_cv_header_$ac_safe=yes"
3632 echo "configure: failed program was:" >&5
3633 cat conftest.$ac_ext >&5
3635 eval "ac_cv_header_$ac_safe=no"
3639 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3640 echo "$ac_t""yes" 1>&6
3641 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3642 cat >> confdefs.h <<EOF
3643 #define $ac_tr_hdr 1
3647 echo "$ac_t""no" 1>&6
3652 if test x$with_hesiod != x -a x$with_hesiod != xno; then
3653 if test x$with_hesiod != xyes; then
3654 HESIOD_INCLUDES="-I$with_hesiod/include"
3655 HESIOD_LIBS="-L$with_hesiod/lib"
3657 echo $ac_n "checking for res_send""... $ac_c" 1>&6
3658 echo "configure:3659: checking for res_send" >&5
3659 if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then
3660 echo $ac_n "(cached) $ac_c" 1>&6
3662 cat > conftest.$ac_ext <<EOF
3663 #line 3664 "configure"
3664 #include "confdefs.h"
3665 /* System header to define __stub macros and hopefully few prototypes,
3666 which can conflict with char res_send(); below. */
3668 /* Override any gcc2 internal prototype to avoid an error. */
3669 /* We use char because int might match the return type of a gcc2
3670 builtin and then its argument prototype would still apply. */
3675 /* The GNU C library defines this for functions which it implements
3676 to always fail with ENOSYS. Some functions are actually named
3677 something starting with __ and the normal name is an alias. */
3678 #if defined (__stub_res_send) || defined (__stub___res_send)
3686 if { (eval echo configure:3687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3688 eval "ac_cv_func_res_send=yes"
3690 echo "configure: failed program was:" >&5
3691 cat conftest.$ac_ext >&5
3693 eval "ac_cv_func_res_send=no"
3698 if eval "test \"`echo '$ac_cv_func_'res_send`\" = yes"; then
3699 echo "$ac_t""yes" 1>&6
3702 echo "$ac_t""no" 1>&6
3703 echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6
3704 echo "configure:3705: checking for res_send in -lresolv" >&5
3705 ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'`
3706 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3707 echo $ac_n "(cached) $ac_c" 1>&6
3709 ac_save_LIBS="$LIBS"
3710 LIBS="-lresolv $LIBS"
3711 cat > conftest.$ac_ext <<EOF
3712 #line 3713 "configure"
3713 #include "confdefs.h"
3714 /* Override any gcc2 internal prototype to avoid an error. */
3715 /* We use char because int might match the return type of a gcc2
3716 builtin and then its argument prototype would still apply. */
3723 if { (eval echo configure:3724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3725 eval "ac_cv_lib_$ac_lib_var=yes"
3727 echo "configure: failed program was:" >&5
3728 cat conftest.$ac_ext >&5
3730 eval "ac_cv_lib_$ac_lib_var=no"
3733 LIBS="$ac_save_LIBS"
3736 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3737 echo "$ac_t""yes" 1>&6
3738 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
3739 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3740 cat >> confdefs.h <<EOF
3741 #define $ac_tr_lib 1
3744 LIBS="-lresolv $LIBS"
3747 echo "$ac_t""no" 1>&6
3752 echo $ac_n "checking for hes_resolve in -lhesiod""... $ac_c" 1>&6
3753 echo "configure:3754: checking for hes_resolve in -lhesiod" >&5
3754 ac_lib_var=`echo hesiod'_'hes_resolve | sed 'y%./+-%__p_%'`
3755 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3756 echo $ac_n "(cached) $ac_c" 1>&6
3758 ac_save_LIBS="$LIBS"
3759 LIBS="-lhesiod $HESIOD_LIBS $LIBS"
3760 cat > conftest.$ac_ext <<EOF
3761 #line 3762 "configure"
3762 #include "confdefs.h"
3763 /* Override any gcc2 internal prototype to avoid an error. */
3764 /* We use char because int might match the return type of a gcc2
3765 builtin and then its argument prototype would still apply. */
3772 if { (eval echo configure:3773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3774 eval "ac_cv_lib_$ac_lib_var=yes"
3776 echo "configure: failed program was:" >&5
3777 cat conftest.$ac_ext >&5
3779 eval "ac_cv_lib_$ac_lib_var=no"
3782 LIBS="$ac_save_LIBS"
3785 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3786 echo "$ac_t""yes" 1>&6
3787 HESIOD_LIBS="$HESIOD_LIBS -lhesiod"
3789 echo "$ac_t""no" 1>&6
3790 { echo "configure: error: Hesiod library not found" 1>&2; exit 1; }
3795 if test x$with_krb4 != x -a x$with_krb4 != xno; then
3796 if test x$with_krb4 != xyes; then
3797 KRB4_INCLUDES="-I$with_krb4/include"
3798 if test -d "$with_krb4/include/kerberosIV"; then
3799 KRB4_INCLUDES="$KRB4_INCLUDES -I$with_krb4/include/kerberosIV"
3801 KRB4_LIBS="-L$with_krb4/lib"
3802 elif test -d /usr/include/kerberosIV; then
3803 KRB4_INCLUDES="-I/usr/include/kerberosIV"
3805 echo $ac_n "checking for krb_rd_req in -lkrb4""... $ac_c" 1>&6
3806 echo "configure:3807: checking for krb_rd_req in -lkrb4" >&5
3807 ac_lib_var=`echo krb4'_'krb_rd_req | sed 'y%./+-%__p_%'`
3808 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3809 echo $ac_n "(cached) $ac_c" 1>&6
3811 ac_save_LIBS="$LIBS"
3812 LIBS="-lkrb4 $KRB4_LIBS -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
3813 cat > conftest.$ac_ext <<EOF
3814 #line 3815 "configure"
3815 #include "confdefs.h"
3816 /* Override any gcc2 internal prototype to avoid an error. */
3817 /* We use char because int might match the return type of a gcc2
3818 builtin and then its argument prototype would still apply. */
3825 if { (eval echo configure:3826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3827 eval "ac_cv_lib_$ac_lib_var=yes"
3829 echo "configure: failed program was:" >&5
3830 cat conftest.$ac_ext >&5
3832 eval "ac_cv_lib_$ac_lib_var=no"
3835 LIBS="$ac_save_LIBS"
3838 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3839 echo "$ac_t""yes" 1>&6
3840 KRB4_LIBS="$KRB4_LIBS -lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err"
3842 echo "$ac_t""no" 1>&6
3843 echo $ac_n "checking for krb_rd_req in -lkrb""... $ac_c" 1>&6
3844 echo "configure:3845: checking for krb_rd_req in -lkrb" >&5
3845 ac_lib_var=`echo krb'_'krb_rd_req | sed 'y%./+-%__p_%'`
3846 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3847 echo $ac_n "(cached) $ac_c" 1>&6
3849 ac_save_LIBS="$LIBS"
3850 LIBS="-lkrb $KRB4_LIBS -ldes $LIBS"
3851 cat > conftest.$ac_ext <<EOF
3852 #line 3853 "configure"
3853 #include "confdefs.h"
3854 /* Override any gcc2 internal prototype to avoid an error. */
3855 /* We use char because int might match the return type of a gcc2
3856 builtin and then its argument prototype would still apply. */
3863 if { (eval echo configure:3864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3865 eval "ac_cv_lib_$ac_lib_var=yes"
3867 echo "configure: failed program was:" >&5
3868 cat conftest.$ac_ext >&5
3870 eval "ac_cv_lib_$ac_lib_var=no"
3873 LIBS="$ac_save_LIBS"
3876 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3877 echo "$ac_t""yes" 1>&6
3878 KRB4_LIBS="$KRB4_LIBS -lkrb -ldes"
3880 echo "$ac_t""no" 1>&6
3881 { echo "configure: error: Kerberos 4 libraries not found" 1>&2; exit 1; }
3889 nmh_save_LIBS="$LIBS"
3890 LIBS="$TERMLIB $LIBS"
3892 echo $ac_n "checking if an include file defines ospeed""... $ac_c" 1>&6
3893 echo "configure:3894: checking if an include file defines ospeed" >&5
3894 if eval "test \"`echo '$''{'nmh_cv_decl_ospeed_include_defines'+set}'`\" = set"; then
3895 echo $ac_n "(cached) $ac_c" 1>&6
3897 cat > conftest.$ac_ext <<EOF
3898 #line 3899 "configure"
3899 #include "confdefs.h"
3900 #include <sys/types.h>
3902 #include <termios.h>
3905 #include <termcap.h>
3911 if { (eval echo configure:3912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3913 nmh_cv_decl_ospeed_include_defines=yes
3915 echo "configure: failed program was:" >&5
3916 cat conftest.$ac_ext >&5
3918 nmh_cv_decl_ospeed_include_defines=no
3923 echo "$ac_t""$nmh_cv_decl_ospeed_include_defines" 1>&6
3925 if test $nmh_cv_decl_ospeed_include_defines = no; then
3926 echo $ac_n "checking if you must define ospeed""... $ac_c" 1>&6
3927 echo "configure:3928: checking if you must define ospeed" >&5
3928 if eval "test \"`echo '$''{'nmh_cv_decl_ospeed_must_define'+set}'`\" = set"; then
3929 echo $ac_n "(cached) $ac_c" 1>&6
3931 cat > conftest.$ac_ext <<EOF
3932 #line 3933 "configure"
3933 #include "confdefs.h"
3936 extern short ospeed; ospeed = 0;
3939 if { (eval echo configure:3940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3941 nmh_cv_decl_ospeed_must_define=yes
3943 echo "configure: failed program was:" >&5
3944 cat conftest.$ac_ext >&5
3946 nmh_cv_decl_ospeed_must_define=no
3951 echo "$ac_t""$nmh_cv_decl_ospeed_must_define" 1>&6
3954 if test $nmh_cv_decl_ospeed_include_defines = yes; then
3955 cat >> confdefs.h <<\EOF
3956 #define HAVE_OSPEED 1
3959 elif test $nmh_cv_decl_ospeed_must_define = yes; then
3960 cat >> confdefs.h <<\EOF
3961 #define HAVE_OSPEED 1
3964 cat >> confdefs.h <<\EOF
3965 #define MUST_DEFINE_OSPEED 1
3971 LIBS="$nmh_save_LIBS"
3973 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3974 echo "configure:3975: checking return type of signal handlers" >&5
3975 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3976 echo $ac_n "(cached) $ac_c" 1>&6
3978 cat > conftest.$ac_ext <<EOF
3979 #line 3980 "configure"
3980 #include "confdefs.h"
3981 #include <sys/types.h>
3987 extern "C" void (*signal (int, void (*)(int)))(int);
3989 void (*signal ()) ();
3996 if { (eval echo configure:3997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3998 ac_cv_type_signal=void
4000 echo "configure: failed program was:" >&5
4001 cat conftest.$ac_ext >&5
4003 ac_cv_type_signal=int
4008 echo "$ac_t""$ac_cv_type_signal" 1>&6
4009 cat >> confdefs.h <<EOF
4010 #define RETSIGTYPE $ac_cv_type_signal
4014 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
4015 echo "configure:4016: checking for pid_t" >&5
4016 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
4017 echo $ac_n "(cached) $ac_c" 1>&6
4019 cat > conftest.$ac_ext <<EOF
4020 #line 4021 "configure"
4021 #include "confdefs.h"
4022 #include <sys/types.h>
4028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4029 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4031 ac_cv_type_pid_t=yes
4039 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
4040 if test $ac_cv_type_pid_t = no; then
4041 cat >> confdefs.h <<\EOF
4047 echo $ac_n "checking for off_t""... $ac_c" 1>&6
4048 echo "configure:4049: checking for off_t" >&5
4049 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
4050 echo $ac_n "(cached) $ac_c" 1>&6
4052 cat > conftest.$ac_ext <<EOF
4053 #line 4054 "configure"
4054 #include "confdefs.h"
4055 #include <sys/types.h>
4061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4062 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4064 ac_cv_type_off_t=yes
4072 echo "$ac_t""$ac_cv_type_off_t" 1>&6
4073 if test $ac_cv_type_off_t = no; then
4074 cat >> confdefs.h <<\EOF
4080 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
4081 echo "configure:4082: checking for uid_t in sys/types.h" >&5
4082 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
4083 echo $ac_n "(cached) $ac_c" 1>&6
4085 cat > conftest.$ac_ext <<EOF
4086 #line 4087 "configure"
4087 #include "confdefs.h"
4088 #include <sys/types.h>
4090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4091 egrep "uid_t" >/dev/null 2>&1; then
4093 ac_cv_type_uid_t=yes
4102 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
4103 if test $ac_cv_type_uid_t = no; then
4104 cat >> confdefs.h <<\EOF
4108 cat >> confdefs.h <<\EOF
4114 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
4115 echo "configure:4116: checking for mode_t" >&5
4116 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
4117 echo $ac_n "(cached) $ac_c" 1>&6
4119 cat > conftest.$ac_ext <<EOF
4120 #line 4121 "configure"
4121 #include "confdefs.h"
4122 #include <sys/types.h>
4128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4129 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4131 ac_cv_type_mode_t=yes
4134 ac_cv_type_mode_t=no
4139 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
4140 if test $ac_cv_type_mode_t = no; then
4141 cat >> confdefs.h <<\EOF
4147 echo $ac_n "checking for size_t""... $ac_c" 1>&6
4148 echo "configure:4149: checking for size_t" >&5
4149 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
4150 echo $ac_n "(cached) $ac_c" 1>&6
4152 cat > conftest.$ac_ext <<EOF
4153 #line 4154 "configure"
4154 #include "confdefs.h"
4155 #include <sys/types.h>
4161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4162 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4164 ac_cv_type_size_t=yes
4167 ac_cv_type_size_t=no
4172 echo "$ac_t""$ac_cv_type_size_t" 1>&6
4173 if test $ac_cv_type_size_t = no; then
4174 cat >> confdefs.h <<\EOF
4175 #define size_t unsigned
4181 echo $ac_n "checking for sigset_t""... $ac_c" 1>&6
4182 echo "configure:4183: checking for sigset_t" >&5
4183 if eval "test \"`echo '$''{'nmh_cv_type_sigset_t'+set}'`\" = set"; then
4184 echo $ac_n "(cached) $ac_c" 1>&6
4186 cat > conftest.$ac_ext <<EOF
4187 #line 4188 "configure"
4188 #include "confdefs.h"
4189 #include <sys/types.h>
4192 sigset_t tempsigset;
4195 if { (eval echo configure:4196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4197 nmh_cv_type_sigset_t=yes
4199 echo "configure: failed program was:" >&5
4200 cat conftest.$ac_ext >&5
4202 nmh_cv_type_sigset_t=no
4207 echo "$ac_t""$nmh_cv_type_sigset_t" 1>&6
4208 if test $nmh_cv_type_sigset_t = no; then
4209 cat >> confdefs.h <<\EOF
4210 #define sigset_t unsigned int
4215 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
4216 echo "configure:4217: checking for st_blksize in struct stat" >&5
4217 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
4218 echo $ac_n "(cached) $ac_c" 1>&6
4220 cat > conftest.$ac_ext <<EOF
4221 #line 4222 "configure"
4222 #include "confdefs.h"
4223 #include <sys/types.h>
4224 #include <sys/stat.h>
4226 struct stat s; s.st_blksize;
4229 if { (eval echo configure:4230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4231 ac_cv_struct_st_blksize=yes
4233 echo "configure: failed program was:" >&5
4234 cat conftest.$ac_ext >&5
4236 ac_cv_struct_st_blksize=no
4241 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
4242 if test $ac_cv_struct_st_blksize = yes; then
4243 cat >> confdefs.h <<\EOF
4244 #define HAVE_ST_BLKSIZE 1
4250 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
4251 echo "configure:4252: checking for tm_gmtoff in struct tm" >&5
4252 if eval "test \"`echo '$''{'nmh_cv_struct_tm_gmtoff'+set}'`\" = set"; then
4253 echo $ac_n "(cached) $ac_c" 1>&6
4255 cat > conftest.$ac_ext <<EOF
4256 #line 4257 "configure"
4257 #include "confdefs.h"
4258 #ifdef TIME_WITH_SYS_TIME
4259 # include <sys/time.h>
4262 # ifdef TM_IN_SYS_TIME
4263 # include <sys/time.h>
4269 struct tm temptm; temptm.tm_gmtoff = 0;
4272 if { (eval echo configure:4273: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4274 nmh_cv_struct_tm_gmtoff=yes
4276 echo "configure: failed program was:" >&5
4277 cat conftest.$ac_ext >&5
4279 nmh_cv_struct_tm_gmtoff=no
4284 echo "$ac_t""$nmh_cv_struct_tm_gmtoff" 1>&6
4285 if test $nmh_cv_struct_tm_gmtoff = yes; then
4286 cat >> confdefs.h <<\EOF
4287 #define HAVE_TM_GMTOFF 1
4292 echo $ac_n "checking what style of signals to use""... $ac_c" 1>&6
4293 echo "configure:4294: checking what style of signals to use" >&5
4294 if test $ac_cv_func_sigaction = yes -a $ac_cv_func_sigprocmask = yes; then
4295 signals_style=POSIX_SIGNALS
4296 cat >> confdefs.h <<\EOF
4297 #define POSIX_SIGNALS 1
4300 cat >> confdefs.h <<\EOF
4301 #define RELIABLE_SIGNALS 1
4304 elif test $ac_cv_func_sigblock = yes -a $ac_cv_func_sigsetmask = yes; then
4305 signals_style=BSD_SIGNALS
4306 cat >> confdefs.h <<\EOF
4307 #define BSD_SIGNALS 1
4310 cat >> confdefs.h <<\EOF
4311 #define RELIABLE_SIGNALS 1
4314 elif test $ac_cv_func_sighold = yes -a $ac_cv_func_sigrelse = yes; then
4315 signals_style=SYSV_SIGNALS
4316 cat >> confdefs.h <<\EOF
4317 #define SYSV_SIGNALS 1
4321 signals_style=NO_SIGNAL_BLOCKING
4322 cat >> confdefs.h <<\EOF
4323 #define NO_SIGNAL_BLOCKING 1
4328 echo "$ac_t""$signals_style" 1>&6
4330 echo $ac_n "checking where signal.h is located""... $ac_c" 1>&6
4331 echo "configure:4332: checking where signal.h is located" >&5
4332 if eval "test \"`echo '$''{'nmh_cv_path_signal_h'+set}'`\" = set"; then
4333 echo $ac_n "(cached) $ac_c" 1>&6
4335 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
4336 test -f $SIGNAL_H && \
4337 grep '#[ ]*define[ ][ ]*SIG[0-9A-Z]*[ ]*[0-9][0-9]*' $SIGNAL_H > /dev/null && \
4340 nmh_cv_path_signal_h=$SIGNAL_H
4344 echo "$ac_t""$nmh_cv_path_signal_h" 1>&6
4345 SIGNAL_H=$nmh_cv_path_signal_h
4347 case "$target_os" in
4350 cat >> confdefs.h <<\EOF
4354 cat >> confdefs.h <<\EOF
4360 cat >> confdefs.h <<\EOF
4364 cat >> confdefs.h <<\EOF
4370 cat >> confdefs.h <<\EOF
4374 cat >> confdefs.h <<\EOF
4380 cat >> confdefs.h <<\EOF
4384 cat >> confdefs.h <<\EOF
4390 cat >> confdefs.h <<\EOF
4396 cat >> confdefs.h <<\EOF
4400 cat >> confdefs.h <<\EOF
4406 cat >> confdefs.h <<\EOF
4410 cat >> confdefs.h <<\EOF
4416 cat >> confdefs.h <<\EOF
4420 cat >> confdefs.h <<\EOF
4426 cat >> confdefs.h <<\EOF
4430 cat >> confdefs.h <<\EOF
4436 cat >> confdefs.h <<\EOF
4440 cat >> confdefs.h <<\EOF
4441 #define SCO_5_STDIO 1
4449 cat > confcache <<\EOF
4450 # This file is a shell script that caches the results of configure
4451 # tests run on this system so they can be shared between configure
4452 # scripts and configure runs. It is not useful on other systems.
4453 # If it contains results you don't want to keep, you may remove or edit it.
4455 # By default, configure uses ./config.cache as the cache file,
4456 # creating it if it does not exist already. You can give configure
4457 # the --cache-file=FILE option to use a different cache file; that is
4458 # what configure does when it calls configure scripts in
4459 # subdirectories, so they share the cache.
4460 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4461 # config.status only pays attention to the cache file if you give it the
4462 # --recheck option to rerun configure.
4465 # The following way of writing the cache mishandles newlines in values,
4466 # but we know of no workaround that is simple, portable, and efficient.
4467 # So, don't put newlines in cache variables' values.
4468 # Ultrix sh set writes to stderr and can't be redirected directly,
4469 # and sets the high bit in the cache file unless we assign to the vars.
4471 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4473 # `set' does not quote correctly, so add quotes (double-quote substitution
4474 # turns \\\\ into \\, and sed turns \\ into \).
4476 -e "s/'/'\\\\''/g" \
4477 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4480 # `set' quotes correctly as required by POSIX, so do not add quotes.
4481 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4484 if cmp -s $cache_file confcache; then
4487 if test -w $cache_file; then
4488 echo "updating cache $cache_file"
4489 cat confcache > $cache_file
4491 echo "not updating unwritable cache $cache_file"
4496 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4498 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4499 # Let make expand exec_prefix.
4500 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4502 # Any assignment to VPATH causes Sun make to only execute
4503 # the first set of double-colon rules, so remove it if not needed.
4504 # If there is a colon in the path, we need to keep it.
4505 if test "x$srcdir" = x.; then
4506 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4509 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4511 DEFS=-DHAVE_CONFIG_H
4513 # Without the "./", some shells look in PATH for config.status.
4514 : ${CONFIG_STATUS=./config.status}
4516 echo creating $CONFIG_STATUS
4517 rm -f $CONFIG_STATUS
4518 cat > $CONFIG_STATUS <<EOF
4520 # Generated automatically by configure.
4521 # Run this file to recreate the current configuration.
4522 # This directory was configured as follows,
4523 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4525 # $0 $ac_configure_args
4527 # Compiler output produced by configure, useful for debugging
4528 # configure, is in ./config.log if it exists.
4530 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4533 case "\$ac_option" in
4534 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4535 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4536 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4537 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4538 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4540 -help | --help | --hel | --he | --h)
4541 echo "\$ac_cs_usage"; exit 0 ;;
4542 *) echo "\$ac_cs_usage"; exit 1 ;;
4546 ac_given_srcdir=$srcdir
4547 ac_given_INSTALL="$INSTALL"
4549 trap 'rm -fr `echo "Makefile config/Makefile h/Makefile sbr/Makefile uip/Makefile \
4550 zotnet/Makefile zotnet/mts/Makefile zotnet/tws/Makefile \
4551 zotnet/mf/Makefile zotnet/bboards/Makefile mts/Makefile \
4552 mts/smtp/Makefile mts/sendmail/Makefile mts/mmdf/Makefile \
4553 etc/Makefile man/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4555 cat >> $CONFIG_STATUS <<EOF
4557 # Protect against being on the right side of a sed subst in config.status.
4558 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4559 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4563 s%@CFLAGS@%$CFLAGS%g
4564 s%@CPPFLAGS@%$CPPFLAGS%g
4565 s%@CXXFLAGS@%$CXXFLAGS%g
4566 s%@FFLAGS@%$FFLAGS%g
4568 s%@LDFLAGS@%$LDFLAGS%g
4570 s%@exec_prefix@%$exec_prefix%g
4571 s%@prefix@%$prefix%g
4572 s%@program_transform_name@%$program_transform_name%g
4573 s%@bindir@%$bindir%g
4574 s%@sbindir@%$sbindir%g
4575 s%@libexecdir@%$libexecdir%g
4576 s%@datadir@%$datadir%g
4577 s%@sysconfdir@%$sysconfdir%g
4578 s%@sharedstatedir@%$sharedstatedir%g
4579 s%@localstatedir@%$localstatedir%g
4580 s%@libdir@%$libdir%g
4581 s%@includedir@%$includedir%g
4582 s%@oldincludedir@%$oldincludedir%g
4583 s%@infodir@%$infodir%g
4584 s%@mandir@%$mandir%g
4586 s%@host_alias@%$host_alias%g
4587 s%@host_cpu@%$host_cpu%g
4588 s%@host_vendor@%$host_vendor%g
4589 s%@host_os@%$host_os%g
4590 s%@target@%$target%g
4591 s%@target_alias@%$target_alias%g
4592 s%@target_cpu@%$target_cpu%g
4593 s%@target_vendor@%$target_vendor%g
4594 s%@target_os@%$target_os%g
4596 s%@build_alias@%$build_alias%g
4597 s%@build_cpu@%$build_cpu%g
4598 s%@build_vendor@%$build_vendor%g
4599 s%@build_os@%$build_os%g
4600 s%@VERSION@%$VERSION%g
4602 s%@MTSLIB@%$MTSLIB%g
4603 s%@POPLIB@%$POPLIB%g
4604 s%@POPSED@%$POPSED%g
4606 s%@SET_MAKE@%$SET_MAKE%g
4607 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4608 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4609 s%@INSTALL_DATA@%$INSTALL_DATA%g
4610 s%@RANLIB@%$RANLIB%g
4613 s%@LEXLIB@%$LEXLIB%g
4614 s%@cutpath@%$cutpath%g
4615 s%@LIBTOOL@%$LIBTOOL%g
4616 s%@GNU_LIBTOOL@%$GNU_LIBTOOL%g
4617 s%@LORDER@%$LORDER%g
4619 s%@lspath@%$lspath%g
4620 s%@morepath@%$morepath%g
4621 s%@pagerpath@%$pagerpath%g
4622 s%@sendmailpath@%$sendmailpath%g
4623 s%@vipath@%$vipath%g
4624 s%@editorpath@%$editorpath%g
4625 s%@mailspool@%$mailspool%g
4626 s%@SETGID_MAIL@%$SETGID_MAIL%g
4627 s%@MAIL_SPOOL_GRP@%$MAIL_SPOOL_GRP%g
4629 s%@LIBOBJS@%$LIBOBJS%g
4630 s%@TERMLIB@%$TERMLIB%g
4631 s%@HESIOD_INCLUDES@%$HESIOD_INCLUDES%g
4632 s%@HESIOD_LIBS@%$HESIOD_LIBS%g
4633 s%@KRB4_INCLUDES@%$KRB4_INCLUDES%g
4634 s%@KRB4_LIBS@%$KRB4_LIBS%g
4635 s%@SIGNAL_H@%$SIGNAL_H%g
4640 cat >> $CONFIG_STATUS <<\EOF
4642 # Split the substitutions into bite-sized pieces for seds with
4643 # small command number limits, like on Digital OSF/1 and HP-UX.
4644 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4645 ac_file=1 # Number of current file.
4646 ac_beg=1 # First line for current file.
4647 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4650 while $ac_more_lines; do
4651 if test $ac_beg -gt 1; then
4652 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4654 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4656 if test ! -s conftest.s$ac_file; then
4658 rm -f conftest.s$ac_file
4660 if test -z "$ac_sed_cmds"; then
4661 ac_sed_cmds="sed -f conftest.s$ac_file"
4663 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4665 ac_file=`expr $ac_file + 1`
4667 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4670 if test -z "$ac_sed_cmds"; then
4675 cat >> $CONFIG_STATUS <<EOF
4677 CONFIG_FILES=\${CONFIG_FILES-"Makefile config/Makefile h/Makefile sbr/Makefile uip/Makefile \
4678 zotnet/Makefile zotnet/mts/Makefile zotnet/tws/Makefile \
4679 zotnet/mf/Makefile zotnet/bboards/Makefile mts/Makefile \
4680 mts/smtp/Makefile mts/sendmail/Makefile mts/mmdf/Makefile \
4681 etc/Makefile man/Makefile"}
4683 cat >> $CONFIG_STATUS <<\EOF
4684 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4685 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4687 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4688 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4689 *) ac_file_in="${ac_file}.in" ;;
4692 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4694 # Remove last slash and all that follows it. Not all systems have dirname.
4695 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4696 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4697 # The file is in a subdirectory.
4698 test ! -d "$ac_dir" && mkdir "$ac_dir"
4699 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4700 # A "../" for each directory in $ac_dir_suffix.
4701 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4703 ac_dir_suffix= ac_dots=
4706 case "$ac_given_srcdir" in
4708 if test -z "$ac_dots"; then top_srcdir=.
4709 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4710 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4712 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4713 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4716 case "$ac_given_INSTALL" in
4717 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4718 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4721 echo creating "$ac_file"
4723 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4725 *Makefile*) ac_comsub="1i\\
4726 # $configure_input" ;;
4730 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4732 s%@configure_input@%$configure_input%g
4733 s%@srcdir@%$srcdir%g
4734 s%@top_srcdir@%$top_srcdir%g
4735 s%@INSTALL@%$INSTALL%g
4736 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4740 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4741 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4743 # ac_d sets the value in "#define NAME VALUE" lines.
4744 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4745 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4748 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4749 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4750 ac_uB='\([ ]\)%\1#\2define\3'
4753 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4754 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4755 ac_eB='$%\1#\2define\3'
4759 if test "${CONFIG_HEADERS+set}" != set; then
4761 cat >> $CONFIG_STATUS <<EOF
4762 CONFIG_HEADERS="config.h"
4764 cat >> $CONFIG_STATUS <<\EOF
4766 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4767 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4769 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4770 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4771 *) ac_file_in="${ac_file}.in" ;;
4774 echo creating $ac_file
4776 rm -f conftest.frag conftest.in conftest.out
4777 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4778 cat $ac_file_inputs > conftest.in
4782 # Transform confdefs.h into a sed script conftest.vals that substitutes
4783 # the proper values into config.h.in to produce config.h. And first:
4784 # Protect against being on the right side of a sed subst in config.status.
4785 # Protect against being in an unquoted here document in config.status.
4787 cat > conftest.hdr <<\EOF
4790 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4794 sed -n -f conftest.hdr confdefs.h > conftest.vals
4797 # This sed command replaces #undef with comments. This is necessary, for
4798 # example, in the case of _POSIX_SOURCE, which is predefined and required
4799 # on some systems where configure will not decide to define it.
4800 cat >> conftest.vals <<\EOF
4801 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4804 # Break up conftest.vals because some shells have a limit on
4805 # the size of here documents, and old seds have small limits too.
4810 ac_lines=`grep -c . conftest.vals`
4811 # grep -c gives empty output for an empty file on some AIX systems.
4812 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4813 # Write a limited-size here document to conftest.frag.
4814 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4815 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4817 sed -f conftest.frag conftest.in > conftest.out
4819 mv conftest.out conftest.in
4821 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4823 mv conftest.tail conftest.vals
4827 cat >> $CONFIG_STATUS <<\EOF
4828 rm -f conftest.frag conftest.h
4829 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4830 cat conftest.in >> conftest.h
4832 if cmp -s $ac_file conftest.h 2>/dev/null; then
4833 echo "$ac_file is unchanged"
4836 # Remove last slash and all that follows it. Not all systems have dirname.
4837 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4838 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4839 # The file is in a subdirectory.
4840 test ! -d "$ac_dir" && mkdir "$ac_dir"
4843 mv conftest.h $ac_file
4848 cat >> $CONFIG_STATUS <<EOF
4851 cat >> $CONFIG_STATUS <<\EOF
4853 test -z "$CONFIG_HEADERS" || echo > stamp-h
4856 chmod +x $CONFIG_STATUS
4857 rm -fr confdefs* $ac_clean_files
4858 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4861 eval "nmhbin=${bindir}"; eval "nmhbin2=${nmhbin}"
4862 eval "nmhsysconf=${sysconfdir}"; eval "nmhsysconf2=${nmhsysconf}"
4863 eval "nmhlib=${libdir}"; eval "nmhlib2=${nmhlib}"
4864 eval "nmhman=${mandir}"
4869 nmh version : ${VERSION}
4870 target os : ${target}
4872 compiler flags : ${CFLAGS}
4873 linker flags : ${LDFLAGS}
4874 source code location : ${srcdir}
4875 binary install path : ${nmhbin2}
4876 libary install path : ${nmhlib2}
4877 config files install path : ${nmhsysconf2}
4878 man page install path : ${nmhman}
4879 transport system : ${MTS}
4880 default editor : ${editorpath}
4881 default pager : ${pagerpath}"