Edit

kc3-lang/automake/tests/specflags3.test

Branch :

  • Show log

    Commit

  • Author : Akim Demaille
    Date : 2001-04-27 14:03:26
    Hash : f059050a
    Message : * tests/specflags4.test, tests/specflags5.test: Remove, merged into... * tests/specflags3.test: here.

  • tests/specflags3.test
  • #! /bin/sh
    
    # Test exe-specific flags with dependency tracking.
    
    . $srcdir/defs || exit 1
    
    cat > configure.in << 'END'
    AC_INIT
    AM_INIT_AUTOMAKE(test, 0.1)
    AC_PROG_CC
    AC_OUTPUT(Makefile)
    END
    
    cat > Makefile.am << 'END'
    AUTOMAKE_OPTIONS = foreign
    bin_PROGRAMS = foo
    foo_SOURCES = foo.c
    foo_CFLAGS = -DFOO
    END
    
    : > compile
    
    $ACLOCAL || exit 1
    $AUTOMAKE || exit 1
    
    fgrep -e '-o foo-foo' Makefile.in || exit 1
    
    fgrep 'foo.o.o' Makefile.in                       && exit 1
    fgrep 'foo.$(OBJEXT).$(OBJEXT)' Makefile.in       && exit 1
    
    fgrep '$(foo_CFLAGS)' Makefile.in || exit 1
    
    exit 0