Extension help

From: Date: Wed, 15 Nov 2000 15:48:58 +0000
Subject: Extension help
Groups: php.dev 
Request: Send a blank email to php-dev+get-38146@lists.php.net to get a copy of this message
Hi, I'm currently developing a PHP extension using the XML DOM parser in the Qt library (http://www.trolltech.com), I've got it up and working but got some problems with automake/configure which I have to do manually. (It is not in CVS yet) The first problem is that the CXX variable in the config_vars.mk file in the root is not set, since the extensions uses the C++ compiler this needs to be set, how do I/configure do that? Second the libs.mk file(which is auto generated) needs a little change it currently looks like: include $(top_builddir)/config_vars.mk LTLIBRARY_OBJECTS = $(LTLIBRARY_SOURCES:.c=.lo) $(LTLIBRARY_OBJECTS_X) LTLIBRARY_SHARED_OBJECTS = $(LTLIBRARY_OBJECTS:.lo=.slo) $(LTLIBRARY_NAME): $(LTLIBRARY_OBJECTS) $(LTLIBRARY_DEPENDENCIES) $(LINK) $(LTLIBRARY_LDFLAGS) $(LTLIBRARY_OBJECTS) $(LTLIBRARY_LIBADD) targets = $(LTLIBRARY_NAME) but needs to look like: include $(top_builddir)/config_vars.mk LTLIBRARY_OBJECTS = $(LTLIBRARY_SOURCES:.c=.lo) $(LTLIBRARY_SOURCES_CPP:.cpp=.lo) $(LTLIBRARY_OBJECTS_X) LTLIBRARY_SHARED_OBJECTS = $(LTLIBRARY_OBJECTS:.lo=.slo) $(LTLIBRARY_NAME): $(LTLIBRARY_OBJECTS) $(LTLIBRARY_DEPENDENCIES) $(LINK) $(LTLIBRARY_LDFLAGS) $(LTLIBRARY_OBJECTS) $(LTLIBRARY_LIBADD) targets = $(LTLIBRARY_NAME) or is it possible to do two conversion on a variable? Something like: LTLIBRARY_OBJECTS = $(LTLIBRARY_SOURCES:.c|.cpp=.lo)$(LTLIBRARY_OBJECTS_X) The last thing is that I need to do some checking for the Qt library, specifically I have to check for the existence of XML in the library. I know a lot of KDE programs has a working autoconf checker for this, how do I include this in the extension? any clues? -- - Jan Borsodi <jb@ez.no> - Software Developer/Designer @ eZ Systems Web: http://www.ez.no QtVu developer: http://www.qtvu.org RegExplorer developer: http://regexplorer.sourceforge.net

« previous php.dev (#38146) next »