1
1

Fix problem noted by Sebastian Andrzej Siewior; we should not be using AS_VAR_GET. Per advice from Ralf, change them all to AS_VAR_IF and AS_VAR_COPY. CMR:v1.5. A separate patch has to be created for v1.4 because files have moved around.

This commit was SVN r23681.
Этот коммит содержится в:
Jeff Squyres 2010-08-27 22:48:57 +00:00
родитель 3eedbee7a4
Коммит c0685fc673
14 изменённых файлов: 29 добавлений и 21 удалений

Просмотреть файл

@ -5,6 +5,7 @@ dnl University Research and Technology
dnl Corporation. All rights reserved. dnl Corporation. All rights reserved.
dnl Copyright (c) 2006 Los Alamos National Security, LLC. All rights dnl Copyright (c) 2006 Los Alamos National Security, LLC. All rights
dnl reserved. dnl reserved.
dnl Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
dnl $COPYRIGHT$ dnl $COPYRIGHT$
dnl dnl
dnl Additional copyrights may follow dnl Additional copyrights may follow
@ -37,7 +38,7 @@ AC_DEFUN([OMPI_CHECK_COMPILER_WORKS],
[AS_VAR_SET(lang_var, ["links (cross compiling)"])], [AS_VAR_SET(lang_var, ["links (cross compiling)"])],
[AS_VAR_SET(lang_var, ["no"])])]) [AS_VAR_SET(lang_var, ["no"])])])
AC_LANG_POP($1)]) AC_LANG_POP($1)])
AS_IF([test "AS_VAR_GET(lang_var)" = "no"], AS_VAR_IF(lang_var, [no],
[cat <<EOF >&2 [cat <<EOF >&2
********************************************************************** **********************************************************************
* It appears that your $1 compiler is unable to produce working * It appears that your $1 compiler is unable to produce working

Просмотреть файл

@ -10,6 +10,7 @@ dnl Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
dnl University of Stuttgart. All rights reserved. dnl University of Stuttgart. All rights reserved.
dnl Copyright (c) 2004-2005 The Regents of the University of California. dnl Copyright (c) 2004-2005 The Regents of the University of California.
dnl All rights reserved. dnl All rights reserved.
dnl Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
dnl $COPYRIGHT$ dnl $COPYRIGHT$
dnl dnl
dnl Additional copyrights may follow dnl Additional copyrights may follow
@ -36,8 +37,8 @@ AC_DEFUN([OMPI_CHECK_FUNC_LIB],[
[AS_VAR_SET(ompi_var, "yes")], [AS_VAR_SET(ompi_var, "yes")],
[AS_VAR_SET(ompi_var, "not found")]) [AS_VAR_SET(ompi_var, "not found")])
LIBS="$LIBS_save"])]) LIBS="$LIBS_save"])])
AS_IF([test "AS_VAR_GET(ompi_var)" = "yes"], AS_VAR_IF(ompi_var, [yes],
[LIBS="$LIBS -l$2"]) [LIBS="$LIBS -l$2"])
# see if we actually have $1. Use AC_CHECK_FUNCS so that it # see if we actually have $1. Use AC_CHECK_FUNCS so that it
# does the glibc "not implemented" check. Will use the current LIBS, # does the glibc "not implemented" check. Will use the current LIBS,

Просмотреть файл

