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" != "no"; then
743 cat >> confdefs.h <<\EOF
748 # Check whether --with-editor or --without-editor was given.
749 if test "${with_editor+set}" = set; then
750 withval="$with_editor"
755 if test -n "$with_editor"; then
756 editorpath="$with_editor"
759 # Check whether --with-hash-backup or --without-hash-backup was given.
760 if test "${with_hash_backup+set}" = set; then
761 withval="$with_hash_backup"
765 if test x"$with_hash_backup" != x -a x"$with_hash_backup" != x"no"; then
770 cat >> confdefs.h <<EOF
771 #define BACKUP_PREFIX "$backup_prefix"
774 # Check whether --with-hesiod or --without-hesiod was given.
775 if test "${with_hesiod+set}" = set; then
776 withval="$with_hesiod"
780 if test x"$with_hesiod" != x -a x"$with_hesiod" != x"no"; then
781 cat >> confdefs.h <<\EOF
786 # Check whether --with-krb4 or --without-krb4 was given.
787 if test "${with_krb4+set}" = set; then
792 if test x"$with_krb4" != x -a x"$with_krb4" != x"no"; then
794 cat >> confdefs.h <<\EOF
797 cat >> confdefs.h <<\EOF
798 #define KPOP_PRINCIPAL "pop"
802 if test x"$enable_pop" = x"yes"; then
803 cat >> confdefs.h <<\EOF
807 POPSED='/^%nmhbeginpop%/d;/^%nmhendpop%/d'
809 POPSED='/^%nmhbeginpop%/,/^%nmhendpop%/d'
812 # Check whether --with-locking or --without-locking was given.
813 if test "${with_locking+set}" = set; then
814 withval="$with_locking"
819 if test x"$with_locking" = x"dot"; then
821 cat >> confdefs.h <<\EOF
822 #define DOT_LOCKING 1
824 elif test x"$with_locking" = x"flock"; then
826 cat >> confdefs.h <<\EOF
827 #define FLOCK_LOCKING 1
829 elif test x"$with_locking" = x"lockf"; then
831 cat >> confdefs.h <<\EOF
832 #define LOCKF_LOCKING 1
834 elif test x"$with_locking" = x"fcntl"; then
836 cat >> confdefs.h <<\EOF
837 #define FCNTL_LOCKING 1
841 cat >> confdefs.h <<\EOF
842 #define DOT_LOCKING 1
846 # Check whether --with-mts or --without-mts was given.
847 if test "${with_mts+set}" = set; then
853 if test x"$with_mts" = x"smtp"; then
855 elif test x"$with_mts" = x"sendmail"; then
861 cat >> confdefs.h <<\EOF
865 # Check whether --with-pager or --without-pager was given.
866 if test "${with_pager+set}" = set; then
867 withval="$with_pager"
872 if test -n "$with_pager"; then
873 pagerpath="$with_pager"
876 # Check whether --with-smtpservers or --without-smtpservers was given.
877 if test "${with_smtpservers+set}" = set; then
878 withval="$with_smtpservers"
882 if test -n "$with_smtpservers"; then
883 smtpservers="$with_smtpservers"
885 smtpservers="localhost"
890 test -z "$CFLAGS" && CFLAGS= auto_cflags=1
891 if test x"$enable_debug" = x"yes"; then
892 test -z "$LDFLAGS" && LDFLAGS=-g
895 # Extract the first word of "gcc", so it can be a program name with args.
896 set dummy gcc; ac_word=$2
897 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
898 echo "configure:899: checking for $ac_word" >&5
899 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
900 echo $ac_n "(cached) $ac_c" 1>&6
902 if test -n "$CC"; then
903 ac_cv_prog_CC="$CC" # Let the user override the test.
905 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
907 for ac_dir in $ac_dummy; do
908 test -z "$ac_dir" && ac_dir=.
909 if test -f $ac_dir/$ac_word; then
918 if test -n "$CC"; then
919 echo "$ac_t""$CC" 1>&6
921 echo "$ac_t""no" 1>&6
924 if test -z "$CC"; then
925 # Extract the first word of "cc", so it can be a program name with args.
926 set dummy cc; ac_word=$2
927 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
928 echo "configure:929: checking for $ac_word" >&5
929 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
930 echo $ac_n "(cached) $ac_c" 1>&6
932 if test -n "$CC"; then
933 ac_cv_prog_CC="$CC" # Let the user override the test.
935 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
938 for ac_dir in $ac_dummy; do
939 test -z "$ac_dir" && ac_dir=.
940 if test -f $ac_dir/$ac_word; then
941 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
950 if test $ac_prog_rejected = yes; then
951 # We found a bogon in the path, so make sure we never use it.
952 set dummy $ac_cv_prog_CC
954 if test $# -gt 0; then
955 # We chose a different compiler from the bogus one.
956 # However, it has the same basename, so the bogon will be chosen
957 # first if we set CC to just the basename; use the full file name.
959 set dummy "$ac_dir/$ac_word" "$@"
967 if test -n "$CC"; then
968 echo "$ac_t""$CC" 1>&6
970 echo "$ac_t""no" 1>&6
973 if test -z "$CC"; then
976 # Extract the first word of "cl", so it can be a program name with args.
977 set dummy cl; ac_word=$2
978 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
979 echo "configure:980: checking for $ac_word" >&5
980 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
981 echo $ac_n "(cached) $ac_c" 1>&6
983 if test -n "$CC"; then
984 ac_cv_prog_CC="$CC" # Let the user override the test.
986 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
988 for ac_dir in $ac_dummy; do
989 test -z "$ac_dir" && ac_dir=.
990 if test -f $ac_dir/$ac_word; then
999 if test -n "$CC"; then
1000 echo "$ac_t""$CC" 1>&6
1002 echo "$ac_t""no" 1>&6
1007 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1010 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1011 echo "configure:1012: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1014 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1015 ac_cpp='$CPP $CPPFLAGS'
1016 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1017 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1018 cross_compiling=$ac_cv_prog_cc_cross
1020 cat > conftest.$ac_ext << EOF
1022 #line 1023 "configure"
1023 #include "confdefs.h"
1027 if { (eval echo configure:1028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1028 ac_cv_prog_cc_works=yes
1029 # If we can't run a trivial program, we are probably using a cross compiler.
1030 if (./conftest; exit) 2>/dev/null; then
1031 ac_cv_prog_cc_cross=no
1033 ac_cv_prog_cc_cross=yes
1036 echo "configure: failed program was:" >&5
1037 cat conftest.$ac_ext >&5
1038 ac_cv_prog_cc_works=no
1042 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1043 ac_cpp='$CPP $CPPFLAGS'
1044 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1045 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1046 cross_compiling=$ac_cv_prog_cc_cross
1048 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1049 if test $ac_cv_prog_cc_works = no; then
1050 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1052 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1053 echo "configure:1054: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1054 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1055 cross_compiling=$ac_cv_prog_cc_cross
1057 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1058 echo "configure:1059: checking whether we are using GNU C" >&5
1059 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1060 echo $ac_n "(cached) $ac_c" 1>&6
1062 cat > conftest.c <<EOF
1067 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1074 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1076 if test $ac_cv_prog_gcc = yes; then
1082 ac_test_CFLAGS="${CFLAGS+set}"
1083 ac_save_CFLAGS="$CFLAGS"
1085 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1086 echo "configure:1087: checking whether ${CC-cc} accepts -g" >&5
1087 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1088 echo $ac_n "(cached) $ac_c" 1>&6
1090 echo 'void f(){}' > conftest.c
1091 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1100 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1101 if test "$ac_test_CFLAGS" = set; then
1102 CFLAGS="$ac_save_CFLAGS"
1103 elif test $ac_cv_prog_cc_g = yes; then
1104 if test "$GCC" = yes; then
1110 if test "$GCC" = yes; then
1118 if test -n "$auto_cflags"; then
1119 if test x"$enable_debug" = x"yes"; then
1120 if test -n "$GCC"; then
1121 test -z "$CFLAGS" && CFLAGS="-Wall -g" || CFLAGS="$CFLAGS -Wall -g"
1123 test -z "$CFLAGS" && CFLAGS=-g || CFLAGS="$CFLAGS -g"
1126 if test -z "$LDFLAGS"; then
1136 if test -n "$GCC"; then
1137 test -z "$CFLAGS" && CFLAGS="-Wall -O2" || CFLAGS="$CFLAGS -Wall -O2"
1139 test -z "$CFLAGS" && CFLAGS=-O || CFLAGS="$CFLAGS -O"
1144 echo $ac_n "checking for working const""... $ac_c" 1>&6
1145 echo "configure:1146: checking for working const" >&5
1146 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1147 echo $ac_n "(cached) $ac_c" 1>&6
1149 cat > conftest.$ac_ext <<EOF
1150 #line 1151 "configure"
1151 #include "confdefs.h"
1155 /* Ultrix mips cc rejects this. */
1156 typedef int charset[2]; const charset x;
1157 /* SunOS 4.1.1 cc rejects this. */
1158 char const *const *ccp;
1160 /* NEC SVR4.0.2 mips cc rejects this. */
1161 struct point {int x, y;};
1162 static struct point const zero = {0,0};
1163 /* AIX XL C 1.02.0.0 rejects this.
1164 It does not let you subtract one const X* pointer from another in an arm
1165 of an if-expression whose if-part is not a constant expression */
1166 const char *g = "string";
1167 ccp = &g + (g ? g-g : 0);
1168 /* HPUX 7.0 cc rejects these. */
1171 ccp = (char const *const *) p;
1172 { /* SCO 3.2v4 cc rejects this. */
1174 char const *s = 0 ? (char *) 0 : (char const *) 0;
1178 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1180 const int *foo = &x[0];
1183 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1184 typedef const int *iptr;
1188 { /* AIX XL C 1.02.0.0 rejects this saying
1189 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1190 struct s { int j; const int *ap[3]; };
1191 struct s *b; b->j = 5;
1193 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1199 if { (eval echo configure:1200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1203 echo "configure: failed program was:" >&5
1204 cat conftest.$ac_ext >&5
1211 echo "$ac_t""$ac_cv_c_const" 1>&6
1212 if test $ac_cv_c_const = no; then
1213 cat >> confdefs.h <<\EOF
1219 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1220 echo "configure:1221: checking whether ${MAKE-make} sets \${MAKE}" >&5
1221 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1222 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1223 echo $ac_n "(cached) $ac_c" 1>&6
1225 cat > conftestmake <<\EOF
1227 @echo 'ac_maketemp="${MAKE}"'
1229 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1230 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1231 if test -n "$ac_maketemp"; then
1232 eval ac_cv_prog_make_${ac_make}_set=yes
1234 eval ac_cv_prog_make_${ac_make}_set=no
1238 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1239 echo "$ac_t""yes" 1>&6
1242 echo "$ac_t""no" 1>&6
1243 SET_MAKE="MAKE=${MAKE-make}"
1245 # Find a good install program. We prefer a C program (faster),
1246 # so one script is as good as another. But avoid the broken or
1247 # incompatible versions:
1248 # SysV /etc/install, /usr/sbin/install
1249 # SunOS /usr/etc/install
1250 # IRIX /sbin/install
1252 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1253 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1254 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1255 # ./install, which can be erroneously created by make from ./install.sh.
1256 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1257 echo "configure:1258: checking for a BSD compatible install" >&5
1258 if test -z "$INSTALL"; then
1259 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1260 echo $ac_n "(cached) $ac_c" 1>&6
1262 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1263 for ac_dir in $PATH; do
1264 # Account for people who put trailing slashes in PATH elements.
1266 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1268 # OSF1 and SCO ODT 3.0 have their own names for install.
1269 # Don't use installbsd from OSF since it installs stuff as root
1271 for ac_prog in ginstall scoinst install; do
1272 if test -f $ac_dir/$ac_prog; then
1273 if test $ac_prog = install &&
1274 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1275 # AIX install. It has an incompatible calling convention.
1278 ac_cv_path_install="$ac_dir/$ac_prog -c"
1289 if test "${ac_cv_path_install+set}" = set; then
1290 INSTALL="$ac_cv_path_install"
1292 # As a last resort, use the slow shell script. We don't cache a
1293 # path for INSTALL within a source directory, because that will
1294 # break other packages using the cache if that directory is
1295 # removed, or if the path is relative.
1296 INSTALL="$ac_install_sh"
1299 echo "$ac_t""$INSTALL" 1>&6
1301 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1302 # It thinks the first close brace ends the variable substitution.
1303 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1305 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1307 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1308 # Extract the first word of "ranlib", so it can be a program name with args.
1309 set dummy ranlib; ac_word=$2
1310 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1311 echo "configure:1312: checking for $ac_word" >&5
1312 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1313 echo $ac_n "(cached) $ac_c" 1>&6
1315 if test -n "$RANLIB"; then
1316 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1318 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1320 for ac_dir in $ac_dummy; do
1321 test -z "$ac_dir" && ac_dir=.
1322 if test -f $ac_dir/$ac_word; then
1323 ac_cv_prog_RANLIB="ranlib"
1328 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1331 RANLIB="$ac_cv_prog_RANLIB"
1332 if test -n "$RANLIB"; then
1333 echo "$ac_t""$RANLIB" 1>&6
1335 echo "$ac_t""no" 1>&6
1337 for ac_prog in gawk mawk nawk awk
1339 # Extract the first word of "$ac_prog", so it can be a program name with args.
1340 set dummy $ac_prog; ac_word=$2
1341 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1342 echo "configure:1343: checking for $ac_word" >&5
1343 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1344 echo $ac_n "(cached) $ac_c" 1>&6
1346 if test -n "$AWK"; then
1347 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1349 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1351 for ac_dir in $ac_dummy; do
1352 test -z "$ac_dir" && ac_dir=.
1353 if test -f $ac_dir/$ac_word; then
1354 ac_cv_prog_AWK="$ac_prog"
1361 AWK="$ac_cv_prog_AWK"
1362 if test -n "$AWK"; then
1363 echo "$ac_t""$AWK" 1>&6
1365 echo "$ac_t""no" 1>&6
1368 test -n "$AWK" && break
1370 # Extract the first word of "flex", so it can be a program name with args.
1371 set dummy flex; ac_word=$2
1372 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1373 echo "configure:1374: checking for $ac_word" >&5
1374 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1375 echo $ac_n "(cached) $ac_c" 1>&6
1377 if test -n "$LEX"; then
1378 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1380 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1382 for ac_dir in $ac_dummy; do
1383 test -z "$ac_dir" && ac_dir=.
1384 if test -f $ac_dir/$ac_word; then
1385 ac_cv_prog_LEX="flex"
1390 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1393 LEX="$ac_cv_prog_LEX"
1394 if test -n "$LEX"; then
1395 echo "$ac_t""$LEX" 1>&6
1397 echo "$ac_t""no" 1>&6
1400 if test -z "$LEXLIB"
1406 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1407 echo "configure:1408: checking for yywrap in -l$ac_lib" >&5
1408 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1409 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1410 echo $ac_n "(cached) $ac_c" 1>&6
1412 ac_save_LIBS="$LIBS"
1413 LIBS="-l$ac_lib $LIBS"
1414 cat > conftest.$ac_ext <<EOF
1415 #line 1416 "configure"
1416 #include "confdefs.h"
1417 /* Override any gcc2 internal prototype to avoid an error. */
1418 /* We use char because int might match the return type of a gcc2
1419 builtin and then its argument prototype would still apply. */
1426 if { (eval echo configure:1427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1428 eval "ac_cv_lib_$ac_lib_var=yes"
1430 echo "configure: failed program was:" >&5
1431 cat conftest.$ac_ext >&5
1433 eval "ac_cv_lib_$ac_lib_var=no"
1436 LIBS="$ac_save_LIBS"
1439 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1440 echo "$ac_t""yes" 1>&6
1443 echo "$ac_t""no" 1>&6
1448 pathtmp=/usr/bin:/bin:/usr/local/bin:/usr/xpg4/bin:/usr/ucb
1449 # Extract the first word of "cut", so it can be a program name with args.
1450 set dummy cut; ac_word=$2
1451 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1452 echo "configure:1453: checking for $ac_word" >&5
1453 if eval "test \"`echo '$''{'ac_cv_path_cutpath'+set}'`\" = set"; then
1454 echo $ac_n "(cached) $ac_c" 1>&6
1458 ac_cv_path_cutpath="$cutpath" # Let the user override the test with a path.
1461 ac_cv_path_cutpath="$cutpath" # Let the user override the test with a dos path.
1464 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1466 for ac_dir in $ac_dummy; do
1467 test -z "$ac_dir" && ac_dir=.
1468 if test -f $ac_dir/$ac_word; then
1469 ac_cv_path_cutpath="$ac_dir/$ac_word"
1474 test -z "$ac_cv_path_cutpath" && ac_cv_path_cutpath="no"
1478 cutpath="$ac_cv_path_cutpath"
1479 if test -n "$cutpath"; then
1480 echo "$ac_t""$cutpath" 1>&6
1482 echo "$ac_t""no" 1>&6
1486 # Extract the first word of "lclint", so it can be a program name with args.
1487 set dummy lclint; ac_word=$2
1488 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1489 echo "configure:1490: checking for $ac_word" >&5
1490 if eval "test \"`echo '$''{'ac_cv_prog_linttmp1'+set}'`\" = set"; then
1491 echo $ac_n "(cached) $ac_c" 1>&6
1493 if test -n "$linttmp1"; then
1494 ac_cv_prog_linttmp1="$linttmp1" # Let the user override the test.
1496 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1498 for ac_dir in $ac_dummy; do
1499 test -z "$ac_dir" && ac_dir=.
1500 if test -f $ac_dir/$ac_word; then
1501 ac_cv_prog_linttmp1="lclint"
1506 test -z "$ac_cv_prog_linttmp1" && ac_cv_prog_linttmp1="no"
1509 linttmp1="$ac_cv_prog_linttmp1"
1510 if test -n "$linttmp1"; then
1511 echo "$ac_t""$linttmp1" 1>&6
1513 echo "$ac_t""no" 1>&6
1515 if test x$ac_cv_prog_linttmp1 != xno ; then
1516 LINT=$ac_cv_prog_linttmp1
1517 LINTFLAGS="-weak +posixlib -macrovarprefixexclude"
1519 # Extract the first word of "lint", so it can be a program name with args.
1520 set dummy lint; ac_word=$2
1521 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1522 echo "configure:1523: checking for $ac_word" >&5
1523 if eval "test \"`echo '$''{'ac_cv_prog_linttmp2'+set}'`\" = set"; then
1524 echo $ac_n "(cached) $ac_c" 1>&6
1526 if test -n "$linttmp2"; then
1527 ac_cv_prog_linttmp2="$linttmp2" # Let the user override the test.
1529 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1531 for ac_dir in $ac_dummy; do
1532 test -z "$ac_dir" && ac_dir=.
1533 if test -f $ac_dir/$ac_word; then
1534 ac_cv_prog_linttmp2="lint"
1539 test -z "$ac_cv_prog_linttmp2" && ac_cv_prog_linttmp2="no"
1542 linttmp2="$ac_cv_prog_linttmp2"
1543 if test -n "$linttmp2"; then
1544 echo "$ac_t""$linttmp2" 1>&6
1546 echo "$ac_t""no" 1>&6
1548 if test x$ac_cv_prog_linttmp2 != xno ; then
1549 LINT=$ac_cv_prog_linttmp2
1552 LINT="echo 'No lint program found'"
1557 # Extract the first word of "libtool", so it can be a program name with args.
1558 set dummy libtool; ac_word=$2
1559 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1560 echo "configure:1561: checking for $ac_word" >&5
1561 if eval "test \"`echo '$''{'ac_cv_prog_LIBTOOL'+set}'`\" = set"; then
1562 echo $ac_n "(cached) $ac_c" 1>&6
1564 if test -n "$LIBTOOL"; then
1565 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
1567 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1569 for ac_dir in $ac_dummy; do
1570 test -z "$ac_dir" && ac_dir=.
1571 if test -f $ac_dir/$ac_word; then
1572 ac_cv_prog_LIBTOOL="libtool"
1579 LIBTOOL="$ac_cv_prog_LIBTOOL"
1580 if test -n "$LIBTOOL"; then
1581 echo "$ac_t""$LIBTOOL" 1>&6
1583 echo "$ac_t""no" 1>&6
1587 if test -n "$LIBTOOL" ; then
1588 tmptest=`$LIBTOOL --version 2>&1 | grep GNU`
1589 if test x"$tmptest" != x ; then
1595 # Extract the first word of "lorder", so it can be a program name with args.
1596 set dummy lorder; ac_word=$2
1597 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1598 echo "configure:1599: checking for $ac_word" >&5
1599 if eval "test \"`echo '$''{'ac_cv_prog_LORDER'+set}'`\" = set"; then
1600 echo $ac_n "(cached) $ac_c" 1>&6
1602 if test -n "$LORDER"; then
1603 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
1605 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1607 for ac_dir in $ac_dummy; do
1608 test -z "$ac_dir" && ac_dir=.
1609 if test -f $ac_dir/$ac_word; then
1610 ac_cv_prog_LORDER="lorder"
1615 test -z "$ac_cv_prog_LORDER" && ac_cv_prog_LORDER="no"
1618 LORDER="$ac_cv_prog_LORDER"
1619 if test -n "$LORDER"; then
1620 echo "$ac_t""$LORDER" 1>&6
1622 echo "$ac_t""no" 1>&6
1624 # Extract the first word of "tsort", so it can be a program name with args.
1625 set dummy tsort; ac_word=$2
1626 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1627 echo "configure:1628: checking for $ac_word" >&5
1628 if eval "test \"`echo '$''{'ac_cv_prog_TSORT'+set}'`\" = set"; then
1629 echo $ac_n "(cached) $ac_c" 1>&6
1631 if test -n "$TSORT"; then
1632 ac_cv_prog_TSORT="$TSORT" # Let the user override the test.
1634 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1636 for ac_dir in $ac_dummy; do
1637 test -z "$ac_dir" && ac_dir=.
1638 if test -f $ac_dir/$ac_word; then
1639 ac_cv_prog_TSORT="tsort"
1644 test -z "$ac_cv_prog_TSORT" && ac_cv_prog_TSORT="no"
1647 TSORT="$ac_cv_prog_TSORT"
1648 if test -n "$TSORT"; then
1649 echo "$ac_t""$TSORT" 1>&6
1651 echo "$ac_t""no" 1>&6
1654 if test x$ac_cv_prog_LORDER != xlorder -o x$ac_cv_prog_TSORT != xtsort; then
1659 echo $ac_n "checking whether tsort can deal with loops""... $ac_c" 1>&6
1660 echo "configure:1661: checking whether tsort can deal with loops" >&5
1661 if eval "test \"`echo '$''{'nmh_cv_tsort_loop'+set}'`\" = set"; then
1662 echo $ac_n "(cached) $ac_c" 1>&6
1664 if test -z "`echo a b b a | tsort 2>/dev/null | grep a`" ; then
1665 nmh_cv_tsort_loop=no
1667 nmh_cv_tsort_loop=yes
1671 echo "$ac_t""$nmh_cv_tsort_loop" 1>&6
1672 if test x$nmh_cv_tsort_loop = xno ; then
1677 pathtmp=/usr/bin:/bin:/usr/local/bin:/usr/xpg4/bin:/usr/ucb
1678 # Extract the first word of "ls", so it can be a program name with args.
1679 set dummy ls; ac_word=$2
1680 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1681 echo "configure:1682: checking for $ac_word" >&5
1682 if eval "test \"`echo '$''{'ac_cv_path_lspath'+set}'`\" = set"; then
1683 echo $ac_n "(cached) $ac_c" 1>&6
1687 ac_cv_path_lspath="$lspath" # Let the user override the test with a path.
1690 ac_cv_path_lspath="$lspath" # Let the user override the test with a dos path.
1693 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1695 for ac_dir in $ac_dummy; do
1696 test -z "$ac_dir" && ac_dir=.
1697 if test -f $ac_dir/$ac_word; then
1698 ac_cv_path_lspath="$ac_dir/$ac_word"
1703 test -z "$ac_cv_path_lspath" && ac_cv_path_lspath="no"
1707 lspath="$ac_cv_path_lspath"
1708 if test -n "$lspath"; then
1709 echo "$ac_t""$lspath" 1>&6
1711 echo "$ac_t""no" 1>&6
1715 if test "$lspath" != "no"; then
1716 echo $ac_n "checking how to get ls to show us the group ownership of a file""... $ac_c" 1>&6
1717 echo "configure:1718: checking how to get ls to show us the group ownership of a file" >&5
1718 if eval "test \"`echo '$''{'nmh_cv_ls_grpopt'+set}'`\" = set"; then
1719 echo $ac_n "(cached) $ac_c" 1>&6
1721 if test x"`$lspath -dl / | $AWK '{print $9}'`" = x"/"; then
1722 nmh_cv_ls_grpopt="-l"
1724 nmh_cv_ls_grpopt="-lg"
1728 echo "$ac_t""$nmh_cv_ls_grpopt" 1>&6
1731 pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin
1732 # Extract the first word of "more", so it can be a program name with args.
1733 set dummy more; ac_word=$2
1734 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1735 echo "configure:1736: checking for $ac_word" >&5
1736 if eval "test \"`echo '$''{'ac_cv_path_morepath'+set}'`\" = set"; then
1737 echo $ac_n "(cached) $ac_c" 1>&6
1741 ac_cv_path_morepath="$morepath" # Let the user override the test with a path.
1744 ac_cv_path_morepath="$morepath" # Let the user override the test with a dos path.
1747 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1749 for ac_dir in $ac_dummy; do
1750 test -z "$ac_dir" && ac_dir=.
1751 if test -f $ac_dir/$ac_word; then
1752 ac_cv_path_morepath="$ac_dir/$ac_word"
1757 test -z "$ac_cv_path_morepath" && ac_cv_path_morepath="no"
1761 morepath="$ac_cv_path_morepath"
1762 if test -n "$morepath"; then
1763 echo "$ac_t""$morepath" 1>&6
1765 echo "$ac_t""no" 1>&6
1769 if test -z "$pagerpath"; then
1770 pagerpath="$morepath"
1773 pathtmp=/usr/lib:/usr/sbin:/usr/etc:/usr/ucblib:/usr/bin:/bin
1774 # Extract the first word of "sendmail", so it can be a program name with args.
1775 set dummy sendmail; ac_word=$2
1776 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1777 echo "configure:1778: checking for $ac_word" >&5
1778 if eval "test \"`echo '$''{'ac_cv_path_sendmailpath'+set}'`\" = set"; then
1779 echo $ac_n "(cached) $ac_c" 1>&6
1781 case "$sendmailpath" in
1783 ac_cv_path_sendmailpath="$sendmailpath" # Let the user override the test with a path.
1786 ac_cv_path_sendmailpath="$sendmailpath" # Let the user override the test with a dos path.
1789 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1791 for ac_dir in $ac_dummy; do
1792 test -z "$ac_dir" && ac_dir=.
1793 if test -f $ac_dir/$ac_word; then
1794 ac_cv_path_sendmailpath="$ac_dir/$ac_word"
1799 test -z "$ac_cv_path_sendmailpath" && ac_cv_path_sendmailpath="no"
1803 sendmailpath="$ac_cv_path_sendmailpath"
1804 if test -n "$sendmailpath"; then
1805 echo "$ac_t""$sendmailpath" 1>&6
1807 echo "$ac_t""no" 1>&6
1811 pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin
1812 # Extract the first word of "vi", so it can be a program name with args.
1813 set dummy vi; ac_word=$2
1814 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1815 echo "configure:1816: checking for $ac_word" >&5
1816 if eval "test \"`echo '$''{'ac_cv_path_vipath'+set}'`\" = set"; then
1817 echo $ac_n "(cached) $ac_c" 1>&6
1821 ac_cv_path_vipath="$vipath" # Let the user override the test with a path.
1824 ac_cv_path_vipath="$vipath" # Let the user override the test with a dos path.
1827 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1829 for ac_dir in $ac_dummy; do
1830 test -z "$ac_dir" && ac_dir=.
1831 if test -f $ac_dir/$ac_word; then
1832 ac_cv_path_vipath="$ac_dir/$ac_word"
1837 test -z "$ac_cv_path_vipath" && ac_cv_path_vipath="no"
1841 vipath="$ac_cv_path_vipath"
1842 if test -n "$vipath"; then
1843 echo "$ac_t""$vipath" 1>&6
1845 echo "$ac_t""no" 1>&6
1849 if test -z "$editorpath"; then
1850 editorpath="$vipath"
1853 echo $ac_n "checking for broken vi""... $ac_c" 1>&6
1854 echo "configure:1855: checking for broken vi" >&5
1855 if eval "test \"`echo '$''{'nmh_cv_attvibug'+set}'`\" = set"; then
1856 echo $ac_n "(cached) $ac_c" 1>&6
1858 if echo 'r /nonexist-file
1859 q' | ex > /dev/null 2>&1
1867 echo "$ac_t""$nmh_cv_attvibug" 1>&6
1869 if test "$nmh_cv_attvibug" = yes; then
1870 cat >> confdefs.h <<\EOF
1875 echo $ac_n "checking where mail spool is located""... $ac_c" 1>&6
1876 echo "configure:1877: checking where mail spool is located" >&5
1877 if eval "test \"`echo '$''{'nmh_cv_mailspool'+set}'`\" = set"; then
1878 echo $ac_n "(cached) $ac_c" 1>&6
1880 for mailspool in /var/mail /var/spool/mail /usr/spool/mail /dev/null; do
1881 test -d $mailspool && break
1883 nmh_cv_mailspool=$mailspool
1887 echo "$ac_t""$nmh_cv_mailspool" 1>&6
1888 mailspool=$nmh_cv_mailspool
1890 if test "$lspath" != "no" -a "$cutpath" != "no"; then
1891 echo $ac_n "checking whether the mail spool is world-writable""... $ac_c" 1>&6
1892 echo "configure:1893: checking whether the mail spool is world-writable" >&5
1893 if eval "test \"`echo '$''{'nmh_cv_mailspool_world_writable'+set}'`\" = set"; then
1894 echo $ac_n "(cached) $ac_c" 1>&6
1896 if test "`$lspath -dlL $mailspool | $cutpath -c9`" = "-"; then
1897 nmh_cv_mailspool_world_writable=no
1899 nmh_cv_mailspool_world_writable=yes
1903 echo "$ac_t""$nmh_cv_mailspool_world_writable" 1>&6
1906 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1907 echo "configure:1908: checking how to run the C preprocessor" >&5
1908 # On Suns, sometimes $CPP names a directory.
1909 if test -n "$CPP" && test -d "$CPP"; then
1912 if test -z "$CPP"; then
1913 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1914 echo $ac_n "(cached) $ac_c" 1>&6
1916 # This must be in double quotes, not single quotes, because CPP may get
1917 # substituted into the Makefile and "${CC-cc}" will confuse make.
1919 # On the NeXT, cc -E runs the code through the compiler's parser,
1920 # not just through cpp.
1921 cat > conftest.$ac_ext <<EOF
1922 #line 1923 "configure"
1923 #include "confdefs.h"
1927 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1928 { (eval echo configure:1929: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1929 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1930 if test -z "$ac_err"; then
1934 echo "configure: failed program was:" >&5
1935 cat conftest.$ac_ext >&5
1937 CPP="${CC-cc} -E -traditional-cpp"
1938 cat > conftest.$ac_ext <<EOF
1939 #line 1940 "configure"
1940 #include "confdefs.h"
1944 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1945 { (eval echo configure:1946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1946 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1947 if test -z "$ac_err"; then
1951 echo "configure: failed program was:" >&5
1952 cat conftest.$ac_ext >&5
1954 CPP="${CC-cc} -nologo -E"
1955 cat > conftest.$ac_ext <<EOF
1956 #line 1957 "configure"
1957 #include "confdefs.h"
1961 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1962 { (eval echo configure:1963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1963 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1964 if test -z "$ac_err"; then
1968 echo "configure: failed program was:" >&5
1969 cat conftest.$ac_ext >&5
1978 ac_cv_prog_CPP="$CPP"
1980 CPP="$ac_cv_prog_CPP"
1982 ac_cv_prog_CPP="$CPP"
1984 echo "$ac_t""$CPP" 1>&6
1986 ac_safe=`echo "lockfile.h" | sed 'y%./+-%__p_%'`
1987 echo $ac_n "checking for lockfile.h""... $ac_c" 1>&6
1988 echo "configure:1989: checking for lockfile.h" >&5
1989 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1990 echo $ac_n "(cached) $ac_c" 1>&6
1992 cat > conftest.$ac_ext <<EOF
1993 #line 1994 "configure"
1994 #include "confdefs.h"
1995 #include <lockfile.h>
1997 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1998 { (eval echo configure:1999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1999 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2000 if test -z "$ac_err"; then
2002 eval "ac_cv_header_$ac_safe=yes"
2005 echo "configure: failed program was:" >&5
2006 cat conftest.$ac_ext >&5
2008 eval "ac_cv_header_$ac_safe=no"
2012 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2013 echo "$ac_t""yes" 1>&6
2014 echo $ac_n "checking for lockfile_create in -llockfile""... $ac_c" 1>&6
2015 echo "configure:2016: checking for lockfile_create in -llockfile" >&5
2016 ac_lib_var=`echo lockfile'_'lockfile_create | sed 'y%./+-%__p_%'`
2017 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2018 echo $ac_n "(cached) $ac_c" 1>&6
2020 ac_save_LIBS="$LIBS"
2021 LIBS="-llockfile $LIBS"
2022 cat > conftest.$ac_ext <<EOF
2023 #line 2024 "configure"
2024 #include "confdefs.h"
2025 /* Override any gcc2 internal prototype to avoid an error. */
2026 /* We use char because int might match the return type of a gcc2
2027 builtin and then its argument prototype would still apply. */
2028 char lockfile_create();
2034 if { (eval echo configure:2035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2036 eval "ac_cv_lib_$ac_lib_var=yes"
2038 echo "configure: failed program was:" >&5
2039 cat conftest.$ac_ext >&5
2041 eval "ac_cv_lib_$ac_lib_var=no"
2044 LIBS="$ac_save_LIBS"
2047 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2048 echo "$ac_t""yes" 1>&6
2049 ac_tr_lib=HAVE_LIB`echo lockfile | sed -e 's/^a-zA-Z0-9_/_/g' \
2050 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2051 cat >> confdefs.h <<EOF
2052 #define $ac_tr_lib 1
2055 LIBS="-llockfile $LIBS"
2058 echo "$ac_t""no" 1>&6
2062 echo "$ac_t""no" 1>&6
2066 # Extract the first word of "dotlockfile", so it can be a program name with args.
2067 set dummy dotlockfile; ac_word=$2
2068 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2069 echo "configure:2070: checking for $ac_word" >&5
2070 if eval "test \"`echo '$''{'ac_cv_path_dotlockfilepath'+set}'`\" = set"; then
2071 echo $ac_n "(cached) $ac_c" 1>&6
2073 case "$dotlockfilepath" in
2075 ac_cv_path_dotlockfilepath="$dotlockfilepath" # Let the user override the test with a path.
2078 ac_cv_path_dotlockfilepath="$dotlockfilepath" # Let the user override the test with a dos path.
2081 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2083 for ac_dir in $ac_dummy; do
2084 test -z "$ac_dir" && ac_dir=.
2085 if test -f $ac_dir/$ac_word; then
2086 ac_cv_path_dotlockfilepath="$ac_dir/$ac_word"
2091 test -z "$ac_cv_path_dotlockfilepath" && ac_cv_path_dotlockfilepath="no"
2095 dotlockfilepath="$ac_cv_path_dotlockfilepath"
2096 if test -n "$dotlockfilepath"; then
2097 echo "$ac_t""$dotlockfilepath" 1>&6
2099 echo "$ac_t""no" 1>&6
2102 if test "$ac_cv_lib_lockfile_lockfile_create" != "no" ; then
2103 if test "$ac_cv_path_dotlockfilepath" != "no" ; then
2104 echo $ac_n "checking whether dotlockfile is setgid""... $ac_c" 1>&6
2105 echo "configure:2106: checking whether dotlockfile is setgid" >&5
2106 if eval "test \"`echo '$''{'nmh_cv_dotlockfile_setgid'+set}'`\" = set"; then
2107 echo $ac_n "(cached) $ac_c" 1>&6
2109 if test -g "$ac_cv_path_dotlockfilepath" ; then
2110 nmh_cv_dotlockfile_setgid=yes
2112 nmh_cv_dotlockfile_setgid=no
2116 echo "$ac_t""$nmh_cv_dotlockfile_setgid" 1>&6
2120 if test x"$nmh_cv_mailspool_world_writable" = x"no" -a x"$nmh_cv_dotlockfile_setgid" != x"yes" ; then
2121 cat >> confdefs.h <<\EOF
2127 echo $ac_n "checking what group owns the mail spool""... $ac_c" 1>&6
2128 echo "configure:2129: checking what group owns the mail spool" >&5
2129 if eval "test \"`echo '$''{'nmh_cv_ls_mail_grp'+set}'`\" = set"; then
2130 echo $ac_n "(cached) $ac_c" 1>&6
2132 nmh_cv_ls_mail_grp=`$lspath -dL $nmh_cv_ls_grpopt $mailspool|$AWK '{print $4}'`
2136 echo "$ac_t""$nmh_cv_ls_mail_grp" 1>&6
2137 MAIL_SPOOL_GRP=$nmh_cv_ls_mail_grp
2140 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2142 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2143 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2144 echo "configure:2145: checking for $ac_hdr that defines DIR" >&5
2145 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2146 echo $ac_n "(cached) $ac_c" 1>&6
2148 cat > conftest.$ac_ext <<EOF
2149 #line 2150 "configure"
2150 #include "confdefs.h"
2151 #include <sys/types.h>
2157 if { (eval echo configure:2158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2159 eval "ac_cv_header_dirent_$ac_safe=yes"
2161 echo "configure: failed program was:" >&5
2162 cat conftest.$ac_ext >&5
2164 eval "ac_cv_header_dirent_$ac_safe=no"
2168 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2169 echo "$ac_t""yes" 1>&6
2170 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2171 cat >> confdefs.h <<EOF
2172 #define $ac_tr_hdr 1
2174 ac_header_dirent=$ac_hdr; break
2176 echo "$ac_t""no" 1>&6
2179 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2180 if test $ac_header_dirent = dirent.h; then
2181 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2182 echo "configure:2183: checking for opendir in -ldir" >&5
2183 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2184 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2185 echo $ac_n "(cached) $ac_c" 1>&6
2187 ac_save_LIBS="$LIBS"
2189 cat > conftest.$ac_ext <<EOF
2190 #line 2191 "configure"
2191 #include "confdefs.h"
2192 /* Override any gcc2 internal prototype to avoid an error. */
2193 /* We use char because int might match the return type of a gcc2
2194 builtin and then its argument prototype would still apply. */
2201 if { (eval echo configure:2202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2203 eval "ac_cv_lib_$ac_lib_var=yes"
2205 echo "configure: failed program was:" >&5
2206 cat conftest.$ac_ext >&5
2208 eval "ac_cv_lib_$ac_lib_var=no"
2211 LIBS="$ac_save_LIBS"
2214 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2215 echo "$ac_t""yes" 1>&6
2218 echo "$ac_t""no" 1>&6
2222 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2223 echo "configure:2224: checking for opendir in -lx" >&5
2224 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2225 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2226 echo $ac_n "(cached) $ac_c" 1>&6
2228 ac_save_LIBS="$LIBS"
2230 cat > conftest.$ac_ext <<EOF
2231 #line 2232 "configure"
2232 #include "confdefs.h"
2233 /* Override any gcc2 internal prototype to avoid an error. */
2234 /* We use char because int might match the return type of a gcc2
2235 builtin and then its argument prototype would still apply. */
2242 if { (eval echo configure:2243: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2244 eval "ac_cv_lib_$ac_lib_var=yes"
2246 echo "configure: failed program was:" >&5
2247 cat conftest.$ac_ext >&5
2249 eval "ac_cv_lib_$ac_lib_var=no"
2252 LIBS="$ac_save_LIBS"
2255 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2256 echo "$ac_t""yes" 1>&6
2259 echo "$ac_t""no" 1>&6
2264 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2265 echo "configure:2266: checking for ANSI C header files" >&5
2266 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2267 echo $ac_n "(cached) $ac_c" 1>&6
2269 cat > conftest.$ac_ext <<EOF
2270 #line 2271 "configure"
2271 #include "confdefs.h"
2277 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2278 { (eval echo configure:2279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2279 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2280 if test -z "$ac_err"; then
2282 ac_cv_header_stdc=yes
2285 echo "configure: failed program was:" >&5
2286 cat conftest.$ac_ext >&5
2288 ac_cv_header_stdc=no
2292 if test $ac_cv_header_stdc = yes; then
2293 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2294 cat > conftest.$ac_ext <<EOF
2295 #line 2296 "configure"
2296 #include "confdefs.h"
2299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2300 egrep "memchr" >/dev/null 2>&1; then
2304 ac_cv_header_stdc=no
2310 if test $ac_cv_header_stdc = yes; then
2311 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2312 cat > conftest.$ac_ext <<EOF
2313 #line 2314 "configure"
2314 #include "confdefs.h"
2317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2318 egrep "free" >/dev/null 2>&1; then
2322 ac_cv_header_stdc=no
2328 if test $ac_cv_header_stdc = yes; then
2329 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2330 if test "$cross_compiling" = yes; then
2333 cat > conftest.$ac_ext <<EOF
2334 #line 2335 "configure"
2335 #include "confdefs.h"
2337 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2338 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2339 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2340 int main () { int i; for (i = 0; i < 256; i++)
2341 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2345 if { (eval echo configure:2346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2349 echo "configure: failed program was:" >&5
2350 cat conftest.$ac_ext >&5
2352 ac_cv_header_stdc=no
2360 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2361 if test $ac_cv_header_stdc = yes; then
2362 cat >> confdefs.h <<\EOF
2363 #define STDC_HEADERS 1
2368 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2369 echo "configure:2370: checking whether time.h and sys/time.h may both be included" >&5
2370 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2371 echo $ac_n "(cached) $ac_c" 1>&6
2373 cat > conftest.$ac_ext <<EOF
2374 #line 2375 "configure"
2375 #include "confdefs.h"
2376 #include <sys/types.h>
2377 #include <sys/time.h>
2383 if { (eval echo configure:2384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2385 ac_cv_header_time=yes
2387 echo "configure: failed program was:" >&5
2388 cat conftest.$ac_ext >&5
2390 ac_cv_header_time=no
2395 echo "$ac_t""$ac_cv_header_time" 1>&6
2396 if test $ac_cv_header_time = yes; then
2397 cat >> confdefs.h <<\EOF
2398 #define TIME_WITH_SYS_TIME 1
2403 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2404 echo "configure:2405: checking for sys/wait.h that is POSIX.1 compatible" >&5
2405 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2406 echo $ac_n "(cached) $ac_c" 1>&6
2408 cat > conftest.$ac_ext <<EOF
2409 #line 2410 "configure"
2410 #include "confdefs.h"
2411 #include <sys/types.h>
2412 #include <sys/wait.h>
2414 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2417 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2422 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2425 if { (eval echo configure:2426: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2427 ac_cv_header_sys_wait_h=yes
2429 echo "configure: failed program was:" >&5
2430 cat conftest.$ac_ext >&5
2432 ac_cv_header_sys_wait_h=no
2437 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2438 if test $ac_cv_header_sys_wait_h = yes; then
2439 cat >> confdefs.h <<\EOF
2440 #define HAVE_SYS_WAIT_H 1
2445 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
2446 echo "configure:2447: checking whether stat file-mode macros are broken" >&5
2447 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
2448 echo $ac_n "(cached) $ac_c" 1>&6
2450 cat > conftest.$ac_ext <<EOF
2451 #line 2452 "configure"
2452 #include "confdefs.h"
2453 #include <sys/types.h>
2454 #include <sys/stat.h>
2456 #if defined(S_ISBLK) && defined(S_IFDIR)
2457 # if S_ISBLK (S_IFDIR)
2462 #if defined(S_ISBLK) && defined(S_IFCHR)
2463 # if S_ISBLK (S_IFCHR)
2468 #if defined(S_ISLNK) && defined(S_IFREG)
2469 # if S_ISLNK (S_IFREG)
2474 #if defined(S_ISSOCK) && defined(S_IFREG)
2475 # if S_ISSOCK (S_IFREG)
2481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2482 egrep "You lose" >/dev/null 2>&1; then
2484 ac_cv_header_stat_broken=yes
2487 ac_cv_header_stat_broken=no
2493 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
2494 if test $ac_cv_header_stat_broken = yes; then
2495 cat >> confdefs.h <<\EOF
2496 #define STAT_MACROS_BROKEN 1
2501 for ac_hdr in string.h memory.h stdlib.h unistd.h errno.h fcntl.h \
2502 limits.h crypt.h termcap.h termio.h termios.h locale.h \
2503 netdb.h sys/param.h sys/time.h sys/utsname.h arpa/inet.h \
2506 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2507 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2508 echo "configure:2509: checking for $ac_hdr" >&5
2509 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2510 echo $ac_n "(cached) $ac_c" 1>&6
2512 cat > conftest.$ac_ext <<EOF
2513 #line 2514 "configure"
2514 #include "confdefs.h"
2517 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2518 { (eval echo configure:2519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2519 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2520 if test -z "$ac_err"; then
2522 eval "ac_cv_header_$ac_safe=yes"
2525 echo "configure: failed program was:" >&5
2526 cat conftest.$ac_ext >&5
2528 eval "ac_cv_header_$ac_safe=no"
2532 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2533 echo "$ac_t""yes" 1>&6
2534 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2535 cat >> confdefs.h <<EOF
2536 #define $ac_tr_hdr 1
2540 echo "$ac_t""no" 1>&6
2546 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
2547 echo "configure:2548: checking POSIX termios" >&5
2548 if eval "test \"`echo '$''{'nmh_cv_sys_posix_termios'+set}'`\" = set"; then
2549 echo $ac_n "(cached) $ac_c" 1>&6
2551 cat > conftest.$ac_ext <<EOF
2552 #line 2553 "configure"
2553 #include "confdefs.h"
2554 #include <sys/types.h>
2556 #include <termios.h>
2558 /* SunOS 4.0.3 has termios.h but not the library calls. */
2562 if { (eval echo configure:2563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2564 nmh_cv_sys_posix_termios=yes
2566 echo "configure: failed program was:" >&5
2567 cat conftest.$ac_ext >&5
2569 nmh_cv_sys_posix_termios=no
2574 echo "$ac_t""$nmh_cv_sys_posix_termios" 1>&6
2576 if test $nmh_cv_sys_posix_termios = yes; then
2577 echo $ac_n "checking TIOCGWINSZ in termios.h""... $ac_c" 1>&6
2578 echo "configure:2579: checking TIOCGWINSZ in termios.h" >&5
2579 if eval "test \"`echo '$''{'nmh_cv_header_termios_h_tiocgwinsz'+set}'`\" = set"; then
2580 echo $ac_n "(cached) $ac_c" 1>&6
2582 cat > conftest.$ac_ext <<EOF
2583 #line 2584 "configure"
2584 #include "confdefs.h"
2585 #include <sys/types.h>
2586 #include <termios.h>
2591 if { (eval echo configure:2592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2593 nmh_cv_header_termios_h_tiocgwinsz=yes
2595 echo "configure: failed program was:" >&5
2596 cat conftest.$ac_ext >&5
2598 nmh_cv_header_termios_h_tiocgwinsz=no
2603 echo "$ac_t""$nmh_cv_header_termios_h_tiocgwinsz" 1>&6
2605 nmh_cv_header_termios_h_tiocgwinsz=no
2608 if test $nmh_cv_header_termios_h_tiocgwinsz = no; then
2609 echo $ac_n "checking TIOCGWINSZ in sys/ioctl.h""... $ac_c" 1>&6
2610 echo "configure:2611: checking TIOCGWINSZ in sys/ioctl.h" >&5
2611 if eval "test \"`echo '$''{'nmh_cv_header_sys_ioctl_h_tiocgwinsz'+set}'`\" = set"; then
2612 echo $ac_n "(cached) $ac_c" 1>&6
2614 cat > conftest.$ac_ext <<EOF
2615 #line 2616 "configure"
2616 #include "confdefs.h"
2617 #include <sys/types.h>
2618 #include <sys/ioctl.h>
2623 if { (eval echo configure:2624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2625 nmh_cv_header_sys_ioctl_h_tiocgwinsz=yes
2627 echo "configure: failed program was:" >&5
2628 cat conftest.$ac_ext >&5
2630 nmh_cv_header_sys_ioctl_h_tiocgwinsz=no
2635 echo "$ac_t""$nmh_cv_header_sys_ioctl_h_tiocgwinsz" 1>&6
2636 if test $nmh_cv_header_sys_ioctl_h_tiocgwinsz = yes; then
2637 cat >> confdefs.h <<\EOF
2638 #define GWINSZ_IN_SYS_IOCTL 1
2643 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2644 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2645 echo "configure:2646: checking for libio.h" >&5
2646 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2647 echo $ac_n "(cached) $ac_c" 1>&6
2649 cat > conftest.$ac_ext <<EOF
2650 #line 2651 "configure"
2651 #include "confdefs.h"
2654 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2655 { (eval echo configure:2656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2656 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2657 if test -z "$ac_err"; then
2659 eval "ac_cv_header_$ac_safe=yes"
2662 echo "configure: failed program was:" >&5
2663 cat conftest.$ac_ext >&5
2665 eval "ac_cv_header_$ac_safe=no"
2669 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2670 echo "$ac_t""yes" 1>&6
2672 cat > conftest.$ac_ext <<EOF
2673 #line 2674 "configure"
2674 #include "confdefs.h"
2677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2678 egrep "_IO_write_ptr" >/dev/null 2>&1; then
2681 cat >> confdefs.h <<\EOF
2682 #define LINUX_STDIO 1
2689 echo "$ac_t""no" 1>&6
2693 ac_safe=`echo "sys/ptem.h" | sed 'y%./+-%__p_%'`
2694 echo $ac_n "checking for sys/ptem.h""... $ac_c" 1>&6
2695 echo "configure:2696: checking for sys/ptem.h" >&5
2696 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2697 echo $ac_n "(cached) $ac_c" 1>&6
2699 cat > conftest.$ac_ext <<EOF
2700 #line 2701 "configure"
2701 #include "confdefs.h"
2702 #include <sys/ptem.h>
2704 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2705 { (eval echo configure:2706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2706 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2707 if test -z "$ac_err"; then
2709 eval "ac_cv_header_$ac_safe=yes"
2712 echo "configure: failed program was:" >&5
2713 cat conftest.$ac_ext >&5
2715 eval "ac_cv_header_$ac_safe=no"
2719 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2720 echo "$ac_t""yes" 1>&6
2721 cat >> confdefs.h <<\EOF
2722 #define WINSIZE_IN_PTEM 1
2726 echo "$ac_t""no" 1>&6
2730 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2731 echo "configure:2732: checking for pid_t" >&5
2732 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2733 echo $ac_n "(cached) $ac_c" 1>&6
2735 cat > conftest.$ac_ext <<EOF
2736 #line 2737 "configure"
2737 #include "confdefs.h"
2738 #include <sys/types.h>
2744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2745 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2747 ac_cv_type_pid_t=yes
2755 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2756 if test $ac_cv_type_pid_t = no; then
2757 cat >> confdefs.h <<\EOF
2763 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2764 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2765 echo "configure:2766: checking for vfork.h" >&5
2766 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2767 echo $ac_n "(cached) $ac_c" 1>&6
2769 cat > conftest.$ac_ext <<EOF
2770 #line 2771 "configure"
2771 #include "confdefs.h"
2774 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2775 { (eval echo configure:2776: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2776 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2777 if test -z "$ac_err"; then
2779 eval "ac_cv_header_$ac_safe=yes"
2782 echo "configure: failed program was:" >&5
2783 cat conftest.$ac_ext >&5
2785 eval "ac_cv_header_$ac_safe=no"
2789 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2790 echo "$ac_t""yes" 1>&6
2791 cat >> confdefs.h <<\EOF
2792 #define HAVE_VFORK_H 1
2796 echo "$ac_t""no" 1>&6
2799 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2800 echo "configure:2801: checking for working vfork" >&5
2801 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2802 echo $ac_n "(cached) $ac_c" 1>&6
2804 if test "$cross_compiling" = yes; then
2805 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2806 echo "configure:2807: checking for vfork" >&5
2807 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2808 echo $ac_n "(cached) $ac_c" 1>&6
2810 cat > conftest.$ac_ext <<EOF
2811 #line 2812 "configure"
2812 #include "confdefs.h"
2813 /* System header to define __stub macros and hopefully few prototypes,
2814 which can conflict with char vfork(); below. */
2816 /* Override any gcc2 internal prototype to avoid an error. */
2817 /* We use char because int might match the return type of a gcc2
2818 builtin and then its argument prototype would still apply. */
2823 /* The GNU C library defines this for functions which it implements
2824 to always fail with ENOSYS. Some functions are actually named
2825 something starting with __ and the normal name is an alias. */
2826 #if defined (__stub_vfork) || defined (__stub___vfork)
2834 if { (eval echo configure:2835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2836 eval "ac_cv_func_vfork=yes"
2838 echo "configure: failed program was:" >&5
2839 cat conftest.$ac_ext >&5
2841 eval "ac_cv_func_vfork=no"
2846 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2847 echo "$ac_t""yes" 1>&6
2850 echo "$ac_t""no" 1>&6
2853 ac_cv_func_vfork_works=$ac_cv_func_vfork
2855 cat > conftest.$ac_ext <<EOF
2856 #line 2857 "configure"
2857 #include "confdefs.h"
2858 /* Thanks to Paul Eggert for this test. */
2860 #include <sys/types.h>
2861 #include <sys/stat.h>
2862 #ifdef HAVE_UNISTD_H
2868 /* On some sparc systems, changes by the child to local and incoming
2869 argument registers are propagated back to the parent.
2870 The compiler is told about this with #include <vfork.h>,
2871 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2872 Test for this by using a static variable whose address
2873 is put into a register that is clobbered by the vfork. */
2876 sparc_address_test (int arg)
2878 sparc_address_test (arg) int arg;
2896 pid_t parent = getpid ();
2899 sparc_address_test ();
2904 /* Here is another test for sparc vfork register problems.
2905 This test uses lots of local variables, at least
2906 as many local variables as main has allocated so far
2907 including compiler temporaries. 4 locals are enough for
2908 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2909 A buggy compiler should reuse the register of parent
2910 for one of the local variables, since it will think that
2911 parent can't possibly be used any more in this routine.
2912 Assigning to the local variable will thus munge parent
2913 in the parent process. */
2915 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2916 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2917 /* Convince the compiler that p..p7 are live; otherwise, it might
2918 use the same hardware register for all 8 local variables. */
2919 if (p != p1 || p != p2 || p != p3 || p != p4
2920 || p != p5 || p != p6 || p != p7)
2923 /* On some systems (e.g. IRIX 3.3),
2924 vfork doesn't separate parent from child file descriptors.
2925 If the child closes a descriptor before it execs or exits,
2926 this munges the parent's descriptor as well.
2927 Test for this by closing stdout in the child. */
2928 _exit(close(fileno(stdout)) != 0);
2933 while (wait(&status) != child)
2936 /* Was there some problem with vforking? */
2939 /* Did the child fail? (This shouldn't happen.) */
2942 /* Did the vfork/compiler bug occur? */
2943 || parent != getpid()
2945 /* Did the file descriptor bug occur? */
2946 || fstat(fileno(stdout), &st) != 0
2951 if { (eval echo configure:2952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2953 ac_cv_func_vfork_works=yes
2955 echo "configure: failed program was:" >&5
2956 cat conftest.$ac_ext >&5
2958 ac_cv_func_vfork_works=no
2965 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2966 if test $ac_cv_func_vfork_works = no; then
2967 cat >> confdefs.h <<\EOF
2973 echo $ac_n "checking for mkstemp in -lmkstemp""... $ac_c" 1>&6
2974 echo "configure:2975: checking for mkstemp in -lmkstemp" >&5
2975 ac_lib_var=`echo mkstemp'_'mkstemp | sed 'y%./+-%__p_%'`
2976 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2977 echo $ac_n "(cached) $ac_c" 1>&6
2979 ac_save_LIBS="$LIBS"
2980 LIBS="-lmkstemp $LIBS"
2981 cat > conftest.$ac_ext <<EOF
2982 #line 2983 "configure"
2983 #include "confdefs.h"
2984 /* Override any gcc2 internal prototype to avoid an error. */
2985 /* We use char because int might match the return type of a gcc2
2986 builtin and then its argument prototype would still apply. */
2993 if { (eval echo configure:2994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2995 eval "ac_cv_lib_$ac_lib_var=yes"
2997 echo "configure: failed program was:" >&5
2998 cat conftest.$ac_ext >&5
3000 eval "ac_cv_lib_$ac_lib_var=no"
3003 LIBS="$ac_save_LIBS"
3006 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3007 echo "$ac_t""yes" 1>&6
3008 ac_tr_lib=HAVE_LIB`echo mkstemp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
3009 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3010 cat >> confdefs.h <<EOF
3011 #define $ac_tr_lib 1
3014 LIBS="-lmkstemp $LIBS"
3017 echo "$ac_t""no" 1>&6
3020 for ac_func in waitpid wait3 sigaction sigprocmask sigblock sigsetmask \
3021 sighold sigrelse writev lstat uname tzset killpg mkstemp \
3024 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3025 echo "configure:3026: checking for $ac_func" >&5
3026 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3027 echo $ac_n "(cached) $ac_c" 1>&6
3029 cat > conftest.$ac_ext <<EOF
3030 #line 3031 "configure"
3031 #include "confdefs.h"
3032 /* System header to define __stub macros and hopefully few prototypes,
3033 which can conflict with char $ac_func(); below. */
3035 /* Override any gcc2 internal prototype to avoid an error. */
3036 /* We use char because int might match the return type of a gcc2
3037 builtin and then its argument prototype would still apply. */
3042 /* The GNU C library defines this for functions which it implements
3043 to always fail with ENOSYS. Some functions are actually named
3044 something starting with __ and the normal name is an alias. */
3045 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3053 if { (eval echo configure:3054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3055 eval "ac_cv_func_$ac_func=yes"
3057 echo "configure: failed program was:" >&5
3058 cat conftest.$ac_ext >&5
3060 eval "ac_cv_func_$ac_func=no"
3065 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3066 echo "$ac_t""yes" 1>&6
3067 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3068 cat >> confdefs.h <<EOF
3069 #define $ac_tr_func 1
3073 echo "$ac_t""no" 1>&6
3078 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3079 echo "configure:3080: checking for gethostbyname" >&5
3080 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3081 echo $ac_n "(cached) $ac_c" 1>&6
3083 cat > conftest.$ac_ext <<EOF
3084 #line 3085 "configure"
3085 #include "confdefs.h"
3086 /* System header to define __stub macros and hopefully few prototypes,
3087 which can conflict with char gethostbyname(); below. */
3089 /* Override any gcc2 internal prototype to avoid an error. */
3090 /* We use char because int might match the return type of a gcc2
3091 builtin and then its argument prototype would still apply. */
3092 char gethostbyname();
3096 /* The GNU C library defines this for functions which it implements
3097 to always fail with ENOSYS. Some functions are actually named
3098 something starting with __ and the normal name is an alias. */
3099 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3107 if { (eval echo configure:3108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3109 eval "ac_cv_func_gethostbyname=yes"
3111 echo "configure: failed program was:" >&5
3112 cat conftest.$ac_ext >&5
3114 eval "ac_cv_func_gethostbyname=no"
3119 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3120 echo "$ac_t""yes" 1>&6
3121 cat >> confdefs.h <<\EOF
3122 #define HAVE_GETHOSTBYNAME 1
3126 echo "$ac_t""no" 1>&6
3127 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3128 echo "configure:3129: checking for gethostbyname in -lnsl" >&5
3129 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3130 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3131 echo $ac_n "(cached) $ac_c" 1>&6
3133 ac_save_LIBS="$LIBS"
3135 cat > conftest.$ac_ext <<EOF
3136 #line 3137 "configure"
3137 #include "confdefs.h"
3138 /* Override any gcc2 internal prototype to avoid an error. */
3139 /* We use char because int might match the return type of a gcc2
3140 builtin and then its argument prototype would still apply. */
3141 char gethostbyname();
3147 if { (eval echo configure:3148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3149 eval "ac_cv_lib_$ac_lib_var=yes"
3151 echo "configure: failed program was:" >&5
3152 cat conftest.$ac_ext >&5
3154 eval "ac_cv_lib_$ac_lib_var=no"
3157 LIBS="$ac_save_LIBS"
3160 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3161 echo "$ac_t""yes" 1>&6
3162 cat >> confdefs.h <<\EOF
3163 #define HAVE_GETHOSTBYNAME 1
3167 echo "$ac_t""no" 1>&6
3173 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
3174 echo "configure:3175: checking for sigsetjmp" >&5
3175 cat > conftest.$ac_ext <<EOF
3176 #line 3177 "configure"
3177 #include "confdefs.h"
3180 sigsetjmp((void *)0, 0);
3183 if { (eval echo configure:3184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3185 cat >> confdefs.h <<\EOF
3186 #define HAVE_SIGSETJMP 1
3188 echo "$ac_t""yes" 1>&6
3190 echo "configure: failed program was:" >&5
3191 cat conftest.$ac_ext >&5
3193 echo "$ac_t""no" 1>&6
3197 for ac_func in snprintf strerror strdup
3199 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3200 echo "configure:3201: checking for $ac_func" >&5
3201 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3202 echo $ac_n "(cached) $ac_c" 1>&6
3204 cat > conftest.$ac_ext <<EOF
3205 #line 3206 "configure"
3206 #include "confdefs.h"
3207 /* System header to define __stub macros and hopefully few prototypes,
3208 which can conflict with char $ac_func(); below. */
3210 /* Override any gcc2 internal prototype to avoid an error. */
3211 /* We use char because int might match the return type of a gcc2
3212 builtin and then its argument prototype would still apply. */
3217 /* The GNU C library defines this for functions which it implements
3218 to always fail with ENOSYS. Some functions are actually named
3219 something starting with __ and the normal name is an alias. */
3220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3228 if { (eval echo configure:3229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3230 eval "ac_cv_func_$ac_func=yes"
3232 echo "configure: failed program was:" >&5
3233 cat conftest.$ac_ext >&5
3235 eval "ac_cv_func_$ac_func=no"
3240 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3241 echo "$ac_t""yes" 1>&6
3242 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3243 cat >> confdefs.h <<EOF
3244 #define $ac_tr_func 1
3248 echo "$ac_t""no" 1>&6
3249 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
3255 cat > conftest.$ac_ext <<EOF
3256 #line 3257 "configure"
3257 #include "confdefs.h"
3260 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3261 egrep "initgroups" >/dev/null 2>&1; then
3263 cat >> confdefs.h <<\EOF
3264 #define INITGROUPS_HEADER <grp.h>
3269 cat > conftest.$ac_ext <<EOF
3270 #line 3271 "configure"
3271 #include "confdefs.h"
3274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3275 egrep "initgroups" >/dev/null 2>&1; then
3277 cat >> confdefs.h <<\EOF
3278 #define INITGROUPS_HEADER <unistd.h>
3288 cat > conftest.$ac_ext <<EOF
3289 #line 3290 "configure"
3290 #include "confdefs.h"
3293 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3294 egrep "snprintf" >/dev/null 2>&1; then
3296 cat >> confdefs.h <<\EOF
3297 #define HAVE_SNPRINTF_PROTOTYPE 1
3304 echo $ac_n "checking for modf""... $ac_c" 1>&6
3305 echo "configure:3306: checking for modf" >&5
3306 if eval "test \"`echo '$''{'ac_cv_func_modf'+set}'`\" = set"; then
3307 echo $ac_n "(cached) $ac_c" 1>&6
3309 cat > conftest.$ac_ext <<EOF
3310 #line 3311 "configure"
3311 #include "confdefs.h"
3312 /* System header to define __stub macros and hopefully few prototypes,
3313 which can conflict with char modf(); below. */
3315 /* Override any gcc2 internal prototype to avoid an error. */
3316 /* We use char because int might match the return type of a gcc2
3317 builtin and then its argument prototype would still apply. */
3322 /* The GNU C library defines this for functions which it implements
3323 to always fail with ENOSYS. Some functions are actually named
3324 something starting with __ and the normal name is an alias. */
3325 #if defined (__stub_modf) || defined (__stub___modf)
3333 if { (eval echo configure:3334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3335 eval "ac_cv_func_modf=yes"
3337 echo "configure: failed program was:" >&5
3338 cat conftest.$ac_ext >&5
3340 eval "ac_cv_func_modf=no"
3345 if eval "test \"`echo '$ac_cv_func_'modf`\" = yes"; then
3346 echo "$ac_t""yes" 1>&6
3349 echo "$ac_t""no" 1>&6
3350 echo $ac_n "checking for modf in -lm""... $ac_c" 1>&6
3351 echo "configure:3352: checking for modf in -lm" >&5
3352 ac_lib_var=`echo m'_'modf | sed 'y%./+-%__p_%'`
3353 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3354 echo $ac_n "(cached) $ac_c" 1>&6
3356 ac_save_LIBS="$LIBS"
3358 cat > conftest.$ac_ext <<EOF
3359 #line 3360 "configure"
3360 #include "confdefs.h"
3361 /* Override any gcc2 internal prototype to avoid an error. */
3362 /* We use char because int might match the return type of a gcc2
3363 builtin and then its argument prototype would still apply. */
3370 if { (eval echo configure:3371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3372 eval "ac_cv_lib_$ac_lib_var=yes"
3374 echo "configure: failed program was:" >&5
3375 cat conftest.$ac_ext >&5
3377 eval "ac_cv_lib_$ac_lib_var=no"
3380 LIBS="$ac_save_LIBS"
3383 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3384 echo "$ac_t""yes" 1>&6
3385 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
3386 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3387 cat >> confdefs.h <<EOF
3388 #define $ac_tr_lib 1
3394 echo "$ac_t""no" 1>&6
3400 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3401 echo "configure:3402: checking for gethostbyname" >&5
3402 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3403 echo $ac_n "(cached) $ac_c" 1>&6
3405 cat > conftest.$ac_ext <<EOF
3406 #line 3407 "configure"
3407 #include "confdefs.h"
3408 /* System header to define __stub macros and hopefully few prototypes,
3409 which can conflict with char gethostbyname(); below. */
3411 /* Override any gcc2 internal prototype to avoid an error. */
3412 /* We use char because int might match the return type of a gcc2
3413 builtin and then its argument prototype would still apply. */
3414 char gethostbyname();
3418 /* The GNU C library defines this for functions which it implements
3419 to always fail with ENOSYS. Some functions are actually named
3420 something starting with __ and the normal name is an alias. */
3421 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3429 if { (eval echo configure:3430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3431 eval "ac_cv_func_gethostbyname=yes"
3433 echo "configure: failed program was:" >&5
3434 cat conftest.$ac_ext >&5
3436 eval "ac_cv_func_gethostbyname=no"
3441 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3442 echo "$ac_t""yes" 1>&6
3445 echo "$ac_t""no" 1>&6
3446 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3447 echo "configure:3448: checking for gethostbyname in -lnsl" >&5
3448 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3449 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3450 echo $ac_n "(cached) $ac_c" 1>&6
3452 ac_save_LIBS="$LIBS"
3454 cat > conftest.$ac_ext <<EOF
3455 #line 3456 "configure"
3456 #include "confdefs.h"
3457 /* Override any gcc2 internal prototype to avoid an error. */
3458 /* We use char because int might match the return type of a gcc2
3459 builtin and then its argument prototype would still apply. */
3460 char gethostbyname();
3466 if { (eval echo configure:3467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3468 eval "ac_cv_lib_$ac_lib_var=yes"
3470 echo "configure: failed program was:" >&5
3471 cat conftest.$ac_ext >&5
3473 eval "ac_cv_lib_$ac_lib_var=no"
3476 LIBS="$ac_save_LIBS"
3479 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3480 echo "$ac_t""yes" 1>&6
3481 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
3482 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3483 cat >> confdefs.h <<EOF
3484 #define $ac_tr_lib 1
3490 echo "$ac_t""no" 1>&6
3491 echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6
3492 echo "configure:3493: checking for gethostbyname in -lresolv" >&5
3493 ac_lib_var=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'`
3494 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3495 echo $ac_n "(cached) $ac_c" 1>&6
3497 ac_save_LIBS="$LIBS"
3498 LIBS="-lresolv $LIBS"
3499 cat > conftest.$ac_ext <<EOF
3500 #line 3501 "configure"
3501 #include "confdefs.h"
3502 /* Override any gcc2 internal prototype to avoid an error. */
3503 /* We use char because int might match the return type of a gcc2
3504 builtin and then its argument prototype would still apply. */
3505 char gethostbyname();
3511 if { (eval echo configure:3512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3513 eval "ac_cv_lib_$ac_lib_var=yes"
3515 echo "configure: failed program was:" >&5
3516 cat conftest.$ac_ext >&5
3518 eval "ac_cv_lib_$ac_lib_var=no"
3521 LIBS="$ac_save_LIBS"
3524 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3525 echo "$ac_t""yes" 1>&6
3526 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
3527 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3528 cat >> confdefs.h <<EOF
3529 #define $ac_tr_lib 1
3532 LIBS="-lresolv $LIBS"
3535 echo "$ac_t""no" 1>&6
3542 echo $ac_n "checking for socket""... $ac_c" 1>&6
3543 echo "configure:3544: checking for socket" >&5
3544 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
3545 echo $ac_n "(cached) $ac_c" 1>&6
3547 cat > conftest.$ac_ext <<EOF
3548 #line 3549 "configure"
3549 #include "confdefs.h"
3550 /* System header to define __stub macros and hopefully few prototypes,
3551 which can conflict with char socket(); below. */
3553 /* Override any gcc2 internal prototype to avoid an error. */
3554 /* We use char because int might match the return type of a gcc2
3555 builtin and then its argument prototype would still apply. */
3560 /* The GNU C library defines this for functions which it implements
3561 to always fail with ENOSYS. Some functions are actually named
3562 something starting with __ and the normal name is an alias. */
3563 #if defined (__stub_socket) || defined (__stub___socket)
3571 if { (eval echo configure:3572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3573 eval "ac_cv_func_socket=yes"
3575 echo "configure: failed program was:" >&5
3576 cat conftest.$ac_ext >&5
3578 eval "ac_cv_func_socket=no"
3583 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
3584 echo "$ac_t""yes" 1>&6
3587 echo "$ac_t""no" 1>&6
3588 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
3589 echo "configure:3590: checking for socket in -lsocket" >&5
3590 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
3591 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3592 echo $ac_n "(cached) $ac_c" 1>&6
3594 ac_save_LIBS="$LIBS"
3595 LIBS="-lsocket $LIBS"
3596 cat > conftest.$ac_ext <<EOF
3597 #line 3598 "configure"
3598 #include "confdefs.h"
3599 /* Override any gcc2 internal prototype to avoid an error. */
3600 /* We use char because int might match the return type of a gcc2
3601 builtin and then its argument prototype would still apply. */
3608 if { (eval echo configure:3609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3610 eval "ac_cv_lib_$ac_lib_var=yes"
3612 echo "configure: failed program was:" >&5
3613 cat conftest.$ac_ext >&5
3615 eval "ac_cv_lib_$ac_lib_var=no"
3618 LIBS="$ac_save_LIBS"
3621 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3622 echo "$ac_t""yes" 1>&6
3623 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
3624 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3625 cat >> confdefs.h <<EOF
3626 #define $ac_tr_lib 1
3629 LIBS="-lsocket $LIBS"
3632 echo "$ac_t""no" 1>&6
3639 termcap_curses_order="termcap curses ncurses"
3640 for lib in $termcap_curses_order; do
3641 echo $ac_n "checking for tgetent in -l${lib}""... $ac_c" 1>&6
3642 echo "configure:3643: checking for tgetent in -l${lib}" >&5
3643 ac_lib_var=`echo ${lib}'_'tgetent | sed 'y%./+-%__p_%'`
3644 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3645 echo $ac_n "(cached) $ac_c" 1>&6
3647 ac_save_LIBS="$LIBS"
3648 LIBS="-l${lib} $LIBS"
3649 cat > conftest.$ac_ext <<EOF
3650 #line 3651 "configure"
3651 #include "confdefs.h"
3652 /* Override any gcc2 internal prototype to avoid an error. */
3653 /* We use char because int might match the return type of a gcc2
3654 builtin and then its argument prototype would still apply. */
3661 if { (eval echo configure:3662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3663 eval "ac_cv_lib_$ac_lib_var=yes"
3665 echo "configure: failed program was:" >&5
3666 cat conftest.$ac_ext >&5
3668 eval "ac_cv_lib_$ac_lib_var=no"
3671 LIBS="$ac_save_LIBS"
3674 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3675 echo "$ac_t""yes" 1>&6
3676 TERMLIB="-l$lib"; break
3678 echo "$ac_t""no" 1>&6
3683 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
3684 echo "configure:3685: checking for dbm_open" >&5
3685 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
3686 echo $ac_n "(cached) $ac_c" 1>&6
3688 cat > conftest.$ac_ext <<EOF
3689 #line 3690 "configure"
3690 #include "confdefs.h"
3691 /* System header to define __stub macros and hopefully few prototypes,
3692 which can conflict with char dbm_open(); below. */
3694 /* Override any gcc2 internal prototype to avoid an error. */
3695 /* We use char because int might match the return type of a gcc2
3696 builtin and then its argument prototype would still apply. */
3701 /* The GNU C library defines this for functions which it implements
3702 to always fail with ENOSYS. Some functions are actually named
3703 something starting with __ and the normal name is an alias. */
3704 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
3712 if { (eval echo configure:3713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3714 eval "ac_cv_func_dbm_open=yes"
3716 echo "configure: failed program was:" >&5
3717 cat conftest.$ac_ext >&5
3719 eval "ac_cv_func_dbm_open=no"
3724 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
3725 echo "$ac_t""yes" 1>&6
3728 echo "$ac_t""no" 1>&6
3729 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
3730 echo "configure:3731: checking for dbm_open in -lndbm" >&5
3731 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
3732 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3733 echo $ac_n "(cached) $ac_c" 1>&6
3735 ac_save_LIBS="$LIBS"
3737 cat > conftest.$ac_ext <<EOF
3738 #line 3739 "configure"
3739 #include "confdefs.h"
3740 /* Override any gcc2 internal prototype to avoid an error. */
3741 /* We use char because int might match the return type of a gcc2
3742 builtin and then its argument prototype would still apply. */
3749 if { (eval echo configure:3750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3751 eval "ac_cv_lib_$ac_lib_var=yes"
3753 echo "configure: failed program was:" >&5
3754 cat conftest.$ac_ext >&5
3756 eval "ac_cv_lib_$ac_lib_var=no"
3759 LIBS="$ac_save_LIBS"
3762 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3763 echo "$ac_t""yes" 1>&6
3764 ac_tr_lib=HAVE_LIB`echo ndbm | sed -e 's/^a-zA-Z0-9_/_/g' \
3765 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3766 cat >> confdefs.h <<EOF
3767 #define $ac_tr_lib 1
3773 echo "$ac_t""no" 1>&6
3774 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
3775 echo "configure:3776: checking for dbm_open in -ldbm" >&5
3776 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
3777 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3778 echo $ac_n "(cached) $ac_c" 1>&6
3780 ac_save_LIBS="$LIBS"
3782 cat > conftest.$ac_ext <<EOF
3783 #line 3784 "configure"
3784 #include "confdefs.h"
3785 /* Override any gcc2 internal prototype to avoid an error. */
3786 /* We use char because int might match the return type of a gcc2
3787 builtin and then its argument prototype would still apply. */
3794 if { (eval echo configure:3795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3796 eval "ac_cv_lib_$ac_lib_var=yes"
3798 echo "configure: failed program was:" >&5
3799 cat conftest.$ac_ext >&5
3801 eval "ac_cv_lib_$ac_lib_var=no"
3804 LIBS="$ac_save_LIBS"
3807 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3808 echo "$ac_t""yes" 1>&6
3809 ac_tr_lib=HAVE_LIB`echo dbm | sed -e 's/^a-zA-Z0-9_/_/g' \
3810 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3811 cat >> confdefs.h <<EOF
3812 #define $ac_tr_lib 1
3818 echo "$ac_t""no" 1>&6
3826 for ac_hdr in db1/ndbm.h
3828 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3829 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3830 echo "configure:3831: checking for $ac_hdr" >&5
3831 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3832 echo $ac_n "(cached) $ac_c" 1>&6
3834 cat > conftest.$ac_ext <<EOF
3835 #line 3836 "configure"
3836 #include "confdefs.h"
3839 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3840 { (eval echo configure:3841: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3841 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3842 if test -z "$ac_err"; then
3844 eval "ac_cv_header_$ac_safe=yes"
3847 echo "configure: failed program was:" >&5
3848 cat conftest.$ac_ext >&5
3850 eval "ac_cv_header_$ac_safe=no"
3854 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3855 echo "$ac_t""yes" 1>&6
3856 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3857 cat >> confdefs.h <<EOF
3858 #define $ac_tr_hdr 1
3862 echo "$ac_t""no" 1>&6
3867 if test x"$with_hesiod" != x -a x"$with_hesiod" != x"no"; then
3868 if test x"$with_hesiod" != x"yes"; then
3869 HESIOD_INCLUDES="-I$with_hesiod/include"
3870 HESIOD_LIBS="-L$with_hesiod/lib"
3872 echo $ac_n "checking for res_send""... $ac_c" 1>&6
3873 echo "configure:3874: checking for res_send" >&5
3874 if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then
3875 echo $ac_n "(cached) $ac_c" 1>&6
3877 cat > conftest.$ac_ext <<EOF
3878 #line 3879 "configure"
3879 #include "confdefs.h"
3880 /* System header to define __stub macros and hopefully few prototypes,
3881 which can conflict with char res_send(); below. */
3883 /* Override any gcc2 internal prototype to avoid an error. */
3884 /* We use char because int might match the return type of a gcc2
3885 builtin and then its argument prototype would still apply. */
3890 /* The GNU C library defines this for functions which it implements
3891 to always fail with ENOSYS. Some functions are actually named
3892 something starting with __ and the normal name is an alias. */
3893 #if defined (__stub_res_send) || defined (__stub___res_send)
3901 if { (eval echo configure:3902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3903 eval "ac_cv_func_res_send=yes"
3905 echo "configure: failed program was:" >&5
3906 cat conftest.$ac_ext >&5
3908 eval "ac_cv_func_res_send=no"
3913 if eval "test \"`echo '$ac_cv_func_'res_send`\" = yes"; then
3914 echo "$ac_t""yes" 1>&6
3915 echo $ac_n "checking for hes_resolve in -lhesiod""... $ac_c" 1>&6
3916 echo "configure:3917: checking for hes_resolve in -lhesiod" >&5
3917 ac_lib_var=`echo hesiod'_'hes_resolve | sed 'y%./+-%__p_%'`
3918 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3919 echo $ac_n "(cached) $ac_c" 1>&6
3921 ac_save_LIBS="$LIBS"
3922 LIBS="-lhesiod $HESIOD_LIBS $LIBS"
3923 cat > conftest.$ac_ext <<EOF
3924 #line 3925 "configure"
3925 #include "confdefs.h"
3926 /* Override any gcc2 internal prototype to avoid an error. */
3927 /* We use char because int might match the return type of a gcc2
3928 builtin and then its argument prototype would still apply. */
3935 if { (eval echo configure:3936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3937 eval "ac_cv_lib_$ac_lib_var=yes"
3939 echo "configure: failed program was:" >&5
3940 cat conftest.$ac_ext >&5
3942 eval "ac_cv_lib_$ac_lib_var=no"
3945 LIBS="$ac_save_LIBS"
3948 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3949 echo "$ac_t""yes" 1>&6
3950 HESIOD_LIBS="$HESIOD_LIBS -lhesiod"
3952 echo "$ac_t""no" 1>&6
3953 { echo "configure: error: Hesiod library not found" 1>&2; exit 1; }
3957 echo "$ac_t""no" 1>&6
3958 echo $ac_n "checking for hes_resolve in -lhesiod""... $ac_c" 1>&6
3959 echo "configure:3960: checking for hes_resolve in -lhesiod" >&5
3960 ac_lib_var=`echo hesiod'_'hes_resolve | sed 'y%./+-%__p_%'`
3961 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3962 echo $ac_n "(cached) $ac_c" 1>&6
3964 ac_save_LIBS="$LIBS"
3965 LIBS="-lhesiod $HESIOD_LIBS -lresolv $LIBS"
3966 cat > conftest.$ac_ext <<EOF
3967 #line 3968 "configure"
3968 #include "confdefs.h"
3969 /* Override any gcc2 internal prototype to avoid an error. */
3970 /* We use char because int might match the return type of a gcc2
3971 builtin and then its argument prototype would still apply. */
3978 if { (eval echo configure:3979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3980 eval "ac_cv_lib_$ac_lib_var=yes"
3982 echo "configure: failed program was:" >&5
3983 cat conftest.$ac_ext >&5
3985 eval "ac_cv_lib_$ac_lib_var=no"
3988 LIBS="$ac_save_LIBS"
3991 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3992 echo "$ac_t""yes" 1>&6
3993 HESIOD_LIBS="$HESIOD_LIBS -lhesiod -lresolv"
3995 echo "$ac_t""no" 1>&6
3996 { echo "configure: error: Hesiod library not found" 1>&2; exit 1; }
4004 if test x"$with_krb4" != x -a x"$with_krb4" != x"no"; then
4005 if test x"$with_krb4" != x"yes"; then
4006 KRB4_INCLUDES="-I$with_krb4/include"
4007 if test -d "$with_krb4/include/kerberosIV"; then
4008 KRB4_INCLUDES="$KRB4_INCLUDES -I$with_krb4/include/kerberosIV"
4010 KRB4_LIBS="-L$with_krb4/lib"
4011 elif test -d /usr/include/kerberosIV; then
4012 KRB4_INCLUDES="-I/usr/include/kerberosIV"
4015 echo $ac_n "checking for krb5_encrypt in -lk5crypto""... $ac_c" 1>&6
4016 echo "configure:4017: checking for krb5_encrypt in -lk5crypto" >&5
4017 ac_lib_var=`echo k5crypto'_'krb5_encrypt | sed 'y%./+-%__p_%'`
4018 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4019 echo $ac_n "(cached) $ac_c" 1>&6
4021 ac_save_LIBS="$LIBS"
4022 LIBS="-lk5crypto $KRB4_LIBS $LIBS"
4023 cat > conftest.$ac_ext <<EOF
4024 #line 4025 "configure"
4025 #include "confdefs.h"
4026 /* Override any gcc2 internal prototype to avoid an error. */
4027 /* We use char because int might match the return type of a gcc2
4028 builtin and then its argument prototype would still apply. */
4029 char krb5_encrypt();
4035 if { (eval echo configure:4036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4037 eval "ac_cv_lib_$ac_lib_var=yes"
4039 echo "configure: failed program was:" >&5
4040 cat conftest.$ac_ext >&5
4042 eval "ac_cv_lib_$ac_lib_var=no"
4045 LIBS="$ac_save_LIBS"
4048 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4049 echo "$ac_t""yes" 1>&6
4050 echo $ac_n "checking for krb_rd_req in -lkrb4""... $ac_c" 1>&6
4051 echo "configure:4052: checking for krb_rd_req in -lkrb4" >&5
4052 ac_lib_var=`echo krb4'_'krb_rd_req | sed 'y%./+-%__p_%'`
4053 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4054 echo $ac_n "(cached) $ac_c" 1>&6
4056 ac_save_LIBS="$LIBS"
4057 LIBS="-lkrb4 $KRB4_LIBS -ldes425 -lkrb5 -lk5crypto -lcom_err $LIBS"
4058 cat > conftest.$ac_ext <<EOF
4059 #line 4060 "configure"
4060 #include "confdefs.h"
4061 /* Override any gcc2 internal prototype to avoid an error. */
4062 /* We use char because int might match the return type of a gcc2
4063 builtin and then its argument prototype would still apply. */
4070 if { (eval echo configure:4071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4072 eval "ac_cv_lib_$ac_lib_var=yes"
4074 echo "configure: failed program was:" >&5
4075 cat conftest.$ac_ext >&5
4077 eval "ac_cv_lib_$ac_lib_var=no"
4080 LIBS="$ac_save_LIBS"
4083 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4084 echo "$ac_t""yes" 1>&6
4085 KRB4_LIBS="$KRB4_LIBS -lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err"
4087 echo "$ac_t""no" 1>&6
4088 { echo "configure: error: Kerberos 4 compatibility libraries not found" 1>&2; exit 1; }
4092 echo "$ac_t""no" 1>&6
4093 echo $ac_n "checking for krb_rd_req in -lkrb4""... $ac_c" 1>&6
4094 echo "configure:4095: checking for krb_rd_req in -lkrb4" >&5
4095 ac_lib_var=`echo krb4'_'krb_rd_req | sed 'y%./+-%__p_%'`
4096 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4097 echo $ac_n "(cached) $ac_c" 1>&6
4099 ac_save_LIBS="$LIBS"
4100 LIBS="-lkrb4 $KRB4_LIBS -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
4101 cat > conftest.$ac_ext <<EOF
4102 #line 4103 "configure"
4103 #include "confdefs.h"
4104 /* Override any gcc2 internal prototype to avoid an error. */
4105 /* We use char because int might match the return type of a gcc2
4106 builtin and then its argument prototype would still apply. */
4113 if { (eval echo configure:4114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4115 eval "ac_cv_lib_$ac_lib_var=yes"
4117 echo "configure: failed program was:" >&5
4118 cat conftest.$ac_ext >&5
4120 eval "ac_cv_lib_$ac_lib_var=no"
4123 LIBS="$ac_save_LIBS"
4126 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4127 echo "$ac_t""yes" 1>&6
4128 KRB4_LIBS="$KRB4_LIBS -lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err"
4130 echo "$ac_t""no" 1>&6
4131 echo $ac_n "checking for krb_rd_req in -lkrb""... $ac_c" 1>&6
4132 echo "configure:4133: checking for krb_rd_req in -lkrb" >&5
4133 ac_lib_var=`echo krb'_'krb_rd_req | sed 'y%./+-%__p_%'`
4134 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4135 echo $ac_n "(cached) $ac_c" 1>&6
4137 ac_save_LIBS="$LIBS"
4138 LIBS="-lkrb $KRB4_LIBS -ldes $LIBS"
4139 cat > conftest.$ac_ext <<EOF
4140 #line 4141 "configure"
4141 #include "confdefs.h"
4142 /* Override any gcc2 internal prototype to avoid an error. */
4143 /* We use char because int might match the return type of a gcc2
4144 builtin and then its argument prototype would still apply. */
4151 if { (eval echo configure:4152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4153 eval "ac_cv_lib_$ac_lib_var=yes"
4155 echo "configure: failed program was:" >&5
4156 cat conftest.$ac_ext >&5
4158 eval "ac_cv_lib_$ac_lib_var=no"
4161 LIBS="$ac_save_LIBS"
4164 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4165 echo "$ac_t""yes" 1>&6
4166 KRB4_LIBS="$KRB4_LIBS -lkrb -ldes"
4168 echo "$ac_t""no" 1>&6
4169 { echo "configure: error: Kerberos 4 libraries not found" 1>&2; exit 1; }
4179 if test x"$with_cyrus_sasl" != x -a x"$with_cyrus_sasl" != "no"; then
4180 if test x"$with_cyrus_sasl" != x"yes"; then
4181 SASL_INCLUDES="-I$with_cyrus_sasl/include"
4182 SASL_LIBS="-L$with_cyrus_sasl/lib"
4184 save_LDFLAGS="$LDFLAGS"
4185 LDFLAGS="$LDFLAGS $SASL_LIBS"
4186 echo $ac_n "checking for sasl_client_new in -lsasl""... $ac_c" 1>&6
4187 echo "configure:4188: checking for sasl_client_new in -lsasl" >&5
4188 ac_lib_var=`echo sasl'_'sasl_client_new | sed 'y%./+-%__p_%'`
4189 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4190 echo $ac_n "(cached) $ac_c" 1>&6
4192 ac_save_LIBS="$LIBS"
4194 cat > conftest.$ac_ext <<EOF
4195 #line 4196 "configure"
4196 #include "confdefs.h"
4197 /* Override any gcc2 internal prototype to avoid an error. */
4198 /* We use char because int might match the return type of a gcc2
4199 builtin and then its argument prototype would still apply. */
4200 char sasl_client_new();
4206 if { (eval echo configure:4207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4208 eval "ac_cv_lib_$ac_lib_var=yes"
4210 echo "configure: failed program was:" >&5
4211 cat conftest.$ac_ext >&5
4213 eval "ac_cv_lib_$ac_lib_var=no"
4216 LIBS="$ac_save_LIBS"
4219 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4220 echo "$ac_t""yes" 1>&6
4221 SASL_LIBS="$SASL_LIBS -lsasl"
4223 echo "$ac_t""no" 1>&6
4224 { echo "configure: error: Cyrus SASL library not found" 1>&2; exit 1; }
4227 LDFLAGS="$save_LDFLAGS"
4231 nmh_save_LIBS="$LIBS"
4232 LIBS="$TERMLIB $LIBS"
4234 echo $ac_n "checking if an include file defines ospeed""... $ac_c" 1>&6
4235 echo "configure:4236: checking if an include file defines ospeed" >&5
4236 if eval "test \"`echo '$''{'nmh_cv_decl_ospeed_include_defines'+set}'`\" = set"; then
4237 echo $ac_n "(cached) $ac_c" 1>&6
4239 cat > conftest.$ac_ext <<EOF
4240 #line 4241 "configure"
4241 #include "confdefs.h"
4242 #include <sys/types.h>
4244 #include <termios.h>
4247 #include <termcap.h>
4253 if { (eval echo configure:4254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4255 nmh_cv_decl_ospeed_include_defines=yes
4257 echo "configure: failed program was:" >&5
4258 cat conftest.$ac_ext >&5
4260 nmh_cv_decl_ospeed_include_defines=no
4265 echo "$ac_t""$nmh_cv_decl_ospeed_include_defines" 1>&6
4267 if test $nmh_cv_decl_ospeed_include_defines = no; then
4268 echo $ac_n "checking if you must define ospeed""... $ac_c" 1>&6
4269 echo "configure:4270: checking if you must define ospeed" >&5
4270 if eval "test \"`echo '$''{'nmh_cv_decl_ospeed_must_define'+set}'`\" = set"; then
4271 echo $ac_n "(cached) $ac_c" 1>&6
4273 cat > conftest.$ac_ext <<EOF
4274 #line 4275 "configure"
4275 #include "confdefs.h"
4278 extern short ospeed; ospeed = 0;
4281 if { (eval echo configure:4282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4283 nmh_cv_decl_ospeed_must_define=yes
4285 echo "configure: failed program was:" >&5
4286 cat conftest.$ac_ext >&5
4288 nmh_cv_decl_ospeed_must_define=no
4293 echo "$ac_t""$nmh_cv_decl_ospeed_must_define" 1>&6
4296 if test $nmh_cv_decl_ospeed_include_defines = yes; then
4297 cat >> confdefs.h <<\EOF
4298 #define HAVE_OSPEED 1
4300 elif test $nmh_cv_decl_ospeed_must_define = yes; then
4301 cat >> confdefs.h <<\EOF
4302 #define HAVE_OSPEED 1
4305 cat >> confdefs.h <<\EOF
4306 #define MUST_DEFINE_OSPEED 1
4312 LIBS="$nmh_save_LIBS"
4314 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4315 echo "configure:4316: checking return type of signal handlers" >&5
4316 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4317 echo $ac_n "(cached) $ac_c" 1>&6
4319 cat > conftest.$ac_ext <<EOF
4320 #line 4321 "configure"
4321 #include "confdefs.h"
4322 #include <sys/types.h>
4328 extern "C" void (*signal (int, void (*)(int)))(int);
4330 void (*signal ()) ();
4337 if { (eval echo configure:4338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4339 ac_cv_type_signal=void
4341 echo "configure: failed program was:" >&5
4342 cat conftest.$ac_ext >&5
4344 ac_cv_type_signal=int
4349 echo "$ac_t""$ac_cv_type_signal" 1>&6
4350 cat >> confdefs.h <<EOF
4351 #define RETSIGTYPE $ac_cv_type_signal
4355 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
4356 echo "configure:4357: checking for pid_t" >&5
4357 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
4358 echo $ac_n "(cached) $ac_c" 1>&6
4360 cat > conftest.$ac_ext <<EOF
4361 #line 4362 "configure"
4362 #include "confdefs.h"
4363 #include <sys/types.h>
4369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4370 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4372 ac_cv_type_pid_t=yes
4380 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
4381 if test $ac_cv_type_pid_t = no; then
4382 cat >> confdefs.h <<\EOF
4388 echo $ac_n "checking for off_t""... $ac_c" 1>&6
4389 echo "configure:4390: checking for off_t" >&5
4390 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
4391 echo $ac_n "(cached) $ac_c" 1>&6
4393 cat > conftest.$ac_ext <<EOF
4394 #line 4395 "configure"
4395 #include "confdefs.h"
4396 #include <sys/types.h>
4402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4403 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4405 ac_cv_type_off_t=yes
4413 echo "$ac_t""$ac_cv_type_off_t" 1>&6
4414 if test $ac_cv_type_off_t = no; then
4415 cat >> confdefs.h <<\EOF
4421 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
4422 echo "configure:4423: checking for uid_t in sys/types.h" >&5
4423 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
4424 echo $ac_n "(cached) $ac_c" 1>&6
4426 cat > conftest.$ac_ext <<EOF
4427 #line 4428 "configure"
4428 #include "confdefs.h"
4429 #include <sys/types.h>
4431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4432 egrep "uid_t" >/dev/null 2>&1; then
4434 ac_cv_type_uid_t=yes
4443 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
4444 if test $ac_cv_type_uid_t = no; then
4445 cat >> confdefs.h <<\EOF
4449 cat >> confdefs.h <<\EOF
4455 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
4456 echo "configure:4457: checking for mode_t" >&5
4457 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
4458 echo $ac_n "(cached) $ac_c" 1>&6
4460 cat > conftest.$ac_ext <<EOF
4461 #line 4462 "configure"
4462 #include "confdefs.h"
4463 #include <sys/types.h>
4469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4470 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4472 ac_cv_type_mode_t=yes
4475 ac_cv_type_mode_t=no
4480 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
4481 if test $ac_cv_type_mode_t = no; then
4482 cat >> confdefs.h <<\EOF
4488 echo $ac_n "checking for size_t""... $ac_c" 1>&6
4489 echo "configure:4490: checking for size_t" >&5
4490 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
4491 echo $ac_n "(cached) $ac_c" 1>&6
4493 cat > conftest.$ac_ext <<EOF
4494 #line 4495 "configure"
4495 #include "confdefs.h"
4496 #include <sys/types.h>
4502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4503 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4505 ac_cv_type_size_t=yes
4508 ac_cv_type_size_t=no
4513 echo "$ac_t""$ac_cv_type_size_t" 1>&6
4514 if test $ac_cv_type_size_t = no; then
4515 cat >> confdefs.h <<\EOF
4516 #define size_t unsigned
4522 echo $ac_n "checking for sigset_t""... $ac_c" 1>&6
4523 echo "configure:4524: checking for sigset_t" >&5
4524 if eval "test \"`echo '$''{'nmh_cv_type_sigset_t'+set}'`\" = set"; then
4525 echo $ac_n "(cached) $ac_c" 1>&6
4527 cat > conftest.$ac_ext <<EOF
4528 #line 4529 "configure"
4529 #include "confdefs.h"
4530 #include <sys/types.h>
4533 sigset_t tempsigset;
4536 if { (eval echo configure:4537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4538 nmh_cv_type_sigset_t=yes
4540 echo "configure: failed program was:" >&5
4541 cat conftest.$ac_ext >&5
4543 nmh_cv_type_sigset_t=no
4548 echo "$ac_t""$nmh_cv_type_sigset_t" 1>&6
4549 if test $nmh_cv_type_sigset_t = no; then
4550 cat >> confdefs.h <<\EOF
4551 #define sigset_t unsigned int
4556 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
4557 echo "configure:4558: checking for st_blksize in struct stat" >&5
4558 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
4559 echo $ac_n "(cached) $ac_c" 1>&6
4561 cat > conftest.$ac_ext <<EOF
4562 #line 4563 "configure"
4563 #include "confdefs.h"
4564 #include <sys/types.h>
4565 #include <sys/stat.h>
4567 struct stat s; s.st_blksize;
4570 if { (eval echo configure:4571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4572 ac_cv_struct_st_blksize=yes
4574 echo "configure: failed program was:" >&5
4575 cat conftest.$ac_ext >&5
4577 ac_cv_struct_st_blksize=no
4582 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
4583 if test $ac_cv_struct_st_blksize = yes; then
4584 cat >> confdefs.h <<\EOF
4585 #define HAVE_ST_BLKSIZE 1
4591 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
4592 echo "configure:4593: checking for tm_gmtoff in struct tm" >&5
4593 if eval "test \"`echo '$''{'nmh_cv_struct_tm_gmtoff'+set}'`\" = set"; then
4594 echo $ac_n "(cached) $ac_c" 1>&6
4596 cat > conftest.$ac_ext <<EOF
4597 #line 4598 "configure"
4598 #include "confdefs.h"
4599 #ifdef TIME_WITH_SYS_TIME
4600 # include <sys/time.h>
4603 # ifdef TM_IN_SYS_TIME
4604 # include <sys/time.h>
4610 struct tm temptm; temptm.tm_gmtoff = 0;
4613 if { (eval echo configure:4614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4615 nmh_cv_struct_tm_gmtoff=yes
4617 echo "configure: failed program was:" >&5
4618 cat conftest.$ac_ext >&5
4620 nmh_cv_struct_tm_gmtoff=no
4625 echo "$ac_t""$nmh_cv_struct_tm_gmtoff" 1>&6
4626 if test $nmh_cv_struct_tm_gmtoff = yes; then
4627 cat >> confdefs.h <<\EOF
4628 #define HAVE_TM_GMTOFF 1
4633 echo $ac_n "checking what style of signals to use""... $ac_c" 1>&6
4634 echo "configure:4635: checking what style of signals to use" >&5
4635 if test $ac_cv_func_sigaction = yes -a $ac_cv_func_sigprocmask = yes; then
4636 signals_style=POSIX_SIGNALS
4637 cat >> confdefs.h <<\EOF
4638 #define POSIX_SIGNALS 1
4641 cat >> confdefs.h <<\EOF
4642 #define RELIABLE_SIGNALS 1
4645 elif test $ac_cv_func_sigblock = yes -a $ac_cv_func_sigsetmask = yes; then
4646 signals_style=BSD_SIGNALS
4647 cat >> confdefs.h <<\EOF
4648 #define BSD_SIGNALS 1
4651 cat >> confdefs.h <<\EOF
4652 #define RELIABLE_SIGNALS 1
4655 elif test $ac_cv_func_sighold = yes -a $ac_cv_func_sigrelse = yes; then
4656 signals_style=SYSV_SIGNALS
4657 cat >> confdefs.h <<\EOF
4658 #define SYSV_SIGNALS 1
4662 signals_style=NO_SIGNAL_BLOCKING
4663 cat >> confdefs.h <<\EOF
4664 #define NO_SIGNAL_BLOCKING 1
4669 echo "$ac_t""$signals_style" 1>&6
4671 echo $ac_n "checking where signal.h is located""... $ac_c" 1>&6
4672 echo "configure:4673: checking where signal.h is located" >&5
4673 if eval "test \"`echo '$''{'nmh_cv_path_signal_h'+set}'`\" = set"; then
4674 echo $ac_n "(cached) $ac_c" 1>&6
4676 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
4677 test -f $SIGNAL_H && \
4678 grep '#[ ]*define[ ][ ]*SIG[0-9A-Z]*[ ]*[0-9][0-9]*' $SIGNAL_H > /dev/null && \
4681 nmh_cv_path_signal_h=$SIGNAL_H
4685 echo "$ac_t""$nmh_cv_path_signal_h" 1>&6
4686 SIGNAL_H=$nmh_cv_path_signal_h
4688 case "$target_os" in
4691 cat >> confdefs.h <<\EOF
4695 cat >> confdefs.h <<\EOF
4701 cat >> confdefs.h <<\EOF
4705 cat >> confdefs.h <<\EOF
4711 cat >> confdefs.h <<\EOF
4715 cat >> confdefs.h <<\EOF
4721 cat >> confdefs.h <<\EOF
4725 cat >> confdefs.h <<\EOF
4731 cat >> confdefs.h <<\EOF
4737 cat >> confdefs.h <<\EOF
4741 cat >> confdefs.h <<\EOF
4747 cat >> confdefs.h <<\EOF
4751 cat >> confdefs.h <<\EOF
4757 cat >> confdefs.h <<\EOF
4761 cat >> confdefs.h <<\EOF
4767 cat >> confdefs.h <<\EOF
4771 cat >> confdefs.h <<\EOF
4777 cat >> confdefs.h <<\EOF
4781 cat >> confdefs.h <<\EOF
4782 #define SCO_5_STDIO 1
4790 cat > confcache <<\EOF
4791 # This file is a shell script that caches the results of configure
4792 # tests run on this system so they can be shared between configure
4793 # scripts and configure runs. It is not useful on other systems.
4794 # If it contains results you don't want to keep, you may remove or edit it.
4796 # By default, configure uses ./config.cache as the cache file,
4797 # creating it if it does not exist already. You can give configure
4798 # the --cache-file=FILE option to use a different cache file; that is
4799 # what configure does when it calls configure scripts in
4800 # subdirectories, so they share the cache.
4801 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4802 # config.status only pays attention to the cache file if you give it the
4803 # --recheck option to rerun configure.
4806 # The following way of writing the cache mishandles newlines in values,
4807 # but we know of no workaround that is simple, portable, and efficient.
4808 # So, don't put newlines in cache variables' values.
4809 # Ultrix sh set writes to stderr and can't be redirected directly,
4810 # and sets the high bit in the cache file unless we assign to the vars.
4812 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4814 # `set' does not quote correctly, so add quotes (double-quote substitution
4815 # turns \\\\ into \\, and sed turns \\ into \).
4817 -e "s/'/'\\\\''/g" \
4818 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4821 # `set' quotes correctly as required by POSIX, so do not add quotes.
4822 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4825 if cmp -s $cache_file confcache; then
4828 if test -w $cache_file; then
4829 echo "updating cache $cache_file"
4830 cat confcache > $cache_file
4832 echo "not updating unwritable cache $cache_file"
4837 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4839 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4840 # Let make expand exec_prefix.
4841 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4843 # Any assignment to VPATH causes Sun make to only execute
4844 # the first set of double-colon rules, so remove it if not needed.
4845 # If there is a colon in the path, we need to keep it.
4846 if test "x$srcdir" = x.; then
4847 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4850 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4852 DEFS=-DHAVE_CONFIG_H
4854 # Without the "./", some shells look in PATH for config.status.
4855 : ${CONFIG_STATUS=./config.status}
4857 echo creating $CONFIG_STATUS
4858 rm -f $CONFIG_STATUS
4859 cat > $CONFIG_STATUS <<EOF
4861 # Generated automatically by configure.
4862 # Run this file to recreate the current configuration.
4863 # This directory was configured as follows,
4864 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4866 # $0 $ac_configure_args
4868 # Compiler output produced by configure, useful for debugging
4869 # configure, is in ./config.log if it exists.
4871 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4874 case "\$ac_option" in
4875 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4876 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4877 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4878 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4879 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4881 -help | --help | --hel | --he | --h)
4882 echo "\$ac_cs_usage"; exit 0 ;;
4883 *) echo "\$ac_cs_usage"; exit 1 ;;
4887 ac_given_srcdir=$srcdir
4888 ac_given_INSTALL="$INSTALL"
4890 trap 'rm -fr `echo "Makefile config/Makefile h/Makefile sbr/Makefile uip/Makefile \
4891 mts/Makefile mts/smtp/Makefile \
4892 etc/Makefile docs/Makefile man/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4894 cat >> $CONFIG_STATUS <<EOF
4896 # Protect against being on the right side of a sed subst in config.status.
4897 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4898 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4902 s%@CFLAGS@%$CFLAGS%g
4903 s%@CPPFLAGS@%$CPPFLAGS%g
4904 s%@CXXFLAGS@%$CXXFLAGS%g
4905 s%@FFLAGS@%$FFLAGS%g
4907 s%@LDFLAGS@%$LDFLAGS%g
4909 s%@exec_prefix@%$exec_prefix%g
4910 s%@prefix@%$prefix%g
4911 s%@program_transform_name@%$program_transform_name%g
4912 s%@bindir@%$bindir%g
4913 s%@sbindir@%$sbindir%g
4914 s%@libexecdir@%$libexecdir%g
4915 s%@datadir@%$datadir%g
4916 s%@sysconfdir@%$sysconfdir%g
4917 s%@sharedstatedir@%$sharedstatedir%g
4918 s%@localstatedir@%$localstatedir%g
4919 s%@libdir@%$libdir%g
4920 s%@includedir@%$includedir%g
4921 s%@oldincludedir@%$oldincludedir%g
4922 s%@infodir@%$infodir%g
4923 s%@mandir@%$mandir%g
4925 s%@host_alias@%$host_alias%g
4926 s%@host_cpu@%$host_cpu%g
4927 s%@host_vendor@%$host_vendor%g
4928 s%@host_os@%$host_os%g
4929 s%@target@%$target%g
4930 s%@target_alias@%$target_alias%g
4931 s%@target_cpu@%$target_cpu%g
4932 s%@target_vendor@%$target_vendor%g
4933 s%@target_os@%$target_os%g
4935 s%@build_alias@%$build_alias%g
4936 s%@build_cpu@%$build_cpu%g
4937 s%@build_vendor@%$build_vendor%g
4938 s%@build_os@%$build_os%g
4939 s%@VERSION@%$VERSION%g
4941 s%@APOPLIB@%$APOPLIB%g
4942 s%@masquerade@%$masquerade%g
4943 s%@POPLIB@%$POPLIB%g
4944 s%@POPSED@%$POPSED%g
4946 s%@smtpservers@%$smtpservers%g
4948 s%@SET_MAKE@%$SET_MAKE%g
4949 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4950 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4951 s%@INSTALL_DATA@%$INSTALL_DATA%g
4952 s%@RANLIB@%$RANLIB%g
4955 s%@LEXLIB@%$LEXLIB%g
4956 s%@cutpath@%$cutpath%g
4957 s%@linttmp1@%$linttmp1%g
4958 s%@linttmp2@%$linttmp2%g
4960 s%@LINTFLAGS@%$LINTFLAGS%g
4961 s%@LIBTOOL@%$LIBTOOL%g
4962 s%@GNU_LIBTOOL@%$GNU_LIBTOOL%g
4963 s%@LORDER@%$LORDER%g
4965 s%@lspath@%$lspath%g
4966 s%@morepath@%$morepath%g
4967 s%@pagerpath@%$pagerpath%g
4968 s%@sendmailpath@%$sendmailpath%g
4969 s%@vipath@%$vipath%g
4970 s%@editorpath@%$editorpath%g
4971 s%@mailspool@%$mailspool%g
4973 s%@dotlockfilepath@%$dotlockfilepath%g
4974 s%@SETGID_MAIL@%$SETGID_MAIL%g
4975 s%@MAIL_SPOOL_GRP@%$MAIL_SPOOL_GRP%g
4976 s%@LIBOBJS@%$LIBOBJS%g
4977 s%@TERMLIB@%$TERMLIB%g
4978 s%@HESIOD_INCLUDES@%$HESIOD_INCLUDES%g
4979 s%@HESIOD_LIBS@%$HESIOD_LIBS%g
4980 s%@KRB4_INCLUDES@%$KRB4_INCLUDES%g
4981 s%@KRB4_LIBS@%$KRB4_LIBS%g
4982 s%@SASL_INCLUDES@%$SASL_INCLUDES%g
4983 s%@SASL_LIBS@%$SASL_LIBS%g
4984 s%@SIGNAL_H@%$SIGNAL_H%g
4989 cat >> $CONFIG_STATUS <<\EOF
4991 # Split the substitutions into bite-sized pieces for seds with
4992 # small command number limits, like on Digital OSF/1 and HP-UX.
4993 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4994 ac_file=1 # Number of current file.
4995 ac_beg=1 # First line for current file.
4996 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4999 while $ac_more_lines; do
5000 if test $ac_beg -gt 1; then
5001 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5003 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5005 if test ! -s conftest.s$ac_file; then
5007 rm -f conftest.s$ac_file
5009 if test -z "$ac_sed_cmds"; then
5010 ac_sed_cmds="sed -f conftest.s$ac_file"
5012 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5014 ac_file=`expr $ac_file + 1`
5016 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5019 if test -z "$ac_sed_cmds"; then
5024 cat >> $CONFIG_STATUS <<EOF
5026 CONFIG_FILES=\${CONFIG_FILES-"Makefile config/Makefile h/Makefile sbr/Makefile uip/Makefile \
5027 mts/Makefile mts/smtp/Makefile \
5028 etc/Makefile docs/Makefile man/Makefile"}
5030 cat >> $CONFIG_STATUS <<\EOF
5031 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5032 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5034 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5035 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5036 *) ac_file_in="${ac_file}.in" ;;
5039 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5041 # Remove last slash and all that follows it. Not all systems have dirname.
5042 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5043 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5044 # The file is in a subdirectory.
5045 test ! -d "$ac_dir" && mkdir "$ac_dir"
5046 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5047 # A "../" for each directory in $ac_dir_suffix.
5048 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5050 ac_dir_suffix= ac_dots=
5053 case "$ac_given_srcdir" in
5055 if test -z "$ac_dots"; then top_srcdir=.
5056 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5057 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5059 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5060 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5063 case "$ac_given_INSTALL" in
5064 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5065 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5068 echo creating "$ac_file"
5070 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5072 *Makefile*) ac_comsub="1i\\
5073 # $configure_input" ;;
5077 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5079 s%@configure_input@%$configure_input%g
5080 s%@srcdir@%$srcdir%g
5081 s%@top_srcdir@%$top_srcdir%g
5082 s%@INSTALL@%$INSTALL%g
5083 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5087 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5088 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5090 # ac_d sets the value in "#define NAME VALUE" lines.
5091 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5092 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5095 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5096 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5097 ac_uB='\([ ]\)%\1#\2define\3'
5100 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5101 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5102 ac_eB='$%\1#\2define\3'
5106 if test "${CONFIG_HEADERS+set}" != set; then
5108 cat >> $CONFIG_STATUS <<EOF
5109 CONFIG_HEADERS="config.h"
5111 cat >> $CONFIG_STATUS <<\EOF
5113 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5114 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5116 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5117 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5118 *) ac_file_in="${ac_file}.in" ;;
5121 echo creating $ac_file
5123 rm -f conftest.frag conftest.in conftest.out
5124 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5125 cat $ac_file_inputs > conftest.in
5129 # Transform confdefs.h into a sed script conftest.vals that substitutes
5130 # the proper values into config.h.in to produce config.h. And first:
5131 # Protect against being on the right side of a sed subst in config.status.
5132 # Protect against being in an unquoted here document in config.status.
5134 cat > conftest.hdr <<\EOF
5137 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5141 sed -n -f conftest.hdr confdefs.h > conftest.vals
5144 # This sed command replaces #undef with comments. This is necessary, for
5145 # example, in the case of _POSIX_SOURCE, which is predefined and required
5146 # on some systems where configure will not decide to define it.
5147 cat >> conftest.vals <<\EOF
5148 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5151 # Break up conftest.vals because some shells have a limit on
5152 # the size of here documents, and old seds have small limits too.
5157 ac_lines=`grep -c . conftest.vals`
5158 # grep -c gives empty output for an empty file on some AIX systems.
5159 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5160 # Write a limited-size here document to conftest.frag.
5161 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5162 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5164 sed -f conftest.frag conftest.in > conftest.out
5166 mv conftest.out conftest.in
5168 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5170 mv conftest.tail conftest.vals
5174 cat >> $CONFIG_STATUS <<\EOF
5175 rm -f conftest.frag conftest.h
5176 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5177 cat conftest.in >> conftest.h
5179 if cmp -s $ac_file conftest.h 2>/dev/null; then
5180 echo "$ac_file is unchanged"
5183 # Remove last slash and all that follows it. Not all systems have dirname.
5184 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5185 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5186 # The file is in a subdirectory.
5187 test ! -d "$ac_dir" && mkdir "$ac_dir"
5190 mv conftest.h $ac_file
5195 cat >> $CONFIG_STATUS <<EOF
5198 cat >> $CONFIG_STATUS <<\EOF
5200 test -z "$CONFIG_HEADERS" || echo > stamp-h
5203 chmod +x $CONFIG_STATUS
5204 rm -fr confdefs* $ac_clean_files
5205 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5208 eval "nmhbin=${bindir}"; eval "nmhbin2=${nmhbin}"
5209 eval "nmhsysconf=${sysconfdir}"; eval "nmhsysconf2=${nmhsysconf}"
5210 eval "nmhlib=${libdir}"; eval "nmhlib2=${nmhlib}"
5211 eval "nmhman=${mandir}"
5214 if test x"$enable_pop" = x"yes"; then
5217 if test x"$enable_apop" = x"yes"; then
5218 pop_kinds="${pop_kinds}APOP "
5221 if test x"$with_krb4" != x -a x"$with_krb4" != x"no"; then
5222 pop_kinds="${pop_kinds}KPOP "
5225 pop_kinds="${pop_kinds}POP3)"
5231 nmh version : ${VERSION}
5232 target os : ${target}
5234 compiler flags : ${CFLAGS}
5235 linker flags : ${LDFLAGS}
5236 source code location : ${srcdir}
5237 binary install path : ${nmhbin2}
5238 libary install path : ${nmhlib2}
5239 config files install path : ${nmhsysconf2}
5240 man page install path : ${nmhman}
5241 backup prefix : ${backup_prefix}
5242 transport system : ${MTS}
5243 file locking type : ${LOCKTYPE}
5244 default smtp servers : ${smtpservers}
5245 default editor : ${editorpath}
5246 default pager : ${pagerpath}
5247 email address masquerading : ${masquerade}
5248 pop is enabled : ${pop_kinds}"