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