Explicitly indicate when we're doing tests to see if UCD SNMP contains
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 26 Sep 2004 22:30:46 +0000 (22:30 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 26 Sep 2004 22:30:46 +0000 (22:30 +0000)
sprint_realloc_objid(), and the extra libraries we're using with the
tests, along the lines of what we do with the Kerberos 5 library.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12108 f5534014-38df-0310-8fa8-9805f1628bb7

acinclude.m4

index 083c2f46274c2798f9fd3461ff99be44eebdef77..123de199f6f3b2bb935e77f326797ae387a814d0 100644 (file)
@@ -789,6 +789,12 @@ AC_DEFUN([AC_ETHEREAL_UCDSNMP_CHECK],
                for extras in "" "-L/usr/kerberos/lib -ldes425" "-lkstat"
                do
                        LIBS="-lsnmp $extras $SOCKET_LIBS $NSL_LIBS $SSL_LIBS"
+                       if test -z "$extras"
+                       then
+                               AC_MSG_CHECKING([whether UCD SNMP includes sprint_realloc_objid])
+                       else
+                               AC_MSG_CHECKING([whether UCD SNMP includes sprint_realloc_objid (linking with $extras)])
+                       fi
                        AC_TRY_LINK(
                            [
                            ],
@@ -801,6 +807,7 @@ AC_DEFUN([AC_ETHEREAL_UCDSNMP_CHECK],
                                # and required the libraries in
                                # extras as well.
                                #
+                               AC_MSG_RESULT(yes)
                                SNMP_LIBS="-lsnmp $extras"; break;
                                found_sprint_realloc_objid=yes
                                break
@@ -813,6 +820,7 @@ AC_DEFUN([AC_ETHEREAL_UCDSNMP_CHECK],
                                # tell them they'll need to specify
                                # --want-ssl.
                                #
+                               AC_MSG_RESULT(no)
                                if test "x$want_ssl" = "xno"
                                then
                                        LIBS="$LIBS -lcrypto"