Test that libgds actually exists.

This commit is contained in:
foobar 2003-02-03 11:45:44 +00:00
parent 1887456484
commit 8e673a3fa0

View File

@ -14,10 +14,18 @@ if test "$PHP_INTERBASE" != "no"; then
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