Commit 3b8ee668 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Add work-around for libtool omission.

* libtool does not pass -shared-intel through the link step even though
  it is very much needed for linking to libraries built with older versions
  of the Intel compiler.
parent 70b79079
......@@ -71,7 +71,12 @@ AC_DEFUN([ACX_USE_LIBTOOL_CONFIGURATION],
[AS_IF([test -n "$F77" -a X"$F77" != Xno],
[AC_LANG_PUSH([Fortran 77])
_ACX_LT_FORT_FLAGS_MANGLE
AC_LANG_POP([Fortran 77])])])])dnl
AC_LANG_POP([Fortran 77])])])
dnl substitute -shared-intel if present
AS_FOR([acx_flag_var],[acx_flag_var_],[CFLAGS CXXFLAGS FCFLAGS F77FLAGS LDFLAGS],
[eval acx_temp="\" \$$acx_flag_var_ \""
AS_CASE([$acx_temp],[*\ -shared-intel\ *],
[$acx_flag_var_=`echo "$acx_temp" | sed -e 's/ -shared-intel / -Xcompiler -shared-intel /' -e 's/^ //;s/ $//'`])])])dnl
dnl
dnl Local Variables:
dnl mode: autoconf
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment