Re: cvs: php4 /ext/sablot config.m4 /ext/xslt config.m4

From: Date: Wed, 09 May 2001 14:55:56 +0000
Subject: Re: cvs: php4 /ext/sablot config.m4 /ext/xslt config.m4
References: 1  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-5620@lists.php.net to get a copy of this message
Yet again I get hit by the lack of documentation for the configure macros..could you please add some comment about this to the acinclude.m4 ? So nobody else makes the same mistake. Anyway, wouldn't this work just fine: -----8<--------------------------------------------- PHP_ARG_WITH(sablot, for Sablotron XSL support, [ --with-sablot[=DIR] Include Sablotron support]) if test "$PHP_SABLOT" != "no"; then PHP_EXTENSION(sablot, $ext_shared) PHP_ARG_WITH(expat-dir, libexpat dir for Sablotron 0.50, [ --with-expat-dir=DIR Sablotron: libexpat dir for Sablotron 0.50]) --------------8<------------------------------------- ie. Just have the PHP_EXTENSION before those other PHP_ARG_* calls? --Jani On Wed, 9 May 2001, Sascha Schumann wrote: >On Tue, 8 May 2001, Jani Taskinen wrote: > >> sniper Tue May 8 15:17:59 2001 EDT >> >> Modified files: >> /php4/ext/sablot config.m4 >> /php4/ext/xslt config.m4 >> Log: >> No need to show these if they are not used. > > PHP_ARG_* always sets ext_shared, so if you interleave > calls to PHP_ARG_*, latter calls will overwrite the results > of earlier invocations. > > E.g. in this commit, > >> if test "$PHP_SABLOT" != "no"; then >> + >> + PHP_ARG_WITH(expat-dir, libexpat dir for Sablotron 0.50, >> + [ --with-expat-dir=DIR Sablotron: libexpat dir for Sablotron 0.50]) >> + > > the functionality of --with-sablot=shared gets broken. > >> -if test "$PHP_XSLT" != "no"; then >> + PHP_ARG_WITH(expat-dir, libexpat dir for Sablotron XSL support, >> + [ --with-expat-dir=DIR Sablotron: libexpat dir for Sablotron 0.50]) >> + > > Same here. > > The commits should be either reverted or precautions should > be taken to preserve the value of ext_shared until its used > later in PHP_EXTENSION(). > > - Sascha Experience IRCG > http://schumann.cx/ > http://schumann.cx/ircg > > >

« previous php.cvs (#5620) next »