File: CONFIG

package info (click to toggle)
ifmail 2.14tx8.10-32
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,056 kB
  • sloc: ansic: 30,328; perl: 4,955; yacc: 839; makefile: 716; sh: 424; cpp: 235; lex: 206; awk: 24
file content (534 lines) | stat: -rw-r--r-- 21,104 bytes parent folder | download
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
# Compile-time configuration for ifmail FidoNet mailer and gateway
COPYRIGHT   = "Eugene G. Crosser, 1993-1997"

##############################################################
# Included a lot of code from version 2.8c-JE13JUL1995       #
# which is copyrighted by Tsuneo Tanaka <tt@efnet.com>       #
#                                                            #
# Included code from ifcico-3.0.cm which is copyrighted      #
# by Christof Meerwald <cmeerw@htl.fh-sbg.ac.at> and under   #
# the GPL license. that applies to create_freqlist() in      #
# filelist.c, ifinfo.c, ttyio_cm.h, ifreq.c and the related  #
# man pages.                                                 #
# see http://www.cosy.sbg.ac.at/~cmeer/ifcico/ for more      #
# details on ifcico-3.0.cm                                   #
#                                                            #
# The HYDRA protocol is copyrighted by Arjen G. Lentz,       #
# LENTZ SOFTWARE-DEVELOPMENT and Joaquim H. Homrighausen.    #
# see the file ifcico/hydra.LICENSE.DOC for the full license #
#                                                            #
# conversion code for japanese in charconv_jp.c              #
# is copyrighted by Ken Lunde <lunde@adobe.com>              #
# conversion code for chinese in charconv_hz.c               #
# is copyrighted by Fung F. Lee <lee@umunhum.stanford.edu>   #
#                                                            #
# Programs in misc/contrib are copyrighted by their authors  #
#                                                            #
# The "tx" versions also includes ideas and patches from     #
# several other people, see file Credits.TX                  #
#                                                            #
# Other modifications are from me.                           #
# ( Pablo Saratxaga <srtxg@chanae.alphanet.ch> )             #
##############################################################
VERSION     = "2.14-tx8.10"
#SHVER       = 2.14tx

# Where to put binaries
BINDIR = $(DESTDIR)"/usr/lib/ifmail"

# Main configuration file. This default may be overwritten by -I key.
CONFIGFILE  = $(DESTDIR)"/etc/ifmail/config"

# Where translations tables reside
MAPTABDIR = $(DESTDIR)"/usr/lib/ifmail/maptabs"

# Debug messages turned on by -x key are written here.
# Some error messages may occationally appear here too.
# This may be changed in the 'config' file.
DEBUGFILE   = $(DESTDIR)"/var/log/ifmail/ifdebug"

# Procession log. Usually gets several lines for each invocation.
# Also look for error diagnostics here.  If HAS_SYSLOG defined,
# only stdout and stderr from the packers and unpackers go to this
# file, while actual logging is done via syslog() calls.
# This may be changed in the 'config' file.
LOGFILE     = $(DESTDIR)"/var/log/ifmail/iflog"

# Use syslog() facility codes for mail gate, news gate and ifcico.
# Define -DHAS_SYSLOG (see below)
#MAILLOG    = LOG_MAIL
MAILLOG    = LOG_LOCAL0
#NEWSLOG    = LOG_NEWS
NEWSLOG    = LOG_LOCAL0
#CICOLOG    = LOG_UUCP
CICOLOG    = LOG_LOCAL0

# Directory where UUCP lock files reside.
#LOCKDIR     = $(DESTDIR)"/var/spool/uucp"
LOCKDIR     = $(DESTDIR)"/var/lock"

# Directory from which file requests are resolved.
# This may be changed from the 'config' file.
PUBDIR      = $(DESTDIR)"/home/ftp/pub"
#PUBDIR      = $(DESTDIR)"/var/spool/uucppublic"

