2009-10-24 05:04:35 +04:00
|
|
|
dnl -*- shell-script -*-
|
|
|
|
dnl
|
|
|
|
dnl Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
|
|
dnl University Research and Technology
|
|
|
|
dnl Corporation. All rights reserved.
|
|
|
|
dnl Copyright (c) 2004-2005 The University of Tennessee and The University
|
|
|
|
dnl of Tennessee Research Foundation. All rights
|
|
|
|
dnl reserved.
|
2015-02-24 00:35:12 +03:00
|
|
|
dnl Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
2009-10-24 05:04:35 +04:00
|
|
|
dnl University of Stuttgart. All rights reserved.
|
|
|
|
dnl Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
dnl All rights reserved.
|
2010-09-30 21:53:52 +04:00
|
|
|
dnl Copyright (c) 2006-2010 Oracle and/or its affiliates. All rights reserved.
|
2016-08-31 02:48:05 +03:00
|
|
|
dnl Copyright (c) 2009-2016 Cisco Systems, Inc. All rights reserved.
|
2017-08-31 10:30:27 +03:00
|
|
|
dnl Copyright (c) 2015-2017 Research Organization for Information Science
|
2015-02-03 09:19:22 +03:00
|
|
|
dnl and Technology (RIST). All rights reserved.
|
2016-09-30 22:00:21 +03:00
|
|
|
dnl Copyright (c) 2016 IBM Corporation. All rights reserved.
|
2020-01-02 19:06:10 +03:00
|
|
|
dnl Copyright (c) 2020 Triad National Security, LLC. All rights
|
|
|
|
dnl reserved.
|
2009-10-24 05:04:35 +04:00
|
|
|
dnl $COPYRIGHT$
|
2015-02-24 00:35:12 +03:00
|
|
|
dnl
|
2009-10-24 05:04:35 +04:00
|
|
|
dnl Additional copyrights may follow
|
2015-02-24 00:35:12 +03:00
|
|
|
dnl
|
2009-10-24 05:04:35 +04:00
|
|
|
dnl $HEADER$
|
|
|
|
dnl
|
|
|
|
|
2013-01-29 04:00:43 +04:00
|
|
|
# OPAL_WRAPPER_FLAGS_ADD(variable, new_argument)
|
|
|
|
# ----------------------------------------------
|
2013-12-14 01:24:45 +04:00
|
|
|
# Add new_argument to the list of arguments for variable in the
|
|
|
|
# wrapper compilers, if it's not already there. For example:
|
2013-01-29 04:00:43 +04:00
|
|
|
# OPAL_WRAPPER_FLAGS_ADD(CFLAGS, "-pthread")
|
|
|
|
# will add -pthread to the list of CFLAGS the wrappers use when invoked.
|
|
|
|
#
|
|
|
|
# This macro MAY NOT be invoked from configure macros for MCA components.
|
|
|
|
# See the comment in SETUP_WRAPPER_INIT (below) for more information.
|
|
|
|
AC_DEFUN([OPAL_WRAPPER_FLAGS_ADD], [
|
|
|
|
m4_ifdef([mca_component_configure_active],
|
|
|
|
[m4_fatal([OPAL_WRAPPER_FLAGS_ADD can not be called from a component configure])])
|
2013-12-14 01:24:45 +04:00
|
|
|
m4_if([$1], [CPPFLAGS], [OPAL_FLAGS_APPEND_UNIQ([wrapper_extra_cppflags], [$2])],
|
|
|
|
[$1], [CFLAGS], [OPAL_FLAGS_APPEND_UNIQ([wrapper_extra_cflags], [$2])],
|
|
|
|
[$1], [CXXFLAGS], [OPAL_FLAGS_APPEND_UNIQ([wrapper_extra_cxxflags], [$2])],
|
|
|
|
[$1], [FCFLAGS], [OPAL_FLAGS_APPEND_UNIQ([wrapper_extra_fcflags], [$2])],
|
|
|
|
[$1], [LDFLAGS], [OPAL_FLAGS_APPEND_UNIQ([wrapper_extra_ldflags], [$2])],
|
|
|
|
[$1], [LIBS], [OPAL_FLAGS_APPEND_UNIQ([wrapper_extra_libs], [$2])],
|
2013-01-29 04:00:43 +04:00
|
|
|
[m4_fatal([Unknown wrapper flag type $1])])
|
|
|
|
])
|
|
|
|
|
2009-10-24 05:04:35 +04:00
|
|
|
|
|
|
|
# OPAL_SETUP_WRAPPER_INIT()
|
|
|
|
# -------------------------
|
2015-02-24 00:35:12 +03:00
|
|
|
# Setup wrapper compiler configuration information. Should be called early to
|
|
|
|
# prevent lots of calculations and then an abort for a silly user typo. This
|
2013-01-29 04:00:43 +04:00
|
|
|
# macro works in pair with OPAL_SETUP_WRAPPER_FINAL, which should be called
|
|
|
|
# almost at the end of configure (after the last call to OPAL_WRAPPER_FLAGS_ADD
|
|
|
|
# and after the MCA system has been setup).
|
2009-10-24 05:04:35 +04:00
|
|
|
#
|
2013-01-29 04:00:43 +04:00
|
|
|
# The wrapper compiler arguments are a little fragile and should NOT
|
|
|
|
# be edited by configure directly. Instead, main configure should use
|
|
|
|
# OPAL_WRAPPER_FLAGS_ADD.
|
|
|
|
#
|
|
|
|
# When building statically, the MCA system will add
|
|
|
|
# <framework>_<component>_WRAPPER_EXTRA_{LDFLAGS, LIBS} if set and try
|
|
|
|
# to add <framework>_<component>_{LDFLAGS, LIBS} (if not an external
|
|
|
|
# configure) to the wrapper LDFLAGS and LIBS. Any arguments in
|
|
|
|
# <framework>_<component>_WRAPPER_EXTRA_CPPFLAGS are passed to the
|
|
|
|
# wrapper compilers IF AND ONLY IF the framework was a STOP_AT_FIRST
|
|
|
|
# framework, the component is a static component, and devel headers
|
|
|
|
# are installed. Note that MCA components are ONLY allowed to
|
|
|
|
# (indirectly) influence the wrapper CPPFLAGS, LDFLAGS, and LIBS.
|
|
|
|
# That is, a component may not influence CFLAGS, CXXFLAGS, or FCFLAGS.
|
|
|
|
#
|
|
|
|
# Notes:
|
2018-04-09 18:44:48 +03:00
|
|
|
# * Keep user flags separate as 1) they should have no influence
|
2013-01-29 04:00:43 +04:00
|
|
|
# over build and 2) they don't go through the uniqification we do
|
|
|
|
# with the other wrapper compiler options
|
|
|
|
# * While the user (the person who runs configure) is allowed to set
|
|
|
|
# <flag>_prefix, configure is not. There's no known use case for
|
|
|
|
# doing so, and we'd like to force the issue.
|
2009-10-24 05:04:35 +04:00
|
|
|
AC_DEFUN([OPAL_SETUP_WRAPPER_INIT],[
|
2015-02-24 00:35:12 +03:00
|
|
|
AC_ARG_WITH([wrapper-cflags],
|
2009-10-24 05:04:35 +04:00
|
|
|
[AC_HELP_STRING([--with-wrapper-cflags],
|
|
|
|
[Extra flags to add to CFLAGS when using mpicc])])
|
2015-02-03 09:19:22 +03:00
|
|
|
AS_IF([test "$with_wrapper_cflags" = "yes" || test "$with_wrapper_cflags" = "no"],
|
2013-01-29 04:00:43 +04:00
|
|
|
[AC_MSG_ERROR([--with-wrapper-cflags must have an argument.])])
|
2009-10-24 05:04:35 +04:00
|
|
|
|
2015-02-24 00:35:12 +03:00
|
|
|
AC_ARG_WITH([wrapper-cflags-prefix],
|
2010-09-30 21:53:52 +04:00
|
|
|
[AC_HELP_STRING([--with-wrapper-cflags-prefix],
|
2013-01-29 04:00:43 +04:00
|
|
|
[Extra flags (before user flags) to add to CFLAGS when using mpicc])])
|
2015-02-03 09:19:22 +03:00
|
|
|
AS_IF([test "$with_wrapper_cflags_prefix" = "yes" || test "$with_wrapper_cflags_prefix" = "no"],
|
2013-01-29 04:00:43 +04:00
|
|
|
[AC_MSG_ERROR([--with-wrapper-cflags-prefix must have an argument.])])
|
2010-09-30 21:53:52 +04:00
|
|
|
|
2015-02-24 00:35:12 +03:00
|
|
|
AC_ARG_WITH([wrapper-cxxflags],
|
2009-10-24 05:04:35 +04:00
|
|
|
[AC_HELP_STRING([--with-wrapper-cxxflags],
|
|
|
|
[Extra flags to add to CXXFLAGS when using mpiCC/mpic++])])
|
2015-02-03 09:19:22 +03:00
|
|
|
AS_IF([test "$with_wrapper_cxxflags" = "yes" || test "$with_wrapper_cxxflags" = "no"],
|
2013-01-29 04:00:43 +04:00
|
|
|
[AC_MSG_ERROR([--with-wrapper-cxxflags must have an argument.])])
|
2009-10-24 05:04:35 +04:00
|
|
|
|
2015-02-24 00:35:12 +03:00
|
|
|
AC_ARG_WITH([wrapper-cxxflags-prefix],
|
2010-09-30 21:53:52 +04:00
|
|
|
[AC_HELP_STRING([--with-wrapper-cxxflags-prefix],
|
|
|
|
[Extra flags to add to CXXFLAGS when using mpiCC/mpic++])])
|
2015-02-03 09:19:22 +03:00
|
|
|
AS_IF([test "$with_wrapper_cxxflags_prefix" = "yes" || test "$with_wrapper_cxxflags_prefix" = "no"],
|
2013-01-29 04:00:43 +04:00
|
|
|
[AC_MSG_ERROR([--with-wrapper-cxxflags-prefix must have an argument.])])
|
|
|
|
|
|
|
|
m4_ifdef([project_ompi], [
|
2015-02-24 00:35:12 +03:00
|
|
|
AC_ARG_WITH([wrapper-fcflags],
|
2013-01-29 04:00:43 +04:00
|
|
|
[AC_HELP_STRING([--with-wrapper-fcflags],
|
|
|
|
[Extra flags to add to FCFLAGS when using mpifort])])
|
2015-02-03 09:19:22 +03:00
|
|
|
AS_IF([test "$with_wrapper_fcflags" = "yes" || test "$with_wrapper_fcflags" = "no"],
|
2013-01-29 04:00:43 +04:00
|
|
|
[AC_MSG_ERROR([--with-wrapper-fcflags must have an argument.])])
|
|
|
|
|
2015-02-24 00:35:12 +03:00
|
|
|
AC_ARG_WITH([wrapper-fcflags-prefix],
|
2013-01-29 04:00:43 +04:00
|
|
|
[AC_HELP_STRING([--with-wrapper-fcflags-prefix],
|
|
|
|
[Extra flags (before user flags) to add to FCFLAGS when using mpifort])])
|
2015-02-03 09:19:22 +03:00
|
|
|
AS_IF([test "$with_wrapper_fcflags_prefix" = "yes" || test "$with_wrapper_fcflags_prefix" = "no"],
|
2013-01-29 04:00:43 +04:00
|
|
|
[AC_MSG_ERROR([--with-wrapper-fcflags-prefix must have an argument.])])])
|
2009-10-24 05:04:35 +04:00
|
|
|
|
2015-02-24 00:35:12 +03:00
|
|
|
AC_ARG_WITH([wrapper-ldflags],
|
2009-10-24 05:04:35 +04:00
|
|
|
[AC_HELP_STRING([--with-wrapper-ldflags],
|
|
|
|
[Extra flags to add to LDFLAGS when using wrapper compilers])])
|
2015-02-03 09:19:22 +03:00
|
|
|
AS_IF([test "$with_wrapper_ldflags" = "yes" || test "$with_wrapper_ldflags" = "no"],
|
2013-01-29 04:00:43 +04:00
|
|
|
[AC_MSG_ERROR([--with-wrapper-ldflags must have an argument.])])
|
2009-10-24 05:04:35 +04:00
|
|
|
|
2015-02-24 00:35:12 +03:00
|
|
|
AC_ARG_WITH([wrapper-libs],
|
2009-10-24 05:04:35 +04:00
|
|
|
[AC_HELP_STRING([--with-wrapper-libs],
|
|
|
|
[Extra flags to add to LIBS when using wrapper compilers])])
|
2015-02-03 09:19:22 +03:00
|
|
|
AS_IF([test "$with_wrapper_libs" = "yes" || test "$with_wrapper_libs" = "no"],
|
2013-01-29 04:00:43 +04:00
|
|
|
[AC_MSG_ERROR([--with-wrapper-libs must have an argument.])])
|
2013-05-11 04:49:17 +04:00
|
|
|
|
|
|
|
AC_MSG_CHECKING([if want wrapper compiler rpath support])
|
|
|
|
AC_ARG_ENABLE([wrapper-rpath],
|
|
|
|
[AS_HELP_STRING([--enable-wrapper-rpath],
|
2013-12-14 02:20:10 +04:00
|
|
|
[enable rpath/runpath support in the wrapper compilers (default=yes)])])
|
2013-05-11 04:49:17 +04:00
|
|
|
AS_IF([test "$enable_wrapper_rpath" != "no"], [enable_wrapper_rpath=yes])
|
|
|
|
AC_MSG_RESULT([$enable_wrapper_rpath])
|
2017-04-20 19:45:47 +03:00
|
|
|
|
|
|
|
AC_MSG_CHECKING([if want wrapper compiler runpath support])
|
|
|
|
AC_ARG_ENABLE([wrapper-runpath],
|
2018-04-12 09:06:32 +03:00
|
|
|
[AS_HELP_STRING([--enable-wrapper-runpath],
|
2017-04-20 19:45:47 +03:00
|
|
|
[enable runpath in the wrapper compilers if linker supports it (default: enabled, unless wrapper-rpath is disabled).])])
|
|
|
|
AS_IF([test "$enable_wrapper_runpath" != "no"], [enable_wrapper_runpath=yes])
|
|
|
|
AC_MSG_RESULT([$enable_wrapper_runpath])
|
|
|
|
|
|
|
|
AS_IF([test "$enable_wrapper_rpath" = "no" && test "$enable_wrapper_runpath" = "yes"],
|
|
|
|
[AC_MSG_ERROR([--enable-wrapper-runpath cannot be selected with --disable-wrapper-rpath])])
|
2009-10-24 05:04:35 +04:00
|
|
|
])
|
|
|
|
|
2017-09-01 03:08:26 +03:00
|
|
|
# OPAL_LIBTOOL_CONFIG(libtool-variable, result-variable,
|
|
|
|
# libtool-tag, extra-code)
|
|
|
|
# Retrieve information from the generated libtool
|
|
|
|
AC_DEFUN([OPAL_LIBTOOL_CONFIG],[
|
2017-08-31 10:30:27 +03:00
|
|
|
OPAL_VAR_SCOPE_PUSH([rpath_script rpath_outfile])
|
|
|
|
# Output goes into globally-visible variable. Run this in a
|
2013-12-14 01:24:45 +04:00
|
|
|
# sub-process so that we don't pollute the current process
|
|
|
|
# environment.
|
|
|
|
rpath_script=conftest.$$.sh
|
|
|
|
rpath_outfile=conftest.$$.out
|
|
|
|
rm -f $rpath_script $rpath_outfile
|
2013-12-14 01:40:03 +04:00
|
|
|
cat > $rpath_script <<EOF
|
2013-12-14 01:24:45 +04:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Slurp in the libtool config into my environment
|
|
|
|
|
|
|
|
# Apparently, "libtoool --config" calls "exit", so we can't source it
|
|
|
|
# (because if script A sources script B, and B calls "exit", then both
|
|
|
|
# B and A will exit). Instead, we have to send the output to a file
|
|
|
|
# and then source that.
|
2017-08-31 10:30:27 +03:00
|
|
|
$OPAL_TOP_BUILDDIR/libtool $3 --config > $rpath_outfile
|
2013-12-14 01:24:45 +04:00
|
|
|
|
|
|
|
chmod +x $rpath_outfile
|
|
|
|
. ./$rpath_outfile
|
|
|
|
rm -f $rpath_outfile
|
|
|
|
|
2017-08-31 10:30:27 +03:00
|
|
|
# Evaluate \$$1, and substitute in LIBDIR for \$libdir
|
|
|
|
$4
|
|
|
|
flags="\`eval echo \$$1\`"
|
2013-12-14 01:24:45 +04:00
|
|
|
echo \$flags
|
|
|
|
|
|
|
|
# Done
|
|
|
|
exit 0
|
|
|
|
EOF
|
|
|
|
chmod +x $rpath_script
|
2017-08-31 10:30:27 +03:00
|
|
|
$2=`./$rpath_script`
|
2013-12-14 01:24:45 +04:00
|
|
|
rm -f $rpath_script
|
2017-08-31 10:30:27 +03:00
|
|
|
OPAL_VAR_SCOPE_POP
|
|
|
|
])
|
|
|
|
|
|
|
|
# Check to see whether the linker supports DT_RPATH. We'll need to
|
|
|
|
# use config.rpath to find the flags that it needs, if it does (see
|
|
|
|
# comments in config.rpath for an explanation of where it came from).
|
|
|
|
AC_DEFUN([OPAL_SETUP_RPATH],[
|
|
|
|
OPAL_VAR_SCOPE_PUSH([rpath_libdir_save])
|
|
|
|
AC_MSG_CHECKING([if linker supports RPATH])
|
2017-09-01 03:08:26 +03:00
|
|
|
OPAL_LIBTOOL_CONFIG([hardcode_libdir_flag_spec],[rpath_args],[],[libdir=LIBDIR])
|
2013-12-14 01:24:45 +04:00
|
|
|
|
|
|
|
AS_IF([test -n "$rpath_args"],
|
|
|
|
[WRAPPER_RPATH_SUPPORT=rpath
|
2017-09-01 03:08:26 +03:00
|
|
|
OPAL_LIBTOOL_CONFIG([hardcode_libdir_flag_spec],[rpath_fc_args],[--tag=FC],[libdir=LIBDIR])
|
2016-06-06 05:54:12 +03:00
|
|
|
AC_MSG_RESULT([yes ($rpath_args + $rpath_fc_args)])],
|
2013-12-14 01:24:45 +04:00
|
|
|
[WRAPPER_RPATH_SUPPORT=unnecessary
|
|
|
|
AC_MSG_RESULT([yes (no extra flags needed)])])
|
|
|
|
|
|
|
|
OPAL_VAR_SCOPE_POP
|
|
|
|
|
|
|
|
# If we found RPATH support, check for RUNPATH support, too
|
|
|
|
AS_IF([test "$WRAPPER_RPATH_SUPPORT" = "rpath"],
|
|
|
|
[OPAL_SETUP_RUNPATH])
|
|
|
|
])
|
|
|
|
|
|
|
|
# Check to see if the linker supports the DT_RUNPATH flags via
|
|
|
|
# --enable-new-dtags (a GNU ld-specific option). These flags are more
|
|
|
|
# social than DT_RPATH -- they can be overridden by LD_LIBRARY_PATH
|
2015-02-24 00:35:12 +03:00
|
|
|
# (where a regular DT_RPATH cannot).
|
2013-12-14 01:24:45 +04:00
|
|
|
#
|
|
|
|
# If DT_RUNPATH is supported, then we'll use *both* the RPATH and
|
|
|
|
# RUNPATH flags in the LDFLAGS.
|
|
|
|
AC_DEFUN([OPAL_SETUP_RUNPATH],[
|
2017-08-31 10:30:27 +03:00
|
|
|
OPAL_VAR_SCOPE_PUSH([LDFLAGS_save wl_fc])
|
2013-12-14 01:24:45 +04:00
|
|
|
|
|
|
|
# Set the output in $runpath_args
|
|
|
|
runpath_args=
|
2020-01-02 19:06:10 +03:00
|
|
|
runpath_fc_args=
|
2013-12-14 01:24:45 +04:00
|
|
|
LDFLAGS_save=$LDFLAGS
|
|
|
|
LDFLAGS="$LDFLAGS -Wl,--enable-new-dtags"
|
2017-04-20 19:45:47 +03:00
|
|
|
AS_IF([test x"$enable_wrapper_runpath" = x"yes"],
|
|
|
|
[AC_LANG_PUSH([C])
|
|
|
|
AC_MSG_CHECKING([if linker supports RUNPATH])
|
|
|
|
AC_LINK_IFELSE([AC_LANG_PROGRAM([], [return 7;])],
|
|
|
|
[WRAPPER_RPATH_SUPPORT=runpath
|
|
|
|
runpath_args="-Wl,--enable-new-dtags"
|
|
|
|
AC_MSG_RESULT([yes (-Wl,--enable-new-dtags)])],
|
|
|
|
[AC_MSG_RESULT([no])])
|
2020-01-02 19:06:10 +03:00
|
|
|
AC_LANG_POP([C])
|
|
|
|
m4_ifdef([project_ompi],
|
|
|
|
[OPAL_LIBTOOL_CONFIG([wl],[wl_fc],[--tag=FC],[])
|
|
|
|
LDFLAGS="$LDFLAGS_save ${wl_fc}--enable-new-dtags"
|
|
|
|
AC_LANG_PUSH([Fortran])
|
2020-01-25 00:42:00 +03:00
|
|
|
AC_LINK_IFELSE([AC_LANG_SOURCE([[program test
|
|
|
|
end program]])],
|
2020-01-02 19:06:10 +03:00
|
|
|
[runpath_fc_args="${wl_fc}--enable-new-dtags"
|
|
|
|
AC_MSG_RESULT([yes (-Wl,--enable-new-dtags)])],
|
|
|
|
[AC_MSG_RESULT([no])])
|
|
|
|
AC_LANG_POP([Fortran])])])
|
|
|
|
|
2013-12-14 01:24:45 +04:00
|
|
|
LDFLAGS=$LDFLAGS_save
|
|
|
|
|
|
|
|
OPAL_VAR_SCOPE_POP
|
|
|
|
])
|
|
|
|
|
|
|
|
# Called to find all -L arguments in the LDFLAGS and add in RPATH args
|
|
|
|
# for each of them. Then also add in an RPATH for @{libdir} (which
|
|
|
|
# will be replaced by the wrapper compile to the installdir libdir at
|
|
|
|
# runtime), and the RUNPATH args, if we have them.
|
2016-06-06 05:54:12 +03:00
|
|
|
AC_DEFUN([RPATHIFY_LDFLAGS_INTERNAL],[
|
2013-12-14 01:24:45 +04:00
|
|
|
OPAL_VAR_SCOPE_PUSH([rpath_out rpath_dir rpath_tmp])
|
2014-02-05 00:15:32 +04:00
|
|
|
AS_IF([test "$enable_wrapper_rpath" = "yes" && test "$WRAPPER_RPATH_SUPPORT" != "disabled" && test "$WRAPPER_RPATH_SUPPORT" != "unnecessary"], [
|
2014-02-04 23:44:08 +04:00
|
|
|
rpath_out=""
|
2013-12-14 01:24:45 +04:00
|
|
|
for val in ${$1}; do
|
|
|
|
case $val in
|
|
|
|
-L*)
|
|
|
|
rpath_dir=`echo $val | cut -c3-`
|
2016-06-06 05:54:12 +03:00
|
|
|
rpath_tmp=`echo ${$2} | sed -e s@LIBDIR@$rpath_dir@`
|
2013-12-14 01:24:45 +04:00
|
|
|
rpath_out="$rpath_out $rpath_tmp"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
|
|
|
# Now add in the RPATH args for @{libdir}, and the RUNPATH args
|
2016-06-06 05:54:12 +03:00
|
|
|
rpath_tmp=`echo ${$2} | sed -e s/LIBDIR/@{libdir}/`
|
2016-01-13 05:58:14 +03:00
|
|
|
$1="${$1} $rpath_out $rpath_tmp ${$3}"
|
2013-12-14 01:24:45 +04:00
|
|
|
])
|
|
|
|
OPAL_VAR_SCOPE_POP
|
|
|
|
])
|
|
|
|
|
2016-01-13 05:58:14 +03:00
|
|
|
AC_DEFUN([RPATHIFY_LDFLAGS],[RPATHIFY_LDFLAGS_INTERNAL([$1], [rpath_args], [runpath_args])])
|
2016-06-06 05:54:12 +03:00
|
|
|
|
2016-07-20 06:09:56 +03:00
|
|
|
AC_DEFUN([RPATHIFY_FC_LDFLAGS],[RPATHIFY_LDFLAGS_INTERNAL([$1], [rpath_fc_args], [runpath_fc_args])])
|
2016-06-06 05:54:12 +03:00
|
|
|
|
2015-02-24 00:54:50 +03:00
|
|
|
dnl
|
|
|
|
dnl Avoid some repetitive code below
|
|
|
|
dnl
|
|
|
|
AC_DEFUN([_OPAL_SETUP_WRAPPER_FINAL_PKGCONFIG],[
|
|
|
|
AC_MSG_CHECKING([for $1 pkg-config LDFLAGS])
|
|
|
|
$1_PKG_CONFIG_LDFLAGS=`echo "$$1_WRAPPER_EXTRA_LDFLAGS" | sed -e 's/@{libdir}/\${libdir}/g'`
|
|
|
|
AC_SUBST([$1_PKG_CONFIG_LDFLAGS])
|
|
|
|
AC_MSG_RESULT([$$1_PKG_CONFIG_LDFLAGS])
|
|
|
|
])
|
|
|
|
|
|
|
|
|
2013-01-29 04:00:43 +04:00
|
|
|
# OPAL_SETUP_WRAPPER_FINAL()
|
|
|
|
# ---------------------------
|
2009-10-24 05:04:35 +04:00
|
|
|
AC_DEFUN([OPAL_SETUP_WRAPPER_FINAL],[
|
2013-12-14 01:24:45 +04:00
|
|
|
|
|
|
|
# Setup RPATH support, if desired
|
|
|
|
WRAPPER_RPATH_SUPPORT=disabled
|
|
|
|
AS_IF([test "$enable_wrapper_rpath" = "yes"],
|
|
|
|
[OPAL_SETUP_RPATH])
|
2015-02-03 09:19:22 +03:00
|
|
|
AS_IF([test "$enable_wrapper_rpath" = "yes" && test "$WRAPPER_RPATH_SUPPORT" = "disabled"],
|
2013-12-14 01:24:45 +04:00
|
|
|
[AC_MSG_WARN([RPATH support requested but not available])
|
|
|
|
AC_MSG_ERROR([Cannot continue])])
|
|
|
|
|
2015-02-20 19:34:15 +03:00
|
|
|
# Note that we have to setup <package>_PKG_CONFIG_LDFLAGS for the
|
|
|
|
# pkg-config files to parallel the
|
|
|
|
# <package>_WRAPPER_EXTRA_LDFLAGS. This is because pkg-config
|
|
|
|
# will not understand the @{libdir} notation in
|
|
|
|
# *_WRAPPER_EXTRA_LDFLAGS; we have to translate it to ${libdir}.
|
|
|
|
|
2013-12-14 01:24:45 +04:00
|
|
|
# We now have all relevant flags. Substitute them in everywhere.
|
2013-01-29 04:00:43 +04:00
|
|
|
m4_ifdef([project_opal], [
|
|
|
|
AC_MSG_CHECKING([for OPAL CPPFLAGS])
|
2013-02-13 04:33:05 +04:00
|
|
|
if test "$WANT_INSTALL_HEADERS" = "1" ; then
|
|
|
|
OPAL_WRAPPER_EXTRA_CPPFLAGS='-I${includedir}/openmpi'
|
|
|
|
fi
|
|
|
|
OPAL_WRAPPER_EXTRA_CPPFLAGS="$OPAL_WRAPPER_EXTRA_CPPFLAGS $opal_mca_wrapper_extra_cppflags $wrapper_extra_cppflags $with_wrapper_cppflags"
|
2013-01-29 04:00:43 +04:00
|
|
|
AC_SUBST([OPAL_WRAPPER_EXTRA_CPPFLAGS])
|
|
|
|
AC_MSG_RESULT([$OPAL_WRAPPER_EXTRA_CPPFLAGS])
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([for OPAL CFLAGS])
|
|
|
|
OPAL_WRAPPER_EXTRA_CFLAGS="$wrapper_extra_cflags $with_wrapper_cflags"
|
|
|
|
AC_SUBST([OPAL_WRAPPER_EXTRA_CFLAGS])
|
|
|
|
AC_MSG_RESULT([$OPAL_WRAPPER_EXTRA_CFLAGS])
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([for OPAL CFLAGS_PREFIX])
|
|
|
|
OPAL_WRAPPER_EXTRA_CFLAGS_PREFIX="$with_wrapper_cflags_prefix"
|
|
|
|
AC_SUBST([OPAL_WRAPPER_EXTRA_CFLAGS_PREFIX])
|
|
|
|
AC_MSG_RESULT([$OPAL_WRAPPER_EXTRA_CFLAGS_PREFIX])
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([for OPAL CXXFLAGS])
|
|
|
|
OPAL_WRAPPER_EXTRA_CXXFLAGS="$wrapper_extra_cxxflags $with_wrapper_cxxflags"
|
|
|
|
AC_SUBST([OPAL_WRAPPER_EXTRA_CXXFLAGS])
|
|
|
|
AC_MSG_RESULT([$OPAL_WRAPPER_EXTRA_CXXFLAGS])
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([for OPAL CXXFLAGS_PREFIX])
|
|
|
|
OPAL_WRAPPER_EXTRA_CXXFLAGS_PREFIX="$with_wrapper_cxxflags_prefix"
|
|
|
|
AC_SUBST([OPAL_WRAPPER_EXTRA_CXXFLAGS_PREFIX])
|
|
|
|
AC_MSG_RESULT([$OPAL_WRAPPER_EXTRA_CXXFLAGS_PREFIX])
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([for OPAL LDFLAGS])
|
|
|
|
OPAL_WRAPPER_EXTRA_LDFLAGS="$opal_mca_wrapper_extra_ldflags $wrapper_extra_ldflags $with_wrapper_ldflags"
|
2013-12-14 01:24:45 +04:00
|
|
|
RPATHIFY_LDFLAGS([OPAL_WRAPPER_EXTRA_LDFLAGS])
|
2013-01-29 04:00:43 +04:00
|
|
|
AC_SUBST([OPAL_WRAPPER_EXTRA_LDFLAGS])
|
|
|
|
AC_MSG_RESULT([$OPAL_WRAPPER_EXTRA_LDFLAGS])
|
|
|
|
|
2015-02-20 19:34:15 +03:00
|
|
|
# Convert @{libdir} to ${libdir} for pkg-config
|
2015-02-24 00:54:50 +03:00
|
|
|
_OPAL_SETUP_WRAPPER_FINAL_PKGCONFIG([OPAL])
|
2015-02-20 19:34:15 +03:00
|
|
|
|
2013-01-29 04:00:43 +04:00
|
|
|
# wrapper_extra_libs doesn't really get populated until after the mca system runs
|
|
|
|
# since most of the libs come from libtool. So this is the first time we can
|
|
|
|
# uniq them. ROMIO in particular adds lots of things already in wrapper_extra_libs,
|
|
|
|
# and this cleans the duplication up a bunch. Always add everything the user
|
|
|
|
# asked for, as they know better than us.
|
|
|
|
AC_MSG_CHECKING([for OPAL LIBS])
|
|
|
|
OPAL_WRAPPER_EXTRA_LIBS="$opal_mca_wrapper_extra_libs"
|
2013-12-14 01:24:45 +04:00
|
|
|
OPAL_FLAGS_APPEND_UNIQ([OPAL_WRAPPER_EXTRA_LIBS], [$wrapper_extra_libs])
|
2013-01-29 04:00:43 +04:00
|
|
|
OPAL_WRAPPER_EXTRA_LIBS="$OPAL_WRAPPER_EXTRA_LIBS $with_wrapper_libs"
|
|
|
|
AC_SUBST([OPAL_WRAPPER_EXTRA_LIBS])
|
|
|
|
AC_MSG_RESULT([$OPAL_WRAPPER_EXTRA_LIBS])
|
|
|
|
])
|
|
|
|
|
|
|
|
m4_ifdef([project_orte], [
|
|
|
|
AC_MSG_CHECKING([for ORTE CPPFLAGS])
|
2013-02-13 04:33:05 +04:00
|
|
|
if test "$WANT_INSTALL_HEADERS" = "1" ; then
|
|
|
|
ORTE_WRAPPER_EXTRA_CPPFLAGS='-I${includedir}/openmpi'
|
|
|
|
fi
|
|
|
|
ORTE_WRAPPER_EXTRA_CPPFLAGS="$ORTE_WRAPPER_EXTRA_CPPFLAGS $orte_mca_wrapper_extra_cppflags $wrapper_extra_cppflags $with_wrapper_cppflags"
|
2013-01-29 04:00:43 +04:00
|
|
|
AC_SUBST([ORTE_WRAPPER_EXTRA_CPPFLAGS])
|
|
|
|
AC_MSG_RESULT([$ORTE_WRAPPER_EXTRA_CPPFLAGS])
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([for ORTE CFLAGS])
|
|
|
|
ORTE_WRAPPER_EXTRA_CFLAGS="$wrapper_extra_cflags $with_wrapper_cflags"
|
|
|
|
AC_SUBST([ORTE_WRAPPER_EXTRA_CFLAGS])
|
|
|
|
AC_MSG_RESULT([$ORTE_WRAPPER_EXTRA_CFLAGS])
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([for ORTE CFLAGS_PREFIX])
|
|
|
|
ORTE_WRAPPER_EXTRA_CFLAGS_PREFIX="$with_wrapper_cflags_prefix"
|
|
|
|
AC_SUBST([ORTE_WRAPPER_EXTRA_CFLAGS_PREFIX])
|
|
|
|
AC_MSG_RESULT([$ORTE_WRAPPER_EXTRA_CFLAGS_PREFIX])
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([for ORTE LDFLAGS])
|
|
|
|
ORTE_WRAPPER_EXTRA_LDFLAGS="$orte_mca_wrapper_extra_ldflags $wrapper_extra_ldflags $with_wrapper_ldflags"
|
2013-12-14 01:24:45 +04:00
|
|
|
RPATHIFY_LDFLAGS([ORTE_WRAPPER_EXTRA_LDFLAGS])
|
2013-01-29 04:00:43 +04:00
|
|
|
AC_SUBST([ORTE_WRAPPER_EXTRA_LDFLAGS])
|
|
|
|
AC_MSG_RESULT([$ORTE_WRAPPER_EXTRA_LDFLAGS])
|
|
|
|
|
2015-02-20 19:34:15 +03:00
|
|
|
# Convert @{libdir} to ${libdir} for pkg-config
|
2015-02-24 00:54:50 +03:00
|
|
|
_OPAL_SETUP_WRAPPER_FINAL_PKGCONFIG([ORTE])
|
2015-02-20 19:34:15 +03:00
|
|
|
|
2013-01-29 04:00:43 +04:00
|
|
|
AC_MSG_CHECKING([for ORTE LIBS])
|
|
|
|
ORTE_WRAPPER_EXTRA_LIBS="$orte_mca_wrapper_extra_libs"
|
2013-12-14 01:24:45 +04:00
|
|
|
OPAL_FLAGS_APPEND_UNIQ([ORTE_WRAPPER_EXTRA_LIBS], [$wrapper_extra_libs])
|
2013-01-29 04:00:43 +04:00
|
|
|
ORTE_WRAPPER_EXTRA_LIBS="$ORTE_WRAPPER_EXTRA_LIBS $with_wrapper_libs"
|
|
|
|
AC_SUBST([ORTE_WRAPPER_EXTRA_LIBS])
|
|
|
|
AC_MSG_RESULT([$ORTE_WRAPPER_EXTRA_LIBS])
|
|
|
|
|
2013-01-30 03:01:51 +04:00
|
|
|
m4_ifdef([project_ompi], [], [
|
2013-02-13 04:33:05 +04:00
|
|
|
# these are used by orte_info/ompi_info (yes, they are named poorly)
|
2013-01-30 03:01:51 +04:00
|
|
|
AC_DEFINE_UNQUOTED(WRAPPER_EXTRA_CFLAGS, "$ORTE_WRAPPER_EXTRA_CFLAGS",
|
|
|
|
[Additional CFLAGS to pass through the wrapper compilers])
|
|
|
|
AC_DEFINE_UNQUOTED(WRAPPER_EXTRA_CFLAGS_PREFIX, "$ORTE_WRAPPER_EXTRA_CFLAGS_PREFIX",
|
|
|
|
[Additional CFLAGS_PREFIX to pass through the wrapper compilers])
|
|
|
|
AC_DEFINE_UNQUOTED(WRAPPER_EXTRA_LDFLAGS, "$ORTE_WRAPPER_EXTRA_LDFLAGS",
|
|
|
|
[Additional LDFLAGS to pass through the wrapper compilers])
|
|
|
|
AC_DEFINE_UNQUOTED(WRAPPER_EXTRA_LIBS, "$ORTE_WRAPPER_EXTRA_LIBS",
|
|
|
|
[Additional LIBS to pass through the wrapper compilers])
|
|
|
|
])
|
2013-01-29 04:00:43 +04:00
|
|
|
])
|
|
|
|
|
|
|
|
m4_ifdef([project_ompi], [
|
|
|
|
AC_MSG_CHECKING([for OMPI CPPFLAGS])
|
2013-02-13 04:33:05 +04:00
|
|
|
if test "$WANT_INSTALL_HEADERS" = "1" ; then
|
|
|
|
OMPI_WRAPPER_EXTRA_CPPFLAGS='-I${includedir}/openmpi'
|
|
|
|
fi
|
|
|
|
OMPI_WRAPPER_EXTRA_CPPFLAGS="$OMPI_WRAPPER_EXTRA_CPPFLAGS $ompi_mca_wrapper_extra_cppflags $wrapper_extra_cppflags $with_wrapper_cppflags"
|
2013-01-29 04:00:43 +04:00
|
|
|
AC_SUBST([OMPI_WRAPPER_EXTRA_CPPFLAGS])
|
|
|
|
AC_MSG_RESULT([$OMPI_WRAPPER_EXTRA_CPPFLAGS])
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([for OMPI CFLAGS])
|
|
|
|
OMPI_WRAPPER_EXTRA_CFLAGS="$wrapper_extra_cflags $with_wrapper_cflags"
|
|
|
|
AC_SUBST([OMPI_WRAPPER_EXTRA_CFLAGS])
|
|
|
|
AC_MSG_RESULT([$OMPI_WRAPPER_EXTRA_CFLAGS])
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([for OMPI CFLAGS_PREFIX])
|
|
|
|
OMPI_WRAPPER_EXTRA_CFLAGS_PREFIX="$with_wrapper_cflags_prefix"
|
|
|
|
AC_SUBST([OMPI_WRAPPER_EXTRA_CFLAGS_PREFIX])
|
|
|
|
AC_MSG_RESULT([$OMPI_WRAPPER_EXTRA_CFLAGS_PREFIX])
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([for OMPI CXXFLAGS])
|
|
|
|
OMPI_WRAPPER_EXTRA_CXXFLAGS="$wrapper_extra_cxxflags $with_wrapper_cxxflags"
|
|
|
|
AC_SUBST([OMPI_WRAPPER_EXTRA_CXXFLAGS])
|
|
|
|
AC_MSG_RESULT([$OMPI_WRAPPER_EXTRA_CXXFLAGS])
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([for OMPI CXXFLAGS_PREFIX])
|
|
|
|
OMPI_WRAPPER_EXTRA_CXXFLAGS_PREFIX="$with_wrapper_cxxflags_prefix"
|
|
|
|
AC_SUBST([OMPI_WRAPPER_EXTRA_CXXFLAGS_PREFIX])
|
|
|
|
AC_MSG_RESULT([$OMPI_WRAPPER_EXTRA_CXXFLAGS_PREFIX])
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([for OMPI FCFLAGS])
|
|
|
|
OMPI_WRAPPER_EXTRA_FCFLAGS="$wrapper_extra_fcflags $with_wrapper_fcflags"
|
2013-02-13 04:33:05 +04:00
|
|
|
if test "$OMPI_FC_MODULE_FLAG" != "" ; then
|
|
|
|
OMPI_WRAPPER_EXTRA_FCFLAGS="$OMPI_WRAPPER_EXTRA_FCFLAGS $OMPI_FC_MODULE_FLAG"'${libdir}'
|
|
|
|
fi
|
2013-01-29 04:00:43 +04:00
|
|
|
AC_SUBST([OMPI_WRAPPER_EXTRA_FCFLAGS])
|
|
|
|
AC_MSG_RESULT([$OMPI_WRAPPER_EXTRA_FCFLAGS])
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([for OMPI FCFLAGS_PREFIX])
|
|
|
|
OMPI_WRAPPER_EXTRA_FCFLAGS_PREFIX="$with_wrapper_fcflags_prefix"
|
|
|
|
AC_SUBST([OMPI_WRAPPER_EXTRA_FCFLAGS_PREFIX])
|
|
|
|
AC_MSG_RESULT([$OMPI_WRAPPER_EXTRA_FCFLAGS_PREFIX])
|
|
|
|
|
|
|
|
AC_MSG_CHECKING([for OMPI LDFLAGS])
|
|
|
|
OMPI_WRAPPER_EXTRA_LDFLAGS="$ompi_mca_wrapper_extra_ldflags $wrapper_extra_ldflags $with_wrapper_ldflags"
|
2016-06-06 05:54:12 +03:00
|
|
|
OMPI_WRAPPER_EXTRA_FC_LDFLAGS=$OMPI_WRAPPER_EXTRA_LDFLAGS
|
2013-12-14 01:24:45 +04:00
|
|
|
RPATHIFY_LDFLAGS([OMPI_WRAPPER_EXTRA_LDFLAGS])
|
2013-01-29 04:00:43 +04:00
|
|
|
AC_SUBST([OMPI_WRAPPER_EXTRA_LDFLAGS])
|
|
|
|
AC_MSG_RESULT([$OMPI_WRAPPER_EXTRA_LDFLAGS])
|
2016-06-06 05:54:12 +03:00
|
|
|
RPATHIFY_FC_LDFLAGS([OMPI_WRAPPER_EXTRA_FC_LDFLAGS])
|
|
|
|
AC_SUBST([OMPI_WRAPPER_EXTRA_FC_LDFLAGS])
|
2013-01-29 04:00:43 +04:00
|
|
|
|
2015-02-20 19:34:15 +03:00
|
|
|
# Convert @{libdir} to ${libdir} for pkg-config
|
2015-02-24 00:54:50 +03:00
|
|
|
_OPAL_SETUP_WRAPPER_FINAL_PKGCONFIG([OMPI])
|
2015-02-20 19:34:15 +03:00
|
|
|
|
2013-01-29 04:00:43 +04:00
|
|
|
AC_MSG_CHECKING([for OMPI LIBS])
|
|
|
|
OMPI_WRAPPER_EXTRA_LIBS="$ompi_mca_wrapper_extra_libs"
|
2013-12-14 01:24:45 +04:00
|
|
|
OPAL_FLAGS_APPEND_UNIQ([OMPI_WRAPPER_EXTRA_LIBS], [$wrapper_extra_libs])
|
2013-01-29 04:00:43 +04:00
|
|
|
OMPI_WRAPPER_EXTRA_LIBS="$OMPI_WRAPPER_EXTRA_LIBS $with_wrapper_libs"
|
2016-01-12 03:33:51 +03:00
|
|
|
OPAL_FLAGS_APPEND_UNIQ([OMPI_WRAPPER_EXTRA_LIBS], [$LIBS])
|
2013-01-29 04:00:43 +04:00
|
|
|
AC_SUBST([OMPI_WRAPPER_EXTRA_LIBS])
|
|
|
|
AC_MSG_RESULT([$OMPI_WRAPPER_EXTRA_LIBS])
|
|
|
|
|
|
|
|
# language binding support. C++ is a bit different, as the
|
|
|
|
# compiler should work even if there is no MPI C++ bindings
|
|
|
|
# support. However, we do want it to fail if there is no C++
|
|
|
|
# compiler.
|
|
|
|
if test "$WANT_MPI_CXX_SUPPORT" = "1" ; then
|
2016-09-30 22:00:21 +03:00
|
|
|
OMPI_WRAPPER_CXX_LIB="-l${with_libmpi_name}_cxx"
|
2013-01-29 04:00:43 +04:00
|
|
|
OMPI_WRAPPER_CXX_REQUIRED_FILE=""
|
|
|
|
elif test "$CXX" = "none"; then
|
|
|
|
OMPI_WRAPPER_CXX_LIB=""
|
|
|
|
OMPI_WRAPPER_CXX_REQUIRED_FILE="not supported"
|
|
|
|
else
|
|
|
|
OMPI_WRAPPER_CXX_LIB=""
|
|
|
|
OMPI_WRAPPER_CXX_REQUIRED_FILE=""
|
|
|
|
fi
|
|
|
|
AC_SUBST([OMPI_WRAPPER_CXX_LIB])
|
|
|
|
AC_SUBST([OMPI_WRAPPER_CXX_REQUIRED_FILE])
|
|
|
|
|
2014-10-06 14:56:47 +04:00
|
|
|
if test "$OMPI_TRY_FORTRAN_BINDINGS" -gt "$OMPI_FORTRAN_NO_BINDINGS" ; then
|
2013-01-29 04:00:43 +04:00
|
|
|
OMPI_WRAPPER_FORTRAN_REQUIRED_FILE=""
|
|
|
|
else
|
|
|
|
OMPI_WRAPPER_FORTRAN_REQUIRED_FILE="not supported"
|
|
|
|
fi
|
|
|
|
AC_SUBST([OMPI_WRAPPER_FORTRAN_REQUIRED_FILE])
|
|
|
|
|
|
|
|
# For script-based wrappers that don't do relocatable binaries.
|
|
|
|
# Don't use if you don't have to.
|
|
|
|
exec_prefix_save="${exec_prefix}"
|
|
|
|
test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
|
|
|
|
eval "OMPI_WRAPPER_INCLUDEDIR=\"${includedir}\""
|
|
|
|
eval "OMPI_WRAPPER_LIBDIR=\"${libdir}\""
|
|
|
|
exec_prefix="${exec_prefix_save}"
|
|
|
|
AC_SUBST([OMPI_WRAPPER_INCLUDEDIR])
|
|
|
|
AC_SUBST([OMPI_WRAPPER_LIBDIR])
|
|
|
|
|
|
|
|
# if wrapper compilers were requested, set the ompi one up
|
|
|
|
if test "$WANT_SCRIPT_WRAPPER_COMPILERS" = "1" ; then
|
|
|
|
AC_CONFIG_FILES([ompi/tools/wrappers/ompi_wrapper_script],
|
|
|
|
[chmod +x ompi/tools/wrappers/ompi_wrapper_script])
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_DEFINE_UNQUOTED(WRAPPER_EXTRA_CFLAGS, "$OMPI_WRAPPER_EXTRA_CFLAGS",
|
|
|
|
[Additional CFLAGS to pass through the wrapper compilers])
|
|
|
|
AC_DEFINE_UNQUOTED(WRAPPER_EXTRA_CFLAGS_PREFIX, "$OMPI_WRAPPER_EXTRA_CFLAGS_PREFIX",
|
|
|
|
[Additional CFLAGS_PREFIX to pass through the wrapper compilers])
|
|
|
|
AC_DEFINE_UNQUOTED(WRAPPER_EXTRA_CXXFLAGS, "$OMPI_WRAPPER_EXTRA_CXXFLAGS",
|
|
|
|
[Additional CXXFLAGS to pass through the wrapper compilers])
|
|
|
|
AC_DEFINE_UNQUOTED(WRAPPER_EXTRA_CXXFLAGS_PREFIX, "$OMPI_WRAPPER_EXTRA_CXXFLAGS_PREFIX",
|
|
|
|
[Additional CXXFLAGS_PREFIX to pass through the wrapper compilers])
|
|
|
|
AC_DEFINE_UNQUOTED(WRAPPER_EXTRA_FCFLAGS, "$OMPI_WRAPPER_EXTRA_FCFLAGS",
|
|
|
|
[Additional FCFLAGS to pass through the wrapper compilers])
|
|
|
|
AC_DEFINE_UNQUOTED(WRAPPER_EXTRA_FCFLAGS_PREFIX, "$OMPI_WRAPPER_EXTRA_FCFLAGS_PREFIX",
|
|
|
|
[Additional FCFLAGS to pass through the wrapper compilers])
|
|
|
|
AC_DEFINE_UNQUOTED(WRAPPER_EXTRA_LDFLAGS, "$OMPI_WRAPPER_EXTRA_LDFLAGS",
|
|
|
|
[Additional LDFLAGS to pass through the wrapper compilers])
|
|
|
|
AC_DEFINE_UNQUOTED(WRAPPER_EXTRA_LIBS, "$OMPI_WRAPPER_EXTRA_LIBS",
|
|
|
|
[Additional LIBS to pass through the wrapper compilers])
|
|
|
|
])
|
2013-05-11 04:49:17 +04:00
|
|
|
|
|
|
|
AC_DEFINE_UNQUOTED(WRAPPER_RPATH_SUPPORT, "$WRAPPER_RPATH_SUPPORT",
|
|
|
|
[Whether the wrapper compilers add rpath flags by default])
|
2009-10-24 05:04:35 +04:00
|
|
|
])
|