add howl support

This commit is contained in:
Ron Pedde 2003-11-17 16:37:39 +00:00
parent 85c4cdc9fe
commit d93504dd5a
2 changed files with 24 additions and 11 deletions

View File

@ -12,6 +12,15 @@ AC_PROG_CC
AC_CANONICAL_HOST AC_CANONICAL_HOST
AC_ARG_ENABLE(debug,Enable debugging features,CPPFLAGS="$CPPFLAGS -DDEBUG -g") AC_ARG_ENABLE(debug,Enable debugging features,CPPFLAGS="$CPPFLAGS -DDEBUG -g")
AC_ARG_ENABLE(howl,[ --enable-howl Use the howl mDNS library],
[ case "${enableval}" in
yes) rend_howl=true; LDFLAGS="${LDFLAGS} -lrendezvous -lcorby -lsalt";;
no) rend_howl=false;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-howl);;
esac ],[rend_howl=false])
AM_CONDITIONAL(COND_REND_HOWL, test x$rend_howl = xtrue)
AM_CONDITIONAL(COND_REND_POSIX, test x$rend_howl = xfalse)
dnl Darwin's stupid cpp preprocessor.... dnl Darwin's stupid cpp preprocessor....
echo Host type is $host echo Host type is $host
@ -43,14 +52,14 @@ AC_ARG_WITH(id3tag,
fi fi
]) ])
AC_CHECK_HEADERS(zlib.h,LDFLAGS="${LDFLAGS} -lz",[ AC_CHECK_HEADERS(zlib.h,LDFLAGS="${LDFLAGS} -lz",[
AC_MSG_ERROR([zlib.h not found... try --with-zlib=dir])]) AC_MSG_ERROR([zlib.h not found... try --with-zlib=dir])])
AC_CHECK_HEADERS(id3tag.h,LDFLAGS="${LDFLAGS} -lid3tag",[ AC_CHECK_HEADERS(id3tag.h,LDFLAGS="${LDFLAGS} -lid3tag",[
AC_MSG_ERROR([id3tag.h not found... try --with-id3tag=dir])]) AC_MSG_ERROR([id3tag.h not found... try --with-id3tag=dir])])
dnl AC_CHECK_LIB(id3tag,id3_file_open,LDFLAGS="$LDFLAGS -lid3tag",echo "Must have libid3tag";exit) dnl AC_CHECK_LIB(id3tag,id3_file_open,LDFLAGS="$LDFLAGS -lid3tag",echo "Must have libid3tag";exit)
dnl AC_CHECK_LIB(z,compress,LDFLAGS="$LDFLAGS -lz",echo "Must have zlib";exit) dnl AC_CHECK_LIB(z,compress,LDFLAGS="$LDFLAGS -lz",echo "Must have zlib";exit)

View File

@ -2,16 +2,20 @@
# #
sbin_PROGRAMS = mt-daapd sbin_PROGRAMS = mt-daapd
mt_daapd_SOURCES = main.c daapd.h rend.c rend.h uici.c uici.h webserver.c \ if COND_REND_POSIX
RENDSRC=mdns/mDNS.c mdns/mDNSClientAPI.h mdns/mDNSDebug.h mdns/mDNSPosix.c mdns/mDNSUNP.c rend-posix.c
endif
if COND_REND_HOWL
RENDSRC=rend-howl.c
endif
mt_daapd_SOURCES = main.c daapd.h rend.h uici.c uici.h webserver.c \
webserver.h configfile.c configfile.h err.c err.h restart.c restart.h \ webserver.h configfile.c configfile.h err.c err.h restart.c restart.h \
daap-proto.c daap-proto.h daap.c daap.h db-memory.c db-memory.h \ daap-proto.c daap-proto.h daap.c daap.h db-memory.c db-memory.h \
mp3-scanner.h mp3-scanner.c \ mp3-scanner.h mp3-scanner.c $(RENDSRC)
mdns/mDNS.c mdns/mDNSClientAPI.h mdns/mDNSDebug.h mdns/mDNSPosix.c \
mdns/mDNSUNP.c EXTRA_DIST = mdns/mDNS.c mdns/mDNSClientAPI.h mdns/mDNSDebug.h mdns/mDNSPosix.c \
mdns/mDNSUNP.c rend-howl.c rend-posix.c