From d7005aeca75323c6a5ce11abad667a7ab3bdf291 Mon Sep 17 00:00:00 2001
From: Claus-Justus Heine <Claus-Justus.Heine@IANS.Uni-Stuttgart.DE>
Date: Fri, 4 Jul 2003 16:47:49 +0000
Subject: [PATCH] Include more F77 autoconf macros. Should be used one day to
 make Fortran stuff more portable ...

Quick hack for icc. For rpath settings, icc needs -Wl which is --
unluckily -- not properly detected by configure. So just hardcode -Wl
when `basename $CC` = icc.
---
 configure.ac | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/configure.ac b/configure.ac
index 5f0157e..78e3ed2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -35,10 +35,25 @@ AM_CONFIG_HEADER([config.h])
 AC_PROG_INSTALL
 AC_PROG_LN_S
 AC_PROG_CC
+dnl
+dnl quick hack for icc
+dnl
+if test "`basename $CC`" = "icc"; then
+    lt_cv_prog_cc_wl='-Wl,'
+fi
+
 AC_PROG_F77
+dnl
+dnl Mmmh. Quite elaborated nowadays
+dnl
+AC_F77_WRAPPERS
+AC_F77_MAIN
+AC_F77_LIBRARY_LDFLAGS
 
 AC_PROG_LIBTOOL
 
+
+
 # change the installation directory. This could surely be done more elegantly...
 AC_PREFIX_DEFAULT([`pwd`])
 
-- 
GitLab