File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -4,14 +4,14 @@ PHP_ARG_WITH([pdo-dblib],
4
4
[ PDO: DBLIB-DB support. DIR is the FreeTDS home directory] ) ] )
5
5
6
6
if test "$PHP_PDO_DBLIB" != "no"; then
7
- if test "$ PHP_PDO_DBLIB" = " yes"; then
7
+ AS_VAR_IF ( [ PHP_PDO_DBLIB] , [ yes] , [
8
8
dnl FreeTDS must be on the default system include/library path.
9
9
dnl Only perform a sanity check that this is really the case.
10
10
PHP_CHECK_LIBRARY([ sybdb] , [ dbsqlexec] ,
11
11
[ ] ,
12
12
[ AC_MSG_FAILURE ( [ Cannot find FreeTDS in known installation directories.] ) ] )
13
13
PHP_ADD_LIBRARY([ sybdb] ,, [ PDO_DBLIB_SHARED_LIBADD] )
14
- elif test "$PHP_PDO_DBLIB" != "no"; then
14
+ ] , [
15
15
if test -f $PHP_PDO_DBLIB/include/sybdb.h; then
16
16
PDO_FREETDS_INSTALLATION_DIR=$PHP_PDO_DBLIB
17
17
PDO_FREETDS_INCLUDE_DIR=$PHP_PDO_DBLIB/include
@@ -32,7 +32,7 @@ if test "$PHP_PDO_DBLIB" != "no"; then
32
32
PHP_ADD_LIBRARY_WITH_PATH([ sybdb] ,
33
33
[ $PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR] ,
34
34
[ PDO_DBLIB_SHARED_LIBADD] )
35
- fi
35
+ ] )
36
36
37
37
PHP_CHECK_PDO_INCLUDES
38
38
You can’t perform that action at this time.
0 commit comments