From: Richard W.M. Jones Date: Wed, 27 Aug 2008 12:54:57 +0000 (+0000) Subject: Check for 'diff' program (now required to run tests). X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=77f34507469352a2898d77b7c7ea3c5e49499b94;p=ocaml-bitstring.git Check for 'diff' program (now required to run tests). --- diff --git a/bitstring_config.ml.in b/bitstring_config.ml.in index 4d67990..d079a75 100644 --- a/bitstring_config.ml.in +++ b/bitstring_config.ml.in @@ -30,3 +30,5 @@ let nativeendian = Bitstring_types.@NATIVEENDIAN@ let package = "@PACKAGE_NAME@" let version = "@PACKAGE_VERSION@" let ocamllibdir = "@OCAMLLIB@" + +let diff = "@DIFF@" diff --git a/configure.ac b/configure.ac index 7a7f0e1..c102d42 100644 --- a/configure.ac +++ b/configure.ac @@ -78,6 +78,13 @@ if test "x$TIME" = "xno"; then AC_MSG_ERROR(['time' command not found]) fi +dnl Check for diff and get full path. +AC_PATH_PROG(DIFF,diff,no) +if test "x$DIFF" = "xno"; then + AC_MSG_ERROR(['diff' command not found]) +fi +AC_SUBST(DIFF) + dnl Check for gprof (optional). AC_CHECK_PROG(GPROF,gprof,gprof,no)