From d9ef0e1b141c13b77f541ccf38db6951a1e9d10f Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 20 Mar 2004 21:47:09 +0000 Subject: [PATCH] pthread_mutex_timedlock, ranlib check --- stepmania/configure.ac | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stepmania/configure.ac b/stepmania/configure.ac index 9bfcff03b3..1cecba05a1 100644 --- a/stepmania/configure.ac +++ b/stepmania/configure.ac @@ -15,6 +15,7 @@ test -z "$LDFLAGS" && DEFAULT_LDFLAGS=yes AC_PROG_CC AC_PROG_CXX +AC_PROG_RANLIB test "$DEFAULT_CFLAGS" = "yes" && CFLAGS="-Wall -W -Wno-unused -Wno-switch" test "$DEFAULT_CXXFLAGS" = "yes" && CXXFLAGS="-Wall -W -Wno-unused -Wno-switch" @@ -132,6 +133,8 @@ AC_TRY_COMPILE( [#include AC_DEFINE([NEED_CSTDLIB_WORKAROUND], 1, [cstdlib breaks llabs])] ) +AC_CHECK_LIB( pthread, pthread_mutex_timedlock, AC_DEFINE([HAVE_PTHREAD_MUTEX_TIMEDLOCK],1,[pthreads has pthread_mutex_timedlock()]) ) + AM_CONDITIONAL(HAVE_ALSA, test x$alsa != xfalse ) AM_CONDITIONAL(HAVE_GTK, test "$enable_gtk2" != "no" ) AM_CONDITIONAL(HAVE_OSS, test x$ac_cv_header_linux_soundcard_h = xyes )