X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f Date: Tue, 16 Apr 2002 22:11:24 +0100 From: Laurynas Biveinis X-Mailer: The Bat! (v1.60c) Personal X-Priority: 3 (Normal) Message-ID: <172511444808.20020416221124@softhome.net> To: djgpp-workers AT delorie DOT com Subject: DJGPP-specific (?) bug in Autoconf 2.50 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 15 Apr 2002 20:08:06.0299 (UTC) FILETIME=[418DF6B0:01C1E4B9] Reply-To: djgpp-workers AT delorie DOT com Hello, Suppose you have C but not C++ compiler installed. Now following configure.ac: --- AC_INIT(blabla, 0.1) AC_PROG_CC AC_PROG_CXX AC_OUTPUT --- will produce following output: --- [...] checking for gcc... gcc checking for C compiler default output... a.exe checking whether the C compiler works... yes checking whether we are cross compiling... no checking for executable suffix... .exe checking for object suffix... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for g++... no [...] checking for xlC... no checking whether we are using the GNU C++ compiler... no checking whether g++ accepts -g... no configure: creating ./config.status --- Huh? It thinks that C++ compiler is available. I think AC_EXEEXT (or how it is called in 2.50?), or brain damage in AC_PROG_CXX is guilty: AC_PROG_CXX has only one way to check if C++ really works: AC_EXEEXT. However, if there is AC_PROG_CC before AC_PROG_CXX, it will call AC_EXEEXT first, and AC_PROG_CXX would do nothing in this case. Drat. I would take up this with Autoconf maintainers, but for that I would have to use latest autoconf version, which is not available for DJGPP. Any suggestions or am I missing something? Laurynas