[messagingmenu-sharp: 1/4] configure: check for `which` existence before using it
- From: Mirco M. M. Bauer <mmmbauer src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [messagingmenu-sharp: 1/4] configure: check for `which` existence before using it
- Date: Sat, 31 Jan 2015 00:06:51 +0000 (UTC)
commit 71a5ed49d0dfc2bf6fccd54140858b367a90cac8
Author: Andrés G. Aragoneses <knocte gmail com>
Date: Fri Jan 30 16:43:39 2015 +0100
configure: check for `which` existence before using it
configure.ac | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 19bb1e8..344ea46 100644
--- a/configure.ac
+++ b/configure.ac
@@ -33,6 +33,11 @@ if test "x$PKG_CONFIG" = "xno"; then
AC_MSG_ERROR(['pkg-config' is not in your PATH.])
fi
+AC_PATH_PROG(WHICH, which, no)
+if test "x$WHICH" = "xno"; then
+ AC_MSG_ERROR(['which' is not in your PATH.])
+fi
+
dnl Check for Mono
PKG_CHECK_MODULES(MONO_DEPENDENCY, mono >= 1.0, has_mono=true, has_mono=false)
@@ -101,7 +106,7 @@ dnl Check for gapi
AC_PATH_PROG(GAPI_PARSER, gapi2-parser, no)
if test "x$GAPI_PARSER" = "xno"; then
AC_MSG_CHECKING(for gapi2-parser.exe)
- GAPI_PARSER=`which gapi2-parser.exe 2> /dev/null`
+ GAPI_PARSER=`$WHICH gapi2-parser.exe 2> /dev/null`
if test "x$GAPI_PARSER" = "xno" ; then
AC_MSG_ERROR(['gapi2-parser'/'gapi2-parser.exe' not found.])
fi
@@ -113,7 +118,7 @@ AC_SUBST(GAPI_PARSER)
AC_PATH_PROG(GAPI_FIXUP, gapi2-fixup, no)
if test "x$GAPI_FIXUP" = "xno"; then
AC_MSG_CHECKING(for gapi2-fixup.exe)
- GAPI_FIXUP=`which gapi2-fixup.exe 2> /dev/null`
+ GAPI_FIXUP=`$WHICH gapi2-fixup.exe 2> /dev/null`
if test "x$GAPI_FIXUP" = "xno" ; then
AC_MSG_ERROR(['gapi2-fixup'/'gapi2-fixup.exe' not found.])
fi
@@ -125,7 +130,7 @@ AC_SUBST(GAPI_FIXUP)
AC_PATH_PROG(GAPI_CODEGEN, gapi2-codegen, no)
if test "x$GAPI_CODEGEN" = "xno"; then
AC_MSG_CHECKING(for gapi2_codegen.exe)
- GAPI_CODEGEN=`which gapi2_codegen.exe 2> /dev/null`
+ GAPI_CODEGEN=`$WHICH gapi2_codegen.exe 2> /dev/null`
if test "x$GAPI_CODEGEN" = "xno" ; then
AC_MSG_ERROR(['gapi2-codegen'/'gapi2_codegen.exe' not found.])
fi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]