mirror of
https://github.com/AuxXxilium/kmod.git
synced 2024-12-28 06:15:20 +07:00
62 lines
1.3 KiB
Plaintext
62 lines
1.3 KiB
Plaintext
AC_PREREQ(2.60)
|
|
AC_INIT([libkmod],
|
|
[0.1],
|
|
[],
|
|
[libkmod],
|
|
[http://git.profusion.mobi/cgit.cgi/lucas/libkmod/])
|
|
|
|
AC_CONFIG_SRCDIR([libkmod/libkmod.c])
|
|
AC_CONFIG_AUX_DIR([build-aux])
|
|
AM_INIT_AUTOMAKE([check-news foreign 1.11 -Wall -Wno-portability silent-rules tar-pax dist-bzip2 subdir-objects])
|
|
AC_PROG_CC_STDC
|
|
AC_USE_SYSTEM_EXTENSIONS
|
|
AC_SYS_LARGEFILE
|
|
AC_CONFIG_MACRO_DIR([m4])
|
|
AM_SILENT_RULES([yes])
|
|
LT_INIT([disable-static pic-only])
|
|
AC_PREFIX_DEFAULT([/usr])
|
|
|
|
AC_PROG_CC
|
|
AC_PROG_CC_C99
|
|
AC_C_TYPEOF
|
|
AM_PROG_CC_C_O
|
|
AC_PROG_GCC_TRADITIONAL
|
|
|
|
AC_ARG_ENABLE([logging],
|
|
AS_HELP_STRING([--disable-logging], [disable system logging @<:@default=enabled@:>@]),
|
|
[], enable_logging=yes)
|
|
AS_IF([test "x$enable_logging" = "xyes"], [
|
|
AC_DEFINE(ENABLE_LOGGING, [1], [System logging.])
|
|
])
|
|
|
|
AC_ARG_ENABLE([debug],
|
|
AS_HELP_STRING([--enable-debug], [enable debug messages @<:@default=disabled@:>@]),
|
|
[], [enable_debug=no])
|
|
AS_IF([test "x$enable_debug" = "xyes"], [
|
|
AC_DEFINE(ENABLE_DEBUG, [1], [Debug messages.])
|
|
])
|
|
|
|
AC_CONFIG_HEADERS(config.h)
|
|
AC_CONFIG_FILES([
|
|
Makefile
|
|
libkmod/libkmod.pc
|
|
])
|
|
|
|
AC_OUTPUT
|
|
AC_MSG_RESULT([
|
|
$PACKAGE $VERSION
|
|
========
|
|
|
|
prefix: ${prefix}
|
|
sysconfdir: ${sysconfdir}
|
|
libdir: ${libdir}
|
|
includedir: ${includedir}
|
|
|
|
compiler: ${CC}
|
|
cflags: ${CFLAGS}
|
|
ldflags: ${LDFLAGS}
|
|
|
|
logging: ${enable_logging}
|
|
debug: ${enable_debug}
|
|
])
|