Imported Upstream version 3.1.0
[debian/amanda] / config / amanda / defaults.m4
index 8076f279124d6f6615f8ece17c96cd5855f53a71..343fc00881382fbb7c00a94c6f22992e1427df9e 100644 (file)
@@ -9,8 +9,6 @@
 #          define and substitute DEFAULT_TAPE_SERVER
 #      --with-tape-device
 #          define and substitute DEFAULT_TAPE_DEVICE; substitue EXAMPLE_TAPEDEV
-#      --with-changer-device
-#          define and substitute DEFAULT_CHANGER_DEVICE
 #      --with-amandates
 #          define and substitute DEFAULT_AMANDATES_FILE
 #
@@ -101,29 +99,12 @@ AC_DEFUN([AMANDA_SETUP_DEFAULTS],
 
     AC_ARG_WITH(changer-device,
        AS_HELP_STRING([--with-changer-device=DEV],
-           [default tape changer device (default: /dev/ch0)]),
+           [(deprecated)]),
        [
-           case "$withval" in
-           "" | y | ye | yes | n | no)
-               AC_MSG_ERROR([*** You must supply an argument to the --with-changer-device option.])
-             ;;
-           *) DEFAULT_CHANGER_DEVICE="$withval"
-             ;;
-           esac
+            AMANDA_MSG_WARN([--with-changer-device is no longer used.])
        ]
     )
 
-    if test -z "$DEFAULT_CHANGER_DEVICE"; then
-       DEFAULT_CHANGER_DEVICE=/dev/null
-       if test -f /dev/ch0; then
-           DEFAULT_CHANGER_DEVICE=/dev/ch0
-       fi
-    fi
-
-    AC_DEFINE_UNQUOTED(DEFAULT_CHANGER_DEVICE,"$DEFAULT_CHANGER_DEVICE",
-       [This is the default changer device. ])
-    AC_SUBST(DEFAULT_CHANGER_DEVICE)
-
     AC_ARG_WITH(amandates,
         AS_HELP_STRING([--with-amandates],
             [default location for 'amandates' (default: $localstatedir/amanda/amandates)]),
@@ -141,7 +122,7 @@ AC_DEFUN([AMANDA_SETUP_DEFAULTS],
         [Default location for 'amandates'])
 
     DEFAULT_FSF_AFTER_FILEMARK="FALSE"
-    case "$target" in
+    case "$host" in
        *-solaris*) DEFAULT_FSF_AFTER_FILEMARK="TRUE"
                    ;;
     esac