[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Libtool makes configure scripts check for unneeded compilers
From: |
Bob Friesenhahn |
Subject: |
Re: Libtool makes configure scripts check for unneeded compilers |
Date: |
Wed, 11 Jun 2003 16:07:00 -0500 (CDT) |
This fragment was discussed on the libtool list a week or two ago. It
is simply ensuring the ordering of expansion of AC_PROG_CXX and
AC_LIBTOOL_CXX, nothing more.
Bob
On Wed, 11 Jun 2003, Peter Eisentraut wrote:
> Albert Chin writes:
>
> > > And when I run it it checks for g++ and g77 and runs the whole libtool
> > > test range for those compilers. Does anyone know why?
> >
> > Check the thread from last week. I'll try to post my patch by this
> > weekend to fix this.
> > http://mail.gnu.org/archive/html/libtool/2003-06/msg00006.html
>
> It seems that the code is already set up to select the right tags
> automatically, but it just doesn't work. In AC_PROG_LIBTOOL:
>
> dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
> dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
> AC_PROVIDE_IFELSE([AC_PROG_CXX],
> [AC_LIBTOOL_CXX],
> [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
> ])])
>
> This means, if AC_PROG_CXX has already been called, call AC_LIBTOOL_CXX.
> Else, change AC_PROG_CXX to include AC_LIBTOOL_CXX automatically, in case
> it is called later. But if AC_PROG_CXX is never called, AC_LIBTOOL_CXX
> should also never be called. But that doesn't happen. Why?
>
> --
> Peter Eisentraut address@hidden
>
>
>
> _______________________________________________
> Libtool mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/libtool
>
======================================
Bob Friesenhahn
address@hidden
http://www.simplesystems.org/users/bfriesen