autoconf
[Top][All Lists]
Advanced

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

conditionally compiling C++ code


From: Keith Bostic
Subject: conditionally compiling C++ code
Date: Mon, 21 Apr 2003 16:50:20 -0400 (EDT)

We just ran across the problem where you cannot conditionally
call the AC_PROG_CXX macro, that is, we were doing:

        if test "$db_cv_cxx" = "yes"; then
                AC_PROG_CXX
        fi

and this broke when we upgraded to the autoconf 2.57 release.

I've seen some postings on the web discussing the problem, but
I haven't seen any suggested workarounds.  Are there any?

Is there a "standard" way to optionally compile C++ code as well
as C code when using autoconf?

Regards,
--keith

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Keith Bostic                    address@hidden
Sleepycat Software Inc.         keithbosticim (ymsgid)
118 Tower Rd.                   +1-781-259-3139
Lincoln, MA 01773               http://www.sleepycat.com




reply via email to

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