# News spool directory (to check space only)
#NEWSSPOOL   = $(DESTDIR)"/usr/spool/news"
NEWSSPOOL   = $(DESTDIR)"/var/spool/news"

# Fake directory where resultant files go if `-N' key used (trailing slash
# needed)
FAKEDIR     = $(DESTDIR)"/tmp/ifmail/"

# Uses libintl for internationalizing some strings. Interactive messages are
# printed in your language, according to LC_MESSAES or LANG variable)
#
# po/Makefile and nls implementation idea copied from rpm-2.4.3
#
USE_NLS = yes

# REFERENCES_MSC96 keep track of MSGID / Message-ID couples, and when a
# a ^aREPLY arrives that correspond to those MSGID, it is expanded back to
# the correct References: line
# see iflib/ref.c for more complete info
#
#REFERENCES_MSC96 = yes

# use a shared lib for common functions ?
# Does not work yet.
#SHARED = yes

# Compile-time system-dependant options. 

# If you specify "-DHAS_NDBM_H", ndbm calls will be used instead
# of dbm ones, and the feature will be activated of Cnews log processing
# to add entries to SEEN-BY if echo message is exported to several FTN
# nodes by Cnews mechanism. This works with INN too.

# If you specify "-DHAS_STATFS" or "-DHAS_STATVFS", statfs() (or statvfs()
# respectivly) call will be used to check available disk space. For statfs()
# call, you must also specify which .h file to use: "-DSTATFS_IN_VFS_H" or 
# "-DSTATFS_IN_STATFS_H" or "-DSTATFS_IN_STATVFS_H"  or "-DSTATFS_IN_MOUNT_H". 
# For statvfs() call, statvfs.h is included.

# define -DSCO_STYLE_STATFS if your statfs() call requires 4 arguments.

# If you specify "-DHAS_SETSID", setsid() call is used to detach from the
# control terminal. Otherwise setpgrp() call is used, and in this case you
# may specify "-DBSD_SETPGRP" to use BSD-style call.  Used in ifcico only.

# If you specify "-DDONT_HAVE_TM_GMTOFF", timezone offset will be calculated
# from the difference between the results of localtime() and gmtime() calls
# instead of using tm_gmtoff field of struct tm.

# If you specify "-DDONT_HAVE_GETOPT", local definitions for getopt will
# be used (but not the function itself)

# For ifcico, you must specify -DHAS_TERMIOS_H (preffered), -DHAS_TERMIO_H
# or -DHAS_SGTTY_H to use POSIX-y, SysV-ish of BSD-ish terminal control.

# in SVR4 you should specify -DHAS_DIAL (and maybe -DHAS_DIAL_H) to use
# dial() library function instead of regular open().  Lock files are
# not used in this case.

# for uucp lock files, you must specify either -DASCII_LOCKFILES or
# -DBINARY_LOCKFILES

# define -DHAS_FSYNC if there is a fsync() system call (to update .flo
# files)

# define -DPARANOID if you want iftoss to deny packets with wrong password.

# define -DRELAXED if you want iftoss to accept packets that are not
# addressed to your node.

# define -DFORCEINTL if you want ifmail to create ^aINTL even if this is
# not an inter-zone netmail.

# define -DNEED_UUCPFROM if your MTA needs a uucp "From" line in mail.

# define -DHAS_TCP if you want ifmail to be able to originate outgoing
# connections over TCP/IP (socket library needed)

# define -DHAS_TERM if you want ifmail to be able to originate outgoing
# connections over TERM (TCP "extention", client.a needed)

# define -DHAS_REGEX_H or -DHAS_LIBGEN_H if you have either of these
# header files for regular expression handlers.

# define -DHAS_SYSLOG to use syslog() instead of logging to files.
# Files are necessary anyway, external programs' stdout and stderr
# are redirected there.

# define -DNEED_BSY if you want ifpack and ifcico to create .bsy
# files preventing simultaneous processing of the same node.
# This is *not* necessary, ifcico will work without such locking.

