1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134
|
From: Ole Streicher <ole@aip.de>
Date: Fri, 6 Dec 2024 14:10:19 +0100
Subject: Update configure.ac for newer build system
---
xar/configure.ac | 44 ++++++++++++++++++++++----------------------
1 file changed, 22 insertions(+), 22 deletions(-)
diff --git a/xar/configure.ac b/xar/configure.ac
index e36ffa4..7166dd5 100644
--- a/xar/configure.ac
+++ b/xar/configure.ac
@@ -1,4 +1,4 @@
-AC_PREREQ(2.59)
+AC_PREREQ([2.72])
AC_INIT([Xar], [1.8dev], [xar-devel@googlegroups.com], [xar])
AC_CONFIG_SRCDIR([LICENSE])
@@ -95,7 +95,7 @@ dnl Some libtool envy
#AC_ENABLE_SHARED
AC_MSG_CHECKING([whether to build shared libraries])
AC_ARG_ENABLE([shared],
- [AC_HELP_STRING([--enable-shared],
+ [AS_HELP_STRING([--enable-shared],
[build shared libraries @<:@default=yes@:>@])],
[shared=$enableval],[shared=yes])
AC_MSG_RESULT($shared)
@@ -103,7 +103,7 @@ AC_SUBST([shared])
#AC_ENABLE_STATIC
AC_MSG_CHECKING([whether to build static libraries])
AC_ARG_ENABLE([static],
- [AC_HELP_STRING([--enable-static],
+ [AS_HELP_STRING([--enable-static],
[build static libraries @<:@default=yes@:>@])],
[static=$enableval],[static=yes])
AC_MSG_RESULT($static)
@@ -181,8 +181,8 @@ fi
)
AC_SUBST([enable_autogen])
-AC_TRY_COMPILE([#include <sys/types.h>
-#include <sys/acl.h>], [acl_t a], [AC_DEFINE([HAVE_SYS_ACL_H],[1], [define if you have sys/acl.h and it has a working acl_t type])])
+AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h>
+#include <sys/acl.h>]], [[acl_t a]])],[AC_DEFINE([HAVE_SYS_ACL_H],[1], [define if you have sys/acl.h and it has a working acl_t type])],[])
AC_CHECK_HEADERS(ext2fs/ext2_fs.h sys/statfs.h sys/vfs.h sys/xattr.h sys/param.h sys/extattr.h libutil.h)
AC_CHECK_FUNCS(lgetxattr)
AC_CHECK_FUNCS(lsetxattr)
@@ -223,21 +223,21 @@ if test $ac_cv_sizeof_uid_t = "4"; then
AC_DEFINE(UID_STRING, RId32)
AC_DEFINE(UID_CAST, (uint32_t))
elif test $ac_cv_sizeof_uid_t = "8"; then
-AC_DEFINE(UID_STRING, PRId64)
-AC_DEFINE(UID_CAST, (uint64_t))
+AC_DEFINE(UID_STRING, PRId64, [ ])
+AC_DEFINE(UID_CAST, (uint64_t), [ ])
else
-AC_ERROR(can not detect the size of your system's uid_t type)
+AC_MSG_ERROR(can not detect the size of your system's uid_t type)
fi
AC_CHECK_SIZEOF(gid_t)
if test $ac_cv_sizeof_gid_t = "4"; then
AC_DEFINE(GID_STRING, PRId32)
-AC_DEFINE(GID_CAST, (uint32_t))
+AC_DEFINE(GID_CAST, (uint32_t), [ ])
elif test $ac_cv_sizeof_gid_t = "8"; then
-AC_DEFINE(GID_STRING, PRId64)
+AC_DEFINE(GID_STRING, PRId64, [ ])
AC_DEFINE(GID_CAST, (uint64_t))
else
-AC_ERROR(can not detect the size of your system's gid_t type)
+AC_MSG_ERROR(can not detect the size of your system's gid_t type)
fi
AC_CHECK_SIZEOF(ino_t)
@@ -246,24 +246,24 @@ AC_DEFINE(INO_STRING, PRId32)
AC_DEFINE(INO_HEXSTRING, PRIx32)
AC_DEFINE(INO_CAST, (uint32_t))
elif test $ac_cv_sizeof_ino_t = "8"; then
-AC_DEFINE(INO_STRING, PRId64)
-AC_DEFINE(INO_HEXSTRING, PRIx64)
-AC_DEFINE(INO_CAST, (uint64_t))
+AC_DEFINE(INO_STRING, PRId64, [ ])
+AC_DEFINE(INO_HEXSTRING, PRIx64, [ ])
+AC_DEFINE(INO_CAST, (uint64_t), [ ])
else
-AC_ERROR(can not detect the size of your system's ino_t type)
+AC_MSG_ERROR(can not detect the size of your system's ino_t type)
fi
AC_CHECK_SIZEOF(dev_t)
if test $ac_cv_sizeof_dev_t = "4"; then
AC_DEFINE(DEV_STRING, PRId32)
AC_DEFINE(DEV_HEXSTRING, PRIx32)
-AC_DEFINE(DEV_CAST, (uint32_t))
+AC_DEFINE(DEV_CAST, (uint32_t), [ ])
elif test $ac_cv_sizeof_dev_t = "8"; then
-AC_DEFINE(DEV_STRING, PRId64)
-AC_DEFINE(DEV_HEXSTRING, PRIx64)
+AC_DEFINE(DEV_STRING, PRId64, [ ])
+AC_DEFINE(DEV_HEXSTRING, PRIx64, [ ])
AC_DEFINE(DEV_CAST, (uint64_t))
else
-AC_ERROR(can not detect the size of your system's dev_t type)
+AC_MSG_ERROR(can not detect the size of your system's dev_t type)
fi
AC_CHECK_LIB(acl, acl_get_file)
@@ -271,7 +271,7 @@ AC_CHECK_LIB(acl, acl_get_file)
dnl Check for paths
AC_PREFIX_DEFAULT(/usr/local)
-AC_CHECK_FUNC([asprintf], AC_DEFINE([HAVE_ASPRINTF]))
+AC_CHECK_FUNC([asprintf], AC_DEFINE([HAVE_ASPRINTF], [], [ ]))
dnl
dnl Configure libxml2.
@@ -371,14 +371,14 @@ have_libpthread="1"
AC_CHECK_HEADERS([pthread.h], , [have_pthread="0"])
AC_CHECK_LIB([pthread], [pthread_mutex_lock], , [have_pthread="0"])
if test "x${have_pthread}" = "x1" ; then
- AC_DEFINE([HAVE_PTHREAD])
+ AC_DEFINE([HAVE_PTHREAD], [], [ ])
fi
dnl
dnl Process .in files.
dnl
AC_SUBST([cfghdrs])
-AC_CONFIG_HEADER([$cfghdrs])
+AC_CONFIG_HEADERS([$cfghdrs])
AC_SUBST([cfgoutputs])
AC_CONFIG_FILES([$cfgoutputs])
|