@ -10,6 +10,7 @@ dnl Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
dnl University of Stuttgart. All rights reserved. dnl University of Stuttgart. All rights reserved.
dnl Copyright (c) 2004-2005 The Regents of the University of California. dnl Copyright (c) 2004-2005 The Regents of the University of California.
dnl All rights reserved. dnl All rights reserved.
dnl Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
dnl $COPYRIGHT$ dnl $COPYRIGHT$
dnl dnl
dnl Additional copyrights may follow dnl Additional copyrights may follow
@ -41,16 +42,12 @@ AC_DEFUN([OMPI_FIND_TYPE],[
[AS_VAR_SET(type_var, "not found")], [AS_VAR_SET(type_var, "not found")],
[AS_VAR_SET(type_var, "$oft_real_type")])]) [AS_VAR_SET(type_var, "$oft_real_type")])])
AS_IF([test "AS_VAR_GET(type_var)" = "not found"], AS_VAR_IF(type_var, ["not found"],
[AC_MSG_WARN([*** Did not find corresponding C type]) [AC_MSG_WARN([*** Did not find corresponding C type])
AS_IF([test "$oft_abort_on_fail" != "no"], AS_IF([test "$oft_abort_on_fail" != "no"],
[AC_MSG_ERROR([Cannot continue])])]) [AC_MSG_ERROR([Cannot continue])])])
if test "AS_VAR_GET(type_var)" = "not found" ; then AS_VAR_IF(type_var, ["not found"], [$5=], [AS_VAR_COPY([$5], [type_var])])
$5=
else
$5=AS_VAR_GET(type_var)
fi
unset oft_real_type oft_target_size unset oft_real_type oft_target_size

Просмотреть файл

@ -2,6 +2,7 @@ dnl -*- shell-script -*-
dnl dnl
dnl Copyright (c) 2006 Los Alamos National Security, LLC. All rights dnl Copyright (c) 2006 Los Alamos National Security, LLC. All rights
dnl reserved. dnl reserved.
dnl Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
dnl $COPYRIGHT$ dnl $COPYRIGHT$
dnl dnl
dnl Additional copyrights may follow dnl Additional copyrights may follow
@ -62,6 +63,6 @@ extern int testfunc(int);
rm -f conftest_c.$ac_ext rm -f conftest_c.$ac_ext
AC_LANG_POP(C)]) AC_LANG_POP(C)])
AS_IF([test "AS_VAR_GET([lang_var])" = "yes"], [$2], [$3]) AS_VAR_IF(lang_var, [yes], [$2], [$3])
AS_VAR_POPDEF([lang_var])dnl AS_VAR_POPDEF([lang_var])dnl
]) ])

Просмотреть файл

@ -10,7 +10,7 @@ dnl Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
dnl University of Stuttgart. All rights reserved. dnl University of Stuttgart. All rights reserved.
dnl Copyright (c) 2004-2005 The Regents of the University of California. dnl Copyright (c) 2004-2005 The Regents of the University of California.
dnl All rights reserved. dnl All rights reserved.
dnl Copyright (c) 2008-2009 Cisco Systems, Inc. All rights reserved. dnl Copyright (c) 2008-2010 Cisco Systems, Inc. All rights reserved.
dnl $COPYRIGHT$ dnl $COPYRIGHT$
dnl dnl
dnl Additional copyrights may follow dnl Additional copyrights may follow
@ -67,7 +67,7 @@ AC_DEFUN([OMPI_F77_CHECK_REAL16_C_EQUIV],[
]) ])
]) ])
ompi_real16_matches_c=AS_VAR_GET([real16_matches_c_var]) AS_VAR_COPY([ompi_real16_matches_c], [real16_matches_c_var])
AS_VAR_POPDEF([real16_matches_c_var]) AS_VAR_POPDEF([real16_matches_c_var])
AS_IF([test "$ompi_real16_matches_c" = "yes"], AS_IF([test "$ompi_real16_matches_c" = "yes"],

Просмотреть файл

@ -10,6 +10,7 @@ dnl Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
dnl University of Stuttgart. All rights reserved. dnl University of Stuttgart. All rights reserved.
dnl Copyright (c) 2004-2005 The Regents of the University of California. dnl Copyright (c) 2004-2005 The Regents of the University of California.
dnl All rights reserved. dnl All rights reserved.
dnl Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
dnl $COPYRIGHT$ dnl $COPYRIGHT$
dnl dnl
dnl Additional copyrights may follow dnl Additional copyrights may follow
@ -34,7 +35,7 @@ AC_DEFUN([OMPI_F77_CHECK_TYPE],[
[AS_VAR_SET(type_var, "no")]) [AS_VAR_SET(type_var, "no")])
AC_LANG_POP([Fortran 77])]) AC_LANG_POP([Fortran 77])])
AS_IF([test "AS_VAR_GET(type_var)" = "yes"], [$2], [$3]) AS_VAR_IF(type_var, [yes], [$2], [$3])
AS_VAR_POPDEF([type_var])dnl AS_VAR_POPDEF([type_var])dnl
])dnl ])dnl

