This variable contains pre-processor flags, so name it accordingly.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
#----------------------------------------
# Check for gettext, for the kconfig frontends
-AC_SUBST([GETTEXT])
+AC_SUBST([intl_CPPFLAGS])
AC_CHECK_HEADERS(
[libintl.h],
[ac_ct_gettext_hdr=$ac_header; break],
[AC_CHECK_DECL(
[gettext],,
[AC_MSG_WARN([gettext is missing, frontends will not be localised])
- GETTEXT=-DKBUILD_NO_NLS],
+ intl_CPPFLAGS=-DKBUILD_NO_NLS],
[#include <$ac_ct_gettext_hdr>])])
#----------------------------------------
bin_PROGRAMS = conf
conf_SOURCES = conf.c
-conf_CPPFLAGS = $(AM_CPPFLAGS) \
- $(GETTEXT) \
+conf_CPPFLAGS = $(AM_CPPFLAGS) \
+ $(intl_CPPFLAGS) \
-I$(top_srcdir)/libs/parser
conf_CFLAGS = $(AM_CFLAGS) $(kf_CFLAGS)
conf_LDADD = $(top_builddir)/libs/parser/libkconfig-parser.la \
gconf_SOURCES = gconf.c gconf.glade
gconf_CPPFLAGS = $(AM_CPPFLAGS) \
- $(GETTEXT) \
+ $(intl_CPPFLAGS) \
-I$(top_srcdir)/libs/parser \
-I$(top_builddir)/libs/images \
-DGUI_PATH='"$(pkgdatadir)/gconf.glade"'
mconf_SOURCES = mconf.c
mconf_CPPFLAGS = $(AM_CPPFLAGS) \
-DCURSES_LOC='"$(CURSES_LOC)"' \
- $(GETTEXT) \
+ $(intl_CPPFLAGS) \
-I$(top_srcdir)/libs \
-I$(top_srcdir)/libs/parser
mconf_CFLAGS = $(AM_CFLAGS) \
bin_PROGRAMS = nconf
nconf_SOURCES = nconf.c nconf.gui.c nconf.h
-nconf_CPPFLAGS = $(AM_CPPFLAGS) \
- $(GETTEXT) \
+nconf_CPPFLAGS = $(AM_CPPFLAGS) \
+ $(intl_CPPFLAGS) \
-I$(top_srcdir)/libs/parser
nconf_CFLAGS = $(AM_CFLAGS) \
$(kf_CFLAGS)
qconf_SOURCES = qconf.cc qconf.h
BUILT_SOURCES = qconf.moc
qconf_CPPFLAGS = $(AM_CPPFLAGS) \
- $(GETTEXT) \
+ $(intl_CPPFLAGS) \
-I$(top_srcdir)/libs/parser \
-I$(top_builddir)/libs/images
qconf_CXXFLAGS = $(AM_CXXFLAGS) \
libkconfig_lxdialog_a_CPPFLAGS = $(AM_CPPFLAGS) \
-DCURSES_LOC='"${CURSES_LOC}"' \
- $(GETTEXT)
+ $(intl_CPPFLAGS)
liblxdialog_a_CFLAGS = $(AM_CFLAGS) $(kf_CFLAGS)
EXTRA_DIST = yconf.y.patch
# Can't use libkconfig_parser_a_CPPFLAGS, as it breaks dependencies
-yconf.o: CPPFLAGS+=$(GETTEXT)
+yconf.o: CPPFLAGS+=$(intl_CPPFLAGS)
.gperf.c:
$(GPERF) -t --output-file $@ -a -C -E -g -k 1,3,$$ -p -t $<