summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure14
1 files changed, 14 insertions, 0 deletions
diff --git a/configure b/configure
index 7522b0a..0b1b659 100755
--- a/configure
+++ b/configure
@@ -7282,6 +7282,20 @@ LIBTOOL='$(SHELL) $(top_builddir)/libtool'
+case $host_os in
+ linux*)
+ # If an Intel compiler is used, it needs to set $wl to use "-Wl,"
+ if $CC -V 2>&1 | grep '^Intel(R)' > /dev/null ; then
+ echo 'fix $wl in' $ofile
+ed - $ofile <<EOF 2> /dev/null
+/^wl=""/s//wl="-Wl,"/
+w
+q
+EOF
+ fi
+ ;;
+esac
+
case "$INSTALL" in
*install-sh*)
INSTALL='\${top_srcdir}/bin/install-sh -c'