#---------------------------------------------------------------------------
# Set misc options
+# By default, do not build with -Wall, unless the user asks for it
+AC_ARG_ENABLE(
+ [wall],
+ [AS_HELP_STRING(
+ [--enable-wall],
+ [build with -Wall (default=no)])],
+ [AS_CASE(
+ ["$enableval"],
+ [yes], [wall_CFLAGS=-Wall],
+ [*], [wall_CFLAGS=""])])
+AC_SUBST([wall_CFLAGS],[${wall_CFLAGS}])
+
# By default, do not build with -Werror, unless the user asks for it
AC_ARG_ENABLE(
[werror],
done])
AC_SUBST([enable_frontends])
+#----------------------------------------
+# What extra CFLAGS we will be using
+AC_SUBST([kf_CFLAGS], ["$wall_CFLAGS $werror_CFLAGS"])
+
#----------------------------------------
# Dependencies that will be needed, depending on the frontends
AS_CASE(
AC_MSG_NOTICE()
AC_MSG_NOTICE([Configured with:])
+AS_IF([test "$enable_wall" = "yes"],
+ [AC_MSG_NOTICE([- catch all warnings : yes])],
+ [AC_MSG_NOTICE([- catch all warnings : no])])
AS_IF([test "$enable_werror" = "yes"],
[AC_MSG_NOTICE([- treat warnings as errors: yes])],
[AC_MSG_NOTICE([- treat warnings as errors: no])])
conf_CPPFLAGS = $(AM_CPPFLAGS) \
$(GETTEXT) \
-I$(top_srcdir)/libs/parser
-conf_CFLAGS = $(AM_CFLAGS) $(werror_CFLAGS)
+conf_CFLAGS = $(AM_CFLAGS) $(kf_CFLAGS)
conf_LDADD = $(top_builddir)/libs/parser/libkconfigparser.la \
$(conf_EXTRA_LIBS)
-I$(top_srcdir)/libs/parser \
-I$(top_srcdir)/libs/images \
-DGUI_PATH='"$(pkgdatadir)/gconf.glade"'
-gconf_CFLAGS = $(AM_CFLAGS) \
- $(werror_CFLAGS) \
+gconf_CFLAGS = $(AM_CFLAGS) \
+ $(kf_CFLAGS) \
$(gtk_CFLAGS)
gconf_LDADD = $(top_builddir)/libs/parser/libkconfigparser.la \
$(gtk_LIBS) $(gconf_EXTRA_LIBS)
$(GETTEXT) \
-I$(top_srcdir)/libs \
-I$(top_srcdir)/libs/parser
-mconf_CFLAGS = $(AM_CFLAGS) \
- $(werror_CFLAGS)
+mconf_CFLAGS = $(AM_CFLAGS) \
+ $(kf_CFLAGS)
mconf_LDADD = $(top_builddir)/libs/parser/libkconfigparser.la \
$(top_builddir)/libs/lxdialog/liblxdialog.a \
$(ncurses_LIBS) $(mconf_EXTRA_LIBS)
$(GETTEXT) \
-I$(top_srcdir)/libs/parser
nconf_CFLAGS = $(AM_CFLAGS) \
- $(werror_CFLAGS)
+ $(kf_CFLAGS)
nconf_LDADD = $(top_builddir)/libs/parser/libkconfigparser.la \
$(ncurses_extra_LIBS) $(ncurses_LIBS) \
$(nconf_EXTRA_LIBS)
$(GETTEXT) \
-I$(top_srcdir)/libs/parser \
-I$(top_srcdir)/libs/images
-qconf_CXXFLAGS = $(AM_CXXFLAGS) \
- $(werror_CFLAGS) \
+qconf_CXXFLAGS = $(AM_CXXFLAGS) \
+ $(kf_CFLAGS) \
$(qt4_CFLAGS)
qconf_LDADD = $(top_builddir)/libs/parser/libkconfigparser.la \
$(qt4_LIBS) $(qconf_EXTRA_LIBS)
liblxdialog_a_CPPFLAGS = $(AM_CPPFLAGS) \
-DCURSES_LOC='"${CURSES_LOC}"' \
$(GETTEXT)
-liblxdialog_a_CFLAGS = $(AM_CFLAGS) $(werror_CFLAGS)
+liblxdialog_a_CFLAGS = $(AM_CFLAGS) $(kf_CFLAGS)
expr.c expr.h lkc.h lkc_proto.h
libkconfigparser_la_CPPFLAGS = -DROOTMENU="\"$(root_menu)\"" \
-DCONFIG_=\"$(config_prefix)\"
-libkconfigparser_la_CFLAGS = $(AM_CFLAGS) $(werror_CFLAGS)
+libkconfigparser_la_CFLAGS = $(AM_CFLAGS) $(kf_CFLAGS)
libkconfigparser_la_LDFLAGS = -release $(KCONFIGPARSER_LIB_VERSION)
kconfig_includedir = $(includedir)/kconfig