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 --enable-apop enable client-side support for POP3 and APOP"
17 --enable-debug enable nmh code debugging"
19 --enable-masquerade[='draft_from mmailid username_extension']
20 enable up to 3 types of address masquerading [none]"
22 --enable-mhe enable mhe support (DEFAULT)"
24 --enable-pop enable client-side support for plain POP3"
26 --with-hesiod=PREFIX specify location of Hesiod"
28 --with-krb4=PREFIX specify location of Kerberos V4 for KPOP support"
30 --with-editor=EDITOR specify the default editor"
32 --with-mts=MTS specify the mail transport agent/service"
34 --with-pager=PAGER specify the default pager"
36 --with-smtpservers='SMTPSERVER1[ SMTPSERVER2...]'
37 specify the default SMTP server(s) [localhost]"
38 ac_default_prefix=/usr/local/nmh
40 # Initialize some variables set by options.
41 # The variables have the same names as the options, with
42 # dashes changed to underlines.
44 cache_file=./config.cache
53 program_transform_name=s,x,x,
61 bindir='${exec_prefix}/bin'
62 sbindir='${exec_prefix}/sbin'
63 libexecdir='${exec_prefix}/libexec'
64 datadir='${prefix}/share'
65 sysconfdir='${prefix}/etc'
66 sharedstatedir='${prefix}/com'
67 localstatedir='${prefix}/var'
68 libdir='${exec_prefix}/lib'
69 includedir='${prefix}/include'
70 oldincludedir='/usr/include'
71 infodir='${prefix}/info'
72 mandir='${prefix}/man'
74 # Initialize some other variables.
77 SHELL=${CONFIG_SHELL-/bin/sh}
78 # Maximum number of lines to put in a shell here document.
85 # If the previous option needs an argument, assign it.
86 if test -n "$ac_prev"; then
87 eval "$ac_prev=\$ac_option"
93 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
97 # Accept the important Cygnus configure options, so we can diagnose typos.
101 -bindir | --bindir | --bindi | --bind | --bin | --bi)
103 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
104 bindir="$ac_optarg" ;;
106 -build | --build | --buil | --bui | --bu)
108 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
109 build="$ac_optarg" ;;
111 -cache-file | --cache-file | --cache-fil | --cache-fi \
112 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
113 ac_prev=cache_file ;;
114 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
115 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
116 cache_file="$ac_optarg" ;;
118 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
120 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
122 datadir="$ac_optarg" ;;
124 -disable-* | --disable-*)
125 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
126 # Reject names that are not valid shell variable names.
127 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
128 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
130 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
131 eval "enable_${ac_feature}=no" ;;
133 -enable-* | --enable-*)
134 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
135 # Reject names that are not valid shell variable names.
136 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
137 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
139 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
144 eval "enable_${ac_feature}='$ac_optarg'" ;;
146 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
147 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
148 | --exec | --exe | --ex)
149 ac_prev=exec_prefix ;;
150 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
151 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
152 | --exec=* | --exe=* | --ex=*)
153 exec_prefix="$ac_optarg" ;;
155 -gas | --gas | --ga | --g)
156 # Obsolete; use --with-gas.
159 -help | --help | --hel | --he)
160 # Omit some internal or obsolete options to make the list less imposing.
161 # This message is too long to be a string in the A/UX 3.1 sh.
163 Usage: configure [options] [host]
164 Options: [defaults in brackets after descriptions]
166 --cache-file=FILE cache test results in FILE
167 --help print this message
168 --no-create do not create output files
169 --quiet, --silent do not print \`checking...' messages
170 --version print the version of autoconf that created configure
171 Directory and file names:
172 --prefix=PREFIX install architecture-independent files in PREFIX
174 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
176 --bindir=DIR user executables in DIR [EPREFIX/bin]
177 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
178 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
179 --datadir=DIR read-only architecture-independent data in DIR
181 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
182 --sharedstatedir=DIR modifiable architecture-independent data in DIR
184 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
185 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
186 --includedir=DIR C header files in DIR [PREFIX/include]
187 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
188 --infodir=DIR info documentation in DIR [PREFIX/info]
189 --mandir=DIR man documentation in DIR [PREFIX/man]
190 --srcdir=DIR find the sources in DIR [configure dir or ..]
191 --program-prefix=PREFIX prepend PREFIX to installed program names
192 --program-suffix=SUFFIX append SUFFIX to installed program names
193 --program-transform-name=PROGRAM
194 run sed PROGRAM on installed program names
198 --build=BUILD configure for building on BUILD [BUILD=HOST]
199 --host=HOST configure for HOST [guessed]
200 --target=TARGET configure for TARGET [TARGET=HOST]
201 Features and packages:
202 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
203 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
204 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
205 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
206 --x-includes=DIR X include files are in DIR
207 --x-libraries=DIR X library files are in DIR
209 if test -n "$ac_help"; then
210 echo "--enable and --with options recognized:$ac_help"
214 -host | --host | --hos | --ho)
216 -host=* | --host=* | --hos=* | --ho=*)
219 -includedir | --includedir | --includedi | --included | --include \
220 | --includ | --inclu | --incl | --inc)
221 ac_prev=includedir ;;
222 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
223 | --includ=* | --inclu=* | --incl=* | --inc=*)
224 includedir="$ac_optarg" ;;
226 -infodir | --infodir | --infodi | --infod | --info | --inf)
228 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
229 infodir="$ac_optarg" ;;
231 -libdir | --libdir | --libdi | --libd)
233 -libdir=* | --libdir=* | --libdi=* | --libd=*)
234 libdir="$ac_optarg" ;;
236 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
237 | --libexe | --libex | --libe)
238 ac_prev=libexecdir ;;
239 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
240 | --libexe=* | --libex=* | --libe=*)
241 libexecdir="$ac_optarg" ;;
243 -localstatedir | --localstatedir | --localstatedi | --localstated \
244 | --localstate | --localstat | --localsta | --localst \
245 | --locals | --local | --loca | --loc | --lo)
246 ac_prev=localstatedir ;;
247 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
248 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
249 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
250 localstatedir="$ac_optarg" ;;
252 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
254 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
255 mandir="$ac_optarg" ;;
258 # Obsolete; use --without-fp.
261 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
265 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
266 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
269 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
270 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
271 | --oldin | --oldi | --old | --ol | --o)
272 ac_prev=oldincludedir ;;
273 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
274 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
275 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
276 oldincludedir="$ac_optarg" ;;
278 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
280 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
281 prefix="$ac_optarg" ;;
283 -program-prefix | --program-prefix | --program-prefi | --program-pref \
284 | --program-pre | --program-pr | --program-p)
285 ac_prev=program_prefix ;;
286 -program-prefix=* | --program-prefix=* | --program-prefi=* \
287 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
288 program_prefix="$ac_optarg" ;;
290 -program-suffix | --program-suffix | --program-suffi | --program-suff \
291 | --program-suf | --program-su | --program-s)
292 ac_prev=program_suffix ;;
293 -program-suffix=* | --program-suffix=* | --program-suffi=* \
294 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
295 program_suffix="$ac_optarg" ;;
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 ac_prev=program_transform_name ;;
305 -program-transform-name=* | --program-transform-name=* \
306 | --program-transform-nam=* | --program-transform-na=* \
307 | --program-transform-n=* | --program-transform-=* \
308 | --program-transform=* | --program-transfor=* \
309 | --program-transfo=* | --program-transf=* \
310 | --program-trans=* | --program-tran=* \
311 | --progr-tra=* | --program-tr=* | --program-t=*)
312 program_transform_name="$ac_optarg" ;;
314 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
315 | -silent | --silent | --silen | --sile | --sil)
318 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
320 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
322 sbindir="$ac_optarg" ;;
324 -sharedstatedir | --sharedstatedir | --sharedstatedi \
325 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
326 | --sharedst | --shareds | --shared | --share | --shar \
328 ac_prev=sharedstatedir ;;
329 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
330 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
331 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
333 sharedstatedir="$ac_optarg" ;;
335 -site | --site | --sit)
337 -site=* | --site=* | --sit=*)
340 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
342 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
343 srcdir="$ac_optarg" ;;
345 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
346 | --syscon | --sysco | --sysc | --sys | --sy)
347 ac_prev=sysconfdir ;;
348 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
349 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
350 sysconfdir="$ac_optarg" ;;
352 -target | --target | --targe | --targ | --tar | --ta | --t)
354 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
355 target="$ac_optarg" ;;
357 -v | -verbose | --verbose | --verbos | --verbo | --verb)
360 -version | --version | --versio | --versi | --vers)
361 echo "configure generated by autoconf version 2.13"
365 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
366 # Reject names that are not valid shell variable names.
367 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
368 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370 ac_package=`echo $ac_package| sed 's/-/_/g'`
375 eval "with_${ac_package}='$ac_optarg'" ;;
377 -without-* | --without-*)
378 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
379 # Reject names that are not valid shell variable names.
380 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
381 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
383 ac_package=`echo $ac_package| sed 's/-/_/g'`
384 eval "with_${ac_package}=no" ;;
387 # Obsolete; use --with-x.
390 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
391 | --x-incl | --x-inc | --x-in | --x-i)
392 ac_prev=x_includes ;;
393 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
394 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
395 x_includes="$ac_optarg" ;;
397 -x-libraries | --x-libraries | --x-librarie | --x-librari \
398 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
399 ac_prev=x_libraries ;;
400 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
401 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
402 x_libraries="$ac_optarg" ;;
404 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
408 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
409 echo "configure: warning: $ac_option: invalid host type" 1>&2
411 if test "x$nonopt" != xNONE; then
412 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
420 if test -n "$ac_prev"; then
421 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
424 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
426 # File descriptor usage:
429 # 2 errors and warnings
430 # 3 some systems may open it to /dev/tty
431 # 4 used on the Kubota Titan
432 # 6 checking for... messages and results
433 # 5 compiler messages saved in config.log
434 if test "$silent" = yes; then
442 This file contains any messages produced by compilers while
443 running configure, to aid debugging if configure makes a mistake.
446 # Strip out --no-create and --no-recursion so they do not pile up.
447 # Also quote any args containing shell metacharacters.
452 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
453 | --no-cr | --no-c) ;;
454 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
455 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
456 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
457 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
458 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
463 # Only set these to C if already set. These must not be set unconditionally
464 # because not all systems understand e.g. LANG=C (notably SCO).
465 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
466 # Non-C LC_CTYPE values break the ctype check.
467 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
468 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
469 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
470 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
472 # confdefs.h avoids OS command line length limits that DEFS can exceed.
473 rm -rf conftest* confdefs.h
474 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
477 # A filename unique to this package, relative to the directory that
478 # configure is in, which we can look for to find out if srcdir is correct.
479 ac_unique_file=h/nmh.h
481 # Find the source files, if location was not specified.
482 if test -z "$srcdir"; then
483 ac_srcdir_defaulted=yes
484 # Try the directory containing this script, then its parent.
486 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
487 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
489 if test ! -r $srcdir/$ac_unique_file; then
493 ac_srcdir_defaulted=no
495 if test ! -r $srcdir/$ac_unique_file; then
496 if test "$ac_srcdir_defaulted" = yes; then
497 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
499 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
502 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
504 # Prefer explicitly selected file to automatically selected ones.
505 if test -z "$CONFIG_SITE"; then
506 if test "x$prefix" != xNONE; then
507 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
509 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
512 for ac_site_file in $CONFIG_SITE; do
513 if test -r "$ac_site_file"; then
514 echo "loading site script $ac_site_file"
519 if test -r "$cache_file"; then
520 echo "loading cache $cache_file"
523 echo "creating cache $cache_file"
528 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
529 ac_cpp='$CPP $CPPFLAGS'
530 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
531 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
532 cross_compiling=$ac_cv_prog_cc_cross
536 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
537 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
538 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
545 ac_n= ac_c='\c' ac_t=
552 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
553 if test -f $ac_dir/install-sh; then
555 ac_install_sh="$ac_aux_dir/install-sh -c"
557 elif test -f $ac_dir/install.sh; then
559 ac_install_sh="$ac_aux_dir/install.sh -c"
563 if test -z "$ac_aux_dir"; then
564 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
566 ac_config_guess=$ac_aux_dir/config.guess
567 ac_config_sub=$ac_aux_dir/config.sub
568 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
571 # Do some error checking and defaulting for the host and target type.
573 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
576 # 1. You are not allowed to specify --host, --target, and nonopt at the
578 # 2. Host defaults to nonopt.
579 # 3. If nonopt is not specified, then host defaults to the current host,
580 # as determined by config.guess.
581 # 4. Target and build default to nonopt.
582 # 5. If nonopt is not specified, then target and build default to host.
584 # The aliases save the names the user supplied, while $host etc.
585 # will get canonicalized.
586 case $host---$target---$nonopt in
587 NONE---*---* | *---NONE---* | *---*---NONE) ;;
588 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
592 # Make sure we can run config.sub.
593 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
594 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
597 echo $ac_n "checking host system type""... $ac_c" 1>&6
598 echo "configure:599: checking host system type" >&5
601 case "$host_alias" in
605 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
606 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
608 *) host_alias=$nonopt ;;
612 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
613 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
614 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
615 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
616 echo "$ac_t""$host" 1>&6
618 echo $ac_n "checking target system type""... $ac_c" 1>&6
619 echo "configure:620: checking target system type" >&5
622 case "$target_alias" in
625 NONE) target_alias=$host_alias ;;
626 *) target_alias=$nonopt ;;
630 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
631 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
632 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
633 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
634 echo "$ac_t""$target" 1>&6
636 echo $ac_n "checking build system type""... $ac_c" 1>&6
637 echo "configure:638: checking build system type" >&5
640 case "$build_alias" in
643 NONE) build_alias=$host_alias ;;
644 *) build_alias=$nonopt ;;
648 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
649 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
650 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
651 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
652 echo "$ac_t""$build" 1>&6
654 test "$host_alias" != "$target_alias" &&
655 test "$program_prefix$program_suffix$program_transform_name" = \
657 program_prefix=${target_alias}-
664 VERSION=`sed -e 's/nmh-//' ${srcdir}/VERSION`
665 echo "configuring for nmh-$VERSION"
668 # Check whether --enable-apop or --disable-apop was given.
669 if test "${enable_apop+set}" = set; then
670 enableval="$enable_apop"
674 if test x"$enable_apop" = x"yes"; then
675 cat >> confdefs.h <<\EOF
682 # Check whether --enable-debug or --disable-debug was given.
683 if test "${enable_debug+set}" = set; then
684 enableval="$enable_debug"
688 if test x"$enable_nmh_debug" = x"yes"; then
692 # Check whether --enable-masquerade or --disable-masquerade was given.
693 if test "${enable_masquerade+set}" = set; then
694 enableval="$enable_masquerade"
695 if test x"$enable_masquerade" = x"yes"; then
696 masquerade="draft_from mmailid username_extension"
698 masquerade="$enable_masquerade"
703 # Check whether --enable-mhe or --disable-mhe was given.
704 if test "${enable_mhe+set}" = set; then
705 enableval="$enable_mhe"
710 if test x"$enable_mhe" != x"no" -a x"$enable_nmh_mhe" != x"no"; then
711 cat >> confdefs.h <<\EOF
716 # Check whether --enable-pop or --disable-pop was given.
717 if test "${enable_pop+set}" = set; then
718 enableval="$enable_pop"
722 if test x"$enable_nmh_pop" = x"yes"; then
726 # Check whether --with-hesiod or --without-hesiod was given.
727 if test "${with_hesiod+set}" = set; then
728 withval="$with_hesiod"
732 if test x"$with_hesiod" != x -a x"$with_hesiod" != x"no"; then
733 cat >> confdefs.h <<\EOF
738 # Check whether --with-krb4 or --without-krb4 was given.
739 if test "${with_krb4+set}" = set; then
744 if test x"$with_krb4" != x -a x"$with_krb4" != x"no"; then
746 cat >> confdefs.h <<\EOF
749 cat >> confdefs.h <<\EOF
750 #define KPOP_PRINCIPAL "pop"
754 if test x"$enable_pop" = x"yes"; then
755 cat >> confdefs.h <<\EOF
759 POPSED='/^%nmhbeginpop%/d;/^%nmhendpop%/d'
761 POPSED='/^%nmhbeginpop%/,/^%nmhendpop%/d'
764 # Check whether --with-editor or --without-editor was given.
765 if test "${with_editor+set}" = set; then
766 withval="$with_editor"
771 if test -n "$with_editor"; then
772 editorpath="$with_editor"
775 # Check whether --with-mts or --without-mts was given.
776 if test "${with_mts+set}" = set; then
782 if test x"$with_mts" = x"smtp"; then
784 MTSLIB="mts/smtp/libsmtp.a"
785 cat >> confdefs.h <<\EOF
788 elif test x"$with_mts" = x"sendmail"; then
790 MTSLIB="mts/sendmail/libsend.a"
791 cat >> confdefs.h <<\EOF
796 MTSLIB="mts/smtp/libsmtp.a"
797 cat >> confdefs.h <<\EOF
803 # Check whether --with-pager or --without-pager was given.
804 if test "${with_pager+set}" = set; then
805 withval="$with_pager"
810 if test -n "$with_pager"; then
811 pagerpath="$with_pager"
814 # Check whether --with-smtpservers or --without-smtpservers was given.
815 if test "${with_smtpservers+set}" = set; then
816 withval="$with_smtpservers"
820 if test -n "$with_smtpservers"; then
821 smtpservers="$with_smtpservers"
823 smtpservers="localhost"
828 test -z "$CFLAGS" && CFLAGS= auto_cflags=1
829 if test x"$enable_debug" = x"yes"; then
830 test -z "$LDFLAGS" && LDFLAGS=-g
833 # Extract the first word of "gcc", so it can be a program name with args.
834 set dummy gcc; ac_word=$2
835 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
836 echo "configure:837: checking for $ac_word" >&5
837 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
838 echo $ac_n "(cached) $ac_c" 1>&6
840 if test -n "$CC"; then
841 ac_cv_prog_CC="$CC" # Let the user override the test.
843 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
845 for ac_dir in $ac_dummy; do
846 test -z "$ac_dir" && ac_dir=.
847 if test -f $ac_dir/$ac_word; then
856 if test -n "$CC"; then
857 echo "$ac_t""$CC" 1>&6
859 echo "$ac_t""no" 1>&6
862 if test -z "$CC"; then
863 # Extract the first word of "cc", so it can be a program name with args.
864 set dummy cc; ac_word=$2
865 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
866 echo "configure:867: checking for $ac_word" >&5
867 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
868 echo $ac_n "(cached) $ac_c" 1>&6
870 if test -n "$CC"; then
871 ac_cv_prog_CC="$CC" # Let the user override the test.
873 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
876 for ac_dir in $ac_dummy; do
877 test -z "$ac_dir" && ac_dir=.
878 if test -f $ac_dir/$ac_word; then
879 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
888 if test $ac_prog_rejected = yes; then
889 # We found a bogon in the path, so make sure we never use it.
890 set dummy $ac_cv_prog_CC
892 if test $# -gt 0; then
893 # We chose a different compiler from the bogus one.
894 # However, it has the same basename, so the bogon will be chosen
895 # first if we set CC to just the basename; use the full file name.
897 set dummy "$ac_dir/$ac_word" "$@"
905 if test -n "$CC"; then
906 echo "$ac_t""$CC" 1>&6
908 echo "$ac_t""no" 1>&6
911 if test -z "$CC"; then
914 # Extract the first word of "cl", so it can be a program name with args.
915 set dummy cl; ac_word=$2
916 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
917 echo "configure:918: checking for $ac_word" >&5
918 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
919 echo $ac_n "(cached) $ac_c" 1>&6
921 if test -n "$CC"; then
922 ac_cv_prog_CC="$CC" # Let the user override the test.
924 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
926 for ac_dir in $ac_dummy; do
927 test -z "$ac_dir" && ac_dir=.
928 if test -f $ac_dir/$ac_word; then
937 if test -n "$CC"; then
938 echo "$ac_t""$CC" 1>&6
940 echo "$ac_t""no" 1>&6
945 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
948 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
949 echo "configure:950: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
952 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
953 ac_cpp='$CPP $CPPFLAGS'
954 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
955 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
956 cross_compiling=$ac_cv_prog_cc_cross
958 cat > conftest.$ac_ext << EOF
960 #line 961 "configure"
961 #include "confdefs.h"
965 if { (eval echo configure:966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
966 ac_cv_prog_cc_works=yes
967 # If we can't run a trivial program, we are probably using a cross compiler.
968 if (./conftest; exit) 2>/dev/null; then
969 ac_cv_prog_cc_cross=no
971 ac_cv_prog_cc_cross=yes
974 echo "configure: failed program was:" >&5
975 cat conftest.$ac_ext >&5
976 ac_cv_prog_cc_works=no
980 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
981 ac_cpp='$CPP $CPPFLAGS'
982 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
983 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
984 cross_compiling=$ac_cv_prog_cc_cross
986 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
987 if test $ac_cv_prog_cc_works = no; then
988 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
990 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
991 echo "configure:992: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
992 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
993 cross_compiling=$ac_cv_prog_cc_cross
995 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
996 echo "configure:997: checking whether we are using GNU C" >&5
997 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
998 echo $ac_n "(cached) $ac_c" 1>&6
1000 cat > conftest.c <<EOF
1005 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1006: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1012 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1014 if test $ac_cv_prog_gcc = yes; then
1020 ac_test_CFLAGS="${CFLAGS+set}"
1021 ac_save_CFLAGS="$CFLAGS"
1023 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1024 echo "configure:1025: checking whether ${CC-cc} accepts -g" >&5
1025 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1026 echo $ac_n "(cached) $ac_c" 1>&6
1028 echo 'void f(){}' > conftest.c
1029 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1038 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1039 if test "$ac_test_CFLAGS" = set; then
1040 CFLAGS="$ac_save_CFLAGS"
1041 elif test $ac_cv_prog_cc_g = yes; then
1042 if test "$GCC" = yes; then
1048 if test "$GCC" = yes; then
1056 if test -n "$auto_cflags"; then
1057 if test x"$enable_debug" = x"yes"; then
1058 if test -n "$GCC"; then
1059 test -z "$CFLAGS" && CFLAGS="-Wall -g" || CFLAGS="$CFLAGS -Wall -g"
1061 test -z "$CFLAGS" && CFLAGS=-g || CFLAGS="$CFLAGS -g"
1064 test -z "$LDFLAGS" && LDFLAGS=-s
1065 if test -n "$GCC"; then
1066 test -z "$CFLAGS" && CFLAGS="-Wall -O2" || CFLAGS="$CFLAGS -Wall -O2"
1068 test -z "$CFLAGS" && CFLAGS=-O || CFLAGS="$CFLAGS -O"
1073 echo $ac_n "checking for working const""... $ac_c" 1>&6
1074 echo "configure:1075: checking for working const" >&5
1075 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1076 echo $ac_n "(cached) $ac_c" 1>&6
1078 cat > conftest.$ac_ext <<EOF
1079 #line 1080 "configure"
1080 #include "confdefs.h"
1084 /* Ultrix mips cc rejects this. */
1085 typedef int charset[2]; const charset x;
1086 /* SunOS 4.1.1 cc rejects this. */
1087 char const *const *ccp;
1089 /* NEC SVR4.0.2 mips cc rejects this. */
1090 struct point {int x, y;};
1091 static struct point const zero = {0,0};
1092 /* AIX XL C 1.02.0.0 rejects this.
1093 It does not let you subtract one const X* pointer from another in an arm
1094 of an if-expression whose if-part is not a constant expression */
1095 const char *g = "string";
1096 ccp = &g + (g ? g-g : 0);
1097 /* HPUX 7.0 cc rejects these. */
1100 ccp = (char const *const *) p;
1101 { /* SCO 3.2v4 cc rejects this. */
1103 char const *s = 0 ? (char *) 0 : (char const *) 0;
1107 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1109 const int *foo = &x[0];
1112 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1113 typedef const int *iptr;
1117 { /* AIX XL C 1.02.0.0 rejects this saying
1118 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1119 struct s { int j; const int *ap[3]; };
1120 struct s *b; b->j = 5;
1122 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1128 if { (eval echo configure:1129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1132 echo "configure: failed program was:" >&5
1133 cat conftest.$ac_ext >&5
1140 echo "$ac_t""$ac_cv_c_const" 1>&6
1141 if test $ac_cv_c_const = no; then
1142 cat >> confdefs.h <<\EOF
1148 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1149 echo "configure:1150: checking whether ${MAKE-make} sets \${MAKE}" >&5
1150 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1151 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1152 echo $ac_n "(cached) $ac_c" 1>&6
1154 cat > conftestmake <<\EOF
1156 @echo 'ac_maketemp="${MAKE}"'
1158 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1159 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1160 if test -n "$ac_maketemp"; then
1161 eval ac_cv_prog_make_${ac_make}_set=yes
1163 eval ac_cv_prog_make_${ac_make}_set=no
1167 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1168 echo "$ac_t""yes" 1>&6
1171 echo "$ac_t""no" 1>&6
1172 SET_MAKE="MAKE=${MAKE-make}"
1174 # Find a good install program. We prefer a C program (faster),
1175 # so one script is as good as another. But avoid the broken or
1176 # incompatible versions:
1177 # SysV /etc/install, /usr/sbin/install
1178 # SunOS /usr/etc/install
1179 # IRIX /sbin/install
1181 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1182 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1183 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1184 # ./install, which can be erroneously created by make from ./install.sh.
1185 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1186 echo "configure:1187: checking for a BSD compatible install" >&5
1187 if test -z "$INSTALL"; then
1188 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1189 echo $ac_n "(cached) $ac_c" 1>&6
1191 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1192 for ac_dir in $PATH; do
1193 # Account for people who put trailing slashes in PATH elements.
1195 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1197 # OSF1 and SCO ODT 3.0 have their own names for install.
1198 # Don't use installbsd from OSF since it installs stuff as root
1200 for ac_prog in ginstall scoinst install; do
1201 if test -f $ac_dir/$ac_prog; then
1202 if test $ac_prog = install &&
1203 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1204 # AIX install. It has an incompatible calling convention.
1207 ac_cv_path_install="$ac_dir/$ac_prog -c"
1218 if test "${ac_cv_path_install+set}" = set; then
1219 INSTALL="$ac_cv_path_install"
1221 # As a last resort, use the slow shell script. We don't cache a
1222 # path for INSTALL within a source directory, because that will
1223 # break other packages using the cache if that directory is
1224 # removed, or if the path is relative.
1225 INSTALL="$ac_install_sh"
1228 echo "$ac_t""$INSTALL" 1>&6
1230 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1231 # It thinks the first close brace ends the variable substitution.
1232 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1234 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1236 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1237 # Extract the first word of "ranlib", so it can be a program name with args.
1238 set dummy ranlib; ac_word=$2
1239 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1240 echo "configure:1241: checking for $ac_word" >&5
1241 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1242 echo $ac_n "(cached) $ac_c" 1>&6
1244 if test -n "$RANLIB"; then
1245 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1247 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1249 for ac_dir in $ac_dummy; do
1250 test -z "$ac_dir" && ac_dir=.
1251 if test -f $ac_dir/$ac_word; then
1252 ac_cv_prog_RANLIB="ranlib"
1257 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1260 RANLIB="$ac_cv_prog_RANLIB"
1261 if test -n "$RANLIB"; then
1262 echo "$ac_t""$RANLIB" 1>&6
1264 echo "$ac_t""no" 1>&6
1266 for ac_prog in mawk gawk nawk awk
1268 # Extract the first word of "$ac_prog", so it can be a program name with args.
1269 set dummy $ac_prog; ac_word=$2
1270 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1271 echo "configure:1272: checking for $ac_word" >&5
1272 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1273 echo $ac_n "(cached) $ac_c" 1>&6
1275 if test -n "$AWK"; then
1276 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1278 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1280 for ac_dir in $ac_dummy; do
1281 test -z "$ac_dir" && ac_dir=.
1282 if test -f $ac_dir/$ac_word; then
1283 ac_cv_prog_AWK="$ac_prog"
1290 AWK="$ac_cv_prog_AWK"
1291 if test -n "$AWK"; then
1292 echo "$ac_t""$AWK" 1>&6
1294 echo "$ac_t""no" 1>&6
1297 test -n "$AWK" && break
1299 # Extract the first word of "flex", so it can be a program name with args.
1300 set dummy flex; ac_word=$2
1301 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1302 echo "configure:1303: checking for $ac_word" >&5
1303 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1304 echo $ac_n "(cached) $ac_c" 1>&6
1306 if test -n "$LEX"; then
1307 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1309 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1311 for ac_dir in $ac_dummy; do
1312 test -z "$ac_dir" && ac_dir=.
1313 if test -f $ac_dir/$ac_word; then
1314 ac_cv_prog_LEX="flex"
1319 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1322 LEX="$ac_cv_prog_LEX"
1323 if test -n "$LEX"; then
1324 echo "$ac_t""$LEX" 1>&6
1326 echo "$ac_t""no" 1>&6
1329 if test -z "$LEXLIB"
1335 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1336 echo "configure:1337: checking for yywrap in -l$ac_lib" >&5
1337 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1338 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1339 echo $ac_n "(cached) $ac_c" 1>&6
1341 ac_save_LIBS="$LIBS"
1342 LIBS="-l$ac_lib $LIBS"
1343 cat > conftest.$ac_ext <<EOF
1344 #line 1345 "configure"
1345 #include "confdefs.h"
1346 /* Override any gcc2 internal prototype to avoid an error. */
1347 /* We use char because int might match the return type of a gcc2
1348 builtin and then its argument prototype would still apply. */
1355 if { (eval echo configure:1356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1357 eval "ac_cv_lib_$ac_lib_var=yes"
1359 echo "configure: failed program was:" >&5
1360 cat conftest.$ac_ext >&5
1362 eval "ac_cv_lib_$ac_lib_var=no"
1365 LIBS="$ac_save_LIBS"
1368 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1369 echo "$ac_t""yes" 1>&6
1372 echo "$ac_t""no" 1>&6
1377 pathtmp=/usr/bin:/bin:/usr/local/bin:/usr/xpg4/bin:/usr/ucb
1378 # Extract the first word of "cut", so it can be a program name with args.
1379 set dummy cut; ac_word=$2
1380 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1381 echo "configure:1382: checking for $ac_word" >&5
1382 if eval "test \"`echo '$''{'ac_cv_path_cutpath'+set}'`\" = set"; then
1383 echo $ac_n "(cached) $ac_c" 1>&6
1387 ac_cv_path_cutpath="$cutpath" # Let the user override the test with a path.
1390 ac_cv_path_cutpath="$cutpath" # Let the user override the test with a dos path.
1393 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1395 for ac_dir in $ac_dummy; do
1396 test -z "$ac_dir" && ac_dir=.
1397 if test -f $ac_dir/$ac_word; then
1398 ac_cv_path_cutpath="$ac_dir/$ac_word"
1403 test -z "$ac_cv_path_cutpath" && ac_cv_path_cutpath="no"
1407 cutpath="$ac_cv_path_cutpath"
1408 if test -n "$cutpath"; then
1409 echo "$ac_t""$cutpath" 1>&6
1411 echo "$ac_t""no" 1>&6
1416 # Extract the first word of "libtool", so it can be a program name with args.
1417 set dummy libtool; ac_word=$2
1418 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1419 echo "configure:1420: checking for $ac_word" >&5
1420 if eval "test \"`echo '$''{'ac_cv_prog_LIBTOOL'+set}'`\" = set"; then
1421 echo $ac_n "(cached) $ac_c" 1>&6
1423 if test -n "$LIBTOOL"; then
1424 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
1426 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1428 for ac_dir in $ac_dummy; do
1429 test -z "$ac_dir" && ac_dir=.
1430 if test -f $ac_dir/$ac_word; then
1431 ac_cv_prog_LIBTOOL="libtool"
1438 LIBTOOL="$ac_cv_prog_LIBTOOL"
1439 if test -n "$LIBTOOL"; then
1440 echo "$ac_t""$LIBTOOL" 1>&6
1442 echo "$ac_t""no" 1>&6
1446 tmptest=`$LIBTOOL --version 2>&1 | grep GNU`
1447 if test x"$tmptest" != x ; then
1452 # Extract the first word of "lorder", so it can be a program name with args.
1453 set dummy lorder; ac_word=$2
1454 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1455 echo "configure:1456: checking for $ac_word" >&5
1456 if eval "test \"`echo '$''{'ac_cv_prog_LORDER'+set}'`\" = set"; then
1457 echo $ac_n "(cached) $ac_c" 1>&6
1459 if test -n "$LORDER"; then
1460 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
1462 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1464 for ac_dir in $ac_dummy; do
1465 test -z "$ac_dir" && ac_dir=.
1466 if test -f $ac_dir/$ac_word; then
1467 ac_cv_prog_LORDER="lorder"
1472 test -z "$ac_cv_prog_LORDER" && ac_cv_prog_LORDER="no"
1475 LORDER="$ac_cv_prog_LORDER"
1476 if test -n "$LORDER"; then
1477 echo "$ac_t""$LORDER" 1>&6
1479 echo "$ac_t""no" 1>&6
1481 # Extract the first word of "tsort", so it can be a program name with args.
1482 set dummy tsort; ac_word=$2
1483 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1484 echo "configure:1485: checking for $ac_word" >&5
1485 if eval "test \"`echo '$''{'ac_cv_prog_TSORT'+set}'`\" = set"; then
1486 echo $ac_n "(cached) $ac_c" 1>&6
1488 if test -n "$TSORT"; then
1489 ac_cv_prog_TSORT="$TSORT" # Let the user override the test.
1491 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1493 for ac_dir in $ac_dummy; do
1494 test -z "$ac_dir" && ac_dir=.
1495 if test -f $ac_dir/$ac_word; then
1496 ac_cv_prog_TSORT="tsort"
1501 test -z "$ac_cv_prog_TSORT" && ac_cv_prog_TSORT="no"
1504 TSORT="$ac_cv_prog_TSORT"
1505 if test -n "$TSORT"; then
1506 echo "$ac_t""$TSORT" 1>&6
1508 echo "$ac_t""no" 1>&6
1511 if test x$ac_cv_prog_LORDER != xlorder -o x$ac_cv_prog_TSORT != xtsort; then
1516 pathtmp=/usr/bin:/bin:/usr/local/bin:/usr/xpg4/bin:/usr/ucb
1517 # Extract the first word of "ls", so it can be a program name with args.
1518 set dummy ls; ac_word=$2
1519 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1520 echo "configure:1521: checking for $ac_word" >&5
1521 if eval "test \"`echo '$''{'ac_cv_path_lspath'+set}'`\" = set"; then
1522 echo $ac_n "(cached) $ac_c" 1>&6
1526 ac_cv_path_lspath="$lspath" # Let the user override the test with a path.
1529 ac_cv_path_lspath="$lspath" # Let the user override the test with a dos path.
1532 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1534 for ac_dir in $ac_dummy; do
1535 test -z "$ac_dir" && ac_dir=.
1536 if test -f $ac_dir/$ac_word; then
1537 ac_cv_path_lspath="$ac_dir/$ac_word"
1542 test -z "$ac_cv_path_lspath" && ac_cv_path_lspath="no"
1546 lspath="$ac_cv_path_lspath"
1547 if test -n "$lspath"; then
1548 echo "$ac_t""$lspath" 1>&6
1550 echo "$ac_t""no" 1>&6
1554 if test "$lspath" != "no"; then
1555 echo $ac_n "checking how to get ls to show us the group ownership of a file""... $ac_c" 1>&6
1556 echo "configure:1557: checking how to get ls to show us the group ownership of a file" >&5
1557 if eval "test \"`echo '$''{'nmh_cv_ls_grpopt'+set}'`\" = set"; then
1558 echo $ac_n "(cached) $ac_c" 1>&6
1560 if test x"`$lspath -dl / | $AWK '{print $9}'`" = x"/"; then
1561 nmh_cv_ls_grpopt="-l"
1563 nmh_cv_ls_grpopt="-lg"
1567 echo "$ac_t""$nmh_cv_ls_grpopt" 1>&6
1570 pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin
1571 # Extract the first word of "more", so it can be a program name with args.
1572 set dummy more; ac_word=$2
1573 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1574 echo "configure:1575: checking for $ac_word" >&5
1575 if eval "test \"`echo '$''{'ac_cv_path_morepath'+set}'`\" = set"; then
1576 echo $ac_n "(cached) $ac_c" 1>&6
1580 ac_cv_path_morepath="$morepath" # Let the user override the test with a path.
1583 ac_cv_path_morepath="$morepath" # Let the user override the test with a dos path.
1586 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1588 for ac_dir in $ac_dummy; do
1589 test -z "$ac_dir" && ac_dir=.
1590 if test -f $ac_dir/$ac_word; then
1591 ac_cv_path_morepath="$ac_dir/$ac_word"
1596 test -z "$ac_cv_path_morepath" && ac_cv_path_morepath="no"
1600 morepath="$ac_cv_path_morepath"
1601 if test -n "$morepath"; then
1602 echo "$ac_t""$morepath" 1>&6
1604 echo "$ac_t""no" 1>&6
1608 if test -z "$pagerpath"; then
1609 pagerpath="$morepath"
1612 pathtmp=/usr/lib:/usr/sbin:/usr/etc:/usr/ucblib:/usr/bin:/bin
1613 # Extract the first word of "sendmail", so it can be a program name with args.
1614 set dummy sendmail; ac_word=$2
1615 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1616 echo "configure:1617: checking for $ac_word" >&5
1617 if eval "test \"`echo '$''{'ac_cv_path_sendmailpath'+set}'`\" = set"; then
1618 echo $ac_n "(cached) $ac_c" 1>&6
1620 case "$sendmailpath" in
1622 ac_cv_path_sendmailpath="$sendmailpath" # Let the user override the test with a path.
1625 ac_cv_path_sendmailpath="$sendmailpath" # Let the user override the test with a dos path.
1628 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1630 for ac_dir in $ac_dummy; do
1631 test -z "$ac_dir" && ac_dir=.
1632 if test -f $ac_dir/$ac_word; then
1633 ac_cv_path_sendmailpath="$ac_dir/$ac_word"
1638 test -z "$ac_cv_path_sendmailpath" && ac_cv_path_sendmailpath="no"
1642 sendmailpath="$ac_cv_path_sendmailpath"
1643 if test -n "$sendmailpath"; then
1644 echo "$ac_t""$sendmailpath" 1>&6
1646 echo "$ac_t""no" 1>&6
1650 pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin
1651 # Extract the first word of "vi", so it can be a program name with args.
1652 set dummy vi; ac_word=$2
1653 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1654 echo "configure:1655: checking for $ac_word" >&5
1655 if eval "test \"`echo '$''{'ac_cv_path_vipath'+set}'`\" = set"; then
1656 echo $ac_n "(cached) $ac_c" 1>&6
1660 ac_cv_path_vipath="$vipath" # Let the user override the test with a path.
1663 ac_cv_path_vipath="$vipath" # Let the user override the test with a dos path.
1666 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1668 for ac_dir in $ac_dummy; do
1669 test -z "$ac_dir" && ac_dir=.
1670 if test -f $ac_dir/$ac_word; then
1671 ac_cv_path_vipath="$ac_dir/$ac_word"
1676 test -z "$ac_cv_path_vipath" && ac_cv_path_vipath="no"
1680 vipath="$ac_cv_path_vipath"
1681 if test -n "$vipath"; then
1682 echo "$ac_t""$vipath" 1>&6
1684 echo "$ac_t""no" 1>&6
1688 if test -z "$editorpath"; then
1689 editorpath="$vipath"
1692 echo $ac_n "checking for broken vi""... $ac_c" 1>&6
1693 echo "configure:1694: checking for broken vi" >&5
1694 if eval "test \"`echo '$''{'nmh_cv_attvibug'+set}'`\" = set"; then
1695 echo $ac_n "(cached) $ac_c" 1>&6
1697 if echo 'r /nonexist-file
1698 q' | ex > /dev/null 2>&1
1706 echo "$ac_t""$nmh_cv_attvibug" 1>&6
1708 if test "$nmh_cv_attvibug" = yes; then
1709 cat >> confdefs.h <<\EOF
1714 echo $ac_n "checking where mail spool is located""... $ac_c" 1>&6
1715 echo "configure:1716: checking where mail spool is located" >&5
1716 if eval "test \"`echo '$''{'nmh_cv_mailspool'+set}'`\" = set"; then
1717 echo $ac_n "(cached) $ac_c" 1>&6
1719 for mailspool in /var/mail /var/spool/mail /usr/spool/mail /dev/null; do
1720 test -d $mailspool && break
1722 nmh_cv_mailspool=$mailspool
1726 echo "$ac_t""$nmh_cv_mailspool" 1>&6
1727 mailspool=$nmh_cv_mailspool
1729 if test "$lspath" != "no" -a "$cutpath" != "no"; then
1730 echo $ac_n "checking whether the mail spool is world-writable""... $ac_c" 1>&6
1731 echo "configure:1732: checking whether the mail spool is world-writable" >&5
1732 if eval "test \"`echo '$''{'nmh_cv_mailspool_world_writable'+set}'`\" = set"; then
1733 echo $ac_n "(cached) $ac_c" 1>&6
1735 if test "`$lspath -dlL $mailspool | $cutpath -c9`" = "-"; then
1736 nmh_cv_mailspool_world_writable=no
1738 nmh_cv_mailspool_world_writable=yes
1742 echo "$ac_t""$nmh_cv_mailspool_world_writable" 1>&6
1745 if test x"$nmh_cv_mailspool_world_writable" = x"no"; then
1746 cat >> confdefs.h <<\EOF
1752 echo $ac_n "checking what group owns the mail spool""... $ac_c" 1>&6
1753 echo "configure:1754: checking what group owns the mail spool" >&5
1754 if eval "test \"`echo '$''{'nmh_cv_ls_mail_grp'+set}'`\" = set"; then
1755 echo $ac_n "(cached) $ac_c" 1>&6
1757 nmh_cv_ls_mail_grp=`$lspath -dL $nmh_cv_ls_grpopt $mailspool|$AWK '{print $4}'`
1761 echo "$ac_t""$nmh_cv_ls_mail_grp" 1>&6
1762 MAIL_SPOOL_GRP=$nmh_cv_ls_mail_grp
1765 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1767 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1768 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1769 echo "configure:1770: checking for $ac_hdr that defines DIR" >&5
1770 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1771 echo $ac_n "(cached) $ac_c" 1>&6
1773 cat > conftest.$ac_ext <<EOF
1774 #line 1775 "configure"
1775 #include "confdefs.h"
1776 #include <sys/types.h>
1782 if { (eval echo configure:1783: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1784 eval "ac_cv_header_dirent_$ac_safe=yes"
1786 echo "configure: failed program was:" >&5
1787 cat conftest.$ac_ext >&5
1789 eval "ac_cv_header_dirent_$ac_safe=no"
1793 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1794 echo "$ac_t""yes" 1>&6
1795 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1796 cat >> confdefs.h <<EOF
1797 #define $ac_tr_hdr 1
1799 ac_header_dirent=$ac_hdr; break
1801 echo "$ac_t""no" 1>&6
1804 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1805 if test $ac_header_dirent = dirent.h; then
1806 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1807 echo "configure:1808: checking for opendir in -ldir" >&5
1808 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1809 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1810 echo $ac_n "(cached) $ac_c" 1>&6
1812 ac_save_LIBS="$LIBS"
1814 cat > conftest.$ac_ext <<EOF
1815 #line 1816 "configure"
1816 #include "confdefs.h"
1817 /* Override any gcc2 internal prototype to avoid an error. */
1818 /* We use char because int might match the return type of a gcc2
1819 builtin and then its argument prototype would still apply. */
1826 if { (eval echo configure:1827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1828 eval "ac_cv_lib_$ac_lib_var=yes"
1830 echo "configure: failed program was:" >&5
1831 cat conftest.$ac_ext >&5
1833 eval "ac_cv_lib_$ac_lib_var=no"
1836 LIBS="$ac_save_LIBS"
1839 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1840 echo "$ac_t""yes" 1>&6
1843 echo "$ac_t""no" 1>&6
1847 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1848 echo "configure:1849: checking for opendir in -lx" >&5
1849 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1850 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1851 echo $ac_n "(cached) $ac_c" 1>&6
1853 ac_save_LIBS="$LIBS"
1855 cat > conftest.$ac_ext <<EOF
1856 #line 1857 "configure"
1857 #include "confdefs.h"
1858 /* Override any gcc2 internal prototype to avoid an error. */
1859 /* We use char because int might match the return type of a gcc2
1860 builtin and then its argument prototype would still apply. */
1867 if { (eval echo configure:1868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1869 eval "ac_cv_lib_$ac_lib_var=yes"
1871 echo "configure: failed program was:" >&5
1872 cat conftest.$ac_ext >&5
1874 eval "ac_cv_lib_$ac_lib_var=no"
1877 LIBS="$ac_save_LIBS"
1880 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1881 echo "$ac_t""yes" 1>&6
1884 echo "$ac_t""no" 1>&6
1889 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1890 echo "configure:1891: checking how to run the C preprocessor" >&5
1891 # On Suns, sometimes $CPP names a directory.
1892 if test -n "$CPP" && test -d "$CPP"; then
1895 if test -z "$CPP"; then
1896 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1897 echo $ac_n "(cached) $ac_c" 1>&6
1899 # This must be in double quotes, not single quotes, because CPP may get
1900 # substituted into the Makefile and "${CC-cc}" will confuse make.
1902 # On the NeXT, cc -E runs the code through the compiler's parser,
1903 # not just through cpp.
1904 cat > conftest.$ac_ext <<EOF
1905 #line 1906 "configure"
1906 #include "confdefs.h"
1910 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1911 { (eval echo configure:1912: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1912 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1913 if test -z "$ac_err"; then
1917 echo "configure: failed program was:" >&5
1918 cat conftest.$ac_ext >&5
1920 CPP="${CC-cc} -E -traditional-cpp"
1921 cat > conftest.$ac_ext <<EOF
1922 #line 1923 "configure"
1923 #include "confdefs.h"
1927 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1928 { (eval echo configure:1929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1929 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1930 if test -z "$ac_err"; then
1934 echo "configure: failed program was:" >&5
1935 cat conftest.$ac_ext >&5
1937 CPP="${CC-cc} -nologo -E"
1938 cat > conftest.$ac_ext <<EOF
1939 #line 1940 "configure"
1940 #include "confdefs.h"
1944 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1945 { (eval echo configure:1946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1946 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1947 if test -z "$ac_err"; then
1951 echo "configure: failed program was:" >&5
1952 cat conftest.$ac_ext >&5
1961 ac_cv_prog_CPP="$CPP"
1963 CPP="$ac_cv_prog_CPP"
1965 ac_cv_prog_CPP="$CPP"
1967 echo "$ac_t""$CPP" 1>&6
1969 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1970 echo "configure:1971: checking for ANSI C header files" >&5
1971 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1972 echo $ac_n "(cached) $ac_c" 1>&6
1974 cat > conftest.$ac_ext <<EOF
1975 #line 1976 "configure"
1976 #include "confdefs.h"
1982 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1983 { (eval echo configure:1984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1984 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1985 if test -z "$ac_err"; then
1987 ac_cv_header_stdc=yes
1990 echo "configure: failed program was:" >&5
1991 cat conftest.$ac_ext >&5
1993 ac_cv_header_stdc=no
1997 if test $ac_cv_header_stdc = yes; then
1998 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1999 cat > conftest.$ac_ext <<EOF
2000 #line 2001 "configure"
2001 #include "confdefs.h"
2004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2005 egrep "memchr" >/dev/null 2>&1; then
2009 ac_cv_header_stdc=no
2015 if test $ac_cv_header_stdc = yes; then
2016 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2017 cat > conftest.$ac_ext <<EOF
2018 #line 2019 "configure"
2019 #include "confdefs.h"
2022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2023 egrep "free" >/dev/null 2>&1; then
2027 ac_cv_header_stdc=no
2033 if test $ac_cv_header_stdc = yes; then
2034 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2035 if test "$cross_compiling" = yes; then
2038 cat > conftest.$ac_ext <<EOF
2039 #line 2040 "configure"
2040 #include "confdefs.h"
2042 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2043 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2044 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2045 int main () { int i; for (i = 0; i < 256; i++)
2046 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2050 if { (eval echo configure:2051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2054 echo "configure: failed program was:" >&5
2055 cat conftest.$ac_ext >&5
2057 ac_cv_header_stdc=no
2065 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2066 if test $ac_cv_header_stdc = yes; then
2067 cat >> confdefs.h <<\EOF
2068 #define STDC_HEADERS 1
2073 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2074 echo "configure:2075: checking whether time.h and sys/time.h may both be included" >&5
2075 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2076 echo $ac_n "(cached) $ac_c" 1>&6
2078 cat > conftest.$ac_ext <<EOF
2079 #line 2080 "configure"
2080 #include "confdefs.h"
2081 #include <sys/types.h>
2082 #include <sys/time.h>
2088 if { (eval echo configure:2089: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2090 ac_cv_header_time=yes
2092 echo "configure: failed program was:" >&5
2093 cat conftest.$ac_ext >&5
2095 ac_cv_header_time=no
2100 echo "$ac_t""$ac_cv_header_time" 1>&6
2101 if test $ac_cv_header_time = yes; then
2102 cat >> confdefs.h <<\EOF
2103 #define TIME_WITH_SYS_TIME 1
2108 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2109 echo "configure:2110: checking for sys/wait.h that is POSIX.1 compatible" >&5
2110 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2111 echo $ac_n "(cached) $ac_c" 1>&6
2113 cat > conftest.$ac_ext <<EOF
2114 #line 2115 "configure"
2115 #include "confdefs.h"
2116 #include <sys/types.h>
2117 #include <sys/wait.h>
2119 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2122 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2127 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2130 if { (eval echo configure:2131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2132 ac_cv_header_sys_wait_h=yes
2134 echo "configure: failed program was:" >&5
2135 cat conftest.$ac_ext >&5
2137 ac_cv_header_sys_wait_h=no
2142 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2143 if test $ac_cv_header_sys_wait_h = yes; then
2144 cat >> confdefs.h <<\EOF
2145 #define HAVE_SYS_WAIT_H 1
2150 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
2151 echo "configure:2152: checking whether stat file-mode macros are broken" >&5
2152 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
2153 echo $ac_n "(cached) $ac_c" 1>&6
2155 cat > conftest.$ac_ext <<EOF
2156 #line 2157 "configure"
2157 #include "confdefs.h"
2158 #include <sys/types.h>
2159 #include <sys/stat.h>
2161 #if defined(S_ISBLK) && defined(S_IFDIR)
2162 # if S_ISBLK (S_IFDIR)
2167 #if defined(S_ISBLK) && defined(S_IFCHR)
2168 # if S_ISBLK (S_IFCHR)
2173 #if defined(S_ISLNK) && defined(S_IFREG)
2174 # if S_ISLNK (S_IFREG)
2179 #if defined(S_ISSOCK) && defined(S_IFREG)
2180 # if S_ISSOCK (S_IFREG)
2186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2187 egrep "You lose" >/dev/null 2>&1; then
2189 ac_cv_header_stat_broken=yes
2192 ac_cv_header_stat_broken=no
2198 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
2199 if test $ac_cv_header_stat_broken = yes; then
2200 cat >> confdefs.h <<\EOF
2201 #define STAT_MACROS_BROKEN 1
2206 for ac_hdr in string.h memory.h stdlib.h unistd.h errno.h fcntl.h \
2207 limits.h crypt.h termcap.h termio.h termios.h locale.h \
2208 netdb.h sys/param.h sys/time.h sys/utsname.h arpa/inet.h \
2211 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2212 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2213 echo "configure:2214: checking for $ac_hdr" >&5
2214 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2215 echo $ac_n "(cached) $ac_c" 1>&6
2217 cat > conftest.$ac_ext <<EOF
2218 #line 2219 "configure"
2219 #include "confdefs.h"
2222 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2223 { (eval echo configure:2224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2224 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2225 if test -z "$ac_err"; then
2227 eval "ac_cv_header_$ac_safe=yes"
2230 echo "configure: failed program was:" >&5
2231 cat conftest.$ac_ext >&5
2233 eval "ac_cv_header_$ac_safe=no"
2237 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2238 echo "$ac_t""yes" 1>&6
2239 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2240 cat >> confdefs.h <<EOF
2241 #define $ac_tr_hdr 1
2245 echo "$ac_t""no" 1>&6
2251 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
2252 echo "configure:2253: checking POSIX termios" >&5
2253 if eval "test \"`echo '$''{'nmh_cv_sys_posix_termios'+set}'`\" = set"; then
2254 echo $ac_n "(cached) $ac_c" 1>&6
2256 cat > conftest.$ac_ext <<EOF
2257 #line 2258 "configure"
2258 #include "confdefs.h"
2259 #include <sys/types.h>
2261 #include <termios.h>
2263 /* SunOS 4.0.3 has termios.h but not the library calls. */
2267 if { (eval echo configure:2268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2269 nmh_cv_sys_posix_termios=yes
2271 echo "configure: failed program was:" >&5
2272 cat conftest.$ac_ext >&5
2274 nmh_cv_sys_posix_termios=no
2279 echo "$ac_t""$nmh_cv_sys_posix_termios" 1>&6
2281 if test $nmh_cv_sys_posix_termios = yes; then
2282 echo $ac_n "checking TIOCGWINSZ in termios.h""... $ac_c" 1>&6
2283 echo "configure:2284: checking TIOCGWINSZ in termios.h" >&5
2284 if eval "test \"`echo '$''{'nmh_cv_header_termios_h_tiocgwinsz'+set}'`\" = set"; then
2285 echo $ac_n "(cached) $ac_c" 1>&6
2287 cat > conftest.$ac_ext <<EOF
2288 #line 2289 "configure"
2289 #include "confdefs.h"
2290 #include <sys/types.h>
2291 #include <termios.h>
2296 if { (eval echo configure:2297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2298 nmh_cv_header_termios_h_tiocgwinsz=yes
2300 echo "configure: failed program was:" >&5
2301 cat conftest.$ac_ext >&5
2303 nmh_cv_header_termios_h_tiocgwinsz=no
2308 echo "$ac_t""$nmh_cv_header_termios_h_tiocgwinsz" 1>&6
2310 nmh_cv_header_termios_h_tiocgwinsz=no
2313 if test $nmh_cv_header_termios_h_tiocgwinsz = no; then
2314 echo $ac_n "checking TIOCGWINSZ in sys/ioctl.h""... $ac_c" 1>&6
2315 echo "configure:2316: checking TIOCGWINSZ in sys/ioctl.h" >&5
2316 if eval "test \"`echo '$''{'nmh_cv_header_sys_ioctl_h_tiocgwinsz'+set}'`\" = set"; then
2317 echo $ac_n "(cached) $ac_c" 1>&6
2319 cat > conftest.$ac_ext <<EOF
2320 #line 2321 "configure"
2321 #include "confdefs.h"
2322 #include <sys/types.h>
2323 #include <sys/ioctl.h>
2328 if { (eval echo configure:2329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2330 nmh_cv_header_sys_ioctl_h_tiocgwinsz=yes
2332 echo "configure: failed program was:" >&5
2333 cat conftest.$ac_ext >&5
2335 nmh_cv_header_sys_ioctl_h_tiocgwinsz=no
2340 echo "$ac_t""$nmh_cv_header_sys_ioctl_h_tiocgwinsz" 1>&6
2341 if test $nmh_cv_header_sys_ioctl_h_tiocgwinsz = yes; then
2342 cat >> confdefs.h <<\EOF
2343 #define GWINSZ_IN_SYS_IOCTL 1
2349 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2350 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2351 echo "configure:2352: checking for libio.h" >&5
2352 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2353 echo $ac_n "(cached) $ac_c" 1>&6
2355 cat > conftest.$ac_ext <<EOF
2356 #line 2357 "configure"
2357 #include "confdefs.h"
2360 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2361 { (eval echo configure:2362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2362 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2363 if test -z "$ac_err"; then
2365 eval "ac_cv_header_$ac_safe=yes"
2368 echo "configure: failed program was:" >&5
2369 cat conftest.$ac_ext >&5
2371 eval "ac_cv_header_$ac_safe=no"
2375 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2376 echo "$ac_t""yes" 1>&6
2378 cat > conftest.$ac_ext <<EOF
2379 #line 2380 "configure"
2380 #include "confdefs.h"
2383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2384 egrep "_IO_write_ptr" >/dev/null 2>&1; then
2387 cat >> confdefs.h <<\EOF
2388 #define LINUX_STDIO 1
2395 echo "$ac_t""no" 1>&6
2399 ac_safe=`echo "sys/ptem.h" | sed 'y%./+-%__p_%'`
2400 echo $ac_n "checking for sys/ptem.h""... $ac_c" 1>&6
2401 echo "configure:2402: checking for sys/ptem.h" >&5
2402 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2403 echo $ac_n "(cached) $ac_c" 1>&6
2405 cat > conftest.$ac_ext <<EOF
2406 #line 2407 "configure"
2407 #include "confdefs.h"
2408 #include <sys/ptem.h>
2410 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2411 { (eval echo configure:2412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2412 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2413 if test -z "$ac_err"; then
2415 eval "ac_cv_header_$ac_safe=yes"
2418 echo "configure: failed program was:" >&5
2419 cat conftest.$ac_ext >&5
2421 eval "ac_cv_header_$ac_safe=no"
2425 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2426 echo "$ac_t""yes" 1>&6
2427 cat >> confdefs.h <<\EOF
2428 #define WINSIZE_IN_PTEM 1
2432 echo "$ac_t""no" 1>&6
2436 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2437 echo "configure:2438: checking for pid_t" >&5
2438 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2439 echo $ac_n "(cached) $ac_c" 1>&6
2441 cat > conftest.$ac_ext <<EOF
2442 #line 2443 "configure"
2443 #include "confdefs.h"
2444 #include <sys/types.h>
2450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2451 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2453 ac_cv_type_pid_t=yes
2461 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2462 if test $ac_cv_type_pid_t = no; then
2463 cat >> confdefs.h <<\EOF
2469 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2470 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2471 echo "configure:2472: checking for vfork.h" >&5
2472 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2473 echo $ac_n "(cached) $ac_c" 1>&6
2475 cat > conftest.$ac_ext <<EOF
2476 #line 2477 "configure"
2477 #include "confdefs.h"
2480 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2481 { (eval echo configure:2482: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2482 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2483 if test -z "$ac_err"; then
2485 eval "ac_cv_header_$ac_safe=yes"
2488 echo "configure: failed program was:" >&5
2489 cat conftest.$ac_ext >&5
2491 eval "ac_cv_header_$ac_safe=no"
2495 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2496 echo "$ac_t""yes" 1>&6
2497 cat >> confdefs.h <<\EOF
2498 #define HAVE_VFORK_H 1
2502 echo "$ac_t""no" 1>&6
2505 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2506 echo "configure:2507: checking for working vfork" >&5
2507 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2508 echo $ac_n "(cached) $ac_c" 1>&6
2510 if test "$cross_compiling" = yes; then
2511 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2512 echo "configure:2513: checking for vfork" >&5
2513 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2514 echo $ac_n "(cached) $ac_c" 1>&6
2516 cat > conftest.$ac_ext <<EOF
2517 #line 2518 "configure"
2518 #include "confdefs.h"
2519 /* System header to define __stub macros and hopefully few prototypes,
2520 which can conflict with char vfork(); below. */
2522 /* Override any gcc2 internal prototype to avoid an error. */
2523 /* We use char because int might match the return type of a gcc2
2524 builtin and then its argument prototype would still apply. */
2529 /* The GNU C library defines this for functions which it implements
2530 to always fail with ENOSYS. Some functions are actually named
2531 something starting with __ and the normal name is an alias. */
2532 #if defined (__stub_vfork) || defined (__stub___vfork)
2540 if { (eval echo configure:2541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2542 eval "ac_cv_func_vfork=yes"
2544 echo "configure: failed program was:" >&5
2545 cat conftest.$ac_ext >&5
2547 eval "ac_cv_func_vfork=no"
2552 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2553 echo "$ac_t""yes" 1>&6
2556 echo "$ac_t""no" 1>&6
2559 ac_cv_func_vfork_works=$ac_cv_func_vfork
2561 cat > conftest.$ac_ext <<EOF
2562 #line 2563 "configure"
2563 #include "confdefs.h"
2564 /* Thanks to Paul Eggert for this test. */
2566 #include <sys/types.h>
2567 #include <sys/stat.h>
2568 #ifdef HAVE_UNISTD_H
2574 /* On some sparc systems, changes by the child to local and incoming
2575 argument registers are propagated back to the parent.
2576 The compiler is told about this with #include <vfork.h>,
2577 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2578 Test for this by using a static variable whose address
2579 is put into a register that is clobbered by the vfork. */
2582 sparc_address_test (int arg)
2584 sparc_address_test (arg) int arg;
2602 pid_t parent = getpid ();
2605 sparc_address_test ();
2610 /* Here is another test for sparc vfork register problems.
2611 This test uses lots of local variables, at least
2612 as many local variables as main has allocated so far
2613 including compiler temporaries. 4 locals are enough for
2614 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2615 A buggy compiler should reuse the register of parent
2616 for one of the local variables, since it will think that
2617 parent can't possibly be used any more in this routine.
2618 Assigning to the local variable will thus munge parent
2619 in the parent process. */
2621 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2622 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2623 /* Convince the compiler that p..p7 are live; otherwise, it might
2624 use the same hardware register for all 8 local variables. */
2625 if (p != p1 || p != p2 || p != p3 || p != p4
2626 || p != p5 || p != p6 || p != p7)
2629 /* On some systems (e.g. IRIX 3.3),
2630 vfork doesn't separate parent from child file descriptors.
2631 If the child closes a descriptor before it execs or exits,
2632 this munges the parent's descriptor as well.
2633 Test for this by closing stdout in the child. */
2634 _exit(close(fileno(stdout)) != 0);
2639 while (wait(&status) != child)
2642 /* Was there some problem with vforking? */
2645 /* Did the child fail? (This shouldn't happen.) */
2648 /* Did the vfork/compiler bug occur? */
2649 || parent != getpid()
2651 /* Did the file descriptor bug occur? */
2652 || fstat(fileno(stdout), &st) != 0
2657 if { (eval echo configure:2658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2659 ac_cv_func_vfork_works=yes
2661 echo "configure: failed program was:" >&5
2662 cat conftest.$ac_ext >&5
2664 ac_cv_func_vfork_works=no
2671 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2672 if test $ac_cv_func_vfork_works = no; then
2673 cat >> confdefs.h <<\EOF
2679 echo $ac_n "checking for mkstemp in -lmkstemp""... $ac_c" 1>&6
2680 echo "configure:2681: checking for mkstemp in -lmkstemp" >&5
2681 ac_lib_var=`echo mkstemp'_'mkstemp | sed 'y%./+-%__p_%'`
2682 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2683 echo $ac_n "(cached) $ac_c" 1>&6
2685 ac_save_LIBS="$LIBS"
2686 LIBS="-lmkstemp $LIBS"
2687 cat > conftest.$ac_ext <<EOF
2688 #line 2689 "configure"
2689 #include "confdefs.h"
2690 /* Override any gcc2 internal prototype to avoid an error. */
2691 /* We use char because int might match the return type of a gcc2
2692 builtin and then its argument prototype would still apply. */
2699 if { (eval echo configure:2700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2701 eval "ac_cv_lib_$ac_lib_var=yes"
2703 echo "configure: failed program was:" >&5
2704 cat conftest.$ac_ext >&5
2706 eval "ac_cv_lib_$ac_lib_var=no"
2709 LIBS="$ac_save_LIBS"
2712 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2713 echo "$ac_t""yes" 1>&6
2714 ac_tr_lib=HAVE_LIB`echo mkstemp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2715 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2716 cat >> confdefs.h <<EOF
2717 #define $ac_tr_lib 1
2720 LIBS="-lmkstemp $LIBS"
2723 echo "$ac_t""no" 1>&6
2726 for ac_func in waitpid wait3 sigaction sigprocmask sigblock sigsetmask \
2727 sighold sigrelse writev lstat uname tzset killpg mkstemp \
2730 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2731 echo "configure:2732: checking for $ac_func" >&5
2732 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2733 echo $ac_n "(cached) $ac_c" 1>&6
2735 cat > conftest.$ac_ext <<EOF
2736 #line 2737 "configure"
2737 #include "confdefs.h"
2738 /* System header to define __stub macros and hopefully few prototypes,
2739 which can conflict with char $ac_func(); below. */
2741 /* Override any gcc2 internal prototype to avoid an error. */
2742 /* We use char because int might match the return type of a gcc2
2743 builtin and then its argument prototype would still apply. */
2748 /* The GNU C library defines this for functions which it implements
2749 to always fail with ENOSYS. Some functions are actually named
2750 something starting with __ and the normal name is an alias. */
2751 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2759 if { (eval echo configure:2760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2761 eval "ac_cv_func_$ac_func=yes"
2763 echo "configure: failed program was:" >&5
2764 cat conftest.$ac_ext >&5
2766 eval "ac_cv_func_$ac_func=no"
2771 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2772 echo "$ac_t""yes" 1>&6
2773 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2774 cat >> confdefs.h <<EOF
2775 #define $ac_tr_func 1
2779 echo "$ac_t""no" 1>&6
2784 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2785 echo "configure:2786: checking for gethostbyname" >&5
2786 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2787 echo $ac_n "(cached) $ac_c" 1>&6
2789 cat > conftest.$ac_ext <<EOF
2790 #line 2791 "configure"
2791 #include "confdefs.h"
2792 /* System header to define __stub macros and hopefully few prototypes,
2793 which can conflict with char gethostbyname(); below. */
2795 /* Override any gcc2 internal prototype to avoid an error. */
2796 /* We use char because int might match the return type of a gcc2
2797 builtin and then its argument prototype would still apply. */
2798 char gethostbyname();
2802 /* The GNU C library defines this for functions which it implements
2803 to always fail with ENOSYS. Some functions are actually named
2804 something starting with __ and the normal name is an alias. */
2805 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2813 if { (eval echo configure:2814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2815 eval "ac_cv_func_gethostbyname=yes"
2817 echo "configure: failed program was:" >&5
2818 cat conftest.$ac_ext >&5
2820 eval "ac_cv_func_gethostbyname=no"
2825 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2826 echo "$ac_t""yes" 1>&6
2827 cat >> confdefs.h <<\EOF
2828 #define HAVE_GETHOSTBYNAME 1
2832 echo "$ac_t""no" 1>&6
2833 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2834 echo "configure:2835: checking for gethostbyname in -lnsl" >&5
2835 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2836 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2837 echo $ac_n "(cached) $ac_c" 1>&6
2839 ac_save_LIBS="$LIBS"
2841 cat > conftest.$ac_ext <<EOF
2842 #line 2843 "configure"
2843 #include "confdefs.h"
2844 /* Override any gcc2 internal prototype to avoid an error. */
2845 /* We use char because int might match the return type of a gcc2
2846 builtin and then its argument prototype would still apply. */
2847 char gethostbyname();
2853 if { (eval echo configure:2854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2855 eval "ac_cv_lib_$ac_lib_var=yes"
2857 echo "configure: failed program was:" >&5
2858 cat conftest.$ac_ext >&5
2860 eval "ac_cv_lib_$ac_lib_var=no"
2863 LIBS="$ac_save_LIBS"
2866 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2867 echo "$ac_t""yes" 1>&6
2868 cat >> confdefs.h <<\EOF
2869 #define HAVE_GETHOSTBYNAME 1
2873 echo "$ac_t""no" 1>&6
2879 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
2880 echo "configure:2881: checking for sigsetjmp" >&5
2881 cat > conftest.$ac_ext <<EOF
2882 #line 2883 "configure"
2883 #include "confdefs.h"
2886 sigsetjmp((void *)0, 0);
2889 if { (eval echo configure:2890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2891 cat >> confdefs.h <<\EOF
2892 #define HAVE_SIGSETJMP 1
2894 echo "$ac_t""yes" 1>&6
2896 echo "configure: failed program was:" >&5
2897 cat conftest.$ac_ext >&5
2899 echo "$ac_t""no" 1>&6
2903 for ac_func in snprintf strerror strdup
2905 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2906 echo "configure:2907: checking for $ac_func" >&5
2907 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2908 echo $ac_n "(cached) $ac_c" 1>&6
2910 cat > conftest.$ac_ext <<EOF
2911 #line 2912 "configure"
2912 #include "confdefs.h"
2913 /* System header to define __stub macros and hopefully few prototypes,
2914 which can conflict with char $ac_func(); below. */
2916 /* Override any gcc2 internal prototype to avoid an error. */
2917 /* We use char because int might match the return type of a gcc2
2918 builtin and then its argument prototype would still apply. */
2923 /* The GNU C library defines this for functions which it implements
2924 to always fail with ENOSYS. Some functions are actually named
2925 something starting with __ and the normal name is an alias. */
2926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2934 if { (eval echo configure:2935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2936 eval "ac_cv_func_$ac_func=yes"
2938 echo "configure: failed program was:" >&5
2939 cat conftest.$ac_ext >&5
2941 eval "ac_cv_func_$ac_func=no"
2946 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2947 echo "$ac_t""yes" 1>&6
2948 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2949 cat >> confdefs.h <<EOF
2950 #define $ac_tr_func 1
2954 echo "$ac_t""no" 1>&6
2955 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
2961 cat > conftest.$ac_ext <<EOF
2962 #line 2963 "configure"
2963 #include "confdefs.h"
2966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2967 egrep "initgroups" >/dev/null 2>&1; then
2969 cat >> confdefs.h <<\EOF
2970 #define INITGROUPS_HEADER <grp.h>
2975 cat > conftest.$ac_ext <<EOF
2976 #line 2977 "configure"
2977 #include "confdefs.h"
2980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2981 egrep "initgroups" >/dev/null 2>&1; then
2983 cat >> confdefs.h <<\EOF
2984 #define INITGROUPS_HEADER <unistd.h>
2994 cat > conftest.$ac_ext <<EOF
2995 #line 2996 "configure"
2996 #include "confdefs.h"
2999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3000 egrep "snprintf" >/dev/null 2>&1; then
3002 cat >> confdefs.h <<\EOF
3003 #define HAVE_SNPRINTF_PROTOTYPE 1
3010 echo $ac_n "checking for modf""... $ac_c" 1>&6
3011 echo "configure:3012: checking for modf" >&5
3012 if eval "test \"`echo '$''{'ac_cv_func_modf'+set}'`\" = set"; then
3013 echo $ac_n "(cached) $ac_c" 1>&6
3015 cat > conftest.$ac_ext <<EOF
3016 #line 3017 "configure"
3017 #include "confdefs.h"
3018 /* System header to define __stub macros and hopefully few prototypes,
3019 which can conflict with char modf(); below. */
3021 /* Override any gcc2 internal prototype to avoid an error. */
3022 /* We use char because int might match the return type of a gcc2
3023 builtin and then its argument prototype would still apply. */
3028 /* The GNU C library defines this for functions which it implements
3029 to always fail with ENOSYS. Some functions are actually named
3030 something starting with __ and the normal name is an alias. */
3031 #if defined (__stub_modf) || defined (__stub___modf)
3039 if { (eval echo configure:3040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3041 eval "ac_cv_func_modf=yes"
3043 echo "configure: failed program was:" >&5
3044 cat conftest.$ac_ext >&5
3046 eval "ac_cv_func_modf=no"
3051 if eval "test \"`echo '$ac_cv_func_'modf`\" = yes"; then
3052 echo "$ac_t""yes" 1>&6
3055 echo "$ac_t""no" 1>&6
3056 echo $ac_n "checking for modf in -lm""... $ac_c" 1>&6
3057 echo "configure:3058: checking for modf in -lm" >&5
3058 ac_lib_var=`echo m'_'modf | sed 'y%./+-%__p_%'`
3059 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3060 echo $ac_n "(cached) $ac_c" 1>&6
3062 ac_save_LIBS="$LIBS"
3064 cat > conftest.$ac_ext <<EOF
3065 #line 3066 "configure"
3066 #include "confdefs.h"
3067 /* Override any gcc2 internal prototype to avoid an error. */
3068 /* We use char because int might match the return type of a gcc2
3069 builtin and then its argument prototype would still apply. */
3076 if { (eval echo configure:3077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3078 eval "ac_cv_lib_$ac_lib_var=yes"
3080 echo "configure: failed program was:" >&5
3081 cat conftest.$ac_ext >&5
3083 eval "ac_cv_lib_$ac_lib_var=no"
3086 LIBS="$ac_save_LIBS"
3089 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3090 echo "$ac_t""yes" 1>&6
3091 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
3092 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3093 cat >> confdefs.h <<EOF
3094 #define $ac_tr_lib 1
3100 echo "$ac_t""no" 1>&6
3106 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3107 echo "configure:3108: checking for gethostbyname" >&5
3108 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3109 echo $ac_n "(cached) $ac_c" 1>&6
3111 cat > conftest.$ac_ext <<EOF
3112 #line 3113 "configure"
3113 #include "confdefs.h"
3114 /* System header to define __stub macros and hopefully few prototypes,
3115 which can conflict with char gethostbyname(); below. */
3117 /* Override any gcc2 internal prototype to avoid an error. */
3118 /* We use char because int might match the return type of a gcc2
3119 builtin and then its argument prototype would still apply. */
3120 char gethostbyname();
3124 /* The GNU C library defines this for functions which it implements
3125 to always fail with ENOSYS. Some functions are actually named
3126 something starting with __ and the normal name is an alias. */
3127 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3135 if { (eval echo configure:3136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3137 eval "ac_cv_func_gethostbyname=yes"
3139 echo "configure: failed program was:" >&5
3140 cat conftest.$ac_ext >&5
3142 eval "ac_cv_func_gethostbyname=no"
3147 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3148 echo "$ac_t""yes" 1>&6
3151 echo "$ac_t""no" 1>&6
3152 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3153 echo "configure:3154: checking for gethostbyname in -lnsl" >&5
3154 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3155 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3156 echo $ac_n "(cached) $ac_c" 1>&6
3158 ac_save_LIBS="$LIBS"
3160 cat > conftest.$ac_ext <<EOF
3161 #line 3162 "configure"
3162 #include "confdefs.h"
3163 /* Override any gcc2 internal prototype to avoid an error. */
3164 /* We use char because int might match the return type of a gcc2
3165 builtin and then its argument prototype would still apply. */
3166 char gethostbyname();
3172 if { (eval echo configure:3173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3174 eval "ac_cv_lib_$ac_lib_var=yes"
3176 echo "configure: failed program was:" >&5
3177 cat conftest.$ac_ext >&5
3179 eval "ac_cv_lib_$ac_lib_var=no"
3182 LIBS="$ac_save_LIBS"
3185 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3186 echo "$ac_t""yes" 1>&6
3187 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
3188 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3189 cat >> confdefs.h <<EOF
3190 #define $ac_tr_lib 1
3196 echo "$ac_t""no" 1>&6
3197 echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6
3198 echo "configure:3199: checking for gethostbyname in -lresolv" >&5
3199 ac_lib_var=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'`
3200 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3201 echo $ac_n "(cached) $ac_c" 1>&6
3203 ac_save_LIBS="$LIBS"
3204 LIBS="-lresolv $LIBS"
3205 cat > conftest.$ac_ext <<EOF
3206 #line 3207 "configure"
3207 #include "confdefs.h"
3208 /* Override any gcc2 internal prototype to avoid an error. */
3209 /* We use char because int might match the return type of a gcc2
3210 builtin and then its argument prototype would still apply. */
3211 char gethostbyname();
3217 if { (eval echo configure:3218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3219 eval "ac_cv_lib_$ac_lib_var=yes"
3221 echo "configure: failed program was:" >&5
3222 cat conftest.$ac_ext >&5
3224 eval "ac_cv_lib_$ac_lib_var=no"
3227 LIBS="$ac_save_LIBS"
3230 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3231 echo "$ac_t""yes" 1>&6
3232 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
3233 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3234 cat >> confdefs.h <<EOF
3235 #define $ac_tr_lib 1
3238 LIBS="-lresolv $LIBS"
3241 echo "$ac_t""no" 1>&6
3248 echo $ac_n "checking for socket""... $ac_c" 1>&6
3249 echo "configure:3250: checking for socket" >&5
3250 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
3251 echo $ac_n "(cached) $ac_c" 1>&6
3253 cat > conftest.$ac_ext <<EOF
3254 #line 3255 "configure"
3255 #include "confdefs.h"
3256 /* System header to define __stub macros and hopefully few prototypes,
3257 which can conflict with char socket(); below. */
3259 /* Override any gcc2 internal prototype to avoid an error. */
3260 /* We use char because int might match the return type of a gcc2
3261 builtin and then its argument prototype would still apply. */
3266 /* The GNU C library defines this for functions which it implements
3267 to always fail with ENOSYS. Some functions are actually named
3268 something starting with __ and the normal name is an alias. */
3269 #if defined (__stub_socket) || defined (__stub___socket)
3277 if { (eval echo configure:3278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3279 eval "ac_cv_func_socket=yes"
3281 echo "configure: failed program was:" >&5
3282 cat conftest.$ac_ext >&5
3284 eval "ac_cv_func_socket=no"
3289 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
3290 echo "$ac_t""yes" 1>&6
3293 echo "$ac_t""no" 1>&6
3294 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
3295 echo "configure:3296: checking for socket in -lsocket" >&5
3296 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
3297 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3298 echo $ac_n "(cached) $ac_c" 1>&6
3300 ac_save_LIBS="$LIBS"
3301 LIBS="-lsocket $LIBS"
3302 cat > conftest.$ac_ext <<EOF
3303 #line 3304 "configure"
3304 #include "confdefs.h"
3305 /* Override any gcc2 internal prototype to avoid an error. */
3306 /* We use char because int might match the return type of a gcc2
3307 builtin and then its argument prototype would still apply. */
3314 if { (eval echo configure:3315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3316 eval "ac_cv_lib_$ac_lib_var=yes"
3318 echo "configure: failed program was:" >&5
3319 cat conftest.$ac_ext >&5
3321 eval "ac_cv_lib_$ac_lib_var=no"
3324 LIBS="$ac_save_LIBS"
3327 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3328 echo "$ac_t""yes" 1>&6
3329 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
3330 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3331 cat >> confdefs.h <<EOF
3332 #define $ac_tr_lib 1
3335 LIBS="-lsocket $LIBS"
3338 echo "$ac_t""no" 1>&6
3345 termcap_curses_order="termcap curses ncurses"
3346 for lib in $termcap_curses_order; do
3347 echo $ac_n "checking for tgetent in -l${lib}""... $ac_c" 1>&6
3348 echo "configure:3349: checking for tgetent in -l${lib}" >&5
3349 ac_lib_var=`echo ${lib}'_'tgetent | sed 'y%./+-%__p_%'`
3350 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3351 echo $ac_n "(cached) $ac_c" 1>&6
3353 ac_save_LIBS="$LIBS"
3354 LIBS="-l${lib} $LIBS"
3355 cat > conftest.$ac_ext <<EOF
3356 #line 3357 "configure"
3357 #include "confdefs.h"
3358 /* Override any gcc2 internal prototype to avoid an error. */
3359 /* We use char because int might match the return type of a gcc2
3360 builtin and then its argument prototype would still apply. */
3367 if { (eval echo configure:3368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3369 eval "ac_cv_lib_$ac_lib_var=yes"
3371 echo "configure: failed program was:" >&5
3372 cat conftest.$ac_ext >&5
3374 eval "ac_cv_lib_$ac_lib_var=no"
3377 LIBS="$ac_save_LIBS"
3380 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3381 echo "$ac_t""yes" 1>&6
3382 TERMLIB="-l$lib"; break
3384 echo "$ac_t""no" 1>&6
3390 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
3391 echo "configure:3392: checking for dbm_open" >&5
3392 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
3393 echo $ac_n "(cached) $ac_c" 1>&6
3395 cat > conftest.$ac_ext <<EOF
3396 #line 3397 "configure"
3397 #include "confdefs.h"
3398 /* System header to define __stub macros and hopefully few prototypes,
3399 which can conflict with char dbm_open(); below. */
3401 /* Override any gcc2 internal prototype to avoid an error. */
3402 /* We use char because int might match the return type of a gcc2
3403 builtin and then its argument prototype would still apply. */
3408 /* The GNU C library defines this for functions which it implements
3409 to always fail with ENOSYS. Some functions are actually named
3410 something starting with __ and the normal name is an alias. */
3411 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
3419 if { (eval echo configure:3420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3421 eval "ac_cv_func_dbm_open=yes"
3423 echo "configure: failed program was:" >&5
3424 cat conftest.$ac_ext >&5
3426 eval "ac_cv_func_dbm_open=no"
3431 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
3432 echo "$ac_t""yes" 1>&6
3435 echo "$ac_t""no" 1>&6
3436 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
3437 echo "configure:3438: checking for dbm_open in -lndbm" >&5
3438 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
3439 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3440 echo $ac_n "(cached) $ac_c" 1>&6
3442 ac_save_LIBS="$LIBS"
3444 cat > conftest.$ac_ext <<EOF
3445 #line 3446 "configure"
3446 #include "confdefs.h"
3447 /* Override any gcc2 internal prototype to avoid an error. */
3448 /* We use char because int might match the return type of a gcc2
3449 builtin and then its argument prototype would still apply. */
3456 if { (eval echo configure:3457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3458 eval "ac_cv_lib_$ac_lib_var=yes"
3460 echo "configure: failed program was:" >&5
3461 cat conftest.$ac_ext >&5
3463 eval "ac_cv_lib_$ac_lib_var=no"
3466 LIBS="$ac_save_LIBS"
3469 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3470 echo "$ac_t""yes" 1>&6
3471 ac_tr_lib=HAVE_LIB`echo ndbm | sed -e 's/^a-zA-Z0-9_/_/g' \
3472 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3473 cat >> confdefs.h <<EOF
3474 #define $ac_tr_lib 1
3480 echo "$ac_t""no" 1>&6
3481 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
3482 echo "configure:3483: checking for dbm_open in -ldbm" >&5
3483 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
3484 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3485 echo $ac_n "(cached) $ac_c" 1>&6
3487 ac_save_LIBS="$LIBS"
3489 cat > conftest.$ac_ext <<EOF
3490 #line 3491 "configure"
3491 #include "confdefs.h"
3492 /* Override any gcc2 internal prototype to avoid an error. */
3493 /* We use char because int might match the return type of a gcc2
3494 builtin and then its argument prototype would still apply. */
3501 if { (eval echo configure:3502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3503 eval "ac_cv_lib_$ac_lib_var=yes"
3505 echo "configure: failed program was:" >&5
3506 cat conftest.$ac_ext >&5
3508 eval "ac_cv_lib_$ac_lib_var=no"
3511 LIBS="$ac_save_LIBS"
3514 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3515 echo "$ac_t""yes" 1>&6
3516 ac_tr_lib=HAVE_LIB`echo dbm | sed -e 's/^a-zA-Z0-9_/_/g' \
3517 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3518 cat >> confdefs.h <<EOF
3519 #define $ac_tr_lib 1
3525 echo "$ac_t""no" 1>&6
3533 for ac_hdr in db1/ndbm.h
3535 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3536 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3537 echo "configure:3538: checking for $ac_hdr" >&5
3538 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3539 echo $ac_n "(cached) $ac_c" 1>&6
3541 cat > conftest.$ac_ext <<EOF
3542 #line 3543 "configure"
3543 #include "confdefs.h"
3546 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3547 { (eval echo configure:3548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3548 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3549 if test -z "$ac_err"; then
3551 eval "ac_cv_header_$ac_safe=yes"
3554 echo "configure: failed program was:" >&5
3555 cat conftest.$ac_ext >&5
3557 eval "ac_cv_header_$ac_safe=no"
3561 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3562 echo "$ac_t""yes" 1>&6
3563 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3564 cat >> confdefs.h <<EOF
3565 #define $ac_tr_hdr 1
3569 echo "$ac_t""no" 1>&6
3574 if test x"$with_hesiod" != x -a x"$with_hesiod" != x"no"; then
3575 if test x"$with_hesiod" != x"yes"; then
3576 HESIOD_INCLUDES="-I$with_hesiod/include"
3577 HESIOD_LIBS="-L$with_hesiod/lib"
3579 echo $ac_n "checking for res_send""... $ac_c" 1>&6
3580 echo "configure:3581: checking for res_send" >&5
3581 if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then
3582 echo $ac_n "(cached) $ac_c" 1>&6
3584 cat > conftest.$ac_ext <<EOF
3585 #line 3586 "configure"
3586 #include "confdefs.h"
3587 /* System header to define __stub macros and hopefully few prototypes,
3588 which can conflict with char res_send(); below. */
3590 /* Override any gcc2 internal prototype to avoid an error. */
3591 /* We use char because int might match the return type of a gcc2
3592 builtin and then its argument prototype would still apply. */
3597 /* The GNU C library defines this for functions which it implements
3598 to always fail with ENOSYS. Some functions are actually named
3599 something starting with __ and the normal name is an alias. */
3600 #if defined (__stub_res_send) || defined (__stub___res_send)
3608 if { (eval echo configure:3609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3610 eval "ac_cv_func_res_send=yes"
3612 echo "configure: failed program was:" >&5
3613 cat conftest.$ac_ext >&5
3615 eval "ac_cv_func_res_send=no"
3620 if eval "test \"`echo '$ac_cv_func_'res_send`\" = yes"; then
3621 echo "$ac_t""yes" 1>&6
3624 echo "$ac_t""no" 1>&6
3625 echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6
3626 echo "configure:3627: checking for res_send in -lresolv" >&5
3627 ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'`
3628 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3629 echo $ac_n "(cached) $ac_c" 1>&6
3631 ac_save_LIBS="$LIBS"
3632 LIBS="-lresolv $LIBS"
3633 cat > conftest.$ac_ext <<EOF
3634 #line 3635 "configure"
3635 #include "confdefs.h"
3636 /* Override any gcc2 internal prototype to avoid an error. */
3637 /* We use char because int might match the return type of a gcc2
3638 builtin and then its argument prototype would still apply. */
3645 if { (eval echo configure:3646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3647 eval "ac_cv_lib_$ac_lib_var=yes"
3649 echo "configure: failed program was:" >&5
3650 cat conftest.$ac_ext >&5
3652 eval "ac_cv_lib_$ac_lib_var=no"
3655 LIBS="$ac_save_LIBS"
3658 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3659 echo "$ac_t""yes" 1>&6
3660 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
3661 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3662 cat >> confdefs.h <<EOF
3663 #define $ac_tr_lib 1
3666 LIBS="-lresolv $LIBS"
3669 echo "$ac_t""no" 1>&6
3674 echo $ac_n "checking for hes_resolve in -lhesiod""... $ac_c" 1>&6
3675 echo "configure:3676: checking for hes_resolve in -lhesiod" >&5
3676 ac_lib_var=`echo hesiod'_'hes_resolve | sed 'y%./+-%__p_%'`
3677 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3678 echo $ac_n "(cached) $ac_c" 1>&6
3680 ac_save_LIBS="$LIBS"
3681 LIBS="-lhesiod $HESIOD_LIBS $LIBS"
3682 cat > conftest.$ac_ext <<EOF
3683 #line 3684 "configure"
3684 #include "confdefs.h"
3685 /* Override any gcc2 internal prototype to avoid an error. */
3686 /* We use char because int might match the return type of a gcc2
3687 builtin and then its argument prototype would still apply. */
3694 if { (eval echo configure:3695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3696 eval "ac_cv_lib_$ac_lib_var=yes"
3698 echo "configure: failed program was:" >&5
3699 cat conftest.$ac_ext >&5
3701 eval "ac_cv_lib_$ac_lib_var=no"
3704 LIBS="$ac_save_LIBS"
3707 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3708 echo "$ac_t""yes" 1>&6
3709 HESIOD_LIBS="$HESIOD_LIBS -lhesiod"
3711 echo "$ac_t""no" 1>&6
3712 { echo "configure: error: Hesiod library not found" 1>&2; exit 1; }
3717 if test x"$with_krb4" != x -a x"$with_krb4" != x"no"; then
3718 if test x"$with_krb4" != x"yes"; then
3719 KRB4_INCLUDES="-I$with_krb4/include"
3720 if test -d "$with_krb4/include/kerberosIV"; then
3721 KRB4_INCLUDES="$KRB4_INCLUDES -I$with_krb4/include/kerberosIV"
3723 KRB4_LIBS="-L$with_krb4/lib"
3724 elif test -d /usr/include/kerberosIV; then
3725 KRB4_INCLUDES="-I/usr/include/kerberosIV"
3727 echo $ac_n "checking for krb_rd_req in -lkrb4""... $ac_c" 1>&6
3728 echo "configure:3729: checking for krb_rd_req in -lkrb4" >&5
3729 ac_lib_var=`echo krb4'_'krb_rd_req | sed 'y%./+-%__p_%'`
3730 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3731 echo $ac_n "(cached) $ac_c" 1>&6
3733 ac_save_LIBS="$LIBS"
3734 LIBS="-lkrb4 $KRB4_LIBS -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
3735 cat > conftest.$ac_ext <<EOF
3736 #line 3737 "configure"
3737 #include "confdefs.h"
3738 /* Override any gcc2 internal prototype to avoid an error. */
3739 /* We use char because int might match the return type of a gcc2
3740 builtin and then its argument prototype would still apply. */
3747 if { (eval echo configure:3748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3749 eval "ac_cv_lib_$ac_lib_var=yes"
3751 echo "configure: failed program was:" >&5
3752 cat conftest.$ac_ext >&5
3754 eval "ac_cv_lib_$ac_lib_var=no"
3757 LIBS="$ac_save_LIBS"
3760 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3761 echo "$ac_t""yes" 1>&6
3762 KRB4_LIBS="$KRB4_LIBS -lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err"
3764 echo "$ac_t""no" 1>&6
3765 echo $ac_n "checking for krb_rd_req in -lkrb""... $ac_c" 1>&6
3766 echo "configure:3767: checking for krb_rd_req in -lkrb" >&5
3767 ac_lib_var=`echo krb'_'krb_rd_req | sed 'y%./+-%__p_%'`
3768 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3769 echo $ac_n "(cached) $ac_c" 1>&6
3771 ac_save_LIBS="$LIBS"
3772 LIBS="-lkrb $KRB4_LIBS -ldes $LIBS"
3773 cat > conftest.$ac_ext <<EOF
3774 #line 3775 "configure"
3775 #include "confdefs.h"
3776 /* Override any gcc2 internal prototype to avoid an error. */
3777 /* We use char because int might match the return type of a gcc2
3778 builtin and then its argument prototype would still apply. */
3785 if { (eval echo configure:3786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3787 eval "ac_cv_lib_$ac_lib_var=yes"
3789 echo "configure: failed program was:" >&5
3790 cat conftest.$ac_ext >&5
3792 eval "ac_cv_lib_$ac_lib_var=no"
3795 LIBS="$ac_save_LIBS"
3798 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3799 echo "$ac_t""yes" 1>&6
3800 KRB4_LIBS="$KRB4_LIBS -lkrb -ldes"
3802 echo "$ac_t""no" 1>&6
3803 { echo "configure: error: Kerberos 4 libraries not found" 1>&2; exit 1; }
3811 nmh_save_LIBS="$LIBS"
3812 LIBS="$TERMLIB $LIBS"
3814 echo $ac_n "checking if an include file defines ospeed""... $ac_c" 1>&6
3815 echo "configure:3816: checking if an include file defines ospeed" >&5
3816 if eval "test \"`echo '$''{'nmh_cv_decl_ospeed_include_defines'+set}'`\" = set"; then
3817 echo $ac_n "(cached) $ac_c" 1>&6
3819 cat > conftest.$ac_ext <<EOF
3820 #line 3821 "configure"
3821 #include "confdefs.h"
3822 #include <sys/types.h>
3824 #include <termios.h>
3827 #include <termcap.h>
3833 if { (eval echo configure:3834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3835 nmh_cv_decl_ospeed_include_defines=yes
3837 echo "configure: failed program was:" >&5
3838 cat conftest.$ac_ext >&5
3840 nmh_cv_decl_ospeed_include_defines=no
3845 echo "$ac_t""$nmh_cv_decl_ospeed_include_defines" 1>&6
3847 if test $nmh_cv_decl_ospeed_include_defines = no; then
3848 echo $ac_n "checking if you must define ospeed""... $ac_c" 1>&6
3849 echo "configure:3850: checking if you must define ospeed" >&5
3850 if eval "test \"`echo '$''{'nmh_cv_decl_ospeed_must_define'+set}'`\" = set"; then
3851 echo $ac_n "(cached) $ac_c" 1>&6
3853 cat > conftest.$ac_ext <<EOF
3854 #line 3855 "configure"
3855 #include "confdefs.h"
3858 extern short ospeed; ospeed = 0;
3861 if { (eval echo configure:3862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3863 nmh_cv_decl_ospeed_must_define=yes
3865 echo "configure: failed program was:" >&5
3866 cat conftest.$ac_ext >&5
3868 nmh_cv_decl_ospeed_must_define=no
3873 echo "$ac_t""$nmh_cv_decl_ospeed_must_define" 1>&6
3876 if test $nmh_cv_decl_ospeed_include_defines = yes; then
3877 cat >> confdefs.h <<\EOF
3878 #define HAVE_OSPEED 1
3881 elif test $nmh_cv_decl_ospeed_must_define = yes; then
3882 cat >> confdefs.h <<\EOF
3883 #define HAVE_OSPEED 1
3886 cat >> confdefs.h <<\EOF
3887 #define MUST_DEFINE_OSPEED 1
3893 LIBS="$nmh_save_LIBS"
3895 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3896 echo "configure:3897: checking return type of signal handlers" >&5
3897 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3898 echo $ac_n "(cached) $ac_c" 1>&6
3900 cat > conftest.$ac_ext <<EOF
3901 #line 3902 "configure"
3902 #include "confdefs.h"
3903 #include <sys/types.h>
3909 extern "C" void (*signal (int, void (*)(int)))(int);
3911 void (*signal ()) ();
3918 if { (eval echo configure:3919: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3920 ac_cv_type_signal=void
3922 echo "configure: failed program was:" >&5
3923 cat conftest.$ac_ext >&5
3925 ac_cv_type_signal=int
3930 echo "$ac_t""$ac_cv_type_signal" 1>&6
3931 cat >> confdefs.h <<EOF
3932 #define RETSIGTYPE $ac_cv_type_signal
3936 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3937 echo "configure:3938: checking for pid_t" >&5
3938 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+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>
3950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3951 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3953 ac_cv_type_pid_t=yes
3961 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3962 if test $ac_cv_type_pid_t = no; then
3963 cat >> confdefs.h <<\EOF
3969 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3970 echo "configure:3971: checking for off_t" >&5
3971 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3972 echo $ac_n "(cached) $ac_c" 1>&6
3974 cat > conftest.$ac_ext <<EOF
3975 #line 3976 "configure"
3976 #include "confdefs.h"
3977 #include <sys/types.h>
3983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3984 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3986 ac_cv_type_off_t=yes
3994 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3995 if test $ac_cv_type_off_t = no; then
3996 cat >> confdefs.h <<\EOF
4002 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
4003 echo "configure:4004: checking for uid_t in sys/types.h" >&5
4004 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
4005 echo $ac_n "(cached) $ac_c" 1>&6
4007 cat > conftest.$ac_ext <<EOF
4008 #line 4009 "configure"
4009 #include "confdefs.h"
4010 #include <sys/types.h>
4012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4013 egrep "uid_t" >/dev/null 2>&1; then
4015 ac_cv_type_uid_t=yes
4024 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
4025 if test $ac_cv_type_uid_t = no; then
4026 cat >> confdefs.h <<\EOF
4030 cat >> confdefs.h <<\EOF
4036 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
4037 echo "configure:4038: checking for mode_t" >&5
4038 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
4039 echo $ac_n "(cached) $ac_c" 1>&6
4041 cat > conftest.$ac_ext <<EOF
4042 #line 4043 "configure"
4043 #include "confdefs.h"
4044 #include <sys/types.h>
4050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4051 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4053 ac_cv_type_mode_t=yes
4056 ac_cv_type_mode_t=no
4061 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
4062 if test $ac_cv_type_mode_t = no; then
4063 cat >> confdefs.h <<\EOF
4069 echo $ac_n "checking for size_t""... $ac_c" 1>&6
4070 echo "configure:4071: checking for size_t" >&5
4071 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
4072 echo $ac_n "(cached) $ac_c" 1>&6
4074 cat > conftest.$ac_ext <<EOF
4075 #line 4076 "configure"
4076 #include "confdefs.h"
4077 #include <sys/types.h>
4083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4084 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4086 ac_cv_type_size_t=yes
4089 ac_cv_type_size_t=no
4094 echo "$ac_t""$ac_cv_type_size_t" 1>&6
4095 if test $ac_cv_type_size_t = no; then
4096 cat >> confdefs.h <<\EOF
4097 #define size_t unsigned
4103 echo $ac_n "checking for sigset_t""... $ac_c" 1>&6
4104 echo "configure:4105: checking for sigset_t" >&5
4105 if eval "test \"`echo '$''{'nmh_cv_type_sigset_t'+set}'`\" = set"; then
4106 echo $ac_n "(cached) $ac_c" 1>&6
4108 cat > conftest.$ac_ext <<EOF
4109 #line 4110 "configure"
4110 #include "confdefs.h"
4111 #include <sys/types.h>
4114 sigset_t tempsigset;
4117 if { (eval echo configure:4118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4119 nmh_cv_type_sigset_t=yes
4121 echo "configure: failed program was:" >&5
4122 cat conftest.$ac_ext >&5
4124 nmh_cv_type_sigset_t=no
4129 echo "$ac_t""$nmh_cv_type_sigset_t" 1>&6
4130 if test $nmh_cv_type_sigset_t = no; then
4131 cat >> confdefs.h <<\EOF
4132 #define sigset_t unsigned int
4137 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
4138 echo "configure:4139: checking for st_blksize in struct stat" >&5
4139 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
4140 echo $ac_n "(cached) $ac_c" 1>&6
4142 cat > conftest.$ac_ext <<EOF
4143 #line 4144 "configure"
4144 #include "confdefs.h"
4145 #include <sys/types.h>
4146 #include <sys/stat.h>
4148 struct stat s; s.st_blksize;
4151 if { (eval echo configure:4152: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4153 ac_cv_struct_st_blksize=yes
4155 echo "configure: failed program was:" >&5
4156 cat conftest.$ac_ext >&5
4158 ac_cv_struct_st_blksize=no
4163 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
4164 if test $ac_cv_struct_st_blksize = yes; then
4165 cat >> confdefs.h <<\EOF
4166 #define HAVE_ST_BLKSIZE 1
4172 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
4173 echo "configure:4174: checking for tm_gmtoff in struct tm" >&5
4174 if eval "test \"`echo '$''{'nmh_cv_struct_tm_gmtoff'+set}'`\" = set"; then
4175 echo $ac_n "(cached) $ac_c" 1>&6
4177 cat > conftest.$ac_ext <<EOF
4178 #line 4179 "configure"
4179 #include "confdefs.h"
4180 #ifdef TIME_WITH_SYS_TIME
4181 # include <sys/time.h>
4184 # ifdef TM_IN_SYS_TIME
4185 # include <sys/time.h>
4191 struct tm temptm; temptm.tm_gmtoff = 0;
4194 if { (eval echo configure:4195: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4196 nmh_cv_struct_tm_gmtoff=yes
4198 echo "configure: failed program was:" >&5
4199 cat conftest.$ac_ext >&5
4201 nmh_cv_struct_tm_gmtoff=no
4206 echo "$ac_t""$nmh_cv_struct_tm_gmtoff" 1>&6
4207 if test $nmh_cv_struct_tm_gmtoff = yes; then
4208 cat >> confdefs.h <<\EOF
4209 #define HAVE_TM_GMTOFF 1
4214 echo $ac_n "checking what style of signals to use""... $ac_c" 1>&6
4215 echo "configure:4216: checking what style of signals to use" >&5
4216 if test $ac_cv_func_sigaction = yes -a $ac_cv_func_sigprocmask = yes; then
4217 signals_style=POSIX_SIGNALS
4218 cat >> confdefs.h <<\EOF
4219 #define POSIX_SIGNALS 1
4222 cat >> confdefs.h <<\EOF
4223 #define RELIABLE_SIGNALS 1
4226 elif test $ac_cv_func_sigblock = yes -a $ac_cv_func_sigsetmask = yes; then
4227 signals_style=BSD_SIGNALS
4228 cat >> confdefs.h <<\EOF
4229 #define BSD_SIGNALS 1
4232 cat >> confdefs.h <<\EOF
4233 #define RELIABLE_SIGNALS 1
4236 elif test $ac_cv_func_sighold = yes -a $ac_cv_func_sigrelse = yes; then
4237 signals_style=SYSV_SIGNALS
4238 cat >> confdefs.h <<\EOF
4239 #define SYSV_SIGNALS 1
4243 signals_style=NO_SIGNAL_BLOCKING
4244 cat >> confdefs.h <<\EOF
4245 #define NO_SIGNAL_BLOCKING 1
4250 echo "$ac_t""$signals_style" 1>&6
4252 echo $ac_n "checking where signal.h is located""... $ac_c" 1>&6
4253 echo "configure:4254: checking where signal.h is located" >&5
4254 if eval "test \"`echo '$''{'nmh_cv_path_signal_h'+set}'`\" = set"; then
4255 echo $ac_n "(cached) $ac_c" 1>&6
4257 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
4258 test -f $SIGNAL_H && \
4259 grep '#[ ]*define[ ][ ]*SIG[0-9A-Z]*[ ]*[0-9][0-9]*' $SIGNAL_H > /dev/null && \
4262 nmh_cv_path_signal_h=$SIGNAL_H
4266 echo "$ac_t""$nmh_cv_path_signal_h" 1>&6
4267 SIGNAL_H=$nmh_cv_path_signal_h
4269 case "$target_os" in
4272 cat >> confdefs.h <<\EOF
4276 cat >> confdefs.h <<\EOF
4282 cat >> confdefs.h <<\EOF
4286 cat >> confdefs.h <<\EOF
4292 cat >> confdefs.h <<\EOF
4296 cat >> confdefs.h <<\EOF
4302 cat >> confdefs.h <<\EOF
4306 cat >> confdefs.h <<\EOF
4312 cat >> confdefs.h <<\EOF
4318 cat >> confdefs.h <<\EOF
4322 cat >> confdefs.h <<\EOF
4328 cat >> confdefs.h <<\EOF
4332 cat >> confdefs.h <<\EOF
4338 cat >> confdefs.h <<\EOF
4342 cat >> confdefs.h <<\EOF
4348 cat >> confdefs.h <<\EOF
4352 cat >> confdefs.h <<\EOF
4358 cat >> confdefs.h <<\EOF
4362 cat >> confdefs.h <<\EOF
4363 #define SCO_5_STDIO 1
4371 cat > confcache <<\EOF
4372 # This file is a shell script that caches the results of configure
4373 # tests run on this system so they can be shared between configure
4374 # scripts and configure runs. It is not useful on other systems.
4375 # If it contains results you don't want to keep, you may remove or edit it.
4377 # By default, configure uses ./config.cache as the cache file,
4378 # creating it if it does not exist already. You can give configure
4379 # the --cache-file=FILE option to use a different cache file; that is
4380 # what configure does when it calls configure scripts in
4381 # subdirectories, so they share the cache.
4382 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4383 # config.status only pays attention to the cache file if you give it the
4384 # --recheck option to rerun configure.
4387 # The following way of writing the cache mishandles newlines in values,
4388 # but we know of no workaround that is simple, portable, and efficient.
4389 # So, don't put newlines in cache variables' values.
4390 # Ultrix sh set writes to stderr and can't be redirected directly,
4391 # and sets the high bit in the cache file unless we assign to the vars.
4393 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4395 # `set' does not quote correctly, so add quotes (double-quote substitution
4396 # turns \\\\ into \\, and sed turns \\ into \).
4398 -e "s/'/'\\\\''/g" \
4399 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4402 # `set' quotes correctly as required by POSIX, so do not add quotes.
4403 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4406 if cmp -s $cache_file confcache; then
4409 if test -w $cache_file; then
4410 echo "updating cache $cache_file"
4411 cat confcache > $cache_file
4413 echo "not updating unwritable cache $cache_file"
4418 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4420 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4421 # Let make expand exec_prefix.
4422 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4424 # Any assignment to VPATH causes Sun make to only execute
4425 # the first set of double-colon rules, so remove it if not needed.
4426 # If there is a colon in the path, we need to keep it.
4427 if test "x$srcdir" = x.; then
4428 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4431 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4433 DEFS=-DHAVE_CONFIG_H
4435 # Without the "./", some shells look in PATH for config.status.
4436 : ${CONFIG_STATUS=./config.status}
4438 echo creating $CONFIG_STATUS
4439 rm -f $CONFIG_STATUS
4440 cat > $CONFIG_STATUS <<EOF
4442 # Generated automatically by configure.
4443 # Run this file to recreate the current configuration.
4444 # This directory was configured as follows,
4445 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4447 # $0 $ac_configure_args
4449 # Compiler output produced by configure, useful for debugging
4450 # configure, is in ./config.log if it exists.
4452 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4455 case "\$ac_option" in
4456 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4457 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4458 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4459 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4460 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4462 -help | --help | --hel | --he | --h)
4463 echo "\$ac_cs_usage"; exit 0 ;;
4464 *) echo "\$ac_cs_usage"; exit 1 ;;
4468 ac_given_srcdir=$srcdir
4469 ac_given_INSTALL="$INSTALL"
4471 trap 'rm -fr `echo "Makefile config/Makefile h/Makefile sbr/Makefile uip/Makefile \
4472 zotnet/Makefile zotnet/mts/Makefile \
4473 mts/Makefile mts/smtp/Makefile \
4474 mts/sendmail/Makefile mts/mmdf/Makefile etc/Makefile \
4475 docs/Makefile man/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4477 cat >> $CONFIG_STATUS <<EOF
4479 # Protect against being on the right side of a sed subst in config.status.
4480 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4481 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4485 s%@CFLAGS@%$CFLAGS%g
4486 s%@CPPFLAGS@%$CPPFLAGS%g
4487 s%@CXXFLAGS@%$CXXFLAGS%g
4488 s%@FFLAGS@%$FFLAGS%g
4490 s%@LDFLAGS@%$LDFLAGS%g
4492 s%@exec_prefix@%$exec_prefix%g
4493 s%@prefix@%$prefix%g
4494 s%@program_transform_name@%$program_transform_name%g
4495 s%@bindir@%$bindir%g
4496 s%@sbindir@%$sbindir%g
4497 s%@libexecdir@%$libexecdir%g
4498 s%@datadir@%$datadir%g
4499 s%@sysconfdir@%$sysconfdir%g
4500 s%@sharedstatedir@%$sharedstatedir%g
4501 s%@localstatedir@%$localstatedir%g
4502 s%@libdir@%$libdir%g
4503 s%@includedir@%$includedir%g
4504 s%@oldincludedir@%$oldincludedir%g
4505 s%@infodir@%$infodir%g
4506 s%@mandir@%$mandir%g
4508 s%@host_alias@%$host_alias%g
4509 s%@host_cpu@%$host_cpu%g
4510 s%@host_vendor@%$host_vendor%g
4511 s%@host_os@%$host_os%g
4512 s%@target@%$target%g
4513 s%@target_alias@%$target_alias%g
4514 s%@target_cpu@%$target_cpu%g
4515 s%@target_vendor@%$target_vendor%g
4516 s%@target_os@%$target_os%g
4518 s%@build_alias@%$build_alias%g
4519 s%@build_cpu@%$build_cpu%g
4520 s%@build_vendor@%$build_vendor%g
4521 s%@build_os@%$build_os%g
4522 s%@VERSION@%$VERSION%g
4523 s%@APOPLIB@%$APOPLIB%g
4524 s%@masquerade@%$masquerade%g
4525 s%@POPLIB@%$POPLIB%g
4526 s%@POPSED@%$POPSED%g
4528 s%@MTSLIB@%$MTSLIB%g
4529 s%@smtpservers@%$smtpservers%g
4531 s%@SET_MAKE@%$SET_MAKE%g
4532 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4533 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4534 s%@INSTALL_DATA@%$INSTALL_DATA%g
4535 s%@RANLIB@%$RANLIB%g
4538 s%@LEXLIB@%$LEXLIB%g
4539 s%@cutpath@%$cutpath%g
4540 s%@LIBTOOL@%$LIBTOOL%g
4541 s%@GNU_LIBTOOL@%$GNU_LIBTOOL%g
4542 s%@LORDER@%$LORDER%g
4544 s%@lspath@%$lspath%g
4545 s%@morepath@%$morepath%g
4546 s%@pagerpath@%$pagerpath%g
4547 s%@sendmailpath@%$sendmailpath%g
4548 s%@vipath@%$vipath%g
4549 s%@editorpath@%$editorpath%g
4550 s%@mailspool@%$mailspool%g
4551 s%@SETGID_MAIL@%$SETGID_MAIL%g
4552 s%@MAIL_SPOOL_GRP@%$MAIL_SPOOL_GRP%g
4554 s%@LIBOBJS@%$LIBOBJS%g
4555 s%@TERMLIB@%$TERMLIB%g
4556 s%@HESIOD_INCLUDES@%$HESIOD_INCLUDES%g
4557 s%@HESIOD_LIBS@%$HESIOD_LIBS%g
4558 s%@KRB4_INCLUDES@%$KRB4_INCLUDES%g
4559 s%@KRB4_LIBS@%$KRB4_LIBS%g
4560 s%@SIGNAL_H@%$SIGNAL_H%g
4565 cat >> $CONFIG_STATUS <<\EOF
4567 # Split the substitutions into bite-sized pieces for seds with
4568 # small command number limits, like on Digital OSF/1 and HP-UX.
4569 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4570 ac_file=1 # Number of current file.
4571 ac_beg=1 # First line for current file.
4572 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4575 while $ac_more_lines; do
4576 if test $ac_beg -gt 1; then
4577 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4579 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4581 if test ! -s conftest.s$ac_file; then
4583 rm -f conftest.s$ac_file
4585 if test -z "$ac_sed_cmds"; then
4586 ac_sed_cmds="sed -f conftest.s$ac_file"
4588 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4590 ac_file=`expr $ac_file + 1`
4592 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4595 if test -z "$ac_sed_cmds"; then
4600 cat >> $CONFIG_STATUS <<EOF
4602 CONFIG_FILES=\${CONFIG_FILES-"Makefile config/Makefile h/Makefile sbr/Makefile uip/Makefile \
4603 zotnet/Makefile zotnet/mts/Makefile \
4604 mts/Makefile mts/smtp/Makefile \
4605 mts/sendmail/Makefile mts/mmdf/Makefile etc/Makefile \
4606 docs/Makefile man/Makefile"}
4608 cat >> $CONFIG_STATUS <<\EOF
4609 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4610 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4612 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4613 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4614 *) ac_file_in="${ac_file}.in" ;;
4617 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4619 # Remove last slash and all that follows it. Not all systems have dirname.
4620 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4621 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4622 # The file is in a subdirectory.
4623 test ! -d "$ac_dir" && mkdir "$ac_dir"
4624 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4625 # A "../" for each directory in $ac_dir_suffix.
4626 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4628 ac_dir_suffix= ac_dots=
4631 case "$ac_given_srcdir" in
4633 if test -z "$ac_dots"; then top_srcdir=.
4634 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4635 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4637 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4638 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4641 case "$ac_given_INSTALL" in
4642 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4643 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4646 echo creating "$ac_file"
4648 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4650 *Makefile*) ac_comsub="1i\\
4651 # $configure_input" ;;
4655 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4657 s%@configure_input@%$configure_input%g
4658 s%@srcdir@%$srcdir%g
4659 s%@top_srcdir@%$top_srcdir%g
4660 s%@INSTALL@%$INSTALL%g
4661 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4665 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4666 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4668 # ac_d sets the value in "#define NAME VALUE" lines.
4669 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4670 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4673 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4674 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4675 ac_uB='\([ ]\)%\1#\2define\3'
4678 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4679 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4680 ac_eB='$%\1#\2define\3'
4684 if test "${CONFIG_HEADERS+set}" != set; then
4686 cat >> $CONFIG_STATUS <<EOF
4687 CONFIG_HEADERS="config.h"
4689 cat >> $CONFIG_STATUS <<\EOF
4691 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4692 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4694 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4695 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4696 *) ac_file_in="${ac_file}.in" ;;
4699 echo creating $ac_file
4701 rm -f conftest.frag conftest.in conftest.out
4702 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4703 cat $ac_file_inputs > conftest.in
4707 # Transform confdefs.h into a sed script conftest.vals that substitutes
4708 # the proper values into config.h.in to produce config.h. And first:
4709 # Protect against being on the right side of a sed subst in config.status.
4710 # Protect against being in an unquoted here document in config.status.
4712 cat > conftest.hdr <<\EOF
4715 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4719 sed -n -f conftest.hdr confdefs.h > conftest.vals
4722 # This sed command replaces #undef with comments. This is necessary, for
4723 # example, in the case of _POSIX_SOURCE, which is predefined and required
4724 # on some systems where configure will not decide to define it.
4725 cat >> conftest.vals <<\EOF
4726 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4729 # Break up conftest.vals because some shells have a limit on
4730 # the size of here documents, and old seds have small limits too.
4735 ac_lines=`grep -c . conftest.vals`
4736 # grep -c gives empty output for an empty file on some AIX systems.
4737 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4738 # Write a limited-size here document to conftest.frag.
4739 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4740 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4742 sed -f conftest.frag conftest.in > conftest.out
4744 mv conftest.out conftest.in
4746 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4748 mv conftest.tail conftest.vals
4752 cat >> $CONFIG_STATUS <<\EOF
4753 rm -f conftest.frag conftest.h
4754 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4755 cat conftest.in >> conftest.h
4757 if cmp -s $ac_file conftest.h 2>/dev/null; then
4758 echo "$ac_file is unchanged"
4761 # Remove last slash and all that follows it. Not all systems have dirname.
4762 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4763 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4764 # The file is in a subdirectory.
4765 test ! -d "$ac_dir" && mkdir "$ac_dir"
4768 mv conftest.h $ac_file
4773 cat >> $CONFIG_STATUS <<EOF
4776 cat >> $CONFIG_STATUS <<\EOF
4778 test -z "$CONFIG_HEADERS" || echo > stamp-h
4781 chmod +x $CONFIG_STATUS
4782 rm -fr confdefs* $ac_clean_files
4783 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4786 eval "nmhbin=${bindir}"; eval "nmhbin2=${nmhbin}"
4787 eval "nmhsysconf=${sysconfdir}"; eval "nmhsysconf2=${nmhsysconf}"
4788 eval "nmhlib=${libdir}"; eval "nmhlib2=${nmhlib}"
4789 eval "nmhman=${mandir}"
4792 if test x"$enable_pop" = x"yes"; then
4795 if test x"$enable_apop" = x"yes"; then
4796 pop_kinds="${pop_kinds}APOP "
4799 if test x"$with_krb4" != x -a x"$with_krb4" != x"no"; then
4800 pop_kinds="${pop_kinds}KPOP "
4803 pop_kinds="${pop_kinds}POP3)"
4809 nmh version : ${VERSION}
4810 target os : ${target}
4812 compiler flags : ${CFLAGS}
4813 linker flags : ${LDFLAGS}
4814 source code location : ${srcdir}
4815 binary install path : ${nmhbin2}
4816 libary install path : ${nmhlib2}
4817 config files install path : ${nmhsysconf2}
4818 man page install path : ${nmhman}
4819 transport system : ${MTS}
4820 default smtp servers : ${smtpservers}
4821 default editor : ${editorpath}
4822 default pager : ${pagerpath}
4823 email address masquerading : ${masquerade}
4824 pop is enabled : ${pop_kinds}"