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

aclocal

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

autoheader
autoconf

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