changequote([,])
])
-AC_DEFUN(PHP_ARG_ANALYZE,[
+AC_DEFUN(PHP_ARG_ANALYZE_EX,[
+ext_output="yes, shared"
+ext_shared=yes
case [$]$1 in
shared,*)
- ext_output="yes, shared"
- ext_shared=yes
$1=`echo "[$]$1"|sed 's/^shared,//'`
;;
shared)
- ext_output="yes, shared"
- ext_shared=yes
$1=yes
;;
no)
;;
esac
-if test "$php_always_shared" = "yes"; then
- ext_output="yes, shared"
- ext_shared=yes
- test "[$]$1" = "no" && $1=yes
-fi
+PHP_ALWAYS_SHARED([$1])
+])
+AC_DEFUN(PHP_ARG_ANALYZE,[
+PHP_ARG_ANALYZE_EX([$1])
ifelse([$2],,,[AC_MSG_RESULT([$ext_output])])
])
dnl from $withval.
dnl
AC_DEFUN(PHP_WITH_SHARED,[
- case $withval in
- shared)
- shared=yes
- withval=yes
- ;;
- shared,*)
- shared=yes
- withval=`echo $withval | sed -e 's/^shared,//'`
- ;;
- *)
- shared=no
- ;;
- esac
- if test -n "$php_always_shared"; then
- shared=yes
- fi
+ PHP_ARG_ANALYZE_EX(withval)
+ shared=$ext_shared
+ unset ext_shared ext_output
])
dnl The problem is that the default compilation flags in Solaris 2.6 won't
VERSION=4.3.0-dev
dnl Define where extension directories are located in the configure context
-AC_DEFUN(PHP_EXT_BUILDDIR,[ext/$1])
-AC_DEFUN(PHP_EXT_SRCDIR,[$abs_srcdir/ext/$1])
-
+AC_DEFUN(PHP_EXT_BUILDDIR,[ext/$1])dnl
+AC_DEFUN(PHP_EXT_SRCDIR,[$abs_srcdir/ext/$1])dnl
+AC_DEFUN(PHP_ALWAYS_SHARED,[])dnl
dnl Setting up the PHP version based on the information above.
dnl -------------------------------------------------------------------------
dnl
AC_DEFUN(PHP_EXT_BUILDDIR,[.])dnl
AC_DEFUN(PHP_EXT_SRCDIR,[$abs_srcdir])dnl
+AC_DEFUN(PHP_ALWAYS_SHARED,[
+ ext_output="yes, shared"
+ ext_shared=yes
+ test "[$]$1" = "no" && $1=yes
+])dnl
dnl
abs_srcdir=`(cd $srcdir && pwd)`
abs_builddir=`pwd`
-php_always_shared=yes
-
PHP_CONFIG_NICE(config.nice)
AC_PROG_CC