[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC] AM_ARG_ENABLE
From: |
Paolo Bonzini |
Subject: |
[RFC] AM_ARG_ENABLE |
Date: |
Tue, 07 Sep 2010 19:10:39 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.10) Gecko/20100621 Fedora/3.0.5-1.fc13 Lightning/1.0b2pre Mnenhy/0.8.3 Thunderbird/3.0.5 |
While looking around at the most common shell idioms in otherwise
"simple" configure.ac files, I found a very common one:
AC_ARG_ENABLE([something], [--enable-something xyz],,
[enable_something=no])
AM_CONDITIONAL([SOMETHING, [test "$enable_something" != no])
What would you think about one or two wrapper macros in Automake that
would simplify the above to
AM_ARG_ENABLE([something], [xyz]) # if default is NO
AM_ARG_DISABLE([something], [xyz]) # if default is YES
?
Paolo
- [RFC] AM_ARG_ENABLE,
Paolo Bonzini <=