0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-24 14:34:00 +01:00

configure: Move header check macro to tools/m4.

This commit is contained in:
Jason Volk 2023-01-26 12:29:31 -08:00
parent 28dbaf459d
commit 12756d3737
2 changed files with 14 additions and 14 deletions

View file

@ -1142,20 +1142,6 @@ dnl
dnl Header files
dnl
AC_DEFUN([RB_CHK_SYSHEADER],
[
if test -z "$rb_have_sysheader_$2"; then
AC_CHECK_HEADER([$1],
[
rb_have_sysheader_$2=1;
AC_DEFINE([HAVE_$2], [1], [ Indication $1 is available. ])
RB_DEFINE_UNQUOTED([INC_$2], [$1>], [ The computed-include location of $1. ])
], [
RB_DEFINE_UNQUOTED([INC_$2], [stddef.h>], [ The dead-header in place of $1. ])
])
fi
])
AC_HEADER_STDBOOL
dnl AC_HEADER_STDC

View file

@ -51,3 +51,17 @@ AC_DEFUN([AM_COND_IF_NAND],
AM_COND_IF([$2], [], [$3])
])
])
AC_DEFUN([RB_CHK_SYSHEADER],
[
if test -z "$rb_cv_header_have_$2"; then
AC_CHECK_HEADER([$1],
[
rb_cv_header_have_$2=1;
AC_DEFINE([HAVE_$2], [1], [ Indication $1 is available. ])
RB_DEFINE_UNQUOTED([INC_$2], [$1>], [ The computed-include location of $1. ])
], [
RB_DEFINE_UNQUOTED([INC_$2], [stddef.h>], [ The dead-header in place of $1. ])
])
fi
])