X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=m4%2Fmissing.m4;h=6c2a55d10b67a7a32fd794fca91b6ecd71e1f3c8;hb=6e3c0b92fdef5119ea2ca508061a9b46ef4c251b;hp=1b1577431f295cfde7470c86afb5e2e029409791;hpb=50bea03197327850050e0c05321f3c6345699a2a;p=platform%2Fupstream%2Fautomake.git diff --git a/m4/missing.m4 b/m4/missing.m4 index 1b15774..6c2a55d 100644 --- a/m4/missing.m4 +++ b/m4/missing.m4 @@ -1,8 +1,10 @@ -## --------------------------------------------------------- ## -## Fake the existence of programs that GNU maintainers use. ## -## --------------------------------------------------------- ## +# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- -# serial 2 +# Copyright (C) 1997-2012 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. # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ @@ -11,39 +13,26 @@ AC_DEFUN([AM_MISSING_PROG], $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) - -# AM_MISSING_INSTALL_SH -# --------------------- -# Like AM_MISSING_PROG, but only looks for install-sh. -AC_DEFUN([AM_MISSING_INSTALL_SH], -[AC_REQUIRE([AM_MISSING_HAS_RUN]) -if test -z "$install_sh"; then - for install_sh in "$ac_aux_dir/install-sh" \ - "$ac_aux_dir/install.sh" \ - "${am_missing_run}${ac_auxdir}/install-sh"; - do - test -f "$install_sh" && break - done - # FIXME: an evil hack: we remove the SHELL invocation from - # install_sh because automake adds it back in. Sigh. - install_sh=`echo $install_sh | sed -e 's/\${SHELL}//'` -fi -AC_SUBST(install_sh)]) - - # 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], -[test x"${MISSING+set}" = xset || - MISSING="\${SHELL} `CDPATH=:; cd $ac_aux_dir && pwd`/missing" +[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= - am_backtick='`' - AC_MSG_WARN([${am_backtick}missing' script is too old or missing]) + AC_MSG_WARN(['missing' script is too old or missing]) fi ])