[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Writing Rules
From: |
Kevin Ryde |
Subject: |
Re: Writing Rules |
Date: |
05 Dec 2001 08:34:13 +1000 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/20.5 |
"Rev. Jonathan T Sage" <address@hidden> writes:
>
> #define IPL_VERSION = "IP Filter: v3.x.yy"
>
> I need to define IPF_4_3 if x=4, and not define it if x=3.
Perhaps something like (untested),
if grep "IP Filter: v3\.4\." /usr/include/netinet/ipl.h >/dev/null; then
AC_DEFINE(IPF_4_3, 1, [Define for IP Filter v3.4.x])
fi
(Though whether it's particularly robust to be grepping particular
include files is another matter.)
- Writing Rules, Rev. Jonathan T Sage, 2001/12/03
- Re: Writing Rules,
Kevin Ryde <=