diff options
Diffstat (limited to 'ext/ovrimos/config.m4')
-rw-r--r-- | ext/ovrimos/config.m4 | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/ext/ovrimos/config.m4 b/ext/ovrimos/config.m4 index 19482f39cb..e22148ea12 100644 --- a/ext/ovrimos/config.m4 +++ b/ext/ovrimos/config.m4 @@ -8,9 +8,7 @@ PHP_ARG_WITH(ovrimos, for Ovrimos SQL Server support, if test "$PHP_OVRIMOS" != "no"; then for i in $PHP_OVRIMOS /usr/local /usr; do - if test -f $i/include/sqlcli.h; then - OVRIMOS_DIR=$i - fi + test -f $i/include/sqlcli.h && OVRIMOS_DIR=$i && break done if test -z "$OVRIMOS_DIR"; then @@ -18,11 +16,11 @@ if test "$PHP_OVRIMOS" != "no"; then fi PHP_ADD_INCLUDE($OVRIMOS_DIR/include) - PHP_SUBST(OVRIMOS_SHARED_LIBADD) LDFLAGS="$LDFLAGS $ld_runpath_switch$OVRIMOS_DIR/lib -L$OVRIMOS_DIR/lib" AC_CHECK_LIB(sqlcli, main) PHP_ADD_LIBRARY_WITH_PATH(sqlcli, $OVRIMOS_DIR/lib, OVRIMOS_SHARED_LIBADD) - AC_DEFINE(HAVE_LIBSQLCLI,1,[ ]) PHP_NEW_EXTENSION(ovrimos, ovrimos.c, $ext_shared) + PHP_SUBST(OVRIMOS_SHARED_LIBADD) + AC_DEFINE(HAVE_LIBSQLCLI,1,[ ]) fi |