]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
Port AC_PROG_OBJC to RHEL 9
authorBruno Haible <bruno@clisp.org>
Tue, 16 Jul 2024 15:56:21 +0000 (15:56 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 16 Jul 2024 15:56:21 +0000 (15:56 +0000)
* lib/autoconf/c.m4 (AC_PROG_OBJC): Search for gobjc before gcc.
* NEWS: Mention the change.

NEWS
lib/autoconf/c.m4

diff --git a/NEWS b/NEWS
index 615f493f93035109774007ffd47a51f209c94fa8..75d2eef44c78752a5b62af13aff03aceb31d0576 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -32,6 +32,9 @@ GNU Autoconf NEWS - User visible changes.
 
 *** AC_FUNC_STRNLEN now detects Android 5.0's broken strnlen.
 
+*** AC_PROG_OBJC now finds the GNU Objective-C compiler, as packaged in
+  EPEL 9, by default, without the user having to set the OBJC variable.
+
 * Noteworthy changes in release 2.72 (2023-12-22) [release]
 
 ** Backward incompatibilities
index 456a6ba78791664cbacc9419205ea73a6aecd8ca..1727961e9220098ce01ee79ecd1ef7832d01ce69 100644 (file)
@@ -854,10 +854,13 @@ AC_DEFUN([AC_LANG_COMPILER(Objective C)],
 # search for (if not specified, a default list is used).  This just gives
 # the user an opportunity to specify an alternative search list for the
 # Objective C compiler.
-# objcc StepStone Objective-C compiler (also "standard" name for OBJC)
-# objc  David Stes' POC.  If you installed this, you likely want it.
-# cc    Native C compiler (for instance, Apple).
-# CC    You never know.
+# gobjc  GNU Objective-C compiler packaged in EPEL (for systems where gcc
+#        does not support Objective-C)
+# gcc    GNU Objective-C compiler on most systems
+# objcc  StepStone Objective-C compiler (also "standard" name for OBJC)
+# objc   David Stes' POC.  If you installed this, you likely want it.
+# cc     Native C compiler (for instance, Apple).
+# CC     You never know.
 AN_MAKEVAR([OBJC],  [AC_PROG_OBJC])
 AN_PROGRAM([objcc],  [AC_PROG_OBJC])
 AN_PROGRAM([objc],  [AC_PROG_OBJC])
@@ -870,7 +873,7 @@ _AC_ARG_VAR_LIBS()dnl
 _AC_ARG_VAR_CPPFLAGS()dnl
 _AC_ARG_VAR_PRECIOUS([OBJC])dnl
 AC_CHECK_TOOLS(OBJC,
-              [m4_default([$1], [gcc objcc objc cc CC clang])],
+              [m4_default([$1], [gobjc gcc objcc objc cc CC clang])],
               gcc)
 # Provide some information about the compiler.
 _AS_ECHO_LOG([checking for _AC_LANG compiler version])