Move eventfd checks to the Linux-specific portion of configure

This commit is contained in:
Julien BLACHE 2010-09-14 22:35:48 +02:00
parent 75fb755db7
commit bc443752b3

View File

@ -33,8 +33,6 @@ AC_CHECK_HEADERS([sys/wait.h])
AC_CHECK_HEADERS([sys/param.h]) AC_CHECK_HEADERS([sys/param.h])
AC_CHECK_HEADERS([sys/select.h]) AC_CHECK_HEADERS([sys/select.h])
AC_CHECK_HEADERS([dirent.h]) AC_CHECK_HEADERS([dirent.h])
AC_CHECK_HEADERS([sys/eventfd.h])
AC_CHECK_FUNCS(eventfd)
AC_CHECK_FUNCS(posix_fadvise) AC_CHECK_FUNCS(posix_fadvise)
AC_CHECK_FUNCS(strptime) AC_CHECK_FUNCS(strptime)
AC_CHECK_FUNCS(strtok_r) AC_CHECK_FUNCS(strtok_r)
@ -163,6 +161,9 @@ case "$host" in
AC_DEFINE(LAUDIO_USE_ALSA, 1, [define if local audio output uses ALSA]) AC_DEFINE(LAUDIO_USE_ALSA, 1, [define if local audio output uses ALSA])
fi fi
AC_CHECK_HEADERS([sys/eventfd.h])
AC_CHECK_FUNCS(eventfd)
AC_CHECK_HEADER(sys/signalfd.h, , AC_MSG_ERROR([signalfd required; glibc 2.9+ recommended])) AC_CHECK_HEADER(sys/signalfd.h, , AC_MSG_ERROR([signalfd required; glibc 2.9+ recommended]))
;; ;;
esac esac