diff options
-rwxr-xr-x | autogen.sh | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -2,6 +2,8 @@ set -e +opt="$1" + if [ -f .git/hooks/pre-commit.sample ] && [ ! -f .git/hooks/pre-commit ]; then # This part is allowed to fail cp -p .git/hooks/pre-commit.sample .git/hooks/pre-commit && \ @@ -16,3 +18,25 @@ fi touch README INSTALL autoreconf --force --install --verbose || exit $? + +if [ "x$opt" = "xc" ]; then + set -x + ./configure $args + make clean > /dev/null +elif [ "x$opt" = "xd" ]; then + set -x + ./configure CFLAGS='-g -O0 -ftrapv' $args + make clean > /dev/null +elif [ "x$opt" = "xg" ]; then + set -x + ./configure CFLAGS='-g -Og -ftrapv' $args + make clean > /dev/null +elif [ "x$opt" = "xl" ]; then + set -x + ./configure CC=clang CFLAGS='-g -O0 -ftrapv' $args + make clean > /dev/null +elif [ "x$opt" = "xs" ]; then + set -x + scan-build ./configure CFLAGS='-std=gnu99 -g -O0 -ftrapv' $args + scan-build make +fi |