How is this for a AM_COND_IF that works at the m4sh level on older Automake:
m4_ifndef([AM_COND_IF], [AC_DEFUN([AM_COND_IF], [m4_ifndef([_AM_COND_VALUE_$1], [m4_fatal([$0: no such condition "$1"])])dnl if test -z "$$1_TRUE"; then : m4_n([$2])[]dnl m4_ifval([$3], [else $3 ])dnl fi[]dnl ])]) I do not know the difference between m4_default and m4_n usage here, I'm just applying the latest AM_COND_IF changes. If this code is not appropriate for Automake prior to 1.11, please let me know. Cheers, Dave Hart