Hi,

Attaching my config.m4 for the new extension.
(I have renamed  the file to  config_m4.txt for mailing).

As I mentioned, my issue is that:  even the standard extension generated by
 ./ext_skel
doesn't get included in config/build list  by  buildconf + configure
 commands.

please let me know some pointers which I should look.

thanks,
-sanjeev kumar

On Sun, Jan 31, 2010 at 12:27 PM, Jess Portnoy <j...@zend.com> wrote:

> Hello,
>
> Please attach your config.m4 file which will help understand what's wrong.
> You should also try to compare yours with an existing one, maybe the
> problem will become apparent simply by comparison.
>
> May the source be with you,
> Best regards,
> Jess Portnoy
>
>
>
>
> Sanjeev Kumar wrote:
>
>> I am new to Php-dev and trying to add an extension to Php
>>
>> I downloaded php-5.3.1 src on RedHatLinux4 . After adding my extension,
>> the
>> configure/make doesn't build my extension and include in Php.
>>
>> commands that I ran after unzipping the php5.3.1 src:
>>
>> cd ext
>> ./ext_skel  --extname=pdo-mydbext
>> <enabled in  pdo-mydbext/config.m4>
>>
>> cd ..
>> ./buildconf  --force
>> ./configure --enable-pdo-mydbext
>> make
>>
>> My issue:
>> No objects are compiled for my  pdo-mydbext.
>> In fact, seeing the output of  ./configure on screen, I can see that my
>> ext
>> didn't called in extensions list.
>> < .". whether to enable  pdo-myext ...">   didn't get displayed by
>> ./configure & make didn't build myext.
>>
>> What do I need to add my extension(to be compiled, and so on..)
>>
>>
>> thanks,
>> -sanjeev
>>
>>
>>
>
dnl $Id: config.m4 273413 2009-01-13 02:50:54Z sanjeevKumar $
dnl config.m4 for extension pdo_groovy
dnl vim:et:sw=2:ts=2:

PHP_ARG_ENABLE(pdo_groovy, whether to enable GROOVY support,
[  --with-pdo_groovy           Enable pdo_groovy support])

if test "$PHP_PDO_GROOVY" != "no"; then

  if test "$PHP_PDO" = "no"; then
    AC_MSG_ERROR([PDO is not enabled! Add --enable-pdo to your configure line.])
  fi

  ifdef([PHP_CHECK_PDO_INCLUDES],
  [
    PHP_CHECK_PDO_INCLUDES
  ],[
    AC_MSG_CHECKING([for PDO includes])
    if test -f $abs_srcdir/include/php/ext/pdo/php_pdo_driver.h; then
      pdo_inc_path=$abs_srcdir/ext
    elif test -f $abs_srcdir/ext/pdo/php_pdo_driver.h; then
      pdo_inc_path=$abs_srcdir/ext
    elif test -f $prefix/include/php/ext/pdo/php_pdo_driver.h; then
      pdo_inc_path=$prefix/include/php/ext
    else
      AC_MSG_ERROR([Cannot find php_pdo_driver.h.])
    fi
    AC_MSG_RESULT($pdo_inc_path)
  ])

  php_pdo_groovy="pdo_groovy.c groovy_driver.c groovy_statement.c gdb.c"

dnl    PHP_ADD_INCLUDE($PDO_SQLITE_DIR/include)

    AC_DEFINE(HAVE_GROOVY, 1, [whether you have GROOVY])
PHP_ADD_INCLUDE($PDO_GROOVY_DIR/include)

  dnl # --with-pdo_groovy -> check for lib and symbol presence
LIBNAME=pdo_groovy # you may want to change this
LIBSYMBOL=pdo_groovy # you most likely want to change this

PHP_CHECK_LIBRARY($LIBNAME,$LIBSYMBOL,
[
  PHP_ADD_LIBRARY_WITH_PATH($LIBNAME, $PDO_GROOVY_DIR/lib, 
PDO_GROOVY_SHARED_LIBADD)
  AC_DEFINE(HAVE_PDO_GROOVYLIB,1,[ ])
 ],[
   AC_MSG_ERROR([wrong pdo_groovy lib version or lib not found])
 ],[
   -L$PDO_GROOVY_DIR/lib -lm
 ])

 PHP_SUBST(PDO_GROOVY_SHARED_LIBADD)

    PHP_NEW_EXTENSION(pdo_groovy, $php_pdo_groovy, $ext_shared,,-I$pdo_inc_path 
  -I$pdo_inc_path)

      AC_CHECK_HEADERS(time.h)

  ifdef([PHP_ADD_EXTENSION_DEP],
  [
    PHP_ADD_EXTENSION_DEP(pdo_groovy, pdo)
  ])
fi
-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to