# define -DNEED_FORK if your system is uncapable of getting rid of the
# control terminal unless you are running not as a group leader.

# as of June 1994, FreeBSD has a nasty bug in the kernel lseek() code:
# if you make lseek() to a point before the start of the file, it
# succeeds and the writing point becomes negative.  Fortunately, 
# subsequent write()s fail :-).  To overwork this, define 
# -DNEGATIVE_SEEK_BUG, this will add an extra fseek() to restore
# zero writing point where necessary.

# define -DNEED_TRAP if you want debugging information when the programs
# are aborted with segmentation fault etc.  Currently tested and works 
# only with Linux, and only with kernels >= 1.1.20.

# define -DSLAVE_SENDS_NAK_TOO if you have problems answering incoming
# EMSI sessions originated by FrontDoor.  FrontDoor does not follow
# EMSI specifications when originating calls, this is a workaround.

# define -DBELEIVE_ZFIN=1 if you cannot get files sent by Terminate.
# Original Zmodem source does not beleive first ZFIN packet when
# receiving file, and sends more than one ZFIN while sending.  But
# it seems that Terminate Zmodem only send one ZFIN.  I could not
# check this myself.  If not defined, BELEIVE_ZFIN will be assumed
# 2, that is, skip 1st ZFIN but acknowledge second.

# define -DDONT_HAVE_DIRENT if there is no working opendir()/readdir()
# etc. in your libc.  You will also need to add "dirent.o" to the NEEDED
# (see below).

# define -DHAS_BSD_SIGNALS if your SIGALRM does not interrupt system
# calls by default.  Note that this also needed on Linux with glibc2
# (libc6.x.x)

# define -DDONT_HAVE_DBMCLOSE if your dbm implementation does not have
# dbmclose() / dbm_close() function.

# define -DHAS_BSD_DB if you have BSD `db' package instead of usual
# [nsg]dbm.  We use ndbm compatibility interface of `db', so you also
# need to specify -DHAS_NDBM_H.  `ndbm compatibility' interface of BSD
# db is not fully ndbm compatible, this is a workaround.

# specify -DINT32=<type> which type corresponds to 32bit and
# -DINT16=<type> - which type corresponds to 16bit integer on your
# system, usually "-DINT32=long -DINT16=short"

# ### Defines from ifcico 3.0.cm

# define HAS_SELECT if you have select() system call.  alarm() will not
# be used for timed reads and bidirectional protocols.

# define -DHAS_SYS_SELECT_H if your select() prototype is in sys/select.h
# (otherwise assumed to be in sys/time.h)

# define -DSELECT_NEED_SYS_TIMES_H if #include <sys/times.h> needed to
# use select() (maybe some SCO versions)

# define -DSELECT_NEED_BSDTYPES_H if #include <bsdtypes.h> needed to
# use select()

# define -DEXPERIMENTAL_EMSI if you like to live on the edge... :-)
# It enables experimental EMSI code which should be a bit more standards
# conforming

# ### Defines from version 2.8c-JE

# define -DIGNORE_SOFTCR if you need to treat SoftCR (0x8d) as a printable
# character.

# define -DKEEP_TEARLINES_CLEAN if you want to keep tearlines clean.

# define -DREPLACE_TEARLINES_WITH=\""ifmail 2.8b-JE for 1BM OSF/2"\" if you
# want to replace tearlines with "ifmail 2.8b-JE for 1BM OSF/2."

# define -DRESTAMP_FUTURE_POSTINGS if your news transport agent
# refuses/rejects 'future postings.'

# define -DMACHIGAI to not be fooled whith those lines like "John:\n" etc,
# some FTN editors use. This option tells ifmail not to consider those lines
# as rfc headers lines, so avoiding that INN rejects the messages for
# "non colon space in header" reason.

# ### Defines in TX versions

