summaryrefslogtreecommitdiff
path: root/archivers/pax
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2003-09-06 05:10:17 +0000
committergrant <grant@pkgsrc.org>2003-09-06 05:10:17 +0000
commit681a16b4f3e197ac807c59eca0c59384fa2c560e (patch)
tree5ce27cbd9aacee2d6a7cef310a26e811c46df998 /archivers/pax
parent5e2af4585efeb95cb5f57ddd2c67d6f50af6f1f5 (diff)
downloadpkgsrc-681a16b4f3e197ac807c59eca0c59384fa2c560e.tar.gz
(my) linux defines DEFTAPE, not _PATH_DEFTAPE, so use that or
"/dev/tape" if DEFTAPE is undefined.
Diffstat (limited to 'archivers/pax')
-rw-r--r--archivers/pax/files/config.h.in10
-rwxr-xr-xarchivers/pax/files/configure3
-rw-r--r--archivers/pax/files/configure.ac10
3 files changed, 23 insertions, 0 deletions
diff --git a/archivers/pax/files/config.h.in b/archivers/pax/files/config.h.in
index aaf8d763fc2..a867aeb4c77 100644
--- a/archivers/pax/files/config.h.in
+++ b/archivers/pax/files/config.h.in
@@ -89,3 +89,13 @@
/* Define to 1 if you have the ANSI C header files. */
#undef STDC_HEADERS
+
+
+#ifndef _PATH_DEFTAPE
+# ifdef DEFTAPE
+# define _PATH_DEFTAPE DEFTAPE
+# else
+# define _PATH_DEFTAPE "/dev/tape"
+# endif /* DEFTAPE */
+#endif /* _PATH_DEFTAPE */
+
diff --git a/archivers/pax/files/configure b/archivers/pax/files/configure
index d4d30c3bd28..25242dfad9c 100755
--- a/archivers/pax/files/configure
+++ b/archivers/pax/files/configure
@@ -3176,6 +3176,9 @@ fi
done
+
+
+
ac_config_files="$ac_config_files Makefile"
cat >confcache <<\_ACEOF
diff --git a/archivers/pax/files/configure.ac b/archivers/pax/files/configure.ac
index ca250dca5f6..2a335b8d4d8 100644
--- a/archivers/pax/files/configure.ac
+++ b/archivers/pax/files/configure.ac
@@ -20,5 +20,15 @@ AC_CHECK_HEADERS([sys/ioctl.h sys/mtio.h sys/resource.h sys/uio.h sys/wait.h])
# Checks for library functions.
AC_CHECK_FUNCS([getrlimit setrlimit])
+AH_BOTTOM([
+#ifndef _PATH_DEFTAPE
+# ifdef DEFTAPE
+# define _PATH_DEFTAPE DEFTAPE
+# else
+# define _PATH_DEFTAPE "/dev/tape"
+# endif /* DEFTAPE */
+#endif /* _PATH_DEFTAPE */
+])
+
AC_CONFIG_FILES([Makefile])
AC_OUTPUT