[PATCH 06/18] Requiring C99 inline.
Alejandro Colomar
alx.manpages at gmail.com
Thu Jun 2 18:05:00 UTC 2022
Abort configuration if inline will be handled in GNU mode.
---
auto/clang | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/auto/clang b/auto/clang
index 3ea5f65..229cef7 100644
--- a/auto/clang
+++ b/auto/clang
@@ -6,6 +6,28 @@
# C language features.
+nxt_feature='C99 inline'
+nxt_feature_name=
+nxt_feature_run=
+nxt_feature_incs=
+nxt_feature_libs=
+nxt_feature_test='#if defined(__GNUC_GNU_INLINE__)
+ #error C99 inline not available
+ #endif
+
+ int main() {
+ return 0;
+ }'
+. auto/feature
+
+if [ $nxt_found = no ]; then
+ $echo
+ $echo $0: error: no C99 inline.
+ $echo
+ exit 1;
+fi
+
+
nxt_feature="C99 variadic macro"
nxt_feature_name=NXT_HAVE_C99_VARIADIC_MACRO
nxt_feature_run=yes
--
2.36.1
More information about the unit
mailing list