27 lines
593 B
Bash
Executable file
27 lines
593 B
Bash
Executable file
#!/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
|