mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
build: Use 'LT_LIB_M' to determine whether -lm is needed.
* configure.ac: Use 'LT_LIB_M' instead of 'AC_CHECK_LIB(m, cos)'. Suggested by Sylvain Beucler <beuc@beuc.net>.
This commit is contained in:
parent
df8c52e93d
commit
8c75d3ae01
1 changed files with 3 additions and 4 deletions
|
@ -692,10 +692,9 @@ AC_TYPE_GETGROUPS
|
|||
AC_TYPE_SIGNAL
|
||||
AC_TYPE_MODE_T
|
||||
|
||||
# On mingw -lm is empty, so this test is unnecessary, but it's
|
||||
# harmless so we don't hard-code to suppress it.
|
||||
#
|
||||
AC_CHECK_LIB(m, cos)
|
||||
dnl Check whether we need -lm.
|
||||
LT_LIB_M
|
||||
LIBS="$LIBS $LIBM"
|
||||
|
||||
AC_CHECK_FUNCS(gethostbyname)
|
||||
if test $ac_cv_func_gethostbyname = no; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue