Seeding from the 1.2 tree.

This commit is contained in:
Dan Mashal
2013-01-01 03:00:55 -08:00
parent d8c87c4ded
commit 87b806a563
1424 changed files with 260320 additions and 0 deletions

24
macros/check_version.m4 Normal file
View File

@@ -0,0 +1,24 @@
dnl AC_CHECK_VERSION(UPPER, lower, pretty, version)
dnl Copyright (c) David Walluck 1999-2000
dnl All rights reserved.
dnl Parts of this taken from mc configure script.
dnl Released under the GPLv2.
AC_DEFUN(AC_CHECK_VERSION,
[ AC_CACHE_CHECK(for $3 version, ac_cv_$3_version,
[ $1_version="unknown"
cat > conftest.$ac_ext <<EOF
[#]line __oline__ "configure"
#include "confdefs.h"
#include <$2.h>
#undef VERSION
VERSION:$1_VERSION
EOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&AS_MESSAGE_LOG_FD([]) | egrep "VERSION:" >conftest.out 2>&1; then
changequote(,)dnl
$2_version="`cat conftest.out | sed -e 's/^[^"]*"//' -e 's/".*//'`"
changequote([,])dnl
fi
rm -rf conftest*
ac_cv_$3_version="$$2_version"
])])