Blame autogen.sh

rpm-build 0fba15
#!/bin/sh
rpm-build 0fba15
rpm-build 0fba15
test -n "$srcdir" || srcdir=`dirname "$0"`
rpm-build 0fba15
test -n "$srcdir" || srcdir=.
rpm-build 0fba15
rpm-build 0fba15
olddir=`pwd`
rpm-build 0fba15
cd $srcdir
rpm-build 0fba15
rpm-build 0fba15
AUTORECONF=`which autoreconf`
rpm-build 0fba15
if test -z $AUTORECONF; then
rpm-build 0fba15
        echo "*** No autoreconf found, please install it ***"
rpm-build 0fba15
        exit 1
rpm-build 0fba15
fi
rpm-build 0fba15
rpm-build 0fba15
set -e
rpm-build 0fba15
rpm-build 0fba15
mkdir -p m4
rpm-build 0fba15
rpm-build 0fba15
GTKDOCIZE=$(which gtkdocize 2>/dev/null || true)
rpm-build 0fba15
if test -z "$GTKDOCIZE"; then
rpm-build 0fba15
        echo "You don't have gtk-doc installed, and thus won't be able to generate the documentation."
rpm-build 0fba15
        rm -f gtk-doc.make
rpm-build 0fba15
        cat > gtk-doc.make <
rpm-build 0fba15
EXTRA_DIST =
rpm-build 0fba15
CLEANFILES =
rpm-build 0fba15
EOF
rpm-build 0fba15
else
rpm-build 0fba15
        gtkdocize
rpm-build 0fba15
fi
rpm-build 0fba15
rpm-build 0fba15
if ! test -f libglnx/README.md || ! test -f bsdiff/README.md; then
rpm-build 0fba15
    git submodule update --init
rpm-build 0fba15
fi
rpm-build 0fba15
# Workaround automake bug with subdir-objects and computed paths; if
rpm-build 0fba15
# changing this, please also change Makefile.am.
rpm-build 0fba15
sed -e 's,$(libglnx_srcpath),libglnx,g' < libglnx/Makefile-libglnx.am >libglnx/Makefile-libglnx.am.inc
rpm-build 0fba15
sed -e 's,$(libbsdiff_srcpath),bsdiff,g' < bsdiff/Makefile-bsdiff.am >bsdiff/Makefile-bsdiff.am.inc
rpm-build 0fba15
rpm-build 0fba15
# FIXME - figure out how to get aclocal to find this by default
rpm-build 0fba15
ln -sf ../libglnx/libglnx.m4 buildutil/libglnx.m4
rpm-build 0fba15
rpm-build 0fba15
autoreconf --force --install --verbose
rpm-build 0fba15
rpm-build 0fba15
cd $olddir
rpm-build 0fba15
test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"