mailing list archives
Re: [PATCH] Fix configure CXX check for absolute paths
From: Kris Katterjohn <kjak () ispwest com>
Date: Sat, 04 Mar 2006 20:30:02 -0600
Daniel Roethlisberger wrote:
Fyodor <fyodor () insecure org> 2006-03-02:
I changed it slightly to put the / at the end of the path rather than
the beginning: [...] I hope that still works.
That should be ok.
/ at the end fails with CXX=/foo/bar/c++ when $prefix/bin/foo/bar/c++
exists, and / at the beginning fails with CXX=c++ when /c++ exists
(failure meaning the possibility of succeeding the check when no usable
CXX was found). Both cases are rather unlikely, and harmless anyway.
Couldn't you put them both in there?
AC_CHECK_PROG(CXXPROG, "$CXX", "AVAILABLE", "MISSING", /:"$PATH", "$PATH":/)
I have to admit I really don't know what I'm doing right here, but I'm still
just throwing it out there :)
Sent through the nmap-dev mailing list