From 8de11deb9107b0bcfc7bf3922ee7edff3dbcd73a Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Fri, 22 May 2009 00:26:30 +0200 Subject: Better checks for M4 in configure. --- aclocal.m4 | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'aclocal.m4') diff --git a/aclocal.m4 b/aclocal.m4 index 584173d1..f3b89530 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -145,3 +145,16 @@ if test -z "$bird_cv_sys_linux_version" ; then AC_MSG_ERROR([Cannot determine kernel version]) fi ])]) + +# BIRD_CHECK_PROG_FLAVOR_GNU(PROGRAM-PATH, IF-SUCCESS, [IF-FAILURE]) +# copied autoconf internal _AC_PATH_PROG_FLAVOR_GNU +m4_define([BIRD_CHECK_PROG_FLAVOR_GNU], +[# Check for GNU $1 +case `"$1" --version 2>&1` in +*GNU*) + $2;; +m4_ifval([$3], +[*) + $3;; +])esac +])# -- cgit v1.2.3