1#!/bin/sh 2 3 4MAKE=`which gnumake 2>/dev/null` 5if test ! -x "$MAKE" ; then MAKE=`which gmake` ; fi 6if test ! -x "$MAKE" ; then MAKE=`which make` ; fi 7HAVE_GNU_MAKE=`$MAKE --version|grep -c "Free Software Foundation"` 8 9if test "$HAVE_GNU_MAKE" != "1"; then 10 echo Could not find GNU make on this system, can not proceed with build. 11 exit 1 12else 13 echo Found GNU Make at $MAKE ... good. 14fi 15 16if test ! -x "`which aclocal`" 17then 18 echo "You need aclocal and autoconf to generate configure and Makefile." 19 echo "Please install autoconf package." 20 exit 1 21fi 22 23if test -x "`which libtoolize`" 24then 25 LIBTOOLIZE="libtoolize" 26else 27 if test -x "`which glibtoolize`" 28 then 29 LIBTOOLIZE="glibtoolize" 30 else 31 echo "You need libtoolize to generate autoconf and libtool scripts." 32 echo "Please install libtool package." 33 exit 1 34 fi 35fi 36 37$LIBTOOLIZE --dry-run --install > /dev/null 2>&1 && { 38 LIBTOOLIZE_ARGS="--force --copy --install" 39} || { 40 LIBTOOLIZE_ARGS="--force --copy" 41} 42 43echo This script runs configure ... 44 45$LIBTOOLIZE $LIBTOOLIZE_ARGS 46 47which acinclude >/dev/null 2>&1 && acinclude 48which aclocal >/dev/null 2>&1 && aclocal 49autoconf 50 51