]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
autotools: Only probe for SGI MIPS compilers on IRIX
authorDaniel Gustafsson <daniel@yesql.se>
Tue, 14 May 2024 08:04:27 +0000 (10:04 +0200)
committerDaniel Gustafsson <daniel@yesql.se>
Tue, 14 May 2024 08:04:27 +0000 (10:04 +0200)
MIPSPro and the predecessor compiler which was part of the IDO (IRIS
Development Option) were only ever shipped on the SGI IRIX operating
system (with MIPSPro on 6.0+ which was released in 1994).  Limit the
autoconf check to IRIX when probing for these compilers to save some
cycles on other platforms.

Closes: #13611
Reviewed-by: Daniel Stenberg <daniel@haxx.se>
m4/curl-compilers.m4

index 9a4547709eb1cdc86e3f7ee908cd11a5fcf00ea9..06e335d8faa2a3d1812ee8e8258c100647ff74fd 100644 (file)
@@ -48,8 +48,12 @@ AC_DEFUN([CURL_CHECK_COMPILER], [
   CURL_CHECK_COMPILER_INTEL_C
   CURL_CHECK_COMPILER_CLANG
   CURL_CHECK_COMPILER_GNU_C
-  CURL_CHECK_COMPILER_SGI_MIPSPRO_C
-  CURL_CHECK_COMPILER_SGI_MIPS_C
+  case $host in
+    mips-sgi-irix*)
+      CURL_CHECK_COMPILER_SGI_MIPSPRO_C
+      CURL_CHECK_COMPILER_SGI_MIPS_C
+    ;;
+  esac
   CURL_CHECK_COMPILER_SUNPRO_C
   CURL_CHECK_COMPILER_TINY_C
   #