summaryrefslogtreecommitdiff
path: root/acprep
blob: e5520514126a80d7569e55085271167c15656db7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh

aclocal
autoheader
touch AUTHORS ChangeLog

if [ "$1" = "--dist" ]; then
    automake -acfi
else
    automake -acf
fi

autoconf

INCDIRS="-I/sw/include -I/usr/include/httpd/xml"
if [ "$1" = "--debug" ]; then
    ./configure CPPFLAGS="$INCDIRS" LDFLAGS=-L/sw/lib \
	CXXFLAGS="-g" --enable-debug
elif [ "$1" = "--opt" ]; then
    ./configure CPPFLAGS="$INCDIRS" LDFLAGS=-L/sw/lib \
	CXXFLAGS="-fomit-frame-pointer -fastf -mcpu=7450" --enable-standalone
elif [ "$1" = "--perf" ]; then
    ./configure CPPFLAGS="$INCDIRS" LDFLAGS=-L/sw/lib \
	CXXFLAGS="-g -pg"
fi

rm AUTHORS ChangeLog