Просмотреть файл

@ -10,6 +10,7 @@ dnl Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
dnl University of Stuttgart. All rights reserved. dnl University of Stuttgart. All rights reserved.
dnl Copyright (c) 2004-2005 The Regents of the University of California. dnl Copyright (c) 2004-2005 The Regents of the University of California.
dnl All rights reserved. dnl All rights reserved.
dnl Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
dnl $COPYRIGHT$ dnl $COPYRIGHT$
dnl dnl
dnl Additional copyrights may follow dnl Additional copyrights may follow
@ -90,7 +91,7 @@ EOF
AC_MSG_ERROR([Could not determine alignment of $1])])]) AC_MSG_ERROR([Could not determine alignment of $1])])])
rm -rf conftest*]) rm -rf conftest*])
$2=AS_VAR_GET([type_var]) AS_VAR_COPY([$2], [type_var])
AS_VAR_POPDEF([type_var])dnl AS_VAR_POPDEF([type_var])dnl
OMPI_VAR_SCOPE_POP OMPI_VAR_SCOPE_POP
]) ])

Просмотреть файл

@ -10,6 +10,7 @@ dnl Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
dnl University of Stuttgart. All rights reserved. dnl University of Stuttgart. All rights reserved.
dnl Copyright (c) 2004-2005 The Regents of the University of California. dnl Copyright (c) 2004-2005 The Regents of the University of California.
dnl All rights reserved. dnl All rights reserved.
dnl Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
dnl $COPYRIGHT$ dnl $COPYRIGHT$
dnl dnl
dnl Additional copyrights may follow dnl Additional copyrights may follow
@ -80,6 +81,6 @@ EOF
unset happy ompi_conftest_h unset happy ompi_conftest_h
rm -rf conftest*]) rm -rf conftest*])
$2=AS_VAR_GET(type_var) AS_VAR_COPY([$2], [type_var])
AS_VAR_POPDEF([type_var])dnl AS_VAR_POPDEF([type_var])dnl
])dnl ])dnl

Просмотреть файл

@ -34,6 +34,6 @@ end]])],
[AS_VAR_SET(type_var, "no")]) [AS_VAR_SET(type_var, "no")])
AC_LANG_POP([Fortran])]) AC_LANG_POP([Fortran])])
AS_IF([test "AS_VAR_GET(type_var)" = "yes"], [$2], [$3]) AS_VAR_IF(type_var, [yes], [$2], [$3])
AS_VAR_POPDEF([type_var])dnl AS_VAR_POPDEF([type_var])dnl
])dnl ])dnl

Просмотреть файл

@ -10,6 +10,7 @@ dnl Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
dnl University of Stuttgart. All rights reserved. dnl University of Stuttgart. All rights reserved.
dnl Copyright (c) 2004-2005 The Regents of the University of California. dnl Copyright (c) 2004-2005 The Regents of the University of California.
dnl All rights reserved. dnl All rights reserved.
dnl Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
dnl $COPYRIGHT$ dnl $COPYRIGHT$
dnl dnl
dnl Additional copyrights may follow dnl Additional copyrights may follow
@ -71,7 +72,7 @@ EOF
rm -rf conftest.$$ rm -rf conftest.$$
]) ])
OMPI_FC_MODULE_FLAG=AS_VAR_GET(f90_inc_var) AS_VAR_COPY([OMPI_FC_MODULE_FLAG], [f90_inc_var])
if test "$OMPI_FC_MODULE_FLAG" = ""; then if test "$OMPI_FC_MODULE_FLAG" = ""; then
AC_MSG_WARN([*** Could not determine the f90 compiler flag to indicate where modules reside]) AC_MSG_WARN([*** Could not determine the f90 compiler flag to indicate where modules reside])
AC_MSG_ERROR([*** Cannot continue]) AC_MSG_ERROR([*** Cannot continue])

