Updated the README file with some contributor tips.
[basket4.git] / admin / detect-autoconf.sh
blobe880274783be4c19016f6f45eda634fd826b81aa
1 #! /bin/sh
3 # Global variables...
4 AUTOCONF="autoconf"
5 AUTOHEADER="autoheader"
6 AUTOM4TE="autom4te"
7 AUTOMAKE="automake"
8 ACLOCAL="aclocal"
10 # Please add higher versions first. The last version number is the minimum
11 # needed to compile KDE. Do not forget to include the name/version #
12 # separator if one is present, e.g. -1.2 where - is the separator.
13 KDE_AUTOCONF_VERS="-2.58 -2.57 257 -2.54 -2.53a -2.53 -2.52 -2.5x"
14 KDE_AUTOMAKE_VERS="-1.7 17 -1.6"
16 # We don't use variable here for remembering the type ... strings. Local
17 # variables are not that portable, but we fear namespace issues with our
18 # includer.
19 checkAutoconf()
21 for kde_autoconf_version in $KDE_AUTOCONF_VERS; do
22 if test -x "`$WHICH $AUTOCONF$kde_autoconf_version 2>/dev/null`"; then
23 AUTOCONF="`$WHICH $AUTOCONF$kde_autoconf_version`"
24 AUTOHEADER="`$WHICH $AUTOHEADER$kde_autoconf_version`"
25 AUTOM4TE="`$WHICH $AUTOM4TE$kde_autoconf_version`"
26 break
28 done
31 checkAutomake ()
33 for kde_automake_version in $KDE_AUTOMAKE_VERS; do
34 if test -x "`$WHICH $AUTOMAKE$kde_automake_version 2>/dev/null`"; then
35 AUTOMAKE="`$WHICH $AUTOMAKE$kde_automake_version`"
36 ACLOCAL="`$WHICH $ACLOCAL$kde_automake_version`"
37 break
39 done
41 if test "$UNSERMAKE" = yes && test -x "`$WHICH unsermake 2>/dev/null`"; then
42 AUTOMAKE="`$WHICH unsermake` -c"
46 checkWhich ()
48 WHICH=""
49 for i in "type -p" "which" "type" ; do
50 T=`$i sh 2> /dev/null`
51 test -x "$T" && WHICH="$i" && break
52 done
55 checkWhich
56 checkAutoconf
57 checkAutomake
59 export WHICH AUTOHEADER AUTOCONF AUTOM4TE AUTOMAKE ACLOCAL