infer_clone/m4/ac_assert_prog.m4

17 lines
445 B

dnl Copyright (c) 2015-present, Facebook, Inc.
dnl
dnl This source code is licensed under the MIT license found in the
dnl LICENSE file in the root directory of this source tree.
dnl AC_ASSERT_PROG([program_name], [test_variable])
dnl
dnl fails if $test_variable is "no", which is taken to mean that
dnl $program_name is not installed
AC_DEFUN([AC_ASSERT_PROG],
[dnl
AS_IF([test "$2" = "no"],
[dnl
AC_MSG_ERROR([$1 not found.])
])
])