Edit

kc3-lang/automake/m4/make.m4

Branch :

  • Show log

    Commit

  • Author : Tom Tromey
    Date : 2001-07-17 05:53:49
    Hash : 1c4a810c
    Message : Report from Motoyuki Kasahara: * tests/make.test: Use am__include. * tests/exsource.test: Use am__include. * m4/make.m4 (AM_MAKE_INCLUDE): Use am__include and am__quote. * automake.in (handle_languages): Use am__include and am__quote.

  • m4/make.m4
  • # AM_MAKE_INCLUDE()
    # -----------------
    # Check to see how make treats includes.
    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
    ])