() Ralf Wildenhues <[EMAIL PROTECTED]>
() Sat, 15 Sep 2007 13:15:33 +0200
AC_DEFUN([FOO],
[
m4_pushdef([COND], [AS_TR_SH([HAVE_]$1)])
m4_pushdef([ENABLE], [$enable_]$1)
AM_CONDITIONAL(COND, [test x[]ENABLE = xyes])
if test x[]ENABLE = xyes; then
COND=1
AC_SU
Hello Thien-Thi,
* Thien-Thi Nguyen wrote on Sat, Sep 15, 2007 at 11:12:05AM CEST:
> here is a fragment from a AC_DEFUN body:
>
> AM_CONDITIONAL(m4_toupper([HAVE_$1]), test x$enable_$1 = xyes)
>
> if test x$enable_$1 = xyes ; then
> m4_toupper([HAVE_$1])=1
> AC_SUBST(m4_toupper([HA