From 16ba8d58938f521e2452874fa84a8dff361be440 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 27 Oct 2011 12:08:01 +0200 Subject: build-sys: cleanup BUILD_RAW Signed-off-by: Karel Zak --- configure.ac | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 8caeac66d..5ec5f9de5 100644 --- a/configure.ac +++ b/configure.ac @@ -151,11 +151,12 @@ AC_CHECK_HEADERS( sys/un.h \ sys/user.h \ sys/resource.h \ + linux/raw.h \ unistd.h ]) -AC_CHECK_HEADERS([linux/raw.h], - [AM_CONDITIONAL([HAVE_RAW], [true])], - [AM_CONDITIONAL([HAVE_RAW], [false])]) +dnl Convert some ac_cv_header_* variables to have_* +dnl +have_linux_raw_h=$ac_cv_header_linux_raw_h AC_CHECK_HEADERS([langinfo.h], [AM_CONDITIONAL([HAVE_LANGINFO], [true])], @@ -970,9 +971,12 @@ AM_CONDITIONAL(BUILD_MESG, test "x$enable_mesg" = xyes) AC_ARG_ENABLE([raw], AS_HELP_STRING([--enable-raw], [build raw]), - [], enable_raw=no + [], enable_raw=check ) -AM_CONDITIONAL(BUILD_RAW, test "x$enable_raw" = xyes) +build_raw=yes +UL_REQUIRES_LINUX([raw]) +UL_REQUIRES_HAVE([raw], [linux_raw_h], [raw.h header file]) +AM_CONDITIONAL(BUILD_RAW, test "x$build_raw" = xyes) AC_ARG_ENABLE([rename], -- cgit v1.2.3-55-g7522