diff --git a/src/gui/configure.json b/src/gui/configure.json index 04e42fc247..506caf6794 100644 --- a/src/gui/configure.json +++ b/src/gui/configure.json @@ -114,11 +114,16 @@ "drm": { "label": "KMS", "test": { - "include": [ "stdlib.h", "stdint.h" ], + "head": [ + "#include ", + "#include ", + "extern \"C\" {" + ], + "include": [ + "xf86drmMode.h", + "xf86drm.h" + ], "tail": [ - "extern \"C\" {", - "#include ", - "#include ", "}" ], "main": "(void) drmModeGetCrtc(0, 0);" @@ -146,8 +151,8 @@ "freetype": { "label": "FreeType", "test": { - "head": [ - "#include ", + "include": "ft2build.h", + "tail": [ "#include FT_FREETYPE_H", "#if ((FREETYPE_MAJOR*10000 + FREETYPE_MINOR*100 + FREETYPE_PATCH) < 20200)", "# error This version of freetype is too old.", @@ -165,8 +170,8 @@ "fontconfig": { "label": "Fontconfig", "test": { - "head": [ - "#include ", + "include": "fontconfig/fontconfig.h", + "tail": [ "#ifndef FC_RGBA_UNKNOWN", "# error This version of fontconfig is tool old, it is missing the FC_RGBA_UNKNOWN define", "#endif" @@ -184,10 +189,13 @@ "gbm": { "label": "GBM", "test": { - "include": [ "stdlib.h", "stdint.h" ], + "head": [ + "#include ", + "#include ", + "extern \"C\" {" + ], + "include": "gbm.h", "tail": [ - "extern \"C\" {", - "#include ", "}" ], "main": "gbm_surface *surface = 0;" @@ -252,7 +260,11 @@ "integrityhid": { "label": "integrityhid", "test": { - "include": [ "stdlib.h", "stdint.h", "device/hiddriver.h" ], + "head": [ + "#include ", + "#include " + ], + "include": "device/hiddriver.h", "main": [ "HIDDriver *driver;", "uintptr_t devicecontext;", @@ -267,10 +279,13 @@ "libjpeg": { "label": "libjpeg", "test": { - "include": [ "sys/types.h", "stdio.h" ], + "head": [ + "#include ", + "#include ", + "extern \"C\" {" + ], + "include": "jpeglib.h", "tail": [ - "extern \"C\" {", - "#include ", "}", "", "j_compress_ptr cinfo;" @@ -393,13 +408,15 @@ "v4l2": { "label": "V4L2", "test": { + "head": [ + "#include ", + "extern \"C\" {" + ], "include": [ - "cstddef" + "mediactl/mediactl.h", + "mediactl/v4l2subdev.h" ], "tail": [ - "extern \"C\" {", - "#include ", - "#include ", "}" ], "main": [