Edit

kc3-lang/automake/m4/make.m4

Branch :

  • Show log

    Commit

  • Author : Akim Demaille
    Date : 2001-09-22 16:05:36
    Hash : 0668ce98
    Message : * ChangeLog, ChangeLog.1996, ChangeLog.1998, ChangeLog.2000, Makefile.am, NEWS, README, TODO, configure.in, lib/Makefile.am, lib/acinstall, lib/am/Makefile.am, m4/Makefile.am, m4/as.m4, m4/auxdir.m4, m4/ccstdc.m4, m4/cond.m4, m4/depend.m4, m4/depout.m4, m4/dmalloc.m4, m4/error.m4, m4/gcj.m4, m4/header.m4, m4/init.m4, m4/install-sh.m4, m4/lex.m4, m4/lispdir.m4, m4/maintainer.m4, m4/make.m4, m4/minuso.m4, m4/missing.m4, m4/multi.m4, m4/obstack.m4, m4/protos.m4, m4/ptrdiff.m4, m4/python.m4, m4/regex.m4, m4/sanity.m4, m4/strip.m4, m4/termios.m4, m4/winsz.m4: Add copyright notice. * INSTALL, lib/INSTALL: Upgrade to latest autoconf version, which has a copyright notice.

  • m4/make.m4
  • # AM_MAKE_INCLUDE()
    # -----------------
    # Check to see how make treats includes.
    
    # Copyright 2001 Free Software Foundation, Inc.
    
    # This program is free software; you can redistribute it and/or modify
    # it under the terms of the GNU General Public License as published by
    # the Free Software Foundation; either version 2, or (at your option)
    # any later version.
    
    # This program is distributed in the hope that it will be useful,
    # but WITHOUT ANY WARRANTY; without even the implied warranty of
    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    # GNU General Public License for more details.
    
    # You should have received a copy of the GNU General Public License
    # along with this program; if not, write to the Free Software
    # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
    # 02111-1307, USA.
    
    AC_DEFUN([AM_MAKE_INCLUDE],
    [am_make=${MAKE-make}
    cat > confinc << 'END'
    doit:
    	@echo done
    END
    # If we don't find an include directive, just comment out the code.
    AC_MSG_CHECKING([for style of include used by $am_make])
    am__include='#'
    am__quote=
    _am_result=none
    # First try GNU make style include.
    echo "include confinc" > confmf
    # We grep out `Entering directory' and `Leaving directory'
    # messages which can occur if `w' ends up in MAKEFLAGS.
    # In particular we don't look at `^make:' because GNU make might
    # be invoked under some other name (usually "gmake"), in which
    # case it prints its new name instead of `make'.
    if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
       am__include=include
       am__quote=
       _am_result=GNU
    fi
    # Now try BSD make style include.
    if test "$am__include" = "#"; then
       echo '.include "confinc"' > confmf
       if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
          am__include=.include
          am__quote='"'
          _am_result=BSD
       fi
    fi
    AC_SUBST(am__include)
    AC_SUBST(am__quote)
    AC_MSG_RESULT($_am_result)
    rm -f confinc confmf
    ])