fixes for Net-SNMP lib checks
This commit is contained in:
parent
ce4f26b134
commit
1888e7548e
67
smmapdfw/configure
vendored
67
smmapdfw/configure
vendored
@ -1932,8 +1932,6 @@ if test "${with_netsnmp+set}" = set; then
|
||||
no)
|
||||
WITHOUT_NETSNMP=1
|
||||
;;
|
||||
yes)
|
||||
;;
|
||||
*)
|
||||
WITHOUT_NETSNMP=0
|
||||
;;
|
||||
@ -1948,12 +1946,10 @@ if test "${with_netsnmp_lib_dir+set}" = set; then
|
||||
withval="$with_netsnmp_lib_dir"
|
||||
case "$withval" in
|
||||
no)
|
||||
WITHOUT_NETSNMP=1
|
||||
;;
|
||||
yes)
|
||||
;;
|
||||
*)
|
||||
WITHOUT_NETSNMP=0
|
||||
LDFLAGS="$LDFLAGS -L$withval -R$withval"
|
||||
;;
|
||||
esac
|
||||
@ -1966,12 +1962,10 @@ if test "${with_netsnmp_inc_dir+set}" = set; then
|
||||
withval="$with_netsnmp_inc_dir"
|
||||
case "$withval" in
|
||||
no)
|
||||
WITHOUT_NETSNMP=1
|
||||
;;
|
||||
yes)
|
||||
;;
|
||||
*)
|
||||
WITHOUT_NETSNMP=0
|
||||
CPPFLAGS="$CPPFLAGS -I$withval"
|
||||
;;
|
||||
esac
|
||||
@ -3518,7 +3512,7 @@ ia64-*-hpux*)
|
||||
;;
|
||||
*-*-irix6*)
|
||||
# Find out which ABI we are using.
|
||||
echo '#line 3521 "configure"' > conftest.$ac_ext
|
||||
echo '#line 3515 "configure"' > conftest.$ac_ext
|
||||
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
||||
(eval $ac_compile) 2>&5
|
||||
ac_status=$?
|
||||
@ -4973,7 +4967,7 @@ fi
|
||||
|
||||
|
||||
# Provide some information about the compiler.
|
||||
echo "$as_me:4976:" \
|
||||
echo "$as_me:4970:" \
|
||||
"checking for Fortran 77 compiler version" >&5
|
||||
ac_compiler=`set X $ac_compile; echo $2`
|
||||
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
||||
@ -6005,11 +5999,11 @@ else
|
||||
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
||||
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
||||
-e 's:$: $lt_compiler_flag:'`
|
||||
(eval echo "\"\$as_me:6008: $lt_compile\"" >&5)
|
||||
(eval echo "\"\$as_me:6002: $lt_compile\"" >&5)
|
||||
(eval "$lt_compile" 2>conftest.err)
|
||||
ac_status=$?
|
||||
cat conftest.err >&5
|
||||
echo "$as_me:6012: \$? = $ac_status" >&5
|
||||
echo "$as_me:6006: \$? = $ac_status" >&5
|
||||
if (exit $ac_status) && test -s "$ac_outfile"; then
|
||||
# The compiler can only warn and ignore the option if not recognized
|
||||
# So say no if there are warnings
|
||||
@ -6238,11 +6232,11 @@ else
|
||||
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
||||
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
||||
-e 's:$: $lt_compiler_flag:'`
|
||||
(eval echo "\"\$as_me:6241: $lt_compile\"" >&5)
|
||||
(eval echo "\"\$as_me:6235: $lt_compile\"" >&5)
|
||||
(eval "$lt_compile" 2>conftest.err)
|
||||
ac_status=$?
|
||||
cat conftest.err >&5
|
||||
echo "$as_me:6245: \$? = $ac_status" >&5
|
||||
echo "$as_me:6239: \$? = $ac_status" >&5
|
||||
if (exit $ac_status) && test -s "$ac_outfile"; then
|
||||
# The compiler can only warn and ignore the option if not recognized
|
||||
# So say no if there are warnings
|
||||
@ -6298,11 +6292,11 @@ else
|
||||
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
||||
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
||||
-e 's:$: $lt_compiler_flag:'`
|
||||
(eval echo "\"\$as_me:6301: $lt_compile\"" >&5)
|
||||
(eval echo "\"\$as_me:6295: $lt_compile\"" >&5)
|
||||
(eval "$lt_compile" 2>out/conftest.err)
|
||||
ac_status=$?
|
||||
cat out/conftest.err >&5
|
||||
echo "$as_me:6305: \$? = $ac_status" >&5
|
||||
echo "$as_me:6299: \$? = $ac_status" >&5
|
||||
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
||||
then
|
||||
# The compiler can only warn and ignore the option if not recognized
|
||||
@ -8486,7 +8480,7 @@ else
|
||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 8489 "configure"
|
||||
#line 8483 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
@ -8584,7 +8578,7 @@ else
|
||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 8587 "configure"
|
||||
#line 8581 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
@ -10761,11 +10755,11 @@ else
|
||||
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
||||
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
||||
-e 's:$: $lt_compiler_flag:'`
|
||||
(eval echo "\"\$as_me:10764: $lt_compile\"" >&5)
|
||||
(eval echo "\"\$as_me:10758: $lt_compile\"" >&5)
|
||||
(eval "$lt_compile" 2>conftest.err)
|
||||
ac_status=$?
|
||||
cat conftest.err >&5
|
||||
echo "$as_me:10768: \$? = $ac_status" >&5
|
||||
echo "$as_me:10762: \$? = $ac_status" >&5
|
||||
if (exit $ac_status) && test -s "$ac_outfile"; then
|
||||
# The compiler can only warn and ignore the option if not recognized
|
||||
# So say no if there are warnings
|
||||
@ -10821,11 +10815,11 @@ else
|
||||
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
||||
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
||||
-e 's:$: $lt_compiler_flag:'`
|
||||
(eval echo "\"\$as_me:10824: $lt_compile\"" >&5)
|
||||
(eval echo "\"\$as_me:10818: $lt_compile\"" >&5)
|
||||
(eval "$lt_compile" 2>out/conftest.err)
|
||||
ac_status=$?
|
||||
cat out/conftest.err >&5
|
||||
echo "$as_me:10828: \$? = $ac_status" >&5
|
||||
echo "$as_me:10822: \$? = $ac_status" >&5
|
||||
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
||||
then
|
||||
# The compiler can only warn and ignore the option if not recognized
|
||||
@ -12190,7 +12184,7 @@ else
|
||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 12193 "configure"
|
||||
#line 12187 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
@ -12288,7 +12282,7 @@ else
|
||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 12291 "configure"
|
||||
#line 12285 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
@ -13115,11 +13109,11 @@ else
|
||||
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
||||
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
||||
-e 's:$: $lt_compiler_flag:'`
|
||||
(eval echo "\"\$as_me:13118: $lt_compile\"" >&5)
|
||||
(eval echo "\"\$as_me:13112: $lt_compile\"" >&5)
|
||||
(eval "$lt_compile" 2>conftest.err)
|
||||
ac_status=$?
|
||||
cat conftest.err >&5
|
||||
echo "$as_me:13122: \$? = $ac_status" >&5
|
||||
echo "$as_me:13116: \$? = $ac_status" >&5
|
||||
if (exit $ac_status) && test -s "$ac_outfile"; then
|
||||
# The compiler can only warn and ignore the option if not recognized
|
||||
# So say no if there are warnings
|
||||
@ -13175,11 +13169,11 @@ else
|
||||
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
||||
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
||||
-e 's:$: $lt_compiler_flag:'`
|
||||
(eval echo "\"\$as_me:13178: $lt_compile\"" >&5)
|
||||
(eval echo "\"\$as_me:13172: $lt_compile\"" >&5)
|
||||
(eval "$lt_compile" 2>out/conftest.err)
|
||||
ac_status=$?
|
||||
cat out/conftest.err >&5
|
||||
echo "$as_me:13182: \$? = $ac_status" >&5
|
||||
echo "$as_me:13176: \$? = $ac_status" >&5
|
||||
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
||||
then
|
||||
# The compiler can only warn and ignore the option if not recognized
|
||||
@ -15220,11 +15214,11 @@ else
|
||||
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
||||
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
||||
-e 's:$: $lt_compiler_flag:'`
|
||||
(eval echo "\"\$as_me:15223: $lt_compile\"" >&5)
|
||||
(eval echo "\"\$as_me:15217: $lt_compile\"" >&5)
|
||||
(eval "$lt_compile" 2>conftest.err)
|
||||
ac_status=$?
|
||||
cat conftest.err >&5
|
||||
echo "$as_me:15227: \$? = $ac_status" >&5
|
||||
echo "$as_me:15221: \$? = $ac_status" >&5
|
||||
if (exit $ac_status) && test -s "$ac_outfile"; then
|
||||
# The compiler can only warn and ignore the option if not recognized
|
||||
# So say no if there are warnings
|
||||
@ -15453,11 +15447,11 @@ else
|
||||
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
||||
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
||||
-e 's:$: $lt_compiler_flag:'`
|
||||
(eval echo "\"\$as_me:15456: $lt_compile\"" >&5)
|
||||
(eval echo "\"\$as_me:15450: $lt_compile\"" >&5)
|
||||
(eval "$lt_compile" 2>conftest.err)
|
||||
ac_status=$?
|
||||
cat conftest.err >&5
|
||||
echo "$as_me:15460: \$? = $ac_status" >&5
|
||||
echo "$as_me:15454: \$? = $ac_status" >&5
|
||||
if (exit $ac_status) && test -s "$ac_outfile"; then
|
||||
# The compiler can only warn and ignore the option if not recognized
|
||||
# So say no if there are warnings
|
||||
@ -15513,11 +15507,11 @@ else
|
||||
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
|
||||
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
|
||||
-e 's:$: $lt_compiler_flag:'`
|
||||
(eval echo "\"\$as_me:15516: $lt_compile\"" >&5)
|
||||
(eval echo "\"\$as_me:15510: $lt_compile\"" >&5)
|
||||
(eval "$lt_compile" 2>out/conftest.err)
|
||||
ac_status=$?
|
||||
cat out/conftest.err >&5
|
||||
echo "$as_me:15520: \$? = $ac_status" >&5
|
||||
echo "$as_me:15514: \$? = $ac_status" >&5
|
||||
if (exit $ac_status) && test -s out/conftest2.$ac_objext
|
||||
then
|
||||
# The compiler can only warn and ignore the option if not recognized
|
||||
@ -17701,7 +17695,7 @@ else
|
||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 17704 "configure"
|
||||
#line 17698 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
@ -17799,7 +17793,7 @@ else
|
||||
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
|
||||
lt_status=$lt_dlunknown
|
||||
cat > conftest.$ac_ext <<EOF
|
||||
#line 17802 "configure"
|
||||
#line 17796 "configure"
|
||||
#include "confdefs.h"
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
@ -19432,8 +19426,9 @@ fi
|
||||
|
||||
ENABLE_NETSNMP=0
|
||||
if test "x$WITHOUT_NETSNMP" = "x0"; then
|
||||
NETSNMP_LIBS=`net-snmp-config --netsnmp-agent-libs`
|
||||
LIBS="$LIBS $NETSNMP_LIBS"
|
||||
NETSNMP_LIBS_1=`net-snmp-config --netsnmp-agent-libs`
|
||||
NETSNMP_LIBS_2=`net-snmp-config --libs`
|
||||
LIBS="$LIBS $NETSNMP_LIBS_1 $NETSNMP_LIBS_2"
|
||||
ENABLE_NETSNMP=1
|
||||
fi
|
||||
|
||||
|
@ -85,8 +85,6 @@ AC_ARG_WITH(netsnmp,
|
||||
no)
|
||||
WITHOUT_NETSNMP=1
|
||||
;;
|
||||
yes)
|
||||
;;
|
||||
*)
|
||||
WITHOUT_NETSNMP=0
|
||||
;;
|
||||
@ -99,12 +97,10 @@ AC_ARG_WITH(netsnmp-lib-dir,
|
||||
Directory for Net-SNMP library files])],
|
||||
[ case "$withval" in
|
||||
no)
|
||||
WITHOUT_NETSNMP=1
|
||||
;;
|
||||
yes)
|
||||
;;
|
||||
*)
|
||||
WITHOUT_NETSNMP=0
|
||||
LDFLAGS="$LDFLAGS -L$withval -R$withval"
|
||||
;;
|
||||
esac ]
|
||||
@ -115,12 +111,10 @@ AC_ARG_WITH(netsnmp-inc-dir,
|
||||
Directory for Net-SNMP include files])],
|
||||
[ case "$withval" in
|
||||
no)
|
||||
WITHOUT_NETSNMP=1
|
||||
;;
|
||||
yes)
|
||||
;;
|
||||
*)
|
||||
WITHOUT_NETSNMP=0
|
||||
CPPFLAGS="$CPPFLAGS -I$withval"
|
||||
;;
|
||||
esac ]
|
||||
@ -199,8 +193,9 @@ fi
|
||||
|
||||
ENABLE_NETSNMP=0
|
||||
if test "x$WITHOUT_NETSNMP" = "x0"; then
|
||||
NETSNMP_LIBS=`net-snmp-config --netsnmp-agent-libs`
|
||||
LIBS="$LIBS $NETSNMP_LIBS"
|
||||
NETSNMP_LIBS_1=`net-snmp-config --netsnmp-agent-libs`
|
||||
NETSNMP_LIBS_2=`net-snmp-config --libs`
|
||||
LIBS="$LIBS $NETSNMP_LIBS_1 $NETSNMP_LIBS_2"
|
||||
ENABLE_NETSNMP=1
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user