[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AC_PROG_CC_C89
From: |
Ralf Wildenhues |
Subject: |
Re: AC_PROG_CC_C89 |
Date: |
Mon, 8 Jan 2007 19:32:31 +0100 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
Ugh, quite some mail backlog and little time...
* Steven G. Johnson wrote on Wed, Jan 03, 2007 at 08:41:44PM CET:
> Harlan Stenn wrote:
> >When was AC_PROG_CC_C89 introduced?
[...]
> >Speaking of which, how difficult would it be to list the "oldest"
> >version that will support each autoconf macro?
If you're only out to know whether the macro is defined:
AC_INIT
m4_pattern_allow([^AC_PROG_CC_C89$])dnl
m4_ifdef([AC_PROG_CC_C89],
[[echo has AC_PROG_CC_C89]],
[[echo does not have AC_PROG_CC_C89]])
Omitting the macro name in the answer, the above may be simplified to
AC_INIT
m4_ifdef([AC_PROG_CC_C89], [echo yes], [echo no])
Hope that helps.
Cheers,
Ralf