Imported Upstream version 3.1.0
[debian/amanda] / config / amanda / tape.m4
index 09c92f410c2ea4c02dd42234d47b49f18ab07d8d..896bfaf6ddbf4e556fdea981b2435eeaa8973896 100644 (file)
@@ -57,7 +57,7 @@ AC_DEFUN([AMANDA_TAPE_DEVICE], [
 
     # decide which tape device to compile (arranged in such a way that
     # only one actually gets compiled)
-    case "$target" in
+    case "$host" in
       *-ibm-aix*) aix_tapeio=yes ;;
       *-sysv4.2uw2*) uware_tapeio=yes ;;
       *-sco3.2v5*) xenix_tapeio=yes ;;
@@ -185,7 +185,7 @@ AC_DEFUN([AMANDA_TAPE_DEVICE], [
            AC_MSG_RESULT(no)
        ])
 
-    case "$target" in
+    case "$host" in
        *linux*) AC_DEFINE(DEFAULT_TAPE_NON_BLOCKING_OPEN,1,
                        [Define if open of tape device require O_NONBLOCK]);;
     esac