# define -DPUDDLE_GATE handle Newsgroups: line generated by puddle.fidonet.org
# (the different newsgroups are separated by ", " instead of ","), in the ftn
# messages. If you don't receive gated echoareas from there you don't need it.

# define -DPCBOARD_GATE to recognize lines generated by usenet-> PcBoard -> ftn
# gateways (I only know one, the 2:320/7)

# -DALLOW_CONTROL allows Control: headers to be gated, and Control: cancel
# to be be created from their ftn counterparts and vice-versa

# -DFORCE_REPLYTO forces REPLYTO and REPLYADDR lines

# -DFORCE_REPLYTO_LOCAL use address local (bestaka), even if a REPLYTO
# with another address already exists.
# So your downlinks only saw gated mail as being from your machine

# -DRNEWSB; when compiled with it, the result of ifnews -N is an
# rnews readable file. (otherwise it puts "#!/bin/sh\nrnews <<__EOF__\n"
# at the beginning). This allows moving the file to news in.coming directory
# and running "rnews -U"; without this option, you have to shell-execute the 
# file, and you have problems with characters of special meaning for the shell
# ( \, `, $, etc.). 

# define -DRESTAMP_OLD_POSTINGS=XX if you want to allow your news transport
# agent to accept articles older tan 15 days (but not more than XX).
# This can be necessary because of the low velocity of FTN routing.

# define -DDONT_REGATE if you don't want ifmail to gate a message
# that was originally gated by another gateway system.

# -DKEEP_MSGID_ON_SPLIT keeps the Message-ID on splitted FTN messages.
# so they are not gated back to usenet on another gateway if the original
# rfc article reached the site first.

# -DAREAS_HACKING allows you to define Areas.fidosite files which
# are scanned for a given fidosite. If the file doesn't exist, then it
# defaults to Areas.

# -DLEVEL=X sets the level for ^aRFC- kludges. If not set 1 is the default.
# it determines the amount of info from rfc headers that is kept when gating
# -1: really nothing is gated, not recommended at all !
#  0: only intended for points or end-leaf nodes that have only an FTN link
#  1: normal level inteded for normal gateways and nodes (points)
#  2: keeps almost everything, including lots of non relevant headers.
#  3: hey! same as 2 but in plain text, no ^aRFC- kludge is used. 
# I recommend you to leave the default value of 1 if you don't _really_ know
# what you are doing.

# -DFSC_0047 implements fsc-0047 ^aSPLIT kludges for splitted messages
# !!! NOT WORKING YET !!!!
# If someone can take a look at it and really implement it I'll highly appreciate
# !!! NOT WORKING YET !!!!

# -DDEFAULT_ORIGIN=\"string\" to specify the string to put in Origin lines
# for messages which haven't one nor an Organisation: header.
# The default is "Unknown".

# -DTERMAIL_HACK tries to correct a bug in TerMail 4 which sometimes reports
# incorrect charsets (ie: puts "LATIN-1 2" while the message use in fact 
# "IBMPC 2". Hoping that version 5 will repair it.

# -DFSCHTML text/html support from fsc proposal of Lee Kindness (2:259/7.1)
# <lkindness@csl.co.uk>

# -DPGP_LIKE_DASHES compiles the Eugene's code that changes "---" to "- ---"
# I prefer not tu use it until I don't do the reverse, it will also mess up
# the PGP signatures...

# -DPKT_2_2 creates outbound packets in the 2.2 pkt format,
# instead of 2+ format. take a look at iflib/packet.c for the differences
# between those two formats

# -DGATEBAU_MSGID uses Gatebau rules for MSGID <-> Message-ID conversion
# instead of the ifmail rules. ** USE IT WHITH CARE **

# -DADD_PID adds a ^aPID kludge when gating to FTN whit the name of the
# user program used by the message author (if that can be retrieved; if not
# the ^aPID isn't added)

