7 # Perform the necessary checks for the DVDRW Device. If the DVDRW device should be built,
8 # WANT_DVDRW_DEVICE is DEFINEd and set up as an AM_CONDITIONAL.
10 AC_DEFUN([AMANDA_DVDRW_DEVICE], [
11 AC_ARG_ENABLE([dvdrw-device],
12 AS_HELP_STRING([--disable-dvdrw-device],
13 [disable the DVD-RW device]),
14 [ WANT_DVDRW_DEVICE=$enableval ], [ WANT_DVDRW_DEVICE=yes ])
16 AC_MSG_CHECKING([whether to include the DVD-RW device])
17 AC_MSG_RESULT($WANT_DVDRW_DEVICE)
19 AM_CONDITIONAL([WANT_DVDRW_DEVICE], [test x"$WANT_DVDRW_DEVICE" = x"yes"])
21 # Now handle any setup for DVDRW, if we want it.
22 if test x"$WANT_DVDRW_DEVICE" = x"yes"; then
23 AC_DEFINE(WANT_DVDRW_DEVICE, [], [Compile DVD-RW driver])