[Top][All Lists]

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

Re: [Patch] Support for executable extensions (partial; for 2.51 queue)

From: Lars J. Aas
Subject: Re: [Patch] Support for executable extensions (partial; for 2.51 queue)
Date: Fri, 30 Mar 2001 14:10:59 +0200
User-agent: Mutt/1.2.5i

On Thu, Mar 29, 2001 at 09:36:32PM +0200, Lars J. Aas wrote:
: On Thu, Mar 29, 2001 at 09:22:04PM +0200, Tim Van Holder wrote:
: : > Wouldn't it be best if the extensionless executable case also could be
: : > included in this system and not treated implicit or as a special case?
: : > There's no way to add '' to the above list.  I have no suggestion on how
: : > to fix it, though.
: : 
: : I suppose we could do something like
: : 
: : for ac_exec_ext in "" $ac_exec_extensions; do
: :   if test -f $ac_file$ac_ext; then
: : ...
: I came up with a more flexible system, but it would require a lot of use
: of 'eval', which we probably don't want:
:   ac_executable_forms='${base}.exe ${base}.com ${base} prefix${base} ...
: Then you would set $base, eval each form and check for the existence of
: the result.

Come to think of it, the eval needs only be done once:

ac_executable_forms='${base}.exe ${base}.com ${base} prefix${base} ...

ac_candidates=`base=perl eval echo $ac_executable_forms`
for path in $path_walk; do
  for candidate in $ac_candidates; do
    test -f $path/$candidate

Anyways, getting this right all over is probably too much for 2.50, so
let's target this for 2.51...

  Lars J

reply via email to

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