summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2010-07-29 16:36:20 +0200
committerRyan Lortie <desrt@desrt.ca>2010-07-29 16:36:20 +0200
commitec67cdcfbd0aa2a4eb13bd65f2a258b3c2fb8579 (patch)
treec2e20dd59333a686a7b4983821574b467968eed8 /autogen.sh
parent66b80a34b4cf0a8801e44ffdac173bbe11bbf1b1 (diff)
downloaddconf-ec67cdcfbd0aa2a4eb13bd65f2a258b3c2fb8579.tar.gz
fix autogen.sh
If automake-1.11 existed, we would run that but not also aclocal-1.11. Ensure that we always run matching aclocal and automake. Also some small fixups: - use #!/bin/sh, not bash - silence the error in case we can't find 'automake-1.11'.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/autogen.sh b/autogen.sh
index c0f3bc8..e9eb405 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
set -e
@@ -8,16 +8,16 @@ if [ "$1" = "clean" ]; then
exit
fi
-if automake-1.11 --version > /dev/null; then
- automake=automake-1.11
+if automake-1.11 --version &> /dev/null; then
+ automake_suffix='-1.11'
else
- automake=automake
+ automake_suffix=''
fi
mkdir -p m4 aux
gtkdocize --docdir docs --flavour no-tmpl
-aclocal ${ACLOCAL_FLAGS}
-${automake} --add-missing --foreign
+aclocal${automake_suffix} ${ACLOCAL_FLAGS}
+automake${automake_suffix} --add-missing --foreign
autoconf
CFLAGS=${CFLAGS=-ggdb -Werror}