I noticed that Open MPI is passing
    --with-openmpi-inside=1.7
in the arguments passed to
    ompi/contrib/vt/vt/configure
and
    ompi/contrib/vt/vt/extlib/otf/configure

The extlib/otf case just tests if the value is set, but the top-level
vt/configure is checking for the specific string "1.7":

# Check whether we are inside Open MPI package
inside_openmpi="no"
AC_ARG_WITH(openmpi-inside, [],
[
        AS_IF([test x"$withval" = "xyes" -o x"$withval" = "x1.7"],
        [
                inside_openmpi="$withval"
                CPPFLAGS="-DINSIDE_OPENMPI $CPPFLAGS"

                # Set FC to F77 if Open MPI version < 1.7
                AS_IF([test x"$withval" = "xyes" -a x"$FC" = x -a x"$F77"
!= x],
                [FC="$F77"])
        ])
])

That logic looks a bit fragile with respect to any future changes.
Specifically the inner AS_IF is true for the desired condition "version <
1.7" only because the outer AS_IF currently ensures the only possible
values of "$withval" are "yes" and "1.7".

-Paul

-- 
Paul H. Hargrove                          phhargr...@lbl.gov
Future Technologies Group
Computer and Data Sciences Department     Tel: +1-510-495-2352
Lawrence Berkeley National Laboratory     Fax: +1-510-486-6900

Reply via email to