Skip to content

Commit 0064c42

Browse files
committed
Autotools: Simplify PHP_PDO_DBLIB conditions
The PHP_PDO_DBLIB value no is already checked in the main if sentence.
1 parent b2640ee commit 0064c42

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/pdo_dblib/config.m4

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ PHP_ARG_WITH([pdo-dblib],
44
[PDO: DBLIB-DB support. DIR is the FreeTDS home directory])])
55

66
if test "$PHP_PDO_DBLIB" != "no"; then
7-
if test "$PHP_PDO_DBLIB" = "yes"; then
7+
AS_VAR_IF([PHP_PDO_DBLIB], [yes], [
88
dnl FreeTDS must be on the default system include/library path.
99
dnl Only perform a sanity check that this is really the case.
1010
PHP_CHECK_LIBRARY([sybdb], [dbsqlexec],
1111
[],
1212
[AC_MSG_FAILURE([Cannot find FreeTDS in known installation directories.])])
1313
PHP_ADD_LIBRARY([sybdb],, [PDO_DBLIB_SHARED_LIBADD])
14-
elif test "$PHP_PDO_DBLIB" != "no"; then
14+
], [
1515
if test -f $PHP_PDO_DBLIB/include/sybdb.h; then
1616
PDO_FREETDS_INSTALLATION_DIR=$PHP_PDO_DBLIB
1717
PDO_FREETDS_INCLUDE_DIR=$PHP_PDO_DBLIB/include
@@ -32,7 +32,7 @@ if test "$PHP_PDO_DBLIB" != "no"; then
3232
PHP_ADD_LIBRARY_WITH_PATH([sybdb],
3333
[$PDO_FREETDS_INSTALLATION_DIR/$PHP_LIBDIR],
3434
[PDO_DBLIB_SHARED_LIBADD])
35-
fi
35+
])
3636

3737
PHP_CHECK_PDO_INCLUDES
3838

0 commit comments

Comments
 (0)