|
|
| |
fp = fopen(f, "rt"); | fp = fopen(f, "rt"); |
if (!fp) { | if (!fp) { |
if(whinge) fprintf(stderr, "%s: %s\n", f, strerror(errno)); |
fp = fopen(SYSCONFDIR"/iftoprc", "rt"); |
goto fail; |
if (!fp) { |
|
if(whinge) fprintf(stderr, "%s: %s\n", f, strerror(errno)); |
|
goto fail; |
|
} |
} | } |
| |
while (fgets(line, MAX_CONFIG_LINE, fp)) { | while (fgets(line, MAX_CONFIG_LINE, fp)) { |
|
|
AC_DEFINE([NEED_PROMISCUOUS_FOR_OUTGOING],1,[Enable default promiscuous mode to capture outgoing packets]) | AC_DEFINE([NEED_PROMISCUOUS_FOR_OUTGOING],1,[Enable default promiscuous mode to capture outgoing packets]) |
fi | fi |
| |
|
# Create SYSCONFDIR #define for config.h |
|
sysconffiledir=$sysconfdir |
|
sysconffiledir=`( |
|
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
|
test "x$exec_prefix" = xNONE && exec_prefix=${prefix} |
|
# Ugly hack, but I don't see how this problem can be solved |
|
# properly that DATAFILE_DIR had a value starting with |
|
# "${prefix}/" instead of e.g. "/usr/local/" |
|
eval eval echo "$sysconfdir" |
|
)` |
|
echo SEE: $sysconffiledir |
|
AC_DEFINE_UNQUOTED(SYSCONFDIR,"$sysconffiledir", [Sysconf Directory]) |
|
|
|
|
dnl | dnl |
dnl Wahey! This might even work. | dnl Wahey! This might even work. |
dnl | dnl |