From da2cf82c5b073be1bc3f3185a16722a2f5d289de Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Thu, 12 Aug 2004 12:47:37 +0000 Subject: Make the installation of the init scripts and bluepin optional --- acinclude.m4 | 14 ++++++++++++++ scripts/Makefile.am | 4 ++++ 2 files changed, 18 insertions(+) diff --git a/acinclude.m4 b/acinclude.m4 index 878cf50a..f45c138c 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -152,6 +152,8 @@ AC_DEFUN([AC_PATH_EXTRA], [ test_enable=no cups_enable=no pcmcia_enable=no + initscripts_enable=no + bluepin_enable=no hid2hci_enable=${usb_found} bcm203x_enable=no @@ -160,6 +162,8 @@ AC_DEFUN([AC_PATH_EXTRA], [ test_enable=${enableval} cups_enable=${enableval} pcmcia_enable=${enableval} + initscripts_enable=${enableval} + bluepin_enable=${enableval} hid2hci_enable=${enableval} bcm203x_enable=${enableval} ]) @@ -180,6 +184,14 @@ AC_DEFUN([AC_PATH_EXTRA], [ pcmcia_enable=${enableval} ]) + AC_ARG_ENABLE(initscripts, AC_HELP_STRING([--enable-initscripts], [install Bluetooth boot scripts]), [ + initscripts_enable=${enableval} + ]) + + AC_ARG_ENABLE(bluepin, AC_HELP_STRING([--enable-bluepin], [install Python based PIN helper utility]), [ + bluepin_enable=${enableval} + ]) + AC_ARG_ENABLE(hid2hci, AC_HELP_STRING([--enable-hid2hci], [install HID mode switching utility]), [ hid2hci_enable=${enableval} ]) @@ -192,6 +204,8 @@ AC_DEFUN([AC_PATH_EXTRA], [ AM_CONDITIONAL(TEST, test "${test_enable}" = "yes") AM_CONDITIONAL(CUPS, test "${cups_enable}" = "yes") AM_CONDITIONAL(PCMCIA, test "${pcmcia_enable}" = "yes") + AM_CONDITIONAL(INITSCRIPTS, test "${initscripts_enable}" = "yes") + AM_CONDITIONAL(BLUEPIN, test "${bluepin_enable}" = "yes") AM_CONDITIONAL(HID2HCI, test "${hid2hci_enable}" = "yes" && test "${usb_found}" = "yes") AM_CONDITIONAL(BCM203X, test "${bcm203x_enable}" = "yes" && test "${usb_found}" = "yes") ]) diff --git a/scripts/Makefile.am b/scripts/Makefile.am index 741ae080..e77f3f12 100644 --- a/scripts/Makefile.am +++ b/scripts/Makefile.am @@ -2,12 +2,15 @@ # $Id$ # +if BLUEPIN bin_SCRIPTS = bluepin +endif EXTRA_DIST = bluepin bluetooth.init bluetooth.default create_dev MAINTAINERCLEANFILES = Makefile.in +if INITSCRIPTS install-data-local: $(INSTALL) -D -m 755 $(srcdir)/bluetooth.init $(DESTDIR)$(sysconfdir)/init.d/bluetooth $(mkinstalldirs) $(DESTDIR)$(sysconfdir)/default @@ -17,3 +20,4 @@ install-data-local: uninstall-local: @rm -f $(DESTDIR)$(sysconfdir)/init.d/bluetooth @rm -f $(DESTDIR)$(sysconfdir)/default/bluetooth +endif -- cgit