modify build system to use php instead of php4
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10967 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
dfd94424ba
commit
bcc796f676
71 changed files with 163 additions and 163 deletions
|
|
@ -746,41 +746,41 @@ ruby_clean:
|
||||||
##################################################################
|
##################################################################
|
||||||
|
|
||||||
# -------------------------------------------------------------------
|
# -------------------------------------------------------------------
|
||||||
# Build a PHP4 dynamically loadable module (C)
|
# Build a PHP dynamically loadable module (C)
|
||||||
# -------------------------------------------------------------------
|
# -------------------------------------------------------------------
|
||||||
|
|
||||||
PHP4_INCLUDE = @PHP4INC@
|
PHP_INCLUDE = @PHPINC@
|
||||||
PHP4_SO = @PHP4_SO@
|
PHP_SO = @PHP_SO@
|
||||||
|
|
||||||
php4: $(SRCS)
|
php: $(SRCS)
|
||||||
$(SWIG) -php5 $(SWIGOPT) $(INTERFACEPATH)
|
$(SWIG) -php5 $(SWIGOPT) $(INTERFACEPATH)
|
||||||
$(CC) -c $(CCSHARED) $(CFLAGS) $(SRCS) $(ISRCS) $(INCLUDES) $(PHP4_INCLUDE)
|
$(CC) -c $(CCSHARED) $(CFLAGS) $(SRCS) $(ISRCS) $(INCLUDES) $(PHP_INCLUDE)
|
||||||
$(LDSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(LIBS) -o $(LIBPREFIX)$(TARGET)$(PHP4_SO)
|
$(LDSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(LIBS) -o $(LIBPREFIX)$(TARGET)$(PHP_SO)
|
||||||
|
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
# Build a PHP4 dynamically loadable module (C++)
|
# Build a PHP dynamically loadable module (C++)
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
|
|
||||||
php4_cpp: $(SRCS)
|
php_cpp: $(SRCS)
|
||||||
$(SWIG) -php5 -cppext cxx -c++ $(SWIGOPT) $(INTERFACEPATH)
|
$(SWIG) -php5 -cppext cxx -c++ $(SWIGOPT) $(INTERFACEPATH)
|
||||||
$(CXX) -c $(CCSHARED) $(CFLAGS) $(SRCS) $(CXXSRCS) $(ICXXSRCS) $(INCLUDES) $(PHP4_INCLUDE)
|
$(CXX) -c $(CCSHARED) $(CFLAGS) $(SRCS) $(CXXSRCS) $(ICXXSRCS) $(INCLUDES) $(PHP_INCLUDE)
|
||||||
$(CXXSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(LIBS) $(CPP_DLLIBS) -o $(LIBPREFIX)$(TARGET)$(PHP4_SO)
|
$(CXXSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(LIBS) $(CPP_DLLIBS) -o $(LIBPREFIX)$(TARGET)$(PHP_SO)
|
||||||
|
|
||||||
# -----------------------------------------------------------------
|
# -----------------------------------------------------------------
|
||||||
# Running a PHP4 example
|
# Running a PHP example
|
||||||
# -----------------------------------------------------------------
|
# -----------------------------------------------------------------
|
||||||
|
|
||||||
PHP4=@PHP4@
|
PHP=@PHP@
|
||||||
PHP4SCRIPT ?= runme.php4
|
PHPSCRIPT ?= runme.php
|
||||||
|
|
||||||
php4_run:
|
php_run:
|
||||||
env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH $(RUNTOOL) $(PHP4) -n -q -d extension_dir=. $(PHP4SCRIPT)
|
env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH $(RUNTOOL) $(PHP) -n -q -d extension_dir=. $(PHPSCRIPT)
|
||||||
|
|
||||||
# -----------------------------------------------------------------
|
# -----------------------------------------------------------------
|
||||||
# Cleaning the PHP4 examples
|
# Cleaning the PHP examples
|
||||||
# -----------------------------------------------------------------
|
# -----------------------------------------------------------------
|
||||||
|
|
||||||
php4_clean:
|
php_clean:
|
||||||
rm -f *_wrap* *~ .~* example.php php_example.h
|
rm -f *_wrap* *~ .~* example.php php_example.h
|
||||||
rm -f core @EXTRA_CLEAN@
|
rm -f core @EXTRA_CLEAN@
|
||||||
rm -f *.@OBJEXT@ *@SO@
|
rm -f *.@OBJEXT@ *@SO@
|
||||||
|
|
|
||||||
|
|
@ -9,16 +9,16 @@ SWIGOPT = -noproxy
|
||||||
all::
|
all::
|
||||||
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
||||||
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
||||||
php4_cpp
|
php_cpp
|
||||||
|
|
||||||
static::
|
static::
|
||||||
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
||||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \
|
SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \
|
||||||
php4_cpp_static
|
php_cpp_static
|
||||||
|
|
||||||
clean::
|
clean::
|
||||||
$(MAKE) -f $(TOP)/Makefile php4_clean
|
$(MAKE) -f $(TOP)/Makefile php_clean
|
||||||
rm -f $(TARGET).php
|
rm -f $(TARGET).php
|
||||||
|
|
||||||
check: all
|
check: all
|
||||||
$(MAKE) -f $(TOP)/Makefile php4_run
|
$(MAKE) -f $(TOP)/Makefile php_run
|
||||||
|
|
|
||||||
|
|
@ -9,16 +9,16 @@ SWIGOPT =
|
||||||
all::
|
all::
|
||||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||||
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
||||||
php4
|
php
|
||||||
|
|
||||||
static::
|
static::
|
||||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \
|
SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \
|
||||||
php4_static
|
php_static
|
||||||
|
|
||||||
clean::
|
clean::
|
||||||
$(MAKE) -f $(TOP)/Makefile php4_clean
|
$(MAKE) -f $(TOP)/Makefile php_clean
|
||||||
rm -f $(TARGET).php
|
rm -f $(TARGET).php
|
||||||
|
|
||||||
check: all
|
check: all
|
||||||
$(MAKE) -f $(TOP)/Makefile php4_run
|
$(MAKE) -f $(TOP)/Makefile php_run
|
||||||
|
|
|
||||||
|
|
@ -9,16 +9,16 @@ SWIGOPT =
|
||||||
all::
|
all::
|
||||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||||
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
||||||
php4
|
php
|
||||||
|
|
||||||
static::
|
static::
|
||||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \
|
SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \
|
||||||
php4_static
|
php_static
|
||||||
|
|
||||||
clean::
|
clean::
|
||||||
$(MAKE) -f $(TOP)/Makefile php4_clean
|
$(MAKE) -f $(TOP)/Makefile php_clean
|
||||||
rm -f $(TARGET).php
|
rm -f $(TARGET).php
|
||||||
|
|
||||||
check: all
|
check: all
|
||||||
$(MAKE) -f $(TOP)/Makefile php4_run
|
$(MAKE) -f $(TOP)/Makefile php_run
|
||||||
|
|
|
||||||
|
|
@ -9,16 +9,16 @@ SWIGOPT =
|
||||||
all::
|
all::
|
||||||
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
||||||
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
||||||
php4_cpp
|
php_cpp
|
||||||
|
|
||||||
static::
|
static::
|
||||||
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
||||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \
|
SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \
|
||||||
php4_cpp_static
|
php_cpp_static
|
||||||
|
|
||||||
clean::
|
clean::
|
||||||
$(MAKE) -f $(TOP)/Makefile php4_clean
|
$(MAKE) -f $(TOP)/Makefile php_clean
|
||||||
rm -f $(TARGET).php
|
rm -f $(TARGET).php
|
||||||
|
|
||||||
check: all
|
check: all
|
||||||
$(MAKE) -f $(TOP)/Makefile php4_run
|
$(MAKE) -f $(TOP)/Makefile php_run
|
||||||
|
|
|
||||||
|
|
@ -9,16 +9,16 @@ SWIGOPT = -noproxy
|
||||||
all::
|
all::
|
||||||
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
||||||
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
||||||
php4_cpp
|
php_cpp
|
||||||
|
|
||||||
static::
|
static::
|
||||||
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
||||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \
|
SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \
|
||||||
php4_cpp_static
|
php_cpp_static
|
||||||
|
|
||||||
clean::
|
clean::
|
||||||
$(MAKE) -f $(TOP)/Makefile php4_clean
|
$(MAKE) -f $(TOP)/Makefile php_clean
|
||||||
rm -f $(TARGET).php
|
rm -f $(TARGET).php
|
||||||
|
|
||||||
check: all
|
check: all
|
||||||
$(MAKE) -f $(TOP)/Makefile php4_run
|
$(MAKE) -f $(TOP)/Makefile php_run
|
||||||
|
|
|
||||||
|
|
@ -9,16 +9,16 @@ SWIGOPT =
|
||||||
all::
|
all::
|
||||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||||
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
||||||
php4
|
php
|
||||||
|
|
||||||
static::
|
static::
|
||||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \
|
SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \
|
||||||
php4_static
|
php_static
|
||||||
|
|
||||||
clean::
|
clean::
|
||||||
$(MAKE) -f $(TOP)/Makefile php4_clean
|
$(MAKE) -f $(TOP)/Makefile php_clean
|
||||||
rm -f $(TARGET).php
|
rm -f $(TARGET).php
|
||||||
|
|
||||||
check: all
|
check: all
|
||||||
$(MAKE) -f $(TOP)/Makefile php4_run
|
$(MAKE) -f $(TOP)/Makefile php_run
|
||||||
|
|
|
||||||
|
|
@ -9,16 +9,16 @@ SWIGOPT =
|
||||||
all::
|
all::
|
||||||
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
||||||
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
||||||
php4_cpp
|
php_cpp
|
||||||
|
|
||||||
static::
|
static::
|
||||||
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
||||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \
|
SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \
|
||||||
php4_cpp_static
|
php_cpp_static
|
||||||
|
|
||||||
clean::
|
clean::
|
||||||
$(MAKE) -f $(TOP)/Makefile php4_clean
|
$(MAKE) -f $(TOP)/Makefile php_clean
|
||||||
rm -f $(TARGET).php
|
rm -f $(TARGET).php
|
||||||
|
|
||||||
check: all
|
check: all
|
||||||
$(MAKE) -f $(TOP)/Makefile php4_run
|
$(MAKE) -f $(TOP)/Makefile php_run
|
||||||
|
|
|
||||||
|
|
@ -9,16 +9,16 @@ SWIGOPT =
|
||||||
all::
|
all::
|
||||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||||
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
||||||
php4
|
php
|
||||||
|
|
||||||
static::
|
static::
|
||||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \
|
SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \
|
||||||
php4_static
|
php_static
|
||||||
|
|
||||||
clean::
|
clean::
|
||||||
$(MAKE) -f $(TOP)/Makefile php4_clean
|
$(MAKE) -f $(TOP)/Makefile php_clean
|
||||||
rm -f $(TARGET).php
|
rm -f $(TARGET).php
|
||||||
|
|
||||||
check: all
|
check: all
|
||||||
$(MAKE) -f $(TOP)/Makefile php4_run
|
$(MAKE) -f $(TOP)/Makefile php_run
|
||||||
|
|
|
||||||
|
|
@ -9,16 +9,16 @@ SWIGOPT =
|
||||||
all::
|
all::
|
||||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||||
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
||||||
php4
|
php
|
||||||
|
|
||||||
static::
|
static::
|
||||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \
|
SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \
|
||||||
php4_static
|
php_static
|
||||||
|
|
||||||
clean::
|
clean::
|
||||||
$(MAKE) -f $(TOP)/Makefile php4_clean
|
$(MAKE) -f $(TOP)/Makefile php_clean
|
||||||
rm -f $(TARGET).php
|
rm -f $(TARGET).php
|
||||||
|
|
||||||
check: all
|
check: all
|
||||||
$(MAKE) -f $(TOP)/Makefile php4_run
|
$(MAKE) -f $(TOP)/Makefile php_run
|
||||||
|
|
|
||||||
|
|
@ -9,16 +9,16 @@ SWIGOPT =
|
||||||
all::
|
all::
|
||||||
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
||||||
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
||||||
php4_cpp
|
php_cpp
|
||||||
|
|
||||||
static::
|
static::
|
||||||
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
||||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \
|
SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \
|
||||||
php4_cpp_static
|
php_cpp_static
|
||||||
|
|
||||||
clean::
|
clean::
|
||||||
$(MAKE) -f $(TOP)/Makefile php4_clean
|
$(MAKE) -f $(TOP)/Makefile php_clean
|
||||||
rm -f $(TARGET).php
|
rm -f $(TARGET).php
|
||||||
|
|
||||||
check: all
|
check: all
|
||||||
$(MAKE) -f $(TOP)/Makefile php4_run
|
$(MAKE) -f $(TOP)/Makefile php_run
|
||||||
|
|
|
||||||
|
|
@ -9,16 +9,16 @@ SWIGOPT = -noproxy
|
||||||
all::
|
all::
|
||||||
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
||||||
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
||||||
php4_cpp
|
php_cpp
|
||||||
|
|
||||||
static::
|
static::
|
||||||
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
||||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \
|
SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \
|
||||||
php4_cpp_static
|
php_cpp_static
|
||||||
|
|
||||||
clean::
|
clean::
|
||||||
$(MAKE) -f $(TOP)/Makefile php4_clean
|
$(MAKE) -f $(TOP)/Makefile php_clean
|
||||||
rm -f $(TARGET).php
|
rm -f $(TARGET).php
|
||||||
|
|
||||||
check: all
|
check: all
|
||||||
$(MAKE) -f $(TOP)/Makefile php4_run
|
$(MAKE) -f $(TOP)/Makefile php_run
|
||||||
|
|
|
||||||
|
|
@ -9,16 +9,16 @@ SWIGOPT =
|
||||||
all::
|
all::
|
||||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||||
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
||||||
php4
|
php
|
||||||
|
|
||||||
static::
|
static::
|
||||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \
|
SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \
|
||||||
php4_static
|
php_static
|
||||||
|
|
||||||
clean::
|
clean::
|
||||||
$(MAKE) -f $(TOP)/Makefile php4_clean
|
$(MAKE) -f $(TOP)/Makefile php_clean
|
||||||
rm -f $(TARGET).php
|
rm -f $(TARGET).php
|
||||||
|
|
||||||
check: all
|
check: all
|
||||||
$(MAKE) -f $(TOP)/Makefile php4_run
|
$(MAKE) -f $(TOP)/Makefile php_run
|
||||||
|
|
|
||||||
|
|
@ -9,16 +9,16 @@ SWIGOPT =
|
||||||
all::
|
all::
|
||||||
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
||||||
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
||||||
php4_cpp
|
php_cpp
|
||||||
|
|
||||||
static::
|
static::
|
||||||
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
$(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \
|
||||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \
|
SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \
|
||||||
php4_cpp_static
|
php_cpp_static
|
||||||
|
|
||||||
clean::
|
clean::
|
||||||
$(MAKE) -f $(TOP)/Makefile php4_clean
|
$(MAKE) -f $(TOP)/Makefile php_clean
|
||||||
rm -f $(TARGET).php
|
rm -f $(TARGET).php
|
||||||
|
|
||||||
check: all
|
check: all
|
||||||
$(MAKE) -f $(TOP)/Makefile php4_run
|
$(MAKE) -f $(TOP)/Makefile php_run
|
||||||
|
|
|
||||||
|
|
@ -9,16 +9,16 @@ SWIGOPT = -noproxy
|
||||||
all::
|
all::
|
||||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||||
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
||||||
php4
|
php
|
||||||
|
|
||||||
static::
|
static::
|
||||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \
|
SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \
|
||||||
php4_static
|
php_static
|
||||||
|
|
||||||
clean::
|
clean::
|
||||||
$(MAKE) -f $(TOP)/Makefile php4_clean
|
$(MAKE) -f $(TOP)/Makefile php_clean
|
||||||
rm -f $(TARGET).php
|
rm -f $(TARGET).php
|
||||||
|
|
||||||
check: all
|
check: all
|
||||||
$(MAKE) -f $(TOP)/Makefile php4_run
|
$(MAKE) -f $(TOP)/Makefile php_run
|
||||||
|
|
|
||||||
|
|
@ -9,16 +9,16 @@ SWIGOPT =
|
||||||
all::
|
all::
|
||||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||||
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \
|
||||||
php4
|
php
|
||||||
|
|
||||||
static::
|
static::
|
||||||
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
|
||||||
SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \
|
SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \
|
||||||
php4_static
|
php_static
|
||||||
|
|
||||||
clean::
|
clean::
|
||||||
$(MAKE) -f $(TOP)/Makefile php4_clean
|
$(MAKE) -f $(TOP)/Makefile php_clean
|
||||||
rm -f $(TARGET).php
|
rm -f $(TARGET).php
|
||||||
|
|
||||||
check: all
|
check: all
|
||||||
$(MAKE) -f $(TOP)/Makefile php4_run
|
$(MAKE) -f $(TOP)/Makefile php_run
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
#######################################################################
|
#######################################################################
|
||||||
# Makefile for php4 test-suite
|
# Makefile for php test-suite
|
||||||
#######################################################################
|
#######################################################################
|
||||||
|
|
||||||
LANGUAGE = php4
|
LANGUAGE = php
|
||||||
SCRIPTSUFFIX = _runme.php4
|
SCRIPTSUFFIX = _runme.php
|
||||||
srcdir = @srcdir@
|
srcdir = @srcdir@
|
||||||
top_srcdir = @top_srcdir@
|
top_srcdir = @top_srcdir@
|
||||||
top_builddir = @top_builddir@
|
top_builddir = @top_builddir@
|
||||||
|
|
@ -25,19 +25,19 @@ makectests:
|
||||||
@bash -ec 'for test in $(C_TEST_CASES) ; do $($(MAKE)) clean && $(MAKE) $${test}.cpptest; done'
|
@bash -ec 'for test in $(C_TEST_CASES) ; do $($(MAKE)) clean && $(MAKE) $${test}.cpptest; done'
|
||||||
|
|
||||||
runcpptests:
|
runcpptests:
|
||||||
@bash -ec 'for test in $(CPP_TEST_CASES) ; do if [ -f $${test}_runme.php4 ] ; then $(MAKE) clean && $(MAKE) $${test}.cpptest; fi ; done'
|
@bash -ec 'for test in $(CPP_TEST_CASES) ; do if [ -f $${test}_runme.php ] ; then $(MAKE) clean && $(MAKE) $${test}.cpptest; fi ; done'
|
||||||
|
|
||||||
runctests:
|
runctests:
|
||||||
@bash -ec 'for test in $(C_TEST_CASES) ; do if [ -f $${test}_runme.php4 ] ; then $(MAKE) clean && $(MAKE) $${test}.cpptest; fi; done'
|
@bash -ec 'for test in $(C_TEST_CASES) ; do if [ -f $${test}_runme.php ] ; then $(MAKE) clean && $(MAKE) $${test}.cpptest; fi; done'
|
||||||
|
|
||||||
runtests: runcpptests runctests
|
runtests: runcpptests runctests
|
||||||
|
|
||||||
# write out tests without a _runme.php4
|
# write out tests without a _runme.php
|
||||||
missingcpptests:
|
missingcpptests:
|
||||||
@bash -ec 'for test in $(CPP_TEST_CASES) ; do test -f $${test}_runme.php4 || echo $${test}; done'
|
@bash -ec 'for test in $(CPP_TEST_CASES) ; do test -f $${test}_runme.php || echo $${test}; done'
|
||||||
|
|
||||||
missingctests:
|
missingctests:
|
||||||
@bash -ec 'for test in $(C_TEST_CASES) ; do test -f $${test}_runme.php4 || echo $${test}; done'
|
@bash -ec 'for test in $(C_TEST_CASES) ; do test -f $${test}_runme.php || echo $${test}; done'
|
||||||
|
|
||||||
missingtests: missingcpptests missingctests
|
missingtests: missingcpptests missingctests
|
||||||
|
|
||||||
|
|
@ -58,10 +58,10 @@ missingtests: missingcpptests missingctests
|
||||||
+$(run_testcase)
|
+$(run_testcase)
|
||||||
|
|
||||||
# Runs the testcase. A testcase is only run if
|
# Runs the testcase. A testcase is only run if
|
||||||
# a file is found which has _runme.php4 appended after the testcase name.
|
# a file is found which has _runme.php appended after the testcase name.
|
||||||
run_testcase = \
|
run_testcase = \
|
||||||
if [ -f $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) ]; then ( \
|
if [ -f $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) ]; then ( \
|
||||||
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile PHP4SCRIPT=$(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) RUNTOOL=$(RUNTOOL) php4_run;) \
|
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile PHPSCRIPT=$(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) RUNTOOL=$(RUNTOOL) php_run;) \
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
# Clean: remove the generated .php file
|
# Clean: remove the generated .php file
|
||||||
|
|
@ -69,4 +69,4 @@ run_testcase = \
|
||||||
@rm -f $*.php;
|
@rm -f $*.php;
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile php4_clean
|
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile php_clean
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
require "tests.php4";
|
require "tests.php";
|
||||||
require "abstract_inherit_ok.php";
|
require "abstract_inherit_ok.php";
|
||||||
|
|
||||||
check::classes(array(Foo,Spam));
|
check::classes(array(Foo,Spam));
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
require "tests.php4";
|
require "tests.php";
|
||||||
require "abstract_inherit.php";
|
require "abstract_inherit.php";
|
||||||
|
|
||||||
check::classes(array(Foo,Bar,Spam,NRFilter_i,NRRCFilter_i,NRRCFilterpro_i,NRRCFilterpri_i));
|
check::classes(array(Foo,Bar,Spam,NRFilter_i,NRRCFilter_i,NRRCFilterpro_i,NRRCFilterpri_i));
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
// Sample test file
|
// Sample test file
|
||||||
|
|
||||||
require "tests.php4";
|
require "tests.php";
|
||||||
require "add_link.php";
|
require "add_link.php";
|
||||||
|
|
||||||
// No new functions, except the flat functions
|
// No new functions, except the flat functions
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
require "tests.php4";
|
require "tests.php";
|
||||||
require "argout.php";
|
require "argout.php";
|
||||||
|
|
||||||
check::functions(array(incp,incr,inctr,new_intp,copy_intp,delete_intp,intp_assign,intp_value,voidhandle,handle));
|
check::functions(array(incp,incr,inctr,new_intp,copy_intp,delete_intp,intp_assign,intp_value,voidhandle,handle));
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
// Sample test file
|
// Sample test file
|
||||||
|
|
||||||
require "tests.php4";
|
require "tests.php";
|
||||||
require "arrayptr.php";
|
require "arrayptr.php";
|
||||||
|
|
||||||
// No new functions
|
// No new functions
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
// Sample test file
|
// Sample test file
|
||||||
|
|
||||||
require "tests.php4";
|
require "tests.php";
|
||||||
require "arrays_global.php";
|
require "arrays_global.php";
|
||||||
|
|
||||||
check::functions(array(test_a,test_b,new_simplestruct,new_material));
|
check::functions(array(test_a,test_b,new_simplestruct,new_material));
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
// Sample test file
|
// Sample test file
|
||||||
|
|
||||||
require "tests.php4";
|
require "tests.php";
|
||||||
require "arrays_global_twodim.php";
|
require "arrays_global_twodim.php";
|
||||||
|
|
||||||
check::functions(array(fn_taking_arrays,get_2d_array,new_simplestruct,new_material));
|
check::functions(array(fn_taking_arrays,get_2d_array,new_simplestruct,new_material));
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
// Sample test file
|
// Sample test file
|
||||||
require "tests.php4";
|
require "tests.php";
|
||||||
require "arrays.php";
|
require "arrays.php";
|
||||||
|
|
||||||
check::functions(array(fn_taking_arrays,newintpointer,setintfrompointer,getintfrompointer,array_pointer_func));
|
check::functions(array(fn_taking_arrays,newintpointer,setintfrompointer,getintfrompointer,array_pointer_func));
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
// Sample test file
|
// Sample test file
|
||||||
|
|
||||||
require "tests.php4";
|
require "tests.php";
|
||||||
require "arrays_scope.php";
|
require "arrays_scope.php";
|
||||||
|
|
||||||
// No new functions
|
// No new functions
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
// Sample test file
|
// Sample test file
|
||||||
|
|
||||||
require "tests.php4";
|
require "tests.php";
|
||||||
require "casts.php";
|
require "casts.php";
|
||||||
|
|
||||||
// No new functions
|
// No new functions
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
// Sample test file
|
// Sample test file
|
||||||
|
|
||||||
require "tests.php4";
|
require "tests.php";
|
||||||
require "class_ignore.php";
|
require "class_ignore.php";
|
||||||
|
|
||||||
check::functions(array(do_blah,new_bar,bar_blah,new_boo,boo_away,new_far,new_hoo));
|
check::functions(array(do_blah,new_bar,bar_blah,new_boo,boo_away,new_far,new_hoo));
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
// Sample test file
|
// Sample test file
|
||||||
|
|
||||||
require "tests.php4";
|
require "tests.php";
|
||||||
require "conversion_namespace.php";
|
require "conversion_namespace.php";
|
||||||
|
|
||||||
check::classes(array("Foo","Bar"));
|
check::classes(array("Foo","Bar"));
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
require "tests.php4";
|
require "tests.php";
|
||||||
require "conversion_ns_template.php";
|
require "conversion_ns_template.php";
|
||||||
|
|
||||||
check::classes(array("conversion_ns_template","Foo_One","Bar_One","Hi"));
|
check::classes(array("conversion_ns_template","Foo_One","Bar_One","Hi"));
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
// Sample test file
|
// Sample test file
|
||||||
|
|
||||||
require "tests.php4";
|
require "tests.php";
|
||||||
require "conversion.php";
|
require "conversion.php";
|
||||||
|
|
||||||
check::classes(array("Foo","Bar"));
|
check::classes(array("Foo","Bar"));
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
// Sample test file
|
// Sample test file
|
||||||
|
|
||||||
require "tests.php4";
|
require "tests.php";
|
||||||
require "cpp_static.php";
|
require "cpp_static.php";
|
||||||
|
|
||||||
// No new functions
|
// No new functions
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
// Sample test file
|
// Sample test file
|
||||||
|
|
||||||
require "tests.php4";
|
require "tests.php";
|
||||||
require "enum_scope_template.php";
|
require "enum_scope_template.php";
|
||||||
|
|
||||||
check::classes(array("enum_scope_template", "TreeInt"));
|
check::classes(array("enum_scope_template", "TreeInt"));
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
// Sample test file
|
// Sample test file
|
||||||
|
|
||||||
require "tests.php4";
|
require "tests.php";
|
||||||
require "evil_diamond_ns.php";
|
require "evil_diamond_ns.php";
|
||||||
|
|
||||||
check::classes(array("evil_diamond_ns","foo","bar","baz","spam"));
|
check::classes(array("evil_diamond_ns","foo","bar","baz","spam"));
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
// Sample test file
|
// Sample test file
|
||||||
|
|
||||||
require "tests.php4";
|
require "tests.php";
|
||||||
require "evil_diamond_prop.php";
|
require "evil_diamond_prop.php";
|
||||||
|
|
||||||
check::classes(array("evil_diamond_prop","foo","bar","baz","spam"));
|
check::classes(array("evil_diamond_prop","foo","bar","baz","spam"));
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
// Sample test file
|
// Sample test file
|
||||||
|
|
||||||
require "tests.php4";
|
require "tests.php";
|
||||||
require "evil_diamond.php";
|
require "evil_diamond.php";
|
||||||
|
|
||||||
check::classes(array("evil_diamond","foo","bar","baz","spam"));
|
check::classes(array("evil_diamond","foo","bar","baz","spam"));
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
// Sample test file
|
// Sample test file
|
||||||
|
|
||||||
require "tests.php4";
|
require "tests.php";
|
||||||
require "extend_template_ns.php";
|
require "extend_template_ns.php";
|
||||||
|
|
||||||
check::classes(array("extend_template_ns","Foo_One"));
|
check::classes(array("extend_template_ns","Foo_One"));
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
// Sample test file
|
// Sample test file
|
||||||
|
|
||||||
require "tests.php4";
|
require "tests.php";
|
||||||
require "extend_template.php";
|
require "extend_template.php";
|
||||||
|
|
||||||
check::classes(array("Foo_0"));
|
check::classes(array("Foo_0"));
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
// Sample test file
|
// Sample test file
|
||||||
|
|
||||||
require "tests.php4";
|
require "tests.php";
|
||||||
require "grouping.php";
|
require "grouping.php";
|
||||||
|
|
||||||
check::functions(array("test1","test2","do_unary","negate"));
|
check::functions(array("test1","test2","do_unary","negate"));
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
// Sample test file
|
// Sample test file
|
||||||
|
|
||||||
require "tests.php4";
|
require "tests.php";
|
||||||
require "ignore_parameter.php";
|
require "ignore_parameter.php";
|
||||||
|
|
||||||
// No new functions
|
// No new functions
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
// Sample test file
|
// Sample test file
|
||||||
|
|
||||||
require "tests.php4";
|
require "tests.php";
|
||||||
require "li_carrays.php";
|
require "li_carrays.php";
|
||||||
|
|
||||||
// No new functions
|
// No new functions
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
// Sample test file
|
// Sample test file
|
||||||
|
|
||||||
require "tests.php4";
|
require "tests.php";
|
||||||
require "li_std_string.php";
|
require "li_std_string.php";
|
||||||
|
|
||||||
// Global variables
|
// Global variables
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
// Sample test file
|
// Sample test file
|
||||||
|
|
||||||
require "tests.php4";
|
require "tests.php";
|
||||||
require "rename_scope.php";
|
require "rename_scope.php";
|
||||||
|
|
||||||
check::classes(array("rename_scope","Interface_UP","Interface_BP","Natural_UP","Natural_BP","Bucket"));
|
check::classes(array("rename_scope","Interface_UP","Interface_BP","Natural_UP","Natural_BP","Bucket"));
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
// Sample test file
|
// Sample test file
|
||||||
|
|
||||||
require "tests.php4";
|
require "tests.php";
|
||||||
require "____.php";
|
require "____.php";
|
||||||
|
|
||||||
// No new functions
|
// No new functions
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
// Sample test file
|
// Sample test file
|
||||||
|
|
||||||
require "tests.php4";
|
require "tests.php";
|
||||||
require "smart_pointer_rename.php";
|
require "smart_pointer_rename.php";
|
||||||
|
|
||||||
check::classes(array("Foo","Bar"));
|
check::classes(array("Foo","Bar"));
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
// Sample test file
|
// Sample test file
|
||||||
|
|
||||||
require "tests.php4";
|
require "tests.php";
|
||||||
require "sym.php";
|
require "sym.php";
|
||||||
|
|
||||||
// No new functions
|
// No new functions
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
// Sample test file
|
// Sample test file
|
||||||
|
|
||||||
require "tests.php4";
|
require "tests.php";
|
||||||
require "template_arg_typename.php";
|
require "template_arg_typename.php";
|
||||||
|
|
||||||
// No new functions
|
// No new functions
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
require "tests.php4";
|
require "tests.php";
|
||||||
require "template_construct.php";
|
require "template_construct.php";
|
||||||
|
|
||||||
check::classes(array(Foo_int));
|
check::classes(array(Foo_int));
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
require "tests.php4";
|
require "tests.php";
|
||||||
require "typedef_reference.php";
|
require "typedef_reference.php";
|
||||||
|
|
||||||
check::functions(array(somefunc,otherfunc,new_intp,copy_intp,delete_intp,intp_assign,intp_value));
|
check::functions(array(somefunc,otherfunc,new_intp,copy_intp,delete_intp,intp_assign,intp_value));
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
require "tests.php4";
|
require "tests.php";
|
||||||
require "typemap_ns_using.php";
|
require "typemap_ns_using.php";
|
||||||
if (! class_exists("_fooimpl")) die("_fooimpl class not found\n");
|
if (! class_exists("_fooimpl")) die("_fooimpl class not found\n");
|
||||||
if (! 3==spam(3)) die("spam function not working right\n");
|
if (! 3==spam(3)) die("spam function not working right\n");
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
require "tests.php4";
|
require "tests.php";
|
||||||
require "using1.php";
|
require "using1.php";
|
||||||
if (! class_exists("_fooimpl")) die("_fooimpl class not found\n");
|
if (! class_exists("_fooimpl")) die("_fooimpl class not found\n");
|
||||||
if (! 3==spam(3)) die("spam function not working right\n");
|
if (! 3==spam(3)) die("spam function not working right\n");
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
require "tests.php4";
|
require "tests.php";
|
||||||
require "using2.php";
|
require "using2.php";
|
||||||
if (! class_exists("_fooimpl")) die("_fooimpl class not found\n");
|
if (! class_exists("_fooimpl")) die("_fooimpl class not found\n");
|
||||||
if (! 3==spam(3)) die("spam function not working right\n");
|
if (! 3==spam(3)) die("spam function not working right\n");
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
// Sample test file
|
// Sample test file
|
||||||
|
|
||||||
require "tests.php4";
|
require "tests.php";
|
||||||
require "valuewrapper_base.php";
|
require "valuewrapper_base.php";
|
||||||
|
|
||||||
check::classes(array("valuewrapper_base","Base","Interface_BP"));
|
check::classes(array("valuewrapper_base","Base","Interface_BP"));
|
||||||
|
|
@ -49,7 +49,7 @@ skip-guilescm = test -n "@SKIP_GUILESCM@"
|
||||||
skip-guile = test -n "@SKIP_GUILE@"
|
skip-guile = test -n "@SKIP_GUILE@"
|
||||||
skip-mzscheme = test -n "@SKIP_MZSCHEME@"
|
skip-mzscheme = test -n "@SKIP_MZSCHEME@"
|
||||||
skip-ruby = test -n "@SKIP_RUBY@"
|
skip-ruby = test -n "@SKIP_RUBY@"
|
||||||
skip-php = test -n "@SKIP_PHP4@"
|
skip-php = test -n "@SKIP_PHP@"
|
||||||
skip-ocaml = test -n "@SKIP_OCAML@"
|
skip-ocaml = test -n "@SKIP_OCAML@"
|
||||||
skip-octave = test -n "@SKIP_OCTAVE@"
|
skip-octave = test -n "@SKIP_OCTAVE@"
|
||||||
skip-pike = test -n "@SKIP_PIKE@"
|
skip-pike = test -n "@SKIP_PIKE@"
|
||||||
|
|
|
||||||
46
configure.in
46
configure.in
|
|
@ -243,10 +243,10 @@ case $host in
|
||||||
*) GUILE_SO=$SO;;
|
*) GUILE_SO=$SO;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
AC_SUBST(PHP4_SO)
|
AC_SUBST(PHP_SO)
|
||||||
case $host in
|
case $host in
|
||||||
*-*-darwin*) PHP4_SO=.so;;
|
*-*-darwin*) PHP_SO=.so;;
|
||||||
*) PHP4_SO=$SO;;
|
*) PHP_SO=$SO;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
AC_SUBST(MZSCHEME_SO)
|
AC_SUBST(MZSCHEME_SO)
|
||||||
|
|
@ -1329,37 +1329,37 @@ AC_SUBST(RUBYDYNAMICLINKING)
|
||||||
# Look for PHP
|
# Look for PHP
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
|
||||||
PHP4BIN=
|
PHPBIN=
|
||||||
|
|
||||||
AC_ARG_WITH(php, AS_HELP_STRING([--without-php], [Disable PHP])
|
AC_ARG_WITH(php, AS_HELP_STRING([--without-php], [Disable PHP])
|
||||||
AS_HELP_STRING([--with-php=path], [Set location of PHP executable]),[ PHP4BIN="$withval"], [PHP4BIN=yes])
|
AS_HELP_STRING([--with-php=path], [Set location of PHP executable]),[ PHPBIN="$withval"], [PHPBIN=yes])
|
||||||
|
|
||||||
# First, check for "--without-php" or "--with-php=no".
|
# First, check for "--without-php" or "--with-php=no".
|
||||||
if test x"${PHP4BIN}" = xno -o x"${with_alllang}" = xno ; then
|
if test x"${PHPBIN}" = xno -o x"${with_alllang}" = xno ; then
|
||||||
AC_MSG_NOTICE([Disabling PHP])
|
AC_MSG_NOTICE([Disabling PHP])
|
||||||
PHP4=
|
PHP=
|
||||||
else
|
else
|
||||||
|
|
||||||
if test "x$PHP4BIN" = xyes; then
|
if test "x$PHPBIN" = xyes; then
|
||||||
AC_CHECK_PROGS(PHP4, [php5 php])
|
AC_CHECK_PROGS(PHP, [php5 php])
|
||||||
else
|
else
|
||||||
PHP4=$PHP4BIN
|
PHP=$PHPBIN
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_MSG_CHECKING(for PHP header files)
|
AC_MSG_CHECKING(for PHP header files)
|
||||||
dnl /usr/bin/php5 -> /usr/bin/php-config5
|
dnl /usr/bin/php5 -> /usr/bin/php-config5
|
||||||
case $PHP4 in
|
case $PHP in
|
||||||
*5)
|
*5)
|
||||||
PHP4CONFIG=`echo "$PHP4"|sed 's/5$/-config5/'` ;;
|
PHPCONFIG=`echo "$PHP"|sed 's/5$/-config5/'` ;;
|
||||||
*)
|
*)
|
||||||
PHP4CONFIG=$PHP4-config ;;
|
PHPCONFIG=$PHP-config ;;
|
||||||
esac
|
esac
|
||||||
php_version=`$PHP4CONFIG --version 2>/dev/null`
|
php_version=`$PHPCONFIG --version 2>/dev/null`
|
||||||
case $php_version in
|
case $php_version in
|
||||||
5*)
|
5*)
|
||||||
PHP4INC=`$PHP4CONFIG --includes 2>/dev/null`
|
PHPINC=`$PHPCONFIG --includes 2>/dev/null`
|
||||||
if test -n "$PHP4INC"; then
|
if test -n "$PHPINC"; then
|
||||||
AC_MSG_RESULT($PHP4INC)
|
AC_MSG_RESULT($PHPINC)
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT(not found)
|
AC_MSG_RESULT(not found)
|
||||||
fi
|
fi
|
||||||
|
|
@ -1368,8 +1368,8 @@ else
|
||||||
AC_MSG_RESULT([found PHP $version, but only PHP 5 is supported]) ;;
|
AC_MSG_RESULT([found PHP $version, but only PHP 5 is supported]) ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
AC_SUBST(PHP4)
|
AC_SUBST(PHP)
|
||||||
AC_SUBST(PHP4INC)
|
AC_SUBST(PHPINC)
|
||||||
|
|
||||||
#----------------------------------------------------------------
|
#----------------------------------------------------------------
|
||||||
# Look for ocaml
|
# Look for ocaml
|
||||||
|
|
@ -2003,11 +2003,11 @@ fi
|
||||||
AC_SUBST(SKIP_RUBY)
|
AC_SUBST(SKIP_RUBY)
|
||||||
|
|
||||||
|
|
||||||
SKIP_PHP4=
|
SKIP_PHP=
|
||||||
if test -z "$PHP4" || test -z "$PHP4INC" ; then
|
if test -z "$PHP" || test -z "$PHPINC" ; then
|
||||||
SKIP_PHP4="1"
|
SKIP_PHP="1"
|
||||||
fi
|
fi
|
||||||
AC_SUBST(SKIP_PHP4)
|
AC_SUBST(SKIP_PHP)
|
||||||
|
|
||||||
|
|
||||||
SKIP_OCAML=
|
SKIP_OCAML=
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue