]> granicus.if.org Git - php/commitdiff
Never add libraries without checking that they exist and can be linked.
authorfoobar <sniper@php.net>
Mon, 29 Apr 2002 18:08:20 +0000 (18:08 +0000)
committerfoobar <sniper@php.net>
Mon, 29 Apr 2002 18:08:20 +0000 (18:08 +0000)
ext/ming/config.m4

index 6842e555e31a41f07b34f40ceb3f30fd5a9cb3d3..cb4d0351ff70446790cbc749de0aac4549d1bda5 100644 (file)
@@ -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)