1
1

Fix the search for ltdl_advise support in VPATH builds.

This commit was SVN r26006.
Этот коммит содержится в:
Jeff Squyres 2012-02-22 22:03:45 +00:00
родитель da5f290cef
Коммит 94549d024b

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

@ -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-2010 Cisco Systems, Inc. All rights reserved.
dnl Copyright (c) 2006-2012 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.
@ -159,6 +159,7 @@ AC_DEFUN([_OPAL_SETUP_LIBLTDL_INTERNAL],[
CFLAGS_save="$CFLAGS"
CFLAGS="$OMPI_CFLAGS_BEFORE_PICKY $OPAL_VISIBILITY_CFLAGS"
# VPATH support will be included by default in CONFIG_SUBDIR
OMPI_CONFIG_SUBDIR(opal/libltdl, [$ompi_subdir_args],
[HAPPY=1], [HAPPY=0])
if test "$HAPPY" = "1"; then
@ -167,14 +168,17 @@ AC_DEFUN([_OPAL_SETUP_LIBLTDL_INTERNAL],[
CPPFLAGS_save="$CPPFLAGS"
CPPFLAGS="-I."
AC_EGREP_HEADER([lt_dladvise_init], [opal/libltdl/ltdl.h],
# Must specifically mention $srcdir here for VPATH builds
AC_EGREP_HEADER([lt_dladvise_init], [$srcdir/opal/libltdl/ltdl.h],
[OPAL_HAVE_LTDL_ADVISE=1])
CPPFLAGS="$CPPFLAGS_save"
# Arrgh. This is gross. But I can't think of any other
# way to do it. :-(
flags=`$EGREP ^LIBADD_DL opal/libltdl/Makefile | cut -d= -f2-`
OMPI_CHECK_LINKER_FLAGS([opal/libltdl/libtool],
# Must specifically mention $srcdir here for VPATH builds
flags=`$EGREP ^LIBADD_DL $srcdir/opal/libltdl/Makefile | cut -d= -f2-`
# Must specifically mention $srcdir here for VPATH builds
OMPI_CHECK_LINKER_FLAGS([$srcdir/opal/libltdl/libtool],
[-export-dynamic $flags])
WRAPPER_EXTRA_LIBS="$WRAPPER_EXTRA_LIBS $extra_ldflags"