Skip to content

Commit 1a4fb4e

Browse files
committed
Check return value of autoreconf. Thanks to Lauri Nurmi.
1 parent 558538a commit 1a4fb4e

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

autogen.sh

+13-8
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
#! /bin/sh
2-
autoreconf --install --symlink --force
3-
4-
5-
echo
6-
echo "------------------------------------------------------"
7-
echo "Initialized build system. You can now run ./configure "
8-
echo "------------------------------------------------------"
9-
echo
2+
if autoreconf --install --symlink --force; then
3+
echo
4+
echo "------------------------------------------------------"
5+
echo "Initialized build system. You can now run ./configure "
6+
echo "------------------------------------------------------"
7+
echo
8+
else
9+
echo
10+
echo "--------------------------"
11+
echo "Running autoreconf failed."
12+
echo "--------------------------"
13+
echo
14+
fi

0 commit comments

Comments
 (0)