--- linuxsampler/trunk/configure.in 2011/06/28 22:51:37 2196 +++ linuxsampler/trunk/configure.in 2011/07/02 09:55:42 2197 @@ -78,6 +78,19 @@ fi AC_SUBST([CXX_CPU_SWITCH]) +mac=no +linux=no +case "$host" in + *-*-darwin*) + mac=yes + ;; + *-*-linux*) + linux=yes + ;; +esac +AM_CONDITIONAL(LINUX, test "$linux" = yes) +AM_CONDITIONAL(MAC, test "$mac" = yes) + # check if we're on MS Windows AC_CHECK_HEADERS( mmsystem.h, @@ -715,15 +728,7 @@ AC_DEFINE_UNQUOTED(CONFIG_RT_EXCEPTIONS, 1, [Define to 1 to allow exceptions in the realtime context.]) fi -case "$host" in - *-*-darwin*) - config_pthread_testcancel=yes - ;; - *) - config_pthread_testcancel=no - ;; -esac - +config_pthread_testcancel="$mac" AC_ARG_ENABLE(pthread-testcancel, [ --enable-pthread-testcancel Enable pthread_testcancel() calls and avoid