workaround for sh and bsd make, fixing ticket #65

This commit is contained in:
Ron Pedde 2006-04-15 05:31:53 +00:00
parent 5a73c4d8c6
commit 8afa55222b
2 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,7 @@ AC_FUNC_SETPGRP
if test "x$prefix" != xNONE -a "x$prefix" != "x/usr"; then
CONFFILE="$prefix/etc/mt-daapd.conf"
else
if test "x$prefix" == "xNONE"; then
if test "x$prefix" = "xNONE"; then
CONFFILE="/usr/local/etc/mt-daapd.conf"
else
CONFFILE="/etc/mt-daapd.conf"

View File

@ -10,9 +10,9 @@ dbdir="/var/cache/mt-daapd"
mt-daapd.conf: mt-daapd.conf.templ ../config.h
if [ "$(prefix)" = "/usr" ]; then \
sed -e s,[@]prefix[@],$(prefix),g -e s,[@]dbdir[@],/var/cache/mt-daapd,g $< >$@; \
sed -e s,[@]prefix[@],$(prefix),g -e s,[@]dbdir[@],/var/cache/mt-daapd,g mt-daapd.conf.templ >$@; \
else \
sed -e s,[@]prefix[@],$(prefix),g -e s,[@]dbdir[@],$(prefix)/var/cache/mt-daapd,g $< >$@; \
sed -e s,[@]prefix[@],$(prefix),g -e s,[@]dbdir[@],$(prefix)/var/cache/mt-daapd,g mt-daapd.conf.templ >$@; \
fi