From: Gary V. Vaughan Date: Tue, 20 Apr 2004 21:38:54 +0000 (+0000) Subject: * m4/libtool.m4 (_LT_LANG_CXX_CONFIG): Detect Intel C++ compiler X-Git-Tag: release-1-5-8~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a693303e0a53355f056e8547abed5d7685cbdd6;p=thirdparty%2Flibtool.git * m4/libtool.m4 (_LT_LANG_CXX_CONFIG): Detect Intel C++ compiler version more idiomatically. --- diff --git a/ChangeLog b/ChangeLog index f462485bb..26251429e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-04-20 Gary V. Vaughan + + * m4/libtool.m4 (_LT_LANG_CXX_CONFIG): Detect Intel C++ compiler + version more idiomatically. + 2004-04-19 Gary V. Vaughan * m4/libtool.m4 (_LT_LANG_CXX_CONFIG): Intel C++ compiler 8.0 and diff --git a/libtool.m4 b/libtool.m4 index 8f889b9b8..dd3b2b044 100644 --- a/libtool.m4 +++ b/libtool.m4 @@ -3147,18 +3147,16 @@ case $host_os in with_gnu_ld=yes # version 8.0 and above of icpc choke on multiply defined symbols # if we add $predep_objects and $postdep_objects, however 7.1 and - # earlier do not add the objects themselves. Only 8.0 (and newer?) - # support the --version argument, so we use that to distinguish them: - lt_icpc_version=`icpc --version 2>/dev/null` - case $lt_icpc_version in - [[0-9.]]*) # Version 8.0 or newer - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - ;; - *) # No output from 7.1 and older + # earlier do not add the objects themselves. + case `$CC -V 2>&1` in + *"Version 7."*) _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' ;; + *) # Version 8.0 or newer + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; esac _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'