]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
examples: Find the Objective-C compiler out-of-the-box on AlmaLinux 9 systems.
authorBruno Haible <bruno@clisp.org>
Mon, 23 Dec 2024 18:01:58 +0000 (19:01 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 23 Dec 2024 18:25:38 +0000 (19:25 +0100)
* gettext-tools/examples/hello-objc-gnome2/configure.ac: Invoke AC_PROG_OBJC
with a customized search list. Don't invoke AC_PROC_CC.

gettext-tools/examples/hello-objc-gnome2/configure.ac

index 697cc28dc729a06cf48bb9ab474f941ea9fd4832..de58d23c4e9de6bccb431f538afcd8032ebb1914 100644 (file)
@@ -7,9 +7,11 @@ AC_INIT([hello-objc-gnome2], [0])
 AC_CONFIG_SRCDIR([hello.m])
 AM_INIT_AUTOMAKE([1.11])
 
-AC_PROG_CC
-AC_SUBST([OBJC],["$CC"])
-AC_SUBST([OBJCFLAGS],["$CFLAGS"])
+dnl Test for gobjc before gcc, since that's what the EPEL 9 package 'gcc-objc'
+dnl installs (on systems where gcc does not support Objective C).
+m4_pushdef([AC_MSG_FAILURE], m4_defn([AC_MSG_WARN]))
+AC_PROG_OBJC([gobjc gcc objcc objc cc CC clang])
+m4_popdef([AC_MSG_FAILURE])
 
 GNOME_INIT
 OBGNOME_INCLUDES=