]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Limit size of output we consider to detect f77 brand. This works around a problem...
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 19 Sep 2003 23:14:09 +0000 (23:14 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 19 Sep 2003 23:14:09 +0000 (23:14 +0000)
git-svn-id: https://svn.dealii.org/trunk@7992 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/aclocal.m4

index 87603fe307ddd79351883b174d1b91c47ae61e33..c40d1838b2a737a220027e87d704ec797262e671 100644 (file)
@@ -657,7 +657,15 @@ dnl -------------------------------------------------------------
 AC_DEFUN(DEAL_II_DETERMINE_F77_BRAND, dnl
 [
   if test "x$F77" != "x" ; then
-    F77_VERSION_STRING="`($F77 -v 2>&1)`"
+
+    dnl Get version string of the compiler. Some compilers, most
+    dnl notably the IBM compilers have the bad habit of dumping
+    dnl all of their helptexts here, so only consider the first
+    dnl 10 lines. Otherwise we'll have a problem later on when
+    dnl we do things like "echo $F&&_VERSION_STRING | grep ..." and
+    dnl the shell says that we exceeded the limit for the length of
+    dnl command lines :-(
+    F77_VERSION_STRING="`($F77 -v 2>&1) | head -10`"
     if test -n "`echo $F77_VERSION_STRING | grep \"GNU F77\"`" -o \
            -n "`echo $F77_VERSION_STRING | grep \"gcc version\"`" ; then
       dnl Yes, this is a GNU g77 version. find out the right version

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.