autogen.sh 549 Bytes
Newer Older
Jack Moffitt's avatar
Jack Moffitt committed
1
#!/bin/sh
2
# Run this to generate the configure script
3
set -e
Jack Moffitt's avatar
Jack Moffitt committed
4

5
srcdir=$(dirname "$0")
6
test -n "$srcdir" && cd "$srcdir"
7

8 9 10 11 12 13 14 15 16 17 18
if ! {
# Test for any file in the m4 submodule
  test -e "$srcdir/m4/ax_check_compile_flag.m4" &&
# Test for any file in the common submodule
  test -e "$srcdir/src/common/log/log.c"; };
then
    echo "ERROR: Submodules missing! Ensure you git cloned with '--recursive' or run:"
    echo "         git submodule update --init"
    exit 1
fi

19
echo "Updating build configuration files for Icecast, please wait..."
Jack Moffitt's avatar
Jack Moffitt committed
20

21
autoreconf -isf