FAQ
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

Search Discussions

  • Richard Quadling at Nov 10, 2006 at 10:51 am
    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 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!"

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupphp-internals @
categoriesphp
postedNov 9, '06 at 9:15p
activeNov 10, '06 at 10:51a
posts2
users2
websitephp.net

2 users in discussion

Hubert Feyrer: 1 post Richard Quadling: 1 post

People

Translate

site design / logo © 2022 Grokbase