diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2009-05-22 00:26:30 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2009-05-22 00:26:30 +0200 |
commit | 8de11deb9107b0bcfc7bf3922ee7edff3dbcd73a (patch) | |
tree | 4fbffa05b458e126b3a591a89461e1983b66ea09 /aclocal.m4 | |
parent | 6c84554b671fce473fe333ab3d8b548a0768882b (diff) |
Better checks for M4 in configure.
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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 +])# |