#General options:
# These are not machine dependent, and describe only ifmail/ifcico features
OPTS        = -DTERMAIL_HACK -DTPUT_STATUS_HACK -DADD_PID -DLEVEL=0 \
		-DDONT_REGATE -DSLAVE_SENDS_NAK_TOO \
		-DRNEWSB -DJE \
		-DRESTAMP_OLD_POSTINGS=14 -DBELEIVE_ZFIN=1 \
		-DHAS_TCP -DAREAS_HACKING \
		-DRESTAMP_FUTURE_POSTINGS -DFSCHTML -DMACHIGAI \
		-DALLOW_RETURNPATH -DGATEBAU_MSGID \
		-DDIRTY_CHRS -DHIDDEN \
		-DAREAS_NUMERAL_COMMENTS
		
#		-DAREAS_NUMERAL_COMPATIBILITY
#		-DALLOW_CONTROL
#		-DPARANOID -DNEED_UUCPFROM
 
# Linux/x86:   
# (If you use glibc2 aka libc6.x add -DHAS_BSD_SIGNALS)
# (If you use libc5 remove -DHAS_BSD_SIGNALS)
OPTS        += -DHAS_STATFS -DSTATFS_IN_VFS_H -DHAS_SETSID -DHAS_NDBM_H \
		-DDONT_HAVE_TM_GMTOFF -DHAS_TERMIOS_H -DASCII_LOCKFILES \
		-DHAS_FSYNC -DHAS_IOCTL_H -DHAS_REGEX_H \
		-DNEED_BSY -DNO_IO_AFTER_HANGUP -DDO_NEED_TIME \
		-DNEED_FORK -DHAS_BSD_SIGNALS -DHAS_SELECT \
		-DUSE_SETPROCTITLE \
		-DINT32=long -DINT16=short -D_GNU_SOURCE

# 386BSD, FreeBSD:
#OPTS        += -DHAS_STATFS -DSTATFS_IN_MOUNT_H -DHAS_SETSID -DHAS_NDBM_H \
#		-DHAS_TERMIOS_H -DASCII_LOCKFILES -DHAS_FSYNC -DHAS_IOCTL_H \
#		-DHAS_REGEX_H -DHAS_SYSLOG \
#		-DNEED_BSY -DNEED_FORK -DNEGATIVE_SEEK_BUG \
#		-DHAS_SYS_ERRLIST -DHAS_BSD_SIGNALS -DHAS_SELECT \
#		-DINT32=long -DINT16=short

# SVR4:
#OPTS        += -DHAS_STATVFS -DDONT_HAVE_TM_GMTOFF -DHAS_SETSID -DHAS_NDBM_H \
#		-DHAS_TERMIOS_H -DHAS_DIAL -DHAS_DIAL_H -DASCII_LOCKFILES \
#		-DHAS_FSYNC -DHAS_IOCTL_H -DHAS_LIBGEN_H -DHAS_SELECT \
#		-DHAS_SYSLOG -DINT32=long -DINT16=short

# Solaris
#OPTS        += -DHAS_STATVFS -DDONT_HAVE_TM_GMTOFF -DHAS_SETSID -DHAS_NDBM_H \
#		-DHAS_TERMIOS_H -DHAS_DIAL -DHAS_DIAL_H -DASCII_LOCKFILES \
#		-DHAS_FSYNC -DHAS_IOCTL_H -DHAS_LIBGEN_H -DNEED_BSY \
#		-DHAS_SELECT -DHAS_SYSLOG -DINT32=long -DINT16=short

# RISCOS5:
#OPTS        += -DHAS_STATVFS -DDONT_HAVE_TM_GMTOFF -DHAS_SETSID -DHAS_NDBM_H \
#		-DHAS_TERMIOS_H -DHAS_DIAL -DHAS_DIAL_H -DASCII_LOCKFILES \
#		-DHAS_FSYNC -DHAS_IOCTL_H -DHAS_LIBGEN_H \
#		-DHAS_SYSLOG \
#		-DCRTSFL_COMMAND=\"${BINDIR}/rtscts\" \
#		-DMIPS_RTSCTS_HACKING=\"${BINDIR}/rtscts\" \
#		-DMIPS_DATE_HACKING -DMIPS_SPEED_HACKING \
#		-DINT32=long -DINT16=short

