2020-11-27 04:28:13 -05:00
|
|
|
AC_PREREQ([2.68])
|
2020-11-27 05:33:23 -05:00
|
|
|
AC_INIT([libkernaux],
|
|
|
|
[0.0.0],
|
|
|
|
[https://github.com/kernelmq/libkernaux/issues],
|
|
|
|
[libkernaux],
|
|
|
|
[https://github.com/kernelmq/libkernaux])
|
2020-11-27 04:28:13 -05:00
|
|
|
|
2020-12-06 23:42:52 -05:00
|
|
|
AC_CONFIG_HEADERS([config.h])
|
2020-11-27 04:28:13 -05:00
|
|
|
AC_CONFIG_SRCDIR([src/pfa.c])
|
|
|
|
|
2020-11-29 23:13:13 -05:00
|
|
|
AC_CANONICAL_HOST
|
2020-11-29 22:27:43 -05:00
|
|
|
|
2020-12-05 19:23:07 -05:00
|
|
|
AC_ARG_ENABLE([cmdline], AS_HELP_STRING([--disable-cmdline], [disable command line parser]))
|
|
|
|
AC_ARG_ENABLE([console], AS_HELP_STRING([--disable-console], [disable serial console]))
|
|
|
|
AC_ARG_ENABLE([multiboot2], AS_HELP_STRING([--disable-multiboot2], [disable Multiboot 2 information parser]))
|
|
|
|
AC_ARG_ENABLE([pfa], AS_HELP_STRING([--disable-pfa], [disable Page Frame Allocator]))
|
|
|
|
|
2020-12-06 23:27:19 -05:00
|
|
|
AM_CONDITIONAL([ARCH_X86], [test "$host_cpu" = x86])
|
2020-12-06 23:37:16 -05:00
|
|
|
AM_CONDITIONAL([ARCH_X86_64], [test "$host_cpu" = x86_64])
|
2020-12-06 23:27:19 -05:00
|
|
|
AM_CONDITIONAL([ENABLE_CMDLINE], [test "$enable_cmdline" != no])
|
|
|
|
AM_CONDITIONAL([ENABLE_CONSOLE], [test "$enable_console" != no])
|
|
|
|
AM_CONDITIONAL([ENABLE_MULTIBOOT2], [test "$enable_multiboot2" != no])
|
|
|
|
AM_CONDITIONAL([ENABLE_PFA], [test "$enable_pfa" != no])
|
|
|
|
|
|
|
|
AS_IF([test "$host_cpu" = x86], [AC_DEFINE([ARCH_X86], [1], [architecture is x86])])
|
2020-12-06 23:37:16 -05:00
|
|
|
AS_IF([test "$host_cpu" = x86_64], [AC_DEFINE([ARCH_X86_64], [1], [architecture is x86_64])])
|
2020-12-06 23:27:19 -05:00
|
|
|
AS_IF([test "$enable_cmdline" != no], [AC_DEFINE([ENABLE_CMDLINE], [1], [enabled command line parser])])
|
|
|
|
AS_IF([test "$enable_console" != no], [AC_DEFINE([ENABLE_CONSOLE], [1], [enabled serial console])])
|
|
|
|
AS_IF([test "$enable_multiboot2" != no], [AC_DEFINE([ENABLE_MULTIBOOT2], [1], [enabled Multiboot 2 information parser])])
|
|
|
|
AS_IF([test "$enable_pfa" != no], [AC_DEFINE([ENABLE_PFA], [1], [enabled Page Frame Allocator])])
|
2020-11-29 22:27:43 -05:00
|
|
|
|
2020-11-27 04:28:13 -05:00
|
|
|
AM_INIT_AUTOMAKE([1.9 subdir-objects -Wall -Werror])
|
|
|
|
|
|
|
|
AC_CONFIG_FILES([
|
|
|
|
Makefile
|
2020-11-27 05:29:53 -05:00
|
|
|
include/Makefile
|
2020-11-27 04:28:13 -05:00
|
|
|
])
|
|
|
|
|
|
|
|
AC_LANG([C])
|
|
|
|
|
2020-11-27 05:33:23 -05:00
|
|
|
AM_PROG_AR
|
2020-11-27 06:00:34 -05:00
|
|
|
AM_PROG_AS
|
2020-11-27 04:28:13 -05:00
|
|
|
AC_PROG_CC
|
2020-11-27 08:43:58 -05:00
|
|
|
AC_PROG_CC_C99
|
2020-11-27 04:28:13 -05:00
|
|
|
AC_PROG_RANLIB
|
2020-12-05 23:04:02 -05:00
|
|
|
AC_C_INLINE
|
2020-12-06 05:27:55 -05:00
|
|
|
AC_CHECK_HEADER_STDBOOL
|
2020-12-06 16:37:53 -05:00
|
|
|
AC_CHECK_HEADERS([stdarg.h stddef.h])
|
2020-11-27 04:28:13 -05:00
|
|
|
|
|
|
|
AC_OUTPUT
|