AM_CONDITIONAL([OS_FREEBSD],[test "$os_freebsd" = "yes"])
# Custom check for libao
-PKG_CHECK_MODULES([libao], [ao >= 1.1.0], [HAVE_LIBAO=1], [HAVE_LIBAO=0])
-AM_CONDITIONAL([USE_LIBAO], [test "$HAVE_LIBAO" -eq 1])
+PKG_CHECK_MODULES([libao], [ao >= 1.1.0], [have_libao=1], [have_libao=0])
+AM_CONDITIONAL([HAVE_LIBAO], [test "$have_libao" -eq 1])
AM_CPPFLAGS = -I$(top_srcdir)/include
-if USE_LIBAO
+if HAVE_LIBAO
bin_PROGRAMS = shairplay
shairplay_SOURCES = shairplay.c
shairplay_LDADD = lib/libshairplay.la