a6e78cfa88
- drop OSS audio support but keep "OSS" midi support
73 lines
2.5 KiB
Plaintext
73 lines
2.5 KiB
Plaintext
$OpenBSD: patch-configure_ac,v 1.1 2008/12/26 08:45:12 jakemsr Exp $
|
|
--- configure.ac.orig Sat Oct 18 20:58:26 2008
|
|
+++ configure.ac Sat Oct 18 21:08:50 2008
|
|
@@ -49,7 +49,8 @@ AM_PROG_LIBTOOL
|
|
AC_PROG_MAKE_SET
|
|
|
|
dnl Check for libraries
|
|
-AC_CHECK_LIB(pthread, pthread_create)
|
|
+dnl AC_CHECK_LIB(pthread, pthread_create)
|
|
+LIBS="$LIBS -pthread"
|
|
|
|
dnl Check for header files
|
|
AC_HEADER_STDC
|
|
@@ -82,7 +83,7 @@ AC_SUBST(LIBFLUID_CPPFLAGS)
|
|
AC_SUBST(LIBFLUID_LDFLAGS)
|
|
AC_SUBST(FLUID_CPPFLAGS)
|
|
|
|
-AM_CONDITIONAL(MINGW32_SUPPORT, test "$mingw32_support" == "yes")
|
|
+AM_CONDITIONAL(MINGW32_SUPPORT, test "$mingw32_support" = "yes")
|
|
|
|
AC_ARG_ENABLE(double, AS_HELP_STRING([--enable-double],
|
|
[double floating point for dsp (default=float)]),
|
|
@@ -136,7 +137,7 @@ if test "$ENABLE_DEBUG" = "yes"; then
|
|
CFLAGS="${CFLAGS} ${FCCFLAGS} -g -Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wstrict-prototypes -Wno-unused"
|
|
AC_DEFINE(DEBUG, 1, [Define to activate debugging message])
|
|
else
|
|
- CFLAGS="${CFLAGS} ${FCCFLAGS} -O2 -fomit-frame-pointer -funroll-all-loops -finline-functions -Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wstrict-prototypes -Wno-unused -Winline"
|
|
+ CFLAGS="${CFLAGS} ${FCCFLAGS} -Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wstrict-prototypes -Wno-unused -Winline"
|
|
AC_DEFINE(DEBUG, 0, [Define to activate debugging message])
|
|
fi
|
|
|
|
@@ -183,7 +184,27 @@ dnl - Check support for OSS audio
|
|
AC_OSS_AUDIO
|
|
AM_CONDITIONAL(OSS_SUPPORT, test "$OSS_SUPPORT" = "1")
|
|
|
|
+dnl - Check for libsndio support
|
|
+AC_ARG_ENABLE(libsndio-support, AS_HELP_STRING([--disable-libsndio-support],
|
|
+ [disable libsndio support (default=auto)]),
|
|
+ enable_libsndio=$enableval, enable_libsndio="yes")
|
|
|
|
+if test "x$enable_libsndio" != "xno"; then
|
|
+ AC_CHECK_HEADER(sndio.h, LIBSNDIO_SUPPORT=1, LIBSNDIO_SUPPORT=0)
|
|
+else
|
|
+ LIBSNDIO_SUPPORT=0
|
|
+fi
|
|
+
|
|
+if test "$LIBSNDIO_SUPPORT" = "1"; then
|
|
+ AC_DEFINE(LIBSNDIO_SUPPORT, 1, [Define to enable libsndio driver])
|
|
+fi
|
|
+AM_CONDITIONAL(LIBSNDIO_SUPPORT, test "$LIBSNDIO_SUPPORT" = "1")
|
|
+LIBSNDIO_CFLAGS=""
|
|
+AC_SUBST(LIBSNDIO_CFLAGS)
|
|
+LIBSNDIO_LIBS="-lsndio"
|
|
+AC_SUBST(LIBSNDIO_LIBS)
|
|
+
|
|
+
|
|
dnl - Check support for MidiShare
|
|
AC_MIDISHARE
|
|
|
|
@@ -341,6 +362,12 @@ if test "${OSS_SUPPORT}" = "1"; then
|
|
echo "OSS: yes"
|
|
else
|
|
echo "OSS: no"
|
|
+fi
|
|
+
|
|
+if test "${LIBSNDIO_SUPPORT}" = "1"; then
|
|
+ echo "libsndio: yes"
|
|
+else
|
|
+ echo "libsndio: no"
|
|
fi
|
|
|
|
if test "${MIDISHARE_SUPPORT}" = "1"; then
|