summaryrefslogtreecommitdiffstats
path: root/usr.bin/tar/configure.ac.in
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/tar/configure.ac.in')
-rw-r--r--usr.bin/tar/configure.ac.in53
1 files changed, 53 insertions, 0 deletions
diff --git a/usr.bin/tar/configure.ac.in b/usr.bin/tar/configure.ac.in
new file mode 100644
index 0000000..7d21439
--- /dev/null
+++ b/usr.bin/tar/configure.ac.in
@@ -0,0 +1,53 @@
+# $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_CONFIG_SRCDIR([bsdtar.c])
+AM_CONFIG_HEADER([config.h])
+
+# Checks for programs.
+AC_PROG_CC
+
+# Checks for header files.
+AC_HEADER_DIRENT
+AC_HEADER_STDC
+AC_CHECK_HEADERS([bzlib.h fcntl.h inttypes.h langinfo.h limits.h locale.h paths.h stdint.h stdlib.h string.h sys/acl.h sys/ioctl.h sys/param.h unistd.h zlib.h])
+
+# Checks for libraries.
+AC_CHECK_LIB([z], [inflate])
+AC_CHECK_LIB([bz2], [BZ2_bzDecompressInit])
+AC_CHECK_LIB([archive], [archive_version])
+
+# Checks for typedefs, structures, and compiler characteristics.
+AC_C_CONST
+AC_TYPE_UID_T
+AC_TYPE_MODE_T
+AC_TYPE_OFF_T
+AC_TYPE_SIZE_T
+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])],
+ [],
+ [#include <langinfo.h>])
+
+# Checks for library functions.
+AC_FUNC_FNMATCH
+AC_PROG_GCC_TRADITIONAL
+AC_FUNC_LSTAT
+AC_HEADER_MAJOR
+AC_FUNC_MALLOC
+AC_FUNC_STAT
+AC_FUNC_STRFTIME
+AC_FUNC_VPRINTF
+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])
+
+#define HAVE_CHFLAGS 1
+
+# Additional requirements
+AC_SYS_LARGEFILE
+
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT
OpenPOWER on IntegriCloud