Don't include /usr/local if usage of /usr/local has been disabled via
authorjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 26 Oct 2006 14:50:03 +0000 (14:50 +0000)
committerjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 26 Oct 2006 14:50:03 +0000 (14:50 +0000)
configure option.

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

acinclude.m4

index d39338fa4ccaf2e4caa46ff9c5dde58ec1f46293..1ad3d2d02a4e1cf2207b203a26ea231ae3448aeb 100644 (file)
@@ -1365,9 +1365,11 @@ AC_DEFUN([AC_WIRESHARK_ADNS_CHECK],
 
        if test "x$want_adns" = "xdefaultyes"; then
                want_adns=yes
-               withval=/usr/local
-               if test -d "$withval"; then
-                       AC_WIRESHARK_ADD_DASH_L(LDFLAGS, ${withval}/lib)
+               if test "x$ac_cv_enable_usr_local" = "xyes" ; then
+                       withval=/usr/local
+                       if test -d "$withval"; then
+                               AC_WIRESHARK_ADD_DASH_L(LDFLAGS, ${withval}/lib)
+                       fi
                fi
        fi