From ce7cada3e1ce3e62e87380ca6b4f1cf598495891 Mon Sep 17 00:00:00 2001
From: Michele Calgaro <michele.calgaro@yahoo.it>
Date: Sat, 31 Jan 2026 22:25:59 +0900
Subject: Remove support for Irix, which is discontinued and does not provide a
 c++17 complaint compiler.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
---
 languages/cpp/debugger/stty.cpp                    | 12 -----
 languages/ruby/debugger/stty.cpp                   | 12 -----
 lib/antlr/antlr/config.h                           | 14 ------
 .../common/gnome/macros/gnome-fileutils.m4         |  2 +-
 parts/appwizard/common/incadmin/config.guess       | 15 ------
 parts/appwizard/common/incadmin/config.sub         | 23 ++-------
 parts/appwizard/common/incadmin/depcomp            | 44 -----------------
 parts/appwizard/common/incadmin/ltmain.sh          | 57 +---------------------
 parts/appwizard/common/incadmin/missing            |  2 +-
 9 files changed, 6 insertions(+), 175 deletions(-)

diff --git a/languages/cpp/debugger/stty.cpp b/languages/cpp/debugger/stty.cpp
index e806b31b..49bf2c0e 100644
--- a/languages/cpp/debugger/stty.cpp
+++ b/languages/cpp/debugger/stty.cpp
@@ -149,18 +149,6 @@ int STTY::findTTY()
 
     // Find a master pty that we can open ////////////////////////////////
 
-#ifdef __sgi__
-    ptyfd = open("/dev/ptmx",O_RDWR);
-    if (ptyfd < 0) {
-        perror("Can't open a pseudo teletype");
-        return(-1);
-    }
-    strncpy(tty_slave, ptsname(ptyfd), 50);
-    grantpt(ptyfd);
-    unlockpt(ptyfd);
-    needGrantPty = false;
-#endif
-
     // first we try UNIX PTY's
 #ifdef TIOCGPTN
     strcpy(pty_master,"/dev/ptmx");
diff --git a/languages/ruby/debugger/stty.cpp b/languages/ruby/debugger/stty.cpp
index f2650666..7d4521d7 100644
--- a/languages/ruby/debugger/stty.cpp
+++ b/languages/ruby/debugger/stty.cpp
@@ -154,18 +154,6 @@ int STTY::findTTY()
 
     // Find a master pty that we can open ////////////////////////////////
 
-#ifdef __sgi__
-    ptyfd = open("/dev/ptmx",O_RDWR);
-    if (ptyfd < 0) {
-        perror("Can't open a pseudo teletype");
-        return(-1);
-    }
-    strncpy(tty_slave, ptsname(ptyfd), 50);
-    grantpt(ptyfd);
-    unlockpt(ptyfd);
-    needGrantPty = false;
-#endif
-
     // first we try UNIX PTY's
 #ifdef TIOCGPTN
     strcpy(pty_master,"/dev/ptmx");
diff --git a/lib/antlr/antlr/config.h b/lib/antlr/antlr/config.h
index 2e4c6e2f..ab454fd6 100644
--- a/lib/antlr/antlr/config.h
+++ b/lib/antlr/antlr/config.h
@@ -193,20 +193,6 @@
 #endif	// end IBM VisualAge C++
 /*}}}*/
 /*****************************************************************************/
-/*{{{ SGI Irix 6.5.10 MIPSPro compiler
- *****************************************************************************/
-// (contributed by Anna Winkler)
-// Note: you can't compile ANTLR with the MIPSPro compiler on
-// anything < 6.5.10 because SGI just fixed a big bug dealing with
-// namespaces in that release.
-#ifdef __sgi
-# define HAS_NOT_CCTYPE_H
-# define HAS_NOT_CSTRING_H
-# define HAS_NOT_CSTDIO_H
-# undef ANTLR_CCTYPE_NEEDS_STD
-#endif // End IRIX MIPSPro
-/*}}}*/
-/*****************************************************************************/
 /*{{{ G++ in various incarnations
  *****************************************************************************/
 // With the gcc-2.95 and 3.0 being in the near future we should start handling
diff --git a/parts/appwizard/common/gnome/macros/gnome-fileutils.m4 b/parts/appwizard/common/gnome/macros/gnome-fileutils.m4
index 03025f2e..407e5f29 100644
--- a/parts/appwizard/common/gnome/macros/gnome-fileutils.m4
+++ b/parts/appwizard/common/gnome/macros/gnome-fileutils.m4
@@ -74,7 +74,7 @@ if test $ac_cv_func_getmntent = yes; then
 # Determine whether it's the one-argument variant or the two-argument one.
 
 if test -z "$list_mounted_fs"; then
