~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
playrtp now gets port from server if no args
[disorder]
/
configure.ac
diff --git
a/configure.ac
b/configure.ac
index
32eaeaf
..
0f9258c
100644
(file)
--- a/
configure.ac
+++ b/
configure.ac
@@
-32,29
+32,40
@@
AC_CANONICAL_HOST
want_gtk=yes
want_python=yes
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
case "$host" in
+*empeg* )
+ AC_DEFINE([EMPEG_HOST],[1],[define if host is an empeg car stereo])
+ # work around broken toolchain
+ AC_CHECK_LIB([gpg-error], [gpg_strerror])
+ want_server=no
+ AC_MSG_RESULT([empeg car stereo])
+ ;;
*linux* | *Linux* )
want_server=yes
*linux* | *Linux* )
want_server=yes
+ AC_MSG_RESULT([Linux])
;;
*-apple-darwin* )
want_server=no
COREAUDIO="-framework CoreAudio"
;;
*-apple-darwin* )
want_server=no
COREAUDIO="-framework CoreAudio"
+ AC_MSG_RESULT([Mac OS X])
;;
* )
want_server=no
;;
* )
want_server=no
+ AC_MSG_RESULT([unknown, winging it])
;;
esac
AC_SUBST([COREAUDIO])
;;
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])],
AC_ARG_WITH([server],
[AS_HELP_STRING([--without-server],
[do not build server])],
@@
-182,7
+193,7
@@
RJK_REQUIRE_PCRE_UTF8([-lpcre])
# Checks for header files.
RJK_FIND_GC_H
# Checks for header files.
RJK_FIND_GC_H
-AC_CHECK_HEADERS([inttypes.h CoreAudio/AudioHardware.h sys/soundcard.h alsa/asoundlib.h
linux/empeg.h
])
+AC_CHECK_HEADERS([inttypes.h CoreAudio/AudioHardware.h sys/soundcard.h alsa/asoundlib.h])
# We don't bother checking very standard stuff
# Compilation will fail if any of these headers are missing, so we
# check for them here and fail early.
# We don't bother checking very standard stuff
# Compilation will fail if any of these headers are missing, so we
# check for them here and fail early.