Просмотреть файл

@ -10,6 +10,7 @@ dnl Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
dnl University of Stuttgart. All rights reserved. dnl University of Stuttgart. All rights reserved.
dnl Copyright (c) 2004-2005 The Regents of the University of California. dnl Copyright (c) 2004-2005 The Regents of the University of California.
dnl All rights reserved. dnl All rights reserved.
dnl Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
dnl $COPYRIGHT$ dnl $COPYRIGHT$
dnl dnl
dnl Additional copyrights may follow dnl Additional copyrights may follow
@ -54,7 +55,7 @@ EOF
unset happy ompi_conftest_h unset happy ompi_conftest_h
rm -rf conftest*]) rm -rf conftest*])
$3=AS_VAR_GET(type_var) AS_VAR_COPY([$3], [type_var])
else else
$3=0 $3=0
fi fi

Просмотреть файл

@ -10,6 +10,7 @@ dnl Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
dnl University of Stuttgart. All rights reserved. dnl University of Stuttgart. All rights reserved.
dnl Copyright (c) 2004-2005 The Regents of the University of California. dnl Copyright (c) 2004-2005 The Regents of the University of California.
dnl All rights reserved. dnl All rights reserved.
dnl Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
dnl $COPYRIGHT$ dnl $COPYRIGHT$
dnl dnl
dnl Additional copyrights may follow dnl Additional copyrights may follow
@ -55,6 +56,6 @@ EOF
unset happy unset happy
rm -rf conftest*]) rm -rf conftest*])
$2=AS_VAR_GET([type_var]) AS_VAR_COPY([$2], [type_var])
AS_VAR_POPDEF([type_var])dnl AS_VAR_POPDEF([type_var])dnl
]) ])

Просмотреть файл

@ -10,6 +10,7 @@ dnl Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
dnl University of Stuttgart. All rights reserved. dnl University of Stuttgart. All rights reserved.
dnl Copyright (c) 2004-2005 The Regents of the University of California. dnl Copyright (c) 2004-2005 The Regents of the University of California.
dnl All rights reserved. dnl All rights reserved.
dnl Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
dnl $COPYRIGHT$ dnl $COPYRIGHT$
dnl dnl
dnl Additional copyrights may follow dnl Additional copyrights may follow
@ -55,6 +56,6 @@ EOF
unset happy unset happy
rm -rf conftest*]) rm -rf conftest*])
$2=AS_VAR_GET([type_var]) AS_VAR_COPY([$2], [type_var])
AS_VAR_POPDEF([type_var])dnl AS_VAR_POPDEF([type_var])dnl
]) ])

Просмотреть файл

@ -10,6 +10,7 @@ dnl Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
dnl University of Stuttgart. All rights reserved. dnl University of Stuttgart. All rights reserved.
dnl Copyright (c) 2004-2005 The Regents of the University of California. dnl Copyright (c) 2004-2005 The Regents of the University of California.
dnl All rights reserved. dnl All rights reserved.
dnl Copyright (c) 2010 Cisco Systems, Inc. All rights reserved.
dnl $COPYRIGHT$ dnl $COPYRIGHT$
dnl dnl
dnl Additional copyrights may follow dnl Additional copyrights may follow
@ -80,6 +81,6 @@ EOF
unset happy ompi_conftest_h unset happy ompi_conftest_h
rm -rf conftest*]) rm -rf conftest*])
$2=AS_VAR_GET(type_var) AS_VAR_COPY([$2], [type_var])
AS_VAR_POPDEF([type_var])dnl AS_VAR_POPDEF([type_var])dnl
])dnl ])dnl