From: Bruno Haible Date: Tue, 15 Jan 2002 12:59:36 +0000 (+0000) Subject: Support for Intel icc. X-Git-Tag: v0.11~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ada60192fc74ae0f8d7c67feeed23deace51ef98;p=thirdparty%2Fgettext.git Support for Intel icc. --- diff --git a/ChangeLog b/ChangeLog index 47986c46a..22599b67e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2002-01-12 Bruno Haible + + * INSTALL: Add instructions for using Intel icc. + 2002-01-11 Bruno Haible * configure.in: Change version number to 0.11-pre5. diff --git a/INSTALL b/INSTALL index f699c51c6..76099bc44 100644 --- a/INSTALL +++ b/INSTALL @@ -146,6 +146,12 @@ use the following options: env CC="xlc -D_ALL_SOURCE" ./configure + On GNU/Linux with Intel icc as C/C++ compiler, config.guess guesses +wrong and, as a consequence, libtool disables the use of shared libraries. +To correct this, it is recommended to use the following options: + + env CC="icc -D__ELF__" CXX="icc -D__ELF__" ./configure + On BeOS, user installed software goes in /boot/home/config, not /usr/local. It is recommended to use the following options: diff --git a/m4/ChangeLog b/m4/ChangeLog index c746a884c..7c73d0653 100644 --- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -1,3 +1,7 @@ +2002-01-12 Bruno Haible + + * libtool.m4: Add support for Intel icc. + 2002-01-12 Bruno Haible * lib-prefix.m4 (AC_LIB_PREPARE_PREFIX): Fix shell programming mistake. diff --git a/m4/libtool.m4 b/m4/libtool.m4 index 3eb0f6358..b8442c4ff 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -874,6 +874,19 @@ AC_CACHE_VAL(lt_cv_prog_cc_pic, # PIC (with -KPIC) is the default. ;; + linux*) + echo '__INTEL_COMPILER' > conftest.$ac_ext + if $CC -E conftest.$ac_ext >/dev/null | grep __INTEL_COMPILER >/dev/null + then + lt_cv_prog_cc_can_build_shared=no + else + # Intel icc + lt_cv_prog_cc_pic='-KPIC' + lt_cv_prog_cc_static='-static' + lt_cv_prog_cc_wl='-Qoption,ld,' + fi + ;; + cygwin* | mingw* | pw32* | os2*) # This hack is so that the source file can tell whether it is being # built for inclusion in a dll (and should export symbols for example).