1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
#!/bin/sh
MAKE=`which gnumake`
if test ! -x "$MAKE" ; then MAKE=`which gmake` ; fi
if test ! -x "$MAKE" ; then MAKE=`which make` ; fi
HAVE_GNU_MAKE=`$MAKE --version|grep -c "Free Software Foundation"`
if test "$HAVE_GNU_MAKE" != "1"; then
echo !!!! ERROR: You need GNU make to build from cvs!;
echo !!!! $MAKE is not GNU make;
exit 1;
fi
echo Found GNU Make at $MAKE ... good.
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
PKG_NAME="libpanelappletmm"
(test -f $srcdir/configure.in \
&& test -d $srcdir/libpanelapplet/src \
&& test -d $srcdir/libpanelapplet/libpanelappletmm) || {
echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
echo " top-level $PKG_NAME directory"
exit 1
}
echo "Adding libtools."
libtoolize --automake
echo "Building macros."
aclocal -I scripts $ACLOCAL_FLAGS
#echo "Building config header."
#autoheader
echo "Building makefiles."
automake --add-missing
echo "Building configure."
autoconf
rm -f config.cache
if test -z "$AUTOGEN_SUBDIR_MODE"; then
echo "Running configure."
./configure --enable-maintainer-mode "$@"
echo
echo 'run "make"'
echo
else
echo
echo 'run "./configure ; make"'
echo
fi
|