1
1

- Add file system case sensitivity test

- Add base directories to current MCA types

This commit was SVN r158.
Этот коммит содержится в:
Jeff Squyres 2004-01-09 08:25:18 +00:00
родитель 3c82320c5b
Коммит 6262c04d9b
4 изменённых файлов: 107 добавлений и 18 удалений

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

@ -14,6 +14,8 @@ sinclude(config/cxx_find_template_repository.m4)
sinclude(config/cxx_have_exceptions.m4)
sinclude(config/cxx_find_exception_flags.m4)
sinclude(config/f77_find_ext_symbol_convention.m4)
sinclude(config/lam_case_sensitive_fs_setup.m4)
sinclude(config/lam_check_optflags.m4)
sinclude(config/lam_configure_options.m4)

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

@ -6,18 +6,17 @@
include $(top_srcdir)/config/Makefile.options
EXTRA_DIST = \
ax_create_stdint_h.m4 \
cxx_find_template_parameters.m4 \
cxx_find_template_repository.m4 \
cxx_find_exception_flags.m4 \
cxx_have_exceptions.m4 \
lam_case_sensitive_fs_setup.m4 \
lam_check_optflags.m4 \
lam_configure_options.m4 \
lam_functions.m4 \
lam_get_version.m4 \
lam_get_version.sh \
lam_setup_cc.m4 \
lam_setup_cxx.m4 \
lam_setup_f77.m4 \
lam_setup_f90.m4
cxx_find_template_parameters.m4 \
cxx_find_template_repository.m4 \
cxx_find_exception_flags.m4 \
cxx_have_exceptions.m4 \
lam_case_sensitive_fs_setup.m4 \
lam_check_optflags.m4 \
lam_configure_options.m4 \
lam_functions.m4 \
lam_get_version.m4 \
lam_get_version.sh \
lam_setup_cc.m4 \
lam_setup_cxx.m4 \
lam_setup_f77.m4 \
lam_setup_f90.m4

78
config/f77_find_ext_symbol_convention.m4 Обычный файл
Просмотреть файл

@ -0,0 +1,78 @@
dnl -*- shell-script -*-
dnl
dnl $HEADER$
dnl
define(LAM_F77_FIND_EXT_SYMBOL_CONVENTION,[
AC_MSG_CHECKING($1 external symbol convention)
lam_fortran_double_underscore=0
lam_fortran_single_underscore=0
lam_fortran_caps=0
lam_fortran_plain=0
cat > conftestf.f <<EOF
subroutine FOO_bar(a)
integer a
a = 1
return
end
EOF
$1 $FFLAGS -c conftestf.f 1>&5 2>&1
if test ! -s conftestf.o; then
AC_MSG_WARN(unable to produce an object file testing F77 compiler)
else
nm conftestf.o | grep foo_bar__ > /dev/null 2>&1
if test $? = "0"; then
AC_MSG_RESULT([double underscore])
lam_fortran_double_underscore=1
lam_ac_doubleunder=y
else
nm conftestf.o | grep foo_bar_ > /dev/null 2>&1
if test $? = "0"; then
AC_MSG_RESULT([single underscore])
lam_fortran_single_underscore=1
lam_ac_singleunder=y
else
# We may get into trouble here if we start accepting mixed
# case compilers -- we may need to have caps underscore,
# or caps double underscore, for example. But we haven't
# found any that require that yet. :-)
nm conftestf.o | grep FOO_bar > /dev/null 2>&1
if test $? = "0"; then
AC_MSG_RESULT([mixed case, so FORTRANCAPS])
lam_fortran_caps=1
lam_ac_caps=y
else
nm conftestf.o | grep foo_bar > /dev/null 2>&1
if test $? = "0"; then
AC_MSG_RESULT([no underscore])
lam_fortran_plain=1
lam_ac_nounder=y
else
nm conftestf.o | grep FOO_BAR > /dev/null 2>&1
if test $? = "0"; then
AC_MSG_RESULT([all upper case])
lam_fortran_caps=1
lam_ac_caps=y
else
AC_MSG_WARN([*** Could not find name of subroutine foo_bar])
AC_MSG_ERROR([Cannot continue])
fi
fi
fi
fi
fi
fi
AC_DEFINE_UNQUOTED(LAM_F77_DOUBLE_UNDERSCORE,
$lam_fortran_double_underscore,
[Whether fortran symbols have a trailing double underscore or not])
AC_DEFINE_UNQUOTED(LAM_F77_SINGLE_UNDERSCORE, $lam_fortran_single_underscore,
[Whether fortran symbols have a trailing underscore or not])
AC_DEFINE_UNQUOTED(LAM_F77_CAPS, $lam_fortran_caps,
[Whether fortran symbols are all caps or not])
AC_DEFINE_UNQUOTED(LAM_F77_PLAIN, $lam_fortran_plain,
[Whether fortran symbols have no trailing underscore or not])
/bin/rm -f conftestf.f conftestf.o])dnl

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

@ -10,7 +10,7 @@
# Init autoconf
AC_INIT(./src/mpi/c/datatype_get_name.c)
AC_INIT(./src/mpi/c/init.c)
AC_PREREQ(2.52)
AC_CONFIG_AUX_DIR(./config)
@ -200,6 +200,10 @@ LAM_SETUP_CXX
##################################
LAM_SETUP_F77
if test -n "$F77"; then
LAM_F77_FIND_EXT_SYMBOL_CONVENTION($F77)
fi
LAM_SETUP_F90
@ -253,9 +257,9 @@ lam_show_title "System-specific tests"
# all: type of getsockopt optlen
# all: type of recvfrom optlen
#################################
#
# File system case sensitivity
#################################
#
LAM_CASE_SENSITIVE_FS_SETUP
@ -352,11 +356,17 @@ AC_CONFIG_FILES([
src/mca/lam/Makefile
src/mca/mpi/Makefile
src/mca/mpi/coll/Makefile
src/mca/mpi/coll/base/Makefile
src/mca/mpi/io/Makefile
src/mca/mpi/io/base/Makefile
src/mca/mpi/one/Makefile
src/mca/mpi/one/base/Makefile
src/mca/mpi/pml/Makefile
src/mca/mpi/pml/base/Makefile
src/mca/mpi/ptl/Makefile
src/mca/mpi/ptl/base/Makefile
src/mca/mpi/topo/Makefile
src/mca/mpi/topo/base/Makefile
src/tools/Makefile
src/tools/wrappers/Makefile