diff options
author | foobar <sniper@php.net> | 2002-04-29 18:08:20 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2002-04-29 18:08:20 +0000 |
commit | 94f9b3bdb5c5cf05656b63935ff0343cf9aebfb8 (patch) | |
tree | d30b80802f336c21e72d5e169aa5296c8b4b107a | |
parent | e72caee65017cdf12b6fc56472eb12bd66d48a0a (diff) | |
download | php-git-94f9b3bdb5c5cf05656b63935ff0343cf9aebfb8.tar.gz |
Never add libraries without checking that they exist and can be linked.
-rw-r--r-- | ext/ming/config.m4 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/ming/config.m4 b/ext/ming/config.m4 index 6842e555e3..cb4d0351ff 100644 --- a/ext/ming/config.m4 +++ b/ext/ming/config.m4 @@ -6,7 +6,8 @@ PHP_ARG_WITH(ming, for MING support, [ --with-ming[=DIR] Include MING support]) if test "$PHP_MING" != "no"; then - PHP_SHLIB_SUFFIX_NAME + AC_CHECK_LIB(m, sin) + for i in $PHP_MING /usr/local /usr; do if test -f $i/lib/libming.$SHLIB_SUFFIX_NAME -o -f $i/lib/libming.a; then MING_DIR=$i @@ -22,7 +23,7 @@ if test "$PHP_MING" != "no"; then ],[ AC_MSG_ERROR([Ming library 0.2a or greater required.]) ],[ - -L$MING_DIR/lib -lm + -L$MING_DIR/lib ]) PHP_ADD_INCLUDE($MING_DIR/include) |