From bcc796f676ef7e871cdc44a096d74f1da92e232d Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Sat, 6 Dec 2008 21:40:54 +0000 Subject: [PATCH] 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 --- Examples/Makefile.in | 34 +++++++------- Examples/php/class/Makefile | 10 ++-- Examples/php/class/{runme.php4 => runme.php} | 0 Examples/php/constants/Makefile | 10 ++-- .../php/constants/{runme.php4 => runme.php} | 0 Examples/php/cpointer/Makefile | 10 ++-- .../php/cpointer/{runme.php4 => runme.php} | 0 Examples/php/disown/Makefile | 10 ++-- Examples/php/disown/{runme.php4 => runme.php} | 0 Examples/php/enum/Makefile | 10 ++-- Examples/php/enum/{runme.php4 => runme.php} | 0 Examples/php/funcptr/Makefile | 10 ++-- .../php/funcptr/{runme.php4 => runme.php} | 0 Examples/php/overloading/Makefile | 10 ++-- .../php/overloading/{runme.php4 => runme.php} | 0 Examples/php/pointer/Makefile | 10 ++-- .../php/pointer/{runme.php4 => runme.php} | 0 Examples/php/pragmas/Makefile | 10 ++-- .../php/pragmas/{runme.php4 => runme.php} | 0 Examples/php/proxy/Makefile | 10 ++-- Examples/php/proxy/{runme.php4 => runme.php} | 0 Examples/php/reference/Makefile | 10 ++-- .../php/reference/{runme.php4 => runme.php} | 0 Examples/php/simple/Makefile | 10 ++-- Examples/php/simple/{runme.php4 => runme.php} | 0 Examples/php/sync/Makefile | 10 ++-- Examples/php/sync/{runme.php4 => runme.php} | 0 Examples/php/value/Makefile | 10 ++-- Examples/php/value/{runme.php4 => runme.php} | 0 Examples/php/variables/Makefile | 10 ++-- .../php/variables/{runme.php4 => runme.php} | 0 Examples/test-suite/php/Makefile.in | 22 ++++----- ...nme.php4 => abstract_inherit_ok_runme.php} | 2 +- ..._runme.php4 => abstract_inherit_runme.php} | 2 +- ...add_link_runme.php4 => add_link_runme.php} | 2 +- .../{argout_runme.php4 => argout_runme.php} | 2 +- ...arrayptr_runme.php4 => arrayptr_runme.php} | 2 +- ...bal_runme.php4 => arrays_global_runme.php} | 2 +- ...me.php4 => arrays_global_twodim_runme.php} | 2 +- .../{arrays_runme.php4 => arrays_runme.php} | 2 +- ...cope_runme.php4 => arrays_scope_runme.php} | 2 +- .../php/{casts_runme.php4 => casts_runme.php} | 2 +- ...nore_runme.php4 => class_ignore_runme.php} | 2 +- ...me.php4 => conversion_namespace_runme.php} | 2 +- ....php4 => conversion_ns_template_runme.php} | 2 +- ...ersion_runme.php4 => conversion_runme.php} | 2 +- ...static_runme.php4 => cpp_static_runme.php} | 2 +- ...nme.php4 => enum_scope_template_runme.php} | 2 +- ...s_runme.php4 => evil_diamond_ns_runme.php} | 2 +- ...runme.php4 => evil_diamond_prop_runme.php} | 2 +- ...mond_runme.php4 => evil_diamond_runme.php} | 2 +- ...unme.php4 => extend_template_ns_runme.php} | 2 +- ...e_runme.php4 => extend_template_runme.php} | 2 +- ...grouping_runme.php4 => grouping_runme.php} | 2 +- ..._runme.php4 => ignore_parameter_runme.php} | 2 +- ...arrays_runme.php4 => li_carrays_runme.php} | 2 +- ...ing_runme.php4 => li_std_string_runme.php} | 2 +- ...cope_runme.php4 => rename_scope_runme.php} | 2 +- .../test-suite/php/{skel.php4 => skel.php} | 2 +- ...me.php4 => smart_pointer_rename_runme.php} | 2 +- .../php/{sym_runme.php4 => sym_runme.php} | 2 +- ...e.php4 => template_arg_typename_runme.php} | 2 +- ...unme.php4 => template_construct_runme.php} | 2 +- .../test-suite/php/{tests.php4 => tests.php} | 0 ...runme.php4 => typedef_reference_runme.php} | 2 +- ..._runme.php4 => typemap_ns_using_runme.php} | 2 +- .../{using1_runme.php4 => using1_runme.php} | 2 +- .../{using2_runme.php4 => using2_runme.php} | 2 +- ...runme.php4 => valuewrapper_base_runme.php} | 2 +- Makefile.in | 2 +- configure.in | 46 +++++++++---------- 71 files changed, 163 insertions(+), 163 deletions(-) rename Examples/php/class/{runme.php4 => runme.php} (100%) rename Examples/php/constants/{runme.php4 => runme.php} (100%) rename Examples/php/cpointer/{runme.php4 => runme.php} (100%) rename Examples/php/disown/{runme.php4 => runme.php} (100%) rename Examples/php/enum/{runme.php4 => runme.php} (100%) rename Examples/php/funcptr/{runme.php4 => runme.php} (100%) rename Examples/php/overloading/{runme.php4 => runme.php} (100%) rename Examples/php/pointer/{runme.php4 => runme.php} (100%) rename Examples/php/pragmas/{runme.php4 => runme.php} (100%) rename Examples/php/proxy/{runme.php4 => runme.php} (100%) rename Examples/php/reference/{runme.php4 => runme.php} (100%) rename Examples/php/simple/{runme.php4 => runme.php} (100%) rename Examples/php/sync/{runme.php4 => runme.php} (100%) rename Examples/php/value/{runme.php4 => runme.php} (100%) rename Examples/php/variables/{runme.php4 => runme.php} (100%) rename Examples/test-suite/php/{abstract_inherit_ok_runme.php4 => abstract_inherit_ok_runme.php} (88%) rename Examples/test-suite/php/{abstract_inherit_runme.php4 => abstract_inherit_runme.php} (93%) rename Examples/test-suite/php/{add_link_runme.php4 => add_link_runme.php} (95%) rename Examples/test-suite/php/{argout_runme.php4 => argout_runme.php} (97%) rename Examples/test-suite/php/{arrayptr_runme.php4 => arrayptr_runme.php} (90%) rename Examples/test-suite/php/{arrays_global_runme.php4 => arrays_global_runme.php} (96%) rename Examples/test-suite/php/{arrays_global_twodim_runme.php4 => arrays_global_twodim_runme.php} (97%) rename Examples/test-suite/php/{arrays_runme.php4 => arrays_runme.php} (95%) rename Examples/test-suite/php/{arrays_scope_runme.php4 => arrays_scope_runme.php} (92%) rename Examples/test-suite/php/{casts_runme.php4 => casts_runme.php} (93%) rename Examples/test-suite/php/{class_ignore_runme.php4 => class_ignore_runme.php} (93%) rename Examples/test-suite/php/{conversion_namespace_runme.php4 => conversion_namespace_runme.php} (90%) rename Examples/test-suite/php/{conversion_ns_template_runme.php4 => conversion_ns_template_runme.php} (89%) rename Examples/test-suite/php/{conversion_runme.php4 => conversion_runme.php} (90%) rename Examples/test-suite/php/{cpp_static_runme.php4 => cpp_static_runme.php} (91%) rename Examples/test-suite/php/{enum_scope_template_runme.php4 => enum_scope_template_runme.php} (96%) rename Examples/test-suite/php/{evil_diamond_ns_runme.php4 => evil_diamond_ns_runme.php} (94%) rename Examples/test-suite/php/{evil_diamond_prop_runme.php4 => evil_diamond_prop_runme.php} (97%) rename Examples/test-suite/php/{evil_diamond_runme.php4 => evil_diamond_runme.php} (93%) rename Examples/test-suite/php/{extend_template_ns_runme.php4 => extend_template_ns_runme.php} (91%) rename Examples/test-suite/php/{extend_template_runme.php4 => extend_template_runme.php} (90%) rename Examples/test-suite/php/{grouping_runme.php4 => grouping_runme.php} (96%) rename Examples/test-suite/php/{ignore_parameter_runme.php4 => ignore_parameter_runme.php} (98%) rename Examples/test-suite/php/{li_carrays_runme.php4 => li_carrays_runme.php} (92%) rename Examples/test-suite/php/{li_std_string_runme.php4 => li_std_string_runme.php} (98%) rename Examples/test-suite/php/{rename_scope_runme.php4 => rename_scope_runme.php} (96%) rename Examples/test-suite/php/{skel.php4 => skel.php} (90%) rename Examples/test-suite/php/{smart_pointer_rename_runme.php4 => smart_pointer_rename_runme.php} (97%) rename Examples/test-suite/php/{sym_runme.php4 => sym_runme.php} (95%) rename Examples/test-suite/php/{template_arg_typename_runme.php4 => template_arg_typename_runme.php} (94%) rename Examples/test-suite/php/{template_construct_runme.php4 => template_construct_runme.php} (88%) rename Examples/test-suite/php/{tests.php4 => tests.php} (100%) rename Examples/test-suite/php/{typedef_reference_runme.php4 => typedef_reference_runme.php} (93%) rename Examples/test-suite/php/{typemap_ns_using_runme.php4 => typemap_ns_using_runme.php} (89%) rename Examples/test-suite/php/{using1_runme.php4 => using1_runme.php} (88%) rename Examples/test-suite/php/{using2_runme.php4 => using2_runme.php} (88%) rename Examples/test-suite/php/{valuewrapper_base_runme.php4 => valuewrapper_base_runme.php} (91%) diff --git a/Examples/Makefile.in b/Examples/Makefile.in index 5dbf8b6b7..b95c7e33d 100644 --- a/Examples/Makefile.in +++ b/Examples/Makefile.in @@ -746,41 +746,41 @@ ruby_clean: ################################################################## # ------------------------------------------------------------------- -# Build a PHP4 dynamically loadable module (C) +# Build a PHP dynamically loadable module (C) # ------------------------------------------------------------------- -PHP4_INCLUDE = @PHP4INC@ -PHP4_SO = @PHP4_SO@ +PHP_INCLUDE = @PHPINC@ +PHP_SO = @PHP_SO@ -php4: $(SRCS) +php: $(SRCS) $(SWIG) -php5 $(SWIGOPT) $(INTERFACEPATH) - $(CC) -c $(CCSHARED) $(CFLAGS) $(SRCS) $(ISRCS) $(INCLUDES) $(PHP4_INCLUDE) - $(LDSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(LIBS) -o $(LIBPREFIX)$(TARGET)$(PHP4_SO) + $(CC) -c $(CCSHARED) $(CFLAGS) $(SRCS) $(ISRCS) $(INCLUDES) $(PHP_INCLUDE) + $(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) - $(CXX) -c $(CCSHARED) $(CFLAGS) $(SRCS) $(CXXSRCS) $(ICXXSRCS) $(INCLUDES) $(PHP4_INCLUDE) - $(CXXSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(LIBS) $(CPP_DLLIBS) -o $(LIBPREFIX)$(TARGET)$(PHP4_SO) + $(CXX) -c $(CCSHARED) $(CFLAGS) $(SRCS) $(CXXSRCS) $(ICXXSRCS) $(INCLUDES) $(PHP_INCLUDE) + $(CXXSHARED) $(CFLAGS) $(OBJS) $(IOBJS) $(LIBS) $(CPP_DLLIBS) -o $(LIBPREFIX)$(TARGET)$(PHP_SO) # ----------------------------------------------------------------- -# Running a PHP4 example +# Running a PHP example # ----------------------------------------------------------------- -PHP4=@PHP4@ -PHP4SCRIPT ?= runme.php4 +PHP=@PHP@ +PHPSCRIPT ?= runme.php -php4_run: - env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH $(RUNTOOL) $(PHP4) -n -q -d extension_dir=. $(PHP4SCRIPT) +php_run: + 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 core @EXTRA_CLEAN@ rm -f *.@OBJEXT@ *@SO@ diff --git a/Examples/php/class/Makefile b/Examples/php/class/Makefile index 39c4d2f23..252a72660 100644 --- a/Examples/php/class/Makefile +++ b/Examples/php/class/Makefile @@ -9,16 +9,16 @@ SWIGOPT = -noproxy all:: $(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \ SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \ - php4_cpp + php_cpp static:: $(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \ - SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \ - php4_cpp_static + SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \ + php_cpp_static clean:: - $(MAKE) -f $(TOP)/Makefile php4_clean + $(MAKE) -f $(TOP)/Makefile php_clean rm -f $(TARGET).php check: all - $(MAKE) -f $(TOP)/Makefile php4_run + $(MAKE) -f $(TOP)/Makefile php_run diff --git a/Examples/php/class/runme.php4 b/Examples/php/class/runme.php similarity index 100% rename from Examples/php/class/runme.php4 rename to Examples/php/class/runme.php diff --git a/Examples/php/constants/Makefile b/Examples/php/constants/Makefile index aed110eb2..23e2675d7 100644 --- a/Examples/php/constants/Makefile +++ b/Examples/php/constants/Makefile @@ -9,16 +9,16 @@ SWIGOPT = all:: $(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \ SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \ - php4 + php static:: $(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \ - SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \ - php4_static + SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \ + php_static clean:: - $(MAKE) -f $(TOP)/Makefile php4_clean + $(MAKE) -f $(TOP)/Makefile php_clean rm -f $(TARGET).php check: all - $(MAKE) -f $(TOP)/Makefile php4_run + $(MAKE) -f $(TOP)/Makefile php_run diff --git a/Examples/php/constants/runme.php4 b/Examples/php/constants/runme.php similarity index 100% rename from Examples/php/constants/runme.php4 rename to Examples/php/constants/runme.php diff --git a/Examples/php/cpointer/Makefile b/Examples/php/cpointer/Makefile index caeec2d73..0862ce5ec 100644 --- a/Examples/php/cpointer/Makefile +++ b/Examples/php/cpointer/Makefile @@ -9,16 +9,16 @@ SWIGOPT = all:: $(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \ SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \ - php4 + php static:: $(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \ - SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \ - php4_static + SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \ + php_static clean:: - $(MAKE) -f $(TOP)/Makefile php4_clean + $(MAKE) -f $(TOP)/Makefile php_clean rm -f $(TARGET).php check: all - $(MAKE) -f $(TOP)/Makefile php4_run + $(MAKE) -f $(TOP)/Makefile php_run diff --git a/Examples/php/cpointer/runme.php4 b/Examples/php/cpointer/runme.php similarity index 100% rename from Examples/php/cpointer/runme.php4 rename to Examples/php/cpointer/runme.php diff --git a/Examples/php/disown/Makefile b/Examples/php/disown/Makefile index ef3acc773..1bc0beaab 100644 --- a/Examples/php/disown/Makefile +++ b/Examples/php/disown/Makefile @@ -9,16 +9,16 @@ SWIGOPT = all:: $(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \ SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \ - php4_cpp + php_cpp static:: $(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \ - SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \ - php4_cpp_static + SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \ + php_cpp_static clean:: - $(MAKE) -f $(TOP)/Makefile php4_clean + $(MAKE) -f $(TOP)/Makefile php_clean rm -f $(TARGET).php check: all - $(MAKE) -f $(TOP)/Makefile php4_run + $(MAKE) -f $(TOP)/Makefile php_run diff --git a/Examples/php/disown/runme.php4 b/Examples/php/disown/runme.php similarity index 100% rename from Examples/php/disown/runme.php4 rename to Examples/php/disown/runme.php diff --git a/Examples/php/enum/Makefile b/Examples/php/enum/Makefile index 39c4d2f23..252a72660 100644 --- a/Examples/php/enum/Makefile +++ b/Examples/php/enum/Makefile @@ -9,16 +9,16 @@ SWIGOPT = -noproxy all:: $(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \ SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \ - php4_cpp + php_cpp static:: $(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \ - SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \ - php4_cpp_static + SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \ + php_cpp_static clean:: - $(MAKE) -f $(TOP)/Makefile php4_clean + $(MAKE) -f $(TOP)/Makefile php_clean rm -f $(TARGET).php check: all - $(MAKE) -f $(TOP)/Makefile php4_run + $(MAKE) -f $(TOP)/Makefile php_run diff --git a/Examples/php/enum/runme.php4 b/Examples/php/enum/runme.php similarity index 100% rename from Examples/php/enum/runme.php4 rename to Examples/php/enum/runme.php diff --git a/Examples/php/funcptr/Makefile b/Examples/php/funcptr/Makefile index caeec2d73..0862ce5ec 100644 --- a/Examples/php/funcptr/Makefile +++ b/Examples/php/funcptr/Makefile @@ -9,16 +9,16 @@ SWIGOPT = all:: $(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \ SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \ - php4 + php static:: $(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \ - SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \ - php4_static + SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \ + php_static clean:: - $(MAKE) -f $(TOP)/Makefile php4_clean + $(MAKE) -f $(TOP)/Makefile php_clean rm -f $(TARGET).php check: all - $(MAKE) -f $(TOP)/Makefile php4_run + $(MAKE) -f $(TOP)/Makefile php_run diff --git a/Examples/php/funcptr/runme.php4 b/Examples/php/funcptr/runme.php similarity index 100% rename from Examples/php/funcptr/runme.php4 rename to Examples/php/funcptr/runme.php diff --git a/Examples/php/overloading/Makefile b/Examples/php/overloading/Makefile index ef3acc773..1bc0beaab 100644 --- a/Examples/php/overloading/Makefile +++ b/Examples/php/overloading/Makefile @@ -9,16 +9,16 @@ SWIGOPT = all:: $(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \ SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \ - php4_cpp + php_cpp static:: $(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \ - SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \ - php4_cpp_static + SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \ + php_cpp_static clean:: - $(MAKE) -f $(TOP)/Makefile php4_clean + $(MAKE) -f $(TOP)/Makefile php_clean rm -f $(TARGET).php check: all - $(MAKE) -f $(TOP)/Makefile php4_run + $(MAKE) -f $(TOP)/Makefile php_run diff --git a/Examples/php/overloading/runme.php4 b/Examples/php/overloading/runme.php similarity index 100% rename from Examples/php/overloading/runme.php4 rename to Examples/php/overloading/runme.php diff --git a/Examples/php/pointer/Makefile b/Examples/php/pointer/Makefile index caeec2d73..0862ce5ec 100644 --- a/Examples/php/pointer/Makefile +++ b/Examples/php/pointer/Makefile @@ -9,16 +9,16 @@ SWIGOPT = all:: $(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \ SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \ - php4 + php static:: $(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \ - SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \ - php4_static + SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \ + php_static clean:: - $(MAKE) -f $(TOP)/Makefile php4_clean + $(MAKE) -f $(TOP)/Makefile php_clean rm -f $(TARGET).php check: all - $(MAKE) -f $(TOP)/Makefile php4_run + $(MAKE) -f $(TOP)/Makefile php_run diff --git a/Examples/php/pointer/runme.php4 b/Examples/php/pointer/runme.php similarity index 100% rename from Examples/php/pointer/runme.php4 rename to Examples/php/pointer/runme.php diff --git a/Examples/php/pragmas/Makefile b/Examples/php/pragmas/Makefile index aed110eb2..23e2675d7 100644 --- a/Examples/php/pragmas/Makefile +++ b/Examples/php/pragmas/Makefile @@ -9,16 +9,16 @@ SWIGOPT = all:: $(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \ SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \ - php4 + php static:: $(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \ - SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \ - php4_static + SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \ + php_static clean:: - $(MAKE) -f $(TOP)/Makefile php4_clean + $(MAKE) -f $(TOP)/Makefile php_clean rm -f $(TARGET).php check: all - $(MAKE) -f $(TOP)/Makefile php4_run + $(MAKE) -f $(TOP)/Makefile php_run diff --git a/Examples/php/pragmas/runme.php4 b/Examples/php/pragmas/runme.php similarity index 100% rename from Examples/php/pragmas/runme.php4 rename to Examples/php/pragmas/runme.php diff --git a/Examples/php/proxy/Makefile b/Examples/php/proxy/Makefile index ef3acc773..1bc0beaab 100644 --- a/Examples/php/proxy/Makefile +++ b/Examples/php/proxy/Makefile @@ -9,16 +9,16 @@ SWIGOPT = all:: $(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \ SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \ - php4_cpp + php_cpp static:: $(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \ - SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \ - php4_cpp_static + SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \ + php_cpp_static clean:: - $(MAKE) -f $(TOP)/Makefile php4_clean + $(MAKE) -f $(TOP)/Makefile php_clean rm -f $(TARGET).php check: all - $(MAKE) -f $(TOP)/Makefile php4_run + $(MAKE) -f $(TOP)/Makefile php_run diff --git a/Examples/php/proxy/runme.php4 b/Examples/php/proxy/runme.php similarity index 100% rename from Examples/php/proxy/runme.php4 rename to Examples/php/proxy/runme.php diff --git a/Examples/php/reference/Makefile b/Examples/php/reference/Makefile index 39c4d2f23..252a72660 100644 --- a/Examples/php/reference/Makefile +++ b/Examples/php/reference/Makefile @@ -9,16 +9,16 @@ SWIGOPT = -noproxy all:: $(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \ SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \ - php4_cpp + php_cpp static:: $(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \ - SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \ - php4_cpp_static + SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \ + php_cpp_static clean:: - $(MAKE) -f $(TOP)/Makefile php4_clean + $(MAKE) -f $(TOP)/Makefile php_clean rm -f $(TARGET).php check: all - $(MAKE) -f $(TOP)/Makefile php4_run + $(MAKE) -f $(TOP)/Makefile php_run diff --git a/Examples/php/reference/runme.php4 b/Examples/php/reference/runme.php similarity index 100% rename from Examples/php/reference/runme.php4 rename to Examples/php/reference/runme.php diff --git a/Examples/php/simple/Makefile b/Examples/php/simple/Makefile index caeec2d73..0862ce5ec 100644 --- a/Examples/php/simple/Makefile +++ b/Examples/php/simple/Makefile @@ -9,16 +9,16 @@ SWIGOPT = all:: $(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \ SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \ - php4 + php static:: $(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \ - SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \ - php4_static + SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \ + php_static clean:: - $(MAKE) -f $(TOP)/Makefile php4_clean + $(MAKE) -f $(TOP)/Makefile php_clean rm -f $(TARGET).php check: all - $(MAKE) -f $(TOP)/Makefile php4_run + $(MAKE) -f $(TOP)/Makefile php_run diff --git a/Examples/php/simple/runme.php4 b/Examples/php/simple/runme.php similarity index 100% rename from Examples/php/simple/runme.php4 rename to Examples/php/simple/runme.php diff --git a/Examples/php/sync/Makefile b/Examples/php/sync/Makefile index ef3acc773..1bc0beaab 100644 --- a/Examples/php/sync/Makefile +++ b/Examples/php/sync/Makefile @@ -9,16 +9,16 @@ SWIGOPT = all:: $(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \ SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \ - php4_cpp + php_cpp static:: $(MAKE) -f $(TOP)/Makefile CXXSRCS='$(CXXSRCS)' SWIG='$(SWIG)' \ - SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \ - php4_cpp_static + SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \ + php_cpp_static clean:: - $(MAKE) -f $(TOP)/Makefile php4_clean + $(MAKE) -f $(TOP)/Makefile php_clean rm -f $(TARGET).php check: all - $(MAKE) -f $(TOP)/Makefile php4_run + $(MAKE) -f $(TOP)/Makefile php_run diff --git a/Examples/php/sync/runme.php4 b/Examples/php/sync/runme.php similarity index 100% rename from Examples/php/sync/runme.php4 rename to Examples/php/sync/runme.php diff --git a/Examples/php/value/Makefile b/Examples/php/value/Makefile index cc383ea3f..9e69d00a4 100644 --- a/Examples/php/value/Makefile +++ b/Examples/php/value/Makefile @@ -9,16 +9,16 @@ SWIGOPT = -noproxy all:: $(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \ SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \ - php4 + php static:: $(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \ - SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \ - php4_static + SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \ + php_static clean:: - $(MAKE) -f $(TOP)/Makefile php4_clean + $(MAKE) -f $(TOP)/Makefile php_clean rm -f $(TARGET).php check: all - $(MAKE) -f $(TOP)/Makefile php4_run + $(MAKE) -f $(TOP)/Makefile php_run diff --git a/Examples/php/value/runme.php4 b/Examples/php/value/runme.php similarity index 100% rename from Examples/php/value/runme.php4 rename to Examples/php/value/runme.php diff --git a/Examples/php/variables/Makefile b/Examples/php/variables/Makefile index caeec2d73..0862ce5ec 100644 --- a/Examples/php/variables/Makefile +++ b/Examples/php/variables/Makefile @@ -9,16 +9,16 @@ SWIGOPT = all:: $(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \ SWIGOPT='$(SWIGOPT)' TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' \ - php4 + php static:: $(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \ - SWIGOPT='$(SWIGOPT)' TARGET='myphp4' INTERFACE='$(INTERFACE)' \ - php4_static + SWIGOPT='$(SWIGOPT)' TARGET='myphp' INTERFACE='$(INTERFACE)' \ + php_static clean:: - $(MAKE) -f $(TOP)/Makefile php4_clean + $(MAKE) -f $(TOP)/Makefile php_clean rm -f $(TARGET).php check: all - $(MAKE) -f $(TOP)/Makefile php4_run + $(MAKE) -f $(TOP)/Makefile php_run diff --git a/Examples/php/variables/runme.php4 b/Examples/php/variables/runme.php similarity index 100% rename from Examples/php/variables/runme.php4 rename to Examples/php/variables/runme.php diff --git a/Examples/test-suite/php/Makefile.in b/Examples/test-suite/php/Makefile.in index 9f412bc56..b8aeaaa11 100644 --- a/Examples/test-suite/php/Makefile.in +++ b/Examples/test-suite/php/Makefile.in @@ -1,9 +1,9 @@ ####################################################################### -# Makefile for php4 test-suite +# Makefile for php test-suite ####################################################################### -LANGUAGE = php4 -SCRIPTSUFFIX = _runme.php4 +LANGUAGE = php +SCRIPTSUFFIX = _runme.php srcdir = @srcdir@ top_srcdir = @top_srcdir@ top_builddir = @top_builddir@ @@ -25,19 +25,19 @@ makectests: @bash -ec 'for test in $(C_TEST_CASES) ; do $($(MAKE)) clean && $(MAKE) $${test}.cpptest; done' 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: - @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 -# write out tests without a _runme.php4 +# write out tests without a _runme.php 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: - @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 @@ -58,10 +58,10 @@ missingtests: missingcpptests missingctests +$(run_testcase) # 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 = \ 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; # Clean: remove the generated .php file @@ -69,4 +69,4 @@ run_testcase = \ @rm -f $*.php; clean: - $(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile php4_clean + $(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile php_clean diff --git a/Examples/test-suite/php/abstract_inherit_ok_runme.php4 b/Examples/test-suite/php/abstract_inherit_ok_runme.php similarity index 88% rename from Examples/test-suite/php/abstract_inherit_ok_runme.php4 rename to Examples/test-suite/php/abstract_inherit_ok_runme.php index 1182e4cec..c2d86499b 100644 --- a/Examples/test-suite/php/abstract_inherit_ok_runme.php4 +++ b/Examples/test-suite/php/abstract_inherit_ok_runme.php @@ -1,6 +1,6 @@ /usr/bin/php-config5 - case $PHP4 in + case $PHP in *5) - PHP4CONFIG=`echo "$PHP4"|sed 's/5$/-config5/'` ;; + PHPCONFIG=`echo "$PHP"|sed 's/5$/-config5/'` ;; *) - PHP4CONFIG=$PHP4-config ;; + PHPCONFIG=$PHP-config ;; esac - php_version=`$PHP4CONFIG --version 2>/dev/null` + php_version=`$PHPCONFIG --version 2>/dev/null` case $php_version in 5*) - PHP4INC=`$PHP4CONFIG --includes 2>/dev/null` - if test -n "$PHP4INC"; then - AC_MSG_RESULT($PHP4INC) + PHPINC=`$PHPCONFIG --includes 2>/dev/null` + if test -n "$PHPINC"; then + AC_MSG_RESULT($PHPINC) else AC_MSG_RESULT(not found) fi @@ -1368,8 +1368,8 @@ else AC_MSG_RESULT([found PHP $version, but only PHP 5 is supported]) ;; esac fi -AC_SUBST(PHP4) -AC_SUBST(PHP4INC) +AC_SUBST(PHP) +AC_SUBST(PHPINC) #---------------------------------------------------------------- # Look for ocaml @@ -2003,11 +2003,11 @@ fi AC_SUBST(SKIP_RUBY) -SKIP_PHP4= -if test -z "$PHP4" || test -z "$PHP4INC" ; then - SKIP_PHP4="1" +SKIP_PHP= +if test -z "$PHP" || test -z "$PHPINC" ; then + SKIP_PHP="1" fi -AC_SUBST(SKIP_PHP4) +AC_SUBST(SKIP_PHP) SKIP_OCAML=