# SunOS:
#OPTS        += -DHAS_STATFS -DSTATFS_IN_VFS_H -DHAS_SETSID -DHAS_NDBM_H \
#		-DDONT_HAVE_GETOPT -DHAS_TERMIOS_H -DASCII_LOCKFILES \
#		-DHAS_FSYNC -DHAS_SYSLOG -DHAS_SELECT \
#		-DINT32=long -DINT16=short

# SCO Unix 3.2v4.2
#OPTS        += -DHAS_STATFS -DSTATFS_IN_STATFS_H -DSCO_STYLE_STATFS \
#		-DHAS_TERMIOS_H -DDONT_HAVE_TM_GMTOFF -DDO_NEED_TIME \
#		-DDONT_HAVE_GETOPT -DASCII_LOCKFILES -DHAS_IOCTL_H \
#		-DHAS_SYSLOG \
#		-DINT32=long -DINT16=short

# ISC Unix 3.2 v3.0
#OPTS        += -DHAS_STATFS -DSTATFS_IN_STATFS_H -DHAS_TERMIO_H \
#		-DDONT_HAVE_TM_GMTOFF -DDONT_HAVE_GETOPT \
#		-DASCII_LOCKFILES -DHAS_IOCTL_H -DSCO_STYLE_STATFS \
#		-DUSE_POLL -DHAS_NET_ERRNO_H -DSHORT_PID_T \
#		-DHAS_SYSLOG \
#		-DINT32=long -DINT16=short
# On ISC, if you are suing gcc, you can run into a trouble with sscanf()
# function.  It appears that sscanf(string,"%d.%d",&int1,&int2) where
# string is a constant segfaults unless you specify "-fwritable-strings"
# to gcc.  I would say that this is a bug in ISC libc.  If nessecary,
# add this to the defines above.  If you have ISC version 4.0 or later,
# you can add "-posix", remove "-DSHORT_PID_T" and specify "-DHAS_TERMIOS"
# to get benefit of posix terminal control.

# AIX 3.2.5
#OPTS        += -DDONT_HAVE_TM_GMTOFF -DDO_NEED_TIME \
#		-DHAS_TERMIOS_H -DASCII_LOCKFILES -DHAS_FSYNC \
#		-DHAS_IOCTL_H -DHAS_STATFS -DSTATFS_IN_STATFS_H \
#		-DNEED_BSY -DINT32=long -DINT16=short

# NeXTSTEP
#OPTS         += -DHAS_STATFS -DSTATFS_IN_VFS_H -DHAS_SETSID \
#		-DHAS_TERMIOS_H -DASCII_LOCKFILES -DHAS_FSYNC -DHAS_IOCTL_H \
#		-DHAS_REGEX_H -DHAS_SYSLOG \
#		-DNEED_BSY -DNEED_FORK -DNEGATIVE_SEEK_BUG \
#		-DDONT_HAVE_GETOPT -DINT32=long \
#		-DINT16=short

# Digital UNIX 3.2 (formerly OSF/1)
#OPTS        += -DHAS_NDBM_H -DHAS_STATVFS -DHAS_SETSID -DNEED_FORK \
#		-DHAS_TERMIOS_H -DASCII_LOCKFILES -DHAS_FSYNC -DHAS_SYSLOG \
#		-DHAS_REGEX_H -DDONT_HAVE_GETOPT \
#		-DNEED_BSY -DSLAVE_SENDS_NAK_TOO -DINT32=int -DINT16=short

