make php build on non-Linux: test ... == ...

php.internals

Hubert Feyrer

19 years ago
Hi, I've stumbled across this with php5, but this is also in php6 (against which the patch below is): the sqlite Makefile.am uses a GNU/Linux-only test(1) syntax that won't build on (e.g.) NetBSD. The patch below fixes this for POSIX/SUSv3 conformance. - Hubert Index: configure =================================================================== RCS file: /repository/php-src/ext/pdo_sqlite/sqlite/configure,v retrieving revision 1.4 diff -u -r1.4 configure --- configure 14 Aug 2006 16:35:22 -0000 1.4 +++ configure 9 Nov 2006 17:34:22 -0000 @@ -19700,7 +19700,7 @@ OS_WIN=0 OS_OS2=1 TARGET_CFLAGS="$TARGET_CFLAGS -DOS_OS2=1" - if test "$ac_compiler_gnu" == "yes" ; then + if test "$ac_compiler_gnu" = "yes" ; then TARGET_CFLAGS="$TARGET_CFLAGS -Zomf -Zexe -Zmap" BUILD_CFLAGS="$BUILD_CFLAGS -Zomf -Zexe" fi Index: configure.ac =================================================================== RCS file: /repository/php-src/ext/pdo_sqlite/sqlite/configure.ac,v retrieving revision 1.4 diff -u -r1.4 configure.ac --- configure.ac 14 Aug 2006 16:35:22 -0000 1.4 +++ configure.ac 9 Nov 2006 17:34:23 -0000 @@ -412,7 +412,7 @@ OS_WIN=0 OS_OS2=1 TARGET_CFLAGS="$TARGET_CFLAGS -DOS_OS2=1" - if test "$ac_compiler_gnu" == "yes" ; then + if test "$ac_compiler_gnu" = "yes" ; then TARGET_CFLAGS="$TARGET_CFLAGS -Zomf -Zexe -Zmap" BUILD_CFLAGS="$BUILD_CFLAGS -Zomf -Zexe" fi

Richard Quadling

19 years ago
Doing a quick check on ... pear pear-core pecl phpdoc php-src ZendAPI ZendEngine2 I've attached diffs to deal with == being = for compliance. On 09/11/06, Hubert Feyrer <hubertf@netbsd.org> wrote:
> > Hi, > > I've stumbled across this with php5, but this is also in php6 (against > which the patch below is): the sqlite Makefile.am uses a GNU/Linux-only > test(1) syntax that won't build on (e.g.) NetBSD. The patch below fixes > this for POSIX/SUSv3 conformance. > > > - Hubert > > > Index: configure > =================================================================== > RCS file: /repository/php-src/ext/pdo_sqlite/sqlite/configure,v > retrieving revision 1.4 > diff -u -r1.4 configure > --- configure 14 Aug 2006 16:35:22 -0000 1.4 > +++ configure 9 Nov 2006 17:34:22 -0000 > @@ -19700,7 +19700,7 @@ > OS_WIN=0 > OS_OS2=1 > TARGET_CFLAGS="$TARGET_CFLAGS -DOS_OS2=1" > - if test "$ac_compiler_gnu" == "yes" ; then > + if test "$ac_compiler_gnu" = "yes" ; then > TARGET_CFLAGS="$TARGET_CFLAGS -Zomf -Zexe -Zmap" > BUILD_CFLAGS="$BUILD_CFLAGS -Zomf -Zexe" > fi > Index: configure.ac > =================================================================== > RCS file: /repository/php-src/ext/pdo_sqlite/sqlite/configure.ac,v > retrieving revision 1.4 > diff -u -r1.4 configure.ac > --- configure.ac 14 Aug 2006 16:35:22 -0000 1.4 > +++ configure.ac 9 Nov 2006 17:34:23 -0000 > @@ -412,7 +412,7 @@ > OS_WIN=0 > OS_OS2=1 > TARGET_CFLAGS="$TARGET_CFLAGS -DOS_OS2=1" > - if test "$ac_compiler_gnu" == "yes" ; then > + if test "$ac_compiler_gnu" = "yes" ; then > TARGET_CFLAGS="$TARGET_CFLAGS -Zomf -Zexe -Zmap" > BUILD_CFLAGS="$BUILD_CFLAGS -Zomf -Zexe" > fi > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >
-- ----- Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 "Standing on the shoulders of some very clever giants!"