]> granicus.if.org Git - php/commitdiff
Fixing autodetect of FreeTDS
authorFrank M. Kromann <fmk@php.net>
Sun, 9 Feb 2003 07:48:40 +0000 (07:48 +0000)
committerFrank M. Kromann <fmk@php.net>
Sun, 9 Feb 2003 07:48:40 +0000 (07:48 +0000)
ext/mssql/config.m4

index f9121dbf39f599252342a224e41028b027856b67..7007b1b94c44bf558ac99d8a8a239a1130426e4e 100644 (file)
@@ -13,8 +13,8 @@ if test "$PHP_MSSQL" != "no"; then
   if test "$PHP_MSSQL" = "yes"; then
 
     for i in /usr/local /usr; do
-      if test -f $i/freetds/include/tds.h; then
-        FREETDS_INSTALLATION_DIR=$i/freetds
+      if test -f $i/include/tds.h; then
+        FREETDS_INSTALLATION_DIR=$i
         break
       fi
     done
@@ -27,8 +27,6 @@ if test "$PHP_MSSQL" != "no"; then
 
     if test -f $PHP_MSSQL/include/tds.h; then
       FREETDS_INSTALLATION_DIR=$PHP_MSSQL
-    elif test -f $PHP_MSSQL/freetds/include/tds.h; then
-      FREETDS_INSTALLATION_DIR=$PHP_MSSQL/freetds
     else
       AC_MSG_ERROR(Directory $PHP_MSSQL is not a FreeTDS installation directory)
     fi