From f2a3b12445a3948e5ee28d86b8ba70c5fa670e4f Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Mon, 4 Apr 2005 10:50:32 +0000 Subject: fix #32560 (configure looks for incorrect library - libdb2.so instead of libdb2.a, which is used actually) --- ext/odbc/config.m4 | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/ext/odbc/config.m4 b/ext/odbc/config.m4 index 9bb7228..7b9f703 100644 --- a/ext/odbc/config.m4 +++ b/ext/odbc/config.m4 @@ -198,18 +198,24 @@ AC_ARG_WITH(ibm-db2, if ! test -f "$ODBC_INCDIR/sqlcli1.h"; then AC_MSG_ERROR([IBM DB2 header files not found]) fi - - if ! test -f "$ODBC_LIBDIR/libdb2.so"; then - AC_MSG_ERROR([IBM DB2 required libraries not found]) - fi ODBC_INCLUDE=-I$ODBC_INCDIR ODBC_LFLAGS=-L$ODBC_LIBDIR ODBC_TYPE=db2 ODBC_LIBS=-ldb2 - AC_DEFINE(HAVE_IBMDB2,1,[ ]) - AC_MSG_RESULT(yes) + PHP_TEST_BUILD(SQLExecute, [ + AC_DEFINE(HAVE_IBMDB2,1,[ ]) + AC_MSG_RESULT(yes) + ], + [ + AC_MSG_RESULT(no) + AC_MSG_ERROR([build test failed. Please check the config.log for details.]) + ], + [ + $ODBC_LFLAGS $ODBC_LIBS + ]) + else AC_MSG_RESULT(no) fi -- cgit v0.12