mirror of
https://github.com/firehol/firehol.git
synced 2024-06-29 18:32:16 +00:00
Compile and install iprange to /sbin
Added option --disable-iprange to avoid it
This commit is contained in:
parent
12cc6f65bb
commit
5b40aec1ad
21
configure.ac
21
configure.ac
@ -29,6 +29,12 @@ AC_ARG_ENABLE([man],
|
||||
[enable_man="yes"])
|
||||
AM_CONDITIONAL([ENABLE_MAN], [test "${enable_man}" = "yes"])
|
||||
|
||||
AC_ARG_ENABLE([iprange],
|
||||
[AS_HELP_STRING([--disable-iprange], [disable iprange installation @<:@enabled@:>@])],
|
||||
,
|
||||
[enable_iprange="yes"])
|
||||
AM_CONDITIONAL([ENABLE_IPRANGE], [test "${enable_iprange}" = "yes"])
|
||||
|
||||
if test x"$USE_MAINTAINER_MODE" = xyes; then
|
||||
AC_MSG_NOTICE(***************** MAINTAINER MODE *****************)
|
||||
PACKAGE_BUILT_DATE=$(date '+%d %b %Y')
|
||||
@ -52,7 +58,6 @@ else
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
FIREHOL_CONFIG_DIR=$(eval echo "$sysconfdir/firehol" | sed -e 's|^NONE|/usr/local|')
|
||||
AC_SUBST(FIREHOL_CONFIG_DIR)
|
||||
|
||||
@ -103,6 +108,20 @@ AC_CHECK_PROG([ZCAT_CMD], [gzcat], [gzcat])
|
||||
AC_CHECK_PROG([ZCAT_CMD], [gunzip], [gunzip -c])
|
||||
AX_NEED_PROG([ZCAT_CMD], [gzip], [gzip -d -c])
|
||||
|
||||
if test x"$enable_iprange" = xyes; then
|
||||
AC_PROG_CC
|
||||
AC_HEADER_STDC
|
||||
AC_CHECK_HEADERS(sys/socket.h,,AC_MSG_ERROR(sys/socket.h missing))
|
||||
AC_CHECK_HEADERS(netinet/in.h,,AC_MSG_ERROR(netinet/in.h missing))
|
||||
AC_CHECK_HEADERS(arpa/inet.h,,AC_MSG_ERROR(arpa/inet.h missing))
|
||||
AC_CHECK_HEADERS(sys/time.h,,AC_MSG_ERROR(sys/time.h missing))
|
||||
AC_CHECK_FUNC(htonl,,AC_MSG_ERROR(htonl() not found))
|
||||
else
|
||||
dnl Horrible but how else to make the compiler completely optional?
|
||||
AM_CONDITIONAL([AMDEP], false)
|
||||
AM_CONDITIONAL([am__fastdepCC], false)
|
||||
fi
|
||||
|
||||
AC_CONFIG_FILES([
|
||||
Makefile
|
||||
sbin/Makefile
|
||||
|
@ -9,7 +9,6 @@ contrib_SCRIPTS = \
|
||||
|
||||
contrib_DATA = \
|
||||
contrib.mak \
|
||||
iprange.c \
|
||||
iprange.md
|
||||
|
||||
EXTRA_DIST = \
|
||||
|
@ -1,3 +1,10 @@
|
||||
# Process this file with automake to produce Makefile.in
|
||||
|
||||
sbin_SCRIPTS = firehol fireqos link-balancer vnetbuild
|
||||
|
||||
if ENABLE_IPRANGE
|
||||
|
||||
sbin_PROGRAMS = iprange
|
||||
iprange_SOURCES = iprange.c
|
||||
|
||||
endif
|
||||
|
@ -1437,7 +1437,11 @@ void usage(const char *me) {
|
||||
fprintf(stderr, "\n"
|
||||
"iprange\n"
|
||||
"manage IP ranges\n"
|
||||
#ifdef VERSION
|
||||
"version: " VERSION " ($Id$)\n"
|
||||
#else
|
||||
"version: $Id$\n"
|
||||
#endif
|
||||
"\n"
|
||||
"Original, Copyright (C) 2003 Gabriel L. Somlo\n"
|
||||
"Adapted, Copyright (C) 2004 Paul Townsend\n"
|
Loading…
Reference in New Issue
Block a user