-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.in
611 lines (526 loc) · 16.7 KB
/
configure.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
dnl $Id: configure.in,v 5.5 2008/06/29 07:20:39 anray Exp $
dnl
dnl Copyright (c) 2003-2004 Andrey Slusar <[email protected]>
dnl Copyright (c) 2003-2004 Alexandr Dobroslavskiy <[email protected]>
dnl
AC_REVISION([$Revision: 5.5 $])
AC_PREREQ(2.53)
AC_INIT([fidogate],[5.2.3ds],[[email protected]])
AM_CONFIG_HEADER([config.h])
AC_CONFIG_SRCDIR([src/common/config.c])
AC_CONFIG_AUX_DIR([build])
AC_PREFIX_DEFAULT(/usr/local/fido)
AM_INIT_AUTOMAKE(fidogate, 5.2.3ds, nodefine)
AM_MAINTAINER_MODE
AC_CANONICAL_HOST
dnl Check for programs.
AC_PROG_CXX
AC_PROG_CC
AC_PROG_CPP
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_RANLIB
AC_PROG_AWK
AC_PROG_YACC
dnl Checks for header files.
AC_FUNC_ALLOCA
AC_HEADER_DIRENT
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS(fcntl.h limits.h stddef.h sys/mount.h sys/param.h sys/statfs.h)
AC_CHECK_HEADERS(sys/statvfs.h sys/time.h sys/vfs.h syslog.h utime.h time.h)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_MODE_T
AC_TYPE_OFF_T
AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_HEADER_TIME
AC_STRUCT_TM
AC_STRUCT_TIMEZONE
dnl Checks for library functions.
AC_FUNC_CLOSEDIR_VOID
AC_FUNC_MALLOC
AC_FUNC_MEMCMP
AC_FUNC_MKTIME
dnl for future AC_FUNC_REALLOC
AC_FUNC_SETVBUF_REVERSED
AC_TYPE_SIGNAL
AC_FUNC_STAT
AC_FUNC_STRFTIME
AC_FUNC_UTIME_NULL
AC_FUNC_VPRINTF
AC_CHECK_FUNCS(gettimeofday memchr memset mkdir regcomp strcasecmp strchr)
AC_CHECK_FUNCS(strerror strncasecmp strpbrk strrchr strspn strstr utime)
dnl Redefine install scripts
AM_PROG_LIBTOOL
AC_SUBST(LIBTOOL_DEPS)
INSTALL_PROGRAM='${INSTALL} -g ${GROUP} -o ${OWNER} -m 755'
INSTALL_SCRIPT='${INSTALL} -g ${GROUP} -o ${OWNER} -m 755'
INSTALL_DATA='${INSTALL} -g ${GROUP} -o ${OWNER} -m 640'
dnl Paths to major progs
AC_HEADER_MAJOR
AC_PATH_PROG(PERL, perl, no)
AC_PATH_PROG(PERL5, perl5, $PERL)
AC_PATH_PROG(ZIP, zip, no)
AC_PATH_PROG(RAR, rar, no)
AC_PATH_PROG(UNZIP, unzip, no)
AC_PATH_PROG(ARC, arc, no)
AC_PATH_PROG(LHA, lzh, no)
AC_PATH_PROG(UUDECODE, uudecode, no)
config_vars=
# Check for a --with-logdir argument
AC_ARG_WITH(logdir, dnl
--with-logdir=DIR set fidogate log DIR,
[dnl
case "$with_logdir" in
yes) AC_MSG_ERROR([--with-logdir requires an argument; use --with-logdir=DIR]) ;;
''|no) ;;
*) logdir="$withval" ;;
esac
])
# Check for a --with-vardir argument
AC_ARG_WITH(vardir, dnl
--with-vardir=DIR set fidogate var DIR,
[dnl
case "$with_vardir" in
yes) AC_MSG_ERROR([--with-vardir requires an argument; use --with-vardir=DIR]) ;;
''|no) ;;
*) vardir="$withval" ;;
esac
])
# Check for a --with-lockdir argument
AC_ARG_WITH(lockdir, dnl
--with-lockdir=DIR set fidogate lock DIR,
[dnl
case "$with_lockdir" in
yes) AC_MSG_ERROR([--with-lockdir requires an argument; use --with-lockdir=DIR]) ;;
''|no) ;;
*) LOCKDIR="$withval" ;;
esac
])
# Check for a --with-spooldir argument
AC_ARG_WITH(spooldir, dnl
--with-spooldir=DIR set fidogate spool DIR,
[dnl
case "$with_spooldir" in
yes) AC_MSG_ERROR([--with-spooldir requires an argument; use --with-spooldir=DIR]) ;;
''|no) ;;
*) spooldir="$withval" ;;
esac
])
# Check for a --with-sysconfdir argument
AC_ARG_WITH(sysconfdir, dnl
--with-sysconfdir=DIR set fidogate config DIR,
[dnl
case "$with_sysconfdir" in
yes) AC_MSG_ERROR([--with-sysconfdir requires an argument; use --with-sysconfdir=DIR]) ;;
''|no) ;;
*) sysconfdir="$withval" ;;
esac
])
# Check for a --with-btbasedir argument
AC_ARG_WITH(btbasedir, dnl
--with-btbasedir=DIR set fidogate BTBASE DIR,
[dnl
case "$with_btbasedir" in
yes) AC_MSG_ERROR([--with-btbasedir requires an argument; use --with-btbasedir=DIR]) ;;
''|no);;
*) btbasedir="$withval"
;;
esac
])
if ! test "${btbasedir+set}" = set; then
btbasedir='/var/spool/fido/bt'
fi
AC_SUBST(btbasedir)
# Check for a --with-netmaildir argument
AC_ARG_WITH(netmaildir, dnl
--with-netmaildir=DIR set fidogate NETMAIL DIR,
[dnl
case "$with_netmaildir" in
yes) AC_MSG_ERROR([--with-netmaildir requires an argument; use --with-netmaildir=DIR]) ;;
''|no);;
*) netmaildir="$withval"
;;
esac
])
if ! test "${netmaildir+set}" = set; then
netmaildir="${btbasedir}/netmail"
fi
AC_SUBST(netmaildir)
dnl# Check for a --with-newsbindir argument
AC_ARG_WITH(newsbindir, dnl
--with-newsbindir=DIR set INN bin directory,
[dnl
case "$with_newsbindir" in
yes) AC_MSG_ERROR([--with-newsbindir requires an argument; use --with-newsbindir=DIR]) ;;
''|no) ;;
*) newsbindir="$withval" ;;
esac
])
dnl# Check for a --with-inews argument
AC_ARG_WITH(INEWS_S, dnl
--with-inews=PATH set directory containt INEWS,
[dnl
case "$with_inews" in
yes) AC_MSG_ERROR([--with-inews requires an argument; use --with-inews=PATH]) ;;
''|no) ;;
*) INEWS_S="$withval" ;;
esac
])
dnl# Check for a --with-rnews argument
AC_ARG_WITH(RNEWS_S, dnl
--with-rnews=PATH set directory containt RNEWS,
[dnl
case "$with_rnews" in
yes) AC_MSG_ERROR([--with-rnews requires an argument; use --with-rnews=PATH]) ;;
''|no) ;;
*) RNEWS_S="$withval" ;;
esac
])
AC_ARG_WITH(, dnl
--without-news build fidogate without news server,,)
AC_ARG_WITH(, dnl
--without-rsf build fidogate without runinc send_fidogate function,,)
AC_ARG_WITH(sendmail, dnl
--with-sendmail=PATH Specify path to sendmail,
[dnl
case "$with_sendmail" in
yes|''|no) AC_MSG_ERROR([--with-sendmail requires an argument; use --with-sendmail=PATH]) ;;
*) SENDMAIL="$withval" ;;
esac
])
OWNER="news"
SRFC2FTN="rfc2ftn"
AC_ARG_WITH(owner, dnl
--with-owner=USER set possibility to run FIDOGATE from a USER,
[dnl
case "$with_owner" in
''|news|no)
AM_CONDITIONAL(ftnnews,false);;
*)
OWNER="$withval"
AM_CONDITIONAL(ftnnews,true)
SRFC2FTN="ftnnews";;
esac
])
AC_SUBST(OWNER)
AC_SUBST(SRFC2FTN)
GROUP="news"
AC_ARG_WITH(group, dnl
--with-group=GROUP set possibility to run FIDOGATE from a GROUP,
[dnl
case "$with_group" in
''|news) ;;
*) GROUP="$withval" ;;
esac
])
AC_SUBST(GROUP)
AC_ARG_WITH(group, dnl
--with-libname=GROUP library file name,
[dnl
case "$with_group" in
''|news) ;;
*) group="$withval" ;;
esac
])
AC_ARG_ENABLE(local-ftn-addr,
[ --enable-local-ftn-addr use local FTN addres],
AC_DEFINE(LOCAL_FTN_ADDRESSES),)
AC_ARG_ENABLE(dobsy-files,
[ --disable-dobsy-files create Binkley-style BSY],
,AC_DEFINE(DO_BSY_FILES))
AC_ARG_ENABLE(nfs-safe-lock,
[ --enable-nfs-safe-lock create lock files/BSY files in an NFS-safe way],
AC_DEFINE(NFS_SAFE_LOCK_FILES),)
AC_ARG_ENABLE(amiga-out,
[ --enable-amiga-out create 4D outbound filenames for AmigaDOS mailers],
AC_DEFINE(AMIGADOS_4D_OUTBOUND),)
AC_ARG_WITH(maxmsg-size,
[ --with-maxmsg-size=SIZE set max. message size for FIDO [14000]],
AC_DEFINE_UNQUOTED(MAXMSGSIZE,$withval),AC_DEFINE_UNQUOTED(MAXMSGSIZE, 14000))
AC_ARG_WITH(ftn-invalid-domain,
[ --with-ftn-invalid-domain=DOM set domain for invalid FTN addresses [INVALID_FTN_ADDRESS]],
AC_DEFINE_UNQUOTED(FTN_INVALID_DOMAIN,"$withval"),AC_DEFINE_UNQUOTED(FTN_INVALID_DOMAIN, "INVALID_FTN_ADDRESS"))
AC_ARG_WITH(syslog-facility,
[ --with-syslog-facility=FAC set syslog facility [LOG_LOCAL0]],
AC_DEFINE_UNQUOTED(FACILITY,$withval),AC_DEFINE_UNQUOTED(FACILITY, LOG_LOCAL0))
AC_ARG_WITH(ftn-charset,
[ --with-ftn-charset=CHS set default assumed charset for Fido messages [cp866] ],
AC_DEFINE_UNQUOTED(CHARSET_STDFTN,"$withval"),AC_DEFINE_UNQUOTED(CHARSET_STDFTN, "cp866"))
AC_ARG_WITH(rfc-charset,
[ --with-rfc-charset=CHS set default assumed charset for RFC messages if without MIME headers [koi8-r]],
AC_DEFINE_UNQUOTED(CHARSET_STDRFC,"$withval"),AC_DEFINE_UNQUOTED(CHARSET_STDRFC, "koi8-r"))
AC_ARG_WITH(7bit-charset,
[ --with-7bit-charset=CHS set default charset for RFC messages with forced 7bit encoding [us-ascii]],
AC_DEFINE_UNQUOTED(CHARSET_STD7BIT,"$withval"),AC_DEFINE_UNQUOTED(CHARSET_STD7BIT, "us-ascii"))
AC_ARG_WITH(afix-maxstr,
[ --with-afix-maxstr=AFS set maximum strings in areafix reports [150] ],
AC_DEFINE_UNQUOTED(AREAFIXMAXSTR,$withval),AC_DEFINE_UNQUOTED(AREAFIXMAXSTR, 150))
AC_ARG_ENABLE(aliases-local,
[ --enable-aliases-local rewrite addresses found in ALIASES so that the sender's address is the gateway address],
AC_DEFINE(ALIASES_ARE_LOCAL),)dnl'
AC_ARG_ENABLE(ai1,
[ --enable-ai1 Add -a option to HOSTS entries, useful only with PASSTHRU NET/ECHOMAIL],
AC_DEFINE(AI_1),)
AC_ARG_ENABLE(best-aka,
[ --disable-best-aka disable best AKA select],
,AC_DEFINE(BEST_AKA))
AC_ARG_ENABLE(ftnacl,
[ --disable-ftnacl do'nt use ACL for FTN links ],
,AC_DEFINE(FTN_ACL))
AC_ARG_WITH(desc-dir,
[ --with-desc-dir=DIR put file descriptions into ".desc/%s.desc" file instead of files.bbs],
DESC_DIR="$withval",DESC_DIR=".desc")
AC_ARG_ENABLE(desc-dir,
[ --disable-desc-dir put file descriptions into files.bbs],
,AC_DEFINE_UNQUOTED(DESC_DIR,"$DESC_DIR"))
AC_ARG_ENABLE(recode-file-desc,
[ --disable-recode-file-desc disable recode file descriptions],
,AC_DEFINE(RECODE_FILE_DESC))
AC_ARG_ENABLE(af-avail,
[ --disable-af-avail change behaviour of areafix command "%list" and "%avail" ],
,AC_DEFINE(AF_AVAIL))
AC_ARG_ENABLE(xff-echomail,
[ --disable-xff-echomail add X-FTN-From header to gated echomail],
,AC_DEFINE(X_FTN_FROM_ECHOMAIL))
AC_ARG_ENABLE(spyes,
[ --disable-spyes use SPYES config],
,AC_DEFINE(SPYES))
AC_ARG_ENABLE(aflr,
[ --disable-aflr restricted access to areafix command %listall],
,AC_DEFINE(AF_LISTALL_RESTRICTED))
AC_ARG_ENABLE(fecho-pass,
[ --disable-fecho-pass use passthrought filearea],
,AC_DEFINE(FECHO_PASSTHROUGHT))
AC_ARG_ENABLE(use-filebox,
[ --disable-use-filebox use fileboxes for fileecho],
,AC_DEFINE(USE_FILEBOX))
AC_ARG_ENABLE(tick-crc,
[ --disable-tick-crc ftntick CRC control],
AC_DEFINE(FTNTICK_NOCRC),)
AC_ARG_ENABLE(no-organization,
[ --enable-no-organization enable if no insert Origin line if it absence],
,AC_DEFINE(NOINSERT_ORGANIZATION),)
AC_ARG_ENABLE(insecure-not-db,
[ --disable-insecure-not-db put insecure mail into dupe database],
,AC_DEFINE(INSECURE_DONT_PUT_INTO_DUPE_DB))
AC_ARG_ENABLE(af-ansok,
[ --enable-af-ansok change areafix answering to "ok" if subscribing],
AC_DEFINE(ANSWER_OK), )
AC_ARG_ENABLE(fs-msgid,
[ --disable-fs-msgid set gate msgid into outgoing messages],
,AC_DEFINE(FIDO_STYLE_MSGID))
AC_ARG_ENABLE(dbc-history,
[ --enable-dbc-history use msgid correspond data base],
AC_DEFINE(DBC_HISTORY), )
AC_ARG_ENABLE(afses,
[ --enable-afses areafix send echo status],
AC_DEFINE(AFSEND_ECHO_STATUS),)
AC_ARG_ENABLE(sub_zonegate,
[ --enable-sub-zonegate subscribe only zonegate],
AC_DEFINE(SUBSCRIBE_ZONEGATE),)
AC_ARG_ENABLE(pid2rd-tid2gtv,
[ --enable-pid2rd-tid2gtv paste ^PID & ^TID kludges to message],
AC_DEFINE(PID_READER_TID_GTV),)
AC_ARG_ENABLE(tick-history,
[ --disable-tick-history tick dupe check],
,AC_DEFINE(TIC_HISTORY))
AC_ARG_ENABLE(dnt-netmail,
[ --enable-dnt-netmail do not toss netmail],
AC_DEFINE(DO_NOT_TOSS_NETMAIL), )
AC_ARG_ENABLE(sep-pkt,
[ --enable-sep-pkt separate message to individual pkt (rfc->ftn)],
AC_DEFINE(SEP_RFC2FTN_PKT), )
AC_ARG_ENABLE(owfl,
[ --disable-owfl overwrite fileecho link],
,AC_DEFINE(OVERWRITEN_FECHO_FILE_TO_LINK))
AC_ARG_ENABLE(active-lookup,
[ --disable-active-lookup active file lookup],
,AC_DEFINE(ACTIVE_LOOKUP))
AC_ARG_ENABLE(recode-allrfc,
[ --disable-recode-allrfc recoding some RFC header],
,AC_DEFINE(RECODE_ALL_RFC))
AC_SEARCH_LIBS(regcomp, rx regex, [
AC_DEFINE(HAS_POSIX_REGEX,[],[Do we have a decent regex library?])
AC_CHECK_HEADER(rxposix.h, AC_DEFINE(HAVE_RX,[],[Do we have rxposix.h?]))])
if test "$with_news" != no ;then
{
AC_MSG_CHECKING(for news-library path)
if ! test -x "${newsbindir}"; then
if test -x /usr/local/news/bin/innconfval ; then
newsbindir=/usr/local/news/bin
elif test -x /usr/lib/innconfval ; then
newsbindir=/usr/lib
elif test -x /usr/lib/news/innconfval ; then
newsbindir=/usr/lib/news
elif test -x /usr/lib/news/bin/innconfval ; then
newsbindir=/usr/lib/news/bin
elif test -x /usr/local/lib/news/bin/innconfval ; then
newsbindir=/usr/local/lib/news/bin
elif test -x /usr/local/news/innconfval ; then
newsbindir=/usr/local/news
elif test -x /usr/bin/innconfval ; then
newsbindir=/usr/bin
else
AC_MSG_ERROR([PLEASE INSTALL INN OR SET PATH TO innconfval DIR; use --with-newsbindir=DIR or --without-news])
exit 1;
fi
fi
if $newsbindir/innconfval -v 2>&1 </dev/null | egrep 2\.\[3\|4] > /dev/null; then
eval `$newsbindir/innconfval -s|grep -e 'PATHNEWS\|PATHBIN\|PATHOUTGOING\|PATHDB\|PATHARTICLES\|PATHETC'`
NEWSLIBDIR=${PATHNEWS}
else
NEWSLIBDIR="$newsbindir"
fi
AC_MSG_RESULT($NEWSLIBDIR)
if test "x${PATHOUTGOING}" = "x"; then
AC_MSG_ERROR([use --with-newsbindir=DIR or --without-news option])
fi
XPATH="$PATHBIN:/usr/local/news/bin:/usr/lib/news:/usr/lib/news/bin:/usr/local/lib/news/bin:usr/bin"
AC_MSG_CHECKING(for rnews)
if test "${with_rnews+set}" = set ;then
RNEWS="$with_rnews"
else
AC_PATH_PROG(RNEWS, rnews,, $XPATH)
if test "x$RNEWS" = "x"; then
AC_MSG_ERROR([rnews not found, re-run with valid --with-rnews=DIR])
fi
fi
AC_MSG_CHECKING(for inews)
if test "${with_inews+set}" = set ;then
INEWS="$with_inews"
else
AC_PATH_PROG(INEWS, inews,, $XPATH)
if test "x$INEWS" = "x"; then
AC_MSG_ERROR([inews not found, re-run with valid --with-inews=DIR])
fi
fi
if $NEWSLIBDIR/bin/innconfval -v 2>&1 </dev/null | egrep 2\.\[3\|4] > /dev/null; then
AC_DEFINE(OLD_BATCHER)
BATCHER='time $PATHBIN/batcher -N $QUEUEJOBS -b500000 -p"$RFC2FTN -b -n" $SITE $BATCHFILE'
else
BATCHER='time $RFC2FTN -f $BATCHFILE -m 500'
fi
if test "$with_news" != no ;then
if test "$with_owner" = news; then
AC_DEFINE(USE_RUNINC_SFGT)
fi
fi
}
else
BATCHER='time $RFC2FTN -f $BATCHFILE -m 500'
RNEWS='/none/rnews'
INEWS='/none/inews'
NEWSLIBDIR='/none/news-libdir'
PATHOUTGOING='/none/news-pathoutgoing'
PATHARTICLES='/none/news-patharticles'
PATHNEWS='/none/news-pathnews'
PATHBIN='/none/news-pathbin'
PATHETC='/none/news-pathetc'
PATHDB='/none/news-pathdb'
fi
AC_SUBST(BATCHER)
AC_SUBST(RNEWS)
AC_SUBST(NEWSLIBDIR)
AC_SUBST(PATHOUTGOING)
AC_SUBST(PATHARTICLES)
AC_SUBST(PATHNEWS)
AC_SUBST(PATHBIN)
AC_SUBST(PATHETC)
AC_SUBST(PATHDB)
AC_SUBST(INEWS)
# Checking sendmail
AC_MSG_CHECKING(for sendmail)
if test "${with_sendmail+set}" = set ;then
SENDMAIL="$with_sendmail"
else
XPATH="/usr/sbin:/usr/lib:/usr/ucblib:/usr/share"
AC_PATH_PROG(SENDMAIL, sendmail,, $XPATH)
if test "x$SENDMAIL" = "x"; then
AC_MSG_ERROR([sendmail not found, re-run with valid --with-sendmail=DIR])
fi
fi
AC_SUBST(SENDMAIL)
AC_MSG_CHECKING(for lock directory)
if test "${with_lockdir+set}" = set; then
LOCKDIR="$with_lockdir"
elif test -d /var/run; then
LOCKDIR=/var/run/fidogate
elif test -d /var/spool/lock; then
LOCKDIR=/var/spool/lock/fidogate
else
LOCKDIR=/var/lock/fidogate
fi
AC_MSG_RESULT($LOCKDIR)
AC_SUBST(LOCKDIR)
AC_MSG_CHECKING(for var directory)
if test "${with_vardir+set}" = set; then
vardir="$with_vardir"
elif test -d /var/lib; then
vardir=/var/lib/fidogate
elif test -d /var/data; then
vardir=/var/data/fidogate
elif test -d /var/db; then
vardir=/var/db/fidogate
else
vardir=/var/lib/fidogate
fi
AC_MSG_RESULT(${vardir})
AC_SUBST(vardir)
AC_MSG_CHECKING(for log directory)
if test "${with_logdir+set}" = set; then
LOGDIR="$with_logdir"
elif test -d /var/log; then
LOGDIR=/var/log/fido/gate
elif test -d /var/spool/log; then
LOGDIR=/var/spool/log/fidogate
else
VARDIR=/var/log/fido/gate
fi
AC_MSG_RESULT($LOGDIR)
AC_SUBST(LOGDIR)
AC_MSG_CHECKING(for spool directory)
if test "${with_spooldir+set}" = set; then
SPOOLDIR="$with_spooldir"
elif test -d /var/spool; then
SPOOLDIR=/var/spool/fido/gate
elif test -d /var/data; then
SPOOLDIR=/var/data/fido/gate
elif test -d /var/db; then
SPOOLDIR=/var/db/fido/gate
else
SPOOLDIR=/var/data/fido/gate
fi
AC_MSG_RESULT($SPOOLDIR)
AC_SUBST(SPOOLDIR)
SUBSTCMD='$(PERL) $(top_srcdir)/build/subst.pl -c$(top_srcdir)/build/config.make -t$(top_srcdir)'
M4MAKE='$(M4) $(M4OPTIONS)'
AC_SUBST(SUBSTCMD)
AC_SUBST(M4MAKE)
HOSTNAME=`hostname -s`
DOMAINNAME=`hostname|sed -e "s/$HOSTNAME//"`
AC_SUBST(HOSTNAME)
AC_SUBST(DOMAINNAME)
AC_CONFIG_COMMANDS([build_headers],[build/subst.pl -h])
AC_CONFIG_FILES([build/config.make \
Makefile
src/Makefile \
src/areafix/Makefile \
src/charset/Makefile \
src/common/Makefile \
src/gate/Makefile \
src/include/Makefile \
src/tick/Makefile \
src/toss/Makefile \
src/util/Makefile \
scripts/Makefile \
scripts/areas/Makefile \
scripts/maintenance/Makefile \
scripts/misc/Makefile \
scripts/nodelist/Makefile \
scripts/outbound/Makefile \
doc/Makefile])
AC_OUTPUT