Assert that SED and GREP are set

This commit is contained in:
Yang Tse 2008-07-27 21:47:22 +00:00
parent 5876381f86
commit 9b0110f50c
2 changed files with 12 additions and 0 deletions

View File

@ -79,6 +79,12 @@ dnl silently when invoked with three arguments.
AC_DEFUN([CURL_CHECK_DEF], [ AC_DEFUN([CURL_CHECK_DEF], [
AS_VAR_PUSHDEF([ac_HaveDef], [curl_cv_have_def_$1])dnl AS_VAR_PUSHDEF([ac_HaveDef], [curl_cv_have_def_$1])dnl
AS_VAR_PUSHDEF([ac_Def], [curl_cv_def_$1])dnl AS_VAR_PUSHDEF([ac_Def], [curl_cv_def_$1])dnl
if test -z "$SED"; then
AC_MSG_ERROR([SED not set. Cannot continue without SED being set.])
fi
if test -z "$GREP"; then
AC_MSG_ERROR([GREP not set. Cannot continue without GREP being set.])
fi
ifelse($3,,[AC_MSG_CHECKING([for preprocessor definition of $1])]) ifelse($3,,[AC_MSG_CHECKING([for preprocessor definition of $1])])
tmp_exp="" tmp_exp=""
AC_PREPROC_IFELSE([ AC_PREPROC_IFELSE([

View File

@ -57,6 +57,12 @@ dnl silently when invoked with three arguments.
AC_DEFUN([CURL_CHECK_DEF], [ AC_DEFUN([CURL_CHECK_DEF], [
AS_VAR_PUSHDEF([ac_HaveDef], [curl_cv_have_def_$1])dnl AS_VAR_PUSHDEF([ac_HaveDef], [curl_cv_have_def_$1])dnl
AS_VAR_PUSHDEF([ac_Def], [curl_cv_def_$1])dnl AS_VAR_PUSHDEF([ac_Def], [curl_cv_def_$1])dnl
if test -z "$SED"; then
AC_MSG_ERROR([SED not set. Cannot continue without SED being set.])
fi
if test -z "$GREP"; then
AC_MSG_ERROR([GREP not set. Cannot continue without GREP being set.])
fi
ifelse($3,,[AC_MSG_CHECKING([for preprocessor definition of $1])]) ifelse($3,,[AC_MSG_CHECKING([for preprocessor definition of $1])])
tmp_exp="" tmp_exp=""
AC_PREPROC_IFELSE([ AC_PREPROC_IFELSE([