autoconf
[Top][All Lists]
Advanced

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

Re: Detecting Autoconf and Including Additional M4 Files


From: Eric Blake
Subject: Re: Detecting Autoconf and Including Additional M4 Files
Date: Mon, 24 Sep 2007 06:18:10 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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?

> 
> Secondly, I'm also wanting to detect whether there an arithmetic right
> shift available.  I've found a test that does this, and have put it in
> package/m4/asr.m4.  What I'm wondering is how to ensure that this file
> is included.  The only way I've found to achieve this is to add
> 'ACLOCAL_AMFLAGS = -I m4' to package/Makefile.am, but this doesn't seem
> quite right.

Actually, it is the documented way to do things if you use both autoconf
and automake.

>  I've seen adding 'AC_SUBST(ACLOCAL_AMFLAGS, "-I m4")' to
> configure.ac suggested online, but this didn;t seem to do the trick. 

Nor is that approach recommended (not to mention it is underquoted).

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG96sB84KuGfSFAYARApn1AJ40dk0JYVMXrTL6sDWFMdZuC7/CyQCfatRw
yMfDQS+vErnWI5aFb/yJJt4=
=KYdi
-----END PGP SIGNATURE-----




reply via email to

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