bug-libtool
[Top][All Lists]
Advanced

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

RE: FW: Problem with default config.cache


From: Borsenkow Andrej
Subject: RE: FW: Problem with default config.cache
Date: Mon, 30 Jul 2001 10:04:37 +0400

> > > .....
> > > updating cache config.cache
> > > loading cache config.cache within ltconfig
> > > /tools/src/lftp-pre2.4.0-3/ltconfig: config.cache: not found
> > > configure: error: libtool configure failed
> > >
> > > The reason is here (ltconfig):
> > >
> > > if test -n "$cache_file" && test -r "$cache_file" && test -f
> > > "$cache_file"; then
> > >   echo "loading cache $cache_file within ltconfig"
> > >   . $cache_file
> > > fi
> > >
> > > The problem is `.' command does search in PATH and of course does
> > > not find cache file.
>
> Why is it obvious?  `,' is also supposed to search the current directory.

SUS does not agree with you
(<http://www.opengroup.org/onlinepubs/007908799/xcu/chap2.html#tag_001_014_0
04>):

. file
 DESCRIPTION
The shell will execute commands from the file in the current environment.
If file does not contain a slash, the shell will use the search path
specified by to find the directory containing file. Unlike normal command
search, however, the file searched for by the dot utility need not be
executable. If no readable file is found, a non-interactive shell will
abort; an interactive shell will write a diagnostic message to standard
error, but this condition will not be considered a syntax error.

> Also the battery of tests in the guarding if command make really
> sure that
> the file is there...

My favourite newbie question - "hey, what's this - "foo not found"? I have
it here, right before me, in current directory!" :-)

I guess you are saying that you have a shell that
> doesn't search the current directory for `.'?
>

Autoconf sticks ./ for non-absolute names so it is *not* only my shell; in
generated configure (2.52):

echo "$as_me: loading cache $cache_file" >&6;}
    case $cache_file in
      [\\/]* | ?:[\\/]* ) . $cache_file;;
      *)                      . ./$cache_file;;
    esac



> > > I am not sure if configure shuold set it to
> > > ./config.cache or ltconfig prepend ./ if file name is not absolute.
> > >
> > > address@hidden ./ltconfig --version
> > > ltconfig (GNU libtool) 1.4a (1.641.2.259 2001/06/04 19:32:47)
>
> Ah, good.  Easy fix.  Use libtool-1.4 if you don't need
> multi-language-branch
> features, ot libtool-1.4b if you do.  Neither of these versions
> have ltconfig
> at all.
>

I do not care if ltconfig exists or not - I do care that whatever program is
used for libtool configuration does not break reading config.cache. Anyway I
Cc it to lftp list, they may be interested in using newer version.

regards

-andrej



reply via email to

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