cvs: php4 /ext/interbase config.m4

From: Date: Mon, 03 Feb 2003 11:45:44 +0000
Subject: cvs: php4 /ext/interbase config.m4
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-18381@lists.php.net to get a copy of this message
sniper Mon Feb 3 06:45:44 2003 EDT Modified files: /php4/ext/interbase config.m4 Log: Test that libgds actually exists. Index: php4/ext/interbase/config.m4 diff -u php4/ext/interbase/config.m4:1.8 php4/ext/interbase/config.m4:1.9 --- php4/ext/interbase/config.m4:1.8 Tue Mar 12 11:21:56 2002 +++ php4/ext/interbase/config.m4 Mon Feb 3 06:45:44 2003 @@ -1,5 +1,5 @@ dnl -dnl $Id: config.m4,v 1.8 2002/03/12 16:21:56 sas Exp $ +dnl $Id: config.m4,v 1.9 2003/02/03 11:45:44 sniper Exp $ dnl PHP_ARG_WITH(interbase,for InterBase support, @@ -14,10 +14,18 @@ IBASE_INCDIR=$PHP_INTERBASE/include IBASE_LIBDIR=$PHP_INTERBASE/lib fi - PHP_ADD_LIBRARY_WITH_PATH(gds, $IBASE_LIBDIR, INTERBASE_SHARED_LIBADD) + + PHP_CHECK_LIBRARY(gds, isc_detach_database, + [ + PHP_ADD_LIBRARY_WITH_PATH(gds, $IBASE_LIBDIR, INTERBASE_SHARED_LIBADD) + ], [ + AC_MSG_ERROR([libgds not found! Check config.log for more information.]) + ], [ + -L$IBASE_LIBDIR -lgds + ]) + PHP_ADD_INCLUDE($IBASE_INCDIR) AC_DEFINE(HAVE_IBASE,1,[ ]) -dnl AC_CHECK_LIB(c, strptime, [AC_DEFINE(HAVE_STRPTIME,1,[])]) PHP_NEW_EXTENSION(interbase, interbase.c, $ext_shared) PHP_SUBST(INTERBASE_SHARED_LIBADD) fi

« previous php.cvs (#18381) next »