]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 2873: undefined symbol rint
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 19 Mar 2010 10:17:55 +0000 (23:17 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 19 Mar 2010 10:17:55 +0000 (23:17 +1300)
Detect math library properly based on rint synbol we need.

configure.in

index cc906a6862cd0f40f2daf8839271c916fe207b4d..c3f149859b01b7a47fad5e121c1fba4ab8846263 100644 (file)
@@ -2641,7 +2641,10 @@ mingw|mingw32)
        AC_MSG_NOTICE([Use MSVCRT for math functions.])
        ;;
        *)
-       AC_CHECK_LIB(m, main)
+       dnl rint() is only used in old C code for now.
+       AC_LANG_PUSH([C])
+       AC_SEARCH_LIBS([rint],[m])
+       AC_LANG_POP([C])
        ;;
 esac