Allow the user to specify CFLAGS and LIBS for linking with poll, and test for -lpoll if necessary

This commit is contained in:
Quentin Smith
2012-03-27 02:01:29 -04:00
committed by Keith Winstein
parent 44ab7360bc
commit 7a4ef054c3
3 changed files with 16 additions and 10 deletions
+6
View File
@@ -125,6 +125,12 @@ AC_SEARCH_LIBS([clock_gettime], [rt], [AC_DEFINE([HAVE_CLOCK_GETTIME], [1], [Def
AC_CHECK_LIB([ncurses], [setupterm])
AC_ARG_VAR([poll_CFLAGS], [C compiler flags for poll])
AC_ARG_VAR([poll_LIBS], [linker flags for poll])
if test -z "$poll_LIBS"; then
AC_CHECK_LIB([poll], [poll], [poll_LIBS="-lpoll"])
fi
AC_CHECK_DECLS([__builtin_bswap64, __builtin_ctz])
AC_CHECK_DECL([mach_absolute_time],