diff options
author | kientzle <kientzle@FreeBSD.org> | 2004-08-08 01:30:30 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2004-08-08 01:30:30 +0000 |
commit | 92956ea0cd6a94375374708ae3ac9ef76311b0ca (patch) | |
tree | 6f2e64886cea54491b3dc8f0d4a8eb20ab687496 | |
parent | fac40a85c6097df76912e85c1f8d14103f00c28f (diff) | |
download | FreeBSD-src-92956ea0cd6a94375374708ae3ac9ef76311b0ca.zip FreeBSD-src-92956ea0cd6a94375374708ae3ac9ef76311b0ca.tar.gz |
Minor portability fixes. bsdtar now compiles on Win32/cygwin, though
it doesn't yet seem to work entirely correctly.
-rw-r--r-- | usr.bin/tar/configure.ac.in | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/usr.bin/tar/configure.ac.in b/usr.bin/tar/configure.ac.in index d93c3ac..024e21f 100644 --- a/usr.bin/tar/configure.ac.in +++ b/usr.bin/tar/configure.ac.in @@ -1,8 +1,8 @@ # $FreeBSD$ # Process this file with autoconf to produce a configure script. -AC_INIT(bsdtar, 1.00, kientzle@freebsd.org) -AM_INIT_AUTOMAKE(bsdtar, 1.00) +AC_INIT(bsdtar, @VERSION@, kientzle@freebsd.org) +AM_INIT_AUTOMAKE(bsdtar, @VERSION@) AC_CONFIG_SRCDIR([bsdtar.c]) AM_CONFIG_HEADER([config.h]) @@ -25,6 +25,7 @@ AC_TYPE_UID_T AC_TYPE_MODE_T AC_TYPE_OFF_T AC_TYPE_SIZE_T +AC_CHECK_TYPE(id_t, [unsigned long]) AC_CHECK_MEMBERS([struct stat.st_rdev, struct stat.st_mtimespec.tv_nsec, struct stat.st_mtim.tv_nsec]) AC_CHECK_DECL([D_MD_ORDER], [AC_DEFINE(HAVE_D_MD_ORDER, 1, [D_MD_ORDER is a valid argument to nl_langinfo])], @@ -46,6 +47,21 @@ AC_CHECK_TYPE([uintmax_t]) AC_CHECK_TYPE([unsigned long long]) AC_CHECK_FUNCS([chflags fchdir ftruncate getopt_long memmove memset nl_langinfo setlocale strchr strdup strerror strrchr sys/acl.h]) +# +# If any of the common 64-bit types is defined, set "int64_t" +# +AC_CHECK_TYPE(__int64_t, [long long]) +AC_CHECK_TYPE(_int64_t, [__int64_t]) +AC_CHECK_TYPE(int64_t, [_int64_t]) + +# +# If any of the common 64-bit unsigned types is defined, set "uint64_t" +# +AC_CHECK_TYPE(__uint64_t, [unsigned long long]) +AC_CHECK_TYPE(_uint64_t, [__uint64_t]) +AC_CHECK_TYPE(u_int64_t, [_uint64_t]) +AC_CHECK_TYPE(uint64_t, [u_int64_t]) + #define HAVE_CHFLAGS 1 # Additional requirements |