mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 17:14:33 +00:00
96 lines
3.1 KiB
Diff
96 lines
3.1 KiB
Diff
From a14be07c0aae3bf6f732d1ca5f625ba375702121 Mon Sep 17 00:00:00 2001
|
|
From: Andrew Childs <andrew.childs@bibo.com.ph>
|
|
Date: Sun, 15 Nov 2020 19:12:33 +0900
|
|
Subject: [PATCH 1/2] Add useless descriptions to AC_DEFINE
|
|
|
|
Removes autoheader warnings.
|
|
---
|
|
configure.ac | 42 +++++++++++++++++++++---------------------
|
|
1 file changed, 21 insertions(+), 21 deletions(-)
|
|
|
|
diff --git a/configure.ac b/configure.ac
|
|
index 812b5ff..358ab89 100644
|
|
--- a/configure.ac
|
|
+++ b/configure.ac
|
|
@@ -210,48 +210,48 @@ AC_CHECK_MEMBERS([struct stat.st_flags])
|
|
|
|
AC_CHECK_SIZEOF(uid_t)
|
|
if test $ac_cv_sizeof_uid_t = "4"; then
|
|
-AC_DEFINE(UID_STRING, RId32)
|
|
-AC_DEFINE(UID_CAST, (uint32_t))
|
|
+AC_DEFINE([UID_STRING], RId32, [UID_STRING])
|
|
+AC_DEFINE([UID_CAST], (uint32_t), [UID_CAST])
|
|
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, [UID_STRING])
|
|
+AC_DEFINE([UID_CAST], (uint64_t), [UID_CAST])
|
|
else
|
|
AC_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_STRING], PRId32, [GID_STRING])
|
|
+AC_DEFINE([GID_CAST], (uint32_t), [GID_CAST])
|
|
elif test $ac_cv_sizeof_gid_t = "8"; then
|
|
-AC_DEFINE(GID_STRING, PRId64)
|
|
-AC_DEFINE(GID_CAST, (uint64_t))
|
|
+AC_DEFINE([GID_STRING], PRId64, [GID_STRING])
|
|
+AC_DEFINE([GID_CAST], (uint64_t), [GID_CAST])
|
|
else
|
|
AC_ERROR(can not detect the size of your system's gid_t type)
|
|
fi
|
|
|
|
AC_CHECK_SIZEOF(ino_t)
|
|
if test $ac_cv_sizeof_ino_t = "4"; then
|
|
-AC_DEFINE(INO_STRING, PRId32)
|
|
-AC_DEFINE(INO_HEXSTRING, PRIx32)
|
|
-AC_DEFINE(INO_CAST, (uint32_t))
|
|
+AC_DEFINE([INO_STRING], PRId32, [INO_STRING])
|
|
+AC_DEFINE([INO_HEXSTRING], PRIx32, [INO_HEXSTRING])
|
|
+AC_DEFINE([INO_CAST], (uint32_t), [INO_CAST])
|
|
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, [INO_STRING])
|
|
+AC_DEFINE([INO_HEXSTRING], PRIx64, [INO_HEXSTRING])
|
|
+AC_DEFINE([INO_CAST], (uint64_t), [INO_CAST])
|
|
else
|
|
AC_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_STRING], PRId32, [DEV_STRING])
|
|
+AC_DEFINE([DEV_HEXSTRING], PRIx32, [DEV_HEXSTRING])
|
|
+AC_DEFINE([DEV_CAST], (uint32_t), [DEV_CAST])
|
|
elif test $ac_cv_sizeof_dev_t = "8"; then
|
|
-AC_DEFINE(DEV_STRING, PRId64)
|
|
-AC_DEFINE(DEV_HEXSTRING, PRIx64)
|
|
-AC_DEFINE(DEV_CAST, (uint64_t))
|
|
+AC_DEFINE([DEV_STRING], PRId64, [DEV_STRING])
|
|
+AC_DEFINE([DEV_HEXSTRING], PRIx64, [DEV_HEXSTRING])
|
|
+AC_DEFINE([DEV_CAST], (uint64_t), [DEV_CAST])
|
|
else
|
|
AC_ERROR(can not detect the size of your system's dev_t type)
|
|
fi
|
|
@@ -261,7 +261,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], [], [HAVE_ASPRINTF]))
|
|
|
|
dnl
|
|
dnl Configure libxml2.
|
|
--
|
|
2.28.0
|
|
|