1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-09-22 04:15:54 -04:00

Update: Check for crypt_r()/crypt()

This commit is contained in:
Philipp Schafft 2023-02-14 09:15:39 +00:00
parent 898d38768c
commit c1748ac7fa

View File

@ -122,6 +122,15 @@ AC_CHECK_FUNCS([gettimeofday])
AC_CHECK_FUNCS([ftime])
AC_CHECK_FUNCS([getrlimit])
dnl check for crypt():
AC_CHECK_FUNCS([crypt_r], [], [
AC_CHECK_LIB(crypt, crypt_r, [], [
AC_CHECK_FUNCS([crypt], [], [
AC_CHECK_LIB(crypt, crypt)
])
])
])
dnl Do not check for poll on Darwin, it is broken in some versions
AS_IF([test "${SYS}" != "darwin"], [
AC_CHECK_FUNCS([poll])