From: Bruno Haible Date: Mon, 23 Dec 2024 18:01:58 +0000 (+0100) Subject: examples: Find the Objective-C compiler out-of-the-box on AlmaLinux 9 systems. X-Git-Tag: v0.24~89 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9128cdec0131c4a924f58b2179e57cdaa3e32541;p=thirdparty%2Fgettext.git examples: Find the Objective-C compiler out-of-the-box on AlmaLinux 9 systems. * gettext-tools/examples/hello-objc-gnome2/configure.ac: Invoke AC_PROG_OBJC with a customized search list. Don't invoke AC_PROC_CC. --- diff --git a/gettext-tools/examples/hello-objc-gnome2/configure.ac b/gettext-tools/examples/hello-objc-gnome2/configure.ac index 697cc28dc..de58d23c4 100644 --- a/gettext-tools/examples/hello-objc-gnome2/configure.ac +++ b/gettext-tools/examples/hello-objc-gnome2/configure.ac @@ -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=