1
1

Get configure.stub working and changed Makefile.am accordingly

JMS: 
  AM_CPPFLAGS -I${top_ompi_srcdir}/src/include, etc is not passed 
  down to the modules. So have to hardcode them in Makefile.am.
  Probably because modules are configured before top directory.

This commit was SVN r1432.
Этот коммит содержится в:
Weikuan Yu 2004-06-22 17:46:28 +00:00
родитель e791627dd2
Коммит a11f5c2ac1
3 изменённых файлов: 55 добавлений и 54 удалений

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

@ -6,13 +6,12 @@
include $(top_ompi_srcdir)/config/Makefile.options
# JMS:
# CPPFLAGS including -I$(top_ompi_builddir)/src/include, etc
# does not seem to be passed down
AM_CPPFLAGS = -I$(top_ompi_builddir)/src/include \
-I$(top_ompi_srcdir)/src -I$(top_ompi_srcdir)/src/include \
-I/usr/lib/qsnet/elan4/include \
-I/home/1/yuw/elan/qsnet2libs-1.6.4-1/include \
-I/home/1/yuw/elan/qsnet2libs-1.6.4-1/elan4lib/include \
-I/home/1/yuw/elan/qsnet2libs-1.6.4-1/elan4lib/elan4 \
-I/home/1/yuw/elan/qsnet2libs-1.6.4-1/elan4lib/common
-I$(top_ompi_srcdir)/src -I$(top_ompi_srcdir)/src/include \
-I/usr/lib/qsnet/elan4/include
SUBDIRS = src
@ -36,12 +35,11 @@ mca_ptl_elan_la_SOURCES =
mca_ptl_elan_la_LIBADD = \
src/libmca_ptl_elan.la \
$(LIBOMPI_LA)
mca_ptl_elan_la_LDFLAGS = -module -avoid-version \
-lelan -lelanctrl -lrms -lrmscall -lelan4
mca_ptl_elan_la_LDFLAGS = -module -avoid-version
#-lelan -lelanctrl -lrms -lrmscall -lelan4
noinst_LTLIBRARIES = $(module_noinst)
libmca_ptl_elan_la_SOURCES =
libmca_ptl_elan_la_LIBADD = src/libmca_ptl_elan.la
libmca_ptl_elan_la_LDFLAGS = -module -avoid-version \
-lelan -lelanctrl -lrms -lrmscall -lelan4
libmca_ptl_elan_la_LDFLAGS = -module -avoid-version
#-lelan -lelanctrl -lrms -lrmscall -lelan4

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

