This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Plan: Wednesday


>>>>> "Robert" == Robert Collins <robert.collins@itdomain.com.au> writes:

>>>>> "Tom" == Tom Tromey <tromey@redhat.com> writes:

Tom> I haven't seen anything really bad recently.  I've got one more
Tom> update for the manual (see PR 220).  So I'm planning to release
Tom> 1.5 on or just after Wednesday, barring any reasons to the
Tom> contrary.

Robert> Speaking of PR 220, I came up with an idea... I don't know how
Robert> pratical it is...

Robert> for every AM_CONDITIONAL seen in configure.in|ac, insert an
Robert> automatic AM_CONDITIONAL(foo,false) in configure, up where the
Robert> AM_INIT macro was called.

Robert> I do realise that it's a user idiocy problem and thus
Robert> workarounds may not be appropriate.

My proposal would be (beware, hacky Autoconfery ahead)...

AC_DEFUN([AM_CONDITIONAL],
[ifelse([$1], [TRUE],
        [errprint(__file__:__line__: [$0: invalid condition: $1
])dnl
m4exit(1)])dnl
ifelse([$1], [FALSE],
       [errprint(__file__:__line__: [$0: invalid condition: $1
])dnl
m4exit(1)])dnl


AC_DEFINE([AM_CONDITIONAL_$1],
[AC_SUBST([$1_TRUE])
AC_SUBST([$1_FALSE])
if $2; then
  $1_TRUE=
  $1_FALSE='#'
else
  $1_TRUE='#'
  $1_FALSE=
fi
])
AC_REQUIRE([AM_CONDITIONAL_$1])
])


untested.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]