Blame 0001-configure-Remove-obsolete-check-for-b-i486-linuxaout.patch

Dan Čermák 4c61f6
From 123ece3c3313101048d43a5ef2f9bd66c4e97fb7 Mon Sep 17 00:00:00 2001
Dan Čermák 4c61f6
From: Florian Weimer <fweimer@redhat.com>
Dan Čermák 4c61f6
Date: Fri, 23 Dec 2022 18:49:25 +0100
Dan Čermák 4c61f6
Subject: [PATCH] configure: Remove obsolete check for -b i486-linuxaout
c079ae
Dan Čermák 4c61f6
If there are still a.out system arounds, they shouldn't need this
Dan Čermák 4c61f6
anymore because the toolchain has been fixed.
c079ae
Dan Čermák 4c61f6
* configure.ac (emacs_cv_b_link): Remove obsolete check.
Dan Čermák 4c61f6
Dan Čermák 4c61f6
(cherry picked from commit 6c1413d5ef0d1fea639b0d8c83a0c0065d99359b)
Dan Čermák 4c61f6
---
Dan Čermák 4c61f6
 configure.ac | 33 ---------------------------------
Dan Čermák 4c61f6
 1 file changed, 33 deletions(-)
c079ae
c079ae
diff --git a/configure.ac b/configure.ac
Dan Čermák 4c61f6
index 5dd182ae6e5..8a20caa8c4e 100644
c079ae
--- a/configure.ac
c079ae
+++ b/configure.ac
Dan Čermák 4c61f6
@@ -2695,39 +2695,6 @@ if test "${HAVE_X11}" = "yes"; then
c079ae
     export LD_RUN_PATH
c079ae
   fi
c079ae
 
c079ae
-  if test "${opsys}" = "gnu-linux"; then
c079ae
-    AC_CACHE_CHECK([whether X on GNU/Linux needs -b to link], [emacs_cv_b_link],
c079ae
-    [AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],
c079ae
-     [[XOpenDisplay ("foo");]])],
c079ae
-     [xgnu_linux_first_failure=no],
c079ae
-     [xgnu_linux_first_failure=yes])
c079ae
-    if test "${xgnu_linux_first_failure}" = "yes"; then
c079ae
-      OLD_CPPFLAGS="$CPPFLAGS"
c079ae
-      OLD_LIBS="$LIBS"
c079ae
-      CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
c079ae
-      LIBS="$LIBS -b i486-linuxaout"
c079ae
-      AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],
c079ae
-       [[XOpenDisplay ("foo");]])],
c079ae
-       [xgnu_linux_second_failure=no],
c079ae
-       [xgnu_linux_second_failure=yes])
c079ae
-      if test "${xgnu_linux_second_failure}" = "yes"; then
c079ae
-	# If we get the same failure with -b, there is no use adding -b.
c079ae
-	# So leave it out.  This plays safe.
c079ae
-        emacs_cv_b_link=no
c079ae
-      else
c079ae
-        emacs_cv_b_link=yes
c079ae
-      fi
c079ae
-      CPPFLAGS=$OLD_CPPFLAGS
c079ae
-      LIBS=$OLD_LIBS
c079ae
-    else
c079ae
-      emacs_cv_b_link=no
c079ae
-    fi])
c079ae
-    if test "x$emacs_cv_b_link" = xyes ; then
c079ae
-      LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
c079ae
-      C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
c079ae
-    fi
c079ae
-  fi
c079ae
-
c079ae
   # Reportedly, some broken Solaris systems have XKBlib.h but are missing
c079ae
   # header files included from there.
c079ae
   AC_CACHE_CHECK([for Xkb], [emacs_cv_xkb],
Dan Čermák 4c61f6
-- 
Dan Čermák 4c61f6
2.41.0
Dan Čermák 4c61f6