comparison configure.mac-os-x-tmp @ 0:bce86c4163a3

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