# for make install, where to put binaries and what owner to set
# (owner should be a `trusted user' for your MTA)
OWNER = fnet
GROUP = fnet
MODE = 0711
SMODE = 4710
MANDIR = $(DESTDIR)"/usr/man"
MANOWNER = man
MANGROUP = man
MANMODE = 0644

INSTALL = install --strip-program=/bin/true
AR = ar
RANLIB = ranlib
#RANLIB = touch
SHELL = /bin/sh
ECHO = echo -e
#CC = cc
#YACC = bison -y
YACC = bison -y
#LEX = flex
LEX = lex
AWK = awk
TAR = tar

#CFLAGS = -g -Wall
# Linux, 386BSD, FreeBSD, SunOS:
CFLAGS = -Wall -fno-strict-aliasing -std=gnu17 $(EXTRA_CFLAGS)
# SVR4:
#CFLAGS = -O -Xa
# NeXTSTEP
#CFLAGS = -O2 -Wall -posix -g
#LDFLAGS =  -g -L/usr/gnu/lib -nostartfiles /lib/posixcrt0.o
# DgUX
#CFLAGS= -migrate -O5 -ifo -g0
#LDFLAGS = -s

LDFLAGS += -Wl,--as-needed $(EXTRA_LDFLAGS)

# For LIBS, you may need to add "-lfl" if you are using flex 2.4.x
# If you need TERM also add e.g. "/usr/src/term112/client.a"

# Linux
# add -lresolv if you use libc6 (aka glibc 2)
# remove -lresolv if you use libc5
LIBS = -lgdbm -lgdbm_compat -lresolv
# SunOS:
#LIBS =
# 386BSD, FreeBSD:
#LIBS = -lgdbm -lcompat
# SVR4
#LIBS = -ldbm -lform -lnsl -lsocket -lc -L/usr/ucblib -lucb
# Solaris
#LIBS = -ldbm -lform -lresolv -lsocket -lc -L/usr/ucblib
# SCO
#LIBS = -ldbm -lsocket -lintl
# ISC
#LIBS = -lcposix -lmalloc -ldbm -linet -lPW
# NeXTSTEP
#LIBS = -lgdbm -lposix

INCLUDES = -iquote . -iquote ${INCDIR} -I/usr/include
# ISC
#INCLUDES = -I/usr/include/rpcsvc -I${INCDIR}

# What programs are absent at your system?
## !!! tx version uses a lot the strcasestr() function. I have had comments 
## on only Linux and 386BSD, so I don't know if others need to add it or 
## already have in their standard libc. Check out and tell me - P.Saratxaga 
#NEEDED = strcasestr.o strncasecmp.o strcasecmp.o rename.o mkdir.o usleep.o \
#		regexpr.o strerror.o
# Linux
#NEEDED = strcasestr.o
# SVR4
#NEEDED = regexpr.o strcasestr.o
# Solaris
# 	tmpfile.o places temporary file to /tmp, instead of /var/tmp.
# 	This greatly increase performanece of iftoss.
#NEEDED = regexpr.o strcasestr.o tmpfile.o
# SCO
#NEEDED = strcasestr.o strncasecmp.o strcasecmp.o usleep.o regexpr.o
# SunOS and 386BSD and FreeBSD
#NEEDED = signal.o strcasestr.o
# ISC
#NEEDED = usleep.o regexpr.o vsyslog.o
# AIX
#NEEDED = strcasestr.o strncasecmp.o strcasecmp.o

# confitional stuff
ifeq (yes,${USE_NLS})
# uncomment this line if you use libc5
# comment out this line if you use glibc
#LIBS += -lintl
NLSDIR=/usr/share/locale
NLSPACKAGE=ifmail
OPTS += -DHAVE_LOCALE_H -DNLS_CAT_NAME=\"${NLSPACKAGE}\" \
	-DNLS_LOCALE_PATH=\"${NLSDIR}\"
endif
ifeq (yes,${REFERENCES_MSC96})
OPTS += -DREFERENCES_MSC96
endif