[libvirt] [PATCH 1/7] configure: split common header and function checks

Ján Tomko jtomko at redhat.com
Tue Sep 25 15:23:44 UTC 2018


Use one line per entry, to work better with line-based git history.

Signed-off-by: Ján Tomko <jtomko at redhat.com>
---
 configure.ac | 56 +++++++++++++++++++++++++++++++++++++++++++++++---------
 1 file changed, 47 insertions(+), 9 deletions(-)

diff --git a/configure.ac b/configure.ac
index 1b5c56b1a9..f23faf8b8f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -322,17 +322,55 @@ AC_CHECK_SIZEOF([long])
 
 dnl Availability of various common functions (non-fatal if missing),
 dnl and various less common threadsafe functions
-AC_CHECK_FUNCS_ONCE([cfmakeraw fallocate geteuid getgid getgrnam_r \
-  getmntent_r getpwuid_r getrlimit getuid if_indextoname kill mmap \
-  newlocale posix_fallocate posix_memalign prlimit regexec \
-  sched_getaffinity setgroups setns setrlimit symlink sysctlbyname \
-  getifaddrs sched_setscheduler unshare])
+AC_CHECK_FUNCS_ONCE([\
+  cfmakeraw \
+  fallocate \
+  geteuid \
+  getgid \
+  getgrnam_r \
+  getmntent_r \
+  getpwuid_r \
+  getrlimit \
+  getuid \
+  if_indextoname \
+  kill \
+  mmap \
+  newlocale \
+  posix_fallocate \
+  posix_memalign \
+  prlimit \
+  regexec \
+  sched_getaffinity \
+  setgroups \
+  setns \
+  setrlimit \
+  symlink \
+  sysctlbyname \
+  getifaddrs \
+  sched_setscheduler \
+  unshare \
+  ])
 
 dnl Availability of various common headers (non-fatal if missing).
-AC_CHECK_HEADERS([pwd.h regex.h sys/un.h \
-  sys/poll.h syslog.h mntent.h net/ethernet.h linux/magic.h \
-  sys/un.h sys/syscall.h sys/sysctl.h netinet/tcp.h ifaddrs.h \
-  libtasn1.h sys/ucred.h sys/mount.h stdarg.h])
+AC_CHECK_HEADERS([\
+  pwd.h \
+  regex.h \
+  sys/un.h \
+  sys/poll.h \
+  syslog.h \
+  mntent.h \
+  net/ethernet.h \
+  linux/magic.h \
+  sys/un.h \
+  sys/syscall.h \
+  sys/sysctl.h \
+  netinet/tcp.h \
+  ifaddrs.h \
+  libtasn1.h \
+  sys/ucred.h \
+  sys/mount.h \
+  stdarg.h \
+  ])
 dnl Check whether endian provides handy macros.
 AC_CHECK_DECLS([htole64], [], [], [[#include <endian.h>]])
 AC_CHECK_FUNCS([stat stat64 __xstat __xstat64 lstat lstat64 __lxstat __lxstat64])
-- 
2.16.4




More information about the libvir-list mailing list