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: Ralf Wildenhues
Subject: Re: AC_PROG_LIBTOOL changing ./configure compiler selection
Date: Sat, 11 Mar 2006 18:29:21 +0100
User-agent: Mutt/1.5.9i

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++)

Cheers,
Ralf




reply via email to

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