Added checks for doxygen and STL.

README.alpha updated for latest changes.
This commit is contained in:
Sanel Zukan
2007-03-19 10:32:09 +00:00
parent be29467f10
commit 359b79be0d
4 changed files with 32 additions and 5 deletions

View File

@@ -28,3 +28,25 @@ AC_DEFUN([EDE_DEVELOPMENT], [
DEBUGFLAGS="$DEBUGFLAGS -pedantic"
fi
])
dnl Some distributions split packages between STL runtime
dnl and development versions; this will ensure we have development packages
dnl Code is based on AC_CXX_HAVE_STL from Todd Veldhuizen and Luc Maisonobe
AC_DEFUN([EDE_CHECK_STL], [
AC_MSG_CHECKING(for reasonable STL support)
AC_LANG_CPLUSPLUS
AC_TRY_COMPILE([
#include <list>
#include <deque>
using namespace std;
],[
list<int> x; x.push_back(5);
list<int>::iterator iter = x.begin(); if (iter != x.end()) ++iter; return 0;
], ac_cv_cxx_have_stl=yes, ac_cv_cxx_have_stl=no)
if eval "test $ac_cv_cxx_have_stl = no"; then
AC_MSG_ERROR(You don't have STL (C++ standard library) packages installed, or your version of compiler is too old. Please fix this first)
else
AC_MSG_RESULT(yes)
fi
])