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-cyrus-sasl=<dir> Specify location of Cyrus SASL library for auth"
28 --with-editor=EDITOR specify the default editor"
30 --with-hash-backup use # as the backup prefix (default: ,)"
32 --with-hesiod=PREFIX specify location of Hesiod"
34 --with-krb4=PREFIX specify location of Kerberos V4 for KPOP support"
36 --with-locking=LOCKTYPE specify the file locking method
37 (one of dot, fcntl, flock, lockf)"
39 --with-mts=MTS specify the default mail transport agent/service"
41 --with-pager=PAGER specify the default pager"
43 --with-smtpservers='SMTPSERVER1[ SMTPSERVER2...]'
44 specify the default SMTP server(s) [localhost]"
45 ac_default_prefix=/usr/local/nmh
47 # Initialize some variables set by options.
48 # The variables have the same names as the options, with
49 # dashes changed to underlines.
51 cache_file=./config.cache
60 program_transform_name=s,x,x,
68 bindir='${exec_prefix}/bin'
69 sbindir='${exec_prefix}/sbin'
70 libexecdir='${exec_prefix}/libexec'
71 datadir='${prefix}/share'
72 sysconfdir='${prefix}/etc'
73 sharedstatedir='${prefix}/com'
74 localstatedir='${prefix}/var'
75 libdir='${exec_prefix}/lib'
76 includedir='${prefix}/include'
77 oldincludedir='/usr/include'
78 infodir='${prefix}/info'
79 mandir='${prefix}/man'
81 # Initialize some other variables.
84 SHELL=${CONFIG_SHELL-/bin/sh}
85 # Maximum number of lines to put in a shell here document.
92 # If the previous option needs an argument, assign it.
93 if test -n "$ac_prev"; then
94 eval "$ac_prev=\$ac_option"
100 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
104 # Accept the important Cygnus configure options, so we can diagnose typos.
108 -bindir | --bindir | --bindi | --bind | --bin | --bi)
110 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
111 bindir="$ac_optarg" ;;
113 -build | --build | --buil | --bui | --bu)
115 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
116 build="$ac_optarg" ;;
118 -cache-file | --cache-file | --cache-fil | --cache-fi \
119 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
120 ac_prev=cache_file ;;
121 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
122 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
123 cache_file="$ac_optarg" ;;
125 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
127 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
129 datadir="$ac_optarg" ;;
131 -disable-* | --disable-*)
132 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
133 # Reject names that are not valid shell variable names.
134 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
135 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
137 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
138 eval "enable_${ac_feature}=no" ;;
140 -enable-* | --enable-*)
141 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
142 # Reject names that are not valid shell variable names.
143 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
144 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
146 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
151 eval "enable_${ac_feature}='$ac_optarg'" ;;
153 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
154 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
155 | --exec | --exe | --ex)
156 ac_prev=exec_prefix ;;
157 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
158 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
159 | --exec=* | --exe=* | --ex=*)
160 exec_prefix="$ac_optarg" ;;
162 -gas | --gas | --ga | --g)
163 # Obsolete; use --with-gas.
166 -help | --help | --hel | --he)
167 # Omit some internal or obsolete options to make the list less imposing.
168 # This message is too long to be a string in the A/UX 3.1 sh.
170 Usage: configure [options] [host]
171 Options: [defaults in brackets after descriptions]
173 --cache-file=FILE cache test results in FILE
174 --help print this message
175 --no-create do not create output files
176 --quiet, --silent do not print \`checking...' messages
177 --version print the version of autoconf that created configure
178 Directory and file names:
179 --prefix=PREFIX install architecture-independent files in PREFIX
181 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
183 --bindir=DIR user executables in DIR [EPREFIX/bin]
184 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
185 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
186 --datadir=DIR read-only architecture-independent data in DIR
188 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
189 --sharedstatedir=DIR modifiable architecture-independent data in DIR
191 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
192 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
193 --includedir=DIR C header files in DIR [PREFIX/include]
194 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
195 --infodir=DIR info documentation in DIR [PREFIX/info]
196 --mandir=DIR man documentation in DIR [PREFIX/man]
197 --srcdir=DIR find the sources in DIR [configure dir or ..]
198 --program-prefix=PREFIX prepend PREFIX to installed program names
199 --program-suffix=SUFFIX append SUFFIX to installed program names
200 --program-transform-name=PROGRAM
201 run sed PROGRAM on installed program names
205 --build=BUILD configure for building on BUILD [BUILD=HOST]
206 --host=HOST configure for HOST [guessed]
207 --target=TARGET configure for TARGET [TARGET=HOST]
208 Features and packages:
209 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
210 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
211 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
212 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
213 --x-includes=DIR X include files are in DIR
214 --x-libraries=DIR X library files are in DIR
216 if test -n "$ac_help"; then
217 echo "--enable and --with options recognized:$ac_help"
221 -host | --host | --hos | --ho)
223 -host=* | --host=* | --hos=* | --ho=*)
226 -includedir | --includedir | --includedi | --included | --include \
227 | --includ | --inclu | --incl | --inc)
228 ac_prev=includedir ;;
229 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
230 | --includ=* | --inclu=* | --incl=* | --inc=*)
231 includedir="$ac_optarg" ;;
233 -infodir | --infodir | --infodi | --infod | --info | --inf)
235 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
236 infodir="$ac_optarg" ;;
238 -libdir | --libdir | --libdi | --libd)
240 -libdir=* | --libdir=* | --libdi=* | --libd=*)
241 libdir="$ac_optarg" ;;
243 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
244 | --libexe | --libex | --libe)
245 ac_prev=libexecdir ;;
246 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
247 | --libexe=* | --libex=* | --libe=*)
248 libexecdir="$ac_optarg" ;;
250 -localstatedir | --localstatedir | --localstatedi | --localstated \
251 | --localstate | --localstat | --localsta | --localst \
252 | --locals | --local | --loca | --loc | --lo)
253 ac_prev=localstatedir ;;
254 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
255 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
256 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
257 localstatedir="$ac_optarg" ;;
259 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
261 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
262 mandir="$ac_optarg" ;;
265 # Obsolete; use --without-fp.
268 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
272 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
273 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
276 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
277 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
278 | --oldin | --oldi | --old | --ol | --o)
279 ac_prev=oldincludedir ;;
280 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
281 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
282 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
283 oldincludedir="$ac_optarg" ;;
285 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
287 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
288 prefix="$ac_optarg" ;;
290 -program-prefix | --program-prefix | --program-prefi | --program-pref \
291 | --program-pre | --program-pr | --program-p)
292 ac_prev=program_prefix ;;
293 -program-prefix=* | --program-prefix=* | --program-prefi=* \
294 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
295 program_prefix="$ac_optarg" ;;
297 -program-suffix | --program-suffix | --program-suffi | --program-suff \
298 | --program-suf | --program-su | --program-s)
299 ac_prev=program_suffix ;;
300 -program-suffix=* | --program-suffix=* | --program-suffi=* \
301 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
302 program_suffix="$ac_optarg" ;;
304 -program-transform-name | --program-transform-name \
305 | --program-transform-nam | --program-transform-na \
306 | --program-transform-n | --program-transform- \
307 | --program-transform | --program-transfor \
308 | --program-transfo | --program-transf \
309 | --program-trans | --program-tran \
310 | --progr-tra | --program-tr | --program-t)
311 ac_prev=program_transform_name ;;
312 -program-transform-name=* | --program-transform-name=* \
313 | --program-transform-nam=* | --program-transform-na=* \
314 | --program-transform-n=* | --program-transform-=* \
315 | --program-transform=* | --program-transfor=* \
316 | --program-transfo=* | --program-transf=* \
317 | --program-trans=* | --program-tran=* \
318 | --progr-tra=* | --program-tr=* | --program-t=*)
319 program_transform_name="$ac_optarg" ;;
321 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
322 | -silent | --silent | --silen | --sile | --sil)
325 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
327 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
329 sbindir="$ac_optarg" ;;
331 -sharedstatedir | --sharedstatedir | --sharedstatedi \
332 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
333 | --sharedst | --shareds | --shared | --share | --shar \
335 ac_prev=sharedstatedir ;;
336 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
337 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
338 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
340 sharedstatedir="$ac_optarg" ;;
342 -site | --site | --sit)
344 -site=* | --site=* | --sit=*)
347 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
349 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
350 srcdir="$ac_optarg" ;;
352 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
353 | --syscon | --sysco | --sysc | --sys | --sy)
354 ac_prev=sysconfdir ;;
355 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
356 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
357 sysconfdir="$ac_optarg" ;;
359 -target | --target | --targe | --targ | --tar | --ta | --t)
361 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
362 target="$ac_optarg" ;;
364 -v | -verbose | --verbose | --verbos | --verbo | --verb)
367 -version | --version | --versio | --versi | --vers)
368 echo "configure generated by autoconf version 2.13"
372 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
373 # Reject names that are not valid shell variable names.
374 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
375 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
377 ac_package=`echo $ac_package| sed 's/-/_/g'`
382 eval "with_${ac_package}='$ac_optarg'" ;;
384 -without-* | --without-*)
385 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
386 # Reject names that are not valid shell variable names.
387 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
388 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
390 ac_package=`echo $ac_package| sed 's/-/_/g'`
391 eval "with_${ac_package}=no" ;;
394 # Obsolete; use --with-x.
397 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
398 | --x-incl | --x-inc | --x-in | --x-i)
399 ac_prev=x_includes ;;
400 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
401 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
402 x_includes="$ac_optarg" ;;
404 -x-libraries | --x-libraries | --x-librarie | --x-librari \
405 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
406 ac_prev=x_libraries ;;
407 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
408 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
409 x_libraries="$ac_optarg" ;;
411 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
415 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
416 echo "configure: warning: $ac_option: invalid host type" 1>&2
418 if test "x$nonopt" != xNONE; then
419 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
427 if test -n "$ac_prev"; then
428 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
431 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
433 # File descriptor usage:
436 # 2 errors and warnings
437 # 3 some systems may open it to /dev/tty
438 # 4 used on the Kubota Titan
439 # 6 checking for... messages and results
440 # 5 compiler messages saved in config.log
441 if test "$silent" = yes; then
449 This file contains any messages produced by compilers while
450 running configure, to aid debugging if configure makes a mistake.
453 # Strip out --no-create and --no-recursion so they do not pile up.
454 # Also quote any args containing shell metacharacters.
459 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
460 | --no-cr | --no-c) ;;
461 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
462 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
463 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
464 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
465 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
470 # Only set these to C if already set. These must not be set unconditionally
471 # because not all systems understand e.g. LANG=C (notably SCO).
472 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
473 # Non-C LC_CTYPE values break the ctype check.
474 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
475 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
476 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
477 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
479 # confdefs.h avoids OS command line length limits that DEFS can exceed.
480 rm -rf conftest* confdefs.h
481 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
484 # A filename unique to this package, relative to the directory that
485 # configure is in, which we can look for to find out if srcdir is correct.
486 ac_unique_file=h/nmh.h
488 # Find the source files, if location was not specified.
489 if test -z "$srcdir"; then
490 ac_srcdir_defaulted=yes
491 # Try the directory containing this script, then its parent.
493 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
494 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
496 if test ! -r $srcdir/$ac_unique_file; then
500 ac_srcdir_defaulted=no
502 if test ! -r $srcdir/$ac_unique_file; then
503 if test "$ac_srcdir_defaulted" = yes; then
504 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
506 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
509 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
511 # Prefer explicitly selected file to automatically selected ones.
512 if test -z "$CONFIG_SITE"; then
513 if test "x$prefix" != xNONE; then
514 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
516 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
519 for ac_site_file in $CONFIG_SITE; do
520 if test -r "$ac_site_file"; then
521 echo "loading site script $ac_site_file"
526 if test -r "$cache_file"; then
527 echo "loading cache $cache_file"
530 echo "creating cache $cache_file"
535 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
536 ac_cpp='$CPP $CPPFLAGS'
537 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
538 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
539 cross_compiling=$ac_cv_prog_cc_cross
543 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
544 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
545 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
552 ac_n= ac_c='\c' ac_t=
559 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
560 if test -f $ac_dir/install-sh; then
562 ac_install_sh="$ac_aux_dir/install-sh -c"
564 elif test -f $ac_dir/install.sh; then
566 ac_install_sh="$ac_aux_dir/install.sh -c"
570 if test -z "$ac_aux_dir"; then
571 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
573 ac_config_guess=$ac_aux_dir/config.guess
574 ac_config_sub=$ac_aux_dir/config.sub
575 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
578 # Do some error checking and defaulting for the host and target type.
580 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
583 # 1. You are not allowed to specify --host, --target, and nonopt at the
585 # 2. Host defaults to nonopt.
586 # 3. If nonopt is not specified, then host defaults to the current host,
587 # as determined by config.guess.
588 # 4. Target and build default to nonopt.
589 # 5. If nonopt is not specified, then target and build default to host.
591 # The aliases save the names the user supplied, while $host etc.
592 # will get canonicalized.
593 case $host---$target---$nonopt in
594 NONE---*---* | *---NONE---* | *---*---NONE) ;;
595 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
599 # Make sure we can run config.sub.
600 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
601 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
604 echo $ac_n "checking host system type""... $ac_c" 1>&6
605 echo "configure:606: checking host system type" >&5
608 case "$host_alias" in
612 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
613 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
615 *) host_alias=$nonopt ;;
619 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
620 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
621 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
622 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
623 echo "$ac_t""$host" 1>&6
625 echo $ac_n "checking target system type""... $ac_c" 1>&6
626 echo "configure:627: checking target system type" >&5
629 case "$target_alias" in
632 NONE) target_alias=$host_alias ;;
633 *) target_alias=$nonopt ;;
637 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
638 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
639 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
640 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
641 echo "$ac_t""$target" 1>&6
643 echo $ac_n "checking build system type""... $ac_c" 1>&6
644 echo "configure:645: checking build system type" >&5
647 case "$build_alias" in
650 NONE) build_alias=$host_alias ;;
651 *) build_alias=$nonopt ;;
655 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
656 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
657 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
658 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
659 echo "$ac_t""$build" 1>&6
661 test "$host_alias" != "$target_alias" &&
662 test "$program_prefix$program_suffix$program_transform_name" = \
664 program_prefix=${target_alias}-
671 VERSION=`sed -e 's/nmh-//' ${srcdir}/VERSION`
672 echo "configuring for nmh-$VERSION"
674 DATE=`cat ${srcdir}/DATE`
675 echo "configuring for nmh dated $DATE"
678 # Check whether --enable-apop or --disable-apop was given.
679 if test "${enable_apop+set}" = set; then
680 enableval="$enable_apop"
684 if test x"$enable_apop" = x"yes"; then
685 cat >> confdefs.h <<\EOF
692 # Check whether --enable-debug or --disable-debug was given.
693 if test "${enable_debug+set}" = set; then
694 enableval="$enable_debug"
698 if test x"$enable_nmh_debug" = x"yes"; then
702 # Check whether --enable-masquerade or --disable-masquerade was given.
703 if test "${enable_masquerade+set}" = set; then
704 enableval="$enable_masquerade"
705 if test x"$enable_masquerade" = x"yes"; then
706 masquerade="draft_from mmailid username_extension"
708 masquerade="$enable_masquerade"
713 # Check whether --enable-mhe or --disable-mhe was given.
714 if test "${enable_mhe+set}" = set; then
715 enableval="$enable_mhe"
720 if test x"$enable_mhe" != x"no" -a x"$enable_nmh_mhe" != x"no"; then
721 cat >> confdefs.h <<\EOF
726 # Check whether --enable-pop or --disable-pop was given.
727 if test "${enable_pop+set}" = set; then
728 enableval="$enable_pop"
732 if test x"$enable_nmh_pop" = x"yes"; then
736 # Check whether --with-cyrus-sasl or --without-cyrus-sasl was given.
737 if test "${with_cyrus_sasl+set}" = set; then
738 withval="$with_cyrus_sasl"
742 if test x"$with_cyrus_sasl" != x -a x"$with_cyrus_sasl" != x"no"; then
743 cat >> confdefs.h <<\EOF
751 # Check whether --with-editor or --without-editor was given.
752 if test "${with_editor+set}" = set; then
753 withval="$with_editor"
758 if test -n "$with_editor"; then
759 editorpath="$with_editor"
762 # Check whether --with-hash-backup or --without-hash-backup was given.
763 if test "${with_hash_backup+set}" = set; then
764 withval="$with_hash_backup"
768 if test x"$with_hash_backup" != x -a x"$with_hash_backup" != x"no"; then
773 cat >> confdefs.h <<EOF
774 #define BACKUP_PREFIX "$backup_prefix"
777 # Check whether --with-hesiod or --without-hesiod was given.
778 if test "${with_hesiod+set}" = set; then
779 withval="$with_hesiod"
783 if test x"$with_hesiod" != x -a x"$with_hesiod" != x"no"; then
784 cat >> confdefs.h <<\EOF
789 # Check whether --with-krb4 or --without-krb4 was given.
790 if test "${with_krb4+set}" = set; then
795 if test x"$with_krb4" != x -a x"$with_krb4" != x"no"; then
797 cat >> confdefs.h <<\EOF
800 cat >> confdefs.h <<\EOF
801 #define KPOP_PRINCIPAL "pop"
805 if test x"$enable_pop" = x"yes"; then
806 cat >> confdefs.h <<\EOF
810 POPSED='/^%nmhbeginpop%/d;/^%nmhendpop%/d'
812 POPSED='/^%nmhbeginpop%/,/^%nmhendpop%/d'
815 # Check whether --with-locking or --without-locking was given.
816 if test "${with_locking+set}" = set; then
817 withval="$with_locking"
822 if test x"$with_locking" = x"dot"; then
824 cat >> confdefs.h <<\EOF
825 #define DOT_LOCKING 1
827 elif test x"$with_locking" = x"flock"; then
829 cat >> confdefs.h <<\EOF
830 #define FLOCK_LOCKING 1
832 elif test x"$with_locking" = x"lockf"; then
834 cat >> confdefs.h <<\EOF
835 #define LOCKF_LOCKING 1
837 elif test x"$with_locking" = x"fcntl"; then
839 cat >> confdefs.h <<\EOF
840 #define FCNTL_LOCKING 1
844 cat >> confdefs.h <<\EOF
845 #define DOT_LOCKING 1
849 # Check whether --with-mts or --without-mts was given.
850 if test "${with_mts+set}" = set; then
856 if test x"$with_mts" = x"smtp"; then
858 elif test x"$with_mts" = x"sendmail"; then
864 cat >> confdefs.h <<\EOF
868 # Check whether --with-pager or --without-pager was given.
869 if test "${with_pager+set}" = set; then
870 withval="$with_pager"
875 if test -n "$with_pager"; then
876 pagerpath="$with_pager"
879 # Check whether --with-smtpservers or --without-smtpservers was given.
880 if test "${with_smtpservers+set}" = set; then
881 withval="$with_smtpservers"
885 if test -n "$with_smtpservers"; then
886 smtpservers="$with_smtpservers"
888 smtpservers="localhost"
893 test -z "$CFLAGS" && CFLAGS= auto_cflags=1
894 if test x"$enable_debug" = x"yes"; then
895 test -z "$LDFLAGS" && LDFLAGS=-g
898 # Extract the first word of "gcc", so it can be a program name with args.
899 set dummy gcc; ac_word=$2
900 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
901 echo "configure:902: checking for $ac_word" >&5
902 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
903 echo $ac_n "(cached) $ac_c" 1>&6
905 if test -n "$CC"; then
906 ac_cv_prog_CC="$CC" # Let the user override the test.
908 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
910 for ac_dir in $ac_dummy; do
911 test -z "$ac_dir" && ac_dir=.
912 if test -f $ac_dir/$ac_word; then
921 if test -n "$CC"; then
922 echo "$ac_t""$CC" 1>&6
924 echo "$ac_t""no" 1>&6
927 if test -z "$CC"; then
928 # Extract the first word of "cc", so it can be a program name with args.
929 set dummy cc; ac_word=$2
930 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
931 echo "configure:932: checking for $ac_word" >&5
932 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
933 echo $ac_n "(cached) $ac_c" 1>&6
935 if test -n "$CC"; then
936 ac_cv_prog_CC="$CC" # Let the user override the test.
938 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
941 for ac_dir in $ac_dummy; do
942 test -z "$ac_dir" && ac_dir=.
943 if test -f $ac_dir/$ac_word; then
944 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
953 if test $ac_prog_rejected = yes; then
954 # We found a bogon in the path, so make sure we never use it.
955 set dummy $ac_cv_prog_CC
957 if test $# -gt 0; then
958 # We chose a different compiler from the bogus one.
959 # However, it has the same basename, so the bogon will be chosen
960 # first if we set CC to just the basename; use the full file name.
962 set dummy "$ac_dir/$ac_word" "$@"
970 if test -n "$CC"; then
971 echo "$ac_t""$CC" 1>&6
973 echo "$ac_t""no" 1>&6
976 if test -z "$CC"; then
979 # Extract the first word of "cl", so it can be a program name with args.
980 set dummy cl; ac_word=$2
981 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
982 echo "configure:983: checking for $ac_word" >&5
983 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
984 echo $ac_n "(cached) $ac_c" 1>&6
986 if test -n "$CC"; then
987 ac_cv_prog_CC="$CC" # Let the user override the test.
989 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
991 for ac_dir in $ac_dummy; do
992 test -z "$ac_dir" && ac_dir=.
993 if test -f $ac_dir/$ac_word; then
1002 if test -n "$CC"; then
1003 echo "$ac_t""$CC" 1>&6
1005 echo "$ac_t""no" 1>&6
1010 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1013 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1014 echo "configure:1015: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1017 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1018 ac_cpp='$CPP $CPPFLAGS'
1019 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1020 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1021 cross_compiling=$ac_cv_prog_cc_cross
1023 cat > conftest.$ac_ext << EOF
1025 #line 1026 "configure"
1026 #include "confdefs.h"
1030 if { (eval echo configure:1031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1031 ac_cv_prog_cc_works=yes
1032 # If we can't run a trivial program, we are probably using a cross compiler.
1033 if (./conftest; exit) 2>/dev/null; then
1034 ac_cv_prog_cc_cross=no
1036 ac_cv_prog_cc_cross=yes
1039 echo "configure: failed program was:" >&5
1040 cat conftest.$ac_ext >&5
1041 ac_cv_prog_cc_works=no
1045 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1046 ac_cpp='$CPP $CPPFLAGS'
1047 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1048 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1049 cross_compiling=$ac_cv_prog_cc_cross
1051 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1052 if test $ac_cv_prog_cc_works = no; then
1053 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1055 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1056 echo "configure:1057: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1057 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1058 cross_compiling=$ac_cv_prog_cc_cross
1060 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1061 echo "configure:1062: checking whether we are using GNU C" >&5
1062 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1063 echo $ac_n "(cached) $ac_c" 1>&6
1065 cat > conftest.c <<EOF
1070 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1071: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1077 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1079 if test $ac_cv_prog_gcc = yes; then
1085 ac_test_CFLAGS="${CFLAGS+set}"
1086 ac_save_CFLAGS="$CFLAGS"
1088 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1089 echo "configure:1090: checking whether ${CC-cc} accepts -g" >&5
1090 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1091 echo $ac_n "(cached) $ac_c" 1>&6
1093 echo 'void f(){}' > conftest.c
1094 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1103 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1104 if test "$ac_test_CFLAGS" = set; then
1105 CFLAGS="$ac_save_CFLAGS"
1106 elif test $ac_cv_prog_cc_g = yes; then
1107 if test "$GCC" = yes; then
1113 if test "$GCC" = yes; then
1121 if test -n "$auto_cflags"; then
1122 if test x"$enable_debug" = x"yes"; then
1123 if test -n "$GCC"; then
1124 test -z "$CFLAGS" && CFLAGS="-Wall -g" || CFLAGS="$CFLAGS -Wall -g"
1126 test -z "$CFLAGS" && CFLAGS=-g || CFLAGS="$CFLAGS -g"
1129 if test -z "$LDFLAGS"; then
1139 if test -n "$GCC"; then
1140 test -z "$CFLAGS" && CFLAGS="-Wall -O2" || CFLAGS="$CFLAGS -Wall -O2"
1142 test -z "$CFLAGS" && CFLAGS=-O || CFLAGS="$CFLAGS -O"
1147 echo $ac_n "checking for working const""... $ac_c" 1>&6
1148 echo "configure:1149: checking for working const" >&5
1149 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1150 echo $ac_n "(cached) $ac_c" 1>&6
1152 cat > conftest.$ac_ext <<EOF
1153 #line 1154 "configure"
1154 #include "confdefs.h"
1158 /* Ultrix mips cc rejects this. */
1159 typedef int charset[2]; const charset x;
1160 /* SunOS 4.1.1 cc rejects this. */
1161 char const *const *ccp;
1163 /* NEC SVR4.0.2 mips cc rejects this. */
1164 struct point {int x, y;};
1165 static struct point const zero = {0,0};
1166 /* AIX XL C 1.02.0.0 rejects this.
1167 It does not let you subtract one const X* pointer from another in an arm
1168 of an if-expression whose if-part is not a constant expression */
1169 const char *g = "string";
1170 ccp = &g + (g ? g-g : 0);
1171 /* HPUX 7.0 cc rejects these. */
1174 ccp = (char const *const *) p;
1175 { /* SCO 3.2v4 cc rejects this. */
1177 char const *s = 0 ? (char *) 0 : (char const *) 0;
1181 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1183 const int *foo = &x[0];
1186 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1187 typedef const int *iptr;
1191 { /* AIX XL C 1.02.0.0 rejects this saying
1192 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1193 struct s { int j; const int *ap[3]; };
1194 struct s *b; b->j = 5;
1196 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1202 if { (eval echo configure:1203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1206 echo "configure: failed program was:" >&5
1207 cat conftest.$ac_ext >&5
1214 echo "$ac_t""$ac_cv_c_const" 1>&6
1215 if test $ac_cv_c_const = no; then
1216 cat >> confdefs.h <<\EOF
1222 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1223 echo "configure:1224: checking whether ${MAKE-make} sets \${MAKE}" >&5
1224 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1225 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1226 echo $ac_n "(cached) $ac_c" 1>&6
1228 cat > conftestmake <<\EOF
1230 @echo 'ac_maketemp="${MAKE}"'
1232 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1233 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1234 if test -n "$ac_maketemp"; then
1235 eval ac_cv_prog_make_${ac_make}_set=yes
1237 eval ac_cv_prog_make_${ac_make}_set=no
1241 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1242 echo "$ac_t""yes" 1>&6
1245 echo "$ac_t""no" 1>&6
1246 SET_MAKE="MAKE=${MAKE-make}"
1248 # Find a good install program. We prefer a C program (faster),
1249 # so one script is as good as another. But avoid the broken or
1250 # incompatible versions:
1251 # SysV /etc/install, /usr/sbin/install
1252 # SunOS /usr/etc/install
1253 # IRIX /sbin/install
1255 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1256 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1257 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1258 # ./install, which can be erroneously created by make from ./install.sh.
1259 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1260 echo "configure:1261: checking for a BSD compatible install" >&5
1261 if test -z "$INSTALL"; then
1262 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1263 echo $ac_n "(cached) $ac_c" 1>&6
1265 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1266 for ac_dir in $PATH; do
1267 # Account for people who put trailing slashes in PATH elements.
1269 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1271 # OSF1 and SCO ODT 3.0 have their own names for install.
1272 # Don't use installbsd from OSF since it installs stuff as root
1274 for ac_prog in ginstall scoinst install; do
1275 if test -f $ac_dir/$ac_prog; then
1276 if test $ac_prog = install &&
1277 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1278 # AIX install. It has an incompatible calling convention.
1281 ac_cv_path_install="$ac_dir/$ac_prog -c"
1292 if test "${ac_cv_path_install+set}" = set; then
1293 INSTALL="$ac_cv_path_install"
1295 # As a last resort, use the slow shell script. We don't cache a
1296 # path for INSTALL within a source directory, because that will
1297 # break other packages using the cache if that directory is
1298 # removed, or if the path is relative.
1299 INSTALL="$ac_install_sh"
1302 echo "$ac_t""$INSTALL" 1>&6
1304 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1305 # It thinks the first close brace ends the variable substitution.
1306 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1308 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1310 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1311 # Extract the first word of "ranlib", so it can be a program name with args.
1312 set dummy ranlib; ac_word=$2
1313 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1314 echo "configure:1315: checking for $ac_word" >&5
1315 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1316 echo $ac_n "(cached) $ac_c" 1>&6
1318 if test -n "$RANLIB"; then
1319 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1321 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1323 for ac_dir in $ac_dummy; do
1324 test -z "$ac_dir" && ac_dir=.
1325 if test -f $ac_dir/$ac_word; then
1326 ac_cv_prog_RANLIB="ranlib"
1331 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1334 RANLIB="$ac_cv_prog_RANLIB"
1335 if test -n "$RANLIB"; then
1336 echo "$ac_t""$RANLIB" 1>&6
1338 echo "$ac_t""no" 1>&6
1340 for ac_prog in mawk gawk nawk awk
1342 # Extract the first word of "$ac_prog", so it can be a program name with args.
1343 set dummy $ac_prog; ac_word=$2
1344 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1345 echo "configure:1346: checking for $ac_word" >&5
1346 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1347 echo $ac_n "(cached) $ac_c" 1>&6
1349 if test -n "$AWK"; then
1350 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1352 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1354 for ac_dir in $ac_dummy; do
1355 test -z "$ac_dir" && ac_dir=.
1356 if test -f $ac_dir/$ac_word; then
1357 ac_cv_prog_AWK="$ac_prog"
1364 AWK="$ac_cv_prog_AWK"
1365 if test -n "$AWK"; then
1366 echo "$ac_t""$AWK" 1>&6
1368 echo "$ac_t""no" 1>&6
1371 test -n "$AWK" && break
1373 # Extract the first word of "flex", so it can be a program name with args.
1374 set dummy flex; ac_word=$2
1375 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1376 echo "configure:1377: checking for $ac_word" >&5
1377 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1378 echo $ac_n "(cached) $ac_c" 1>&6
1380 if test -n "$LEX"; then
1381 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1383 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1385 for ac_dir in $ac_dummy; do
1386 test -z "$ac_dir" && ac_dir=.
1387 if test -f $ac_dir/$ac_word; then
1388 ac_cv_prog_LEX="flex"
1393 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1396 LEX="$ac_cv_prog_LEX"
1397 if test -n "$LEX"; then
1398 echo "$ac_t""$LEX" 1>&6
1400 echo "$ac_t""no" 1>&6
1403 if test -z "$LEXLIB"
1409 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1410 echo "configure:1411: checking for yywrap in -l$ac_lib" >&5
1411 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1412 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1413 echo $ac_n "(cached) $ac_c" 1>&6
1415 ac_save_LIBS="$LIBS"
1416 LIBS="-l$ac_lib $LIBS"
1417 cat > conftest.$ac_ext <<EOF
1418 #line 1419 "configure"
1419 #include "confdefs.h"
1420 /* Override any gcc2 internal prototype to avoid an error. */
1421 /* We use char because int might match the return type of a gcc2
1422 builtin and then its argument prototype would still apply. */
1429 if { (eval echo configure:1430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1431 eval "ac_cv_lib_$ac_lib_var=yes"
1433 echo "configure: failed program was:" >&5
1434 cat conftest.$ac_ext >&5
1436 eval "ac_cv_lib_$ac_lib_var=no"
1439 LIBS="$ac_save_LIBS"
1442 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1443 echo "$ac_t""yes" 1>&6
1446 echo "$ac_t""no" 1>&6
1451 pathtmp=/usr/bin:/bin:/usr/local/bin:/usr/xpg4/bin:/usr/ucb
1452 # Extract the first word of "cut", so it can be a program name with args.
1453 set dummy cut; 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_path_cutpath'+set}'`\" = set"; then
1457 echo $ac_n "(cached) $ac_c" 1>&6
1461 ac_cv_path_cutpath="$cutpath" # Let the user override the test with a path.
1464 ac_cv_path_cutpath="$cutpath" # Let the user override the test with a dos path.
1467 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1469 for ac_dir in $ac_dummy; do
1470 test -z "$ac_dir" && ac_dir=.
1471 if test -f $ac_dir/$ac_word; then
1472 ac_cv_path_cutpath="$ac_dir/$ac_word"
1477 test -z "$ac_cv_path_cutpath" && ac_cv_path_cutpath="no"
1481 cutpath="$ac_cv_path_cutpath"
1482 if test -n "$cutpath"; then
1483 echo "$ac_t""$cutpath" 1>&6
1485 echo "$ac_t""no" 1>&6
1489 # Extract the first word of "lclint", so it can be a program name with args.
1490 set dummy lclint; ac_word=$2
1491 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1492 echo "configure:1493: checking for $ac_word" >&5
1493 if eval "test \"`echo '$''{'ac_cv_prog_linttmp1'+set}'`\" = set"; then
1494 echo $ac_n "(cached) $ac_c" 1>&6
1496 if test -n "$linttmp1"; then
1497 ac_cv_prog_linttmp1="$linttmp1" # Let the user override the test.
1499 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1501 for ac_dir in $ac_dummy; do
1502 test -z "$ac_dir" && ac_dir=.
1503 if test -f $ac_dir/$ac_word; then
1504 ac_cv_prog_linttmp1="lclint"
1509 test -z "$ac_cv_prog_linttmp1" && ac_cv_prog_linttmp1="no"
1512 linttmp1="$ac_cv_prog_linttmp1"
1513 if test -n "$linttmp1"; then
1514 echo "$ac_t""$linttmp1" 1>&6
1516 echo "$ac_t""no" 1>&6
1518 if test x$ac_cv_prog_linttmp1 != xno ; then
1519 LINT=$ac_cv_prog_linttmp1
1520 LINTFLAGS="-weak +posixlib -macrovarprefixexclude"
1522 # Extract the first word of "lint", so it can be a program name with args.
1523 set dummy lint; ac_word=$2
1524 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1525 echo "configure:1526: checking for $ac_word" >&5
1526 if eval "test \"`echo '$''{'ac_cv_prog_linttmp2'+set}'`\" = set"; then
1527 echo $ac_n "(cached) $ac_c" 1>&6
1529 if test -n "$linttmp2"; then
1530 ac_cv_prog_linttmp2="$linttmp2" # Let the user override the test.
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_prog_linttmp2="lint"
1542 test -z "$ac_cv_prog_linttmp2" && ac_cv_prog_linttmp2="no"
1545 linttmp2="$ac_cv_prog_linttmp2"
1546 if test -n "$linttmp2"; then
1547 echo "$ac_t""$linttmp2" 1>&6
1549 echo "$ac_t""no" 1>&6
1551 if test x$ac_cv_prog_linttmp2 != xno ; then
1552 LINT=$ac_cv_prog_linttmp2
1555 LINT="echo 'No lint program found'"
1560 # Extract the first word of "libtool", so it can be a program name with args.
1561 set dummy libtool; ac_word=$2
1562 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1563 echo "configure:1564: checking for $ac_word" >&5
1564 if eval "test \"`echo '$''{'ac_cv_prog_LIBTOOL'+set}'`\" = set"; then
1565 echo $ac_n "(cached) $ac_c" 1>&6
1567 if test -n "$LIBTOOL"; then
1568 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
1570 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1572 for ac_dir in $ac_dummy; do
1573 test -z "$ac_dir" && ac_dir=.
1574 if test -f $ac_dir/$ac_word; then
1575 ac_cv_prog_LIBTOOL="libtool"
1582 LIBTOOL="$ac_cv_prog_LIBTOOL"
1583 if test -n "$LIBTOOL"; then
1584 echo "$ac_t""$LIBTOOL" 1>&6
1586 echo "$ac_t""no" 1>&6
1590 if test -n "$LIBTOOL" ; then
1591 tmptest=`$LIBTOOL --version 2>&1 | grep GNU`
1592 if test x"$tmptest" != x ; then
1598 # Extract the first word of "lorder", so it can be a program name with args.
1599 set dummy lorder; ac_word=$2
1600 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1601 echo "configure:1602: checking for $ac_word" >&5
1602 if eval "test \"`echo '$''{'ac_cv_prog_LORDER'+set}'`\" = set"; then
1603 echo $ac_n "(cached) $ac_c" 1>&6
1605 if test -n "$LORDER"; then
1606 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
1608 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1610 for ac_dir in $ac_dummy; do
1611 test -z "$ac_dir" && ac_dir=.
1612 if test -f $ac_dir/$ac_word; then
1613 ac_cv_prog_LORDER="lorder"
1618 test -z "$ac_cv_prog_LORDER" && ac_cv_prog_LORDER="no"
1621 LORDER="$ac_cv_prog_LORDER"
1622 if test -n "$LORDER"; then
1623 echo "$ac_t""$LORDER" 1>&6
1625 echo "$ac_t""no" 1>&6
1627 # Extract the first word of "tsort", so it can be a program name with args.
1628 set dummy tsort; ac_word=$2
1629 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1630 echo "configure:1631: checking for $ac_word" >&5
1631 if eval "test \"`echo '$''{'ac_cv_prog_TSORT'+set}'`\" = set"; then
1632 echo $ac_n "(cached) $ac_c" 1>&6
1634 if test -n "$TSORT"; then
1635 ac_cv_prog_TSORT="$TSORT" # Let the user override the test.
1637 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1639 for ac_dir in $ac_dummy; do
1640 test -z "$ac_dir" && ac_dir=.
1641 if test -f $ac_dir/$ac_word; then
1642 ac_cv_prog_TSORT="tsort"
1647 test -z "$ac_cv_prog_TSORT" && ac_cv_prog_TSORT="no"
1650 TSORT="$ac_cv_prog_TSORT"
1651 if test -n "$TSORT"; then
1652 echo "$ac_t""$TSORT" 1>&6
1654 echo "$ac_t""no" 1>&6
1657 if test x$ac_cv_prog_LORDER != xlorder -o x$ac_cv_prog_TSORT != xtsort; then
1662 echo $ac_n "checking whether tsort can deal with loops""... $ac_c" 1>&6
1663 echo "configure:1664: checking whether tsort can deal with loops" >&5
1664 if eval "test \"`echo '$''{'nmh_cv_tsort_loop'+set}'`\" = set"; then
1665 echo $ac_n "(cached) $ac_c" 1>&6
1667 if test -z "`echo a b b a | tsort 2>/dev/null | grep a`" ; then
1668 nmh_cv_tsort_loop=no
1670 nmh_cv_tsort_loop=yes
1674 echo "$ac_t""$nmh_cv_tsort_loop" 1>&6
1675 if test x$nmh_cv_tsort_loop = xno ; then
1680 pathtmp=/usr/bin:/bin:/usr/local/bin:/usr/xpg4/bin:/usr/ucb
1681 # Extract the first word of "ls", so it can be a program name with args.
1682 set dummy ls; ac_word=$2
1683 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1684 echo "configure:1685: checking for $ac_word" >&5
1685 if eval "test \"`echo '$''{'ac_cv_path_lspath'+set}'`\" = set"; then
1686 echo $ac_n "(cached) $ac_c" 1>&6
1690 ac_cv_path_lspath="$lspath" # Let the user override the test with a path.
1693 ac_cv_path_lspath="$lspath" # Let the user override the test with a dos path.
1696 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1698 for ac_dir in $ac_dummy; do
1699 test -z "$ac_dir" && ac_dir=.
1700 if test -f $ac_dir/$ac_word; then
1701 ac_cv_path_lspath="$ac_dir/$ac_word"
1706 test -z "$ac_cv_path_lspath" && ac_cv_path_lspath="no"
1710 lspath="$ac_cv_path_lspath"
1711 if test -n "$lspath"; then
1712 echo "$ac_t""$lspath" 1>&6
1714 echo "$ac_t""no" 1>&6
1718 if test "$lspath" != "no"; then
1719 echo $ac_n "checking how to get ls to show us the group ownership of a file""... $ac_c" 1>&6
1720 echo "configure:1721: checking how to get ls to show us the group ownership of a file" >&5
1721 if eval "test \"`echo '$''{'nmh_cv_ls_grpopt'+set}'`\" = set"; then
1722 echo $ac_n "(cached) $ac_c" 1>&6
1724 if test x"`$lspath -dl / | $AWK '{print $9}'`" = x"/"; then
1725 nmh_cv_ls_grpopt="-l"
1727 nmh_cv_ls_grpopt="-lg"
1731 echo "$ac_t""$nmh_cv_ls_grpopt" 1>&6
1734 pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin
1735 # Extract the first word of "more", so it can be a program name with args.
1736 set dummy more; ac_word=$2
1737 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1738 echo "configure:1739: checking for $ac_word" >&5
1739 if eval "test \"`echo '$''{'ac_cv_path_morepath'+set}'`\" = set"; then
1740 echo $ac_n "(cached) $ac_c" 1>&6
1744 ac_cv_path_morepath="$morepath" # Let the user override the test with a path.
1747 ac_cv_path_morepath="$morepath" # Let the user override the test with a dos path.
1750 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1752 for ac_dir in $ac_dummy; do
1753 test -z "$ac_dir" && ac_dir=.
1754 if test -f $ac_dir/$ac_word; then
1755 ac_cv_path_morepath="$ac_dir/$ac_word"
1760 test -z "$ac_cv_path_morepath" && ac_cv_path_morepath="no"
1764 morepath="$ac_cv_path_morepath"
1765 if test -n "$morepath"; then
1766 echo "$ac_t""$morepath" 1>&6
1768 echo "$ac_t""no" 1>&6
1772 if test -z "$pagerpath"; then
1773 pagerpath="$morepath"
1776 pathtmp=/usr/lib:/usr/sbin:/usr/etc:/usr/ucblib:/usr/bin:/bin
1777 # Extract the first word of "sendmail", so it can be a program name with args.
1778 set dummy sendmail; ac_word=$2
1779 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1780 echo "configure:1781: checking for $ac_word" >&5
1781 if eval "test \"`echo '$''{'ac_cv_path_sendmailpath'+set}'`\" = set"; then
1782 echo $ac_n "(cached) $ac_c" 1>&6
1784 case "$sendmailpath" in
1786 ac_cv_path_sendmailpath="$sendmailpath" # Let the user override the test with a path.
1789 ac_cv_path_sendmailpath="$sendmailpath" # Let the user override the test with a dos path.
1792 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1794 for ac_dir in $ac_dummy; do
1795 test -z "$ac_dir" && ac_dir=.
1796 if test -f $ac_dir/$ac_word; then
1797 ac_cv_path_sendmailpath="$ac_dir/$ac_word"
1802 test -z "$ac_cv_path_sendmailpath" && ac_cv_path_sendmailpath="no"
1806 sendmailpath="$ac_cv_path_sendmailpath"
1807 if test -n "$sendmailpath"; then
1808 echo "$ac_t""$sendmailpath" 1>&6
1810 echo "$ac_t""no" 1>&6
1814 pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin
1815 # Extract the first word of "vi", so it can be a program name with args.
1816 set dummy vi; ac_word=$2
1817 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1818 echo "configure:1819: checking for $ac_word" >&5
1819 if eval "test \"`echo '$''{'ac_cv_path_vipath'+set}'`\" = set"; then
1820 echo $ac_n "(cached) $ac_c" 1>&6
1824 ac_cv_path_vipath="$vipath" # Let the user override the test with a path.
1827 ac_cv_path_vipath="$vipath" # Let the user override the test with a dos path.
1830 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1832 for ac_dir in $ac_dummy; do
1833 test -z "$ac_dir" && ac_dir=.
1834 if test -f $ac_dir/$ac_word; then
1835 ac_cv_path_vipath="$ac_dir/$ac_word"
1840 test -z "$ac_cv_path_vipath" && ac_cv_path_vipath="no"
1844 vipath="$ac_cv_path_vipath"
1845 if test -n "$vipath"; then
1846 echo "$ac_t""$vipath" 1>&6
1848 echo "$ac_t""no" 1>&6
1852 if test -z "$editorpath"; then
1853 editorpath="$vipath"
1856 echo $ac_n "checking for broken vi""... $ac_c" 1>&6
1857 echo "configure:1858: checking for broken vi" >&5
1858 if eval "test \"`echo '$''{'nmh_cv_attvibug'+set}'`\" = set"; then
1859 echo $ac_n "(cached) $ac_c" 1>&6
1861 if echo 'r /nonexist-file
1862 q' | ex > /dev/null 2>&1
1870 echo "$ac_t""$nmh_cv_attvibug" 1>&6
1872 if test "$nmh_cv_attvibug" = yes; then
1873 cat >> confdefs.h <<\EOF
1878 echo $ac_n "checking where mail spool is located""... $ac_c" 1>&6
1879 echo "configure:1880: checking where mail spool is located" >&5
1880 if eval "test \"`echo '$''{'nmh_cv_mailspool'+set}'`\" = set"; then
1881 echo $ac_n "(cached) $ac_c" 1>&6
1883 for mailspool in /var/mail /var/spool/mail /usr/spool/mail /dev/null; do
1884 test -d $mailspool && break
1886 nmh_cv_mailspool=$mailspool
1890 echo "$ac_t""$nmh_cv_mailspool" 1>&6
1891 mailspool=$nmh_cv_mailspool
1893 if test "$lspath" != "no" -a "$cutpath" != "no"; then
1894 echo $ac_n "checking whether the mail spool is world-writable""... $ac_c" 1>&6
1895 echo "configure:1896: checking whether the mail spool is world-writable" >&5
1896 if eval "test \"`echo '$''{'nmh_cv_mailspool_world_writable'+set}'`\" = set"; then
1897 echo $ac_n "(cached) $ac_c" 1>&6
1899 if test "`$lspath -dlL $mailspool | $cutpath -c9`" = "-"; then
1900 nmh_cv_mailspool_world_writable=no
1902 nmh_cv_mailspool_world_writable=yes
1906 echo "$ac_t""$nmh_cv_mailspool_world_writable" 1>&6
1909 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1910 echo "configure:1911: checking how to run the C preprocessor" >&5
1911 # On Suns, sometimes $CPP names a directory.
1912 if test -n "$CPP" && test -d "$CPP"; then
1915 if test -z "$CPP"; then
1916 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1917 echo $ac_n "(cached) $ac_c" 1>&6
1919 # This must be in double quotes, not single quotes, because CPP may get
1920 # substituted into the Makefile and "${CC-cc}" will confuse make.
1922 # On the NeXT, cc -E runs the code through the compiler's parser,
1923 # not just through cpp.
1924 cat > conftest.$ac_ext <<EOF
1925 #line 1926 "configure"
1926 #include "confdefs.h"
1930 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1931 { (eval echo configure:1932: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1932 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1933 if test -z "$ac_err"; then
1937 echo "configure: failed program was:" >&5
1938 cat conftest.$ac_ext >&5
1940 CPP="${CC-cc} -E -traditional-cpp"
1941 cat > conftest.$ac_ext <<EOF
1942 #line 1943 "configure"
1943 #include "confdefs.h"
1947 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1948 { (eval echo configure:1949: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1949 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1950 if test -z "$ac_err"; then
1954 echo "configure: failed program was:" >&5
1955 cat conftest.$ac_ext >&5
1957 CPP="${CC-cc} -nologo -E"
1958 cat > conftest.$ac_ext <<EOF
1959 #line 1960 "configure"
1960 #include "confdefs.h"
1964 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1965 { (eval echo configure:1966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1966 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1967 if test -z "$ac_err"; then
1971 echo "configure: failed program was:" >&5
1972 cat conftest.$ac_ext >&5
1981 ac_cv_prog_CPP="$CPP"
1983 CPP="$ac_cv_prog_CPP"
1985 ac_cv_prog_CPP="$CPP"
1987 echo "$ac_t""$CPP" 1>&6
1989 ac_safe=`echo "lockfile.h" | sed 'y%./+-%__p_%'`
1990 echo $ac_n "checking for lockfile.h""... $ac_c" 1>&6
1991 echo "configure:1992: checking for lockfile.h" >&5
1992 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1993 echo $ac_n "(cached) $ac_c" 1>&6
1995 cat > conftest.$ac_ext <<EOF
1996 #line 1997 "configure"
1997 #include "confdefs.h"
1998 #include <lockfile.h>
2000 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2001 { (eval echo configure:2002: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2002 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2003 if test -z "$ac_err"; then
2005 eval "ac_cv_header_$ac_safe=yes"
2008 echo "configure: failed program was:" >&5
2009 cat conftest.$ac_ext >&5
2011 eval "ac_cv_header_$ac_safe=no"
2015 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2016 echo "$ac_t""yes" 1>&6
2017 echo $ac_n "checking for lockfile_create in -llockfile""... $ac_c" 1>&6
2018 echo "configure:2019: checking for lockfile_create in -llockfile" >&5
2019 ac_lib_var=`echo lockfile'_'lockfile_create | sed 'y%./+-%__p_%'`
2020 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2021 echo $ac_n "(cached) $ac_c" 1>&6
2023 ac_save_LIBS="$LIBS"
2024 LIBS="-llockfile $LIBS"
2025 cat > conftest.$ac_ext <<EOF
2026 #line 2027 "configure"
2027 #include "confdefs.h"
2028 /* Override any gcc2 internal prototype to avoid an error. */
2029 /* We use char because int might match the return type of a gcc2
2030 builtin and then its argument prototype would still apply. */
2031 char lockfile_create();
2037 if { (eval echo configure:2038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2039 eval "ac_cv_lib_$ac_lib_var=yes"
2041 echo "configure: failed program was:" >&5
2042 cat conftest.$ac_ext >&5
2044 eval "ac_cv_lib_$ac_lib_var=no"
2047 LIBS="$ac_save_LIBS"
2050 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2051 echo "$ac_t""yes" 1>&6
2052 ac_tr_lib=HAVE_LIB`echo lockfile | sed -e 's/^a-zA-Z0-9_/_/g' \
2053 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2054 cat >> confdefs.h <<EOF
2055 #define $ac_tr_lib 1
2058 LIBS="-llockfile $LIBS"
2061 echo "$ac_t""no" 1>&6
2065 echo "$ac_t""no" 1>&6
2069 # Extract the first word of "dotlockfile", so it can be a program name with args.
2070 set dummy dotlockfile; ac_word=$2
2071 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2072 echo "configure:2073: checking for $ac_word" >&5
2073 if eval "test \"`echo '$''{'ac_cv_path_dotlockfilepath'+set}'`\" = set"; then
2074 echo $ac_n "(cached) $ac_c" 1>&6
2076 case "$dotlockfilepath" in
2078 ac_cv_path_dotlockfilepath="$dotlockfilepath" # Let the user override the test with a path.
2081 ac_cv_path_dotlockfilepath="$dotlockfilepath" # Let the user override the test with a dos path.
2084 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2086 for ac_dir in $ac_dummy; do
2087 test -z "$ac_dir" && ac_dir=.
2088 if test -f $ac_dir/$ac_word; then
2089 ac_cv_path_dotlockfilepath="$ac_dir/$ac_word"
2094 test -z "$ac_cv_path_dotlockfilepath" && ac_cv_path_dotlockfilepath="no"
2098 dotlockfilepath="$ac_cv_path_dotlockfilepath"
2099 if test -n "$dotlockfilepath"; then
2100 echo "$ac_t""$dotlockfilepath" 1>&6
2102 echo "$ac_t""no" 1>&6
2105 if test "$ac_cv_lib_lockfile_lockfile_create" != "no" ; then
2106 if test "$ac_cv_path_dotlockfilepath" != "no" ; then
2107 echo $ac_n "checking whether dotlockfile is setgid""... $ac_c" 1>&6
2108 echo "configure:2109: checking whether dotlockfile is setgid" >&5
2109 if eval "test \"`echo '$''{'nmh_cv_dotlockfile_setgid'+set}'`\" = set"; then
2110 echo $ac_n "(cached) $ac_c" 1>&6
2112 if test -g "$ac_cv_path_dotlockfilepath" ; then
2113 nmh_cv_dotlockfile_setgid=yes
2115 nmh_cv_dotlockfile_setgid=no
2119 echo "$ac_t""$nmh_cv_dotlockfile_setgid" 1>&6
2123 if test x"$nmh_cv_mailspool_world_writable" = x"no" -a x"$nmh_cv_dotlockfile_setgid" != x"yes" ; then
2124 cat >> confdefs.h <<\EOF
2130 echo $ac_n "checking what group owns the mail spool""... $ac_c" 1>&6
2131 echo "configure:2132: checking what group owns the mail spool" >&5
2132 if eval "test \"`echo '$''{'nmh_cv_ls_mail_grp'+set}'`\" = set"; then
2133 echo $ac_n "(cached) $ac_c" 1>&6
2135 nmh_cv_ls_mail_grp=`$lspath -dL $nmh_cv_ls_grpopt $mailspool|$AWK '{print $4}'`
2139 echo "$ac_t""$nmh_cv_ls_mail_grp" 1>&6
2140 MAIL_SPOOL_GRP=$nmh_cv_ls_mail_grp
2143 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2145 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2146 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2147 echo "configure:2148: checking for $ac_hdr that defines DIR" >&5
2148 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2149 echo $ac_n "(cached) $ac_c" 1>&6
2151 cat > conftest.$ac_ext <<EOF
2152 #line 2153 "configure"
2153 #include "confdefs.h"
2154 #include <sys/types.h>
2160 if { (eval echo configure:2161: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2162 eval "ac_cv_header_dirent_$ac_safe=yes"
2164 echo "configure: failed program was:" >&5
2165 cat conftest.$ac_ext >&5
2167 eval "ac_cv_header_dirent_$ac_safe=no"
2171 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2172 echo "$ac_t""yes" 1>&6
2173 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2174 cat >> confdefs.h <<EOF
2175 #define $ac_tr_hdr 1
2177 ac_header_dirent=$ac_hdr; break
2179 echo "$ac_t""no" 1>&6
2182 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2183 if test $ac_header_dirent = dirent.h; then
2184 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2185 echo "configure:2186: checking for opendir in -ldir" >&5
2186 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2187 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2188 echo $ac_n "(cached) $ac_c" 1>&6
2190 ac_save_LIBS="$LIBS"
2192 cat > conftest.$ac_ext <<EOF
2193 #line 2194 "configure"
2194 #include "confdefs.h"
2195 /* Override any gcc2 internal prototype to avoid an error. */
2196 /* We use char because int might match the return type of a gcc2
2197 builtin and then its argument prototype would still apply. */
2204 if { (eval echo configure:2205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2206 eval "ac_cv_lib_$ac_lib_var=yes"
2208 echo "configure: failed program was:" >&5
2209 cat conftest.$ac_ext >&5
2211 eval "ac_cv_lib_$ac_lib_var=no"
2214 LIBS="$ac_save_LIBS"
2217 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2218 echo "$ac_t""yes" 1>&6
2221 echo "$ac_t""no" 1>&6
2225 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2226 echo "configure:2227: checking for opendir in -lx" >&5
2227 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2228 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2229 echo $ac_n "(cached) $ac_c" 1>&6
2231 ac_save_LIBS="$LIBS"
2233 cat > conftest.$ac_ext <<EOF
2234 #line 2235 "configure"
2235 #include "confdefs.h"
2236 /* Override any gcc2 internal prototype to avoid an error. */
2237 /* We use char because int might match the return type of a gcc2
2238 builtin and then its argument prototype would still apply. */
2245 if { (eval echo configure:2246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2247 eval "ac_cv_lib_$ac_lib_var=yes"
2249 echo "configure: failed program was:" >&5
2250 cat conftest.$ac_ext >&5
2252 eval "ac_cv_lib_$ac_lib_var=no"
2255 LIBS="$ac_save_LIBS"
2258 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2259 echo "$ac_t""yes" 1>&6
2262 echo "$ac_t""no" 1>&6
2267 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2268 echo "configure:2269: checking for ANSI C header files" >&5
2269 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2270 echo $ac_n "(cached) $ac_c" 1>&6
2272 cat > conftest.$ac_ext <<EOF
2273 #line 2274 "configure"
2274 #include "confdefs.h"
2280 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2281 { (eval echo configure:2282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2282 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2283 if test -z "$ac_err"; then
2285 ac_cv_header_stdc=yes
2288 echo "configure: failed program was:" >&5
2289 cat conftest.$ac_ext >&5
2291 ac_cv_header_stdc=no
2295 if test $ac_cv_header_stdc = yes; then
2296 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2297 cat > conftest.$ac_ext <<EOF
2298 #line 2299 "configure"
2299 #include "confdefs.h"
2302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2303 egrep "memchr" >/dev/null 2>&1; then
2307 ac_cv_header_stdc=no
2313 if test $ac_cv_header_stdc = yes; then
2314 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2315 cat > conftest.$ac_ext <<EOF
2316 #line 2317 "configure"
2317 #include "confdefs.h"
2320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2321 egrep "free" >/dev/null 2>&1; then
2325 ac_cv_header_stdc=no
2331 if test $ac_cv_header_stdc = yes; then
2332 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2333 if test "$cross_compiling" = yes; then
2336 cat > conftest.$ac_ext <<EOF
2337 #line 2338 "configure"
2338 #include "confdefs.h"
2340 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2341 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2342 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2343 int main () { int i; for (i = 0; i < 256; i++)
2344 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2348 if { (eval echo configure:2349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2352 echo "configure: failed program was:" >&5
2353 cat conftest.$ac_ext >&5
2355 ac_cv_header_stdc=no
2363 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2364 if test $ac_cv_header_stdc = yes; then
2365 cat >> confdefs.h <<\EOF
2366 #define STDC_HEADERS 1
2371 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2372 echo "configure:2373: checking whether time.h and sys/time.h may both be included" >&5
2373 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2374 echo $ac_n "(cached) $ac_c" 1>&6
2376 cat > conftest.$ac_ext <<EOF
2377 #line 2378 "configure"
2378 #include "confdefs.h"
2379 #include <sys/types.h>
2380 #include <sys/time.h>
2386 if { (eval echo configure:2387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2388 ac_cv_header_time=yes
2390 echo "configure: failed program was:" >&5
2391 cat conftest.$ac_ext >&5
2393 ac_cv_header_time=no
2398 echo "$ac_t""$ac_cv_header_time" 1>&6
2399 if test $ac_cv_header_time = yes; then
2400 cat >> confdefs.h <<\EOF
2401 #define TIME_WITH_SYS_TIME 1
2406 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2407 echo "configure:2408: checking for sys/wait.h that is POSIX.1 compatible" >&5
2408 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2409 echo $ac_n "(cached) $ac_c" 1>&6
2411 cat > conftest.$ac_ext <<EOF
2412 #line 2413 "configure"
2413 #include "confdefs.h"
2414 #include <sys/types.h>
2415 #include <sys/wait.h>
2417 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2420 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2425 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2428 if { (eval echo configure:2429: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2430 ac_cv_header_sys_wait_h=yes
2432 echo "configure: failed program was:" >&5
2433 cat conftest.$ac_ext >&5
2435 ac_cv_header_sys_wait_h=no
2440 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2441 if test $ac_cv_header_sys_wait_h = yes; then
2442 cat >> confdefs.h <<\EOF
2443 #define HAVE_SYS_WAIT_H 1
2448 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
2449 echo "configure:2450: checking whether stat file-mode macros are broken" >&5
2450 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
2451 echo $ac_n "(cached) $ac_c" 1>&6
2453 cat > conftest.$ac_ext <<EOF
2454 #line 2455 "configure"
2455 #include "confdefs.h"
2456 #include <sys/types.h>
2457 #include <sys/stat.h>
2459 #if defined(S_ISBLK) && defined(S_IFDIR)
2460 # if S_ISBLK (S_IFDIR)
2465 #if defined(S_ISBLK) && defined(S_IFCHR)
2466 # if S_ISBLK (S_IFCHR)
2471 #if defined(S_ISLNK) && defined(S_IFREG)
2472 # if S_ISLNK (S_IFREG)
2477 #if defined(S_ISSOCK) && defined(S_IFREG)
2478 # if S_ISSOCK (S_IFREG)
2484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2485 egrep "You lose" >/dev/null 2>&1; then
2487 ac_cv_header_stat_broken=yes
2490 ac_cv_header_stat_broken=no
2496 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
2497 if test $ac_cv_header_stat_broken = yes; then
2498 cat >> confdefs.h <<\EOF
2499 #define STAT_MACROS_BROKEN 1
2504 for ac_hdr in string.h memory.h stdlib.h unistd.h errno.h fcntl.h \
2505 limits.h crypt.h termcap.h termio.h termios.h locale.h \
2506 netdb.h sys/param.h sys/time.h sys/utsname.h arpa/inet.h \
2509 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2510 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2511 echo "configure:2512: checking for $ac_hdr" >&5
2512 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2513 echo $ac_n "(cached) $ac_c" 1>&6
2515 cat > conftest.$ac_ext <<EOF
2516 #line 2517 "configure"
2517 #include "confdefs.h"
2520 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2521 { (eval echo configure:2522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2522 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2523 if test -z "$ac_err"; then
2525 eval "ac_cv_header_$ac_safe=yes"
2528 echo "configure: failed program was:" >&5
2529 cat conftest.$ac_ext >&5
2531 eval "ac_cv_header_$ac_safe=no"
2535 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2536 echo "$ac_t""yes" 1>&6
2537 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2538 cat >> confdefs.h <<EOF
2539 #define $ac_tr_hdr 1
2543 echo "$ac_t""no" 1>&6
2549 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
2550 echo "configure:2551: checking POSIX termios" >&5
2551 if eval "test \"`echo '$''{'nmh_cv_sys_posix_termios'+set}'`\" = set"; then
2552 echo $ac_n "(cached) $ac_c" 1>&6
2554 cat > conftest.$ac_ext <<EOF
2555 #line 2556 "configure"
2556 #include "confdefs.h"
2557 #include <sys/types.h>
2559 #include <termios.h>
2561 /* SunOS 4.0.3 has termios.h but not the library calls. */
2565 if { (eval echo configure:2566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2567 nmh_cv_sys_posix_termios=yes
2569 echo "configure: failed program was:" >&5
2570 cat conftest.$ac_ext >&5
2572 nmh_cv_sys_posix_termios=no
2577 echo "$ac_t""$nmh_cv_sys_posix_termios" 1>&6
2579 if test $nmh_cv_sys_posix_termios = yes; then
2580 echo $ac_n "checking TIOCGWINSZ in termios.h""... $ac_c" 1>&6
2581 echo "configure:2582: checking TIOCGWINSZ in termios.h" >&5
2582 if eval "test \"`echo '$''{'nmh_cv_header_termios_h_tiocgwinsz'+set}'`\" = set"; then
2583 echo $ac_n "(cached) $ac_c" 1>&6
2585 cat > conftest.$ac_ext <<EOF
2586 #line 2587 "configure"
2587 #include "confdefs.h"
2588 #include <sys/types.h>
2589 #include <termios.h>
2594 if { (eval echo configure:2595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2596 nmh_cv_header_termios_h_tiocgwinsz=yes
2598 echo "configure: failed program was:" >&5
2599 cat conftest.$ac_ext >&5
2601 nmh_cv_header_termios_h_tiocgwinsz=no
2606 echo "$ac_t""$nmh_cv_header_termios_h_tiocgwinsz" 1>&6
2608 nmh_cv_header_termios_h_tiocgwinsz=no
2611 if test $nmh_cv_header_termios_h_tiocgwinsz = no; then
2612 echo $ac_n "checking TIOCGWINSZ in sys/ioctl.h""... $ac_c" 1>&6
2613 echo "configure:2614: checking TIOCGWINSZ in sys/ioctl.h" >&5
2614 if eval "test \"`echo '$''{'nmh_cv_header_sys_ioctl_h_tiocgwinsz'+set}'`\" = set"; then
2615 echo $ac_n "(cached) $ac_c" 1>&6
2617 cat > conftest.$ac_ext <<EOF
2618 #line 2619 "configure"
2619 #include "confdefs.h"
2620 #include <sys/types.h>
2621 #include <sys/ioctl.h>
2626 if { (eval echo configure:2627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2628 nmh_cv_header_sys_ioctl_h_tiocgwinsz=yes
2630 echo "configure: failed program was:" >&5
2631 cat conftest.$ac_ext >&5
2633 nmh_cv_header_sys_ioctl_h_tiocgwinsz=no
2638 echo "$ac_t""$nmh_cv_header_sys_ioctl_h_tiocgwinsz" 1>&6
2639 if test $nmh_cv_header_sys_ioctl_h_tiocgwinsz = yes; then
2640 cat >> confdefs.h <<\EOF
2641 #define GWINSZ_IN_SYS_IOCTL 1
2646 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2647 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2648 echo "configure:2649: checking for libio.h" >&5
2649 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2650 echo $ac_n "(cached) $ac_c" 1>&6
2652 cat > conftest.$ac_ext <<EOF
2653 #line 2654 "configure"
2654 #include "confdefs.h"
2657 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2658 { (eval echo configure:2659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2659 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2660 if test -z "$ac_err"; then
2662 eval "ac_cv_header_$ac_safe=yes"
2665 echo "configure: failed program was:" >&5
2666 cat conftest.$ac_ext >&5
2668 eval "ac_cv_header_$ac_safe=no"
2672 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2673 echo "$ac_t""yes" 1>&6
2675 cat > conftest.$ac_ext <<EOF
2676 #line 2677 "configure"
2677 #include "confdefs.h"
2680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2681 egrep "_IO_write_ptr" >/dev/null 2>&1; then
2684 cat >> confdefs.h <<\EOF
2685 #define LINUX_STDIO 1
2692 echo "$ac_t""no" 1>&6
2696 ac_safe=`echo "sys/ptem.h" | sed 'y%./+-%__p_%'`
2697 echo $ac_n "checking for sys/ptem.h""... $ac_c" 1>&6
2698 echo "configure:2699: checking for sys/ptem.h" >&5
2699 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2700 echo $ac_n "(cached) $ac_c" 1>&6
2702 cat > conftest.$ac_ext <<EOF
2703 #line 2704 "configure"
2704 #include "confdefs.h"
2705 #include <sys/ptem.h>
2707 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2708 { (eval echo configure:2709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2709 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2710 if test -z "$ac_err"; then
2712 eval "ac_cv_header_$ac_safe=yes"
2715 echo "configure: failed program was:" >&5
2716 cat conftest.$ac_ext >&5
2718 eval "ac_cv_header_$ac_safe=no"
2722 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2723 echo "$ac_t""yes" 1>&6
2724 cat >> confdefs.h <<\EOF
2725 #define WINSIZE_IN_PTEM 1
2729 echo "$ac_t""no" 1>&6
2733 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2734 echo "configure:2735: checking for pid_t" >&5
2735 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2736 echo $ac_n "(cached) $ac_c" 1>&6
2738 cat > conftest.$ac_ext <<EOF
2739 #line 2740 "configure"
2740 #include "confdefs.h"
2741 #include <sys/types.h>
2747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2748 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2750 ac_cv_type_pid_t=yes
2758 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2759 if test $ac_cv_type_pid_t = no; then
2760 cat >> confdefs.h <<\EOF
2766 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2767 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2768 echo "configure:2769: checking for vfork.h" >&5
2769 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2770 echo $ac_n "(cached) $ac_c" 1>&6
2772 cat > conftest.$ac_ext <<EOF
2773 #line 2774 "configure"
2774 #include "confdefs.h"
2777 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2778 { (eval echo configure:2779: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2779 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2780 if test -z "$ac_err"; then
2782 eval "ac_cv_header_$ac_safe=yes"
2785 echo "configure: failed program was:" >&5
2786 cat conftest.$ac_ext >&5
2788 eval "ac_cv_header_$ac_safe=no"
2792 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2793 echo "$ac_t""yes" 1>&6
2794 cat >> confdefs.h <<\EOF
2795 #define HAVE_VFORK_H 1
2799 echo "$ac_t""no" 1>&6
2802 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2803 echo "configure:2804: checking for working vfork" >&5
2804 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2805 echo $ac_n "(cached) $ac_c" 1>&6
2807 if test "$cross_compiling" = yes; then
2808 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2809 echo "configure:2810: checking for vfork" >&5
2810 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2811 echo $ac_n "(cached) $ac_c" 1>&6
2813 cat > conftest.$ac_ext <<EOF
2814 #line 2815 "configure"
2815 #include "confdefs.h"
2816 /* System header to define __stub macros and hopefully few prototypes,
2817 which can conflict with char vfork(); below. */
2819 /* Override any gcc2 internal prototype to avoid an error. */
2820 /* We use char because int might match the return type of a gcc2
2821 builtin and then its argument prototype would still apply. */
2826 /* The GNU C library defines this for functions which it implements
2827 to always fail with ENOSYS. Some functions are actually named
2828 something starting with __ and the normal name is an alias. */
2829 #if defined (__stub_vfork) || defined (__stub___vfork)
2837 if { (eval echo configure:2838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2839 eval "ac_cv_func_vfork=yes"
2841 echo "configure: failed program was:" >&5
2842 cat conftest.$ac_ext >&5
2844 eval "ac_cv_func_vfork=no"
2849 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2850 echo "$ac_t""yes" 1>&6
2853 echo "$ac_t""no" 1>&6
2856 ac_cv_func_vfork_works=$ac_cv_func_vfork
2858 cat > conftest.$ac_ext <<EOF
2859 #line 2860 "configure"
2860 #include "confdefs.h"
2861 /* Thanks to Paul Eggert for this test. */
2863 #include <sys/types.h>
2864 #include <sys/stat.h>
2865 #ifdef HAVE_UNISTD_H
2871 /* On some sparc systems, changes by the child to local and incoming
2872 argument registers are propagated back to the parent.
2873 The compiler is told about this with #include <vfork.h>,
2874 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2875 Test for this by using a static variable whose address
2876 is put into a register that is clobbered by the vfork. */
2879 sparc_address_test (int arg)
2881 sparc_address_test (arg) int arg;
2899 pid_t parent = getpid ();
2902 sparc_address_test ();
2907 /* Here is another test for sparc vfork register problems.
2908 This test uses lots of local variables, at least
2909 as many local variables as main has allocated so far
2910 including compiler temporaries. 4 locals are enough for
2911 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2912 A buggy compiler should reuse the register of parent
2913 for one of the local variables, since it will think that
2914 parent can't possibly be used any more in this routine.
2915 Assigning to the local variable will thus munge parent
2916 in the parent process. */
2918 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2919 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2920 /* Convince the compiler that p..p7 are live; otherwise, it might
2921 use the same hardware register for all 8 local variables. */
2922 if (p != p1 || p != p2 || p != p3 || p != p4
2923 || p != p5 || p != p6 || p != p7)
2926 /* On some systems (e.g. IRIX 3.3),
2927 vfork doesn't separate parent from child file descriptors.
2928 If the child closes a descriptor before it execs or exits,
2929 this munges the parent's descriptor as well.
2930 Test for this by closing stdout in the child. */
2931 _exit(close(fileno(stdout)) != 0);
2936 while (wait(&status) != child)
2939 /* Was there some problem with vforking? */
2942 /* Did the child fail? (This shouldn't happen.) */
2945 /* Did the vfork/compiler bug occur? */
2946 || parent != getpid()
2948 /* Did the file descriptor bug occur? */
2949 || fstat(fileno(stdout), &st) != 0
2954 if { (eval echo configure:2955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2956 ac_cv_func_vfork_works=yes
2958 echo "configure: failed program was:" >&5
2959 cat conftest.$ac_ext >&5
2961 ac_cv_func_vfork_works=no
2968 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2969 if test $ac_cv_func_vfork_works = no; then
2970 cat >> confdefs.h <<\EOF
2976 echo $ac_n "checking for mkstemp in -lmkstemp""... $ac_c" 1>&6
2977 echo "configure:2978: checking for mkstemp in -lmkstemp" >&5
2978 ac_lib_var=`echo mkstemp'_'mkstemp | sed 'y%./+-%__p_%'`
2979 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2980 echo $ac_n "(cached) $ac_c" 1>&6
2982 ac_save_LIBS="$LIBS"
2983 LIBS="-lmkstemp $LIBS"
2984 cat > conftest.$ac_ext <<EOF
2985 #line 2986 "configure"
2986 #include "confdefs.h"
2987 /* Override any gcc2 internal prototype to avoid an error. */
2988 /* We use char because int might match the return type of a gcc2
2989 builtin and then its argument prototype would still apply. */
2996 if { (eval echo configure:2997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2998 eval "ac_cv_lib_$ac_lib_var=yes"
3000 echo "configure: failed program was:" >&5
3001 cat conftest.$ac_ext >&5
3003 eval "ac_cv_lib_$ac_lib_var=no"
3006 LIBS="$ac_save_LIBS"
3009 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3010 echo "$ac_t""yes" 1>&6
3011 ac_tr_lib=HAVE_LIB`echo mkstemp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3012 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3013 cat >> confdefs.h <<EOF
3014 #define $ac_tr_lib 1
3017 LIBS="-lmkstemp $LIBS"
3020 echo "$ac_t""no" 1>&6
3023 for ac_func in waitpid wait3 sigaction sigprocmask sigblock sigsetmask \
3024 sighold sigrelse writev lstat uname tzset killpg mkstemp \
3027 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3028 echo "configure:3029: checking for $ac_func" >&5
3029 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3030 echo $ac_n "(cached) $ac_c" 1>&6
3032 cat > conftest.$ac_ext <<EOF
3033 #line 3034 "configure"
3034 #include "confdefs.h"
3035 /* System header to define __stub macros and hopefully few prototypes,
3036 which can conflict with char $ac_func(); below. */
3038 /* Override any gcc2 internal prototype to avoid an error. */
3039 /* We use char because int might match the return type of a gcc2
3040 builtin and then its argument prototype would still apply. */
3045 /* The GNU C library defines this for functions which it implements
3046 to always fail with ENOSYS. Some functions are actually named
3047 something starting with __ and the normal name is an alias. */
3048 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3056 if { (eval echo configure:3057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3058 eval "ac_cv_func_$ac_func=yes"
3060 echo "configure: failed program was:" >&5
3061 cat conftest.$ac_ext >&5
3063 eval "ac_cv_func_$ac_func=no"
3068 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3069 echo "$ac_t""yes" 1>&6
3070 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3071 cat >> confdefs.h <<EOF
3072 #define $ac_tr_func 1
3076 echo "$ac_t""no" 1>&6
3081 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3082 echo "configure:3083: checking for gethostbyname" >&5
3083 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3084 echo $ac_n "(cached) $ac_c" 1>&6
3086 cat > conftest.$ac_ext <<EOF
3087 #line 3088 "configure"
3088 #include "confdefs.h"
3089 /* System header to define __stub macros and hopefully few prototypes,
3090 which can conflict with char gethostbyname(); below. */
3092 /* Override any gcc2 internal prototype to avoid an error. */
3093 /* We use char because int might match the return type of a gcc2
3094 builtin and then its argument prototype would still apply. */
3095 char gethostbyname();
3099 /* The GNU C library defines this for functions which it implements
3100 to always fail with ENOSYS. Some functions are actually named
3101 something starting with __ and the normal name is an alias. */
3102 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3110 if { (eval echo configure:3111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3112 eval "ac_cv_func_gethostbyname=yes"
3114 echo "configure: failed program was:" >&5
3115 cat conftest.$ac_ext >&5
3117 eval "ac_cv_func_gethostbyname=no"
3122 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3123 echo "$ac_t""yes" 1>&6
3124 cat >> confdefs.h <<\EOF
3125 #define HAVE_GETHOSTBYNAME 1
3129 echo "$ac_t""no" 1>&6
3130 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3131 echo "configure:3132: checking for gethostbyname in -lnsl" >&5
3132 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3133 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3134 echo $ac_n "(cached) $ac_c" 1>&6
3136 ac_save_LIBS="$LIBS"
3138 cat > conftest.$ac_ext <<EOF
3139 #line 3140 "configure"
3140 #include "confdefs.h"
3141 /* Override any gcc2 internal prototype to avoid an error. */
3142 /* We use char because int might match the return type of a gcc2
3143 builtin and then its argument prototype would still apply. */
3144 char gethostbyname();
3150 if { (eval echo configure:3151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3152 eval "ac_cv_lib_$ac_lib_var=yes"
3154 echo "configure: failed program was:" >&5
3155 cat conftest.$ac_ext >&5
3157 eval "ac_cv_lib_$ac_lib_var=no"
3160 LIBS="$ac_save_LIBS"
3163 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3164 echo "$ac_t""yes" 1>&6
3165 cat >> confdefs.h <<\EOF
3166 #define HAVE_GETHOSTBYNAME 1
3170 echo "$ac_t""no" 1>&6
3176 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
3177 echo "configure:3178: checking for sigsetjmp" >&5
3178 cat > conftest.$ac_ext <<EOF
3179 #line 3180 "configure"
3180 #include "confdefs.h"
3183 sigsetjmp((void *)0, 0);
3186 if { (eval echo configure:3187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3188 cat >> confdefs.h <<\EOF
3189 #define HAVE_SIGSETJMP 1
3191 echo "$ac_t""yes" 1>&6
3193 echo "configure: failed program was:" >&5
3194 cat conftest.$ac_ext >&5
3196 echo "$ac_t""no" 1>&6
3200 for ac_func in snprintf strerror strdup
3202 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3203 echo "configure:3204: checking for $ac_func" >&5
3204 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3205 echo $ac_n "(cached) $ac_c" 1>&6
3207 cat > conftest.$ac_ext <<EOF
3208 #line 3209 "configure"
3209 #include "confdefs.h"
3210 /* System header to define __stub macros and hopefully few prototypes,
3211 which can conflict with char $ac_func(); below. */
3213 /* Override any gcc2 internal prototype to avoid an error. */
3214 /* We use char because int might match the return type of a gcc2
3215 builtin and then its argument prototype would still apply. */
3220 /* The GNU C library defines this for functions which it implements
3221 to always fail with ENOSYS. Some functions are actually named
3222 something starting with __ and the normal name is an alias. */
3223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3231 if { (eval echo configure:3232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3233 eval "ac_cv_func_$ac_func=yes"
3235 echo "configure: failed program was:" >&5
3236 cat conftest.$ac_ext >&5
3238 eval "ac_cv_func_$ac_func=no"
3243 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3244 echo "$ac_t""yes" 1>&6
3245 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3246 cat >> confdefs.h <<EOF
3247 #define $ac_tr_func 1
3251 echo "$ac_t""no" 1>&6
3252 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
3258 cat > conftest.$ac_ext <<EOF
3259 #line 3260 "configure"
3260 #include "confdefs.h"
3263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3264 egrep "initgroups" >/dev/null 2>&1; then
3266 cat >> confdefs.h <<\EOF
3267 #define INITGROUPS_HEADER <grp.h>
3272 cat > conftest.$ac_ext <<EOF
3273 #line 3274 "configure"
3274 #include "confdefs.h"
3277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3278 egrep "initgroups" >/dev/null 2>&1; then
3280 cat >> confdefs.h <<\EOF
3281 #define INITGROUPS_HEADER <unistd.h>
3291 cat > conftest.$ac_ext <<EOF
3292 #line 3293 "configure"
3293 #include "confdefs.h"
3296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3297 egrep "snprintf" >/dev/null 2>&1; then
3299 cat >> confdefs.h <<\EOF
3300 #define HAVE_SNPRINTF_PROTOTYPE 1
3307 echo $ac_n "checking for modf""... $ac_c" 1>&6
3308 echo "configure:3309: checking for modf" >&5
3309 if eval "test \"`echo '$''{'ac_cv_func_modf'+set}'`\" = set"; then
3310 echo $ac_n "(cached) $ac_c" 1>&6
3312 cat > conftest.$ac_ext <<EOF
3313 #line 3314 "configure"
3314 #include "confdefs.h"
3315 /* System header to define __stub macros and hopefully few prototypes,
3316 which can conflict with char modf(); below. */
3318 /* Override any gcc2 internal prototype to avoid an error. */
3319 /* We use char because int might match the return type of a gcc2
3320 builtin and then its argument prototype would still apply. */
3325 /* The GNU C library defines this for functions which it implements
3326 to always fail with ENOSYS. Some functions are actually named
3327 something starting with __ and the normal name is an alias. */
3328 #if defined (__stub_modf) || defined (__stub___modf)
3336 if { (eval echo configure:3337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3338 eval "ac_cv_func_modf=yes"
3340 echo "configure: failed program was:" >&5
3341 cat conftest.$ac_ext >&5
3343 eval "ac_cv_func_modf=no"
3348 if eval "test \"`echo '$ac_cv_func_'modf`\" = yes"; then
3349 echo "$ac_t""yes" 1>&6
3352 echo "$ac_t""no" 1>&6
3353 echo $ac_n "checking for modf in -lm""... $ac_c" 1>&6
3354 echo "configure:3355: checking for modf in -lm" >&5
3355 ac_lib_var=`echo m'_'modf | sed 'y%./+-%__p_%'`
3356 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3357 echo $ac_n "(cached) $ac_c" 1>&6
3359 ac_save_LIBS="$LIBS"
3361 cat > conftest.$ac_ext <<EOF
3362 #line 3363 "configure"
3363 #include "confdefs.h"
3364 /* Override any gcc2 internal prototype to avoid an error. */
3365 /* We use char because int might match the return type of a gcc2
3366 builtin and then its argument prototype would still apply. */
3373 if { (eval echo configure:3374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3375 eval "ac_cv_lib_$ac_lib_var=yes"
3377 echo "configure: failed program was:" >&5
3378 cat conftest.$ac_ext >&5
3380 eval "ac_cv_lib_$ac_lib_var=no"
3383 LIBS="$ac_save_LIBS"
3386 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3387 echo "$ac_t""yes" 1>&6
3388 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
3389 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3390 cat >> confdefs.h <<EOF
3391 #define $ac_tr_lib 1
3397 echo "$ac_t""no" 1>&6
3403 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3404 echo "configure:3405: checking for gethostbyname" >&5
3405 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3406 echo $ac_n "(cached) $ac_c" 1>&6
3408 cat > conftest.$ac_ext <<EOF
3409 #line 3410 "configure"
3410 #include "confdefs.h"
3411 /* System header to define __stub macros and hopefully few prototypes,
3412 which can conflict with char gethostbyname(); below. */
3414 /* Override any gcc2 internal prototype to avoid an error. */
3415 /* We use char because int might match the return type of a gcc2
3416 builtin and then its argument prototype would still apply. */
3417 char gethostbyname();
3421 /* The GNU C library defines this for functions which it implements
3422 to always fail with ENOSYS. Some functions are actually named
3423 something starting with __ and the normal name is an alias. */
3424 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3432 if { (eval echo configure:3433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3434 eval "ac_cv_func_gethostbyname=yes"
3436 echo "configure: failed program was:" >&5
3437 cat conftest.$ac_ext >&5
3439 eval "ac_cv_func_gethostbyname=no"
3444 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3445 echo "$ac_t""yes" 1>&6
3448 echo "$ac_t""no" 1>&6
3449 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3450 echo "configure:3451: checking for gethostbyname in -lnsl" >&5
3451 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3452 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3453 echo $ac_n "(cached) $ac_c" 1>&6
3455 ac_save_LIBS="$LIBS"
3457 cat > conftest.$ac_ext <<EOF
3458 #line 3459 "configure"
3459 #include "confdefs.h"
3460 /* Override any gcc2 internal prototype to avoid an error. */
3461 /* We use char because int might match the return type of a gcc2
3462 builtin and then its argument prototype would still apply. */
3463 char gethostbyname();
3469 if { (eval echo configure:3470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3471 eval "ac_cv_lib_$ac_lib_var=yes"
3473 echo "configure: failed program was:" >&5
3474 cat conftest.$ac_ext >&5
3476 eval "ac_cv_lib_$ac_lib_var=no"
3479 LIBS="$ac_save_LIBS"
3482 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3483 echo "$ac_t""yes" 1>&6
3484 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
3485 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3486 cat >> confdefs.h <<EOF
3487 #define $ac_tr_lib 1
3493 echo "$ac_t""no" 1>&6
3494 echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6
3495 echo "configure:3496: checking for gethostbyname in -lresolv" >&5
3496 ac_lib_var=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'`
3497 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3498 echo $ac_n "(cached) $ac_c" 1>&6
3500 ac_save_LIBS="$LIBS"
3501 LIBS="-lresolv $LIBS"
3502 cat > conftest.$ac_ext <<EOF
3503 #line 3504 "configure"
3504 #include "confdefs.h"
3505 /* Override any gcc2 internal prototype to avoid an error. */
3506 /* We use char because int might match the return type of a gcc2
3507 builtin and then its argument prototype would still apply. */
3508 char gethostbyname();
3514 if { (eval echo configure:3515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3516 eval "ac_cv_lib_$ac_lib_var=yes"
3518 echo "configure: failed program was:" >&5
3519 cat conftest.$ac_ext >&5
3521 eval "ac_cv_lib_$ac_lib_var=no"
3524 LIBS="$ac_save_LIBS"
3527 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3528 echo "$ac_t""yes" 1>&6
3529 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
3530 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3531 cat >> confdefs.h <<EOF
3532 #define $ac_tr_lib 1
3535 LIBS="-lresolv $LIBS"
3538 echo "$ac_t""no" 1>&6
3545 echo $ac_n "checking for socket""... $ac_c" 1>&6
3546 echo "configure:3547: checking for socket" >&5
3547 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
3548 echo $ac_n "(cached) $ac_c" 1>&6
3550 cat > conftest.$ac_ext <<EOF
3551 #line 3552 "configure"
3552 #include "confdefs.h"
3553 /* System header to define __stub macros and hopefully few prototypes,
3554 which can conflict with char socket(); below. */
3556 /* Override any gcc2 internal prototype to avoid an error. */
3557 /* We use char because int might match the return type of a gcc2
3558 builtin and then its argument prototype would still apply. */
3563 /* The GNU C library defines this for functions which it implements
3564 to always fail with ENOSYS. Some functions are actually named
3565 something starting with __ and the normal name is an alias. */
3566 #if defined (__stub_socket) || defined (__stub___socket)
3574 if { (eval echo configure:3575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3576 eval "ac_cv_func_socket=yes"
3578 echo "configure: failed program was:" >&5
3579 cat conftest.$ac_ext >&5
3581 eval "ac_cv_func_socket=no"
3586 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
3587 echo "$ac_t""yes" 1>&6
3590 echo "$ac_t""no" 1>&6
3591 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
3592 echo "configure:3593: checking for socket in -lsocket" >&5
3593 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
3594 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3595 echo $ac_n "(cached) $ac_c" 1>&6
3597 ac_save_LIBS="$LIBS"
3598 LIBS="-lsocket $LIBS"
3599 cat > conftest.$ac_ext <<EOF
3600 #line 3601 "configure"
3601 #include "confdefs.h"
3602 /* Override any gcc2 internal prototype to avoid an error. */
3603 /* We use char because int might match the return type of a gcc2
3604 builtin and then its argument prototype would still apply. */
3611 if { (eval echo configure:3612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3613 eval "ac_cv_lib_$ac_lib_var=yes"
3615 echo "configure: failed program was:" >&5
3616 cat conftest.$ac_ext >&5
3618 eval "ac_cv_lib_$ac_lib_var=no"
3621 LIBS="$ac_save_LIBS"
3624 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3625 echo "$ac_t""yes" 1>&6
3626 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
3627 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3628 cat >> confdefs.h <<EOF
3629 #define $ac_tr_lib 1
3632 LIBS="-lsocket $LIBS"
3635 echo "$ac_t""no" 1>&6
3642 termcap_curses_order="termcap curses ncurses"
3643 for lib in $termcap_curses_order; do
3644 echo $ac_n "checking for tgetent in -l${lib}""... $ac_c" 1>&6
3645 echo "configure:3646: checking for tgetent in -l${lib}" >&5
3646 ac_lib_var=`echo ${lib}'_'tgetent | sed 'y%./+-%__p_%'`
3647 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3648 echo $ac_n "(cached) $ac_c" 1>&6
3650 ac_save_LIBS="$LIBS"
3651 LIBS="-l${lib} $LIBS"
3652 cat > conftest.$ac_ext <<EOF
3653 #line 3654 "configure"
3654 #include "confdefs.h"
3655 /* Override any gcc2 internal prototype to avoid an error. */
3656 /* We use char because int might match the return type of a gcc2
3657 builtin and then its argument prototype would still apply. */
3664 if { (eval echo configure:3665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3666 eval "ac_cv_lib_$ac_lib_var=yes"
3668 echo "configure: failed program was:" >&5
3669 cat conftest.$ac_ext >&5
3671 eval "ac_cv_lib_$ac_lib_var=no"
3674 LIBS="$ac_save_LIBS"
3677 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3678 echo "$ac_t""yes" 1>&6
3679 TERMLIB="-l$lib"; break
3681 echo "$ac_t""no" 1>&6
3686 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
3687 echo "configure:3688: checking for dbm_open" >&5
3688 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
3689 echo $ac_n "(cached) $ac_c" 1>&6
3691 cat > conftest.$ac_ext <<EOF
3692 #line 3693 "configure"
3693 #include "confdefs.h"
3694 /* System header to define __stub macros and hopefully few prototypes,
3695 which can conflict with char dbm_open(); below. */
3697 /* Override any gcc2 internal prototype to avoid an error. */
3698 /* We use char because int might match the return type of a gcc2
3699 builtin and then its argument prototype would still apply. */
3704 /* The GNU C library defines this for functions which it implements
3705 to always fail with ENOSYS. Some functions are actually named
3706 something starting with __ and the normal name is an alias. */
3707 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
3715 if { (eval echo configure:3716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3717 eval "ac_cv_func_dbm_open=yes"
3719 echo "configure: failed program was:" >&5
3720 cat conftest.$ac_ext >&5
3722 eval "ac_cv_func_dbm_open=no"
3727 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
3728 echo "$ac_t""yes" 1>&6
3731 echo "$ac_t""no" 1>&6
3732 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
3733 echo "configure:3734: checking for dbm_open in -lndbm" >&5
3734 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
3735 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3736 echo $ac_n "(cached) $ac_c" 1>&6
3738 ac_save_LIBS="$LIBS"
3740 cat > conftest.$ac_ext <<EOF
3741 #line 3742 "configure"
3742 #include "confdefs.h"
3743 /* Override any gcc2 internal prototype to avoid an error. */
3744 /* We use char because int might match the return type of a gcc2
3745 builtin and then its argument prototype would still apply. */
3752 if { (eval echo configure:3753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3754 eval "ac_cv_lib_$ac_lib_var=yes"
3756 echo "configure: failed program was:" >&5
3757 cat conftest.$ac_ext >&5
3759 eval "ac_cv_lib_$ac_lib_var=no"
3762 LIBS="$ac_save_LIBS"
3765 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3766 echo "$ac_t""yes" 1>&6
3767 ac_tr_lib=HAVE_LIB`echo ndbm | sed -e 's/^a-zA-Z0-9_/_/g' \
3768 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3769 cat >> confdefs.h <<EOF
3770 #define $ac_tr_lib 1
3776 echo "$ac_t""no" 1>&6
3777 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
3778 echo "configure:3779: checking for dbm_open in -ldbm" >&5
3779 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
3780 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3781 echo $ac_n "(cached) $ac_c" 1>&6
3783 ac_save_LIBS="$LIBS"
3785 cat > conftest.$ac_ext <<EOF
3786 #line 3787 "configure"
3787 #include "confdefs.h"
3788 /* Override any gcc2 internal prototype to avoid an error. */
3789 /* We use char because int might match the return type of a gcc2
3790 builtin and then its argument prototype would still apply. */
3797 if { (eval echo configure:3798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3799 eval "ac_cv_lib_$ac_lib_var=yes"
3801 echo "configure: failed program was:" >&5
3802 cat conftest.$ac_ext >&5
3804 eval "ac_cv_lib_$ac_lib_var=no"
3807 LIBS="$ac_save_LIBS"
3810 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3811 echo "$ac_t""yes" 1>&6
3812 ac_tr_lib=HAVE_LIB`echo dbm | sed -e 's/^a-zA-Z0-9_/_/g' \
3813 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3814 cat >> confdefs.h <<EOF
3815 #define $ac_tr_lib 1
3821 echo "$ac_t""no" 1>&6
3829 for ac_hdr in db1/ndbm.h
3831 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3832 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3833 echo "configure:3834: checking for $ac_hdr" >&5
3834 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3835 echo $ac_n "(cached) $ac_c" 1>&6
3837 cat > conftest.$ac_ext <<EOF
3838 #line 3839 "configure"
3839 #include "confdefs.h"
3842 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3843 { (eval echo configure:3844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3844 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3845 if test -z "$ac_err"; then
3847 eval "ac_cv_header_$ac_safe=yes"
3850 echo "configure: failed program was:" >&5
3851 cat conftest.$ac_ext >&5
3853 eval "ac_cv_header_$ac_safe=no"
3857 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3858 echo "$ac_t""yes" 1>&6
3859 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3860 cat >> confdefs.h <<EOF
3861 #define $ac_tr_hdr 1
3865 echo "$ac_t""no" 1>&6
3870 if test x"$with_hesiod" != x -a x"$with_hesiod" != x"no"; then
3871 if test x"$with_hesiod" != x"yes"; then
3872 HESIOD_INCLUDES="-I$with_hesiod/include"
3873 HESIOD_LIBS="-L$with_hesiod/lib"
3875 echo $ac_n "checking for res_send""... $ac_c" 1>&6
3876 echo "configure:3877: checking for res_send" >&5
3877 if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then
3878 echo $ac_n "(cached) $ac_c" 1>&6
3880 cat > conftest.$ac_ext <<EOF
3881 #line 3882 "configure"
3882 #include "confdefs.h"
3883 /* System header to define __stub macros and hopefully few prototypes,
3884 which can conflict with char res_send(); below. */
3886 /* Override any gcc2 internal prototype to avoid an error. */
3887 /* We use char because int might match the return type of a gcc2
3888 builtin and then its argument prototype would still apply. */
3893 /* The GNU C library defines this for functions which it implements
3894 to always fail with ENOSYS. Some functions are actually named
3895 something starting with __ and the normal name is an alias. */
3896 #if defined (__stub_res_send) || defined (__stub___res_send)
3904 if { (eval echo configure:3905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3906 eval "ac_cv_func_res_send=yes"
3908 echo "configure: failed program was:" >&5
3909 cat conftest.$ac_ext >&5
3911 eval "ac_cv_func_res_send=no"
3916 if eval "test \"`echo '$ac_cv_func_'res_send`\" = yes"; then
3917 echo "$ac_t""yes" 1>&6
3918 echo $ac_n "checking for hes_resolve in -lhesiod""... $ac_c" 1>&6
3919 echo "configure:3920: checking for hes_resolve in -lhesiod" >&5
3920 ac_lib_var=`echo hesiod'_'hes_resolve | sed 'y%./+-%__p_%'`
3921 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3922 echo $ac_n "(cached) $ac_c" 1>&6
3924 ac_save_LIBS="$LIBS"
3925 LIBS="-lhesiod $HESIOD_LIBS $LIBS"
3926 cat > conftest.$ac_ext <<EOF
3927 #line 3928 "configure"
3928 #include "confdefs.h"
3929 /* Override any gcc2 internal prototype to avoid an error. */
3930 /* We use char because int might match the return type of a gcc2
3931 builtin and then its argument prototype would still apply. */
3938 if { (eval echo configure:3939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3940 eval "ac_cv_lib_$ac_lib_var=yes"
3942 echo "configure: failed program was:" >&5
3943 cat conftest.$ac_ext >&5
3945 eval "ac_cv_lib_$ac_lib_var=no"
3948 LIBS="$ac_save_LIBS"
3951 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3952 echo "$ac_t""yes" 1>&6
3953 HESIOD_LIBS="$HESIOD_LIBS -lhesiod"
3955 echo "$ac_t""no" 1>&6
3956 { echo "configure: error: Hesiod library not found" 1>&2; exit 1; }
3960 echo "$ac_t""no" 1>&6
3961 echo $ac_n "checking for hes_resolve in -lhesiod""... $ac_c" 1>&6
3962 echo "configure:3963: checking for hes_resolve in -lhesiod" >&5
3963 ac_lib_var=`echo hesiod'_'hes_resolve | sed 'y%./+-%__p_%'`
3964 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3965 echo $ac_n "(cached) $ac_c" 1>&6
3967 ac_save_LIBS="$LIBS"
3968 LIBS="-lhesiod $HESIOD_LIBS -lresolv $LIBS"
3969 cat > conftest.$ac_ext <<EOF
3970 #line 3971 "configure"
3971 #include "confdefs.h"
3972 /* Override any gcc2 internal prototype to avoid an error. */
3973 /* We use char because int might match the return type of a gcc2
3974 builtin and then its argument prototype would still apply. */
3981 if { (eval echo configure:3982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3983 eval "ac_cv_lib_$ac_lib_var=yes"
3985 echo "configure: failed program was:" >&5
3986 cat conftest.$ac_ext >&5
3988 eval "ac_cv_lib_$ac_lib_var=no"
3991 LIBS="$ac_save_LIBS"
3994 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3995 echo "$ac_t""yes" 1>&6
3996 HESIOD_LIBS="$HESIOD_LIBS -lhesiod -lresolv"
3998 echo "$ac_t""no" 1>&6
3999 { echo "configure: error: Hesiod library not found" 1>&2; exit 1; }
4007 if test x"$with_krb4" != x -a x"$with_krb4" != x"no"; then
4008 if test x"$with_krb4" != x"yes"; then
4009 KRB4_INCLUDES="-I$with_krb4/include"
4010 if test -d "$with_krb4/include/kerberosIV"; then
4011 KRB4_INCLUDES="$KRB4_INCLUDES -I$with_krb4/include/kerberosIV"
4013 KRB4_LIBS="-L$with_krb4/lib"
4014 elif test -d /usr/include/kerberosIV; then
4015 KRB4_INCLUDES="-I/usr/include/kerberosIV"
4018 echo $ac_n "checking for krb5_encrypt in -lk5crypto""... $ac_c" 1>&6
4019 echo "configure:4020: checking for krb5_encrypt in -lk5crypto" >&5
4020 ac_lib_var=`echo k5crypto'_'krb5_encrypt | sed 'y%./+-%__p_%'`
4021 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4022 echo $ac_n "(cached) $ac_c" 1>&6
4024 ac_save_LIBS="$LIBS"
4025 LIBS="-lk5crypto $KRB4_LIBS $LIBS"
4026 cat > conftest.$ac_ext <<EOF
4027 #line 4028 "configure"
4028 #include "confdefs.h"
4029 /* Override any gcc2 internal prototype to avoid an error. */
4030 /* We use char because int might match the return type of a gcc2
4031 builtin and then its argument prototype would still apply. */
4032 char krb5_encrypt();
4038 if { (eval echo configure:4039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4040 eval "ac_cv_lib_$ac_lib_var=yes"
4042 echo "configure: failed program was:" >&5
4043 cat conftest.$ac_ext >&5
4045 eval "ac_cv_lib_$ac_lib_var=no"
4048 LIBS="$ac_save_LIBS"
4051 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4052 echo "$ac_t""yes" 1>&6
4053 echo $ac_n "checking for krb_rd_req in -lkrb4""... $ac_c" 1>&6
4054 echo "configure:4055: checking for krb_rd_req in -lkrb4" >&5
4055 ac_lib_var=`echo krb4'_'krb_rd_req | sed 'y%./+-%__p_%'`
4056 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4057 echo $ac_n "(cached) $ac_c" 1>&6
4059 ac_save_LIBS="$LIBS"
4060 LIBS="-lkrb4 $KRB4_LIBS -ldes425 -lkrb5 -lk5crypto -lcom_err $LIBS"
4061 cat > conftest.$ac_ext <<EOF
4062 #line 4063 "configure"
4063 #include "confdefs.h"
4064 /* Override any gcc2 internal prototype to avoid an error. */
4065 /* We use char because int might match the return type of a gcc2
4066 builtin and then its argument prototype would still apply. */
4073 if { (eval echo configure:4074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4075 eval "ac_cv_lib_$ac_lib_var=yes"
4077 echo "configure: failed program was:" >&5
4078 cat conftest.$ac_ext >&5
4080 eval "ac_cv_lib_$ac_lib_var=no"
4083 LIBS="$ac_save_LIBS"
4086 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4087 echo "$ac_t""yes" 1>&6
4088 KRB4_LIBS="$KRB4_LIBS -lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err"
4090 echo "$ac_t""no" 1>&6
4091 { echo "configure: error: Kerberos 4 compatibility libraries not found" 1>&2; exit 1; }
4095 echo "$ac_t""no" 1>&6
4096 echo $ac_n "checking for krb_rd_req in -lkrb4""... $ac_c" 1>&6
4097 echo "configure:4098: checking for krb_rd_req in -lkrb4" >&5
4098 ac_lib_var=`echo krb4'_'krb_rd_req | sed 'y%./+-%__p_%'`
4099 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4100 echo $ac_n "(cached) $ac_c" 1>&6
4102 ac_save_LIBS="$LIBS"
4103 LIBS="-lkrb4 $KRB4_LIBS -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
4104 cat > conftest.$ac_ext <<EOF
4105 #line 4106 "configure"
4106 #include "confdefs.h"
4107 /* Override any gcc2 internal prototype to avoid an error. */
4108 /* We use char because int might match the return type of a gcc2
4109 builtin and then its argument prototype would still apply. */
4116 if { (eval echo configure:4117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4118 eval "ac_cv_lib_$ac_lib_var=yes"
4120 echo "configure: failed program was:" >&5
4121 cat conftest.$ac_ext >&5
4123 eval "ac_cv_lib_$ac_lib_var=no"
4126 LIBS="$ac_save_LIBS"
4129 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4130 echo "$ac_t""yes" 1>&6
4131 KRB4_LIBS="$KRB4_LIBS -lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err"
4133 echo "$ac_t""no" 1>&6
4134 echo $ac_n "checking for krb_rd_req in -lkrb""... $ac_c" 1>&6
4135 echo "configure:4136: checking for krb_rd_req in -lkrb" >&5
4136 ac_lib_var=`echo krb'_'krb_rd_req | sed 'y%./+-%__p_%'`
4137 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4138 echo $ac_n "(cached) $ac_c" 1>&6
4140 ac_save_LIBS="$LIBS"
4141 LIBS="-lkrb $KRB4_LIBS -ldes $LIBS"
4142 cat > conftest.$ac_ext <<EOF
4143 #line 4144 "configure"
4144 #include "confdefs.h"
4145 /* Override any gcc2 internal prototype to avoid an error. */
4146 /* We use char because int might match the return type of a gcc2
4147 builtin and then its argument prototype would still apply. */
4154 if { (eval echo configure:4155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4156 eval "ac_cv_lib_$ac_lib_var=yes"
4158 echo "configure: failed program was:" >&5
4159 cat conftest.$ac_ext >&5
4161 eval "ac_cv_lib_$ac_lib_var=no"
4164 LIBS="$ac_save_LIBS"
4167 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4168 echo "$ac_t""yes" 1>&6
4169 KRB4_LIBS="$KRB4_LIBS -lkrb -ldes"
4171 echo "$ac_t""no" 1>&6
4172 { echo "configure: error: Kerberos 4 libraries not found" 1>&2; exit 1; }
4182 if test x"$with_cyrus_sasl" != x -a x"$with_cyrus_sasl" != x"no"; then
4183 if test x"$with_cyrus_sasl" != x"yes"; then
4184 SASL_INCLUDES="-I$with_cyrus_sasl/include"
4185 SASL_LIBS="-L$with_cyrus_sasl/lib"
4187 case "$target_os" in
4189 SASL_LIBS="$SASL_LIBS -R$with_cyrus_sasl/lib"
4193 save_LDFLAGS="$LDFLAGS"
4194 LDFLAGS="$LDFLAGS $SASL_LIBS"
4195 echo $ac_n "checking for sasl_client_new in -lsasl""... $ac_c" 1>&6
4196 echo "configure:4197: checking for sasl_client_new in -lsasl" >&5
4197 ac_lib_var=`echo sasl'_'sasl_client_new | sed 'y%./+-%__p_%'`
4198 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4199 echo $ac_n "(cached) $ac_c" 1>&6
4201 ac_save_LIBS="$LIBS"
4203 cat > conftest.$ac_ext <<EOF
4204 #line 4205 "configure"
4205 #include "confdefs.h"
4206 /* Override any gcc2 internal prototype to avoid an error. */
4207 /* We use char because int might match the return type of a gcc2
4208 builtin and then its argument prototype would still apply. */
4209 char sasl_client_new();
4215 if { (eval echo configure:4216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4217 eval "ac_cv_lib_$ac_lib_var=yes"
4219 echo "configure: failed program was:" >&5
4220 cat conftest.$ac_ext >&5
4222 eval "ac_cv_lib_$ac_lib_var=no"
4225 LIBS="$ac_save_LIBS"
4228 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4229 echo "$ac_t""yes" 1>&6
4230 SASL_LIBS="$SASL_LIBS -lsasl"
4232 echo "$ac_t""no" 1>&6
4233 { echo "configure: error: Cyrus SASL library not found" 1>&2; exit 1; }
4236 LDFLAGS="$save_LDFLAGS"
4240 nmh_save_LIBS="$LIBS"
4241 LIBS="$TERMLIB $LIBS"
4243 echo $ac_n "checking if an include file defines ospeed""... $ac_c" 1>&6
4244 echo "configure:4245: checking if an include file defines ospeed" >&5
4245 if eval "test \"`echo '$''{'nmh_cv_decl_ospeed_include_defines'+set}'`\" = set"; then
4246 echo $ac_n "(cached) $ac_c" 1>&6
4248 cat > conftest.$ac_ext <<EOF
4249 #line 4250 "configure"
4250 #include "confdefs.h"
4251 #include <sys/types.h>
4253 #include <termios.h>
4256 #include <termcap.h>
4262 if { (eval echo configure:4263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4264 nmh_cv_decl_ospeed_include_defines=yes
4266 echo "configure: failed program was:" >&5
4267 cat conftest.$ac_ext >&5
4269 nmh_cv_decl_ospeed_include_defines=no
4274 echo "$ac_t""$nmh_cv_decl_ospeed_include_defines" 1>&6
4276 if test $nmh_cv_decl_ospeed_include_defines = no; then
4277 echo $ac_n "checking if you must define ospeed""... $ac_c" 1>&6
4278 echo "configure:4279: checking if you must define ospeed" >&5
4279 if eval "test \"`echo '$''{'nmh_cv_decl_ospeed_must_define'+set}'`\" = set"; then
4280 echo $ac_n "(cached) $ac_c" 1>&6
4282 cat > conftest.$ac_ext <<EOF
4283 #line 4284 "configure"
4284 #include "confdefs.h"
4287 extern short ospeed; ospeed = 0;
4290 if { (eval echo configure:4291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4292 nmh_cv_decl_ospeed_must_define=yes
4294 echo "configure: failed program was:" >&5
4295 cat conftest.$ac_ext >&5
4297 nmh_cv_decl_ospeed_must_define=no
4302 echo "$ac_t""$nmh_cv_decl_ospeed_must_define" 1>&6
4305 if test $nmh_cv_decl_ospeed_include_defines = yes; then
4306 cat >> confdefs.h <<\EOF
4307 #define HAVE_OSPEED 1
4309 elif test $nmh_cv_decl_ospeed_must_define = yes; then
4310 cat >> confdefs.h <<\EOF
4311 #define HAVE_OSPEED 1
4314 cat >> confdefs.h <<\EOF
4315 #define MUST_DEFINE_OSPEED 1
4321 LIBS="$nmh_save_LIBS"
4323 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4324 echo "configure:4325: checking return type of signal handlers" >&5
4325 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4326 echo $ac_n "(cached) $ac_c" 1>&6
4328 cat > conftest.$ac_ext <<EOF
4329 #line 4330 "configure"
4330 #include "confdefs.h"
4331 #include <sys/types.h>
4337 extern "C" void (*signal (int, void (*)(int)))(int);
4339 void (*signal ()) ();
4346 if { (eval echo configure:4347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4348 ac_cv_type_signal=void
4350 echo "configure: failed program was:" >&5
4351 cat conftest.$ac_ext >&5
4353 ac_cv_type_signal=int
4358 echo "$ac_t""$ac_cv_type_signal" 1>&6
4359 cat >> confdefs.h <<EOF
4360 #define RETSIGTYPE $ac_cv_type_signal
4364 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
4365 echo "configure:4366: checking for pid_t" >&5
4366 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
4367 echo $ac_n "(cached) $ac_c" 1>&6
4369 cat > conftest.$ac_ext <<EOF
4370 #line 4371 "configure"
4371 #include "confdefs.h"
4372 #include <sys/types.h>
4378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4379 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4381 ac_cv_type_pid_t=yes
4389 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
4390 if test $ac_cv_type_pid_t = no; then
4391 cat >> confdefs.h <<\EOF
4397 echo $ac_n "checking for off_t""... $ac_c" 1>&6
4398 echo "configure:4399: checking for off_t" >&5
4399 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
4400 echo $ac_n "(cached) $ac_c" 1>&6
4402 cat > conftest.$ac_ext <<EOF
4403 #line 4404 "configure"
4404 #include "confdefs.h"
4405 #include <sys/types.h>
4411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4412 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4414 ac_cv_type_off_t=yes
4422 echo "$ac_t""$ac_cv_type_off_t" 1>&6
4423 if test $ac_cv_type_off_t = no; then
4424 cat >> confdefs.h <<\EOF
4430 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
4431 echo "configure:4432: checking for uid_t in sys/types.h" >&5
4432 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
4433 echo $ac_n "(cached) $ac_c" 1>&6
4435 cat > conftest.$ac_ext <<EOF
4436 #line 4437 "configure"
4437 #include "confdefs.h"
4438 #include <sys/types.h>
4440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4441 egrep "uid_t" >/dev/null 2>&1; then
4443 ac_cv_type_uid_t=yes
4452 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
4453 if test $ac_cv_type_uid_t = no; then
4454 cat >> confdefs.h <<\EOF
4458 cat >> confdefs.h <<\EOF
4464 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
4465 echo "configure:4466: checking for mode_t" >&5
4466 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
4467 echo $ac_n "(cached) $ac_c" 1>&6
4469 cat > conftest.$ac_ext <<EOF
4470 #line 4471 "configure"
4471 #include "confdefs.h"
4472 #include <sys/types.h>
4478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4479 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4481 ac_cv_type_mode_t=yes
4484 ac_cv_type_mode_t=no
4489 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
4490 if test $ac_cv_type_mode_t = no; then
4491 cat >> confdefs.h <<\EOF
4497 echo $ac_n "checking for size_t""... $ac_c" 1>&6
4498 echo "configure:4499: checking for size_t" >&5
4499 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
4500 echo $ac_n "(cached) $ac_c" 1>&6
4502 cat > conftest.$ac_ext <<EOF
4503 #line 4504 "configure"
4504 #include "confdefs.h"
4505 #include <sys/types.h>
4511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4512 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4514 ac_cv_type_size_t=yes
4517 ac_cv_type_size_t=no
4522 echo "$ac_t""$ac_cv_type_size_t" 1>&6
4523 if test $ac_cv_type_size_t = no; then
4524 cat >> confdefs.h <<\EOF
4525 #define size_t unsigned
4531 echo $ac_n "checking for sigset_t""... $ac_c" 1>&6
4532 echo "configure:4533: checking for sigset_t" >&5
4533 if eval "test \"`echo '$''{'nmh_cv_type_sigset_t'+set}'`\" = set"; then
4534 echo $ac_n "(cached) $ac_c" 1>&6
4536 cat > conftest.$ac_ext <<EOF
4537 #line 4538 "configure"
4538 #include "confdefs.h"
4539 #include <sys/types.h>
4542 sigset_t tempsigset;
4545 if { (eval echo configure:4546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4547 nmh_cv_type_sigset_t=yes
4549 echo "configure: failed program was:" >&5
4550 cat conftest.$ac_ext >&5
4552 nmh_cv_type_sigset_t=no
4557 echo "$ac_t""$nmh_cv_type_sigset_t" 1>&6
4558 if test $nmh_cv_type_sigset_t = no; then
4559 cat >> confdefs.h <<\EOF
4560 #define sigset_t unsigned int
4565 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
4566 echo "configure:4567: checking for st_blksize in struct stat" >&5
4567 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
4568 echo $ac_n "(cached) $ac_c" 1>&6
4570 cat > conftest.$ac_ext <<EOF
4571 #line 4572 "configure"
4572 #include "confdefs.h"
4573 #include <sys/types.h>
4574 #include <sys/stat.h>
4576 struct stat s; s.st_blksize;
4579 if { (eval echo configure:4580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4581 ac_cv_struct_st_blksize=yes
4583 echo "configure: failed program was:" >&5
4584 cat conftest.$ac_ext >&5
4586 ac_cv_struct_st_blksize=no
4591 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
4592 if test $ac_cv_struct_st_blksize = yes; then
4593 cat >> confdefs.h <<\EOF
4594 #define HAVE_ST_BLKSIZE 1
4600 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
4601 echo "configure:4602: checking for tm_gmtoff in struct tm" >&5
4602 if eval "test \"`echo '$''{'nmh_cv_struct_tm_gmtoff'+set}'`\" = set"; then
4603 echo $ac_n "(cached) $ac_c" 1>&6
4605 cat > conftest.$ac_ext <<EOF
4606 #line 4607 "configure"
4607 #include "confdefs.h"
4608 #ifdef TIME_WITH_SYS_TIME
4609 # include <sys/time.h>
4612 # ifdef TM_IN_SYS_TIME
4613 # include <sys/time.h>
4619 struct tm temptm; temptm.tm_gmtoff = 0;
4622 if { (eval echo configure:4623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4624 nmh_cv_struct_tm_gmtoff=yes
4626 echo "configure: failed program was:" >&5
4627 cat conftest.$ac_ext >&5
4629 nmh_cv_struct_tm_gmtoff=no
4634 echo "$ac_t""$nmh_cv_struct_tm_gmtoff" 1>&6
4635 if test $nmh_cv_struct_tm_gmtoff = yes; then
4636 cat >> confdefs.h <<\EOF
4637 #define HAVE_TM_GMTOFF 1
4642 echo $ac_n "checking what style of signals to use""... $ac_c" 1>&6
4643 echo "configure:4644: checking what style of signals to use" >&5
4644 if test $ac_cv_func_sigaction = yes -a $ac_cv_func_sigprocmask = yes; then
4645 signals_style=POSIX_SIGNALS
4646 cat >> confdefs.h <<\EOF
4647 #define POSIX_SIGNALS 1
4650 cat >> confdefs.h <<\EOF
4651 #define RELIABLE_SIGNALS 1
4654 elif test $ac_cv_func_sigblock = yes -a $ac_cv_func_sigsetmask = yes; then
4655 signals_style=BSD_SIGNALS
4656 cat >> confdefs.h <<\EOF
4657 #define BSD_SIGNALS 1
4660 cat >> confdefs.h <<\EOF
4661 #define RELIABLE_SIGNALS 1
4664 elif test $ac_cv_func_sighold = yes -a $ac_cv_func_sigrelse = yes; then
4665 signals_style=SYSV_SIGNALS
4666 cat >> confdefs.h <<\EOF
4667 #define SYSV_SIGNALS 1
4671 signals_style=NO_SIGNAL_BLOCKING
4672 cat >> confdefs.h <<\EOF
4673 #define NO_SIGNAL_BLOCKING 1
4678 echo "$ac_t""$signals_style" 1>&6
4680 echo $ac_n "checking where signal.h is located""... $ac_c" 1>&6
4681 echo "configure:4682: checking where signal.h is located" >&5
4682 if eval "test \"`echo '$''{'nmh_cv_path_signal_h'+set}'`\" = set"; then
4683 echo $ac_n "(cached) $ac_c" 1>&6
4685 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
4686 test -f $SIGNAL_H && \
4687 grep '#[ ]*define[ ][ ]*SIG[0-9A-Z]*[ ]*[0-9][0-9]*' $SIGNAL_H > /dev/null && \
4690 nmh_cv_path_signal_h=$SIGNAL_H
4694 echo "$ac_t""$nmh_cv_path_signal_h" 1>&6
4695 SIGNAL_H=$nmh_cv_path_signal_h
4697 case "$target_os" in
4700 cat >> confdefs.h <<\EOF
4704 cat >> confdefs.h <<\EOF
4710 cat >> confdefs.h <<\EOF
4714 cat >> confdefs.h <<\EOF
4720 cat >> confdefs.h <<\EOF
4724 cat >> confdefs.h <<\EOF
4730 cat >> confdefs.h <<\EOF
4734 cat >> confdefs.h <<\EOF
4740 cat >> confdefs.h <<\EOF
4746 cat >> confdefs.h <<\EOF
4750 cat >> confdefs.h <<\EOF
4756 cat >> confdefs.h <<\EOF
4760 cat >> confdefs.h <<\EOF
4766 cat >> confdefs.h <<\EOF
4770 cat >> confdefs.h <<\EOF
4776 cat >> confdefs.h <<\EOF
4780 cat >> confdefs.h <<\EOF
4786 cat >> confdefs.h <<\EOF
4790 cat >> confdefs.h <<\EOF
4791 #define SCO_5_STDIO 1
4799 cat > confcache <<\EOF
4800 # This file is a shell script that caches the results of configure
4801 # tests run on this system so they can be shared between configure
4802 # scripts and configure runs. It is not useful on other systems.
4803 # If it contains results you don't want to keep, you may remove or edit it.
4805 # By default, configure uses ./config.cache as the cache file,
4806 # creating it if it does not exist already. You can give configure
4807 # the --cache-file=FILE option to use a different cache file; that is
4808 # what configure does when it calls configure scripts in
4809 # subdirectories, so they share the cache.
4810 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4811 # config.status only pays attention to the cache file if you give it the
4812 # --recheck option to rerun configure.
4815 # The following way of writing the cache mishandles newlines in values,
4816 # but we know of no workaround that is simple, portable, and efficient.
4817 # So, don't put newlines in cache variables' values.
4818 # Ultrix sh set writes to stderr and can't be redirected directly,
4819 # and sets the high bit in the cache file unless we assign to the vars.
4821 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4823 # `set' does not quote correctly, so add quotes (double-quote substitution
4824 # turns \\\\ into \\, and sed turns \\ into \).
4826 -e "s/'/'\\\\''/g" \
4827 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4830 # `set' quotes correctly as required by POSIX, so do not add quotes.
4831 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4834 if cmp -s $cache_file confcache; then
4837 if test -w $cache_file; then
4838 echo "updating cache $cache_file"
4839 cat confcache > $cache_file
4841 echo "not updating unwritable cache $cache_file"
4846 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4848 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4849 # Let make expand exec_prefix.
4850 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4852 # Any assignment to VPATH causes Sun make to only execute
4853 # the first set of double-colon rules, so remove it if not needed.
4854 # If there is a colon in the path, we need to keep it.
4855 if test "x$srcdir" = x.; then
4856 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4859 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4861 DEFS=-DHAVE_CONFIG_H
4863 # Without the "./", some shells look in PATH for config.status.
4864 : ${CONFIG_STATUS=./config.status}
4866 echo creating $CONFIG_STATUS
4867 rm -f $CONFIG_STATUS
4868 cat > $CONFIG_STATUS <<EOF
4870 # Generated automatically by configure.
4871 # Run this file to recreate the current configuration.
4872 # This directory was configured as follows,
4873 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4875 # $0 $ac_configure_args
4877 # Compiler output produced by configure, useful for debugging
4878 # configure, is in ./config.log if it exists.
4880 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4883 case "\$ac_option" in
4884 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4885 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4886 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4887 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4888 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4890 -help | --help | --hel | --he | --h)
4891 echo "\$ac_cs_usage"; exit 0 ;;
4892 *) echo "\$ac_cs_usage"; exit 1 ;;
4896 ac_given_srcdir=$srcdir
4897 ac_given_INSTALL="$INSTALL"
4899 trap 'rm -fr `echo "Makefile config/Makefile h/Makefile sbr/Makefile uip/Makefile \
4900 mts/Makefile mts/smtp/Makefile \
4901 etc/Makefile docs/Makefile man/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4903 cat >> $CONFIG_STATUS <<EOF
4905 # Protect against being on the right side of a sed subst in config.status.
4906 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4907 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4911 s%@CFLAGS@%$CFLAGS%g
4912 s%@CPPFLAGS@%$CPPFLAGS%g
4913 s%@CXXFLAGS@%$CXXFLAGS%g
4914 s%@FFLAGS@%$FFLAGS%g
4916 s%@LDFLAGS@%$LDFLAGS%g
4918 s%@exec_prefix@%$exec_prefix%g
4919 s%@prefix@%$prefix%g
4920 s%@program_transform_name@%$program_transform_name%g
4921 s%@bindir@%$bindir%g
4922 s%@sbindir@%$sbindir%g
4923 s%@libexecdir@%$libexecdir%g
4924 s%@datadir@%$datadir%g
4925 s%@sysconfdir@%$sysconfdir%g
4926 s%@sharedstatedir@%$sharedstatedir%g
4927 s%@localstatedir@%$localstatedir%g
4928 s%@libdir@%$libdir%g
4929 s%@includedir@%$includedir%g
4930 s%@oldincludedir@%$oldincludedir%g
4931 s%@infodir@%$infodir%g
4932 s%@mandir@%$mandir%g
4934 s%@host_alias@%$host_alias%g
4935 s%@host_cpu@%$host_cpu%g
4936 s%@host_vendor@%$host_vendor%g
4937 s%@host_os@%$host_os%g
4938 s%@target@%$target%g
4939 s%@target_alias@%$target_alias%g
4940 s%@target_cpu@%$target_cpu%g
4941 s%@target_vendor@%$target_vendor%g
4942 s%@target_os@%$target_os%g
4944 s%@build_alias@%$build_alias%g
4945 s%@build_cpu@%$build_cpu%g
4946 s%@build_vendor@%$build_vendor%g
4947 s%@build_os@%$build_os%g
4948 s%@VERSION@%$VERSION%g
4950 s%@APOPLIB@%$APOPLIB%g
4951 s%@masquerade@%$masquerade%g
4952 s%@POPLIB@%$POPLIB%g
4953 s%@POPSED@%$POPSED%g
4955 s%@smtpservers@%$smtpservers%g
4957 s%@SET_MAKE@%$SET_MAKE%g
4958 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4959 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4960 s%@INSTALL_DATA@%$INSTALL_DATA%g
4961 s%@RANLIB@%$RANLIB%g
4964 s%@LEXLIB@%$LEXLIB%g
4965 s%@cutpath@%$cutpath%g
4966 s%@linttmp1@%$linttmp1%g
4967 s%@linttmp2@%$linttmp2%g
4969 s%@LINTFLAGS@%$LINTFLAGS%g
4970 s%@LIBTOOL@%$LIBTOOL%g
4971 s%@GNU_LIBTOOL@%$GNU_LIBTOOL%g
4972 s%@LORDER@%$LORDER%g
4974 s%@lspath@%$lspath%g
4975 s%@morepath@%$morepath%g
4976 s%@pagerpath@%$pagerpath%g
4977 s%@sendmailpath@%$sendmailpath%g
4978 s%@vipath@%$vipath%g
4979 s%@editorpath@%$editorpath%g
4980 s%@mailspool@%$mailspool%g
4982 s%@dotlockfilepath@%$dotlockfilepath%g
4983 s%@SETGID_MAIL@%$SETGID_MAIL%g
4984 s%@MAIL_SPOOL_GRP@%$MAIL_SPOOL_GRP%g
4985 s%@LIBOBJS@%$LIBOBJS%g
4986 s%@TERMLIB@%$TERMLIB%g
4987 s%@HESIOD_INCLUDES@%$HESIOD_INCLUDES%g
4988 s%@HESIOD_LIBS@%$HESIOD_LIBS%g
4989 s%@KRB4_INCLUDES@%$KRB4_INCLUDES%g
4990 s%@KRB4_LIBS@%$KRB4_LIBS%g
4991 s%@SASL_INCLUDES@%$SASL_INCLUDES%g
4992 s%@SASL_LIBS@%$SASL_LIBS%g
4993 s%@SIGNAL_H@%$SIGNAL_H%g
4998 cat >> $CONFIG_STATUS <<\EOF
5000 # Split the substitutions into bite-sized pieces for seds with
5001 # small command number limits, like on Digital OSF/1 and HP-UX.
5002 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5003 ac_file=1 # Number of current file.
5004 ac_beg=1 # First line for current file.
5005 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5008 while $ac_more_lines; do
5009 if test $ac_beg -gt 1; then
5010 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5012 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5014 if test ! -s conftest.s$ac_file; then
5016 rm -f conftest.s$ac_file
5018 if test -z "$ac_sed_cmds"; then
5019 ac_sed_cmds="sed -f conftest.s$ac_file"
5021 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5023 ac_file=`expr $ac_file + 1`
5025 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5028 if test -z "$ac_sed_cmds"; then
5033 cat >> $CONFIG_STATUS <<EOF
5035 CONFIG_FILES=\${CONFIG_FILES-"Makefile config/Makefile h/Makefile sbr/Makefile uip/Makefile \
5036 mts/Makefile mts/smtp/Makefile \
5037 etc/Makefile docs/Makefile man/Makefile"}
5039 cat >> $CONFIG_STATUS <<\EOF
5040 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5041 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5043 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5044 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5045 *) ac_file_in="${ac_file}.in" ;;
5048 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5050 # Remove last slash and all that follows it. Not all systems have dirname.
5051 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5052 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5053 # The file is in a subdirectory.
5054 test ! -d "$ac_dir" && mkdir "$ac_dir"
5055 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5056 # A "../" for each directory in $ac_dir_suffix.
5057 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5059 ac_dir_suffix= ac_dots=
5062 case "$ac_given_srcdir" in
5064 if test -z "$ac_dots"; then top_srcdir=.
5065 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5066 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5068 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5069 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5072 case "$ac_given_INSTALL" in
5073 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5074 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5077 echo creating "$ac_file"
5079 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5081 *Makefile*) ac_comsub="1i\\
5082 # $configure_input" ;;
5086 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5088 s%@configure_input@%$configure_input%g
5089 s%@srcdir@%$srcdir%g
5090 s%@top_srcdir@%$top_srcdir%g
5091 s%@INSTALL@%$INSTALL%g
5092 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5096 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5097 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5099 # ac_d sets the value in "#define NAME VALUE" lines.
5100 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5101 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5104 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5105 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5106 ac_uB='\([ ]\)%\1#\2define\3'
5109 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5110 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5111 ac_eB='$%\1#\2define\3'
5115 if test "${CONFIG_HEADERS+set}" != set; then
5117 cat >> $CONFIG_STATUS <<EOF
5118 CONFIG_HEADERS="config.h"
5120 cat >> $CONFIG_STATUS <<\EOF
5122 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5123 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5125 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5126 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5127 *) ac_file_in="${ac_file}.in" ;;
5130 echo creating $ac_file
5132 rm -f conftest.frag conftest.in conftest.out
5133 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5134 cat $ac_file_inputs > conftest.in
5138 # Transform confdefs.h into a sed script conftest.vals that substitutes
5139 # the proper values into config.h.in to produce config.h. And first:
5140 # Protect against being on the right side of a sed subst in config.status.
5141 # Protect against being in an unquoted here document in config.status.
5143 cat > conftest.hdr <<\EOF
5146 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5150 sed -n -f conftest.hdr confdefs.h > conftest.vals
5153 # This sed command replaces #undef with comments. This is necessary, for
5154 # example, in the case of _POSIX_SOURCE, which is predefined and required
5155 # on some systems where configure will not decide to define it.
5156 cat >> conftest.vals <<\EOF
5157 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5160 # Break up conftest.vals because some shells have a limit on
5161 # the size of here documents, and old seds have small limits too.
5166 ac_lines=`grep -c . conftest.vals`
5167 # grep -c gives empty output for an empty file on some AIX systems.
5168 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5169 # Write a limited-size here document to conftest.frag.
5170 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5171 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5173 sed -f conftest.frag conftest.in > conftest.out
5175 mv conftest.out conftest.in
5177 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5179 mv conftest.tail conftest.vals
5183 cat >> $CONFIG_STATUS <<\EOF
5184 rm -f conftest.frag conftest.h
5185 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5186 cat conftest.in >> conftest.h
5188 if cmp -s $ac_file conftest.h 2>/dev/null; then
5189 echo "$ac_file is unchanged"
5192 # Remove last slash and all that follows it. Not all systems have dirname.
5193 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5194 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5195 # The file is in a subdirectory.
5196 test ! -d "$ac_dir" && mkdir "$ac_dir"
5199 mv conftest.h $ac_file
5204 cat >> $CONFIG_STATUS <<EOF
5207 cat >> $CONFIG_STATUS <<\EOF
5209 test -z "$CONFIG_HEADERS" || echo > stamp-h
5212 chmod +x $CONFIG_STATUS
5213 rm -fr confdefs* $ac_clean_files
5214 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5217 eval "nmhbin=${bindir}"; eval "nmhbin2=${nmhbin}"
5218 eval "nmhsysconf=${sysconfdir}"; eval "nmhsysconf2=${nmhsysconf}"
5219 eval "nmhlib=${libdir}"; eval "nmhlib2=${nmhlib}"
5220 eval "nmhman=${mandir}"
5223 if test x"$enable_pop" = x"yes"; then
5226 if test x"$enable_apop" = x"yes"; then
5227 pop_kinds="${pop_kinds}APOP "
5230 if test x"$with_krb4" != x -a x"$with_krb4" != x"no"; then
5231 pop_kinds="${pop_kinds}KPOP "
5234 pop_kinds="${pop_kinds}POP3)"
5240 nmh version : ${VERSION}
5241 target os : ${target}
5243 compiler flags : ${CFLAGS}
5244 linker flags : ${LDFLAGS}
5245 source code location : ${srcdir}
5246 binary install path : ${nmhbin2}
5247 libary install path : ${nmhlib2}
5248 config files install path : ${nmhsysconf2}
5249 man page install path : ${nmhman}
5250 backup prefix : ${backup_prefix}
5251 transport system : ${MTS}
5252 file locking type : ${LOCKTYPE}
5253 default smtp servers : ${smtpservers}
5254 default editor : ${editorpath}
5255 default pager : ${pagerpath}
5256 email address masquerading : ${masquerade}
5257 pop is enabled : ${pop_kinds}
5258 SASL support : ${sasl_support}"