]> diplodocus.org Git - nmh/blob - configure
Changed "echo > stamp-h.in" in Makefile.in to "date > stamp-h.in" so that
[nmh] / configure
1 #! /bin/sh
2
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.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --with-mts=MTS specify the mail transport agent"
16 ac_help="$ac_help
17 --with-editor=EDITOR specify the default editor"
18 ac_help="$ac_help
19 --with-pager=PAGER specify the default pager"
20 ac_help="$ac_help
21 --enable-nmh-mhe enable mhe support (DEFAULT)"
22 ac_help="$ac_help
23 --enable-nmh-pop enable client-side support for pop"
24 ac_help="$ac_help
25 --with-krb4=PREFIX specify location of Kerberos V4 for kpop support"
26 ac_help="$ac_help
27 --with-hesiod=PREFIX specify location of Hesiod"
28 ac_help="$ac_help
29 --enable-nmh-debug enable nmh code debugging"
30 ac_default_prefix=/usr/local/nmh
31
32 # Initialize some variables set by options.
33 # The variables have the same names as the options, with
34 # dashes changed to underlines.
35 build=NONE
36 cache_file=./config.cache
37 exec_prefix=NONE
38 host=NONE
39 no_create=
40 nonopt=NONE
41 no_recursion=
42 prefix=NONE
43 program_prefix=NONE
44 program_suffix=NONE
45 program_transform_name=s,x,x,
46 silent=
47 site=
48 srcdir=
49 target=NONE
50 verbose=
51 x_includes=NONE
52 x_libraries=NONE
53 bindir='${exec_prefix}/bin'
54 sbindir='${exec_prefix}/sbin'
55 libexecdir='${exec_prefix}/libexec'
56 datadir='${prefix}/share'
57 sysconfdir='${prefix}/etc'
58 sharedstatedir='${prefix}/com'
59 localstatedir='${prefix}/var'
60 libdir='${exec_prefix}/lib'
61 includedir='${prefix}/include'
62 oldincludedir='/usr/include'
63 infodir='${prefix}/info'
64 mandir='${prefix}/man'
65
66 # Initialize some other variables.
67 subdirs=
68 MFLAGS= MAKEFLAGS=
69 SHELL=${CONFIG_SHELL-/bin/sh}
70 # Maximum number of lines to put in a shell here document.
71 ac_max_here_lines=12
72
73 ac_prev=
74 for ac_option
75 do
76
77 # If the previous option needs an argument, assign it.
78 if test -n "$ac_prev"; then
79 eval "$ac_prev=\$ac_option"
80 ac_prev=
81 continue
82 fi
83
84 case "$ac_option" in
85 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
86 *) ac_optarg= ;;
87 esac
88
89 # Accept the important Cygnus configure options, so we can diagnose typos.
90
91 case "$ac_option" in
92
93 -bindir | --bindir | --bindi | --bind | --bin | --bi)
94 ac_prev=bindir ;;
95 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
96 bindir="$ac_optarg" ;;
97
98 -build | --build | --buil | --bui | --bu)
99 ac_prev=build ;;
100 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
101 build="$ac_optarg" ;;
102
103 -cache-file | --cache-file | --cache-fil | --cache-fi \
104 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
105 ac_prev=cache_file ;;
106 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
107 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
108 cache_file="$ac_optarg" ;;
109
110 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
111 ac_prev=datadir ;;
112 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
113 | --da=*)
114 datadir="$ac_optarg" ;;
115
116 -disable-* | --disable-*)
117 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
118 # Reject names that are not valid shell variable names.
119 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
120 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
121 fi
122 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
123 eval "enable_${ac_feature}=no" ;;
124
125 -enable-* | --enable-*)
126 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
127 # Reject names that are not valid shell variable names.
128 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
130 fi
131 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
132 case "$ac_option" in
133 *=*) ;;
134 *) ac_optarg=yes ;;
135 esac
136 eval "enable_${ac_feature}='$ac_optarg'" ;;
137
138 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
139 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
140 | --exec | --exe | --ex)
141 ac_prev=exec_prefix ;;
142 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
143 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
144 | --exec=* | --exe=* | --ex=*)
145 exec_prefix="$ac_optarg" ;;
146
147 -gas | --gas | --ga | --g)
148 # Obsolete; use --with-gas.
149 with_gas=yes ;;
150
151 -help | --help | --hel | --he)
152 # Omit some internal or obsolete options to make the list less imposing.
153 # This message is too long to be a string in the A/UX 3.1 sh.
154 cat << EOF
155 Usage: configure [options] [host]
156 Options: [defaults in brackets after descriptions]
157 Configuration:
158 --cache-file=FILE cache test results in FILE
159 --help print this message
160 --no-create do not create output files
161 --quiet, --silent do not print \`checking...' messages
162 --version print the version of autoconf that created configure
163 Directory and file names:
164 --prefix=PREFIX install architecture-independent files in PREFIX
165 [$ac_default_prefix]
166 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
167 [same as prefix]
168 --bindir=DIR user executables in DIR [EPREFIX/bin]
169 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
170 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
171 --datadir=DIR read-only architecture-independent data in DIR
172 [PREFIX/share]
173 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
174 --sharedstatedir=DIR modifiable architecture-independent data in DIR
175 [PREFIX/com]
176 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
177 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
178 --includedir=DIR C header files in DIR [PREFIX/include]
179 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
180 --infodir=DIR info documentation in DIR [PREFIX/info]
181 --mandir=DIR man documentation in DIR [PREFIX/man]
182 --srcdir=DIR find the sources in DIR [configure dir or ..]
183 --program-prefix=PREFIX prepend PREFIX to installed program names
184 --program-suffix=SUFFIX append SUFFIX to installed program names
185 --program-transform-name=PROGRAM
186 run sed PROGRAM on installed program names
187 EOF
188 cat << EOF
189 Host type:
190 --build=BUILD configure for building on BUILD [BUILD=HOST]
191 --host=HOST configure for HOST [guessed]
192 --target=TARGET configure for TARGET [TARGET=HOST]
193 Features and packages:
194 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
195 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
196 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
197 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
198 --x-includes=DIR X include files are in DIR
199 --x-libraries=DIR X library files are in DIR
200 EOF
201 if test -n "$ac_help"; then
202 echo "--enable and --with options recognized:$ac_help"
203 fi
204 exit 0 ;;
205
206 -host | --host | --hos | --ho)
207 ac_prev=host ;;
208 -host=* | --host=* | --hos=* | --ho=*)
209 host="$ac_optarg" ;;
210
211 -includedir | --includedir | --includedi | --included | --include \
212 | --includ | --inclu | --incl | --inc)
213 ac_prev=includedir ;;
214 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
215 | --includ=* | --inclu=* | --incl=* | --inc=*)
216 includedir="$ac_optarg" ;;
217
218 -infodir | --infodir | --infodi | --infod | --info | --inf)
219 ac_prev=infodir ;;
220 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
221 infodir="$ac_optarg" ;;
222
223 -libdir | --libdir | --libdi | --libd)
224 ac_prev=libdir ;;
225 -libdir=* | --libdir=* | --libdi=* | --libd=*)
226 libdir="$ac_optarg" ;;
227
228 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
229 | --libexe | --libex | --libe)
230 ac_prev=libexecdir ;;
231 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
232 | --libexe=* | --libex=* | --libe=*)
233 libexecdir="$ac_optarg" ;;
234
235 -localstatedir | --localstatedir | --localstatedi | --localstated \
236 | --localstate | --localstat | --localsta | --localst \
237 | --locals | --local | --loca | --loc | --lo)
238 ac_prev=localstatedir ;;
239 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
240 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
241 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
242 localstatedir="$ac_optarg" ;;
243
244 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
245 ac_prev=mandir ;;
246 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
247 mandir="$ac_optarg" ;;
248
249 -nfp | --nfp | --nf)
250 # Obsolete; use --without-fp.
251 with_fp=no ;;
252
253 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
254 | --no-cr | --no-c)
255 no_create=yes ;;
256
257 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
258 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
259 no_recursion=yes ;;
260
261 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
262 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
263 | --oldin | --oldi | --old | --ol | --o)
264 ac_prev=oldincludedir ;;
265 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
266 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
267 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
268 oldincludedir="$ac_optarg" ;;
269
270 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
271 ac_prev=prefix ;;
272 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
273 prefix="$ac_optarg" ;;
274
275 -program-prefix | --program-prefix | --program-prefi | --program-pref \
276 | --program-pre | --program-pr | --program-p)
277 ac_prev=program_prefix ;;
278 -program-prefix=* | --program-prefix=* | --program-prefi=* \
279 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
280 program_prefix="$ac_optarg" ;;
281
282 -program-suffix | --program-suffix | --program-suffi | --program-suff \
283 | --program-suf | --program-su | --program-s)
284 ac_prev=program_suffix ;;
285 -program-suffix=* | --program-suffix=* | --program-suffi=* \
286 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
287 program_suffix="$ac_optarg" ;;
288
289 -program-transform-name | --program-transform-name \
290 | --program-transform-nam | --program-transform-na \
291 | --program-transform-n | --program-transform- \
292 | --program-transform | --program-transfor \
293 | --program-transfo | --program-transf \
294 | --program-trans | --program-tran \
295 | --progr-tra | --program-tr | --program-t)
296 ac_prev=program_transform_name ;;
297 -program-transform-name=* | --program-transform-name=* \
298 | --program-transform-nam=* | --program-transform-na=* \
299 | --program-transform-n=* | --program-transform-=* \
300 | --program-transform=* | --program-transfor=* \
301 | --program-transfo=* | --program-transf=* \
302 | --program-trans=* | --program-tran=* \
303 | --progr-tra=* | --program-tr=* | --program-t=*)
304 program_transform_name="$ac_optarg" ;;
305
306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
307 | -silent | --silent | --silen | --sile | --sil)
308 silent=yes ;;
309
310 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
311 ac_prev=sbindir ;;
312 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
313 | --sbi=* | --sb=*)
314 sbindir="$ac_optarg" ;;
315
316 -sharedstatedir | --sharedstatedir | --sharedstatedi \
317 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
318 | --sharedst | --shareds | --shared | --share | --shar \
319 | --sha | --sh)
320 ac_prev=sharedstatedir ;;
321 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
322 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
323 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
324 | --sha=* | --sh=*)
325 sharedstatedir="$ac_optarg" ;;
326
327 -site | --site | --sit)
328 ac_prev=site ;;
329 -site=* | --site=* | --sit=*)
330 site="$ac_optarg" ;;
331
332 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
333 ac_prev=srcdir ;;
334 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
335 srcdir="$ac_optarg" ;;
336
337 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
338 | --syscon | --sysco | --sysc | --sys | --sy)
339 ac_prev=sysconfdir ;;
340 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
341 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
342 sysconfdir="$ac_optarg" ;;
343
344 -target | --target | --targe | --targ | --tar | --ta | --t)
345 ac_prev=target ;;
346 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
347 target="$ac_optarg" ;;
348
349 -v | -verbose | --verbose | --verbos | --verbo | --verb)
350 verbose=yes ;;
351
352 -version | --version | --versio | --versi | --vers)
353 echo "configure generated by autoconf version 2.13"
354 exit 0 ;;
355
356 -with-* | --with-*)
357 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
358 # Reject names that are not valid shell variable names.
359 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
360 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
361 fi
362 ac_package=`echo $ac_package| sed 's/-/_/g'`
363 case "$ac_option" in
364 *=*) ;;
365 *) ac_optarg=yes ;;
366 esac
367 eval "with_${ac_package}='$ac_optarg'" ;;
368
369 -without-* | --without-*)
370 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
371 # Reject names that are not valid shell variable names.
372 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
373 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
374 fi
375 ac_package=`echo $ac_package| sed 's/-/_/g'`
376 eval "with_${ac_package}=no" ;;
377
378 --x)
379 # Obsolete; use --with-x.
380 with_x=yes ;;
381
382 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
383 | --x-incl | --x-inc | --x-in | --x-i)
384 ac_prev=x_includes ;;
385 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
386 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
387 x_includes="$ac_optarg" ;;
388
389 -x-libraries | --x-libraries | --x-librarie | --x-librari \
390 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
391 ac_prev=x_libraries ;;
392 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
393 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
394 x_libraries="$ac_optarg" ;;
395
396 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
397 ;;
398
399 *)
400 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
401 echo "configure: warning: $ac_option: invalid host type" 1>&2
402 fi
403 if test "x$nonopt" != xNONE; then
404 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
405 fi
406 nonopt="$ac_option"
407 ;;
408
409 esac
410 done
411
412 if test -n "$ac_prev"; then
413 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
414 fi
415
416 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
417
418 # File descriptor usage:
419 # 0 standard input
420 # 1 file creation
421 # 2 errors and warnings
422 # 3 some systems may open it to /dev/tty
423 # 4 used on the Kubota Titan
424 # 6 checking for... messages and results
425 # 5 compiler messages saved in config.log
426 if test "$silent" = yes; then
427 exec 6>/dev/null
428 else
429 exec 6>&1
430 fi
431 exec 5>./config.log
432
433 echo "\
434 This file contains any messages produced by compilers while
435 running configure, to aid debugging if configure makes a mistake.
436 " 1>&5
437
438 # Strip out --no-create and --no-recursion so they do not pile up.
439 # Also quote any args containing shell metacharacters.
440 ac_configure_args=
441 for ac_arg
442 do
443 case "$ac_arg" in
444 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
445 | --no-cr | --no-c) ;;
446 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
447 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
448 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
449 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
450 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
451 esac
452 done
453
454 # NLS nuisances.
455 # Only set these to C if already set. These must not be set unconditionally
456 # because not all systems understand e.g. LANG=C (notably SCO).
457 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
458 # Non-C LC_CTYPE values break the ctype check.
459 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
460 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
461 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
462 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
463
464 # confdefs.h avoids OS command line length limits that DEFS can exceed.
465 rm -rf conftest* confdefs.h
466 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
467 echo > confdefs.h
468
469 # A filename unique to this package, relative to the directory that
470 # configure is in, which we can look for to find out if srcdir is correct.
471 ac_unique_file=h/nmh.h
472
473 # Find the source files, if location was not specified.
474 if test -z "$srcdir"; then
475 ac_srcdir_defaulted=yes
476 # Try the directory containing this script, then its parent.
477 ac_prog=$0
478 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
479 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
480 srcdir=$ac_confdir
481 if test ! -r $srcdir/$ac_unique_file; then
482 srcdir=..
483 fi
484 else
485 ac_srcdir_defaulted=no
486 fi
487 if test ! -r $srcdir/$ac_unique_file; then
488 if test "$ac_srcdir_defaulted" = yes; then
489 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
490 else
491 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
492 fi
493 fi
494 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
495
496 # Prefer explicitly selected file to automatically selected ones.
497 if test -z "$CONFIG_SITE"; then
498 if test "x$prefix" != xNONE; then
499 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
500 else
501 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
502 fi
503 fi
504 for ac_site_file in $CONFIG_SITE; do
505 if test -r "$ac_site_file"; then
506 echo "loading site script $ac_site_file"
507 . "$ac_site_file"
508 fi
509 done
510
511 if test -r "$cache_file"; then
512 echo "loading cache $cache_file"
513 . $cache_file
514 else
515 echo "creating cache $cache_file"
516 > $cache_file
517 fi
518
519 ac_ext=c
520 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
521 ac_cpp='$CPP $CPPFLAGS'
522 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
523 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
524 cross_compiling=$ac_cv_prog_cc_cross
525
526 ac_exeext=
527 ac_objext=o
528 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
529 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
530 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
531 ac_n= ac_c='
532 ' ac_t=' '
533 else
534 ac_n=-n ac_c= ac_t=
535 fi
536 else
537 ac_n= ac_c='\c' ac_t=
538 fi
539
540
541
542
543 ac_aux_dir=
544 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
545 if test -f $ac_dir/install-sh; then
546 ac_aux_dir=$ac_dir
547 ac_install_sh="$ac_aux_dir/install-sh -c"
548 break
549 elif test -f $ac_dir/install.sh; then
550 ac_aux_dir=$ac_dir
551 ac_install_sh="$ac_aux_dir/install.sh -c"
552 break
553 fi
554 done
555 if test -z "$ac_aux_dir"; then
556 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
557 fi
558 ac_config_guess=$ac_aux_dir/config.guess
559 ac_config_sub=$ac_aux_dir/config.sub
560 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
561
562
563 # Do some error checking and defaulting for the host and target type.
564 # The inputs are:
565 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
566 #
567 # The rules are:
568 # 1. You are not allowed to specify --host, --target, and nonopt at the
569 # same time.
570 # 2. Host defaults to nonopt.
571 # 3. If nonopt is not specified, then host defaults to the current host,
572 # as determined by config.guess.
573 # 4. Target and build default to nonopt.
574 # 5. If nonopt is not specified, then target and build default to host.
575
576 # The aliases save the names the user supplied, while $host etc.
577 # will get canonicalized.
578 case $host---$target---$nonopt in
579 NONE---*---* | *---NONE---* | *---*---NONE) ;;
580 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
581 esac
582
583
584 # Make sure we can run config.sub.
585 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
586 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
587 fi
588
589 echo $ac_n "checking host system type""... $ac_c" 1>&6
590 echo "configure:591: checking host system type" >&5
591
592 host_alias=$host
593 case "$host_alias" in
594 NONE)
595 case $nonopt in
596 NONE)
597 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
598 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
599 fi ;;
600 *) host_alias=$nonopt ;;
601 esac ;;
602 esac
603
604 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
605 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
606 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
607 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
608 echo "$ac_t""$host" 1>&6
609
610 echo $ac_n "checking target system type""... $ac_c" 1>&6
611 echo "configure:612: checking target system type" >&5
612
613 target_alias=$target
614 case "$target_alias" in
615 NONE)
616 case $nonopt in
617 NONE) target_alias=$host_alias ;;
618 *) target_alias=$nonopt ;;
619 esac ;;
620 esac
621
622 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
623 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
624 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
625 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
626 echo "$ac_t""$target" 1>&6
627
628 echo $ac_n "checking build system type""... $ac_c" 1>&6
629 echo "configure:630: checking build system type" >&5
630
631 build_alias=$build
632 case "$build_alias" in
633 NONE)
634 case $nonopt in
635 NONE) build_alias=$host_alias ;;
636 *) build_alias=$nonopt ;;
637 esac ;;
638 esac
639
640 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
641 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
642 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
643 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
644 echo "$ac_t""$build" 1>&6
645
646 test "$host_alias" != "$target_alias" &&
647 test "$program_prefix$program_suffix$program_transform_name" = \
648 NONENONEs,x,x, &&
649 program_prefix=${target_alias}-
650
651
652
653
654
655
656 VERSION=`sed -e 's/nmh-//' ${srcdir}/VERSION`
657 echo "configuring for nmh-$VERSION"
658
659 # Check whether --with-mts or --without-mts was given.
660 if test "${with_mts+set}" = set; then
661 withval="$with_mts"
662 :
663 fi
664
665
666 if test x$with_mts = xsmtp; then
667 MTS="smtp"
668 MTSLIB="mts/smtp/libsmtp.a"
669 cat >> confdefs.h <<\EOF
670 #define SMTPMTS 1
671 EOF
672 elif test x$with_mts = xsendmail; then
673 MTS="sendmail"
674 MTSLIB="mts/sendmail/libsend.a"
675 cat >> confdefs.h <<\EOF
676 #define SENDMTS 1
677 EOF
678 else
679 MTS="smtp"
680 MTSLIB="mts/smtp/libsmtp.a"
681 cat >> confdefs.h <<\EOF
682 #define SMTPMTS 1
683 EOF
684 fi
685
686
687
688
689 # Check whether --with-editor or --without-editor was given.
690 if test "${with_editor+set}" = set; then
691 withval="$with_editor"
692 :
693 fi
694
695
696 if test -n "$with_editor"; then
697 editorpath="$with_editor"
698 fi
699
700 # Check whether --with-pager or --without-pager was given.
701 if test "${with_pager+set}" = set; then
702 withval="$with_pager"
703 :
704 fi
705
706
707 if test -n "$with_pager"; then
708 pagerpath="$with_pager"
709 fi
710
711 # Check whether --enable-nmh-mhe or --disable-nmh-mhe was given.
712 if test "${enable_nmh_mhe+set}" = set; then
713 enableval="$enable_nmh_mhe"
714 :
715 fi
716
717
718 if test x$enable_nmh_mhe != xno; then
719 cat >> confdefs.h <<\EOF
720 #define MHE 1
721 EOF
722 fi
723
724 # Check whether --enable-nmh-pop or --disable-nmh-pop was given.
725 if test "${enable_nmh_pop+set}" = set; then
726 enableval="$enable_nmh_pop"
727 :
728 fi
729
730 if test x$enable_nmh_pop = xyes; then
731 cat >> confdefs.h <<\EOF
732 #define POP 1
733 EOF
734 POPLIB=popsbr.o
735 POPSED='/^%nmhbeginpop%/d;/^%nmhendpop%/d'
736 else
737 POPSED='/^%nmhbeginpop%/,/^%nmhendpop%/d'
738 fi
739
740 # Check whether --with-krb4 or --without-krb4 was given.
741 if test "${with_krb4+set}" = set; then
742 withval="$with_krb4"
743 :
744 fi
745
746 if test x$with_krb4 != x -a x$with_krb4 != xno; then
747 cat >> confdefs.h <<\EOF
748 #define KPOP 1
749 EOF
750 cat >> confdefs.h <<\EOF
751 #define KPOP_PRINCIPAL "pop"
752 EOF
753 fi
754
755 # Check whether --with-hesiod or --without-hesiod was given.
756 if test "${with_hesiod+set}" = set; then
757 withval="$with_hesiod"
758 :
759 fi
760
761 if test x$with_hesiod != x -a x$with_hesiod != xno; then
762 cat >> confdefs.h <<\EOF
763 #define HESIOD 1
764 EOF
765 fi
766
767 # Check whether --enable-nmh-debug or --disable-nmh-debug was given.
768 if test "${enable_nmh_debug+set}" = set; then
769 enableval="$enable_nmh_debug"
770 :
771 fi
772
773
774
775
776 test -z "$CFLAGS" && CFLAGS= auto_cflags=1
777 if test x$enable_nmh_debug = xyes; then
778 test -z "$LDFLAGS" && LDFLAGS=-g
779 fi
780
781 # Extract the first word of "gcc", so it can be a program name with args.
782 set dummy gcc; ac_word=$2
783 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
784 echo "configure:785: checking for $ac_word" >&5
785 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
786 echo $ac_n "(cached) $ac_c" 1>&6
787 else
788 if test -n "$CC"; then
789 ac_cv_prog_CC="$CC" # Let the user override the test.
790 else
791 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
792 ac_dummy="$PATH"
793 for ac_dir in $ac_dummy; do
794 test -z "$ac_dir" && ac_dir=.
795 if test -f $ac_dir/$ac_word; then
796 ac_cv_prog_CC="gcc"
797 break
798 fi
799 done
800 IFS="$ac_save_ifs"
801 fi
802 fi
803 CC="$ac_cv_prog_CC"
804 if test -n "$CC"; then
805 echo "$ac_t""$CC" 1>&6
806 else
807 echo "$ac_t""no" 1>&6
808 fi
809
810 if test -z "$CC"; then
811 # Extract the first word of "cc", so it can be a program name with args.
812 set dummy cc; ac_word=$2
813 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
814 echo "configure:815: checking for $ac_word" >&5
815 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
816 echo $ac_n "(cached) $ac_c" 1>&6
817 else
818 if test -n "$CC"; then
819 ac_cv_prog_CC="$CC" # Let the user override the test.
820 else
821 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
822 ac_prog_rejected=no
823 ac_dummy="$PATH"
824 for ac_dir in $ac_dummy; do
825 test -z "$ac_dir" && ac_dir=.
826 if test -f $ac_dir/$ac_word; then
827 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
828 ac_prog_rejected=yes
829 continue
830 fi
831 ac_cv_prog_CC="cc"
832 break
833 fi
834 done
835 IFS="$ac_save_ifs"
836 if test $ac_prog_rejected = yes; then
837 # We found a bogon in the path, so make sure we never use it.
838 set dummy $ac_cv_prog_CC
839 shift
840 if test $# -gt 0; then
841 # We chose a different compiler from the bogus one.
842 # However, it has the same basename, so the bogon will be chosen
843 # first if we set CC to just the basename; use the full file name.
844 shift
845 set dummy "$ac_dir/$ac_word" "$@"
846 shift
847 ac_cv_prog_CC="$@"
848 fi
849 fi
850 fi
851 fi
852 CC="$ac_cv_prog_CC"
853 if test -n "$CC"; then
854 echo "$ac_t""$CC" 1>&6
855 else
856 echo "$ac_t""no" 1>&6
857 fi
858
859 if test -z "$CC"; then
860 case "`uname -s`" in
861 *win32* | *WIN32*)
862 # Extract the first word of "cl", so it can be a program name with args.
863 set dummy cl; ac_word=$2
864 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
865 echo "configure:866: checking for $ac_word" >&5
866 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
867 echo $ac_n "(cached) $ac_c" 1>&6
868 else
869 if test -n "$CC"; then
870 ac_cv_prog_CC="$CC" # Let the user override the test.
871 else
872 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
873 ac_dummy="$PATH"
874 for ac_dir in $ac_dummy; do
875 test -z "$ac_dir" && ac_dir=.
876 if test -f $ac_dir/$ac_word; then
877 ac_cv_prog_CC="cl"
878 break
879 fi
880 done
881 IFS="$ac_save_ifs"
882 fi
883 fi
884 CC="$ac_cv_prog_CC"
885 if test -n "$CC"; then
886 echo "$ac_t""$CC" 1>&6
887 else
888 echo "$ac_t""no" 1>&6
889 fi
890 ;;
891 esac
892 fi
893 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
894 fi
895
896 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
897 echo "configure:898: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
898
899 ac_ext=c
900 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
901 ac_cpp='$CPP $CPPFLAGS'
902 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
903 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
904 cross_compiling=$ac_cv_prog_cc_cross
905
906 cat > conftest.$ac_ext << EOF
907
908 #line 909 "configure"
909 #include "confdefs.h"
910
911 main(){return(0);}
912 EOF
913 if { (eval echo configure:914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
914 ac_cv_prog_cc_works=yes
915 # If we can't run a trivial program, we are probably using a cross compiler.
916 if (./conftest; exit) 2>/dev/null; then
917 ac_cv_prog_cc_cross=no
918 else
919 ac_cv_prog_cc_cross=yes
920 fi
921 else
922 echo "configure: failed program was:" >&5
923 cat conftest.$ac_ext >&5
924 ac_cv_prog_cc_works=no
925 fi
926 rm -fr conftest*
927 ac_ext=c
928 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
929 ac_cpp='$CPP $CPPFLAGS'
930 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
931 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
932 cross_compiling=$ac_cv_prog_cc_cross
933
934 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
935 if test $ac_cv_prog_cc_works = no; then
936 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
937 fi
938 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
939 echo "configure:940: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
940 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
941 cross_compiling=$ac_cv_prog_cc_cross
942
943 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
944 echo "configure:945: checking whether we are using GNU C" >&5
945 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
946 echo $ac_n "(cached) $ac_c" 1>&6
947 else
948 cat > conftest.c <<EOF
949 #ifdef __GNUC__
950 yes;
951 #endif
952 EOF
953 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:954: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
954 ac_cv_prog_gcc=yes
955 else
956 ac_cv_prog_gcc=no
957 fi
958 fi
959
960 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
961
962 if test $ac_cv_prog_gcc = yes; then
963 GCC=yes
964 else
965 GCC=
966 fi
967
968 ac_test_CFLAGS="${CFLAGS+set}"
969 ac_save_CFLAGS="$CFLAGS"
970 CFLAGS=
971 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
972 echo "configure:973: checking whether ${CC-cc} accepts -g" >&5
973 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
974 echo $ac_n "(cached) $ac_c" 1>&6
975 else
976 echo 'void f(){}' > conftest.c
977 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
978 ac_cv_prog_cc_g=yes
979 else
980 ac_cv_prog_cc_g=no
981 fi
982 rm -f conftest*
983
984 fi
985
986 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
987 if test "$ac_test_CFLAGS" = set; then
988 CFLAGS="$ac_save_CFLAGS"
989 elif test $ac_cv_prog_cc_g = yes; then
990 if test "$GCC" = yes; then
991 CFLAGS="-g -O2"
992 else
993 CFLAGS="-g"
994 fi
995 else
996 if test "$GCC" = yes; then
997 CFLAGS="-O2"
998 else
999 CFLAGS=
1000 fi
1001 fi
1002
1003
1004 if test -n "$auto_cflags"; then
1005 if test x$enable_nmh_debug = xyes; then
1006 if test -n "$GCC"; then
1007 test -z "$CFLAGS" && CFLAGS="-Wall -g" || CFLAGS="$CFLAGS -Wall -g"
1008 else
1009 test -z "$CFLAGS" && CFLAGS=-g || CFLAGS="$CFLAGS -g"
1010 fi
1011 else
1012 test -z "$LDFLAGS" && LDFLAGS=-s
1013 if test -n "$GCC"; then
1014 test -z "$CFLAGS" && CFLAGS=-O2 || CFLAGS="$CFLAGS -O2"
1015 else
1016 test -z "$CFLAGS" && CFLAGS=-O || CFLAGS="$CFLAGS -O"
1017 fi
1018 fi
1019 fi
1020
1021 echo $ac_n "checking for working const""... $ac_c" 1>&6
1022 echo "configure:1023: checking for working const" >&5
1023 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1024 echo $ac_n "(cached) $ac_c" 1>&6
1025 else
1026 cat > conftest.$ac_ext <<EOF
1027 #line 1028 "configure"
1028 #include "confdefs.h"
1029
1030 int main() {
1031
1032 /* Ultrix mips cc rejects this. */
1033 typedef int charset[2]; const charset x;
1034 /* SunOS 4.1.1 cc rejects this. */
1035 char const *const *ccp;
1036 char **p;
1037 /* NEC SVR4.0.2 mips cc rejects this. */
1038 struct point {int x, y;};
1039 static struct point const zero = {0,0};
1040 /* AIX XL C 1.02.0.0 rejects this.
1041 It does not let you subtract one const X* pointer from another in an arm
1042 of an if-expression whose if-part is not a constant expression */
1043 const char *g = "string";
1044 ccp = &g + (g ? g-g : 0);
1045 /* HPUX 7.0 cc rejects these. */
1046 ++ccp;
1047 p = (char**) ccp;
1048 ccp = (char const *const *) p;
1049 { /* SCO 3.2v4 cc rejects this. */
1050 char *t;
1051 char const *s = 0 ? (char *) 0 : (char const *) 0;
1052
1053 *t++ = 0;
1054 }
1055 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1056 int x[] = {25, 17};
1057 const int *foo = &x[0];
1058 ++foo;
1059 }
1060 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1061 typedef const int *iptr;
1062 iptr p = 0;
1063 ++p;
1064 }
1065 { /* AIX XL C 1.02.0.0 rejects this saying
1066 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1067 struct s { int j; const int *ap[3]; };
1068 struct s *b; b->j = 5;
1069 }
1070 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1071 const int foo = 10;
1072 }
1073
1074 ; return 0; }
1075 EOF
1076 if { (eval echo configure:1077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1077 rm -rf conftest*
1078 ac_cv_c_const=yes
1079 else
1080 echo "configure: failed program was:" >&5
1081 cat conftest.$ac_ext >&5
1082 rm -rf conftest*
1083 ac_cv_c_const=no
1084 fi
1085 rm -f conftest*
1086 fi
1087
1088 echo "$ac_t""$ac_cv_c_const" 1>&6
1089 if test $ac_cv_c_const = no; then
1090 cat >> confdefs.h <<\EOF
1091 #define const
1092 EOF
1093
1094 fi
1095
1096 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1097 echo "configure:1098: checking whether ${MAKE-make} sets \${MAKE}" >&5
1098 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1099 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1100 echo $ac_n "(cached) $ac_c" 1>&6
1101 else
1102 cat > conftestmake <<\EOF
1103 all:
1104 @echo 'ac_maketemp="${MAKE}"'
1105 EOF
1106 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1107 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1108 if test -n "$ac_maketemp"; then
1109 eval ac_cv_prog_make_${ac_make}_set=yes
1110 else
1111 eval ac_cv_prog_make_${ac_make}_set=no
1112 fi
1113 rm -f conftestmake
1114 fi
1115 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1116 echo "$ac_t""yes" 1>&6
1117 SET_MAKE=
1118 else
1119 echo "$ac_t""no" 1>&6
1120 SET_MAKE="MAKE=${MAKE-make}"
1121 fi
1122 # Find a good install program. We prefer a C program (faster),
1123 # so one script is as good as another. But avoid the broken or
1124 # incompatible versions:
1125 # SysV /etc/install, /usr/sbin/install
1126 # SunOS /usr/etc/install
1127 # IRIX /sbin/install
1128 # AIX /bin/install
1129 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1130 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1131 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1132 # ./install, which can be erroneously created by make from ./install.sh.
1133 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1134 echo "configure:1135: checking for a BSD compatible install" >&5
1135 if test -z "$INSTALL"; then
1136 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1137 echo $ac_n "(cached) $ac_c" 1>&6
1138 else
1139 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1140 for ac_dir in $PATH; do
1141 # Account for people who put trailing slashes in PATH elements.
1142 case "$ac_dir/" in
1143 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1144 *)
1145 # OSF1 and SCO ODT 3.0 have their own names for install.
1146 # Don't use installbsd from OSF since it installs stuff as root
1147 # by default.
1148 for ac_prog in ginstall scoinst install; do
1149 if test -f $ac_dir/$ac_prog; then
1150 if test $ac_prog = install &&
1151 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1152 # AIX install. It has an incompatible calling convention.
1153 :
1154 else
1155 ac_cv_path_install="$ac_dir/$ac_prog -c"
1156 break 2
1157 fi
1158 fi
1159 done
1160 ;;
1161 esac
1162 done
1163 IFS="$ac_save_IFS"
1164
1165 fi
1166 if test "${ac_cv_path_install+set}" = set; then
1167 INSTALL="$ac_cv_path_install"
1168 else
1169 # As a last resort, use the slow shell script. We don't cache a
1170 # path for INSTALL within a source directory, because that will
1171 # break other packages using the cache if that directory is
1172 # removed, or if the path is relative.
1173 INSTALL="$ac_install_sh"
1174 fi
1175 fi
1176 echo "$ac_t""$INSTALL" 1>&6
1177
1178 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1179 # It thinks the first close brace ends the variable substitution.
1180 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1181
1182 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1183
1184 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1185 # Extract the first word of "ranlib", so it can be a program name with args.
1186 set dummy ranlib; ac_word=$2
1187 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1188 echo "configure:1189: checking for $ac_word" >&5
1189 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1190 echo $ac_n "(cached) $ac_c" 1>&6
1191 else
1192 if test -n "$RANLIB"; then
1193 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1194 else
1195 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1196 ac_dummy="$PATH"
1197 for ac_dir in $ac_dummy; do
1198 test -z "$ac_dir" && ac_dir=.
1199 if test -f $ac_dir/$ac_word; then
1200 ac_cv_prog_RANLIB="ranlib"
1201 break
1202 fi
1203 done
1204 IFS="$ac_save_ifs"
1205 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1206 fi
1207 fi
1208 RANLIB="$ac_cv_prog_RANLIB"
1209 if test -n "$RANLIB"; then
1210 echo "$ac_t""$RANLIB" 1>&6
1211 else
1212 echo "$ac_t""no" 1>&6
1213 fi
1214 for ac_prog in mawk gawk nawk awk
1215 do
1216 # Extract the first word of "$ac_prog", so it can be a program name with args.
1217 set dummy $ac_prog; ac_word=$2
1218 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1219 echo "configure:1220: checking for $ac_word" >&5
1220 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1221 echo $ac_n "(cached) $ac_c" 1>&6
1222 else
1223 if test -n "$AWK"; then
1224 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1225 else
1226 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1227 ac_dummy="$PATH"
1228 for ac_dir in $ac_dummy; do
1229 test -z "$ac_dir" && ac_dir=.
1230 if test -f $ac_dir/$ac_word; then
1231 ac_cv_prog_AWK="$ac_prog"
1232 break
1233 fi
1234 done
1235 IFS="$ac_save_ifs"
1236 fi
1237 fi
1238 AWK="$ac_cv_prog_AWK"
1239 if test -n "$AWK"; then
1240 echo "$ac_t""$AWK" 1>&6
1241 else
1242 echo "$ac_t""no" 1>&6
1243 fi
1244
1245 test -n "$AWK" && break
1246 done
1247 # Extract the first word of "flex", so it can be a program name with args.
1248 set dummy flex; ac_word=$2
1249 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1250 echo "configure:1251: checking for $ac_word" >&5
1251 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1252 echo $ac_n "(cached) $ac_c" 1>&6
1253 else
1254 if test -n "$LEX"; then
1255 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1256 else
1257 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1258 ac_dummy="$PATH"
1259 for ac_dir in $ac_dummy; do
1260 test -z "$ac_dir" && ac_dir=.
1261 if test -f $ac_dir/$ac_word; then
1262 ac_cv_prog_LEX="flex"
1263 break
1264 fi
1265 done
1266 IFS="$ac_save_ifs"
1267 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1268 fi
1269 fi
1270 LEX="$ac_cv_prog_LEX"
1271 if test -n "$LEX"; then
1272 echo "$ac_t""$LEX" 1>&6
1273 else
1274 echo "$ac_t""no" 1>&6
1275 fi
1276
1277 if test -z "$LEXLIB"
1278 then
1279 case "$LEX" in
1280 flex*) ac_lib=fl ;;
1281 *) ac_lib=l ;;
1282 esac
1283 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1284 echo "configure:1285: checking for yywrap in -l$ac_lib" >&5
1285 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1286 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1287 echo $ac_n "(cached) $ac_c" 1>&6
1288 else
1289 ac_save_LIBS="$LIBS"
1290 LIBS="-l$ac_lib $LIBS"
1291 cat > conftest.$ac_ext <<EOF
1292 #line 1293 "configure"
1293 #include "confdefs.h"
1294 /* Override any gcc2 internal prototype to avoid an error. */
1295 /* We use char because int might match the return type of a gcc2
1296 builtin and then its argument prototype would still apply. */
1297 char yywrap();
1298
1299 int main() {
1300 yywrap()
1301 ; return 0; }
1302 EOF
1303 if { (eval echo configure:1304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1304 rm -rf conftest*
1305 eval "ac_cv_lib_$ac_lib_var=yes"
1306 else
1307 echo "configure: failed program was:" >&5
1308 cat conftest.$ac_ext >&5
1309 rm -rf conftest*
1310 eval "ac_cv_lib_$ac_lib_var=no"
1311 fi
1312 rm -f conftest*
1313 LIBS="$ac_save_LIBS"
1314
1315 fi
1316 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1317 echo "$ac_t""yes" 1>&6
1318 LEXLIB="-l$ac_lib"
1319 else
1320 echo "$ac_t""no" 1>&6
1321 fi
1322
1323 fi
1324
1325 pathtmp=/usr/bin:/bin:/usr/local/bin:/usr/xpg4/bin:/usr/ucb
1326 # Extract the first word of "cut", so it can be a program name with args.
1327 set dummy cut; ac_word=$2
1328 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1329 echo "configure:1330: checking for $ac_word" >&5
1330 if eval "test \"`echo '$''{'ac_cv_path_cutpath'+set}'`\" = set"; then
1331 echo $ac_n "(cached) $ac_c" 1>&6
1332 else
1333 case "$cutpath" in
1334 /*)
1335 ac_cv_path_cutpath="$cutpath" # Let the user override the test with a path.
1336 ;;
1337 ?:/*)
1338 ac_cv_path_cutpath="$cutpath" # Let the user override the test with a dos path.
1339 ;;
1340 *)
1341 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1342 ac_dummy="$pathtmp"
1343 for ac_dir in $ac_dummy; do
1344 test -z "$ac_dir" && ac_dir=.
1345 if test -f $ac_dir/$ac_word; then
1346 ac_cv_path_cutpath="$ac_dir/$ac_word"
1347 break
1348 fi
1349 done
1350 IFS="$ac_save_ifs"
1351 test -z "$ac_cv_path_cutpath" && ac_cv_path_cutpath="no"
1352 ;;
1353 esac
1354 fi
1355 cutpath="$ac_cv_path_cutpath"
1356 if test -n "$cutpath"; then
1357 echo "$ac_t""$cutpath" 1>&6
1358 else
1359 echo "$ac_t""no" 1>&6
1360 fi
1361
1362
1363
1364 # Extract the first word of "libtool", so it can be a program name with args.
1365 set dummy libtool; ac_word=$2
1366 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1367 echo "configure:1368: checking for $ac_word" >&5
1368 if eval "test \"`echo '$''{'ac_cv_prog_LIBTOOL'+set}'`\" = set"; then
1369 echo $ac_n "(cached) $ac_c" 1>&6
1370 else
1371 if test -n "$LIBTOOL"; then
1372 ac_cv_prog_LIBTOOL="$LIBTOOL" # Let the user override the test.
1373 else
1374 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1375 ac_dummy="$pathtmp"
1376 for ac_dir in $ac_dummy; do
1377 test -z "$ac_dir" && ac_dir=.
1378 if test -f $ac_dir/$ac_word; then
1379 ac_cv_prog_LIBTOOL="libtool"
1380 break
1381 fi
1382 done
1383 IFS="$ac_save_ifs"
1384 fi
1385 fi
1386 LIBTOOL="$ac_cv_prog_LIBTOOL"
1387 if test -n "$LIBTOOL"; then
1388 echo "$ac_t""$LIBTOOL" 1>&6
1389 else
1390 echo "$ac_t""no" 1>&6
1391 fi
1392
1393
1394 tmptest=`$LIBTOOL --version 2>&1 | grep GNU`
1395 if test x"$tmptest" != x ; then
1396 GNU_LIBTOOL=1
1397 fi
1398
1399
1400 # Extract the first word of "lorder", so it can be a program name with args.
1401 set dummy lorder; ac_word=$2
1402 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1403 echo "configure:1404: checking for $ac_word" >&5
1404 if eval "test \"`echo '$''{'ac_cv_prog_LORDER'+set}'`\" = set"; then
1405 echo $ac_n "(cached) $ac_c" 1>&6
1406 else
1407 if test -n "$LORDER"; then
1408 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
1409 else
1410 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1411 ac_dummy="$PATH"
1412 for ac_dir in $ac_dummy; do
1413 test -z "$ac_dir" && ac_dir=.
1414 if test -f $ac_dir/$ac_word; then
1415 ac_cv_prog_LORDER="lorder"
1416 break
1417 fi
1418 done
1419 IFS="$ac_save_ifs"
1420 test -z "$ac_cv_prog_LORDER" && ac_cv_prog_LORDER="no"
1421 fi
1422 fi
1423 LORDER="$ac_cv_prog_LORDER"
1424 if test -n "$LORDER"; then
1425 echo "$ac_t""$LORDER" 1>&6
1426 else
1427 echo "$ac_t""no" 1>&6
1428 fi
1429 # Extract the first word of "tsort", so it can be a program name with args.
1430 set dummy tsort; ac_word=$2
1431 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1432 echo "configure:1433: checking for $ac_word" >&5
1433 if eval "test \"`echo '$''{'ac_cv_prog_TSORT'+set}'`\" = set"; then
1434 echo $ac_n "(cached) $ac_c" 1>&6
1435 else
1436 if test -n "$TSORT"; then
1437 ac_cv_prog_TSORT="$TSORT" # Let the user override the test.
1438 else
1439 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1440 ac_dummy="$PATH"
1441 for ac_dir in $ac_dummy; do
1442 test -z "$ac_dir" && ac_dir=.
1443 if test -f $ac_dir/$ac_word; then
1444 ac_cv_prog_TSORT="tsort"
1445 break
1446 fi
1447 done
1448 IFS="$ac_save_ifs"
1449 test -z "$ac_cv_prog_TSORT" && ac_cv_prog_TSORT="no"
1450 fi
1451 fi
1452 TSORT="$ac_cv_prog_TSORT"
1453 if test -n "$TSORT"; then
1454 echo "$ac_t""$TSORT" 1>&6
1455 else
1456 echo "$ac_t""no" 1>&6
1457 fi
1458
1459 if test x$ac_cv_prog_LORDER != xlorder -o x$ac_cv_prog_TSORT != xtsort; then
1460 LORDER=echo
1461 TSORT=cat
1462 fi
1463
1464 pathtmp=/usr/bin:/bin:/usr/local/bin:/usr/xpg4/bin:/usr/ucb
1465 # Extract the first word of "ls", so it can be a program name with args.
1466 set dummy ls; ac_word=$2
1467 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1468 echo "configure:1469: checking for $ac_word" >&5
1469 if eval "test \"`echo '$''{'ac_cv_path_lspath'+set}'`\" = set"; then
1470 echo $ac_n "(cached) $ac_c" 1>&6
1471 else
1472 case "$lspath" in
1473 /*)
1474 ac_cv_path_lspath="$lspath" # Let the user override the test with a path.
1475 ;;
1476 ?:/*)
1477 ac_cv_path_lspath="$lspath" # Let the user override the test with a dos path.
1478 ;;
1479 *)
1480 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1481 ac_dummy="$pathtmp"
1482 for ac_dir in $ac_dummy; do
1483 test -z "$ac_dir" && ac_dir=.
1484 if test -f $ac_dir/$ac_word; then
1485 ac_cv_path_lspath="$ac_dir/$ac_word"
1486 break
1487 fi
1488 done
1489 IFS="$ac_save_ifs"
1490 test -z "$ac_cv_path_lspath" && ac_cv_path_lspath="no"
1491 ;;
1492 esac
1493 fi
1494 lspath="$ac_cv_path_lspath"
1495 if test -n "$lspath"; then
1496 echo "$ac_t""$lspath" 1>&6
1497 else
1498 echo "$ac_t""no" 1>&6
1499 fi
1500
1501
1502 if test "$lspath" != "no"; then
1503 echo $ac_n "checking how to get ls to show us the group ownership of a file""... $ac_c" 1>&6
1504 echo "configure:1505: checking how to get ls to show us the group ownership of a file" >&5
1505 if eval "test \"`echo '$''{'nmh_cv_ls_grpopt'+set}'`\" = set"; then
1506 echo $ac_n "(cached) $ac_c" 1>&6
1507 else
1508 if test x"`$lspath -dl / | $AWK '{print $9}'`" = x"/"; then
1509 nmh_cv_ls_grpopt="-l"
1510 else
1511 nmh_cv_ls_grpopt="-lg"
1512 fi
1513 fi
1514
1515 echo "$ac_t""$nmh_cv_ls_grpopt" 1>&6
1516 fi
1517
1518 pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin
1519 # Extract the first word of "more", so it can be a program name with args.
1520 set dummy more; 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_path_morepath'+set}'`\" = set"; then
1524 echo $ac_n "(cached) $ac_c" 1>&6
1525 else
1526 case "$morepath" in
1527 /*)
1528 ac_cv_path_morepath="$morepath" # Let the user override the test with a path.
1529 ;;
1530 ?:/*)
1531 ac_cv_path_morepath="$morepath" # Let the user override the test with a dos path.
1532 ;;
1533 *)
1534 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1535 ac_dummy="$pathtmp"
1536 for ac_dir in $ac_dummy; do
1537 test -z "$ac_dir" && ac_dir=.
1538 if test -f $ac_dir/$ac_word; then
1539 ac_cv_path_morepath="$ac_dir/$ac_word"
1540 break
1541 fi
1542 done
1543 IFS="$ac_save_ifs"
1544 test -z "$ac_cv_path_morepath" && ac_cv_path_morepath="no"
1545 ;;
1546 esac
1547 fi
1548 morepath="$ac_cv_path_morepath"
1549 if test -n "$morepath"; then
1550 echo "$ac_t""$morepath" 1>&6
1551 else
1552 echo "$ac_t""no" 1>&6
1553 fi
1554
1555
1556 if test -z "$pagerpath"; then
1557 pagerpath="$morepath"
1558 fi
1559
1560 pathtmp=/usr/lib:/usr/sbin:/usr/etc:/usr/ucblib:/usr/bin:/bin
1561 # Extract the first word of "sendmail", so it can be a program name with args.
1562 set dummy sendmail; ac_word=$2
1563 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1564 echo "configure:1565: checking for $ac_word" >&5
1565 if eval "test \"`echo '$''{'ac_cv_path_sendmailpath'+set}'`\" = set"; then
1566 echo $ac_n "(cached) $ac_c" 1>&6
1567 else
1568 case "$sendmailpath" in
1569 /*)
1570 ac_cv_path_sendmailpath="$sendmailpath" # Let the user override the test with a path.
1571 ;;
1572 ?:/*)
1573 ac_cv_path_sendmailpath="$sendmailpath" # Let the user override the test with a dos path.
1574 ;;
1575 *)
1576 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1577 ac_dummy="$pathtmp"
1578 for ac_dir in $ac_dummy; do
1579 test -z "$ac_dir" && ac_dir=.
1580 if test -f $ac_dir/$ac_word; then
1581 ac_cv_path_sendmailpath="$ac_dir/$ac_word"
1582 break
1583 fi
1584 done
1585 IFS="$ac_save_ifs"
1586 test -z "$ac_cv_path_sendmailpath" && ac_cv_path_sendmailpath="no"
1587 ;;
1588 esac
1589 fi
1590 sendmailpath="$ac_cv_path_sendmailpath"
1591 if test -n "$sendmailpath"; then
1592 echo "$ac_t""$sendmailpath" 1>&6
1593 else
1594 echo "$ac_t""no" 1>&6
1595 fi
1596
1597
1598 pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin
1599 # Extract the first word of "vi", so it can be a program name with args.
1600 set dummy vi; ac_word=$2
1601 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1602 echo "configure:1603: checking for $ac_word" >&5
1603 if eval "test \"`echo '$''{'ac_cv_path_vipath'+set}'`\" = set"; then
1604 echo $ac_n "(cached) $ac_c" 1>&6
1605 else
1606 case "$vipath" in
1607 /*)
1608 ac_cv_path_vipath="$vipath" # Let the user override the test with a path.
1609 ;;
1610 ?:/*)
1611 ac_cv_path_vipath="$vipath" # Let the user override the test with a dos path.
1612 ;;
1613 *)
1614 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1615 ac_dummy="$pathtmp"
1616 for ac_dir in $ac_dummy; do
1617 test -z "$ac_dir" && ac_dir=.
1618 if test -f $ac_dir/$ac_word; then
1619 ac_cv_path_vipath="$ac_dir/$ac_word"
1620 break
1621 fi
1622 done
1623 IFS="$ac_save_ifs"
1624 test -z "$ac_cv_path_vipath" && ac_cv_path_vipath="no"
1625 ;;
1626 esac
1627 fi
1628 vipath="$ac_cv_path_vipath"
1629 if test -n "$vipath"; then
1630 echo "$ac_t""$vipath" 1>&6
1631 else
1632 echo "$ac_t""no" 1>&6
1633 fi
1634
1635
1636 if test -z "$editorpath"; then
1637 editorpath="$vipath"
1638 fi
1639
1640 echo $ac_n "checking for broken vi""... $ac_c" 1>&6
1641 echo "configure:1642: checking for broken vi" >&5
1642 if eval "test \"`echo '$''{'nmh_cv_attvibug'+set}'`\" = set"; then
1643 echo $ac_n "(cached) $ac_c" 1>&6
1644 else
1645 if echo 'r /nonexist-file
1646 q' | ex > /dev/null 2>&1
1647 then
1648 nmh_cv_attvibug=no
1649 else
1650 nmh_cv_attvibug=yes
1651 fi
1652 fi
1653
1654 echo "$ac_t""$nmh_cv_attvibug" 1>&6
1655
1656 if test "$nmh_cv_attvibug" = yes; then
1657 cat >> confdefs.h <<\EOF
1658 #define ATTVIBUG 1
1659 EOF
1660
1661 fi
1662
1663 echo $ac_n "checking where mail spool is located""... $ac_c" 1>&6
1664 echo "configure:1665: checking where mail spool is located" >&5
1665 if eval "test \"`echo '$''{'nmh_cv_mailspool'+set}'`\" = set"; then
1666 echo $ac_n "(cached) $ac_c" 1>&6
1667 else
1668 for mailspool in /var/mail /var/spool/mail /usr/spool/mail /dev/null; do
1669 test -d $mailspool && break
1670 done
1671 nmh_cv_mailspool=$mailspool
1672
1673 fi
1674
1675 echo "$ac_t""$nmh_cv_mailspool" 1>&6
1676 mailspool=$nmh_cv_mailspool
1677
1678 if test "$lspath" != "no" -a "$cutpath" != "no"; then
1679 echo $ac_n "checking whether the mail spool is world-writable""... $ac_c" 1>&6
1680 echo "configure:1681: checking whether the mail spool is world-writable" >&5
1681 if eval "test \"`echo '$''{'nmh_cv_mailspool_world_writable'+set}'`\" = set"; then
1682 echo $ac_n "(cached) $ac_c" 1>&6
1683 else
1684 if test "`$lspath -dlL $mailspool | $cutpath -c9`" = "-"; then
1685 nmh_cv_mailspool_world_writable=no
1686 else
1687 nmh_cv_mailspool_world_writable=yes
1688 fi
1689 fi
1690
1691 echo "$ac_t""$nmh_cv_mailspool_world_writable" 1>&6
1692 fi
1693
1694 if test x"$nmh_cv_mailspool_world_writable" = x"no"; then
1695 cat >> confdefs.h <<\EOF
1696 #define MAILGROUP 1
1697 EOF
1698 SETGID_MAIL=1
1699 fi
1700
1701 echo $ac_n "checking what group owns the mail spool""... $ac_c" 1>&6
1702 echo "configure:1703: checking what group owns the mail spool" >&5
1703 if eval "test \"`echo '$''{'nmh_cv_ls_mail_grp'+set}'`\" = set"; then
1704 echo $ac_n "(cached) $ac_c" 1>&6
1705 else
1706 nmh_cv_ls_mail_grp=`$lspath -dL $nmh_cv_ls_grpopt $mailspool|$AWK '{print $4}'`
1707
1708 fi
1709
1710 echo "$ac_t""$nmh_cv_ls_mail_grp" 1>&6
1711 MAIL_SPOOL_GRP=$nmh_cv_ls_mail_grp
1712
1713 ac_header_dirent=no
1714 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1715 do
1716 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1717 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1718 echo "configure:1719: checking for $ac_hdr that defines DIR" >&5
1719 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1720 echo $ac_n "(cached) $ac_c" 1>&6
1721 else
1722 cat > conftest.$ac_ext <<EOF
1723 #line 1724 "configure"
1724 #include "confdefs.h"
1725 #include <sys/types.h>
1726 #include <$ac_hdr>
1727 int main() {
1728 DIR *dirp = 0;
1729 ; return 0; }
1730 EOF
1731 if { (eval echo configure:1732: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1732 rm -rf conftest*
1733 eval "ac_cv_header_dirent_$ac_safe=yes"
1734 else
1735 echo "configure: failed program was:" >&5
1736 cat conftest.$ac_ext >&5
1737 rm -rf conftest*
1738 eval "ac_cv_header_dirent_$ac_safe=no"
1739 fi
1740 rm -f conftest*
1741 fi
1742 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1743 echo "$ac_t""yes" 1>&6
1744 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1745 cat >> confdefs.h <<EOF
1746 #define $ac_tr_hdr 1
1747 EOF
1748 ac_header_dirent=$ac_hdr; break
1749 else
1750 echo "$ac_t""no" 1>&6
1751 fi
1752 done
1753 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1754 if test $ac_header_dirent = dirent.h; then
1755 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1756 echo "configure:1757: checking for opendir in -ldir" >&5
1757 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1758 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1759 echo $ac_n "(cached) $ac_c" 1>&6
1760 else
1761 ac_save_LIBS="$LIBS"
1762 LIBS="-ldir $LIBS"
1763 cat > conftest.$ac_ext <<EOF
1764 #line 1765 "configure"
1765 #include "confdefs.h"
1766 /* Override any gcc2 internal prototype to avoid an error. */
1767 /* We use char because int might match the return type of a gcc2
1768 builtin and then its argument prototype would still apply. */
1769 char opendir();
1770
1771 int main() {
1772 opendir()
1773 ; return 0; }
1774 EOF
1775 if { (eval echo configure:1776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1776 rm -rf conftest*
1777 eval "ac_cv_lib_$ac_lib_var=yes"
1778 else
1779 echo "configure: failed program was:" >&5
1780 cat conftest.$ac_ext >&5
1781 rm -rf conftest*
1782 eval "ac_cv_lib_$ac_lib_var=no"
1783 fi
1784 rm -f conftest*
1785 LIBS="$ac_save_LIBS"
1786
1787 fi
1788 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1789 echo "$ac_t""yes" 1>&6
1790 LIBS="$LIBS -ldir"
1791 else
1792 echo "$ac_t""no" 1>&6
1793 fi
1794
1795 else
1796 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1797 echo "configure:1798: checking for opendir in -lx" >&5
1798 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1799 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1800 echo $ac_n "(cached) $ac_c" 1>&6
1801 else
1802 ac_save_LIBS="$LIBS"
1803 LIBS="-lx $LIBS"
1804 cat > conftest.$ac_ext <<EOF
1805 #line 1806 "configure"
1806 #include "confdefs.h"
1807 /* Override any gcc2 internal prototype to avoid an error. */
1808 /* We use char because int might match the return type of a gcc2
1809 builtin and then its argument prototype would still apply. */
1810 char opendir();
1811
1812 int main() {
1813 opendir()
1814 ; return 0; }
1815 EOF
1816 if { (eval echo configure:1817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1817 rm -rf conftest*
1818 eval "ac_cv_lib_$ac_lib_var=yes"
1819 else
1820 echo "configure: failed program was:" >&5
1821 cat conftest.$ac_ext >&5
1822 rm -rf conftest*
1823 eval "ac_cv_lib_$ac_lib_var=no"
1824 fi
1825 rm -f conftest*
1826 LIBS="$ac_save_LIBS"
1827
1828 fi
1829 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1830 echo "$ac_t""yes" 1>&6
1831 LIBS="$LIBS -lx"
1832 else
1833 echo "$ac_t""no" 1>&6
1834 fi
1835
1836 fi
1837
1838 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1839 echo "configure:1840: checking how to run the C preprocessor" >&5
1840 # On Suns, sometimes $CPP names a directory.
1841 if test -n "$CPP" && test -d "$CPP"; then
1842 CPP=
1843 fi
1844 if test -z "$CPP"; then
1845 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1846 echo $ac_n "(cached) $ac_c" 1>&6
1847 else
1848 # This must be in double quotes, not single quotes, because CPP may get
1849 # substituted into the Makefile and "${CC-cc}" will confuse make.
1850 CPP="${CC-cc} -E"
1851 # On the NeXT, cc -E runs the code through the compiler's parser,
1852 # not just through cpp.
1853 cat > conftest.$ac_ext <<EOF
1854 #line 1855 "configure"
1855 #include "confdefs.h"
1856 #include <assert.h>
1857 Syntax Error
1858 EOF
1859 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1860 { (eval echo configure:1861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1861 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1862 if test -z "$ac_err"; then
1863 :
1864 else
1865 echo "$ac_err" >&5
1866 echo "configure: failed program was:" >&5
1867 cat conftest.$ac_ext >&5
1868 rm -rf conftest*
1869 CPP="${CC-cc} -E -traditional-cpp"
1870 cat > conftest.$ac_ext <<EOF
1871 #line 1872 "configure"
1872 #include "confdefs.h"
1873 #include <assert.h>
1874 Syntax Error
1875 EOF
1876 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1877 { (eval echo configure:1878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1878 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1879 if test -z "$ac_err"; then
1880 :
1881 else
1882 echo "$ac_err" >&5
1883 echo "configure: failed program was:" >&5
1884 cat conftest.$ac_ext >&5
1885 rm -rf conftest*
1886 CPP="${CC-cc} -nologo -E"
1887 cat > conftest.$ac_ext <<EOF
1888 #line 1889 "configure"
1889 #include "confdefs.h"
1890 #include <assert.h>
1891 Syntax Error
1892 EOF
1893 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1894 { (eval echo configure:1895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1895 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1896 if test -z "$ac_err"; then
1897 :
1898 else
1899 echo "$ac_err" >&5
1900 echo "configure: failed program was:" >&5
1901 cat conftest.$ac_ext >&5
1902 rm -rf conftest*
1903 CPP=/lib/cpp
1904 fi
1905 rm -f conftest*
1906 fi
1907 rm -f conftest*
1908 fi
1909 rm -f conftest*
1910 ac_cv_prog_CPP="$CPP"
1911 fi
1912 CPP="$ac_cv_prog_CPP"
1913 else
1914 ac_cv_prog_CPP="$CPP"
1915 fi
1916 echo "$ac_t""$CPP" 1>&6
1917
1918 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1919 echo "configure:1920: checking for ANSI C header files" >&5
1920 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1921 echo $ac_n "(cached) $ac_c" 1>&6
1922 else
1923 cat > conftest.$ac_ext <<EOF
1924 #line 1925 "configure"
1925 #include "confdefs.h"
1926 #include <stdlib.h>
1927 #include <stdarg.h>
1928 #include <string.h>
1929 #include <float.h>
1930 EOF
1931 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1932 { (eval echo configure:1933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1933 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1934 if test -z "$ac_err"; then
1935 rm -rf conftest*
1936 ac_cv_header_stdc=yes
1937 else
1938 echo "$ac_err" >&5
1939 echo "configure: failed program was:" >&5
1940 cat conftest.$ac_ext >&5
1941 rm -rf conftest*
1942 ac_cv_header_stdc=no
1943 fi
1944 rm -f conftest*
1945
1946 if test $ac_cv_header_stdc = yes; then
1947 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1948 cat > conftest.$ac_ext <<EOF
1949 #line 1950 "configure"
1950 #include "confdefs.h"
1951 #include <string.h>
1952 EOF
1953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1954 egrep "memchr" >/dev/null 2>&1; then
1955 :
1956 else
1957 rm -rf conftest*
1958 ac_cv_header_stdc=no
1959 fi
1960 rm -f conftest*
1961
1962 fi
1963
1964 if test $ac_cv_header_stdc = yes; then
1965 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1966 cat > conftest.$ac_ext <<EOF
1967 #line 1968 "configure"
1968 #include "confdefs.h"
1969 #include <stdlib.h>
1970 EOF
1971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1972 egrep "free" >/dev/null 2>&1; then
1973 :
1974 else
1975 rm -rf conftest*
1976 ac_cv_header_stdc=no
1977 fi
1978 rm -f conftest*
1979
1980 fi
1981
1982 if test $ac_cv_header_stdc = yes; then
1983 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1984 if test "$cross_compiling" = yes; then
1985 :
1986 else
1987 cat > conftest.$ac_ext <<EOF
1988 #line 1989 "configure"
1989 #include "confdefs.h"
1990 #include <ctype.h>
1991 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1992 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1993 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1994 int main () { int i; for (i = 0; i < 256; i++)
1995 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1996 exit (0); }
1997
1998 EOF
1999 if { (eval echo configure:2000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2000 then
2001 :
2002 else
2003 echo "configure: failed program was:" >&5
2004 cat conftest.$ac_ext >&5
2005 rm -fr conftest*
2006 ac_cv_header_stdc=no
2007 fi
2008 rm -fr conftest*
2009 fi
2010
2011 fi
2012 fi
2013
2014 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2015 if test $ac_cv_header_stdc = yes; then
2016 cat >> confdefs.h <<\EOF
2017 #define STDC_HEADERS 1
2018 EOF
2019
2020 fi
2021
2022 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2023 echo "configure:2024: checking whether time.h and sys/time.h may both be included" >&5
2024 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2025 echo $ac_n "(cached) $ac_c" 1>&6
2026 else
2027 cat > conftest.$ac_ext <<EOF
2028 #line 2029 "configure"
2029 #include "confdefs.h"
2030 #include <sys/types.h>
2031 #include <sys/time.h>
2032 #include <time.h>
2033 int main() {
2034 struct tm *tp;
2035 ; return 0; }
2036 EOF
2037 if { (eval echo configure:2038: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2038 rm -rf conftest*
2039 ac_cv_header_time=yes
2040 else
2041 echo "configure: failed program was:" >&5
2042 cat conftest.$ac_ext >&5
2043 rm -rf conftest*
2044 ac_cv_header_time=no
2045 fi
2046 rm -f conftest*
2047 fi
2048
2049 echo "$ac_t""$ac_cv_header_time" 1>&6
2050 if test $ac_cv_header_time = yes; then
2051 cat >> confdefs.h <<\EOF
2052 #define TIME_WITH_SYS_TIME 1
2053 EOF
2054
2055 fi
2056
2057 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2058 echo "configure:2059: checking for sys/wait.h that is POSIX.1 compatible" >&5
2059 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2060 echo $ac_n "(cached) $ac_c" 1>&6
2061 else
2062 cat > conftest.$ac_ext <<EOF
2063 #line 2064 "configure"
2064 #include "confdefs.h"
2065 #include <sys/types.h>
2066 #include <sys/wait.h>
2067 #ifndef WEXITSTATUS
2068 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2069 #endif
2070 #ifndef WIFEXITED
2071 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2072 #endif
2073 int main() {
2074 int s;
2075 wait (&s);
2076 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2077 ; return 0; }
2078 EOF
2079 if { (eval echo configure:2080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2080 rm -rf conftest*
2081 ac_cv_header_sys_wait_h=yes
2082 else
2083 echo "configure: failed program was:" >&5
2084 cat conftest.$ac_ext >&5
2085 rm -rf conftest*
2086 ac_cv_header_sys_wait_h=no
2087 fi
2088 rm -f conftest*
2089 fi
2090
2091 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2092 if test $ac_cv_header_sys_wait_h = yes; then
2093 cat >> confdefs.h <<\EOF
2094 #define HAVE_SYS_WAIT_H 1
2095 EOF
2096
2097 fi
2098
2099 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
2100 echo "configure:2101: checking whether stat file-mode macros are broken" >&5
2101 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
2102 echo $ac_n "(cached) $ac_c" 1>&6
2103 else
2104 cat > conftest.$ac_ext <<EOF
2105 #line 2106 "configure"
2106 #include "confdefs.h"
2107 #include <sys/types.h>
2108 #include <sys/stat.h>
2109
2110 #if defined(S_ISBLK) && defined(S_IFDIR)
2111 # if S_ISBLK (S_IFDIR)
2112 You lose.
2113 # endif
2114 #endif
2115
2116 #if defined(S_ISBLK) && defined(S_IFCHR)
2117 # if S_ISBLK (S_IFCHR)
2118 You lose.
2119 # endif
2120 #endif
2121
2122 #if defined(S_ISLNK) && defined(S_IFREG)
2123 # if S_ISLNK (S_IFREG)
2124 You lose.
2125 # endif
2126 #endif
2127
2128 #if defined(S_ISSOCK) && defined(S_IFREG)
2129 # if S_ISSOCK (S_IFREG)
2130 You lose.
2131 # endif
2132 #endif
2133
2134 EOF
2135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2136 egrep "You lose" >/dev/null 2>&1; then
2137 rm -rf conftest*
2138 ac_cv_header_stat_broken=yes
2139 else
2140 rm -rf conftest*
2141 ac_cv_header_stat_broken=no
2142 fi
2143 rm -f conftest*
2144
2145 fi
2146
2147 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
2148 if test $ac_cv_header_stat_broken = yes; then
2149 cat >> confdefs.h <<\EOF
2150 #define STAT_MACROS_BROKEN 1
2151 EOF
2152
2153 fi
2154
2155 for ac_hdr in string.h memory.h stdlib.h unistd.h errno.h fcntl.h \
2156 limits.h crypt.h termcap.h termio.h termios.h locale.h \
2157 netdb.h sys/param.h sys/time.h sys/utsname.h arpa/inet.h \
2158 arpa/ftp.h
2159 do
2160 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2161 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2162 echo "configure:2163: checking for $ac_hdr" >&5
2163 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2164 echo $ac_n "(cached) $ac_c" 1>&6
2165 else
2166 cat > conftest.$ac_ext <<EOF
2167 #line 2168 "configure"
2168 #include "confdefs.h"
2169 #include <$ac_hdr>
2170 EOF
2171 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2172 { (eval echo configure:2173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2173 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2174 if test -z "$ac_err"; then
2175 rm -rf conftest*
2176 eval "ac_cv_header_$ac_safe=yes"
2177 else
2178 echo "$ac_err" >&5
2179 echo "configure: failed program was:" >&5
2180 cat conftest.$ac_ext >&5
2181 rm -rf conftest*
2182 eval "ac_cv_header_$ac_safe=no"
2183 fi
2184 rm -f conftest*
2185 fi
2186 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2187 echo "$ac_t""yes" 1>&6
2188 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2189 cat >> confdefs.h <<EOF
2190 #define $ac_tr_hdr 1
2191 EOF
2192
2193 else
2194 echo "$ac_t""no" 1>&6
2195 fi
2196 done
2197
2198
2199
2200 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
2201 echo "configure:2202: checking POSIX termios" >&5
2202 if eval "test \"`echo '$''{'nmh_cv_sys_posix_termios'+set}'`\" = set"; then
2203 echo $ac_n "(cached) $ac_c" 1>&6
2204 else
2205 cat > conftest.$ac_ext <<EOF
2206 #line 2207 "configure"
2207 #include "confdefs.h"
2208 #include <sys/types.h>
2209 #include <unistd.h>
2210 #include <termios.h>
2211 int main() {
2212 /* SunOS 4.0.3 has termios.h but not the library calls. */
2213 tcgetattr(0, 0);
2214 ; return 0; }
2215 EOF
2216 if { (eval echo configure:2217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2217 rm -rf conftest*
2218 nmh_cv_sys_posix_termios=yes
2219 else
2220 echo "configure: failed program was:" >&5
2221 cat conftest.$ac_ext >&5
2222 rm -rf conftest*
2223 nmh_cv_sys_posix_termios=no
2224 fi
2225 rm -f conftest*
2226 fi
2227
2228 echo "$ac_t""$nmh_cv_sys_posix_termios" 1>&6
2229
2230 if test $nmh_cv_sys_posix_termios = yes; then
2231 echo $ac_n "checking TIOCGWINSZ in termios.h""... $ac_c" 1>&6
2232 echo "configure:2233: checking TIOCGWINSZ in termios.h" >&5
2233 if eval "test \"`echo '$''{'nmh_cv_header_termios_h_tiocgwinsz'+set}'`\" = set"; then
2234 echo $ac_n "(cached) $ac_c" 1>&6
2235 else
2236 cat > conftest.$ac_ext <<EOF
2237 #line 2238 "configure"
2238 #include "confdefs.h"
2239 #include <sys/types.h>
2240 #include <termios.h>
2241 int main() {
2242 int x = TIOCGWINSZ;
2243 ; return 0; }
2244 EOF
2245 if { (eval echo configure:2246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2246 rm -rf conftest*
2247 nmh_cv_header_termios_h_tiocgwinsz=yes
2248 else
2249 echo "configure: failed program was:" >&5
2250 cat conftest.$ac_ext >&5
2251 rm -rf conftest*
2252 nmh_cv_header_termios_h_tiocgwinsz=no
2253 fi
2254 rm -f conftest*
2255 fi
2256
2257 echo "$ac_t""$nmh_cv_header_termios_h_tiocgwinsz" 1>&6
2258 else
2259 nmh_cv_header_termios_h_tiocgwinsz=no
2260 fi
2261
2262 if test $nmh_cv_header_termios_h_tiocgwinsz = no; then
2263 echo $ac_n "checking TIOCGWINSZ in sys/ioctl.h""... $ac_c" 1>&6
2264 echo "configure:2265: checking TIOCGWINSZ in sys/ioctl.h" >&5
2265 if eval "test \"`echo '$''{'nmh_cv_header_sys_ioctl_h_tiocgwinsz'+set}'`\" = set"; then
2266 echo $ac_n "(cached) $ac_c" 1>&6
2267 else
2268 cat > conftest.$ac_ext <<EOF
2269 #line 2270 "configure"
2270 #include "confdefs.h"
2271 #include <sys/types.h>
2272 #include <sys/ioctl.h>
2273 int main() {
2274 int x = TIOCGWINSZ;
2275 ; return 0; }
2276 EOF
2277 if { (eval echo configure:2278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2278 rm -rf conftest*
2279 nmh_cv_header_sys_ioctl_h_tiocgwinsz=yes
2280 else
2281 echo "configure: failed program was:" >&5
2282 cat conftest.$ac_ext >&5
2283 rm -rf conftest*
2284 nmh_cv_header_sys_ioctl_h_tiocgwinsz=no
2285 fi
2286 rm -f conftest*
2287 fi
2288
2289 echo "$ac_t""$nmh_cv_header_sys_ioctl_h_tiocgwinsz" 1>&6
2290 if test $nmh_cv_header_sys_ioctl_h_tiocgwinsz = yes; then
2291 cat >> confdefs.h <<\EOF
2292 #define GWINSZ_IN_SYS_IOCTL 1
2293 EOF
2294
2295 fi
2296 fi
2297
2298 ac_safe=`echo "libio.h" | sed 'y%./+-%__p_%'`
2299 echo $ac_n "checking for libio.h""... $ac_c" 1>&6
2300 echo "configure:2301: checking for libio.h" >&5
2301 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2302 echo $ac_n "(cached) $ac_c" 1>&6
2303 else
2304 cat > conftest.$ac_ext <<EOF
2305 #line 2306 "configure"
2306 #include "confdefs.h"
2307 #include <libio.h>
2308 EOF
2309 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2310 { (eval echo configure:2311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2311 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2312 if test -z "$ac_err"; then
2313 rm -rf conftest*
2314 eval "ac_cv_header_$ac_safe=yes"
2315 else
2316 echo "$ac_err" >&5
2317 echo "configure: failed program was:" >&5
2318 cat conftest.$ac_ext >&5
2319 rm -rf conftest*
2320 eval "ac_cv_header_$ac_safe=no"
2321 fi
2322 rm -f conftest*
2323 fi
2324 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2325 echo "$ac_t""yes" 1>&6
2326
2327 cat > conftest.$ac_ext <<EOF
2328 #line 2329 "configure"
2329 #include "confdefs.h"
2330 #include <libio.h>
2331 EOF
2332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2333 egrep "_IO_write_ptr" >/dev/null 2>&1; then
2334 rm -rf conftest*
2335
2336 cat >> confdefs.h <<\EOF
2337 #define LINUX_STDIO 1
2338 EOF
2339
2340 fi
2341 rm -f conftest*
2342
2343 else
2344 echo "$ac_t""no" 1>&6
2345 fi
2346
2347
2348 ac_safe=`echo "sys/ptem.h" | sed 'y%./+-%__p_%'`
2349 echo $ac_n "checking for sys/ptem.h""... $ac_c" 1>&6
2350 echo "configure:2351: checking for sys/ptem.h" >&5
2351 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2352 echo $ac_n "(cached) $ac_c" 1>&6
2353 else
2354 cat > conftest.$ac_ext <<EOF
2355 #line 2356 "configure"
2356 #include "confdefs.h"
2357 #include <sys/ptem.h>
2358 EOF
2359 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2360 { (eval echo configure:2361: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2361 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2362 if test -z "$ac_err"; then
2363 rm -rf conftest*
2364 eval "ac_cv_header_$ac_safe=yes"
2365 else
2366 echo "$ac_err" >&5
2367 echo "configure: failed program was:" >&5
2368 cat conftest.$ac_ext >&5
2369 rm -rf conftest*
2370 eval "ac_cv_header_$ac_safe=no"
2371 fi
2372 rm -f conftest*
2373 fi
2374 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2375 echo "$ac_t""yes" 1>&6
2376 cat >> confdefs.h <<\EOF
2377 #define WINSIZE_IN_PTEM 1
2378 EOF
2379
2380 else
2381 echo "$ac_t""no" 1>&6
2382 fi
2383
2384
2385 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
2386 echo "configure:2387: checking for pid_t" >&5
2387 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
2388 echo $ac_n "(cached) $ac_c" 1>&6
2389 else
2390 cat > conftest.$ac_ext <<EOF
2391 #line 2392 "configure"
2392 #include "confdefs.h"
2393 #include <sys/types.h>
2394 #if STDC_HEADERS
2395 #include <stdlib.h>
2396 #include <stddef.h>
2397 #endif
2398 EOF
2399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2400 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2401 rm -rf conftest*
2402 ac_cv_type_pid_t=yes
2403 else
2404 rm -rf conftest*
2405 ac_cv_type_pid_t=no
2406 fi
2407 rm -f conftest*
2408
2409 fi
2410 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2411 if test $ac_cv_type_pid_t = no; then
2412 cat >> confdefs.h <<\EOF
2413 #define pid_t int
2414 EOF
2415
2416 fi
2417
2418 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2419 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2420 echo "configure:2421: checking for vfork.h" >&5
2421 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2422 echo $ac_n "(cached) $ac_c" 1>&6
2423 else
2424 cat > conftest.$ac_ext <<EOF
2425 #line 2426 "configure"
2426 #include "confdefs.h"
2427 #include <vfork.h>
2428 EOF
2429 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2430 { (eval echo configure:2431: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2431 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2432 if test -z "$ac_err"; then
2433 rm -rf conftest*
2434 eval "ac_cv_header_$ac_safe=yes"
2435 else
2436 echo "$ac_err" >&5
2437 echo "configure: failed program was:" >&5
2438 cat conftest.$ac_ext >&5
2439 rm -rf conftest*
2440 eval "ac_cv_header_$ac_safe=no"
2441 fi
2442 rm -f conftest*
2443 fi
2444 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2445 echo "$ac_t""yes" 1>&6
2446 cat >> confdefs.h <<\EOF
2447 #define HAVE_VFORK_H 1
2448 EOF
2449
2450 else
2451 echo "$ac_t""no" 1>&6
2452 fi
2453
2454 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2455 echo "configure:2456: checking for working vfork" >&5
2456 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2457 echo $ac_n "(cached) $ac_c" 1>&6
2458 else
2459 if test "$cross_compiling" = yes; then
2460 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2461 echo "configure:2462: checking for vfork" >&5
2462 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2463 echo $ac_n "(cached) $ac_c" 1>&6
2464 else
2465 cat > conftest.$ac_ext <<EOF
2466 #line 2467 "configure"
2467 #include "confdefs.h"
2468 /* System header to define __stub macros and hopefully few prototypes,
2469 which can conflict with char vfork(); below. */
2470 #include <assert.h>
2471 /* Override any gcc2 internal prototype to avoid an error. */
2472 /* We use char because int might match the return type of a gcc2
2473 builtin and then its argument prototype would still apply. */
2474 char vfork();
2475
2476 int main() {
2477
2478 /* The GNU C library defines this for functions which it implements
2479 to always fail with ENOSYS. Some functions are actually named
2480 something starting with __ and the normal name is an alias. */
2481 #if defined (__stub_vfork) || defined (__stub___vfork)
2482 choke me
2483 #else
2484 vfork();
2485 #endif
2486
2487 ; return 0; }
2488 EOF
2489 if { (eval echo configure:2490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2490 rm -rf conftest*
2491 eval "ac_cv_func_vfork=yes"
2492 else
2493 echo "configure: failed program was:" >&5
2494 cat conftest.$ac_ext >&5
2495 rm -rf conftest*
2496 eval "ac_cv_func_vfork=no"
2497 fi
2498 rm -f conftest*
2499 fi
2500
2501 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2502 echo "$ac_t""yes" 1>&6
2503 :
2504 else
2505 echo "$ac_t""no" 1>&6
2506 fi
2507
2508 ac_cv_func_vfork_works=$ac_cv_func_vfork
2509 else
2510 cat > conftest.$ac_ext <<EOF
2511 #line 2512 "configure"
2512 #include "confdefs.h"
2513 /* Thanks to Paul Eggert for this test. */
2514 #include <stdio.h>
2515 #include <sys/types.h>
2516 #include <sys/stat.h>
2517 #ifdef HAVE_UNISTD_H
2518 #include <unistd.h>
2519 #endif
2520 #ifdef HAVE_VFORK_H
2521 #include <vfork.h>
2522 #endif
2523 /* On some sparc systems, changes by the child to local and incoming
2524 argument registers are propagated back to the parent.
2525 The compiler is told about this with #include <vfork.h>,
2526 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2527 Test for this by using a static variable whose address
2528 is put into a register that is clobbered by the vfork. */
2529 static
2530 #ifdef __cplusplus
2531 sparc_address_test (int arg)
2532 #else
2533 sparc_address_test (arg) int arg;
2534 #endif
2535 {
2536 static pid_t child;
2537 if (!child) {
2538 child = vfork ();
2539 if (child < 0) {
2540 perror ("vfork");
2541 _exit(2);
2542 }
2543 if (!child) {
2544 arg = getpid();
2545 write(-1, "", 0);
2546 _exit (arg);
2547 }
2548 }
2549 }
2550 main() {
2551 pid_t parent = getpid ();
2552 pid_t child;
2553
2554 sparc_address_test ();
2555
2556 child = vfork ();
2557
2558 if (child == 0) {
2559 /* Here is another test for sparc vfork register problems.
2560 This test uses lots of local variables, at least
2561 as many local variables as main has allocated so far
2562 including compiler temporaries. 4 locals are enough for
2563 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2564 A buggy compiler should reuse the register of parent
2565 for one of the local variables, since it will think that
2566 parent can't possibly be used any more in this routine.
2567 Assigning to the local variable will thus munge parent
2568 in the parent process. */
2569 pid_t
2570 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2571 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2572 /* Convince the compiler that p..p7 are live; otherwise, it might
2573 use the same hardware register for all 8 local variables. */
2574 if (p != p1 || p != p2 || p != p3 || p != p4
2575 || p != p5 || p != p6 || p != p7)
2576 _exit(1);
2577
2578 /* On some systems (e.g. IRIX 3.3),
2579 vfork doesn't separate parent from child file descriptors.
2580 If the child closes a descriptor before it execs or exits,
2581 this munges the parent's descriptor as well.
2582 Test for this by closing stdout in the child. */
2583 _exit(close(fileno(stdout)) != 0);
2584 } else {
2585 int status;
2586 struct stat st;
2587
2588 while (wait(&status) != child)
2589 ;
2590 exit(
2591 /* Was there some problem with vforking? */
2592 child < 0
2593
2594 /* Did the child fail? (This shouldn't happen.) */
2595 || status
2596
2597 /* Did the vfork/compiler bug occur? */
2598 || parent != getpid()
2599
2600 /* Did the file descriptor bug occur? */
2601 || fstat(fileno(stdout), &st) != 0
2602 );
2603 }
2604 }
2605 EOF
2606 if { (eval echo configure:2607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2607 then
2608 ac_cv_func_vfork_works=yes
2609 else
2610 echo "configure: failed program was:" >&5
2611 cat conftest.$ac_ext >&5
2612 rm -fr conftest*
2613 ac_cv_func_vfork_works=no
2614 fi
2615 rm -fr conftest*
2616 fi
2617
2618 fi
2619
2620 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2621 if test $ac_cv_func_vfork_works = no; then
2622 cat >> confdefs.h <<\EOF
2623 #define vfork fork
2624 EOF
2625
2626 fi
2627
2628 echo $ac_n "checking for mkstemp in -lmkstemp""... $ac_c" 1>&6
2629 echo "configure:2630: checking for mkstemp in -lmkstemp" >&5
2630 ac_lib_var=`echo mkstemp'_'mkstemp | sed 'y%./+-%__p_%'`
2631 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2632 echo $ac_n "(cached) $ac_c" 1>&6
2633 else
2634 ac_save_LIBS="$LIBS"
2635 LIBS="-lmkstemp $LIBS"
2636 cat > conftest.$ac_ext <<EOF
2637 #line 2638 "configure"
2638 #include "confdefs.h"
2639 /* Override any gcc2 internal prototype to avoid an error. */
2640 /* We use char because int might match the return type of a gcc2
2641 builtin and then its argument prototype would still apply. */
2642 char mkstemp();
2643
2644 int main() {
2645 mkstemp()
2646 ; return 0; }
2647 EOF
2648 if { (eval echo configure:2649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2649 rm -rf conftest*
2650 eval "ac_cv_lib_$ac_lib_var=yes"
2651 else
2652 echo "configure: failed program was:" >&5
2653 cat conftest.$ac_ext >&5
2654 rm -rf conftest*
2655 eval "ac_cv_lib_$ac_lib_var=no"
2656 fi
2657 rm -f conftest*
2658 LIBS="$ac_save_LIBS"
2659
2660 fi
2661 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2662 echo "$ac_t""yes" 1>&6
2663 ac_tr_lib=HAVE_LIB`echo mkstemp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2664 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2665 cat >> confdefs.h <<EOF
2666 #define $ac_tr_lib 1
2667 EOF
2668
2669 LIBS="-lmkstemp $LIBS"
2670
2671 else
2672 echo "$ac_t""no" 1>&6
2673 fi
2674
2675 for ac_func in waitpid wait3 sigaction sigprocmask sigblock sigsetmask \
2676 sighold sigrelse writev lstat uname tzset killpg mkstemp \
2677 sethostent
2678 do
2679 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2680 echo "configure:2681: checking for $ac_func" >&5
2681 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2682 echo $ac_n "(cached) $ac_c" 1>&6
2683 else
2684 cat > conftest.$ac_ext <<EOF
2685 #line 2686 "configure"
2686 #include "confdefs.h"
2687 /* System header to define __stub macros and hopefully few prototypes,
2688 which can conflict with char $ac_func(); below. */
2689 #include <assert.h>
2690 /* Override any gcc2 internal prototype to avoid an error. */
2691 /* We use char because int might match the return type of a gcc2
2692 builtin and then its argument prototype would still apply. */
2693 char $ac_func();
2694
2695 int main() {
2696
2697 /* The GNU C library defines this for functions which it implements
2698 to always fail with ENOSYS. Some functions are actually named
2699 something starting with __ and the normal name is an alias. */
2700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2701 choke me
2702 #else
2703 $ac_func();
2704 #endif
2705
2706 ; return 0; }
2707 EOF
2708 if { (eval echo configure:2709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2709 rm -rf conftest*
2710 eval "ac_cv_func_$ac_func=yes"
2711 else
2712 echo "configure: failed program was:" >&5
2713 cat conftest.$ac_ext >&5
2714 rm -rf conftest*
2715 eval "ac_cv_func_$ac_func=no"
2716 fi
2717 rm -f conftest*
2718 fi
2719
2720 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2721 echo "$ac_t""yes" 1>&6
2722 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2723 cat >> confdefs.h <<EOF
2724 #define $ac_tr_func 1
2725 EOF
2726
2727 else
2728 echo "$ac_t""no" 1>&6
2729 fi
2730 done
2731
2732
2733 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2734 echo "configure:2735: checking for gethostbyname" >&5
2735 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2736 echo $ac_n "(cached) $ac_c" 1>&6
2737 else
2738 cat > conftest.$ac_ext <<EOF
2739 #line 2740 "configure"
2740 #include "confdefs.h"
2741 /* System header to define __stub macros and hopefully few prototypes,
2742 which can conflict with char gethostbyname(); below. */
2743 #include <assert.h>
2744 /* Override any gcc2 internal prototype to avoid an error. */
2745 /* We use char because int might match the return type of a gcc2
2746 builtin and then its argument prototype would still apply. */
2747 char gethostbyname();
2748
2749 int main() {
2750
2751 /* The GNU C library defines this for functions which it implements
2752 to always fail with ENOSYS. Some functions are actually named
2753 something starting with __ and the normal name is an alias. */
2754 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2755 choke me
2756 #else
2757 gethostbyname();
2758 #endif
2759
2760 ; return 0; }
2761 EOF
2762 if { (eval echo configure:2763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2763 rm -rf conftest*
2764 eval "ac_cv_func_gethostbyname=yes"
2765 else
2766 echo "configure: failed program was:" >&5
2767 cat conftest.$ac_ext >&5
2768 rm -rf conftest*
2769 eval "ac_cv_func_gethostbyname=no"
2770 fi
2771 rm -f conftest*
2772 fi
2773
2774 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2775 echo "$ac_t""yes" 1>&6
2776 cat >> confdefs.h <<\EOF
2777 #define HAVE_GETHOSTBYNAME 1
2778 EOF
2779
2780 else
2781 echo "$ac_t""no" 1>&6
2782 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2783 echo "configure:2784: checking for gethostbyname in -lnsl" >&5
2784 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2785 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2786 echo $ac_n "(cached) $ac_c" 1>&6
2787 else
2788 ac_save_LIBS="$LIBS"
2789 LIBS="-lnsl $LIBS"
2790 cat > conftest.$ac_ext <<EOF
2791 #line 2792 "configure"
2792 #include "confdefs.h"
2793 /* Override any gcc2 internal prototype to avoid an error. */
2794 /* We use char because int might match the return type of a gcc2
2795 builtin and then its argument prototype would still apply. */
2796 char gethostbyname();
2797
2798 int main() {
2799 gethostbyname()
2800 ; return 0; }
2801 EOF
2802 if { (eval echo configure:2803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2803 rm -rf conftest*
2804 eval "ac_cv_lib_$ac_lib_var=yes"
2805 else
2806 echo "configure: failed program was:" >&5
2807 cat conftest.$ac_ext >&5
2808 rm -rf conftest*
2809 eval "ac_cv_lib_$ac_lib_var=no"
2810 fi
2811 rm -f conftest*
2812 LIBS="$ac_save_LIBS"
2813
2814 fi
2815 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2816 echo "$ac_t""yes" 1>&6
2817 cat >> confdefs.h <<\EOF
2818 #define HAVE_GETHOSTBYNAME 1
2819 EOF
2820
2821 else
2822 echo "$ac_t""no" 1>&6
2823 fi
2824
2825 fi
2826
2827
2828 echo $ac_n "checking for sigsetjmp""... $ac_c" 1>&6
2829 echo "configure:2830: checking for sigsetjmp" >&5
2830 cat > conftest.$ac_ext <<EOF
2831 #line 2832 "configure"
2832 #include "confdefs.h"
2833 #include <setjmp.h>
2834 int main() {
2835 sigsetjmp((void *)0, 0);
2836 ; return 0; }
2837 EOF
2838 if { (eval echo configure:2839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2839 rm -rf conftest*
2840 cat >> confdefs.h <<\EOF
2841 #define HAVE_SIGSETJMP 1
2842 EOF
2843 echo "$ac_t""yes" 1>&6
2844 else
2845 echo "configure: failed program was:" >&5
2846 cat conftest.$ac_ext >&5
2847 rm -rf conftest*
2848 echo "$ac_t""no" 1>&6
2849 fi
2850 rm -f conftest*
2851
2852 for ac_func in snprintf strerror strdup
2853 do
2854 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2855 echo "configure:2856: checking for $ac_func" >&5
2856 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2857 echo $ac_n "(cached) $ac_c" 1>&6
2858 else
2859 cat > conftest.$ac_ext <<EOF
2860 #line 2861 "configure"
2861 #include "confdefs.h"
2862 /* System header to define __stub macros and hopefully few prototypes,
2863 which can conflict with char $ac_func(); below. */
2864 #include <assert.h>
2865 /* Override any gcc2 internal prototype to avoid an error. */
2866 /* We use char because int might match the return type of a gcc2
2867 builtin and then its argument prototype would still apply. */
2868 char $ac_func();
2869
2870 int main() {
2871
2872 /* The GNU C library defines this for functions which it implements
2873 to always fail with ENOSYS. Some functions are actually named
2874 something starting with __ and the normal name is an alias. */
2875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2876 choke me
2877 #else
2878 $ac_func();
2879 #endif
2880
2881 ; return 0; }
2882 EOF
2883 if { (eval echo configure:2884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2884 rm -rf conftest*
2885 eval "ac_cv_func_$ac_func=yes"
2886 else
2887 echo "configure: failed program was:" >&5
2888 cat conftest.$ac_ext >&5
2889 rm -rf conftest*
2890 eval "ac_cv_func_$ac_func=no"
2891 fi
2892 rm -f conftest*
2893 fi
2894
2895 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2896 echo "$ac_t""yes" 1>&6
2897 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2898 cat >> confdefs.h <<EOF
2899 #define $ac_tr_func 1
2900 EOF
2901
2902 else
2903 echo "$ac_t""no" 1>&6
2904 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
2905 fi
2906 done
2907
2908
2909
2910 cat > conftest.$ac_ext <<EOF
2911 #line 2912 "configure"
2912 #include "confdefs.h"
2913 #include <grp.h>
2914 EOF
2915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2916 egrep "initgroups" >/dev/null 2>&1; then
2917 rm -rf conftest*
2918 cat >> confdefs.h <<\EOF
2919 #define INITGROUPS_HEADER <grp.h>
2920 EOF
2921
2922 else
2923 rm -rf conftest*
2924 cat > conftest.$ac_ext <<EOF
2925 #line 2926 "configure"
2926 #include "confdefs.h"
2927 #include <unistd.h>
2928 EOF
2929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2930 egrep "initgroups" >/dev/null 2>&1; then
2931 rm -rf conftest*
2932 cat >> confdefs.h <<\EOF
2933 #define INITGROUPS_HEADER <unistd.h>
2934 EOF
2935
2936 fi
2937 rm -f conftest*
2938
2939 fi
2940 rm -f conftest*
2941
2942
2943 cat > conftest.$ac_ext <<EOF
2944 #line 2945 "configure"
2945 #include "confdefs.h"
2946 #include <stdio.h>
2947 EOF
2948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2949 egrep "snprintf" >/dev/null 2>&1; then
2950 rm -rf conftest*
2951 cat >> confdefs.h <<\EOF
2952 #define HAVE_SNPRINTF_PROTOTYPE 1
2953 EOF
2954
2955 fi
2956 rm -f conftest*
2957
2958
2959 echo $ac_n "checking for modf""... $ac_c" 1>&6
2960 echo "configure:2961: checking for modf" >&5
2961 if eval "test \"`echo '$''{'ac_cv_func_modf'+set}'`\" = set"; then
2962 echo $ac_n "(cached) $ac_c" 1>&6
2963 else
2964 cat > conftest.$ac_ext <<EOF
2965 #line 2966 "configure"
2966 #include "confdefs.h"
2967 /* System header to define __stub macros and hopefully few prototypes,
2968 which can conflict with char modf(); below. */
2969 #include <assert.h>
2970 /* Override any gcc2 internal prototype to avoid an error. */
2971 /* We use char because int might match the return type of a gcc2
2972 builtin and then its argument prototype would still apply. */
2973 char modf();
2974
2975 int main() {
2976
2977 /* The GNU C library defines this for functions which it implements
2978 to always fail with ENOSYS. Some functions are actually named
2979 something starting with __ and the normal name is an alias. */
2980 #if defined (__stub_modf) || defined (__stub___modf)
2981 choke me
2982 #else
2983 modf();
2984 #endif
2985
2986 ; return 0; }
2987 EOF
2988 if { (eval echo configure:2989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2989 rm -rf conftest*
2990 eval "ac_cv_func_modf=yes"
2991 else
2992 echo "configure: failed program was:" >&5
2993 cat conftest.$ac_ext >&5
2994 rm -rf conftest*
2995 eval "ac_cv_func_modf=no"
2996 fi
2997 rm -f conftest*
2998 fi
2999
3000 if eval "test \"`echo '$ac_cv_func_'modf`\" = yes"; then
3001 echo "$ac_t""yes" 1>&6
3002 :
3003 else
3004 echo "$ac_t""no" 1>&6
3005 echo $ac_n "checking for modf in -lm""... $ac_c" 1>&6
3006 echo "configure:3007: checking for modf in -lm" >&5
3007 ac_lib_var=`echo m'_'modf | sed 'y%./+-%__p_%'`
3008 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3009 echo $ac_n "(cached) $ac_c" 1>&6
3010 else
3011 ac_save_LIBS="$LIBS"
3012 LIBS="-lm $LIBS"
3013 cat > conftest.$ac_ext <<EOF
3014 #line 3015 "configure"
3015 #include "confdefs.h"
3016 /* Override any gcc2 internal prototype to avoid an error. */
3017 /* We use char because int might match the return type of a gcc2
3018 builtin and then its argument prototype would still apply. */
3019 char modf();
3020
3021 int main() {
3022 modf()
3023 ; return 0; }
3024 EOF
3025 if { (eval echo configure:3026: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3026 rm -rf conftest*
3027 eval "ac_cv_lib_$ac_lib_var=yes"
3028 else
3029 echo "configure: failed program was:" >&5
3030 cat conftest.$ac_ext >&5
3031 rm -rf conftest*
3032 eval "ac_cv_lib_$ac_lib_var=no"
3033 fi
3034 rm -f conftest*
3035 LIBS="$ac_save_LIBS"
3036
3037 fi
3038 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3039 echo "$ac_t""yes" 1>&6
3040 ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g' \
3041 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3042 cat >> confdefs.h <<EOF
3043 #define $ac_tr_lib 1
3044 EOF
3045
3046 LIBS="-lm $LIBS"
3047
3048 else
3049 echo "$ac_t""no" 1>&6
3050 fi
3051
3052 fi
3053
3054
3055 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3056 echo "configure:3057: checking for gethostbyname" >&5
3057 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3058 echo $ac_n "(cached) $ac_c" 1>&6
3059 else
3060 cat > conftest.$ac_ext <<EOF
3061 #line 3062 "configure"
3062 #include "confdefs.h"
3063 /* System header to define __stub macros and hopefully few prototypes,
3064 which can conflict with char gethostbyname(); below. */
3065 #include <assert.h>
3066 /* Override any gcc2 internal prototype to avoid an error. */
3067 /* We use char because int might match the return type of a gcc2
3068 builtin and then its argument prototype would still apply. */
3069 char gethostbyname();
3070
3071 int main() {
3072
3073 /* The GNU C library defines this for functions which it implements
3074 to always fail with ENOSYS. Some functions are actually named
3075 something starting with __ and the normal name is an alias. */
3076 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3077 choke me
3078 #else
3079 gethostbyname();
3080 #endif
3081
3082 ; return 0; }
3083 EOF
3084 if { (eval echo configure:3085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3085 rm -rf conftest*
3086 eval "ac_cv_func_gethostbyname=yes"
3087 else
3088 echo "configure: failed program was:" >&5
3089 cat conftest.$ac_ext >&5
3090 rm -rf conftest*
3091 eval "ac_cv_func_gethostbyname=no"
3092 fi
3093 rm -f conftest*
3094 fi
3095
3096 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3097 echo "$ac_t""yes" 1>&6
3098 :
3099 else
3100 echo "$ac_t""no" 1>&6
3101 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3102 echo "configure:3103: checking for gethostbyname in -lnsl" >&5
3103 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3104 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3105 echo $ac_n "(cached) $ac_c" 1>&6
3106 else
3107 ac_save_LIBS="$LIBS"
3108 LIBS="-lnsl $LIBS"
3109 cat > conftest.$ac_ext <<EOF
3110 #line 3111 "configure"
3111 #include "confdefs.h"
3112 /* Override any gcc2 internal prototype to avoid an error. */
3113 /* We use char because int might match the return type of a gcc2
3114 builtin and then its argument prototype would still apply. */
3115 char gethostbyname();
3116
3117 int main() {
3118 gethostbyname()
3119 ; return 0; }
3120 EOF
3121 if { (eval echo configure:3122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3122 rm -rf conftest*
3123 eval "ac_cv_lib_$ac_lib_var=yes"
3124 else
3125 echo "configure: failed program was:" >&5
3126 cat conftest.$ac_ext >&5
3127 rm -rf conftest*
3128 eval "ac_cv_lib_$ac_lib_var=no"
3129 fi
3130 rm -f conftest*
3131 LIBS="$ac_save_LIBS"
3132
3133 fi
3134 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3135 echo "$ac_t""yes" 1>&6
3136 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
3137 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3138 cat >> confdefs.h <<EOF
3139 #define $ac_tr_lib 1
3140 EOF
3141
3142 LIBS="-lnsl $LIBS"
3143
3144 else
3145 echo "$ac_t""no" 1>&6
3146 echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6
3147 echo "configure:3148: checking for gethostbyname in -lresolv" >&5
3148 ac_lib_var=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'`
3149 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3150 echo $ac_n "(cached) $ac_c" 1>&6
3151 else
3152 ac_save_LIBS="$LIBS"
3153 LIBS="-lresolv $LIBS"
3154 cat > conftest.$ac_ext <<EOF
3155 #line 3156 "configure"
3156 #include "confdefs.h"
3157 /* Override any gcc2 internal prototype to avoid an error. */
3158 /* We use char because int might match the return type of a gcc2
3159 builtin and then its argument prototype would still apply. */
3160 char gethostbyname();
3161
3162 int main() {
3163 gethostbyname()
3164 ; return 0; }
3165 EOF
3166 if { (eval echo configure:3167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3167 rm -rf conftest*
3168 eval "ac_cv_lib_$ac_lib_var=yes"
3169 else
3170 echo "configure: failed program was:" >&5
3171 cat conftest.$ac_ext >&5
3172 rm -rf conftest*
3173 eval "ac_cv_lib_$ac_lib_var=no"
3174 fi
3175 rm -f conftest*
3176 LIBS="$ac_save_LIBS"
3177
3178 fi
3179 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3180 echo "$ac_t""yes" 1>&6
3181 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
3182 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3183 cat >> confdefs.h <<EOF
3184 #define $ac_tr_lib 1
3185 EOF
3186
3187 LIBS="-lresolv $LIBS"
3188
3189 else
3190 echo "$ac_t""no" 1>&6
3191 fi
3192
3193 fi
3194
3195 fi
3196
3197 echo $ac_n "checking for socket""... $ac_c" 1>&6
3198 echo "configure:3199: checking for socket" >&5
3199 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
3200 echo $ac_n "(cached) $ac_c" 1>&6
3201 else
3202 cat > conftest.$ac_ext <<EOF
3203 #line 3204 "configure"
3204 #include "confdefs.h"
3205 /* System header to define __stub macros and hopefully few prototypes,
3206 which can conflict with char socket(); below. */
3207 #include <assert.h>
3208 /* Override any gcc2 internal prototype to avoid an error. */
3209 /* We use char because int might match the return type of a gcc2
3210 builtin and then its argument prototype would still apply. */
3211 char socket();
3212
3213 int main() {
3214
3215 /* The GNU C library defines this for functions which it implements
3216 to always fail with ENOSYS. Some functions are actually named
3217 something starting with __ and the normal name is an alias. */
3218 #if defined (__stub_socket) || defined (__stub___socket)
3219 choke me
3220 #else
3221 socket();
3222 #endif
3223
3224 ; return 0; }
3225 EOF
3226 if { (eval echo configure:3227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3227 rm -rf conftest*
3228 eval "ac_cv_func_socket=yes"
3229 else
3230 echo "configure: failed program was:" >&5
3231 cat conftest.$ac_ext >&5
3232 rm -rf conftest*
3233 eval "ac_cv_func_socket=no"
3234 fi
3235 rm -f conftest*
3236 fi
3237
3238 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
3239 echo "$ac_t""yes" 1>&6
3240 :
3241 else
3242 echo "$ac_t""no" 1>&6
3243 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
3244 echo "configure:3245: checking for socket in -lsocket" >&5
3245 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
3246 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3247 echo $ac_n "(cached) $ac_c" 1>&6
3248 else
3249 ac_save_LIBS="$LIBS"
3250 LIBS="-lsocket $LIBS"
3251 cat > conftest.$ac_ext <<EOF
3252 #line 3253 "configure"
3253 #include "confdefs.h"
3254 /* Override any gcc2 internal prototype to avoid an error. */
3255 /* We use char because int might match the return type of a gcc2
3256 builtin and then its argument prototype would still apply. */
3257 char socket();
3258
3259 int main() {
3260 socket()
3261 ; return 0; }
3262 EOF
3263 if { (eval echo configure:3264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3264 rm -rf conftest*
3265 eval "ac_cv_lib_$ac_lib_var=yes"
3266 else
3267 echo "configure: failed program was:" >&5
3268 cat conftest.$ac_ext >&5
3269 rm -rf conftest*
3270 eval "ac_cv_lib_$ac_lib_var=no"
3271 fi
3272 rm -f conftest*
3273 LIBS="$ac_save_LIBS"
3274
3275 fi
3276 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3277 echo "$ac_t""yes" 1>&6
3278 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
3279 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3280 cat >> confdefs.h <<EOF
3281 #define $ac_tr_lib 1
3282 EOF
3283
3284 LIBS="-lsocket $LIBS"
3285
3286 else
3287 echo "$ac_t""no" 1>&6
3288 fi
3289
3290 fi
3291
3292
3293
3294 echo $ac_n "checking for ruserpass""... $ac_c" 1>&6
3295 echo "configure:3296: checking for ruserpass" >&5
3296 if eval "test \"`echo '$''{'ac_cv_func_ruserpass'+set}'`\" = set"; then
3297 echo $ac_n "(cached) $ac_c" 1>&6
3298 else
3299 cat > conftest.$ac_ext <<EOF
3300 #line 3301 "configure"
3301 #include "confdefs.h"
3302 /* System header to define __stub macros and hopefully few prototypes,
3303 which can conflict with char ruserpass(); below. */
3304 #include <assert.h>
3305 /* Override any gcc2 internal prototype to avoid an error. */
3306 /* We use char because int might match the return type of a gcc2
3307 builtin and then its argument prototype would still apply. */
3308 char ruserpass();
3309
3310 int main() {
3311
3312 /* The GNU C library defines this for functions which it implements
3313 to always fail with ENOSYS. Some functions are actually named
3314 something starting with __ and the normal name is an alias. */
3315 #if defined (__stub_ruserpass) || defined (__stub___ruserpass)
3316 choke me
3317 #else
3318 ruserpass();
3319 #endif
3320
3321 ; return 0; }
3322 EOF
3323 if { (eval echo configure:3324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3324 rm -rf conftest*
3325 eval "ac_cv_func_ruserpass=yes"
3326 else
3327 echo "configure: failed program was:" >&5
3328 cat conftest.$ac_ext >&5
3329 rm -rf conftest*
3330 eval "ac_cv_func_ruserpass=no"
3331 fi
3332 rm -f conftest*
3333 fi
3334
3335 if eval "test \"`echo '$ac_cv_func_'ruserpass`\" = yes"; then
3336 echo "$ac_t""yes" 1>&6
3337 :
3338 else
3339 echo "$ac_t""no" 1>&6
3340 echo $ac_n "checking for _ruserpass""... $ac_c" 1>&6
3341 echo "configure:3342: checking for _ruserpass" >&5
3342 if eval "test \"`echo '$''{'ac_cv_func__ruserpass'+set}'`\" = set"; then
3343 echo $ac_n "(cached) $ac_c" 1>&6
3344 else
3345 cat > conftest.$ac_ext <<EOF
3346 #line 3347 "configure"
3347 #include "confdefs.h"
3348 /* System header to define __stub macros and hopefully few prototypes,
3349 which can conflict with char _ruserpass(); below. */
3350 #include <assert.h>
3351 /* Override any gcc2 internal prototype to avoid an error. */
3352 /* We use char because int might match the return type of a gcc2
3353 builtin and then its argument prototype would still apply. */
3354 char _ruserpass();
3355
3356 int main() {
3357
3358 /* The GNU C library defines this for functions which it implements
3359 to always fail with ENOSYS. Some functions are actually named
3360 something starting with __ and the normal name is an alias. */
3361 #if defined (__stub__ruserpass) || defined (__stub____ruserpass)
3362 choke me
3363 #else
3364 _ruserpass();
3365 #endif
3366
3367 ; return 0; }
3368 EOF
3369 if { (eval echo configure:3370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3370 rm -rf conftest*
3371 eval "ac_cv_func__ruserpass=yes"
3372 else
3373 echo "configure: failed program was:" >&5
3374 cat conftest.$ac_ext >&5
3375 rm -rf conftest*
3376 eval "ac_cv_func__ruserpass=no"
3377 fi
3378 rm -f conftest*
3379 fi
3380
3381 if eval "test \"`echo '$ac_cv_func_'_ruserpass`\" = yes"; then
3382 echo "$ac_t""yes" 1>&6
3383 :
3384 else
3385 echo "$ac_t""no" 1>&6
3386 echo $ac_n "checking for _ruserpass in -lsocket""... $ac_c" 1>&6
3387 echo "configure:3388: checking for _ruserpass in -lsocket" >&5
3388 ac_lib_var=`echo socket'_'_ruserpass | sed 'y%./+-%__p_%'`
3389 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3390 echo $ac_n "(cached) $ac_c" 1>&6
3391 else
3392 ac_save_LIBS="$LIBS"
3393 LIBS="-lsocket $LIBS"
3394 cat > conftest.$ac_ext <<EOF
3395 #line 3396 "configure"
3396 #include "confdefs.h"
3397 /* Override any gcc2 internal prototype to avoid an error. */
3398 /* We use char because int might match the return type of a gcc2
3399 builtin and then its argument prototype would still apply. */
3400 char _ruserpass();
3401
3402 int main() {
3403 _ruserpass()
3404 ; return 0; }
3405 EOF
3406 if { (eval echo configure:3407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3407 rm -rf conftest*
3408 eval "ac_cv_lib_$ac_lib_var=yes"
3409 else
3410 echo "configure: failed program was:" >&5
3411 cat conftest.$ac_ext >&5
3412 rm -rf conftest*
3413 eval "ac_cv_lib_$ac_lib_var=no"
3414 fi
3415 rm -f conftest*
3416 LIBS="$ac_save_LIBS"
3417
3418 fi
3419 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3420 echo "$ac_t""yes" 1>&6
3421 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
3422 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3423 cat >> confdefs.h <<EOF
3424 #define $ac_tr_lib 1
3425 EOF
3426
3427 LIBS="-lsocket $LIBS"
3428
3429 else
3430 echo "$ac_t""no" 1>&6
3431 fi
3432
3433 fi
3434
3435 fi
3436
3437 if test x$ac_cv_func_ruserpass = xno; then
3438 if test x$ac_cv_func__ruserpass = xyes -o x$ac_cv_lib_socket__ruserpass = xyes; then
3439 cat >> confdefs.h <<\EOF
3440 #define ruserpass _ruserpass
3441 EOF
3442
3443 else
3444 LIBOBJS="$LIBOBJS ruserpass.o"
3445 fi
3446 fi
3447
3448
3449 termcap_curses_order="termcap curses ncurses"
3450 for lib in $termcap_curses_order; do
3451 echo $ac_n "checking for tgetent in -l${lib}""... $ac_c" 1>&6
3452 echo "configure:3453: checking for tgetent in -l${lib}" >&5
3453 ac_lib_var=`echo ${lib}'_'tgetent | sed 'y%./+-%__p_%'`
3454 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3455 echo $ac_n "(cached) $ac_c" 1>&6
3456 else
3457 ac_save_LIBS="$LIBS"
3458 LIBS="-l${lib} $LIBS"
3459 cat > conftest.$ac_ext <<EOF
3460 #line 3461 "configure"
3461 #include "confdefs.h"
3462 /* Override any gcc2 internal prototype to avoid an error. */
3463 /* We use char because int might match the return type of a gcc2
3464 builtin and then its argument prototype would still apply. */
3465 char tgetent();
3466
3467 int main() {
3468 tgetent()
3469 ; return 0; }
3470 EOF
3471 if { (eval echo configure:3472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3472 rm -rf conftest*
3473 eval "ac_cv_lib_$ac_lib_var=yes"
3474 else
3475 echo "configure: failed program was:" >&5
3476 cat conftest.$ac_ext >&5
3477 rm -rf conftest*
3478 eval "ac_cv_lib_$ac_lib_var=no"
3479 fi
3480 rm -f conftest*
3481 LIBS="$ac_save_LIBS"
3482
3483 fi
3484 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3485 echo "$ac_t""yes" 1>&6
3486 TERMLIB="-l$lib"; break
3487 else
3488 echo "$ac_t""no" 1>&6
3489 fi
3490
3491 done
3492
3493
3494 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
3495 echo "configure:3496: checking for dbm_open" >&5
3496 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
3497 echo $ac_n "(cached) $ac_c" 1>&6
3498 else
3499 cat > conftest.$ac_ext <<EOF
3500 #line 3501 "configure"
3501 #include "confdefs.h"
3502 /* System header to define __stub macros and hopefully few prototypes,
3503 which can conflict with char dbm_open(); below. */
3504 #include <assert.h>
3505 /* Override any gcc2 internal prototype to avoid an error. */
3506 /* We use char because int might match the return type of a gcc2
3507 builtin and then its argument prototype would still apply. */
3508 char dbm_open();
3509
3510 int main() {
3511
3512 /* The GNU C library defines this for functions which it implements
3513 to always fail with ENOSYS. Some functions are actually named
3514 something starting with __ and the normal name is an alias. */
3515 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
3516 choke me
3517 #else
3518 dbm_open();
3519 #endif
3520
3521 ; return 0; }
3522 EOF
3523 if { (eval echo configure:3524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3524 rm -rf conftest*
3525 eval "ac_cv_func_dbm_open=yes"
3526 else
3527 echo "configure: failed program was:" >&5
3528 cat conftest.$ac_ext >&5
3529 rm -rf conftest*
3530 eval "ac_cv_func_dbm_open=no"
3531 fi
3532 rm -f conftest*
3533 fi
3534
3535 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
3536 echo "$ac_t""yes" 1>&6
3537 :
3538 else
3539 echo "$ac_t""no" 1>&6
3540 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
3541 echo "configure:3542: checking for dbm_open in -lndbm" >&5
3542 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
3543 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3544 echo $ac_n "(cached) $ac_c" 1>&6
3545 else
3546 ac_save_LIBS="$LIBS"
3547 LIBS="-lndbm $LIBS"
3548 cat > conftest.$ac_ext <<EOF
3549 #line 3550 "configure"
3550 #include "confdefs.h"
3551 /* Override any gcc2 internal prototype to avoid an error. */
3552 /* We use char because int might match the return type of a gcc2
3553 builtin and then its argument prototype would still apply. */
3554 char dbm_open();
3555
3556 int main() {
3557 dbm_open()
3558 ; return 0; }
3559 EOF
3560 if { (eval echo configure:3561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3561 rm -rf conftest*
3562 eval "ac_cv_lib_$ac_lib_var=yes"
3563 else
3564 echo "configure: failed program was:" >&5
3565 cat conftest.$ac_ext >&5
3566 rm -rf conftest*
3567 eval "ac_cv_lib_$ac_lib_var=no"
3568 fi
3569 rm -f conftest*
3570 LIBS="$ac_save_LIBS"
3571
3572 fi
3573 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3574 echo "$ac_t""yes" 1>&6
3575 ac_tr_lib=HAVE_LIB`echo ndbm | sed -e 's/^a-zA-Z0-9_/_/g' \
3576 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3577 cat >> confdefs.h <<EOF
3578 #define $ac_tr_lib 1
3579 EOF
3580
3581 LIBS="-lndbm $LIBS"
3582
3583 else
3584 echo "$ac_t""no" 1>&6
3585 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
3586 echo "configure:3587: checking for dbm_open in -ldbm" >&5
3587 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
3588 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3589 echo $ac_n "(cached) $ac_c" 1>&6
3590 else
3591 ac_save_LIBS="$LIBS"
3592 LIBS="-ldbm $LIBS"
3593 cat > conftest.$ac_ext <<EOF
3594 #line 3595 "configure"
3595 #include "confdefs.h"
3596 /* Override any gcc2 internal prototype to avoid an error. */
3597 /* We use char because int might match the return type of a gcc2
3598 builtin and then its argument prototype would still apply. */
3599 char dbm_open();
3600
3601 int main() {
3602 dbm_open()
3603 ; return 0; }
3604 EOF
3605 if { (eval echo configure:3606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3606 rm -rf conftest*
3607 eval "ac_cv_lib_$ac_lib_var=yes"
3608 else
3609 echo "configure: failed program was:" >&5
3610 cat conftest.$ac_ext >&5
3611 rm -rf conftest*
3612 eval "ac_cv_lib_$ac_lib_var=no"
3613 fi
3614 rm -f conftest*
3615 LIBS="$ac_save_LIBS"
3616
3617 fi
3618 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3619 echo "$ac_t""yes" 1>&6
3620 ac_tr_lib=HAVE_LIB`echo dbm | sed -e 's/^a-zA-Z0-9_/_/g' \
3621 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3622 cat >> confdefs.h <<EOF
3623 #define $ac_tr_lib 1
3624 EOF
3625
3626 LIBS="-ldbm $LIBS"
3627
3628 else
3629 echo "$ac_t""no" 1>&6
3630 fi
3631
3632 fi
3633
3634 fi
3635
3636
3637 for ac_hdr in db1/ndbm.h
3638 do
3639 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3640 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3641 echo "configure:3642: checking for $ac_hdr" >&5
3642 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3643 echo $ac_n "(cached) $ac_c" 1>&6
3644 else
3645 cat > conftest.$ac_ext <<EOF
3646 #line 3647 "configure"
3647 #include "confdefs.h"
3648 #include <$ac_hdr>
3649 EOF
3650 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3651 { (eval echo configure:3652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3652 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3653 if test -z "$ac_err"; then
3654 rm -rf conftest*
3655 eval "ac_cv_header_$ac_safe=yes"
3656 else
3657 echo "$ac_err" >&5
3658 echo "configure: failed program was:" >&5
3659 cat conftest.$ac_ext >&5
3660 rm -rf conftest*
3661 eval "ac_cv_header_$ac_safe=no"
3662 fi
3663 rm -f conftest*
3664 fi
3665 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3666 echo "$ac_t""yes" 1>&6
3667 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3668 cat >> confdefs.h <<EOF
3669 #define $ac_tr_hdr 1
3670 EOF
3671
3672 else
3673 echo "$ac_t""no" 1>&6
3674 fi
3675 done
3676
3677
3678 if test x$with_hesiod != x -a x$with_hesiod != xno; then
3679 if test x$with_hesiod != xyes; then
3680 HESIOD_INCLUDES="-I$with_hesiod/include"
3681 HESIOD_LIBS="-L$with_hesiod/lib"
3682 fi
3683 echo $ac_n "checking for res_send""... $ac_c" 1>&6
3684 echo "configure:3685: checking for res_send" >&5
3685 if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then
3686 echo $ac_n "(cached) $ac_c" 1>&6
3687 else
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 res_send(); below. */
3693 #include <assert.h>
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. */
3697 char res_send();
3698
3699 int main() {
3700
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_res_send) || defined (__stub___res_send)
3705 choke me
3706 #else
3707 res_send();
3708 #endif
3709
3710 ; return 0; }
3711 EOF
3712 if { (eval echo configure:3713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3713 rm -rf conftest*
3714 eval "ac_cv_func_res_send=yes"
3715 else
3716 echo "configure: failed program was:" >&5
3717 cat conftest.$ac_ext >&5
3718 rm -rf conftest*
3719 eval "ac_cv_func_res_send=no"
3720 fi
3721 rm -f conftest*
3722 fi
3723
3724 if eval "test \"`echo '$ac_cv_func_'res_send`\" = yes"; then
3725 echo "$ac_t""yes" 1>&6
3726 :
3727 else
3728 echo "$ac_t""no" 1>&6
3729 echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6
3730 echo "configure:3731: checking for res_send in -lresolv" >&5
3731 ac_lib_var=`echo resolv'_'res_send | 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
3734 else
3735 ac_save_LIBS="$LIBS"
3736 LIBS="-lresolv $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. */
3743 char res_send();
3744
3745 int main() {
3746 res_send()
3747 ; return 0; }
3748 EOF
3749 if { (eval echo configure:3750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3750 rm -rf conftest*
3751 eval "ac_cv_lib_$ac_lib_var=yes"
3752 else
3753 echo "configure: failed program was:" >&5
3754 cat conftest.$ac_ext >&5
3755 rm -rf conftest*
3756 eval "ac_cv_lib_$ac_lib_var=no"
3757 fi
3758 rm -f conftest*
3759 LIBS="$ac_save_LIBS"
3760
3761 fi
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 resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
3765 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3766 cat >> confdefs.h <<EOF
3767 #define $ac_tr_lib 1
3768 EOF
3769
3770 LIBS="-lresolv $LIBS"
3771
3772 else
3773 echo "$ac_t""no" 1>&6
3774 fi
3775
3776 fi
3777
3778 echo $ac_n "checking for hes_resolve in -lhesiod""... $ac_c" 1>&6
3779 echo "configure:3780: checking for hes_resolve in -lhesiod" >&5
3780 ac_lib_var=`echo hesiod'_'hes_resolve | sed 'y%./+-%__p_%'`
3781 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3782 echo $ac_n "(cached) $ac_c" 1>&6
3783 else
3784 ac_save_LIBS="$LIBS"
3785 LIBS="-lhesiod $HESIOD_LIBS $LIBS"
3786 cat > conftest.$ac_ext <<EOF
3787 #line 3788 "configure"
3788 #include "confdefs.h"
3789 /* Override any gcc2 internal prototype to avoid an error. */
3790 /* We use char because int might match the return type of a gcc2
3791 builtin and then its argument prototype would still apply. */
3792 char hes_resolve();
3793
3794 int main() {
3795 hes_resolve()
3796 ; return 0; }
3797 EOF
3798 if { (eval echo configure:3799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3799 rm -rf conftest*
3800 eval "ac_cv_lib_$ac_lib_var=yes"
3801 else
3802 echo "configure: failed program was:" >&5
3803 cat conftest.$ac_ext >&5
3804 rm -rf conftest*
3805 eval "ac_cv_lib_$ac_lib_var=no"
3806 fi
3807 rm -f conftest*
3808 LIBS="$ac_save_LIBS"
3809
3810 fi
3811 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3812 echo "$ac_t""yes" 1>&6
3813 HESIOD_LIBS="$HESIOD_LIBS -lhesiod"
3814 else
3815 echo "$ac_t""no" 1>&6
3816 { echo "configure: error: Hesiod library not found" 1>&2; exit 1; }
3817 fi
3818
3819 fi
3820
3821 if test x$with_krb4 != x -a x$with_krb4 != xno; then
3822 if test x$with_krb4 != xyes; then
3823 KRB4_INCLUDES="-I$with_krb4/include"
3824 if test -d "$with_krb4/include/kerberosIV"; then
3825 KRB4_INCLUDES="$KRB4_INCLUDES -I$with_krb4/include/kerberosIV"
3826 fi
3827 KRB4_LIBS="-L$with_krb4/lib"
3828 elif test -d /usr/include/kerberosIV; then
3829 KRB4_INCLUDES="-I/usr/include/kerberosIV"
3830 fi
3831 echo $ac_n "checking for krb_rd_req in -lkrb4""... $ac_c" 1>&6
3832 echo "configure:3833: checking for krb_rd_req in -lkrb4" >&5
3833 ac_lib_var=`echo krb4'_'krb_rd_req | sed 'y%./+-%__p_%'`
3834 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3835 echo $ac_n "(cached) $ac_c" 1>&6
3836 else
3837 ac_save_LIBS="$LIBS"
3838 LIBS="-lkrb4 $KRB4_LIBS -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
3839 cat > conftest.$ac_ext <<EOF
3840 #line 3841 "configure"
3841 #include "confdefs.h"
3842 /* Override any gcc2 internal prototype to avoid an error. */
3843 /* We use char because int might match the return type of a gcc2
3844 builtin and then its argument prototype would still apply. */
3845 char krb_rd_req();
3846
3847 int main() {
3848 krb_rd_req()
3849 ; return 0; }
3850 EOF
3851 if { (eval echo configure:3852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3852 rm -rf conftest*
3853 eval "ac_cv_lib_$ac_lib_var=yes"
3854 else
3855 echo "configure: failed program was:" >&5
3856 cat conftest.$ac_ext >&5
3857 rm -rf conftest*
3858 eval "ac_cv_lib_$ac_lib_var=no"
3859 fi
3860 rm -f conftest*
3861 LIBS="$ac_save_LIBS"
3862
3863 fi
3864 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3865 echo "$ac_t""yes" 1>&6
3866 KRB4_LIBS="$KRB4_LIBS -lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err"
3867 else
3868 echo "$ac_t""no" 1>&6
3869 echo $ac_n "checking for krb_rd_req in -lkrb""... $ac_c" 1>&6
3870 echo "configure:3871: checking for krb_rd_req in -lkrb" >&5
3871 ac_lib_var=`echo krb'_'krb_rd_req | sed 'y%./+-%__p_%'`
3872 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3873 echo $ac_n "(cached) $ac_c" 1>&6
3874 else
3875 ac_save_LIBS="$LIBS"
3876 LIBS="-lkrb $KRB4_LIBS -ldes $LIBS"
3877 cat > conftest.$ac_ext <<EOF
3878 #line 3879 "configure"
3879 #include "confdefs.h"
3880 /* Override any gcc2 internal prototype to avoid an error. */
3881 /* We use char because int might match the return type of a gcc2
3882 builtin and then its argument prototype would still apply. */
3883 char krb_rd_req();
3884
3885 int main() {
3886 krb_rd_req()
3887 ; return 0; }
3888 EOF
3889 if { (eval echo configure:3890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3890 rm -rf conftest*
3891 eval "ac_cv_lib_$ac_lib_var=yes"
3892 else
3893 echo "configure: failed program was:" >&5
3894 cat conftest.$ac_ext >&5
3895 rm -rf conftest*
3896 eval "ac_cv_lib_$ac_lib_var=no"
3897 fi
3898 rm -f conftest*
3899 LIBS="$ac_save_LIBS"
3900
3901 fi
3902 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3903 echo "$ac_t""yes" 1>&6
3904 KRB4_LIBS="$KRB4_LIBS -lkrb -ldes"
3905 else
3906 echo "$ac_t""no" 1>&6
3907 { echo "configure: error: Kerberos 4 libraries not found" 1>&2; exit 1; }
3908 fi
3909
3910 fi
3911
3912 fi
3913
3914
3915 nmh_save_LIBS="$LIBS"
3916 LIBS="$TERMLIB $LIBS"
3917
3918 echo $ac_n "checking if an include file defines ospeed""... $ac_c" 1>&6
3919 echo "configure:3920: checking if an include file defines ospeed" >&5
3920 if eval "test \"`echo '$''{'nmh_cv_decl_ospeed_include_defines'+set}'`\" = set"; then
3921 echo $ac_n "(cached) $ac_c" 1>&6
3922 else
3923 cat > conftest.$ac_ext <<EOF
3924 #line 3925 "configure"
3925 #include "confdefs.h"
3926 #include <sys/types.h>
3927 #if HAVE_TERMIOS_H
3928 #include <termios.h>
3929 #endif
3930 #if HAVE_TERMCAP_H
3931 #include <termcap.h>
3932 #endif
3933 int main() {
3934 ospeed = 0;
3935 ; return 0; }
3936 EOF
3937 if { (eval echo configure:3938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3938 rm -rf conftest*
3939 nmh_cv_decl_ospeed_include_defines=yes
3940 else
3941 echo "configure: failed program was:" >&5
3942 cat conftest.$ac_ext >&5
3943 rm -rf conftest*
3944 nmh_cv_decl_ospeed_include_defines=no
3945 fi
3946 rm -f conftest*
3947 fi
3948
3949 echo "$ac_t""$nmh_cv_decl_ospeed_include_defines" 1>&6
3950
3951 if test $nmh_cv_decl_ospeed_include_defines = no; then
3952 echo $ac_n "checking if you must define ospeed""... $ac_c" 1>&6
3953 echo "configure:3954: checking if you must define ospeed" >&5
3954 if eval "test \"`echo '$''{'nmh_cv_decl_ospeed_must_define'+set}'`\" = set"; then
3955 echo $ac_n "(cached) $ac_c" 1>&6
3956 else
3957 cat > conftest.$ac_ext <<EOF
3958 #line 3959 "configure"
3959 #include "confdefs.h"
3960
3961 int main() {
3962 extern short ospeed; ospeed = 0;
3963 ; return 0; }
3964 EOF
3965 if { (eval echo configure:3966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3966 rm -rf conftest*
3967 nmh_cv_decl_ospeed_must_define=yes
3968 else
3969 echo "configure: failed program was:" >&5
3970 cat conftest.$ac_ext >&5
3971 rm -rf conftest*
3972 nmh_cv_decl_ospeed_must_define=no
3973 fi
3974 rm -f conftest*
3975 fi
3976
3977 echo "$ac_t""$nmh_cv_decl_ospeed_must_define" 1>&6
3978 fi
3979
3980 if test $nmh_cv_decl_ospeed_include_defines = yes; then
3981 cat >> confdefs.h <<\EOF
3982 #define HAVE_OSPEED 1
3983 EOF
3984
3985 elif test $nmh_cv_decl_ospeed_must_define = yes; then
3986 cat >> confdefs.h <<\EOF
3987 #define HAVE_OSPEED 1
3988 EOF
3989
3990 cat >> confdefs.h <<\EOF
3991 #define MUST_DEFINE_OSPEED 1
3992 EOF
3993
3994 fi
3995
3996
3997 LIBS="$nmh_save_LIBS"
3998
3999 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
4000 echo "configure:4001: checking return type of signal handlers" >&5
4001 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
4002 echo $ac_n "(cached) $ac_c" 1>&6
4003 else
4004 cat > conftest.$ac_ext <<EOF
4005 #line 4006 "configure"
4006 #include "confdefs.h"
4007 #include <sys/types.h>
4008 #include <signal.h>
4009 #ifdef signal
4010 #undef signal
4011 #endif
4012 #ifdef __cplusplus
4013 extern "C" void (*signal (int, void (*)(int)))(int);
4014 #else
4015 void (*signal ()) ();
4016 #endif
4017
4018 int main() {
4019 int i;
4020 ; return 0; }
4021 EOF
4022 if { (eval echo configure:4023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4023 rm -rf conftest*
4024 ac_cv_type_signal=void
4025 else
4026 echo "configure: failed program was:" >&5
4027 cat conftest.$ac_ext >&5
4028 rm -rf conftest*
4029 ac_cv_type_signal=int
4030 fi
4031 rm -f conftest*
4032 fi
4033
4034 echo "$ac_t""$ac_cv_type_signal" 1>&6
4035 cat >> confdefs.h <<EOF
4036 #define RETSIGTYPE $ac_cv_type_signal
4037 EOF
4038
4039
4040 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
4041 echo "configure:4042: checking for pid_t" >&5
4042 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
4043 echo $ac_n "(cached) $ac_c" 1>&6
4044 else
4045 cat > conftest.$ac_ext <<EOF
4046 #line 4047 "configure"
4047 #include "confdefs.h"
4048 #include <sys/types.h>
4049 #if STDC_HEADERS
4050 #include <stdlib.h>
4051 #include <stddef.h>
4052 #endif
4053 EOF
4054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4055 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4056 rm -rf conftest*
4057 ac_cv_type_pid_t=yes
4058 else
4059 rm -rf conftest*
4060 ac_cv_type_pid_t=no
4061 fi
4062 rm -f conftest*
4063
4064 fi
4065 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
4066 if test $ac_cv_type_pid_t = no; then
4067 cat >> confdefs.h <<\EOF
4068 #define pid_t int
4069 EOF
4070
4071 fi
4072
4073 echo $ac_n "checking for off_t""... $ac_c" 1>&6
4074 echo "configure:4075: checking for off_t" >&5
4075 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
4076 echo $ac_n "(cached) $ac_c" 1>&6
4077 else
4078 cat > conftest.$ac_ext <<EOF
4079 #line 4080 "configure"
4080 #include "confdefs.h"
4081 #include <sys/types.h>
4082 #if STDC_HEADERS
4083 #include <stdlib.h>
4084 #include <stddef.h>
4085 #endif
4086 EOF
4087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4088 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4089 rm -rf conftest*
4090 ac_cv_type_off_t=yes
4091 else
4092 rm -rf conftest*
4093 ac_cv_type_off_t=no
4094 fi
4095 rm -f conftest*
4096
4097 fi
4098 echo "$ac_t""$ac_cv_type_off_t" 1>&6
4099 if test $ac_cv_type_off_t = no; then
4100 cat >> confdefs.h <<\EOF
4101 #define off_t long
4102 EOF
4103
4104 fi
4105
4106 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
4107 echo "configure:4108: checking for uid_t in sys/types.h" >&5
4108 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
4109 echo $ac_n "(cached) $ac_c" 1>&6
4110 else
4111 cat > conftest.$ac_ext <<EOF
4112 #line 4113 "configure"
4113 #include "confdefs.h"
4114 #include <sys/types.h>
4115 EOF
4116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4117 egrep "uid_t" >/dev/null 2>&1; then
4118 rm -rf conftest*
4119 ac_cv_type_uid_t=yes
4120 else
4121 rm -rf conftest*
4122 ac_cv_type_uid_t=no
4123 fi
4124 rm -f conftest*
4125
4126 fi
4127
4128 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
4129 if test $ac_cv_type_uid_t = no; then
4130 cat >> confdefs.h <<\EOF
4131 #define uid_t int
4132 EOF
4133
4134 cat >> confdefs.h <<\EOF
4135 #define gid_t int
4136 EOF
4137
4138 fi
4139
4140 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
4141 echo "configure:4142: checking for mode_t" >&5
4142 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
4143 echo $ac_n "(cached) $ac_c" 1>&6
4144 else
4145 cat > conftest.$ac_ext <<EOF
4146 #line 4147 "configure"
4147 #include "confdefs.h"
4148 #include <sys/types.h>
4149 #if STDC_HEADERS
4150 #include <stdlib.h>
4151 #include <stddef.h>
4152 #endif
4153 EOF
4154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4155 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4156 rm -rf conftest*
4157 ac_cv_type_mode_t=yes
4158 else
4159 rm -rf conftest*
4160 ac_cv_type_mode_t=no
4161 fi
4162 rm -f conftest*
4163
4164 fi
4165 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
4166 if test $ac_cv_type_mode_t = no; then
4167 cat >> confdefs.h <<\EOF
4168 #define mode_t int
4169 EOF
4170
4171 fi
4172
4173 echo $ac_n "checking for size_t""... $ac_c" 1>&6
4174 echo "configure:4175: checking for size_t" >&5
4175 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
4176 echo $ac_n "(cached) $ac_c" 1>&6
4177 else
4178 cat > conftest.$ac_ext <<EOF
4179 #line 4180 "configure"
4180 #include "confdefs.h"
4181 #include <sys/types.h>
4182 #if STDC_HEADERS
4183 #include <stdlib.h>
4184 #include <stddef.h>
4185 #endif
4186 EOF
4187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4188 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4189 rm -rf conftest*
4190 ac_cv_type_size_t=yes
4191 else
4192 rm -rf conftest*
4193 ac_cv_type_size_t=no
4194 fi
4195 rm -f conftest*
4196
4197 fi
4198 echo "$ac_t""$ac_cv_type_size_t" 1>&6
4199 if test $ac_cv_type_size_t = no; then
4200 cat >> confdefs.h <<\EOF
4201 #define size_t unsigned
4202 EOF
4203
4204 fi
4205
4206
4207 echo $ac_n "checking for sigset_t""... $ac_c" 1>&6
4208 echo "configure:4209: checking for sigset_t" >&5
4209 if eval "test \"`echo '$''{'nmh_cv_type_sigset_t'+set}'`\" = set"; then
4210 echo $ac_n "(cached) $ac_c" 1>&6
4211 else
4212 cat > conftest.$ac_ext <<EOF
4213 #line 4214 "configure"
4214 #include "confdefs.h"
4215 #include <sys/types.h>
4216 #include <signal.h>
4217 int main() {
4218 sigset_t tempsigset;
4219 ; return 0; }
4220 EOF
4221 if { (eval echo configure:4222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4222 rm -rf conftest*
4223 nmh_cv_type_sigset_t=yes
4224 else
4225 echo "configure: failed program was:" >&5
4226 cat conftest.$ac_ext >&5
4227 rm -rf conftest*
4228 nmh_cv_type_sigset_t=no
4229 fi
4230 rm -f conftest*
4231 fi
4232
4233 echo "$ac_t""$nmh_cv_type_sigset_t" 1>&6
4234 if test $nmh_cv_type_sigset_t = no; then
4235 cat >> confdefs.h <<\EOF
4236 #define sigset_t unsigned int
4237 EOF
4238
4239 fi
4240
4241 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
4242 echo "configure:4243: checking for st_blksize in struct stat" >&5
4243 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
4244 echo $ac_n "(cached) $ac_c" 1>&6
4245 else
4246 cat > conftest.$ac_ext <<EOF
4247 #line 4248 "configure"
4248 #include "confdefs.h"
4249 #include <sys/types.h>
4250 #include <sys/stat.h>
4251 int main() {
4252 struct stat s; s.st_blksize;
4253 ; return 0; }
4254 EOF
4255 if { (eval echo configure:4256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4256 rm -rf conftest*
4257 ac_cv_struct_st_blksize=yes
4258 else
4259 echo "configure: failed program was:" >&5
4260 cat conftest.$ac_ext >&5
4261 rm -rf conftest*
4262 ac_cv_struct_st_blksize=no
4263 fi
4264 rm -f conftest*
4265 fi
4266
4267 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
4268 if test $ac_cv_struct_st_blksize = yes; then
4269 cat >> confdefs.h <<\EOF
4270 #define HAVE_ST_BLKSIZE 1
4271 EOF
4272
4273 fi
4274
4275
4276 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
4277 echo "configure:4278: checking for tm_gmtoff in struct tm" >&5
4278 if eval "test \"`echo '$''{'nmh_cv_struct_tm_gmtoff'+set}'`\" = set"; then
4279 echo $ac_n "(cached) $ac_c" 1>&6
4280 else
4281 cat > conftest.$ac_ext <<EOF
4282 #line 4283 "configure"
4283 #include "confdefs.h"
4284 #ifdef TIME_WITH_SYS_TIME
4285 # include <sys/time.h>
4286 # include <time.h>
4287 #else
4288 # ifdef TM_IN_SYS_TIME
4289 # include <sys/time.h>
4290 # else
4291 # include <time.h>
4292 # endif
4293 #endif
4294 int main() {
4295 struct tm temptm; temptm.tm_gmtoff = 0;
4296 ; return 0; }
4297 EOF
4298 if { (eval echo configure:4299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4299 rm -rf conftest*
4300 nmh_cv_struct_tm_gmtoff=yes
4301 else
4302 echo "configure: failed program was:" >&5
4303 cat conftest.$ac_ext >&5
4304 rm -rf conftest*
4305 nmh_cv_struct_tm_gmtoff=no
4306 fi
4307 rm -f conftest*
4308 fi
4309
4310 echo "$ac_t""$nmh_cv_struct_tm_gmtoff" 1>&6
4311 if test $nmh_cv_struct_tm_gmtoff = yes; then
4312 cat >> confdefs.h <<\EOF
4313 #define HAVE_TM_GMTOFF 1
4314 EOF
4315
4316 fi
4317
4318 echo $ac_n "checking what style of signals to use""... $ac_c" 1>&6
4319 echo "configure:4320: checking what style of signals to use" >&5
4320 if test $ac_cv_func_sigaction = yes -a $ac_cv_func_sigprocmask = yes; then
4321 signals_style=POSIX_SIGNALS
4322 cat >> confdefs.h <<\EOF
4323 #define POSIX_SIGNALS 1
4324 EOF
4325
4326 cat >> confdefs.h <<\EOF
4327 #define RELIABLE_SIGNALS 1
4328 EOF
4329
4330 elif test $ac_cv_func_sigblock = yes -a $ac_cv_func_sigsetmask = yes; then
4331 signals_style=BSD_SIGNALS
4332 cat >> confdefs.h <<\EOF
4333 #define BSD_SIGNALS 1
4334 EOF
4335
4336 cat >> confdefs.h <<\EOF
4337 #define RELIABLE_SIGNALS 1
4338 EOF
4339
4340 elif test $ac_cv_func_sighold = yes -a $ac_cv_func_sigrelse = yes; then
4341 signals_style=SYSV_SIGNALS
4342 cat >> confdefs.h <<\EOF
4343 #define SYSV_SIGNALS 1
4344 EOF
4345
4346 else
4347 signals_style=NO_SIGNAL_BLOCKING
4348 cat >> confdefs.h <<\EOF
4349 #define NO_SIGNAL_BLOCKING 1
4350 EOF
4351
4352 fi
4353
4354 echo "$ac_t""$signals_style" 1>&6
4355
4356 echo $ac_n "checking where signal.h is located""... $ac_c" 1>&6
4357 echo "configure:4358: checking where signal.h is located" >&5
4358 if eval "test \"`echo '$''{'nmh_cv_path_signal_h'+set}'`\" = set"; then
4359 echo $ac_n "(cached) $ac_c" 1>&6
4360 else
4361 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
4362 test -f $SIGNAL_H && \
4363 grep '#[ ]*define[ ][ ]*SIG[0-9A-Z]*[ ]*[0-9][0-9]*' $SIGNAL_H > /dev/null && \
4364 break
4365 done
4366 nmh_cv_path_signal_h=$SIGNAL_H
4367
4368 fi
4369
4370 echo "$ac_t""$nmh_cv_path_signal_h" 1>&6
4371 SIGNAL_H=$nmh_cv_path_signal_h
4372
4373 case "$target_os" in
4374
4375 solaris2*)
4376 cat >> confdefs.h <<\EOF
4377 #define SYS5 1
4378 EOF
4379
4380 cat >> confdefs.h <<\EOF
4381 #define SVR4 1
4382 EOF
4383
4384 ;;
4385 irix*)
4386 cat >> confdefs.h <<\EOF
4387 #define SYS5 1
4388 EOF
4389
4390 cat >> confdefs.h <<\EOF
4391 #define SVR4 1
4392 EOF
4393
4394 ;;
4395 osf*)
4396 cat >> confdefs.h <<\EOF
4397 #define SYS5 1
4398 EOF
4399
4400 cat >> confdefs.h <<\EOF
4401 #define SVR4 1
4402 EOF
4403
4404 ;;
4405 aix*)
4406 cat >> confdefs.h <<\EOF
4407 #define SYS5 1
4408 EOF
4409
4410 cat >> confdefs.h <<\EOF
4411 #define SVR4 1
4412 EOF
4413
4414 ;;
4415 sunos4*)
4416 cat >> confdefs.h <<\EOF
4417 #define BSD42 1
4418 EOF
4419
4420 ;;
4421 freebsd*)
4422 cat >> confdefs.h <<\EOF
4423 #define BSD42 1
4424 EOF
4425
4426 cat >> confdefs.h <<\EOF
4427 #define BSD44 1
4428 EOF
4429
4430 ;;
4431 netbsd*)
4432 cat >> confdefs.h <<\EOF
4433 #define BSD42 1
4434 EOF
4435
4436 cat >> confdefs.h <<\EOF
4437 #define BSD44 1
4438 EOF
4439
4440 ;;
4441 openbsd*)
4442 cat >> confdefs.h <<\EOF
4443 #define BSD42 1
4444 EOF
4445
4446 cat >> confdefs.h <<\EOF
4447 #define BSD44 1
4448 EOF
4449
4450 ;;
4451 bsd/os*)
4452 cat >> confdefs.h <<\EOF
4453 #define BSD42 1
4454 EOF
4455
4456 cat >> confdefs.h <<\EOF
4457 #define BSD44 1
4458 EOF
4459
4460 ;;
4461 sco5*)
4462 cat >> confdefs.h <<\EOF
4463 #define SYS5 1
4464 EOF
4465
4466 cat >> confdefs.h <<\EOF
4467 #define SCO_5_STDIO 1
4468 EOF
4469
4470 ;;
4471 esac
4472
4473
4474 trap '' 1 2 15
4475 cat > confcache <<\EOF
4476 # This file is a shell script that caches the results of configure
4477 # tests run on this system so they can be shared between configure
4478 # scripts and configure runs. It is not useful on other systems.
4479 # If it contains results you don't want to keep, you may remove or edit it.
4480 #
4481 # By default, configure uses ./config.cache as the cache file,
4482 # creating it if it does not exist already. You can give configure
4483 # the --cache-file=FILE option to use a different cache file; that is
4484 # what configure does when it calls configure scripts in
4485 # subdirectories, so they share the cache.
4486 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4487 # config.status only pays attention to the cache file if you give it the
4488 # --recheck option to rerun configure.
4489 #
4490 EOF
4491 # The following way of writing the cache mishandles newlines in values,
4492 # but we know of no workaround that is simple, portable, and efficient.
4493 # So, don't put newlines in cache variables' values.
4494 # Ultrix sh set writes to stderr and can't be redirected directly,
4495 # and sets the high bit in the cache file unless we assign to the vars.
4496 (set) 2>&1 |
4497 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4498 *ac_space=\ *)
4499 # `set' does not quote correctly, so add quotes (double-quote substitution
4500 # turns \\\\ into \\, and sed turns \\ into \).
4501 sed -n \
4502 -e "s/'/'\\\\''/g" \
4503 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4504 ;;
4505 *)
4506 # `set' quotes correctly as required by POSIX, so do not add quotes.
4507 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4508 ;;
4509 esac >> confcache
4510 if cmp -s $cache_file confcache; then
4511 :
4512 else
4513 if test -w $cache_file; then
4514 echo "updating cache $cache_file"
4515 cat confcache > $cache_file
4516 else
4517 echo "not updating unwritable cache $cache_file"
4518 fi
4519 fi
4520 rm -f confcache
4521
4522 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4523
4524 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4525 # Let make expand exec_prefix.
4526 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4527
4528 # Any assignment to VPATH causes Sun make to only execute
4529 # the first set of double-colon rules, so remove it if not needed.
4530 # If there is a colon in the path, we need to keep it.
4531 if test "x$srcdir" = x.; then
4532 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4533 fi
4534
4535 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4536
4537 DEFS=-DHAVE_CONFIG_H
4538
4539 # Without the "./", some shells look in PATH for config.status.
4540 : ${CONFIG_STATUS=./config.status}
4541
4542 echo creating $CONFIG_STATUS
4543 rm -f $CONFIG_STATUS
4544 cat > $CONFIG_STATUS <<EOF
4545 #! /bin/sh
4546 # Generated automatically by configure.
4547 # Run this file to recreate the current configuration.
4548 # This directory was configured as follows,
4549 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4550 #
4551 # $0 $ac_configure_args
4552 #
4553 # Compiler output produced by configure, useful for debugging
4554 # configure, is in ./config.log if it exists.
4555
4556 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4557 for ac_option
4558 do
4559 case "\$ac_option" in
4560 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4561 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4562 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4563 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4564 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4565 exit 0 ;;
4566 -help | --help | --hel | --he | --h)
4567 echo "\$ac_cs_usage"; exit 0 ;;
4568 *) echo "\$ac_cs_usage"; exit 1 ;;
4569 esac
4570 done
4571
4572 ac_given_srcdir=$srcdir
4573 ac_given_INSTALL="$INSTALL"
4574
4575 trap 'rm -fr `echo "Makefile config/Makefile h/Makefile sbr/Makefile uip/Makefile \
4576 zotnet/Makefile zotnet/mts/Makefile zotnet/tws/Makefile \
4577 zotnet/mf/Makefile zotnet/bboards/Makefile mts/Makefile \
4578 mts/smtp/Makefile mts/sendmail/Makefile mts/mmdf/Makefile \
4579 etc/Makefile man/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4580 EOF
4581 cat >> $CONFIG_STATUS <<EOF
4582
4583 # Protect against being on the right side of a sed subst in config.status.
4584 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4585 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4586 $ac_vpsub
4587 $extrasub
4588 s%@SHELL@%$SHELL%g
4589 s%@CFLAGS@%$CFLAGS%g
4590 s%@CPPFLAGS@%$CPPFLAGS%g
4591 s%@CXXFLAGS@%$CXXFLAGS%g
4592 s%@FFLAGS@%$FFLAGS%g
4593 s%@DEFS@%$DEFS%g
4594 s%@LDFLAGS@%$LDFLAGS%g
4595 s%@LIBS@%$LIBS%g
4596 s%@exec_prefix@%$exec_prefix%g
4597 s%@prefix@%$prefix%g
4598 s%@program_transform_name@%$program_transform_name%g
4599 s%@bindir@%$bindir%g
4600 s%@sbindir@%$sbindir%g
4601 s%@libexecdir@%$libexecdir%g
4602 s%@datadir@%$datadir%g
4603 s%@sysconfdir@%$sysconfdir%g
4604 s%@sharedstatedir@%$sharedstatedir%g
4605 s%@localstatedir@%$localstatedir%g
4606 s%@libdir@%$libdir%g
4607 s%@includedir@%$includedir%g
4608 s%@oldincludedir@%$oldincludedir%g
4609 s%@infodir@%$infodir%g
4610 s%@mandir@%$mandir%g
4611 s%@host@%$host%g
4612 s%@host_alias@%$host_alias%g
4613 s%@host_cpu@%$host_cpu%g
4614 s%@host_vendor@%$host_vendor%g
4615 s%@host_os@%$host_os%g
4616 s%@target@%$target%g
4617 s%@target_alias@%$target_alias%g
4618 s%@target_cpu@%$target_cpu%g
4619 s%@target_vendor@%$target_vendor%g
4620 s%@target_os@%$target_os%g
4621 s%@build@%$build%g
4622 s%@build_alias@%$build_alias%g
4623 s%@build_cpu@%$build_cpu%g
4624 s%@build_vendor@%$build_vendor%g
4625 s%@build_os@%$build_os%g
4626 s%@VERSION@%$VERSION%g
4627 s%@MTS@%$MTS%g
4628 s%@MTSLIB@%$MTSLIB%g
4629 s%@POPLIB@%$POPLIB%g
4630 s%@POPSED@%$POPSED%g
4631 s%@CC@%$CC%g
4632 s%@SET_MAKE@%$SET_MAKE%g
4633 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4634 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4635 s%@INSTALL_DATA@%$INSTALL_DATA%g
4636 s%@RANLIB@%$RANLIB%g
4637 s%@AWK@%$AWK%g
4638 s%@LEX@%$LEX%g
4639 s%@LEXLIB@%$LEXLIB%g
4640 s%@cutpath@%$cutpath%g
4641 s%@LIBTOOL@%$LIBTOOL%g
4642 s%@GNU_LIBTOOL@%$GNU_LIBTOOL%g
4643 s%@LORDER@%$LORDER%g
4644 s%@TSORT@%$TSORT%g
4645 s%@lspath@%$lspath%g
4646 s%@morepath@%$morepath%g
4647 s%@pagerpath@%$pagerpath%g
4648 s%@sendmailpath@%$sendmailpath%g
4649 s%@vipath@%$vipath%g
4650 s%@editorpath@%$editorpath%g
4651 s%@mailspool@%$mailspool%g
4652 s%@SETGID_MAIL@%$SETGID_MAIL%g
4653 s%@MAIL_SPOOL_GRP@%$MAIL_SPOOL_GRP%g
4654 s%@CPP@%$CPP%g
4655 s%@LIBOBJS@%$LIBOBJS%g
4656 s%@TERMLIB@%$TERMLIB%g
4657 s%@HESIOD_INCLUDES@%$HESIOD_INCLUDES%g
4658 s%@HESIOD_LIBS@%$HESIOD_LIBS%g
4659 s%@KRB4_INCLUDES@%$KRB4_INCLUDES%g
4660 s%@KRB4_LIBS@%$KRB4_LIBS%g
4661 s%@SIGNAL_H@%$SIGNAL_H%g
4662
4663 CEOF
4664 EOF
4665
4666 cat >> $CONFIG_STATUS <<\EOF
4667
4668 # Split the substitutions into bite-sized pieces for seds with
4669 # small command number limits, like on Digital OSF/1 and HP-UX.
4670 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4671 ac_file=1 # Number of current file.
4672 ac_beg=1 # First line for current file.
4673 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4674 ac_more_lines=:
4675 ac_sed_cmds=""
4676 while $ac_more_lines; do
4677 if test $ac_beg -gt 1; then
4678 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4679 else
4680 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4681 fi
4682 if test ! -s conftest.s$ac_file; then
4683 ac_more_lines=false
4684 rm -f conftest.s$ac_file
4685 else
4686 if test -z "$ac_sed_cmds"; then
4687 ac_sed_cmds="sed -f conftest.s$ac_file"
4688 else
4689 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4690 fi
4691 ac_file=`expr $ac_file + 1`
4692 ac_beg=$ac_end
4693 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4694 fi
4695 done
4696 if test -z "$ac_sed_cmds"; then
4697 ac_sed_cmds=cat
4698 fi
4699 EOF
4700
4701 cat >> $CONFIG_STATUS <<EOF
4702
4703 CONFIG_FILES=\${CONFIG_FILES-"Makefile config/Makefile h/Makefile sbr/Makefile uip/Makefile \
4704 zotnet/Makefile zotnet/mts/Makefile zotnet/tws/Makefile \
4705 zotnet/mf/Makefile zotnet/bboards/Makefile mts/Makefile \
4706 mts/smtp/Makefile mts/sendmail/Makefile mts/mmdf/Makefile \
4707 etc/Makefile man/Makefile"}
4708 EOF
4709 cat >> $CONFIG_STATUS <<\EOF
4710 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4711 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4712 case "$ac_file" in
4713 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4714 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4715 *) ac_file_in="${ac_file}.in" ;;
4716 esac
4717
4718 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4719
4720 # Remove last slash and all that follows it. Not all systems have dirname.
4721 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4722 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4723 # The file is in a subdirectory.
4724 test ! -d "$ac_dir" && mkdir "$ac_dir"
4725 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4726 # A "../" for each directory in $ac_dir_suffix.
4727 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4728 else
4729 ac_dir_suffix= ac_dots=
4730 fi
4731
4732 case "$ac_given_srcdir" in
4733 .) srcdir=.
4734 if test -z "$ac_dots"; then top_srcdir=.
4735 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4736 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4737 *) # Relative path.
4738 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4739 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4740 esac
4741
4742 case "$ac_given_INSTALL" in
4743 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4744 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4745 esac
4746
4747 echo creating "$ac_file"
4748 rm -f "$ac_file"
4749 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4750 case "$ac_file" in
4751 *Makefile*) ac_comsub="1i\\
4752 # $configure_input" ;;
4753 *) ac_comsub= ;;
4754 esac
4755
4756 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4757 sed -e "$ac_comsub
4758 s%@configure_input@%$configure_input%g
4759 s%@srcdir@%$srcdir%g
4760 s%@top_srcdir@%$top_srcdir%g
4761 s%@INSTALL@%$INSTALL%g
4762 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4763 fi; done
4764 rm -f conftest.s*
4765
4766 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4767 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4768 #
4769 # ac_d sets the value in "#define NAME VALUE" lines.
4770 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4771 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4772 ac_dC='\3'
4773 ac_dD='%g'
4774 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4775 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4776 ac_uB='\([ ]\)%\1#\2define\3'
4777 ac_uC=' '
4778 ac_uD='\4%g'
4779 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4780 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4781 ac_eB='$%\1#\2define\3'
4782 ac_eC=' '
4783 ac_eD='%g'
4784
4785 if test "${CONFIG_HEADERS+set}" != set; then
4786 EOF
4787 cat >> $CONFIG_STATUS <<EOF
4788 CONFIG_HEADERS="config.h"
4789 EOF
4790 cat >> $CONFIG_STATUS <<\EOF
4791 fi
4792 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4793 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4794 case "$ac_file" in
4795 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4796 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4797 *) ac_file_in="${ac_file}.in" ;;
4798 esac
4799
4800 echo creating $ac_file
4801
4802 rm -f conftest.frag conftest.in conftest.out
4803 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4804 cat $ac_file_inputs > conftest.in
4805
4806 EOF
4807
4808 # Transform confdefs.h into a sed script conftest.vals that substitutes
4809 # the proper values into config.h.in to produce config.h. And first:
4810 # Protect against being on the right side of a sed subst in config.status.
4811 # Protect against being in an unquoted here document in config.status.
4812 rm -f conftest.vals
4813 cat > conftest.hdr <<\EOF
4814 s/[\\&%]/\\&/g
4815 s%[\\$`]%\\&%g
4816 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4817 s%ac_d%ac_u%gp
4818 s%ac_u%ac_e%gp
4819 EOF
4820 sed -n -f conftest.hdr confdefs.h > conftest.vals
4821 rm -f conftest.hdr
4822
4823 # This sed command replaces #undef with comments. This is necessary, for
4824 # example, in the case of _POSIX_SOURCE, which is predefined and required
4825 # on some systems where configure will not decide to define it.
4826 cat >> conftest.vals <<\EOF
4827 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4828 EOF
4829
4830 # Break up conftest.vals because some shells have a limit on
4831 # the size of here documents, and old seds have small limits too.
4832
4833 rm -f conftest.tail
4834 while :
4835 do
4836 ac_lines=`grep -c . conftest.vals`
4837 # grep -c gives empty output for an empty file on some AIX systems.
4838 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4839 # Write a limited-size here document to conftest.frag.
4840 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4841 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4842 echo 'CEOF
4843 sed -f conftest.frag conftest.in > conftest.out
4844 rm -f conftest.in
4845 mv conftest.out conftest.in
4846 ' >> $CONFIG_STATUS
4847 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4848 rm -f conftest.vals
4849 mv conftest.tail conftest.vals
4850 done
4851 rm -f conftest.vals
4852
4853 cat >> $CONFIG_STATUS <<\EOF
4854 rm -f conftest.frag conftest.h
4855 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4856 cat conftest.in >> conftest.h
4857 rm -f conftest.in
4858 if cmp -s $ac_file conftest.h 2>/dev/null; then
4859 echo "$ac_file is unchanged"
4860 rm -f conftest.h
4861 else
4862 # Remove last slash and all that follows it. Not all systems have dirname.
4863 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4864 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4865 # The file is in a subdirectory.
4866 test ! -d "$ac_dir" && mkdir "$ac_dir"
4867 fi
4868 rm -f $ac_file
4869 mv conftest.h $ac_file
4870 fi
4871 fi; done
4872
4873 EOF
4874 cat >> $CONFIG_STATUS <<EOF
4875
4876 EOF
4877 cat >> $CONFIG_STATUS <<\EOF
4878 \
4879 test -z "$CONFIG_HEADERS" || echo > stamp-h
4880 exit 0
4881 EOF
4882 chmod +x $CONFIG_STATUS
4883 rm -fr confdefs* $ac_clean_files
4884 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4885
4886
4887 eval "nmhbin=${bindir}"; eval "nmhbin2=${nmhbin}"
4888 eval "nmhsysconf=${sysconfdir}"; eval "nmhsysconf2=${nmhsysconf}"
4889 eval "nmhlib=${libdir}"; eval "nmhlib2=${nmhlib}"
4890 eval "nmhman=${mandir}"
4891
4892 echo "
4893 nmh configuration
4894 -----------------
4895 nmh version : ${VERSION}
4896 target os : ${target}
4897 compiler : ${CC}
4898 compiler flags : ${CFLAGS}
4899 linker flags : ${LDFLAGS}
4900 source code location : ${srcdir}
4901 binary install path : ${nmhbin2}
4902 libary install path : ${nmhlib2}
4903 config files install path : ${nmhsysconf2}
4904 man page install path : ${nmhman}
4905 transport system : ${MTS}
4906 default editor : ${editorpath}
4907 default pager : ${pagerpath}"
4908 echo ""