[mpich-devel] Fwd: [mpich-commits] [mpich] MPICH primary repository branch, master, updated. v3.1-22-gde80ec8
Latham, Robert J.
robl at mcs.anl.gov
Thu Feb 27 15:46:22 CST 2014
On Thu, 2014-02-27 at 19:32 +0000, Dave Goodell (dgoodell) wrote:
> I saw this fly by and a bug caught the corner of my eye (see inline)
> > +
> > # If the program linked OK, make sure there were no warnings
> > - if test "$prog_links" = "yes" -a "`cat pac_test.log`" = "" ; then
> > + if test "$prog_links" = "yes" -a "`diff pac_test1.log pac_test2.log`" = "" ; then
> > AC_DEFINE([HAVE_MACRO_VA_ARGS],[1],[Define if C99-style variable argument list macro functionality])
> > AC_MSG_RESULT([yes])
> > + elif "`diff pac_test1.log pac_test2.log`" = "" ; then
>
> This is bad shell code. You probably want "elif test" instead.
Or let autoconf worry about it for you with AS_IF
==rob
More information about the devel
mailing list