]> git.ipfire.org Git - thirdparty/kmod.git/blobdiff - configure.ac
kmod 20
[thirdparty/kmod.git] / configure.ac
index 30eea86153e7137d3259f46264b7f25ff40b66cb..eb0f9d1c2c2a3eb83efcd7a9508d8aa11964c2f1 100644 (file)
@@ -1,43 +1,37 @@
-AC_PREREQ(2.60)
+AC_PREREQ(2.64)
 AC_INIT([kmod],
-       [19],
+       [20],
        [linux-modules@vger.kernel.org],
        [kmod],
        [http://git.kernel.org/?p=utils/kernel/kmod/kmod.git])
 
 AC_CONFIG_SRCDIR([libkmod/libkmod.c])
+AC_CONFIG_MACRO_DIR([m4])
+AC_CONFIG_HEADERS(config.h)
 AC_CONFIG_AUX_DIR([build-aux])
-AM_INIT_AUTOMAKE([check-news foreign 1.11 silent-rules
-       tar-pax no-dist-gzip dist-xz subdir-objects color-tests parallel-tests])
-AC_PROG_CC_STDC
+
 AC_USE_SYSTEM_EXTENSIONS
 AC_SYS_LARGEFILE
-AC_CONFIG_MACRO_DIR([m4])
-m4_ifndef([AM_SILENT_RULES], [m4_define([AM_SILENT_RULES],[])])
-AM_SILENT_RULES([yes])
-LT_INIT([disable-static pic-only])
 AC_PREFIX_DEFAULT([/usr])
 AM_MAINTAINER_MODE([enable])
+AM_INIT_AUTOMAKE([check-news foreign 1.11 silent-rules tar-pax no-dist-gzip dist-xz subdir-objects color-tests parallel-tests])
+AM_SILENT_RULES([yes])
+LT_INIT([disable-static pic-only])
 
-AS_IF([test "x$enable_static" = "xyes"],
-      [AC_MSG_ERROR([--enable-static is not supported by kmod])])
-
+AS_IF([test "x$enable_static" = "xyes"], [AC_MSG_ERROR([--enable-static is not supported by kmod])])
+AS_IF([test "x$enable_largefile" = "xno"], [AC_MSG_ERROR([--disable-largefile is not supported by kmod])])
 
 #####################################################################
 # Program checks and configurations
 #####################################################################
 
-AC_PROG_CC
-AC_PROG_CC_C99
-AM_PROG_CC_C_O
-AC_PROG_GCC_TRADITIONAL
-AC_C_BIGENDIAN
-
 AC_PROG_SED
 AC_PROG_MKDIR_P
+AC_PROG_LN_S
 PKG_PROG_PKG_CONFIG
 AC_PATH_PROG([XSLTPROC], [xsltproc])
 
+AC_PROG_CC_C99
 
 #####################################################################
 # Function and structure checks
@@ -49,6 +43,8 @@ AC_CHECK_FUNCS_ONCE([finit_module])
 
 CC_CHECK_FUNC_BUILTIN([__builtin_clz])
 CC_CHECK_FUNC_BUILTIN([__builtin_types_compatible_p])
+CC_CHECK_FUNC_BUILTIN([__builtin_uaddl_overflow], [ ], [ ])
+CC_CHECK_FUNC_BUILTIN([__builtin_uaddll_overflow], [ ], [ ])
 
 # dietlibc doesn't have st.st_mtim struct member
 AC_CHECK_MEMBERS([struct stat.st_mtim], [], [], [#include <sys/stat.h>])
@@ -69,6 +65,14 @@ AC_COMPILE_IFELSE(
         AC_MSG_RESULT([yes])],
        [AC_MSG_RESULT([no])])
 
+AC_MSG_CHECKING([whether _Noreturn is supported])
+AC_COMPILE_IFELSE(
+       [AC_LANG_SOURCE([[_Noreturn int foo(void) { exit(0); }]])],
+        [AC_DEFINE([HAVE_NORETURN], [1], [Define if _Noreturn is available])
+        AC_MSG_RESULT([yes])],
+       [AC_MSG_RESULT([no])])
+
+
 #####################################################################
 # --with-
 #####################################################################
@@ -242,7 +246,6 @@ AC_SUBST([OUR_LDFLAGS], $with_ldflags)
 # Generate files from *.in
 #####################################################################
 
-AC_CONFIG_HEADERS(config.h)
 AC_CONFIG_FILES([
        Makefile
        man/Makefile