]> granicus.if.org Git - php/commitdiff
shlib suffix was not defind and rint() was not found without -lm.
authorRui Hirokawa <hirokawa@php.net>
Mon, 29 Apr 2002 02:55:55 +0000 (02:55 +0000)
committerRui Hirokawa <hirokawa@php.net>
Mon, 29 Apr 2002 02:55:55 +0000 (02:55 +0000)
ext/ming/config.m4

index 243c071ac3affdb5a35e9d2ac707872244b628e1..6842e555e31a41f07b34f40ceb3f30fd5a9cb3d3 100644 (file)
@@ -6,6 +6,7 @@ PHP_ARG_WITH(ming, for MING support,
 [  --with-ming[=DIR]       Include MING support])
 
 if test "$PHP_MING" != "no"; then
+  PHP_SHLIB_SUFFIX_NAME
   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
@@ -21,7 +22,7 @@ if test "$PHP_MING" != "no"; then
   ],[
     AC_MSG_ERROR([Ming library 0.2a or greater required.])
   ],[
-    -L$MING_DIR/lib
+    -L$MING_DIR/lib -lm
   ])
 
   PHP_ADD_INCLUDE($MING_DIR/include)