Merge pull request #298 from jsquyres/topic/lt_dladvise-fix
Fix the lt_dladvise test noted by Edgar
Этот коммит содержится в:
Коммит
f99e56d17b
@ -9,7 +9,7 @@ dnl Copyright (c) 2004-2007 High Performance Computing Center Stuttgart,
|
||||
dnl University of Stuttgart. All rights reserved.
|
||||
dnl Copyright (c) 2004-2005 The Regents of the University of California.
|
||||
dnl All rights reserved.
|
||||
dnl Copyright (c) 2006-2013 Cisco Systems, Inc. All rights reserved.
|
||||
dnl Copyright (c) 2006-2014 Cisco Systems, Inc. All rights reserved.
|
||||
dnl Copyright (c) 2006-2008 Sun Microsystems, Inc. All rights reserved.
|
||||
dnl Copyright (c) 2006-2007 Los Alamos National Security, LLC. All rights
|
||||
dnl reserved.
|
||||
@ -127,6 +127,10 @@ AC_DEFUN([OPAL_SETUP_LIBLTDL],[
|
||||
AC_SUBST(LIBLTDL)
|
||||
AC_SUBST(LIBLTDL_SUBDIR)
|
||||
|
||||
AC_MSG_CHECKING([for lt_dladvise])
|
||||
AS_IF([test $OPAL_HAVE_LTDL_ADVISE -eq 1],
|
||||
[AC_MSG_RESULT([yes])],
|
||||
[AC_MSG_RESULT([no])])
|
||||
AC_DEFINE_UNQUOTED(OPAL_HAVE_LTDL_ADVISE, $OPAL_HAVE_LTDL_ADVISE,
|
||||
[Whether libltdl appears to have the lt_dladvise interface])
|
||||
|
||||
@ -159,23 +163,21 @@ AC_DEFUN([_OPAL_SETUP_LIBLTDL_INTERNAL],[
|
||||
opal_subdir_args="$opal_subdir_args --disable-static"
|
||||
fi
|
||||
|
||||
CFLAGS_save="$CFLAGS"
|
||||
CFLAGS_save=$CFLAGS
|
||||
CFLAGS="$OPAL_CFLAGS_BEFORE_PICKY $OPAL_VISIBILITY_CFLAGS"
|
||||
|
||||
# VPATH support will be included by default in CONFIG_SUBDIR
|
||||
OPAL_CONFIG_SUBDIR(opal/libltdl, [$opal_subdir_args],
|
||||
[HAPPY=1], [HAPPY=0])
|
||||
if test "$HAPPY" = "1"; then
|
||||
if test $HAPPY -eq 1; then
|
||||
LIBLTDL_SUBDIR=libltdl
|
||||
OPAL_LIBLTDL_INTERNAL=1
|
||||
|
||||
CPPFLAGS_save="$CPPFLAGS"
|
||||
CPPFLAGS="-I$srcdir/opal/libltdl/"
|
||||
# Must specifically mention $srcdir here for VPATH builds
|
||||
# (this file is in the src tree).
|
||||
AC_EGREP_HEADER([lt_dladvise_init], [$srcdir/opal/libltdl/ltdl.h],
|
||||
CPPFLAGS_save=$CPPFLAGS
|
||||
CPPFLAGS="-I$srcdir"
|
||||
AC_EGREP_HEADER([lt_dladvise_init], [opal/libltdl/ltdl.h],
|
||||
[OPAL_HAVE_LTDL_ADVISE=1])
|
||||
CPPFLAGS="$CPPFLAGS_save"
|
||||
CPPFLAGS=$CPPFLAGS_save
|
||||
|
||||
# --export-dynamic allows exported symbols to be resolved via
|
||||
# --dlsym and friends.
|
||||
@ -187,7 +189,7 @@ AC_DEFUN([_OPAL_SETUP_LIBLTDL_INTERNAL],[
|
||||
AC_MSG_WARN([dynamic shared object loading, by configuring with --disable-dlopen.])
|
||||
AC_MSG_ERROR([Cannot continue])
|
||||
fi
|
||||
CFLAGS="$CFLAGS_save"
|
||||
CFLAGS=$CFLAGS_save
|
||||
|
||||
OPAL_VAR_SCOPE_POP
|
||||
])dnl
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user