]> granicus.if.org Git - php/commitdiff
fix for bug #18794, not checking for actual files
authorDan Kalowsky <kalowsky@php.net>
Thu, 8 Aug 2002 05:52:15 +0000 (05:52 +0000)
committerDan Kalowsky <kalowsky@php.net>
Thu, 8 Aug 2002 05:52:15 +0000 (05:52 +0000)
sapi/nsapi/config.m4

index b7af1be4dac6e38151ad9a336ae2c54bb0381a0f..f09ef1dd09de244d1efc304e0548858622f977e8 100644 (file)
@@ -19,11 +19,13 @@ if test "$PHP_NSAPI" != "no"; then
   if test -d $PHP_NSAPI/include ; then
     NSAPI_INCLUDE=$PHP_NSAPI/include
     AC_MSG_RESULT(Netscape-Enterprise/3.x style)
+    AC_CHECK_HEADERS([$NSAPI_INCLUDE/nsapi.h])
   elif test -d $PHP_NSAPI/plugins/include ; then
     NSAPI_INCLUDE=$PHP_NSAPI/plugins/include
     AC_MSG_RESULT(iPlanet/4.x style)
+    AC_CHECK_HEADERS([$NSAPI_INCLUDE/nsapi.h])
   else
-    AC_MSG_ERROR(Please check you have nsapi.h in either DIR/include or DIR/plugins/include)
+    AC_MSG_ERROR(Please check you have nsapi.h in either $PHP_NSAPI/include or $PHP_NSAPI/plugins/include)
   fi
   PHP_ADD_INCLUDE($NSAPI_INCLUDE)
   PHP_BUILD_THREAD_SAFE