From c2bf34cbe1792f8a302b5d2f052dd9515a6c3089 Mon Sep 17 00:00:00 2001 From: des Date: Tue, 24 Jul 2007 16:20:04 +0000 Subject: [PATCH] Re-add as files git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1757 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-tools/nagios/autogen.des | 20 ++++++++++++++ varnish-tools/nagios/autogen.sh | 46 ++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100755 varnish-tools/nagios/autogen.des create mode 100755 varnish-tools/nagios/autogen.sh diff --git a/varnish-tools/nagios/autogen.des b/varnish-tools/nagios/autogen.des new file mode 100755 index 00000000..c2cceff6 --- /dev/null +++ b/varnish-tools/nagios/autogen.des @@ -0,0 +1,20 @@ +#!/bin/sh +# +# $Id$ +# + +set -ex + +. ./autogen.sh + +# autoconf prior to 2.62 has issues with zsh 4.2 and newer +export CONFIG_SHELL=/bin/sh + +./configure \ + --enable-developer-warnings \ + --enable-debugging-symbols \ + --enable-dependency-tracking \ + --enable-extra-developer-warnings \ + --enable-stack-protector \ + --enable-werror \ + --prefix=/opt/varnish diff --git a/varnish-tools/nagios/autogen.sh b/varnish-tools/nagios/autogen.sh new file mode 100755 index 00000000..457a7d00 --- /dev/null +++ b/varnish-tools/nagios/autogen.sh @@ -0,0 +1,46 @@ +#!/bin/sh +# +# $Id$ +# + +warn() { + echo "WARNING: $@" 1>&2 +} + +case `uname -s` in +Darwin) + LIBTOOLIZE=glibtoolize + ;; +FreeBSD) + LIBTOOLIZE=libtoolize + if [ -d /usr/local/gnu-autotools/bin ] ; then + PATH=/usr/local/gnu-autotools/bin:${PATH} + export PATH + FIX_BROKEN_FREEBSD_PORTS="-I /usr/local/share/aclocal" + fi + ;; +Linux) + LIBTOOLIZE=libtoolize + ;; +esac + +automake_version=$(automake --version | tr ' ' '\n' | egrep '^[0-9]\.[0-9a-z.-]+') +if [ -z "$automake_version" ] ; then + warn "unable to determine automake version" +else + case $automake_version in + 0.*|1.[0-8]|1.[0-8][.-]*) + warn "automake ($automake_version) detected; 1.9 or newer recommended" + ;; + *) + ;; + esac +fi + +set -ex + +aclocal ${FIX_BROKEN_FREEBSD_PORTS} +$LIBTOOLIZE --copy --force +autoheader +automake --add-missing --copy --foreign +autoconf -- 2.39.5