oln 10.215: Add tests to check for future versions of gcc and doxygen

Index: ChangeLog from Damien Thivolle <damien@lrde.epita.fr> * config/oln.m4: Add tests to check for future versions of doxygen and gcc. Index: config/oln.m4 --- config/oln.m4 Thu, 24 Jun 2004 18:10:23 +0200 odou_s (oln/j/15_oln.m4 1.38.1.8 640) +++ config/oln.m4 Wed, 08 Sep 2004 16:33:06 +0200 thivol_d (oln/j/15_oln.m4 1.38.1.9 600) @@ -348,11 +348,14 @@ [dnl AC_CACHE_CHECK([for doxygen >= 1.3.4], [ac_cv_doxygen_version], - [if $DOXYGEN --version 2>&1 | grep ['1.3.[4567]'] > /dev/null 2>&1; then - ac_cv_doxygen_version=recent - else - ac_cv_doxygen_version=old - fi]) + [[case `$DOXYGEN --version` in + *1.3.[4-9]* | \ + *1.[4-9]* | \ + *[2-9].* ) + ac_cv_doxygen_version=recent;; + *) + ac_cv_doxygen_version=old;; + esac]]) if [ [ "$ac_cv_doxygen_version" = "old" ] ] ; then AC_MSG_ERROR([Doxygen 1.3.4 or newer is required, run ./configure with --without-doc to disable the doc build]) fi @@ -477,11 +480,13 @@ [ac_cv_cxx_style], [ac_cv_cxx_style=unknown if test "x$ac_compiler_gnu" != xno; then - if $CXX --version | grep [' 3\.[234]'] >/dev/null ; then - ac_cv_cxx_style=GNU - else - ac_cv_cxx_style=weakGNU - fi + [case `$CXX --version` in + *3.[2-9]* | \ + *[4-9].* ) + ac_cv_bison_version=recent;; + *) + ac_cv_bison_version=old;; + esac] elif $CXX -V 2>&1 | grep -i "WorkShop">/dev/null 2>&1; then ac_cv_cxx_style=Sun elif $CXX -V 2>&1 | grep -i "Intel(R) C++">/dev/null 2>&1; -- Damien Thivolle damien.thivolle@lrde.epita.fr

"Damien" == Damien Thivolle <damien@lrde.epita.fr> writes:
- if $CXX --version | grep [' 3\.[234]'] >/dev/null ; then - ac_cv_cxx_style=GNU - else - ac_cv_cxx_style=weakGNU - fi + [case `$CXX --version` in + *3.[2-9]* | \ + *[4-9].* ) + ac_cv_bison_version=recent;; + *) + ac_cv_bison_version=old;; + esac] elif $CXX -V 2>&1 | grep -i "WorkShop">/dev/null 2>&1; then
Mais oui, bien sûr... ac_cv_BISON_version. Et puis recent et old... Je t'invite à relire ce que tu fais avant de commettre. Je vous invite tous à le faire, et j'ai trop souvent à le faire.

Akim Demaille <akim@epita.fr> writes:
"Damien" == Damien Thivolle <damien@lrde.epita.fr> writes:
- if $CXX --version | grep [' 3\.[234]'] >/dev/null ; then - ac_cv_cxx_style=GNU - else - ac_cv_cxx_style=weakGNU - fi + [case `$CXX --version` in + *3.[2-9]* | \ + *[4-9].* ) + ac_cv_bison_version=recent;; + *) + ac_cv_bison_version=old;; + esac] elif $CXX -V 2>&1 | grep -i "WorkShop">/dev/null 2>&1; then
Mais oui, bien sûr... ac_cv_BISON_version. Et puis recent et old...
Je t'invite à relire ce que tu fais avant de commettre. Je vous invite tous à le faire, et j'ai trop souvent à le faire.
Toutes mes excuses. -- Damien Thivolle damien.thivolle@lrde.epita.fr
participants (2)
-
Akim Demaille
-
Damien Thivolle