-# 4.3BSD, SunOS, Dynix, Irix
+# 4.3BSD, SunOS, Dynix
 AC_MSG_CHECKING([for one-argument getmntent function])
 AC_CACHE_VAL(fu_cv_sys_mounted_getmntent1,
 [test $ac_cv_header_mntent_h = yes \
diff --git a/parts/appwizard/common/incadmin/config.guess b/parts/appwizard/common/incadmin/config.guess
index 9680eded..aed29d14 100755
--- a/parts/appwizard/common/incadmin/config.guess
+++ b/parts/appwizard/common/incadmin/config.guess
@@ -432,9 +432,6 @@ EOF
     Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
 	echo m68k-tektronix-bsd
 	exit ;;
-    *:IRIX*:*:*)
-	echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
-	exit ;;
     ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
 	echo romp-ibm-aix     # uname -m gives an 8 hex-code CPU id
 	exit ;;               # Note that: echo "'`uname -s`'" gives 'AIX '
@@ -1059,18 +1056,6 @@ EOF
     *:QNX:*:4*)
 	echo i386-pc-qnx
 	exit ;;
-    NEO-?:NONSTOP_KERNEL:*:*)
-	echo neo-tandem-nsk${UNAME_RELEASE}
-	exit ;;
-    NSE-?:NONSTOP_KERNEL:*:*)
-	echo nse-tandem-nsk${UNAME_RELEASE}
-	exit ;;
-    NSR-?:NONSTOP_KERNEL:*:*)
-	echo nsr-tandem-nsk${UNAME_RELEASE}
-	exit ;;
-    *:NonStop-UX:*:*)
-	echo mips-compaq-nonstopux
-	exit ;;
     BS2000:POSIX*:*:*)
 	echo bs2000-siemens-sysv
 	exit ;;
diff --git a/parts/appwizard/common/incadmin/config.sub b/parts/appwizard/common/incadmin/config.sub
index 16fa14ea..a6d85ea0 100755
--- a/parts/appwizard/common/incadmin/config.sub
+++ b/parts/appwizard/common/incadmin/config.sub
@@ -150,7 +150,7 @@ case $os in
 	-sun*os*)
 		# Prevent following clause from handling this invalid input.
 		;;
-	-dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
+	-dec* | -mips* | -sequent* | -encore* | -pc532* | -sony* | \
 	-att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
 	-unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
 	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
@@ -713,16 +713,6 @@ case $basic_machine in
 		basic_machine=i386-unknown
 		os=-vsta
 		;;
-	iris | iris4d)
-		basic_machine=mips-sgi
-		case $os in
-		    -irix*)
-			;;
-		    *)
-			os=-irix4
-			;;
-		esac
-		;;
 	isi68 | isi)
 		basic_machine=m68k-isi
 		os=-sysv
@@ -854,10 +844,6 @@ case $basic_machine in
 		basic_machine=i960-intel
 		os=-mon960
 		;;
-	nonstopux)
-		basic_machine=mips-compaq
-		os=-nonstopux
-		;;
 	np1)
 		basic_machine=np1-gould
 		;;
@@ -1297,7 +1283,7 @@ case $os in
 	# The portable systems comes first.
 	# Each alternative MUST END IN A *, to match a version number.
 	# -sysv* is not here because it comes later, after sysvr4.
-	-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
+	-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* \
 	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
 	      | -unos* | -luna* | -auroraux* | -solaris* \
 	      | -sym* | -kopensolaris* \
@@ -1317,7 +1303,7 @@ case $os in
 	      | -linux-newlib* | -linux-uclibc* \
 	      | -uxpv* | -beos* | -mpeix* | -udk* \
 	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
-	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
+	      | -openstep* | -oskit* | -conix* | -pw32* \
 	      | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
 	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
 	      | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
@@ -1599,9 +1585,6 @@ case $basic_machine in
 	*-encore)
 		os=-bsd
 		;;
-	*-sgi)
-		os=-irix
-		;;
 	*-siemens)
 		os=-sysv4
 		;;
diff --git a/parts/appwizard/common/incadmin/depcomp b/parts/appwizard/common/incadmin/depcomp
index 6155285c..8a3896f7 100755
--- a/parts/appwizard/common/incadmin/depcomp
+++ b/parts/appwizard/common/incadmin/depcomp
@@ -117,50 +117,6 @@ hp)
   exit 1
   ;;
 
-sgi)
-  if test "$libtool" = yes; then
-    "$@" "-Wp,-MDupdate,$tmpdepfile"
-  else
-    "$@" -MDupdate "$tmpdepfile"
-  fi
-  stat=$?
-  if test $stat -eq 0; then :
-  else
-    rm -f "$tmpdepfile"
-    exit $stat
-  fi
-  rm -f "$depfile"
-
-  if test -f "$tmpdepfile"; then  # yes, the sourcefile depend on other files
-    echo "$object : \\" > "$depfile"
-
-    # Clip off the initial element (the dependent).  Don't try to be
-    # clever and replace this with sed code, as IRIX sed won't handle
-    # lines with more than a fixed number of characters (4096 in
-    # IRIX 6.2 sed, 8192 in IRIX 6.5).  We also remove comment lines;
-    # the IRIX cc adds comments like `#:fec' to the end of the
-    # dependency line.
-    tr ' ' '
-' < "$tmpdepfile" \
-    | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
-    tr '
-' ' ' >> $depfile
-    echo >> $depfile
-
-    # The second pass generates a dummy entry for each header file.
-    tr ' ' '
-' < "$tmpdepfile" \
-   | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
-   >> $depfile
-  else
-    # The sourcefile does not contain any dependencies, so just
-    # store a dummy comment line, to avoid errors with the Makefile
-    # "include basename.Plo" scheme.
-    echo "#dummy" > "$depfile"
-  fi
-  rm -f "$tmpdepfile"
-  ;;
-
 aix)
   # The C for AIX Compiler uses -M and outputs the dependencies
   # in a .u file.  This file always lives in the current directory.
