3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-mts=MTS specify the mail transport agent"
17 --with-editor=EDITOR specify the default editor"
19 --with-pager=PAGER specify the default pager"
21 --enable-nmh-mhe enable mhe support (DEFAULT)"
23 --enable-nmh-pop enable client-side support for pop"
25 --with-krb4=PREFIX specify location of Kerberos V4 for kpop support"
27 --with-hesiod=PREFIX specify location of Hesiod"
29 --enable-nmh-debug enable nmh code debugging"
30 ac_default_prefix=/usr/local/nmh
32 # Initialize some variables set by options.
33 # The variables have the same names as the options, with
34 # dashes changed to underlines.
36 cache_file=./config.cache
45 program_transform_name=s,x,x,
53 bindir='${exec_prefix}/bin'
54 sbindir='${exec_prefix}/sbin'
55 libexecdir='${exec_prefix}/libexec'
56 datadir='${prefix}/share'
57 sysconfdir='${prefix}/etc'
58 sharedstatedir='${prefix}/com'
59 localstatedir='${prefix}/var'
60 libdir='${exec_prefix}/lib'
61 includedir='${prefix}/include'
62 oldincludedir='/usr/include'
63 infodir='${prefix}/info'
64 mandir='${prefix}/man'
66 # Initialize some other variables.
69 SHELL=${CONFIG_SHELL-/bin/sh}
70 # Maximum number of lines to put in a shell here document.
77 # If the previous option needs an argument, assign it.
78 if test -n "$ac_prev"; then
79 eval "$ac_prev=\$ac_option"
85 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
89 # Accept the important Cygnus configure options, so we can diagnose typos.
93 -bindir | --bindir | --bindi | --bind | --bin | --bi)
95 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
96 bindir="$ac_optarg" ;;
98 -build | --build | --buil | --bui | --bu)
100 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
101 build="$ac_optarg" ;;
103 -cache-file | --cache-file | --cache-fil | --cache-fi \
104 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
105 ac_prev=cache_file ;;
106 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
107 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
108 cache_file="$ac_optarg" ;;
110 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
112 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
114 datadir="$ac_optarg" ;;
116 -disable-* | --disable-*)
117 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
118 # Reject names that are not valid shell variable names.
119 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
120 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
122 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
123 eval "enable_${ac_feature}=no" ;;
125 -enable-* | --enable-*)
126 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
127 # Reject names that are not valid shell variable names.
128 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
136 eval "enable_${ac_feature}='$ac_optarg'" ;;
138 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
139 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
140 | --exec | --exe | --ex)
141 ac_prev=exec_prefix ;;
142 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
143 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
144 | --exec=* | --exe=* | --ex=*)
145 exec_prefix="$ac_optarg" ;;
147 -gas | --gas | --ga | --g)
148 # Obsolete; use --with-gas.
151 -help | --help | --hel | --he)
152 # Omit some internal or obsolete options to make the list less imposing.
153 # This message is too long to be a string in the A/UX 3.1 sh.
155 Usage: configure [options] [host]
156 Options: [defaults in brackets after descriptions]
158 --cache-file=FILE cache test results in FILE
159 --help print this message
160 --no-create do not create output files
161 --quiet, --silent do not print \`checking...' messages
162 --version print the version of autoconf that created configure
163 Directory and file names:
164 --prefix=PREFIX install architecture-independent files in PREFIX
166 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
168 --bindir=DIR user executables in DIR [EPREFIX/bin]
169 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
170 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
171 --datadir=DIR read-only architecture-independent data in DIR
173 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
174 --sharedstatedir=DIR modifiable architecture-independent data in DIR
176 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
177 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
178 --includedir=DIR C header files in DIR [PREFIX/include]
179 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
180 --infodir=DIR info documentation in DIR [PREFIX/info]
181 --mandir=DIR man documentation in DIR [PREFIX/man]
182 --srcdir=DIR find the sources in DIR [configure dir or ..]
183 --program-prefix=PREFIX prepend PREFIX to installed program names
184 --program-suffix=SUFFIX append SUFFIX to installed program names
185 --program-transform-name=PROGRAM
186 run sed PROGRAM on installed program names
190 --build=BUILD configure for building on BUILD [BUILD=HOST]
191 --host=HOST configure for HOST [guessed]
192 --target=TARGET configure for TARGET [TARGET=HOST]
193 Features and packages:
194 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
195 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
196 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
197 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
198 --x-includes=DIR X include files are in DIR
199 --x-libraries=DIR X library files are in DIR
201 if test -n "$ac_help"; then
202 echo "--enable and --with options recognized:$ac_help"
206 -host | --host | --hos | --ho)
208 -host=* | --host=* | --hos=* | --ho=*)
211 -includedir | --includedir | --includedi | --included | --include \
212 | --includ | --inclu | --incl | --inc)
213 ac_prev=includedir ;;
214 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
215 | --includ=* | --inclu=* | --incl=* | --inc=*)
216 includedir="$ac_optarg" ;;
218 -infodir | --infodir | --infodi | --infod | --info | --inf)
220 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
221 infodir="$ac_optarg" ;;
223 -libdir | --libdir | --libdi | --libd)
225 -libdir=* | --libdir=* | --libdi=* | --libd=*)
226 libdir="$ac_optarg" ;;
228 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
229 | --libexe | --libex | --libe)
230 ac_prev=libexecdir ;;
231 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
232 | --libexe=* | --libex=* | --libe=*)
233 libexecdir="$ac_optarg" ;;
235 -localstatedir | --localstatedir | --localstatedi | --localstated \
236 | --localstate | --localstat | --localsta | --localst \
237 | --locals | --local | --loca | --loc | --lo)
238 ac_prev=localstatedir ;;
239 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
240 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
241 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
242 localstatedir="$ac_optarg" ;;
244 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
246 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
247 mandir="$ac_optarg" ;;
250 # Obsolete; use --without-fp.
253 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
257 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
258 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
261 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
262 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
263 | --oldin | --oldi | --old | --ol | --o)
264 ac_prev=oldincludedir ;;
265 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
266 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
267 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
268 oldincludedir="$ac_optarg" ;;
270 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
272 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
273 prefix="$ac_optarg" ;;
275 -program-prefix | --program-prefix | --program-prefi | --program-pref \
276 | --program-pre | --program-pr | --program-p)
277 ac_prev=program_prefix ;;
278 -program-prefix=* | --program-prefix=* | --program-prefi=* \
279 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
280 program_prefix="$ac_optarg" ;;
282 -program-suffix | --program-suffix | --program-suffi | --program-suff \
283 | --program-suf | --program-su | --program-s)
284 ac_prev=program_suffix ;;
285 -program-suffix=* | --program-suffix=* | --program-suffi=* \
286 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
287 program_suffix="$ac_optarg" ;;
289 -program-transform-name | --program-transform-name \
290 | --program-transform-nam | --program-transform-na \
291 | --program-transform-n | --program-transform- \
292 | --program-transform | --program-transfor \
293 | --program-transfo | --program-transf \
294 | --program-trans | --program-tran \
295 | --progr-tra | --program-tr | --program-t)
296 ac_prev=program_transform_name ;;
297 -program-transform-name=* | --program-transform-name=* \
298 | --program-transform-nam=* | --program-transform-na=* \
299 | --program-transform-n=* | --program-transform-=* \
300 | --program-transform=* | --program-transfor=* \
301 | --program-transfo=* | --program-transf=* \
302 | --program-trans=* | --program-tran=* \
303 | --progr-tra=* | --program-tr=* | --program-t=*)
304 program_transform_name="$ac_optarg" ;;
306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
307 | -silent | --silent | --silen | --sile | --sil)
310 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
312 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
314 sbindir="$ac_optarg" ;;
316 -sharedstatedir | --sharedstatedir | --sharedstatedi \
317 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
318 | --sharedst | --shareds | --shared | --share | --shar \
320 ac_prev=sharedstatedir ;;
321 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
322 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
323 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
325 sharedstatedir="$ac_optarg" ;;
327 -site | --site | --sit)
329 -site=* | --site=* | --sit=*)
332 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
334 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
335 srcdir="$ac_optarg" ;;
337 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
338 | --syscon | --sysco | --sysc | --sys | --sy)
339 ac_prev=sysconfdir ;;
340 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
341 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
342 sysconfdir="$ac_optarg" ;;
344 -target | --target | --targe | --targ | --tar | --ta | --t)
346 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
347 target="$ac_optarg" ;;
349 -v | -verbose | --verbose | --verbos | --verbo | --verb)
352 -version | --version | --versio | --versi | --vers)
353 echo "configure generated by autoconf version 2.13"
357 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
358 # Reject names that are not valid shell variable names.
359 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
360 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
362 ac_package=`echo $ac_package| sed 's/-/_/g'`
367 eval "with_${ac_package}='$ac_optarg'" ;;
369 -without-* | --without-*)
370 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
371 # Reject names that are not valid shell variable names.
372 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
373 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375 ac_package=`echo $ac_package| sed 's/-/_/g'`
376 eval "with_${ac_package}=no" ;;
379 # Obsolete; use --with-x.
382 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
383 | --x-incl | --x-inc | --x-in | --x-i)
384 ac_prev=x_includes ;;
385 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
386 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
387 x_includes="$ac_optarg" ;;
389 -x-libraries | --x-libraries | --x-librarie | --x-librari \
390 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
391 ac_prev=x_libraries ;;
392 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
393 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
394 x_libraries="$ac_optarg" ;;
396 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
400 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
401 echo "configure: warning: $ac_option: invalid host type" 1>&2
403 if test "x$nonopt" != xNONE; then
404 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
412 if test -n "$ac_prev"; then
413 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
416 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
418 # File descriptor usage:
421 # 2 errors and warnings
422 # 3 some systems may open it to /dev/tty
423 # 4 used on the Kubota Titan
424 # 6 checking for... messages and results
425 # 5 compiler messages saved in config.log
426 if test "$silent" = yes; then
434 This file contains any messages produced by compilers while
435 running configure, to aid debugging if configure makes a mistake.
438 # Strip out --no-create and --no-recursion so they do not pile up.
439 # Also quote any args containing shell metacharacters.
444 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
445 | --no-cr | --no-c) ;;
446 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
447 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
448 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
449 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
450 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
455 # Only set these to C if already set. These must not be set unconditionally
456 # because not all systems understand e.g. LANG=C (notably SCO).
457 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
458 # Non-C LC_CTYPE values break the ctype check.
459 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
460 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
461 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
462 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
464 # confdefs.h avoids OS command line length limits that DEFS can exceed.
465 rm -rf conftest* confdefs.h
466 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
469 # A filename unique to this package, relative to the directory that
470 # configure is in, which we can look for to find out if srcdir is correct.
471 ac_unique_file=h/nmh.h
473 # Find the source files, if location was not specified.
474 if test -z "$srcdir"; then
475 ac_srcdir_defaulted=yes
476 # Try the directory containing this script, then its parent.
478 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
479 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
481 if test ! -r $srcdir/$ac_unique_file; then
485 ac_srcdir_defaulted=no
487 if test ! -r $srcdir/$ac_unique_file; then
488 if test "$ac_srcdir_defaulted" = yes; then
489 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
491 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
494 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
496 # Prefer explicitly selected file to automatically selected ones.
497 if test -z "$CONFIG_SITE"; then
498 if test "x$prefix" != xNONE; then
499 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
501 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
504 for ac_site_file in $CONFIG_SITE; do
505 if test -r "$ac_site_file"; then
506 echo "loading site script $ac_site_file"
511 if test -r "$cache_file"; then
512 echo "loading cache $cache_file"
515 echo "creating cache $cache_file"
520 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
521 ac_cpp='$CPP $CPPFLAGS'
522 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
523 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
524 cross_compiling=$ac_cv_prog_cc_cross
528 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
529 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
530 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
537 ac_n= ac_c='\c' ac_t=
544 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
545 if test -f $ac_dir/install-sh; then
547 ac_install_sh="$ac_aux_dir/install-sh -c"
549 elif test -f $ac_dir/install.sh; then
551 ac_install_sh="$ac_aux_dir/install.sh -c"
555 if test -z "$ac_aux_dir"; then
556 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
558 ac_config_guess=$ac_aux_dir/config.guess
559 ac_config_sub=$ac_aux_dir/config.sub
560 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
563 # Do some error checking and defaulting for the host and target type.
565 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
568 # 1. You are not allowed to specify --host, --target, and nonopt at the
570 # 2. Host defaults to nonopt.
571 # 3. If nonopt is not specified, then host defaults to the current host,
572 # as determined by config.guess.
573 # 4. Target and build default to nonopt.
574 # 5. If nonopt is not specified, then target and build default to host.
576 # The aliases save the names the user supplied, while $host etc.
577 # will get canonicalized.
578 case $host---$target---$nonopt in
579 NONE---*---* | *---NONE---* | *---*---NONE) ;;
580 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
584 # Make sure we can run config.sub.
585 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
586 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
589 echo $ac_n "checking host system type""... $ac_c" 1>&6
590 echo "configure:591: checking host system type" >&5
593 case "$host_alias" in
597 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
598 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
600 *) host_alias=$nonopt ;;
604 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
605 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
606 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
607 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
608 echo "$ac_t""$host" 1>&6
610 echo $ac_n "checking target system type""... $ac_c" 1>&6
611 echo "configure:612: checking target system type" >&5
614 case "$target_alias" in
617 NONE) target_alias=$host_alias ;;
618 *) target_alias=$nonopt ;;
622 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
623 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
624 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
625 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
626 echo "$ac_t""$target" 1>&6
628 echo $ac_n "checking build system type""... $ac_c" 1>&6
629 echo "configure:630: checking build system type" >&5
632 case "$build_alias" in
635 NONE) build_alias=$host_alias ;;
636 *) build_alias=$nonopt ;;
640 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
641 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
642 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
643 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
644 echo "$ac_t""$build" 1>&6
646 test "$host_alias" != "$target_alias" &&
647 test "$program_prefix$program_suffix$program_transform_name" = \
649 program_prefix=${target_alias}-
652 VERSION=`sed -e 's/nmh-//' ${srcdir}/VERSION`
653 echo "configuring for nmh-$VERSION"
655 # Check whether --with-mts or --without-mts was given.
656 if test "${with_mts+set}" = set; then
662 if test x$with_mts = xsmtp; then
664 MTSLIB="mts/smtp/libsmtp.a"
665 cat >> confdefs.h <<\EOF
668 elif test x$with_mts = xsendmail; then
670 MTSLIB="mts/sendmail/libsend.a"
671 cat >> confdefs.h <<\EOF
676 MTSLIB="mts/smtp/libsmtp.a"
677 cat >> confdefs.h <<\EOF
685 # Check whether --with-editor or --without-editor was given.
686 if test "${with_editor+set}" = set; then
687 withval="$with_editor"
692 if test -n "$with_editor"; then
693 editorpath="$with_editor"
696 # Check whether --with-pager or --without-pager was given.
697 if test "${with_pager+set}" = set; then
698 withval="$with_pager"
703 if test -n "$with_pager"; then
704 pagerpath="$with_pager"
707 # Check whether --enable-nmh-mhe or --disable-nmh-mhe was given.
708 if test "${enable_nmh_mhe+set}" = set; then
709 enableval="$enable_nmh_mhe"
714 if test x$enable_nmh_mhe != xno; then
715 cat >> confdefs.h <<\EOF
720 # Check whether --enable-nmh-pop or --disable-nmh-pop was given.
721 if test "${enable_nmh_pop+set}" = set; then
722 enableval="$enable_nmh_pop"
726 if test x$enable_nmh_pop = xyes; then
727 cat >> confdefs.h <<\EOF
731 POPSED='/^%nmhbeginpop%/d;/^%nmhendpop%/d'
733 POPSED='/^%nmhbeginpop%/,/^%nmhendpop%/d'
736 # Check whether --with-krb4 or --without-krb4 was given.
737 if test "${with_krb4+set}" = set; then
742 if test x$with_krb4 != x -a x$with_krb4 != xno; then
743 cat >> confdefs.h <<\EOF
746 cat >> confdefs.h <<\EOF
747 #define KPOP_PRINCIPAL "pop"
751 # Check whether --with-hesiod or --without-hesiod was given.
752 if test "${with_hesiod+set}" = set; then
753 withval="$with_hesiod"
757 if test x$with_hesiod != x -a x$with_hesiod != xno; then
758 cat >> confdefs.h <<\EOF
763 # Check whether --enable-nmh-debug or --disable-nmh-debug was given.
764 if test "${enable_nmh_debug+set}" = set; then
765 enableval="$enable_nmh_debug"
772 test -z "$CFLAGS" && CFLAGS= auto_cflags=1
773 if test x$enable_nmh_debug = xyes; then
774 test -z "$LDFLAGS" && LDFLAGS=-g
777 # Extract the first word of "gcc", so it can be a program name with args.
778 set dummy gcc; ac_word=$2
779 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
780 echo "configure:781: checking for $ac_word" >&5
781 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
782 echo $ac_n "(cached) $ac_c" 1>&6
784 if test -n "$CC"; then
785 ac_cv_prog_CC="$CC" # Let the user override the test.
787 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
789 for ac_dir in $ac_dummy; do
790 test -z "$ac_dir" && ac_dir=.
791 if test -f $ac_dir/$ac_word; then
800 if test -n "$CC"; then
801 echo "$ac_t""$CC" 1>&6
803 echo "$ac_t""no" 1>&6
806 if test -z "$CC"; then
807 # Extract the first word of "cc", so it can be a program name with args.
808 set dummy cc; ac_word=$2
809 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
810 echo "configure:811: checking for $ac_word" >&5
811 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
812 echo $ac_n "(cached) $ac_c" 1>&6
814 if test -n "$CC"; then
815 ac_cv_prog_CC="$CC" # Let the user override the test.
817 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
820 for ac_dir in $ac_dummy; do
821 test -z "$ac_dir" && ac_dir=.
822 if test -f $ac_dir/$ac_word; then
823 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
832 if test $ac_prog_rejected = yes; then
833 # We found a bogon in the path, so make sure we never use it.
834 set dummy $ac_cv_prog_CC
836 if test $# -gt 0; then
837 # We chose a different compiler from the bogus one.
838 # However, it has the same basename, so the bogon will be chosen
839 # first if we set CC to just the basename; use the full file name.
841 set dummy "$ac_dir/$ac_word" "$@"
849 if test -n "$CC"; then
850 echo "$ac_t""$CC" 1>&6
852 echo "$ac_t""no" 1>&6
855 if test -z "$CC"; then
858 # Extract the first word of "cl", so it can be a program name with args.
859 set dummy cl; ac_word=$2
860 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
861 echo "configure:862: checking for $ac_word" >&5
862 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
863 echo $ac_n "(cached) $ac_c" 1>&6
865 if test -n "$CC"; then
866 ac_cv_prog_CC="$CC" # Let the user override the test.
868 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
870 for ac_dir in $ac_dummy; do
871 test -z "$ac_dir" && ac_dir=.
872 if test -f $ac_dir/$ac_word; then
881 if test -n "$CC"; then
882 echo "$ac_t""$CC" 1>&6
884 echo "$ac_t""no" 1>&6
889 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
892 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
893 echo "configure:894: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
896 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
897 ac_cpp='$CPP $CPPFLAGS'
898 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
899 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
900 cross_compiling=$ac_cv_prog_cc_cross
902 cat > conftest.$ac_ext << EOF
904 #line 905 "configure"
905 #include "confdefs.h"
909 if { (eval echo configure:910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
910 ac_cv_prog_cc_works=yes
911 # If we can't run a trivial program, we are probably using a cross compiler.
912 if (./conftest; exit) 2>/dev/null; then
913 ac_cv_prog_cc_cross=no
915 ac_cv_prog_cc_cross=yes
918 echo "configure: failed program was:" >&5
919 cat conftest.$ac_ext >&5
920 ac_cv_prog_cc_works=no
924 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
925 ac_cpp='$CPP $CPPFLAGS'
926 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
927 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
928 cross_compiling=$ac_cv_prog_cc_cross
930 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
931 if test $ac_cv_prog_cc_works = no; then
932 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
934 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
935 echo "configure:936: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
936 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
937 cross_compiling=$ac_cv_prog_cc_cross
939 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
940 echo "configure:941: checking whether we are using GNU C" >&5
941 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
942 echo $ac_n "(cached) $ac_c" 1>&6
944 cat > conftest.c <<EOF
949 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
956 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
958 if test $ac_cv_prog_gcc = yes; then
964 ac_test_CFLAGS="${CFLAGS+set}"
965 ac_save_CFLAGS="$CFLAGS"
967 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
968 echo "configure:969: checking whether ${CC-cc} accepts -g" >&5
969 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
970 echo $ac_n "(cached) $ac_c" 1>&6
972 echo 'void f(){}' > conftest.c
973 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
982 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
983 if test "$ac_test_CFLAGS" = set; then
984 CFLAGS="$ac_save_CFLAGS"
985 elif test $ac_cv_prog_cc_g = yes; then
986 if test "$GCC" = yes; then
992 if test "$GCC" = yes; then
1000 if test -n "$auto_cflags"; then
1001 if test x$enable_nmh_debug = xyes; then
1002 if test -n "$GCC"; then
1003 test -z "$CFLAGS" && CFLAGS="-Wall -g" || CFLAGS="$CFLAGS -Wall -g"
1005 test -z "$CFLAGS" && CFLAGS=-g || CFLAGS="$CFLAGS -g"
1008 test -z "$LDFLAGS" && LDFLAGS=-s
1009 if test -n "$GCC"; then
1010 test -z "$CFLAGS" && CFLAGS=-O2 || CFLAGS="$CFLAGS -O2"
1012 test -z "$CFLAGS" && CFLAGS=-O || CFLAGS="$CFLAGS -O"
1017 echo $ac_n "checking for working const""... $ac_c" 1>&6
1018 echo "configure:1019: checking for working const" >&5
1019 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1020 echo $ac_n "(cached) $ac_c" 1>&6
1022 cat > conftest.$ac_ext <<EOF
1023 #line 1024 "configure"
1024 #include "confdefs.h"
1028 /* Ultrix mips cc rejects this. */
1029 typedef int charset[2]; const charset x;
1030 /* SunOS 4.1.1 cc rejects this. */
1031 char const *const *ccp;
1033 /* NEC SVR4.0.2 mips cc rejects this. */
1034 struct point {int x, y;};
1035 static struct point const zero = {0,0};
1036 /* AIX XL C 1.02.0.0 rejects this.
1037 It does not let you subtract one const X* pointer from another in an arm
1038 of an if-expression whose if-part is not a constant expression */
1039 const char *g = "string";
1040 ccp = &g + (g ? g-g : 0);
1041 /* HPUX 7.0 cc rejects these. */
1044 ccp = (char const *const *) p;
1045 { /* SCO 3.2v4 cc rejects this. */
1047 char const *s = 0 ? (char *) 0 : (char const *) 0;
1051 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1053 const int *foo = &x[0];
1056 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1057 typedef const int *iptr;
1061 { /* AIX XL C 1.02.0.0 rejects this saying
1062 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1063 struct s { int j; const int *ap[3]; };
1064 struct s *b; b->j = 5;
1066 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1072 if { (eval echo configure:1073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1076 echo "configure: failed program was:" >&5
1077 cat conftest.$ac_ext >&5
1084 echo "$ac_t""$ac_cv_c_const" 1>&6
1085 if test $ac_cv_c_const = no; then
1086 cat >> confdefs.h <<\EOF
1092 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1093 echo "configure:1094: checking whether ${MAKE-make} sets \${MAKE}" >&5
1094 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1095 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1096 echo $ac_n "(cached) $ac_c" 1>&6
1098 cat > conftestmake <<\EOF
1100 @echo 'ac_maketemp="${MAKE}"'
1102 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1103 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1104 if test -n "$ac_maketemp"; then
1105 eval ac_cv_prog_make_${ac_make}_set=yes
1107 eval ac_cv_prog_make_${ac_make}_set=no
1111 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1112 echo "$ac_t""yes" 1>&6
1115 echo "$ac_t""no" 1>&6
1116 SET_MAKE="MAKE=${MAKE-make}"
1118 # Find a good install program. We prefer a C program (faster),
1119 # so one script is as good as another. But avoid the broken or
1120 # incompatible versions:
1121 # SysV /etc/install, /usr/sbin/install
1122 # SunOS /usr/etc/install
1123 # IRIX /sbin/install
1125 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1126 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1127 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1128 # ./install, which can be erroneously created by make from ./install.sh.
1129 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1130 echo "configure:1131: checking for a BSD compatible install" >&5
1131 if test -z "$INSTALL"; then
1132 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1133 echo $ac_n "(cached) $ac_c" 1>&6
1135 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1136 for ac_dir in $PATH; do
1137 # Account for people who put trailing slashes in PATH elements.
1139 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1141 # OSF1 and SCO ODT 3.0 have their own names for install.
1142 # Don't use installbsd from OSF since it installs stuff as root
1144 for ac_prog in ginstall scoinst install; do
1145 if test -f $ac_dir/$ac_prog; then
1146 if test $ac_prog = install &&
1147 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1148 # AIX install. It has an incompatible calling convention.
1151 ac_cv_path_install="$ac_dir/$ac_prog -c"
1162 if test "${ac_cv_path_install+set}" = set; then
1163 INSTALL="$ac_cv_path_install"
1165 # As a last resort, use the slow shell script. We don't cache a
1166 # path for INSTALL within a source directory, because that will
1167 # break other packages using the cache if that directory is
1168 # removed, or if the path is relative.
1169 INSTALL="$ac_install_sh"
1172 echo "$ac_t""$INSTALL" 1>&6
1174 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1175 # It thinks the first close brace ends the variable substitution.
1176 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1178 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1180 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1181 # Extract the first word of "ranlib", so it can be a program name with args.
1182 set dummy ranlib; ac_word=$2
1183 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1184 echo "configure:1185: checking for $ac_word" >&5
1185 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1186 echo $ac_n "(cached) $ac_c" 1>&6
1188 if test -n "$RANLIB"; then
1189 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1191 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1193 for ac_dir in $ac_dummy; do
1194 test -z "$ac_dir" && ac_dir=.
1195 if test -f $ac_dir/$ac_word; then
1196 ac_cv_prog_RANLIB="ranlib"
1201 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1204 RANLIB="$ac_cv_prog_RANLIB"
1205 if test -n "$RANLIB"; then
1206 echo "$ac_t""$RANLIB" 1>&6
1208 echo "$ac_t""no" 1>&6
1210 for ac_prog in mawk gawk nawk awk
1212 # Extract the first word of "$ac_prog", so it can be a program name with args.
1213 set dummy $ac_prog; ac_word=$2
1214 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1215 echo "configure:1216: checking for $ac_word" >&5
1216 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1217 echo $ac_n "(cached) $ac_c" 1>&6
1219 if test -n "$AWK"; then
1220 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1222 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1224 for ac_dir in $ac_dummy; do
1225 test -z "$ac_dir" && ac_dir=.
1226 if test -f $ac_dir/$ac_word; then
1227 ac_cv_prog_AWK="$ac_prog"
1234 AWK="$ac_cv_prog_AWK"
1235 if test -n "$AWK"; then
1236 echo "$ac_t""$AWK" 1>&6
1238 echo "$ac_t""no" 1>&6
1241 test -n "$AWK" && break
1243 # Extract the first word of "flex", so it can be a program name with args.
1244 set dummy flex; ac_word=$2
1245 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1246 echo "configure:1247: checking for $ac_word" >&5
1247 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1248 echo $ac_n "(cached) $ac_c" 1>&6
1250 if test -n "$LEX"; then
1251 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1253 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1255 for ac_dir in $ac_dummy; do
1256 test -z "$ac_dir" && ac_dir=.
1257 if test -f $ac_dir/$ac_word; then
1258 ac_cv_prog_LEX="flex"
1263 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1266 LEX="$ac_cv_prog_LEX"
1267 if test -n "$LEX"; then
1268 echo "$ac_t""$LEX" 1>&6
1270 echo "$ac_t""no" 1>&6
1273 if test -z "$LEXLIB"
1279 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1280 echo "configure:1281: checking for yywrap in -l$ac_lib" >&5
1281 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1282 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1283 echo $ac_n "(cached) $ac_c" 1>&6
1285 ac_save_LIBS="$LIBS"
1286 LIBS="-l$ac_lib $LIBS"
1287 cat > conftest.$ac_ext <<EOF
1288 #line 1289 "configure"
1289 #include "confdefs.h"
1290 /* Override any gcc2 internal prototype to avoid an error. */
1291 /* We use char because int might match the return type of a gcc2
1292 builtin and then its argument prototype would still apply. */
1299 if { (eval echo configure:1300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1301 eval "ac_cv_lib_$ac_lib_var=yes"
1303 echo "configure: failed program was:" >&5
1304 cat conftest.$ac_ext >&5
1306 eval "ac_cv_lib_$ac_lib_var=no"
1309 LIBS="$ac_save_LIBS"
1312 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1313 echo "$ac_t""yes" 1>&6
1316 echo "$ac_t""no" 1>&6
1321 # Extract the first word of "lorder", so it can be a program name with args.
1322 set dummy lorder; ac_word=$2
1323 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1324 echo "configure:1325: checking for $ac_word" >&5
1325 if eval "test \"`echo '$''{'ac_cv_prog_LORDER'+set}'`\" = set"; then
1326 echo $ac_n "(cached) $ac_c" 1>&6
1328 if test -n "$LORDER"; then
1329 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
1331 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1333 for ac_dir in $ac_dummy; do
1334 test -z "$ac_dir" && ac_dir=.
1335 if test -f $ac_dir/$ac_word; then
1336 ac_cv_prog_LORDER="lorder"
1341 test -z "$ac_cv_prog_LORDER" && ac_cv_prog_LORDER="no"
1344 LORDER="$ac_cv_prog_LORDER"
1345 if test -n "$LORDER"; then
1346 echo "$ac_t""$LORDER" 1>&6
1348 echo "$ac_t""no" 1>&6
1350 # Extract the first word of "tsort", so it can be a program name with args.
1351 set dummy tsort; ac_word=$2
1352 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1353 echo "configure:1354: checking for $ac_word" >&5
1354 if eval "test \"`echo '$''{'ac_cv_prog_TSORT'+set}'`\" = set"; then
1355 echo $ac_n "(cached) $ac_c" 1>&6
1357 if test -n "$TSORT"; then
1358 ac_cv_prog_TSORT="$TSORT" # Let the user override the test.
1360 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1362 for ac_dir in $ac_dummy; do
1363 test -z "$ac_dir" && ac_dir=.
1364 if test -f $ac_dir/$ac_word; then
1365 ac_cv_prog_TSORT="tsort"
1370 test -z "$ac_cv_prog_TSORT" && ac_cv_prog_TSORT="no"
1373 TSORT="$ac_cv_prog_TSORT"
1374 if test -n "$TSORT"; then
1375 echo "$ac_t""$TSORT" 1>&6
1377 echo "$ac_t""no" 1>&6
1380 if test x$ac_cv_prog_LORDER != xlorder -o x$ac_cv_prog_TSORT != xtsort; then
1385 pathtmp=/usr/lib:/usr/sbin:/usr/etc:/usr/ucblib:/usr/bin:/bin
1386 # Extract the first word of "sendmail", so it can be a program name with args.
1387 set dummy sendmail; ac_word=$2
1388 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1389 echo "configure:1390: checking for $ac_word" >&5
1390 if eval "test \"`echo '$''{'ac_cv_path_sendmailpath'+set}'`\" = set"; then
1391 echo $ac_n "(cached) $ac_c" 1>&6
1393 case "$sendmailpath" in
1395 ac_cv_path_sendmailpath="$sendmailpath" # Let the user override the test with a path.
1398 ac_cv_path_sendmailpath="$sendmailpath" # Let the user override the test with a dos path.
1401 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1403 for ac_dir in $ac_dummy; do
1404 test -z "$ac_dir" && ac_dir=.
1405 if test -f $ac_dir/$ac_word; then
1406 ac_cv_path_sendmailpath="$ac_dir/$ac_word"
1411 test -z "$ac_cv_path_sendmailpath" && ac_cv_path_sendmailpath="no"
1415 sendmailpath="$ac_cv_path_sendmailpath"
1416 if test -n "$sendmailpath"; then
1417 echo "$ac_t""$sendmailpath" 1>&6
1419 echo "$ac_t""no" 1>&6
1423 pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin
1424 # Extract the first word of "more", so it can be a program name with args.
1425 set dummy more; ac_word=$2
1426 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1427 echo "configure:1428: checking for $ac_word" >&5
1428 if eval "test \"`echo '$''{'ac_cv_path_morepath'+set}'`\" = set"; then
1429 echo $ac_n "(cached) $ac_c" 1>&6
1433 ac_cv_path_morepath="$morepath" # Let the user override the test with a path.
1436 ac_cv_path_morepath="$morepath" # Let the user override the test with a dos path.
1439 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1441 for ac_dir in $ac_dummy; do
1442 test -z "$ac_dir" && ac_dir=.
1443 if test -f $ac_dir/$ac_word; then
1444 ac_cv_path_morepath="$ac_dir/$ac_word"
1449 test -z "$ac_cv_path_morepath" && ac_cv_path_morepath="no"
1453 morepath="$ac_cv_path_morepath"
1454 if test -n "$morepath"; then
1455 echo "$ac_t""$morepath" 1>&6
1457 echo "$ac_t""no" 1>&6
1461 if test -z "$pagerpath"; then
1462 pagerpath="$morepath"
1465 pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin
1466 # Extract the first word of "vi", so it can be a program name with args.
1467 set dummy vi; 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_vipath'+set}'`\" = set"; then
1471 echo $ac_n "(cached) $ac_c" 1>&6
1475 ac_cv_path_vipath="$vipath" # Let the user override the test with a path.
1478 ac_cv_path_vipath="$vipath" # 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_vipath="$ac_dir/$ac_word"
1491 test -z "$ac_cv_path_vipath" && ac_cv_path_vipath="no"
1495 vipath="$ac_cv_path_vipath"
1496 if test -n "$vipath"; then
1497 echo "$ac_t""$vipath" 1>&6
1499 echo "$ac_t""no" 1>&6
1503 if test -z "$editorpath"; then
1504 editorpath="$vipath"
1507 echo $ac_n "checking for broken vi""... $ac_c" 1>&6
1508 echo "configure:1509: checking for broken vi" >&5
1509 if eval "test \"`echo '$''{'nmh_cv_attvibug'+set}'`\" = set"; then
1510 echo $ac_n "(cached) $ac_c" 1>&6
1512 if echo 'r /nonexist-file
1513 q' | ex > /dev/null 2>&1
1521 echo "$ac_t""$nmh_cv_attvibug" 1>&6
1523 if test "$nmh_cv_attvibug" = yes; then
1524 cat >> confdefs.h <<\EOF
1530 echo $ac_n "checking where mail spool is located""... $ac_c" 1>&6
1531 echo "configure:1532: checking where mail spool is located" >&5
1532 if eval "test \"`echo '$''{'nmh_cv_mailspool'+set}'`\" = set"; then
1533 echo $ac_n "(cached) $ac_c" 1>&6
1535 for mailspool in /var/mail /var/spool/mail /usr/spool/mail /dev/null; do
1536 test -d $mailspool && break
1538 nmh_cv_mailspool=$mailspool
1542 echo "$ac_t""$nmh_cv_mailspool" 1>&6
1543 mailspool=$nmh_cv_mailspool
1546 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1548 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1549 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1550 echo "configure:1551: checking for $ac_hdr that defines DIR" >&5
1551 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1552 echo $ac_n "(cached) $ac_c" 1>&6
1554 cat > conftest.$ac_ext <<EOF
1555 #line 1556 "configure"
1556 #include "confdefs.h"
1557 #include <sys/types.h>
1563 if { (eval echo configure:1564: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1565 eval "ac_cv_header_dirent_$ac_safe=yes"
1567 echo "configure: failed program was:" >&5
1568 cat conftest.$ac_ext >&5
1570 eval "ac_cv_header_dirent_$ac_safe=no"
1574 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1575 echo "$ac_t""yes" 1>&6
1576 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1577 cat >> confdefs.h <<EOF
1578 #define $ac_tr_hdr 1
1580 ac_header_dirent=$ac_hdr; break
1582 echo "$ac_t""no" 1>&6
1585 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1586 if test $ac_header_dirent = dirent.h; then
1587 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1588 echo "configure:1589: checking for opendir in -ldir" >&5
1589 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1590 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1591 echo $ac_n "(cached) $ac_c" 1>&6
1593 ac_save_LIBS="$LIBS"
1595 cat > conftest.$ac_ext <<EOF
1596 #line 1597 "configure"
1597 #include "confdefs.h"
1598 /* Override any gcc2 internal prototype to avoid an error. */
1599 /* We use char because int might match the return type of a gcc2
1600 builtin and then its argument prototype would still apply. */
1607 if { (eval echo configure:1608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1609 eval "ac_cv_lib_$ac_lib_var=yes"
1611 echo "configure: failed program was:" >&5
1612 cat conftest.$ac_ext >&5
1614 eval "ac_cv_lib_$ac_lib_var=no"
1617 LIBS="$ac_save_LIBS"
1620 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1621 echo "$ac_t""yes" 1>&6
1624 echo "$ac_t""no" 1>&6
1628 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1629 echo "configure:1630: checking for opendir in -lx" >&5
1630 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1631 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1632 echo $ac_n "(cached) $ac_c" 1>&6
1634 ac_save_LIBS="$LIBS"
1636 cat > conftest.$ac_ext <<EOF
1637 #line 1638 "configure"
1638 #include "confdefs.h"
1639 /* Override any gcc2 internal prototype to avoid an error. */
1640 /* We use char because int might match the return type of a gcc2
1641 builtin and then its argument prototype would still apply. */
1648 if { (eval echo configure:1649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1650 eval "ac_cv_lib_$ac_lib_var=yes"
1652 echo "configure: failed program was:" >&5
1653 cat conftest.$ac_ext >&5
1655 eval "ac_cv_lib_$ac_lib_var=no"
1658 LIBS="$ac_save_LIBS"
1661 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1662 echo "$ac_t""yes" 1>&6
1665 echo "$ac_t""no" 1>&6
1670 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1671 echo "configure:1672: checking how to run the C preprocessor" >&5
1672 # On Suns, sometimes $CPP names a directory.
1673 if test -n "$CPP" && test -d "$CPP"; then
1676 if test -z "$CPP"; then
1677 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1678 echo $ac_n "(cached) $ac_c" 1>&6
1680 # This must be in double quotes, not single quotes, because CPP may get
1681 # substituted into the Makefile and "${CC-cc}" will confuse make.
1683 # On the NeXT, cc -E runs the code through the compiler's parser,
1684 # not just through cpp.
1685 cat > conftest.$ac_ext <<EOF
1686 #line 1687 "configure"
1687 #include "confdefs.h"
1691 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1692 { (eval echo configure:1693: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1693 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1694 if test -z "$ac_err"; then
1698 echo "configure: failed program was:" >&5
1699 cat conftest.$ac_ext >&5
1701 CPP="${CC-cc} -E -traditional-cpp"
1702 cat > conftest.$ac_ext <<EOF
1703 #line 1704 "configure"
1704 #include "confdefs.h"
1708 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1709 { (eval echo configure:1710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1710 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1711 if test -z "$ac_err"; then
1715 echo "configure: failed program was:" >&5
1716 cat conftest.$ac_ext >&5
1718 CPP="${CC-cc} -nologo -E"
1719 cat > conftest.$ac_ext <<EOF
1720 #line 1721 "configure"
1721 #include "confdefs.h"
1725 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1726 { (eval echo configure:1727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1727 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1728 if test -z "$ac_err"; then
1732 echo "configure: failed program was:" >&5
1733 cat conftest.$ac_ext >&5
1742 ac_cv_prog_CPP="$CPP"
1744 CPP="$ac_cv_prog_CPP"
1746 ac_cv_prog_CPP="$CPP"
1748 echo "$ac_t""$CPP" 1>&6
1750 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1751 echo "configure:1752: checking for ANSI C header files" >&5
1752 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1753 echo $ac_n "(cached) $ac_c" 1>&6
1755 cat > conftest.$ac_ext <<EOF
1756 #line 1757 "configure"
1757 #include "confdefs.h"
1763 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1764 { (eval echo configure:1765: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1765 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1766 if test -z "$ac_err"; then
1768 ac_cv_header_stdc=yes
1771 echo "configure: failed program was:" >&5
1772 cat conftest.$ac_ext >&5
1774 ac_cv_header_stdc=no
1778 if test $ac_cv_header_stdc = yes; then
1779 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1780 cat > conftest.$ac_ext <<EOF
1781 #line 1782 "configure"
1782 #include "confdefs.h"
1785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1786 egrep "memchr" >/dev/null 2>&1; then
1790 ac_cv_header_stdc=no
1796 if test $ac_cv_header_stdc = yes; then
1797 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1798 cat > conftest.$ac_ext <<EOF
1799 #line 1800 "configure"
1800 #include "confdefs.h"
1803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1804 egrep "free" >/dev/null 2>&1; then
1808 ac_cv_header_stdc=no
1814 if test $ac_cv_header_stdc = yes; then
1815 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1816 if test "$cross_compiling" = yes; then
1819 cat > conftest.$ac_ext <<EOF
1820 #line 1821 "configure"
1821 #include "confdefs.h"
1823 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1824 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1825 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1826 int main () { int i; for (i = 0; i < 256; i++)
1827 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1831 if { (eval echo configure:1832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1835 echo "configure: failed program was:" >&5
1836 cat conftest.$ac_ext >&5
1838 ac_cv_header_stdc=no
1846 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1847 if test $ac_cv_header_stdc = yes; then
1848 cat >> confdefs.h <<\EOF
1849 #define STDC_HEADERS 1
1854 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1855 echo "configure:1856: checking whether time.h and sys/time.h may both be included" >&5
1856 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1857 echo $ac_n "(cached) $ac_c" 1>&6
1859 cat > conftest.$ac_ext <<EOF
1860 #line 1861 "configure"
1861 #include "confdefs.h"
1862 #include <sys/types.h>
1863 #include <sys/time.h>
1869 if { (eval echo configure:1870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1871 ac_cv_header_time=yes
1873 echo "configure: failed program was:" >&5
1874 cat conftest.$ac_ext >&5
1876 ac_cv_header_time=no
1881 echo "$ac_t""$ac_cv_header_time" 1>&6
1882 if test $ac_cv_header_time = yes; then
1883 cat >> confdefs.h <<\EOF
1884 #define TIME_WITH_SYS_TIME 1
1889 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1890 echo "configure:1891: checking for sys/wait.h that is POSIX.1 compatible" >&5
1891 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1892 echo $ac_n "(cached) $ac_c" 1>&6
1894 cat > conftest.$ac_ext <<EOF
1895 #line 1896 "configure"
1896 #include "confdefs.h"
1897 #include <sys/types.h>
1898 #include <sys/wait.h>
1900 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1903 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1908 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1911 if { (eval echo configure:1912: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1913 ac_cv_header_sys_wait_h=yes
1915 echo "configure: failed program was:" >&5
1916 cat conftest.$ac_ext >&5
1918 ac_cv_header_sys_wait_h=no
1923 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1924 if test $ac_cv_header_sys_wait_h = yes; then
1925 cat >> confdefs.h <<\EOF
1926 #define HAVE_SYS_WAIT_H 1
1931 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
1932 echo "configure:1933: checking whether stat file-mode macros are broken" >&5
1933 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
1934 echo $ac_n "(cached) $ac_c" 1>&6
1936 cat > conftest.$ac_ext <<EOF
1937 #line 1938 "configure"
1938 #include "confdefs.h"
1939 #include <sys/types.h>
1940 #include <sys/stat.h>
1942 #if defined(S_ISBLK) && defined(S_IFDIR)
1943 # if S_ISBLK (S_IFDIR)
1948 #if defined(S_ISBLK) && defined(S_IFCHR)
1949 # if S_ISBLK (S_IFCHR)
1954 #if defined(S_ISLNK) && defined(S_IFREG)
1955 # if S_ISLNK (S_IFREG)
1960 #if defined(S_ISSOCK) && defined(S_IFREG)
1961 # if S_ISSOCK (S_IFREG)
1967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1968 egrep "You lose" >/dev/null 2>&1; then
1970 ac_cv_header_stat_broken=yes
1973 ac_cv_header_stat_broken=no
1979 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
1980 if test $ac_cv_header_stat_broken = yes; then
1981 cat >> confdefs.h <<\EOF
1982 #define STAT_MACROS_BROKEN 1
1987 for ac_hdr in string.h memory.h stdlib.h unistd.h errno.h fcntl.h \
1988 limits.h crypt.h termcap.h termio.h termios.h locale.h \
1989 sys/param.h sys/time.h sys/utsname.h arpa/inet.h \
1992 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1993 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1994 echo "configure:1995: checking for $ac_hdr" >&5
1995 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1996 echo $ac_n "(cached) $ac_c" 1>&6
1998 cat > conftest.$ac_ext <<EOF
1999 #line 2000 "configure"
2000 #include "confdefs.h"
2003 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2004 { (eval echo configure:2005: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2005 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2006 if test -z "$ac_err"; then
2008 eval "ac_cv_header_$ac_safe=yes"
2011 echo "configure: failed program was:" >&5
2012 cat conftest.$ac_ext >&5
2014 eval "ac_cv_header_$ac_safe=no"
2018 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2019 echo "$ac_t""yes" 1>&6
2020 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2021 cat >> confdefs.h <<EOF
2022 #define $ac_tr_hdr 1
2026 echo "$ac_t""no" 1>&6
2031 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
2032 echo "configure:2033: checking POSIX termios" >&5
2033 if eval "test \"`echo '$''{'nmh_cv_sys_posix_termios'+set}'`\" = set"; then
2034 echo $ac_n "(cached) $ac_c" 1>&6
2036 cat > conftest.$ac_ext <<EOF
2037 #line 2038 "configure"
2038 #include "confdefs.h"
2039 #include <sys/types.h>
2041 #include <termios.h>
2043 /* SunOS 4.0.3 has termios.h but not the library calls. */
2047 if { (eval echo configure:2048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2049 nmh_cv_sys_posix_termios=yes
2051 echo "configure: failed program was:" >&5
2052 cat conftest.$ac_ext >&5
2054 nmh_cv_sys_posix_termios=no
2059 echo "$ac_t""$nmh_cv_sys_posix_termios" 1>&6
2061 if test $nmh_cv_sys_posix_termios = yes; then
2062 echo $ac_n "checking TIOCGWINSZ in termios.h""... $ac_c" 1>&6
2063 echo "configure:2064: checking TIOCGWINSZ in termios.h" >&5
2064 if eval "test \"`echo '$''{'nmh_cv_header_termios_h_tiocgwinsz'+set}'`\" = set"; then
2065 echo $ac_n "(cached) $ac_c" 1>&6
2067 cat > conftest.$ac_ext <<EOF
2068 #line 2069 "configure"
2069 #include "confdefs.h"
2070 #include <sys/types.h>
2071 #include <termios.h>
2076 if { (eval echo configure:2077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2078 nmh_cv_header_termios_h_tiocgwinsz=yes
2080 echo "configure: failed program was:" >&5
2081 cat conftest.$ac_ext >&5
2083 nmh_cv_header_termios_h_tiocgwinsz=no
2088 echo "$ac_t""$nmh_cv_header_termios_h_tiocgwinsz" 1>&6
2090 nmh_cv_header_termios_h_tiocgwinsz=no
2093 if test $nmh_cv_header_termios_h_tiocgwinsz = no; then
2094 echo $ac_n "checking TIOCGWINSZ in sys/ioctl.h""... $ac_c" 1>&6
2095 echo "configure:2096: checking TIOCGWINSZ in sys/ioctl.h" >&5
2096 if eval "test \"`echo '$''{'nmh_cv_header_sys_ioctl_h_tiocgwinsz'+set}'`\" = set"; then
2097 echo $ac_n "(cached) $ac_c" 1>&6
2099 cat > conftest.$ac_ext <<EOF
2100 #line 2101 "configure"
2101 #include "confdefs.h"
2102 #include <sys/types.h>
2103 #include <sys/ioctl.h>
2108 if { (eval echo configure:2109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2110 nmh_cv_header_sys_ioctl_h_tiocgwinsz=yes
2112 echo "configure: failed program was:" >&5
2113 cat conftest.$ac_ext >&5
2115 nmh_cv_header_sys_ioctl_h_tiocgwinsz=no
2120 echo "$ac_t""$nmh_cv_header_sys_ioctl_h_tiocgwinsz" 1>&6
2121 if test $nmh_cv_header_sys_ioctl_h_tiocgwinsz = yes; then
2122 cat >> confdefs.h <<\EOF
2123 #define GWINSZ_IN_SYS_IOCTL 1
2129 ac_safe=`echo "sys/ptem.h" | sed 'y%./+-%__p_%'`
2130 echo $ac_n "checking for sys/ptem.h""... $ac_c" 1>&6
2131 echo "configure:2132: checking for sys/ptem.h" >&5
2132 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2133 echo $ac_n "(cached) $ac_c" 1>&6
2135 cat > conftest.$ac_ext <<EOF
2136 #line 2137 "configure"
2137 #include "confdefs.h"
2138 #include <sys/ptem.h>
2140 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2141 { (eval echo configure:2142: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2142 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2143 if test -z "$ac_err"; then
2145 eval "ac_cv_header_$ac_safe=yes"
2148 echo "configure: failed program was:" >&5
2149 cat conftest.$ac_ext >&5
2151 eval "ac_cv_header_$ac_safe=no"
2155 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2156 echo "$ac_t""yes" 1>&6
2157 cat >> confdefs.h <<\EOF
2158 #define WINSIZE_IN_PTEM 1
2162 echo "$ac_t""no" 1>&6
2166 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2167 echo "configure:2168: checking for pid_t" >&5
2168 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2169 echo $ac_n "(cached) $ac_c" 1>&6
2171 cat > conftest.$ac_ext <<EOF
2172 #line 2173 "configure"
2173 #include "confdefs.h"
2174 #include <sys/types.h>
2180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2181 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2183 ac_cv_type_pid_t=yes
2191 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2192 if test $ac_cv_type_pid_t = no; then
2193 cat >> confdefs.h <<\EOF
2199 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2200 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2201 echo "configure:2202: checking for vfork.h" >&5
2202 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2203 echo $ac_n "(cached) $ac_c" 1>&6
2205 cat > conftest.$ac_ext <<EOF
2206 #line 2207 "configure"
2207 #include "confdefs.h"
2210 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2211 { (eval echo configure:2212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2212 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2213 if test -z "$ac_err"; then
2215 eval "ac_cv_header_$ac_safe=yes"
2218 echo "configure: failed program was:" >&5
2219 cat conftest.$ac_ext >&5
2221 eval "ac_cv_header_$ac_safe=no"
2225 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2226 echo "$ac_t""yes" 1>&6
2227 cat >> confdefs.h <<\EOF
2228 #define HAVE_VFORK_H 1
2232 echo "$ac_t""no" 1>&6
2235 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2236 echo "configure:2237: checking for working vfork" >&5
2237 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2238 echo $ac_n "(cached) $ac_c" 1>&6
2240 if test "$cross_compiling" = yes; then
2241 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2242 echo "configure:2243: checking for vfork" >&5
2243 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2244 echo $ac_n "(cached) $ac_c" 1>&6
2246 cat > conftest.$ac_ext <<EOF
2247 #line 2248 "configure"
2248 #include "confdefs.h"
2249 /* System header to define __stub macros and hopefully few prototypes,
2250 which can conflict with char vfork(); below. */
2252 /* Override any gcc2 internal prototype to avoid an error. */
2253 /* We use char because int might match the return type of a gcc2
2254 builtin and then its argument prototype would still apply. */
2259 /* The GNU C library defines this for functions which it implements
2260 to always fail with ENOSYS. Some functions are actually named
2261 something starting with __ and the normal name is an alias. */
2262 #if defined (__stub_vfork) || defined (__stub___vfork)
2270 if { (eval echo configure:2271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2272 eval "ac_cv_func_vfork=yes"
2274 echo "configure: failed program was:" >&5
2275 cat conftest.$ac_ext >&5
2277 eval "ac_cv_func_vfork=no"
2282 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2283 echo "$ac_t""yes" 1>&6
2286 echo "$ac_t""no" 1>&6
2289 ac_cv_func_vfork_works=$ac_cv_func_vfork
2291 cat > conftest.$ac_ext <<EOF
2292 #line 2293 "configure"
2293 #include "confdefs.h"
2294 /* Thanks to Paul Eggert for this test. */
2296 #include <sys/types.h>
2297 #include <sys/stat.h>
2298 #ifdef HAVE_UNISTD_H
2304 /* On some sparc systems, changes by the child to local and incoming
2305 argument registers are propagated back to the parent.
2306 The compiler is told about this with #include <vfork.h>,
2307 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2308 Test for this by using a static variable whose address
2309 is put into a register that is clobbered by the vfork. */
2312 sparc_address_test (int arg)
2314 sparc_address_test (arg) int arg;
2332 pid_t parent = getpid ();
2335 sparc_address_test ();
2340 /* Here is another test for sparc vfork register problems.
2341 This test uses lots of local variables, at least
2342 as many local variables as main has allocated so far
2343 including compiler temporaries. 4 locals are enough for
2344 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2345 A buggy compiler should reuse the register of parent
2346 for one of the local variables, since it will think that
2347 parent can't possibly be used any more in this routine.
2348 Assigning to the local variable will thus munge parent
2349 in the parent process. */
2351 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2352 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2353 /* Convince the compiler that p..p7 are live; otherwise, it might
2354 use the same hardware register for all 8 local variables. */
2355 if (p != p1 || p != p2 || p != p3 || p != p4
2356 || p != p5 || p != p6 || p != p7)
2359 /* On some systems (e.g. IRIX 3.3),
2360 vfork doesn't separate parent from child file descriptors.
2361 If the child closes a descriptor before it execs or exits,
2362 this munges the parent's descriptor as well.
2363 Test for this by closing stdout in the child. */
2364 _exit(close(fileno(stdout)) != 0);
2369 while (wait(&status) != child)
2372 /* Was there some problem with vforking? */
2375 /* Did the child fail? (This shouldn't happen.) */
2378 /* Did the vfork/compiler bug occur? */
2379 || parent != getpid()
2381 /* Did the file descriptor bug occur? */
2382 || fstat(fileno(stdout), &st) != 0
2387 if { (eval echo configure:2388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2389 ac_cv_func_vfork_works=yes
2391 echo "configure: failed program was:" >&5
2392 cat conftest.$ac_ext >&5
2394 ac_cv_func_vfork_works=no
2401 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2402 if test $ac_cv_func_vfork_works = no; then
2403 cat >> confdefs.h <<\EOF
2409 echo $ac_n "checking for mkstemp in -lmkstemp""... $ac_c" 1>&6
2410 echo "configure:2411: checking for mkstemp in -lmkstemp" >&5
2411 ac_lib_var=`echo mkstemp'_'mkstemp | sed 'y%./+-%__p_%'`
2412 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2413 echo $ac_n "(cached) $ac_c" 1>&6
2415 ac_save_LIBS="$LIBS"
2416 LIBS="-lmkstemp $LIBS"
2417 cat > conftest.$ac_ext <<EOF
2418 #line 2419 "configure"
2419 #include "confdefs.h"
2420 /* Override any gcc2 internal prototype to avoid an error. */
2421 /* We use char because int might match the return type of a gcc2
2422 builtin and then its argument prototype would still apply. */
2429 if { (eval echo configure:2430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2431 eval "ac_cv_lib_$ac_lib_var=yes"
2433 echo "configure: failed program was:" >&5
2434 cat conftest.$ac_ext >&5
2436 eval "ac_cv_lib_$ac_lib_var=no"
2439 LIBS="$ac_save_LIBS"
2442 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2443 echo "$ac_t""yes" 1>&6
2444 ac_tr_lib=HAVE_LIB`echo mkstemp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2445 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2446 cat >> confdefs.h <<EOF
2447 #define $ac_tr_lib 1
2450 LIBS="-lmkstemp $LIBS"
2453 echo "$ac_t""no" 1>&6
2456 for ac_func in waitpid wait3 sigaction sigprocmask sigblock sigsetmask \
2457 sighold sigrelse writev lstat uname tzset killpg mkstemp
2459 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2460 echo "configure:2461: checking for $ac_func" >&5
2461 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2462 echo $ac_n "(cached) $ac_c" 1>&6
2464 cat > conftest.$ac_ext <<EOF
2465 #line 2466 "configure"
2466 #include "confdefs.h"
2467 /* System header to define __stub macros and hopefully few prototypes,
2468 which can conflict with char $ac_func(); below. */
2470 /* Override any gcc2 internal prototype to avoid an error. */
2471 /* We use char because int might match the return type of a gcc2
2472 builtin and then its argument prototype would still apply. */
2477 /* The GNU C library defines this for functions which it implements
2478 to always fail with ENOSYS. Some functions are actually named
2479 something starting with __ and the normal name is an alias. */
2480 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2488 if { (eval echo configure:2489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2490 eval "ac_cv_func_$ac_func=yes"
2492 echo "configure: failed program was:" >&5
2493 cat conftest.$ac_ext >&5
2495 eval "ac_cv_func_$ac_func=no"
2500 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2501 echo "$ac_t""yes" 1>&6
2502 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2503 cat >> confdefs.h <<EOF
2504 #define $ac_tr_func 1
2508 echo "$ac_t""no" 1>&6
2513 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
2514 echo "configure:2515: checking for sigsetjmp" >&5
2515 cat > conftest.$ac_ext <<EOF
2516 #line 2517 "configure"
2517 #include "confdefs.h"
2520 sigsetjmp((void *)0, 0);
2523 if { (eval echo configure:2524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2525 cat >> confdefs.h <<\EOF
2526 #define HAVE_SIGSETJMP 1
2528 echo "$ac_t""yes" 1>&6
2530 echo "configure: failed program was:" >&5
2531 cat conftest.$ac_ext >&5
2533 echo "$ac_t""no" 1>&6
2537 for ac_func in snprintf strerror strdup
2539 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2540 echo "configure:2541: checking for $ac_func" >&5
2541 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2542 echo $ac_n "(cached) $ac_c" 1>&6
2544 cat > conftest.$ac_ext <<EOF
2545 #line 2546 "configure"
2546 #include "confdefs.h"
2547 /* System header to define __stub macros and hopefully few prototypes,
2548 which can conflict with char $ac_func(); below. */
2550 /* Override any gcc2 internal prototype to avoid an error. */
2551 /* We use char because int might match the return type of a gcc2
2552 builtin and then its argument prototype would still apply. */
2557 /* The GNU C library defines this for functions which it implements
2558 to always fail with ENOSYS. Some functions are actually named
2559 something starting with __ and the normal name is an alias. */
2560 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2568 if { (eval echo configure:2569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2570 eval "ac_cv_func_$ac_func=yes"
2572 echo "configure: failed program was:" >&5
2573 cat conftest.$ac_ext >&5
2575 eval "ac_cv_func_$ac_func=no"
2580 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2581 echo "$ac_t""yes" 1>&6
2582 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2583 cat >> confdefs.h <<EOF
2584 #define $ac_tr_func 1
2588 echo "$ac_t""no" 1>&6
2589 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
2595 echo $ac_n "checking for modf""... $ac_c" 1>&6
2596 echo "configure:2597: checking for modf" >&5
2597 if eval "test \"`echo '$''{'ac_cv_func_modf'+set}'`\" = set"; then
2598 echo $ac_n "(cached) $ac_c" 1>&6
2600 cat > conftest.$ac_ext <<EOF
2601 #line 2602 "configure"
2602 #include "confdefs.h"
2603 /* System header to define __stub macros and hopefully few prototypes,
2604 which can conflict with char modf(); below. */
2606 /* Override any gcc2 internal prototype to avoid an error. */
2607 /* We use char because int might match the return type of a gcc2
2608 builtin and then its argument prototype would still apply. */
2613 /* The GNU C library defines this for functions which it implements
2614 to always fail with ENOSYS. Some functions are actually named
2615 something starting with __ and the normal name is an alias. */
2616 #if defined (__stub_modf) || defined (__stub___modf)
2624 if { (eval echo configure:2625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2626 eval "ac_cv_func_modf=yes"
2628 echo "configure: failed program was:" >&5
2629 cat conftest.$ac_ext >&5
2631 eval "ac_cv_func_modf=no"
2636 if eval "test \"`echo '$ac_cv_func_'modf`\" = yes"; then
2637 echo "$ac_t""yes" 1>&6
2640 echo "$ac_t""no" 1>&6
2641 echo $ac_n "checking for modf in -lm""... $ac_c" 1>&6
2642 echo "configure:2643: checking for modf in -lm" >&5
2643 ac_lib_var=`echo m'_'modf | sed 'y%./+-%__p_%'`
2644 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2645 echo $ac_n "(cached) $ac_c" 1>&6
2647 ac_save_LIBS="$LIBS"
2649 cat > conftest.$ac_ext <<EOF
2650 #line 2651 "configure"
2651 #include "confdefs.h"
2652 /* Override any gcc2 internal prototype to avoid an error. */
2653 /* We use char because int might match the return type of a gcc2
2654 builtin and then its argument prototype would still apply. */
2661 if { (eval echo configure:2662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2663 eval "ac_cv_lib_$ac_lib_var=yes"
2665 echo "configure: failed program was:" >&5
2666 cat conftest.$ac_ext >&5
2668 eval "ac_cv_lib_$ac_lib_var=no"
2671 LIBS="$ac_save_LIBS"
2674 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2675 echo "$ac_t""yes" 1>&6
2676 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
2677 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2678 cat >> confdefs.h <<EOF
2679 #define $ac_tr_lib 1
2685 echo "$ac_t""no" 1>&6
2691 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2692 echo "configure:2693: checking for gethostbyname" >&5
2693 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2694 echo $ac_n "(cached) $ac_c" 1>&6
2696 cat > conftest.$ac_ext <<EOF
2697 #line 2698 "configure"
2698 #include "confdefs.h"
2699 /* System header to define __stub macros and hopefully few prototypes,
2700 which can conflict with char gethostbyname(); below. */
2702 /* Override any gcc2 internal prototype to avoid an error. */
2703 /* We use char because int might match the return type of a gcc2
2704 builtin and then its argument prototype would still apply. */
2705 char gethostbyname();
2709 /* The GNU C library defines this for functions which it implements
2710 to always fail with ENOSYS. Some functions are actually named
2711 something starting with __ and the normal name is an alias. */
2712 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2720 if { (eval echo configure:2721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2722 eval "ac_cv_func_gethostbyname=yes"
2724 echo "configure: failed program was:" >&5
2725 cat conftest.$ac_ext >&5
2727 eval "ac_cv_func_gethostbyname=no"
2732 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2733 echo "$ac_t""yes" 1>&6
2736 echo "$ac_t""no" 1>&6
2737 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2738 echo "configure:2739: checking for gethostbyname in -lnsl" >&5
2739 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2740 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2741 echo $ac_n "(cached) $ac_c" 1>&6
2743 ac_save_LIBS="$LIBS"
2745 cat > conftest.$ac_ext <<EOF
2746 #line 2747 "configure"
2747 #include "confdefs.h"
2748 /* Override any gcc2 internal prototype to avoid an error. */
2749 /* We use char because int might match the return type of a gcc2
2750 builtin and then its argument prototype would still apply. */
2751 char gethostbyname();
2757 if { (eval echo configure:2758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2759 eval "ac_cv_lib_$ac_lib_var=yes"
2761 echo "configure: failed program was:" >&5
2762 cat conftest.$ac_ext >&5
2764 eval "ac_cv_lib_$ac_lib_var=no"
2767 LIBS="$ac_save_LIBS"
2770 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2771 echo "$ac_t""yes" 1>&6
2772 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
2773 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2774 cat >> confdefs.h <<EOF
2775 #define $ac_tr_lib 1
2781 echo "$ac_t""no" 1>&6
2782 echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6
2783 echo "configure:2784: checking for gethostbyname in -lresolv" >&5
2784 ac_lib_var=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'`
2785 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2786 echo $ac_n "(cached) $ac_c" 1>&6
2788 ac_save_LIBS="$LIBS"
2789 LIBS="-lresolv $LIBS"
2790 cat > conftest.$ac_ext <<EOF
2791 #line 2792 "configure"
2792 #include "confdefs.h"
2793 /* Override any gcc2 internal prototype to avoid an error. */
2794 /* We use char because int might match the return type of a gcc2
2795 builtin and then its argument prototype would still apply. */
2796 char gethostbyname();
2802 if { (eval echo configure:2803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2804 eval "ac_cv_lib_$ac_lib_var=yes"
2806 echo "configure: failed program was:" >&5
2807 cat conftest.$ac_ext >&5
2809 eval "ac_cv_lib_$ac_lib_var=no"
2812 LIBS="$ac_save_LIBS"
2815 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2816 echo "$ac_t""yes" 1>&6
2817 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
2818 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2819 cat >> confdefs.h <<EOF
2820 #define $ac_tr_lib 1
2823 LIBS="-lresolv $LIBS"
2826 echo "$ac_t""no" 1>&6
2833 echo $ac_n "checking for socket""... $ac_c" 1>&6
2834 echo "configure:2835: checking for socket" >&5
2835 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
2836 echo $ac_n "(cached) $ac_c" 1>&6
2838 cat > conftest.$ac_ext <<EOF
2839 #line 2840 "configure"
2840 #include "confdefs.h"
2841 /* System header to define __stub macros and hopefully few prototypes,
2842 which can conflict with char socket(); below. */
2844 /* Override any gcc2 internal prototype to avoid an error. */
2845 /* We use char because int might match the return type of a gcc2
2846 builtin and then its argument prototype would still apply. */
2851 /* The GNU C library defines this for functions which it implements
2852 to always fail with ENOSYS. Some functions are actually named
2853 something starting with __ and the normal name is an alias. */
2854 #if defined (__stub_socket) || defined (__stub___socket)
2862 if { (eval echo configure:2863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2864 eval "ac_cv_func_socket=yes"
2866 echo "configure: failed program was:" >&5
2867 cat conftest.$ac_ext >&5
2869 eval "ac_cv_func_socket=no"
2874 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
2875 echo "$ac_t""yes" 1>&6
2878 echo "$ac_t""no" 1>&6
2879 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
2880 echo "configure:2881: checking for socket in -lsocket" >&5
2881 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
2882 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2883 echo $ac_n "(cached) $ac_c" 1>&6
2885 ac_save_LIBS="$LIBS"
2886 LIBS="-lsocket $LIBS"
2887 cat > conftest.$ac_ext <<EOF
2888 #line 2889 "configure"
2889 #include "confdefs.h"
2890 /* Override any gcc2 internal prototype to avoid an error. */
2891 /* We use char because int might match the return type of a gcc2
2892 builtin and then its argument prototype would still apply. */
2899 if { (eval echo configure:2900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2901 eval "ac_cv_lib_$ac_lib_var=yes"
2903 echo "configure: failed program was:" >&5
2904 cat conftest.$ac_ext >&5
2906 eval "ac_cv_lib_$ac_lib_var=no"
2909 LIBS="$ac_save_LIBS"
2912 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2913 echo "$ac_t""yes" 1>&6
2914 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2915 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2916 cat >> confdefs.h <<EOF
2917 #define $ac_tr_lib 1
2920 LIBS="-lsocket $LIBS"
2923 echo "$ac_t""no" 1>&6
2930 echo $ac_n "checking for ruserpass""... $ac_c" 1>&6
2931 echo "configure:2932: checking for ruserpass" >&5
2932 if eval "test \"`echo '$''{'ac_cv_func_ruserpass'+set}'`\" = set"; then
2933 echo $ac_n "(cached) $ac_c" 1>&6
2935 cat > conftest.$ac_ext <<EOF
2936 #line 2937 "configure"
2937 #include "confdefs.h"
2938 /* System header to define __stub macros and hopefully few prototypes,
2939 which can conflict with char ruserpass(); below. */
2941 /* Override any gcc2 internal prototype to avoid an error. */
2942 /* We use char because int might match the return type of a gcc2
2943 builtin and then its argument prototype would still apply. */
2948 /* The GNU C library defines this for functions which it implements
2949 to always fail with ENOSYS. Some functions are actually named
2950 something starting with __ and the normal name is an alias. */
2951 #if defined (__stub_ruserpass) || defined (__stub___ruserpass)
2959 if { (eval echo configure:2960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2961 eval "ac_cv_func_ruserpass=yes"
2963 echo "configure: failed program was:" >&5
2964 cat conftest.$ac_ext >&5
2966 eval "ac_cv_func_ruserpass=no"
2971 if eval "test \"`echo '$ac_cv_func_'ruserpass`\" = yes"; then
2972 echo "$ac_t""yes" 1>&6
2975 echo "$ac_t""no" 1>&6
2976 echo $ac_n "checking for _ruserpass""... $ac_c" 1>&6
2977 echo "configure:2978: checking for _ruserpass" >&5
2978 if eval "test \"`echo '$''{'ac_cv_func__ruserpass'+set}'`\" = set"; then
2979 echo $ac_n "(cached) $ac_c" 1>&6
2981 cat > conftest.$ac_ext <<EOF
2982 #line 2983 "configure"
2983 #include "confdefs.h"
2984 /* System header to define __stub macros and hopefully few prototypes,
2985 which can conflict with char _ruserpass(); below. */
2987 /* Override any gcc2 internal prototype to avoid an error. */
2988 /* We use char because int might match the return type of a gcc2
2989 builtin and then its argument prototype would still apply. */
2994 /* The GNU C library defines this for functions which it implements
2995 to always fail with ENOSYS. Some functions are actually named
2996 something starting with __ and the normal name is an alias. */
2997 #if defined (__stub__ruserpass) || defined (__stub____ruserpass)
3005 if { (eval echo configure:3006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3007 eval "ac_cv_func__ruserpass=yes"
3009 echo "configure: failed program was:" >&5
3010 cat conftest.$ac_ext >&5
3012 eval "ac_cv_func__ruserpass=no"
3017 if eval "test \"`echo '$ac_cv_func_'_ruserpass`\" = yes"; then
3018 echo "$ac_t""yes" 1>&6
3021 echo "$ac_t""no" 1>&6
3022 echo $ac_n "checking for _ruserpass in -lsocket""... $ac_c" 1>&6
3023 echo "configure:3024: checking for _ruserpass in -lsocket" >&5
3024 ac_lib_var=`echo socket'_'_ruserpass | sed 'y%./+-%__p_%'`
3025 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3026 echo $ac_n "(cached) $ac_c" 1>&6
3028 ac_save_LIBS="$LIBS"
3029 LIBS="-lsocket $LIBS"
3030 cat > conftest.$ac_ext <<EOF
3031 #line 3032 "configure"
3032 #include "confdefs.h"
3033 /* Override any gcc2 internal prototype to avoid an error. */
3034 /* We use char because int might match the return type of a gcc2
3035 builtin and then its argument prototype would still apply. */
3042 if { (eval echo configure:3043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3044 eval "ac_cv_lib_$ac_lib_var=yes"
3046 echo "configure: failed program was:" >&5
3047 cat conftest.$ac_ext >&5
3049 eval "ac_cv_lib_$ac_lib_var=no"
3052 LIBS="$ac_save_LIBS"
3055 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3056 echo "$ac_t""yes" 1>&6
3057 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
3058 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3059 cat >> confdefs.h <<EOF
3060 #define $ac_tr_lib 1
3063 LIBS="-lsocket $LIBS"
3066 echo "$ac_t""no" 1>&6
3073 if test x$ac_cv_func_ruserpass = xno; then
3074 if test x$ac_cv_func__ruserpass = xyes -o x$ac_cv_lib_socket__ruserpass = xyes; then
3075 cat >> confdefs.h <<\EOF
3076 #define ruserpass _ruserpass
3080 LIBOBJS="$LIBOBJS ruserpass.o"
3085 termcap_curses_order="termcap curses ncurses"
3086 for lib in $termcap_curses_order; do
3087 echo $ac_n "checking for tgetent in -l${lib}""... $ac_c" 1>&6
3088 echo "configure:3089: checking for tgetent in -l${lib}" >&5
3089 ac_lib_var=`echo ${lib}'_'tgetent | sed 'y%./+-%__p_%'`
3090 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3091 echo $ac_n "(cached) $ac_c" 1>&6
3093 ac_save_LIBS="$LIBS"
3094 LIBS="-l${lib} $LIBS"
3095 cat > conftest.$ac_ext <<EOF
3096 #line 3097 "configure"
3097 #include "confdefs.h"
3098 /* Override any gcc2 internal prototype to avoid an error. */
3099 /* We use char because int might match the return type of a gcc2
3100 builtin and then its argument prototype would still apply. */
3107 if { (eval echo configure:3108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3109 eval "ac_cv_lib_$ac_lib_var=yes"
3111 echo "configure: failed program was:" >&5
3112 cat conftest.$ac_ext >&5
3114 eval "ac_cv_lib_$ac_lib_var=no"
3117 LIBS="$ac_save_LIBS"
3120 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3121 echo "$ac_t""yes" 1>&6
3122 TERMLIB="-l$lib"; break
3124 echo "$ac_t""no" 1>&6
3130 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
3131 echo "configure:3132: checking for dbm_open" >&5
3132 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
3133 echo $ac_n "(cached) $ac_c" 1>&6
3135 cat > conftest.$ac_ext <<EOF
3136 #line 3137 "configure"
3137 #include "confdefs.h"
3138 /* System header to define __stub macros and hopefully few prototypes,
3139 which can conflict with char dbm_open(); below. */
3141 /* Override any gcc2 internal prototype to avoid an error. */
3142 /* We use char because int might match the return type of a gcc2
3143 builtin and then its argument prototype would still apply. */
3148 /* The GNU C library defines this for functions which it implements
3149 to always fail with ENOSYS. Some functions are actually named
3150 something starting with __ and the normal name is an alias. */
3151 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
3159 if { (eval echo configure:3160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3161 eval "ac_cv_func_dbm_open=yes"
3163 echo "configure: failed program was:" >&5
3164 cat conftest.$ac_ext >&5
3166 eval "ac_cv_func_dbm_open=no"
3171 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
3172 echo "$ac_t""yes" 1>&6
3175 echo "$ac_t""no" 1>&6
3176 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
3177 echo "configure:3178: checking for dbm_open in -lndbm" >&5
3178 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
3179 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3180 echo $ac_n "(cached) $ac_c" 1>&6
3182 ac_save_LIBS="$LIBS"
3184 cat > conftest.$ac_ext <<EOF
3185 #line 3186 "configure"
3186 #include "confdefs.h"
3187 /* Override any gcc2 internal prototype to avoid an error. */
3188 /* We use char because int might match the return type of a gcc2
3189 builtin and then its argument prototype would still apply. */
3196 if { (eval echo configure:3197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3198 eval "ac_cv_lib_$ac_lib_var=yes"
3200 echo "configure: failed program was:" >&5
3201 cat conftest.$ac_ext >&5
3203 eval "ac_cv_lib_$ac_lib_var=no"
3206 LIBS="$ac_save_LIBS"
3209 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3210 echo "$ac_t""yes" 1>&6
3211 ac_tr_lib=HAVE_LIB`echo ndbm | sed -e 's/^a-zA-Z0-9_/_/g' \
3212 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3213 cat >> confdefs.h <<EOF
3214 #define $ac_tr_lib 1
3220 echo "$ac_t""no" 1>&6
3221 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
3222 echo "configure:3223: checking for dbm_open in -ldbm" >&5
3223 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
3224 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3225 echo $ac_n "(cached) $ac_c" 1>&6
3227 ac_save_LIBS="$LIBS"
3229 cat > conftest.$ac_ext <<EOF
3230 #line 3231 "configure"
3231 #include "confdefs.h"
3232 /* Override any gcc2 internal prototype to avoid an error. */
3233 /* We use char because int might match the return type of a gcc2
3234 builtin and then its argument prototype would still apply. */
3241 if { (eval echo configure:3242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3243 eval "ac_cv_lib_$ac_lib_var=yes"
3245 echo "configure: failed program was:" >&5
3246 cat conftest.$ac_ext >&5
3248 eval "ac_cv_lib_$ac_lib_var=no"
3251 LIBS="$ac_save_LIBS"
3254 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3255 echo "$ac_t""yes" 1>&6
3256 ac_tr_lib=HAVE_LIB`echo dbm | sed -e 's/^a-zA-Z0-9_/_/g' \
3257 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3258 cat >> confdefs.h <<EOF
3259 #define $ac_tr_lib 1
3265 echo "$ac_t""no" 1>&6
3273 if test x$with_hesiod != x -a x$with_hesiod != xno; then
3274 if test x$with_hesiod != xyes; then
3275 HESIOD_INCLUDES="-I$with_hesiod/include"
3276 HESIOD_LIBS="-L$with_hesiod/lib"
3278 echo $ac_n "checking for res_send""... $ac_c" 1>&6
3279 echo "configure:3280: checking for res_send" >&5
3280 if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then
3281 echo $ac_n "(cached) $ac_c" 1>&6
3283 cat > conftest.$ac_ext <<EOF
3284 #line 3285 "configure"
3285 #include "confdefs.h"
3286 /* System header to define __stub macros and hopefully few prototypes,
3287 which can conflict with char res_send(); below. */
3289 /* Override any gcc2 internal prototype to avoid an error. */
3290 /* We use char because int might match the return type of a gcc2
3291 builtin and then its argument prototype would still apply. */
3296 /* The GNU C library defines this for functions which it implements
3297 to always fail with ENOSYS. Some functions are actually named
3298 something starting with __ and the normal name is an alias. */
3299 #if defined (__stub_res_send) || defined (__stub___res_send)
3307 if { (eval echo configure:3308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3309 eval "ac_cv_func_res_send=yes"
3311 echo "configure: failed program was:" >&5
3312 cat conftest.$ac_ext >&5
3314 eval "ac_cv_func_res_send=no"
3319 if eval "test \"`echo '$ac_cv_func_'res_send`\" = yes"; then
3320 echo "$ac_t""yes" 1>&6
3323 echo "$ac_t""no" 1>&6
3324 echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6
3325 echo "configure:3326: checking for res_send in -lresolv" >&5
3326 ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'`
3327 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3328 echo $ac_n "(cached) $ac_c" 1>&6
3330 ac_save_LIBS="$LIBS"
3331 LIBS="-lresolv $LIBS"
3332 cat > conftest.$ac_ext <<EOF
3333 #line 3334 "configure"
3334 #include "confdefs.h"
3335 /* Override any gcc2 internal prototype to avoid an error. */
3336 /* We use char because int might match the return type of a gcc2
3337 builtin and then its argument prototype would still apply. */
3344 if { (eval echo configure:3345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3346 eval "ac_cv_lib_$ac_lib_var=yes"
3348 echo "configure: failed program was:" >&5
3349 cat conftest.$ac_ext >&5
3351 eval "ac_cv_lib_$ac_lib_var=no"
3354 LIBS="$ac_save_LIBS"
3357 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3358 echo "$ac_t""yes" 1>&6
3359 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
3360 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3361 cat >> confdefs.h <<EOF
3362 #define $ac_tr_lib 1
3365 LIBS="-lresolv $LIBS"
3368 echo "$ac_t""no" 1>&6
3373 echo $ac_n "checking for hes_resolve in -lhesiod""... $ac_c" 1>&6
3374 echo "configure:3375: checking for hes_resolve in -lhesiod" >&5
3375 ac_lib_var=`echo hesiod'_'hes_resolve | sed 'y%./+-%__p_%'`
3376 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3377 echo $ac_n "(cached) $ac_c" 1>&6
3379 ac_save_LIBS="$LIBS"
3380 LIBS="-lhesiod $HESIOD_LIBS $LIBS"
3381 cat > conftest.$ac_ext <<EOF
3382 #line 3383 "configure"
3383 #include "confdefs.h"
3384 /* Override any gcc2 internal prototype to avoid an error. */
3385 /* We use char because int might match the return type of a gcc2
3386 builtin and then its argument prototype would still apply. */
3393 if { (eval echo configure:3394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3395 eval "ac_cv_lib_$ac_lib_var=yes"
3397 echo "configure: failed program was:" >&5
3398 cat conftest.$ac_ext >&5
3400 eval "ac_cv_lib_$ac_lib_var=no"
3403 LIBS="$ac_save_LIBS"
3406 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3407 echo "$ac_t""yes" 1>&6
3408 HESIOD_LIBS="$HESIOD_LIBS -lhesiod"
3410 echo "$ac_t""no" 1>&6
3411 { echo "configure: error: Hesiod library not found" 1>&2; exit 1; }
3416 if test x$with_krb4 != x -a x$with_krb4 != xno; then
3417 if test x$with_krb4 != xyes; then
3418 KRB4_INCLUDES="-I$with_krb4/include"
3419 if test -d "$with_krb4/include/kerberosIV"; then
3420 KRB4_INCLUDES="$KRB4_INCLUDES -I$with_krb4/include/kerberosIV"
3422 KRB4_LIBS="-L$with_krb4/lib"
3423 elif test -d /usr/include/kerberosIV; then
3424 KRB4_INCLUDES="-I/usr/include/kerberosIV"
3426 echo $ac_n "checking for krb_rd_req in -lkrb4""... $ac_c" 1>&6
3427 echo "configure:3428: checking for krb_rd_req in -lkrb4" >&5
3428 ac_lib_var=`echo krb4'_'krb_rd_req | sed 'y%./+-%__p_%'`
3429 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3430 echo $ac_n "(cached) $ac_c" 1>&6
3432 ac_save_LIBS="$LIBS"
3433 LIBS="-lkrb4 $KRB4_LIBS -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
3434 cat > conftest.$ac_ext <<EOF
3435 #line 3436 "configure"
3436 #include "confdefs.h"
3437 /* Override any gcc2 internal prototype to avoid an error. */
3438 /* We use char because int might match the return type of a gcc2
3439 builtin and then its argument prototype would still apply. */
3446 if { (eval echo configure:3447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3448 eval "ac_cv_lib_$ac_lib_var=yes"
3450 echo "configure: failed program was:" >&5
3451 cat conftest.$ac_ext >&5
3453 eval "ac_cv_lib_$ac_lib_var=no"
3456 LIBS="$ac_save_LIBS"
3459 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3460 echo "$ac_t""yes" 1>&6
3461 KRB4_LIBS="$KRB4_LIBS -lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err"
3463 echo "$ac_t""no" 1>&6
3464 echo $ac_n "checking for krb_rd_req in -lkrb""... $ac_c" 1>&6
3465 echo "configure:3466: checking for krb_rd_req in -lkrb" >&5
3466 ac_lib_var=`echo krb'_'krb_rd_req | sed 'y%./+-%__p_%'`
3467 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3468 echo $ac_n "(cached) $ac_c" 1>&6
3470 ac_save_LIBS="$LIBS"
3471 LIBS="-lkrb $KRB4_LIBS -ldes $LIBS"
3472 cat > conftest.$ac_ext <<EOF
3473 #line 3474 "configure"
3474 #include "confdefs.h"
3475 /* Override any gcc2 internal prototype to avoid an error. */
3476 /* We use char because int might match the return type of a gcc2
3477 builtin and then its argument prototype would still apply. */
3484 if { (eval echo configure:3485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3486 eval "ac_cv_lib_$ac_lib_var=yes"
3488 echo "configure: failed program was:" >&5
3489 cat conftest.$ac_ext >&5
3491 eval "ac_cv_lib_$ac_lib_var=no"
3494 LIBS="$ac_save_LIBS"
3497 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3498 echo "$ac_t""yes" 1>&6
3499 KRB4_LIBS="$KRB4_LIBS -lkrb -ldes"
3501 echo "$ac_t""no" 1>&6
3502 { echo "configure: error: Kerberos 4 libraries not found" 1>&2; exit 1; }
3510 nmh_save_LIBS="$LIBS"
3511 LIBS="$TERMLIB $LIBS"
3513 echo $ac_n "checking if an include file defines ospeed""... $ac_c" 1>&6
3514 echo "configure:3515: checking if an include file defines ospeed" >&5
3515 if eval "test \"`echo '$''{'nmh_cv_decl_ospeed_include_defines'+set}'`\" = set"; then
3516 echo $ac_n "(cached) $ac_c" 1>&6
3518 cat > conftest.$ac_ext <<EOF
3519 #line 3520 "configure"
3520 #include "confdefs.h"
3521 #include <sys/types.h>
3523 #include <termios.h>
3526 #include <termcap.h>
3532 if { (eval echo configure:3533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3534 nmh_cv_decl_ospeed_include_defines=yes
3536 echo "configure: failed program was:" >&5
3537 cat conftest.$ac_ext >&5
3539 nmh_cv_decl_ospeed_include_defines=no
3544 echo "$ac_t""$nmh_cv_decl_ospeed_include_defines" 1>&6
3546 if test $nmh_cv_decl_ospeed_include_defines = no; then
3547 echo $ac_n "checking if you must define ospeed""... $ac_c" 1>&6
3548 echo "configure:3549: checking if you must define ospeed" >&5
3549 if eval "test \"`echo '$''{'nmh_cv_decl_ospeed_must_define'+set}'`\" = set"; then
3550 echo $ac_n "(cached) $ac_c" 1>&6
3552 cat > conftest.$ac_ext <<EOF
3553 #line 3554 "configure"
3554 #include "confdefs.h"
3557 extern short ospeed; ospeed = 0;
3560 if { (eval echo configure:3561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3562 nmh_cv_decl_ospeed_must_define=yes
3564 echo "configure: failed program was:" >&5
3565 cat conftest.$ac_ext >&5
3567 nmh_cv_decl_ospeed_must_define=no
3572 echo "$ac_t""$nmh_cv_decl_ospeed_must_define" 1>&6
3575 if test $nmh_cv_decl_ospeed_include_defines = yes; then
3576 cat >> confdefs.h <<\EOF
3577 #define HAVE_OSPEED 1
3580 elif test $nmh_cv_decl_ospeed_must_define = yes; then
3581 cat >> confdefs.h <<\EOF
3582 #define HAVE_OSPEED 1
3585 cat >> confdefs.h <<\EOF
3586 #define MUST_DEFINE_OSPEED 1
3592 LIBS="$nmh_save_LIBS"
3594 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3595 echo "configure:3596: checking return type of signal handlers" >&5
3596 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3597 echo $ac_n "(cached) $ac_c" 1>&6
3599 cat > conftest.$ac_ext <<EOF
3600 #line 3601 "configure"
3601 #include "confdefs.h"
3602 #include <sys/types.h>
3608 extern "C" void (*signal (int, void (*)(int)))(int);
3610 void (*signal ()) ();
3617 if { (eval echo configure:3618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3619 ac_cv_type_signal=void
3621 echo "configure: failed program was:" >&5
3622 cat conftest.$ac_ext >&5
3624 ac_cv_type_signal=int
3629 echo "$ac_t""$ac_cv_type_signal" 1>&6
3630 cat >> confdefs.h <<EOF
3631 #define RETSIGTYPE $ac_cv_type_signal
3635 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3636 echo "configure:3637: checking for pid_t" >&5
3637 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3638 echo $ac_n "(cached) $ac_c" 1>&6
3640 cat > conftest.$ac_ext <<EOF
3641 #line 3642 "configure"
3642 #include "confdefs.h"
3643 #include <sys/types.h>
3649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3650 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3652 ac_cv_type_pid_t=yes
3660 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3661 if test $ac_cv_type_pid_t = no; then
3662 cat >> confdefs.h <<\EOF
3668 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3669 echo "configure:3670: checking for off_t" >&5
3670 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3671 echo $ac_n "(cached) $ac_c" 1>&6
3673 cat > conftest.$ac_ext <<EOF
3674 #line 3675 "configure"
3675 #include "confdefs.h"
3676 #include <sys/types.h>
3682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3683 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3685 ac_cv_type_off_t=yes
3693 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3694 if test $ac_cv_type_off_t = no; then
3695 cat >> confdefs.h <<\EOF
3701 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3702 echo "configure:3703: checking for uid_t in sys/types.h" >&5
3703 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3704 echo $ac_n "(cached) $ac_c" 1>&6
3706 cat > conftest.$ac_ext <<EOF
3707 #line 3708 "configure"
3708 #include "confdefs.h"
3709 #include <sys/types.h>
3711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3712 egrep "uid_t" >/dev/null 2>&1; then
3714 ac_cv_type_uid_t=yes
3723 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3724 if test $ac_cv_type_uid_t = no; then
3725 cat >> confdefs.h <<\EOF
3729 cat >> confdefs.h <<\EOF
3735 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3736 echo "configure:3737: checking for mode_t" >&5
3737 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3738 echo $ac_n "(cached) $ac_c" 1>&6
3740 cat > conftest.$ac_ext <<EOF
3741 #line 3742 "configure"
3742 #include "confdefs.h"
3743 #include <sys/types.h>
3749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3750 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3752 ac_cv_type_mode_t=yes
3755 ac_cv_type_mode_t=no
3760 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3761 if test $ac_cv_type_mode_t = no; then
3762 cat >> confdefs.h <<\EOF
3768 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3769 echo "configure:3770: checking for size_t" >&5
3770 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3771 echo $ac_n "(cached) $ac_c" 1>&6
3773 cat > conftest.$ac_ext <<EOF
3774 #line 3775 "configure"
3775 #include "confdefs.h"
3776 #include <sys/types.h>
3782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3783 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3785 ac_cv_type_size_t=yes
3788 ac_cv_type_size_t=no
3793 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3794 if test $ac_cv_type_size_t = no; then
3795 cat >> confdefs.h <<\EOF
3796 #define size_t unsigned
3802 echo $ac_n "checking for sigset_t""... $ac_c" 1>&6
3803 echo "configure:3804: checking for sigset_t" >&5
3804 if eval "test \"`echo '$''{'nmh_cv_type_sigset_t'+set}'`\" = set"; then
3805 echo $ac_n "(cached) $ac_c" 1>&6
3807 cat > conftest.$ac_ext <<EOF
3808 #line 3809 "configure"
3809 #include "confdefs.h"
3810 #include <sys/types.h>
3813 sigset_t tempsigset;
3816 if { (eval echo configure:3817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3818 nmh_cv_type_sigset_t=yes
3820 echo "configure: failed program was:" >&5
3821 cat conftest.$ac_ext >&5
3823 nmh_cv_type_sigset_t=no
3828 echo "$ac_t""$nmh_cv_type_sigset_t" 1>&6
3829 if test $nmh_cv_type_sigset_t = no; then
3830 cat >> confdefs.h <<\EOF
3831 #define sigset_t unsigned int
3836 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
3837 echo "configure:3838: checking for st_blksize in struct stat" >&5
3838 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
3839 echo $ac_n "(cached) $ac_c" 1>&6
3841 cat > conftest.$ac_ext <<EOF
3842 #line 3843 "configure"
3843 #include "confdefs.h"
3844 #include <sys/types.h>
3845 #include <sys/stat.h>
3847 struct stat s; s.st_blksize;
3850 if { (eval echo configure:3851: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3852 ac_cv_struct_st_blksize=yes
3854 echo "configure: failed program was:" >&5
3855 cat conftest.$ac_ext >&5
3857 ac_cv_struct_st_blksize=no
3862 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
3863 if test $ac_cv_struct_st_blksize = yes; then
3864 cat >> confdefs.h <<\EOF
3865 #define HAVE_ST_BLKSIZE 1
3871 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
3872 echo "configure:3873: checking for tm_gmtoff in struct tm" >&5
3873 if eval "test \"`echo '$''{'nmh_cv_struct_tm_gmtoff'+set}'`\" = set"; then
3874 echo $ac_n "(cached) $ac_c" 1>&6
3876 cat > conftest.$ac_ext <<EOF
3877 #line 3878 "configure"
3878 #include "confdefs.h"
3879 #ifdef TIME_WITH_SYS_TIME
3880 # include <sys/time.h>
3883 # ifdef TM_IN_SYS_TIME
3884 # include <sys/time.h>
3890 struct tm temptm; temptm.tm_gmtoff = 0;
3893 if { (eval echo configure:3894: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3895 nmh_cv_struct_tm_gmtoff=yes
3897 echo "configure: failed program was:" >&5
3898 cat conftest.$ac_ext >&5
3900 nmh_cv_struct_tm_gmtoff=no
3905 echo "$ac_t""$nmh_cv_struct_tm_gmtoff" 1>&6
3906 if test $nmh_cv_struct_tm_gmtoff = yes; then
3907 cat >> confdefs.h <<\EOF
3908 #define HAVE_TM_GMTOFF 1
3913 echo $ac_n "checking what style of signals to use""... $ac_c" 1>&6
3914 echo "configure:3915: checking what style of signals to use" >&5
3915 if test $ac_cv_func_sigaction = yes -a $ac_cv_func_sigprocmask = yes; then
3916 signals_style=POSIX_SIGNALS
3917 cat >> confdefs.h <<\EOF
3918 #define POSIX_SIGNALS 1
3921 cat >> confdefs.h <<\EOF
3922 #define RELIABLE_SIGNALS 1
3925 elif test $ac_cv_func_sigblock = yes -a $ac_cv_func_sigsetmask = yes; then
3926 signals_style=BSD_SIGNALS
3927 cat >> confdefs.h <<\EOF
3928 #define BSD_SIGNALS 1
3931 cat >> confdefs.h <<\EOF
3932 #define RELIABLE_SIGNALS 1
3935 elif test $ac_cv_func_sighold = yes -a $ac_cv_func_sigrelse = yes; then
3936 signals_style=SYSV_SIGNALS
3937 cat >> confdefs.h <<\EOF
3938 #define SYSV_SIGNALS 1
3942 signals_style=NO_SIGNAL_BLOCKING
3943 cat >> confdefs.h <<\EOF
3944 #define NO_SIGNAL_BLOCKING 1
3949 echo "$ac_t""$signals_style" 1>&6
3951 echo $ac_n "checking where signal.h is located""... $ac_c" 1>&6
3952 echo "configure:3953: checking where signal.h is located" >&5
3953 if eval "test \"`echo '$''{'nmh_cv_path_signal_h'+set}'`\" = set"; then
3954 echo $ac_n "(cached) $ac_c" 1>&6
3956 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
3957 test -f $SIGNAL_H && \
3958 grep '#[ ]*define[ ][ ]*SIG[0-9A-Z]*[ ]*[0-9][0-9]*' $SIGNAL_H > /dev/null && \
3961 nmh_cv_path_signal_h=$SIGNAL_H
3965 echo "$ac_t""$nmh_cv_path_signal_h" 1>&6
3966 SIGNAL_H=$nmh_cv_path_signal_h
3968 case "$target_os" in
3971 cat >> confdefs.h <<\EOF
3975 cat >> confdefs.h <<\EOF
3981 cat >> confdefs.h <<\EOF
3985 cat >> confdefs.h <<\EOF
3991 cat >> confdefs.h <<\EOF
3995 cat >> confdefs.h <<\EOF
4001 cat >> confdefs.h <<\EOF
4005 cat >> confdefs.h <<\EOF
4011 cat >> confdefs.h <<\EOF
4015 cat >> confdefs.h <<\EOF
4021 cat >> confdefs.h <<\EOF
4022 #define LINUX_STDIO 1
4027 cat >> confdefs.h <<\EOF
4031 cat >> confdefs.h <<\EOF
4035 cat >> confdefs.h <<\EOF
4041 cat >> confdefs.h <<\EOF
4045 cat >> confdefs.h <<\EOF
4049 cat >> confdefs.h <<\EOF
4055 cat >> confdefs.h <<\EOF
4059 cat >> confdefs.h <<\EOF
4063 cat >> confdefs.h <<\EOF
4069 cat >> confdefs.h <<\EOF
4073 cat >> confdefs.h <<\EOF
4077 cat >> confdefs.h <<\EOF
4083 cat >> confdefs.h <<\EOF
4087 cat >> confdefs.h <<\EOF
4088 #define SCO_5_STDIO 1
4096 cat > confcache <<\EOF
4097 # This file is a shell script that caches the results of configure
4098 # tests run on this system so they can be shared between configure
4099 # scripts and configure runs. It is not useful on other systems.
4100 # If it contains results you don't want to keep, you may remove or edit it.
4102 # By default, configure uses ./config.cache as the cache file,
4103 # creating it if it does not exist already. You can give configure
4104 # the --cache-file=FILE option to use a different cache file; that is
4105 # what configure does when it calls configure scripts in
4106 # subdirectories, so they share the cache.
4107 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4108 # config.status only pays attention to the cache file if you give it the
4109 # --recheck option to rerun configure.
4112 # The following way of writing the cache mishandles newlines in values,
4113 # but we know of no workaround that is simple, portable, and efficient.
4114 # So, don't put newlines in cache variables' values.
4115 # Ultrix sh set writes to stderr and can't be redirected directly,
4116 # and sets the high bit in the cache file unless we assign to the vars.
4118 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4120 # `set' does not quote correctly, so add quotes (double-quote substitution
4121 # turns \\\\ into \\, and sed turns \\ into \).
4123 -e "s/'/'\\\\''/g" \
4124 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4127 # `set' quotes correctly as required by POSIX, so do not add quotes.
4128 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4131 if cmp -s $cache_file confcache; then
4134 if test -w $cache_file; then
4135 echo "updating cache $cache_file"
4136 cat confcache > $cache_file
4138 echo "not updating unwritable cache $cache_file"
4143 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4145 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4146 # Let make expand exec_prefix.
4147 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4149 # Any assignment to VPATH causes Sun make to only execute
4150 # the first set of double-colon rules, so remove it if not needed.
4151 # If there is a colon in the path, we need to keep it.
4152 if test "x$srcdir" = x.; then
4153 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4156 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4158 DEFS=-DHAVE_CONFIG_H
4160 # Without the "./", some shells look in PATH for config.status.
4161 : ${CONFIG_STATUS=./config.status}
4163 echo creating $CONFIG_STATUS
4164 rm -f $CONFIG_STATUS
4165 cat > $CONFIG_STATUS <<EOF
4167 # Generated automatically by configure.
4168 # Run this file to recreate the current configuration.
4169 # This directory was configured as follows,
4170 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4172 # $0 $ac_configure_args
4174 # Compiler output produced by configure, useful for debugging
4175 # configure, is in ./config.log if it exists.
4177 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4180 case "\$ac_option" in
4181 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4182 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4183 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4184 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4185 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4187 -help | --help | --hel | --he | --h)
4188 echo "\$ac_cs_usage"; exit 0 ;;
4189 *) echo "\$ac_cs_usage"; exit 1 ;;
4193 ac_given_srcdir=$srcdir
4194 ac_given_INSTALL="$INSTALL"
4196 trap 'rm -fr `echo "Makefile config/Makefile h/Makefile sbr/Makefile uip/Makefile \
4197 zotnet/Makefile zotnet/mts/Makefile zotnet/tws/Makefile \
4198 zotnet/mf/Makefile zotnet/bboards/Makefile mts/Makefile \
4199 mts/smtp/Makefile mts/sendmail/Makefile mts/mmdf/Makefile \
4200 etc/Makefile man/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4202 cat >> $CONFIG_STATUS <<EOF
4204 # Protect against being on the right side of a sed subst in config.status.
4205 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4206 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4210 s%@CFLAGS@%$CFLAGS%g
4211 s%@CPPFLAGS@%$CPPFLAGS%g
4212 s%@CXXFLAGS@%$CXXFLAGS%g
4213 s%@FFLAGS@%$FFLAGS%g
4215 s%@LDFLAGS@%$LDFLAGS%g
4217 s%@exec_prefix@%$exec_prefix%g
4218 s%@prefix@%$prefix%g
4219 s%@program_transform_name@%$program_transform_name%g
4220 s%@bindir@%$bindir%g
4221 s%@sbindir@%$sbindir%g
4222 s%@libexecdir@%$libexecdir%g
4223 s%@datadir@%$datadir%g
4224 s%@sysconfdir@%$sysconfdir%g
4225 s%@sharedstatedir@%$sharedstatedir%g
4226 s%@localstatedir@%$localstatedir%g
4227 s%@libdir@%$libdir%g
4228 s%@includedir@%$includedir%g
4229 s%@oldincludedir@%$oldincludedir%g
4230 s%@infodir@%$infodir%g
4231 s%@mandir@%$mandir%g
4233 s%@host_alias@%$host_alias%g
4234 s%@host_cpu@%$host_cpu%g
4235 s%@host_vendor@%$host_vendor%g
4236 s%@host_os@%$host_os%g
4237 s%@target@%$target%g
4238 s%@target_alias@%$target_alias%g
4239 s%@target_cpu@%$target_cpu%g
4240 s%@target_vendor@%$target_vendor%g
4241 s%@target_os@%$target_os%g
4243 s%@build_alias@%$build_alias%g
4244 s%@build_cpu@%$build_cpu%g
4245 s%@build_vendor@%$build_vendor%g
4246 s%@build_os@%$build_os%g
4247 s%@VERSION@%$VERSION%g
4249 s%@MTSLIB@%$MTSLIB%g
4250 s%@POPLIB@%$POPLIB%g
4251 s%@POPSED@%$POPSED%g
4253 s%@SET_MAKE@%$SET_MAKE%g
4254 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4255 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4256 s%@INSTALL_DATA@%$INSTALL_DATA%g
4257 s%@RANLIB@%$RANLIB%g
4260 s%@LEXLIB@%$LEXLIB%g
4261 s%@LORDER@%$LORDER%g
4263 s%@sendmailpath@%$sendmailpath%g
4264 s%@morepath@%$morepath%g
4265 s%@pagerpath@%$pagerpath%g
4266 s%@vipath@%$vipath%g
4267 s%@editorpath@%$editorpath%g
4268 s%@mailspool@%$mailspool%g
4270 s%@LIBOBJS@%$LIBOBJS%g
4271 s%@TERMLIB@%$TERMLIB%g
4272 s%@HESIOD_INCLUDES@%$HESIOD_INCLUDES%g
4273 s%@HESIOD_LIBS@%$HESIOD_LIBS%g
4274 s%@KRB4_INCLUDES@%$KRB4_INCLUDES%g
4275 s%@KRB4_LIBS@%$KRB4_LIBS%g
4276 s%@SIGNAL_H@%$SIGNAL_H%g
4281 cat >> $CONFIG_STATUS <<\EOF
4283 # Split the substitutions into bite-sized pieces for seds with
4284 # small command number limits, like on Digital OSF/1 and HP-UX.
4285 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4286 ac_file=1 # Number of current file.
4287 ac_beg=1 # First line for current file.
4288 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4291 while $ac_more_lines; do
4292 if test $ac_beg -gt 1; then
4293 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4295 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4297 if test ! -s conftest.s$ac_file; then
4299 rm -f conftest.s$ac_file
4301 if test -z "$ac_sed_cmds"; then
4302 ac_sed_cmds="sed -f conftest.s$ac_file"
4304 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4306 ac_file=`expr $ac_file + 1`
4308 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4311 if test -z "$ac_sed_cmds"; then
4316 cat >> $CONFIG_STATUS <<EOF
4318 CONFIG_FILES=\${CONFIG_FILES-"Makefile config/Makefile h/Makefile sbr/Makefile uip/Makefile \
4319 zotnet/Makefile zotnet/mts/Makefile zotnet/tws/Makefile \
4320 zotnet/mf/Makefile zotnet/bboards/Makefile mts/Makefile \
4321 mts/smtp/Makefile mts/sendmail/Makefile mts/mmdf/Makefile \
4322 etc/Makefile man/Makefile"}
4324 cat >> $CONFIG_STATUS <<\EOF
4325 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4326 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4328 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4329 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4330 *) ac_file_in="${ac_file}.in" ;;
4333 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4335 # Remove last slash and all that follows it. Not all systems have dirname.
4336 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4337 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4338 # The file is in a subdirectory.
4339 test ! -d "$ac_dir" && mkdir "$ac_dir"
4340 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4341 # A "../" for each directory in $ac_dir_suffix.
4342 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4344 ac_dir_suffix= ac_dots=
4347 case "$ac_given_srcdir" in
4349 if test -z "$ac_dots"; then top_srcdir=.
4350 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4351 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4353 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4354 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4357 case "$ac_given_INSTALL" in
4358 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4359 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4362 echo creating "$ac_file"
4364 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4366 *Makefile*) ac_comsub="1i\\
4367 # $configure_input" ;;
4371 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4373 s%@configure_input@%$configure_input%g
4374 s%@srcdir@%$srcdir%g
4375 s%@top_srcdir@%$top_srcdir%g
4376 s%@INSTALL@%$INSTALL%g
4377 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4381 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4382 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4384 # ac_d sets the value in "#define NAME VALUE" lines.
4385 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4386 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4389 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4390 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4391 ac_uB='\([ ]\)%\1#\2define\3'
4394 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4395 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4396 ac_eB='$%\1#\2define\3'
4400 if test "${CONFIG_HEADERS+set}" != set; then
4402 cat >> $CONFIG_STATUS <<EOF
4403 CONFIG_HEADERS="config.h"
4405 cat >> $CONFIG_STATUS <<\EOF
4407 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4408 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4410 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4411 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4412 *) ac_file_in="${ac_file}.in" ;;
4415 echo creating $ac_file
4417 rm -f conftest.frag conftest.in conftest.out
4418 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4419 cat $ac_file_inputs > conftest.in
4423 # Transform confdefs.h into a sed script conftest.vals that substitutes
4424 # the proper values into config.h.in to produce config.h. And first:
4425 # Protect against being on the right side of a sed subst in config.status.
4426 # Protect against being in an unquoted here document in config.status.
4428 cat > conftest.hdr <<\EOF
4431 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4435 sed -n -f conftest.hdr confdefs.h > conftest.vals
4438 # This sed command replaces #undef with comments. This is necessary, for
4439 # example, in the case of _POSIX_SOURCE, which is predefined and required
4440 # on some systems where configure will not decide to define it.
4441 cat >> conftest.vals <<\EOF
4442 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4445 # Break up conftest.vals because some shells have a limit on
4446 # the size of here documents, and old seds have small limits too.
4451 ac_lines=`grep -c . conftest.vals`
4452 # grep -c gives empty output for an empty file on some AIX systems.
4453 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4454 # Write a limited-size here document to conftest.frag.
4455 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4456 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4458 sed -f conftest.frag conftest.in > conftest.out
4460 mv conftest.out conftest.in
4462 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4464 mv conftest.tail conftest.vals
4468 cat >> $CONFIG_STATUS <<\EOF
4469 rm -f conftest.frag conftest.h
4470 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4471 cat conftest.in >> conftest.h
4473 if cmp -s $ac_file conftest.h 2>/dev/null; then
4474 echo "$ac_file is unchanged"
4477 # Remove last slash and all that follows it. Not all systems have dirname.
4478 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4479 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4480 # The file is in a subdirectory.
4481 test ! -d "$ac_dir" && mkdir "$ac_dir"
4484 mv conftest.h $ac_file
4489 cat >> $CONFIG_STATUS <<EOF
4492 cat >> $CONFIG_STATUS <<\EOF
4494 test -z "$CONFIG_HEADERS" || echo > stamp-h
4497 chmod +x $CONFIG_STATUS
4498 rm -fr confdefs* $ac_clean_files
4499 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4502 eval "nmhbin=${bindir}"; eval "nmhbin2=${nmhbin}"
4503 eval "nmhsysconf=${sysconfdir}"; eval "nmhsysconf2=${nmhsysconf}"
4504 eval "nmhlib=${libdir}"; eval "nmhlib2=${nmhlib}"
4505 eval "nmhman=${mandir}"
4510 nmh version : ${VERSION}
4511 target os : ${target}
4513 compiler flags : ${CFLAGS}
4514 linker flags : ${LDFLAGS}
4515 source code location : ${srcdir}
4516 binary install path : ${nmhbin2}
4517 libary install path : ${nmhlib2}
4518 config files install path : ${nmhsysconf2}
4519 man page install path : ${nmhman}
4520 transport system : ${MTS}
4521 default editor : ${editorpath}
4522 default pager : ${pagerpath}"