chiark / gitweb /
speaker beforepoll() now gets to modify the timeout. This allows
[disorder] / configure.ac
index 4976ac156e857a43add682f932cd688fb637d351..482505dcec9988bf7de1725d58a48a5cde1fb339 100644 (file)
@@ -32,29 +32,43 @@ AC_CANONICAL_HOST
 want_gtk=yes
 want_python=yes
 
+# Checks for programs.
+AC_PROG_CC
+AC_SET_MAKE
+if test "x$GCC" = xyes; then
+  gcc_werror=-Werror
+else
+  gcc_werror=""
+fi
+
+AC_MSG_CHECKING([for a known target platform])
 case "$host" in
+*empeg* )
+  AC_MSG_RESULT([empeg car stereo])
+  AC_DEFINE([EMPEG_HOST],[1],[define if host is an empeg car stereo])
+  # work around broken toolchain
+  AC_CHECK_LIB([gpg-error], [gpg_strerror])
+  AC_CHECK_LIB([pthread], [pthread_create])
+  # lib/queue.c really wants to be split into server and non-server bits
+  AC_CHECK_LIB([dl], [dlopen])
+  want_server=no
+ ;;
 *linux* | *Linux* )
+  AC_MSG_RESULT([Linux])
   want_server=yes
   ;;
 *-apple-darwin* )
+  AC_MSG_RESULT([Mac OS X])
   want_server=no
   COREAUDIO="-framework CoreAudio"
   ;;
 * )
+  AC_MSG_RESULT([unknown, winging it])
   want_server=no
   ;;
 esac
 AC_SUBST([COREAUDIO])
 
-# Checks for programs.
-AC_PROG_CC
-AC_SET_MAKE
-if test "x$GCC" = xyes; then
-  gcc_werror=-Werror
-else
-  gcc_werror=""
-fi
-
 AC_ARG_WITH([server],
            [AS_HELP_STRING([--without-server],
                            [do not build server])],