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