AC_ARG_ENABLE(sbin-mount-fs,
[ --enable-sbin-mount-fs=FS1:FS2 sbin-mount pre-installed symlinks (def.=ntfs:fastfat:cdfs:ext2fsd)],,
[ enable_sbin_mount_fs="ntfs:fastfat:cdfs:ext2fsd" ])
+AC_ARG_WITH(initddir,
+ [ --with-initddir=DIR directory for captive FUSE shutdown (def.=/etc/rc.d/init.d)],,with_initddir=/etc/rc.d/init.d)
AC_ARG_ENABLE(sandbox-setuid,
[ --enable-sandbox-setuid=USER non-privileged user for captive-sandbox-server (def.=captive)],
[ CAPTIVE_SANDBOX_SETUID="$enableval" ],[ CAPTIVE_SANDBOX_SETUID="captive" ])
[ --enable-fuse=no/yes/auto compile FUSE filesystem module (def.=auto)],,enable_fuse=auto)
AC_ARG_ENABLE(install-pkg,
[ --enable-install-pkg=no/yes/auto compile installation utils (def.=auto)],,enable_install_pkg=auto)
+AC_ARG_ENABLE(standalone,
+ [ --enable-standalone=no/yes provide initialization for static-build (def.=no)],,enable_standalone=no)
+AC_ARG_ENABLE(standalone-fonts,
+ [ --enable-standalone-fonts=DIR provide bundled Gnome fonts in directory (def.=no)],,enable_standalone_fonts=no)
# AC_ARG_ENABLE(sbin-mountdir,[--enable-sbin-mountdir=DIR],,[enable_sbin_mountdir="/sbin"])
* would discard the effect of _FILE_OFFSET_BITS by AC_SYS_LARGEFILE.
*/
-#ifdef ENABLE_NLS
-/* <libintl.h> is taken from "$(top_srcdir)/intl" if system doesn't provide intl */
-# include <libintl.h>
-#ifdef LIBCAPTIVE
-# define _(String) dgettext (PACKAGE,String)
-#else
-# define _(String) gettext (String)
-#endif /* LIBCAPTIVE */
-# ifdef gettext_noop
-# define N_(String) gettext_noop (String)
-# else
-# define N_(String) (String)
-# endif
-#else /* !ENABLE_NLS */
-/* Stubs that do something close enough. */
-# define textdomain(String) (String)
-# define gettext(String) (String)
-# define dgettext(Domain,Message) (Message)
-# define dcgettext(Domain,Message,Type) (Message)
-# define bindtextdomain(Domain,Directory) (Domain)
-# define _(String) (String)
-# define N_(String) (String)
-#endif /* !ENABLE_NLS */
-
-#include <glib/gtypes.h> /* for 'gchar' */
-#define G_LOG_DOMAIN ((const gchar *)"Captive")
-
-/* Ensure we have proper -I options: */
-#if defined(CAPTIVE_USE_GNOME_VFS_MODULE) || defined(CAPTIVE_USE_GNOME_VFS)
-#ifndef HAVE_GNOME_VFS_READ_ENTIRE_FILE
-#include <libgnomevfs/gnome-vfs-result.h>
-GnomeVFSResult gnome_vfs_read_entire_file(const char *uri,int *file_size,char **file_contents);
-#endif
-#endif
-
/* Supplemental definitions not possible in this file. */
-#ifdef LIBCAPTIVE
#include "captive/config2.h"
-#endif
#endif /* !_CAPTIVE_CONFIG_H */
])
AC_SUBST(FUSE_CFLAGS)
AC_SUBST(FUSE_LIBS)
+initddir=
+if test x$with_initddir != xno;then
+ initddir="$with_initddir"
+fi
+AM_CONDITIONAL(WITH_INITDDIR,[ test x$with_initddir != xno ])
+AC_SUBST(initddir)
+
if test x$ENABLE_LUFS_TRUE = x -a x$ENABLE_FUSE_TRUE = x;then
# mount.captive(8) file installation would conflict, that's all.
AC_MSG_ERROR([Compilation of both FUSE and LUFS modules is currently not supported - use '--disable-lufs'.])
fi
],[ AC_MSG_WARN([Captive requires libntfs (of ntfsprogs-devel) for --enable-install-pkg.]) ])
])
+if $have_gnome;then
+ GNOMEUI_CFLAGS="$GNOMEUI_CFLAGS -DCAPTIVE_USING_GNOMEUI"
+fi
AC_SUBST(GNOMEUI_CFLAGS)
AC_SUBST(GNOMEUI_LIBS)
AC_SUBST(LIBNTFS_LIBS)
LIBS="$captive_save_LIBS"
AC_SUBST(GNOME_VFS_READ_ENTIRE_FILE_O)
+if test x$enable_standalone = xyes;then
+ AC_DEFINE(ENABLE_STANDALONE,,[Provide initialization for static-build])
+fi
+AM_CONDITIONAL(ENABLE_STANDALONE,[test x$enable_standalone = xyes])
+
+fontsdir=
+if test x$enable_standalone_fonts != xno;then
+ AC_DEFINE_UNQUOTED(STANDALONE_FONTSDIR,"$enable_standalone_fonts",
+ [Fonts installation directory for static-build])
+ fontsdir="$enable_standalone_fonts"
+fi
+AC_SUBST(fontsdir)
+AM_CONDITIONAL(ENABLE_STANDALONE_FONTS,[test "$enable_standalone_fonts" != "no"])
+dnl $have_gnome should be provided by: GLADE_W_INIT()
+if test x$have_gnome != xtrue -a x$have_gnome != xfalse;then
+ AC_MSG_ERROR([INTERNAL: [GLADE_W_INIT()] expected here])
+fi
+AM_CONDITIONAL(HAVE_GNOME,[test "$have_gnome" = "true"])
+
AC_SUBST(CFLAGS)
AC_SUBST(LIBS)
./src/client/lufs/lufs-captivefs.pod.pl
./src/client/lufs/mount.captive.pod.pl
./src/client/lufs/mount.captive
+./src/client/fuse/mount.captive.pod.pl
./src/client/sandbox-server/captive-sandbox-server.pod.pl
./src/install/fstab/captive-install-fstab.pod.pl
./src/install/acquire/captive-install-acquire.pod.pl
./src/w32-mod/Makefile
./doc/Makefile
./doc/apiref/Makefile
+./fonts/Makefile
+./fonts/fonts.conf
])
dnl FIXME: Why is "po/POTFILES" being substituted?