[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Detecting Autoconf and Including Additional M4 Files
From: |
Ralf Wildenhues |
Subject: |
Re: Detecting Autoconf and Including Additional M4 Files |
Date: |
Sat, 29 Sep 2007 19:11:28 +0200 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
Hello Christopher,
* Christopher Key wrote on Mon, Sep 24, 2007 at 02:56:45PM CEST:
> Eric Blake wrote:
> >According to Christopher Key on 9/24/2007 5:15 AM:
> >
> >>Hence, what I'd like to do is to be able to
> >>detect whether autoconf has been used, and act appropriately
> >
> >Why not just a simple AC_DEFINE using a macro name of your choice, that
> >you know will not be injected into your compilation if you didn't run
> >autoconf?
> >
> Will do, I just didn't want to reinvent the wheel! Had there been a
> standard way of doing this (or a standard name for the define),[...]
You can use PACKAGE_NAME or one of the other PACKAGE* macros for this if
you like, provided that you have used the modern AC_INIT invocation with
two or more arguments.
Hope that helps.
Cheers,
Ralf