Edit

kc3-lang/automake/m4/missing.m4

Branch :

  • Show log

    Commit

  • Author : Ralf Wildenhues
    Date : 2008-11-27 21:46:36
    Hash : e9a942a1
    Message : Cope with whitespace in $MISSING and $install_sh. * configure.ac (am_AUTOHEADER): New substitution, save the value of $AUTOHEADER before AM_INIT_AUTOMAKE may add $MISSING. * tests/defs.in: Use am_AUTOHEADER. * lib/am/install.am: Fix typo. * m4/install-sh.m4 (AM_PROG_INSTALL_SH): Add suitable single-quote quoting to install_sh, but only if needed. * m4/missing.m4 (AM_MISSING_HAS_RUN): Add suitable double-quote quoting to MISSING, but only if needed. * m4/sanity.m4 (AM_SANITY_CHECK): Abort configure if `pwd` or $srcdir contain shell meta-characters that cannot be handled; space and tab are allowed in the former only. * tests/sanity.test: New test. * tests/Makefile.am: Adjust. * NEWS: Update. Reports by Jim Meyering and others. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>

  • m4/missing.m4
  • # Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
    
    # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
    # Free Software Foundation, Inc.
    #
    # This file is free software; the Free Software Foundation
    # gives unlimited permission to copy and/or distribute it,
    # with or without modifications, as long as this notice is preserved.
    
    # serial 6
    
    # AM_MISSING_PROG(NAME, PROGRAM)
    # ------------------------------
    AC_DEFUN([AM_MISSING_PROG],
    [AC_REQUIRE([AM_MISSING_HAS_RUN])
    $1=${$1-"${am_missing_run}$2"}
    AC_SUBST($1)])
    
    
    # AM_MISSING_HAS_RUN
    # ------------------
    # Define MISSING if not defined so far and test if it supports --run.
    # If it does, set am_missing_run to use it, otherwise, to nothing.
    AC_DEFUN([AM_MISSING_HAS_RUN],
    [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
    AC_REQUIRE_AUX_FILE([missing])dnl
    if test x"${MISSING+set}" != xset; then
      case $am_aux_dir in
      *\ * | *\	*)
        MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
      *)
        MISSING="\${SHELL} $am_aux_dir/missing" ;;
      esac
    fi
    # Use eval to expand $SHELL
    if eval "$MISSING --run true"; then
      am_missing_run="$MISSING --run "
    else
      am_missing_run=
      AC_MSG_WARN([`missing' script is too old or missing])
    fi
    ])