autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: include bindir in AUTOM4TE default


From: Akim Demaille
Subject: Re: include bindir in AUTOM4TE default
Date: Wed, 13 Feb 2002 19:54:15 +0100
User-agent: Gnus/5.090006 (Oort Gnus v0.06) XEmacs/21.4 (Common Lisp, i386-debian-linux)

| >>> "Ralf" == Ralf Corsepius <address@hidden> writes:
|  Ralf> Am Mit, 2001-12-05 um 12.20 schrieb Jens Petersen:
|  >> Ralf Corsepius <address@hidden> writes:
|  >> 
|  >> > Am Mit, 2001-12-05 um 10.53 schrieb Akim Demaille:
|  >> > > >>>>> "juhp" == Jens Petersen <address@hidden> writes:
|  >> > > 
|  >> > > >> * bin/autoconf.in (AUTOM4TE): Prefix with bindir, so that autoconf
|  >> > > >> runs even when it is installed outside the current PATH.
| 
| [...]
| 
|  >> > > I'm not in favor of it.  I believe that the principle of least
|  >> > > surprise means obeying to the PATH.  In the past, autoconf has had
|  >> > > problems because of hard coded paths.
|  >> 
|  >> Ok, but isn't there also the risk of getting a different
|  >> version of autom4te ahead in the path relative to the
|  >> desired version?
|  Ralf> Yes, this risk is present and actually is very easy to run into if
|  Ralf> having different versions of autoconf installed to different PREFIXes.
| 
| [...]
| 
| What about something like this:
| 
|   if test -z "$AUTOM4TE"; then
|     AUTOM4TE = `echo "$0" | sed s/@address@hidden/@autom4te-name@/`
|   fi
| 
| or
| 
|   dir=`echo "$0" | sed -e 's,[^\\/]*$,,'`
|   : address@hidden@}
| 
| That should obey PATH if the user typed `autoconf', but
| use `/mumble/autom4te' whenever the user ran `/mumble/autoconf'.

I'm OK with this scheme.  I'm fine with applying it, but then, I'm
waiting for someone to provide the patch.  Pay attention that the full
patch should

- cover all the guys in bin/
- use something DOS portable to address the dirname bits
- document the rules followed to find the executable.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]