]> granicus.if.org Git - php/commitdiff
MFH: add checks for libs & headers required by IBM DB2
authorAntony Dovgal <tony2001@php.net>
Tue, 18 Jan 2005 21:21:16 +0000 (21:21 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 18 Jan 2005 21:21:16 +0000 (21:21 +0000)
ext/odbc/config.m4

index d41c27d4791ee8b03f817eb7d813887cc88fc912..29321a634d4fd2d893b155b125a5db6b8aab362f 100644 (file)
@@ -194,6 +194,15 @@ AC_ARG_WITH(ibm-db2,
       ODBC_INCDIR=$withval/include
       ODBC_LIBDIR=$withval/lib
     fi
+       
+    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