2
dnl $Id: config.m4,v 1.20 2004/05/12 14:29:42 abies Exp $
5
PHP_ARG_WITH(interbase,for InterBase support,
6
[ --with-interbase[=DIR] Include InterBase support. DIR is the InterBase base
7
install directory, defaults to /usr/interbase])
9
if test "$PHP_INTERBASE" != "no"; then
10
if test "$PHP_INTERBASE" = "yes"; then
11
IBASE_INCDIR=/usr/interbase/include
12
IBASE_LIBDIR=/usr/interbase/lib
14
IBASE_INCDIR=$PHP_INTERBASE/include
15
IBASE_LIBDIR=$PHP_INTERBASE/lib
18
PHP_CHECK_LIBRARY(fbclient, isc_detach_database,
20
IBASE_LIBNAME=fbclient
22
PHP_CHECK_LIBRARY(gds, isc_detach_database,
26
PHP_CHECK_LIBRARY(ib_util, isc_detach_database,
30
AC_MSG_ERROR([libgds, libib_util or libfbclient not found! Check config.log for more information.])
41
PHP_ADD_LIBRARY_WITH_PATH($IBASE_LIBNAME, $IBASE_LIBDIR, INTERBASE_SHARED_LIBADD)
42
PHP_ADD_INCLUDE($IBASE_INCDIR)
43
AC_DEFINE(HAVE_IBASE,1,[ ])
44
PHP_NEW_EXTENSION(interbase, interbase.c ibase_query.c ibase_service.c ibase_events.c ibase_blobs.c, $ext_shared)
45
PHP_SUBST(INTERBASE_SHARED_LIBADD)