better way to disable snmp
This commit is contained in:
parent
9de6cf1de0
commit
2d4e3ffaf6
82
smmapdfw/configure
vendored
82
smmapdfw/configure
vendored
@ -1044,6 +1044,7 @@ Optional Packages:
|
|||||||
--with-bdb-inc-dir Directory for Berkeley include files
|
--with-bdb-inc-dir Directory for Berkeley include files
|
||||||
--with-djbdns-lib-dir Directory for Bernstein's djbdns library files
|
--with-djbdns-lib-dir Directory for Bernstein's djbdns library files
|
||||||
--with-djbdns-inc-dir Directory for Bernstein's djbdns include files
|
--with-djbdns-inc-dir Directory for Bernstein's djbdns include files
|
||||||
|
--with-netsnmp With Net-SNMP
|
||||||
--with-netsnmp-lib-dir Directory for Net-SNMP library files
|
--with-netsnmp-lib-dir Directory for Net-SNMP library files
|
||||||
--with-netsnmp-inc-dir Directory for Net-SNMP include files
|
--with-netsnmp-inc-dir Directory for Net-SNMP include files
|
||||||
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
|
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
|
||||||
@ -1920,7 +1921,27 @@ if test "${with_djbdns_inc_dir+set}" = set; then
|
|||||||
|
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
WITHOUT_NETSNMP=0
|
|
||||||
|
|
||||||
|
WITHOUT_NETSNMP=1
|
||||||
|
|
||||||
|
# Check whether --with-netsnmp or --without-netsnmp was given.
|
||||||
|
if test "${with_netsnmp+set}" = set; then
|
||||||
|
withval="$with_netsnmp"
|
||||||
|
case "$withval" in
|
||||||
|
no)
|
||||||
|
WITHOUT_NETSNMP=1
|
||||||
|
;;
|
||||||
|
yes)
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
WITHOUT_NETSNMP=0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
fi;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Check whether --with-netsnmp-lib-dir or --without-netsnmp-lib-dir was given.
|
# Check whether --with-netsnmp-lib-dir or --without-netsnmp-lib-dir was given.
|
||||||
if test "${with_netsnmp_lib_dir+set}" = set; then
|
if test "${with_netsnmp_lib_dir+set}" = set; then
|
||||||
@ -1932,6 +1953,7 @@ if test "${with_netsnmp_lib_dir+set}" = set; then
|
|||||||
yes)
|
yes)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
WITHOUT_NETSNMP=0
|
||||||
LDFLAGS="$LDFLAGS -L$withval -R$withval"
|
LDFLAGS="$LDFLAGS -L$withval -R$withval"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
@ -1949,6 +1971,7 @@ if test "${with_netsnmp_inc_dir+set}" = set; then
|
|||||||
yes)
|
yes)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
WITHOUT_NETSNMP=0
|
||||||
CPPFLAGS="$CPPFLAGS -I$withval"
|
CPPFLAGS="$CPPFLAGS -I$withval"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
@ -3495,7 +3518,7 @@ ia64-*-hpux*)
|
|||||||
;;
|
;;
|
||||||
*-*-irix6*)
|
*-*-irix6*)
|
||||||
# Find out which ABI we are using.
|
# Find out which ABI we are using.
|
||||||
echo '#line 3498 "configure"' > conftest.$ac_ext
|
echo '#line 3521 "configure"' > conftest.$ac_ext
|
||||||
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
||||||
(eval $ac_compile) 2>&5
|
(eval $ac_compile) 2>&5
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
@ -4950,7 +4973,7 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
# Provide some information about the compiler.
|
# Provide some information about the compiler.
|
||||||
echo "$as_me:4953:" \
|
echo "$as_me:4976:" \
|
||||||
"checking for Fortran 77 compiler version" >&5
|
"checking for Fortran 77 compiler version" >&5
|
||||||
ac_compiler=`set X $ac_compile; echo $2`
|
ac_compiler=`set X $ac_compile; echo $2`
|
||||||
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
||||||
@ -5982,11 +6005,11 @@ else
|
|||||||
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
||||||
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
||||||
-e 's:$: $lt_compiler_flag:'`
|
-e 's:$: $lt_compiler_flag:'`
|
||||||
(eval echo "\"\$as_me:5985: $lt_compile\"" >&5)
|
(eval echo "\"\$as_me:6008: $lt_compile\"" >&5)
|
||||||
(eval "$lt_compile" 2>conftest.err)
|
(eval "$lt_compile" 2>conftest.err)
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
cat conftest.err >&5
|
cat conftest.err >&5
|
||||||
echo "$as_me:5989: \$? = $ac_status" >&5
|
echo "$as_me:6012: \$? = $ac_status" >&5
|
||||||
if (exit $ac_status) && test -s "$ac_outfile"; then
|
if (exit $ac_status) && test -s "$ac_outfile"; then
|
||||||
# The compiler can only warn and ignore the option if not recognized
|
# The compiler can only warn and ignore the option if not recognized
|
||||||
# So say no if there are warnings
|
# So say no if there are warnings
|
||||||
@ -6215,11 +6238,11 @@ else
|
|||||||
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
||||||
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
||||||
-e 's:$: $lt_compiler_flag:'`
|
-e 's:$: $lt_compiler_flag:'`
|
||||||
(eval echo "\"\$as_me:6218: $lt_compile\"" >&5)
|
(eval echo "\"\$as_me:6241: $lt_compile\"" >&5)
|
||||||
(eval "$lt_compile" 2>conftest.err)
|
(eval "$lt_compile" 2>conftest.err)
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
cat conftest.err >&5
|
cat conftest.err >&5
|
||||||
echo "$as_me:6222: \$? = $ac_status" >&5
|
echo "$as_me:6245: \$? = $ac_status" >&5
|
||||||
if (exit $ac_status) && test -s "$ac_outfile"; then
|
if (exit $ac_status) && test -s "$ac_outfile"; then
|
||||||
# The compiler can only warn and ignore the option if not recognized
|
# The compiler can only warn and ignore the option if not recognized
|
||||||
# So say no if there are warnings
|
# So say no if there are warnings
|
||||||
@ -6275,11 +6298,11 @@ else
|
|||||||
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
||||||
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
||||||
-e 's:$: $lt_compiler_flag:'`
|
-e 's:$: $lt_compiler_flag:'`
|
||||||
(eval echo "\"\$as_me:6278: $lt_compile\"" >&5)
|
(eval echo "\"\$as_me:6301: $lt_compile\"" >&5)
|
||||||
(eval "$lt_compile" 2>out/conftest.err)
|
(eval "$lt_compile" 2>out/conftest.err)
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
cat out/conftest.err >&5
|
cat out/conftest.err >&5
|
||||||
echo "$as_me:6282: \$? = $ac_status" >&5
|
echo "$as_me:6305: \$? = $ac_status" >&5
|
||||||
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
||||||
then
|
then
|
||||||
# The compiler can only warn and ignore the option if not recognized
|
# The compiler can only warn and ignore the option if not recognized
|
||||||
@ -8463,7 +8486,7 @@ else
|
|||||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||||
lt_status=$lt_dlunknown
|
lt_status=$lt_dlunknown
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 8466 "configure"
|
#line 8489 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
#if HAVE_DLFCN_H
|
#if HAVE_DLFCN_H
|
||||||
@ -8561,7 +8584,7 @@ else
|
|||||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||||
lt_status=$lt_dlunknown
|
lt_status=$lt_dlunknown
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 8564 "configure"
|
#line 8587 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
#if HAVE_DLFCN_H
|
#if HAVE_DLFCN_H
|
||||||
@ -10738,11 +10761,11 @@ else
|
|||||||
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
||||||
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
||||||
-e 's:$: $lt_compiler_flag:'`
|
-e 's:$: $lt_compiler_flag:'`
|
||||||
(eval echo "\"\$as_me:10741: $lt_compile\"" >&5)
|
(eval echo "\"\$as_me:10764: $lt_compile\"" >&5)
|
||||||
(eval "$lt_compile" 2>conftest.err)
|
(eval "$lt_compile" 2>conftest.err)
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
cat conftest.err >&5
|
cat conftest.err >&5
|
||||||
echo "$as_me:10745: \$? = $ac_status" >&5
|
echo "$as_me:10768: \$? = $ac_status" >&5
|
||||||
if (exit $ac_status) && test -s "$ac_outfile"; then
|
if (exit $ac_status) && test -s "$ac_outfile"; then
|
||||||
# The compiler can only warn and ignore the option if not recognized
|
# The compiler can only warn and ignore the option if not recognized
|
||||||
# So say no if there are warnings
|
# So say no if there are warnings
|
||||||
@ -10798,11 +10821,11 @@ else
|
|||||||
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
||||||
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
||||||
-e 's:$: $lt_compiler_flag:'`
|
-e 's:$: $lt_compiler_flag:'`
|
||||||
(eval echo "\"\$as_me:10801: $lt_compile\"" >&5)
|
(eval echo "\"\$as_me:10824: $lt_compile\"" >&5)
|
||||||
(eval "$lt_compile" 2>out/conftest.err)
|
(eval "$lt_compile" 2>out/conftest.err)
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
cat out/conftest.err >&5
|
cat out/conftest.err >&5
|
||||||
echo "$as_me:10805: \$? = $ac_status" >&5
|
echo "$as_me:10828: \$? = $ac_status" >&5
|
||||||
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
||||||
then
|
then
|
||||||
# The compiler can only warn and ignore the option if not recognized
|
# The compiler can only warn and ignore the option if not recognized
|
||||||
@ -12167,7 +12190,7 @@ else
|
|||||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||||
lt_status=$lt_dlunknown
|
lt_status=$lt_dlunknown
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 12170 "configure"
|
#line 12193 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
#if HAVE_DLFCN_H
|
#if HAVE_DLFCN_H
|
||||||
@ -12265,7 +12288,7 @@ else
|
|||||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||||
lt_status=$lt_dlunknown
|
lt_status=$lt_dlunknown
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 12268 "configure"
|
#line 12291 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
#if HAVE_DLFCN_H
|
#if HAVE_DLFCN_H
|
||||||
@ -13092,11 +13115,11 @@ else
|
|||||||
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
||||||
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
||||||
-e 's:$: $lt_compiler_flag:'`
|
-e 's:$: $lt_compiler_flag:'`
|
||||||
(eval echo "\"\$as_me:13095: $lt_compile\"" >&5)
|
(eval echo "\"\$as_me:13118: $lt_compile\"" >&5)
|
||||||
(eval "$lt_compile" 2>conftest.err)
|
(eval "$lt_compile" 2>conftest.err)
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
cat conftest.err >&5
|
cat conftest.err >&5
|
||||||
echo "$as_me:13099: \$? = $ac_status" >&5
|
echo "$as_me:13122: \$? = $ac_status" >&5
|
||||||
if (exit $ac_status) && test -s "$ac_outfile"; then
|
if (exit $ac_status) && test -s "$ac_outfile"; then
|
||||||
# The compiler can only warn and ignore the option if not recognized
|
# The compiler can only warn and ignore the option if not recognized
|
||||||
# So say no if there are warnings
|
# So say no if there are warnings
|
||||||
@ -13152,11 +13175,11 @@ else
|
|||||||
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
||||||
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
||||||
-e 's:$: $lt_compiler_flag:'`
|
-e 's:$: $lt_compiler_flag:'`
|
||||||
(eval echo "\"\$as_me:13155: $lt_compile\"" >&5)
|
(eval echo "\"\$as_me:13178: $lt_compile\"" >&5)
|
||||||
(eval "$lt_compile" 2>out/conftest.err)
|
(eval "$lt_compile" 2>out/conftest.err)
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
cat out/conftest.err >&5
|
cat out/conftest.err >&5
|
||||||
echo "$as_me:13159: \$? = $ac_status" >&5
|
echo "$as_me:13182: \$? = $ac_status" >&5
|
||||||
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
||||||
then
|
then
|
||||||
# The compiler can only warn and ignore the option if not recognized
|
# The compiler can only warn and ignore the option if not recognized
|
||||||
@ -15197,11 +15220,11 @@ else
|
|||||||
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
||||||
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
||||||
-e 's:$: $lt_compiler_flag:'`
|
-e 's:$: $lt_compiler_flag:'`
|
||||||
(eval echo "\"\$as_me:15200: $lt_compile\"" >&5)
|
(eval echo "\"\$as_me:15223: $lt_compile\"" >&5)
|
||||||
(eval "$lt_compile" 2>conftest.err)
|
(eval "$lt_compile" 2>conftest.err)
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
cat conftest.err >&5
|
cat conftest.err >&5
|
||||||
echo "$as_me:15204: \$? = $ac_status" >&5
|
echo "$as_me:15227: \$? = $ac_status" >&5
|
||||||
if (exit $ac_status) && test -s "$ac_outfile"; then
|
if (exit $ac_status) && test -s "$ac_outfile"; then
|
||||||
# The compiler can only warn and ignore the option if not recognized
|
# The compiler can only warn and ignore the option if not recognized
|
||||||
# So say no if there are warnings
|
# So say no if there are warnings
|
||||||
@ -15430,11 +15453,11 @@ else
|
|||||||
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
||||||
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
||||||
-e 's:$: $lt_compiler_flag:'`
|
-e 's:$: $lt_compiler_flag:'`
|
||||||
(eval echo "\"\$as_me:15433: $lt_compile\"" >&5)
|
(eval echo "\"\$as_me:15456: $lt_compile\"" >&5)
|
||||||
(eval "$lt_compile" 2>conftest.err)
|
(eval "$lt_compile" 2>conftest.err)
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
cat conftest.err >&5
|
cat conftest.err >&5
|
||||||
echo "$as_me:15437: \$? = $ac_status" >&5
|
echo "$as_me:15460: \$? = $ac_status" >&5
|
||||||
if (exit $ac_status) && test -s "$ac_outfile"; then
|
if (exit $ac_status) && test -s "$ac_outfile"; then
|
||||||
# The compiler can only warn and ignore the option if not recognized
|
# The compiler can only warn and ignore the option if not recognized
|
||||||
# So say no if there are warnings
|
# So say no if there are warnings
|
||||||
@ -15490,11 +15513,11 @@ else
|
|||||||
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
||||||
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
||||||
-e 's:$: $lt_compiler_flag:'`
|
-e 's:$: $lt_compiler_flag:'`
|
||||||
(eval echo "\"\$as_me:15493: $lt_compile\"" >&5)
|
(eval echo "\"\$as_me:15516: $lt_compile\"" >&5)
|
||||||
(eval "$lt_compile" 2>out/conftest.err)
|
(eval "$lt_compile" 2>out/conftest.err)
|
||||||
ac_status=$?
|
ac_status=$?
|
||||||
cat out/conftest.err >&5
|
cat out/conftest.err >&5
|
||||||
echo "$as_me:15497: \$? = $ac_status" >&5
|
echo "$as_me:15520: \$? = $ac_status" >&5
|
||||||
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
||||||
then
|
then
|
||||||
# The compiler can only warn and ignore the option if not recognized
|
# The compiler can only warn and ignore the option if not recognized
|
||||||
@ -17678,7 +17701,7 @@ else
|
|||||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||||
lt_status=$lt_dlunknown
|
lt_status=$lt_dlunknown
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 17681 "configure"
|
#line 17704 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
#if HAVE_DLFCN_H
|
#if HAVE_DLFCN_H
|
||||||
@ -17776,7 +17799,7 @@ else
|
|||||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||||
lt_status=$lt_dlunknown
|
lt_status=$lt_dlunknown
|
||||||
cat > conftest.$ac_ext <<EOF
|
cat > conftest.$ac_ext <<EOF
|
||||||
#line 17779 "configure"
|
#line 17802 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
#if HAVE_DLFCN_H
|
#if HAVE_DLFCN_H
|
||||||
@ -19407,6 +19430,7 @@ fi
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
HAVE_LIBSNMP=0
|
||||||
if test "x$WITHOUT_NETSNMP" = "x0"; then
|
if test "x$WITHOUT_NETSNMP" = "x0"; then
|
||||||
NETSNMP_LIBS=`net-snmp-config --netsnmp-agent-libs`
|
NETSNMP_LIBS=`net-snmp-config --netsnmp-agent-libs`
|
||||||
LIBS="$LIBS $NETSNMP_LIBS"
|
LIBS="$LIBS $NETSNMP_LIBS"
|
||||||
|
@ -75,7 +75,25 @@ AC_ARG_WITH(djbdns-inc-dir,
|
|||||||
esac ]
|
esac ]
|
||||||
)
|
)
|
||||||
|
|
||||||
WITHOUT_NETSNMP=0
|
|
||||||
|
|
||||||
|
WITHOUT_NETSNMP=1
|
||||||
|
AC_ARG_WITH(netsnmp,
|
||||||
|
[AC_HELP_STRING(--with-netsnmp, [
|
||||||
|
With Net-SNMP])],
|
||||||
|
[ case "$withval" in
|
||||||
|
no)
|
||||||
|
WITHOUT_NETSNMP=1
|
||||||
|
;;
|
||||||
|
yes)
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
WITHOUT_NETSNMP=0
|
||||||
|
;;
|
||||||
|
esac ]
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
AC_ARG_WITH(netsnmp-lib-dir,
|
AC_ARG_WITH(netsnmp-lib-dir,
|
||||||
[AC_HELP_STRING(--with-netsnmp-lib-dir, [
|
[AC_HELP_STRING(--with-netsnmp-lib-dir, [
|
||||||
Directory for Net-SNMP library files])],
|
Directory for Net-SNMP library files])],
|
||||||
@ -86,6 +104,7 @@ AC_ARG_WITH(netsnmp-lib-dir,
|
|||||||
yes)
|
yes)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
WITHOUT_NETSNMP=0
|
||||||
LDFLAGS="$LDFLAGS -L$withval -R$withval"
|
LDFLAGS="$LDFLAGS -L$withval -R$withval"
|
||||||
;;
|
;;
|
||||||
esac ]
|
esac ]
|
||||||
@ -101,6 +120,7 @@ AC_ARG_WITH(netsnmp-inc-dir,
|
|||||||
yes)
|
yes)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
WITHOUT_NETSNMP=0
|
||||||
CPPFLAGS="$CPPFLAGS -I$withval"
|
CPPFLAGS="$CPPFLAGS -I$withval"
|
||||||
;;
|
;;
|
||||||
esac ]
|
esac ]
|
||||||
@ -177,6 +197,7 @@ if test "x$WITHOUT_DJBDNS" = "x0"; then
|
|||||||
AC_CHECK_LIB([djbdns], [dns_transmit_start])
|
AC_CHECK_LIB([djbdns], [dns_transmit_start])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
HAVE_LIBSNMP=0
|
||||||
if test "x$WITHOUT_NETSNMP" = "x0"; then
|
if test "x$WITHOUT_NETSNMP" = "x0"; then
|
||||||
NETSNMP_LIBS=`net-snmp-config --netsnmp-agent-libs`
|
NETSNMP_LIBS=`net-snmp-config --netsnmp-agent-libs`
|
||||||
LIBS="$LIBS $NETSNMP_LIBS"
|
LIBS="$LIBS $NETSNMP_LIBS"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user