mirror of
https://github.com/transmission/transmission
synced 2025-03-04 10:38:13 +00:00
(gtk) #891: patch: add option to disable libnotify support at compile time
This commit is contained in:
parent
a443cc3289
commit
30b444ab92
2 changed files with 16 additions and 10 deletions
16
configure.ac
16
configure.ac
|
@ -108,13 +108,13 @@ if test "x$use_gio" = "xyes"; then
|
|||
AC_DEFINE([HAVE_GIO], 1)
|
||||
fi
|
||||
|
||||
PKG_CHECK_MODULES([LIBNOTIFY],
|
||||
[libnotify >= $LIBNOTIFY_MINIMUM],
|
||||
[use_libnotify=yes],
|
||||
[use_libnotify=no])
|
||||
AC_SUBST(LIBNOTIFY_LIBS)
|
||||
AC_SUBST(LIBNOTIFY_CFLAGS)
|
||||
if test "x$use_libnotify" = "xyes"; then
|
||||
AC_ARG_ENABLE([libnotify],
|
||||
AS_HELP_STRING([--enable-libnotify],[enable notifications]),,
|
||||
[enable_libnotify=yes])
|
||||
if test x$enable_libnotify = xyes ; then
|
||||
PKG_CHECK_MODULES([LIBNOTIFY], [libnotify >= $LIBNOTIFY_MINIMUM])
|
||||
AC_SUBST(LIBNOTIFY_LIBS)
|
||||
AC_SUBST(LIBNOTIFY_CFLAGS)
|
||||
AC_DEFINE([HAVE_LIBNOTIFY], 1)
|
||||
fi
|
||||
|
||||
|
@ -303,7 +303,7 @@ Configuration:
|
|||
Build GTK+ client: ${build_gtk}
|
||||
... gio support: ${use_gio}
|
||||
... dbus-glib support: ${use_dbus_glib}
|
||||
... libnotify support: ${use_libnotify}
|
||||
... libnotify support: ${enable_libnotify}
|
||||
Build OS X client: ${build_darwin}
|
||||
Build wxWidgets client: ${build_wx}
|
||||
|
||||
|
|
|
@ -125,7 +125,13 @@ findFileLocation( const tr_torrent * tor,
|
|||
|
||||
assert( inf->files[first].offset <= offset );
|
||||
if( offset >= inf->files[first].offset + inf->files[first].length ) {
|
||||
fprintf( stderr, "piece index is %lu\n", (unsigned long)pieceIndex );
|
||||
fprintf( stderr, "piece offset is %lu\n", (unsigned long)pieceOffset );
|
||||
fprintf( stderr, "piece size is %lu\n", (unsigned long)inf->pieceSize );
|
||||
fprintf( stderr, "inf->totalSize is %"PRIu64"\n", inf->totalSize );
|
||||
fprintf( stderr, "offset is %"PRIu64"\n", offset );
|
||||
fprintf( stderr, "first is is %"PRIu64"\n", (uint64_t)first );
|
||||
fprintf( stderr, "inf->fileCount is %"PRIu64"\n", (uint64_t)inf->fileCount );
|
||||
fprintf( stderr, "inf->fileCount is %d\n", (int)inf->fileCount );
|
||||
fprintf( stderr, "inf->files[first].offset is %"PRIu64"\n", inf->files[first].offset );
|
||||
fprintf( stderr, "inf->files[first].length is %"PRIu64"\n", inf->files[first].length );
|
||||
|
|
Loading…
Add table
Reference in a new issue