Changeset 5652


Ignore:
Timestamp:
Apr 20, 2008, 1:30:44 PM (14 years ago)
Author:
charles
Message:

(gtk) #891: patch: add option to disable libnotify support at compile time

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r5605 r5652  
    109109fi
    110110
    111 PKG_CHECK_MODULES([LIBNOTIFY],
    112                   [libnotify >= $LIBNOTIFY_MINIMUM],
    113                   [use_libnotify=yes],
    114                   [use_libnotify=no])
    115 AC_SUBST(LIBNOTIFY_LIBS)
    116 AC_SUBST(LIBNOTIFY_CFLAGS)
    117 if test "x$use_libnotify" = "xyes"; then
    118     AC_DEFINE([HAVE_LIBNOTIFY], 1)
    119 fi
     111AC_ARG_ENABLE([libnotify],
     112              AS_HELP_STRING([--enable-libnotify],[enable notifications]),,
     113              [enable_libnotify=yes])
     114if test x$enable_libnotify = xyes ; then
     115    PKG_CHECK_MODULES([LIBNOTIFY], [libnotify >= $LIBNOTIFY_MINIMUM])
     116    AC_SUBST(LIBNOTIFY_LIBS)
     117    AC_SUBST(LIBNOTIFY_CFLAGS)
     118    AC_DEFINE([HAVE_LIBNOTIFY], 1) 
     119fi 
    120120
    121121PKG_CHECK_MODULES([DBUS_GLIB],
     
    304304          ... gio support:          ${use_gio}
    305305          ... dbus-glib support:    ${use_dbus_glib}
    306           ... libnotify support:    ${use_libnotify}
     306          ... libnotify support:    ${enable_libnotify}
    307307        Build OS X client:          ${build_darwin}
    308308        Build wxWidgets client:     ${build_wx}
  • trunk/libtransmission/inout.c

    r5649 r5652  
    126126    assert( inf->files[first].offset <= offset );
    127127    if( offset >= inf->files[first].offset + inf->files[first].length ) {
     128        fprintf( stderr, "piece index is %lu\n", (unsigned long)pieceIndex );
     129        fprintf( stderr, "piece offset is %lu\n", (unsigned long)pieceOffset );
     130        fprintf( stderr, "piece size is %lu\n", (unsigned long)inf->pieceSize );
     131        fprintf( stderr, "inf->totalSize is %"PRIu64"\n", inf->totalSize );
    128132        fprintf( stderr, "offset is %"PRIu64"\n", offset );
     133        fprintf( stderr, "first is is %"PRIu64"\n", (uint64_t)first );
     134        fprintf( stderr, "inf->fileCount is %"PRIu64"\n", (uint64_t)inf->fileCount );
    129135        fprintf( stderr, "inf->fileCount is %d\n", (int)inf->fileCount );
    130136        fprintf( stderr, "inf->files[first].offset is %"PRIu64"\n", inf->files[first].offset );
Note: See TracChangeset for help on using the changeset viewer.