0
|
1 dnl ====================================================================
|
|
2 dnl Process this file with autoconf to produce a configure script.
|
|
3 dnl ====================================================================
|
|
4 AC_INIT(h/mh.h)
|
|
5
|
|
6 dnl default values
|
|
7 etcdir='${exec_prefix}/lib/mh'
|
|
8 slibdir=
|
|
9 manuals=standard
|
|
10 pagerpath=
|
|
11 SUN40=
|
|
12 SOLARIS=
|
|
13 SYS5=
|
|
14 SVR4=
|
|
15 BSD41A=
|
|
16 BSD42=
|
|
17 BSD43=
|
|
18 BSD44=
|
|
19 sharedlib=off
|
|
20 slflags=
|
|
21 ranlib=on
|
|
22 pop=on
|
|
23 popdir=
|
|
24 popserver=off
|
|
25 bboards=off
|
|
26 bbdelivery=off
|
|
27 bbhome=
|
|
28 APOP=APOP
|
|
29 DPOP=
|
|
30 MPOP=
|
|
31 POP2=
|
|
32 RPOP=
|
|
33 POPSERVICE=
|
|
34 NNTP=NNTP
|
|
35 smtp='/smtp'
|
|
36 ATTVIBUG=
|
|
37 curses=
|
|
38 NCURSES=
|
|
39 READLINE=
|
|
40 SYS5DIR=
|
|
41 NDIR=
|
|
42 NOIOCTLH=
|
|
43 UNISTD=
|
|
44 SHADOW=
|
|
45 CONTENT_LENGTH=
|
|
46 ZONEINFO=
|
|
47 TZNAME=
|
|
48 V7=
|
|
49 ALTOS=
|
|
50 SIGEMT=
|
|
51 RENAME=
|
|
52 VSPRINTF=
|
|
53 SETEUID=
|
|
54 SETREUID=
|
|
55 NFS=
|
|
56 NORUSERPASS=
|
|
57 FILBUF_ADJ=
|
|
58 FILE__PTR=
|
|
59 FCNTL=
|
|
60 FLOCK=
|
|
61 LOCKF=
|
|
62 LIBLOCKFILE=
|
|
63 MAILLOCK=
|
|
64 WAITINT=
|
|
65 SOCKETS=
|
|
66 BIND=
|
|
67 POSIX=
|
|
68 NTOHLSWAP=
|
|
69 mailspool=
|
|
70 mailgroup=off
|
|
71 DBMPWD=
|
|
72 SETMG=
|
|
73 make_mhconfig=
|
|
74 debug=off
|
|
75 JAPAN=JAPAN
|
|
76
|
|
77 dnl (tricky) autoconf cannot change a default value of "$libexecdir". :-<
|
|
78 for ac_arg
|
|
79 do
|
|
80 case "$ac_arg" in
|
|
81 -libexecdir | --libexecdir | --libexecdi | --libexecd \
|
|
82 | --libexec | --libexe | --libex | --libe \
|
|
83 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* \
|
|
84 | --libexec=* | --libexe=* | --libex=* | --libe=*)
|
|
85 etcdir=$libexecdir
|
|
86 ;;
|
|
87 esac
|
|
88 done
|
|
89
|
|
90 dnl (tricky) patch command cannot chmod. :-<
|
|
91 for ac_dir in $srcdir $srcdir/.. $srcdir/../..
|
|
92 do
|
|
93 if test -f $ac_dir/install-sh
|
|
94 then
|
|
95 chmod +x $ac_dir/install-sh
|
|
96 chmod +x $ac_dir/configure
|
|
97 chmod +x $ac_dir/config.guess
|
|
98 chmod +x $ac_dir/config.sub
|
|
99 break
|
|
100 fi
|
|
101 done
|
|
102
|
|
103 dnl ====================================================================
|
|
104 dnl Check optional features
|
|
105 dnl ====================================================================
|
|
106 AC_ARG_ENABLE(batchmode,
|
|
107 [ --enable-batchmode run conf/mhconfig automatically],
|
|
108 [if test "$enableval" = yes
|
|
109 then
|
|
110 batchmode=yes
|
|
111 else
|
|
112 batchmode=no
|
|
113 fi], [batchmode=no])
|
|
114
|
|
115 AC_ARG_ENABLE(sharedlib,
|
|
116 [ --enable-sharedlib make shared library (DEFAULT on some OS)],
|
|
117 [if test "$enableval" = yes
|
|
118 then
|
|
119 use_sharedlib=yes
|
|
120 else
|
|
121 use_sharedlib=no
|
|
122 fi], [use_sharedlib=default])
|
|
123
|
|
124 AC_ARG_ENABLE(smtp,
|
|
125 [ --enable-smtp use SMTP (DEFAULT)],
|
|
126 [if test "$enableval" = yes
|
|
127 then
|
|
128 smtp='/smtp'
|
|
129 else
|
|
130 smtp=
|
|
131 fi])
|
|
132
|
|
133 AC_ARG_ENABLE(pop,
|
|
134 [ --enable-pop POP support (DEFAULT)],
|
|
135 [if test "$enableval" = yes
|
|
136 then
|
|
137 pop=on
|
|
138 else
|
|
139 pop=off
|
|
140 popserver=off
|
|
141 bboards=off
|
|
142 bbhome=
|
|
143 MPOP=
|
|
144 APOP=
|
|
145 RPOP=
|
|
146 DPOP=
|
|
147 POP2=
|
|
148 fi])
|
|
149
|
|
150 AC_ARG_ENABLE(apop,
|
|
151 [ --enable-apop=AUTHFILE APOP support (DEFAULT)],
|
|
152 [case "$enableval" in
|
|
153 no)
|
|
154 APOP=
|
|
155 ;;
|
|
156 /*)
|
|
157 APOP=APOP=\'\"$enableval\"\'
|
|
158 pop=on
|
|
159 ;;
|
|
160 *)
|
|
161 APOP=APOP
|
|
162 pop=on
|
|
163 ;;
|
|
164 esac])
|
|
165
|
|
166 AC_ARG_ENABLE(rpop,
|
|
167 [ --enable-rpop RPOP support],
|
|
168 [if test "$enableval" = yes
|
|
169 then
|
|
170 RPOP=RPOP
|
|
171 pop=on
|
|
172 else
|
|
173 RPOP=
|
|
174 fi])
|
|
175
|
|
176 AC_ARG_ENABLE(dpop,
|
|
177 [ --enable-dpop use DPOP],
|
|
178 [if test "$enableval" = yes
|
|
179 then
|
|
180 pophome=`csh -c 'echo ~pop' 2> /dev/null`
|
|
181 if test x"$pophome" != x
|
|
182 then
|
|
183 DPOP=DPOP
|
|
184 pop=on
|
|
185 popserver=on
|
|
186 else
|
|
187 AC_MSG_ERROR([At first, you must register a new user \"pop\".])
|
|
188 fi
|
|
189 else
|
|
190 DPOP=
|
|
191 fi])
|
|
192
|
|
193 AC_ARG_ENABLE(nntp,
|
|
194 [ --enable-nntp NNTP support (DEFAULT)],
|
|
195 [if test "$enableval" = yes
|
|
196 then
|
|
197 NNTP=NNTP
|
|
198 bboards=off
|
|
199 bbhome=
|
|
200 MPOP=
|
|
201 else
|
|
202 NNTP=
|
|
203 fi])
|
|
204
|
|
205 AC_ARG_ENABLE(bboards,
|
|
206 [ --enable-bboards BBoards support],
|
|
207 [if test "$enableval" = yes
|
|
208 then
|
|
209 bbhome=`csh -c 'echo ~bboards' 2> /dev/null`
|
|
210 if test x"$bbhome" != x
|
|
211 then
|
|
212 pop=on
|
|
213 bboards=pop
|
|
214 MPOP=MPOP
|
|
215 NNTP=
|
|
216 else
|
|
217 AC_MSG_ERROR([At first, you must register a new user \"bboards\".])
|
|
218 fi
|
|
219 else
|
|
220 bboards=off
|
|
221 bbhome=
|
|
222 MPOP=
|
|
223 fi])
|
|
224
|
|
225 AC_ARG_ENABLE(popserver,
|
|
226 [ --enable-popserver install POP server],
|
|
227 [if test "$enableval" = yes
|
|
228 then
|
|
229 pop=on
|
|
230 popserver=on
|
|
231 POP2=POP2
|
|
232 else
|
|
233 popserver=off
|
|
234 POP2=
|
|
235 fi])
|
|
236
|
|
237 AC_ARG_ENABLE(jmandir,
|
|
238 [ --enable-jmandir=DIR set a directory for Japanese manual],
|
|
239 [case "$enableval" in
|
|
240 no)
|
|
241 jmandir=
|
|
242 ;;
|
|
243 /*)
|
|
244 jmandir="$enableval"
|
|
245 ;;
|
|
246 *)
|
|
247 AC_MSG_ERROR(You must set DIR with --enable-jmandir=DIR option.)
|
|
248 ;;
|
|
249 esac], [jmandir=default])
|
|
250
|
|
251 AC_ARG_WITH(pager,
|
|
252 [ --with-pager=DIR set default pager (DEFAULT: auto detect)],
|
|
253 [pagerpath="$withval"])
|
|
254
|
|
255 if test "$pop" = on -a "$popserver" = off -a x"$APOP" = x
|
|
256 then
|
|
257 APOP=APOP
|
|
258 fi
|
|
259
|
|
260 if test "$popserver" = on
|
|
261 then
|
|
262 if test "$bboards" != off
|
|
263 then
|
|
264 bbdelivery=on
|
|
265 fi
|
|
266 if test x"$APOP" = xAPOP
|
|
267 then
|
|
268 AC_MSG_ERROR(You must set AUTHFILE with --enable-apop=AUTHFILE option.)
|
|
269 fi
|
|
270 fi
|
|
271
|
|
272 AC_ARG_ENABLE(debug,
|
|
273 [ --enable-debug debug mode (for maintainer)],
|
|
274 [if test "$enableval" = yes
|
|
275 then
|
|
276 debug=on
|
|
277 fi])
|
|
278
|
|
279 AC_ARG_ENABLE(japan,
|
|
280 [ --enable-japan Japanese support (DEFAULT)],
|
|
281 [if test "$enableval" = yes
|
|
282 then
|
|
283 JAPAN=JAPAN
|
|
284 else
|
|
285 JAPAN=
|
|
286 fi])
|
|
287
|
|
288 dnl ====================================================================
|
|
289 dnl Check OS type.
|
|
290 dnl ====================================================================
|
|
291 AC_CANONICAL_HOST
|
|
292
|
|
293 dnl ====================================================================
|
|
294 dnl Checks for programs.
|
|
295 dnl ====================================================================
|
|
296 CC_bak="$CC"
|
|
297 CFLAGS_bak="$CFLAGS"
|
|
298 LDFLAGS_bak="$LDFLAGS"
|
|
299
|
|
300 AC_PROG_CC
|
|
301 AC_PROG_GCC_TRADITIONAL
|
|
302 AC_PROG_AWK
|
|
303 AC_PROG_RANLIB
|
|
304
|
|
305 if test x"$CFLAGS_bak" = x
|
|
306 then
|
|
307 if test "$debug" = on
|
|
308 then
|
|
309 CFLAGS="-g"
|
|
310 else
|
|
311 CFLAGS=`echo "$CFLAGS" | sed 's/-g *//'`
|
|
312 fi
|
|
313 fi
|
|
314
|
|
315 if test x"$LDFLAGS_bak" = x -a "$debug" != on
|
|
316 then
|
|
317 LDFLAGS="-s $LDFLAGS"
|
|
318 fi
|
|
319
|
|
320 case "$host_os" in
|
|
321 sunos4*)
|
|
322 if test "$use_sharedlib" != no
|
|
323 then
|
|
324 sharedlib=sun4
|
|
325 if test $ac_cv_prog_gcc = yes
|
|
326 then
|
|
327 slflags="-fpic"
|
|
328 if test x"$LDFLAGS_bak" = x
|
|
329 then
|
|
330 LDFLAGS="$LDFLAGS -B/usr/bin/"
|
|
331 fi
|
|
332 else
|
|
333 slflags="-pic"
|
|
334 fi
|
|
335 slibdir=$libdir
|
|
336 fi
|
|
337 SUN40=SUN40
|
|
338 SETEUID=SETEUID
|
|
339 ;;
|
|
340 solaris2*)
|
|
341 if test "$use_sharedlib" != no
|
|
342 then
|
|
343 sharedlib=sys5
|
|
344 if test $ac_cv_prog_gcc = yes
|
|
345 then
|
|
346 slflags="-fpic"
|
|
347 if test x"$LDFLAGS_bak" = x
|
|
348 then
|
|
349 LDFLAGS="$LDFLAGS -B/usr/ccs/bin/"
|
|
350 fi
|
|
351 else
|
|
352 slflags="-K pic"
|
|
353 fi
|
|
354 slibdir=$libdir
|
|
355 fi
|
|
356 SOLARIS=`echo "$host_os" | $AWK -F. '{printf "SOLARIS=2%02d%02d",$2,$3}'`
|
|
357 SETEUID=`echo "$host_os" | $AWK -F. '$2>=3{printf "SETEUID"}'`
|
|
358 ;;
|
|
359 freebsd* | netbsd*)
|
|
360 if test "$use_sharedlib" != no
|
|
361 then
|
|
362 sharedlib=fbsd
|
|
363 if test -x /usr/bin/objformat
|
|
364 then
|
|
365 if test x`/usr/bin/objformat` = xelf
|
|
366 then
|
|
367 sharedlib=gnuelf
|
|
368 make_mhconfig='CFLAGS="-O -DMHSLIB_NOMINVER"'
|
|
369 fi
|
|
370 fi
|
|
371 echo __ELF__ | $CC -E - | grep -q __ELF__ || sharedlib=gnuelf
|
|
372 slflags="-fpic"
|
|
373 slibdir=$libdir
|
|
374 fi
|
|
375 if test x"$CFLAGS_bak" = x
|
|
376 then
|
|
377 CFLAGS="$CFLAGS -pipe"
|
|
378 fi
|
|
379 manuals=standard/gzip
|
|
380 ;;
|
|
381 bsdi*)
|
|
382 if test x"$CC_bak" = x -a "$use_sharedlib" != no \
|
|
383 -a x`echo "$host_os" | $AWK -F. '$1=="bsdi3"{printf "bsdi3"}'` = xbsdi3
|
|
384 then
|
|
385 CC=shlicc2
|
|
386 fi
|
|
387 if test x"$CFLAGS_bak" = x
|
|
388 then
|
|
389 CFLAGS="$CFLAGS -pipe"
|
|
390 fi
|
|
391 ;;
|
|
392 next*)
|
|
393 if test x"$LDFLAGS_bak" = x
|
|
394 then
|
|
395 LDFLAGS=
|
|
396 fi
|
|
397 # OPENSTEP's lockf is broken
|
|
398 ac_cv_func_lockf=no
|
|
399 ;;
|
|
400 hpux*)
|
|
401 if test $ac_cv_prog_gcc != yes
|
|
402 then
|
|
403 if test x"$CFLAGS_bak" = x
|
|
404 then
|
|
405 CFLAGS="+O2"
|
|
406 fi
|
|
407 if test x"$LDFLAGS_bak" = x
|
|
408 then
|
|
409 LDFLAGS="-nqs"
|
|
410 fi
|
|
411 fi
|
|
412 # HP-UX's ruserpass is incompatible with MH
|
|
413 ac_cv_func_ruserpass=no
|
|
414 # HP-UX's _ruserpass is incompatible with MH
|
|
415 ac_cv_func__ruserpass=no
|
|
416 ;;
|
|
417 irix*)
|
|
418 if test x"$CFLAGS_bak" = x
|
|
419 then
|
|
420 if test $ac_cv_prog_gcc = yes
|
|
421 then
|
|
422 CFLAGS="$CFLAGS -fsigned-char"
|
|
423 else
|
|
424 CFLAGS="$CFLAGS -signed"
|
|
425 fi
|
|
426 fi
|
|
427 SETREUID=SETREUID
|
|
428 ;;
|
|
429 osf*)
|
|
430 SYS5=SYS5
|
|
431 SETEUID=SETEUID
|
|
432 ;;
|
|
433 sysv5uw*)
|
|
434 FILE__PTR=FILE__PTR
|
|
435 FILBUF_ADJ=FILBUF_ADJ
|
|
436 ;;
|
|
437 darwin*)
|
|
438 if test x"$CFLAGS_bak" = x
|
|
439 then
|
|
440 CFLAGS="-traditional $CFLAGS"
|
|
441 fi
|
|
442 if test x"$LDFLAGS_bak" = x -a "$debug" != on
|
|
443 then
|
|
444 LDFLAGS="-Wl,-S"
|
|
445 fi
|
|
446 ;;
|
|
447 linux*)
|
|
448 if test "$use_sharedlib" != no
|
|
449 then
|
|
450 sharedlib=gnuelf
|
|
451 slflags="-fpic"
|
|
452 slibdir=$libdir
|
|
453 fi
|
|
454 if test x"$CFLAGS_bak" = x
|
|
455 then
|
|
456 CFLAGS="$CFLAGS -pipe"
|
|
457 fi
|
|
458 SYS5=SYS5
|
|
459 SETREUID=SETREUID
|
|
460 # Linux's ruserpass is incompatible with MH
|
|
461 ac_cv_func_ruserpass=no
|
|
462 ;;
|
|
463 esac
|
|
464
|
|
465 if test "$ac_cv_prog_RANLIB" = ":"
|
|
466 then
|
|
467 ranlib=off
|
|
468 fi
|
|
469
|
|
470 dnl Look for `write'
|
|
471 tmppath=/usr/bin:/bin:$PATH
|
|
472 AC_PATH_PROG(write, write, no, [$tmppath])
|
|
473
|
|
474 dnl Look for UCB mail
|
|
475 tmppath=/usr/bin:/bin:/usr/ucb:/usr/bsd:$PATH
|
|
476 AC_PATH_PROGS(ucbmail, Mail mailx mail, no, [$tmppath])
|
|
477
|
|
478 dnl Look for ps
|
|
479 tmppath=/usr/bin:/bin:/usr/sbin:/sbin:/usr/etc:/etc:$PATH
|
|
480 AC_PATH_PROG(ps, ps, no, [$tmppath])
|
|
481
|
|
482 dnl Look for `chown'
|
|
483 tmppath=/usr/bin:/bin:/usr/sbin:/sbin:/usr/etc:/etc:$PATH
|
|
484 AC_PATH_PROG(chown, chown, /etc/chown, [$tmppath])
|
|
485 chownpath="$ac_cv_path_chown"
|
|
486
|
|
487 dnl Look for `sendmail'
|
|
488 tmppath=/usr/lib:/usr/sbin:/usr/etc:/usr/ucblib:/usr/bin
|
|
489 AC_PATH_PROG(sendmail, sendmail, /usr/lib/sendmail, [$tmppath])
|
|
490 sendmailpath="$ac_cv_path_sendmail"
|
|
491
|
|
492 dnl Look for pager
|
|
493 if test x"$pagerpath" = x
|
|
494 then
|
|
495 tmppath=$PATH:/usr/bin:/bin:/usr/ucb:/usr/bsd
|
|
496 AC_PATH_PROGS(pager, jless less more, /usr/ucb/more, [$tmppath])
|
|
497 pagerpath="$ac_cv_path_pager"
|
|
498 fi
|
|
499
|
|
500 dnl Check for broken vi
|
|
501 AC_CACHE_CHECK(for broken vi, ac_cv_prog_vi_bug,
|
|
502 [ac_cv_prog_vi_bug=no
|
|
503 echo 'r /nonexist-file
|
|
504 r /nonexist-file
|
|
505 q' | ex > /dev/null 2>&1
|
|
506 if test $? = 2
|
|
507 then
|
|
508 echo 'r /nonexist-file
|
|
509 r /nonexist-file
|
|
510 r /nonexist-file
|
|
511 q' | ex > /dev/null 2>&1
|
|
512 if test $? = 3
|
|
513 then
|
|
514 ac_cv_prog_vi_bug=yes
|
|
515 fi
|
|
516 fi])
|
|
517 if test "$ac_cv_prog_vi_bug" = yes
|
|
518 then
|
|
519 ATTVIBUG=ATTVIBUG
|
|
520 fi
|
|
521
|
|
522 dnl ====================================================================
|
|
523 dnl Checks for libraries.
|
|
524 dnl ====================================================================
|
|
525 dnl Checks for network libraries (nsl, socket)
|
|
526 AC_CHECK_FUNC(gethostbyname, ,
|
|
527 AC_CHECK_LIB(nsl, gethostbyname, ,
|
|
528 AC_CHECK_LIB(resolv, gethostbyname)))
|
|
529 AC_CHECK_FUNC(socket, , AC_CHECK_LIB(socket, socket))
|
|
530
|
|
531 dnl Checks for crypt & dbm libraries
|
|
532 if test "$popserver" = on
|
|
533 then
|
|
534 AC_CHECK_FUNC(crypt, , AC_CHECK_LIB(crypt, crypt))
|
|
535 if test x"$APOP" != x
|
|
536 then
|
|
537 AC_CHECK_FUNC(dbm_open, ,
|
|
538 AC_CHECK_LIB(gdbm, dbm_open, ,
|
|
539 AC_CHECK_LIB(ndbm, dbm_open, ,
|
|
540 AC_CHECK_LIB(dbm, dbm_open))))
|
|
541 AC_TRY_LINK([#include <ndbm.h>
|
|
542 #ifdef DBM_SUFFIX
|
|
543 #undef dbm_pagfno
|
|
544 #define dbm_pagfno dbm_dirfno
|
|
545 #endif], [dbm_pagfno((DBM *)0)], ,
|
|
546 LIBS="-lgdbm $LIBS"
|
|
547 AC_TRY_LINK([#include <ndbm.h>
|
|
548 #ifdef DBM_SUFFIX
|
|
549 #undef dbm_pagfno
|
|
550 #define dbm_pagfno dbm_dirfno
|
|
551 #endif], [dbm_pagfno((DBM *)0)], ,
|
|
552 [echo ""
|
|
553 echo "You have no DBM library. Give up APOP server."
|
|
554 echo " Use --disable-apop or --disable-popserver option."
|
|
555 exit 0]))
|
|
556 fi
|
|
557 fi
|
|
558
|
|
559 dnl Checks for maillock
|
|
560 LIBS_bak="$LIBS"
|
|
561 AC_CHECK_LIB(mail, maillock,
|
|
562 LIBS="$LIBS -lmail"
|
|
563 AC_TRY_LINK([#include <maillock.h>],
|
|
564 [if (maillock("root", 5) == L_SUCCESS) mailunlock();],
|
|
565 [MAILLOCK=MAILLOCK]))
|
|
566 if test x"$MAILLOCK" = x
|
|
567 then
|
|
568 LIBS="$LIBS_bak"
|
|
569 fi
|
|
570
|
|
571 dnl Checks for library lockfile
|
|
572 LIBS_bak="$LIBS"
|
|
573 AC_CHECK_LIB(lockfile, lockfile_create,
|
|
574 LIBS="$LIBS -llockfile"
|
|
575 AC_TRY_LINK([#include <lockfile.h>],
|
|
576 [if (lockfile_create("root.lock", 5, 0) == 0) lockfile_remove("root.lock");],
|
|
577 [LIBLOCKFILE=LIBLOCKFILE]))
|
|
578 if test x"$LIBLOCKFILE" = x
|
|
579 then
|
|
580 LIBS="$LIBS_bak"
|
|
581 fi
|
|
582
|
|
583 dnl Checks for terminal libraries
|
|
584 LIBS_bak="$LIBS"
|
|
585 CFLAGS_tmp="$CFLAGS"
|
|
586 test -d /usr/include/ncurses && CFLAGS="$CFLAGS -I/usr/include/ncurses"
|
|
587 AC_CHECK_HEADERS(ncurses.h)
|
|
588 if test "$ac_cv_header_ncurses_h" = yes
|
|
589 then
|
|
590 cursesheader="ncurses.h"
|
|
591 else
|
|
592 cursesheader="curses.h"
|
|
593 fi
|
|
594 AC_CACHE_CHECK(whether curses.h is ncurses, ac_cv_lib_ncurses,
|
|
595 AC_TRY_COMPILE([#include <$cursesheader>
|
|
596 #ifndef NCURSES_VERSION
|
|
597 This line will cause a parse error: "curses.h is not ncurses"
|
|
598 #endif], [WINDOW *w; w->_line->text;],
|
|
599 [ac_cv_lib_ncurses=yes], [ac_cv_lib_ncurses=no]))
|
|
600 if test "$ac_cv_lib_ncurses" = yes
|
|
601 then
|
|
602 if test "$cursesheader" = ncurses.h
|
|
603 then
|
|
604 NCURSES=NCURSES
|
|
605 fi
|
|
606 curseslib="-lncurses"
|
|
607 else
|
|
608 curseslib="-lcurses"
|
|
609 CFLAGS="$CFLAGS_tmp"
|
|
610 fi
|
|
611
|
|
612 AC_CACHE_CHECK(for tgetnum in $curseslib, ac_cv_lib_curses_tgetnum,
|
|
613 LIBS="$LIBS_bak $curseslib"
|
|
614 AC_TRY_LINK( , tgetnum(), [ac_cv_lib_curses_tgetnum=yes],
|
|
615 [ac_cv_lib_curses_tgetnum=no]))
|
|
616 if test "$ac_cv_lib_curses_tgetnum" = yes
|
|
617 then
|
|
618 curses="$curseslib"
|
|
619 else
|
|
620 AC_CACHE_CHECK(for tgetnum in $curseslib -ltermlib,
|
|
621 ac_cv_lib_curses_termlib_tgetnum,
|
|
622 LIBS="$LIBS_bak $curseslib -ltermlib"
|
|
623 AC_TRY_LINK( , tgetnum(), [ac_cv_lib_curses_termlib_tgetnum=yes],
|
|
624 [ac_cv_lib_curses_termlib_tgetnum=no]))
|
|
625 if test "$ac_cv_lib_curses_termlib_tgetnum" = yes
|
|
626 then
|
|
627 curses="$curseslib -ltermlib"
|
|
628 else
|
|
629 AC_CACHE_CHECK(for tgetnum in $curseslib -ltermcap,
|
|
630 ac_cv_lib_curses_termcap_tgetnum,
|
|
631 LIBS="$LIBS_bak $curseslib -ltermcap"
|
|
632 AC_TRY_LINK( , tgetnum(), [ac_cv_lib_curses_termcap_tgetnum=yes],
|
|
633 [ac_cv_lib_curses_termcap_tgetnum=no]))
|
|
634 if test "$ac_cv_lib_curses_termcap_tgetnum" = yes
|
|
635 then
|
|
636 curses="$curseslib -ltermcap";
|
|
637 else
|
|
638 AC_CHECK_LIB(termlib, tgetnum, [curses="-ltermlib"],
|
|
639 AC_CHECK_LIB(termcap, tgetnum, [curses="-ltermcap"]))
|
|
640 fi
|
|
641 fi
|
|
642 fi
|
|
643
|
|
644 dnl Check for readline library
|
|
645 LIBS="$LIBS_bak -lreadline $curses"
|
|
646 AC_CACHE_CHECK(for readline, ac_cv_lib_readline,
|
|
647 AC_TRY_LINK([#include <stdio.h>
|
|
648 #include <readline/readline.h>], [CPPFunction x; readline("");],
|
|
649 [ac_cv_lib_readline=yes], [ac_cv_lib_readline=no]))
|
|
650 if test "$ac_cv_lib_readline" = yes
|
|
651 then
|
|
652 READLINE=READLINE
|
|
653 fi
|
|
654 LIBS="$LIBS_bak"
|
|
655
|
|
656 dnl ====================================================================
|
|
657 dnl Checks for header files.
|
|
658 dnl ====================================================================
|
|
659 AC_HEADER_DIRENT
|
|
660 AC_HEADER_STDC
|
|
661 AC_HEADER_SYS_WAIT
|
|
662 AC_CHECK_HEADERS(fcntl.h ndbm.h shadow.h strings.h \
|
|
663 sys/ioctl.h sys/param.h unistd.h)
|
|
664
|
|
665 if test "$ac_header_dirent" = dirent.h
|
|
666 then
|
|
667 SYS5DIR=SYS5DIR
|
|
668 elif test "$ac_header_dirent" = ndir.h
|
|
669 then
|
|
670 NDIR=NDIR
|
|
671 fi
|
|
672
|
|
673 if test "$ac_cv_header_sys_ioctl_h" != yes
|
|
674 then
|
|
675 NOIOCTLH=NOIOCTLH
|
|
676 fi
|
|
677
|
|
678 if test "$ac_cv_header_unistd_h" = yes
|
|
679 then
|
|
680 UNISTD=UNISTD
|
|
681 fi
|
|
682
|
|
683 if test "$ac_cv_header_shadow_h" = yes
|
|
684 then
|
|
685 SHADOW=SHADOW
|
|
686 fi
|
|
687
|
|
688 dnl ====================================================================
|
|
689 dnl Checks for typedefs, structures, and compiler characteristics.
|
|
690 dnl ====================================================================
|
|
691 AC_C_CONST
|
|
692 AC_STRUCT_ST_BLKSIZE
|
|
693 AC_DECL_SYS_SIGLIST
|
|
694 AC_HEADER_TIME
|
|
695 AC_STRUCT_TM
|
|
696
|
|
697 AC_TRY_COMPILE([#include <$ac_cv_struct_tm>
|
|
698 struct tm *localtime();],
|
|
699 [struct tm *tm;
|
|
700 tm->tm_gmtoff;], [ZONEINFO=ZONEINFO])
|
|
701
|
|
702 AC_TRY_LINK([#include <$ac_cv_struct_tm>],
|
|
703 [extern char *tzname[];
|
|
704 tzset();
|
|
705 tzname[0];], [TZNAME=TZNAME])
|
|
706
|
|
707 ac_compile_bak="$ac_compile"
|
|
708 ac_compile="$ac_compile ; ld -x -r conftest.o"
|
|
709 rm -f a.out
|
|
710 AC_CACHE_CHECK(for old load, ac_cv_sys_oldload,
|
|
711 ac_cv_sys_oldload=none
|
|
712 AC_TRY_COMPILE([#include <stdio.h>], [printf("Hello\n");],
|
|
713 [if test -f a.out
|
|
714 then
|
|
715 rm -f a.out
|
|
716 ac_cv_sys_oldload=off
|
|
717 fi],
|
|
718 [if test "$CC" = cc
|
|
719 then
|
|
720 ac_compile="$ac_compile_bak ; cc -s -o conftest.o"
|
|
721 AC_TRY_COMPILE([#include <stdio.h>], [printf("Hello\n");],
|
|
722 [ac_cv_sys_oldload=on])
|
|
723 fi])
|
|
724 [case "$host_os" in
|
|
725 hpux10.* | osf3.*)
|
|
726 ac_cv_sys_oldload=none
|
|
727 ;;
|
|
728 esac])
|
|
729 oldload="$ac_cv_sys_oldload"
|
|
730 ac_compile="$ac_compile_bak"
|
|
731
|
|
732 dnl ====================================================================
|
|
733 dnl Checks for library functions.
|
|
734 dnl ====================================================================
|
|
735 AC_TYPE_SIGNAL
|
|
736 AC_CHECK_FUNCS(bcopy fcntl flock getdtablesize lockf rename rindex \
|
|
737 ruserpass _ruserpass seteuid setreuid sigblock vsprintf)
|
|
738
|
|
739 AC_CACHE_CHECK(for 4.4BSD, ac_cv_sys_bsd44,
|
|
740 ac_cv_sys_bsd44=no
|
|
741 AC_TRY_COMPILE(
|
|
742 [#include <sys/param.h>
|
|
743 #if !defined(BSD) || (BSD < 199306)
|
|
744 This line will cause a parse error: "not BSD44"
|
|
745 #endif], ,
|
|
746 [ac_cv_sys_bsd44=yes]))
|
|
747 if test "$ac_cv_sys_bsd44" = yes
|
|
748 then
|
|
749 BSD44=BSD44
|
|
750 BSD43=BSD43
|
|
751 BSD42=BSD42
|
|
752 SETEUID=SETEUID
|
|
753 fi
|
|
754
|
|
755 if test "$ac_cv_func_seteuid" != yes
|
|
756 then
|
|
757 SETEUID=
|
|
758 fi
|
|
759 if test "$ac_cv_func_setreuid" != yes
|
|
760 then
|
|
761 SETREUID=
|
|
762 fi
|
|
763 if test x"$SETEUID" = xSETEUID -a x"$SETREUID" = xSETREUID
|
|
764 then
|
|
765 SETREUID=
|
|
766 fi
|
|
767 if test x"$RPOP" = x
|
|
768 then
|
|
769 SETEUID=
|
|
770 SETREUID=
|
|
771 fi
|
|
772
|
|
773 AC_CACHE_CHECK(for SVR4, ac_cv_sys_svr4,
|
|
774 ac_cv_sys_svr4=no
|
|
775 AC_TRY_COMPILE(
|
|
776 [#if !defined(__svr4__) && !defined(__svr4) && !defined(SVR4)
|
|
777 This line will cause a parse error: "not SVR4"
|
|
778 #endif], ,
|
|
779 [ac_cv_sys_svr4=yes],
|
|
780 [if test -f /etc/saf/_sactab
|
|
781 then
|
|
782 ac_cv_sys_svr4=yes
|
|
783 fi]))
|
|
784 if test "$ac_cv_sys_svr4" = yes
|
|
785 then
|
|
786 SVR4=SVR4
|
|
787 SYS5=SYS5
|
|
788 CONTENT_LENGTH=CONTENT_LENGTH
|
|
789 fi
|
|
790
|
|
791 dnl The idea from perl Configure script.
|
|
792 AC_MSG_CHECKING([either SYS5, BSD or V7])
|
|
793 ac_sys5_bsd_v7=unknown
|
|
794 if test `echo abc | tr a-z A-Z` = Abc
|
|
795 then
|
|
796 if test "$ac_cv_header_strings_h" != yes \
|
|
797 -o "$ac_cv_func_bcopy" != yes -o "$ac_cv_func_rindex" != yes
|
|
798 then
|
|
799 SYS5=SYS5
|
|
800 fi
|
|
801 else
|
|
802 AC_TRY_COMPILE([#include <signal.h>],
|
|
803 [kill(0, SIGTSTP);],
|
|
804 [if test x"$SYS5" = x
|
|
805 then
|
|
806 AC_TRY_COMPILE([#include <syslog.h>],
|
|
807 [openlog("MH", LOG_PID, LOG_DAEMON);],
|
|
808 [if test -g "$ac_cv_path_write"
|
|
809 then
|
|
810 BSD42=BSD42
|
|
811 BSD43=BSD43
|
|
812 fi])
|
|
813 fi],
|
|
814 [ac_sys5_bsd_v7=V7
|
|
815 V7="V7 void=int"
|
|
816 case "$host_os" in
|
|
817 xenix*)
|
|
818 ALTOS=ALTOS
|
|
819 ;;
|
|
820 esac])
|
|
821 fi
|
|
822
|
|
823 AC_TRY_COMPILE(
|
|
824 [#if !defined(__svr3__) && !defined(__svr3) && !defined(SVR3)
|
|
825 This line will cause a parse error: "not SVR3"
|
|
826 #endif], ,
|
|
827 [SYS5=SYS5])
|
|
828
|
|
829 if $ac_cv_path_ps -eaf > /dev/null 2>&1
|
|
830 then
|
|
831 sys5_ps=yes
|
|
832 else
|
|
833 sys5_ps=no
|
|
834 fi
|
|
835 if $ac_cv_path_ps -axu > /dev/null 2>&1
|
|
836 then
|
|
837 bsd_ps=yes
|
|
838 else
|
|
839 bsd_ps=no
|
|
840 fi
|
|
841
|
|
842 if test x"$BSD42" = x -a x"$V7" = x -a "$sys5_ps" = yes -a "$bsd_ps" = no
|
|
843 then
|
|
844 SYS5=SYS5
|
|
845 fi
|
|
846 if test x"$SYS5" = x -a x"$V7" = x -a "$sys5_ps" = no -a "$bsd_ps" = yes
|
|
847 then
|
|
848 if test "$ac_cv_func_getdtablesize" = yes -a "$ac_cv_func_sigblock" = yes \
|
|
849 -a "$ac_cv_func_flock" = yes
|
|
850 then
|
|
851 BSD42=BSD42
|
|
852 elif test "$ac_cv_func_bcopy" != yes
|
|
853 then
|
|
854 BSD41A=BSD41A
|
|
855 fi
|
|
856 fi
|
|
857
|
|
858 if test x"$BSD42" = x -a x"$BSD41A" = x -a x"$V7" = x
|
|
859 then
|
|
860 if test x"$ZONEINFO" = x -a x"$TZNAME" = xTZNAME
|
|
861 then
|
|
862 SYS5=SYS5
|
|
863 fi
|
|
864 if test -d /usr/lib/terminfo -o -d /usr/share/lib/terminfo
|
|
865 then
|
|
866 SYS5=SYS5
|
|
867 fi
|
|
868 fi
|
|
869
|
|
870 if test x"$BSD41A" = xBSD41A -o x"$BSD42" = xBSD42
|
|
871 then
|
|
872 ac_sys5_bsd_v7=BSD
|
|
873 fi
|
|
874 if test x"$SYS5" = xSYS5
|
|
875 then
|
|
876 ac_sys5_bsd_v7=SYS5
|
|
877 fi
|
|
878 AC_MSG_RESULT($ac_sys5_bsd_v7)
|
|
879
|
|
880 AC_TRY_COMPILE([#include <signal.h>], [kill(0, SIGEMT);], ,
|
|
881 AC_TRY_COMPILE([#include <signal.h>], [kill(0, SIGUSR1);],
|
|
882 [SIGEMT="SIGEMT=SIGUSR1"]))
|
|
883
|
|
884 typesignal="$ac_cv_type_signal"
|
|
885
|
|
886 if test "$ac_cv_func_vsprintf" = yes
|
|
887 then
|
|
888 VSPRINTF=VSPRINTF
|
|
889 fi
|
|
890
|
|
891 if test "$ac_cv_func_ruserpass" != yes
|
|
892 then
|
|
893 if test "$ac_cv_func__ruserpass" = yes
|
|
894 then
|
|
895 NFS=NFS
|
|
896 else
|
|
897 NORUSERPASS=NORUSERPASS
|
|
898 fi
|
|
899 fi
|
|
900
|
|
901 if test "$ac_cv_func_lockf" = yes -a x"$BSD44" = x
|
|
902 then
|
|
903 LOCKF=LOCKF
|
|
904 elif test "$ac_cv_func_flock" = yes
|
|
905 then
|
|
906 if test x"$BSD42" = x
|
|
907 then
|
|
908 FLOCK=FLOCK
|
|
909 fi
|
|
910 else
|
|
911 FCNTL=FCNTL
|
|
912 fi
|
|
913
|
|
914 AC_CACHE_CHECK(for return type of sprintf, ac_cv_type_sprintf,
|
|
915 AC_TRY_COMPILE([#include <sys/types.h>
|
|
916 #include <stdio.h>
|
|
917 int sprintf();], , [ac_cv_type_sprintf="int"], [ac_cv_type_sprintf="char *"]))
|
|
918 typesprintf="$ac_cv_type_sprintf"
|
|
919
|
|
920 if test x"$BSD42" = xBSD42 -a x"$TZNAME" = xTZNAME
|
|
921 then
|
|
922 TZNAME=
|
|
923 fi
|
|
924
|
|
925 if test x"$BSD42" = xBSD42
|
|
926 then
|
|
927 AC_TRY_COMPILE([#include <sys/types.h>
|
|
928 #ifdef HAVE_SYS_WAIT_H
|
|
929 This line will cause a parse error: "not used union wait"
|
|
930 #endif
|
|
931 #include <sys/wait.h>
|
|
932 wait(union wait *);], , , [WAITINT=WAITINT])
|
|
933 else
|
|
934 test "$ac_cv_func_rename" = yes && RENAME=RENAME
|
|
935 AC_CACHE_CHECK(for BSD socket support, ac_cv_sys_socket,
|
|
936 AC_TRY_COMPILE([#include <sys/types.h>
|
|
937 #include <sys/socket.h>
|
|
938 #include <netinet/in.h>
|
|
939 #include <netdb.h>], [struct sockaddr_in in_socket;
|
|
940 socket(AF_INET, SOCK_STREAM, 0);],
|
|
941 [ac_cv_sys_socket=yes], [ac_cv_sys_socket=no]))
|
|
942 if test "$ac_cv_sys_socket" = yes
|
|
943 then
|
|
944 SOCKETS=SOCKETS
|
|
945 fi
|
|
946 fi
|
|
947
|
|
948 AC_CACHE_CHECK(for BIND support, ac_cv_sys_bind,
|
|
949 AC_EGREP_CPP(yes,
|
|
950 [#include <resolv.h>
|
|
951 #if defined(__RES) || defined(_PATH_RESCONF) || defined(RES_DEFAULT)
|
|
952 yes
|
|
953 #endif],
|
|
954 [ac_cv_sys_bind=yes], [ac_cv_sys_bind=no]))
|
|
955 if test "$ac_cv_sys_bind" = yes
|
|
956 then
|
|
957 BIND=BIND
|
|
958 fi
|
|
959
|
|
960 AC_TRY_COMPILE([#include <termios.h>
|
|
961 #ifndef HAVE_SYS_WAIT_H
|
|
962 This line will cause a parse error: "not POSIX"
|
|
963 #endif], [tcflush(0, TCOFLUSH);],
|
|
964 [POSIX=POSIX])
|
|
965
|
|
966 AC_CACHE_CHECK(for need ntohl macro, ac_cv_func_ntohl,
|
|
967 AC_TRY_COMPILE([#include <sys/types.h>
|
|
968 #include <sys/param.h>
|
|
969 #include <netinet/in.h>
|
|
970 #ifdef _BIG_ENDIAN
|
|
971 This line will cause a parse error: "no need ntohl() for BIG_ENDIAN"
|
|
972 #endif
|
|
973 #if BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN && BYTE_ORDER == BIG_ENDIAN
|
|
974 This line will cause a parse error: "no need ntohl() for BIG_ENDIAN"
|
|
975 #endif],
|
|
976 [long x;
|
|
977 ntohl(x);],
|
|
978 [ac_cv_func_ntohl=yes], [ac_cv_func_ntohl=no]))
|
|
979 if test "$ac_cv_func_ntohl" = yes
|
|
980 then
|
|
981 NTOHLSWAP=NTOHLSWAP
|
|
982 fi
|
|
983
|
|
984 dnl ====================================================================
|
|
985 dnl Checks for system services.
|
|
986 dnl ====================================================================
|
|
987 dnl Check for support network password database (YP/NIS).
|
|
988 AC_CACHE_CHECK(for support network password database, ac_cv_sys_dbmpwd,
|
|
989 [ac_cv_sys_dbmpwd=no
|
|
990 if test -d /var/yp -o -d /usr/etc/yp -o -d /var/nis \
|
|
991 -o -x /usr/sbin/ypbind -o -x /usr/etc/ypbind
|
|
992 then
|
|
993 ac_cv_sys_dbmpwd=yes
|
|
994 fi])
|
|
995 if test "$ac_cv_sys_dbmpwd" = yes
|
|
996 then
|
|
997 DBMPWD=DBMPWD
|
|
998 fi
|
|
999
|
|
1000 dnl Find mail spool.
|
|
1001 AC_CACHE_CHECK(where mail spool is located, ac_cv_path_mailspool,
|
|
1002 [ac_cv_path_mailspool=
|
|
1003 for spool in /var/mail /var/spool/mail /usr/mail /usr/spool/mail
|
|
1004 do
|
|
1005 if test -d $spool
|
|
1006 then
|
|
1007 ac_cv_path_mailspool=$spool
|
|
1008 break
|
|
1009 fi
|
|
1010 done])
|
|
1011 mailspool="$ac_cv_path_mailspool"
|
|
1012
|
|
1013 dnl Check for mailgroup
|
|
1014 AC_CACHE_CHECK(whether mail spool is opened for special group,
|
|
1015 ac_cv_group_mail,
|
|
1016 [ls_opt="-lLd"
|
|
1017 if test `ls $ls_opt $mailspool | $AWK '{print NF}'` -lt 9
|
|
1018 then
|
|
1019 ls_opt="-lLgd"
|
|
1020 fi
|
|
1021 ac_cv_group_mail=`ls $ls_opt $mailspool | \
|
|
1022 $AWK 'BEGIN{group="no"}
|
|
1023 /drwxrwxr-x/ || /drwxrwxr-t/{group=$4}
|
|
1024 END{print group}'`
|
|
1025 if test ! -g $ac_cv_path_ucbmail -a x"$MAILLOCK" = x -a x"$LIBLOCKFILE" = x
|
|
1026 then
|
|
1027 ac_cv_group_mail=no
|
|
1028 fi])
|
|
1029 if test "$ac_cv_group_mail" = no
|
|
1030 then
|
|
1031 mailgroup=off
|
|
1032 else
|
|
1033 mailgroup="$ac_cv_group_mail"
|
|
1034 SETMG=SETMG
|
|
1035 fi
|
|
1036
|
|
1037 if test "$pop" != off
|
|
1038 then
|
|
1039 if test "$popserver" = off
|
|
1040 then
|
|
1041 pop=client
|
|
1042 else
|
|
1043 popdir=$sbindir
|
|
1044 fi
|
|
1045 POPSERVICE=`grep 110/tcp /etc/services 2> /dev/null | $AWK 'NR==1{print $1}'`
|
|
1046 if test x"$POPSERVICE" != x
|
|
1047 then
|
|
1048 POPSERVICE=POPSERVICE=\'\"$POPSERVICE\"\'
|
|
1049 else
|
|
1050 POPSERVICE=POPSERVICE=\'\"pop\"\'
|
|
1051 fi
|
|
1052 fi
|
|
1053
|
|
1054 if test "$use_sharedlib" = yes
|
|
1055 then
|
|
1056 if test x"$SVR4" = xSVR4 -a $ac_cv_prog_gcc = yes
|
|
1057 then
|
|
1058 sharedlib=sys5
|
|
1059 slflags="-fpic"
|
|
1060 slibdir=$libdir
|
|
1061 fi
|
|
1062 fi
|
|
1063
|
|
1064 dnl ====================================================================
|
|
1065 dnl Now output file.
|
|
1066 dnl ====================================================================
|
|
1067 dnl expand variable
|
|
1068 if test x"$prefix" = xNONE
|
|
1069 then
|
|
1070 prefix=$ac_default_prefix
|
|
1071 fi
|
|
1072
|
|
1073 if test x"$exec_prefix" = xNONE
|
|
1074 then
|
|
1075 exec_prefix='${prefix}'
|
|
1076 fi
|
|
1077
|
|
1078 bindir=`eval echo $bindir`
|
|
1079 bindir=`eval echo $bindir`
|
|
1080 popdir=`eval echo $popdir`
|
|
1081 popdir=`eval echo $popdir`
|
|
1082 etcdir=`eval echo $etcdir`
|
|
1083 etcdir=`eval echo $etcdir`
|
|
1084 mandir=`eval echo $mandir`
|
|
1085 mandir=`eval echo $mandir`
|
|
1086 slibdir=`eval echo $slibdir`
|
|
1087 slibdir=`eval echo $slibdir`
|
|
1088
|
|
1089 dnl Find Japanese manual directory
|
|
1090 dnl We must do it after expanding "$mandir"
|
|
1091 if test x"$jmandir" = xdefault
|
|
1092 then
|
|
1093 AC_CACHE_CHECK(where Japanese manual directory is located, ac_cv_path_jman,
|
|
1094 [ac_cv_path_jman=no
|
|
1095 for manlang in ja ja_JP ja_JP.EUC ja_JP.eucJP ja_JP.ujis japan japanese
|
|
1096 do
|
|
1097 if test -d $mandir/$manlang
|
|
1098 then
|
|
1099 ac_cv_path_jman="$mandir/$manlang"
|
|
1100 break
|
|
1101 fi
|
|
1102 done])
|
|
1103 if test "$ac_cv_path_jman" = no
|
|
1104 then
|
|
1105 jmandir=
|
|
1106 else
|
|
1107 jmandir="$ac_cv_path_jman"
|
|
1108 fi
|
|
1109 fi
|
|
1110
|
|
1111 dnl We must do it after expanding "$slibdir"
|
|
1112 if test "$sharedlib" != off -a "$sharedlib" != fbsd
|
|
1113 then
|
|
1114 if test "$sharedlib" = gnuelf
|
|
1115 then
|
|
1116 LDFLAGS="$LDFLAGS -Xlinker -rpath -Xlinker $slibdir"
|
|
1117 elif test x"$SOLARIS" != x
|
|
1118 then
|
|
1119 LDFLAGS="$LDFLAGS -R$slibdir"
|
|
1120 elif test x"$SUN40" = xSUN40
|
|
1121 then
|
|
1122 if test "$slibdir" != "/usr/lib" -a "$slibdir" != "/usr/local/lib"
|
|
1123 then
|
|
1124 LDFLAGS="$LDFLAGS -L$slibdir"
|
|
1125 fi
|
|
1126 fi
|
|
1127 fi
|
|
1128
|
|
1129 AC_SUBST(SUN40) AC_SUBST(SOLARIS) AC_SUBST(sharedlib) AC_SUBST(slflags)
|
|
1130 AC_SUBST(ranlib) AC_SUBST(ATTVIBUG) AC_SUBST(jmandir) AC_SUBST(manuals)
|
|
1131 AC_SUBST(chownpath) AC_SUBST(sendmailpath) AC_SUBST(pagerpath)
|
|
1132 AC_SUBST(pop) AC_SUBST(popdir) AC_SUBST(APOP) AC_SUBST(DPOP) AC_SUBST(MPOP)
|
|
1133 AC_SUBST(POP2) AC_SUBST(RPOP) AC_SUBST(POPSERVICE) AC_SUBST(smtp)
|
|
1134 AC_SUBST(NNTP) AC_SUBST(bboards) AC_SUBST(bbdelivery) AC_SUBST(bbhome)
|
|
1135 AC_SUBST(oldload) AC_SUBST(etcdir) AC_SUBST(slibdir) AC_SUBST(READLINE)
|
|
1136 AC_SUBST(curses) AC_SUBST(NCURSES) AC_SUBST(SYS5DIR) AC_SUBST(NDIR)
|
|
1137 AC_SUBST(NOIOCTLH) AC_SUBST(UNISTD) AC_SUBST(SHADOW)
|
|
1138 AC_SUBST(BSD41A) AC_SUBST(BSD42) AC_SUBST(BSD43) AC_SUBST(BSD44)
|
|
1139 AC_SUBST(SYS5) AC_SUBST(SVR4) AC_SUBST(CONTENT_LENGTH)
|
|
1140 AC_SUBST(V7) AC_SUBST(ALTOS) AC_SUBST(ZONEINFO) AC_SUBST(TZNAME)
|
|
1141 AC_SUBST(typesignal) AC_SUBST(typesprintf) AC_SUBST(NFS) AC_SUBST(NORUSERPASS)
|
|
1142 AC_SUBST(SIGEMT) AC_SUBST(RENAME) AC_SUBST(VSPRINTF) AC_SUBST(WAITINT)
|
|
1143 AC_SUBST(FCNTL) AC_SUBST(FLOCK) AC_SUBST(LOCKF)
|
|
1144 AC_SUBST(MAILLOCK) AC_SUBST(LIBLOCKFILE)
|
|
1145 AC_SUBST(FILBUF_ADJ) AC_SUBST(FILE__PTR)
|
|
1146 AC_SUBST(SETEUID) AC_SUBST(SETREUID) AC_SUBST(debug)
|
|
1147 AC_SUBST(SOCKETS) AC_SUBST(BIND) AC_SUBST(POSIX) AC_SUBST(NTOHLSWAP)
|
|
1148 AC_SUBST(mailspool) AC_SUBST(mailgroup) AC_SUBST(DBMPWD) AC_SUBST(SETMG)
|
|
1149 AC_SUBST(JAPAN)
|
|
1150
|
|
1151 AC_OUTPUT(conf/MH)
|
|
1152
|
|
1153 dnl ====================================================================
|
|
1154 dnl auto make mhconfig
|
|
1155 dnl ====================================================================
|
|
1156 echo ""
|
|
1157
|
|
1158 [if test "$batchmode" != yes
|
|
1159 then
|
|
1160 echo "Use a shell escape to check conf/MH now, if you want."
|
|
1161 echo ""
|
|
1162 echo $ac_n "Continue make mhconfig (y/n)? [Y]$ac_c"
|
|
1163 read ans
|
|
1164 test x"$ans" = x && ans=y
|
|
1165 case "$ans" in
|
|
1166 y* | Y*)
|
|
1167 ;;
|
|
1168 *)
|
|
1169 exit 0
|
|
1170 ;;
|
|
1171 esac
|
|
1172 fi]
|
|
1173
|
|
1174 cd $ac_aux_dir/conf
|
|
1175 make_mhconfig="make CC=\"$CC\" $make_mhconfig"
|
|
1176 if test x"$SYS5" = xSYS5
|
|
1177 then
|
|
1178 make_mhconfig="$make_mhconfig MFLAGS='CC=\"$CC\"' sys5"
|
|
1179 fi
|
|
1180 eval $make_mhconfig || AC_MSG_ERROR(some errors occured at making mhconfig)
|
|
1181 echo ""
|
|
1182 ./mhconfig MH || AC_MSG_ERROR(some errors occured at running mhconfig)
|
|
1183 cd ..
|
|
1184 make clean
|
|
1185 exit 0
|