Files
isoqlog/root/autogen.sh

116 lines
3.4 KiB
Bash
Raw Normal View History

* Mon Sep 15 2008 Johannes Weberhofer <linux@weberhofer.at> 2.2.1 - Fixed attributes - Cleaned spec - Updated to latest version * Sat Apr 14 2007 Nick Hemmesch <nick@ndhsoft.com> 2.1-1.3.4 - Added CentOS 5 i386 support - Added CentOS 5 x86_64 support * Fri Feb 23 2007 Nick Hemmesch <nick@ndhsoft.com> 2.1-1.3.3 - Fix ownership of cron.sh to root:root * Wed Nov 01 2006 Erik A. Espinoza <espinoza@forcenetworks.com> 2.1-1.3.2 - Added Fedora Core 6 support * Mon Jun 05 2006 Nick Hemmesch <nick@ndhsoft.com> 2.1-1.3.1 - Add SuSE 10.1 support - Set apacheuser and apachegroup correctly in cron.sh * Sat May 13 2006 Nick Hemmesch <nick@ndhsoft.com> 2.1-1.2.10 - Add Fedora Core 5 support * Sun Nov 20 2005 Nick Hemmesch <nick@ndhsoft.com> 2.1-1.2.9 - Add SuSE 10.0 and Mandriva 2006.0 support * Sat Oct 15 2005 Nick Hemmesch <nick@ndhsoft.com> 2.1-1.2.8 - Add Fedora Core 4 x86_64 support * Sat Oct 01 2005 Nick Hemmesch <nick@ndhsoft.com> 2.1-1.2.7 - Add CentOS 4 x86_64 support * Fri Sep 22 2005 Nick Hemmesch <nick@ndhsoft.com> 2.1-1.2.6 - Remove automake config for Mandrake acct build failures * Fri Jul 01 2005 Nick Hemmesch <nick@ndhsoft.com> 2.1-1.2.5 - Add Fedora Core 4 support * Fri Jun 03 2005 Torbjorn Turpeinen <tobbe@nyvalls.se> 2.1-1.2.4 - Gnu/Linux Mandrake 10.0,10.1,10.2 support * Fri May 27 2005 Nick Hemmesch <nick@ndhsoft.com> 2.1-1.2.3 - Remove doc rpm * Sun Feb 27 2005 Nick Hemmesch <nick@ndhsoft.com> 2.1-1.2.2 - Add Fedora Core 3 support - Add CentOS 4 support * Thu Jun 03 2004 Nick Hemmesch <nick@ndhsoft.com> 2.1-1.2.1 - Add Fedora Core 2 support * Wed Feb 11 2004 Nick Hemmesch <nick@ndhsoft.com> 2.1-1.1.5 - Fix Trustix 2.0 crontab call to fcrontab - Define crontab - Define appacheuser and apachegroup * Mon Dec 29 2003 Nick Hemmesch <nick@ndhsoft.com> 2.1-1.1.4 - Add Fedora Core 1 support * Tue Nov 25 2003 Nick Hemmesch <nick@ndhsoft.com> 2.1-1.1.3 - Add Red Hat 9 support - Add Trustix 2.0 support - Add Mandrake 9.2 support - Fix images to images-toaster * Sun Mar 30 2003 Miguel Beccari <miguel.beccari@clikka.com> 2.1-1.1.2 - Toaster HTML templates (alpha status) * Sat Mar 29 2003 Miguel Beccari <miguel.beccari@clikka.com> 2.1-1.1.1 - First rpm: everything is OK. Templates are NOT ok.
2025-09-24 17:01:16 -04:00
#! /bin/sh
#Taken from KDE project with conformance to FreeBSD binary layout!
# Global variables...
echo "***********************************************************"
echo "Make SURE you have installed automake and autoconf packages"
echo "***********************************************************"
sleep 1;
AUTOCONF="autoconf"
AUTOHEADER="autoheader"
AUTOM4TE="autom4te"
AUTOMAKE="automake"
ACLOCAL="aclocal"
# We don't use variable here for remembering the type ... strings.
# local variables are not that portable, but we fear namespace issues with
# our includer. The repeated type calls are not that expensive.
checkAutoconf()
{
if test -x "`$WHICH autoconf253`";then
AUTOCONF="`$WHICH autoconf253`"
elif test -x "`$WHICH autoconf257`" ; then
AUTOCONF="`$WHICH autoconf257`"
elif test -x "`$WHICH autoconf258`" ; then
AUTOCONF="`$WHICH autoconf258`"
elif test -x "`$WHICH autoconf259`" ; then
AUTOCONF="`$WHICH autoconf259`"
elif test -x "`$WHICH autoconf-2.5x`" ; then
AUTOCONF="`$WHICH autoconf-2.5x`"
elif test -x "`$WHICH autoconf-2.53`" ; then
AUTOCONF="`$WHICH autoconf-2.53`"
elif test -x "`$WHICH autoconf-2.52`" ; then
AUTOCONF="`$WHICH autoconf-2.52`"
elif test -x "`$WHICH autoconf2.50`" ; then
AUTOCONF="`$WHICH autoconf2.50`"
elif test -x "`$WHICH autoconf`" ; then
AUTOCONF="`$WHICH autoconf`"
fi
}
checkAutoheader()
{
if test -x "`$WHICH autoheader253`";then
AUTOHEADER="`$WHICH autoheader253`"
elif test -x "`$WHICH autoheader258`" ; then
AUTOHEADER="`$WHICH autoheader258`"
elif test -x "`$WHICH autoheader259`" ; then
AUTOHEADER="`$WHICH autoheader259`"
elif test -x "`$WHICH autoheader-2.5x`" ; then
AUTOHEADER="`$WHICH autoheader-2.5x`"
AUTOM4TE="`$WHICH autom4te-2.5x`"
elif test -x "`$WHICH autoheader-2.53`" ; then
AUTOHEADER="`$WHICH autoheader-2.53`"
AUTOM4TE="`$WHICH autom4te-2.53`"
elif test -x "`$WHICH autoheader-2.52`" ; then
AUTOHEADER="`$WHICH autoheader-2.52`"
elif test -x "`$WHICH autoheader2.50`" ; then
AUTOHEADER="`$WHICH autoheader2.50`"
elif test -x "`$WHICH autoheader`" ; then
AUTOHEADER="`$WHICH autoheader`"
fi
}
checkAutomakeAclocal ()
{
if test -z "$UNSERMAKE"; then
if test -x "`$WHICH automake18`" ; then
AUTOMAKE="`$WHICH automake18`"
ACLOCAL="`$WHICH aclocal18`"
elif test -x "`$WHICH automake-1.5`" ; then
AUTOMAKE="`$WHICH automake-1.5`"
ACLOCAL="`$WHICH aclocal-1.5`"
elif test -x "`$WHICH automake-1.6`" ; then
AUTOMAKE="`$WHICH automake-1.6`"
ACLOCAL="`$WHICH aclocal-1.6`"
elif test -x "`$WHICH automake`" ; then
AUTOMAKE="`$WHICH automake`"
ACLOCAL="`$WHICH aclocal`"
fi
else
AUTOMAKE="$UNSERMAKE"
fi
}
checkWhich ()
{
WHICH=""
for i in "type -p" "which" "type" ; do
T=`$i sh`
test -x "$T" && WHICH="$i" && break
done
}
checkWhich
checkAutoconf
checkAutoheader
checkAutomakeAclocal
export WHICH AUTOHEADER AUTOCONF AUTOM4TE AUTOMAKE ACLOCAL
echo "Execing $ACLOCAL"
$ACLOCAL || echo "Can not find aclocal on your system. Install it"
# >/dev/null 2>/dev/null
echo "...Done"
echo "Execing $AUTOMAKE"
$AUTOMAKE -ac || echo "Can not find automake on your system. Install it"
# >/dev/null 2>/dev/null
echo "...Done"
echo "Execing $AUTOCONF"
echo $AUTOCONF
$AUTOCONF || echo "Can not find autoconf on your system. Install it"
#>/dev/null 2>/dev/null
echo "...Done"