libpsl/autogen.sh

33 lines
797 B
Bash
Raw Normal View History

2014-03-20 17:17:24 +01:00
# !/bin/sh -e
if test -z `which autoreconf`; then
2014-03-24 15:53:33 +01:00
echo "No 'autoreconf' found. You must install the autoconf package."
exit 1
fi
2014-04-02 11:23:38 +02:00
# create m4 before gtkdocize
mkdir m4 2>/dev/null
2014-04-02 10:27:13 +02:00
GTKDOCIZE=`which gtkdocize 2>/dev/null`
if test -z $GTKDOCIZE; then
echo "No gtk-doc support found. You can't build the docs."
echo "EXTRA_DIST =" >gtk-doc.make
echo "CLEANFILES =" >>gtk-doc.make
else
gtkdocize || exit $?
fi
2014-03-20 17:17:24 +01:00
autoreconf --install --force --symlink || exit $?
echo
echo "----------------------------------------------------------------"
echo "Initialized build system. For a common configuration please run:"
echo "----------------------------------------------------------------"
echo
2014-04-02 10:27:13 +02:00
if test -z $GTKDOCIZE; then
echo "./configure"
else
echo "./configure --enable-gtk-doc"
fi
2014-03-20 17:17:24 +01:00
echo