summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2002-04-29 18:08:20 +0000
committerfoobar <sniper@php.net>2002-04-29 18:08:20 +0000
commit94f9b3bdb5c5cf05656b63935ff0343cf9aebfb8 (patch)
treed30b80802f336c21e72d5e169aa5296c8b4b107a
parente72caee65017cdf12b6fc56472eb12bd66d48a0a (diff)
downloadphp-git-94f9b3bdb5c5cf05656b63935ff0343cf9aebfb8.tar.gz
Never add libraries without checking that they exist and can be linked.
-rw-r--r--ext/ming/config.m45
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)