Skip to content

Commit

Permalink
Re-add Sascha's PHP_ADD_INCLUDE() second parameter patch - not sure how
Browse files Browse the repository at this point in the history
that got yanked in my fix.
  • Loading branch information
rlerdorf committed Jun 10, 2001
1 parent cf72592 commit c7aa37f
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions acinclude.m4
Expand Up @@ -263,7 +263,8 @@ AC_MSG_RESULT($ext_output)
dnl
dnl PHP_ARG_WITH(arg-name, check message, help text[, default-val])
dnl Sets PHP_ARG_NAME either to the user value or to the default value.
dnl default-val defaults to no.
dnl default-val defaults to no. This will also set the variable ext_shared,
dnl and will overwrite any previous variable of that name.
dnl
AC_DEFUN(PHP_ARG_WITH,[
PHP_REAL_ARG_WITH([$1],[$2],[$3],[$4],PHP_[]translit($1,a-z0-9-,A-Z0-9_))
Expand All @@ -278,7 +279,8 @@ PHP_ARG_ANALYZE($5)
dnl
dnl PHP_ARG_ENABLE(arg-name, check message, help text[, default-val])
dnl Sets PHP_ARG_NAME either to the user value or to the default value.
dnl default-val defaults to no.
dnl default-val defaults to no. This will also set the variable ext_shared,
dnl and will overwrite any previous variable of that name.
dnl
AC_DEFUN(PHP_ARG_ENABLE,[
PHP_REAL_ARG_ENABLE([$1],[$2],[$3],[$4],PHP_[]translit($1,a-z-,A-Z_))
Expand Down Expand Up @@ -587,15 +589,19 @@ AC_DEFUN(PHP_BUILD_RPATH,[
])

dnl
dnl PHP_ADD_INCLUDE(path)
dnl PHP_ADD_INCLUDE(path [,before])
dnl
dnl add a include path
dnl add a include pat, if before is 1, add in front.
dnl
AC_DEFUN(PHP_ADD_INCLUDE,[
if test "$1" != "/usr/include"; then
PHP_EXPAND_PATH($1, ai_p)
AC_PHP_ONCE(INCLUDEPATH, $ai_p, [
INCLUDES="$INCLUDES -I$ai_p"
if test "$2"; then
INCLUDES="-I$ai_p $INCLUDES"
else
INCLUDES="$INCLUDES -I$ai_p"
fi
])
fi
])
Expand Down

0 comments on commit c7aa37f

Please sign in to comment.