Explorar o código

Fix the MIBPATH prefix hack

Richard Laager %!s(int64=15) %!d(string=hai) anos
pai
achega
aa576d9925
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      configure.in

+ 1 - 1
configure.in

@@ -58,7 +58,7 @@ if test -n "$NETSNMP_CONFIG"; then
      NETSNMP_LIBS="`$NETSNMP_CONFIG --libs`"
      NETSNMP_PREFIX="`$NETSNMP_CONFIG --prefix`"
      # Hack to allow distcheck to succeed.
-     if echo "$NETSNMP_PREFIX" | grep -q "^$prefix"; then
+     if test "x$prefix" = "xNONE" || echo "$NETSNMP_PREFIX" | grep -q "^$prefix"; then
          NETSNMP_MIBPATH="$NETSNMP_PREFIX/share/snmp/mibs"
      else
          NETSNMP_MIBPATH="${prefix}${NETSNMP_PREFIX}/share/snmp/mibs"