diff options
author | David Zeuthen <davidz@redhat.com> | 2007-03-30 15:13:50 -0400 |
---|---|---|
committer | David Zeuthen <davidz@redhat.com> | 2007-03-30 15:13:50 -0400 |
commit | 992dbc1929d036195d144e8051fddfd1e5c71779 (patch) | |
tree | 71c77ea19e6cf14f5a9302738ac6605cd83e8107 /configure.in | |
parent | 51572e8d102bb9cc73f797e1edd9f179ab37f4dd (diff) |
fix IBM, Toshiba ACPI hotkey handling
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 143 |
1 files changed, 83 insertions, 60 deletions
diff --git a/configure.in b/configure.in index 911c2bd8..8e14728f 100644 --- a/configure.in +++ b/configure.in @@ -168,14 +168,22 @@ fi AC_SUBST(ACPI_PROC) AM_CONDITIONAL(ACPI_PROC, test x$acpi_proc = xyes) -AC_ARG_ENABLE([acpi-ibm], AC_HELP_STRING([--enable-acpi-ibm], [catch IBM ACPI events]), [acpi_ibm=$enableval], [acpi_ibm=no]) +AC_ARG_ENABLE([acpi-ibm], AC_HELP_STRING([--enable-acpi-ibm], [Forward IBM ACPI events]), [acpi_ibm=$enableval], [acpi_ibm=no]) +BUILD_ACPI_IBM=no if test "x$acpi_ibm" = "xyes" ; then - AC_DEFINE(ACPI_IBM_EVENTS,1,[catch and forward IBM ACPI hotkey and button events]) + AC_DEFINE(BUILD_ACPI_IBM,1,[catch and forward IBM ACPI hotkey and button events]) + BUILD_ACPI_IBM=yes fi -AC_SUBST(ACPI_IBM_EVENTS) -AM_CONDITIONAL(ACPI_IBM_EVENTS, test x$acpi_ibm = xyes) +AC_SUBST(BUILD_ACPI_IBM) +AM_CONDITIONAL(BUILD_ACPI_IBM, test x$acpi_ibm = xyes) -AC_ARG_ENABLE([acpi-toshiba], AC_HELP_STRING([--enable-acpi-toshiba], [catch Toshiba ACPI events]), [acpi_toshiba=$enableval], [acpi_toshiba=no]) +AC_ARG_ENABLE([acpi-toshiba], AC_HELP_STRING([--enable-acpi-toshiba], [Forward Toshiba ACPI events]), [acpi_toshiba=$enableval], [acpi_toshiba=no]) +BUILD_ACPI_TOSHIBA=no +if test "x$acpi_toshiba" = "xyes" ; then + AC_DEFINE(BUILD_ACPI_TOSHIBA,1,[catch and forward Toshiba ACPI hotkey and button events]) + BUILD_ACPI_TOSHIBA=yes +fi +AC_SUBST(BUILD_ACPI_TOSHIBA) AM_CONDITIONAL(BUILD_ACPI_TOSHIBA, test x$acpi_toshiba = xyes) @@ -892,63 +900,78 @@ echo " HAL $VERSION ============== - prefix: ${prefix} - libdir: ${LIBDIR} - libexecdir: ${LIBEXECDIR} - bindir: ${BINDIR} - sbindir: ${SBINDIR} - datadir: ${DATADIR} - sysconfdir: ${SYSCONFDIR} - localstatedir: ${LOCALSTATEDIR} - docdir: ${DOCDIR} - dbus-1 system.d dir: ${DBUS_SYS_DIR} - pci.ids dir: ${PCI_IDS_DIR} - usb.ids dir: ${USB_IDS_DIR} - - compiler: ${CC} - cflags: ${CFLAGS} - ldflags: ${LDFLAGS} - cppflags: ${CPPFLAGS} - xmlto: ${XMLTO} - xmllint: ${XMLLINT} - User for HAL: ${HAL_USER} - Group for HAL: ${HAL_GROUP} - hald pidfile: ${HALD_PID_FILE} - hald socket dir: ${HALD_SOCKET_DIR} - eject program: ${EJECT_PROGRAM} - - OS backend: ${HALD_BACKEND} - - use acpi kernel interface: ${acpi_proc} - use acpid interface: ${acpi_acpid} - use libusb: ${USE_LIBUSB} - use libpci: ${USE_LIBPCI} - use libparted: ${USE_PARTED} - use PolicyKit: ${msg_polkit} - use ConsoleKit: ${msg_conkit} - use ACL management: ${msg_aclmgmt} - use umount.hal helper: ${msg_umount_hal} - use ACPI: ${msg_acpi} - use PMU: ${msg_pmu} - use APM: ${msg_apm} - use Sony PIC: ${msg_sonypic} - - Macbook backlight support: ${BUILD_MACBOOK} (Linux only, x86 only, requires libpci) - Macbook Pro utils: ${BUILD_MACBOOKPRO} (Linux only, x86 only, requires libpci) - OMAP utils: ${BUILD_OMAP} (Linux only, arm only) - CPU frequency scaling: ${BUILD_CPUFREQ} (Linux only) - catch IBM acpi events: ${acpi_ibm} (Linux only) - catch Toshiba acpi events: ${acpi_toshiba} (Linux only) - USB wireless mouse power: ${BUILD_USBCSR} (Linux only, requires libusb) - Dell Backlight: ${BUILD_DELL} (Linux only, requires libsmbios >= 0.13.4) - - Maintainer mode: ${USE_MAINTAINER_MODE} - Building verbose mode: ${enable_verbose_mode} - Building api docs: ${enable_gtk_doc} - Building docs: ${enable_docbook_docs} - Building man pages: ${enable_man_pages} + prefix: ${prefix} + libdir: ${LIBDIR} + libexecdir: ${LIBEXECDIR} + bindir: ${BINDIR} + sbindir: ${SBINDIR} + datadir: ${DATADIR} + sysconfdir: ${SYSCONFDIR} + localstatedir: ${LOCALSTATEDIR} + docdir: ${DOCDIR} + dbus-1 system.d dir: ${DBUS_SYS_DIR} + pci.ids dir: ${PCI_IDS_DIR} + usb.ids dir: ${USB_IDS_DIR} + + compiler: ${CC} + cflags: ${CFLAGS} + ldflags: ${LDFLAGS} + cppflags: ${CPPFLAGS} + xmlto: ${XMLTO} + xmllint: ${XMLLINT} + User for HAL: ${HAL_USER} + Group for HAL: ${HAL_GROUP} + hald pidfile: ${HALD_PID_FILE} + hald socket dir: ${HALD_SOCKET_DIR} + eject program: ${EJECT_PROGRAM} + + OS backend: ${HALD_BACKEND} + + use acpi kernel interface: ${acpi_proc} + use acpid interface: ${acpi_acpid} + use libusb: ${USE_LIBUSB} + use libpci: ${USE_LIBPCI} + use libparted: ${USE_PARTED} + use PolicyKit: ${msg_polkit} + use ConsoleKit: ${msg_conkit} + use ACL management: ${msg_aclmgmt} + use umount.hal helper: ${msg_umount_hal} + use ACPI: ${msg_acpi} + use PMU: ${msg_pmu} + use APM: ${msg_apm} + use Sony PIC: ${msg_sonypic} + + Macbook backlight support: ${BUILD_MACBOOK} (Linux only, x86 only, requires libpci) + Macbook Pro utils: ${BUILD_MACBOOKPRO} (Linux only, x86 only, requires libpci) + OMAP utils: ${BUILD_OMAP} (Linux only, arm only) + CPU frequency scaling: ${BUILD_CPUFREQ} (Linux only) + Forward IBM ACPI events: ${BUILD_ACPI_IBM} (Linux only) + Forward Toshiba ACPI events: ${BUILD_ACPI_TOSHIBA} (Linux only) + USB wireless mouse power: ${BUILD_USBCSR} (Linux only, requires libusb) + Dell Backlight: ${BUILD_DELL} (Linux only, requires libsmbios >= 0.13.4) + + Maintainer mode: ${USE_MAINTAINER_MODE} + Building verbose mode: ${enable_verbose_mode} + Building api docs: ${enable_gtk_doc} + Building docs: ${enable_docbook_docs} + Building man pages: ${enable_man_pages} " +if test x$BUILD_ACPI_IBM = xyes; then + echo "NOTE: Future Linux kernels may provide IBM ACPI events via a kernel." + echo " input device resulting in HAL emitting twice as many events as it" + echo " should. Make sure to rebuild HAL without --enable-acpi-ibm if" + echo " you use such a kernel." + echo +fi + +if test x$BUILD_ACPI_TOSHIBA = xyes; then + echo "NOTE: Future Linux kernels may provide Toshiba ACPI events via a kernel." + echo " input device resulting in HAL emitting twice as many events as it" + echo " should. Make sure to rebuild HAL without --enable-acpi-toshiba if" + echo " you use such a kernel." + echo +fi if test x$enable_umount_hal = xyes; then |