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