Commit 934964d9 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Set prefix/mandir to /usr/local on FreeBSD

parent 67f2e575
...@@ -12,6 +12,12 @@ if [ -f /usr/bin/clang -a "x${CC}" = "x" ] ; then ...@@ -12,6 +12,12 @@ if [ -f /usr/bin/clang -a "x${CC}" = "x" ] ; then
export CC export CC
fi fi
if [ "x`uname -o`" = "xFreeBSD" ] ; then
DST="--prefix=/usr/local --mandir=/usr/local/man"
else
DST="--prefix=/opt/varnish --mandir=/opt/varnish/man"
fi
rm -f configure rm -f configure
. ./autogen.sh 2>&1 | egrep -v "(subdir-objects|is in a subdirectory)" . ./autogen.sh 2>&1 | egrep -v "(subdir-objects|is in a subdirectory)"
...@@ -23,10 +29,9 @@ export CONFIG_SHELL=/bin/sh ...@@ -23,10 +29,9 @@ export CONFIG_SHELL=/bin/sh
# NB: FreeBSD's make on -current # NB: FreeBSD's make on -current
# env MAKE=gmake \ # env MAKE=gmake \
./configure \ ./configure \
$DST \
--enable-developer-warnings \ --enable-developer-warnings \
--enable-debugging-symbols \ --enable-debugging-symbols \
--enable-dependency-tracking \ --enable-dependency-tracking \
--enable-tests \ --enable-tests \
--prefix=/opt/varnish \
--mandir=/opt/varnish/man \
"$@" "$@"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment