diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-02-09 21:11:55 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-02-09 21:12:06 +0100 |
commit | dfd5e05f01dd4d28bc6c5ebc3c991404723bc076 (patch) | |
tree | 71ad869db0e6c342b8eab3fcc21b4c22e1f66033 /configure.ac | |
parent | da8e6ae8248d35cc7bcacdea0c1b874458c60ed4 (diff) | |
download | libcanberra-dfd5e05f01dd4d28bc6c5ebc3c991404723bc076.tar.gz |
boot: add utility to play boot up sound
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 17b4093..4d1376c 100644 --- a/configure.ac +++ b/configure.ac @@ -287,6 +287,39 @@ fi AC_SUBST(PULSE_CFLAGS) AC_SUBST(PULSE_LIBS) +#### UDEV support (optional) #### + +AC_ARG_ENABLE([udev], + AS_HELP_STRING([--disable-udev], [Disable optional udev support]), + [ + case "${enableval}" in + yes) udev=yes ;; + no) udev=no ;; + *) AC_MSG_ERROR(bad value ${enableval} for --disable-udev) ;; + esac + ], + [udev=auto]) + +if test "x${udev}" != xno ; then + PKG_CHECK_MODULES(UDEV, [ libudev >= 160 ], + [ + HAVE_UDEV=1 + AC_DEFINE([HAVE_UDEV], 1, [Have udev?]) + ], + [ + HAVE_UDEV=0 + if test "x$udev" = xyes ; then + AC_MSG_ERROR([*** udev not found ***]) + fi + ]) +else + HAVE_UDEV=0 +fi + +AC_SUBST(UDEV_CFLAGS) +AC_SUBST(UDEV_LIBS) +AM_CONDITIONAL([HAVE_UDEV], [test "x$HAVE_UDEV" = x1]) + #### GStreamer support (optional) #### AC_ARG_ENABLE([gstreamer], @@ -703,6 +736,11 @@ if test "x$HAVE_CACHE" = "x1" ; then ENABLE_CACHE=yes fi +ENABLE_UDEV=no +if test "x$HAVE_UDEV" = "x1" ; then + ENABLE_UDEV=yes +fi + echo " ---{ $PACKAGE_NAME $VERSION }--- @@ -730,6 +768,7 @@ echo " GTK Modules Directory: ${GTK_MODULES_DIR} Enable GTK3+: ${ENABLE_GTK3} GTK3 Modules Directory: ${GTK3_MODULES_DIR} + Enable udev: ${ENABLE_UDEV} " |