diff --git a/parts/appwizard/common/incadmin/ltmain.sh b/parts/appwizard/common/incadmin/ltmain.sh
index fb4e75a4..a8777ff1 100644
--- a/parts/appwizard/common/incadmin/ltmain.sh
+++ b/parts/appwizard/common/incadmin/ltmain.sh
@@ -169,11 +169,6 @@ func_dirname_and_basename ()
 
 # Generated shell functions inserted here.
 
-# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
-# is ksh but when the shell is invoked as "sh" and the current value of
-# the _XPG environment variable is not equal to 1 (one), the special
-# positional parameter $0, within a function call, is the name of the
-# function.
 progpath="$0"
 
 # The name of this program:
@@ -4449,18 +4444,6 @@ func_mode_link ()
 	continue
 	;;
 
-      # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
-      # so, if we see these flags be careful not to treat them like -L
-      -L[A-Z][A-Z]*:*)
-	case $with_gcc/$host in
-	no/*-*-irix* | /*-*-irix*)
-	  func_append compile_command " $arg"
-	  func_append finalize_command " $arg"
-	  ;;
-	esac
-	continue
-	;;
-
       -L*)
 	func_stripname '-L' '' "$arg"
 	dir=$func_stripname_result
@@ -6162,9 +6145,7 @@ func_mode_link ()
 	  # There are really only two kinds -- those that
 	  # use the current revision as the major version
 	  # and those that subtract age and use age as
-	  # a minor version.  But, then there is irix
-	  # which has an extra 1 added just for fun
-	  #
+	  # a minor version.
 	  case $version_type in
 	  darwin|linux|windows|none)
 	    func_arith $number_major + $number_minor
@@ -6177,13 +6158,6 @@ func_mode_link ()
 	    revision="$number_minor"
 	    age="0"
 	    ;;
-	  irix|nonstopux)
-	    func_arith $number_major + $number_minor
-	    current=$func_arith_result
-	    age="$number_minor"
-	    revision="$number_minor"
-	    lt_irix_increment=no
-	    ;;
 	  *)
 	    func_fatal_configuration "$modename: unknown library version type \`$version_type'"
 	    ;;
@@ -6256,35 +6230,6 @@ func_mode_link ()
 	  versuffix=".$current"
 	  ;;
 
-	irix | nonstopux)
-	  if test "X$lt_irix_increment" = "Xno"; then
-	    func_arith $current - $age
-	  else
-	    func_arith $current - $age + 1
-	  fi
-	  major=$func_arith_result
-
-	  case $version_type in
-	    nonstopux) verstring_prefix=nonstopux ;;
-	    *)         verstring_prefix=sgi ;;
-	  esac
-	  verstring="$verstring_prefix$major.$revision"
-
-	  # Add in all the interfaces that we are compatible with.
-	  loop=$revision
-	  while test "$loop" -ne 0; do
-	    func_arith $revision - $loop
-	    iface=$func_arith_result
-	    func_arith $loop - 1
-	    loop=$func_arith_result
-	    verstring="$verstring_prefix$major.$iface:$verstring"
-	  done
-
-	  # Before this point, $major must not contain `.'.
-	  major=.$major
-	  versuffix="$major.$revision"
-	  ;;
-
 	linux)
 	  func_arith $current - $age
 	  major=.$func_arith_result
diff --git a/parts/appwizard/common/incadmin/missing b/parts/appwizard/common/incadmin/missing
index 2c025eb6..e79943e2 100755
--- a/parts/appwizard/common/incadmin/missing
+++ b/parts/appwizard/common/incadmin/missing
@@ -272,7 +272,7 @@ WARNING: \`$1' is missing on your system.  You should only need it if
          you modified a \`.texi' or \`.texinfo' file, or any other file
          indirectly affecting the aspect of the manual.  The spurious
          call might also be the consequence of using a buggy \`make' (AIX,
-         DU, IRIX).  You might want to install the \`Texinfo' package or
+         DU).  You might want to install the \`Texinfo' package or
          the \`GNU make' package.  Grab either from any GNU archive site."
     file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
     if test -z "$file"; then
-- 
cgit v1.2.3

