diff --git a/stepmania/configure.ac b/stepmania/configure.ac index e676e56a44..de6f79a723 100644 --- a/stepmania/configure.ac +++ b/stepmania/configure.ac @@ -63,6 +63,17 @@ AH_VERBATIM([VA_ZZZ_NEEDED_FUNCS], #endif ]) +AC_CHECK_DECLS([SIGPWR, SIGUSR1],,,[#include ]) +AH_VERBATIM([SIGNALS], +[#if !HAVE_DECL_SIGPWR +#if HAVE_DECL_SIGUSR1 +#define SIGPWR SIGUSR1 +#else //!HAVE_DECL_SIGUSR1 +#define SIGPWR 30 +#endif //HAVE_DECL_SIGUSR1 +#endif //!HAVE_DECL_SIGPWR +]) + case $host in *-*-darwin*) AC_DEFINE(DARWIN, 1, [Use different sound drivers than linux]) @@ -70,6 +81,7 @@ case $host in esac AM_CONDITIONAL(DARWIN, test x$darwin = xtrue) + # sdl-config puts -L/usr/lib in the library search path, which reorders things # in a way that breaks some configurations. SDL_LIBS="`echo $SDL_LIBS | sed 's_-L/usr/lib/\?[[ $]]__'`"