Edit

kc3-lang/automake/tests/cond7.test

Branch :

  • Show log

    Commit

  • Author : Tom Tromey
    Date : 1998-11-27 21:26:36
    Hash : c6996dfa
    Message : * cond7.test: New file. From Pavel Roskin. * Makefile.am (TESTS): New file.

  • tests/cond7.test
  • #! /bin/sh
    
    # Test for an odd conditional bug.  Report from Pavel Roskin.
    
    . $srcdir/defs || exit 1
    
    cat > configure.in << 'END'
    AC_INIT()
    AM_INIT_AUTOMAKE(test,0.1)
    compat=yes
    AM_CONDITIONAL(Compatible, test x$compat = xyes)
    AC_OUTPUT(Makefile)
    END
    
    cat > Makefile.am << 'END'
    AUTOMAKE_OPTIONS=foreign
    if Compatible
    abdir = none
    ab_HEADERS = \
            minus.h
    endif
    END
    
    $AUTOMAKE || exit 1
    grep '002' Makefile.in && exit 1
    exit 0