summaryrefslogtreecommitdiff
path: root/ext/odbc/config.m4
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2005-01-13 02:06:39 +0000
committerWez Furlong <wez@php.net>2005-01-13 02:06:39 +0000
commitf17311c9ddd882fd3e3774ac8b2d05ad722c9461 (patch)
treeee9e84f7351acb2cfaa54e25027efe25dfc5fff9 /ext/odbc/config.m4
parentef0de01b62abcaaa72d85c64d27adcbc5945e157 (diff)
downloadphp-git-f17311c9ddd882fd3e3774ac8b2d05ad722c9461.tar.gz
Add support for ODBCRouter
Diffstat (limited to 'ext/odbc/config.m4')
-rw-r--r--ext/odbc/config.m427
1 files changed, 27 insertions, 0 deletions
diff --git a/ext/odbc/config.m4 b/ext/odbc/config.m4
index b97fc6d856..7e0f320477 100644
--- a/ext/odbc/config.m4
+++ b/ext/odbc/config.m4
@@ -210,6 +210,33 @@ AC_ARG_WITH(ibm-db2,
fi
if test -z "$ODBC_TYPE"; then
+AC_MSG_CHECKING(for ODBCRouter.com support)
+AC_ARG_WITH(ODBCRouter,
+[ --with-ODBCRouter[=DIR] Include ODBCRouter.com support. DIR is ODBCRouter base
+ install directory, defaults to /usr.],
+[
+ PHP_WITH_SHARED
+ if test "$withval" = "yes"; then
+ withval=/usr
+ fi
+ if test "$withval" != "no"; then
+ ODBC_INCDIR=$withval/include
+ ODBC_LIBDIR=$withval/lib
+ ODBC_LFLAGS=-L$ODBC_LIBDIR
+ ODBC_INCLUDE=-I$ODBC_INCDIR
+ ODBC_LIBS=-lodbcsdk
+ ODBC_TYPE=ODBCRouter
+ AC_DEFINE(HAVE_ODBC_ROUTER,1,[ ])
+ AC_MSG_RESULT(yes)
+ else
+ AC_MSG_RESULT(no)
+ fi
+],[
+ AC_MSG_RESULT(no)
+])
+fi
+
+if test -z "$ODBC_TYPE"; then
AC_MSG_CHECKING(for Empress support)
AC_ARG_WITH(empress,
[ --with-empress[=DIR] Include Empress support. DIR is the Empress base