*.a
frontends/conf/conf
+frontends/gconf/gconf
frontends/mconf/mconf
frontends/nconf/nconf
AC_CONFIG_AUX_DIR([scripts])
# Checks for programs.
-AC_PROG_CXX
AC_PROG_CC
+AC_PROG_CXX
AC_PROG_MAKE_SET
# Checks for libraries.
[--enable-nconf],
[nconf, the modern ncurses-based frontend (default=yes)])])
AC_SUBST([enable_nconf], [${enable_nconf:-yes}])
+AC_ARG_ENABLE(
+ [gconf],
+ [AS_HELP_STRING(
+ [--enable-gconf],
+ [gconf, the GTK-based frontend (default=yes)])])
+AC_SUBST([enable_gconf], [${enable_gconf:-yes}])
#----------------------------------------
# Some program checks
[AC_MSG_ERROR([could not find curses library])])
#----------------------------------------
+# Check headers and libs for gconf
+AS_IF(
+ [test "$enable_gconf" = yes ],
+ [PKG_PROG_PKG_CONFIG()
+ PKG_CHECK_MODULES(
+ [gtk],
+ [gtk+-2.0 gmodule-2.0 libglade-2.0])])
+
+#---------------------------------------------------------------------------
# Prepare automake
AM_INIT_AUTOMAKE
AM_PROG_CC_C_O
AM_CONDITIONAL(
[COND_nconf],
[test "$enable_nconf" = "yes"])
+AM_CONDITIONAL(
+ [COND_gconf],
+ [test "$enable_gconf" = "yes"])
#----------------------------------------
# Finalise
frontends/conf/Makefile
frontends/mconf/Makefile
frontends/nconf/Makefile
+ frontends/gconf/Makefile
])
AC_OUTPUT
if COND_nconf
MAYBE_nconf = nconf
endif
-SUBDIRS = $(MAYBE_conf) $(MAYBE_mconf) $(MAYBE_nconf)
+if COND_gconf
+ MAYBE_gconf = gconf
+endif
+SUBDIRS = $(MAYBE_conf) $(MAYBE_mconf) $(MAYBE_nconf) $(MAYBE_gconf)
--- /dev/null
+bin_PROGRAMS = gconf
+
+gconf_SOURCES = gconf.c gconf.glade
+dist_EXTRA_gconf_SOURCES = images.c
+gconf_CPPFLAGS = $(AM_CPPFLAGS) \
+ $(GETTEXT) \
+ -I../../parser \
+ -DGUI_PATH='"$(pkgdatadir)/gconf.glade"'
+gconf_CFLAGS = $(AM_CFLAGS) \
+ $(gtk_CFLAGS)
+gconf_LDADD = $(gtk_LIBS) \
+ ../../parser/libkconfigparser.a
+gconfdir = $(pkgdatadir)
+gconf_DATA = gconf.glade
{
const char *name;
char *env;
- gchar *glade_file;
+ gchar *glade_file = GUI_PATH;
bindtextdomain(PACKAGE, LOCALEDIR);
bind_textdomain_codeset(PACKAGE, "UTF-8");
//add_pixmap_directory (PACKAGE_DATA_DIR "/" PACKAGE "/pixmaps");
//add_pixmap_directory (PACKAGE_SOURCE_DIR "/pixmaps");
+#if 0
/* Determine GUI path */
env = getenv(SRCTREE);
if (env)
glade_file = g_strconcat(av[0], ".glade", NULL);
else
glade_file = g_strconcat(g_get_current_dir(), "/", av[0], ".glade", NULL);
+#endif
/* Conf stuffs */
if (ac > 1 && av[1][0] == '-') {