1
1
This commit was SVN r5660.
Этот коммит содержится в:
Tim Woodall 2005-05-09 21:07:53 +00:00
родитель d54c6fafe0
Коммит 6a565b3fb7

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

@ -61,14 +61,14 @@ AC_DEFUN([MCA_CONFIGURE_STUB],[
EXTRA_LDFLAGS=
if test -n "$with_ptl_ib_libdir"; then
if test -d "$with_ptl_ib_libdir/lib"; then
EXTRA_LDFLAGS="-L$with_ptl_ib_libdir/lib64"
EXTRA_LDFLAGS="-L$with_ptl_ib_libdir/lib"
else
AC_MSG_WARN([*** Warning: cannot find $with_ptl_ib_libdir/lib])
AC_MSG_WARN([*** Will still try to configure ib ptl anyway...])
fi
elif test -n "$with_ptl_ib"; then
if test -d "$with_ptl_ib/lib"; then
EXTRA_LDFLAGS="-L$with_ptl_ib/lib64"
EXTRA_LDFLAGS="-L$with_ptl_ib/lib"
else
AC_MSG_WARN([*** Warning: cannot find $with_ptl_ib/lib])
AC_MSG_WARN([*** Will still try to configure ib ptl anyway...])
@ -80,8 +80,18 @@ AC_DEFUN([MCA_CONFIGURE_STUB],[
LDFLAGS="$LDFLAGS $EXTRA_LDFLAGS"
AC_CHECK_LIB([vapi], [EVAPI_list_hcas], [], [vapi_badness=true],
[-lmpga -lmosal])
LIBS="$LIBS -lmpga -lmosal"
[-lmtl_common -lmpga -lmosal])
if test -n "$vapi_badness"; then
AC_CHECK_LIB([pthread], [pthread_create],
[pthread=yes LIBS="$LIBS -lpthread"],
[pthread=no])
if test "$pthread" = "yes"; then
AC_CHECK_LIB([vapi], [EVAPI_open_hca], [],
[AC_MSG_ERROR([*** Cannot find libvapi])],
[-lmtl_common -lmpga -lmosal])
fi
fi
LIBS="$LIBS -lmtl_common -lmpga"
#
# Save extra compiler/linker flags so that they can be added in