From 5a886e2fc5f4b3f062a20f66ee68bad4a0b98ad1 Mon Sep 17 00:00:00 2001 From: Gaetan Nadon Date: Wed, 19 Jan 2011 11:20:21 -0500 Subject: config: use AC_CHECK_MEMBERS rather than AC_CHECK_MEMBER Let Autoconf do the work of setting up the #define in config.h. Apply and comment standard sections layout. Reviewed-by: Alan Coopersmith Signed-off-by: Gaetan Nadon --- configure.ac | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index f3c9f4e..c7e5e90 100644 --- a/configure.ac +++ b/configure.ac @@ -42,17 +42,14 @@ XORG_WITH_LINT # Checks for header files. AC_CHECK_HEADERS([lastlog.h utmp.h utmpx.h sys/param.h]) -AC_CHECK_MEMBER([struct utmpx.ut_syslen], - HAVE_SYSLEN=1, - HAVE_SYSLEN=0, - [#include ]) -AC_DEFINE_UNQUOTED(HAVE_UTMPX_UT_SYSLEN,$HAVE_SYSLEN, - [utmpx structure includes ut_syslen field]) # Checks for typedefs, structures, and compiler characteristics. +AC_CHECK_MEMBERS([struct utmpx.ut_syslen], [], [], [#include ]) + +# Checks for library functions. AC_CHECK_FUNCS([updwtmpx utmpxname]) -# Checks for pkg-config packages +# Obtain compiler/linker options for depedencies PKG_CHECK_MODULES(SESSREG, xproto) AC_CONFIG_FILES([ -- cgit v1.2.3