[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: KDE CVS: build instructions
From:       Matthias Welwarsky <matze () stud ! fbi ! fh-darmstadt ! de>
Date:       2002-05-17 18:14:44
[Download RAW message or body]

[Attachment #2 (multipart/mixed)]


> MULTIPLE VERSIONS
> =================
>
> Installing multiple versions of autoconf/autoheader/automake is easy.
> For autoconf use:
> 	./configure --prefix /usr/local/autoconf-2.53
> 	make install
> 	ln -s /usr/local/autoconf-2.53/bin/autoconf /usr/bin/autoconf-2.53
> 	ln -s /usr/local/autoconf-2.53/bin/autoheader /usr/bin/autoheader-2.53
> 	ln -s /usr/local/autoconf-2.53/bin/autom4te /usr/bin/autom4te-2.53
>
> For automake use:
> 	./configure --prefix /usr/local/automake-1.5
> 	make install
> 	ln -s /usr/local/automake-1.5/bin/automake /usr/bin/automake-1.5
> 	ln -s /usr/local/automake-1.5/bin/aclocal /usr/bin/aclocal-1.5
>

With the attached patch to cvs.sh, automake-1.5/auto*-2.53 are found if 
they're somewhere in your path (not only in /usr/bin), very helpful if you 
need to install multiple versions and cannot create symlinks in /usr/bin.
It uses "type -p" to find the path, so if nobody considers this to be a 
problem I'd like to have this patch in Cvs.

regards,
	matze
 
["cvs.sh.patch" (text/x-diff)]

Index: cvs.sh
===================================================================
RCS file: /home/kde/kde-common/admin/cvs.sh,v
retrieving revision 1.22
diff -u -3 -p -r1.22 cvs.sh
--- cvs.sh	2002/05/16 22:05:29	1.22
+++ cvs.sh	2002/05/17 18:03:06
@@ -401,24 +401,31 @@ fi
 
 ### KEEP IN SYNC WITH "missing"!!
 ### Handle special autoconf cases first.
-if test -x /usr/bin/autoconf-2.53 ; then
-   AUTOCONF="/usr/bin/autoconf-2.53"
-elif test -x /usr/bin/autoconf-2.52 ; then
-   AUTOCONF="/usr/bin/autoconf-2.52"
-elif test -x /usr/bin/autoconf2.50 ; then
-   AUTOCONF="/usr/bin/autoconf2.50"
+autoconf_2_53=`type -p autoconf-2.53`
+autoconf_2_52=`type -p autoconf-2.52`
+autoconf_2_50=`type -p autoconf2.50`
+if test -x "$autoconf_2_53" ; then
+   AUTOCONF="$autoconf_2_53"
+elif test -x "$autoconf_2_52" ; then
+   AUTOCONF="$autoconf_2_52"
+elif test -x "$autoconf_2_50" ; then
+   AUTOCONF="$autoconf_2_50"
 else
    AUTOCONF="autoconf"
 fi
 export AUTOCONF
 
-if test -x /usr/bin/autoheader-2.53 ; then
-   AUTOHEADER="/usr/bin/autoheader-2.53"
-   AUTOM4TE="/usr/bin/autom4te-2.53"
-elif test -x /usr/bin/autoheader-2.52 ; then
-   AUTOHEADER="/usr/bin/autoheader-2.52"
-elif test -x /usr/bin/autoheader2.50 ; then
-   AUTOHEADER="/usr/bin/autoheader2.50"
+autoheader_2_53=`type -p autoheader-2.53`
+autom4te_2_53=`type -p autom4te-2.53`
+autoheader_2_52=`type -p autoheader-2.52`
+autoheader_2_50=`type -p autoheader2.50`
+if test -x "$autoheader_2_53" ; then
+   AUTOHEADER="$autoheader_2_53"
+   AUTOM4TE="$autom4te_2_53"
+elif test -x "$autoheader_2_52" ; then
+   AUTOHEADER="$autoheader_2_52"
+elif test -x "$autoheader_2_50" ; then
+   AUTOHEADER="$autoheader_2_50"
 else
    AUTOHEADER="autoheader"
    AUTOM4TE="autom4te"
@@ -426,10 +433,12 @@ fi
 export AUTOM4TE
 export AUTOHEADER
 
+automake_1_5=`type -p automake-1.5`
+aclocal_1_5=`type -p aclocal-1.5`
 if test -z "$UNSERMAKE"; then
-  if test -x /usr/bin/automake-1.5 ; then
-     AUTOMAKE="/usr/bin/automake-1.5"
-     ACLOCAL="/usr/bin/aclocal-1.5"
+  if test -x "$automake_1_5" ; then
+     AUTOMAKE="$automake_1_5"
+     ACLOCAL="$aclocal_1_5"
   else
      AUTOMAKE="automake"
      ACLOCAL="aclocal"

[Attachment #6 (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic