Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ./configure --disable-xxxx handling. #477

Merged
merged 2 commits into from
Oct 19, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,9 @@ fi

#Tidz up? esp not using in source dist flow-tools
AC_ARG_ENABLE(ftconv,
[ --enable-ftconv Build the flow-tools to nfdump converter; default is NO],
[ --enable-ftconv Build the flow-tools to nfdump converter; default is NO])

AS_IF([test "x$enable_ftconv" = "xyes"],
AC_CHECK_LIB(z, zlibVersion,,
AC_MSG_ERROR(Link with "-lz" failed! (Need zlib >= 1.0.2))
)
Expand Down Expand Up @@ -173,7 +175,9 @@ AM_CONDITIONAL([MAXMIND], [test "x$use_maxmind" = "xyes"])

#Needs tidy
AC_ARG_ENABLE(nfprofile,
[ --enable-nfprofile Build nfprofile used by NfSen; default is NO],
[ --enable-nfprofile Build nfprofile used by NfSen; default is NO])

AS_IF([test "x$enable_nfprofile" = "xyes"],
[
AC_CHECK_LIB(rrd, rrd_update,[
cat >>config.h <<_ACEOF
Expand Down Expand Up @@ -229,7 +233,9 @@ AM_CONDITIONAL(INFLXDB, false)
)

AC_ARG_ENABLE(nftrack,
[ --enable-nftrack Build nftrack used by PortTracker; default is NO],
[ --enable-nftrack Build nftrack used by PortTracker; default is NO])

AS_IF([test "x$enable_nftrack" = "xyes"],
[
AC_CHECK_LIB(rrd, rrd_update,[
cat >>config.h <<_ACEOF
Expand Down Expand Up @@ -272,7 +278,9 @@ AC_ARG_ENABLE(readpcap,
AM_CONDITIONAL(READPCAP, test "$enable_readpcap" = yes)

AC_ARG_ENABLE(nfpcapd,
[ --enable-nfpcapd Build nfpcapd collector to create netflow data from interface or pcap data; default is NO],
[ --enable-nfpcapd Build nfpcapd collector to create netflow data from interface or pcap data; default is NO])

AS_IF([test "x$enable_nfpcapd" = "xyes"],
[
AC_CHECK_LIB(pcap, pcap_create,[
cat >>config.h <<_ACEOF
Expand Down