Edit

kc3-lang/automake/tests/confsub.test

Branch :

  • Show log

    Commit

  • Author : Tom Tromey
    Date : 1998-09-26 19:06:21
    Hash : 1de3ff47
    Message : * aclocal.test: Put AM_INIT_AUTOMAKE into configure.in. * library.test: Use AC_EXEEXT. * texinfo5.test: Use AC_EXEEXT. * Many files: use AC_PROG_INSTALL, not AM_PROG_INSTALL.

  • tests/confsub.test
  • #! /bin/sh
    
    # Test to make sure config.h can be in subdir.
    
    . $srcdir/defs || exit 1
    
    cat > configure.in << 'END'
    AC_PROG_MAKE_SET
    AM_CONFIG_HEADER(subdir/config.h)
    PACKAGE=nonesuch
    VERSION=nonesuch
    AC_PROG_CC
    AC_ARG_PROGRAM
    AC_PROG_INSTALL
    AC_OUTPUT(Makefile subdir/Makefile)
    END
    
    cat > Makefile.am << 'END'
    SUBDIRS = subdir
    END
    
    mkdir subdir
    cat > subdir/Makefile.am << 'END'
    bin_PROGRAMS = fred
    END
    
    : > subdir/config.h.in
    
    $AUTOMAKE || exit 1
    
    # Make sure subdir Makefile.in doesn't itself look in the subdir.
    (grep 'subdir/config.h' subdir/Makefile.in | grep -v CONFIG_HEADERS) && exit 1
    exit 0