mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
Check for fmod() function
Instead of adding `profanity_LDADD = -lm` to Makefile.am or using `AC_CHECK_LIB()` in configurea.c I use `AC_SEARCH_LIBS()` in case the fmod() function is in the libc. See https://autotools.io/autoconf/finding.html
This commit is contained in:
parent
3258211f27
commit
6e5c928826
@ -168,6 +168,9 @@ PKG_CHECK_MODULES([gio], [gio-2.0], [],
|
|||||||
[AC_MSG_ERROR([libgio-2.0 from glib-2.0 is required for profanity])])
|
[AC_MSG_ERROR([libgio-2.0 from glib-2.0 is required for profanity])])
|
||||||
|
|
||||||
### Check for other profanity dependencies
|
### Check for other profanity dependencies
|
||||||
|
AC_SEARCH_LIBS([fmod], [m], [],
|
||||||
|
[AC_MSG_ERROR([math.h is required])], [])
|
||||||
|
|
||||||
PKG_CHECK_MODULES([curl], [libcurl], [],
|
PKG_CHECK_MODULES([curl], [libcurl], [],
|
||||||
[AC_CHECK_LIB([curl], [main], [],
|
[AC_CHECK_LIB([curl], [main], [],
|
||||||
[AC_MSG_ERROR([libcurl is required for profanity])])])
|
[AC_MSG_ERROR([libcurl is required for profanity])])])
|
||||||
|
Loading…
Reference in New Issue
Block a user