@ -7,16 +7,31 @@
# Main function. This will be invoked in the middle of the templated
# configure script.
#
AC_DEFUN([MCA_CONFIGURE_STUB],[
AC_CHECK_LIB([rmscall], [rms_getcap],
AC_DEFUN([MCA_CONFIGURE_STUB],[
AC_CHECK_LIB([rmscall], [rms_getcap],
[ompi_elan_have_librmscall=yes], [])
AC_CHECK_LIB([elan], [elan_init],
AC_CHECK_LIB([elan], [elan_init],
[ompi_elan_have_libelan=yes], [])
AC_CHECK_LIB([elan4], [elan4_init],
AC_CHECK_LIB([elan4], [elan4_init],
[ompi_elan_have_libelan4=yes], [])
echo "Found librmscall ... ${ompi_elan_have_librmscall:-no}"
echo "Found libelan ... ${ompi_elan_have_libelan:-no}"
echo "Found libelan4 ... ${ompi_elan_have_libelan4:-no}"
if test "$ompi_elan_have_librmscall" = "yes" \
-a "$ompi_elan_have_libelan" = "yes" \
-a "$ompi_elan_have_libelan4" = "yes"; then
PTL_ELAN_LIBS="-lrmscall -lelan -libelan4"
ompi_elan_have_elanlibs=yes
else
ompi_elan_have_elanlibs=yes
AC_MSG_NOTICE([Cannot support elan4 without librmscall,
libelan and libelan4])
fi
AC_CHECK_LIB([elan3], [elan3_create],
[ompi_elan_have_libelan3=yes],
[ompi_elan_nolibelan3=1])
@ -25,47 +40,42 @@ AC_DEFUN([MCA_CONFIGURE_STUB],[
[ompi_elan_have_libelanctrl=yes],
[ompi_elan_nolibelanctrl=1])
if test "$ompi_elan_have_librmscall" != "yes" \
-o "ompi_elan_have_libelan" != "yes" \
-o "ompi_elan_have_libelan4" != "yes" ; then
AC_MSG_NOTICE([Cannot support elan4 without librmscall,
libelan and libelan4])
else
ELAN_LIBS="-lrmscall -lelan -libelan4"
ompi_elan_have_elanlibs=yes
fi
if test "$ompi_elan_have_libelan3" = "yes"; then
ELAN_LIBS="$ELAN_LIBS -lelan3"
PTL_ELAN_LIBS="$PTL_ELAN_LIBS -lelan3"
test "$ompi_elan_have_elanlibs" = "yes" && ompi_enable_elan="yes"
elif test "$ompi_elan_have_libelanctrl" = "yes"; then
ELAN_LIBS="$ELAN_LIBS -lelanctrl"
PTL_ELAN_LIBS="$PTL_ELAN_LIBS -lelanctrl"
test "$ompi_elan_have_elanlibs" = "yes" && ompi_enable_elan="yes"
else
AC_MSG_NOTICE([
Cannot support elan4 without libelan3 or libelanctrl!])
fi
if test "$ompi_enable_elan" = yes; then
AC_ARG_WITH(qsnet2libsrc,
AC_HELP_STRING([--with-qsnet2libsrc],
[provide the path to qsnet2lib source]))
echo "path to qsnet2lib source, ${with_qsnet2libsrc:-no}"
AC_ARG_WITH(ptl_elan_qsnet2libsrc,
AC_HELP_STRING([--with-ptl-elan-qsnet2libsrc],
[provide the path to qsnet2lib source]))
echo "path to qsnet2lib source, ${with_ptl_elan_qsnet2libsrc:-no}"
if test "${with_ptl_elan_qsnet2libsrc+set}" = set -a "$ompi_enable_elan" = yes; then
withval="$with_ptl_elan_qsnet2libsrc"
PTL_ELAN_QSNET2LIBSRC=$with_ptl_elan_qsnet2libsrc
PTL_ELAN_CPPFLAGS="-I${with_ptl_elan_qsnet2libsrc}/include -I${with_ptl_elan_qsnet2libsrc}/include -I${with_ptl_elan_qsnet2libsrc}/elan4lib/include -I${with_ptl_elan_qsnet2libsrc}/elan4lib/elan4 -I${with_ptl_elan_qsnet2libsrc}/elan4lib/common"
PTL_ELAN_LDFLAGS=" "
else
PTL_ELAN_QSNET2LIBSRC=" "
PTL_ELAN_CPPFLAGS=" "
PTL_ELAN_LDFLAGS=" "
echo "Cannot support elan4 without a path to qsnet2lib source " \
"and librmscall+libelan+libelan4"
exit 0
fi
if test "${with_qsnet2libsrc+set}" = set; then
withval="$with_qsnet2libsrc"
QSNET2LIBSRC=$with_qsnet2libsrc
# CFLAS="CFLAGS -I$with_qsnet2libsrc/include -I${with_qsnet2libsrc}/include -I${with_qsnet2libsrc}/elan4lib/include -I${with_qsnet2libsrc}/elan4lib/elan4 -I${with_qsnet2libsrc}/elan4lib/common "
else
QSNET2LIBSRC=" "
echo "Cannot support elan4 without a path to qsnet2lib source "
# Do not exit with error, let it continue
exit 0
fi;
CPPFLAGS="$CPPFLAGS ${PTL_ELAN_CPPFLAGS}"
LDFLAGS="$LDFLAGS ${PTL_ELAN_LDFLAGS}"
LIBS="$LIBS $PTL_ELAN_LIBS"
AC_SUBST(QSNET2LIBSRC)
AC_SUBST(ELAN_LIBS)
AC_SUBST(PTL_ELAN_QSNET2LIBSRC)
AC_SUBST(PTL_ELAN_LIBS)
])dnl
#

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

@ -5,18 +5,11 @@
include $(top_ompi_srcdir)/config/Makefile.options
# FIXME: to make the path to qsnet2libs a configure option
AM_CPPFLAGS = -I$(top_ompi_builddir)/src/include \
-I$(top_ompi_srcdir)/src -I$(top_ompi_srcdir)/src/include \
-I/usr/lib/qsnet/elan4/include \
-I/home/1/yuw/elan/qsnet2libs-1.6.4-1/include \
-I/home/1/yuw/elan/qsnet2libs-1.6.4-1/elan4lib/include \
-I/home/1/yuw/elan/qsnet2libs-1.6.4-1/elan4lib/elan4 \
-I/home/1/yuw/elan/qsnet2libs-1.6.4-1/elan4lib/common
-I$(top_ompi_srcdir)/src -I$(top_ompi_srcdir)/src/include \
-I/usr/lib/qsnet/elan4/include
AM_LDFLAGS = -lelan -lelanctrl -lrms -lrmscall -lelan4
#AM_LDFLAGS = -lelan -lelanctrl -lrms -lrmscall -lelan4
noinst_LTLIBRARIES = libmca_ptl_elan.la
libmca_ptl_elan_la_SOURCES = \