]> www.ginac.de Git - ginac.git/blobdiff - configure.in
* Hahaha! The second of the two tests was actually BS(tm) but this was only
[ginac.git] / configure.in
index aa0d315b86266db3edeafd6aa8f95b8a963f04e7..c0126d5806f8823e0df41ed843b73a1ab84fc41c 100644 (file)
@@ -1,7 +1,7 @@
 dnl Process this file with autoconf to produce a configure script.
 
 AC_INIT(ginac/basic.cpp)
-AC_PREREQ(2.13)
+AC_PREREQ(2.50)
 
 dnl GiNaC library version information.
 dnl
@@ -103,23 +103,17 @@ GINSH_LIBS=$LIBS
 LIBS=$save_LIBS
 AC_SUBST(GINSH_LIBS)
 
-dnl Make sure all the necessary new-style headers are installed on the system.
-dnl If one of them cannot be found the system is probably not ANSI-conform
-dnl enough so trying the .h-style headers is a waste of time.
-AC_CHECK_HEADERS(iostream vector map string list typeinfo iterator stdexcept algorithm, ,
-  AC_MSG_ERROR([need to have ANSI compliant headers]))
-dnl We need the sstream header.  But since g++-2.95.n, n<3  does not provide
-dnl it, we must fall back to strstream, which, however, suffers from fixed
-dnl buffer sizes.  So the fallback may produce a crippled library. NB: this
-dnl fallback will disappear in future versions.
-AC_CHECK_HEADERS(sstream strstream)
-if test "x${ac_cv_header_sstream}" = "xno"; then
-  if test "x${ac_cv_header_strstream}" = "xno"; then
-    AC_MSG_ERROR([I could not find the <sstream> or <strstream> header.])
-  else
-    GINAC_WARNING([I could not find <sstream>.  <strstream> may cause trouble.])
-  fi
-fi
+dnl Make sure all the necessary standard headers are installed on the system.
+AC_CHECK_HEADER(iosfwd, , GINAC_ERROR([The standard <iosfwd> header file could not be found.]))
+AC_CHECK_HEADER(iostream, , GINAC_ERROR([The standard <iostream> header file could not be found.]))
+AC_CHECK_HEADER(vector, , GINAC_ERROR([The standard <vector> header file could not be found.]))
+AC_CHECK_HEADER(list, , GINAC_ERROR([The standard <list> header file could not be found.]))
+AC_CHECK_HEADER(map, , GINAC_ERROR([The standard <map> header file could not be found.]))
+AC_CHECK_HEADER(string, , GINAC_ERROR([The standard <string> header file could not be found.]))
+AC_CHECK_HEADER(sstream, , GINAC_ERROR([The standard <sstream> header file could not be found.]))
+AC_CHECK_HEADER(typeinfo, , GINAC_ERROR([The standard <typeinfo> header file could not be found.]))
+AC_CHECK_HEADER(stdexcept, , GINAC_ERROR([The standard <stdexcept> header file could not be found.]))
+AC_CHECK_HEADER(algorithm, , GINAC_ERROR([The standard <algorithm> header file could not be found.]))
 
 dnl We need to have Bruno Haible's CLN installed.
 dnl (CLN versions >= 1.1.0 must have installed cln.m4 at a visible place,