Re: Extension help
| From: | Jan Borsodi | Date: | Wed, 15 Nov 2000 16:25:35 +0000 |
| Subject: | Re: Extension help | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-38149@lists.php.net to get a copy of this message | ||
Sascha Schumann <sascha@schumann.cx> writes:
> Hi,
>
> On 15 Nov 2000, Jan Borsodi wrote:
>
> >
> > 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?
>
> Call the m4 macro PHP_REQUIRE_CXX in your config.m4 then.
> That will check for a C++ compiler and set the appropiate
> variables.
When I do that I get:
configure.in:661: AC_PROG_CXXCPP was called before AC_PROG_CXX
on a ./buildconf
and the CXX variable is still not set after the configure
my config.m4 looks like this:
AC_MSG_CHECKING(whether to include QDOM support)
AC_ARG_WITH(qtdom,
[ --with-qtdom Include QtDOM support (requires Qt >= 2.2.0).],
[
case "$withval" in
no)
AC_MSG_RESULT(no) ;;
yes)
AC_MSG_RESULT(yes)
AC_ADD_LIBRARY_WITH_PATH(qt, $QTDIR/lib)
AC_ADD_INCLUDE($QTDIR/include)
AC_DEFINE(HAVE_QTDOM, 1, [Wheter you have qtdom])
PHP_EXTENSION(qtdom, $ext_shared)
PHP_REQUIRE_CXX()
;;
esac
],[
AC_MSG_RESULT(no)
])
--
- 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