Changeset 9546 for trunk/configure.ac


Ignore:
Timestamp:
Nov 22, 2009, 6:55:24 PM (13 years ago)
Author:
charles
Message:

(trunk gtk) #2597: add an optional "download complete" sound to the gtk client

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r9522 r9546  
    4646DBUS_GLIB_MINIMUM=0.70
    4747LIBEVENT_MINIMUM=1.4.5
     48CANBERRA_MINIMUM=0.10
    4849AC_SUBST(OPENSSL_MINIMUM)
    4950AC_SUBST(CURL_MINIMUM)
     
    5455AC_SUBST(DBUS_GLIB_MINIMUM)
    5556AC_SUBST(LIBEVENT_MINIUM)
     57AC_SUBST(CANBERRA_MINIMUM)
    5658
    5759AC_PROG_CC
     
    274276    fi
    275277
     278    PKG_CHECK_MODULES([LIBCANBERRA],
     279                      [libcanberra-gtk >= $CANBERRA_MINIMUM],
     280                      [have_libcanberra=yes],
     281                      [have_libcanberra=no])
     282    AC_ARG_ENABLE([libcanberra],
     283                  AS_HELP_STRING([--enable-libcanberra],[enable sounds]),,
     284                  [enable_libcanberra=yes])
     285    use_libcanberra=no
     286    if test "x$enable_libcanberra" = "xyes" ; then
     287        if test "x$have_libcanberra" = "xyes"; then
     288            use_canberra=yes
     289            AC_SUBST(LIBCANBERRA_LIBS)
     290            AC_SUBST(LIBCANBERRA_CFLAGS)
     291            AC_DEFINE([HAVE_LIBCANBERRA], 1)
     292        fi
     293    fi
     294
    276295    PKG_CHECK_MODULES([DBUS_GLIB],
    277296                      [dbus-glib-1 >= $DBUS_GLIB_MINIMUM],
     
    425444        Build Mac client:              ${build_mac}
    426445        Build GTK+ client:             ${build_gtk}
     446          ... with canberra support:   ${use_canberra}
    427447          ... with gio support:        ${use_gio}
    428448          ... with dbus-glib support:  ${use_dbus_glib}
Note: See TracChangeset for help on using the changeset viewer.