Squid coding guidelines require automake variables to use naming pattern
ENABLE_* and there is already ENABLE_SNMP defined with intended overlap
of usage. We can drop this unusual variable completely.
AM_CONDITIONAL(ENABLE_SNMP, [test "x$enable_snmp" = "xyes"])
if test "x$enable_snmp" = "xyes"; then
SNMPLIB='../lib/snmplib/libsnmplib.la'
- makesnmplib=snmplib
fi
AC_MSG_NOTICE([SNMP support enabled: $enable_snmp])
AC_SUBST(SNMPLIB)
-AC_SUBST(makesnmplib)
AC_ARG_ENABLE(cachemgr-hostname,
AS_HELP_STRING([--enable-cachemgr-hostname=hostname],
include $(top_srcdir)/src/Common.am
DIST_SUBDIRS = ntlmauth profiler rfcnb smblib libTrie snmplib
-SUBDIRS=$(makesnmplib)
+SUBDIRS=
EXTRA_DIST=
if USE_ESI
SUBDIRS += libTrie
endif
+if ENABLE_SNMP
+SUBDIRS += snmplib
+endif
if ENABLE_XPROF_STATS
SUBDIRS += profiler
endif