Blame autogen.sh

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