autoconf
[Top][All Lists]
Advanced

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

AC_PREFIX_PROGRAM and paths containing "."


From: Derek Robert Price
Subject: AC_PREFIX_PROGRAM and paths containing "."
Date: Mon, 21 Apr 2003 10:32:42 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02

Hey all,

Not sure this shouldn't be the correct behavior, but it doesn't seem optimal:

---------- ---------- ---------- ---------- ----------
- Macro: AC_PREFIX_PROGRAM (PROGRAM)
    If the user did not specify an installation prefix (using the
    `--prefix' option), guess a value for it by looking for PROGRAM in
    `PATH', the way the shell does.  If PROGRAM is found, set the
    prefix to the parent of the directory containing PROGRAM;
    otherwise leave the prefix specified in `Makefile.in' unchanged.
    For example, if PROGRAM is `gcc' and the `PATH' contains
    `/usr/local/gnu/bin/gcc', set the prefix to `/usr/local/gnu'.
---------- ---------- ---------- ---------- ----------

When AC_PREFIX_PROGRAM is used, and a user running configure has a PATH containing "." with an executable named PROGRAM in ".", prefix gets set to ".".

At the least, the associated help available via the "--help" argument to configure should be updated to tell the user about looking for PROGRAM in the PATH to determine prefix so that they can diagnose the problem themselves before reporting problems to package maintainers. :) There's an example report here: <http://ccvs.cvshome.org/issues/show_bug.cgi?id=100>.

Derek

--
               *8^)

Email: address@hidden

Get CVS support at <http://ximbiot.com>!
--
A handy telephone tip: Keep a small chalkboard near the phone.  That
way, when a salesman calls, you can hold the receiver up to it and run your
fingernails across it until he hangs up.






reply via email to

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