configure.ac: add HAVE_COREAUDIO to automake and code.
authorMihai Moldovan <ionic@ionic.de>
Tue, 21 Apr 2015 06:01:05 +0000 (08:01 +0200)
committerArun Raghavan <git@arunraghavan.net>
Mon, 4 Jan 2016 07:09:20 +0000 (12:39 +0530)
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
Signed-off-by: Mihai Moldovan <ionic@ionic.de>
configure.ac

index 2dbf7f2..ee1b437 100644 (file)
@@ -781,8 +781,11 @@ AS_IF([test "x$enable_coreaudio_output" != "xno"],
 AS_IF([test "x$enable_coreaudio_output" = "xyes" && test "x$HAVE_COREAUDIO" = "x0"],
     [AC_MSG_ERROR([*** CoreAudio output support not found])])
 
+AC_SUBST(HAVE_COREAUDIO)
 AM_CONDITIONAL([HAVE_COREAUDIO], [test "x$HAVE_COREAUDIO" = "x1" && test "x$enable_coreaudio_output" != "xno"])
 
+AS_IF([test "x$HAVE_COREAUDIO" = "x1"], AC_DEFINE([HAVE_COREAUDIO], 1, [Have CoreAudio?]))
+
 #### ALSA support (optional) ####
 
 AC_ARG_ENABLE([alsa],