xref: /titanic_52/usr/src/cmd/sendmail/cf/feature/conncontrol.m4 (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
1*7c478bd9Sstevel@tonic-gatedivert(-1)
2*7c478bd9Sstevel@tonic-gate#
3*7c478bd9Sstevel@tonic-gate# Copyright (c) 2003, 2004 Sendmail, Inc. and its suppliers.
4*7c478bd9Sstevel@tonic-gate#	All rights reserved.
5*7c478bd9Sstevel@tonic-gate#
6*7c478bd9Sstevel@tonic-gate# By using this file, you agree to the terms and conditions set
7*7c478bd9Sstevel@tonic-gate# forth in the LICENSE file which can be found at the top level of
8*7c478bd9Sstevel@tonic-gate# the sendmail distribution.
9*7c478bd9Sstevel@tonic-gate#
10*7c478bd9Sstevel@tonic-gate# ident	"%Z%%M%	%I%	%E% SMI"
11*7c478bd9Sstevel@tonic-gate#
12*7c478bd9Sstevel@tonic-gate
13*7c478bd9Sstevel@tonic-gatedivert(0)
14*7c478bd9Sstevel@tonic-gateVERSIONID(`$Id: conncontrol.m4,v 1.4 2004/02/19 21:31:47 ca Exp $')
15*7c478bd9Sstevel@tonic-gate
16*7c478bd9Sstevel@tonic-gatedivert(-1)
17*7c478bd9Sstevel@tonic-gateifdef(`_ACCESS_TABLE_', `
18*7c478bd9Sstevel@tonic-gate	define(`_CONN_CONTROL_', `1')
19*7c478bd9Sstevel@tonic-gate	ifelse(defn(`_ARG_'), `', `',
20*7c478bd9Sstevel@tonic-gate		strcasecmp(defn(`_ARG_'), `nodelay'), `1',
21*7c478bd9Sstevel@tonic-gate		`ifdef(`_DELAY_CHECKS_',
22*7c478bd9Sstevel@tonic-gate			`
23*7c478bd9Sstevel@tonic-gate			define(`_CONN_CONTROL_IMMEDIATE_', `1')
24*7c478bd9Sstevel@tonic-gate			define(`_CONTROL_IMMEDIATE_', `1')
25*7c478bd9Sstevel@tonic-gate			',
26*7c478bd9Sstevel@tonic-gate			`errprint(`*** ERROR: FEATURE(`conncontrol', `nodelay') requires FEATURE(`delay_checks')')'
27*7c478bd9Sstevel@tonic-gate		)',
28*7c478bd9Sstevel@tonic-gate		`errprint(`*** ERROR: unknown parameter '"defn(`_ARG_')"` for FEATURE(`conncontrol')')')
29*7c478bd9Sstevel@tonic-gate	define(`_FFR_SRCHLIST_A', `1')
30*7c478bd9Sstevel@tonic-gate	ifelse(len(X`'_ARG2_), `1', `',
31*7c478bd9Sstevel@tonic-gate		_ARG2_, `terminate', `define(`_CONN_CONTROL_REPLY', `421')',
32*7c478bd9Sstevel@tonic-gate		`errprint(`*** ERROR: FEATURE(`conncontrol'): unknown argument '"_ARG2_"
33*7c478bd9Sstevel@tonic-gate)'
34*7c478bd9Sstevel@tonic-gate		)
35*7c478bd9Sstevel@tonic-gate	', `errprint(`*** ERROR: FEATURE(`conncontrol') requires FEATURE(`access_db')
36*7c478bd9Sstevel@tonic-gate')')
37*7c478bd9Sstevel@tonic-gateifdef(`_CONN_CONTROL_REPLY',,`define(`_CONN_CONTROL_REPLY', `452')')
38