X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=tools%2Fsetup;h=6da3f674837f6b7fd787a09560e64a4b725d5845;hb=5ebe25fc24d33cf2d7b46fce9e746a58e0115010;hp=eb07b7197c0081cc33f2a34d32d21c31ef067bb6;hpb=33a6787f51503d1b24f42e57cf365a48378dd56e;p=nagiosplug.git diff --git a/tools/setup b/tools/setup index eb07b71..6da3f67 100755 --- a/tools/setup +++ b/tools/setup @@ -1,7 +1,6 @@ #!/bin/sh # # autogen.sh glue from CMU Cyrus IMAP -# $Id$ # # Requires: automake, autoconf, dpkg-dev # set -e @@ -18,20 +17,21 @@ 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 +# This bit is to fix SF's compile server as libtool not installed by default +extra="" +if test -d $HOME/share/aclocal ; then + extra="-I $HOME/share/aclocal" +fi + +# This file will be automagically re-generated of present - still looks +# better than having a versioned file change based on automake version +touch build-aux/mkinstalldirs -aclocal -I lib +aclocal -I gl/m4 -I m4 $extra +#libtoolize --force --copy autoheader -automake --add-missing --copy +automake --add-missing --force-missing --copy autoconf -autopoint if [ -f debian/rules ] ; then chmod +x debian/rules @@ -44,11 +44,11 @@ if [ `uname -s` = "SunOS" ] ; then docbook=1 fi else - if which docbook2html ; then + if which docbook2html >/dev/null 2>&1; then docbook=1 fi fi if [ $docbook = 1 ] ; then - cd doc && make + ( cd doc && make ) fi