adjust config file paths for prefix

This commit is contained in:
Ron Pedde 2006-03-25 23:19:21 +00:00
parent 2dcb98d6e3
commit 149bb6a0a6
2 changed files with 20 additions and 2 deletions

View File

@ -103,7 +103,7 @@ fi
dnl Darwin's stupid cpp preprocessor....
echo Host type is $host
CPPFLAGS="$CPPFLAGS -DHOST='\"$host\"'"
CPPFLAGS="$CPPFLAGS -DHOST='\"$host\"' -DPREFIX=$prefix"
dnl
dnl The apple mDNS stuff wants these compile flags.
@ -130,6 +130,7 @@ case $host in
AM_CONDITIONAL(COND_REND_POSIX,false);;
esac
dnl Checks for libraries.
AC_ARG_WITH(static-libs,
[--with-static-libs[[=DIR]] use static libs in DIR],[

View File

@ -1,6 +1,23 @@
# $Id$
#
EXTRA_DIST = README mt-daapd.spec mt-daapd.conf mt-daapd.playlist mt-daapd mt-daapd-gentoo mt-daapd-ssc.sh mt-daapd-ssc.pl
EXTRA_DIST = README mt-daapd.spec mt-daapd.conf.templ mt-daapd.playlist mt-daapd mt-daapd-gentoo mt-daapd-ssc.sh mt-daapd-ssc.pl mt-daapd-ssc.pl mt-daapd-ssc.sh
BUILT_SOURCES = mt-daapd.conf
sysconf_DATA = mt-daapd.conf
bin_SCRIPTS=mt-daapd-ssc.sh
dbdir="/var/cache/mt-daapd"
mt-daapd.conf: mt-daapd.conf.templ
if [ "$(prefix)" == "/usr" ]; then \
sed -e s,[@]prefix[@],$(prefix),g -e s,[@]dbdir[@],/var/cache/mt-daapd,g $< >$@; \
else \
sed -e s,[@]prefix[@],$(prefix),g -e s,[@]dbdir[@],$(prefix)/var/cache/mt-daapd,g $< >$@; \
fi