1
AC_INIT(client/gdaemonvfs.h)
3
AM_INIT_AUTOMAKE(gvfs, 1.7.3)
4
AM_CONFIG_HEADER(config.h)
17
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
18
AC_PATH_PROG(GIO_QUERYMODULES, gio-querymodules, no)
22
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
31
AH_VERBATIM([_GNU_SOURCE],
32
[/* Enable GNU extensions on systems that have them. */
38
AC_CHECK_MEMBERS([struct stat.st_mtimensec, struct stat.st_mtim.tv_nsec, struct stat.st_atimensec, struct stat.st_atim.tv_nsec, struct stat.st_ctimensec, struct stat.st_ctim.tv_nsec])
41
LIBTOOL_EXPORT_OPTIONS='-export-symbols-regex "^[[^_]].*"'
42
AC_SUBST(LIBTOOL_EXPORT_OPTIONS)
45
DISTCHECK_CONFIGURE_FLAGS="--enable-gtk-doc"
46
AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
48
PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.27.4 gthread-2.0 gobject-2.0 gmodule-no-export-2.0 gio-unix-2.0 gio-2.0 )
50
PKG_CHECK_MODULES(DBUS, dbus-1)
52
AC_ARG_WITH(dbus_service_dir,
53
AS_HELP_STRING([--with-dbus-service-dir=PATH],[choose directory for dbus service files, [default=PREFIX/share/dbus-1/services]]),
54
with_dbus_service_dir="$withval", with_dbus_service_dir=$datadir/dbus-1/services)
55
DBUS_SERVICE_DIR=$with_dbus_service_dir
56
AC_SUBST(DBUS_SERVICE_DIR)
58
giomodulesdir=$libdir/gio/modules
59
AC_SUBST(giomodulesdir)
61
dnl ****************************
62
dnl *** Checks for intltool ***
63
dnl ****************************
65
IT_PROG_INTLTOOL([0.35.0])
68
AC_SUBST([GETTEXT_PACKAGE])
69
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[The gettext domain name])
72
dnl ****************************
73
dnl *** Checks for gettext ***
74
dnl ****************************
76
dnl *** disabled by now, using intltool ***
77
dnl *** we'll revert when glib-gettexttize will be able
78
dnl *** to manage [enconding: UTF-8] in POTIFILES.in
80
dnl GETTEXT_PACKAGE=gvfs
81
dnl AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [The gettext domain name])
82
dnl AC_SUBST(GETTEXT_PACKAGE)
86
dnl AM_GLIB_GNU_GETTEXT
88
dnl LIBS="$LIBS $INTLLIBS"
90
dnl AM_GLIB_DEFINE_LOCALEDIR(GVFS_LOCALEDIR)
92
dnl ****************************
93
dnl *** Checks for ssh stuff ***
94
dnl ****************************
96
AC_PATH_PROG(SSH_PROGRAM, ssh, "ssh")
98
dnl ****************************
99
dnl *** Checks for pty stuff ***
100
dnl ****************************
102
AC_CHECK_HEADERS(sys/un.h stropts.h termios.h utmp.h sys/uio.h sys/param.h)
104
# Check for PTY handling functions.
105
AC_CHECK_FUNCS(getpt posix_openpt grantpt unlockpt ptsname ptsname_r)
107
# Pull in the right libraries for various functions which might not be
108
# bundled into an exploded libc.
109
AC_CHECK_FUNC(socketpair,[have_socketpair=1],AC_CHECK_LIB(socket,socketpair,[have_socketpair=1; LIBS="$LIBS -lsocket"]))
110
if test x$have_socketpair = x1 ; then
111
AC_DEFINE(HAVE_SOCKETPAIR,1,[Define if you have the socketpair function.])
114
AC_SEARCH_LIBS(login_tty, util, [AC_DEFINE([HAVE_LOGIN_TTY],[],[Whether login_tty is available])])
116
dnl **************************************************
117
dnl *** Check if we should build with http backend ***
118
dnl **************************************************
119
AC_ARG_ENABLE(http, AS_HELP_STRING([--disable-http],[build without http/dav backend]))
124
if test "x$enable_http" != "xno"; then
125
PKG_CHECK_EXISTS(libsoup-gnome-2.4 >= 2.26.0, msg_http=yes)
127
if test "x$msg_http" = "xyes"; then
128
PKG_CHECK_MODULES(HTTP, libsoup-gnome-2.4 libxml-2.0)
129
AC_DEFINE(HAVE_HTTP, 1, [Define to 1 if http/dav is going to be built])
133
AC_SUBST(HTTP_CFLAGS)
135
AM_CONDITIONAL(HAVE_HTTP, [test "$msg_http" = "yes"])
137
dnl **************************************************
138
dnl *** Check if we should build with DNS-SD backend ***
139
dnl **************************************************
140
AM_CONDITIONAL(HAVE_AVAHI, false)
142
AC_ARG_ENABLE(avahi, AS_HELP_STRING([--disable-avahi],[build without avahi support]))
144
if test "x$enable_avahi" != "xno"; then
145
PKG_CHECK_MODULES(AVAHI, avahi-glib >= 0.6 avahi-client >= 0.6,
146
[AM_CONDITIONAL(HAVE_AVAHI, true)
147
AC_DEFINE(HAVE_AVAHI, [], [Set if we can use avahi])]
149
[AM_CONDITIONAL(HAVE_AVAHI, false)])
150
AC_SUBST(AVAHI_CFLAGS)
154
dnl ************************
155
dnl *** Check for libXML ***
156
dnl ************************
157
PKG_CHECK_MODULES(LIBXML, libxml-2.0,
158
[AM_CONDITIONAL(HAVE_LIBXML, true)
159
AC_DEFINE(HAVE_LIBXML, [], [Set if we have libxml])]
161
[AM_CONDITIONAL(HAVE_LIBXML, false)])
163
dnl *************************
164
dnl *** Check for libudev ***
165
dnl *************************
166
AC_ARG_ENABLE(udev, AS_HELP_STRING([--disable-udev],[build without libudev]))
171
if test "x$enable_udev" != "xno"; then
172
PKG_CHECK_EXISTS(libudev >= 138, msg_udev=yes)
174
if test "x$msg_udev" = "xyes"; then
175
PKG_CHECK_MODULES(UDEV, libudev)
176
AC_DEFINE(HAVE_LIBUDEV, 1, [Define to 1 if libudev availible])
180
dnl **********************
181
dnl *** Check for FUSE ***
182
dnl **********************
183
AC_ARG_ENABLE(fuse, AS_HELP_STRING([--disable-fuse],[build without FUSE support]))
188
if test "x$enable_fuse" != "xno"; then
189
PKG_CHECK_EXISTS(fuse, msg_fuse=yes)
191
if test "x$msg_fuse" = "xyes"; then
192
PKG_CHECK_MODULES(FUSE, fuse >= 2.8.0)
193
AC_DEFINE(HAVE_FUSE, 1, [Define to 1 if FUSE is available])
197
AM_CONDITIONAL(USE_FUSE, [test "$msg_fuse" = "yes"])
199
dnl ********************************************
200
dnl *** Check for expat (for obexftp and gdu ***
201
dnl ********************************************
203
dnl Make sure we have expat
204
AC_CHECK_LIB(expat, XML_ParserCreate_MM,
205
[ AC_CHECK_HEADERS(expat.h, have_expat=true, have_expat=false) ],
207
if test "x$have_expat" = "xtrue"; then
210
AC_DEFINE(HAVE_EXPAT,, [Define to 1 if you have expat available])
212
AC_SUBST(EXPAT_CFLAGS)
215
dnl ************************************
216
dnl *** Check for gnome-disk-utility ***
217
dnl ************************************
219
AC_ARG_ENABLE(gdu, AS_HELP_STRING([--disable-gdu],[build without GDU volume monitor]))
225
if test "x$enable_gdu" != "xno"; then
226
PKG_CHECK_EXISTS([gdu >= $GDU_REQUIRED], msg_gdu=yes)
228
if test "x$msg_gdu" = "xyes"; then
229
PKG_CHECK_MODULES([GDU],[gdu >= $GDU_REQUIRED])
230
AC_DEFINE(HAVE_GDU, 1, [Define to 1 if gnome-disk-utility is available])
234
AM_CONDITIONAL(USE_GDU, [test "$msg_gdu" = "yes"])
236
dnl **********************
237
dnl *** Check for HAL ***
238
dnl **********************
239
AC_ARG_ENABLE(hal, AS_HELP_STRING([--disable-hal],[build without HAL support]))
241
have_hal_fast_init=no
246
if test "x$enable_hal" != "xno" && test "x$msg_gdu" = "xno"; then
247
PKG_CHECK_EXISTS([hal >= $HAL_REQUIRED], msg_hal=yes)
249
if test "x$msg_hal" = "xyes"; then
250
PKG_CHECK_MODULES([HAL],[hal >= $HAL_REQUIRED])
251
AC_DEFINE(HAVE_HAL, 1, [Define to 1 if HAL is available])
254
AC_CHECK_LIB(hal, libhal_get_all_devices_with_properties, have_hal_fast_init=yes)
255
if test "x$have_hal_fast_init" = "xyes"; then
256
AC_DEFINE(HAVE_HAL_FAST_INIT, 1, [Define to 1 if libhal_get_all_devices_with_properties is available])
262
AM_CONDITIONAL(USE_HAL, [test "$msg_hal" = "yes"])
264
dnl **********************
265
dnl *** Check for gudev ***
266
dnl **********************
267
AC_ARG_ENABLE(gudev, AS_HELP_STRING([--disable-gudev],[build without gudev support]))
271
if test "x$enable_gudev" != "xno"; then
272
PKG_CHECK_EXISTS([gudev-1.0 >= $GUDEV_REQUIRED], msg_gudev=yes)
274
if test "x$msg_gudev" = "xyes"; then
275
PKG_CHECK_MODULES(GUDEV, [gudev-1.0 >= $GUDEV_REQUIRED])
276
AC_DEFINE(HAVE_GUDEV, 1, [Define to 1 if gudev is available])
279
AM_CONDITIONAL(USE_GUDEV, [test "$msg_gudev" = "yes"])
281
if test "x$msg_gudev" = "xyes"; then
282
msg_hotplug_backend="gudev"
284
if test "x$msg_hal" = "xyes"; then
285
msg_hotplug_backend="hal"
287
msg_hotplug_backend="none"
291
dnl **************************************************
292
dnl *** Check if we should build with CDDA backend ***
293
dnl **************************************************
294
AC_ARG_ENABLE(cdda, AS_HELP_STRING([--disable-cdda],[build without CDDA backend]))
299
if test "x$enable_cdda" != "xno" -a \( "x$msg_hal" = "xyes" -o "x$msg_gudev" = "xyes" \); then
300
PKG_CHECK_EXISTS(libcdio_paranoia >= 0.78.2, msg_cdda=yes)
302
if test "x$msg_cdda" = "xyes"; then
303
PKG_CHECK_MODULES(CDDA, libcdio_paranoia)
304
AC_DEFINE(HAVE_CDDA, 1, [Define to 1 if CDDA is going to be built])
308
AM_CONDITIONAL(USE_CDDA, [test "$msg_cdda" = "yes"])
310
dnl *************************************************
311
dnl *** Check if we should build with AFC backend ***
312
dnl *************************************************
313
AC_ARG_ENABLE(afc, AS_HELP_STRING([--disable-afc],[build without AFC backend]))
318
if test "x$enable_afc" != "xno" ; then
319
PKG_CHECK_EXISTS(libimobiledevice-1.0 >= 1.1.0 libplist >= 0.15, msg_afc=yes)
321
if test "x$msg_afc" = "xyes"; then
322
PKG_CHECK_MODULES(AFC, libimobiledevice-1.0 libplist)
323
AC_DEFINE(HAVE_AFC, 1, [Define to 1 if AFC is going to be built])
330
AM_CONDITIONAL(USE_AFC, [test "$msg_afc" = "yes"])
332
dnl *****************************************************
333
dnl *** Check if we should build with obexftp backend ***
334
dnl *****************************************************
335
AC_ARG_ENABLE(obexftp, AS_HELP_STRING([--disable-obexftp],[build without ObexFTP backend]))
340
if test "x$enable_obexftp" != "xno"; then
341
PKG_CHECK_EXISTS(dbus-glib-1 bluez >= 4.0, msg_obexftp=yes)
343
if test "x$msg_obexftp" = "xyes" -a "x$have_expat" = "xtrue"; then
344
PKG_CHECK_MODULES(OBEXFTP, dbus-glib-1 bluez >= 4.0)
345
AC_SUBST(OBEXFTP_LIBS)
346
AC_SUBST(OBEXFTP_CFLAGS)
349
AC_DEFINE(HAVE_OBEXFTP, 1, [Define to 1 if ObexFTP is going to be built])
355
AM_CONDITIONAL(USE_OBEXFTP, [test "$msg_obexftp" = "yes"])
357
dnl *************************
358
dnl *** Check for gphoto2 ***
359
dnl *************************
360
AC_ARG_ENABLE(gphoto2, AS_HELP_STRING([--disable-gphoto2],[build without gphoto2 support]))
365
if test "x$enable_gphoto2" != "xno" -a \( "x$msg_hal" = "xyes" -o "x$msg_gudev" = "xyes" \); then
366
PKG_CHECK_EXISTS(libgphoto2, msg_gphoto2=yes)
368
# Need OS tweaks in hal volume monitor backend
370
*-linux* | *-freebsd* | *-kfreebsd*-gnu)
378
if test "x$msg_gphoto2" = "xyes"; then
379
if test "x$use_gphoto2" = "xyes"; then
380
PKG_CHECK_MODULES(GPHOTO2, libgphoto2 >= 2.4.0)
381
AC_DEFINE(HAVE_GPHOTO2, 1, [Define to 1 if gphoto2 is available])
383
AC_MSG_WARN([Not building with gphoto2 support. Need OS tweaks in hal volume monitor.])
389
AM_CONDITIONAL(USE_GPHOTO2, [test "$msg_gphoto2" = "yes"])
391
dnl *******************************
392
dnl *** Check for GNOME Keyring ***
393
dnl *******************************
394
AC_ARG_ENABLE(keyring, AS_HELP_STRING([--disable-keyring],[build without GNOME Keyring support]))
399
if test "x$enable_keyring" != "xno"; then
400
PKG_CHECK_EXISTS(gnome-keyring-1, msg_keyring=yes)
402
if test "x$msg_keyring" = "xyes"; then
403
PKG_CHECK_MODULES(KEYRING, gnome-keyring-1)
404
AC_DEFINE(HAVE_KEYRING, 1, [Define to 1 if GNOME Keyring is available])
408
AM_CONDITIONAL(USE_KEYRING, [test "$msg_keyring" = "yes"])
410
dnl ==========================================================================
413
AC_ARG_ENABLE(samba, AS_HELP_STRING([--disable-samba],[build without samba support]))
415
if test "x$enable_samba" != "xno"; then
416
AC_ARG_WITH(samba-includes, AS_HELP_STRING([--with-samba-includes=PREFIX],[Location of samba includes.]),
417
with_samba_includes="$withval", with_samba_includes="/usr/include")
418
have_samba_includes="no"
419
if test "x${with_samba_includes}" != "xno"; then
420
CPPFLAGS_save="$CPPFLAGS"
422
CPPFLAGS="$CPPFLAGS -I$with_samba_includes"
423
AC_CHECK_HEADER(libsmbclient.h, [ samba_includes="yes" ])
424
CPPFLAGS="$CPPFLAGS_save"
426
if test "x{samba_includes}" != "xno" -a "x${samba_includes}" != "x"; then
427
have_samba_includes="yes"
428
if test "${with_samba_includes}" != "/usr/include" ; then
429
SAMBA_CFLAGS="-I$with_samba_includes"
434
CPPFLAGS="$CPPFLAGS -I$with_samba_includes"
435
AC_CHECK_MEMBER(SMBCCTX.flags,
436
[AC_DEFINE(HAVE_SAMBA_FLAGS,, [Defined if flags available in SMBCCTXT])],,
437
[#include <libsmbclient.h>])
438
AC_CHECK_MEMBER(SMBCCTX.close,
439
[AC_DEFINE(HAVE_SAMBA_OLD_CLOSE, , [Defined if old close is available in SMBCCTXT])],,
440
[#include <libsmbclient.h>])
441
CPPFLAGS="$CPPFLAGS_save"
446
AC_ARG_WITH(samba-libs, AS_HELP_STRING([--with-samba-libs=PREFIX],[Location of Samba libs.]),
447
with_samba_libs="$withval", with_samba_libs="/usr/lib")
448
if test "x${with_samba_libs}" != "xno" -a "x${have_samba_includes}" != "xno"; then
449
LDFLAGS_save="$LDFLAGS"
451
LDFLAGS="$LDFLAGS -L$with_samba_libs"
452
AC_CHECK_LIB(smbclient, smbc_option_get,samba_libs="yes", samba_libs="no")
453
LDFLAGS="$LDFLAGS_save"
454
if test "x${samba_libs}" != "xno"; then
455
AC_DEFINE(HAVE_SAMBA,, [Define to 1 if you have the samba 3.0 libraries])
457
if test x$with_samba_libs != x/usr/lib; then
458
SAMBA_LIBS="-L$with_samba_libs -lsmbclient"
460
SAMBA_LIBS="-lsmbclient"
462
AC_CHECK_LIB(smbclient, smbc_getFunctionStatVFS,
463
AC_DEFINE(HAVE_SAMBA_STAT_VFS, , [Define to 1 if smbclient supports smbc_stat_fn]))
465
AC_CHECK_LIB(smbclient, smbc_new_context,samba_old_libs="yes", samba_old_libs="no")
466
if test "x${samba_old_libs}" != "xno"; then
467
msg_samba="Too old, need at least samba 3.0.22"
473
AC_MSG_CHECKING(for Samba 3.0 libraries)
474
AC_MSG_RESULT($msg_samba)
476
AM_CONDITIONAL(HAVE_SAMBA, test "$msg_samba" = "yes")
477
AC_SUBST(SAMBA_CFLAGS)
480
dnl ==========================================================================
482
dnl ****************************
483
dnl *** Check for libarchive ***
484
dnl ****************************
486
AC_ARG_ENABLE(archive, AS_HELP_STRING([--disable-archive],[build without archive support]))
488
if test "x$enable_archive" != "xno"; then
489
AC_ARG_WITH(archive-includes, AS_HELP_STRING([--with-archive-includes=PREFIX],[Location of archive includes.]),
490
with_archive_includes="$withval", with_archive_includes="/usr/include")
491
have_archive_includes="no"
492
if test "x${with_archive_includes}" != "xno"; then
493
CPPFLAGS_save="$CPPFLAGS"
495
CPPFLAGS="$CPPFLAGS -I$with_archive_includes"
496
AC_CHECK_HEADER(archive.h, [ archive_includes="yes" ])
497
CPPFLAGS="$CPPFLAGS_save"
499
if test "x{archive_includes}" != "xno" -a "x${archive_includes}" != "x"; then
500
have_archive_includes="yes"
501
if test "${with_archive_includes}" != "/usr/include" ; then
502
ARCHIVE_CFLAGS="-I$with_archive_includes"
510
AC_ARG_WITH(archive-libs, AS_HELP_STRING ([--with-archive-libs=PREFIX],[Location of Archive libs.]),
511
with_archive_libs="$withval", with_archive_libs="/usr/lib")
512
if test "x${with_archive_libs}" != "xno" -a "x${have_archive_includes}" != "xno"; then
513
LDFLAGS_save="$LDFLAGS"
515
LDFLAGS="$LDFLAGS -L$with_archive_libs"
516
AC_CHECK_LIB(archive, archive_entry_filetype, archive_libs="yes", archive_libs="no")
517
LDFLAGS="$LDFLAGS_save"
518
if test "x${archive_libs}" != "xno"; then
519
AC_DEFINE(HAVE_ARCHIVE,, [Define to 1 if you have the libarchive library])
521
if test x$with_archive_libs != x/usr/lib; then
522
ARCHIVE_LIBS="-L$with_archive_libs -larchive"
524
ARCHIVE_LIBS="-larchive"
527
AC_CHECK_LIB(archive, archive_entry_filetype, archive_old_libs="yes", archive_old_libs="no")
528
if test "x${archive_old_libs}" != "xno"; then
529
msg_archive="Too old, need at least archive 3.0.22"
535
AC_MSG_CHECKING(for Archive 3.libraries)
536
AC_MSG_RESULT($msg_archive)
538
AM_CONDITIONAL(HAVE_ARCHIVE, test "$msg_archive" = "yes")
539
AC_SUBST(ARCHIVE_CFLAGS)
540
AC_SUBST(ARCHIVE_LIBS)
542
dnl Install bash-completion file?
543
AC_ARG_ENABLE([bash-completion],
544
AC_HELP_STRING([--disable-bash-completion],
545
[build without bash-completion support]),
546
msg_bash_completion=$enableval,
547
msg_bash_completion=yes)
548
if test "x$enable_bash_completion" != "xno"; then
549
msg_bash_completion=yes
551
AM_CONDITIONAL(ENABLE_BASHCOMP, test "$msg_bash_completion" = "yes")
553
AC_ARG_WITH([bash-completion-dir],
554
AC_HELP_STRING([--with-bash-completion-dir=PATH],
555
[choose directory for bash-completion file (default=SYSCONFDIR/profile.d)]),
556
with_bashcomp_dir=$withval,
557
with_bashcomp_dir=$sysconfdir/profile.d)
558
BASHCOMP_DIR=$with_bashcomp_dir
559
AC_SUBST(BASHCOMP_DIR)
561
dnl ==========================================================================
563
dnl Globally define_GNU_SOURCE and therefore enable the GNU extensions
564
AC_DEFINE(_GNU_SOURCE, 1, [Enable GNU Extensions])
566
dnl ==========================================================================
568
AC_DEFINE(_FILE_OFFSET_BITS, 64, [Enable LFS])
570
dnl ==========================================================================
572
AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
574
dnl ==========================================================================
575
dnl Look for various fs info getters
577
AC_CHECK_HEADERS([sys/statfs.h sys/statvfs.h sys/vfs.h sys/mount.h sys/param.h])
578
AC_CHECK_FUNCS(statvfs statfs)
579
AC_CHECK_MEMBERS([struct statfs.f_fstypename, struct statfs.f_bavail],,, [#include <sys/types.h>
580
#include <sys/stat.h>
582
#ifdef HAVE_SYS_STATFS_H
583
#include <sys/statfs.h>
585
#ifdef HAVE_SYS_PARAM_H
586
#include <sys/param.h>
588
#ifdef HAVE_SYS_MOUNT_H
589
#include <sys/mount.h>
591
# struct statvfs.f_basetype is available on Solaris but not for Linux.
592
AC_CHECK_MEMBERS([struct statvfs.f_basetype],,, [#include <sys/statvfs.h>])
595
dnl if statfs() takes 2 arguments (Posix) or 4 (Solaris)
597
if test "$ac_cv_func_statfs" = yes ; then
598
AC_MSG_CHECKING([number of arguments to statfs()])
599
AC_TRY_COMPILE([#include <unistd.h>
600
#ifdef HAVE_SYS_PARAM_H
601
#include <sys/param.h>
603
#ifdef HAVE_SYS_VFS_H
606
#ifdef HAVE_SYS_MOUNT_H
607
#include <sys/mount.h>
609
#ifdef HAVE_SYS_STATFS_H
610
#include <sys/statfs.h>
611
#endif], [struct statfs st;
612
statfs(NULL, &st);],[
614
AC_DEFINE(STATFS_ARGS, 2, [Number of arguments to statfs()])],[
615
AC_TRY_COMPILE([#include <unistd.h>
616
#ifdef HAVE_SYS_PARAM_H
617
#include <sys/param.h>
619
#ifdef HAVE_SYS_VFS_H
622
#ifdef HAVE_SYS_MOUNT_H
623
#include <sys/mount.h>
625
#ifdef HAVE_SYS_STATFS_H
626
#include <sys/statfs.h>
627
#endif], [struct statfs st;
628
statfs(NULL, &st, sizeof (st), 0);],[
630
AC_DEFINE(STATFS_ARGS, 4, [Number of arguments to statfs()])],[
631
AC_MSG_RESULT(unknown)
632
AC_MSG_ERROR([unable to determine number of arguments to statfs()])])])
635
dnl ==========================================================================
636
dnl Turn on the additional warnings last, so -Werror doesn't affect other tests.
638
AC_ARG_ENABLE(more-warnings,
639
AS_HELP_STRING([--enable-more-warnings],[Maximum compiler warnings]),
640
set_more_warnings="$enableval",[
641
if test -f $srcdir/CVSVERSION; then
643
set_more_warnings=yes
648
AC_MSG_CHECKING(for more warnings, including -Werror)
649
if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
653
-Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes \
654
-Wnested-externs -Wpointer-arith \
655
-Wcast-align -Wsign-compare \
658
for option in -Wno-strict-aliasing -Wno-sign-compare -Wtype-limits; do
659
SAVE_CFLAGS="$CFLAGS"
660
CFLAGS="$CFLAGS $option"
661
AC_MSG_CHECKING([whether gcc understands $option])
662
AC_TRY_COMPILE([], [],
665
if test $has_option = no; then
666
CFLAGS="$SAVE_CFLAGS"
668
AC_MSG_RESULT($has_option)
682
daemon/trashlib/Makefile
685
monitor/proxy/Makefile
688
monitor/gphoto2/Makefile
696
echo "gvfs configuration summary:"
698
gio module directory : $giomodulesdir
700
hotplug backend: $msg_hotplug_backend
702
FTP/HTTP/WebDAV support $msg_http
703
ObexFTP support $msg_obexftp
704
Samba support: $msg_samba
705
FUSE support: $msg_fuse
706
CDDA support: $msg_cdda
707
Gphoto2 support: $msg_gphoto2
708
archive support: $msg_archive
709
AFC support: $msg_afc
710
DNS-SD support: $msg_avahi
711
Build HAL volume monitor: $msg_hal (with fast init path: $have_hal_fast_init)
712
Build GDU volume monitor: $msg_gdu
713
GNOME Keyring support: $msg_keyring
714
Bash-completion support: $msg_bash_completion
717
# The gudev gphoto monitor needs a recent libgphoto; point to the required patch if the version is too old
718
if test "x$msg_gudev" = "xyes"; then
719
PKG_CHECK_EXISTS(libgphoto2 >= 2.4.7,, msg_gphoto_patch=yes)
720
if test "x$msg_gphoto_patch" = "xyes"; then
721
AC_MSG_WARN([You are using a libgphoto2 version earlier than 2.4.7. To work with gudev, you must apply the patch in http://sourceforge.net/tracker/?func=detail&aid=2801117&group_id=8874&atid=308874])