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