mirror of
https://github.com/asterisk/asterisk.git
synced 2026-07-23 07:54:50 -07:00
Always check for libm, regardless of configure options.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@380672 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
+45
-45
@@ -4079,6 +4079,51 @@ _ACEOF
|
||||
|
||||
fi
|
||||
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
|
||||
$as_echo_n "checking for sin in -lm... " >&6; }
|
||||
if test "${ac_cv_lib_m_sin+set}" = set; then :
|
||||
$as_echo_n "(cached) " >&6
|
||||
else
|
||||
ac_check_lib_save_LIBS=$LIBS
|
||||
LIBS="-lm $LIBS"
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
/* Override any GCC internal prototype to avoid an error.
|
||||
Use char because int might match the return type of a GCC
|
||||
builtin and then its argument prototype would still apply. */
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
#endif
|
||||
char sin ();
|
||||
int
|
||||
main ()
|
||||
{
|
||||
return sin ();
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
if ac_fn_c_try_link "$LINENO"; then :
|
||||
ac_cv_lib_m_sin=yes
|
||||
else
|
||||
ac_cv_lib_m_sin=no
|
||||
fi
|
||||
rm -f core conftest.err conftest.$ac_objext \
|
||||
conftest$ac_exeext conftest.$ac_ext
|
||||
LIBS=$ac_check_lib_save_LIBS
|
||||
fi
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
|
||||
$as_echo "$ac_cv_lib_m_sin" >&6; }
|
||||
if test "x$ac_cv_lib_m_sin" = x""yes; then :
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define HAVE_LIBM 1
|
||||
_ACEOF
|
||||
|
||||
LIBS="-lm $LIBS"
|
||||
|
||||
fi
|
||||
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
|
||||
$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
|
||||
if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
|
||||
@@ -4865,51 +4910,6 @@ else
|
||||
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Checking if floating point is disabled... no" >&5
|
||||
$as_echo "Checking if floating point is disabled... no" >&6; }
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod in -lm" >&5
|
||||
$as_echo_n "checking for fmod in -lm... " >&6; }
|
||||
if test "${ac_cv_lib_m_fmod+set}" = set; then :
|
||||
$as_echo_n "(cached) " >&6
|
||||
else
|
||||
ac_check_lib_save_LIBS=$LIBS
|
||||
LIBS="-lm $LIBS"
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
/* Override any GCC internal prototype to avoid an error.
|
||||
Use char because int might match the return type of a GCC
|
||||
builtin and then its argument prototype would still apply. */
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
#endif
|
||||
char fmod ();
|
||||
int
|
||||
main ()
|
||||
{
|
||||
return fmod ();
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
if ac_fn_c_try_link "$LINENO"; then :
|
||||
ac_cv_lib_m_fmod=yes
|
||||
else
|
||||
ac_cv_lib_m_fmod=no
|
||||
fi
|
||||
rm -f core conftest.err conftest.$ac_objext \
|
||||
conftest$ac_exeext conftest.$ac_ext
|
||||
LIBS=$ac_check_lib_save_LIBS
|
||||
fi
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fmod" >&5
|
||||
$as_echo "$ac_cv_lib_m_fmod" >&6; }
|
||||
if test "x$ac_cv_lib_m_fmod" = x""yes; then :
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define HAVE_LIBM 1
|
||||
_ACEOF
|
||||
|
||||
LIBS="-lm $LIBS"
|
||||
|
||||
fi
|
||||
|
||||
|
||||
fi
|
||||
|
||||
|
||||
@@ -106,6 +106,7 @@ AC_CHECK_LIB(winmm,puts)
|
||||
AC_CHECK_LIB(socket,puts)
|
||||
AC_CHECK_LIB(rt,puts)
|
||||
AC_CHECK_LIB(nsl,puts)
|
||||
AC_CHECK_LIB(m,sin)
|
||||
AC_CHECK_LIB(uuid,uuid_generate)
|
||||
AC_CHECK_LIB(uuid,uuid_generate,[ac_has_uuid_lib=1])
|
||||
|
||||
@@ -178,7 +179,6 @@ AC_ARG_ENABLE(floating-point,
|
||||
[
|
||||
AC_DEFINE(PJ_HAS_FLOATING_POINT,1)
|
||||
AC_MSG_RESULT([Checking if floating point is disabled... no])
|
||||
AC_CHECK_LIB(m,fmod)
|
||||
])
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user