X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=config%2Famanda%2Fdvdrw-device.m4;fp=config%2Famanda%2Fdvdrw-device.m4;h=b47b072cad8ce01f7f1de9d8a0605e3593d902cb;hb=538ae376635af705ebcd686f3b4b7b72a6652985;hp=0000000000000000000000000000000000000000;hpb=11425c69eb58b6103beb68adc13912735ba36975;p=debian%2Famanda diff --git a/config/amanda/dvdrw-device.m4 b/config/amanda/dvdrw-device.m4 new file mode 100644 index 0000000..b47b072 --- /dev/null +++ b/config/amanda/dvdrw-device.m4 @@ -0,0 +1,25 @@ +# SYNOPSIS +# +# AMANDA_DVDRW_DEVICE +# +# OVERVIEW +# +# Perform the necessary checks for the DVDRW Device. If the DVDRW device should be built, +# WANT_DVDRW_DEVICE is DEFINEd and set up as an AM_CONDITIONAL. +# +AC_DEFUN([AMANDA_DVDRW_DEVICE], [ + AC_ARG_ENABLE([dvdrw-device], + AS_HELP_STRING([--disable-dvdrw-device], + [disable the DVD-RW device]), + [ WANT_DVDRW_DEVICE=$enableval ], [ WANT_DVDRW_DEVICE=yes ]) + + AC_MSG_CHECKING([whether to include the DVD-RW device]) + AC_MSG_RESULT($WANT_DVDRW_DEVICE) + + AM_CONDITIONAL([WANT_DVDRW_DEVICE], [test x"$WANT_DVDRW_DEVICE" = x"yes"]) + + # Now handle any setup for DVDRW, if we want it. + if test x"$WANT_DVDRW_DEVICE" = x"yes"; then + AC_DEFINE(WANT_DVDRW_DEVICE, [], [Compile DVD-RW driver]) + fi +])