Date: 11/15/00
- Next message: Sascha Schumann: "Re: [PHP-DEV] Extension help"
- Previous message: giancarlo.favaretti <email protected>: "[PHP-DEV] PHP 4.0 Bug #7831: first session creation generate unwanted carachters INTO javascript source code"
- Next in thread: Sascha Schumann: "Re: [PHP-DEV] Extension help"
- Reply: Sascha Schumann: "Re: [PHP-DEV] Extension help"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Sascha Schumann <sascha <email protected>> 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 <email protected>> - Software Developer/Designer @ eZ Systems Web: http://www.ez.no QtVu developer: http://www.qtvu.org RegExplorer developer: http://regexplorer.sourceforge.net-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Sascha Schumann: "Re: [PHP-DEV] Extension help"
- Previous message: giancarlo.favaretti <email protected>: "[PHP-DEV] PHP 4.0 Bug #7831: first session creation generate unwanted carachters INTO javascript source code"
- Next in thread: Sascha Schumann: "Re: [PHP-DEV] Extension help"
- Reply: Sascha Schumann: "Re: [PHP-DEV] Extension help"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

