summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>1999-11-09 15:55:37 +0000
committerRasmus Lerdorf <rasmus@php.net>1999-11-09 15:55:37 +0000
commit20c9a79432323e54e5d03cf5783e0027ac59f080 (patch)
tree1e256a18097c023a124d0d9cb4a0efeb9dfc5150
parentfd056d0c01fffe19203f823425d73de85c9dbe7e (diff)
downloadphp-git-20c9a79432323e54e5d03cf5783e0027ac59f080.tar.gz
Find ucd-snmp include files more intelligently
-rw-r--r--ext/snmp/config.m47
1 files changed, 4 insertions, 3 deletions
diff --git a/ext/snmp/config.m4 b/ext/snmp/config.m4
index 342ff13532..eab2975974 100644
--- a/ext/snmp/config.m4
+++ b/ext/snmp/config.m4
@@ -25,9 +25,10 @@ AC_ARG_WITH(snmp,
if test "$withval" = "yes"; then
SNMP_INCDIR=/usr/local/include
SNMP_LIBDIR=/usr/local/lib
- test -d /usr/local/include/ucd-snmp && SNMP_INCDIR=/usr/local/include/ucd-snmp
- test -d /usr/include/ucd-snmp && SNMP_INCDIR=/usr/include/ucd-snmp
- test -d /usr/include/snmp && SNMP_INCDIR=/usr/include/snmp
+ test -f /usr/local/include/ucd-snmp/snmp.h && SNMP_INCDIR=/usr/local/include/ucd-snmp
+ test -f /usr/include/ucd-snmp/snmp.h && SNMP_INCDIR=/usr/include/ucd-snmp
+ test -f /usr/include/snmp/snmp.h && SNMP_INCDIR=/usr/include/snmp
+ test -f /usr/include/snmp/include/ucd-snmp/snmp.h && SNMP_INCDIR=/usr/include/snmp/include/ucd-snmp
test -f /usr/lib/libsnmp.a && SNMP_LIBDIR=/usr/lib
test -f /usr/lib/libsnmp.so && SNMP_LIBDIR=/usr/lib
else