diff --git a/README.md b/README.md index 0ba625e..f95170c 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,23 @@ Configure with cross-compiler in `$PATH` to make without it in `$PATH`: CFLAGS='-ffreestanding -nostdlib -fno-builtin -fno-stack-protector' ``` +When configuring with cross-compiler you can see the following messages. It's +a bug in **autoconf**, just ignore it. + +``` +checking for _Bool... no +checking stddef.h usability... no +checking stddef.h presence... yes +configure: WARNING: stddef.h: present but cannot be compiled +configure: WARNING: stddef.h: check for missing prerequisite headers? +configure: WARNING: stddef.h: see the Autoconf documentation +configure: WARNING: stddef.h: section "Present But Cannot Be Compiled" +configure: WARNING: stddef.h: proceeding with the compiler's result +configure: WARNING: ## ------------------------------------------------------------ ## +configure: WARNING: ## Report this to https://github.com/kernelmq/libkernaux/issues ## +configure: WARNING: ## ------------------------------------------------------------ ## +``` + To install into specific directory use full path: `DESTDIR="$(pwd)/dest" make install` instead of `DESTDIR=dest make install`. diff --git a/configure.ac b/configure.ac index f4a4608..6c1a151 100644 --- a/configure.ac +++ b/configure.ac @@ -42,5 +42,7 @@ AC_PROG_CC AC_PROG_CC_C99 AC_PROG_RANLIB AC_C_INLINE +AC_CHECK_HEADER_STDBOOL +AC_CHECK_HEADERS([stddef.h]) AC_OUTPUT