nautilus/configure.in

523 lines
14 KiB
Plaintext
Raw Normal View History

AC_PREREQ(2.54)
dnl ===========================================================================
m4_define(glib_minver, 2.19.0)
m4_define(gnome_desktop_minver, 2.25.5)
m4_define(pango_minver, 1.1.2)
m4_define(gtk_minver, 2.13.0)
m4_define(xml_minver, 2.4.7)
m4_define(exif_minver, 0.5.12)
m4_define(beagle_minver, 0.2.4)
m4_define(tracker_minver, 0.0.1)
m4_define(exempi_minver, 1.99.2)
m4_define(exempi_minver_newapi, 1.99.5)
m4_define(gail_minver, 0.16)
dnl 1. If the library code has changed at all since last release, then increment revision.
dnl 2. If any interfaces have been added, then increment current and set revision to 0.
dnl Interface break is not allowed.
m4_define(nautilus_extension_current, 2)
m4_define(nautilus_extension_revision, 0)
AC_INIT([nautilus],[2.25.93],
[http://bugzilla.gnome.org/enter_bug.cgi?product=nautilus])
dnl ===========================================================================
AC_CONFIG_SRCDIR(src)
AC_CONFIG_HEADERS(config.h)
1999-12-05 00:40:26 +00:00
AM_INIT_AUTOMAKE([1.9 tar-ustar])
1999-12-05 00:40:26 +00:00
AM_MAINTAINER_MODE
AC_SUBST([ACLOCAL_AMFLAGS], ["\${ACLOCAL_FLAGS}"])
AC_SUBST(GLIB_REQUIRED, [glib_minver])
AC_SUBST(GNOME_DESKTOP_REQUIRED, [gnome_desktop_minver])
AC_SUBST(PANGO_REQUIRED, [pango_minver])
AC_SUBST(GTK_REQUIRED, [gtk_minver])
AC_SUBST(XML_REQUIRED, [xml_minver])
AC_SUBST(GAIL_REQUIRED)
dnl We need to decrement current by one in the calculation of the age because
dnl the library was started with version "1:0:0" instead of "0:0:0"
AC_SUBST(NAUTILUS_EXTENSION_VERSION_INFO, [nautilus_extension_current]:[nautilus_extension_revision]:`expr [nautilus_extension_current] - 1`)
1999-12-05 00:40:26 +00:00
AC_C_BIGENDIAN
AC_C_CONST
1999-12-05 00:40:26 +00:00
AC_PROG_CC
AC_PROG_CPP
1999-12-05 00:40:26 +00:00
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AM_DISABLE_STATIC
AC_LIBTOOL_WIN32_DLL
AM_PROG_LIBTOOL
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
PKG_CHECK_MODULES(ALL, [
glib-2.0 >= glib_minver
gnome-desktop-2.0 >= gnome_desktop_minver
gthread-2.0
gio-unix-2.0
gio-2.0
pango >= pango_minver
gtk+-2.0 >= gtk_minver
libxml-2.0 >= xml_minver
gail >= gail_minver
unique-1.0
dbus-glib-1
])
dnl ==========================================================================
GETTEXT_PACKAGE=nautilus
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",
[the gettext translation domain])
AM_GLIB_GNU_GETTEXT
GLIB_DEFINE_LOCALEDIR(GNOMELOCALEDIR)
IT_PROG_INTLTOOL([0.40.1])
dnl ==========================================================================
GTK_DOC_CHECK([1.4])
dnl ==========================================================================
ENABLE_PROFILER=
AC_ARG_ENABLE(profiler,
AC_HELP_STRING([--enable-profiler], [Enable profiler]),
[ENABLE_PROFILER=1
AC_DEFINE(ENABLE_PROFILER, 1, [define to enable the profiler])])
profiling_support=off
if test "x$ENABLE_PROFILER" = "x1"
then
CFLAGS="-g -O -gdwarf-2 -finstrument-functions -D__NO_STRING_INLINES $CFLAGS"
LDFLAGS="/gnome/GNOME2/lib/libprofiler.so -lpthread $LDFLAGS"
profiling_support=on
fi
AC_SUBST(ENABLE_PROFILER)
AM_CONDITIONAL(ENABLE_PROFILER, test "x$ENABLE_PROFILER" = "x1")
dnl ==========================================================================
AC_CHECK_PROGS(PERL, perl5 perl)
AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
dnl ==========================================================================
AC_CHECK_HEADERS(sys/mount.h sys/vfs.h sys/param.h malloc.h)
dnl ==========================================================================
AC_CHECK_FUNCS(statfs statvfs mallopt)
AC_CHECK_HEADERS(sys/statfs.h sys/statvfs.h)
dnl
dnl if statfs() takes 2 arguments or 4 (Solaris)
dnl
if test "$ac_cv_func_statfs" = yes ; then
AC_MSG_CHECKING([number of arguments to statfs()])
AC_TRY_COMPILE([#include <unistd.h>
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
#ifdef HAVE_SYS_VFS_H
#include <sys/vfs.h>
#endif
#ifdef HAVE_SYS_MOUNT_H
#include <sys/mount.h>
#endif
#ifdef HAVE_SYS_STATFS_H
#include <sys/statfs.h>
#endif], [struct statfs st;
statfs(NULL, &st);],[
AC_MSG_RESULT([2])
AC_DEFINE(STATFS_ARGS, 2, [Number of arguments to statfs()])],[
AC_TRY_COMPILE([#include <unistd.h>
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
#ifdef HAVE_SYS_VFS_H
#include <sys/vfs.h>
#endif
#ifdef HAVE_SYS_MOUNT_H
#include <sys/mount.h>
#endif
#ifdef HAVE_SYS_STATFS_H
#include <sys/statfs.h>
#endif], [struct statfs st;
statfs(NULL, &st, sizeof (st), 0);],[
AC_MSG_RESULT([4])
AC_DEFINE(STATFS_ARGS, 4, [Number of arguments to statfs()])],[
AC_MSG_RESULT(unknown)
AC_MSG_ERROR([unable to determine number of arguments to statfs()])])])
fi dnl test "$ac_cv_func_statfs" = yes
dnl ==========================================================================
dnl X
x_libs="`$PKG_CONFIG --libs pangox`"
case x_libs in
*-lX11*) pango_omitted_x_deps=no ;;
*) pango_omitted_x_deps=yes ;;
esac
x_cflags="`$PKG_CONFIG --cflags pangox`"
x_extra_libs=
if test $pango_omitted_x_deps = yes ; then
AC_PATH_XTRA
if test x$no_x = xyes ; then
AC_MSG_ERROR([X development libraries not found])
fi
x_libs="$X_LIBS -lX11 $X_EXTRA_LIBS"
fi
## Strip the .la files
x_libs_for_checks=$x_libs
#for I in $x_libs ; do
# case $I in
# *.la) ;;
# *) x_libs_for_checks="$x_libs_for_checks $I" ;;
# esac
#done
AC_CHECK_LIB(X11, XOpenDisplay, :,
AC_MSG_ERROR([*** libX11 not found. Check 'config.log' for more details.]),
$x_libs_for_checks)
dnl ==========================================================================
AM_CONDITIONAL(HAVE_EXIF, false)
dnl libexif checking
PKG_CHECK_MODULES(EXIF, libexif > exif_minver, [
AM_CONDITIONAL(HAVE_EXIF, true)
AC_DEFINE(HAVE_EXIF, 1, [Define to enable EXIF support])
], [
PKG_CHECK_MODULES(EXIF, libexif = exif_minver, [
AM_CONDITIONAL(HAVE_EXIF, true)
AC_DEFINE(HAVE_OLD_EXIF, 1, [Define if your EXIF library has old API])
], [AM_CONDITIONAL(HAVE_EXIF, false)])
])
AC_SUBST(EXIF_CFLAGS)
AC_SUBST(EXIF_LIBS)
dnl ==========================================================================
dnl exempi checking
AM_CONDITIONAL(HAVE_EXEMPI, false)
AC_ARG_ENABLE(xmp,
AC_HELP_STRING([--disable-xmp],
[build without xmp support]))
msg_xmp=no
if test "x$enable_xmp" != "xno"; then
PKG_CHECK_MODULES(EXEMPI, exempi-2.0 >= exempi_minver, [
AM_CONDITIONAL(HAVE_EXEMPI, true)
AC_DEFINE(HAVE_EXEMPI, 1, [Define to enable xmp support])
]
msg_xmp=yes,
[AM_CONDITIONAL(HAVE_EXEMPI, false)])
PKG_CHECK_MODULES(EXEMPI_NEW_API, exempi-2.0 >= exempi_minver_newapi,
AC_DEFINE(HAVE_EXEMPI_NEW_API, 1, [Define if we have exempi with the new API]), true)
AC_SUBST(EXEMPI_CFLAGS)
AC_SUBST(EXEMPI_LIBS)
fi
dnl ==========================================================================
dnl search implementations
dnl ****************************
AM_CONDITIONAL(HAVE_TRACKER, false)
dnl libtracker checking
AC_ARG_ENABLE(tracker,
AC_HELP_STRING([--disable-tracker],
[build without tracker support]))
msg_tracker=no
if test "x$enable_tracker" != "xno"; then
PKG_CHECK_MODULES(TRACKER, tracker >= tracker_minver, [
AM_CONDITIONAL(HAVE_TRACKER, true)
AC_DEFINE(HAVE_TRACKER, 1, [Define to enable tracker support])
]
msg_tracker=yes,
[AM_CONDITIONAL(HAVE_TRACKER, false)])
AC_SUBST(TRACKER_CFLAGS)
AC_SUBST(TRACKER_LIBS)
fi
dnl ==========================================================================
AM_CONDITIONAL(HAVE_BEAGLE, false)
dnl libbeagle checking
AC_ARG_ENABLE(beagle,
AC_HELP_STRING([--disable-beagle],
[build without beagle support]))
msg_beagle=no
if test "x$enable_beagle" != "xno"; then
BEAGLE_PKGCONFIG=
if $PKG_CONFIG --exists libbeagle-1.0; then
BEAGLE_PKGCONFIG=libbeagle-1.0
else
BEAGLE_PKGCONFIG=libbeagle-0.0
fi
PKG_CHECK_MODULES(BEAGLE, $BEAGLE_PKGCONFIG >= beagle_minver, [
AM_CONDITIONAL(HAVE_BEAGLE, true)
AC_DEFINE(HAVE_BEAGLE, 1, [Define to enable beagle support])
]
msg_beagle=yes,
[AM_CONDITIONAL(HAVE_BEAGLE, false)])
AC_SUBST(BEAGLE_CFLAGS)
AC_SUBST(BEAGLE_LIBS)
fi
dnl ==========================================================================
dnl ****************************
dnl *** Check for libselinux ***
dnl ****************************
SELINUX_LIBS=
msg_selinux=no
AC_CHECK_LIB(selinux, is_selinux_enabled,
[AC_CHECK_HEADERS(selinux/selinux.h,
[AC_SEARCH_LIBS(selinux_raw_to_trans_context, selinux,
[AC_DEFINE(HAVE_SELINUX, 1, [Define to 1 if libselinux is available])
SELINUX_LIBS="-lselinux"
msg_selinux=yes])
])
])
AC_SUBST(SELINUX_LIBS)
AC_ARG_ENABLE(empty_view,
AC_HELP_STRING([--enable-empty-view], [Enable empty view]),
[ENABLE_EMPTY_VIEW=1
AC_DEFINE(ENABLE_EMPTY_VIEW, 1, [define to enable the empty view that is used for performance measurement])])
AC_SUBST(ENABLE_EMPTY_VIEW)
AM_CONDITIONAL(ENABLE_EMPTY_VIEW, test "x$ENABLE_EMPTY_VIEW" = "x1")
dnl ==========================================================================
AC_ARG_ENABLE(packagekit,
AC_HELP_STRING([--disable-packagekit],
[build without PackageKit support]))
msg_packagekit=no
if test "x$enable_packagekit" != "xno"; then
msg_packagekit=yes
AC_DEFINE(ENABLE_PACKAGEKIT, 1, [define to enable PackageKit mimetype installer])
fi
dnl ==========================================================================
dnl Turn on the additional warnings last, so -Werror doesn't affect other tests.
Change to use bonobo_object_unref now that the leaks have been fixed. This * src/nautilus-view-frame.c: (nautilus_view_frame_destroy_client): Change to use bonobo_object_unref now that the leaks have been fixed. This requires the new Bonobo or you'll have lots of leaked processes. Luckily, Nautilus won't compile without the new Bonobo due to my use of bonobo_object_shutdown in main :-) * configure.in: Fix the way -Werror works so it affects all directories, not just ones where we use WERROR. * components/hardware/Makefile.am: * components/help/Makefile.am: * components/history/Makefile.am: * components/loser/content/Makefile.am: * components/loser/sidebar/Makefile.am: * components/mozilla/Makefile.am: * components/music/Makefile.am: * components/notes/Makefile.am: * components/rpmview/Makefile.am: * components/sample/Makefile.am: * components/services/install/command-line/Makefile.am: * components/services/install/lib/Makefile.am: * components/services/install/nautilus-view/Makefile.am: * components/services/install/server/Makefile.am: * components/services/inventory/lib/Makefile.am: * components/services/inventory/nautilus-view/Makefile.am: * components/services/inventory/service/Makefile.am: * components/services/login/lib/Makefile.am: * components/services/login/nautilus-view/Makefile.am: * components/services/login/service/Makefile.am: * components/services/startup/command-line/Makefile.am: * components/services/startup/lib/Makefile.am: * components/services/startup/nautilus-view/Makefile.am: * components/services/summary/lib/Makefile.am: * components/services/summary/nautilus-view/Makefile.am: * components/services/summary/service/Makefile.am: * components/services/time/command-line/Makefile.am: * components/services/time/nautilus-view/Makefile.am: * components/services/time/service/Makefile.am: * components/services/trilobite/helper/Makefile.am: * components/services/trilobite/libtrilobite/Makefile.am: * components/services/trilobite/sample/command-line/.cvsignore: * components/services/trilobite/sample/command-line/Makefile.am: * components/services/trilobite/sample/lib/Makefile.am: * components/services/trilobite/sample/nautilus-view/Makefile.am: * components/services/trilobite/sample/service/Makefile.am: * components/services/vault/command-line/Makefile.am: * components/services/vault/lib/Makefile.am: * components/services/vault/nautilus-view/Makefile.am: * components/services/vault/service/Makefile.am: * components/tree/Makefile.am: * components/websearch/Makefile.am: * cut-n-paste-code/widgets/nautilus-druid/Makefile.am: * helper-utilities/authenticate/Makefile.am: * libnautilus-extensions/Makefile.am: * libnautilus/Makefile.am: * librsvg/Makefile.am: * nautilus-installer/src/Makefile.am: * src/Makefile.am: * src/file-manager/Makefile.am: * test/Makefile.am: Got rid of the WERROR shell variable. The -Werror switch is no longer a per-directory thing. * librsvg/Makefile.am: Added libpng to the libraries for the test program. Maybe this was the wrong thing to do, but before this change the link failed. * components/sample/Makefile.am: * components/sample/main.c: * components/sample/nautilus-sample-content-view.c: * components/sample/nautilus-sample-content-view.h: A clean-up of the sample, including fixing many bugs and adding lots of comments. I figure we want this to be as close to exemplary as possible since people will continue to start with it for new components. * libnautilus-extensions/nautilus-bookmark.c: (nautilus_bookmark_new_with_icon): Removed a bogus extra ref of a NautilusFile object that I spotted in here. * src/nautilus-application.c: (nautilus_application_destroy_window): Re-added the code to quit when the last window is closed that Mike removed in his recent check-in. * src/nautilus-main.c: (main): Added a call to bonobo_shutdown. We don't need this call, but I say, "Why not?"
2000-07-12 19:33:38 +00:00
AC_ARG_ENABLE(more-warnings,
AC_HELP_STRING([--enable-more-warnings], [Maximum compiler warnings]),
set_more_warnings="$enableval",[
if test -f $srcdir/CVSVERSION; then
is_cvs_version=true
set_more_warnings=yes
else
set_more_warnings=no
fi
])
Change to use bonobo_object_unref now that the leaks have been fixed. This * src/nautilus-view-frame.c: (nautilus_view_frame_destroy_client): Change to use bonobo_object_unref now that the leaks have been fixed. This requires the new Bonobo or you'll have lots of leaked processes. Luckily, Nautilus won't compile without the new Bonobo due to my use of bonobo_object_shutdown in main :-) * configure.in: Fix the way -Werror works so it affects all directories, not just ones where we use WERROR. * components/hardware/Makefile.am: * components/help/Makefile.am: * components/history/Makefile.am: * components/loser/content/Makefile.am: * components/loser/sidebar/Makefile.am: * components/mozilla/Makefile.am: * components/music/Makefile.am: * components/notes/Makefile.am: * components/rpmview/Makefile.am: * components/sample/Makefile.am: * components/services/install/command-line/Makefile.am: * components/services/install/lib/Makefile.am: * components/services/install/nautilus-view/Makefile.am: * components/services/install/server/Makefile.am: * components/services/inventory/lib/Makefile.am: * components/services/inventory/nautilus-view/Makefile.am: * components/services/inventory/service/Makefile.am: * components/services/login/lib/Makefile.am: * components/services/login/nautilus-view/Makefile.am: * components/services/login/service/Makefile.am: * components/services/startup/command-line/Makefile.am: * components/services/startup/lib/Makefile.am: * components/services/startup/nautilus-view/Makefile.am: * components/services/summary/lib/Makefile.am: * components/services/summary/nautilus-view/Makefile.am: * components/services/summary/service/Makefile.am: * components/services/time/command-line/Makefile.am: * components/services/time/nautilus-view/Makefile.am: * components/services/time/service/Makefile.am: * components/services/trilobite/helper/Makefile.am: * components/services/trilobite/libtrilobite/Makefile.am: * components/services/trilobite/sample/command-line/.cvsignore: * components/services/trilobite/sample/command-line/Makefile.am: * components/services/trilobite/sample/lib/Makefile.am: * components/services/trilobite/sample/nautilus-view/Makefile.am: * components/services/trilobite/sample/service/Makefile.am: * components/services/vault/command-line/Makefile.am: * components/services/vault/lib/Makefile.am: * components/services/vault/nautilus-view/Makefile.am: * components/services/vault/service/Makefile.am: * components/tree/Makefile.am: * components/websearch/Makefile.am: * cut-n-paste-code/widgets/nautilus-druid/Makefile.am: * helper-utilities/authenticate/Makefile.am: * libnautilus-extensions/Makefile.am: * libnautilus/Makefile.am: * librsvg/Makefile.am: * nautilus-installer/src/Makefile.am: * src/Makefile.am: * src/file-manager/Makefile.am: * test/Makefile.am: Got rid of the WERROR shell variable. The -Werror switch is no longer a per-directory thing. * librsvg/Makefile.am: Added libpng to the libraries for the test program. Maybe this was the wrong thing to do, but before this change the link failed. * components/sample/Makefile.am: * components/sample/main.c: * components/sample/nautilus-sample-content-view.c: * components/sample/nautilus-sample-content-view.h: A clean-up of the sample, including fixing many bugs and adding lots of comments. I figure we want this to be as close to exemplary as possible since people will continue to start with it for new components. * libnautilus-extensions/nautilus-bookmark.c: (nautilus_bookmark_new_with_icon): Removed a bogus extra ref of a NautilusFile object that I spotted in here. * src/nautilus-application.c: (nautilus_application_destroy_window): Re-added the code to quit when the last window is closed that Mike removed in his recent check-in. * src/nautilus-main.c: (main): Added a call to bonobo_shutdown. We don't need this call, but I say, "Why not?"
2000-07-12 19:33:38 +00:00
AC_MSG_CHECKING(for more warnings, including -Werror)
if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
AC_MSG_RESULT(yes)
WARNING_CFLAGS="\
-Wall \
-Wmissing-declarations -Wmissing-prototypes \
Change to use bonobo_object_unref now that the leaks have been fixed. This * src/nautilus-view-frame.c: (nautilus_view_frame_destroy_client): Change to use bonobo_object_unref now that the leaks have been fixed. This requires the new Bonobo or you'll have lots of leaked processes. Luckily, Nautilus won't compile without the new Bonobo due to my use of bonobo_object_shutdown in main :-) * configure.in: Fix the way -Werror works so it affects all directories, not just ones where we use WERROR. * components/hardware/Makefile.am: * components/help/Makefile.am: * components/history/Makefile.am: * components/loser/content/Makefile.am: * components/loser/sidebar/Makefile.am: * components/mozilla/Makefile.am: * components/music/Makefile.am: * components/notes/Makefile.am: * components/rpmview/Makefile.am: * components/sample/Makefile.am: * components/services/install/command-line/Makefile.am: * components/services/install/lib/Makefile.am: * components/services/install/nautilus-view/Makefile.am: * components/services/install/server/Makefile.am: * components/services/inventory/lib/Makefile.am: * components/services/inventory/nautilus-view/Makefile.am: * components/services/inventory/service/Makefile.am: * components/services/login/lib/Makefile.am: * components/services/login/nautilus-view/Makefile.am: * components/services/login/service/Makefile.am: * components/services/startup/command-line/Makefile.am: * components/services/startup/lib/Makefile.am: * components/services/startup/nautilus-view/Makefile.am: * components/services/summary/lib/Makefile.am: * components/services/summary/nautilus-view/Makefile.am: * components/services/summary/service/Makefile.am: * components/services/time/command-line/Makefile.am: * components/services/time/nautilus-view/Makefile.am: * components/services/time/service/Makefile.am: * components/services/trilobite/helper/Makefile.am: * components/services/trilobite/libtrilobite/Makefile.am: * components/services/trilobite/sample/command-line/.cvsignore: * components/services/trilobite/sample/command-line/Makefile.am: * components/services/trilobite/sample/lib/Makefile.am: * components/services/trilobite/sample/nautilus-view/Makefile.am: * components/services/trilobite/sample/service/Makefile.am: * components/services/vault/command-line/Makefile.am: * components/services/vault/lib/Makefile.am: * components/services/vault/nautilus-view/Makefile.am: * components/services/vault/service/Makefile.am: * components/tree/Makefile.am: * components/websearch/Makefile.am: * cut-n-paste-code/widgets/nautilus-druid/Makefile.am: * helper-utilities/authenticate/Makefile.am: * libnautilus-extensions/Makefile.am: * libnautilus/Makefile.am: * librsvg/Makefile.am: * nautilus-installer/src/Makefile.am: * src/Makefile.am: * src/file-manager/Makefile.am: * test/Makefile.am: Got rid of the WERROR shell variable. The -Werror switch is no longer a per-directory thing. * librsvg/Makefile.am: Added libpng to the libraries for the test program. Maybe this was the wrong thing to do, but before this change the link failed. * components/sample/Makefile.am: * components/sample/main.c: * components/sample/nautilus-sample-content-view.c: * components/sample/nautilus-sample-content-view.h: A clean-up of the sample, including fixing many bugs and adding lots of comments. I figure we want this to be as close to exemplary as possible since people will continue to start with it for new components. * libnautilus-extensions/nautilus-bookmark.c: (nautilus_bookmark_new_with_icon): Removed a bogus extra ref of a NautilusFile object that I spotted in here. * src/nautilus-application.c: (nautilus_application_destroy_window): Re-added the code to quit when the last window is closed that Mike removed in his recent check-in. * src/nautilus-main.c: (main): Added a call to bonobo_shutdown. We don't need this call, but I say, "Why not?"
2000-07-12 19:33:38 +00:00
-Wnested-externs -Wpointer-arith \
-Wcast-align \
-Werror"
Add checks to fix things on Solaris regarding mounting, environment 2000-09-11 Seth Nickell <seth@eazel.com> * configure.in: Add checks to fix things on Solaris regarding mounting, environment variables, and fonts. Added tests for compiler warning flags that are not supported with all versions of GCC. * helper-utilities/authenticate/nautilus-authenticate-pam.c: (pam_conversion_func): Remove "const" from system call for compatibility with Solaris. * libnautilus-extensions/nautilus-file.c: (get_id_from_digit_string): uid_t != int, so change functions converting from string to uid_t to deal with greater bit uids properly. * libnautilus-extensions/nautilus-glib-extensions.h: * libnautilus-extensions/nautilus-glib-extensions.c: (nautilus_g_setenv), (nautilus_g_unsetenv): Add system gnostic functions for setting and removing variables from the environment. * libnautilus-extensions/nautilus-scalable-font.c: (initialize_global_stuff_if_needed): Temporary fix to deal with the absence of "RedHat-style" font paths on Solaris and Debian whilst font paths are still hard-coded. * libnautilus-extensions/nautilus-volume-monitor.c: (nautilus_volume_monitor_get_volume_name), (nautilus_volume_monitor_volume_is_mounted), (mount_volumes_update_is_mounted), (mnttab_add_mount_volume), (mntent_add_mount_volume), (find_volumes): Rewrite sections to use the appropriate Solaris mounting functions if Linux-style mount/umount/mount-table manipulation functions are not available. * libnautilus/nautilus-view-component.idl: * src/nautilus-view-frame-corba.c: * src/nautilus-zoomable-frame-corba.c: (impl_Nautilus_ZoomableFrame_report_zoom_level_changed): Change doubles to floats to work around an ORBit problem on Solaris wherein doubles are not correctly aligned. * src/file-manager/fm-desktop-icon-view.c: remove gratuitous linux specific header inclusion * src/nautilus-first-time-druid.c: (set_http_proxy): * src/nautilus-main.c: (main): * src/nautilus-shell.c: (corba_restart): (impl_Nautilus_ViewFrame_report_load_progress): Changed "setenv" and "unsetenv" calls to use nautilus_g_setenv and nautilus_g_unsetenv. * src/nautilus-window-manage-views.c: (report_sidebar_panel_failure_to_user): Add better error message to sidebar failures where it can't figure out which sidebar failed. Done in order to fix null string being passed to dialogue function which segfaulted Nautilus on Solaris. Yes children, your Nautilus will now run and frollick in the green, green pasture of the multi-cpu UltraSparc.
2000-09-12 02:01:33 +00:00
for option in -Wstrict-aliasing=0 -Wno-pointer-sign; do
SAVE_CFLAGS="$WARNING_CFLAGS"
WARNING_CFLAGS="$WARNING_CFLAGS $option"
Add checks to fix things on Solaris regarding mounting, environment 2000-09-11 Seth Nickell <seth@eazel.com> * configure.in: Add checks to fix things on Solaris regarding mounting, environment variables, and fonts. Added tests for compiler warning flags that are not supported with all versions of GCC. * helper-utilities/authenticate/nautilus-authenticate-pam.c: (pam_conversion_func): Remove "const" from system call for compatibility with Solaris. * libnautilus-extensions/nautilus-file.c: (get_id_from_digit_string): uid_t != int, so change functions converting from string to uid_t to deal with greater bit uids properly. * libnautilus-extensions/nautilus-glib-extensions.h: * libnautilus-extensions/nautilus-glib-extensions.c: (nautilus_g_setenv), (nautilus_g_unsetenv): Add system gnostic functions for setting and removing variables from the environment. * libnautilus-extensions/nautilus-scalable-font.c: (initialize_global_stuff_if_needed): Temporary fix to deal with the absence of "RedHat-style" font paths on Solaris and Debian whilst font paths are still hard-coded. * libnautilus-extensions/nautilus-volume-monitor.c: (nautilus_volume_monitor_get_volume_name), (nautilus_volume_monitor_volume_is_mounted), (mount_volumes_update_is_mounted), (mnttab_add_mount_volume), (mntent_add_mount_volume), (find_volumes): Rewrite sections to use the appropriate Solaris mounting functions if Linux-style mount/umount/mount-table manipulation functions are not available. * libnautilus/nautilus-view-component.idl: * src/nautilus-view-frame-corba.c: * src/nautilus-zoomable-frame-corba.c: (impl_Nautilus_ZoomableFrame_report_zoom_level_changed): Change doubles to floats to work around an ORBit problem on Solaris wherein doubles are not correctly aligned. * src/file-manager/fm-desktop-icon-view.c: remove gratuitous linux specific header inclusion * src/nautilus-first-time-druid.c: (set_http_proxy): * src/nautilus-main.c: (main): * src/nautilus-shell.c: (corba_restart): (impl_Nautilus_ViewFrame_report_load_progress): Changed "setenv" and "unsetenv" calls to use nautilus_g_setenv and nautilus_g_unsetenv. * src/nautilus-window-manage-views.c: (report_sidebar_panel_failure_to_user): Add better error message to sidebar failures where it can't figure out which sidebar failed. Done in order to fix null string being passed to dialogue function which segfaulted Nautilus on Solaris. Yes children, your Nautilus will now run and frollick in the green, green pasture of the multi-cpu UltraSparc.
2000-09-12 02:01:33 +00:00
AC_MSG_CHECKING([whether gcc understands $option])
Fix extra dependency that was causing the xml.h files to be generated too * Makefile.shared: Fix extra dependency that was causing the xml.h files to be generated too often. * configure.in: Fix code that detects the gcc options to work even with -O on. * src/nautilus-view-frame.h: * src/nautilus-view-frame.c: (nautilus_view_frame_initialize_class), (view_frame_loaded), (view_frame_failed), (nautilus_view_frame_handle_client_destroy), (nautilus_view_frame_handle_client_gone), (nautilus_view_frame_new), (check_if_view_is_gone), (nautilus_view_frame_set_to_component), (nautilus_view_frame_get_is_underway): Revamp set of signals to be easier to understand. Handle all failures uniformly, * src/nautilus-window-manage-views.h: * src/nautilus-window-manage-views.c: (change_selection), (nautilus_window_update_for_new_location), (nautilus_window_has_really_changed), (nautilus_window_set_state_info), (nautilus_window_set_sidebar_panels), (zoom_level_changed_callback), (get_history_list_callback), (change_selection_callback), (change_status_callback), (failed_callback), (load_underway_callback), (load_complete_callback), (open_location_callback), (open_location_in_new_window_callback), (title_changed_callback), (nautilus_window_connect_view), (nautilus_window_disconnect_view): Make more of the view management private to this file. Use the signals by their new names. Disconnect all the signals, not just the error-related ones. * src/nautilus-window.c: (nautilus_window_set_content_view_widget): Updated the debugging check to do it with the new Bonobo UI calls.
2000-10-23 22:21:12 +00:00
AC_TRY_COMPILE([], [],
Add checks to fix things on Solaris regarding mounting, environment 2000-09-11 Seth Nickell <seth@eazel.com> * configure.in: Add checks to fix things on Solaris regarding mounting, environment variables, and fonts. Added tests for compiler warning flags that are not supported with all versions of GCC. * helper-utilities/authenticate/nautilus-authenticate-pam.c: (pam_conversion_func): Remove "const" from system call for compatibility with Solaris. * libnautilus-extensions/nautilus-file.c: (get_id_from_digit_string): uid_t != int, so change functions converting from string to uid_t to deal with greater bit uids properly. * libnautilus-extensions/nautilus-glib-extensions.h: * libnautilus-extensions/nautilus-glib-extensions.c: (nautilus_g_setenv), (nautilus_g_unsetenv): Add system gnostic functions for setting and removing variables from the environment. * libnautilus-extensions/nautilus-scalable-font.c: (initialize_global_stuff_if_needed): Temporary fix to deal with the absence of "RedHat-style" font paths on Solaris and Debian whilst font paths are still hard-coded. * libnautilus-extensions/nautilus-volume-monitor.c: (nautilus_volume_monitor_get_volume_name), (nautilus_volume_monitor_volume_is_mounted), (mount_volumes_update_is_mounted), (mnttab_add_mount_volume), (mntent_add_mount_volume), (find_volumes): Rewrite sections to use the appropriate Solaris mounting functions if Linux-style mount/umount/mount-table manipulation functions are not available. * libnautilus/nautilus-view-component.idl: * src/nautilus-view-frame-corba.c: * src/nautilus-zoomable-frame-corba.c: (impl_Nautilus_ZoomableFrame_report_zoom_level_changed): Change doubles to floats to work around an ORBit problem on Solaris wherein doubles are not correctly aligned. * src/file-manager/fm-desktop-icon-view.c: remove gratuitous linux specific header inclusion * src/nautilus-first-time-druid.c: (set_http_proxy): * src/nautilus-main.c: (main): * src/nautilus-shell.c: (corba_restart): (impl_Nautilus_ViewFrame_report_load_progress): Changed "setenv" and "unsetenv" calls to use nautilus_g_setenv and nautilus_g_unsetenv. * src/nautilus-window-manage-views.c: (report_sidebar_panel_failure_to_user): Add better error message to sidebar failures where it can't figure out which sidebar failed. Done in order to fix null string being passed to dialogue function which segfaulted Nautilus on Solaris. Yes children, your Nautilus will now run and frollick in the green, green pasture of the multi-cpu UltraSparc.
2000-09-12 02:01:33 +00:00
has_option=yes,
has_option=no,)
if test $has_option = no; then
WARNING_CFLAGS="$SAVE_CFLAGS"
Add checks to fix things on Solaris regarding mounting, environment 2000-09-11 Seth Nickell <seth@eazel.com> * configure.in: Add checks to fix things on Solaris regarding mounting, environment variables, and fonts. Added tests for compiler warning flags that are not supported with all versions of GCC. * helper-utilities/authenticate/nautilus-authenticate-pam.c: (pam_conversion_func): Remove "const" from system call for compatibility with Solaris. * libnautilus-extensions/nautilus-file.c: (get_id_from_digit_string): uid_t != int, so change functions converting from string to uid_t to deal with greater bit uids properly. * libnautilus-extensions/nautilus-glib-extensions.h: * libnautilus-extensions/nautilus-glib-extensions.c: (nautilus_g_setenv), (nautilus_g_unsetenv): Add system gnostic functions for setting and removing variables from the environment. * libnautilus-extensions/nautilus-scalable-font.c: (initialize_global_stuff_if_needed): Temporary fix to deal with the absence of "RedHat-style" font paths on Solaris and Debian whilst font paths are still hard-coded. * libnautilus-extensions/nautilus-volume-monitor.c: (nautilus_volume_monitor_get_volume_name), (nautilus_volume_monitor_volume_is_mounted), (mount_volumes_update_is_mounted), (mnttab_add_mount_volume), (mntent_add_mount_volume), (find_volumes): Rewrite sections to use the appropriate Solaris mounting functions if Linux-style mount/umount/mount-table manipulation functions are not available. * libnautilus/nautilus-view-component.idl: * src/nautilus-view-frame-corba.c: * src/nautilus-zoomable-frame-corba.c: (impl_Nautilus_ZoomableFrame_report_zoom_level_changed): Change doubles to floats to work around an ORBit problem on Solaris wherein doubles are not correctly aligned. * src/file-manager/fm-desktop-icon-view.c: remove gratuitous linux specific header inclusion * src/nautilus-first-time-druid.c: (set_http_proxy): * src/nautilus-main.c: (main): * src/nautilus-shell.c: (corba_restart): (impl_Nautilus_ViewFrame_report_load_progress): Changed "setenv" and "unsetenv" calls to use nautilus_g_setenv and nautilus_g_unsetenv. * src/nautilus-window-manage-views.c: (report_sidebar_panel_failure_to_user): Add better error message to sidebar failures where it can't figure out which sidebar failed. Done in order to fix null string being passed to dialogue function which segfaulted Nautilus on Solaris. Yes children, your Nautilus will now run and frollick in the green, green pasture of the multi-cpu UltraSparc.
2000-09-12 02:01:33 +00:00
fi
AC_MSG_RESULT($has_option)
unset has_option
unset SAVE_CFLAGS
done
unset option
Change to use bonobo_object_unref now that the leaks have been fixed. This * src/nautilus-view-frame.c: (nautilus_view_frame_destroy_client): Change to use bonobo_object_unref now that the leaks have been fixed. This requires the new Bonobo or you'll have lots of leaked processes. Luckily, Nautilus won't compile without the new Bonobo due to my use of bonobo_object_shutdown in main :-) * configure.in: Fix the way -Werror works so it affects all directories, not just ones where we use WERROR. * components/hardware/Makefile.am: * components/help/Makefile.am: * components/history/Makefile.am: * components/loser/content/Makefile.am: * components/loser/sidebar/Makefile.am: * components/mozilla/Makefile.am: * components/music/Makefile.am: * components/notes/Makefile.am: * components/rpmview/Makefile.am: * components/sample/Makefile.am: * components/services/install/command-line/Makefile.am: * components/services/install/lib/Makefile.am: * components/services/install/nautilus-view/Makefile.am: * components/services/install/server/Makefile.am: * components/services/inventory/lib/Makefile.am: * components/services/inventory/nautilus-view/Makefile.am: * components/services/inventory/service/Makefile.am: * components/services/login/lib/Makefile.am: * components/services/login/nautilus-view/Makefile.am: * components/services/login/service/Makefile.am: * components/services/startup/command-line/Makefile.am: * components/services/startup/lib/Makefile.am: * components/services/startup/nautilus-view/Makefile.am: * components/services/summary/lib/Makefile.am: * components/services/summary/nautilus-view/Makefile.am: * components/services/summary/service/Makefile.am: * components/services/time/command-line/Makefile.am: * components/services/time/nautilus-view/Makefile.am: * components/services/time/service/Makefile.am: * components/services/trilobite/helper/Makefile.am: * components/services/trilobite/libtrilobite/Makefile.am: * components/services/trilobite/sample/command-line/.cvsignore: * components/services/trilobite/sample/command-line/Makefile.am: * components/services/trilobite/sample/lib/Makefile.am: * components/services/trilobite/sample/nautilus-view/Makefile.am: * components/services/trilobite/sample/service/Makefile.am: * components/services/vault/command-line/Makefile.am: * components/services/vault/lib/Makefile.am: * components/services/vault/nautilus-view/Makefile.am: * components/services/vault/service/Makefile.am: * components/tree/Makefile.am: * components/websearch/Makefile.am: * cut-n-paste-code/widgets/nautilus-druid/Makefile.am: * helper-utilities/authenticate/Makefile.am: * libnautilus-extensions/Makefile.am: * libnautilus/Makefile.am: * librsvg/Makefile.am: * nautilus-installer/src/Makefile.am: * src/Makefile.am: * src/file-manager/Makefile.am: * test/Makefile.am: Got rid of the WERROR shell variable. The -Werror switch is no longer a per-directory thing. * librsvg/Makefile.am: Added libpng to the libraries for the test program. Maybe this was the wrong thing to do, but before this change the link failed. * components/sample/Makefile.am: * components/sample/main.c: * components/sample/nautilus-sample-content-view.c: * components/sample/nautilus-sample-content-view.h: A clean-up of the sample, including fixing many bugs and adding lots of comments. I figure we want this to be as close to exemplary as possible since people will continue to start with it for new components. * libnautilus-extensions/nautilus-bookmark.c: (nautilus_bookmark_new_with_icon): Removed a bogus extra ref of a NautilusFile object that I spotted in here. * src/nautilus-application.c: (nautilus_application_destroy_window): Re-added the code to quit when the last window is closed that Mike removed in his recent check-in. * src/nautilus-main.c: (main): Added a call to bonobo_shutdown. We don't need this call, but I say, "Why not?"
2000-07-12 19:33:38 +00:00
else
AC_MSG_RESULT(no)
fi
dnl ===========================================================================
dnl strftime checks
AC_TRY_RUN([#include <time.h>
int main ()
{
char buf[100];
struct tm tm = {0};
tm.tm_year = 99;
if (strftime(buf, 100, "%EY", &tm) == 4 &&
strcmp (buf, "1999")==0)
return 0;
return 1;
}
],
AC_DEFINE(HAVE_STRFTIME_EXTENSION, 1, [Define if strftime supports %E and %O modifiers.])
)
dnl ===========================================================================
#
# Checks for Xft/XRender
#
have_render=false
RENDER_LIBS=""
AC_CHECK_LIB(Xrender, XRenderFindFormat,
have_render=true,:,-lXext)
if $have_render ; then
RENDER_LIBS="-lXrender -lXext"
AC_DEFINE(HAVE_RENDER)
fi
AC_SUBST(RENDER_LIBS)
dnl ==========================================================================
dnl libegg
LIBEGG_MODULES="gtk+-2.0"
Move libegg stuff to cut-n-paste-code and update to the latest egg 2002-11-06 Anders Carlsson <andersca@gnu.org> * configure.in: * cut-n-paste-code/Makefile.am: * cut-n-paste-code/libegg/Makefile.am: * cut-n-paste-code/libegg/egg-recent-item.c: (egg_recent_item_new), (egg_recent_item_free), (egg_recent_item_ref), (egg_recent_item_unref), (egg_recent_item_new_from_uri), (egg_recent_item_set_uri), (egg_recent_item_get_uri), (egg_recent_item_peek_uri), (egg_recent_item_get_uri_utf8), (egg_recent_item_get_uri_for_display), (egg_recent_item_set_mime_type), (egg_recent_item_get_mime_type), (egg_recent_item_set_timestamp), (egg_recent_item_get_timestamp), (egg_recent_item_get_groups), (egg_recent_item_in_group), (egg_recent_item_add_group), (egg_recent_item_remove_group), (egg_recent_item_set_private), (egg_recent_item_get_private), (egg_recent_item_get_type): * cut-n-paste-code/libegg/egg-recent-item.h: * cut-n-paste-code/libegg/egg-recent-model.c: (egg_recent_model_string_match), (egg_recent_model_write_raw), (egg_recent_model_delete_from_list), (egg_recent_model_add_new_groups), (egg_recent_model_update_item), (egg_recent_model_read_raw), (parse_info_init), (parse_info_free), (push_state), (pop_state), (peek_state), (start_element_handler), (list_compare_func_mru), (list_compare_func_lru), (end_element_handler), (text_handler), (error_handler), (egg_recent_model_enforce_limit), (egg_recent_model_sort), (egg_recent_model_group_match), (egg_recent_model_filter), (egg_recent_model_monitor_list_cb), (egg_recent_model_monitor_list), (egg_recent_model_changed_timeout), (egg_recent_model_monitor_cb), (egg_recent_model_monitor), (egg_recent_model_set_limit_internal), (egg_recent_model_read), (egg_recent_model_write), (egg_recent_model_open_file), (egg_recent_model_lock_file), (egg_recent_model_unlock_file), (egg_recent_model_finalize), (egg_recent_model_set_property), (egg_recent_model_get_property), (egg_recent_model_class_init), (egg_recent_model_limit_changed), (egg_recent_model_expiration_changed), (egg_recent_model_init), (egg_recent_model_new), (egg_recent_model_add_full), (egg_recent_model_add), (egg_recent_model_delete), (egg_recent_model_get_list), (egg_recent_model_set_limit), (egg_recent_model_get_limit), (egg_recent_model_clear), (egg_recent_model_set_filter_mime_types), (egg_recent_model_set_filter_groups), (egg_recent_model_set_filter_uri_schemes), (egg_recent_model_set_sort), (egg_recent_model_changed), (egg_recent_model_remove_expired_list), (egg_recent_model_remove_expired), (egg_recent_model_get_type): * cut-n-paste-code/libegg/egg-recent-model.h: * cut-n-paste-code/libegg/egg-recent-vfs-utils.c: (make_valid_utf8), (istr_has_prefix), (str_has_prefix), (uri_is_local_scheme), (handle_trailing_slashes), (make_uri_canonical), (format_uri_for_display), (egg_recent_vfs_format_uri_for_display), (is_valid_scheme_character), (has_valid_scheme), (escape_high_chars), (make_uri_from_input_internal), (egg_recent_vfs_make_uri_from_input), (make_uri_canonical_strip_fragment), (uris_match), (egg_recent_vfs_uris_match), (egg_recent_vfs_get_uri_scheme): * cut-n-paste-code/libegg/egg-recent-vfs-utils.h: * cut-n-paste-code/libegg/egg-screen-exec.c: (egg_screen_exec_display_string), (egg_screen_exec_environment), (egg_screen_execute_async), (egg_screen_execute_shell), (egg_screen_execute_command_line_async): * cut-n-paste-code/libegg/egg-screen-exec.h: * cut-n-paste-code/libegg/egg-screen-help.c: (egg_help_display_on_screen), (egg_help_display_with_doc_id_on_screen), (egg_help_display_desktop_on_screen), (egg_help_display_uri_on_screen): * cut-n-paste-code/libegg/egg-screen-help.h: * cut-n-paste-code/libegg/egg-screen-url.c: (egg_url_show_on_screen): * cut-n-paste-code/libegg/egg-screen-url.h: * cut-n-paste-code/libegg/eggtreemultidnd.c: (egg_tree_multi_drag_source_get_type), (egg_tree_multi_drag_source_row_draggable), (egg_tree_multi_drag_source_drag_data_delete), (egg_tree_multi_drag_source_drag_data_get), (stop_drag_check), (egg_tree_multi_drag_button_release_event), (selection_foreach), (path_list_free), (set_context_data), (get_context_data), (get_info), (egg_tree_multi_drag_drag_data_get), (egg_tree_multi_drag_motion_event), (egg_tree_multi_drag_button_press_event), (egg_tree_multi_drag_add_drag_support): * cut-n-paste-code/libegg/eggtreemultidnd.h: * cut-n-paste-code/libegg/update-from-egg.sh: * libnautilus-private/Makefile.am: * libnautilus-private/egg-recent-item.c: * libnautilus-private/egg-recent-item.h: * libnautilus-private/egg-recent-model.c: * libnautilus-private/egg-recent-model.h: * libnautilus-private/egg-recent-vfs-utils.c: * libnautilus-private/egg-recent-vfs-utils.h: * libnautilus-private/egg-screen-exec.c: * libnautilus-private/egg-screen-exec.h: * libnautilus-private/egg-screen-help.c: * libnautilus-private/egg-screen-help.h: * libnautilus-private/egg-screen-url.c: * libnautilus-private/egg-screen-url.h: * libnautilus-private/eggtreemultidnd.c: * libnautilus-private/eggtreemultidnd.h: * libnautilus-private/nautilus-program-chooser.c: (help_cb): * libnautilus-private/update-from-egg.sh: * src/Makefile.am: * src/file-manager/Makefile.am: * src/file-manager/fm-desktop-icon-view.c: * src/file-manager/fm-directory-view.c: * src/file-manager/fm-list-model.c: * src/file-manager/fm-list-view.c: * src/file-manager/fm-properties-window.c: (help_button_callback): * src/file-manager/update-from-egg.sh: * src/nautilus-bookmarks-window.c: (nautilus_bookmarks_window_response_callback): * src/nautilus-property-browser.c: (help_button_callback): * src/nautilus-window-menus.c: (help_menu_nautilus_manual_callback): Move libegg stuff to cut-n-paste-code and update to the latest egg versions.
2002-11-06 10:38:48 +00:00
LIBEGG_CFLAGS="`$PKG_CONFIG --cflags $LIBEGG_MODULES`"
AC_SUBST(LIBEGG_CFLAGS)
LIBEGG_LIBS="`$PKG_CONFIG --libs $LIBEGG_MODULES`"
AC_SUBST(LIBEGG_LIBS)
Move libegg stuff to cut-n-paste-code and update to the latest egg 2002-11-06 Anders Carlsson <andersca@gnu.org> * configure.in: * cut-n-paste-code/Makefile.am: * cut-n-paste-code/libegg/Makefile.am: * cut-n-paste-code/libegg/egg-recent-item.c: (egg_recent_item_new), (egg_recent_item_free), (egg_recent_item_ref), (egg_recent_item_unref), (egg_recent_item_new_from_uri), (egg_recent_item_set_uri), (egg_recent_item_get_uri), (egg_recent_item_peek_uri), (egg_recent_item_get_uri_utf8), (egg_recent_item_get_uri_for_display), (egg_recent_item_set_mime_type), (egg_recent_item_get_mime_type), (egg_recent_item_set_timestamp), (egg_recent_item_get_timestamp), (egg_recent_item_get_groups), (egg_recent_item_in_group), (egg_recent_item_add_group), (egg_recent_item_remove_group), (egg_recent_item_set_private), (egg_recent_item_get_private), (egg_recent_item_get_type): * cut-n-paste-code/libegg/egg-recent-item.h: * cut-n-paste-code/libegg/egg-recent-model.c: (egg_recent_model_string_match), (egg_recent_model_write_raw), (egg_recent_model_delete_from_list), (egg_recent_model_add_new_groups), (egg_recent_model_update_item), (egg_recent_model_read_raw), (parse_info_init), (parse_info_free), (push_state), (pop_state), (peek_state), (start_element_handler), (list_compare_func_mru), (list_compare_func_lru), (end_element_handler), (text_handler), (error_handler), (egg_recent_model_enforce_limit), (egg_recent_model_sort), (egg_recent_model_group_match), (egg_recent_model_filter), (egg_recent_model_monitor_list_cb), (egg_recent_model_monitor_list), (egg_recent_model_changed_timeout), (egg_recent_model_monitor_cb), (egg_recent_model_monitor), (egg_recent_model_set_limit_internal), (egg_recent_model_read), (egg_recent_model_write), (egg_recent_model_open_file), (egg_recent_model_lock_file), (egg_recent_model_unlock_file), (egg_recent_model_finalize), (egg_recent_model_set_property), (egg_recent_model_get_property), (egg_recent_model_class_init), (egg_recent_model_limit_changed), (egg_recent_model_expiration_changed), (egg_recent_model_init), (egg_recent_model_new), (egg_recent_model_add_full), (egg_recent_model_add), (egg_recent_model_delete), (egg_recent_model_get_list), (egg_recent_model_set_limit), (egg_recent_model_get_limit), (egg_recent_model_clear), (egg_recent_model_set_filter_mime_types), (egg_recent_model_set_filter_groups), (egg_recent_model_set_filter_uri_schemes), (egg_recent_model_set_sort), (egg_recent_model_changed), (egg_recent_model_remove_expired_list), (egg_recent_model_remove_expired), (egg_recent_model_get_type): * cut-n-paste-code/libegg/egg-recent-model.h: * cut-n-paste-code/libegg/egg-recent-vfs-utils.c: (make_valid_utf8), (istr_has_prefix), (str_has_prefix), (uri_is_local_scheme), (handle_trailing_slashes), (make_uri_canonical), (format_uri_for_display), (egg_recent_vfs_format_uri_for_display), (is_valid_scheme_character), (has_valid_scheme), (escape_high_chars), (make_uri_from_input_internal), (egg_recent_vfs_make_uri_from_input), (make_uri_canonical_strip_fragment), (uris_match), (egg_recent_vfs_uris_match), (egg_recent_vfs_get_uri_scheme): * cut-n-paste-code/libegg/egg-recent-vfs-utils.h: * cut-n-paste-code/libegg/egg-screen-exec.c: (egg_screen_exec_display_string), (egg_screen_exec_environment), (egg_screen_execute_async), (egg_screen_execute_shell), (egg_screen_execute_command_line_async): * cut-n-paste-code/libegg/egg-screen-exec.h: * cut-n-paste-code/libegg/egg-screen-help.c: (egg_help_display_on_screen), (egg_help_display_with_doc_id_on_screen), (egg_help_display_desktop_on_screen), (egg_help_display_uri_on_screen): * cut-n-paste-code/libegg/egg-screen-help.h: * cut-n-paste-code/libegg/egg-screen-url.c: (egg_url_show_on_screen): * cut-n-paste-code/libegg/egg-screen-url.h: * cut-n-paste-code/libegg/eggtreemultidnd.c: (egg_tree_multi_drag_source_get_type), (egg_tree_multi_drag_source_row_draggable), (egg_tree_multi_drag_source_drag_data_delete), (egg_tree_multi_drag_source_drag_data_get), (stop_drag_check), (egg_tree_multi_drag_button_release_event), (selection_foreach), (path_list_free), (set_context_data), (get_context_data), (get_info), (egg_tree_multi_drag_drag_data_get), (egg_tree_multi_drag_motion_event), (egg_tree_multi_drag_button_press_event), (egg_tree_multi_drag_add_drag_support): * cut-n-paste-code/libegg/eggtreemultidnd.h: * cut-n-paste-code/libegg/update-from-egg.sh: * libnautilus-private/Makefile.am: * libnautilus-private/egg-recent-item.c: * libnautilus-private/egg-recent-item.h: * libnautilus-private/egg-recent-model.c: * libnautilus-private/egg-recent-model.h: * libnautilus-private/egg-recent-vfs-utils.c: * libnautilus-private/egg-recent-vfs-utils.h: * libnautilus-private/egg-screen-exec.c: * libnautilus-private/egg-screen-exec.h: * libnautilus-private/egg-screen-help.c: * libnautilus-private/egg-screen-help.h: * libnautilus-private/egg-screen-url.c: * libnautilus-private/egg-screen-url.h: * libnautilus-private/eggtreemultidnd.c: * libnautilus-private/eggtreemultidnd.h: * libnautilus-private/nautilus-program-chooser.c: (help_cb): * libnautilus-private/update-from-egg.sh: * src/Makefile.am: * src/file-manager/Makefile.am: * src/file-manager/fm-desktop-icon-view.c: * src/file-manager/fm-directory-view.c: * src/file-manager/fm-list-model.c: * src/file-manager/fm-list-view.c: * src/file-manager/fm-properties-window.c: (help_button_callback): * src/file-manager/update-from-egg.sh: * src/nautilus-bookmarks-window.c: (nautilus_bookmarks_window_response_callback): * src/nautilus-property-browser.c: (help_button_callback): * src/nautilus-window-menus.c: (help_menu_nautilus_manual_callback): Move libegg stuff to cut-n-paste-code and update to the latest egg versions.
2002-11-06 10:38:48 +00:00
dnl libnautilus-extension
LIBNAUTILUS_EXTENSION_MODULES="glib-2.0 gtk+-2.0"
LIBNAUTILUS_EXTENSION_CFLAGS="`$PKG_CONFIG --cflags $LIBNAUTILUS_EXTENSION_MODULES` $WARNING_CFLAGS"
AC_SUBST(LIBNAUTILUS_EXTENSION_CFLAGS)
LIBNAUTILUS_EXTENSION_LIBS="`$PKG_CONFIG --libs $LIBNAUTILUS_EXTENSION_MODULES`"
AC_SUBST(LIBNAUTILUS_EXTENSION_LIBS)
dnl core nautilus
CORE_MODULES="glib-2.0 gnome-desktop-2.0 gthread-2.0 gio-2.0 gio-unix-2.0 unique-1.0 dbus-glib-1 gail gconf-2.0 libxml-2.0 $EXTRA_CORE_MODULES"
CORE_CFLAGS="`$PKG_CONFIG --cflags $CORE_MODULES` $x_cflags $WARNING_CFLAGS"
AC_SUBST(CORE_CFLAGS)
CORE_LIBS="`$PKG_CONFIG --libs $CORE_MODULES` $x_libs"
AC_SUBST(CORE_LIBS)
DISABLE_DEPRECATED_CFLAGS="-DG_DISABLE_DEPRECATED"
dnl Multimedia keys
AC_CHECK_HEADERS([X11/XF86keysym.h])
dnl Taken out for now
dnl -DGDK_DISABLE_DEPRECATED \
dnl -DGDK_PIXBUF_DISABLE_DEPRECATED \
dnl -DGTK_DISABLE_DEPRECATED \
dnl -DGNOME_DISABLE_DEPRECATED"
setup both the rgba and GdkColor variants. (update_label_color): upd. 2002-02-17 Michael Meeks <michael@ximian.com> * libnautilus-private/nautilus-icon-container.c (nautilus_icon_container_theme_changed): setup both the rgba and GdkColor variants. (update_label_color): upd. color handling. (alloc_colors): allocate the colors on realize 2002-02-15 Michael Meeks <michael@ximian.com> * libnautilus-private/nautilus-icon-container.c (nautilus_icon_container_get_label_color): return the colors we need, grab them from the style's text information though. 2002-02-14 Michael Meeks <michael@ximian.com> * libnautilus-private/nautilus-icon-canvas-item.c (nautilus_icon_canvas_item_get_property), (nautilus_icon_canvas_item_set_property): port to properties. (draw_or_measure_label_text): update color handling, could we re-use the gc here ? (draw_stretch_handles): upd gc unref. (nautilus_icon_canvas_item_class_init): upd. * libnautilus-private/nautilus-theme.c (nautilus_pixmap_file_may_be_local), (nautilus_theme_install_user_theme), (nautilus_theme_make_preview_pixbuf), (theme_get_property), (load_theme_document): upd. file tests. * libnautilus-private/nautilus-monitor.c (get_event_uri): use g_build_filename. * libnautilus-private/nautilus-find-icon-image.c (get_user_emblem_path, make_full_icon_path), (make_full_icon_path): upd. file test. * libnautilus-private/nautilus-file-utilities.c (nautilus_pixmap_file), (nautilus_get_data_file_path), (nautilus_get_user_directory), (nautilus_get_desktop_directory): upd. file tests. * libnautilus-private/nautilus-directory-metafile.c (nautilus_directory_get_boolean_file_metadata): use strcasecmp not ascii_strdown to save yet more malloc locking penalty. * libnautilus-private/nautilus-directory-background.c (nautilus_file_background_receive_root_window_changes), (desktop_background_destroyed_callback): upd. root window macro. (nautilus_connect_background_to_file_metadata), (initialize_background_from_settings), (image_loading_done_callback): upd g_signal bits. * libnautilus-private/nautilus-volume-monitor.c (nautilus_volume_monitor_class_init): upd file test. * libnautilus-private/nautilus-undo-signal-handlers.c (nautilus_undo_tear_down_nautilus_entry_for_undo): upd. * libnautilus-private/nautilus-undo-manager.c (nautilus_undo_manager_class_init): upd. signal bits. * libnautilus-private/nautilus-trash-monitor.c (nautilus_trash_monitor_class_init): g_cclosureize. (nautilus_trash_monitor_init): g_signal upds. * libnautilus-private/nautilus-trash-file.c (trash_destroy, nautilus_trash_file_init), (remove_real_file): upd. g_signal bits. * libnautilus-private/nautilus-trash-directory.c (nautilus_trash_directory_init): upd. signal connect. (trash_destroy): upd. signal bits. * libnautilus-private/nautilus-program-choosing.c (get_xalf_prefix): upd. find_program_in_path. * libnautilus-private/nautilus-program-chooser.c (nautilus_program_chooser_init): upd. window policy * libnautilus-private/nautilus-merged-directory.c (merged_remove_real_directory): upd. g_signal. (nautilus_merged_directory_class_init): upd. g_closure * libnautilus-private/nautilus-link-desktop-file.c (nautilus_link_desktop_file_get_link_icon_from_desktop): upd. pixmap location. * libnautilus-private/nautilus-icon-factory.c (nautilus_icon_factory_class_init): upd. marshallers (is_theme_in_user_directory): upd. file test. * libnautilus-private/nautilus-icon-dnd.c (auto_scroll_timeout_callback): do a queue_draw_area instead of a widget_draw. * libnautilus-private/nautilus-icon-container.c (nautilus_icon_container_init), (set_pending_icon_to_reveal): g_signal updates. (nautilus_icon_container_new): remove visual push/pop. * libnautilus-private/nautilus-file.c (nautilus_file_fit_date_as_string): upd. julian date get. (nautilus_file_class_init): upd. marshallers. * libnautilus-private/nautilus-file-operations.c (extract_and_ellipsize_file_name_for_dialog): use get_basename. (nautilus_file_operations_copy_move): use gtk stock. * libnautilus-private/nautilus-file-operations-progress.c (nautilus_file_operations_progress_update): use progress_bar_set_fraction. (nautilus_file_operations_progress_init): prune progress setup - these are the defaults. * libnautilus-private/nautilus-entry.c (nautilus_entry_key_press): upd select_region. * libnautilus-private/nautilus-drag-window.c (get_ancestor_blocked_by): upd type_is_a. * libnautilus-private/nautilus-dnd.c (nautilus_drag_finalize), (nautilus_drag_init): g_object ref upd. * libnautilus-private/nautilus-directory.c (nautilus_directory_class_init): marshaller upd.. (nautilus_directory_schedule_metadata_remove), (nautilus_directory_schedule_metadata_copy), (nautilus_directory_schedule_metadata_move): basename upd. * libnautilus-private/nautilus-directory-background.c (desktop_background_realized): g_signal upd. (theme_image_path_to_uri): file test upd. (image_loading_done_callback): object unref on gc & pixmap. (background_changed_callback): g_signal upd. * libnautilus-private/nautilus-bookmark.c (nautilus_bookmark_disconnect_file): g_signal upd. (nautilus_bookmark_uri_known_not_to_exist): upd file test. * libnautilus-private/nautilus-authn-manager.c (authentication_dialog_button_clicked): use GTK_RESPONSE_OK * libnautilus-private/Makefile.am: add deprc. CFLAGS. * libnautilus/Makefile.am: ditto. * configure.in (DISABLE_DEPRECATED_CFLAGS): add. 2002-02-13 Michael Meeks <michael@ximian.com> * libnautilus-private/nautilus-icon-dnd.c (nautilus_icon_container_free_drag_data): re-enterancy protection.
2002-02-19 09:11:16 +00:00
AC_SUBST(DISABLE_DEPRECATED_CFLAGS)
dnl ==============================================
dnl Special GConf section
dnl ==============================================
don't try to set properties on a remote container that is being / has been 2002-03-06 Michael Meeks <michael@ximian.com> * src/file-manager/fm-icon-view.c (fm_icon_view_update_menus): don't try to set properties on a remote container that is being / has been torn down. * libnautilus-private/nautilus-global-preferences.c (default_icon_view_sort_order_or_manual_layout_changed_callback), (nautilus_global_preferences_set_default_folder_viewer), (default_folder_viewer_changed_callback): upd. for enum code. * libnautilus-private/nautilus-icon-canvas-item.c (nautilus_icon_canvas_item_class_init): use eel_preferences_add_auto_enum instead of auto_int. * src/file-manager/fm-list-view.c (fm_list_view_class_init): ditto. * src/file-manager/fm-icon-view.c (get_default_sort_order, get_default_zoom_level_font_size), (get_default_zoom_level, fm_icon_view_init): ditto. * libnautilus-private/nautilus-thumbnails.c (prefer_global_thumbnails_location): ditto. * libnautilus-private/nautilus-icon-factory.c (should_display_image_file_as_itself): ditto. * libnautilus-private/nautilus-icon-container.c (nautilus_icon_container_class_init): ditto. 2002-03-05 Michael Meeks <michael@ximian.com> * components/music/nautilus-music-view.c (nautilus_music_view_init): use eel_preferences_get_enum instead of get_integer * src/nautilus-switchable-search-bar.c (nautilus_search_uri_to_search_bar_mode), (nautilus_switchable_search_bar_new): ditto. * src/file-manager/fm-icon-view.c (fm_icon_view_update_click_mode): ditto. * src/file-manager/fm-directory-view.c (get_executable_text_file_action): ditto. * libnautilus-private/nautilus-metafile.c (can_use_public_metafile): ditto. * libnautilus-private/nautilus-file.c (show_directory_item_count_changed_callback), (show_text_in_icons_changed_callback): use get_enum * libnautilus-private/nautilus-global-preferences.c (preference_defaults): add the PREFERENCE_ENUM type and make this a string, as GConf expects. * configure.in: add the GConf magic. * libnautilus-private/Makefile.am (schemadir): add schema installation bits.
2002-03-06 15:36:01 +00:00
AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
if test x"$GCONFTOOL" = xno; then
AC_MSG_ERROR([gconftool-2 executable not found in your path - should be installed with GConf])
fi
AM_GCONF_SOURCE_2
dnl ==========================================================================
AC_PATH_PROG(UPDATE_MIME_DATABASE, update-mime-database, no)
AC_ARG_ENABLE(update-mimedb,
AC_HELP_STRING([--disable-update-mimedb],
[disable the update-mime-database after install [default=no]]),,
enable_update_mimedb=yes)
AM_CONDITIONAL(ENABLE_UPDATE_MIMEDB, test x$enable_update_mimedb = xyes)
AC_CONFIG_FILES([
1999-12-05 00:40:26 +00:00
Makefile
cut-n-paste-code/Makefile
Move libegg stuff to cut-n-paste-code and update to the latest egg 2002-11-06 Anders Carlsson <andersca@gnu.org> * configure.in: * cut-n-paste-code/Makefile.am: * cut-n-paste-code/libegg/Makefile.am: * cut-n-paste-code/libegg/egg-recent-item.c: (egg_recent_item_new), (egg_recent_item_free), (egg_recent_item_ref), (egg_recent_item_unref), (egg_recent_item_new_from_uri), (egg_recent_item_set_uri), (egg_recent_item_get_uri), (egg_recent_item_peek_uri), (egg_recent_item_get_uri_utf8), (egg_recent_item_get_uri_for_display), (egg_recent_item_set_mime_type), (egg_recent_item_get_mime_type), (egg_recent_item_set_timestamp), (egg_recent_item_get_timestamp), (egg_recent_item_get_groups), (egg_recent_item_in_group), (egg_recent_item_add_group), (egg_recent_item_remove_group), (egg_recent_item_set_private), (egg_recent_item_get_private), (egg_recent_item_get_type): * cut-n-paste-code/libegg/egg-recent-item.h: * cut-n-paste-code/libegg/egg-recent-model.c: (egg_recent_model_string_match), (egg_recent_model_write_raw), (egg_recent_model_delete_from_list), (egg_recent_model_add_new_groups), (egg_recent_model_update_item), (egg_recent_model_read_raw), (parse_info_init), (parse_info_free), (push_state), (pop_state), (peek_state), (start_element_handler), (list_compare_func_mru), (list_compare_func_lru), (end_element_handler), (text_handler), (error_handler), (egg_recent_model_enforce_limit), (egg_recent_model_sort), (egg_recent_model_group_match), (egg_recent_model_filter), (egg_recent_model_monitor_list_cb), (egg_recent_model_monitor_list), (egg_recent_model_changed_timeout), (egg_recent_model_monitor_cb), (egg_recent_model_monitor), (egg_recent_model_set_limit_internal), (egg_recent_model_read), (egg_recent_model_write), (egg_recent_model_open_file), (egg_recent_model_lock_file), (egg_recent_model_unlock_file), (egg_recent_model_finalize), (egg_recent_model_set_property), (egg_recent_model_get_property), (egg_recent_model_class_init), (egg_recent_model_limit_changed), (egg_recent_model_expiration_changed), (egg_recent_model_init), (egg_recent_model_new), (egg_recent_model_add_full), (egg_recent_model_add), (egg_recent_model_delete), (egg_recent_model_get_list), (egg_recent_model_set_limit), (egg_recent_model_get_limit), (egg_recent_model_clear), (egg_recent_model_set_filter_mime_types), (egg_recent_model_set_filter_groups), (egg_recent_model_set_filter_uri_schemes), (egg_recent_model_set_sort), (egg_recent_model_changed), (egg_recent_model_remove_expired_list), (egg_recent_model_remove_expired), (egg_recent_model_get_type): * cut-n-paste-code/libegg/egg-recent-model.h: * cut-n-paste-code/libegg/egg-recent-vfs-utils.c: (make_valid_utf8), (istr_has_prefix), (str_has_prefix), (uri_is_local_scheme), (handle_trailing_slashes), (make_uri_canonical), (format_uri_for_display), (egg_recent_vfs_format_uri_for_display), (is_valid_scheme_character), (has_valid_scheme), (escape_high_chars), (make_uri_from_input_internal), (egg_recent_vfs_make_uri_from_input), (make_uri_canonical_strip_fragment), (uris_match), (egg_recent_vfs_uris_match), (egg_recent_vfs_get_uri_scheme): * cut-n-paste-code/libegg/egg-recent-vfs-utils.h: * cut-n-paste-code/libegg/egg-screen-exec.c: (egg_screen_exec_display_string), (egg_screen_exec_environment), (egg_screen_execute_async), (egg_screen_execute_shell), (egg_screen_execute_command_line_async): * cut-n-paste-code/libegg/egg-screen-exec.h: * cut-n-paste-code/libegg/egg-screen-help.c: (egg_help_display_on_screen), (egg_help_display_with_doc_id_on_screen), (egg_help_display_desktop_on_screen), (egg_help_display_uri_on_screen): * cut-n-paste-code/libegg/egg-screen-help.h: * cut-n-paste-code/libegg/egg-screen-url.c: (egg_url_show_on_screen): * cut-n-paste-code/libegg/egg-screen-url.h: * cut-n-paste-code/libegg/eggtreemultidnd.c: (egg_tree_multi_drag_source_get_type), (egg_tree_multi_drag_source_row_draggable), (egg_tree_multi_drag_source_drag_data_delete), (egg_tree_multi_drag_source_drag_data_get), (stop_drag_check), (egg_tree_multi_drag_button_release_event), (selection_foreach), (path_list_free), (set_context_data), (get_context_data), (get_info), (egg_tree_multi_drag_drag_data_get), (egg_tree_multi_drag_motion_event), (egg_tree_multi_drag_button_press_event), (egg_tree_multi_drag_add_drag_support): * cut-n-paste-code/libegg/eggtreemultidnd.h: * cut-n-paste-code/libegg/update-from-egg.sh: * libnautilus-private/Makefile.am: * libnautilus-private/egg-recent-item.c: * libnautilus-private/egg-recent-item.h: * libnautilus-private/egg-recent-model.c: * libnautilus-private/egg-recent-model.h: * libnautilus-private/egg-recent-vfs-utils.c: * libnautilus-private/egg-recent-vfs-utils.h: * libnautilus-private/egg-screen-exec.c: * libnautilus-private/egg-screen-exec.h: * libnautilus-private/egg-screen-help.c: * libnautilus-private/egg-screen-help.h: * libnautilus-private/egg-screen-url.c: * libnautilus-private/egg-screen-url.h: * libnautilus-private/eggtreemultidnd.c: * libnautilus-private/eggtreemultidnd.h: * libnautilus-private/nautilus-program-chooser.c: (help_cb): * libnautilus-private/update-from-egg.sh: * src/Makefile.am: * src/file-manager/Makefile.am: * src/file-manager/fm-desktop-icon-view.c: * src/file-manager/fm-directory-view.c: * src/file-manager/fm-list-model.c: * src/file-manager/fm-list-view.c: * src/file-manager/fm-properties-window.c: (help_button_callback): * src/file-manager/update-from-egg.sh: * src/nautilus-bookmarks-window.c: (nautilus_bookmarks_window_response_callback): * src/nautilus-property-browser.c: (help_button_callback): * src/nautilus-window-menus.c: (help_menu_nautilus_manual_callback): Move libegg stuff to cut-n-paste-code and update to the latest egg versions.
2002-11-06 10:38:48 +00:00
cut-n-paste-code/libegg/Makefile
data/Makefile
data/icons/Makefile
data/patterns/Makefile
docs/Makefile
docs/reference/Makefile
docs/reference/libnautilus-extension/Makefile
docs/reference/libnautilus-extension/version.xml
eel/Makefile
icons/Makefile
libnautilus-private/Makefile
libnautilus-extension/Makefile
libnautilus-extension/libnautilus-extension.pc
libnautilus-extension/libnautilus-extension-uninstalled.pc
nautilus.spec
nautilus-computer.desktop.in
nautilus-file-management-properties.desktop.in
nautilus-home.desktop.in
nautilus.desktop.in
nautilus-folder-handler.desktop.in
nautilus-browser.desktop.in
nautilus-autorun-software.desktop.in
po/Makefile.in
src/Makefile
src/file-manager/Makefile
test/Makefile
1999-12-05 00:40:26 +00:00
])
AC_OUTPUT
dnl ==========================================================================
echo "
nautilus-$VERSION:
prefix: ${prefix}
source code location: ${srcdir}
compiler: ${CC}
tracker support: $msg_tracker
beagle support: $msg_beagle
xmp support: $msg_xmp
PackageKit support: $msg_packagekit
profiling support: ${profiling_support}
nautilus-extension documentation: ${enable_gtk_doc}
"