1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
dnl
dnl $Id$
dnl
PHP_ARG_WITH(sybase,for Sybase support,
[ --with-sybase[=DIR] Include Sybase-DB support. DIR is the Sybase home
directory, defaults to /home/sybase.])
if test "$PHP_SYBASE" != "no"; then
if test "$PHP_SYBASE" = "yes"; then
SYBASE_INCDIR=/home/sybase/include
SYBASE_LIBDIR=/home/sybase/lib
else
SYBASE_INCDIR=$PHP_SYBASE/include
SYBASE_LIBDIR=$PHP_SYBASE/lib
fi
PHP_ADD_INCLUDE($SYBASE_INCDIR)
PHP_ADD_LIBRARY_WITH_PATH(sybdb, $SYBASE_LIBDIR, SYBASE_SHARED_LIBADD)
PHP_NEW_EXTENSION(sybase, php_sybase_db.c, $ext_shared)
AC_CHECK_LIB(dnet_stub, dnet_addr,
[ PHP_ADD_LIBRARY_WITH_PATH(dnet_stub,,SYBASE_SHARED_LIBADD)
AC_DEFINE(HAVE_LIBDNET_STUB,1,[ ])
])
AC_DEFINE(HAVE_SYBASE,1,[ ])
AC_CHECK_LIB(sybdb, tdsdbopen,
[ AC_DEFINE(PHP_SYBASE_DBOPEN,tdsdbopen,[ ])
AC_DEFINE(DBMFIX,1,[ ]) ],
[ AC_DEFINE(PHP_SYBASE_DBOPEN,dbopen,[ ]) ])
fi
|