From: wolf Date: Fri, 19 Sep 2003 23:14:09 +0000 (+0000) Subject: Limit size of output we consider to detect f77 brand. This works around a problem... X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef9448de2419f53c8bf5ee236feb76fc26220a70;p=dealii-svn.git Limit size of output we consider to detect f77 brand. This works around a problem on AIX where the compiler dumps many pages of help text, and we later get into trouble when echo'ing it. git-svn-id: https://svn.dealii.org/trunk@7992 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/aclocal.m4 b/deal.II/aclocal.m4 index 87603fe307..c40d1838b2 100644 --- a/deal.II/aclocal.m4 +++ b/deal.II/aclocal.m4 @@ -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