3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --with-mts=MTS specify the mail transport agent"
17 --with-editor=EDITOR specify the default editor"
19 --with-pager=PAGER specify the default pager"
21 --enable-nmh-mhe enable mhe support (DEFAULT)"
23 --enable-nmh-pop enable client-side support for pop"
25 --with-krb4=PREFIX specify location of Kerberos V4 for kpop support"
27 --with-hesiod=PREFIX specify location of Hesiod"
29 --enable-nmh-debug enable nmh code debugging"
30 ac_default_prefix=/usr/local/nmh
32 # Initialize some variables set by options.
33 # The variables have the same names as the options, with
34 # dashes changed to underlines.
36 cache_file=./config.cache
45 program_transform_name=s,x,x,
53 bindir='${exec_prefix}/bin'
54 sbindir='${exec_prefix}/sbin'
55 libexecdir='${exec_prefix}/libexec'
56 datadir='${prefix}/share'
57 sysconfdir='${prefix}/etc'
58 sharedstatedir='${prefix}/com'
59 localstatedir='${prefix}/var'
60 libdir='${exec_prefix}/lib'
61 includedir='${prefix}/include'
62 oldincludedir='/usr/include'
63 infodir='${prefix}/info'
64 mandir='${prefix}/man'
66 # Initialize some other variables.
69 SHELL=${CONFIG_SHELL-/bin/sh}
70 # Maximum number of lines to put in a shell here document.
77 # If the previous option needs an argument, assign it.
78 if test -n "$ac_prev"; then
79 eval "$ac_prev=\$ac_option"
85 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
89 # Accept the important Cygnus configure options, so we can diagnose typos.
93 -bindir | --bindir | --bindi | --bind | --bin | --bi)
95 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
96 bindir="$ac_optarg" ;;
98 -build | --build | --buil | --bui | --bu)
100 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
101 build="$ac_optarg" ;;
103 -cache-file | --cache-file | --cache-fil | --cache-fi \
104 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
105 ac_prev=cache_file ;;
106 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
107 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
108 cache_file="$ac_optarg" ;;
110 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
112 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
114 datadir="$ac_optarg" ;;
116 -disable-* | --disable-*)
117 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
118 # Reject names that are not valid shell variable names.
119 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
120 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
122 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
123 eval "enable_${ac_feature}=no" ;;
125 -enable-* | --enable-*)
126 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
127 # Reject names that are not valid shell variable names.
128 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
136 eval "enable_${ac_feature}='$ac_optarg'" ;;
138 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
139 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
140 | --exec | --exe | --ex)
141 ac_prev=exec_prefix ;;
142 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
143 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
144 | --exec=* | --exe=* | --ex=*)
145 exec_prefix="$ac_optarg" ;;
147 -gas | --gas | --ga | --g)
148 # Obsolete; use --with-gas.
151 -help | --help | --hel | --he)
152 # Omit some internal or obsolete options to make the list less imposing.
153 # This message is too long to be a string in the A/UX 3.1 sh.
155 Usage: configure [options] [host]
156 Options: [defaults in brackets after descriptions]
158 --cache-file=FILE cache test results in FILE
159 --help print this message
160 --no-create do not create output files
161 --quiet, --silent do not print \`checking...' messages
162 --version print the version of autoconf that created configure
163 Directory and file names:
164 --prefix=PREFIX install architecture-independent files in PREFIX
166 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
168 --bindir=DIR user executables in DIR [EPREFIX/bin]
169 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
170 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
171 --datadir=DIR read-only architecture-independent data in DIR
173 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
174 --sharedstatedir=DIR modifiable architecture-independent data in DIR
176 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
177 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
178 --includedir=DIR C header files in DIR [PREFIX/include]
179 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
180 --infodir=DIR info documentation in DIR [PREFIX/info]
181 --mandir=DIR man documentation in DIR [PREFIX/man]
182 --srcdir=DIR find the sources in DIR [configure dir or ..]
183 --program-prefix=PREFIX prepend PREFIX to installed program names
184 --program-suffix=SUFFIX append SUFFIX to installed program names
185 --program-transform-name=PROGRAM
186 run sed PROGRAM on installed program names
190 --build=BUILD configure for building on BUILD [BUILD=HOST]
191 --host=HOST configure for HOST [guessed]
192 --target=TARGET configure for TARGET [TARGET=HOST]
193 Features and packages:
194 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
195 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
196 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
197 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
198 --x-includes=DIR X include files are in DIR
199 --x-libraries=DIR X library files are in DIR
201 if test -n "$ac_help"; then
202 echo "--enable and --with options recognized:$ac_help"
206 -host | --host | --hos | --ho)
208 -host=* | --host=* | --hos=* | --ho=*)
211 -includedir | --includedir | --includedi | --included | --include \
212 | --includ | --inclu | --incl | --inc)
213 ac_prev=includedir ;;
214 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
215 | --includ=* | --inclu=* | --incl=* | --inc=*)
216 includedir="$ac_optarg" ;;
218 -infodir | --infodir | --infodi | --infod | --info | --inf)
220 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
221 infodir="$ac_optarg" ;;
223 -libdir | --libdir | --libdi | --libd)
225 -libdir=* | --libdir=* | --libdi=* | --libd=*)
226 libdir="$ac_optarg" ;;
228 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
229 | --libexe | --libex | --libe)
230 ac_prev=libexecdir ;;
231 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
232 | --libexe=* | --libex=* | --libe=*)
233 libexecdir="$ac_optarg" ;;
235 -localstatedir | --localstatedir | --localstatedi | --localstated \
236 | --localstate | --localstat | --localsta | --localst \
237 | --locals | --local | --loca | --loc | --lo)
238 ac_prev=localstatedir ;;
239 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
240 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
241 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
242 localstatedir="$ac_optarg" ;;
244 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
246 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
247 mandir="$ac_optarg" ;;
250 # Obsolete; use --without-fp.
253 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
257 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
258 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
261 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
262 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
263 | --oldin | --oldi | --old | --ol | --o)
264 ac_prev=oldincludedir ;;
265 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
266 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
267 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
268 oldincludedir="$ac_optarg" ;;
270 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
272 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
273 prefix="$ac_optarg" ;;
275 -program-prefix | --program-prefix | --program-prefi | --program-pref \
276 | --program-pre | --program-pr | --program-p)
277 ac_prev=program_prefix ;;
278 -program-prefix=* | --program-prefix=* | --program-prefi=* \
279 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
280 program_prefix="$ac_optarg" ;;
282 -program-suffix | --program-suffix | --program-suffi | --program-suff \
283 | --program-suf | --program-su | --program-s)
284 ac_prev=program_suffix ;;
285 -program-suffix=* | --program-suffix=* | --program-suffi=* \
286 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
287 program_suffix="$ac_optarg" ;;
289 -program-transform-name | --program-transform-name \
290 | --program-transform-nam | --program-transform-na \
291 | --program-transform-n | --program-transform- \
292 | --program-transform | --program-transfor \
293 | --program-transfo | --program-transf \
294 | --program-trans | --program-tran \
295 | --progr-tra | --program-tr | --program-t)
296 ac_prev=program_transform_name ;;
297 -program-transform-name=* | --program-transform-name=* \
298 | --program-transform-nam=* | --program-transform-na=* \
299 | --program-transform-n=* | --program-transform-=* \
300 | --program-transform=* | --program-transfor=* \
301 | --program-transfo=* | --program-transf=* \
302 | --program-trans=* | --program-tran=* \
303 | --progr-tra=* | --program-tr=* | --program-t=*)
304 program_transform_name="$ac_optarg" ;;
306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
307 | -silent | --silent | --silen | --sile | --sil)
310 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
312 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
314 sbindir="$ac_optarg" ;;
316 -sharedstatedir | --sharedstatedir | --sharedstatedi \
317 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
318 | --sharedst | --shareds | --shared | --share | --shar \
320 ac_prev=sharedstatedir ;;
321 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
322 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
323 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
325 sharedstatedir="$ac_optarg" ;;
327 -site | --site | --sit)
329 -site=* | --site=* | --sit=*)
332 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
334 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
335 srcdir="$ac_optarg" ;;
337 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
338 | --syscon | --sysco | --sysc | --sys | --sy)
339 ac_prev=sysconfdir ;;
340 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
341 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
342 sysconfdir="$ac_optarg" ;;
344 -target | --target | --targe | --targ | --tar | --ta | --t)
346 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
347 target="$ac_optarg" ;;
349 -v | -verbose | --verbose | --verbos | --verbo | --verb)
352 -version | --version | --versio | --versi | --vers)
353 echo "configure generated by autoconf version 2.13"
357 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
358 # Reject names that are not valid shell variable names.
359 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
360 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
362 ac_package=`echo $ac_package| sed 's/-/_/g'`
367 eval "with_${ac_package}='$ac_optarg'" ;;
369 -without-* | --without-*)
370 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
371 # Reject names that are not valid shell variable names.
372 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
373 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375 ac_package=`echo $ac_package| sed 's/-/_/g'`
376 eval "with_${ac_package}=no" ;;
379 # Obsolete; use --with-x.
382 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
383 | --x-incl | --x-inc | --x-in | --x-i)
384 ac_prev=x_includes ;;
385 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
386 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
387 x_includes="$ac_optarg" ;;
389 -x-libraries | --x-libraries | --x-librarie | --x-librari \
390 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
391 ac_prev=x_libraries ;;
392 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
393 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
394 x_libraries="$ac_optarg" ;;
396 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
400 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
401 echo "configure: warning: $ac_option: invalid host type" 1>&2
403 if test "x$nonopt" != xNONE; then
404 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
412 if test -n "$ac_prev"; then
413 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
416 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
418 # File descriptor usage:
421 # 2 errors and warnings
422 # 3 some systems may open it to /dev/tty
423 # 4 used on the Kubota Titan
424 # 6 checking for... messages and results
425 # 5 compiler messages saved in config.log
426 if test "$silent" = yes; then
434 This file contains any messages produced by compilers while
435 running configure, to aid debugging if configure makes a mistake.
438 # Strip out --no-create and --no-recursion so they do not pile up.
439 # Also quote any args containing shell metacharacters.
444 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
445 | --no-cr | --no-c) ;;
446 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
447 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
448 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
449 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
450 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
455 # Only set these to C if already set. These must not be set unconditionally
456 # because not all systems understand e.g. LANG=C (notably SCO).
457 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
458 # Non-C LC_CTYPE values break the ctype check.
459 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
460 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
461 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
462 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
464 # confdefs.h avoids OS command line length limits that DEFS can exceed.
465 rm -rf conftest* confdefs.h
466 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
469 # A filename unique to this package, relative to the directory that
470 # configure is in, which we can look for to find out if srcdir is correct.
471 ac_unique_file=h/nmh.h
473 # Find the source files, if location was not specified.
474 if test -z "$srcdir"; then
475 ac_srcdir_defaulted=yes
476 # Try the directory containing this script, then its parent.
478 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
479 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
481 if test ! -r $srcdir/$ac_unique_file; then
485 ac_srcdir_defaulted=no
487 if test ! -r $srcdir/$ac_unique_file; then
488 if test "$ac_srcdir_defaulted" = yes; then
489 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
491 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
494 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
496 # Prefer explicitly selected file to automatically selected ones.
497 if test -z "$CONFIG_SITE"; then
498 if test "x$prefix" != xNONE; then
499 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
501 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
504 for ac_site_file in $CONFIG_SITE; do
505 if test -r "$ac_site_file"; then
506 echo "loading site script $ac_site_file"
511 if test -r "$cache_file"; then
512 echo "loading cache $cache_file"
515 echo "creating cache $cache_file"
520 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
521 ac_cpp='$CPP $CPPFLAGS'
522 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
523 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
524 cross_compiling=$ac_cv_prog_cc_cross
528 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
529 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
530 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
537 ac_n= ac_c='\c' ac_t=
544 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
545 if test -f $ac_dir/install-sh; then
547 ac_install_sh="$ac_aux_dir/install-sh -c"
549 elif test -f $ac_dir/install.sh; then
551 ac_install_sh="$ac_aux_dir/install.sh -c"
555 if test -z "$ac_aux_dir"; then
556 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
558 ac_config_guess=$ac_aux_dir/config.guess
559 ac_config_sub=$ac_aux_dir/config.sub
560 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
563 # Do some error checking and defaulting for the host and target type.
565 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
568 # 1. You are not allowed to specify --host, --target, and nonopt at the
570 # 2. Host defaults to nonopt.
571 # 3. If nonopt is not specified, then host defaults to the current host,
572 # as determined by config.guess.
573 # 4. Target and build default to nonopt.
574 # 5. If nonopt is not specified, then target and build default to host.
576 # The aliases save the names the user supplied, while $host etc.
577 # will get canonicalized.
578 case $host---$target---$nonopt in
579 NONE---*---* | *---NONE---* | *---*---NONE) ;;
580 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
584 # Make sure we can run config.sub.
585 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
586 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
589 echo $ac_n "checking host system type""... $ac_c" 1>&6
590 echo "configure:591: checking host system type" >&5
593 case "$host_alias" in
597 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
598 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
600 *) host_alias=$nonopt ;;
604 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
605 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
606 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
607 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
608 echo "$ac_t""$host" 1>&6
610 echo $ac_n "checking target system type""... $ac_c" 1>&6
611 echo "configure:612: checking target system type" >&5
614 case "$target_alias" in
617 NONE) target_alias=$host_alias ;;
618 *) target_alias=$nonopt ;;
622 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
623 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
624 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
625 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
626 echo "$ac_t""$target" 1>&6
628 echo $ac_n "checking build system type""... $ac_c" 1>&6
629 echo "configure:630: checking build system type" >&5
632 case "$build_alias" in
635 NONE) build_alias=$host_alias ;;
636 *) build_alias=$nonopt ;;
640 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
641 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
642 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
643 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
644 echo "$ac_t""$build" 1>&6
646 test "$host_alias" != "$target_alias" &&
647 test "$program_prefix$program_suffix$program_transform_name" = \
649 program_prefix=${target_alias}-
652 VERSION=`sed -e 's/nmh-//' ${srcdir}/VERSION`
653 echo "configuring for nmh-$VERSION"
655 # Check whether --with-mts or --without-mts was given.
656 if test "${with_mts+set}" = set; then
662 if test x$with_mts = xsmtp; then
664 MTSLIB="mts/smtp/libsmtp.a"
665 cat >> confdefs.h <<\EOF
668 elif test x$with_mts = xsendmail; then
670 MTSLIB="mts/sendmail/libsend.a"
671 cat >> confdefs.h <<\EOF
676 MTSLIB="mts/smtp/libsmtp.a"
677 cat >> confdefs.h <<\EOF
685 # Check whether --with-editor or --without-editor was given.
686 if test "${with_editor+set}" = set; then
687 withval="$with_editor"
692 if test -n "$with_editor"; then
693 editorpath="$with_editor"
696 # Check whether --with-pager or --without-pager was given.
697 if test "${with_pager+set}" = set; then
698 withval="$with_pager"
703 if test -n "$with_pager"; then
704 pagerpath="$with_pager"
707 # Check whether --enable-nmh-mhe or --disable-nmh-mhe was given.
708 if test "${enable_nmh_mhe+set}" = set; then
709 enableval="$enable_nmh_mhe"
714 if test x$enable_nmh_mhe != xno; then
715 cat >> confdefs.h <<\EOF
720 # Check whether --enable-nmh-pop or --disable-nmh-pop was given.
721 if test "${enable_nmh_pop+set}" = set; then
722 enableval="$enable_nmh_pop"
726 if test x$enable_nmh_pop = xyes; then
727 cat >> confdefs.h <<\EOF
731 POPSED='/^%nmhbeginpop%/d;/^%nmhendpop%/d'
733 POPSED='/^%nmhbeginpop%/,/^%nmhendpop%/d'
736 # Check whether --with-krb4 or --without-krb4 was given.
737 if test "${with_krb4+set}" = set; then
742 if test x$with_krb4 != x -a x$with_krb4 != xno; then
743 cat >> confdefs.h <<\EOF
746 cat >> confdefs.h <<\EOF
747 #define KPOP_PRINCIPAL "pop"
751 # Check whether --with-hesiod or --without-hesiod was given.
752 if test "${with_hesiod+set}" = set; then
753 withval="$with_hesiod"
757 if test x$with_hesiod != x -a x$with_hesiod != xno; then
758 cat >> confdefs.h <<\EOF
763 # Check whether --enable-nmh-debug or --disable-nmh-debug was given.
764 if test "${enable_nmh_debug+set}" = set; then
765 enableval="$enable_nmh_debug"
772 test -z "$CFLAGS" && CFLAGS= auto_cflags=1
773 if test x$enable_nmh_debug = xyes; then
774 test -z "$LDFLAGS" && LDFLAGS=-g
777 # Extract the first word of "gcc", so it can be a program name with args.
778 set dummy gcc; ac_word=$2
779 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
780 echo "configure:781: checking for $ac_word" >&5
781 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
782 echo $ac_n "(cached) $ac_c" 1>&6
784 if test -n "$CC"; then
785 ac_cv_prog_CC="$CC" # Let the user override the test.
787 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
789 for ac_dir in $ac_dummy; do
790 test -z "$ac_dir" && ac_dir=.
791 if test -f $ac_dir/$ac_word; then
800 if test -n "$CC"; then
801 echo "$ac_t""$CC" 1>&6
803 echo "$ac_t""no" 1>&6
806 if test -z "$CC"; then
807 # Extract the first word of "cc", so it can be a program name with args.
808 set dummy cc; ac_word=$2
809 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
810 echo "configure:811: checking for $ac_word" >&5
811 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
812 echo $ac_n "(cached) $ac_c" 1>&6
814 if test -n "$CC"; then
815 ac_cv_prog_CC="$CC" # Let the user override the test.
817 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
820 for ac_dir in $ac_dummy; do
821 test -z "$ac_dir" && ac_dir=.
822 if test -f $ac_dir/$ac_word; then
823 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
832 if test $ac_prog_rejected = yes; then
833 # We found a bogon in the path, so make sure we never use it.
834 set dummy $ac_cv_prog_CC
836 if test $# -gt 0; then
837 # We chose a different compiler from the bogus one.
838 # However, it has the same basename, so the bogon will be chosen
839 # first if we set CC to just the basename; use the full file name.
841 set dummy "$ac_dir/$ac_word" "$@"
849 if test -n "$CC"; then
850 echo "$ac_t""$CC" 1>&6
852 echo "$ac_t""no" 1>&6
855 if test -z "$CC"; then
858 # Extract the first word of "cl", so it can be a program name with args.
859 set dummy cl; ac_word=$2
860 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
861 echo "configure:862: checking for $ac_word" >&5
862 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
863 echo $ac_n "(cached) $ac_c" 1>&6
865 if test -n "$CC"; then
866 ac_cv_prog_CC="$CC" # Let the user override the test.
868 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
870 for ac_dir in $ac_dummy; do
871 test -z "$ac_dir" && ac_dir=.
872 if test -f $ac_dir/$ac_word; then
881 if test -n "$CC"; then
882 echo "$ac_t""$CC" 1>&6
884 echo "$ac_t""no" 1>&6
889 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
892 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
893 echo "configure:894: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
896 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
897 ac_cpp='$CPP $CPPFLAGS'
898 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
899 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
900 cross_compiling=$ac_cv_prog_cc_cross
902 cat > conftest.$ac_ext << EOF
904 #line 905 "configure"
905 #include "confdefs.h"
909 if { (eval echo configure:910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
910 ac_cv_prog_cc_works=yes
911 # If we can't run a trivial program, we are probably using a cross compiler.
912 if (./conftest; exit) 2>/dev/null; then
913 ac_cv_prog_cc_cross=no
915 ac_cv_prog_cc_cross=yes
918 echo "configure: failed program was:" >&5
919 cat conftest.$ac_ext >&5
920 ac_cv_prog_cc_works=no
924 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
925 ac_cpp='$CPP $CPPFLAGS'
926 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
927 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
928 cross_compiling=$ac_cv_prog_cc_cross
930 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
931 if test $ac_cv_prog_cc_works = no; then
932 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
934 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
935 echo "configure:936: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
936 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
937 cross_compiling=$ac_cv_prog_cc_cross
939 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
940 echo "configure:941: checking whether we are using GNU C" >&5
941 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
942 echo $ac_n "(cached) $ac_c" 1>&6
944 cat > conftest.c <<EOF
949 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
956 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
958 if test $ac_cv_prog_gcc = yes; then
964 ac_test_CFLAGS="${CFLAGS+set}"
965 ac_save_CFLAGS="$CFLAGS"
967 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
968 echo "configure:969: checking whether ${CC-cc} accepts -g" >&5
969 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
970 echo $ac_n "(cached) $ac_c" 1>&6
972 echo 'void f(){}' > conftest.c
973 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
982 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
983 if test "$ac_test_CFLAGS" = set; then
984 CFLAGS="$ac_save_CFLAGS"
985 elif test $ac_cv_prog_cc_g = yes; then
986 if test "$GCC" = yes; then
992 if test "$GCC" = yes; then
1000 if test -n "$auto_cflags"; then
1001 if test x$enable_nmh_debug = xyes; then
1002 if test -n "$GCC"; then
1003 test -z "$CFLAGS" && CFLAGS="-Wall -g" || CFLAGS="$CFLAGS -Wall -g"
1005 test -z "$CFLAGS" && CFLAGS=-g || CFLAGS="$CFLAGS -g"
1008 test -z "$LDFLAGS" && LDFLAGS=-s
1009 if test -n "$GCC"; then
1010 test -z "$CFLAGS" && CFLAGS=-O2 || CFLAGS="$CFLAGS -O2"
1012 test -z "$CFLAGS" && CFLAGS=-O || CFLAGS="$CFLAGS -O"
1017 echo $ac_n "checking for working const""... $ac_c" 1>&6
1018 echo "configure:1019: checking for working const" >&5
1019 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1020 echo $ac_n "(cached) $ac_c" 1>&6
1022 cat > conftest.$ac_ext <<EOF
1023 #line 1024 "configure"
1024 #include "confdefs.h"
1028 /* Ultrix mips cc rejects this. */
1029 typedef int charset[2]; const charset x;
1030 /* SunOS 4.1.1 cc rejects this. */
1031 char const *const *ccp;
1033 /* NEC SVR4.0.2 mips cc rejects this. */
1034 struct point {int x, y;};
1035 static struct point const zero = {0,0};
1036 /* AIX XL C 1.02.0.0 rejects this.
1037 It does not let you subtract one const X* pointer from another in an arm
1038 of an if-expression whose if-part is not a constant expression */
1039 const char *g = "string";
1040 ccp = &g + (g ? g-g : 0);
1041 /* HPUX 7.0 cc rejects these. */
1044 ccp = (char const *const *) p;
1045 { /* SCO 3.2v4 cc rejects this. */
1047 char const *s = 0 ? (char *) 0 : (char const *) 0;
1051 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1053 const int *foo = &x[0];
1056 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1057 typedef const int *iptr;
1061 { /* AIX XL C 1.02.0.0 rejects this saying
1062 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1063 struct s { int j; const int *ap[3]; };
1064 struct s *b; b->j = 5;
1066 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1072 if { (eval echo configure:1073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1076 echo "configure: failed program was:" >&5
1077 cat conftest.$ac_ext >&5
1084 echo "$ac_t""$ac_cv_c_const" 1>&6
1085 if test $ac_cv_c_const = no; then
1086 cat >> confdefs.h <<\EOF
1092 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1093 echo "configure:1094: checking whether ${MAKE-make} sets \${MAKE}" >&5
1094 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1095 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1096 echo $ac_n "(cached) $ac_c" 1>&6
1098 cat > conftestmake <<\EOF
1100 @echo 'ac_maketemp="${MAKE}"'
1102 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1103 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1104 if test -n "$ac_maketemp"; then
1105 eval ac_cv_prog_make_${ac_make}_set=yes
1107 eval ac_cv_prog_make_${ac_make}_set=no
1111 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1112 echo "$ac_t""yes" 1>&6
1115 echo "$ac_t""no" 1>&6
1116 SET_MAKE="MAKE=${MAKE-make}"
1118 # Find a good install program. We prefer a C program (faster),
1119 # so one script is as good as another. But avoid the broken or
1120 # incompatible versions:
1121 # SysV /etc/install, /usr/sbin/install
1122 # SunOS /usr/etc/install
1123 # IRIX /sbin/install
1125 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1126 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1127 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1128 # ./install, which can be erroneously created by make from ./install.sh.
1129 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1130 echo "configure:1131: checking for a BSD compatible install" >&5
1131 if test -z "$INSTALL"; then
1132 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1133 echo $ac_n "(cached) $ac_c" 1>&6
1135 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1136 for ac_dir in $PATH; do
1137 # Account for people who put trailing slashes in PATH elements.
1139 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1141 # OSF1 and SCO ODT 3.0 have their own names for install.
1142 # Don't use installbsd from OSF since it installs stuff as root
1144 for ac_prog in ginstall scoinst install; do
1145 if test -f $ac_dir/$ac_prog; then
1146 if test $ac_prog = install &&
1147 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1148 # AIX install. It has an incompatible calling convention.
1151 ac_cv_path_install="$ac_dir/$ac_prog -c"
1162 if test "${ac_cv_path_install+set}" = set; then
1163 INSTALL="$ac_cv_path_install"
1165 # As a last resort, use the slow shell script. We don't cache a
1166 # path for INSTALL within a source directory, because that will
1167 # break other packages using the cache if that directory is
1168 # removed, or if the path is relative.
1169 INSTALL="$ac_install_sh"
1172 echo "$ac_t""$INSTALL" 1>&6
1174 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1175 # It thinks the first close brace ends the variable substitution.
1176 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1178 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1180 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1181 # Extract the first word of "ranlib", so it can be a program name with args.
1182 set dummy ranlib; ac_word=$2
1183 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1184 echo "configure:1185: checking for $ac_word" >&5
1185 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1186 echo $ac_n "(cached) $ac_c" 1>&6
1188 if test -n "$RANLIB"; then
1189 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1191 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1193 for ac_dir in $ac_dummy; do
1194 test -z "$ac_dir" && ac_dir=.
1195 if test -f $ac_dir/$ac_word; then
1196 ac_cv_prog_RANLIB="ranlib"
1201 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1204 RANLIB="$ac_cv_prog_RANLIB"
1205 if test -n "$RANLIB"; then
1206 echo "$ac_t""$RANLIB" 1>&6
1208 echo "$ac_t""no" 1>&6
1210 for ac_prog in mawk gawk nawk awk
1212 # Extract the first word of "$ac_prog", so it can be a program name with args.
1213 set dummy $ac_prog; ac_word=$2
1214 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1215 echo "configure:1216: checking for $ac_word" >&5
1216 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1217 echo $ac_n "(cached) $ac_c" 1>&6
1219 if test -n "$AWK"; then
1220 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1222 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1224 for ac_dir in $ac_dummy; do
1225 test -z "$ac_dir" && ac_dir=.
1226 if test -f $ac_dir/$ac_word; then
1227 ac_cv_prog_AWK="$ac_prog"
1234 AWK="$ac_cv_prog_AWK"
1235 if test -n "$AWK"; then
1236 echo "$ac_t""$AWK" 1>&6
1238 echo "$ac_t""no" 1>&6
1241 test -n "$AWK" && break
1243 # Extract the first word of "flex", so it can be a program name with args.
1244 set dummy flex; ac_word=$2
1245 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1246 echo "configure:1247: checking for $ac_word" >&5
1247 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1248 echo $ac_n "(cached) $ac_c" 1>&6
1250 if test -n "$LEX"; then
1251 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1253 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1255 for ac_dir in $ac_dummy; do
1256 test -z "$ac_dir" && ac_dir=.
1257 if test -f $ac_dir/$ac_word; then
1258 ac_cv_prog_LEX="flex"
1263 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1266 LEX="$ac_cv_prog_LEX"
1267 if test -n "$LEX"; then
1268 echo "$ac_t""$LEX" 1>&6
1270 echo "$ac_t""no" 1>&6
1273 if test -z "$LEXLIB"
1279 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1280 echo "configure:1281: checking for yywrap in -l$ac_lib" >&5
1281 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1282 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1283 echo $ac_n "(cached) $ac_c" 1>&6
1285 ac_save_LIBS="$LIBS"
1286 LIBS="-l$ac_lib $LIBS"
1287 cat > conftest.$ac_ext <<EOF
1288 #line 1289 "configure"
1289 #include "confdefs.h"
1290 /* Override any gcc2 internal prototype to avoid an error. */
1291 /* We use char because int might match the return type of a gcc2
1292 builtin and then its argument prototype would still apply. */
1299 if { (eval echo configure:1300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1301 eval "ac_cv_lib_$ac_lib_var=yes"
1303 echo "configure: failed program was:" >&5
1304 cat conftest.$ac_ext >&5
1306 eval "ac_cv_lib_$ac_lib_var=no"
1309 LIBS="$ac_save_LIBS"
1312 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1313 echo "$ac_t""yes" 1>&6
1316 echo "$ac_t""no" 1>&6
1321 pathtmp=/usr/bin:/bin:/usr/local/bin:/usr/xpg4/bin:/usr/ucb
1322 # Extract the first word of "cut", so it can be a program name with args.
1323 set dummy cut; ac_word=$2
1324 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1325 echo "configure:1326: checking for $ac_word" >&5
1326 if eval "test \"`echo '$''{'ac_cv_path_cutpath'+set}'`\" = set"; then
1327 echo $ac_n "(cached) $ac_c" 1>&6
1331 ac_cv_path_cutpath="$cutpath" # Let the user override the test with a path.
1334 ac_cv_path_cutpath="$cutpath" # Let the user override the test with a dos path.
1337 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1339 for ac_dir in $ac_dummy; do
1340 test -z "$ac_dir" && ac_dir=.
1341 if test -f $ac_dir/$ac_word; then
1342 ac_cv_path_cutpath="$ac_dir/$ac_word"
1347 test -z "$ac_cv_path_cutpath" && ac_cv_path_cutpath="no"
1351 cutpath="$ac_cv_path_cutpath"
1352 if test -n "$cutpath"; then
1353 echo "$ac_t""$cutpath" 1>&6
1355 echo "$ac_t""no" 1>&6
1359 # Extract the first word of "lorder", so it can be a program name with args.
1360 set dummy lorder; ac_word=$2
1361 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1362 echo "configure:1363: checking for $ac_word" >&5
1363 if eval "test \"`echo '$''{'ac_cv_prog_LORDER'+set}'`\" = set"; then
1364 echo $ac_n "(cached) $ac_c" 1>&6
1366 if test -n "$LORDER"; then
1367 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
1369 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1371 for ac_dir in $ac_dummy; do
1372 test -z "$ac_dir" && ac_dir=.
1373 if test -f $ac_dir/$ac_word; then
1374 ac_cv_prog_LORDER="lorder"
1379 test -z "$ac_cv_prog_LORDER" && ac_cv_prog_LORDER="no"
1382 LORDER="$ac_cv_prog_LORDER"
1383 if test -n "$LORDER"; then
1384 echo "$ac_t""$LORDER" 1>&6
1386 echo "$ac_t""no" 1>&6
1388 # Extract the first word of "tsort", so it can be a program name with args.
1389 set dummy tsort; ac_word=$2
1390 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1391 echo "configure:1392: checking for $ac_word" >&5
1392 if eval "test \"`echo '$''{'ac_cv_prog_TSORT'+set}'`\" = set"; then
1393 echo $ac_n "(cached) $ac_c" 1>&6
1395 if test -n "$TSORT"; then
1396 ac_cv_prog_TSORT="$TSORT" # Let the user override the test.
1398 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1400 for ac_dir in $ac_dummy; do
1401 test -z "$ac_dir" && ac_dir=.
1402 if test -f $ac_dir/$ac_word; then
1403 ac_cv_prog_TSORT="tsort"
1408 test -z "$ac_cv_prog_TSORT" && ac_cv_prog_TSORT="no"
1411 TSORT="$ac_cv_prog_TSORT"
1412 if test -n "$TSORT"; then
1413 echo "$ac_t""$TSORT" 1>&6
1415 echo "$ac_t""no" 1>&6
1418 if test x$ac_cv_prog_LORDER != xlorder -o x$ac_cv_prog_TSORT != xtsort; then
1423 pathtmp=/usr/bin:/bin:/usr/local/bin:/usr/xpg4/bin:/usr/ucb
1424 # Extract the first word of "ls", so it can be a program name with args.
1425 set dummy ls; ac_word=$2
1426 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1427 echo "configure:1428: checking for $ac_word" >&5
1428 if eval "test \"`echo '$''{'ac_cv_path_lspath'+set}'`\" = set"; then
1429 echo $ac_n "(cached) $ac_c" 1>&6
1433 ac_cv_path_lspath="$lspath" # Let the user override the test with a path.
1436 ac_cv_path_lspath="$lspath" # Let the user override the test with a dos path.
1439 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1441 for ac_dir in $ac_dummy; do
1442 test -z "$ac_dir" && ac_dir=.
1443 if test -f $ac_dir/$ac_word; then
1444 ac_cv_path_lspath="$ac_dir/$ac_word"
1449 test -z "$ac_cv_path_lspath" && ac_cv_path_lspath="no"
1453 lspath="$ac_cv_path_lspath"
1454 if test -n "$lspath"; then
1455 echo "$ac_t""$lspath" 1>&6
1457 echo "$ac_t""no" 1>&6
1461 pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin
1462 # Extract the first word of "more", so it can be a program name with args.
1463 set dummy more; ac_word=$2
1464 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1465 echo "configure:1466: checking for $ac_word" >&5
1466 if eval "test \"`echo '$''{'ac_cv_path_morepath'+set}'`\" = set"; then
1467 echo $ac_n "(cached) $ac_c" 1>&6
1471 ac_cv_path_morepath="$morepath" # Let the user override the test with a path.
1474 ac_cv_path_morepath="$morepath" # Let the user override the test with a dos path.
1477 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1479 for ac_dir in $ac_dummy; do
1480 test -z "$ac_dir" && ac_dir=.
1481 if test -f $ac_dir/$ac_word; then
1482 ac_cv_path_morepath="$ac_dir/$ac_word"
1487 test -z "$ac_cv_path_morepath" && ac_cv_path_morepath="no"
1491 morepath="$ac_cv_path_morepath"
1492 if test -n "$morepath"; then
1493 echo "$ac_t""$morepath" 1>&6
1495 echo "$ac_t""no" 1>&6
1499 if test -z "$pagerpath"; then
1500 pagerpath="$morepath"
1503 pathtmp=/usr/lib:/usr/sbin:/usr/etc:/usr/ucblib:/usr/bin:/bin
1504 # Extract the first word of "sendmail", so it can be a program name with args.
1505 set dummy sendmail; ac_word=$2
1506 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1507 echo "configure:1508: checking for $ac_word" >&5
1508 if eval "test \"`echo '$''{'ac_cv_path_sendmailpath'+set}'`\" = set"; then
1509 echo $ac_n "(cached) $ac_c" 1>&6
1511 case "$sendmailpath" in
1513 ac_cv_path_sendmailpath="$sendmailpath" # Let the user override the test with a path.
1516 ac_cv_path_sendmailpath="$sendmailpath" # Let the user override the test with a dos path.
1519 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1521 for ac_dir in $ac_dummy; do
1522 test -z "$ac_dir" && ac_dir=.
1523 if test -f $ac_dir/$ac_word; then
1524 ac_cv_path_sendmailpath="$ac_dir/$ac_word"
1529 test -z "$ac_cv_path_sendmailpath" && ac_cv_path_sendmailpath="no"
1533 sendmailpath="$ac_cv_path_sendmailpath"
1534 if test -n "$sendmailpath"; then
1535 echo "$ac_t""$sendmailpath" 1>&6
1537 echo "$ac_t""no" 1>&6
1541 pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin
1542 # Extract the first word of "vi", so it can be a program name with args.
1543 set dummy vi; ac_word=$2
1544 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1545 echo "configure:1546: checking for $ac_word" >&5
1546 if eval "test \"`echo '$''{'ac_cv_path_vipath'+set}'`\" = set"; then
1547 echo $ac_n "(cached) $ac_c" 1>&6
1551 ac_cv_path_vipath="$vipath" # Let the user override the test with a path.
1554 ac_cv_path_vipath="$vipath" # Let the user override the test with a dos path.
1557 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1559 for ac_dir in $ac_dummy; do
1560 test -z "$ac_dir" && ac_dir=.
1561 if test -f $ac_dir/$ac_word; then
1562 ac_cv_path_vipath="$ac_dir/$ac_word"
1567 test -z "$ac_cv_path_vipath" && ac_cv_path_vipath="no"
1571 vipath="$ac_cv_path_vipath"
1572 if test -n "$vipath"; then
1573 echo "$ac_t""$vipath" 1>&6
1575 echo "$ac_t""no" 1>&6
1579 if test -z "$editorpath"; then
1580 editorpath="$vipath"
1583 echo $ac_n "checking for broken vi""... $ac_c" 1>&6
1584 echo "configure:1585: checking for broken vi" >&5
1585 if eval "test \"`echo '$''{'nmh_cv_attvibug'+set}'`\" = set"; then
1586 echo $ac_n "(cached) $ac_c" 1>&6
1588 if echo 'r /nonexist-file
1589 q' | ex > /dev/null 2>&1
1597 echo "$ac_t""$nmh_cv_attvibug" 1>&6
1599 if test "$nmh_cv_attvibug" = yes; then
1600 cat >> confdefs.h <<\EOF
1606 echo $ac_n "checking where mail spool is located""... $ac_c" 1>&6
1607 echo "configure:1608: checking where mail spool is located" >&5
1608 if eval "test \"`echo '$''{'nmh_cv_mailspool'+set}'`\" = set"; then
1609 echo $ac_n "(cached) $ac_c" 1>&6
1611 for mailspool in /var/mail /var/spool/mail /usr/spool/mail /dev/null; do
1612 test -d $mailspool && break
1614 nmh_cv_mailspool=$mailspool
1618 echo "$ac_t""$nmh_cv_mailspool" 1>&6
1619 mailspool=$nmh_cv_mailspool
1621 if test "$lspath" != "no" -a "$cutpath" != "no"; then
1622 echo $ac_n "checking whether the mail spool is world-writable""... $ac_c" 1>&6
1623 echo "configure:1624: checking whether the mail spool is world-writable" >&5
1624 if eval "test \"`echo '$''{'nmh_cv_mailspool_world_writable'+set}'`\" = set"; then
1625 echo $ac_n "(cached) $ac_c" 1>&6
1627 if test "`$lspath -dl $mailspool | $cutpath -c9`" = "-"; then
1628 nmh_cv_mailspool_world_writable=no
1630 nmh_cv_mailspool_world_writable=yes
1634 echo "$ac_t""$nmh_cv_mailspool_world_writable" 1>&6
1637 if test "$nmh_cv_mailspool_world_writable" = "no"; then
1638 cat >> confdefs.h <<\EOF
1646 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1648 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1649 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1650 echo "configure:1651: checking for $ac_hdr that defines DIR" >&5
1651 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1652 echo $ac_n "(cached) $ac_c" 1>&6
1654 cat > conftest.$ac_ext <<EOF
1655 #line 1656 "configure"
1656 #include "confdefs.h"
1657 #include <sys/types.h>
1663 if { (eval echo configure:1664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1665 eval "ac_cv_header_dirent_$ac_safe=yes"
1667 echo "configure: failed program was:" >&5
1668 cat conftest.$ac_ext >&5
1670 eval "ac_cv_header_dirent_$ac_safe=no"
1674 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1675 echo "$ac_t""yes" 1>&6
1676 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1677 cat >> confdefs.h <<EOF
1678 #define $ac_tr_hdr 1
1680 ac_header_dirent=$ac_hdr; break
1682 echo "$ac_t""no" 1>&6
1685 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1686 if test $ac_header_dirent = dirent.h; then
1687 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1688 echo "configure:1689: checking for opendir in -ldir" >&5
1689 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1690 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1691 echo $ac_n "(cached) $ac_c" 1>&6
1693 ac_save_LIBS="$LIBS"
1695 cat > conftest.$ac_ext <<EOF
1696 #line 1697 "configure"
1697 #include "confdefs.h"
1698 /* Override any gcc2 internal prototype to avoid an error. */
1699 /* We use char because int might match the return type of a gcc2
1700 builtin and then its argument prototype would still apply. */
1707 if { (eval echo configure:1708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1709 eval "ac_cv_lib_$ac_lib_var=yes"
1711 echo "configure: failed program was:" >&5
1712 cat conftest.$ac_ext >&5
1714 eval "ac_cv_lib_$ac_lib_var=no"
1717 LIBS="$ac_save_LIBS"
1720 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1721 echo "$ac_t""yes" 1>&6
1724 echo "$ac_t""no" 1>&6
1728 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1729 echo "configure:1730: checking for opendir in -lx" >&5
1730 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1731 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1732 echo $ac_n "(cached) $ac_c" 1>&6
1734 ac_save_LIBS="$LIBS"
1736 cat > conftest.$ac_ext <<EOF
1737 #line 1738 "configure"
1738 #include "confdefs.h"
1739 /* Override any gcc2 internal prototype to avoid an error. */
1740 /* We use char because int might match the return type of a gcc2
1741 builtin and then its argument prototype would still apply. */
1748 if { (eval echo configure:1749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1750 eval "ac_cv_lib_$ac_lib_var=yes"
1752 echo "configure: failed program was:" >&5
1753 cat conftest.$ac_ext >&5
1755 eval "ac_cv_lib_$ac_lib_var=no"
1758 LIBS="$ac_save_LIBS"
1761 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1762 echo "$ac_t""yes" 1>&6
1765 echo "$ac_t""no" 1>&6
1770 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1771 echo "configure:1772: checking how to run the C preprocessor" >&5
1772 # On Suns, sometimes $CPP names a directory.
1773 if test -n "$CPP" && test -d "$CPP"; then
1776 if test -z "$CPP"; then
1777 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1778 echo $ac_n "(cached) $ac_c" 1>&6
1780 # This must be in double quotes, not single quotes, because CPP may get
1781 # substituted into the Makefile and "${CC-cc}" will confuse make.
1783 # On the NeXT, cc -E runs the code through the compiler's parser,
1784 # not just through cpp.
1785 cat > conftest.$ac_ext <<EOF
1786 #line 1787 "configure"
1787 #include "confdefs.h"
1791 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1792 { (eval echo configure:1793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1793 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1794 if test -z "$ac_err"; then
1798 echo "configure: failed program was:" >&5
1799 cat conftest.$ac_ext >&5
1801 CPP="${CC-cc} -E -traditional-cpp"
1802 cat > conftest.$ac_ext <<EOF
1803 #line 1804 "configure"
1804 #include "confdefs.h"
1808 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1809 { (eval echo configure:1810: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1810 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1811 if test -z "$ac_err"; then
1815 echo "configure: failed program was:" >&5
1816 cat conftest.$ac_ext >&5
1818 CPP="${CC-cc} -nologo -E"
1819 cat > conftest.$ac_ext <<EOF
1820 #line 1821 "configure"
1821 #include "confdefs.h"
1825 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1826 { (eval echo configure:1827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1827 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1828 if test -z "$ac_err"; then
1832 echo "configure: failed program was:" >&5
1833 cat conftest.$ac_ext >&5
1842 ac_cv_prog_CPP="$CPP"
1844 CPP="$ac_cv_prog_CPP"
1846 ac_cv_prog_CPP="$CPP"
1848 echo "$ac_t""$CPP" 1>&6
1850 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1851 echo "configure:1852: checking for ANSI C header files" >&5
1852 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1853 echo $ac_n "(cached) $ac_c" 1>&6
1855 cat > conftest.$ac_ext <<EOF
1856 #line 1857 "configure"
1857 #include "confdefs.h"
1863 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1864 { (eval echo configure:1865: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1865 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1866 if test -z "$ac_err"; then
1868 ac_cv_header_stdc=yes
1871 echo "configure: failed program was:" >&5
1872 cat conftest.$ac_ext >&5
1874 ac_cv_header_stdc=no
1878 if test $ac_cv_header_stdc = yes; then
1879 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1880 cat > conftest.$ac_ext <<EOF
1881 #line 1882 "configure"
1882 #include "confdefs.h"
1885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1886 egrep "memchr" >/dev/null 2>&1; then
1890 ac_cv_header_stdc=no
1896 if test $ac_cv_header_stdc = yes; then
1897 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1898 cat > conftest.$ac_ext <<EOF
1899 #line 1900 "configure"
1900 #include "confdefs.h"
1903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1904 egrep "free" >/dev/null 2>&1; then
1908 ac_cv_header_stdc=no
1914 if test $ac_cv_header_stdc = yes; then
1915 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1916 if test "$cross_compiling" = yes; then
1919 cat > conftest.$ac_ext <<EOF
1920 #line 1921 "configure"
1921 #include "confdefs.h"
1923 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1924 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1925 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1926 int main () { int i; for (i = 0; i < 256; i++)
1927 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1931 if { (eval echo configure:1932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1935 echo "configure: failed program was:" >&5
1936 cat conftest.$ac_ext >&5
1938 ac_cv_header_stdc=no
1946 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1947 if test $ac_cv_header_stdc = yes; then
1948 cat >> confdefs.h <<\EOF
1949 #define STDC_HEADERS 1
1954 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1955 echo "configure:1956: checking whether time.h and sys/time.h may both be included" >&5
1956 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1957 echo $ac_n "(cached) $ac_c" 1>&6
1959 cat > conftest.$ac_ext <<EOF
1960 #line 1961 "configure"
1961 #include "confdefs.h"
1962 #include <sys/types.h>
1963 #include <sys/time.h>
1969 if { (eval echo configure:1970: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1971 ac_cv_header_time=yes
1973 echo "configure: failed program was:" >&5
1974 cat conftest.$ac_ext >&5
1976 ac_cv_header_time=no
1981 echo "$ac_t""$ac_cv_header_time" 1>&6
1982 if test $ac_cv_header_time = yes; then
1983 cat >> confdefs.h <<\EOF
1984 #define TIME_WITH_SYS_TIME 1
1989 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1990 echo "configure:1991: checking for sys/wait.h that is POSIX.1 compatible" >&5
1991 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1992 echo $ac_n "(cached) $ac_c" 1>&6
1994 cat > conftest.$ac_ext <<EOF
1995 #line 1996 "configure"
1996 #include "confdefs.h"
1997 #include <sys/types.h>
1998 #include <sys/wait.h>
2000 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2003 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2008 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2011 if { (eval echo configure:2012: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2013 ac_cv_header_sys_wait_h=yes
2015 echo "configure: failed program was:" >&5
2016 cat conftest.$ac_ext >&5
2018 ac_cv_header_sys_wait_h=no
2023 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2024 if test $ac_cv_header_sys_wait_h = yes; then
2025 cat >> confdefs.h <<\EOF
2026 #define HAVE_SYS_WAIT_H 1
2031 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
2032 echo "configure:2033: checking whether stat file-mode macros are broken" >&5
2033 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+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>
2040 #include <sys/stat.h>
2042 #if defined(S_ISBLK) && defined(S_IFDIR)
2043 # if S_ISBLK (S_IFDIR)
2048 #if defined(S_ISBLK) && defined(S_IFCHR)
2049 # if S_ISBLK (S_IFCHR)
2054 #if defined(S_ISLNK) && defined(S_IFREG)
2055 # if S_ISLNK (S_IFREG)
2060 #if defined(S_ISSOCK) && defined(S_IFREG)
2061 # if S_ISSOCK (S_IFREG)
2067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2068 egrep "You lose" >/dev/null 2>&1; then
2070 ac_cv_header_stat_broken=yes
2073 ac_cv_header_stat_broken=no
2079 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
2080 if test $ac_cv_header_stat_broken = yes; then
2081 cat >> confdefs.h <<\EOF
2082 #define STAT_MACROS_BROKEN 1
2087 for ac_hdr in string.h memory.h stdlib.h unistd.h errno.h fcntl.h \
2088 limits.h crypt.h termcap.h termio.h termios.h locale.h \
2089 sys/param.h sys/time.h sys/utsname.h arpa/inet.h \
2092 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2093 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2094 echo "configure:2095: checking for $ac_hdr" >&5
2095 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2096 echo $ac_n "(cached) $ac_c" 1>&6
2098 cat > conftest.$ac_ext <<EOF
2099 #line 2100 "configure"
2100 #include "confdefs.h"
2103 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2104 { (eval echo configure:2105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2105 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2106 if test -z "$ac_err"; then
2108 eval "ac_cv_header_$ac_safe=yes"
2111 echo "configure: failed program was:" >&5
2112 cat conftest.$ac_ext >&5
2114 eval "ac_cv_header_$ac_safe=no"
2118 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2119 echo "$ac_t""yes" 1>&6
2120 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2121 cat >> confdefs.h <<EOF
2122 #define $ac_tr_hdr 1
2126 echo "$ac_t""no" 1>&6
2131 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
2132 echo "configure:2133: checking POSIX termios" >&5
2133 if eval "test \"`echo '$''{'nmh_cv_sys_posix_termios'+set}'`\" = set"; then
2134 echo $ac_n "(cached) $ac_c" 1>&6
2136 cat > conftest.$ac_ext <<EOF
2137 #line 2138 "configure"
2138 #include "confdefs.h"
2139 #include <sys/types.h>
2141 #include <termios.h>
2143 /* SunOS 4.0.3 has termios.h but not the library calls. */
2147 if { (eval echo configure:2148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2149 nmh_cv_sys_posix_termios=yes
2151 echo "configure: failed program was:" >&5
2152 cat conftest.$ac_ext >&5
2154 nmh_cv_sys_posix_termios=no
2159 echo "$ac_t""$nmh_cv_sys_posix_termios" 1>&6
2161 if test $nmh_cv_sys_posix_termios = yes; then
2162 echo $ac_n "checking TIOCGWINSZ in termios.h""... $ac_c" 1>&6
2163 echo "configure:2164: checking TIOCGWINSZ in termios.h" >&5
2164 if eval "test \"`echo '$''{'nmh_cv_header_termios_h_tiocgwinsz'+set}'`\" = set"; then
2165 echo $ac_n "(cached) $ac_c" 1>&6
2167 cat > conftest.$ac_ext <<EOF
2168 #line 2169 "configure"
2169 #include "confdefs.h"
2170 #include <sys/types.h>
2171 #include <termios.h>
2176 if { (eval echo configure:2177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2178 nmh_cv_header_termios_h_tiocgwinsz=yes
2180 echo "configure: failed program was:" >&5
2181 cat conftest.$ac_ext >&5
2183 nmh_cv_header_termios_h_tiocgwinsz=no
2188 echo "$ac_t""$nmh_cv_header_termios_h_tiocgwinsz" 1>&6
2190 nmh_cv_header_termios_h_tiocgwinsz=no
2193 if test $nmh_cv_header_termios_h_tiocgwinsz = no; then
2194 echo $ac_n "checking TIOCGWINSZ in sys/ioctl.h""... $ac_c" 1>&6
2195 echo "configure:2196: checking TIOCGWINSZ in sys/ioctl.h" >&5
2196 if eval "test \"`echo '$''{'nmh_cv_header_sys_ioctl_h_tiocgwinsz'+set}'`\" = set"; then
2197 echo $ac_n "(cached) $ac_c" 1>&6
2199 cat > conftest.$ac_ext <<EOF
2200 #line 2201 "configure"
2201 #include "confdefs.h"
2202 #include <sys/types.h>
2203 #include <sys/ioctl.h>
2208 if { (eval echo configure:2209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2210 nmh_cv_header_sys_ioctl_h_tiocgwinsz=yes
2212 echo "configure: failed program was:" >&5
2213 cat conftest.$ac_ext >&5
2215 nmh_cv_header_sys_ioctl_h_tiocgwinsz=no
2220 echo "$ac_t""$nmh_cv_header_sys_ioctl_h_tiocgwinsz" 1>&6
2221 if test $nmh_cv_header_sys_ioctl_h_tiocgwinsz = yes; then
2222 cat >> confdefs.h <<\EOF
2223 #define GWINSZ_IN_SYS_IOCTL 1
2229 ac_safe=`echo "sys/ptem.h" | sed 'y%./+-%__p_%'`
2230 echo $ac_n "checking for sys/ptem.h""... $ac_c" 1>&6
2231 echo "configure:2232: checking for sys/ptem.h" >&5
2232 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2233 echo $ac_n "(cached) $ac_c" 1>&6
2235 cat > conftest.$ac_ext <<EOF
2236 #line 2237 "configure"
2237 #include "confdefs.h"
2238 #include <sys/ptem.h>
2240 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2241 { (eval echo configure:2242: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2242 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2243 if test -z "$ac_err"; then
2245 eval "ac_cv_header_$ac_safe=yes"
2248 echo "configure: failed program was:" >&5
2249 cat conftest.$ac_ext >&5
2251 eval "ac_cv_header_$ac_safe=no"
2255 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2256 echo "$ac_t""yes" 1>&6
2257 cat >> confdefs.h <<\EOF
2258 #define WINSIZE_IN_PTEM 1
2262 echo "$ac_t""no" 1>&6
2266 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2267 echo "configure:2268: checking for pid_t" >&5
2268 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2269 echo $ac_n "(cached) $ac_c" 1>&6
2271 cat > conftest.$ac_ext <<EOF
2272 #line 2273 "configure"
2273 #include "confdefs.h"
2274 #include <sys/types.h>
2280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2281 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2283 ac_cv_type_pid_t=yes
2291 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2292 if test $ac_cv_type_pid_t = no; then
2293 cat >> confdefs.h <<\EOF
2299 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2300 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2301 echo "configure:2302: checking for vfork.h" >&5
2302 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2303 echo $ac_n "(cached) $ac_c" 1>&6
2305 cat > conftest.$ac_ext <<EOF
2306 #line 2307 "configure"
2307 #include "confdefs.h"
2310 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2311 { (eval echo configure:2312: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2312 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2313 if test -z "$ac_err"; then
2315 eval "ac_cv_header_$ac_safe=yes"
2318 echo "configure: failed program was:" >&5
2319 cat conftest.$ac_ext >&5
2321 eval "ac_cv_header_$ac_safe=no"
2325 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2326 echo "$ac_t""yes" 1>&6
2327 cat >> confdefs.h <<\EOF
2328 #define HAVE_VFORK_H 1
2332 echo "$ac_t""no" 1>&6
2335 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2336 echo "configure:2337: checking for working vfork" >&5
2337 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2338 echo $ac_n "(cached) $ac_c" 1>&6
2340 if test "$cross_compiling" = yes; then
2341 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2342 echo "configure:2343: checking for vfork" >&5
2343 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2344 echo $ac_n "(cached) $ac_c" 1>&6
2346 cat > conftest.$ac_ext <<EOF
2347 #line 2348 "configure"
2348 #include "confdefs.h"
2349 /* System header to define __stub macros and hopefully few prototypes,
2350 which can conflict with char vfork(); below. */
2352 /* Override any gcc2 internal prototype to avoid an error. */
2353 /* We use char because int might match the return type of a gcc2
2354 builtin and then its argument prototype would still apply. */
2359 /* The GNU C library defines this for functions which it implements
2360 to always fail with ENOSYS. Some functions are actually named
2361 something starting with __ and the normal name is an alias. */
2362 #if defined (__stub_vfork) || defined (__stub___vfork)
2370 if { (eval echo configure:2371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2372 eval "ac_cv_func_vfork=yes"
2374 echo "configure: failed program was:" >&5
2375 cat conftest.$ac_ext >&5
2377 eval "ac_cv_func_vfork=no"
2382 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2383 echo "$ac_t""yes" 1>&6
2386 echo "$ac_t""no" 1>&6
2389 ac_cv_func_vfork_works=$ac_cv_func_vfork
2391 cat > conftest.$ac_ext <<EOF
2392 #line 2393 "configure"
2393 #include "confdefs.h"
2394 /* Thanks to Paul Eggert for this test. */
2396 #include <sys/types.h>
2397 #include <sys/stat.h>
2398 #ifdef HAVE_UNISTD_H
2404 /* On some sparc systems, changes by the child to local and incoming
2405 argument registers are propagated back to the parent.
2406 The compiler is told about this with #include <vfork.h>,
2407 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2408 Test for this by using a static variable whose address
2409 is put into a register that is clobbered by the vfork. */
2412 sparc_address_test (int arg)
2414 sparc_address_test (arg) int arg;
2432 pid_t parent = getpid ();
2435 sparc_address_test ();
2440 /* Here is another test for sparc vfork register problems.
2441 This test uses lots of local variables, at least
2442 as many local variables as main has allocated so far
2443 including compiler temporaries. 4 locals are enough for
2444 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2445 A buggy compiler should reuse the register of parent
2446 for one of the local variables, since it will think that
2447 parent can't possibly be used any more in this routine.
2448 Assigning to the local variable will thus munge parent
2449 in the parent process. */
2451 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2452 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2453 /* Convince the compiler that p..p7 are live; otherwise, it might
2454 use the same hardware register for all 8 local variables. */
2455 if (p != p1 || p != p2 || p != p3 || p != p4
2456 || p != p5 || p != p6 || p != p7)
2459 /* On some systems (e.g. IRIX 3.3),
2460 vfork doesn't separate parent from child file descriptors.
2461 If the child closes a descriptor before it execs or exits,
2462 this munges the parent's descriptor as well.
2463 Test for this by closing stdout in the child. */
2464 _exit(close(fileno(stdout)) != 0);
2469 while (wait(&status) != child)
2472 /* Was there some problem with vforking? */
2475 /* Did the child fail? (This shouldn't happen.) */
2478 /* Did the vfork/compiler bug occur? */
2479 || parent != getpid()
2481 /* Did the file descriptor bug occur? */
2482 || fstat(fileno(stdout), &st) != 0
2487 if { (eval echo configure:2488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2489 ac_cv_func_vfork_works=yes
2491 echo "configure: failed program was:" >&5
2492 cat conftest.$ac_ext >&5
2494 ac_cv_func_vfork_works=no
2501 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2502 if test $ac_cv_func_vfork_works = no; then
2503 cat >> confdefs.h <<\EOF
2509 echo $ac_n "checking for mkstemp in -lmkstemp""... $ac_c" 1>&6
2510 echo "configure:2511: checking for mkstemp in -lmkstemp" >&5
2511 ac_lib_var=`echo mkstemp'_'mkstemp | sed 'y%./+-%__p_%'`
2512 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2513 echo $ac_n "(cached) $ac_c" 1>&6
2515 ac_save_LIBS="$LIBS"
2516 LIBS="-lmkstemp $LIBS"
2517 cat > conftest.$ac_ext <<EOF
2518 #line 2519 "configure"
2519 #include "confdefs.h"
2520 /* Override any gcc2 internal prototype to avoid an error. */
2521 /* We use char because int might match the return type of a gcc2
2522 builtin and then its argument prototype would still apply. */
2529 if { (eval echo configure:2530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2531 eval "ac_cv_lib_$ac_lib_var=yes"
2533 echo "configure: failed program was:" >&5
2534 cat conftest.$ac_ext >&5
2536 eval "ac_cv_lib_$ac_lib_var=no"
2539 LIBS="$ac_save_LIBS"
2542 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2543 echo "$ac_t""yes" 1>&6
2544 ac_tr_lib=HAVE_LIB`echo mkstemp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2545 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2546 cat >> confdefs.h <<EOF
2547 #define $ac_tr_lib 1
2550 LIBS="-lmkstemp $LIBS"
2553 echo "$ac_t""no" 1>&6
2556 for ac_func in waitpid wait3 sigaction sigprocmask sigblock sigsetmask \
2557 sighold sigrelse writev lstat uname tzset killpg mkstemp
2559 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2560 echo "configure:2561: checking for $ac_func" >&5
2561 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2562 echo $ac_n "(cached) $ac_c" 1>&6
2564 cat > conftest.$ac_ext <<EOF
2565 #line 2566 "configure"
2566 #include "confdefs.h"
2567 /* System header to define __stub macros and hopefully few prototypes,
2568 which can conflict with char $ac_func(); below. */
2570 /* Override any gcc2 internal prototype to avoid an error. */
2571 /* We use char because int might match the return type of a gcc2
2572 builtin and then its argument prototype would still apply. */
2577 /* The GNU C library defines this for functions which it implements
2578 to always fail with ENOSYS. Some functions are actually named
2579 something starting with __ and the normal name is an alias. */
2580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2588 if { (eval echo configure:2589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2590 eval "ac_cv_func_$ac_func=yes"
2592 echo "configure: failed program was:" >&5
2593 cat conftest.$ac_ext >&5
2595 eval "ac_cv_func_$ac_func=no"
2600 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2601 echo "$ac_t""yes" 1>&6
2602 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2603 cat >> confdefs.h <<EOF
2604 #define $ac_tr_func 1
2608 echo "$ac_t""no" 1>&6
2613 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
2614 echo "configure:2615: checking for sigsetjmp" >&5
2615 cat > conftest.$ac_ext <<EOF
2616 #line 2617 "configure"
2617 #include "confdefs.h"
2620 sigsetjmp((void *)0, 0);
2623 if { (eval echo configure:2624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2625 cat >> confdefs.h <<\EOF
2626 #define HAVE_SIGSETJMP 1
2628 echo "$ac_t""yes" 1>&6
2630 echo "configure: failed program was:" >&5
2631 cat conftest.$ac_ext >&5
2633 echo "$ac_t""no" 1>&6
2637 for ac_func in snprintf strerror strdup
2639 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2640 echo "configure:2641: checking for $ac_func" >&5
2641 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2642 echo $ac_n "(cached) $ac_c" 1>&6
2644 cat > conftest.$ac_ext <<EOF
2645 #line 2646 "configure"
2646 #include "confdefs.h"
2647 /* System header to define __stub macros and hopefully few prototypes,
2648 which can conflict with char $ac_func(); below. */
2650 /* Override any gcc2 internal prototype to avoid an error. */
2651 /* We use char because int might match the return type of a gcc2
2652 builtin and then its argument prototype would still apply. */
2657 /* The GNU C library defines this for functions which it implements
2658 to always fail with ENOSYS. Some functions are actually named
2659 something starting with __ and the normal name is an alias. */
2660 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2668 if { (eval echo configure:2669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2670 eval "ac_cv_func_$ac_func=yes"
2672 echo "configure: failed program was:" >&5
2673 cat conftest.$ac_ext >&5
2675 eval "ac_cv_func_$ac_func=no"
2680 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2681 echo "$ac_t""yes" 1>&6
2682 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2683 cat >> confdefs.h <<EOF
2684 #define $ac_tr_func 1
2688 echo "$ac_t""no" 1>&6
2689 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
2695 echo $ac_n "checking for modf""... $ac_c" 1>&6
2696 echo "configure:2697: checking for modf" >&5
2697 if eval "test \"`echo '$''{'ac_cv_func_modf'+set}'`\" = set"; then
2698 echo $ac_n "(cached) $ac_c" 1>&6
2700 cat > conftest.$ac_ext <<EOF
2701 #line 2702 "configure"
2702 #include "confdefs.h"
2703 /* System header to define __stub macros and hopefully few prototypes,
2704 which can conflict with char modf(); below. */
2706 /* Override any gcc2 internal prototype to avoid an error. */
2707 /* We use char because int might match the return type of a gcc2
2708 builtin and then its argument prototype would still apply. */
2713 /* The GNU C library defines this for functions which it implements
2714 to always fail with ENOSYS. Some functions are actually named
2715 something starting with __ and the normal name is an alias. */
2716 #if defined (__stub_modf) || defined (__stub___modf)
2724 if { (eval echo configure:2725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2726 eval "ac_cv_func_modf=yes"
2728 echo "configure: failed program was:" >&5
2729 cat conftest.$ac_ext >&5
2731 eval "ac_cv_func_modf=no"
2736 if eval "test \"`echo '$ac_cv_func_'modf`\" = yes"; then
2737 echo "$ac_t""yes" 1>&6
2740 echo "$ac_t""no" 1>&6
2741 echo $ac_n "checking for modf in -lm""... $ac_c" 1>&6
2742 echo "configure:2743: checking for modf in -lm" >&5
2743 ac_lib_var=`echo m'_'modf | sed 'y%./+-%__p_%'`
2744 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2745 echo $ac_n "(cached) $ac_c" 1>&6
2747 ac_save_LIBS="$LIBS"
2749 cat > conftest.$ac_ext <<EOF
2750 #line 2751 "configure"
2751 #include "confdefs.h"
2752 /* Override any gcc2 internal prototype to avoid an error. */
2753 /* We use char because int might match the return type of a gcc2
2754 builtin and then its argument prototype would still apply. */
2761 if { (eval echo configure:2762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2763 eval "ac_cv_lib_$ac_lib_var=yes"
2765 echo "configure: failed program was:" >&5
2766 cat conftest.$ac_ext >&5
2768 eval "ac_cv_lib_$ac_lib_var=no"
2771 LIBS="$ac_save_LIBS"
2774 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2775 echo "$ac_t""yes" 1>&6
2776 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
2777 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2778 cat >> confdefs.h <<EOF
2779 #define $ac_tr_lib 1
2785 echo "$ac_t""no" 1>&6
2791 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2792 echo "configure:2793: checking for gethostbyname" >&5
2793 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2794 echo $ac_n "(cached) $ac_c" 1>&6
2796 cat > conftest.$ac_ext <<EOF
2797 #line 2798 "configure"
2798 #include "confdefs.h"
2799 /* System header to define __stub macros and hopefully few prototypes,
2800 which can conflict with char gethostbyname(); below. */
2802 /* Override any gcc2 internal prototype to avoid an error. */
2803 /* We use char because int might match the return type of a gcc2
2804 builtin and then its argument prototype would still apply. */
2805 char gethostbyname();
2809 /* The GNU C library defines this for functions which it implements
2810 to always fail with ENOSYS. Some functions are actually named
2811 something starting with __ and the normal name is an alias. */
2812 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2820 if { (eval echo configure:2821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2822 eval "ac_cv_func_gethostbyname=yes"
2824 echo "configure: failed program was:" >&5
2825 cat conftest.$ac_ext >&5
2827 eval "ac_cv_func_gethostbyname=no"
2832 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2833 echo "$ac_t""yes" 1>&6
2836 echo "$ac_t""no" 1>&6
2837 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2838 echo "configure:2839: checking for gethostbyname in -lnsl" >&5
2839 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2840 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2841 echo $ac_n "(cached) $ac_c" 1>&6
2843 ac_save_LIBS="$LIBS"
2845 cat > conftest.$ac_ext <<EOF
2846 #line 2847 "configure"
2847 #include "confdefs.h"
2848 /* Override any gcc2 internal prototype to avoid an error. */
2849 /* We use char because int might match the return type of a gcc2
2850 builtin and then its argument prototype would still apply. */
2851 char gethostbyname();
2857 if { (eval echo configure:2858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2859 eval "ac_cv_lib_$ac_lib_var=yes"
2861 echo "configure: failed program was:" >&5
2862 cat conftest.$ac_ext >&5
2864 eval "ac_cv_lib_$ac_lib_var=no"
2867 LIBS="$ac_save_LIBS"
2870 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2871 echo "$ac_t""yes" 1>&6
2872 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
2873 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2874 cat >> confdefs.h <<EOF
2875 #define $ac_tr_lib 1
2881 echo "$ac_t""no" 1>&6
2882 echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6
2883 echo "configure:2884: checking for gethostbyname in -lresolv" >&5
2884 ac_lib_var=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'`
2885 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2886 echo $ac_n "(cached) $ac_c" 1>&6
2888 ac_save_LIBS="$LIBS"
2889 LIBS="-lresolv $LIBS"
2890 cat > conftest.$ac_ext <<EOF
2891 #line 2892 "configure"
2892 #include "confdefs.h"
2893 /* Override any gcc2 internal prototype to avoid an error. */
2894 /* We use char because int might match the return type of a gcc2
2895 builtin and then its argument prototype would still apply. */
2896 char gethostbyname();
2902 if { (eval echo configure:2903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2904 eval "ac_cv_lib_$ac_lib_var=yes"
2906 echo "configure: failed program was:" >&5
2907 cat conftest.$ac_ext >&5
2909 eval "ac_cv_lib_$ac_lib_var=no"
2912 LIBS="$ac_save_LIBS"
2915 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2916 echo "$ac_t""yes" 1>&6
2917 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
2918 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2919 cat >> confdefs.h <<EOF
2920 #define $ac_tr_lib 1
2923 LIBS="-lresolv $LIBS"
2926 echo "$ac_t""no" 1>&6
2933 echo $ac_n "checking for socket""... $ac_c" 1>&6
2934 echo "configure:2935: checking for socket" >&5
2935 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
2936 echo $ac_n "(cached) $ac_c" 1>&6
2938 cat > conftest.$ac_ext <<EOF
2939 #line 2940 "configure"
2940 #include "confdefs.h"
2941 /* System header to define __stub macros and hopefully few prototypes,
2942 which can conflict with char socket(); below. */
2944 /* Override any gcc2 internal prototype to avoid an error. */
2945 /* We use char because int might match the return type of a gcc2
2946 builtin and then its argument prototype would still apply. */
2951 /* The GNU C library defines this for functions which it implements
2952 to always fail with ENOSYS. Some functions are actually named
2953 something starting with __ and the normal name is an alias. */
2954 #if defined (__stub_socket) || defined (__stub___socket)
2962 if { (eval echo configure:2963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2964 eval "ac_cv_func_socket=yes"
2966 echo "configure: failed program was:" >&5
2967 cat conftest.$ac_ext >&5
2969 eval "ac_cv_func_socket=no"
2974 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
2975 echo "$ac_t""yes" 1>&6
2978 echo "$ac_t""no" 1>&6
2979 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
2980 echo "configure:2981: checking for socket in -lsocket" >&5
2981 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
2982 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2983 echo $ac_n "(cached) $ac_c" 1>&6
2985 ac_save_LIBS="$LIBS"
2986 LIBS="-lsocket $LIBS"
2987 cat > conftest.$ac_ext <<EOF
2988 #line 2989 "configure"
2989 #include "confdefs.h"
2990 /* Override any gcc2 internal prototype to avoid an error. */
2991 /* We use char because int might match the return type of a gcc2
2992 builtin and then its argument prototype would still apply. */
2999 if { (eval echo configure:3000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3001 eval "ac_cv_lib_$ac_lib_var=yes"
3003 echo "configure: failed program was:" >&5
3004 cat conftest.$ac_ext >&5
3006 eval "ac_cv_lib_$ac_lib_var=no"
3009 LIBS="$ac_save_LIBS"
3012 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3013 echo "$ac_t""yes" 1>&6
3014 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
3015 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3016 cat >> confdefs.h <<EOF
3017 #define $ac_tr_lib 1
3020 LIBS="-lsocket $LIBS"
3023 echo "$ac_t""no" 1>&6
3030 echo $ac_n "checking for ruserpass""... $ac_c" 1>&6
3031 echo "configure:3032: checking for ruserpass" >&5
3032 if eval "test \"`echo '$''{'ac_cv_func_ruserpass'+set}'`\" = set"; then
3033 echo $ac_n "(cached) $ac_c" 1>&6
3035 cat > conftest.$ac_ext <<EOF
3036 #line 3037 "configure"
3037 #include "confdefs.h"
3038 /* System header to define __stub macros and hopefully few prototypes,
3039 which can conflict with char ruserpass(); below. */
3041 /* Override any gcc2 internal prototype to avoid an error. */
3042 /* We use char because int might match the return type of a gcc2
3043 builtin and then its argument prototype would still apply. */
3048 /* The GNU C library defines this for functions which it implements
3049 to always fail with ENOSYS. Some functions are actually named
3050 something starting with __ and the normal name is an alias. */
3051 #if defined (__stub_ruserpass) || defined (__stub___ruserpass)
3059 if { (eval echo configure:3060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3061 eval "ac_cv_func_ruserpass=yes"
3063 echo "configure: failed program was:" >&5
3064 cat conftest.$ac_ext >&5
3066 eval "ac_cv_func_ruserpass=no"
3071 if eval "test \"`echo '$ac_cv_func_'ruserpass`\" = yes"; then
3072 echo "$ac_t""yes" 1>&6
3075 echo "$ac_t""no" 1>&6
3076 echo $ac_n "checking for _ruserpass""... $ac_c" 1>&6
3077 echo "configure:3078: checking for _ruserpass" >&5
3078 if eval "test \"`echo '$''{'ac_cv_func__ruserpass'+set}'`\" = set"; then
3079 echo $ac_n "(cached) $ac_c" 1>&6
3081 cat > conftest.$ac_ext <<EOF
3082 #line 3083 "configure"
3083 #include "confdefs.h"
3084 /* System header to define __stub macros and hopefully few prototypes,
3085 which can conflict with char _ruserpass(); below. */
3087 /* Override any gcc2 internal prototype to avoid an error. */
3088 /* We use char because int might match the return type of a gcc2
3089 builtin and then its argument prototype would still apply. */
3094 /* The GNU C library defines this for functions which it implements
3095 to always fail with ENOSYS. Some functions are actually named
3096 something starting with __ and the normal name is an alias. */
3097 #if defined (__stub__ruserpass) || defined (__stub____ruserpass)
3105 if { (eval echo configure:3106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3107 eval "ac_cv_func__ruserpass=yes"
3109 echo "configure: failed program was:" >&5
3110 cat conftest.$ac_ext >&5
3112 eval "ac_cv_func__ruserpass=no"
3117 if eval "test \"`echo '$ac_cv_func_'_ruserpass`\" = yes"; then
3118 echo "$ac_t""yes" 1>&6
3121 echo "$ac_t""no" 1>&6
3122 echo $ac_n "checking for _ruserpass in -lsocket""... $ac_c" 1>&6
3123 echo "configure:3124: checking for _ruserpass in -lsocket" >&5
3124 ac_lib_var=`echo socket'_'_ruserpass | sed 'y%./+-%__p_%'`
3125 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3126 echo $ac_n "(cached) $ac_c" 1>&6
3128 ac_save_LIBS="$LIBS"
3129 LIBS="-lsocket $LIBS"
3130 cat > conftest.$ac_ext <<EOF
3131 #line 3132 "configure"
3132 #include "confdefs.h"
3133 /* Override any gcc2 internal prototype to avoid an error. */
3134 /* We use char because int might match the return type of a gcc2
3135 builtin and then its argument prototype would still apply. */
3142 if { (eval echo configure:3143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3144 eval "ac_cv_lib_$ac_lib_var=yes"
3146 echo "configure: failed program was:" >&5
3147 cat conftest.$ac_ext >&5
3149 eval "ac_cv_lib_$ac_lib_var=no"
3152 LIBS="$ac_save_LIBS"
3155 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3156 echo "$ac_t""yes" 1>&6
3157 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
3158 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3159 cat >> confdefs.h <<EOF
3160 #define $ac_tr_lib 1
3163 LIBS="-lsocket $LIBS"
3166 echo "$ac_t""no" 1>&6
3173 if test x$ac_cv_func_ruserpass = xno; then
3174 if test x$ac_cv_func__ruserpass = xyes -o x$ac_cv_lib_socket__ruserpass = xyes; then
3175 cat >> confdefs.h <<\EOF
3176 #define ruserpass _ruserpass
3180 LIBOBJS="$LIBOBJS ruserpass.o"
3185 termcap_curses_order="termcap curses ncurses"
3186 for lib in $termcap_curses_order; do
3187 echo $ac_n "checking for tgetent in -l${lib}""... $ac_c" 1>&6
3188 echo "configure:3189: checking for tgetent in -l${lib}" >&5
3189 ac_lib_var=`echo ${lib}'_'tgetent | sed 'y%./+-%__p_%'`
3190 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3191 echo $ac_n "(cached) $ac_c" 1>&6
3193 ac_save_LIBS="$LIBS"
3194 LIBS="-l${lib} $LIBS"
3195 cat > conftest.$ac_ext <<EOF
3196 #line 3197 "configure"
3197 #include "confdefs.h"
3198 /* Override any gcc2 internal prototype to avoid an error. */
3199 /* We use char because int might match the return type of a gcc2
3200 builtin and then its argument prototype would still apply. */
3207 if { (eval echo configure:3208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3209 eval "ac_cv_lib_$ac_lib_var=yes"
3211 echo "configure: failed program was:" >&5
3212 cat conftest.$ac_ext >&5
3214 eval "ac_cv_lib_$ac_lib_var=no"
3217 LIBS="$ac_save_LIBS"
3220 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3221 echo "$ac_t""yes" 1>&6
3222 TERMLIB="-l$lib"; break
3224 echo "$ac_t""no" 1>&6
3230 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
3231 echo "configure:3232: checking for dbm_open" >&5
3232 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
3233 echo $ac_n "(cached) $ac_c" 1>&6
3235 cat > conftest.$ac_ext <<EOF
3236 #line 3237 "configure"
3237 #include "confdefs.h"
3238 /* System header to define __stub macros and hopefully few prototypes,
3239 which can conflict with char dbm_open(); below. */
3241 /* Override any gcc2 internal prototype to avoid an error. */
3242 /* We use char because int might match the return type of a gcc2
3243 builtin and then its argument prototype would still apply. */
3248 /* The GNU C library defines this for functions which it implements
3249 to always fail with ENOSYS. Some functions are actually named
3250 something starting with __ and the normal name is an alias. */
3251 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
3259 if { (eval echo configure:3260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3261 eval "ac_cv_func_dbm_open=yes"
3263 echo "configure: failed program was:" >&5
3264 cat conftest.$ac_ext >&5
3266 eval "ac_cv_func_dbm_open=no"
3271 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
3272 echo "$ac_t""yes" 1>&6
3275 echo "$ac_t""no" 1>&6
3276 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
3277 echo "configure:3278: checking for dbm_open in -lndbm" >&5
3278 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
3279 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3280 echo $ac_n "(cached) $ac_c" 1>&6
3282 ac_save_LIBS="$LIBS"
3284 cat > conftest.$ac_ext <<EOF
3285 #line 3286 "configure"
3286 #include "confdefs.h"
3287 /* Override any gcc2 internal prototype to avoid an error. */
3288 /* We use char because int might match the return type of a gcc2
3289 builtin and then its argument prototype would still apply. */
3296 if { (eval echo configure:3297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3298 eval "ac_cv_lib_$ac_lib_var=yes"
3300 echo "configure: failed program was:" >&5
3301 cat conftest.$ac_ext >&5
3303 eval "ac_cv_lib_$ac_lib_var=no"
3306 LIBS="$ac_save_LIBS"
3309 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3310 echo "$ac_t""yes" 1>&6
3311 ac_tr_lib=HAVE_LIB`echo ndbm | sed -e 's/^a-zA-Z0-9_/_/g' \
3312 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3313 cat >> confdefs.h <<EOF
3314 #define $ac_tr_lib 1
3320 echo "$ac_t""no" 1>&6
3321 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
3322 echo "configure:3323: checking for dbm_open in -ldbm" >&5
3323 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
3324 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3325 echo $ac_n "(cached) $ac_c" 1>&6
3327 ac_save_LIBS="$LIBS"
3329 cat > conftest.$ac_ext <<EOF
3330 #line 3331 "configure"
3331 #include "confdefs.h"
3332 /* Override any gcc2 internal prototype to avoid an error. */
3333 /* We use char because int might match the return type of a gcc2
3334 builtin and then its argument prototype would still apply. */
3341 if { (eval echo configure:3342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3343 eval "ac_cv_lib_$ac_lib_var=yes"
3345 echo "configure: failed program was:" >&5
3346 cat conftest.$ac_ext >&5
3348 eval "ac_cv_lib_$ac_lib_var=no"
3351 LIBS="$ac_save_LIBS"
3354 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3355 echo "$ac_t""yes" 1>&6
3356 ac_tr_lib=HAVE_LIB`echo dbm | sed -e 's/^a-zA-Z0-9_/_/g' \
3357 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3358 cat >> confdefs.h <<EOF
3359 #define $ac_tr_lib 1
3365 echo "$ac_t""no" 1>&6
3373 if test x$with_hesiod != x -a x$with_hesiod != xno; then
3374 if test x$with_hesiod != xyes; then
3375 HESIOD_INCLUDES="-I$with_hesiod/include"
3376 HESIOD_LIBS="-L$with_hesiod/lib"
3378 echo $ac_n "checking for res_send""... $ac_c" 1>&6
3379 echo "configure:3380: checking for res_send" >&5
3380 if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then
3381 echo $ac_n "(cached) $ac_c" 1>&6
3383 cat > conftest.$ac_ext <<EOF
3384 #line 3385 "configure"
3385 #include "confdefs.h"
3386 /* System header to define __stub macros and hopefully few prototypes,
3387 which can conflict with char res_send(); below. */
3389 /* Override any gcc2 internal prototype to avoid an error. */
3390 /* We use char because int might match the return type of a gcc2
3391 builtin and then its argument prototype would still apply. */
3396 /* The GNU C library defines this for functions which it implements
3397 to always fail with ENOSYS. Some functions are actually named
3398 something starting with __ and the normal name is an alias. */
3399 #if defined (__stub_res_send) || defined (__stub___res_send)
3407 if { (eval echo configure:3408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3409 eval "ac_cv_func_res_send=yes"
3411 echo "configure: failed program was:" >&5
3412 cat conftest.$ac_ext >&5
3414 eval "ac_cv_func_res_send=no"
3419 if eval "test \"`echo '$ac_cv_func_'res_send`\" = yes"; then
3420 echo "$ac_t""yes" 1>&6
3423 echo "$ac_t""no" 1>&6
3424 echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6
3425 echo "configure:3426: checking for res_send in -lresolv" >&5
3426 ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'`
3427 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3428 echo $ac_n "(cached) $ac_c" 1>&6
3430 ac_save_LIBS="$LIBS"
3431 LIBS="-lresolv $LIBS"
3432 cat > conftest.$ac_ext <<EOF
3433 #line 3434 "configure"
3434 #include "confdefs.h"
3435 /* Override any gcc2 internal prototype to avoid an error. */
3436 /* We use char because int might match the return type of a gcc2
3437 builtin and then its argument prototype would still apply. */
3444 if { (eval echo configure:3445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3446 eval "ac_cv_lib_$ac_lib_var=yes"
3448 echo "configure: failed program was:" >&5
3449 cat conftest.$ac_ext >&5
3451 eval "ac_cv_lib_$ac_lib_var=no"
3454 LIBS="$ac_save_LIBS"
3457 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3458 echo "$ac_t""yes" 1>&6
3459 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
3460 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3461 cat >> confdefs.h <<EOF
3462 #define $ac_tr_lib 1
3465 LIBS="-lresolv $LIBS"
3468 echo "$ac_t""no" 1>&6
3473 echo $ac_n "checking for hes_resolve in -lhesiod""... $ac_c" 1>&6
3474 echo "configure:3475: checking for hes_resolve in -lhesiod" >&5
3475 ac_lib_var=`echo hesiod'_'hes_resolve | sed 'y%./+-%__p_%'`
3476 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3477 echo $ac_n "(cached) $ac_c" 1>&6
3479 ac_save_LIBS="$LIBS"
3480 LIBS="-lhesiod $HESIOD_LIBS $LIBS"
3481 cat > conftest.$ac_ext <<EOF
3482 #line 3483 "configure"
3483 #include "confdefs.h"
3484 /* Override any gcc2 internal prototype to avoid an error. */
3485 /* We use char because int might match the return type of a gcc2
3486 builtin and then its argument prototype would still apply. */
3493 if { (eval echo configure:3494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3495 eval "ac_cv_lib_$ac_lib_var=yes"
3497 echo "configure: failed program was:" >&5
3498 cat conftest.$ac_ext >&5
3500 eval "ac_cv_lib_$ac_lib_var=no"
3503 LIBS="$ac_save_LIBS"
3506 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3507 echo "$ac_t""yes" 1>&6
3508 HESIOD_LIBS="$HESIOD_LIBS -lhesiod"
3510 echo "$ac_t""no" 1>&6
3511 { echo "configure: error: Hesiod library not found" 1>&2; exit 1; }
3516 if test x$with_krb4 != x -a x$with_krb4 != xno; then
3517 if test x$with_krb4 != xyes; then
3518 KRB4_INCLUDES="-I$with_krb4/include"
3519 if test -d "$with_krb4/include/kerberosIV"; then
3520 KRB4_INCLUDES="$KRB4_INCLUDES -I$with_krb4/include/kerberosIV"
3522 KRB4_LIBS="-L$with_krb4/lib"
3523 elif test -d /usr/include/kerberosIV; then
3524 KRB4_INCLUDES="-I/usr/include/kerberosIV"
3526 echo $ac_n "checking for krb_rd_req in -lkrb4""... $ac_c" 1>&6
3527 echo "configure:3528: checking for krb_rd_req in -lkrb4" >&5
3528 ac_lib_var=`echo krb4'_'krb_rd_req | sed 'y%./+-%__p_%'`
3529 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3530 echo $ac_n "(cached) $ac_c" 1>&6
3532 ac_save_LIBS="$LIBS"
3533 LIBS="-lkrb4 $KRB4_LIBS -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
3534 cat > conftest.$ac_ext <<EOF
3535 #line 3536 "configure"
3536 #include "confdefs.h"
3537 /* Override any gcc2 internal prototype to avoid an error. */
3538 /* We use char because int might match the return type of a gcc2
3539 builtin and then its argument prototype would still apply. */
3546 if { (eval echo configure:3547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3548 eval "ac_cv_lib_$ac_lib_var=yes"
3550 echo "configure: failed program was:" >&5
3551 cat conftest.$ac_ext >&5
3553 eval "ac_cv_lib_$ac_lib_var=no"
3556 LIBS="$ac_save_LIBS"
3559 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3560 echo "$ac_t""yes" 1>&6
3561 KRB4_LIBS="$KRB4_LIBS -lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err"
3563 echo "$ac_t""no" 1>&6
3564 echo $ac_n "checking for krb_rd_req in -lkrb""... $ac_c" 1>&6
3565 echo "configure:3566: checking for krb_rd_req in -lkrb" >&5
3566 ac_lib_var=`echo krb'_'krb_rd_req | sed 'y%./+-%__p_%'`
3567 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3568 echo $ac_n "(cached) $ac_c" 1>&6
3570 ac_save_LIBS="$LIBS"
3571 LIBS="-lkrb $KRB4_LIBS -ldes $LIBS"
3572 cat > conftest.$ac_ext <<EOF
3573 #line 3574 "configure"
3574 #include "confdefs.h"
3575 /* Override any gcc2 internal prototype to avoid an error. */
3576 /* We use char because int might match the return type of a gcc2
3577 builtin and then its argument prototype would still apply. */
3584 if { (eval echo configure:3585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3586 eval "ac_cv_lib_$ac_lib_var=yes"
3588 echo "configure: failed program was:" >&5
3589 cat conftest.$ac_ext >&5
3591 eval "ac_cv_lib_$ac_lib_var=no"
3594 LIBS="$ac_save_LIBS"
3597 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3598 echo "$ac_t""yes" 1>&6
3599 KRB4_LIBS="$KRB4_LIBS -lkrb -ldes"
3601 echo "$ac_t""no" 1>&6
3602 { echo "configure: error: Kerberos 4 libraries not found" 1>&2; exit 1; }
3610 nmh_save_LIBS="$LIBS"
3611 LIBS="$TERMLIB $LIBS"
3613 echo $ac_n "checking if an include file defines ospeed""... $ac_c" 1>&6
3614 echo "configure:3615: checking if an include file defines ospeed" >&5
3615 if eval "test \"`echo '$''{'nmh_cv_decl_ospeed_include_defines'+set}'`\" = set"; then
3616 echo $ac_n "(cached) $ac_c" 1>&6
3618 cat > conftest.$ac_ext <<EOF
3619 #line 3620 "configure"
3620 #include "confdefs.h"
3621 #include <sys/types.h>
3623 #include <termios.h>
3626 #include <termcap.h>
3632 if { (eval echo configure:3633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3634 nmh_cv_decl_ospeed_include_defines=yes
3636 echo "configure: failed program was:" >&5
3637 cat conftest.$ac_ext >&5
3639 nmh_cv_decl_ospeed_include_defines=no
3644 echo "$ac_t""$nmh_cv_decl_ospeed_include_defines" 1>&6
3646 if test $nmh_cv_decl_ospeed_include_defines = no; then
3647 echo $ac_n "checking if you must define ospeed""... $ac_c" 1>&6
3648 echo "configure:3649: checking if you must define ospeed" >&5
3649 if eval "test \"`echo '$''{'nmh_cv_decl_ospeed_must_define'+set}'`\" = set"; then
3650 echo $ac_n "(cached) $ac_c" 1>&6
3652 cat > conftest.$ac_ext <<EOF
3653 #line 3654 "configure"
3654 #include "confdefs.h"
3657 extern short ospeed; ospeed = 0;
3660 if { (eval echo configure:3661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3662 nmh_cv_decl_ospeed_must_define=yes
3664 echo "configure: failed program was:" >&5
3665 cat conftest.$ac_ext >&5
3667 nmh_cv_decl_ospeed_must_define=no
3672 echo "$ac_t""$nmh_cv_decl_ospeed_must_define" 1>&6
3675 if test $nmh_cv_decl_ospeed_include_defines = yes; then
3676 cat >> confdefs.h <<\EOF
3677 #define HAVE_OSPEED 1
3680 elif test $nmh_cv_decl_ospeed_must_define = yes; then
3681 cat >> confdefs.h <<\EOF
3682 #define HAVE_OSPEED 1
3685 cat >> confdefs.h <<\EOF
3686 #define MUST_DEFINE_OSPEED 1
3692 LIBS="$nmh_save_LIBS"
3694 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3695 echo "configure:3696: checking return type of signal handlers" >&5
3696 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3697 echo $ac_n "(cached) $ac_c" 1>&6
3699 cat > conftest.$ac_ext <<EOF
3700 #line 3701 "configure"
3701 #include "confdefs.h"
3702 #include <sys/types.h>
3708 extern "C" void (*signal (int, void (*)(int)))(int);
3710 void (*signal ()) ();
3717 if { (eval echo configure:3718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3719 ac_cv_type_signal=void
3721 echo "configure: failed program was:" >&5
3722 cat conftest.$ac_ext >&5
3724 ac_cv_type_signal=int
3729 echo "$ac_t""$ac_cv_type_signal" 1>&6
3730 cat >> confdefs.h <<EOF
3731 #define RETSIGTYPE $ac_cv_type_signal
3735 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3736 echo "configure:3737: checking for pid_t" >&5
3737 if eval "test \"`echo '$''{'ac_cv_type_pid_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])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3752 ac_cv_type_pid_t=yes
3760 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3761 if test $ac_cv_type_pid_t = no; then
3762 cat >> confdefs.h <<\EOF
3768 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3769 echo "configure:3770: checking for off_t" >&5
3770 if eval "test \"`echo '$''{'ac_cv_type_off_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])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3785 ac_cv_type_off_t=yes
3793 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3794 if test $ac_cv_type_off_t = no; then
3795 cat >> confdefs.h <<\EOF
3801 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3802 echo "configure:3803: checking for uid_t in sys/types.h" >&5
3803 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3804 echo $ac_n "(cached) $ac_c" 1>&6
3806 cat > conftest.$ac_ext <<EOF
3807 #line 3808 "configure"
3808 #include "confdefs.h"
3809 #include <sys/types.h>
3811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3812 egrep "uid_t" >/dev/null 2>&1; then
3814 ac_cv_type_uid_t=yes
3823 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3824 if test $ac_cv_type_uid_t = no; then
3825 cat >> confdefs.h <<\EOF
3829 cat >> confdefs.h <<\EOF
3835 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3836 echo "configure:3837: checking for mode_t" >&5
3837 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3838 echo $ac_n "(cached) $ac_c" 1>&6
3840 cat > conftest.$ac_ext <<EOF
3841 #line 3842 "configure"
3842 #include "confdefs.h"
3843 #include <sys/types.h>
3849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3850 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3852 ac_cv_type_mode_t=yes
3855 ac_cv_type_mode_t=no
3860 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3861 if test $ac_cv_type_mode_t = no; then
3862 cat >> confdefs.h <<\EOF
3868 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3869 echo "configure:3870: checking for size_t" >&5
3870 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3871 echo $ac_n "(cached) $ac_c" 1>&6
3873 cat > conftest.$ac_ext <<EOF
3874 #line 3875 "configure"
3875 #include "confdefs.h"
3876 #include <sys/types.h>
3882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3883 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3885 ac_cv_type_size_t=yes
3888 ac_cv_type_size_t=no
3893 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3894 if test $ac_cv_type_size_t = no; then
3895 cat >> confdefs.h <<\EOF
3896 #define size_t unsigned
3902 echo $ac_n "checking for sigset_t""... $ac_c" 1>&6
3903 echo "configure:3904: checking for sigset_t" >&5
3904 if eval "test \"`echo '$''{'nmh_cv_type_sigset_t'+set}'`\" = set"; then
3905 echo $ac_n "(cached) $ac_c" 1>&6
3907 cat > conftest.$ac_ext <<EOF
3908 #line 3909 "configure"
3909 #include "confdefs.h"
3910 #include <sys/types.h>
3913 sigset_t tempsigset;
3916 if { (eval echo configure:3917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3918 nmh_cv_type_sigset_t=yes
3920 echo "configure: failed program was:" >&5
3921 cat conftest.$ac_ext >&5
3923 nmh_cv_type_sigset_t=no
3928 echo "$ac_t""$nmh_cv_type_sigset_t" 1>&6
3929 if test $nmh_cv_type_sigset_t = no; then
3930 cat >> confdefs.h <<\EOF
3931 #define sigset_t unsigned int
3936 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
3937 echo "configure:3938: checking for st_blksize in struct stat" >&5
3938 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
3939 echo $ac_n "(cached) $ac_c" 1>&6
3941 cat > conftest.$ac_ext <<EOF
3942 #line 3943 "configure"
3943 #include "confdefs.h"
3944 #include <sys/types.h>
3945 #include <sys/stat.h>
3947 struct stat s; s.st_blksize;
3950 if { (eval echo configure:3951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3952 ac_cv_struct_st_blksize=yes
3954 echo "configure: failed program was:" >&5
3955 cat conftest.$ac_ext >&5
3957 ac_cv_struct_st_blksize=no
3962 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
3963 if test $ac_cv_struct_st_blksize = yes; then
3964 cat >> confdefs.h <<\EOF
3965 #define HAVE_ST_BLKSIZE 1
3971 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
3972 echo "configure:3973: checking for tm_gmtoff in struct tm" >&5
3973 if eval "test \"`echo '$''{'nmh_cv_struct_tm_gmtoff'+set}'`\" = set"; then
3974 echo $ac_n "(cached) $ac_c" 1>&6
3976 cat > conftest.$ac_ext <<EOF
3977 #line 3978 "configure"
3978 #include "confdefs.h"
3979 #ifdef TIME_WITH_SYS_TIME
3980 # include <sys/time.h>
3983 # ifdef TM_IN_SYS_TIME
3984 # include <sys/time.h>
3990 struct tm temptm; temptm.tm_gmtoff = 0;
3993 if { (eval echo configure:3994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3995 nmh_cv_struct_tm_gmtoff=yes
3997 echo "configure: failed program was:" >&5
3998 cat conftest.$ac_ext >&5
4000 nmh_cv_struct_tm_gmtoff=no
4005 echo "$ac_t""$nmh_cv_struct_tm_gmtoff" 1>&6
4006 if test $nmh_cv_struct_tm_gmtoff = yes; then
4007 cat >> confdefs.h <<\EOF
4008 #define HAVE_TM_GMTOFF 1
4013 echo $ac_n "checking what style of signals to use""... $ac_c" 1>&6
4014 echo "configure:4015: checking what style of signals to use" >&5
4015 if test $ac_cv_func_sigaction = yes -a $ac_cv_func_sigprocmask = yes; then
4016 signals_style=POSIX_SIGNALS
4017 cat >> confdefs.h <<\EOF
4018 #define POSIX_SIGNALS 1
4021 cat >> confdefs.h <<\EOF
4022 #define RELIABLE_SIGNALS 1
4025 elif test $ac_cv_func_sigblock = yes -a $ac_cv_func_sigsetmask = yes; then
4026 signals_style=BSD_SIGNALS
4027 cat >> confdefs.h <<\EOF
4028 #define BSD_SIGNALS 1
4031 cat >> confdefs.h <<\EOF
4032 #define RELIABLE_SIGNALS 1
4035 elif test $ac_cv_func_sighold = yes -a $ac_cv_func_sigrelse = yes; then
4036 signals_style=SYSV_SIGNALS
4037 cat >> confdefs.h <<\EOF
4038 #define SYSV_SIGNALS 1
4042 signals_style=NO_SIGNAL_BLOCKING
4043 cat >> confdefs.h <<\EOF
4044 #define NO_SIGNAL_BLOCKING 1
4049 echo "$ac_t""$signals_style" 1>&6
4051 echo $ac_n "checking where signal.h is located""... $ac_c" 1>&6
4052 echo "configure:4053: checking where signal.h is located" >&5
4053 if eval "test \"`echo '$''{'nmh_cv_path_signal_h'+set}'`\" = set"; then
4054 echo $ac_n "(cached) $ac_c" 1>&6
4056 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
4057 test -f $SIGNAL_H && \
4058 grep '#[ ]*define[ ][ ]*SIG[0-9A-Z]*[ ]*[0-9][0-9]*' $SIGNAL_H > /dev/null && \
4061 nmh_cv_path_signal_h=$SIGNAL_H
4065 echo "$ac_t""$nmh_cv_path_signal_h" 1>&6
4066 SIGNAL_H=$nmh_cv_path_signal_h
4068 case "$target_os" in
4071 cat >> confdefs.h <<\EOF
4075 cat >> confdefs.h <<\EOF
4081 cat >> confdefs.h <<\EOF
4085 cat >> confdefs.h <<\EOF
4091 cat >> confdefs.h <<\EOF
4095 cat >> confdefs.h <<\EOF
4101 cat >> confdefs.h <<\EOF
4105 cat >> confdefs.h <<\EOF
4111 cat >> confdefs.h <<\EOF
4115 cat >> confdefs.h <<\EOF
4121 cat >> confdefs.h <<\EOF
4122 #define LINUX_STDIO 1
4127 cat >> confdefs.h <<\EOF
4131 cat >> confdefs.h <<\EOF
4135 cat >> confdefs.h <<\EOF
4141 cat >> confdefs.h <<\EOF
4145 cat >> confdefs.h <<\EOF
4149 cat >> confdefs.h <<\EOF
4155 cat >> confdefs.h <<\EOF
4159 cat >> confdefs.h <<\EOF
4163 cat >> confdefs.h <<\EOF
4169 cat >> confdefs.h <<\EOF
4173 cat >> confdefs.h <<\EOF
4177 cat >> confdefs.h <<\EOF
4183 cat >> confdefs.h <<\EOF
4187 cat >> confdefs.h <<\EOF
4188 #define SCO_5_STDIO 1
4196 cat > confcache <<\EOF
4197 # This file is a shell script that caches the results of configure
4198 # tests run on this system so they can be shared between configure
4199 # scripts and configure runs. It is not useful on other systems.
4200 # If it contains results you don't want to keep, you may remove or edit it.
4202 # By default, configure uses ./config.cache as the cache file,
4203 # creating it if it does not exist already. You can give configure
4204 # the --cache-file=FILE option to use a different cache file; that is
4205 # what configure does when it calls configure scripts in
4206 # subdirectories, so they share the cache.
4207 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4208 # config.status only pays attention to the cache file if you give it the
4209 # --recheck option to rerun configure.
4212 # The following way of writing the cache mishandles newlines in values,
4213 # but we know of no workaround that is simple, portable, and efficient.
4214 # So, don't put newlines in cache variables' values.
4215 # Ultrix sh set writes to stderr and can't be redirected directly,
4216 # and sets the high bit in the cache file unless we assign to the vars.
4218 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4220 # `set' does not quote correctly, so add quotes (double-quote substitution
4221 # turns \\\\ into \\, and sed turns \\ into \).
4223 -e "s/'/'\\\\''/g" \
4224 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4227 # `set' quotes correctly as required by POSIX, so do not add quotes.
4228 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4231 if cmp -s $cache_file confcache; then
4234 if test -w $cache_file; then
4235 echo "updating cache $cache_file"
4236 cat confcache > $cache_file
4238 echo "not updating unwritable cache $cache_file"
4243 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4245 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4246 # Let make expand exec_prefix.
4247 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4249 # Any assignment to VPATH causes Sun make to only execute
4250 # the first set of double-colon rules, so remove it if not needed.
4251 # If there is a colon in the path, we need to keep it.
4252 if test "x$srcdir" = x.; then
4253 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4256 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4258 DEFS=-DHAVE_CONFIG_H
4260 # Without the "./", some shells look in PATH for config.status.
4261 : ${CONFIG_STATUS=./config.status}
4263 echo creating $CONFIG_STATUS
4264 rm -f $CONFIG_STATUS
4265 cat > $CONFIG_STATUS <<EOF
4267 # Generated automatically by configure.
4268 # Run this file to recreate the current configuration.
4269 # This directory was configured as follows,
4270 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4272 # $0 $ac_configure_args
4274 # Compiler output produced by configure, useful for debugging
4275 # configure, is in ./config.log if it exists.
4277 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4280 case "\$ac_option" in
4281 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4282 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4283 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4284 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4285 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4287 -help | --help | --hel | --he | --h)
4288 echo "\$ac_cs_usage"; exit 0 ;;
4289 *) echo "\$ac_cs_usage"; exit 1 ;;
4293 ac_given_srcdir=$srcdir
4294 ac_given_INSTALL="$INSTALL"
4296 trap 'rm -fr `echo "Makefile config/Makefile h/Makefile sbr/Makefile uip/Makefile \
4297 zotnet/Makefile zotnet/mts/Makefile zotnet/tws/Makefile \
4298 zotnet/mf/Makefile zotnet/bboards/Makefile mts/Makefile \
4299 mts/smtp/Makefile mts/sendmail/Makefile mts/mmdf/Makefile \
4300 etc/Makefile man/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4302 cat >> $CONFIG_STATUS <<EOF
4304 # Protect against being on the right side of a sed subst in config.status.
4305 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4306 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4310 s%@CFLAGS@%$CFLAGS%g
4311 s%@CPPFLAGS@%$CPPFLAGS%g
4312 s%@CXXFLAGS@%$CXXFLAGS%g
4313 s%@FFLAGS@%$FFLAGS%g
4315 s%@LDFLAGS@%$LDFLAGS%g
4317 s%@exec_prefix@%$exec_prefix%g
4318 s%@prefix@%$prefix%g
4319 s%@program_transform_name@%$program_transform_name%g
4320 s%@bindir@%$bindir%g
4321 s%@sbindir@%$sbindir%g
4322 s%@libexecdir@%$libexecdir%g
4323 s%@datadir@%$datadir%g
4324 s%@sysconfdir@%$sysconfdir%g
4325 s%@sharedstatedir@%$sharedstatedir%g
4326 s%@localstatedir@%$localstatedir%g
4327 s%@libdir@%$libdir%g
4328 s%@includedir@%$includedir%g
4329 s%@oldincludedir@%$oldincludedir%g
4330 s%@infodir@%$infodir%g
4331 s%@mandir@%$mandir%g
4333 s%@host_alias@%$host_alias%g
4334 s%@host_cpu@%$host_cpu%g
4335 s%@host_vendor@%$host_vendor%g
4336 s%@host_os@%$host_os%g
4337 s%@target@%$target%g
4338 s%@target_alias@%$target_alias%g
4339 s%@target_cpu@%$target_cpu%g
4340 s%@target_vendor@%$target_vendor%g
4341 s%@target_os@%$target_os%g
4343 s%@build_alias@%$build_alias%g
4344 s%@build_cpu@%$build_cpu%g
4345 s%@build_vendor@%$build_vendor%g
4346 s%@build_os@%$build_os%g
4347 s%@VERSION@%$VERSION%g
4349 s%@MTSLIB@%$MTSLIB%g
4350 s%@POPLIB@%$POPLIB%g
4351 s%@POPSED@%$POPSED%g
4353 s%@SET_MAKE@%$SET_MAKE%g
4354 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4355 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4356 s%@INSTALL_DATA@%$INSTALL_DATA%g
4357 s%@RANLIB@%$RANLIB%g
4360 s%@LEXLIB@%$LEXLIB%g
4361 s%@cutpath@%$cutpath%g
4362 s%@LORDER@%$LORDER%g
4364 s%@lspath@%$lspath%g
4365 s%@morepath@%$morepath%g
4366 s%@pagerpath@%$pagerpath%g
4367 s%@sendmailpath@%$sendmailpath%g
4368 s%@vipath@%$vipath%g
4369 s%@editorpath@%$editorpath%g
4370 s%@mailspool@%$mailspool%g
4371 s%@SETGID_MAIL@%$SETGID_MAIL%g
4373 s%@LIBOBJS@%$LIBOBJS%g
4374 s%@TERMLIB@%$TERMLIB%g
4375 s%@HESIOD_INCLUDES@%$HESIOD_INCLUDES%g
4376 s%@HESIOD_LIBS@%$HESIOD_LIBS%g
4377 s%@KRB4_INCLUDES@%$KRB4_INCLUDES%g
4378 s%@KRB4_LIBS@%$KRB4_LIBS%g
4379 s%@SIGNAL_H@%$SIGNAL_H%g
4384 cat >> $CONFIG_STATUS <<\EOF
4386 # Split the substitutions into bite-sized pieces for seds with
4387 # small command number limits, like on Digital OSF/1 and HP-UX.
4388 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4389 ac_file=1 # Number of current file.
4390 ac_beg=1 # First line for current file.
4391 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4394 while $ac_more_lines; do
4395 if test $ac_beg -gt 1; then
4396 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4398 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4400 if test ! -s conftest.s$ac_file; then
4402 rm -f conftest.s$ac_file
4404 if test -z "$ac_sed_cmds"; then
4405 ac_sed_cmds="sed -f conftest.s$ac_file"
4407 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4409 ac_file=`expr $ac_file + 1`
4411 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4414 if test -z "$ac_sed_cmds"; then
4419 cat >> $CONFIG_STATUS <<EOF
4421 CONFIG_FILES=\${CONFIG_FILES-"Makefile config/Makefile h/Makefile sbr/Makefile uip/Makefile \
4422 zotnet/Makefile zotnet/mts/Makefile zotnet/tws/Makefile \
4423 zotnet/mf/Makefile zotnet/bboards/Makefile mts/Makefile \
4424 mts/smtp/Makefile mts/sendmail/Makefile mts/mmdf/Makefile \
4425 etc/Makefile man/Makefile"}
4427 cat >> $CONFIG_STATUS <<\EOF
4428 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4429 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4431 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4432 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4433 *) ac_file_in="${ac_file}.in" ;;
4436 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4438 # Remove last slash and all that follows it. Not all systems have dirname.
4439 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4440 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4441 # The file is in a subdirectory.
4442 test ! -d "$ac_dir" && mkdir "$ac_dir"
4443 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4444 # A "../" for each directory in $ac_dir_suffix.
4445 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4447 ac_dir_suffix= ac_dots=
4450 case "$ac_given_srcdir" in
4452 if test -z "$ac_dots"; then top_srcdir=.
4453 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4454 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4456 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4457 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4460 case "$ac_given_INSTALL" in
4461 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4462 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4465 echo creating "$ac_file"
4467 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4469 *Makefile*) ac_comsub="1i\\
4470 # $configure_input" ;;
4474 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4476 s%@configure_input@%$configure_input%g
4477 s%@srcdir@%$srcdir%g
4478 s%@top_srcdir@%$top_srcdir%g
4479 s%@INSTALL@%$INSTALL%g
4480 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4484 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4485 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4487 # ac_d sets the value in "#define NAME VALUE" lines.
4488 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4489 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4492 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4493 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4494 ac_uB='\([ ]\)%\1#\2define\3'
4497 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4498 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4499 ac_eB='$%\1#\2define\3'
4503 if test "${CONFIG_HEADERS+set}" != set; then
4505 cat >> $CONFIG_STATUS <<EOF
4506 CONFIG_HEADERS="config.h"
4508 cat >> $CONFIG_STATUS <<\EOF
4510 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4511 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4513 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4514 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4515 *) ac_file_in="${ac_file}.in" ;;
4518 echo creating $ac_file
4520 rm -f conftest.frag conftest.in conftest.out
4521 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4522 cat $ac_file_inputs > conftest.in
4526 # Transform confdefs.h into a sed script conftest.vals that substitutes
4527 # the proper values into config.h.in to produce config.h. And first:
4528 # Protect against being on the right side of a sed subst in config.status.
4529 # Protect against being in an unquoted here document in config.status.
4531 cat > conftest.hdr <<\EOF
4534 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4538 sed -n -f conftest.hdr confdefs.h > conftest.vals
4541 # This sed command replaces #undef with comments. This is necessary, for
4542 # example, in the case of _POSIX_SOURCE, which is predefined and required
4543 # on some systems where configure will not decide to define it.
4544 cat >> conftest.vals <<\EOF
4545 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4548 # Break up conftest.vals because some shells have a limit on
4549 # the size of here documents, and old seds have small limits too.
4554 ac_lines=`grep -c . conftest.vals`
4555 # grep -c gives empty output for an empty file on some AIX systems.
4556 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4557 # Write a limited-size here document to conftest.frag.
4558 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4559 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4561 sed -f conftest.frag conftest.in > conftest.out
4563 mv conftest.out conftest.in
4565 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4567 mv conftest.tail conftest.vals
4571 cat >> $CONFIG_STATUS <<\EOF
4572 rm -f conftest.frag conftest.h
4573 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4574 cat conftest.in >> conftest.h
4576 if cmp -s $ac_file conftest.h 2>/dev/null; then
4577 echo "$ac_file is unchanged"
4580 # Remove last slash and all that follows it. Not all systems have dirname.
4581 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4582 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4583 # The file is in a subdirectory.
4584 test ! -d "$ac_dir" && mkdir "$ac_dir"
4587 mv conftest.h $ac_file
4592 cat >> $CONFIG_STATUS <<EOF
4595 cat >> $CONFIG_STATUS <<\EOF
4597 test -z "$CONFIG_HEADERS" || echo > stamp-h
4600 chmod +x $CONFIG_STATUS
4601 rm -fr confdefs* $ac_clean_files
4602 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4605 eval "nmhbin=${bindir}"; eval "nmhbin2=${nmhbin}"
4606 eval "nmhsysconf=${sysconfdir}"; eval "nmhsysconf2=${nmhsysconf}"
4607 eval "nmhlib=${libdir}"; eval "nmhlib2=${nmhlib}"
4608 eval "nmhman=${mandir}"
4613 nmh version : ${VERSION}
4614 target os : ${target}
4616 compiler flags : ${CFLAGS}
4617 linker flags : ${LDFLAGS}
4618 source code location : ${srcdir}
4619 binary install path : ${nmhbin2}
4620 libary install path : ${nmhlib2}
4621 config files install path : ${nmhsysconf2}
4622 man page install path : ${nmhman}
4623 transport system : ${MTS}
4624 default editor : ${editorpath}
4625 default pager : ${pagerpath}"