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 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | # | 2 | # |
| 3 | # autogen.sh glue for CMU Cyrus IMAP | ||
| 4 | # $Id$ | 3 | # $Id$ |
| 5 | # | 4 | # |
| 6 | # Requires: automake, autoconf, dpkg-dev | 5 | # Requires: automake, autoconf, dpkg-dev |
| 7 | # set -e | 6 | # set -e |
| 8 | 7 | ||
| 9 | MAKE=$(which gnumake) | 8 | ./tools/setup |
| 10 | if test ! -x "$MAKE" ; then MAKE=$(which gmake) ; fi | ||
| 11 | if test ! -x "$MAKE" ; then MAKE=$(which make) ; fi | ||
| 12 | HAVE_GNU_MAKE=$($MAKE --version|grep -c "Free Software Foundation") | ||
| 13 | |||
| 14 | if test "$HAVE_GNU_MAKE" != "1"; then | ||
| 15 | echo Could not find GNU make on this system, can not proceed with build. | ||
| 16 | exit 1 | ||
| 17 | else | ||
| 18 | echo Found GNU Make at $MAKE ... good. | ||
| 19 | fi | ||
| 20 | |||
| 21 | # Refresh GNU autotools toolchain. | ||
| 22 | for i in config.guess config.sub missing install-sh mkinstalldirs depcomp; do | ||
| 23 | test -r /usr/share/automake/${i} && { | ||
| 24 | rm -f ${i} | ||
| 25 | } | ||
| 26 | done | ||
| 27 | |||
| 28 | tools/setup | ||
| 29 | 9 | ||
| 30 | # For the Debian build | 10 | # For the Debian build |
| 31 | test -d debian && { | 11 | 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 @@ | |||
| 1 | #! /bin/sh | 1 | #!/bin/sh |
| 2 | # | ||
| 3 | # autogen.sh glue from CMU Cyrus IMAP | ||
| 4 | # $Id$ | ||
| 5 | # | ||
| 6 | # Requires: automake, autoconf, dpkg-dev | ||
| 7 | # set -e | ||
| 8 | |||
| 9 | MAKE=$(which gnumake) | ||
| 10 | if test ! -x "$MAKE" ; then MAKE=$(which gmake) ; fi | ||
| 11 | if test ! -x "$MAKE" ; then MAKE=$(which make) ; fi | ||
| 12 | HAVE_GNU_MAKE=$($MAKE --version|grep -c "Free Software Foundation") | ||
| 13 | |||
| 14 | if test "$HAVE_GNU_MAKE" != "1"; then | ||
| 15 | echo Could not find GNU make on this system, can not proceed with build. | ||
| 16 | exit 1 | ||
| 17 | else | ||
| 18 | echo Found GNU Make at $MAKE ... good. | ||
| 19 | fi | ||
| 20 | |||
| 21 | # Refresh GNU autotools toolchain. | ||
| 22 | for i in config.guess config.sub missing install-sh mkinstalldirs ; do | ||
| 23 | test -r /usr/share/automake/${i} && { | ||
| 24 | rm -f ${i} | ||
| 25 | cp /usr/share/automake/${i} . | ||
| 26 | } | ||
| 27 | chmod 755 ${i} | ||
| 28 | done | ||
| 2 | 29 | ||
| 3 | aclocal -I lib | 30 | aclocal -I lib |
| 4 | autoconf | ||
| 5 | autoheader | 31 | autoheader |
| 6 | automake --add-missing --copy | 32 | automake --add-missing --copy |
| 33 | autoconf | ||
| 7 | 34 | ||
| 8 | if [ -f debian/rules ] ; then | 35 | if [ -f debian/rules ] ; then |
| 9 | chmod +x debian/rules | 36 | chmod +x debian/rules |
