0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-27 19:28:52 +02:00

configure: Invocations of RB_CHK_SYSHEADER are no-op after first success.

This commit is contained in:
Jason Volk 2019-02-18 15:44:59 -08:00
parent e8f8008ea9
commit 2935d35f7d

View file

@ -616,13 +616,16 @@ dnl
AC_DEFUN([RB_CHK_SYSHEADER], AC_DEFUN([RB_CHK_SYSHEADER],
[ [
AC_CHECK_HEADER([$1], if test -z "$rb_have_sysheader_$2"; then
[ AC_CHECK_HEADER([$1],
AC_DEFINE([HAVE_$2], [1], [ Indication $1 is available. ]) [
RB_DEFINE_UNQUOTED([INC_$2], [$1>], [ The computed-include location of $1. ]) rb_have_sysheader_$2=1;
], [ AC_DEFINE([HAVE_$2], [1], [ Indication $1 is available. ])
RB_DEFINE_UNQUOTED([INC_$2], [stddef.h>], [ The dead-header in place of $1. ]) 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 AC_HEADER_STDBOOL