summaryrefslogtreecommitdiff
path: root/sapi/nsapi/config.m4
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2002-09-29 22:24:20 +0000
committerfoobar <sniper@php.net>2002-09-29 22:24:20 +0000
commit350340241ca37124855aa61e95169ca516e321ed (patch)
treea44754d08aab10a2778e96dd98a79572452390a4 /sapi/nsapi/config.m4
parent7f18442882e1de3af0b5b0e8b61a3caadb2a8ee9 (diff)
downloadphp-git-350340241ca37124855aa61e95169ca516e321ed.tar.gz
Possible fix for #19290
Diffstat (limited to 'sapi/nsapi/config.m4')
-rw-r--r--sapi/nsapi/config.m45
1 files changed, 3 insertions, 2 deletions
diff --git a/sapi/nsapi/config.m4 b/sapi/nsapi/config.m4
index db6231c814..6a556dbe6f 100644
--- a/sapi/nsapi/config.m4
+++ b/sapi/nsapi/config.m4
@@ -22,7 +22,7 @@ if test "$PHP_NSAPI" != "no"; then
AC_CHECK_HEADERS([$NSAPI_INCLUDE/nsapi.h])
fi
if test -d $PHP_NSAPI/plugins/include ; then
- NSAPI_INC_DIR="$NSAPI_INCLUDE"
+ test -n "$NSAPI_INCLUDE" && NSAPI_INC_DIR="-I$NSAPI_INCLUDE"
NSAPI_INCLUDE="$PHP_NSAPI/plugins/include"
AC_MSG_RESULT(iPlanet/4.x style)
AC_CHECK_HEADERS([$NSAPI_INCLUDE/nsapi.h])
@@ -31,7 +31,8 @@ if test "$PHP_NSAPI" != "no"; then
if test "$NSAPI_INCLUDE" = ""; then
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_EVAL_INCLINE($NSAPI_INCLUDE)
PHP_BUILD_THREAD_SAFE
AC_DEFINE(HAVE_NSAPI,1,[Whether you have a Netscape Server])
PHP_SELECT_SAPI(nsapi, shared, nsapi.c)