diff options
Diffstat (limited to 'autogen.sh')
| -rwxr-xr-x | autogen.sh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh new file mode 100755 index 0000000..9e90913 --- /dev/null +++ b/autogen.sh @@ -0,0 +1,28 @@ +#!/bin/sh + +# Script to generate all required files from a git checkout + +command -v libtool > /dev/null 2>&1 +if [ $? -ne 0 ]; then + echo "autogen.sh: error: could not find libtool. libtool is required to run autogen.sh." 1>&2 + exit 1 +fi + +command -v autoreconf > /dev/null 2>&1 + +if [ $? -ne 0 ]; then + echo "autogen.sh: error: could not find autoreconf. autoconf and automake are required to run autogen.sh." 1>&2 + exit 1 +fi + +mkdir -p ./config +if [ $? -ne 0 ]; then + echo "autogen.sh: error: could not create directory: ./config." 1>&2 + exit 1 +fi + +autoreconf --install --force --verbose -I config +if [ $? -ne 0 ]; then + echo "autogen.sh: error: autoreconf exited with status $?" 1>&2 + exit 1 +fi |
