Edit

kc3-lang/automake/tests/suffix2.test

Branch :

  • Show log

    Commit

  • Author : Tom Tromey
    Date : 1999-12-25 18:35:29
    Hash : cdbd6cb4
    Message : * suffix2.test: Create config.guess and config.sub so user doesn't need libtoolize. From Klaus Reichl.

  • tests/suffix2.test
  • #! /bin/sh
    
    # Test to make sure .c.o rule is only included once.
    
    . $srcdir/defs || exit 1
    
    cat >> configure.in << 'END'
    AC_PROG_CC
    AC_PROG_LIBTOOL
    END
    
    cat > Makefile.am << 'END'
    AUTOMAKE_OPTIONS = no-dependencies
    lib_LTLIBRARIES = libltdl.la
    libltdl_la_SOURCES = ltdl.c ltdl.h
    END
    
    : > ltdl.c
    : > ltdl.h
    
    # Create all the files created libtoolize so we don't run libtoolize.
    # We don't want the user to need libtool to run this test.
    : > ltconfig
    : > ltmain.sh
    : > config.guess
    : > config.sub
    
    $AUTOMAKE -a || exit 1
    
    test "`fgrep '.c.o' Makefile.in | wc -l`" -eq 1