diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-07-03 03:23:14 +0000 |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-07-03 03:23:14 +0000 |
commit | c767ee06459b3bce99c1c6f011c3cd1d547e9eeb (patch) | |
tree | 54c2189d8274f4ee762fa7ff4fb9760c68b3471c | |
parent | 725cbf9a632c4552cc25543292cd1d2406e5b8b5 (diff) | |
download | monitoring-plugins-c767ee06459b3bce99c1c6f011c3cd1d547e9eeb.tar.gz |
mv GNU toolchain check into tools/setup
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@583 f882894a-f735-0410-b71e-b25c423dba1c
-rwxr-xr-x | autogen.sh | 22 | ||||
-rwxr-xr-x | tools/setup | 31 |
2 files changed, 30 insertions, 23 deletions
@@ -1,31 +1,11 @@ #!/bin/sh # -# autogen.sh glue for CMU Cyrus IMAP # $Id$ # # Requires: automake, autoconf, dpkg-dev # set -e -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 Could not find GNU make on this system, can not proceed with build. - exit 1 -else - echo Found GNU Make at $MAKE ... good. -fi - -# Refresh GNU autotools toolchain. -for i in config.guess config.sub missing install-sh mkinstalldirs depcomp; do - test -r /usr/share/automake/${i} && { - rm -f ${i} - } -done - -tools/setup +./tools/setup # For the Debian build test -d debian && { diff --git a/tools/setup b/tools/setup index af5d1aac..904120f0 100755 --- a/tools/setup +++ b/tools/setup @@ -1,9 +1,36 @@ -#! /bin/sh +#!/bin/sh +# +# autogen.sh glue from CMU Cyrus IMAP +# $Id$ +# +# Requires: automake, autoconf, dpkg-dev +# set -e + +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 Could not find GNU make on this system, can not proceed with build. + exit 1 +else + echo Found GNU Make at $MAKE ... good. +fi + +# Refresh GNU autotools toolchain. +for i in config.guess config.sub missing install-sh mkinstalldirs ; do + test -r /usr/share/automake/${i} && { + rm -f ${i} + cp /usr/share/automake/${i} . + } + chmod 755 ${i} +done aclocal -I lib -autoconf autoheader automake --add-missing --copy +autoconf if [ -f debian/rules ] ; then chmod +x debian/rules |