diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2004-08-12 12:47:37 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2004-08-12 12:47:37 +0000 |
commit | da2cf82c5b073be1bc3f3185a16722a2f5d289de (patch) | |
tree | 55f6cb996940133e8c4808e0d912e34dece383df | |
parent | 5bec11bb84e13e200a38798271a7da8924c3f6f7 (diff) |
Make the installation of the init scripts and bluepin optional
-rw-r--r-- | acinclude.m4 | 14 | ||||
-rw-r--r-- | scripts/Makefile.am | 4 |
2 files changed, 18 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 878cf50a2..f45c138cf 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 741ae080d..e77f3f123 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 |