automake
[Top][All Lists]
Advanced

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

Re: AC_PROG_LIBTOOL changing ./configure compiler selection


From: Guillaume Rousse
Subject: Re: AC_PROG_LIBTOOL changing ./configure compiler selection
Date: Mon, 13 Mar 2006 23:58:17 +0100
User-agent: Mail/News 1.5 (X11/20060225)

Ralf Wildenhues wrote:
> Hi Guillaume,
> 
> * Guillaume Rousse wrote on Thu, Mar 09, 2006 at 05:09:30PM CET:
>> I'm trying to convert a program creating static libraries only to
>> libtool use. In configure.ac, I just changed AC_PROG_RANLIB to
>> AC_PROG_LIBTOOL. However, as a side-effect, configure script tries to
>> use gcc instead of g++, and fails to find correct headers.
> 
>> The initial configure.ac looks like:
>> AC_PROG_CC(cc gcc)
>> AC_PROG_CXX(CC g++ gcc c++ cxx)
>> AC_PROG_F77(f77 g77 f90 xlf90)
>> AC_PROG_RANLIB
>> ...
>> AC_CHECK_HEADERS([cstdlib stdlib.h], [break],)
> 
> Try surrounding the tests that are supposed to use the C++ compiler by
>   AC_LANG_PUSH(C++)
>   AC_LANG_POP(C++)
It works, thanks.

Is it worth to be reported as a bug in AC_PROG_LIBTOOL ?




reply via email to

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