Download M4 Source Macro Index Page

ac_prog_scp

Synopsis

AC_PROG_SCP

Description

Check for the program 'scp', let script continue if exists, pops up error message if not.

Besides checking existence, this macro also set these environment variables upon completion:

    SCP = which scp

Author

Gleen Salmon <gleensalmon@yahoo.com>

Last Modified

2002-04-11

M4 Source Code

AC_DEFUN([AC_PROG_SCP],[
AC_REQUIRE([AC_EXEEXT])dnl
AC_PATH_PROG(SCP, scp$EXEEXT, nocommand)
if test "$SCP" = nocommand; then
        AC_MSG_ERROR([scp not found in $PATH])
fi;dnl
])