autoconf
[Top][All Lists]
Advanced

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

Re: conditionally compiling C++ code


From: Thomas Dickey
Subject: Re: conditionally compiling C++ code
Date: Mon, 28 Apr 2003 17:21:34 -0400
User-agent: Mutt/1.3.27i

On Mon, Apr 28, 2003 at 11:00:47PM +0200, Peter Eisentraut wrote:
> Steve M. Robbins writes:
> 
> > But this third way doesn't work!  AC_PROG_CXX fails if there is no C++
> > compiler and configure aborts.
> > The lack of a nonfatal check for C++ is the cause of my complaint,
> > too.
> 
> I would advise against writing configure scripts that check whether some
> library or program exists, and if not, automatically disable some feature
> of the package altogether.  This leads to tons of problems downstream.
> 
> Example: For years, we shipped a configure script with the logic that if

bad example: if the configure script cannot find readline, the program
can't use it.

try to think of a plausible example (if you're able).

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net




reply via email to

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