]> diplodocus.org Git - nmh/blob - configure
Properly deal with relative folder names. Problem noted by Jerry Peek
[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 VERSION=`sed -e 's/nmh-//' ${srcdir}/VERSION`
541 echo "configuring for nmh-$VERSION"
542
543 # Check whether --with-mts or --without-mts was given.
544 if test "${with_mts+set}" = set; then
545 withval="$with_mts"
546 :
547 fi
548
549
550 if test x$with_mts = xsmtp; then
551 MTS="smtp"
552 MTSLIB="mts/smtp/libsmtp.a"
553 cat >> confdefs.h <<\EOF
554 #define SMTPMTS 1
555 EOF
556 elif test x$with_mts = xsendmail; then
557 MTS="sendmail"
558 MTSLIB="mts/sendmail/libsend.a"
559 cat >> confdefs.h <<\EOF
560 #define SENDMTS 1
561 EOF
562 else
563 MTS="smtp"
564 MTSLIB="mts/smtp/libsmtp.a"
565 cat >> confdefs.h <<\EOF
566 #define SMTPMTS 1
567 EOF
568 fi
569
570
571
572
573 # Check whether --with-editor or --without-editor was given.
574 if test "${with_editor+set}" = set; then
575 withval="$with_editor"
576 :
577 fi
578
579
580 if test -n "$with_editor"; then
581 editorpath="$with_editor"
582 fi
583
584 # Check whether --with-pager or --without-pager was given.
585 if test "${with_pager+set}" = set; then
586 withval="$with_pager"
587 :
588 fi
589
590
591 if test -n "$with_pager"; then
592 pagerpath="$with_pager"
593 fi
594
595 # Check whether --enable-nmh-mhe or --disable-nmh-mhe was given.
596 if test "${enable_nmh_mhe+set}" = set; then
597 enableval="$enable_nmh_mhe"
598 :
599 fi
600
601
602 if test x$enable_nmh_mhe != xno; then
603 cat >> confdefs.h <<\EOF
604 #define MHE 1
605 EOF
606 fi
607
608 # Check whether --enable-nmh-pop or --disable-nmh-pop was given.
609 if test "${enable_nmh_pop+set}" = set; then
610 enableval="$enable_nmh_pop"
611 :
612 fi
613
614 if test x$enable_nmh_pop = xyes; then
615 cat >> confdefs.h <<\EOF
616 #define POP 1
617 EOF
618 POPLIB=popsbr.o
619 POPSED='/^%nmhbeginpop%/d;/^%nmhendpop%/d'
620 else
621 POPSED='/^%nmhbeginpop%/,/^%nmhendpop%/d'
622 fi
623
624 # Check whether --with-krb4 or --without-krb4 was given.
625 if test "${with_krb4+set}" = set; then
626 withval="$with_krb4"
627 :
628 fi
629
630 if test x$with_krb4 != x -a x$with_krb4 != xno; then
631 cat >> confdefs.h <<\EOF
632 #define KPOP 1
633 EOF
634 cat >> confdefs.h <<\EOF
635 #define KPOP_PRINCIPAL "pop"
636 EOF
637 fi
638
639 # Check whether --with-hesiod or --without-hesiod was given.
640 if test "${with_hesiod+set}" = set; then
641 withval="$with_hesiod"
642 :
643 fi
644
645 if test x$with_hesiod != x -a x$with_hesiod != xno; then
646 cat >> confdefs.h <<\EOF
647 #define HESIOD 1
648 EOF
649 fi
650
651 # Check whether --enable-nmh-debug or --disable-nmh-debug was given.
652 if test "${enable_nmh_debug+set}" = set; then
653 enableval="$enable_nmh_debug"
654 :
655 fi
656
657
658
659
660 test -z "$CFLAGS" && CFLAGS= auto_cflags=1
661 if test x$enable_nmh_debug = xyes; then
662 test -z "$LDFLAGS" && LDFLAGS=-g
663 fi
664
665 # Extract the first word of "gcc", so it can be a program name with args.
666 set dummy gcc; ac_word=$2
667 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
668 echo "configure:669: checking for $ac_word" >&5
669 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
670 echo $ac_n "(cached) $ac_c" 1>&6
671 else
672 if test -n "$CC"; then
673 ac_cv_prog_CC="$CC" # Let the user override the test.
674 else
675 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
676 for ac_dir in $PATH; do
677 test -z "$ac_dir" && ac_dir=.
678 if test -f $ac_dir/$ac_word; then
679 ac_cv_prog_CC="gcc"
680 break
681 fi
682 done
683 IFS="$ac_save_ifs"
684 fi
685 fi
686 CC="$ac_cv_prog_CC"
687 if test -n "$CC"; then
688 echo "$ac_t""$CC" 1>&6
689 else
690 echo "$ac_t""no" 1>&6
691 fi
692
693 if test -z "$CC"; then
694 # Extract the first word of "cc", so it can be a program name with args.
695 set dummy cc; ac_word=$2
696 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
697 echo "configure:698: checking for $ac_word" >&5
698 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
699 echo $ac_n "(cached) $ac_c" 1>&6
700 else
701 if test -n "$CC"; then
702 ac_cv_prog_CC="$CC" # Let the user override the test.
703 else
704 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
705 ac_prog_rejected=no
706 for ac_dir in $PATH; do
707 test -z "$ac_dir" && ac_dir=.
708 if test -f $ac_dir/$ac_word; then
709 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
710 ac_prog_rejected=yes
711 continue
712 fi
713 ac_cv_prog_CC="cc"
714 break
715 fi
716 done
717 IFS="$ac_save_ifs"
718 if test $ac_prog_rejected = yes; then
719 # We found a bogon in the path, so make sure we never use it.
720 set dummy $ac_cv_prog_CC
721 shift
722 if test $# -gt 0; then
723 # We chose a different compiler from the bogus one.
724 # However, it has the same basename, so the bogon will be chosen
725 # first if we set CC to just the basename; use the full file name.
726 shift
727 set dummy "$ac_dir/$ac_word" "$@"
728 shift
729 ac_cv_prog_CC="$@"
730 fi
731 fi
732 fi
733 fi
734 CC="$ac_cv_prog_CC"
735 if test -n "$CC"; then
736 echo "$ac_t""$CC" 1>&6
737 else
738 echo "$ac_t""no" 1>&6
739 fi
740
741 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
742 fi
743
744 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
745 echo "configure:746: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
746
747 ac_ext=c
748 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
749 ac_cpp='$CPP $CPPFLAGS'
750 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
751 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
752 cross_compiling=$ac_cv_prog_cc_cross
753
754 cat > conftest.$ac_ext <<EOF
755 #line 756 "configure"
756 #include "confdefs.h"
757 main(){return(0);}
758 EOF
759 if { (eval echo configure:760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
760 ac_cv_prog_cc_works=yes
761 # If we can't run a trivial program, we are probably using a cross compiler.
762 if (./conftest; exit) 2>/dev/null; then
763 ac_cv_prog_cc_cross=no
764 else
765 ac_cv_prog_cc_cross=yes
766 fi
767 else
768 echo "configure: failed program was:" >&5
769 cat conftest.$ac_ext >&5
770 ac_cv_prog_cc_works=no
771 fi
772 rm -fr conftest*
773
774 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
775 if test $ac_cv_prog_cc_works = no; then
776 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
777 fi
778 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
779 echo "configure:780: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
780 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
781 cross_compiling=$ac_cv_prog_cc_cross
782
783 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
784 echo "configure:785: checking whether we are using GNU C" >&5
785 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
786 echo $ac_n "(cached) $ac_c" 1>&6
787 else
788 cat > conftest.c <<EOF
789 #ifdef __GNUC__
790 yes;
791 #endif
792 EOF
793 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
794 ac_cv_prog_gcc=yes
795 else
796 ac_cv_prog_gcc=no
797 fi
798 fi
799
800 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
801
802 if test $ac_cv_prog_gcc = yes; then
803 GCC=yes
804 ac_test_CFLAGS="${CFLAGS+set}"
805 ac_save_CFLAGS="$CFLAGS"
806 CFLAGS=
807 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
808 echo "configure:809: checking whether ${CC-cc} accepts -g" >&5
809 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
810 echo $ac_n "(cached) $ac_c" 1>&6
811 else
812 echo 'void f(){}' > conftest.c
813 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
814 ac_cv_prog_cc_g=yes
815 else
816 ac_cv_prog_cc_g=no
817 fi
818 rm -f conftest*
819
820 fi
821
822 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
823 if test "$ac_test_CFLAGS" = set; then
824 CFLAGS="$ac_save_CFLAGS"
825 elif test $ac_cv_prog_cc_g = yes; then
826 CFLAGS="-g -O2"
827 else
828 CFLAGS="-O2"
829 fi
830 else
831 GCC=
832 test "${CFLAGS+set}" = set || CFLAGS="-g"
833 fi
834
835
836 if test -n "$auto_cflags"; then
837 if test x$enable_nmh_debug = xyes; then
838 if test -n "$GCC"; then
839 test -z "$CFLAGS" && CFLAGS="-Wall -g" || CFLAGS="$CFLAGS -Wall -g"
840 else
841 test -z "$CFLAGS" && CFLAGS=-g || CFLAGS="$CFLAGS -g"
842 fi
843 else
844 test -z "$LDFLAGS" && LDFLAGS=-s
845 if test -n "$GCC"; then
846 test -z "$CFLAGS" && CFLAGS=-O2 || CFLAGS="$CFLAGS -O2"
847 else
848 test -z "$CFLAGS" && CFLAGS=-O || CFLAGS="$CFLAGS -O"
849 fi
850 fi
851 fi
852
853 echo $ac_n "checking for working const""... $ac_c" 1>&6
854 echo "configure:855: checking for working const" >&5
855 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
856 echo $ac_n "(cached) $ac_c" 1>&6
857 else
858 cat > conftest.$ac_ext <<EOF
859 #line 860 "configure"
860 #include "confdefs.h"
861
862 int main() {
863
864 /* Ultrix mips cc rejects this. */
865 typedef int charset[2]; const charset x;
866 /* SunOS 4.1.1 cc rejects this. */
867 char const *const *ccp;
868 char **p;
869 /* NEC SVR4.0.2 mips cc rejects this. */
870 struct point {int x, y;};
871 static struct point const zero = {0,0};
872 /* AIX XL C 1.02.0.0 rejects this.
873 It does not let you subtract one const X* pointer from another in an arm
874 of an if-expression whose if-part is not a constant expression */
875 const char *g = "string";
876 ccp = &g + (g ? g-g : 0);
877 /* HPUX 7.0 cc rejects these. */
878 ++ccp;
879 p = (char**) ccp;
880 ccp = (char const *const *) p;
881 { /* SCO 3.2v4 cc rejects this. */
882 char *t;
883 char const *s = 0 ? (char *) 0 : (char const *) 0;
884
885 *t++ = 0;
886 }
887 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
888 int x[] = {25, 17};
889 const int *foo = &x[0];
890 ++foo;
891 }
892 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
893 typedef const int *iptr;
894 iptr p = 0;
895 ++p;
896 }
897 { /* AIX XL C 1.02.0.0 rejects this saying
898 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
899 struct s { int j; const int *ap[3]; };
900 struct s *b; b->j = 5;
901 }
902 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
903 const int foo = 10;
904 }
905
906 ; return 0; }
907 EOF
908 if { (eval echo configure:909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
909 rm -rf conftest*
910 ac_cv_c_const=yes
911 else
912 echo "configure: failed program was:" >&5
913 cat conftest.$ac_ext >&5
914 rm -rf conftest*
915 ac_cv_c_const=no
916 fi
917 rm -f conftest*
918 fi
919
920 echo "$ac_t""$ac_cv_c_const" 1>&6
921 if test $ac_cv_c_const = no; then
922 cat >> confdefs.h <<\EOF
923 #define const
924 EOF
925
926 fi
927
928 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
929 echo "configure:930: checking whether ${MAKE-make} sets \${MAKE}" >&5
930 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
931 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
932 echo $ac_n "(cached) $ac_c" 1>&6
933 else
934 cat > conftestmake <<\EOF
935 all:
936 @echo 'ac_maketemp="${MAKE}"'
937 EOF
938 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
939 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
940 if test -n "$ac_maketemp"; then
941 eval ac_cv_prog_make_${ac_make}_set=yes
942 else
943 eval ac_cv_prog_make_${ac_make}_set=no
944 fi
945 rm -f conftestmake
946 fi
947 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
948 echo "$ac_t""yes" 1>&6
949 SET_MAKE=
950 else
951 echo "$ac_t""no" 1>&6
952 SET_MAKE="MAKE=${MAKE-make}"
953 fi
954 ac_aux_dir=
955 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
956 if test -f $ac_dir/install-sh; then
957 ac_aux_dir=$ac_dir
958 ac_install_sh="$ac_aux_dir/install-sh -c"
959 break
960 elif test -f $ac_dir/install.sh; then
961 ac_aux_dir=$ac_dir
962 ac_install_sh="$ac_aux_dir/install.sh -c"
963 break
964 fi
965 done
966 if test -z "$ac_aux_dir"; then
967 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
968 fi
969 ac_config_guess=$ac_aux_dir/config.guess
970 ac_config_sub=$ac_aux_dir/config.sub
971 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
972
973 # Find a good install program. We prefer a C program (faster),
974 # so one script is as good as another. But avoid the broken or
975 # incompatible versions:
976 # SysV /etc/install, /usr/sbin/install
977 # SunOS /usr/etc/install
978 # IRIX /sbin/install
979 # AIX /bin/install
980 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
981 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
982 # ./install, which can be erroneously created by make from ./install.sh.
983 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
984 echo "configure:985: checking for a BSD compatible install" >&5
985 if test -z "$INSTALL"; then
986 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
987 echo $ac_n "(cached) $ac_c" 1>&6
988 else
989 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
990 for ac_dir in $PATH; do
991 # Account for people who put trailing slashes in PATH elements.
992 case "$ac_dir/" in
993 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
994 *)
995 # OSF1 and SCO ODT 3.0 have their own names for install.
996 for ac_prog in ginstall installbsd scoinst install; do
997 if test -f $ac_dir/$ac_prog; then
998 if test $ac_prog = install &&
999 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1000 # AIX install. It has an incompatible calling convention.
1001 # OSF/1 installbsd also uses dspmsg, but is usable.
1002 :
1003 else
1004 ac_cv_path_install="$ac_dir/$ac_prog -c"
1005 break 2
1006 fi
1007 fi
1008 done
1009 ;;
1010 esac
1011 done
1012 IFS="$ac_save_IFS"
1013
1014 fi
1015 if test "${ac_cv_path_install+set}" = set; then
1016 INSTALL="$ac_cv_path_install"
1017 else
1018 # As a last resort, use the slow shell script. We don't cache a
1019 # path for INSTALL within a source directory, because that will
1020 # break other packages using the cache if that directory is
1021 # removed, or if the path is relative.
1022 INSTALL="$ac_install_sh"
1023 fi
1024 fi
1025 echo "$ac_t""$INSTALL" 1>&6
1026
1027 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1028 # It thinks the first close brace ends the variable substitution.
1029 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1030
1031 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1032 # Extract the first word of "ranlib", so it can be a program name with args.
1033 set dummy ranlib; ac_word=$2
1034 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1035 echo "configure:1036: checking for $ac_word" >&5
1036 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1037 echo $ac_n "(cached) $ac_c" 1>&6
1038 else
1039 if test -n "$RANLIB"; then
1040 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1041 else
1042 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1043 for ac_dir in $PATH; do
1044 test -z "$ac_dir" && ac_dir=.
1045 if test -f $ac_dir/$ac_word; then
1046 ac_cv_prog_RANLIB="ranlib"
1047 break
1048 fi
1049 done
1050 IFS="$ac_save_ifs"
1051 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1052 fi
1053 fi
1054 RANLIB="$ac_cv_prog_RANLIB"
1055 if test -n "$RANLIB"; then
1056 echo "$ac_t""$RANLIB" 1>&6
1057 else
1058 echo "$ac_t""no" 1>&6
1059 fi
1060 for ac_prog in mawk gawk nawk awk
1061 do
1062 # Extract the first word of "$ac_prog", so it can be a program name with args.
1063 set dummy $ac_prog; ac_word=$2
1064 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1065 echo "configure:1066: checking for $ac_word" >&5
1066 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1067 echo $ac_n "(cached) $ac_c" 1>&6
1068 else
1069 if test -n "$AWK"; then
1070 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1071 else
1072 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1073 for ac_dir in $PATH; do
1074 test -z "$ac_dir" && ac_dir=.
1075 if test -f $ac_dir/$ac_word; then
1076 ac_cv_prog_AWK="$ac_prog"
1077 break
1078 fi
1079 done
1080 IFS="$ac_save_ifs"
1081 fi
1082 fi
1083 AWK="$ac_cv_prog_AWK"
1084 if test -n "$AWK"; then
1085 echo "$ac_t""$AWK" 1>&6
1086 else
1087 echo "$ac_t""no" 1>&6
1088 fi
1089
1090 test -n "$AWK" && break
1091 done
1092 # Extract the first word of "flex", so it can be a program name with args.
1093 set dummy flex; ac_word=$2
1094 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1095 echo "configure:1096: checking for $ac_word" >&5
1096 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1097 echo $ac_n "(cached) $ac_c" 1>&6
1098 else
1099 if test -n "$LEX"; then
1100 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1101 else
1102 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1103 for ac_dir in $PATH; do
1104 test -z "$ac_dir" && ac_dir=.
1105 if test -f $ac_dir/$ac_word; then
1106 ac_cv_prog_LEX="flex"
1107 break
1108 fi
1109 done
1110 IFS="$ac_save_ifs"
1111 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1112 fi
1113 fi
1114 LEX="$ac_cv_prog_LEX"
1115 if test -n "$LEX"; then
1116 echo "$ac_t""$LEX" 1>&6
1117 else
1118 echo "$ac_t""no" 1>&6
1119 fi
1120
1121 if test -z "$LEXLIB"
1122 then
1123 case "$LEX" in
1124 flex*) ac_lib=fl ;;
1125 *) ac_lib=l ;;
1126 esac
1127 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1128 echo "configure:1129: checking for yywrap in -l$ac_lib" >&5
1129 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1130 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1131 echo $ac_n "(cached) $ac_c" 1>&6
1132 else
1133 ac_save_LIBS="$LIBS"
1134 LIBS="-l$ac_lib $LIBS"
1135 cat > conftest.$ac_ext <<EOF
1136 #line 1137 "configure"
1137 #include "confdefs.h"
1138 /* Override any gcc2 internal prototype to avoid an error. */
1139 /* We use char because int might match the return type of a gcc2
1140 builtin and then its argument prototype would still apply. */
1141 char yywrap();
1142
1143 int main() {
1144 yywrap()
1145 ; return 0; }
1146 EOF
1147 if { (eval echo configure:1148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1148 rm -rf conftest*
1149 eval "ac_cv_lib_$ac_lib_var=yes"
1150 else
1151 echo "configure: failed program was:" >&5
1152 cat conftest.$ac_ext >&5
1153 rm -rf conftest*
1154 eval "ac_cv_lib_$ac_lib_var=no"
1155 fi
1156 rm -f conftest*
1157 LIBS="$ac_save_LIBS"
1158
1159 fi
1160 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1161 echo "$ac_t""yes" 1>&6
1162 LEXLIB="-l$ac_lib"
1163 else
1164 echo "$ac_t""no" 1>&6
1165 fi
1166
1167 fi
1168
1169 # Extract the first word of "lorder", so it can be a program name with args.
1170 set dummy lorder; ac_word=$2
1171 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1172 echo "configure:1173: checking for $ac_word" >&5
1173 if eval "test \"`echo '$''{'ac_cv_prog_LORDER'+set}'`\" = set"; then
1174 echo $ac_n "(cached) $ac_c" 1>&6
1175 else
1176 if test -n "$LORDER"; then
1177 ac_cv_prog_LORDER="$LORDER" # Let the user override the test.
1178 else
1179 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1180 for ac_dir in $PATH; do
1181 test -z "$ac_dir" && ac_dir=.
1182 if test -f $ac_dir/$ac_word; then
1183 ac_cv_prog_LORDER="lorder"
1184 break
1185 fi
1186 done
1187 IFS="$ac_save_ifs"
1188 test -z "$ac_cv_prog_LORDER" && ac_cv_prog_LORDER="no"
1189 fi
1190 fi
1191 LORDER="$ac_cv_prog_LORDER"
1192 if test -n "$LORDER"; then
1193 echo "$ac_t""$LORDER" 1>&6
1194 else
1195 echo "$ac_t""no" 1>&6
1196 fi
1197 # Extract the first word of "tsort", so it can be a program name with args.
1198 set dummy tsort; ac_word=$2
1199 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1200 echo "configure:1201: checking for $ac_word" >&5
1201 if eval "test \"`echo '$''{'ac_cv_prog_TSORT'+set}'`\" = set"; then
1202 echo $ac_n "(cached) $ac_c" 1>&6
1203 else
1204 if test -n "$TSORT"; then
1205 ac_cv_prog_TSORT="$TSORT" # Let the user override the test.
1206 else
1207 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1208 for ac_dir in $PATH; do
1209 test -z "$ac_dir" && ac_dir=.
1210 if test -f $ac_dir/$ac_word; then
1211 ac_cv_prog_TSORT="tsort"
1212 break
1213 fi
1214 done
1215 IFS="$ac_save_ifs"
1216 test -z "$ac_cv_prog_TSORT" && ac_cv_prog_TSORT="no"
1217 fi
1218 fi
1219 TSORT="$ac_cv_prog_TSORT"
1220 if test -n "$TSORT"; then
1221 echo "$ac_t""$TSORT" 1>&6
1222 else
1223 echo "$ac_t""no" 1>&6
1224 fi
1225
1226 if test x$ac_cv_prog_LORDER != xlorder -o x$ac_cv_prog_TSORT != xtsort; then
1227 LORDER=echo
1228 TSORT=cat
1229 fi
1230
1231 pathtmp=/usr/lib:/usr/sbin:/usr/etc:/usr/ucblib:/usr/bin:/bin
1232 # Extract the first word of "sendmail", so it can be a program name with args.
1233 set dummy sendmail; ac_word=$2
1234 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1235 echo "configure:1236: checking for $ac_word" >&5
1236 if eval "test \"`echo '$''{'ac_cv_path_sendmailpath'+set}'`\" = set"; then
1237 echo $ac_n "(cached) $ac_c" 1>&6
1238 else
1239 case "$sendmailpath" in
1240 /*)
1241 ac_cv_path_sendmailpath="$sendmailpath" # Let the user override the test with a path.
1242 ;;
1243 *)
1244 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1245 for ac_dir in $pathtmp$ac_dummy; do
1246 test -z "$ac_dir" && ac_dir=.
1247 if test -f $ac_dir/$ac_word; then
1248 ac_cv_path_sendmailpath="$ac_dir/$ac_word"
1249 break
1250 fi
1251 done
1252 IFS="$ac_save_ifs"
1253 test -z "$ac_cv_path_sendmailpath" && ac_cv_path_sendmailpath="no"
1254 ;;
1255 esac
1256 fi
1257 sendmailpath="$ac_cv_path_sendmailpath"
1258 if test -n "$sendmailpath"; then
1259 echo "$ac_t""$sendmailpath" 1>&6
1260 else
1261 echo "$ac_t""no" 1>&6
1262 fi
1263
1264
1265 pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin
1266 # Extract the first word of "more", so it can be a program name with args.
1267 set dummy more; ac_word=$2
1268 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1269 echo "configure:1270: checking for $ac_word" >&5
1270 if eval "test \"`echo '$''{'ac_cv_path_morepath'+set}'`\" = set"; then
1271 echo $ac_n "(cached) $ac_c" 1>&6
1272 else
1273 case "$morepath" in
1274 /*)
1275 ac_cv_path_morepath="$morepath" # Let the user override the test with a path.
1276 ;;
1277 *)
1278 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1279 for ac_dir in $pathtmp$ac_dummy; do
1280 test -z "$ac_dir" && ac_dir=.
1281 if test -f $ac_dir/$ac_word; then
1282 ac_cv_path_morepath="$ac_dir/$ac_word"
1283 break
1284 fi
1285 done
1286 IFS="$ac_save_ifs"
1287 test -z "$ac_cv_path_morepath" && ac_cv_path_morepath="no"
1288 ;;
1289 esac
1290 fi
1291 morepath="$ac_cv_path_morepath"
1292 if test -n "$morepath"; then
1293 echo "$ac_t""$morepath" 1>&6
1294 else
1295 echo "$ac_t""no" 1>&6
1296 fi
1297
1298
1299 if test -z "$pagerpath"; then
1300 pagerpath="$morepath"
1301 fi
1302
1303 pathtmp=/usr/bin:/bin:/usr/ucb:/usr/local/bin
1304 # Extract the first word of "vi", so it can be a program name with args.
1305 set dummy vi; ac_word=$2
1306 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1307 echo "configure:1308: checking for $ac_word" >&5
1308 if eval "test \"`echo '$''{'ac_cv_path_vipath'+set}'`\" = set"; then
1309 echo $ac_n "(cached) $ac_c" 1>&6
1310 else
1311 case "$vipath" in
1312 /*)
1313 ac_cv_path_vipath="$vipath" # Let the user override the test with a path.
1314 ;;
1315 *)
1316 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1317 for ac_dir in $pathtmp$ac_dummy; do
1318 test -z "$ac_dir" && ac_dir=.
1319 if test -f $ac_dir/$ac_word; then
1320 ac_cv_path_vipath="$ac_dir/$ac_word"
1321 break
1322 fi
1323 done
1324 IFS="$ac_save_ifs"
1325 test -z "$ac_cv_path_vipath" && ac_cv_path_vipath="no"
1326 ;;
1327 esac
1328 fi
1329 vipath="$ac_cv_path_vipath"
1330 if test -n "$vipath"; then
1331 echo "$ac_t""$vipath" 1>&6
1332 else
1333 echo "$ac_t""no" 1>&6
1334 fi
1335
1336
1337 if test -z "$editorpath"; then
1338 editorpath="$vipath"
1339 fi
1340
1341 echo $ac_n "checking for broken vi""... $ac_c" 1>&6
1342 echo "configure:1343: checking for broken vi" >&5
1343 if eval "test \"`echo '$''{'nmh_cv_attvibug'+set}'`\" = set"; then
1344 echo $ac_n "(cached) $ac_c" 1>&6
1345 else
1346 if echo 'r /nonexist-file
1347 q' | ex > /dev/null 2>&1
1348 then
1349 nmh_cv_attvibug=no
1350 else
1351 nmh_cv_attvibug=yes
1352 fi
1353 fi
1354
1355 echo "$ac_t""$nmh_cv_attvibug" 1>&6
1356
1357 if test "$nmh_cv_attvibug" = yes; then
1358 cat >> confdefs.h <<\EOF
1359 #define ATTVIBUG 1
1360 EOF
1361
1362 fi
1363
1364 echo $ac_n "checking where mail spool is located""... $ac_c" 1>&6
1365 echo "configure:1366: checking where mail spool is located" >&5
1366 if eval "test \"`echo '$''{'nmh_cv_mailspool'+set}'`\" = set"; then
1367 echo $ac_n "(cached) $ac_c" 1>&6
1368 else
1369 for mailspool in /var/mail /var/spool/mail /usr/spool/mail /dev/null; do
1370 test -d $mailspool && break
1371 done
1372 nmh_cv_mailspool=$mailspool
1373
1374 fi
1375
1376 echo "$ac_t""$nmh_cv_mailspool" 1>&6
1377 mailspool=$nmh_cv_mailspool
1378
1379 ac_header_dirent=no
1380 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1381 do
1382 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1383 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1384 echo "configure:1385: checking for $ac_hdr that defines DIR" >&5
1385 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1386 echo $ac_n "(cached) $ac_c" 1>&6
1387 else
1388 cat > conftest.$ac_ext <<EOF
1389 #line 1390 "configure"
1390 #include "confdefs.h"
1391 #include <sys/types.h>
1392 #include <$ac_hdr>
1393 int main() {
1394 DIR *dirp = 0;
1395 ; return 0; }
1396 EOF
1397 if { (eval echo configure:1398: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1398 rm -rf conftest*
1399 eval "ac_cv_header_dirent_$ac_safe=yes"
1400 else
1401 echo "configure: failed program was:" >&5
1402 cat conftest.$ac_ext >&5
1403 rm -rf conftest*
1404 eval "ac_cv_header_dirent_$ac_safe=no"
1405 fi
1406 rm -f conftest*
1407 fi
1408 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1409 echo "$ac_t""yes" 1>&6
1410 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1411 cat >> confdefs.h <<EOF
1412 #define $ac_tr_hdr 1
1413 EOF
1414 ac_header_dirent=$ac_hdr; break
1415 else
1416 echo "$ac_t""no" 1>&6
1417 fi
1418 done
1419 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1420 if test $ac_header_dirent = dirent.h; then
1421 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1422 echo "configure:1423: checking for opendir in -ldir" >&5
1423 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1424 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1425 echo $ac_n "(cached) $ac_c" 1>&6
1426 else
1427 ac_save_LIBS="$LIBS"
1428 LIBS="-ldir $LIBS"
1429 cat > conftest.$ac_ext <<EOF
1430 #line 1431 "configure"
1431 #include "confdefs.h"
1432 /* Override any gcc2 internal prototype to avoid an error. */
1433 /* We use char because int might match the return type of a gcc2
1434 builtin and then its argument prototype would still apply. */
1435 char opendir();
1436
1437 int main() {
1438 opendir()
1439 ; return 0; }
1440 EOF
1441 if { (eval echo configure:1442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1442 rm -rf conftest*
1443 eval "ac_cv_lib_$ac_lib_var=yes"
1444 else
1445 echo "configure: failed program was:" >&5
1446 cat conftest.$ac_ext >&5
1447 rm -rf conftest*
1448 eval "ac_cv_lib_$ac_lib_var=no"
1449 fi
1450 rm -f conftest*
1451 LIBS="$ac_save_LIBS"
1452
1453 fi
1454 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1455 echo "$ac_t""yes" 1>&6
1456 LIBS="$LIBS -ldir"
1457 else
1458 echo "$ac_t""no" 1>&6
1459 fi
1460
1461 else
1462 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1463 echo "configure:1464: checking for opendir in -lx" >&5
1464 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1465 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1466 echo $ac_n "(cached) $ac_c" 1>&6
1467 else
1468 ac_save_LIBS="$LIBS"
1469 LIBS="-lx $LIBS"
1470 cat > conftest.$ac_ext <<EOF
1471 #line 1472 "configure"
1472 #include "confdefs.h"
1473 /* Override any gcc2 internal prototype to avoid an error. */
1474 /* We use char because int might match the return type of a gcc2
1475 builtin and then its argument prototype would still apply. */
1476 char opendir();
1477
1478 int main() {
1479 opendir()
1480 ; return 0; }
1481 EOF
1482 if { (eval echo configure:1483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1483 rm -rf conftest*
1484 eval "ac_cv_lib_$ac_lib_var=yes"
1485 else
1486 echo "configure: failed program was:" >&5
1487 cat conftest.$ac_ext >&5
1488 rm -rf conftest*
1489 eval "ac_cv_lib_$ac_lib_var=no"
1490 fi
1491 rm -f conftest*
1492 LIBS="$ac_save_LIBS"
1493
1494 fi
1495 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1496 echo "$ac_t""yes" 1>&6
1497 LIBS="$LIBS -lx"
1498 else
1499 echo "$ac_t""no" 1>&6
1500 fi
1501
1502 fi
1503
1504 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1505 echo "configure:1506: checking how to run the C preprocessor" >&5
1506 # On Suns, sometimes $CPP names a directory.
1507 if test -n "$CPP" && test -d "$CPP"; then
1508 CPP=
1509 fi
1510 if test -z "$CPP"; then
1511 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1512 echo $ac_n "(cached) $ac_c" 1>&6
1513 else
1514 # This must be in double quotes, not single quotes, because CPP may get
1515 # substituted into the Makefile and "${CC-cc}" will confuse make.
1516 CPP="${CC-cc} -E"
1517 # On the NeXT, cc -E runs the code through the compiler's parser,
1518 # not just through cpp.
1519 cat > conftest.$ac_ext <<EOF
1520 #line 1521 "configure"
1521 #include "confdefs.h"
1522 #include <assert.h>
1523 Syntax Error
1524 EOF
1525 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1526 { (eval echo configure:1527: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1527 ac_err=`grep -v '^ *+' conftest.out`
1528 if test -z "$ac_err"; then
1529 :
1530 else
1531 echo "$ac_err" >&5
1532 echo "configure: failed program was:" >&5
1533 cat conftest.$ac_ext >&5
1534 rm -rf conftest*
1535 CPP="${CC-cc} -E -traditional-cpp"
1536 cat > conftest.$ac_ext <<EOF
1537 #line 1538 "configure"
1538 #include "confdefs.h"
1539 #include <assert.h>
1540 Syntax Error
1541 EOF
1542 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1543 { (eval echo configure:1544: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1544 ac_err=`grep -v '^ *+' conftest.out`
1545 if test -z "$ac_err"; then
1546 :
1547 else
1548 echo "$ac_err" >&5
1549 echo "configure: failed program was:" >&5
1550 cat conftest.$ac_ext >&5
1551 rm -rf conftest*
1552 CPP=/lib/cpp
1553 fi
1554 rm -f conftest*
1555 fi
1556 rm -f conftest*
1557 ac_cv_prog_CPP="$CPP"
1558 fi
1559 CPP="$ac_cv_prog_CPP"
1560 else
1561 ac_cv_prog_CPP="$CPP"
1562 fi
1563 echo "$ac_t""$CPP" 1>&6
1564
1565 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1566 echo "configure:1567: checking for ANSI C header files" >&5
1567 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1568 echo $ac_n "(cached) $ac_c" 1>&6
1569 else
1570 cat > conftest.$ac_ext <<EOF
1571 #line 1572 "configure"
1572 #include "confdefs.h"
1573 #include <stdlib.h>
1574 #include <stdarg.h>
1575 #include <string.h>
1576 #include <float.h>
1577 EOF
1578 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1579 { (eval echo configure:1580: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1580 ac_err=`grep -v '^ *+' conftest.out`
1581 if test -z "$ac_err"; then
1582 rm -rf conftest*
1583 ac_cv_header_stdc=yes
1584 else
1585 echo "$ac_err" >&5
1586 echo "configure: failed program was:" >&5
1587 cat conftest.$ac_ext >&5
1588 rm -rf conftest*
1589 ac_cv_header_stdc=no
1590 fi
1591 rm -f conftest*
1592
1593 if test $ac_cv_header_stdc = yes; then
1594 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1595 cat > conftest.$ac_ext <<EOF
1596 #line 1597 "configure"
1597 #include "confdefs.h"
1598 #include <string.h>
1599 EOF
1600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1601 egrep "memchr" >/dev/null 2>&1; then
1602 :
1603 else
1604 rm -rf conftest*
1605 ac_cv_header_stdc=no
1606 fi
1607 rm -f conftest*
1608
1609 fi
1610
1611 if test $ac_cv_header_stdc = yes; then
1612 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1613 cat > conftest.$ac_ext <<EOF
1614 #line 1615 "configure"
1615 #include "confdefs.h"
1616 #include <stdlib.h>
1617 EOF
1618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1619 egrep "free" >/dev/null 2>&1; then
1620 :
1621 else
1622 rm -rf conftest*
1623 ac_cv_header_stdc=no
1624 fi
1625 rm -f conftest*
1626
1627 fi
1628
1629 if test $ac_cv_header_stdc = yes; then
1630 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1631 if test "$cross_compiling" = yes; then
1632 :
1633 else
1634 cat > conftest.$ac_ext <<EOF
1635 #line 1636 "configure"
1636 #include "confdefs.h"
1637 #include <ctype.h>
1638 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1639 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1640 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1641 int main () { int i; for (i = 0; i < 256; i++)
1642 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1643 exit (0); }
1644
1645 EOF
1646 if { (eval echo configure:1647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1647 then
1648 :
1649 else
1650 echo "configure: failed program was:" >&5
1651 cat conftest.$ac_ext >&5
1652 rm -fr conftest*
1653 ac_cv_header_stdc=no
1654 fi
1655 rm -fr conftest*
1656 fi
1657
1658 fi
1659 fi
1660
1661 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1662 if test $ac_cv_header_stdc = yes; then
1663 cat >> confdefs.h <<\EOF
1664 #define STDC_HEADERS 1
1665 EOF
1666
1667 fi
1668
1669 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1670 echo "configure:1671: checking whether time.h and sys/time.h may both be included" >&5
1671 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1672 echo $ac_n "(cached) $ac_c" 1>&6
1673 else
1674 cat > conftest.$ac_ext <<EOF
1675 #line 1676 "configure"
1676 #include "confdefs.h"
1677 #include <sys/types.h>
1678 #include <sys/time.h>
1679 #include <time.h>
1680 int main() {
1681 struct tm *tp;
1682 ; return 0; }
1683 EOF
1684 if { (eval echo configure:1685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1685 rm -rf conftest*
1686 ac_cv_header_time=yes
1687 else
1688 echo "configure: failed program was:" >&5
1689 cat conftest.$ac_ext >&5
1690 rm -rf conftest*
1691 ac_cv_header_time=no
1692 fi
1693 rm -f conftest*
1694 fi
1695
1696 echo "$ac_t""$ac_cv_header_time" 1>&6
1697 if test $ac_cv_header_time = yes; then
1698 cat >> confdefs.h <<\EOF
1699 #define TIME_WITH_SYS_TIME 1
1700 EOF
1701
1702 fi
1703
1704 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1705 echo "configure:1706: checking for sys/wait.h that is POSIX.1 compatible" >&5
1706 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1707 echo $ac_n "(cached) $ac_c" 1>&6
1708 else
1709 cat > conftest.$ac_ext <<EOF
1710 #line 1711 "configure"
1711 #include "confdefs.h"
1712 #include <sys/types.h>
1713 #include <sys/wait.h>
1714 #ifndef WEXITSTATUS
1715 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1716 #endif
1717 #ifndef WIFEXITED
1718 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1719 #endif
1720 int main() {
1721 int s;
1722 wait (&s);
1723 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1724 ; return 0; }
1725 EOF
1726 if { (eval echo configure:1727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1727 rm -rf conftest*
1728 ac_cv_header_sys_wait_h=yes
1729 else
1730 echo "configure: failed program was:" >&5
1731 cat conftest.$ac_ext >&5
1732 rm -rf conftest*
1733 ac_cv_header_sys_wait_h=no
1734 fi
1735 rm -f conftest*
1736 fi
1737
1738 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1739 if test $ac_cv_header_sys_wait_h = yes; then
1740 cat >> confdefs.h <<\EOF
1741 #define HAVE_SYS_WAIT_H 1
1742 EOF
1743
1744 fi
1745
1746 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
1747 echo "configure:1748: checking whether stat file-mode macros are broken" >&5
1748 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
1749 echo $ac_n "(cached) $ac_c" 1>&6
1750 else
1751 cat > conftest.$ac_ext <<EOF
1752 #line 1753 "configure"
1753 #include "confdefs.h"
1754 #include <sys/types.h>
1755 #include <sys/stat.h>
1756
1757 #if defined(S_ISBLK) && defined(S_IFDIR)
1758 # if S_ISBLK (S_IFDIR)
1759 You lose.
1760 # endif
1761 #endif
1762
1763 #if defined(S_ISBLK) && defined(S_IFCHR)
1764 # if S_ISBLK (S_IFCHR)
1765 You lose.
1766 # endif
1767 #endif
1768
1769 #if defined(S_ISLNK) && defined(S_IFREG)
1770 # if S_ISLNK (S_IFREG)
1771 You lose.
1772 # endif
1773 #endif
1774
1775 #if defined(S_ISSOCK) && defined(S_IFREG)
1776 # if S_ISSOCK (S_IFREG)
1777 You lose.
1778 # endif
1779 #endif
1780
1781 EOF
1782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1783 egrep "You lose" >/dev/null 2>&1; then
1784 rm -rf conftest*
1785 ac_cv_header_stat_broken=yes
1786 else
1787 rm -rf conftest*
1788 ac_cv_header_stat_broken=no
1789 fi
1790 rm -f conftest*
1791
1792 fi
1793
1794 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
1795 if test $ac_cv_header_stat_broken = yes; then
1796 cat >> confdefs.h <<\EOF
1797 #define STAT_MACROS_BROKEN 1
1798 EOF
1799
1800 fi
1801
1802 for ac_hdr in string.h memory.h stdlib.h unistd.h errno.h fcntl.h \
1803 limits.h crypt.h termcap.h termio.h termios.h locale.h \
1804 sys/param.h sys/time.h sys/utsname.h arpa/inet.h \
1805 arpa/ftp.h
1806 do
1807 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1808 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1809 echo "configure:1810: checking for $ac_hdr" >&5
1810 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1811 echo $ac_n "(cached) $ac_c" 1>&6
1812 else
1813 cat > conftest.$ac_ext <<EOF
1814 #line 1815 "configure"
1815 #include "confdefs.h"
1816 #include <$ac_hdr>
1817 EOF
1818 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1819 { (eval echo configure:1820: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1820 ac_err=`grep -v '^ *+' conftest.out`
1821 if test -z "$ac_err"; then
1822 rm -rf conftest*
1823 eval "ac_cv_header_$ac_safe=yes"
1824 else
1825 echo "$ac_err" >&5
1826 echo "configure: failed program was:" >&5
1827 cat conftest.$ac_ext >&5
1828 rm -rf conftest*
1829 eval "ac_cv_header_$ac_safe=no"
1830 fi
1831 rm -f conftest*
1832 fi
1833 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1834 echo "$ac_t""yes" 1>&6
1835 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1836 cat >> confdefs.h <<EOF
1837 #define $ac_tr_hdr 1
1838 EOF
1839
1840 else
1841 echo "$ac_t""no" 1>&6
1842 fi
1843 done
1844
1845
1846 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
1847 echo "configure:1848: checking POSIX termios" >&5
1848 if eval "test \"`echo '$''{'nmh_cv_sys_posix_termios'+set}'`\" = set"; then
1849 echo $ac_n "(cached) $ac_c" 1>&6
1850 else
1851 cat > conftest.$ac_ext <<EOF
1852 #line 1853 "configure"
1853 #include "confdefs.h"
1854 #include <sys/types.h>
1855 #include <unistd.h>
1856 #include <termios.h>
1857 int main() {
1858 /* SunOS 4.0.3 has termios.h but not the library calls. */
1859 tcgetattr(0, 0);
1860 ; return 0; }
1861 EOF
1862 if { (eval echo configure:1863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1863 rm -rf conftest*
1864 nmh_cv_sys_posix_termios=yes
1865 else
1866 echo "configure: failed program was:" >&5
1867 cat conftest.$ac_ext >&5
1868 rm -rf conftest*
1869 nmh_cv_sys_posix_termios=no
1870 fi
1871 rm -f conftest*
1872 fi
1873
1874 echo "$ac_t""$nmh_cv_sys_posix_termios" 1>&6
1875
1876 if test $nmh_cv_sys_posix_termios = yes; then
1877 echo $ac_n "checking TIOCGWINSZ in termios.h""... $ac_c" 1>&6
1878 echo "configure:1879: checking TIOCGWINSZ in termios.h" >&5
1879 if eval "test \"`echo '$''{'nmh_cv_header_termios_h_tiocgwinsz'+set}'`\" = set"; then
1880 echo $ac_n "(cached) $ac_c" 1>&6
1881 else
1882 cat > conftest.$ac_ext <<EOF
1883 #line 1884 "configure"
1884 #include "confdefs.h"
1885 #include <sys/types.h>
1886 #include <termios.h>
1887 int main() {
1888 int x = TIOCGWINSZ;
1889 ; return 0; }
1890 EOF
1891 if { (eval echo configure:1892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1892 rm -rf conftest*
1893 nmh_cv_header_termios_h_tiocgwinsz=yes
1894 else
1895 echo "configure: failed program was:" >&5
1896 cat conftest.$ac_ext >&5
1897 rm -rf conftest*
1898 nmh_cv_header_termios_h_tiocgwinsz=no
1899 fi
1900 rm -f conftest*
1901 fi
1902
1903 echo "$ac_t""$nmh_cv_header_termios_h_tiocgwinsz" 1>&6
1904 else
1905 nmh_cv_header_termios_h_tiocgwinsz=no
1906 fi
1907
1908 if test $nmh_cv_header_termios_h_tiocgwinsz = no; then
1909 echo $ac_n "checking TIOCGWINSZ in sys/ioctl.h""... $ac_c" 1>&6
1910 echo "configure:1911: checking TIOCGWINSZ in sys/ioctl.h" >&5
1911 if eval "test \"`echo '$''{'nmh_cv_header_sys_ioctl_h_tiocgwinsz'+set}'`\" = set"; then
1912 echo $ac_n "(cached) $ac_c" 1>&6
1913 else
1914 cat > conftest.$ac_ext <<EOF
1915 #line 1916 "configure"
1916 #include "confdefs.h"
1917 #include <sys/types.h>
1918 #include <sys/ioctl.h>
1919 int main() {
1920 int x = TIOCGWINSZ;
1921 ; return 0; }
1922 EOF
1923 if { (eval echo configure:1924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1924 rm -rf conftest*
1925 nmh_cv_header_sys_ioctl_h_tiocgwinsz=yes
1926 else
1927 echo "configure: failed program was:" >&5
1928 cat conftest.$ac_ext >&5
1929 rm -rf conftest*
1930 nmh_cv_header_sys_ioctl_h_tiocgwinsz=no
1931 fi
1932 rm -f conftest*
1933 fi
1934
1935 echo "$ac_t""$nmh_cv_header_sys_ioctl_h_tiocgwinsz" 1>&6
1936 if test $nmh_cv_header_sys_ioctl_h_tiocgwinsz = yes; then
1937 cat >> confdefs.h <<\EOF
1938 #define GWINSZ_IN_SYS_IOCTL 1
1939 EOF
1940
1941 fi
1942 fi
1943
1944 ac_safe=`echo "sys/ptem.h" | sed 'y%./+-%__p_%'`
1945 echo $ac_n "checking for sys/ptem.h""... $ac_c" 1>&6
1946 echo "configure:1947: checking for sys/ptem.h" >&5
1947 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1948 echo $ac_n "(cached) $ac_c" 1>&6
1949 else
1950 cat > conftest.$ac_ext <<EOF
1951 #line 1952 "configure"
1952 #include "confdefs.h"
1953 #include <sys/ptem.h>
1954 EOF
1955 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1956 { (eval echo configure:1957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1957 ac_err=`grep -v '^ *+' conftest.out`
1958 if test -z "$ac_err"; then
1959 rm -rf conftest*
1960 eval "ac_cv_header_$ac_safe=yes"
1961 else
1962 echo "$ac_err" >&5
1963 echo "configure: failed program was:" >&5
1964 cat conftest.$ac_ext >&5
1965 rm -rf conftest*
1966 eval "ac_cv_header_$ac_safe=no"
1967 fi
1968 rm -f conftest*
1969 fi
1970 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1971 echo "$ac_t""yes" 1>&6
1972 cat >> confdefs.h <<\EOF
1973 #define WINSIZE_IN_PTEM 1
1974 EOF
1975
1976 else
1977 echo "$ac_t""no" 1>&6
1978 fi
1979
1980
1981 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
1982 echo "configure:1983: checking for pid_t" >&5
1983 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
1984 echo $ac_n "(cached) $ac_c" 1>&6
1985 else
1986 cat > conftest.$ac_ext <<EOF
1987 #line 1988 "configure"
1988 #include "confdefs.h"
1989 #include <sys/types.h>
1990 #if STDC_HEADERS
1991 #include <stdlib.h>
1992 #include <stddef.h>
1993 #endif
1994 EOF
1995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1996 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1997 rm -rf conftest*
1998 ac_cv_type_pid_t=yes
1999 else
2000 rm -rf conftest*
2001 ac_cv_type_pid_t=no
2002 fi
2003 rm -f conftest*
2004
2005 fi
2006 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
2007 if test $ac_cv_type_pid_t = no; then
2008 cat >> confdefs.h <<\EOF
2009 #define pid_t int
2010 EOF
2011
2012 fi
2013
2014 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'`
2015 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6
2016 echo "configure:2017: checking for vfork.h" >&5
2017 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2018 echo $ac_n "(cached) $ac_c" 1>&6
2019 else
2020 cat > conftest.$ac_ext <<EOF
2021 #line 2022 "configure"
2022 #include "confdefs.h"
2023 #include <vfork.h>
2024 EOF
2025 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2026 { (eval echo configure:2027: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2027 ac_err=`grep -v '^ *+' conftest.out`
2028 if test -z "$ac_err"; then
2029 rm -rf conftest*
2030 eval "ac_cv_header_$ac_safe=yes"
2031 else
2032 echo "$ac_err" >&5
2033 echo "configure: failed program was:" >&5
2034 cat conftest.$ac_ext >&5
2035 rm -rf conftest*
2036 eval "ac_cv_header_$ac_safe=no"
2037 fi
2038 rm -f conftest*
2039 fi
2040 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2041 echo "$ac_t""yes" 1>&6
2042 cat >> confdefs.h <<\EOF
2043 #define HAVE_VFORK_H 1
2044 EOF
2045
2046 else
2047 echo "$ac_t""no" 1>&6
2048 fi
2049
2050 echo $ac_n "checking for working vfork""... $ac_c" 1>&6
2051 echo "configure:2052: checking for working vfork" >&5
2052 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then
2053 echo $ac_n "(cached) $ac_c" 1>&6
2054 else
2055 if test "$cross_compiling" = yes; then
2056 echo $ac_n "checking for vfork""... $ac_c" 1>&6
2057 echo "configure:2058: checking for vfork" >&5
2058 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then
2059 echo $ac_n "(cached) $ac_c" 1>&6
2060 else
2061 cat > conftest.$ac_ext <<EOF
2062 #line 2063 "configure"
2063 #include "confdefs.h"
2064 /* System header to define __stub macros and hopefully few prototypes,
2065 which can conflict with char vfork(); below. */
2066 #include <assert.h>
2067 /* Override any gcc2 internal prototype to avoid an error. */
2068 /* We use char because int might match the return type of a gcc2
2069 builtin and then its argument prototype would still apply. */
2070 char vfork();
2071
2072 int main() {
2073
2074 /* The GNU C library defines this for functions which it implements
2075 to always fail with ENOSYS. Some functions are actually named
2076 something starting with __ and the normal name is an alias. */
2077 #if defined (__stub_vfork) || defined (__stub___vfork)
2078 choke me
2079 #else
2080 vfork();
2081 #endif
2082
2083 ; return 0; }
2084 EOF
2085 if { (eval echo configure:2086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2086 rm -rf conftest*
2087 eval "ac_cv_func_vfork=yes"
2088 else
2089 echo "configure: failed program was:" >&5
2090 cat conftest.$ac_ext >&5
2091 rm -rf conftest*
2092 eval "ac_cv_func_vfork=no"
2093 fi
2094 rm -f conftest*
2095 fi
2096
2097 if eval "test \"`echo '$ac_cv_func_'vfork`\" = yes"; then
2098 echo "$ac_t""yes" 1>&6
2099 :
2100 else
2101 echo "$ac_t""no" 1>&6
2102 fi
2103
2104 else
2105 cat > conftest.$ac_ext <<EOF
2106 #line 2107 "configure"
2107 #include "confdefs.h"
2108 /* Thanks to Paul Eggert for this test. */
2109 #include <stdio.h>
2110 #include <sys/types.h>
2111 #include <sys/stat.h>
2112 #ifdef HAVE_UNISTD_H
2113 #include <unistd.h>
2114 #endif
2115 #ifdef HAVE_VFORK_H
2116 #include <vfork.h>
2117 #endif
2118 /* On some sparc systems, changes by the child to local and incoming
2119 argument registers are propagated back to the parent.
2120 The compiler is told about this with #include <vfork.h>,
2121 but some compilers (e.g. gcc -O) don't grok <vfork.h>.
2122 Test for this by using a static variable whose address
2123 is put into a register that is clobbered by the vfork. */
2124 static
2125 #ifdef __cplusplus
2126 sparc_address_test (int arg)
2127 #else
2128 sparc_address_test (arg) int arg;
2129 #endif
2130 {
2131 static pid_t child;
2132 if (!child) {
2133 child = vfork ();
2134 if (child < 0) {
2135 perror ("vfork");
2136 _exit(2);
2137 }
2138 if (!child) {
2139 arg = getpid();
2140 write(-1, "", 0);
2141 _exit (arg);
2142 }
2143 }
2144 }
2145 main() {
2146 pid_t parent = getpid ();
2147 pid_t child;
2148
2149 sparc_address_test ();
2150
2151 child = vfork ();
2152
2153 if (child == 0) {
2154 /* Here is another test for sparc vfork register problems.
2155 This test uses lots of local variables, at least
2156 as many local variables as main has allocated so far
2157 including compiler temporaries. 4 locals are enough for
2158 gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe.
2159 A buggy compiler should reuse the register of parent
2160 for one of the local variables, since it will think that
2161 parent can't possibly be used any more in this routine.
2162 Assigning to the local variable will thus munge parent
2163 in the parent process. */
2164 pid_t
2165 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
2166 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
2167 /* Convince the compiler that p..p7 are live; otherwise, it might
2168 use the same hardware register for all 8 local variables. */
2169 if (p != p1 || p != p2 || p != p3 || p != p4
2170 || p != p5 || p != p6 || p != p7)
2171 _exit(1);
2172
2173 /* On some systems (e.g. IRIX 3.3),
2174 vfork doesn't separate parent from child file descriptors.
2175 If the child closes a descriptor before it execs or exits,
2176 this munges the parent's descriptor as well.
2177 Test for this by closing stdout in the child. */
2178 _exit(close(fileno(stdout)) != 0);
2179 } else {
2180 int status;
2181 struct stat st;
2182
2183 while (wait(&status) != child)
2184 ;
2185 exit(
2186 /* Was there some problem with vforking? */
2187 child < 0
2188
2189 /* Did the child fail? (This shouldn't happen.) */
2190 || status
2191
2192 /* Did the vfork/compiler bug occur? */
2193 || parent != getpid()
2194
2195 /* Did the file descriptor bug occur? */
2196 || fstat(fileno(stdout), &st) != 0
2197 );
2198 }
2199 }
2200 EOF
2201 if { (eval echo configure:2202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2202 then
2203 ac_cv_func_vfork_works=yes
2204 else
2205 echo "configure: failed program was:" >&5
2206 cat conftest.$ac_ext >&5
2207 rm -fr conftest*
2208 ac_cv_func_vfork_works=no
2209 fi
2210 rm -fr conftest*
2211 fi
2212
2213 fi
2214
2215 echo "$ac_t""$ac_cv_func_vfork_works" 1>&6
2216 if test $ac_cv_func_vfork_works = no; then
2217 cat >> confdefs.h <<\EOF
2218 #define vfork fork
2219 EOF
2220
2221 fi
2222
2223 for ac_func in waitpid wait3 sigaction sigprocmask sigblock sigsetmask \
2224 sighold sigrelse writev lstat uname tzset killpg \
2225 sigsetjmp
2226 do
2227 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2228 echo "configure:2229: checking for $ac_func" >&5
2229 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2230 echo $ac_n "(cached) $ac_c" 1>&6
2231 else
2232 cat > conftest.$ac_ext <<EOF
2233 #line 2234 "configure"
2234 #include "confdefs.h"
2235 /* System header to define __stub macros and hopefully few prototypes,
2236 which can conflict with char $ac_func(); below. */
2237 #include <assert.h>
2238 /* Override any gcc2 internal prototype to avoid an error. */
2239 /* We use char because int might match the return type of a gcc2
2240 builtin and then its argument prototype would still apply. */
2241 char $ac_func();
2242
2243 int main() {
2244
2245 /* The GNU C library defines this for functions which it implements
2246 to always fail with ENOSYS. Some functions are actually named
2247 something starting with __ and the normal name is an alias. */
2248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2249 choke me
2250 #else
2251 $ac_func();
2252 #endif
2253
2254 ; return 0; }
2255 EOF
2256 if { (eval echo configure:2257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2257 rm -rf conftest*
2258 eval "ac_cv_func_$ac_func=yes"
2259 else
2260 echo "configure: failed program was:" >&5
2261 cat conftest.$ac_ext >&5
2262 rm -rf conftest*
2263 eval "ac_cv_func_$ac_func=no"
2264 fi
2265 rm -f conftest*
2266 fi
2267
2268 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2269 echo "$ac_t""yes" 1>&6
2270 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2271 cat >> confdefs.h <<EOF
2272 #define $ac_tr_func 1
2273 EOF
2274
2275 else
2276 echo "$ac_t""no" 1>&6
2277 fi
2278 done
2279
2280
2281 for ac_func in snprintf strerror strdup
2282 do
2283 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2284 echo "configure:2285: checking for $ac_func" >&5
2285 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2286 echo $ac_n "(cached) $ac_c" 1>&6
2287 else
2288 cat > conftest.$ac_ext <<EOF
2289 #line 2290 "configure"
2290 #include "confdefs.h"
2291 /* System header to define __stub macros and hopefully few prototypes,
2292 which can conflict with char $ac_func(); below. */
2293 #include <assert.h>
2294 /* Override any gcc2 internal prototype to avoid an error. */
2295 /* We use char because int might match the return type of a gcc2
2296 builtin and then its argument prototype would still apply. */
2297 char $ac_func();
2298
2299 int main() {
2300
2301 /* The GNU C library defines this for functions which it implements
2302 to always fail with ENOSYS. Some functions are actually named
2303 something starting with __ and the normal name is an alias. */
2304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2305 choke me
2306 #else
2307 $ac_func();
2308 #endif
2309
2310 ; return 0; }
2311 EOF
2312 if { (eval echo configure:2313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2313 rm -rf conftest*
2314 eval "ac_cv_func_$ac_func=yes"
2315 else
2316 echo "configure: failed program was:" >&5
2317 cat conftest.$ac_ext >&5
2318 rm -rf conftest*
2319 eval "ac_cv_func_$ac_func=no"
2320 fi
2321 rm -f conftest*
2322 fi
2323
2324 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2325 echo "$ac_t""yes" 1>&6
2326 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2327 cat >> confdefs.h <<EOF
2328 #define $ac_tr_func 1
2329 EOF
2330
2331 else
2332 echo "$ac_t""no" 1>&6
2333 LIBOBJS="$LIBOBJS ${ac_func}.o"
2334 fi
2335 done
2336
2337
2338
2339 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2340 echo "configure:2341: checking for gethostbyname" >&5
2341 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2342 echo $ac_n "(cached) $ac_c" 1>&6
2343 else
2344 cat > conftest.$ac_ext <<EOF
2345 #line 2346 "configure"
2346 #include "confdefs.h"
2347 /* System header to define __stub macros and hopefully few prototypes,
2348 which can conflict with char gethostbyname(); below. */
2349 #include <assert.h>
2350 /* Override any gcc2 internal prototype to avoid an error. */
2351 /* We use char because int might match the return type of a gcc2
2352 builtin and then its argument prototype would still apply. */
2353 char gethostbyname();
2354
2355 int main() {
2356
2357 /* The GNU C library defines this for functions which it implements
2358 to always fail with ENOSYS. Some functions are actually named
2359 something starting with __ and the normal name is an alias. */
2360 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2361 choke me
2362 #else
2363 gethostbyname();
2364 #endif
2365
2366 ; return 0; }
2367 EOF
2368 if { (eval echo configure:2369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2369 rm -rf conftest*
2370 eval "ac_cv_func_gethostbyname=yes"
2371 else
2372 echo "configure: failed program was:" >&5
2373 cat conftest.$ac_ext >&5
2374 rm -rf conftest*
2375 eval "ac_cv_func_gethostbyname=no"
2376 fi
2377 rm -f conftest*
2378 fi
2379
2380 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2381 echo "$ac_t""yes" 1>&6
2382 :
2383 else
2384 echo "$ac_t""no" 1>&6
2385 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2386 echo "configure:2387: checking for gethostbyname in -lnsl" >&5
2387 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2388 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2389 echo $ac_n "(cached) $ac_c" 1>&6
2390 else
2391 ac_save_LIBS="$LIBS"
2392 LIBS="-lnsl $LIBS"
2393 cat > conftest.$ac_ext <<EOF
2394 #line 2395 "configure"
2395 #include "confdefs.h"
2396 /* Override any gcc2 internal prototype to avoid an error. */
2397 /* We use char because int might match the return type of a gcc2
2398 builtin and then its argument prototype would still apply. */
2399 char gethostbyname();
2400
2401 int main() {
2402 gethostbyname()
2403 ; return 0; }
2404 EOF
2405 if { (eval echo configure:2406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2406 rm -rf conftest*
2407 eval "ac_cv_lib_$ac_lib_var=yes"
2408 else
2409 echo "configure: failed program was:" >&5
2410 cat conftest.$ac_ext >&5
2411 rm -rf conftest*
2412 eval "ac_cv_lib_$ac_lib_var=no"
2413 fi
2414 rm -f conftest*
2415 LIBS="$ac_save_LIBS"
2416
2417 fi
2418 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2419 echo "$ac_t""yes" 1>&6
2420 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
2421 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2422 cat >> confdefs.h <<EOF
2423 #define $ac_tr_lib 1
2424 EOF
2425
2426 LIBS="-lnsl $LIBS"
2427
2428 else
2429 echo "$ac_t""no" 1>&6
2430 echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6
2431 echo "configure:2432: checking for gethostbyname in -lresolv" >&5
2432 ac_lib_var=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'`
2433 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2434 echo $ac_n "(cached) $ac_c" 1>&6
2435 else
2436 ac_save_LIBS="$LIBS"
2437 LIBS="-lresolv $LIBS"
2438 cat > conftest.$ac_ext <<EOF
2439 #line 2440 "configure"
2440 #include "confdefs.h"
2441 /* Override any gcc2 internal prototype to avoid an error. */
2442 /* We use char because int might match the return type of a gcc2
2443 builtin and then its argument prototype would still apply. */
2444 char gethostbyname();
2445
2446 int main() {
2447 gethostbyname()
2448 ; return 0; }
2449 EOF
2450 if { (eval echo configure:2451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2451 rm -rf conftest*
2452 eval "ac_cv_lib_$ac_lib_var=yes"
2453 else
2454 echo "configure: failed program was:" >&5
2455 cat conftest.$ac_ext >&5
2456 rm -rf conftest*
2457 eval "ac_cv_lib_$ac_lib_var=no"
2458 fi
2459 rm -f conftest*
2460 LIBS="$ac_save_LIBS"
2461
2462 fi
2463 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2464 echo "$ac_t""yes" 1>&6
2465 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
2466 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2467 cat >> confdefs.h <<EOF
2468 #define $ac_tr_lib 1
2469 EOF
2470
2471 LIBS="-lresolv $LIBS"
2472
2473 else
2474 echo "$ac_t""no" 1>&6
2475 fi
2476
2477 fi
2478
2479 fi
2480
2481 echo $ac_n "checking for socket""... $ac_c" 1>&6
2482 echo "configure:2483: checking for socket" >&5
2483 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
2484 echo $ac_n "(cached) $ac_c" 1>&6
2485 else
2486 cat > conftest.$ac_ext <<EOF
2487 #line 2488 "configure"
2488 #include "confdefs.h"
2489 /* System header to define __stub macros and hopefully few prototypes,
2490 which can conflict with char socket(); below. */
2491 #include <assert.h>
2492 /* Override any gcc2 internal prototype to avoid an error. */
2493 /* We use char because int might match the return type of a gcc2
2494 builtin and then its argument prototype would still apply. */
2495 char socket();
2496
2497 int main() {
2498
2499 /* The GNU C library defines this for functions which it implements
2500 to always fail with ENOSYS. Some functions are actually named
2501 something starting with __ and the normal name is an alias. */
2502 #if defined (__stub_socket) || defined (__stub___socket)
2503 choke me
2504 #else
2505 socket();
2506 #endif
2507
2508 ; return 0; }
2509 EOF
2510 if { (eval echo configure:2511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2511 rm -rf conftest*
2512 eval "ac_cv_func_socket=yes"
2513 else
2514 echo "configure: failed program was:" >&5
2515 cat conftest.$ac_ext >&5
2516 rm -rf conftest*
2517 eval "ac_cv_func_socket=no"
2518 fi
2519 rm -f conftest*
2520 fi
2521
2522 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
2523 echo "$ac_t""yes" 1>&6
2524 :
2525 else
2526 echo "$ac_t""no" 1>&6
2527 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
2528 echo "configure:2529: checking for socket in -lsocket" >&5
2529 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
2530 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2531 echo $ac_n "(cached) $ac_c" 1>&6
2532 else
2533 ac_save_LIBS="$LIBS"
2534 LIBS="-lsocket $LIBS"
2535 cat > conftest.$ac_ext <<EOF
2536 #line 2537 "configure"
2537 #include "confdefs.h"
2538 /* Override any gcc2 internal prototype to avoid an error. */
2539 /* We use char because int might match the return type of a gcc2
2540 builtin and then its argument prototype would still apply. */
2541 char socket();
2542
2543 int main() {
2544 socket()
2545 ; return 0; }
2546 EOF
2547 if { (eval echo configure:2548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2548 rm -rf conftest*
2549 eval "ac_cv_lib_$ac_lib_var=yes"
2550 else
2551 echo "configure: failed program was:" >&5
2552 cat conftest.$ac_ext >&5
2553 rm -rf conftest*
2554 eval "ac_cv_lib_$ac_lib_var=no"
2555 fi
2556 rm -f conftest*
2557 LIBS="$ac_save_LIBS"
2558
2559 fi
2560 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2561 echo "$ac_t""yes" 1>&6
2562 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2563 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2564 cat >> confdefs.h <<EOF
2565 #define $ac_tr_lib 1
2566 EOF
2567
2568 LIBS="-lsocket $LIBS"
2569
2570 else
2571 echo "$ac_t""no" 1>&6
2572 fi
2573
2574 fi
2575
2576
2577
2578 echo $ac_n "checking for ruserpass""... $ac_c" 1>&6
2579 echo "configure:2580: checking for ruserpass" >&5
2580 if eval "test \"`echo '$''{'ac_cv_func_ruserpass'+set}'`\" = set"; then
2581 echo $ac_n "(cached) $ac_c" 1>&6
2582 else
2583 cat > conftest.$ac_ext <<EOF
2584 #line 2585 "configure"
2585 #include "confdefs.h"
2586 /* System header to define __stub macros and hopefully few prototypes,
2587 which can conflict with char ruserpass(); below. */
2588 #include <assert.h>
2589 /* Override any gcc2 internal prototype to avoid an error. */
2590 /* We use char because int might match the return type of a gcc2
2591 builtin and then its argument prototype would still apply. */
2592 char ruserpass();
2593
2594 int main() {
2595
2596 /* The GNU C library defines this for functions which it implements
2597 to always fail with ENOSYS. Some functions are actually named
2598 something starting with __ and the normal name is an alias. */
2599 #if defined (__stub_ruserpass) || defined (__stub___ruserpass)
2600 choke me
2601 #else
2602 ruserpass();
2603 #endif
2604
2605 ; return 0; }
2606 EOF
2607 if { (eval echo configure:2608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2608 rm -rf conftest*
2609 eval "ac_cv_func_ruserpass=yes"
2610 else
2611 echo "configure: failed program was:" >&5
2612 cat conftest.$ac_ext >&5
2613 rm -rf conftest*
2614 eval "ac_cv_func_ruserpass=no"
2615 fi
2616 rm -f conftest*
2617 fi
2618
2619 if eval "test \"`echo '$ac_cv_func_'ruserpass`\" = yes"; then
2620 echo "$ac_t""yes" 1>&6
2621 :
2622 else
2623 echo "$ac_t""no" 1>&6
2624 echo $ac_n "checking for _ruserpass""... $ac_c" 1>&6
2625 echo "configure:2626: checking for _ruserpass" >&5
2626 if eval "test \"`echo '$''{'ac_cv_func__ruserpass'+set}'`\" = set"; then
2627 echo $ac_n "(cached) $ac_c" 1>&6
2628 else
2629 cat > conftest.$ac_ext <<EOF
2630 #line 2631 "configure"
2631 #include "confdefs.h"
2632 /* System header to define __stub macros and hopefully few prototypes,
2633 which can conflict with char _ruserpass(); below. */
2634 #include <assert.h>
2635 /* Override any gcc2 internal prototype to avoid an error. */
2636 /* We use char because int might match the return type of a gcc2
2637 builtin and then its argument prototype would still apply. */
2638 char _ruserpass();
2639
2640 int main() {
2641
2642 /* The GNU C library defines this for functions which it implements
2643 to always fail with ENOSYS. Some functions are actually named
2644 something starting with __ and the normal name is an alias. */
2645 #if defined (__stub__ruserpass) || defined (__stub____ruserpass)
2646 choke me
2647 #else
2648 _ruserpass();
2649 #endif
2650
2651 ; return 0; }
2652 EOF
2653 if { (eval echo configure:2654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2654 rm -rf conftest*
2655 eval "ac_cv_func__ruserpass=yes"
2656 else
2657 echo "configure: failed program was:" >&5
2658 cat conftest.$ac_ext >&5
2659 rm -rf conftest*
2660 eval "ac_cv_func__ruserpass=no"
2661 fi
2662 rm -f conftest*
2663 fi
2664
2665 if eval "test \"`echo '$ac_cv_func_'_ruserpass`\" = yes"; then
2666 echo "$ac_t""yes" 1>&6
2667 :
2668 else
2669 echo "$ac_t""no" 1>&6
2670 echo $ac_n "checking for _ruserpass in -lsocket""... $ac_c" 1>&6
2671 echo "configure:2672: checking for _ruserpass in -lsocket" >&5
2672 ac_lib_var=`echo socket'_'_ruserpass | sed 'y%./+-%__p_%'`
2673 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2674 echo $ac_n "(cached) $ac_c" 1>&6
2675 else
2676 ac_save_LIBS="$LIBS"
2677 LIBS="-lsocket $LIBS"
2678 cat > conftest.$ac_ext <<EOF
2679 #line 2680 "configure"
2680 #include "confdefs.h"
2681 /* Override any gcc2 internal prototype to avoid an error. */
2682 /* We use char because int might match the return type of a gcc2
2683 builtin and then its argument prototype would still apply. */
2684 char _ruserpass();
2685
2686 int main() {
2687 _ruserpass()
2688 ; return 0; }
2689 EOF
2690 if { (eval echo configure:2691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2691 rm -rf conftest*
2692 eval "ac_cv_lib_$ac_lib_var=yes"
2693 else
2694 echo "configure: failed program was:" >&5
2695 cat conftest.$ac_ext >&5
2696 rm -rf conftest*
2697 eval "ac_cv_lib_$ac_lib_var=no"
2698 fi
2699 rm -f conftest*
2700 LIBS="$ac_save_LIBS"
2701
2702 fi
2703 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2704 echo "$ac_t""yes" 1>&6
2705 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
2706 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2707 cat >> confdefs.h <<EOF
2708 #define $ac_tr_lib 1
2709 EOF
2710
2711 LIBS="-lsocket $LIBS"
2712
2713 else
2714 echo "$ac_t""no" 1>&6
2715 fi
2716
2717 fi
2718
2719 fi
2720
2721 if test x$ac_cv_func_ruserpass = xno; then
2722 if test x$ac_cv_func__ruserpass = xyes -o x$ac_cv_lib_socket__ruserpass = xyes; then
2723 cat >> confdefs.h <<\EOF
2724 #define ruserpass _ruserpass
2725 EOF
2726
2727 else
2728 LIBOBJS="$LIBOBJS ruserpass.o"
2729 fi
2730 fi
2731
2732
2733 termcap_curses_order="termcap curses ncurses"
2734 for lib in $termcap_curses_order; do
2735 echo $ac_n "checking for tgetent in -l${lib}""... $ac_c" 1>&6
2736 echo "configure:2737: checking for tgetent in -l${lib}" >&5
2737 ac_lib_var=`echo ${lib}'_'tgetent | sed 'y%./+-%__p_%'`
2738 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2739 echo $ac_n "(cached) $ac_c" 1>&6
2740 else
2741 ac_save_LIBS="$LIBS"
2742 LIBS="-l${lib} $LIBS"
2743 cat > conftest.$ac_ext <<EOF
2744 #line 2745 "configure"
2745 #include "confdefs.h"
2746 /* Override any gcc2 internal prototype to avoid an error. */
2747 /* We use char because int might match the return type of a gcc2
2748 builtin and then its argument prototype would still apply. */
2749 char tgetent();
2750
2751 int main() {
2752 tgetent()
2753 ; return 0; }
2754 EOF
2755 if { (eval echo configure:2756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2756 rm -rf conftest*
2757 eval "ac_cv_lib_$ac_lib_var=yes"
2758 else
2759 echo "configure: failed program was:" >&5
2760 cat conftest.$ac_ext >&5
2761 rm -rf conftest*
2762 eval "ac_cv_lib_$ac_lib_var=no"
2763 fi
2764 rm -f conftest*
2765 LIBS="$ac_save_LIBS"
2766
2767 fi
2768 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2769 echo "$ac_t""yes" 1>&6
2770 TERMLIB="-l$lib"; break
2771 else
2772 echo "$ac_t""no" 1>&6
2773 fi
2774
2775 done
2776
2777 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
2778 echo "configure:2779: checking for dbm_open" >&5
2779 if eval "test \"`echo '$''{'ac_cv_func_dbm_open'+set}'`\" = set"; then
2780 echo $ac_n "(cached) $ac_c" 1>&6
2781 else
2782 cat > conftest.$ac_ext <<EOF
2783 #line 2784 "configure"
2784 #include "confdefs.h"
2785 /* System header to define __stub macros and hopefully few prototypes,
2786 which can conflict with char dbm_open(); below. */
2787 #include <assert.h>
2788 /* Override any gcc2 internal prototype to avoid an error. */
2789 /* We use char because int might match the return type of a gcc2
2790 builtin and then its argument prototype would still apply. */
2791 char dbm_open();
2792
2793 int main() {
2794
2795 /* The GNU C library defines this for functions which it implements
2796 to always fail with ENOSYS. Some functions are actually named
2797 something starting with __ and the normal name is an alias. */
2798 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
2799 choke me
2800 #else
2801 dbm_open();
2802 #endif
2803
2804 ; return 0; }
2805 EOF
2806 if { (eval echo configure:2807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2807 rm -rf conftest*
2808 eval "ac_cv_func_dbm_open=yes"
2809 else
2810 echo "configure: failed program was:" >&5
2811 cat conftest.$ac_ext >&5
2812 rm -rf conftest*
2813 eval "ac_cv_func_dbm_open=no"
2814 fi
2815 rm -f conftest*
2816 fi
2817
2818 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
2819 echo "$ac_t""yes" 1>&6
2820 :
2821 else
2822 echo "$ac_t""no" 1>&6
2823 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
2824 echo "configure:2825: checking for dbm_open in -lndbm" >&5
2825 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-%__p_%'`
2826 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2827 echo $ac_n "(cached) $ac_c" 1>&6
2828 else
2829 ac_save_LIBS="$LIBS"
2830 LIBS="-lndbm $LIBS"
2831 cat > conftest.$ac_ext <<EOF
2832 #line 2833 "configure"
2833 #include "confdefs.h"
2834 /* Override any gcc2 internal prototype to avoid an error. */
2835 /* We use char because int might match the return type of a gcc2
2836 builtin and then its argument prototype would still apply. */
2837 char dbm_open();
2838
2839 int main() {
2840 dbm_open()
2841 ; return 0; }
2842 EOF
2843 if { (eval echo configure:2844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2844 rm -rf conftest*
2845 eval "ac_cv_lib_$ac_lib_var=yes"
2846 else
2847 echo "configure: failed program was:" >&5
2848 cat conftest.$ac_ext >&5
2849 rm -rf conftest*
2850 eval "ac_cv_lib_$ac_lib_var=no"
2851 fi
2852 rm -f conftest*
2853 LIBS="$ac_save_LIBS"
2854
2855 fi
2856 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2857 echo "$ac_t""yes" 1>&6
2858 ac_tr_lib=HAVE_LIB`echo ndbm | sed -e 's/^a-zA-Z0-9_/_/g' \
2859 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2860 cat >> confdefs.h <<EOF
2861 #define $ac_tr_lib 1
2862 EOF
2863
2864 LIBS="-lndbm $LIBS"
2865
2866 else
2867 echo "$ac_t""no" 1>&6
2868 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
2869 echo "configure:2870: checking for dbm_open in -ldbm" >&5
2870 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-%__p_%'`
2871 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2872 echo $ac_n "(cached) $ac_c" 1>&6
2873 else
2874 ac_save_LIBS="$LIBS"
2875 LIBS="-ldbm $LIBS"
2876 cat > conftest.$ac_ext <<EOF
2877 #line 2878 "configure"
2878 #include "confdefs.h"
2879 /* Override any gcc2 internal prototype to avoid an error. */
2880 /* We use char because int might match the return type of a gcc2
2881 builtin and then its argument prototype would still apply. */
2882 char dbm_open();
2883
2884 int main() {
2885 dbm_open()
2886 ; return 0; }
2887 EOF
2888 if { (eval echo configure:2889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2889 rm -rf conftest*
2890 eval "ac_cv_lib_$ac_lib_var=yes"
2891 else
2892 echo "configure: failed program was:" >&5
2893 cat conftest.$ac_ext >&5
2894 rm -rf conftest*
2895 eval "ac_cv_lib_$ac_lib_var=no"
2896 fi
2897 rm -f conftest*
2898 LIBS="$ac_save_LIBS"
2899
2900 fi
2901 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2902 echo "$ac_t""yes" 1>&6
2903 ac_tr_lib=HAVE_LIB`echo dbm | sed -e 's/^a-zA-Z0-9_/_/g' \
2904 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2905 cat >> confdefs.h <<EOF
2906 #define $ac_tr_lib 1
2907 EOF
2908
2909 LIBS="-ldbm $LIBS"
2910
2911 else
2912 echo "$ac_t""no" 1>&6
2913 fi
2914
2915 fi
2916
2917 fi
2918
2919
2920 if test x$with_hesiod != x -a x$with_hesiod != xno; then
2921 if test x$with_hesiod != xyes; then
2922 HESIOD_INCLUDES="-I$with_hesiod/include"
2923 HESIOD_LIBS="-L$with_hesiod/lib"
2924 fi
2925 echo $ac_n "checking for res_send""... $ac_c" 1>&6
2926 echo "configure:2927: checking for res_send" >&5
2927 if eval "test \"`echo '$''{'ac_cv_func_res_send'+set}'`\" = set"; then
2928 echo $ac_n "(cached) $ac_c" 1>&6
2929 else
2930 cat > conftest.$ac_ext <<EOF
2931 #line 2932 "configure"
2932 #include "confdefs.h"
2933 /* System header to define __stub macros and hopefully few prototypes,
2934 which can conflict with char res_send(); below. */
2935 #include <assert.h>
2936 /* Override any gcc2 internal prototype to avoid an error. */
2937 /* We use char because int might match the return type of a gcc2
2938 builtin and then its argument prototype would still apply. */
2939 char res_send();
2940
2941 int main() {
2942
2943 /* The GNU C library defines this for functions which it implements
2944 to always fail with ENOSYS. Some functions are actually named
2945 something starting with __ and the normal name is an alias. */
2946 #if defined (__stub_res_send) || defined (__stub___res_send)
2947 choke me
2948 #else
2949 res_send();
2950 #endif
2951
2952 ; return 0; }
2953 EOF
2954 if { (eval echo configure:2955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2955 rm -rf conftest*
2956 eval "ac_cv_func_res_send=yes"
2957 else
2958 echo "configure: failed program was:" >&5
2959 cat conftest.$ac_ext >&5
2960 rm -rf conftest*
2961 eval "ac_cv_func_res_send=no"
2962 fi
2963 rm -f conftest*
2964 fi
2965
2966 if eval "test \"`echo '$ac_cv_func_'res_send`\" = yes"; then
2967 echo "$ac_t""yes" 1>&6
2968 :
2969 else
2970 echo "$ac_t""no" 1>&6
2971 echo $ac_n "checking for res_send in -lresolv""... $ac_c" 1>&6
2972 echo "configure:2973: checking for res_send in -lresolv" >&5
2973 ac_lib_var=`echo resolv'_'res_send | sed 'y%./+-%__p_%'`
2974 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2975 echo $ac_n "(cached) $ac_c" 1>&6
2976 else
2977 ac_save_LIBS="$LIBS"
2978 LIBS="-lresolv $LIBS"
2979 cat > conftest.$ac_ext <<EOF
2980 #line 2981 "configure"
2981 #include "confdefs.h"
2982 /* Override any gcc2 internal prototype to avoid an error. */
2983 /* We use char because int might match the return type of a gcc2
2984 builtin and then its argument prototype would still apply. */
2985 char res_send();
2986
2987 int main() {
2988 res_send()
2989 ; return 0; }
2990 EOF
2991 if { (eval echo configure:2992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2992 rm -rf conftest*
2993 eval "ac_cv_lib_$ac_lib_var=yes"
2994 else
2995 echo "configure: failed program was:" >&5
2996 cat conftest.$ac_ext >&5
2997 rm -rf conftest*
2998 eval "ac_cv_lib_$ac_lib_var=no"
2999 fi
3000 rm -f conftest*
3001 LIBS="$ac_save_LIBS"
3002
3003 fi
3004 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3005 echo "$ac_t""yes" 1>&6
3006 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
3007 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
3008 cat >> confdefs.h <<EOF
3009 #define $ac_tr_lib 1
3010 EOF
3011
3012 LIBS="-lresolv $LIBS"
3013
3014 else
3015 echo "$ac_t""no" 1>&6
3016 fi
3017
3018 fi
3019
3020 echo $ac_n "checking for hes_resolve in -lhesiod""... $ac_c" 1>&6
3021 echo "configure:3022: checking for hes_resolve in -lhesiod" >&5
3022 ac_lib_var=`echo hesiod'_'hes_resolve | sed 'y%./+-%__p_%'`
3023 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3024 echo $ac_n "(cached) $ac_c" 1>&6
3025 else
3026 ac_save_LIBS="$LIBS"
3027 LIBS="-lhesiod $HESIOD_LIBS $LIBS"
3028 cat > conftest.$ac_ext <<EOF
3029 #line 3030 "configure"
3030 #include "confdefs.h"
3031 /* Override any gcc2 internal prototype to avoid an error. */
3032 /* We use char because int might match the return type of a gcc2
3033 builtin and then its argument prototype would still apply. */
3034 char hes_resolve();
3035
3036 int main() {
3037 hes_resolve()
3038 ; return 0; }
3039 EOF
3040 if { (eval echo configure:3041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3041 rm -rf conftest*
3042 eval "ac_cv_lib_$ac_lib_var=yes"
3043 else
3044 echo "configure: failed program was:" >&5
3045 cat conftest.$ac_ext >&5
3046 rm -rf conftest*
3047 eval "ac_cv_lib_$ac_lib_var=no"
3048 fi
3049 rm -f conftest*
3050 LIBS="$ac_save_LIBS"
3051
3052 fi
3053 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3054 echo "$ac_t""yes" 1>&6
3055 HESIOD_LIBS="$HESIOD_LIBS -lhesiod"
3056 else
3057 echo "$ac_t""no" 1>&6
3058 { echo "configure: error: Hesiod library not found" 1>&2; exit 1; }
3059 fi
3060
3061 fi
3062
3063 if test x$with_krb4 != x -a x$with_krb4 != xno; then
3064 if test x$with_krb4 != xyes; then
3065 KRB4_INCLUDES="-I$with_krb4/include"
3066 if test -d "$with_krb4/include/kerberosIV"; then
3067 KRB4_INCLUDES="$KRB4_INCLUDES -I$with_krb4/include/kerberosIV"
3068 fi
3069 KRB4_LIBS="-L$with_krb4/lib"
3070 elif test -d /usr/include/kerberosIV; then
3071 KRB4_INCLUDES="-I/usr/include/kerberosIV"
3072 fi
3073 echo $ac_n "checking for krb_rd_req in -lkrb4""... $ac_c" 1>&6
3074 echo "configure:3075: checking for krb_rd_req in -lkrb4" >&5
3075 ac_lib_var=`echo krb4'_'krb_rd_req | sed 'y%./+-%__p_%'`
3076 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3077 echo $ac_n "(cached) $ac_c" 1>&6
3078 else
3079 ac_save_LIBS="$LIBS"
3080 LIBS="-lkrb4 $KRB4_LIBS -ldes425 -lkrb5 -lcrypto -lcom_err $LIBS"
3081 cat > conftest.$ac_ext <<EOF
3082 #line 3083 "configure"
3083 #include "confdefs.h"
3084 /* Override any gcc2 internal prototype to avoid an error. */
3085 /* We use char because int might match the return type of a gcc2
3086 builtin and then its argument prototype would still apply. */
3087 char krb_rd_req();
3088
3089 int main() {
3090 krb_rd_req()
3091 ; return 0; }
3092 EOF
3093 if { (eval echo configure:3094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3094 rm -rf conftest*
3095 eval "ac_cv_lib_$ac_lib_var=yes"
3096 else
3097 echo "configure: failed program was:" >&5
3098 cat conftest.$ac_ext >&5
3099 rm -rf conftest*
3100 eval "ac_cv_lib_$ac_lib_var=no"
3101 fi
3102 rm -f conftest*
3103 LIBS="$ac_save_LIBS"
3104
3105 fi
3106 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3107 echo "$ac_t""yes" 1>&6
3108 KRB4_LIBS="$KRB4_LIBS -lkrb4 -ldes425 -lkrb5 -lcrypto -lcom_err"
3109 else
3110 echo "$ac_t""no" 1>&6
3111 echo $ac_n "checking for krb_rd_req in -lkrb""... $ac_c" 1>&6
3112 echo "configure:3113: checking for krb_rd_req in -lkrb" >&5
3113 ac_lib_var=`echo krb'_'krb_rd_req | sed 'y%./+-%__p_%'`
3114 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3115 echo $ac_n "(cached) $ac_c" 1>&6
3116 else
3117 ac_save_LIBS="$LIBS"
3118 LIBS="-lkrb $KRB4_LIBS -ldes $LIBS"
3119 cat > conftest.$ac_ext <<EOF
3120 #line 3121 "configure"
3121 #include "confdefs.h"
3122 /* Override any gcc2 internal prototype to avoid an error. */
3123 /* We use char because int might match the return type of a gcc2
3124 builtin and then its argument prototype would still apply. */
3125 char krb_rd_req();
3126
3127 int main() {
3128 krb_rd_req()
3129 ; return 0; }
3130 EOF
3131 if { (eval echo configure:3132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3132 rm -rf conftest*
3133 eval "ac_cv_lib_$ac_lib_var=yes"
3134 else
3135 echo "configure: failed program was:" >&5
3136 cat conftest.$ac_ext >&5
3137 rm -rf conftest*
3138 eval "ac_cv_lib_$ac_lib_var=no"
3139 fi
3140 rm -f conftest*
3141 LIBS="$ac_save_LIBS"
3142
3143 fi
3144 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3145 echo "$ac_t""yes" 1>&6
3146 KRB4_LIBS="-lkrb -ldes"
3147 else
3148 echo "$ac_t""no" 1>&6
3149 { echo "configure: error: Kerberos 4 libraries not found" 1>&2; exit 1; }
3150 fi
3151
3152 fi
3153
3154 fi
3155
3156
3157 nmh_save_LIBS="$LIBS"
3158 LIBS="$TERMLIB $LIBS"
3159
3160 echo $ac_n "checking if an include file defines ospeed""... $ac_c" 1>&6
3161 echo "configure:3162: checking if an include file defines ospeed" >&5
3162 if eval "test \"`echo '$''{'nmh_cv_decl_ospeed_include_defines'+set}'`\" = set"; then
3163 echo $ac_n "(cached) $ac_c" 1>&6
3164 else
3165 cat > conftest.$ac_ext <<EOF
3166 #line 3167 "configure"
3167 #include "confdefs.h"
3168 #include <sys/types.h>
3169 #if HAVE_TERMIOS_H
3170 #include <termios.h>
3171 #endif
3172 #if HAVE_TERMCAP_H
3173 #include <termcap.h>
3174 #endif
3175 int main() {
3176 ospeed = 0;
3177 ; return 0; }
3178 EOF
3179 if { (eval echo configure:3180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3180 rm -rf conftest*
3181 nmh_cv_decl_ospeed_include_defines=yes
3182 else
3183 echo "configure: failed program was:" >&5
3184 cat conftest.$ac_ext >&5
3185 rm -rf conftest*
3186 nmh_cv_decl_ospeed_include_defines=no
3187 fi
3188 rm -f conftest*
3189 fi
3190
3191 echo "$ac_t""$nmh_cv_decl_ospeed_include_defines" 1>&6
3192
3193 if test $nmh_cv_decl_ospeed_include_defines = no; then
3194 echo $ac_n "checking if you must define ospeed""... $ac_c" 1>&6
3195 echo "configure:3196: checking if you must define ospeed" >&5
3196 if eval "test \"`echo '$''{'nmh_cv_decl_ospeed_must_define'+set}'`\" = set"; then
3197 echo $ac_n "(cached) $ac_c" 1>&6
3198 else
3199 cat > conftest.$ac_ext <<EOF
3200 #line 3201 "configure"
3201 #include "confdefs.h"
3202
3203 int main() {
3204 extern short ospeed; ospeed = 0;
3205 ; return 0; }
3206 EOF
3207 if { (eval echo configure:3208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3208 rm -rf conftest*
3209 nmh_cv_decl_ospeed_must_define=yes
3210 else
3211 echo "configure: failed program was:" >&5
3212 cat conftest.$ac_ext >&5
3213 rm -rf conftest*
3214 nmh_cv_decl_ospeed_must_define=no
3215 fi
3216 rm -f conftest*
3217 fi
3218
3219 echo "$ac_t""$nmh_cv_decl_ospeed_must_define" 1>&6
3220 fi
3221
3222 if test $nmh_cv_decl_ospeed_include_defines = yes; then
3223 cat >> confdefs.h <<\EOF
3224 #define HAVE_OSPEED 1
3225 EOF
3226
3227 elif test $nmh_cv_decl_ospeed_must_define = yes; then
3228 cat >> confdefs.h <<\EOF
3229 #define HAVE_OSPEED 1
3230 EOF
3231
3232 cat >> confdefs.h <<\EOF
3233 #define MUST_DEFINE_OSPEED 1
3234 EOF
3235
3236 fi
3237
3238
3239 LIBS="$nmh_save_LIBS"
3240
3241 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3242 echo "configure:3243: checking return type of signal handlers" >&5
3243 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3244 echo $ac_n "(cached) $ac_c" 1>&6
3245 else
3246 cat > conftest.$ac_ext <<EOF
3247 #line 3248 "configure"
3248 #include "confdefs.h"
3249 #include <sys/types.h>
3250 #include <signal.h>
3251 #ifdef signal
3252 #undef signal
3253 #endif
3254 #ifdef __cplusplus
3255 extern "C" void (*signal (int, void (*)(int)))(int);
3256 #else
3257 void (*signal ()) ();
3258 #endif
3259
3260 int main() {
3261 int i;
3262 ; return 0; }
3263 EOF
3264 if { (eval echo configure:3265: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3265 rm -rf conftest*
3266 ac_cv_type_signal=void
3267 else
3268 echo "configure: failed program was:" >&5
3269 cat conftest.$ac_ext >&5
3270 rm -rf conftest*
3271 ac_cv_type_signal=int
3272 fi
3273 rm -f conftest*
3274 fi
3275
3276 echo "$ac_t""$ac_cv_type_signal" 1>&6
3277 cat >> confdefs.h <<EOF
3278 #define RETSIGTYPE $ac_cv_type_signal
3279 EOF
3280
3281
3282 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3283 echo "configure:3284: checking for pid_t" >&5
3284 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3285 echo $ac_n "(cached) $ac_c" 1>&6
3286 else
3287 cat > conftest.$ac_ext <<EOF
3288 #line 3289 "configure"
3289 #include "confdefs.h"
3290 #include <sys/types.h>
3291 #if STDC_HEADERS
3292 #include <stdlib.h>
3293 #include <stddef.h>
3294 #endif
3295 EOF
3296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3297 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3298 rm -rf conftest*
3299 ac_cv_type_pid_t=yes
3300 else
3301 rm -rf conftest*
3302 ac_cv_type_pid_t=no
3303 fi
3304 rm -f conftest*
3305
3306 fi
3307 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3308 if test $ac_cv_type_pid_t = no; then
3309 cat >> confdefs.h <<\EOF
3310 #define pid_t int
3311 EOF
3312
3313 fi
3314
3315 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3316 echo "configure:3317: checking for off_t" >&5
3317 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3318 echo $ac_n "(cached) $ac_c" 1>&6
3319 else
3320 cat > conftest.$ac_ext <<EOF
3321 #line 3322 "configure"
3322 #include "confdefs.h"
3323 #include <sys/types.h>
3324 #if STDC_HEADERS
3325 #include <stdlib.h>
3326 #include <stddef.h>
3327 #endif
3328 EOF
3329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3330 egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3331 rm -rf conftest*
3332 ac_cv_type_off_t=yes
3333 else
3334 rm -rf conftest*
3335 ac_cv_type_off_t=no
3336 fi
3337 rm -f conftest*
3338
3339 fi
3340 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3341 if test $ac_cv_type_off_t = no; then
3342 cat >> confdefs.h <<\EOF
3343 #define off_t long
3344 EOF
3345
3346 fi
3347
3348 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3349 echo "configure:3350: checking for uid_t in sys/types.h" >&5
3350 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3351 echo $ac_n "(cached) $ac_c" 1>&6
3352 else
3353 cat > conftest.$ac_ext <<EOF
3354 #line 3355 "configure"
3355 #include "confdefs.h"
3356 #include <sys/types.h>
3357 EOF
3358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3359 egrep "uid_t" >/dev/null 2>&1; then
3360 rm -rf conftest*
3361 ac_cv_type_uid_t=yes
3362 else
3363 rm -rf conftest*
3364 ac_cv_type_uid_t=no
3365 fi
3366 rm -f conftest*
3367
3368 fi
3369
3370 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3371 if test $ac_cv_type_uid_t = no; then
3372 cat >> confdefs.h <<\EOF
3373 #define uid_t int
3374 EOF
3375
3376 cat >> confdefs.h <<\EOF
3377 #define gid_t int
3378 EOF
3379
3380 fi
3381
3382 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3383 echo "configure:3384: checking for mode_t" >&5
3384 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3385 echo $ac_n "(cached) $ac_c" 1>&6
3386 else
3387 cat > conftest.$ac_ext <<EOF
3388 #line 3389 "configure"
3389 #include "confdefs.h"
3390 #include <sys/types.h>
3391 #if STDC_HEADERS
3392 #include <stdlib.h>
3393 #include <stddef.h>
3394 #endif
3395 EOF
3396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3397 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3398 rm -rf conftest*
3399 ac_cv_type_mode_t=yes
3400 else
3401 rm -rf conftest*
3402 ac_cv_type_mode_t=no
3403 fi
3404 rm -f conftest*
3405
3406 fi
3407 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3408 if test $ac_cv_type_mode_t = no; then
3409 cat >> confdefs.h <<\EOF
3410 #define mode_t int
3411 EOF
3412
3413 fi
3414
3415 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3416 echo "configure:3417: checking for size_t" >&5
3417 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3418 echo $ac_n "(cached) $ac_c" 1>&6
3419 else
3420 cat > conftest.$ac_ext <<EOF
3421 #line 3422 "configure"
3422 #include "confdefs.h"
3423 #include <sys/types.h>
3424 #if STDC_HEADERS
3425 #include <stdlib.h>
3426 #include <stddef.h>
3427 #endif
3428 EOF
3429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3430 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3431 rm -rf conftest*
3432 ac_cv_type_size_t=yes
3433 else
3434 rm -rf conftest*
3435 ac_cv_type_size_t=no
3436 fi
3437 rm -f conftest*
3438
3439 fi
3440 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3441 if test $ac_cv_type_size_t = no; then
3442 cat >> confdefs.h <<\EOF
3443 #define size_t unsigned
3444 EOF
3445
3446 fi
3447
3448
3449 echo $ac_n "checking for sigset_t""... $ac_c" 1>&6
3450 echo "configure:3451: checking for sigset_t" >&5
3451 if eval "test \"`echo '$''{'nmh_cv_type_sigset_t'+set}'`\" = set"; then
3452 echo $ac_n "(cached) $ac_c" 1>&6
3453 else
3454 cat > conftest.$ac_ext <<EOF
3455 #line 3456 "configure"
3456 #include "confdefs.h"
3457 #include <sys/types.h>
3458 #include <signal.h>
3459 int main() {
3460 sigset_t tempsigset;
3461 ; return 0; }
3462 EOF
3463 if { (eval echo configure:3464: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3464 rm -rf conftest*
3465 nmh_cv_type_sigset_t=yes
3466 else
3467 echo "configure: failed program was:" >&5
3468 cat conftest.$ac_ext >&5
3469 rm -rf conftest*
3470 nmh_cv_type_sigset_t=no
3471 fi
3472 rm -f conftest*
3473 fi
3474
3475 echo "$ac_t""$nmh_cv_type_sigset_t" 1>&6
3476 if test $nmh_cv_type_sigset_t = no; then
3477 cat >> confdefs.h <<\EOF
3478 #define sigset_t unsigned int
3479 EOF
3480
3481 fi
3482
3483 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
3484 echo "configure:3485: checking for st_blksize in struct stat" >&5
3485 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
3486 echo $ac_n "(cached) $ac_c" 1>&6
3487 else
3488 cat > conftest.$ac_ext <<EOF
3489 #line 3490 "configure"
3490 #include "confdefs.h"
3491 #include <sys/types.h>
3492 #include <sys/stat.h>
3493 int main() {
3494 struct stat s; s.st_blksize;
3495 ; return 0; }
3496 EOF
3497 if { (eval echo configure:3498: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3498 rm -rf conftest*
3499 ac_cv_struct_st_blksize=yes
3500 else
3501 echo "configure: failed program was:" >&5
3502 cat conftest.$ac_ext >&5
3503 rm -rf conftest*
3504 ac_cv_struct_st_blksize=no
3505 fi
3506 rm -f conftest*
3507 fi
3508
3509 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
3510 if test $ac_cv_struct_st_blksize = yes; then
3511 cat >> confdefs.h <<\EOF
3512 #define HAVE_ST_BLKSIZE 1
3513 EOF
3514
3515 fi
3516
3517
3518 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
3519 echo "configure:3520: checking for tm_gmtoff in struct tm" >&5
3520 if eval "test \"`echo '$''{'nmh_cv_struct_tm_gmtoff'+set}'`\" = set"; then
3521 echo $ac_n "(cached) $ac_c" 1>&6
3522 else
3523 cat > conftest.$ac_ext <<EOF
3524 #line 3525 "configure"
3525 #include "confdefs.h"
3526 #ifdef TIME_WITH_SYS_TIME
3527 # include <sys/time.h>
3528 # include <time.h>
3529 #else
3530 # ifdef TM_IN_SYS_TIME
3531 # include <sys/time.h>
3532 # else
3533 # include <time.h>
3534 # endif
3535 #endif
3536 int main() {
3537 struct tm temptm; temptm.tm_gmtoff = 0;
3538 ; return 0; }
3539 EOF
3540 if { (eval echo configure:3541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3541 rm -rf conftest*
3542 nmh_cv_struct_tm_gmtoff=yes
3543 else
3544 echo "configure: failed program was:" >&5
3545 cat conftest.$ac_ext >&5
3546 rm -rf conftest*
3547 nmh_cv_struct_tm_gmtoff=no
3548 fi
3549 rm -f conftest*
3550 fi
3551
3552 echo "$ac_t""$nmh_cv_struct_tm_gmtoff" 1>&6
3553 if test $nmh_cv_struct_tm_gmtoff = yes; then
3554 cat >> confdefs.h <<\EOF
3555 #define HAVE_TM_GMTOFF 1
3556 EOF
3557
3558 fi
3559
3560 echo $ac_n "checking what style of signals to use""... $ac_c" 1>&6
3561 echo "configure:3562: checking what style of signals to use" >&5
3562 if test $ac_cv_func_sigaction = yes -a $ac_cv_func_sigprocmask = yes; then
3563 signals_style=POSIX_SIGNALS
3564 cat >> confdefs.h <<\EOF
3565 #define POSIX_SIGNALS 1
3566 EOF
3567
3568 cat >> confdefs.h <<\EOF
3569 #define RELIABLE_SIGNALS 1
3570 EOF
3571
3572 elif test $ac_cv_func_sigblock = yes -a $ac_cv_func_sigsetmask = yes; then
3573 signals_style=BSD_SIGNALS
3574 cat >> confdefs.h <<\EOF
3575 #define BSD_SIGNALS 1
3576 EOF
3577
3578 cat >> confdefs.h <<\EOF
3579 #define RELIABLE_SIGNALS 1
3580 EOF
3581
3582 elif test $ac_cv_func_sighold = yes -a $ac_cv_func_sigrelse = yes; then
3583 signals_style=SYSV_SIGNALS
3584 cat >> confdefs.h <<\EOF
3585 #define SYSV_SIGNALS 1
3586 EOF
3587
3588 else
3589 signals_style=NO_SIGNAL_BLOCKING
3590 cat >> confdefs.h <<\EOF
3591 #define NO_SIGNAL_BLOCKING 1
3592 EOF
3593
3594 fi
3595
3596 echo "$ac_t""$signals_style" 1>&6
3597
3598 echo $ac_n "checking where signal.h is located""... $ac_c" 1>&6
3599 echo "configure:3600: checking where signal.h is located" >&5
3600 if eval "test \"`echo '$''{'nmh_cv_path_signal_h'+set}'`\" = set"; then
3601 echo $ac_n "(cached) $ac_c" 1>&6
3602 else
3603 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
3604 test -f $SIGNAL_H && \
3605 grep '#[ ]*define[ ][ ]*SIG[0-9A-Z]*[ ]*[0-9][0-9]*' $SIGNAL_H > /dev/null && \
3606 break
3607 done
3608 nmh_cv_path_signal_h=$SIGNAL_H
3609
3610 fi
3611
3612 echo "$ac_t""$nmh_cv_path_signal_h" 1>&6
3613 SIGNAL_H=$nmh_cv_path_signal_h
3614
3615 trap '' 1 2 15
3616 cat > confcache <<\EOF
3617 # This file is a shell script that caches the results of configure
3618 # tests run on this system so they can be shared between configure
3619 # scripts and configure runs. It is not useful on other systems.
3620 # If it contains results you don't want to keep, you may remove or edit it.
3621 #
3622 # By default, configure uses ./config.cache as the cache file,
3623 # creating it if it does not exist already. You can give configure
3624 # the --cache-file=FILE option to use a different cache file; that is
3625 # what configure does when it calls configure scripts in
3626 # subdirectories, so they share the cache.
3627 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3628 # config.status only pays attention to the cache file if you give it the
3629 # --recheck option to rerun configure.
3630 #
3631 EOF
3632 # The following way of writing the cache mishandles newlines in values,
3633 # but we know of no workaround that is simple, portable, and efficient.
3634 # So, don't put newlines in cache variables' values.
3635 # Ultrix sh set writes to stderr and can't be redirected directly,
3636 # and sets the high bit in the cache file unless we assign to the vars.
3637 (set) 2>&1 |
3638 case `(ac_space=' '; set) 2>&1` in
3639 *ac_space=\ *)
3640 # `set' does not quote correctly, so add quotes (double-quote substitution
3641 # turns \\\\ into \\, and sed turns \\ into \).
3642 sed -n \
3643 -e "s/'/'\\\\''/g" \
3644 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3645 ;;
3646 *)
3647 # `set' quotes correctly as required by POSIX, so do not add quotes.
3648 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3649 ;;
3650 esac >> confcache
3651 if cmp -s $cache_file confcache; then
3652 :
3653 else
3654 if test -w $cache_file; then
3655 echo "updating cache $cache_file"
3656 cat confcache > $cache_file
3657 else
3658 echo "not updating unwritable cache $cache_file"
3659 fi
3660 fi
3661 rm -f confcache
3662
3663 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3664
3665 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3666 # Let make expand exec_prefix.
3667 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3668
3669 # Any assignment to VPATH causes Sun make to only execute
3670 # the first set of double-colon rules, so remove it if not needed.
3671 # If there is a colon in the path, we need to keep it.
3672 if test "x$srcdir" = x.; then
3673 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3674 fi
3675
3676 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3677
3678 DEFS=-DHAVE_CONFIG_H
3679
3680 # Without the "./", some shells look in PATH for config.status.
3681 : ${CONFIG_STATUS=./config.status}
3682
3683 echo creating $CONFIG_STATUS
3684 rm -f $CONFIG_STATUS
3685 cat > $CONFIG_STATUS <<EOF
3686 #! /bin/sh
3687 # Generated automatically by configure.
3688 # Run this file to recreate the current configuration.
3689 # This directory was configured as follows,
3690 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3691 #
3692 # $0 $ac_configure_args
3693 #
3694 # Compiler output produced by configure, useful for debugging
3695 # configure, is in ./config.log if it exists.
3696
3697 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3698 for ac_option
3699 do
3700 case "\$ac_option" in
3701 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3702 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3703 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3704 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3705 echo "$CONFIG_STATUS generated by autoconf version 2.12"
3706 exit 0 ;;
3707 -help | --help | --hel | --he | --h)
3708 echo "\$ac_cs_usage"; exit 0 ;;
3709 *) echo "\$ac_cs_usage"; exit 1 ;;
3710 esac
3711 done
3712
3713 ac_given_srcdir=$srcdir
3714 ac_given_INSTALL="$INSTALL"
3715
3716 trap 'rm -fr `echo "Makefile config/Makefile h/Makefile sbr/Makefile uip/Makefile \
3717 zotnet/Makefile zotnet/mts/Makefile zotnet/tws/Makefile \
3718 zotnet/mf/Makefile zotnet/bboards/Makefile mts/Makefile \
3719 mts/smtp/Makefile mts/sendmail/Makefile mts/mmdf/Makefile \
3720 etc/Makefile man/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3721 EOF
3722 cat >> $CONFIG_STATUS <<EOF
3723
3724 # Protect against being on the right side of a sed subst in config.status.
3725 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3726 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3727 $ac_vpsub
3728 $extrasub
3729 s%@CFLAGS@%$CFLAGS%g
3730 s%@CPPFLAGS@%$CPPFLAGS%g
3731 s%@CXXFLAGS@%$CXXFLAGS%g
3732 s%@DEFS@%$DEFS%g
3733 s%@LDFLAGS@%$LDFLAGS%g
3734 s%@LIBS@%$LIBS%g
3735 s%@exec_prefix@%$exec_prefix%g
3736 s%@prefix@%$prefix%g
3737 s%@program_transform_name@%$program_transform_name%g
3738 s%@bindir@%$bindir%g
3739 s%@sbindir@%$sbindir%g
3740 s%@libexecdir@%$libexecdir%g
3741 s%@datadir@%$datadir%g
3742 s%@sysconfdir@%$sysconfdir%g
3743 s%@sharedstatedir@%$sharedstatedir%g
3744 s%@localstatedir@%$localstatedir%g
3745 s%@libdir@%$libdir%g
3746 s%@includedir@%$includedir%g
3747 s%@oldincludedir@%$oldincludedir%g
3748 s%@infodir@%$infodir%g
3749 s%@mandir@%$mandir%g
3750 s%@VERSION@%$VERSION%g
3751 s%@MTS@%$MTS%g
3752 s%@MTSLIB@%$MTSLIB%g
3753 s%@POPLIB@%$POPLIB%g
3754 s%@POPSED@%$POPSED%g
3755 s%@CC@%$CC%g
3756 s%@SET_MAKE@%$SET_MAKE%g
3757 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3758 s%@INSTALL_DATA@%$INSTALL_DATA%g
3759 s%@RANLIB@%$RANLIB%g
3760 s%@AWK@%$AWK%g
3761 s%@LEX@%$LEX%g
3762 s%@LEXLIB@%$LEXLIB%g
3763 s%@LORDER@%$LORDER%g
3764 s%@TSORT@%$TSORT%g
3765 s%@sendmailpath@%$sendmailpath%g
3766 s%@morepath@%$morepath%g
3767 s%@pagerpath@%$pagerpath%g
3768 s%@vipath@%$vipath%g
3769 s%@editorpath@%$editorpath%g
3770 s%@mailspool@%$mailspool%g
3771 s%@CPP@%$CPP%g
3772 s%@LIBOBJS@%$LIBOBJS%g
3773 s%@TERMLIB@%$TERMLIB%g
3774 s%@HESIOD_INCLUDES@%$HESIOD_INCLUDES%g
3775 s%@HESIOD_LIBS@%$HESIOD_LIBS%g
3776 s%@KRB4_INCLUDES@%$KRB4_INCLUDES%g
3777 s%@KRB4_LIBS@%$KRB4_LIBS%g
3778 s%@SIGNAL_H@%$SIGNAL_H%g
3779
3780 CEOF
3781 EOF
3782
3783 cat >> $CONFIG_STATUS <<\EOF
3784
3785 # Split the substitutions into bite-sized pieces for seds with
3786 # small command number limits, like on Digital OSF/1 and HP-UX.
3787 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3788 ac_file=1 # Number of current file.
3789 ac_beg=1 # First line for current file.
3790 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3791 ac_more_lines=:
3792 ac_sed_cmds=""
3793 while $ac_more_lines; do
3794 if test $ac_beg -gt 1; then
3795 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3796 else
3797 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3798 fi
3799 if test ! -s conftest.s$ac_file; then
3800 ac_more_lines=false
3801 rm -f conftest.s$ac_file
3802 else
3803 if test -z "$ac_sed_cmds"; then
3804 ac_sed_cmds="sed -f conftest.s$ac_file"
3805 else
3806 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3807 fi
3808 ac_file=`expr $ac_file + 1`
3809 ac_beg=$ac_end
3810 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3811 fi
3812 done
3813 if test -z "$ac_sed_cmds"; then
3814 ac_sed_cmds=cat
3815 fi
3816 EOF
3817
3818 cat >> $CONFIG_STATUS <<EOF
3819
3820 CONFIG_FILES=\${CONFIG_FILES-"Makefile config/Makefile h/Makefile sbr/Makefile uip/Makefile \
3821 zotnet/Makefile zotnet/mts/Makefile zotnet/tws/Makefile \
3822 zotnet/mf/Makefile zotnet/bboards/Makefile mts/Makefile \
3823 mts/smtp/Makefile mts/sendmail/Makefile mts/mmdf/Makefile \
3824 etc/Makefile man/Makefile"}
3825 EOF
3826 cat >> $CONFIG_STATUS <<\EOF
3827 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3828 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3829 case "$ac_file" in
3830 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3831 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3832 *) ac_file_in="${ac_file}.in" ;;
3833 esac
3834
3835 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3836
3837 # Remove last slash and all that follows it. Not all systems have dirname.
3838 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3839 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3840 # The file is in a subdirectory.
3841 test ! -d "$ac_dir" && mkdir "$ac_dir"
3842 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3843 # A "../" for each directory in $ac_dir_suffix.
3844 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3845 else
3846 ac_dir_suffix= ac_dots=
3847 fi
3848
3849 case "$ac_given_srcdir" in
3850 .) srcdir=.
3851 if test -z "$ac_dots"; then top_srcdir=.
3852 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3853 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3854 *) # Relative path.
3855 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3856 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3857 esac
3858
3859 case "$ac_given_INSTALL" in
3860 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3861 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3862 esac
3863
3864 echo creating "$ac_file"
3865 rm -f "$ac_file"
3866 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3867 case "$ac_file" in
3868 *Makefile*) ac_comsub="1i\\
3869 # $configure_input" ;;
3870 *) ac_comsub= ;;
3871 esac
3872
3873 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3874 sed -e "$ac_comsub
3875 s%@configure_input@%$configure_input%g
3876 s%@srcdir@%$srcdir%g
3877 s%@top_srcdir@%$top_srcdir%g
3878 s%@INSTALL@%$INSTALL%g
3879 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3880 fi; done
3881 rm -f conftest.s*
3882
3883 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3884 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3885 #
3886 # ac_d sets the value in "#define NAME VALUE" lines.
3887 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
3888 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
3889 ac_dC='\3'
3890 ac_dD='%g'
3891 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3892 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3893 ac_uB='\([ ]\)%\1#\2define\3'
3894 ac_uC=' '
3895 ac_uD='\4%g'
3896 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3897 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
3898 ac_eB='$%\1#\2define\3'
3899 ac_eC=' '
3900 ac_eD='%g'
3901
3902 if test "${CONFIG_HEADERS+set}" != set; then
3903 EOF
3904 cat >> $CONFIG_STATUS <<EOF
3905 CONFIG_HEADERS="config.h"
3906 EOF
3907 cat >> $CONFIG_STATUS <<\EOF
3908 fi
3909 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3910 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3911 case "$ac_file" in
3912 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3913 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3914 *) ac_file_in="${ac_file}.in" ;;
3915 esac
3916
3917 echo creating $ac_file
3918
3919 rm -f conftest.frag conftest.in conftest.out
3920 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3921 cat $ac_file_inputs > conftest.in
3922
3923 EOF
3924
3925 # Transform confdefs.h into a sed script conftest.vals that substitutes
3926 # the proper values into config.h.in to produce config.h. And first:
3927 # Protect against being on the right side of a sed subst in config.status.
3928 # Protect against being in an unquoted here document in config.status.
3929 rm -f conftest.vals
3930 cat > conftest.hdr <<\EOF
3931 s/[\\&%]/\\&/g
3932 s%[\\$`]%\\&%g
3933 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3934 s%ac_d%ac_u%gp
3935 s%ac_u%ac_e%gp
3936 EOF
3937 sed -n -f conftest.hdr confdefs.h > conftest.vals
3938 rm -f conftest.hdr
3939
3940 # This sed command replaces #undef with comments. This is necessary, for
3941 # example, in the case of _POSIX_SOURCE, which is predefined and required
3942 # on some systems where configure will not decide to define it.
3943 cat >> conftest.vals <<\EOF
3944 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3945 EOF
3946
3947 # Break up conftest.vals because some shells have a limit on
3948 # the size of here documents, and old seds have small limits too.
3949
3950 rm -f conftest.tail
3951 while :
3952 do
3953 ac_lines=`grep -c . conftest.vals`
3954 # grep -c gives empty output for an empty file on some AIX systems.
3955 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3956 # Write a limited-size here document to conftest.frag.
3957 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3958 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3959 echo 'CEOF
3960 sed -f conftest.frag conftest.in > conftest.out
3961 rm -f conftest.in
3962 mv conftest.out conftest.in
3963 ' >> $CONFIG_STATUS
3964 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3965 rm -f conftest.vals
3966 mv conftest.tail conftest.vals
3967 done
3968 rm -f conftest.vals
3969
3970 cat >> $CONFIG_STATUS <<\EOF
3971 rm -f conftest.frag conftest.h
3972 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3973 cat conftest.in >> conftest.h
3974 rm -f conftest.in
3975 if cmp -s $ac_file conftest.h 2>/dev/null; then
3976 echo "$ac_file is unchanged"
3977 rm -f conftest.h
3978 else
3979 # Remove last slash and all that follows it. Not all systems have dirname.
3980 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3981 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3982 # The file is in a subdirectory.
3983 test ! -d "$ac_dir" && mkdir "$ac_dir"
3984 fi
3985 rm -f $ac_file
3986 mv conftest.h $ac_file
3987 fi
3988 fi; done
3989
3990 EOF
3991 cat >> $CONFIG_STATUS <<EOF
3992
3993 EOF
3994 cat >> $CONFIG_STATUS <<\EOF
3995 \
3996 test -z "$CONFIG_HEADERS" || echo > stamp-h
3997 exit 0
3998 EOF
3999 chmod +x $CONFIG_STATUS
4000 rm -fr confdefs* $ac_clean_files
4001 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4002
4003
4004 eval "nmhbin=${bindir}"; eval "nmhbin2=${nmhbin}"
4005 eval "nmhsysconf=${sysconfdir}"; eval "nmhsysconf2=${nmhsysconf}"
4006 eval "nmhlib=${libdir}"; eval "nmhlib2=${nmhlib}"
4007 eval "nmhman=${mandir}"
4008
4009 echo "
4010 nmh configuration
4011 -----------------
4012 nmh version : ${VERSION}
4013 compiler : ${CC}
4014 compiler flags : ${CFLAGS}
4015 linker flags : ${LDFLAGS}
4016 source code location : ${srcdir}
4017 binary install path : ${nmhbin2}
4018 libary install path : ${nmhlib2}
4019 config files install path : ${nmhsysconf2}
4020 man page install path : ${nmhman}
4021 transport system : ${MTS}
4022 default editor : ${editorpath}
4023 default pager : ${pagerpath}"
4024 echo ""