- if test "x$GCC" != "xyes"; then
- AC_CACHE_CHECK([for Intel compiler], bakefile_cv_prog_icc,
- [
- AC_TRY_COMPILE([],
- [
- #ifndef __INTEL_COMPILER
- This is not ICC
- #endif
- ],
- bakefile_cv_prog_icc=yes,
- bakefile_cv_prog_icc=no
- )
- ])
- if test "$bakefile_cv_prog_icc" = "yes"; then
- PIC_FLAG="-KPIC"
- fi
+ dnl newer icc versions use -fPIC just as gcc does and, in fact, the
+ dnl newest (v10+) ones don't even understand -KPIC any longer
+ if test "$INTELCC" = "yes" -a "$INTELCC8" != "yes"; then
+ PIC_FLAG="-KPIC"
+ elif test "x$SUNCXX" = "xyes"; then
+ SHARED_LD_CC="${CC} -G -o"
+ SHARED_LD_CXX="${CXX} -G -o"
+ PIC_FLAG="-KPIC"