]> granicus.if.org Git - php/commitdiff
fix #32560 (configure looks for incorrect library - libdb2.so instead of libdb2.a,
authorAntony Dovgal <tony2001@php.net>
Mon, 4 Apr 2005 10:50:32 +0000 (10:50 +0000)
committerAntony Dovgal <tony2001@php.net>
Mon, 4 Apr 2005 10:50:32 +0000 (10:50 +0000)
which is used actually)

ext/odbc/config.m4

index 9bb72284f8b268b862deaf22b76f5b4ac1c3e75c..7b9f7033591525c3bd06884d83db766ef8273fdd 100644 (file)
@@ -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