2001-07-05 17:27:44 +00:00
|
|
|
AC_INIT(control-center)
|
1998-02-10 21:22:12 +00:00
|
|
|
|
|
|
|
AM_CONFIG_HEADER(config.h)
|
2001-11-10 20:53:07 +00:00
|
|
|
AM_INIT_AUTOMAKE(control-center, 1.99.0)
|
1998-02-10 21:22:12 +00:00
|
|
|
|
|
|
|
AM_MAINTAINER_MODE
|
|
|
|
|
2001-10-26 19:11:30 +00:00
|
|
|
GNOME_COMMON_INIT
|
|
|
|
GNOME_PLATFORM_GNOME_2(yes, force)
|
|
|
|
GNOME_COMPILE_WARNINGS(maximum)
|
2000-08-11 19:17:30 +00:00
|
|
|
|
2001-12-09 04:44:37 +00:00
|
|
|
AC_PROG_INTLTOOL
|
|
|
|
|
1998-02-10 21:22:12 +00:00
|
|
|
AC_ISC_POSIX
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_STDC_HEADERS
|
|
|
|
AM_PROG_LIBTOOL
|
1998-05-30 16:23:22 +00:00
|
|
|
|
2001-11-30 20:37:27 +00:00
|
|
|
|
2001-10-26 19:11:30 +00:00
|
|
|
# Internationalization support
|
2001-11-30 20:37:27 +00:00
|
|
|
GETTEXT_PACKAGE=control-center
|
|
|
|
AC_SUBST(GETTEXT_PACKAGE)
|
|
|
|
|
2001-10-23 04:17:29 +00:00
|
|
|
ALL_LINGUAS="az ca cs da de el en_GB es et fi fr ga gl hr hu it ja ko lt lv nl nn no pl pt pt_BR ro ru sk sl sv tr uk wa zh_CN zh_TW"
|
2001-11-30 20:37:27 +00:00
|
|
|
AM_GLIB_GNU_GETTEXT
|
2001-10-26 19:11:30 +00:00
|
|
|
AC_PROG_INTLTOOL
|
1998-02-11 22:22:32 +00:00
|
|
|
|
1999-02-22 22:44:02 +00:00
|
|
|
AC_CHECK_FUNCS(usleep)
|
2000-08-18 19:13:07 +00:00
|
|
|
AC_CHECK_FUNCS(putenv,[AC_DEFINE(HAVE_PUTENV)])
|
|
|
|
AC_CHECK_FUNCS(setenv,[AC_DEFINE(HAVE_SETENV)])
|
1999-02-22 22:44:02 +00:00
|
|
|
|
1998-12-08 20:47:55 +00:00
|
|
|
dnl keyboard-properties-capplet
|
1998-02-10 21:22:12 +00:00
|
|
|
AC_CHECK_HEADERS(X11/extensions/xf86misc.h, XF86MISC_LIBS="-lXxf86misc")
|
|
|
|
AC_SUBST(XF86MISC_LIBS)
|
|
|
|
|
2001-07-18 06:36:24 +00:00
|
|
|
dnl ==============================================
|
|
|
|
dnl Check that we meet the dependencies
|
|
|
|
dnl ==============================================
|
2001-12-09 18:50:32 +00:00
|
|
|
COMMON_MODULES="gtk+-2.0 gconf-2.0 libgnomeui-2.0 libglade-2.0 libbonobo-2.0 libbonoboui-2.0 libglade-2.0 gconf-2.0"
|
2001-12-20 14:11:59 +00:00
|
|
|
PKG_CHECK_MODULES(CAPPLET, $COMMON_MODULES)
|
2001-12-09 04:44:37 +00:00
|
|
|
PKG_CHECK_MODULES(GNOMECC, $COMMON_MODULES libxml-2.0 gnome-desktop-2.0)
|
2001-12-20 14:11:59 +00:00
|
|
|
PKG_CHECK_MODULES(GNOME_SETTINGS_DAEMON, gtk+-2.0 gconf-2.0 libgnome-2.0)
|
|
|
|
PKG_CHECK_MODULES(OLD_CAPPLET, libgnomeui-2.0 libglade-2.0)
|
2001-12-02 04:56:11 +00:00
|
|
|
PKG_CHECK_MODULES(GNOME, libgnomeui-2.0)
|
2001-07-25 17:26:17 +00:00
|
|
|
|
2001-10-26 19:11:30 +00:00
|
|
|
SCREENSAVER=screensaver
|
Install all pixmaps. (pixmaps_DATA): Add blank-screen.png.
2001-08-09 Richard Hestilow <hestilow@ximian.com>
* Makeflie.am (EXTRA_DIST): Install all pixmaps.
(pixmaps_DATA): Add blank-screen.png.
* pref-file.c: Replace "programs" value with a regenerated
string.
(print_aligned_row): Added.
(print_list_to_str): Added.
* preferences.h (Screensaver): Add new fields "filename",
"compat_command_line", "fakepreview", and "fakes",
to deal with the new xml storage.
(Preferences): Add new fields "savers_hash" and "invalidsavers".
* preferences.c (screensaver_list_prepend_dir): Added.
(screensaver_cmp_func): Added.
(screensaver_list_load): Added.
(preferences_new): Initialize savers_hash.
(clean_saver_list): Added.
(preferences_load): Load screensavers from xml.
(parse_arg_default): Added.
(screensaver_read_xml): Updated for the new format.
(screensaver_new_from_file): Added.
* prefs-widget.c (double_click_cb): Added.
(): Remove right click menu, add double click handler.
(model_is_cell_editable): Fix for etable bug.
(random_timeout_cb): Avoid vidwhacker and webcollage.
* preview.c: Optionally show fakepreview if set, and
deal with compat_command_line, and refresh pixbufs.
(command_exists): Renamed to rc_command_exists.
* rc-parse.c: (parse_screensaver_list): Merely update
the existing entries, via the provided hash.
* screensaver-prefs-dialog.c (get_argument_data): Just
find the xml file using ::filename.
* screensavers/magic.pl.in: Added.
* screensavers/Makefile.am: Generate .xml.h files for translators,
and install all .xml files and .png files, and run magic.pl on
make install.
2001-08-10 03:36:17 +00:00
|
|
|
AC_PATH_PROG(XSCREENSAVER, xscreensaver, no)
|
|
|
|
if test "$XSCREENSAVER" = no ; then
|
2001-10-26 19:11:30 +00:00
|
|
|
AC_MSG_WARN(xscreensaver was not found. It can be downloaded from http://www.jwz.org/xscreensaver/.)
|
|
|
|
SCREENSAVER=
|
Install all pixmaps. (pixmaps_DATA): Add blank-screen.png.
2001-08-09 Richard Hestilow <hestilow@ximian.com>
* Makeflie.am (EXTRA_DIST): Install all pixmaps.
(pixmaps_DATA): Add blank-screen.png.
* pref-file.c: Replace "programs" value with a regenerated
string.
(print_aligned_row): Added.
(print_list_to_str): Added.
* preferences.h (Screensaver): Add new fields "filename",
"compat_command_line", "fakepreview", and "fakes",
to deal with the new xml storage.
(Preferences): Add new fields "savers_hash" and "invalidsavers".
* preferences.c (screensaver_list_prepend_dir): Added.
(screensaver_cmp_func): Added.
(screensaver_list_load): Added.
(preferences_new): Initialize savers_hash.
(clean_saver_list): Added.
(preferences_load): Load screensavers from xml.
(parse_arg_default): Added.
(screensaver_read_xml): Updated for the new format.
(screensaver_new_from_file): Added.
* prefs-widget.c (double_click_cb): Added.
(): Remove right click menu, add double click handler.
(model_is_cell_editable): Fix for etable bug.
(random_timeout_cb): Avoid vidwhacker and webcollage.
* preview.c: Optionally show fakepreview if set, and
deal with compat_command_line, and refresh pixbufs.
(command_exists): Renamed to rc_command_exists.
* rc-parse.c: (parse_screensaver_list): Merely update
the existing entries, via the provided hash.
* screensaver-prefs-dialog.c (get_argument_data): Just
find the xml file using ::filename.
* screensavers/magic.pl.in: Added.
* screensavers/Makefile.am: Generate .xml.h files for translators,
and install all .xml files and .png files, and run magic.pl on
make install.
2001-08-10 03:36:17 +00:00
|
|
|
fi
|
|
|
|
XSCREENSAVER_BIN_DIR=`dirname $XSCREENSAVER`
|
|
|
|
# sigh, lame
|
|
|
|
if test "$XSCREENSAVER_BIN_DIR" = "/usr/bin/X11"; then
|
|
|
|
XSCREENSAVER_BIN_DIR="/usr/X11R6/bin";
|
|
|
|
fi
|
|
|
|
|
|
|
|
XSCREENSAVER_PREFIX=`dirname $XSCREENSAVER_BIN_DIR`
|
|
|
|
AC_SUBST(XSCREENSAVER_PREFIX)
|
|
|
|
|
|
|
|
AC_PATH_PROG(PERL, perl, no)
|
|
|
|
if test "$PERL" = no ; then
|
2001-10-26 19:11:30 +00:00
|
|
|
AC_MSG_WARN(Perl was not found. Disabling screensaver capplet)
|
|
|
|
SCREENSAVER=
|
Install all pixmaps. (pixmaps_DATA): Add blank-screen.png.
2001-08-09 Richard Hestilow <hestilow@ximian.com>
* Makeflie.am (EXTRA_DIST): Install all pixmaps.
(pixmaps_DATA): Add blank-screen.png.
* pref-file.c: Replace "programs" value with a regenerated
string.
(print_aligned_row): Added.
(print_list_to_str): Added.
* preferences.h (Screensaver): Add new fields "filename",
"compat_command_line", "fakepreview", and "fakes",
to deal with the new xml storage.
(Preferences): Add new fields "savers_hash" and "invalidsavers".
* preferences.c (screensaver_list_prepend_dir): Added.
(screensaver_cmp_func): Added.
(screensaver_list_load): Added.
(preferences_new): Initialize savers_hash.
(clean_saver_list): Added.
(preferences_load): Load screensavers from xml.
(parse_arg_default): Added.
(screensaver_read_xml): Updated for the new format.
(screensaver_new_from_file): Added.
* prefs-widget.c (double_click_cb): Added.
(): Remove right click menu, add double click handler.
(model_is_cell_editable): Fix for etable bug.
(random_timeout_cb): Avoid vidwhacker and webcollage.
* preview.c: Optionally show fakepreview if set, and
deal with compat_command_line, and refresh pixbufs.
(command_exists): Renamed to rc_command_exists.
* rc-parse.c: (parse_screensaver_list): Merely update
the existing entries, via the provided hash.
* screensaver-prefs-dialog.c (get_argument_data): Just
find the xml file using ::filename.
* screensavers/magic.pl.in: Added.
* screensavers/Makefile.am: Generate .xml.h files for translators,
and install all .xml files and .png files, and run magic.pl on
make install.
2001-08-10 03:36:17 +00:00
|
|
|
fi
|
|
|
|
AC_SUBST(PERL)
|
|
|
|
|
2001-10-26 19:11:30 +00:00
|
|
|
AC_SUBST(SCREENSAVER)
|
|
|
|
|
2001-12-08 07:01:32 +00:00
|
|
|
AC_PATH_PROG(GCONFTOOL, gconftool-2)
|
|
|
|
|
2001-07-18 06:36:24 +00:00
|
|
|
dnl ==============================================
|
|
|
|
dnl End: Check that we meet the dependencies
|
|
|
|
dnl ==============================================
|
|
|
|
|
2001-12-08 07:01:32 +00:00
|
|
|
dnl ==============================================
|
|
|
|
dnl Special GConf section
|
|
|
|
dnl ==============================================
|
|
|
|
|
2001-12-10 05:31:44 +00:00
|
|
|
AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
|
2001-12-08 07:01:32 +00:00
|
|
|
|
2001-12-10 05:31:44 +00:00
|
|
|
if test x"$GCONFTOOL" = xno; then
|
|
|
|
AC_MSG_ERROR([gconftool-2 executable not found in your path - should be installed with GConf])
|
2001-12-08 07:01:32 +00:00
|
|
|
fi
|
|
|
|
|
2001-12-10 05:31:44 +00:00
|
|
|
AM_GCONF_SOURCE_2
|
2001-01-24 19:01:22 +00:00
|
|
|
|
2001-07-18 06:36:24 +00:00
|
|
|
dnl ==============================================
|
|
|
|
dnl Define the main variables
|
|
|
|
dnl ==============================================
|
2001-07-25 17:26:17 +00:00
|
|
|
COMMON_CFLAGS="-I\$(top_srcdir)/capplets/common"
|
|
|
|
COMMON_LIBS="\$(top_builddir)/capplets/common/libcommon.a"
|
|
|
|
|
|
|
|
EXTRA_CFLAGS="-I\$(top_srcdir)/intl -I\$(top_srcdir)/ -DG_LOG_DOMAIN=\"\\\"\$(cappletname)-properties\\\"\" -DGNOMELOCALEDIR=\"\\\"${datadir}/locale\\\"\""
|
|
|
|
|
|
|
|
GNOMECC_CAPPLETS_CFLAGS="${CAPPLET_CFLAGS} ${EXTRA_CFLAGS} ${COMMON_CFLAGS}"
|
|
|
|
GNOMECC_CAPPLETS_LIBS="${CAPPLET_LIBS} ${COMMON_LIBS}"
|
|
|
|
|
2001-07-18 06:36:24 +00:00
|
|
|
GNOMECC_CAPPLETS_CLEANFILES="\$(desktop) \$(desktop).in"
|
2001-07-20 07:35:02 +00:00
|
|
|
GNOMECC_CAPPLETS_EXTRA_DIST="ChangeLog \$(desktop).in.in \$(cappletname)-capplet.png \$(cappletname)-properties.glade \$(pixmaps_DATA)"
|
2001-07-18 06:36:24 +00:00
|
|
|
|
|
|
|
AC_SUBST(GNOMECC_CAPPLETS_EXTRA_DIST)
|
|
|
|
AC_SUBST(GNOMECC_CAPPLETS_CLEANFILES)
|
2001-07-18 03:21:07 +00:00
|
|
|
AC_SUBST(GNOMECC_CAPPLETS_CFLAGS)
|
|
|
|
AC_SUBST(GNOMECC_CAPPLETS_LIBS)
|
2001-12-20 14:11:59 +00:00
|
|
|
|
|
|
|
AC_SUBST(GNOME_SETTINGS_DAEMON_CFLAGS)
|
|
|
|
AC_SUBST(GNOME_SETTINGS_DAEMON_LIBS)
|
|
|
|
|
2001-07-18 06:36:24 +00:00
|
|
|
dnl ==============================================
|
|
|
|
dnl End: Define the main variables
|
|
|
|
dnl ==============================================
|
2001-07-17 08:35:15 +00:00
|
|
|
|
2001-07-18 06:36:24 +00:00
|
|
|
|
2001-12-09 18:50:32 +00:00
|
|
|
GCONF_CONFIG_SOURCE=
|
|
|
|
AC_ARG_ENABLE(gconf-source, [ --enable-gconf-source=sourceaddress Where to install schema files.],GCONF_CONFIG_SOURCE=$enable_gconf_source,)
|
|
|
|
|
|
|
|
if test "x$GCONF_CONFIG_SOURCE" = "x"; then
|
|
|
|
GCONF_CONFIG_SOURCE="xml::\${DESTDIR}\${sysconfdir}/gconf/gconf.xml.defaults"
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_SUBST(GCONF_CONFIG_SOURCE)
|
|
|
|
AC_SUBST(INSTALL_GCONF_CONFIG_SOURCE)
|
|
|
|
|
|
|
|
|
2001-07-18 06:36:24 +00:00
|
|
|
|
|
|
|
dnl ==============================================
|
|
|
|
dnl Define the directories
|
|
|
|
dnl ==============================================
|
2001-08-07 17:01:55 +00:00
|
|
|
if test "x${prefix}" = "xNONE"; then
|
|
|
|
real_prefix=${ac_default_prefix}
|
|
|
|
else
|
|
|
|
real_prefix=${prefix}
|
|
|
|
fi
|
|
|
|
|
|
|
|
AC_DEFINE_UNQUOTED(GNOMECC_ICONS_DIR, "${real_prefix}/share/${PACKAGE}/icons")
|
2001-10-11 22:23:22 +00:00
|
|
|
GNOMECC_ICONS_DIR=""${datadir}/${PACKAGE}/icons""
|
2001-07-17 08:35:15 +00:00
|
|
|
AC_SUBST(GNOMECC_ICONS_DIR)
|
2001-08-07 17:01:55 +00:00
|
|
|
AC_DEFINE_UNQUOTED(GNOMECC_GLADE_DIR, "${real_prefix}/share/${PACKAGE}/interfaces")
|
2001-10-11 22:23:22 +00:00
|
|
|
GNOMECC_GLADE_DIR=""${datadir}/${PACKAGE}/interfaces""
|
2001-07-17 23:32:47 +00:00
|
|
|
AC_SUBST(GNOMECC_GLADE_DIR)
|
2001-08-07 17:01:55 +00:00
|
|
|
AC_DEFINE_UNQUOTED(GNOMECC_PIXMAPS_DIR, "${real_prefix}/share/${PACKAGE}/pixmaps")
|
2001-10-11 22:23:22 +00:00
|
|
|
GNOMECC_PIXMAPS_DIR=""${datadir}/${PACKAGE}/pixmaps""
|
2001-07-18 03:21:07 +00:00
|
|
|
AC_SUBST(GNOMECC_PIXMAPS_DIR)
|
2001-09-12 15:37:49 +00:00
|
|
|
AC_DEFINE_UNQUOTED(GNOMECC_DEFAULTS_DIR, "${real_prefix}/share/${PACKAGE}/defaults")
|
2001-10-11 22:23:22 +00:00
|
|
|
GNOMECC_DEFAULTS_DIR=""${datadir}/${PACKAGE}/defaults""
|
2001-09-12 15:37:49 +00:00
|
|
|
AC_SUBST(GNOMECC_DEFAULTS_DIR)
|
2001-08-07 17:01:55 +00:00
|
|
|
AC_DEFINE_UNQUOTED(GNOMECC_SCREENSAVERS_DIR, "${real_prefix}/share/${PACKAGE}/screensavers")
|
2001-10-11 22:23:22 +00:00
|
|
|
GNOMECC_SCREENSAVERS_DIR=""${datadir}/${PACKAGE}/screensavers""
|
2001-07-18 06:36:24 +00:00
|
|
|
AC_SUBST(GNOMECC_SCREENSAVERS_DIR)
|
|
|
|
dnl ==============================================
|
|
|
|
dnl End: Define the directories
|
|
|
|
dnl ==============================================
|
2001-07-17 08:35:15 +00:00
|
|
|
|
2001-07-18 06:36:24 +00:00
|
|
|
dnl =======================================
|
|
|
|
dnl Variables for config_archiverConf.sh.in
|
|
|
|
dnl =======================================
|
2001-07-05 21:51:20 +00:00
|
|
|
CONFIG_ARCHIVER_LIBDIR='-L${libdir}'
|
|
|
|
CONFIG_ARCHIVER_LIBS="$CONFIG_ARCHIVER_LIBS -lconfig_archiver"
|
|
|
|
CONFIG_ARCHIVER_INCLUDEDIR="$CONFIG_ARCHIVER_CFLAGS -I${includedir}"
|
2001-07-05 20:06:12 +00:00
|
|
|
|
2001-07-05 21:51:20 +00:00
|
|
|
AC_SUBST(CONFIG_ARCHIVER_LIBDIR)
|
|
|
|
AC_SUBST(CONFIG_ARCHIVER_LIBS)
|
|
|
|
AC_SUBST(CONFIG_ARCHIVER_INCLUDEDIR)
|
2001-07-18 06:36:24 +00:00
|
|
|
dnl =======================================
|
|
|
|
dnl End: Variables for config_archiverConf.sh.in
|
|
|
|
dnl =======================================
|
2001-07-05 20:06:12 +00:00
|
|
|
|
2001-07-17 07:09:26 +00:00
|
|
|
|
1998-02-10 21:22:12 +00:00
|
|
|
AC_OUTPUT([
|
1999-02-21 18:21:06 +00:00
|
|
|
control-center.spec
|
1998-02-10 21:22:12 +00:00
|
|
|
Makefile
|
|
|
|
po/Makefile.in
|
2001-12-09 18:50:32 +00:00
|
|
|
schemas/Makefile
|
|
|
|
gnome-settings-daemon/Makefile
|
2001-07-05 17:27:44 +00:00
|
|
|
control-center/Makefile
|
2001-12-06 23:53:58 +00:00
|
|
|
libbackground/Makefile
|
1998-08-25 22:14:30 +00:00
|
|
|
capplets/Makefile
|
2001-07-13 18:51:28 +00:00
|
|
|
capplets/common/Makefile
|
2001-07-05 17:27:44 +00:00
|
|
|
capplets/background/Makefile
|
2001-07-16 18:07:52 +00:00
|
|
|
capplets/default-applications/Makefile
|
|
|
|
capplets/desktop-links/Makefile
|
2001-07-05 17:27:44 +00:00
|
|
|
capplets/keyboard/Makefile
|
|
|
|
capplets/mouse/Makefile
|
|
|
|
capplets/screensaver/Makefile
|
|
|
|
capplets/screensaver/screensavers/Makefile
|
Install all pixmaps. (pixmaps_DATA): Add blank-screen.png.
2001-08-09 Richard Hestilow <hestilow@ximian.com>
* Makeflie.am (EXTRA_DIST): Install all pixmaps.
(pixmaps_DATA): Add blank-screen.png.
* pref-file.c: Replace "programs" value with a regenerated
string.
(print_aligned_row): Added.
(print_list_to_str): Added.
* preferences.h (Screensaver): Add new fields "filename",
"compat_command_line", "fakepreview", and "fakes",
to deal with the new xml storage.
(Preferences): Add new fields "savers_hash" and "invalidsavers".
* preferences.c (screensaver_list_prepend_dir): Added.
(screensaver_cmp_func): Added.
(screensaver_list_load): Added.
(preferences_new): Initialize savers_hash.
(clean_saver_list): Added.
(preferences_load): Load screensavers from xml.
(parse_arg_default): Added.
(screensaver_read_xml): Updated for the new format.
(screensaver_new_from_file): Added.
* prefs-widget.c (double_click_cb): Added.
(): Remove right click menu, add double click handler.
(model_is_cell_editable): Fix for etable bug.
(random_timeout_cb): Avoid vidwhacker and webcollage.
* preview.c: Optionally show fakepreview if set, and
deal with compat_command_line, and refresh pixbufs.
(command_exists): Renamed to rc_command_exists.
* rc-parse.c: (parse_screensaver_list): Merely update
the existing entries, via the provided hash.
* screensaver-prefs-dialog.c (get_argument_data): Just
find the xml file using ::filename.
* screensavers/magic.pl.in: Added.
* screensavers/Makefile.am: Generate .xml.h files for translators,
and install all .xml files and .png files, and run magic.pl on
make install.
2001-08-10 03:36:17 +00:00
|
|
|
capplets/screensaver/screensavers/magic.pl
|
2001-12-02 04:56:11 +00:00
|
|
|
libsounds/Makefile
|
2001-11-29 22:36:16 +00:00
|
|
|
idl/Makefile])
|