"Fossies" - the Fresh Open Source Software Archive

Member "stress-ng-0.13.05/Makefile.config" (11 Oct 2021, 132665 Bytes) of package /linux/privat/stress-ng-0.13.05.tar.xz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "Makefile.config": 0.13.04_vs_0.13.05.

    1 #
    2 # Copyright (C) 2013-2021 Canonical, Ltd.
    3 #
    4 # This program is free software; you can redistribute it and/or
    5 # modify it under the terms of the GNU General Public License
    6 # as published by the Free Software Foundation; either version 2
    7 # of the License, or (at your option) any later version.
    8 #
    9 # This program is distributed in the hope that it will be useful,
   10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
   11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   12 # GNU General Public License for more details.
   13 #
   14 # You should have received a copy of the GNU General Public License
   15 # along with this program; if not, write to the Free Software
   16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
   17 #
   18 
   19 CFLAGS += -Wall -Wextra -DVERSION='"$(VERSION)"' -O2 -std=gnu99 -I.
   20 
   21 APPARMOR_PARSER=/sbin/apparmor_parser
   22 
   23 LIB_APPARMOR := -lapparmor
   24 KERNEL=$(shell uname -s)
   25 ifeq (,$(findstring $(KERNEL),Darwin DragonFly FreeBSD NetBSD OpenBSD))
   26 LIB_BSD := -lbsd
   27 endif
   28 LIB_Z := -lz
   29 LIB_CRYPT := -lcrypt
   30 LIB_RT := -lrt
   31 LIB_PTHREAD := -pthread
   32 LIB_AIO := -laio
   33 LIB_SCTP := -lsctp
   34 LIB_DL := -ldl
   35 LIB_IPSEC_MB := -lIPSec_MB
   36 LIB_JUDY := -lJudy
   37 LIB_KMOD := -lkmod
   38 LIB_ATOMIC := -latomic
   39 LIB_MATH := -lm
   40 
   41 DIR=test
   42 MAKE_OPTS=-f Makefile.config --no-print-directory HAVE_CONFIG=1
   43 
   44 #
   45 #  Load in current config; use 'make clean' to clear this
   46 #
   47 -include config
   48 
   49 CFLAGS += $(CONFIG_CFLAGS)
   50 LDFLAGS += $(CONFIG_LDFLAGS)
   51 OBJS += $(CONFIG_OBJS)
   52 
   53 #
   54 # Static flags, only to be used when using GCC
   55 #
   56 ifeq ($(STATIC),1)
   57 LDFLAGS += -static
   58 CFLAGS += -DBUILD_STATIC
   59 endif
   60 
   61 #
   62 #  Double empty line is intentional!
   63 #
   64 define newline
   65 
   66 
   67 endef
   68 
   69 using = $(info using $(2) ... $(if $(filter 1,$(1)),yes,no))
   70 check = $(info $(newline)Checking $(1):)
   71 
   72 #
   73 #  Determine the system build config
   74 #
   75 ifndef HAVE_CONFIG
   76 HAVE_CONFIG=1
   77 
   78 ifeq ($(shell uname -s),SunOS)
   79 	CONFIG_LDFLAGS += -lsocket -lnsl
   80 endif
   81 
   82 $(call check,libraries)
   83 
   84 ifndef $(HAVE_LIB_AIO)
   85 HAVE_LIB_AIO = $(shell $(MAKE) $(MAKE_OPTS) TEST_LIBS=$(LIB_AIO) TEST_PROG=test-libaio have_test_prog)
   86 ifeq ($(HAVE_LIB_AIO),1)
   87 	CONFIG_CFLAGS += -DHAVE_LIB_AIO
   88 	CONFIG_LDFLAGS += $(LIB_AIO)
   89 endif
   90 $(call using,$(HAVE_LIB_AIO),$(LIB_AIO))
   91 endif
   92 
   93 ifndef $(HAVE_LIB_BSD)
   94 HAVE_LIB_BSD = $(shell $(MAKE) $(MAKE_OPTS) TEST_LIBS=$(LIB_BSD) TEST_PROG=test-libbsd have_test_prog)
   95 ifeq ($(HAVE_LIB_BSD),1)
   96 	CONFIG_CFLAGS += -DHAVE_LIB_BSD
   97 	CONFIG_LDFLAGS += $(LIB_BSD)
   98 endif
   99 $(call using,$(HAVE_LIB_BSD),-lbsd)
  100 endif
  101 
  102 ifndef $(HAVE_LIB_CRYPT)
  103 HAVE_LIB_CRYPT = $(shell $(MAKE) $(MAKE_OPTS) TEST_LIBS=$(LIB_CRYPT) TEST_PROG=test-libcrypt have_test_prog)
  104 ifeq ($(HAVE_LIB_CRYPT),1)
  105 	CONFIG_CFLAGS += -DHAVE_LIB_CRYPT
  106 	CONFIG_LDFLAGS += $(LIB_CRYPT)
  107 endif
  108 $(call using,$(HAVE_LIB_CRYPT),$(LIB_CRYPT))
  109 endif
  110 
  111 ifndef $(HAVE_LIB_RT)
  112 HAVE_LIB_RT = $(shell $(MAKE) $(MAKE_OPTS) TEST_LIBS=$(LIB_RT) TEST_PROG=test-librt have_test_prog)
  113 ifeq ($(HAVE_LIB_RT),1)
  114 	CONFIG_CFLAGS += -DHAVE_LIB_RT
  115 	CONFIG_LDFLAGS += $(LIB_RT)
  116 endif
  117 $(call using,$(HAVE_LIB_RT),$(LIB_RT))
  118 endif
  119 
  120 ifndef $(HAVE_LIB_SCTP)
  121 HAVE_LIB_SCTP = $(shell $(MAKE) $(MAKE_OPTS) TEST_LIBS=$(LIB_SCTP) TEST_PROG=test-libsctp have_test_prog)
  122 ifeq ($(HAVE_LIB_SCTP),1)
  123 	CONFIG_CFLAGS += -DHAVE_LIB_SCTP
  124 	CONFIG_LDFLAGS += $(LIB_SCTP)
  125 endif
  126 $(call using,$(HAVE_LIB_SCTP),$(LIB_SCTP))
  127 endif
  128 
  129 ifndef $(HAVE_LIB_Z)
  130 HAVE_LIB_Z = $(shell $(MAKE) $(MAKE_OPTS) TEST_LIBS=$(LIB_Z) TEST_PROG=test-libz have_test_prog)
  131 ifeq ($(HAVE_LIB_Z),1)
  132 	CONFIG_CFLAGS += -DHAVE_LIB_Z
  133 	CONFIG_LDFLAGS += $(LIB_Z)
  134 endif
  135 $(call using,$(HAVE_LIB_Z),$(LIB_Z))
  136 endif
  137 
  138 ifndef $(HAVE_LIB_DL)
  139 HAVE_LIB_DL = $(shell $(MAKE) $(MAKE_OPTS) TEST_LIBS=$(LIB_DL) TEST_PROG=test-libdl have_test_prog)
  140 ifeq ($(HAVE_LIB_DL),1)
  141 	CONFIG_CFLAGS += -DHAVE_LIB_DL
  142 	CONFIG_LDFLAGS += $(LIB_DL)
  143 endif
  144 $(call using,$(HAVE_LIB_DL),$(LIB_DL))
  145 endif
  146 
  147 ifndef $(HAVE_LIB_JUDY)
  148 HAVE_LIB_JUDY = $(shell $(MAKE) $(MAKE_OPTS) TEST_LIBS=$(LIB_JUDY) TEST_PROG=test-judy have_test_prog)
  149 ifeq ($(HAVE_LIB_JUDY),1)
  150 	CONFIG_CFLAGS += -DHAVE_LIB_JUDY
  151 	CONFIG_LDFLAGS += $(LIB_JUDY)
  152 endif
  153 $(call using,$(HAVE_LIB_JUDY),$(LIB_JUDY))
  154 endif
  155 
  156 ifndef $(HAVE_LIB_PTHREAD_SPINLOCK)
  157 HAVE_LIB_PTHREAD_SPINLOCK = $(shell $(MAKE) $(MAKE_OPTS) TEST_LIBS=$(LIB_PTHREAD) TEST_PROG=test-libpthread-spinlock have_test_prog)
  158 ifeq ($(HAVE_LIB_PTHREAD_SPINLOCK),1)
  159 	CONFIG_CFLAGS += -DHAVE_LIB_PTHREAD_SPINLOCK
  160 endif
  161 $(call using,$(HAVE_LIB_PTHREAD_SPINLOCK),$(LIB_PTHREAD) spinlock)
  162 endif
  163 
  164 #
  165 #  Always add in pthread lib last to resolve pthread linker issues
  166 #
  167 ifndef $(HAVE_LIB_PTHREAD)
  168 HAVE_LIB_PTHREAD = $(shell $(MAKE) $(MAKE_OPTS) TEST_LIBS=$(LIB_PTHREAD) TEST_PROG=test-libpthread have_test_prog)
  169 ifeq ($(HAVE_LIB_PTHREAD),1)
  170 	CONFIG_CFLAGS += -DHAVE_LIB_PTHREAD
  171 	CONFIG_LDFLAGS += $(LIB_PTHREAD)
  172 endif
  173 $(call using,$(HAVE_LIB_PTHREAD),$(LIB_PTHREAD))
  174 endif
  175 
  176 ifndef $(HAVE_APPARMOR)
  177 HAVE_APPARMOR = $(shell $(MAKE) $(MAKE_OPTS) have_apparmor)
  178 ifeq ($(HAVE_APPARMOR),1)
  179 	CONFIG_OBJS += apparmor-data.o
  180 	CONFIG_CFLAGS += -DHAVE_APPARMOR
  181 	CONFIG_LDFLAGS += $(LIB_APPARMOR)
  182 endif
  183 $(call using,$(HAVE_APPARMOR),$(LIB_APPARMOR))
  184 endif
  185 
  186 ifndef $(HAVE_LIB_IPSEC_MB)
  187 HAVE_LIB_IPSEC_MB = $(shell $(MAKE) $(MAKE_OPTS) TEST_LIBS=$(LIB_IPSEC_MB) TEST_PROG=test-libipsec-mb have_test_prog)
  188 ifeq ($(HAVE_LIB_IPSEC_MB),1)
  189 	CONFIG_CFLAGS += -DHAVE_LIB_IPSEC_MB
  190 	CONFIG_LDFLAGS += $(LIB_IPSEC_MB)
  191 endif
  192 $(call using,$(HAVE_LIB_IPSEC_MB),$(LIB_IPSEC_MB))
  193 endif
  194 
  195 ifndef $(HAVE_LIB_KMOD)
  196 HAVE_LIB_KMOD = $(shell $(MAKE) $(MAKE_OPTS) TEST_LIBS=$(LIB_KMOD) TEST_PROG=test-libkmod have_test_prog)
  197 ifeq ($(HAVE_LIB_KMOD),1)
  198 	CONFIG_CFLAGS += -DHAVE_LIB_KMOD
  199 	CONFIG_LDFLAGS += $(LIB_KMOD)
  200 endif
  201 $(call using,$(HAVE_LIB_KMOD),$(LIB_KMOD))
  202 endif
  203 
  204 $(call check,header files)
  205 
  206 ifndef $(HAVE_AIO_H)
  207 HAVE_AIO_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=aio.h have_header_h)
  208 ifeq ($(HAVE_AIO_H),1)
  209 	CONFIG_CFLAGS += -DHAVE_AIO_H
  210 endif
  211 $(call using,$(HAVE_AIO_H),aio.h)
  212 endif
  213 
  214 ifndef $(HAVE_ASM_LDT_H)
  215 HAVE_ASM_LDT_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=asm/ldt.h have_header_h)
  216 ifeq ($(HAVE_ASM_LDT_H),1)
  217 	CONFIG_CFLAGS += -DHAVE_ASM_LDT_H
  218 endif
  219 $(call using,$(HAVE_ASM_LDT_H),asm/ldt.h)
  220 endif
  221 
  222 ifndef $(HAVE_ASM_MTRR_H)
  223 HAVE_ASM_MTRR_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=asm/mtrr.h have_header_h)
  224 ifeq ($(HAVE_ASM_MTRR_H),1)
  225 	CONFIG_CFLAGS += -DHAVE_ASM_MTRR_H
  226 endif
  227 $(call using,$(HAVE_ASM_MTRR_H),asm/mtrr.h)
  228 endif
  229 
  230 ifndef $(HAVE_ASM_PRCTL_H)
  231 HAVE_ASM_PRCTL_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=asm/prctl.h have_header_h)
  232 ifeq ($(HAVE_ASM_PRCTL_H),1)
  233 	CONFIG_CFLAGS += -DHAVE_ASM_PRCTL_H
  234 endif
  235 $(call using,$(HAVE_ASM_PRCTL_H),asm/prctl.h)
  236 endif
  237 
  238 #
  239 #  This must always come after -pthread so that static linking works
  240 #
  241 ifeq ($(shell uname -s),Haiku)
  242 	CONFIG_LDFLAGS += -lnetwork
  243 else
  244 	CONFIG_LDFLAGS += -lc
  245 endif
  246 
  247 ifndef $(HAVE_ATTR_XATTR_H)
  248 HAVE_ATTR_XATTR_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=attr/xattr.h have_header_h)
  249 ifeq ($(HAVE_ATTR_XATTR_H),1)
  250 	CONFIG_CFLAGS += -DHAVE_ATTR_XATTR_H
  251 endif
  252 $(call using,$(HAVE_ATTR_XATTR_H),attr/xattr.h)
  253 endif
  254 
  255 ifndef $(HAVE_BSD_STDLIB_H)
  256 HAVE_BSD_STDLIB_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=bsd/stdlib.h have_header_h)
  257 ifeq ($(HAVE_BSD_STDLIB_H),1)
  258 	CONFIG_CFLAGS += -DHAVE_BSD_STDLIB_H
  259 endif
  260 $(call using,$(HAVE_BSD_STDLIB_H),bsd/stdlib.h)
  261 endif
  262 
  263 ifndef $(HAVE_BSD_STRING_H)
  264 HAVE_BSD_STRING_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=bsd/string.h have_header_h)
  265 ifeq ($(HAVE_BSD_STRING_H),1)
  266 	CONFIG_CFLAGS += -DHAVE_BSD_STRING_H
  267 endif
  268 $(call using,$(HAVE_BSD_STRING_H),bsd/string.h)
  269 endif
  270 
  271 ifndef $(HAVE_BSD_SYS_TREE_H)
  272 HAVE_BSD_SYS_TREE_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=bsd/sys/tree.h have_header_h)
  273 ifeq ($(HAVE_BSD_SYS_TREE_H),1)
  274 	CONFIG_CFLAGS += -DHAVE_BSD_SYS_TREE_H
  275 endif
  276 $(call using,$(HAVE_BSD_SYS_TREE_H),bsd/sys/tree.h)
  277 endif
  278 
  279 ifndef $(HAVE_BSD_UNISTD_H)
  280 HAVE_BSD_UNISTD_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=bsd/unistd.h have_header_h)
  281 ifeq ($(HAVE_BSD_UNISTD_H),1)
  282 	CONFIG_CFLAGS += -DHAVE_BSD_UNISTD_H
  283 endif
  284 $(call using,$(HAVE_BSD_UNISTD_H),bsd/unistd.h)
  285 endif
  286 
  287 ifndef $(HAVE_BSD_WCHAR)
  288 HAVE_BSD_WCHAR = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-bsd-wchar have_test_prog)
  289 ifeq ($(HAVE_BSD_WCHAR),1)
  290 	CONFIG_CFLAGS += -DHAVE_BSD_WCHAR
  291 endif
  292 $(call using,$(HAVE_BSD_WCHAR),bsd/wchar.h)
  293 endif
  294 
  295 ifndef $(HAVE_COMPLEX_H)
  296 HAVE_COMPLEX_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=complex.h have_header_h)
  297 ifeq ($(HAVE_COMPLEX_H),1)
  298 	CONFIG_CFLAGS += -DHAVE_COMPLEX_H
  299 endif
  300 $(call using,$(HAVE_COMPLEX_H),complex.h)
  301 endif
  302 
  303 ifndef $(HAVE_CPUID_H)
  304 HAVE_CPUID_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=cpuid.h have_header_h)
  305 ifeq ($(HAVE_CPUID_H),1)
  306 	CONFIG_CFLAGS += -DHAVE_CPUID_H
  307 endif
  308 $(call using,$(HAVE_CPUID_H),cpuid.h)
  309 endif
  310 
  311 ifndef $(HAVE_WCHAR)
  312 HAVE_WCHAR = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-wchar have_test_prog)
  313 ifeq ($(HAVE_WCHAR),1)
  314 	CONFIG_CFLAGS += -DHAVE_WCHAR
  315 endif
  316 $(call using,$(HAVE_WCHAR),wchar.h)
  317 endif
  318 
  319 ifndef $(HAVE_CRYPT_H)
  320 HAVE_CRYPT_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=crypt.h have_header_h)
  321 ifeq ($(HAVE_CRYPT_H),1)
  322 	CONFIG_CFLAGS += -DHAVE_CRYPT_H
  323 endif
  324 $(call using,$(HAVE_CRYPT_H),crypt.h)
  325 endif
  326 
  327 ifndef $(HAVE_FEATURES_H)
  328 HAVE_FEATURES_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=features.h have_header_h)
  329 ifeq ($(HAVE_FEATURES_H),1)
  330 	CONFIG_CFLAGS += -DHAVE_FEATURES_H
  331 endif
  332 $(call using,$(HAVE_FEATURES_H),features.h)
  333 endif
  334 
  335 ifndef $(HAVE_FENV_H)
  336 HAVE_FENV_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=fenv.h have_header_h)
  337 ifeq ($(HAVE_FENV_H),1)
  338 	CONFIG_CFLAGS += -DHAVE_FENV_H
  339 endif
  340 $(call using,$(HAVE_FENV_H),fenv.h)
  341 endif
  342 
  343 ifndef $(HAVE_FLOAT_H)
  344 HAVE_FLOAT_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=float.h have_header_h)
  345 ifeq ($(HAVE_FLOAT_H),1)
  346 	CONFIG_CFLAGS += -DHAVE_FLOAT_H
  347 endif
  348 $(call using,$(HAVE_FLOAT_H),float.h)
  349 endif
  350 
  351 ifndef $(HAVE_GRP_H)
  352 HAVE_GRP_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=grp.h have_header_h)
  353 ifeq ($(HAVE_GRP_H),1)
  354 	CONFIG_CFLAGS += -DHAVE_GRP_H
  355 endif
  356 $(call using,$(HAVE_GRP_H),grp.h)
  357 endif
  358 
  359 ifndef $(HAVE_INTEL_IPSEC_MB_H)
  360 HAVE_INTEL_IPSEC_MB_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=intel-ipsec-mb.h have_header_h)
  361 ifeq ($(HAVE_INTEL_IPSEC_MB_H),1)
  362 	CONFIG_CFLAGS += -DHAVE_INTEL_IPSEC_MB_H
  363 endif
  364 $(call using,$(HAVE_INTEL_IPSEC_MB_H),intel_ipsec_mb.h)
  365 endif
  366 
  367 ifndef $(HAVE_JUDY_H)
  368 HAVE_JUDY_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=Judy.h have_header_h)
  369 ifeq ($(HAVE_JUDY_H),1)
  370 	CONFIG_CFLAGS += -DHAVE_JUDY_H
  371 endif
  372 $(call using,$(HAVE_JUDY_H),Judy.h)
  373 endif
  374 
  375 ifndef $(HAVE_KEYUTILS_H)
  376 HAVE_KEYUTILS_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=keyutils.h have_header_h)
  377 ifeq ($(HAVE_KEYUTILS_H),1)
  378 	CONFIG_CFLAGS += -DHAVE_KEYUTILS_H
  379 endif
  380 $(call using,$(HAVE_KEYUTILS_H),keyutils.h)
  381 endif
  382 
  383 ifndef $(HAVE_LIBAIO_H)
  384 HAVE_LIBAIO_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=libaio.h have_header_h)
  385 ifeq ($(HAVE_LIBAIO_H),1)
  386 	CONFIG_CFLAGS += -DHAVE_LIBAIO_H
  387 endif
  388 $(call using,$(HAVE_LIBAIO_H),libaio.h)
  389 endif
  390 
  391 ifndef $(HAVE_LIBGEN_H)
  392 HAVE_LIBGEN_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=libgen.h have_header_h)
  393 ifeq ($(HAVE_LIBGEN_H),1)
  394 	CONFIG_CFLAGS += -DHAVE_LIBGEN_H
  395 endif
  396 $(call using,$(HAVE_LIBGEN_H),libgen.h)
  397 endif
  398 
  399 ifndef $(HAVE_LIBKMOD_H)
  400 HAVE_LIBKMOD_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=libkmod.h have_header_h)
  401 ifeq ($(HAVE_LIBKMOD_H),1)
  402 	CONFIG_CFLAGS += -DHAVE_LIBKMOD_H
  403 endif
  404 $(call using,$(HAVE_LIBKMOD_H),libkmod.h)
  405 endif
  406 
  407 ifndef $(HAVE_LINK_H)
  408 HAVE_LINK_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=link.h have_header_h)
  409 ifeq ($(HAVE_LINK_H),1)
  410 	CONFIG_CFLAGS += -DHAVE_LINK_H
  411 endif
  412 $(call using,$(HAVE_LINK_H),link.h)
  413 endif
  414 
  415 ifndef $(HAVE_LINUX_ANDROID_BINDER_H)
  416 HAVE_LINUX_ANDROID_BINDER_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=linux/android/binder.h have_header_h)
  417 ifeq ($(HAVE_LINUX_ANDROID_BINDER_H),1)
  418 	CONFIG_CFLAGS += -DHAVE_LINUX_ANDROID_BINDER_H
  419 endif
  420 $(call using,$(HAVE_LINUX_ANDROID_BINDER_H),linux/android/binder.h)
  421 endif
  422 
  423 ifndef $(HAVE_LINUX_ANDROID_BINDERFS_H)
  424 HAVE_LINUX_ANDROID_BINDERFS_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=linux/android/binderfs.h have_header_h)
  425 ifeq ($(HAVE_LINUX_ANDROID_BINDERFS_H),1)
  426 	CONFIG_CFLAGS += -DHAVE_LINUX_ANDROID_BINDERFS_H
  427 endif
  428 $(call using,$(HAVE_LINUX_ANDROID_BINDERFS_H),linux/android/binderfs.h)
  429 endif
  430 
  431 ifndef $(HAVE_LINUX_AUDIT_H)
  432 HAVE_LINUX_AUDIT_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=linux/audit.h have_header_h)
  433 ifeq ($(HAVE_LINUX_AUDIT_H),1)
  434 	CONFIG_CFLAGS += -DHAVE_LINUX_AUDIT_H
  435 endif
  436 $(call using,$(HAVE_LINUX_AUDIT_H),linux/audit.h)
  437 endif
  438 
  439 ifndef $(HAVE_LINUX_CDROM_H)
  440 HAVE_LINUX_CDROM_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=linux/cdrom.h have_header_h)
  441 ifeq ($(HAVE_LINUX_CDROM_H),1)
  442 	CONFIG_CFLAGS += -DHAVE_LINUX_CDROM_H
  443 endif
  444 $(call using,$(HAVE_LINUX_CDROM_H),linux/cdrom.h)
  445 endif
  446 
  447 ifndef $(HAVE_LINUX_CN_PROC_H)
  448 HAVE_LINUX_CN_PROC_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=linux/cn_proc.h have_header_h)
  449 ifeq ($(HAVE_LINUX_CN_PROC_H),1)
  450 	CONFIG_CFLAGS += -DHAVE_LINUX_CN_PROC_H
  451 endif
  452 $(call using,$(HAVE_LINUX_CN_PROC_H),linux/cn_proc.h)
  453 endif
  454 
  455 ifndef $(HAVE_LINUX_CONNECTOR_H)
  456 HAVE_LINUX_CONNECTOR_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=linux/connector.h have_header_h)
  457 ifeq ($(HAVE_LINUX_CONNECTOR_H),1)
  458 	CONFIG_CFLAGS += -DHAVE_LINUX_CONNECTOR_H
  459 endif
  460 $(call using,$(HAVE_LINUX_CONNECTOR_H),linux/connector.h)
  461 endif
  462 
  463 ifndef $(HAVE_LINUX_DM_IOCTL_H)
  464 HAVE_LINUX_DM_IOCTL_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=linux/dm-ioctl.h have_header_h)
  465 ifeq ($(HAVE_LINUX_DM_IOCTL_H),1)
  466 	CONFIG_CFLAGS += -DHAVE_LINUX_DM_IOCTL_H
  467 endif
  468 $(call using,$(HAVE_LINUX_DM_IOCTL_H),linux/dm-ioctl.h)
  469 endif
  470 
  471 ifndef $(HAVE_LINUX_FD_H)
  472 HAVE_LINUX_FD_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=linux/fd.h have_header_h)
  473 ifeq ($(HAVE_LINUX_FD_H),1)
  474 	CONFIG_CFLAGS += -DHAVE_LINUX_FD_H
  475 endif
  476 $(call using,$(HAVE_LINUX_FD_H),linux/fd.h)
  477 endif
  478 
  479 ifndef $(HAVE_LINUX_FIEMAP_H)
  480 HAVE_LINUX_FIEMAP_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=linux/fiemap.h have_header_h)
  481 ifeq ($(HAVE_LINUX_FIEMAP_H),1)
  482 	CONFIG_CFLAGS += -DHAVE_LINUX_FIEMAP_H
  483 endif
  484 $(call using,$(HAVE_LINUX_FIEMAP_H),linux/fiemap.h)
  485 endif
  486 
  487 ifndef $(HAVE_LINUX_FILTER_H)
  488 HAVE_LINUX_FILTER_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=linux/filter.h have_header_h)
  489 ifeq ($(HAVE_LINUX_FILTER_H),1)
  490 	CONFIG_CFLAGS += -DHAVE_LINUX_FILTER_H
  491 $(call using,$(HAVE_LINUX_FILTER_H),linux/filter.h)
  492 endif
  493 endif
  494 
  495 ifndef $(HAVE_LINUX_FSVERITY_H)
  496 HAVE_LINUX_FSVERITY_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=linux/fsverity.h have_header_h)
  497 ifeq ($(HAVE_LINUX_FSVERITY_H),1)
  498 	CONFIG_CFLAGS += -DHAVE_LINUX_FSVERITY_H
  499 endif
  500 $(call using,$(HAVE_LINUX_FSVERITY_H),linux/fsverity.h)
  501 endif
  502 
  503 ifndef $(HAVE_LINUX_FUTEX_H)
  504 HAVE_LINUX_FUTEX_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=linux/futex.h have_header_h)
  505 ifeq ($(HAVE_LINUX_FUTEX_H),1)
  506 	CONFIG_CFLAGS += -DHAVE_LINUX_FUTEX_H
  507 endif
  508 $(call using,$(HAVE_LINUX_FUTEX_H),linux/futex.h)
  509 endif
  510 
  511 ifndef $(HAVE_LINUX_FS_H)
  512 HAVE_LINUX_FS_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=linux/fs.h have_header_h)
  513 ifeq ($(HAVE_LINUX_FS_H),1)
  514 	CONFIG_CFLAGS += -DHAVE_LINUX_FS_H
  515 endif
  516 $(call using,$(HAVE_LINUX_FS_H),linux/fs.h)
  517 endif
  518 
  519 ifndef $(HAVE_LINUX_GENETLINK_H)
  520 HAVE_LINUX_GENETLINK_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=linux/genetlink.h have_header_h)
  521 ifeq ($(HAVE_LINUX_GENETLINK_H),1)
  522 	CONFIG_CFLAGS += -DHAVE_LINUX_GENETLINK_H
  523 endif
  524 $(call using,$(HAVE_LINUX_GENETLINK_H),linux/genetlink.h)
  525 endif
  526 
  527 ifndef $(HAVE_LINUX_HDREG_H)
  528 HAVE_LINUX_HDREG_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=linux/hdreg.h have_header_h)
  529 ifeq ($(HAVE_LINUX_HDREG_H),1)
  530 	CONFIG_CFLAGS += -DHAVE_LINUX_HDREG_H
  531 endif
  532 $(call using,$(HAVE_LINUX_HDREG_H),linux/hdreg.h)
  533 endif
  534 
  535 ifndef $(HAVE_LINUX_HPET_H)
  536 HAVE_LINUX_HPET_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=linux/hpet.h have_header_h)
  537 ifeq ($(HAVE_LINUX_HPET_H),1)
  538 	CONFIG_CFLAGS += -DHAVE_LINUX_HPET_H
  539 endif
  540 $(call using,$(HAVE_LINUX_HPET_H),linux/hpet.h)
  541 endif
  542 
  543 ifndef $(HAVE_LINUX_IF_ALG_H)
  544 HAVE_LINUX_IF_ALG_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=linux/if_alg.h have_header_h)
  545 ifeq ($(HAVE_LINUX_IF_ALG_H),1)
  546 	CONFIG_CFLAGS += -DHAVE_LINUX_IF_ALG_H
  547 endif
  548 $(call using,$(HAVE_LINUX_IF_ALG_H),linux/if_alg.h)
  549 endif
  550 
  551 ifndef $(HAVE_LINUX_IF_PACKET_H)
  552 HAVE_LINUX_IF_PACKET_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=linux/if_packet.h have_header_h)
  553 ifeq ($(HAVE_LINUX_IF_PACKET_H),1)
  554 	CONFIG_CFLAGS += -DHAVE_LINUX_IF_PACKET_H
  555 endif
  556 $(call using,$(HAVE_LINUX_IF_PACKET_H),linux/if_packet.h)
  557 endif
  558 
  559 ifndef $(HAVE_LINUX_IF_TUN_H)
  560 HAVE_LINUX_IF_TUN_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=linux/if_tun.h have_header_h)
  561 ifeq ($(HAVE_LINUX_IF_TUN_H),1)
  562 	CONFIG_CFLAGS += -DHAVE_LINUX_IF_TUN_H
  563 endif
  564 $(call using,$(HAVE_LINUX_IF_TUN_H),linux/if_tun.h)
  565 endif
  566 
  567 ifndef $(HAVE_LINUX_IO_URING_H)
  568 HAVE_LINUX_IO_URING_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=linux/io_uring.h have_header_h)
  569 ifeq ($(HAVE_LINUX_IO_URING_H),1)
  570 	CONFIG_CFLAGS += -DHAVE_LINUX_IO_URING_H
  571 endif
  572 $(call using,$(HAVE_LINUX_IO_URING_H),linux/io_uring.h)
  573 endif
  574 
  575 ifndef $(HAVE_LINUX_KD_H)
  576 HAVE_LINUX_KD_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=linux/kd.h have_header_h)
  577 ifeq ($(HAVE_LINUX_KD_H),1)
  578 	CONFIG_CFLAGS += -DHAVE_LINUX_KD_H
  579 endif
  580 $(call using,$(HAVE_LINUX_KD_H),linux/kd.h)
  581 endif
  582 
  583 ifndef $(HAVE_LINUX_LANDLOCK_H)
  584 HAVE_LINUX_LANDLOCK_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=linux/landlock.h have_header_h)
  585 ifeq ($(HAVE_LINUX_LANDLOCK_H),1)
  586 	CONFIG_CFLAGS += -DHAVE_LINUX_LANDLOCK_H
  587 endif
  588 $(call using,$(HAVE_LINUX_LANDLOCK_H),linux/landlock.h)
  589 endif
  590 
  591 ifndef $(HAVE_LINUX_LOOP_H)
  592 HAVE_LINUX_LOOP_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=linux/loop.h have_header_h)
  593 ifeq ($(HAVE_LINUX_LOOP_H),1)
  594 	CONFIG_CFLAGS += -DHAVE_LINUX_LOOP_H
  595 endif
  596 $(call using,$(HAVE_LINUX_LOOP_H),linux/loop.h)
  597 endif
  598 
  599 ifndef $(HAVE_LINUX_MEDIA_H)
  600 HAVE_LINUX_MEDIA_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=linux/media.h have_header_h)
  601 ifeq ($(HAVE_LINUX_MEDIA_H),1)
  602 	CONFIG_CFLAGS += -DHAVE_LINUX_MEDIA_H
  603 endif
  604 $(call using,$(HAVE_LINUX_MEDIA_H),linux/media.h)
  605 endif
  606 
  607 ifndef $(HAVE_LINUX_MEMBARRIER_H)
  608 HAVE_LINUX_MEMBARRIER_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=linux/membarrier.h have_header_h)
  609 ifeq ($(HAVE_LINUX_MEMBARRIER_H),1)
  610 	CONFIG_CFLAGS += -DHAVE_LINUX_MEMBARRIER_H
  611 endif
  612 $(call using,$(HAVE_LINUX_MEMBARRIER_H),linux/membarrier.h)
  613 endif
  614 
  615 ifndef $(HAVE_LINUX_MEMPOLICY_H)
  616 HAVE_LINUX_MEMPOLICY_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=linux/mempolicy.h have_header_h)
  617 ifeq ($(HAVE_LINUX_MEMPOLICY_H),1)
  618 	CONFIG_CFLAGS += -DHAVE_LINUX_MEMPOLICY_H
  619 endif
  620 $(call using,$(HAVE_LINUX_MEMPOLICY_H),linux/mempolicy.h)
  621 endif
  622 
  623 ifndef $(HAVE_LINUX_NETLINK_H)
  624 HAVE_LINUX_NETLINK_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=linux/netlink.h have_header_h)
  625 ifeq ($(HAVE_LINUX_NETLINK_H),1)
  626 	CONFIG_CFLAGS += -DHAVE_LINUX_NETLINK_H
  627 endif
  628 $(call using,$(HAVE_LINUX_NETLINK_H),linux/netlink.h)
  629 endif
  630 
  631 ifndef $(HAVE_LINUX_OPENAT2_H)
  632 HAVE_LINUX_OPENAT2_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=linux/openat2.h have_header_h)
  633 ifeq ($(HAVE_LINUX_OPENAT2_H),1)
  634 	CONFIG_CFLAGS += -DHAVE_LINUX_OPENAT2_H
  635 endif
  636 $(call using,$(HAVE_LINUX_NETLINK_H),linux/openat2.h)
  637 endif
  638 
  639 ifndef $(HAVE_LINUX_PCI_H)
  640 HAVE_LINUX_PCI_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=linux/pci.h have_header_h)
  641 ifeq ($(HAVE_LINUX_PCI_H),1)
  642 	CONFIG_CFLAGS += -DHAVE_LINUX_PCI_H
  643 endif
  644 $(call using,$(HAVE_LINUX_PCI_H),linux/pci.h)
  645 endif
  646 
  647 ifndef $(HAVE_LINUX_PERF_EVENT_H)
  648 HAVE_LINUX_PERF_EVENT_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=linux/perf_event.h have_header_h)
  649 ifeq ($(HAVE_LINUX_PERF_EVENT_H),1)
  650 	CONFIG_CFLAGS += -DHAVE_LINUX_PERF_EVENT_H
  651 endif
  652 $(call using,$(HAVE_LINUX_PERF_EVENT_H),linux/perf_event.h)
  653 endif
  654 
  655 ifndef $(HAVE_LINUX_POSIX_TYPES_H)
  656 HAVE_LINUX_POSIX_TYPES_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=linux/posix_types.h have_header_h)
  657 ifeq ($(HAVE_LINUX_POSIX_TYPES_H),1)
  658 	CONFIG_CFLAGS += -DHAVE_LINUX_POSIX_TYPES_H
  659 endif
  660 $(call using,$(HAVE_LINUX_POSIX_TYPES_H),linux/posix_types.h)
  661 endif
  662 
  663 ifndef $(HAVE_LINUX_PPDEV_H)
  664 HAVE_LINUX_PPDEV_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=linux/ppdev.h have_header_h)
  665 ifeq ($(HAVE_LINUX_PPDEV_H),1)
  666 	CONFIG_CFLAGS += -DHAVE_LINUX_PPDEV_H
  667 endif
  668 $(call using,$(HAVE_LINUX_PPDEV_H),linux/ppdev.h)
  669 endif
  670 
  671 ifndef $(HAVE_LINUX_PTP_CLOCK_H)
  672 HAVE_LINUX_PTP_CLOCK_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=linux/ptp_clock.h have_header_h)
  673 ifeq ($(HAVE_LINUX_PTP_CLOCK_H),1)
  674 	CONFIG_CFLAGS += -DHAVE_LINUX_PTP_CLOCK_H
  675 endif
  676 $(call using,$(HAVE_LINUX_PTP_CLOCK_H),linux/ptp_clock.h)
  677 endif
  678 
  679 ifndef $(HAVE_LINUX_RANDOM_H)
  680 HAVE_LINUX_RANDOM_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=linux/random.h have_header_h)
  681 ifeq ($(HAVE_LINUX_RANDOM_H),1)
  682 	CONFIG_CFLAGS += -DHAVE_LINUX_RANDOM_H
  683 endif
  684 $(call using,$(HAVE_LINUX_RANDOM_H),linux/random.h)
  685 endif
  686 
  687 ifndef $(HAVE_LINUX_RSEQ_H)
  688 HAVE_LINUX_RSEQ_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=linux/rseq.h have_header_h)
  689 ifeq ($(HAVE_LINUX_RSEQ_H),1)
  690 	CONFIG_CFLAGS += -DHAVE_LINUX_RSEQ_H
  691 endif
  692 $(call using,$(HAVE_LINUX_RSEQ_H),linux/rseq.h)
  693 endif
  694 
  695 ifndef $(HAVE_LINUX_RTC_H)
  696 HAVE_LINUX_RTC_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=linux/rtc.h have_header_h)
  697 ifeq ($(HAVE_LINUX_RTC_H),1)
  698 	CONFIG_CFLAGS += -DHAVE_LINUX_RTC_H
  699 endif
  700 $(call using,$(HAVE_LINUX_RTC_H),linux/rtc.h)
  701 endif
  702 
  703 ifndef $(HAVE_LINUX_RTNETLINK_H)
  704 HAVE_LINUX_RTNETLINK_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=linux/rtnetlink.h have_header_h)
  705 ifeq ($(HAVE_LINUX_RTNETLINK_H),1)
  706 	CONFIG_CFLAGS += -DHAVE_LINUX_RTNETLINK_H
  707 endif
  708 $(call using,$(HAVE_LINUX_RTNETLINK_H),linux/rtnetlink.h)
  709 endif
  710 
  711 ifndef $(HAVE_LINUX_SECCOMP_H)
  712 HAVE_LINUX_SECCOMP_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=linux/seccomp.h have_header_h)
  713 ifeq ($(HAVE_LINUX_SECCOMP_H),1)
  714 	CONFIG_CFLAGS += -DHAVE_LINUX_SECCOMP_H
  715 endif
  716 $(call using,$(HAVE_LINUX_SECCOMP_H),linux/seccomp.h)
  717 endif
  718 
  719 ifndef $(HAVE_LINUX_SERIAL_H)
  720 HAVE_LINUX_SERIAL_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=linux/serial.h have_header_h)
  721 ifeq ($(HAVE_LINUX_SERIAL_H),1)
  722 	CONFIG_CFLAGS += -DHAVE_LINUX_SERIAL_H
  723 endif
  724 $(call using,$(HAVE_LINUX_SERIAL_H),linux/serial.h)
  725 endif
  726 
  727 ifndef $(HAVE_LINUX_SOCK_DIAG_H)
  728 HAVE_LINUX_SOCK_DIAG_H = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-sock-diag have_test_prog)
  729 ifeq ($(HAVE_LINUX_SOCK_DIAG_H),1)
  730 	CONFIG_CFLAGS += -DHAVE_LINUX_SOCK_DIAG_H
  731 endif
  732 $(call using,$(HAVE_LINUX_SOCK_DIAG_H),linux/sock_diag.h)
  733 endif
  734 
  735 ifndef $(HAVE_LINUX_SOCKET_H)
  736 HAVE_LINUX_SOCKET_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=linux/socket.h have_header_h)
  737 ifeq ($(HAVE_LINUX_SOCKET_H),1)
  738 	CONFIG_CFLAGS += -DHAVE_LINUX_SOCKET_H
  739 endif
  740 $(call using,$(HAVE_LINUX_SOCKET_H),linux/socket.h)
  741 endif
  742 
  743 ifndef $(HAVE_LINUX_SOCKIOS_H)
  744 HAVE_LINUX_SOCKIOS_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=linux/sockios.h have_header_h)
  745 ifeq ($(HAVE_LINUX_SOCKIOS_H),1)
  746 	CONFIG_CFLAGS += -DHAVE_LINUX_SOCKIOS_H
  747 endif
  748 $(call using,$(HAVE_LINUX_SOCKIOS_H),linux/sockios.h)
  749 endif
  750 
  751 ifndef $(HAVE_LINUX_SYSCTL_H)
  752 HAVE_LINUX_SYSCTL_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=linux/sysctl.h have_header_h)
  753 ifeq ($(HAVE_LINUX_SYSCTL_H),1)
  754 	CONFIG_CFLAGS += -DHAVE_LINUX_SYSCTL_H
  755 endif
  756 $(call using,$(HAVE_LINUX_SYSCTL_H),linux/sysctl.h)
  757 endif
  758 
  759 ifndef $(HAVE_LINUX_TASKSTATS_H)
  760 HAVE_LINUX_TASKSTATS_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=linux/taskstats.h have_header_h)
  761 ifeq ($(HAVE_LINUX_TASKSTATS_H),1)
  762 	CONFIG_CFLAGS += -DHAVE_LINUX_TASKSTATS_H
  763 endif
  764 $(call using,$(HAVE_LINUX_TASKSTATS_H),linux/taskstats.h)
  765 endif
  766 
  767 ifndef $(HAVE_LINUX_UDP_H)
  768 HAVE_LINUX_UDP_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=linux/udp.h have_header_h)
  769 ifeq ($(HAVE_LINUX_UDP_H),1)
  770 	CONFIG_CFLAGS += -DHAVE_LINUX_UDP_H
  771 endif
  772 $(call using,$(HAVE_LINUX_UDP_H),linux/udp.h)
  773 endif
  774 
  775 ifndef $(HAVE_LINUX_UNIX_DIAG_H)
  776 HAVE_LINUX_UNIX_DIAG_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=linux/unix_diag.h have_header_h)
  777 ifeq ($(HAVE_LINUX_UNIX_DIAG_H),1)
  778 	CONFIG_CFLAGS += -DHAVE_LINUX_UNIX_DIAG_H
  779 endif
  780 $(call using,$(HAVE_LINUX_UNIX_DIAG_H),linux/unix_diag.h)
  781 endif
  782 
  783 ifndef $(HAVE_LINUX_USERFAULTFD_H)
  784 HAVE_LINUX_USERFAULTFD_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=linux/userfaultfd.h have_header_h)
  785 ifeq ($(HAVE_LINUX_USERFAULTFD_H),1)
  786 	CONFIG_CFLAGS += -DHAVE_LINUX_USERFAULTFD_H
  787 endif
  788 $(call using,$(HAVE_LINUX_USERFAULTFD_H),linux/userfaultfd.h)
  789 endif
  790 
  791 ifndef $(HAVE_LINUX_VERSION_H)
  792 HAVE_LINUX_VERSION_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=linux/version.h have_header_h)
  793 ifeq ($(HAVE_LINUX_VERSION_H),1)
  794 	CONFIG_CFLAGS += -DHAVE_LINUX_VERSION_H
  795 endif
  796 $(call using,$(HAVE_LINUX_VERSION_H),linux/version.h)
  797 endif
  798 
  799 ifndef $(HAVE_LINUX_VIDEODEV2_H)
  800 HAVE_LINUX_VIDEODEV2_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=linux/videodev2.h have_header_h)
  801 ifeq ($(HAVE_LINUX_VIDEODEV2_H),1)
  802 	CONFIG_CFLAGS += -DHAVE_LINUX_VIDEODEV2_H
  803 endif
  804 $(call using,$(HAVE_LINUX_VIDEODEV2_H),linux/videodev2.h)
  805 endif
  806 
  807 ifndef $(HAVE_LINUX_VT_H)
  808 HAVE_LINUX_VT_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=linux/vt.h have_header_h)
  809 ifeq ($(HAVE_LINUX_VT_H),1)
  810 	CONFIG_CFLAGS += -DHAVE_LINUX_VT_H
  811 endif
  812 $(call using,$(HAVE_LINUX_VT_H),linux/vt.h)
  813 endif
  814 
  815 ifndef $(HAVE_LINUX_WATCHDOG_H)
  816 HAVE_LINUX_WATCHDOG_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=linux/watchdog.h have_header_h)
  817 ifeq ($(HAVE_LINUX_WATCHDOG_H),1)
  818 	CONFIG_CFLAGS += -DHAVE_LINUX_WATCHDOG_H
  819 endif
  820 $(call using,$(HAVE_LINUX_WATCHDOG_H),linux/watchdog.h)
  821 endif
  822 
  823 
  824 ifndef $(HAVE_LOCALE_H)
  825 HAVE_LOCALE_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=locale.h have_header_h)
  826 ifeq ($(HAVE_LOCALE_H),1)
  827 	CONFIG_CFLAGS += -DHAVE_LOCALE_H
  828 endif
  829 $(call using,$(HAVE_LOCALE_H),locale.h)
  830 endif
  831 
  832 ifndef $(HAVE_MALLOC_H)
  833 HAVE_MALLOC_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=malloc.h have_header_h)
  834 ifeq ($(HAVE_MALLOC_H),1)
  835 	CONFIG_CFLAGS += -DHAVE_MALLOC_H
  836 endif
  837 $(call using,$(HAVE_MALLOC_H),malloc.h)
  838 endif
  839 
  840 ifndef $(HAVE_MNTENT_H)
  841 HAVE_MNTENT_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=mntent.h have_header_h)
  842 ifeq ($(HAVE_MNTENT_H),1)
  843 	CONFIG_CFLAGS += -DHAVE_MNTENT_H
  844 endif
  845 $(call using,$(HAVE_MNTENT_H),mntent.h)
  846 endif
  847 
  848 ifndef $(HAVE_MQUEUE_H)
  849 HAVE_MQUEUE_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=mqueue.h have_header_h)
  850 ifeq ($(HAVE_MQUEUE_H),1)
  851 	CONFIG_CFLAGS += -DHAVE_MQUEUE_H
  852 endif
  853 $(call using,$(HAVE_MQUEUE_H),mqueue.h)
  854 endif
  855 
  856 ifndef $(HAVE_POLL_H)
  857 HAVE_POLL_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=poll.h have_header_h)
  858 ifeq ($(HAVE_POLL_H),1)
  859 	CONFIG_CFLAGS += -DHAVE_POLL_H
  860 endif
  861 $(call using,$(HAVE_POLL_H),poll.h)
  862 endif
  863 
  864 ifndef $(HAVE_SCSI_SCSI_H)
  865 HAVE_SCSI_SCSI_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=scsi/scsi.h have_header_h)
  866 ifeq ($(HAVE_SCSI_SCSI_H),1)
  867 	CONFIG_CFLAGS += -DHAVE_SCSI_SCSI_H
  868 endif
  869 $(call using,$(HAVE_SCSI_SCSI_H),scsi/scsi.h)
  870 endif
  871 
  872 ifndef $(HAVE_SCSI_SCSI_IOCTL_H)
  873 HAVE_SCSI_SCSI_IOCTL_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=scsi/scsi_ioctl.h have_header_h)
  874 ifeq ($(HAVE_SCSI_SCSI_IOCTL_H),1)
  875 	CONFIG_CFLAGS += -DHAVE_SCSI_SCSI_IOCTL_H
  876 endif
  877 $(call using,$(HAVE_SCSI_SCSI_IOCTL_H),scsi/scsi_ioctl.h)
  878 endif
  879 
  880 ifndef $(HAVE_SCSI_SG_H)
  881 HAVE_SCSI_SG_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=scsi/sg.h have_header_h)
  882 ifeq ($(HAVE_SCSI_SG_H),1)
  883 	CONFIG_CFLAGS += -DHAVE_SCSI_SG_H
  884 endif
  885 $(call using,$(HAVE_SCSI_SG_H),scsi/sg.h)
  886 endif
  887 
  888 ifndef $(HAVE_SEMAPHORE_H)
  889 HAVE_SEMAPHORE_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=semaphore.h have_header_h)
  890 ifeq ($(HAVE_SEMAPHORE_H),1)
  891 	CONFIG_CFLAGS += -DHAVE_SEMAPHORE_H
  892 endif
  893 $(call using,$(HAVE_SEMAPHORE_H),semaphore.h)
  894 endif
  895 
  896 ifndef $(HAVE_STRINGS_H)
  897 HAVE_STRINGS_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=strings.h have_header_h)
  898 ifeq ($(HAVE_STRINGS_H),1)
  899 	CONFIG_CFLAGS += -DHAVE_STRINGS_H
  900 endif
  901 $(call using,$(HAVE_STRINGS_H),strings.h)
  902 endif
  903 
  904 ifndef $(HAVE_SOUND_ASOUND_H)
  905 HAVE_SOUND_ASOUND_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=sound/asound.h have_header_h)
  906 ifeq ($(HAVE_SOUND_ASOUND_H),1)
  907 	CONFIG_CFLAGS += -DHAVE_SOUND_ASOUND_H
  908 endif
  909 $(call using,$(HAVE_SOUND_ASOUND_H),sound/asound.h)
  910 endif
  911 
  912 ifndef $(HAVE_SPAWN_H)
  913 HAVE_SPAWN_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=spawn.h have_header_h)
  914 ifeq ($(HAVE_SPAWN_H),1)
  915 	CONFIG_CFLAGS += -DHAVE_SPAWN_H
  916 endif
  917 $(call using,$(HAVE_SPAWN_H),spawn.h)
  918 endif
  919 
  920 ifndef $(HAVE_SYSLOG_H)
  921 HAVE_SYSLOG_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=syslog.h have_header_h)
  922 ifeq ($(HAVE_SYSLOG_H),1)
  923 	CONFIG_CFLAGS += -DHAVE_SYSLOG_H
  924 endif
  925 $(call using,$(HAVE_SYSLOG_H),syslog.h)
  926 endif
  927 
  928 ifndef $(HAVE_SYS_APPARMOR_H)
  929 HAVE_SYS_APPARMOR_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=sys/apparmor.h have_header_h)
  930 ifeq ($(HAVE_SYS_APPARMOR_H),1)
  931 	CONFIG_CFLAGS += -DHAVE_SYS_APPARMOR_H
  932 endif
  933 $(call using,$(HAVE_SYS_APPARMOR_H),sys/apparmor.h)
  934 endif
  935 
  936 ifndef $(HAVE_SYS_AUXV_H)
  937 HAVE_SYS_AUXV_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=sys/auxv.h have_header_h)
  938 ifeq ($(HAVE_SYS_AUXV_H),1)
  939 	CONFIG_CFLAGS += -DHAVE_SYS_AUXV_H
  940 endif
  941 $(call using,$(HAVE_SYS_AUXV_H),sys/auxv.h)
  942 endif
  943 
  944 ifndef $(HAVE_SYS_CAPABILITY_H)
  945 HAVE_SYS_CAPABILITY_H = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-cap have_test_prog)
  946 ifeq ($(HAVE_SYS_CAPABILITY_H),1)
  947 	CONFIG_CFLAGS += -DHAVE_SYS_CAPABILITY_H
  948 endif
  949 $(call using,$(HAVE_SYS_CAPABILITY_H),sys/capability.h)
  950 endif
  951 
  952 ifndef $(HAVE_SYS_EPOLL_H)
  953 HAVE_SYS_EPOLL_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=sys/epoll.h have_header_h)
  954 ifeq ($(HAVE_SYS_EPOLL_H),1)
  955 	CONFIG_CFLAGS += -DHAVE_SYS_EPOLL_H
  956 endif
  957 $(call using,$(HAVE_SYS_EPOLL_H),sys/epoll.h)
  958 endif
  959 
  960 ifndef $(HAVE_SYS_EVENTFD_H)
  961 HAVE_SYS_EVENTFD_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=sys/eventfd.h have_header_h)
  962 ifeq ($(HAVE_SYS_EVENTFD_H),1)
  963 	CONFIG_CFLAGS += -DHAVE_SYS_EVENTFD_H
  964 endif
  965 $(call using,$(HAVE_SYS_EVENTFD_H),sys/eventfd.h)
  966 endif
  967 
  968 ifndef $(HAVE_SYS_FANOTIFY_H)
  969 HAVE_SYS_FANOTIFY_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=sys/fanotify.h have_header_h)
  970 ifeq ($(HAVE_SYS_FANOTIFY_H),1)
  971 	CONFIG_CFLAGS += -DHAVE_SYS_FANOTIFY_H
  972 endif
  973 $(call using,$(HAVE_SYS_FANOTIFY_H),sys/fanotify.h)
  974 endif
  975 
  976 ifndef $(HAVE_SYS_FSUID_H)
  977 HAVE_SYS_FSUID_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=sys/fsuid.h have_header_h)
  978 ifeq ($(HAVE_SYS_FSUID_H),1)
  979 	CONFIG_CFLAGS += -DHAVE_SYS_FSUID_H
  980 endif
  981 $(call using,$(HAVE_SYS_FSUID_H),sys/fsuid.h)
  982 endif
  983 
  984 ifndef $(HAVE_SYS_INOTIFY_H)
  985 HAVE_SYS_INOTIFY_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=sys/inotify.h have_header_h)
  986 ifeq ($(HAVE_SYS_INOTIFY_H),1)
  987 	CONFIG_CFLAGS += -DHAVE_SYS_INOTIFY_H
  988 endif
  989 $(call using,$(HAVE_SYS_INOTIFY_H),sys/inotify.h)
  990 endif
  991 
  992 ifndef $(HAVE_SYS_IO_H)
  993 HAVE_SYS_IO_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=sys/io.h have_header_h)
  994 ifeq ($(HAVE_SYS_IO_H),1)
  995 	CONFIG_CFLAGS += -DHAVE_SYS_IO_H
  996 endif
  997 $(call using,$(HAVE_SYS_IO_H),sys/io.h)
  998 endif
  999 
 1000 ifndef $(HAVE_SYS_IPC_H)
 1001 HAVE_SYS_IPC_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=sys/ipc.h have_header_h)
 1002 ifeq ($(HAVE_SYS_IPC_H),1)
 1003 	CONFIG_CFLAGS += -DHAVE_SYS_IPC_H
 1004 endif
 1005 $(call using,$(HAVE_SYS_IPC_H),sys/ipc.h)
 1006 endif
 1007 
 1008 ifndef $(HAVE_SYS_MOUNT_H)
 1009 HAVE_SYS_MOUNT_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=sys/mount.h have_header_h)
 1010 ifeq ($(HAVE_SYS_MOUNT_H),1)
 1011 	CONFIG_CFLAGS += -DHAVE_SYS_MOUNT_H
 1012 endif
 1013 $(call using,$(HAVE_SYS_MOUNT_H),sys/mount.h)
 1014 endif
 1015 
 1016 ifndef $(HAVE_SYS_MSG_H)
 1017 HAVE_SYS_MSG_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=sys/msg.h have_header_h)
 1018 ifeq ($(HAVE_SYS_MSG_H),1)
 1019 	CONFIG_CFLAGS += -DHAVE_SYS_MSG_H
 1020 endif
 1021 $(call using,$(HAVE_SYS_MSG_H),sys/msg.h)
 1022 endif
 1023 
 1024 ifndef $(HAVE_SYS_PARAM_H)
 1025 HAVE_SYS_PARAM_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=sys/param.h have_header_h)
 1026 ifeq ($(HAVE_SYS_PARAM_H),1)
 1027 	CONFIG_CFLAGS += -DHAVE_SYS_PARAM_H
 1028 endif
 1029 $(call using,$(HAVE_SYS_PARAM_H),sys/param.h)
 1030 endif
 1031 
 1032 ifndef $(HAVE_SYS_PERSONALITY_H)
 1033 HAVE_SYS_PERSONALITY_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=sys/personality.h have_header_h)
 1034 ifeq ($(HAVE_SYS_PERSONALITY_H),1)
 1035 	CONFIG_CFLAGS += -DHAVE_SYS_PERSONALITY_H
 1036 endif
 1037 $(call using,$(HAVE_SYS_PERSONALITY_H),sys/personality.h)
 1038 endif
 1039 
 1040 ifndef $(HAVE_SYS_PLATFORM_PPC_H)
 1041 HAVE_SYS_PLATFORM_PPC_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=sys/platform/ppc.h have_header_h)
 1042 ifeq ($(HAVE_SYS_PLATFORM_PPC_H),1)
 1043 	CONFIG_CFLAGS += -DHAVE_SYS_PLATFORM_PPC_H
 1044 $(call using,$(HAVE_SYS_PLATFORM_PPC_H),sys/platform/ppc.h)
 1045 endif
 1046 endif
 1047 
 1048 ifndef $(HAVE_SYS_PRCTL_H)
 1049 HAVE_SYS_PRCTL_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=sys/prctl.h have_header_h)
 1050 ifeq ($(HAVE_SYS_PRCTL_H),1)
 1051 	CONFIG_CFLAGS += -DHAVE_SYS_PRCTL_H
 1052 endif
 1053 $(call using,$(HAVE_SYS_PRCTL_H),sys/prctl.h)
 1054 endif
 1055 
 1056 ifndef $(HAVE_SYS_TREE_H)
 1057 HAVE_SYS_TREE_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=sys/tree.h have_header_h)
 1058 ifeq ($(HAVE_SYS_TREE_H),1)
 1059 	CONFIG_CFLAGS += -DHAVE_SYS_TREE_H
 1060 endif
 1061 $(call using,$(HAVE_SYS_TREE_H),sys/tree.h)
 1062 endif
 1063 
 1064 ifndef $(HAVE_SYS_QUEUE_H)
 1065 HAVE_SYS_QUEUE_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=sys/queue.h have_header_h)
 1066 ifeq ($(HAVE_SYS_QUEUE_H),1)
 1067 	CONFIG_CFLAGS += -DHAVE_SYS_QUEUE_H
 1068 endif
 1069 $(call using,$(HAVE_SYS_QUEUE_H),sys/queue.h)
 1070 endif
 1071 
 1072 ifndef $(HAVE_SYS_QUOTA_H)
 1073 HAVE_SYS_QUOTA_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=sys/quota.h have_header_h)
 1074 ifeq ($(HAVE_SYS_QUOTA_H),1)
 1075 	CONFIG_CFLAGS += -DHAVE_SYS_QUOTA_H
 1076 endif
 1077 $(call using,$(HAVE_SYS_QUOTA_H),sys/quota.h)
 1078 endif
 1079 
 1080 ifndef $(HAVE_SYS_SELECT_H)
 1081 HAVE_SYS_SELECT_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=sys/select.h have_header_h)
 1082 ifeq ($(HAVE_SYS_SELECT_H),1)
 1083 	CONFIG_CFLAGS += -DHAVE_SYS_SELECT_H
 1084 endif
 1085 $(call using,$(HAVE_SYS_SELECT_H),sys/select.h)
 1086 endif
 1087 
 1088 ifndef $(HAVE_SYS_SENDFILE_H)
 1089 HAVE_SYS_SENDFILE_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=sys/sendfile.h have_header_h)
 1090 ifeq ($(HAVE_SYS_SENDFILE_H),1)
 1091 	CONFIG_CFLAGS += -DHAVE_SYS_SENDFILE_H
 1092 endif
 1093 $(call using,$(HAVE_SYS_SENDFILE_H),sys/sendfile.h)
 1094 endif
 1095 
 1096 ifndef $(HAVE_SYS_SHM_H)
 1097 HAVE_SYS_SHM_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=sys/shm.h have_header_h)
 1098 ifeq ($(HAVE_SYS_SHM_H),1)
 1099 	CONFIG_CFLAGS += -DHAVE_SYS_SHM_H
 1100 endif
 1101 $(call using,$(HAVE_SYS_SHM_H),sys/shm.h)
 1102 endif
 1103 
 1104 ifndef $(HAVE_SYS_SIGNALFD_H)
 1105 HAVE_SYS_SIGNALFD_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=sys/signalfd.h have_header_h)
 1106 ifeq ($(HAVE_SYS_SIGNALFD_H),1)
 1107 	CONFIG_CFLAGS += -DHAVE_SYS_SIGNALFD_H
 1108 endif
 1109 $(call using,$(HAVE_SYS_SIGNALFD_H),sys/signalfd.h)
 1110 endif
 1111 
 1112 ifndef $(HAVE_SYS_STATFS_H)
 1113 HAVE_SYS_STATFS_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=sys/statfs.h have_header_h)
 1114 ifeq ($(HAVE_SYS_STATFS_H),1)
 1115 	CONFIG_CFLAGS += -DHAVE_SYS_STATFS_H
 1116 endif
 1117 $(call using,$(HAVE_SYS_STATFS_H),sys/statfs.h)
 1118 endif
 1119 
 1120 ifndef $(HAVE_SYS_STATVFS_H)
 1121 HAVE_SYS_STATVFS_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=sys/statvfs.h have_header_h)
 1122 ifeq ($(HAVE_SYS_STATVFS_H),1)
 1123 	CONFIG_CFLAGS += -DHAVE_SYS_STATVFS_H
 1124 endif
 1125 $(call using,$(HAVE_SYS_STATVFS_H),sys/statvfs.h)
 1126 endif
 1127 
 1128 ifndef $(HAVE_SYS_SWAP_H)
 1129 HAVE_SYS_SWAP_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=sys/swap.h have_header_h)
 1130 ifeq ($(HAVE_SYS_SWAP_H),1)
 1131 	CONFIG_CFLAGS += -DHAVE_SYS_SWAP_H
 1132 endif
 1133 $(call using,$(HAVE_SYS_SWAP_H),sys/swap.h)
 1134 endif
 1135 
 1136 ifndef $(HAVE_SYSCALL_H)
 1137 HAVE_SYSCALL_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=sys/syscall.h have_header_h)
 1138 ifeq ($(HAVE_SYSCALL_H),1)
 1139 	CONFIG_CFLAGS += -DHAVE_SYSCALL_H
 1140 endif
 1141 $(call using,$(HAVE_SYSCALL_H),sys/syscall.h)
 1142 endif
 1143 
 1144 ifndef $(HAVE_SYS_SYSINFO_H)
 1145 HAVE_SYS_SYSINFO_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=sys/sysinfo.h have_header_h)
 1146 ifeq ($(HAVE_SYS_SYSINFO_H),1)
 1147 	CONFIG_CFLAGS += -DHAVE_SYS_SYSINFO_H
 1148 endif
 1149 $(call using,$(HAVE_SYS_SYSINFO_H),sys/sysinfo.h)
 1150 endif
 1151 
 1152 ifndef $(HAVE_SYS_SYSMACROS_H)
 1153 HAVE_SYS_SYSMACROS_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=sys/sysmacros.h have_header_h)
 1154 ifeq ($(HAVE_SYS_SYSMACROS_H),1)
 1155 	CONFIG_CFLAGS += -DHAVE_SYS_SYSMACROS_H
 1156 endif
 1157 $(call using,$(HAVE_SYS_SYSMACROS_H),sys/sysmacros.h)
 1158 endif
 1159 
 1160 ifndef $(HAVE_SYS_TIMERFD_H)
 1161 HAVE_SYS_TIMERFD_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=sys/timerfd.h have_header_h)
 1162 ifeq ($(HAVE_SYS_TIMERFD_H),1)
 1163 	CONFIG_CFLAGS += -DHAVE_SYS_TIMERFD_H
 1164 endif
 1165 $(call using,$(HAVE_SYS_TIMERFD_H),sys/timerfd.h)
 1166 endif
 1167 
 1168 ifndef $(HAVE_SYS_TIMEX_H)
 1169 HAVE_SYS_TIMEX_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=sys/timex.h have_header_h)
 1170 ifeq ($(HAVE_SYS_TIMEX_H),1)
 1171 	CONFIG_CFLAGS += -DHAVE_SYS_TIMEX_H
 1172 endif
 1173 $(call using,$(HAVE_SYS_TIMEX_H),sys/timex.h)
 1174 endif
 1175 
 1176 ifndef $(HAVE_SYS_UIO_H)
 1177 HAVE_SYS_UIO_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=sys/uio.h have_header_h)
 1178 ifeq ($(HAVE_SYS_UIO_H),1)
 1179 	CONFIG_CFLAGS += -DHAVE_SYS_UIO_H
 1180 endif
 1181 $(call using,$(HAVE_SYS_UIO_H),sys/uio.h)
 1182 endif
 1183 
 1184 ifndef $(HAVE_SYS_UCRED_H)
 1185 HAVE_SYS_UCRED_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=sys/ucred.h have_header_h)
 1186 ifeq ($(HAVE_SYS_UCRED_H),1)
 1187 	CONFIG_CFLAGS += -DHAVE_SYS_UCRED_H
 1188 endif
 1189 $(call using,$(HAVE_SYS_UCRED_H),sys/ucred.h)
 1190 endif
 1191 
 1192 ifndef $(HAVE_SYS_UN_H)
 1193 HAVE_SYS_UN_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=sys/un.h have_header_h)
 1194 ifeq ($(HAVE_SYS_UN_H),1)
 1195 	CONFIG_CFLAGS += -DHAVE_SYS_UN_H
 1196 endif
 1197 $(call using,$(HAVE_SYS_UN_H),sys/un.h)
 1198 endif
 1199 
 1200 ifndef $(HAVE_SYS_UTSNAME_H)
 1201 HAVE_SYS_UTSNAME_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=sys/utsname.h have_header_h)
 1202 ifeq ($(HAVE_SYS_UTSNAME_H),1)
 1203 	CONFIG_CFLAGS += -DHAVE_SYS_UTSNAME_H
 1204 endif
 1205 $(call using,$(HAVE_SYS_UTSNAME_H),sys/utsname.h)
 1206 endif
 1207 
 1208 ifndef $(HAVE_SYS_VFS_H)
 1209 HAVE_SYS_VFS_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=sys/vfs.h have_header_h)
 1210 ifeq ($(HAVE_SYS_VFS_H),1)
 1211 	CONFIG_CFLAGS += -DHAVE_SYS_VFS_H
 1212 endif
 1213 $(call using,$(HAVE_SYS_VFS_H),sys/vfs.h)
 1214 endif
 1215 
 1216 ifndef $(HAVE_SYS_XATTR_H)
 1217 HAVE_SYS_XATTR_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=sys/xattr.h have_header_h)
 1218 ifeq ($(HAVE_SYS_XATTR_H),1)
 1219 	CONFIG_CFLAGS += -DHAVE_SYS_XATTR_H
 1220 endif
 1221 $(call using,$(HAVE_SYS_XATTR_H),sys/xattr.h)
 1222 endif
 1223 
 1224 ifndef $(HAVE_TERMIO_H)
 1225 HAVE_TERMIO_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=termio.h have_header_h)
 1226 ifeq ($(HAVE_TERMIO_H),1)
 1227 	CONFIG_CFLAGS += -DHAVE_TERMIO_H
 1228 endif
 1229 $(call using,$(HAVE_TERMIO_H),termio.h)
 1230 endif
 1231 
 1232 ifndef $(HAVE_TERMIOS_H)
 1233 HAVE_TERMIOS_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=termios.h have_header_h)
 1234 ifeq ($(HAVE_TERMIOS_H),1)
 1235 	CONFIG_CFLAGS += -DHAVE_TERMIOS_H
 1236 endif
 1237 $(call using,$(HAVE_TERMIOS_H),termios.h)
 1238 endif
 1239 
 1240 ifndef $(HAVE_NET_IF_H)
 1241 HAVE_NET_IF_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=net/if.h have_header_h)
 1242 ifeq ($(HAVE_NET_IF_H),1)
 1243 	CONFIG_CFLAGS += -DHAVE_NET_IF_H
 1244 endif
 1245 $(call using,$(HAVE_NET_IF_H),net/if.h)
 1246 endif
 1247 
 1248 ifndef $(HAVE_NETINET_IP_H)
 1249 HAVE_NETINET_IP_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=netinet/ip.h have_header_h)
 1250 ifeq ($(HAVE_NETINET_IP_H),1)
 1251 	CONFIG_CFLAGS += -DHAVE_NETINET_IP_H
 1252 endif
 1253 $(call using,$(HAVE_NETINET_IP_H),netinet/ip.h)
 1254 endif
 1255 
 1256 ifndef $(HAVE_NETINET_IP_ICMP_H)
 1257 HAVE_NETINET_IP_ICMP_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=netinet/ip_icmp.h have_header_h)
 1258 ifeq ($(HAVE_NETINET_IP_ICMP_H),1)
 1259 	CONFIG_CFLAGS += -DHAVE_NETINET_IP_ICMP_H
 1260 endif
 1261 $(call using,$(HAVE_NETINET_IP_ICMP_H),netinet/ip_icmp.h)
 1262 endif
 1263 
 1264 ifndef $(HAVE_NETINET_SCTP_H)
 1265 HAVE_NETINET_SCTP_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=netinet/sctp.h have_header_h)
 1266 ifeq ($(HAVE_NETINET_SCTP_H),1)
 1267 	CONFIG_CFLAGS += -DHAVE_NETINET_SCTP_H
 1268 endif
 1269 $(call using,$(HAVE_NETINET_SCTP_H),netinet/sctp.h)
 1270 endif
 1271 
 1272 ifndef $(HAVE_NETINET_TCP_H)
 1273 HAVE_NETINET_TCP_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=netinet/tcp.h have_header_h)
 1274 ifeq ($(HAVE_NETINET_TCP_H),1)
 1275 	CONFIG_CFLAGS += -DHAVE_NETINET_TCP_H
 1276 endif
 1277 $(call using,$(HAVE_NETINET_TCP_H),netinet/tcp.h)
 1278 endif
 1279 
 1280 ifndef $(HAVE_UCONTEXT_H)
 1281 HAVE_UCONTEXT_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=ucontext.h have_header_h)
 1282 ifeq ($(HAVE_UCONTEXT_H),1)
 1283 	CONFIG_CFLAGS += -DHAVE_UCONTEXT_H
 1284 endif
 1285 $(call using,$(HAVE_UCONTEXT_H),ucontext.h)
 1286 endif
 1287 
 1288 ifndef $(HAVE_USTAT_H)
 1289 HAVE_USTAT_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=ustat.h have_header_h)
 1290 ifeq ($(HAVE_USTAT_H),1)
 1291 	CONFIG_CFLAGS += -DHAVE_USTAT_H
 1292 endif
 1293 $(call using,$(HAVE_USTAT_H),ustat.h (deprecated))
 1294 endif
 1295 
 1296 ifndef $(HAVE_UTIME_H)
 1297 HAVE_UTIME_H = $(shell $(MAKE) $(MAKE_OPTS) HEADER=utime.h have_header_h)
 1298 ifeq ($(HAVE_UTIME_H),1)
 1299 	CONFIG_CFLAGS += -DHAVE_UTIME_H
 1300 endif
 1301 $(call using,$(HAVE_UTIME_H),utime.h)
 1302 endif
 1303 
 1304 
 1305 $(call check,CPU and compiler features)
 1306 
 1307 ifndef $(HAVE_ALIGNED_64)
 1308 HAVE_ALIGNED_64 = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-aligned-64 have_test_prog)
 1309 ifeq ($(HAVE_ALIGNED_64),1)
 1310 	CONFIG_CFLAGS += -DHAVE_ALIGNED_64
 1311 endif
 1312 $(call using,$(HAVE_ALIGNED_64),64 byte alignment attribute)
 1313 endif
 1314 
 1315 ifndef $(HAVE_ALIGNED_128)
 1316 HAVE_ALIGNED_128 = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-aligned-128 have_test_prog)
 1317 ifeq ($(HAVE_ALIGNED_128),1)
 1318 	CONFIG_CFLAGS += -DHAVE_ALIGNED_128
 1319 endif
 1320 $(call using,$(HAVE_ALIGNED_128),128 byte alignment attribute)
 1321 endif
 1322 
 1323 ifndef $(HAVE_ALIGNED_64K)
 1324 HAVE_ALIGNED_64K = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-aligned-64K have_test_prog)
 1325 ifeq ($(HAVE_ALIGNED_64K),1)
 1326 	CONFIG_CFLAGS += -DHAVE_ALIGNED_64K
 1327 endif
 1328 $(call using,$(HAVE_ALIGNED_64K),64K alignment attribute)
 1329 endif
 1330 
 1331 ifndef $(HAVE_ATOMIC_ADD_FETCH)
 1332 HAVE_ATOMIC_ADD_FETCH = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-atomic_add_fetch have_test_prog)
 1333 ifeq ($(HAVE_ATOMIC_ADD_FETCH),1)
 1334 	CONFIG_CFLAGS += -DHAVE_ATOMIC_ADD_FETCH
 1335 endif
 1336 $(call using,$(HAVE_ATOMIC_ADD_FETCH),__atomic_add_fetch)
 1337 endif
 1338 
 1339 ifndef $(HAVE_ATOMIC_FETCH_ADD_2)
 1340 HAVE_ATOMIC_FETCH_ADD_2 = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-atomic_fetch_add_2 have_test_prog)
 1341 ifeq ($(HAVE_ATOMIC_FETCH_ADD_2),1)
 1342 	CONFIG_CFLAGS += -DHAVE_ATOMIC_FETCH_ADD_2
 1343 endif
 1344 $(call using,$(HAVE_ATOMIC_FETCH_ADD_2),__atomic_fetch_add_2)
 1345 endif
 1346 
 1347 ifndef $(HAVE_ATOMIC_FETCH_ADD_4)
 1348 HAVE_ATOMIC_FETCH_ADD_4 = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-atomic_fetch_add_4 have_test_prog)
 1349 ifeq ($(HAVE_ATOMIC_FETCH_ADD_4),1)
 1350 	CONFIG_CFLAGS += -DHAVE_ATOMIC_FETCH_ADD_4
 1351 endif
 1352 $(call using,$(HAVE_ATOMIC_FETCH_ADD_4),__atomic_fetch_add_4)
 1353 endif
 1354 
 1355 ifndef $(HAVE_ATOMIC_FETCH_ADD_8)
 1356 HAVE_ATOMIC_FETCH_ADD_8 = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-atomic_fetch_add_8 have_test_prog)
 1357 ifeq ($(HAVE_ATOMIC_FETCH_ADD_8),1)
 1358 	CONFIG_CFLAGS += -DHAVE_ATOMIC_FETCH_ADD_8
 1359 endif
 1360 $(call using,$(HAVE_ATOMIC_FETCH_ADD_8),__atomic_fetch_add_8)
 1361 endif
 1362 
 1363 ifndef $(HAVE_ATOMIC)
 1364 HAVE_ATOMIC = $(shell $(MAKE) $(MAKE_OPTS) have_atomic)
 1365 ifeq ($(HAVE_ATOMIC),1)
 1366 	CONFIG_CFLAGS += -DHAVE_ATOMIC
 1367 	CONFIG_LDFLAGS += $(LIB_ATOMIC)
 1368 endif
 1369 $(call using,$(HAVE_ATOMIC),atomics with $(LIB_ATOMIC))
 1370 endif
 1371 
 1372 ifndef $(HAVE_ATTRIBUTE_FALLTHROUGH)
 1373 HAVE_ATTRIBUTE_FALLTHROUGH = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-attr-fallthrough have_test_prog)
 1374 ifeq ($(HAVE_ATTRIBUTE_FALLTHROUGH),1)
 1375 	CONFIG_CFLAGS += -DHAVE_ATTRIBUTE_FALLTHROUGH
 1376 endif
 1377 $(call using,$(HAVE_ATTRIBUTE_FALLTHROUGH),__attribute__((fallthrough)))
 1378 endif
 1379 
 1380 ifndef $(HAVE_ASM_DARN)
 1381 HAVE_ASM_DARN = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-asm-darn have_test_prog)
 1382 ifeq ($(HAVE_ASM_DARN),1)
 1383 	CONFIG_CFLAGS += -DHAVE_ASM_DARN
 1384 endif
 1385 $(call using,$(HAVE_ASM_DARN),darn instruction (power9))
 1386 endif
 1387 
 1388 ifndef $(HAVE_LABEL_AS_VALUE)
 1389 HAVE_LABEL_AS_VALUE = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-label-as-value have_test_prog)
 1390 ifeq ($(HAVE_LABEL_AS_VALUE),1)
 1391 	CONFIG_CFLAGS += -DHAVE_LABEL_AS_VALUE
 1392 endif
 1393 $(call using,$(HAVE_LABEL_AS_VALUE),label as value feature)
 1394 endif
 1395 
 1396 ifndef $(HAVE_ASM_NOP)
 1397 HAVE_ASM_NOP = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-asm-nop have_test_prog)
 1398 ifeq ($(HAVE_ASM_NOP),1)
 1399 	CONFIG_CFLAGS += -DHAVE_ASM_NOP
 1400 endif
 1401 $(call using,$(HAVE_ASM_NOP),nop instruction)
 1402 endif
 1403 
 1404 ifndef $(HAVE_ASM_NOTHING)
 1405 HAVE_ASM_NOTHING = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-asm-nothing have_test_prog)
 1406 ifeq ($(HAVE_ASM_NOTHING),1)
 1407 	CONFIG_CFLAGS += -DHAVE_ASM_NOTHING
 1408 endif
 1409 $(call using,$(HAVE_ASM_NOTHING),asm(""))
 1410 endif
 1411 
 1412 ifndef $(HAVE_ASM_PAUSE)
 1413 HAVE_ASM_PAUSE = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-asm-pause have_test_prog)
 1414 ifeq ($(HAVE_ASM_PAUSE),1)
 1415 	CONFIG_CFLAGS += -DHAVE_ASM_PAUSE
 1416 endif
 1417 $(call using,$(HAVE_ASM_PAUSE),pause instruction (x86))
 1418 endif
 1419 
 1420 ifndef $(HAVE_ASM_RDRAND)
 1421 HAVE_ASM_RDRAND = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-asm-rdrand have_test_prog)
 1422 ifeq ($(HAVE_ASM_RDRAND),1)
 1423 	CONFIG_CFLAGS += -DHAVE_ASM_RDRAND
 1424 endif
 1425 $(call using,$(HAVE_ASM_RDRAND),rdrand instruction (x86))
 1426 endif
 1427 
 1428 ifndef $(HAVE___RESTRICT)
 1429 HAVE___RESTRICT = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-__restrict have_test_prog)
 1430 ifeq ($(HAVE___RESTRICT),1)
 1431 	CONFIG_CFLAGS += -DHAVE___RESTRICT
 1432 endif
 1433 $(call using,$(HAVE___RESTRICT),__restrict keyword)
 1434 endif
 1435 
 1436 ifndef $(HAVE_ASM_YIELD)
 1437 HAVE_ASM_YIELD = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-asm-yield have_test_prog)
 1438 ifeq ($(HAVE_ASM_YIELD),1)
 1439 	CONFIG_CFLAGS += -DHAVE_ASM_YIELD
 1440 endif
 1441 $(call using,$(HAVE_ASM_YIELD),yield instruction (ARM))
 1442 endif
 1443 
 1444 ifndef $(HAVE_TARGET_CLONES)
 1445 HAVE_TARGET_CLONES = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-target-clones have_test_prog)
 1446 ifeq ($(HAVE_TARGET_CLONES),1)
 1447 	CONFIG_CFLAGS += -DHAVE_TARGET_CLONES
 1448 endif
 1449 $(call using,$(HAVE_TARGET_CLONES),target_clones attribute)
 1450 endif
 1451 
 1452 ifndef $(HAVE_VECMATH)
 1453 HAVE_VECMATH = $(shell $(MAKE) $(MAKE_OPTS) have_vecmath)
 1454 ifeq ($(HAVE_VECMATH),1)
 1455 	CONFIG_CFLAGS += -DHAVE_VECMATH
 1456 endif
 1457 $(call using,$(HAVE_VECMATH),vector math)
 1458 endif
 1459 
 1460 ifndef $(HAVE_VLA_ARG)
 1461 HAVE_VLA_ARG = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-vla-arg have_test_prog)
 1462 ifeq ($(HAVE_VLA_ARG),1)
 1463 	CONFIG_CFLAGS += -DHAVE_VLA_ARG
 1464 endif
 1465 $(call using,$(HAVE_VLA_ARG),variable length array function args)
 1466 endif
 1467 
 1468 
 1469 $(call check,types)
 1470 
 1471 ifndef $(HAVE_COMPLEX)
 1472 HAVE_COMPLEX = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-complex have_test_prog)
 1473 ifeq ($(HAVE_COMPLEX),1)
 1474 	CONFIG_CFLAGS += -DHAVE_COMPLEX
 1475 endif
 1476 $(call using,$(HAVE_COMPLEX),complex)
 1477 endif
 1478 
 1479 ifndef $(HAVE_DADDR_T)
 1480 HAVE_DADDR_T = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-daddr_t have_test_prog)
 1481 ifeq ($(HAVE_DADDR_T),1)
 1482 	CONFIG_CFLAGS += -DHAVE_DADDR_T
 1483 endif
 1484 $(call using,$(HAVE_DADDR_T),daddr_t)
 1485 endif
 1486 
 1487 ifndef $(HAVE_DVD_AUTHINFO)
 1488 HAVE_DVD_AUTHINFO = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-dvd_authinfo have_test_prog)
 1489 ifeq ($(HAVE_DVD_AUTHINFO),1)
 1490 	CONFIG_CFLAGS += -DHAVE_DVD_AUTHINFO
 1491 endif
 1492 $(call using,$(HAVE_DVD_AUTHINFO),dvd_authinfo)
 1493 endif
 1494 
 1495 ifndef $(HAVE_DVD_STRUCT)
 1496 HAVE_DVD_STRUCT = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-dvd_struct have_test_prog)
 1497 ifeq ($(HAVE_DVD_STRUCT),1)
 1498 	CONFIG_CFLAGS += -DHAVE_DVD_STRUCT
 1499 endif
 1500 $(call using,$(HAVE_DVD_STRUCT),dvd_struct)
 1501 endif
 1502 
 1503 ifndef $(HAVE_FLOAT_DECIMAL32)
 1504 HAVE_FLOAT_DECIMAL32 = $(shell $(MAKE) $(MAKE_OPTS) FLOAT_TYPE=_Decimal32 have_float)
 1505 ifeq ($(HAVE_FLOAT_DECIMAL32),1)
 1506 	CONFIG_CFLAGS += -DHAVE_FLOAT_DECIMAL32
 1507 endif
 1508 $(call using,$(HAVE_FLOAT_DECIMAL32),float decimal32)
 1509 endif
 1510 
 1511 ifndef $(HAVE_FLOAT_DECIMAL64)
 1512 HAVE_FLOAT_DECIMAL64 = $(shell $(MAKE) $(MAKE_OPTS) FLOAT_TYPE=_Decimal64 have_float)
 1513 ifeq ($(HAVE_FLOAT_DECIMAL64),1)
 1514 	CONFIG_CFLAGS += -DHAVE_FLOAT_DECIMAL64
 1515 endif
 1516 $(call using,$(HAVE_FLOAT_DECIMAL64),float decimal64)
 1517 endif
 1518 
 1519 ifndef $(HAVE_FLOAT_DECIMAL128)
 1520 HAVE_FLOAT_DECIMAL128 = $(shell $(MAKE) $(MAKE_OPTS) FLOAT_TYPE=_Decimal128 have_float)
 1521 ifeq ($(HAVE_FLOAT_DECIMAL128),1)
 1522 	CONFIG_CFLAGS += -DHAVE_FLOAT_DECIMAL128
 1523 endif
 1524 $(call using,$(HAVE_FLOAT_DECIMAL128),float decimal128)
 1525 endif
 1526 
 1527 ifndef $(HAVE_FLOAT16)
 1528 HAVE_FLOAT16 = $(shell $(MAKE) $(MAKE_OPTS) FLOAT_TYPE=__fp16 have_float)
 1529 ifeq ($(HAVE_FLOAT16),1)
 1530 	CONFIG_CFLAGS += -DHAVE_FLOAT16
 1531 endif
 1532 $(call using,$(HAVE_FLOAT16),float16)
 1533 endif
 1534 
 1535 ifndef $(HAVE_FLOAT32)
 1536 HAVE_FLOAT32 = $(shell $(MAKE) $(MAKE_OPTS) FLOAT_TYPE=_Float32 have_float)
 1537 ifeq ($(HAVE_FLOAT32),1)
 1538 	CONFIG_CFLAGS += -DHAVE_FLOAT32
 1539 endif
 1540 $(call using,$(HAVE_FLOAT32),float32)
 1541 endif
 1542 
 1543 ifndef $(HAVE_FLOAT64)
 1544 HAVE_FLOAT64 = $(shell $(MAKE) $(MAKE_OPTS) FLOAT_TYPE=_Float64 have_float)
 1545 ifeq ($(HAVE_FLOAT64),1)
 1546 	CONFIG_CFLAGS += -DHAVE_FLOAT64
 1547 endif
 1548 $(call using,$(HAVE_FLOAT64),float64)
 1549 endif
 1550 
 1551 ifndef $(HAVE_FLOAT80)
 1552 HAVE_FLOAT80 = $(shell $(MAKE) $(MAKE_OPTS) FLOAT_TYPE=__float80 have_float)
 1553 ifeq ($(HAVE_FLOAT80),1)
 1554 	CONFIG_CFLAGS += -DHAVE_FLOAT80
 1555 endif
 1556 $(call using,$(HAVE_FLOAT80),float80)
 1557 endif
 1558 
 1559 ifndef $(HAVE_FLOAT128)
 1560 HAVE_FLOAT128 = $(shell $(MAKE) $(MAKE_OPTS) FLOAT_TYPE=__float128 have_float)
 1561 ifeq ($(HAVE_FLOAT128),1)
 1562 	CONFIG_CFLAGS += -DHAVE_FLOAT128
 1563 endif
 1564 $(call using,$(HAVE_FLOAT128),float128)
 1565 endif
 1566 
 1567 ifndef $(HAVE_INO64_T)
 1568 HAVE_INO64_T = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-ino64_t have_test_prog)
 1569 ifeq ($(HAVE_INO64_T),1)
 1570 	CONFIG_CFLAGS += -DHAVE_INO64_T
 1571 endif
 1572 $(call using,$(HAVE_INO64_T),ino64_t)
 1573 endif
 1574 
 1575 ifndef $(HAVE_INT128_T)
 1576 HAVE_INT128_T = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-int128_t have_test_prog)
 1577 ifeq ($(HAVE_INT128_T),1)
 1578 	CONFIG_CFLAGS += -DHAVE_INT128_T
 1579 endif
 1580 $(call using,$(HAVE_INT128_T),int128_t support)
 1581 endif
 1582 
 1583 ifndef $(HAVE_KERNEL_LONG_T)
 1584 HAVE_KERNEL_LONG_T = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-kernel_long_t have_test_prog)
 1585 ifeq ($(HAVE_KERNEL_LONG_T),1)
 1586 	CONFIG_CFLAGS += -DHAVE_KERNEL_LONG_T
 1587 endif
 1588 $(call using,$(HAVE_KERNEL_LONG_T),__kernel_long_t)
 1589 endif
 1590 
 1591 ifndef $(HAVE_KERNEL_ULONG_T)
 1592 HAVE_KERNEL_ULONG_T = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-kernel_ulong_t have_test_prog)
 1593 ifeq ($(HAVE_KERNEL_ULONG_T),1)
 1594 	CONFIG_CFLAGS += -DHAVE_KERNEL_ULONG_T
 1595 endif
 1596 $(call using,$(HAVE_KERNEL_ULONG_T),__kernel_ulong_t)
 1597 endif
 1598 
 1599 ifndef $(HAVE_LANDLOCK_RULE_TYPE)
 1600 HAVE_LANDLOCK_RULE_TYPE = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-landlock_rule_type have_test_prog)
 1601 ifeq ($(HAVE_LANDLOCK_RULE_TYPE),1)
 1602 	CONFIG_CFLAGS += -DHAVE_LANDLOCK_RULE_TYPE
 1603 endif
 1604 $(call using,$(HAVE_LANDLOCK_RULE_TYPE),landlock_rule_type)
 1605 endif
 1606 
 1607 ifndef $(HAVE_LOFF_T)
 1608 HAVE_LOFF_T = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-loff_t have_test_prog)
 1609 ifeq ($(HAVE_LOFF_T),1)
 1610 	CONFIG_CFLAGS += -DHAVE_LOFF_T
 1611 endif
 1612 $(call using,$(HAVE_LOFF_T),loff_t)
 1613 endif
 1614 
 1615 ifndef $(HAVE_MODE_T)
 1616 HAVE_MODE_T = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-mode_t have_test_prog)
 1617 ifeq ($(HAVE_MODE_T),1)
 1618 	CONFIG_CFLAGS += -DHAVE_MODE_T
 1619 endif
 1620 $(call using,$(HAVE_MODE_T),mode_t)
 1621 endif
 1622 
 1623 ifndef $(HAVE_OFF_T)
 1624 HAVE_OFF_T = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-off_t have_test_prog)
 1625 ifeq ($(HAVE_OFF_T),1)
 1626 	CONFIG_CFLAGS += -DHAVE_OFF_T
 1627 endif
 1628 $(call using,$(HAVE_OFF_T),off_t)
 1629 endif
 1630 
 1631 ifndef $(HAVE_OFF64_T)
 1632 HAVE_OFF64_T = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-off64_t have_test_prog)
 1633 ifeq ($(HAVE_OFF64_T),1)
 1634 	CONFIG_CFLAGS += -DHAVE_OFF64_T
 1635 endif
 1636 $(call using,$(HAVE_OFF64_T),off64_t)
 1637 endif
 1638 
 1639 ifndef $(HAVE_PTHREAD_MUTEXATTR_T)
 1640 HAVE_PTHREAD_MUTEXATTR_T = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-pthread-mutexattr_t  have_test_prog)
 1641 ifeq ($(HAVE_PTHREAD_MUTEXATTR_T),1)
 1642 	CONFIG_CFLAGS += -DHAVE_PTHREAD_MUTEXATTR_T
 1643 endif
 1644 $(call using,$(HAVE_PTHREAD_MUTEXATTR_T),pthread_mutexattr_t)
 1645 endif
 1646 
 1647 ifndef $(HAVE_CDROM_BLK)
 1648 HAVE_CDROM_BLK = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-cdrom_blk have_test_prog)
 1649 ifeq ($(HAVE_CDROM_BLK),1)
 1650 	CONFIG_CFLAGS += -DHAVE_CDROM_BLK
 1651 endif
 1652 $(call using,$(HAVE_CDROM_BLK),struct cdrom_blk)
 1653 endif
 1654 
 1655 ifndef $(HAVE_CDROM_MCN)
 1656 HAVE_CDROM_MCN = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-cdrom_mcn have_test_prog)
 1657 ifeq ($(HAVE_CDROM_MCN),1)
 1658 	CONFIG_CFLAGS += -DHAVE_CDROM_MCN
 1659 endif
 1660 $(call using,$(HAVE_CDROM_MCN),struct cdrom_mcn)
 1661 endif
 1662 
 1663 ifndef $(HAVE_CDROM_MSF)
 1664 HAVE_CDROM_MSF = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-cdrom_msf have_test_prog)
 1665 ifeq ($(HAVE_CDROM_MSF),1)
 1666 	CONFIG_CFLAGS += -DHAVE_CDROM_MSF
 1667 endif
 1668 $(call using,$(HAVE_CDROM_MSF),struct cdrom_msf)
 1669 endif
 1670 
 1671 ifndef $(HAVE_CDROM_READ_AUDIO)
 1672 HAVE_CDROM_READ_AUDIO = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-cdrom_read_audio have_test_prog)
 1673 ifeq ($(HAVE_CDROM_READ_AUDIO),1)
 1674 	CONFIG_CFLAGS += -DHAVE_CDROM_READ_AUDIO
 1675 endif
 1676 $(call using,$(HAVE_CDROM_READ_AUDIO),struct cdrom_read_audio)
 1677 endif
 1678 
 1679 ifndef $(HAVE_CDROM_SUBCHNL)
 1680 HAVE_CDROM_SUBCHNL = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-cdrom_subchnl have_test_prog)
 1681 ifeq ($(HAVE_CDROM_SUBCHNL),1)
 1682 	CONFIG_CFLAGS += -DHAVE_CDROM_SUBCHNL
 1683 endif
 1684 $(call using,$(HAVE_CDROM_SUBCHNL),struct cdrom_subchnl)
 1685 endif
 1686 
 1687 ifndef $(HAVE_CDROM_TI)
 1688 HAVE_CDROM_TI = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-cdrom_ti have_test_prog)
 1689 ifeq ($(HAVE_CDROM_TI),1)
 1690 	CONFIG_CFLAGS += -DHAVE_CDROM_TI
 1691 endif
 1692 $(call using,$(HAVE_CDROM_TI),struct cdrom_ti)
 1693 endif
 1694 
 1695 ifndef $(HAVE_CDROM_TOCENTRY)
 1696 HAVE_CDROM_TOCENTRY = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-cdrom_tocentry have_test_prog)
 1697 ifeq ($(HAVE_CDROM_TOCENTRY),1)
 1698 	CONFIG_CFLAGS += -DHAVE_CDROM_TOCENTRY
 1699 endif
 1700 $(call using,$(HAVE_CDROM_TOCENTRY),struct cdrom_tocentry)
 1701 endif
 1702 
 1703 ifndef $(HAVE_CDROM_TOCHDR)
 1704 HAVE_CDROM_TOCHDR = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-cdrom_tochdr have_test_prog)
 1705 ifeq ($(HAVE_CDROM_TOCHDR),1)
 1706 	CONFIG_CFLAGS += -DHAVE_CDROM_TOCHDR
 1707 endif
 1708 $(call using,$(HAVE_CDROM_TOCHDR),struct cdrom_tochdr)
 1709 endif
 1710 
 1711 ifndef $(HAVE_CDROM_VOLCTRL)
 1712 HAVE_CDROM_VOLCTRL = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-cdrom_volctrl have_test_prog)
 1713 ifeq ($(HAVE_CDROM_VOLCTRL),1)
 1714 	CONFIG_CFLAGS += -DHAVE_CDROM_VOLCTRL
 1715 endif
 1716 $(call using,$(HAVE_CDROM_VOLCTRL),struct cdrom_volctrl)
 1717 endif
 1718 
 1719 ifndef $(HAVE_CONSOLEFONTDESC)
 1720 HAVE_CONSOLEFONTDESC = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-consolefontdesc have_test_prog)
 1721 ifeq ($(HAVE_CONSOLEFONTDESC),1)
 1722 	CONFIG_CFLAGS += -DHAVE_CONSOLEFONTDESC
 1723 endif
 1724 $(call using,$(HAVE_CONSOLEFONTDESC),struct consolefontdesc)
 1725 endif
 1726 
 1727 ifndef $(HAVE_FLOPPY_FDC_STATE)
 1728 HAVE_FLOPPY_FDC_STATE = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-floppy_fdc_state have_test_prog)
 1729 ifeq ($(HAVE_FLOPPY_FDC_STATE),1)
 1730 	CONFIG_CFLAGS += -DHAVE_FLOPPY_FDC_STATE
 1731 endif
 1732 $(call using,$(HAVE_FLOPPY_FDC_STATE),struct floppy_fdc_state)
 1733 endif
 1734 
 1735 ifndef $(HAVE_FLOPPY_DRIVE_STRUCT)
 1736 HAVE_FLOPPY_DRIVE_STRUCT = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-floppy_drive_struct have_test_prog)
 1737 ifeq ($(HAVE_FLOPPY_DRIVE_STRUCT),1)
 1738 	CONFIG_CFLAGS += -DHAVE_FLOPPY_DRIVE_STRUCT
 1739 endif
 1740 $(call using,$(HAVE_FLOPPY_DRIVE_STRUCT),struct floppy_drive_struct)
 1741 endif
 1742 
 1743 ifndef $(HAVE_FLOPPY_STRUCT)
 1744 HAVE_FLOPPY_STRUCT = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-floppy_struct have_test_prog)
 1745 ifeq ($(HAVE_FLOPPY_STRUCT),1)
 1746 	CONFIG_CFLAGS += -DHAVE_FLOPPY_STRUCT
 1747 endif
 1748 $(call using,$(HAVE_FLOPPY_STRUCT),struct floppy_struct)
 1749 endif
 1750 
 1751 ifndef $(HAVE_DM_IOCTL)
 1752 HAVE_DM_IOCTL = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-dm_ioctl have_test_prog)
 1753 ifeq ($(HAVE_DM_IOCTL),1)
 1754 	CONFIG_CFLAGS += -DHAVE_DM_IOCTL
 1755 endif
 1756 $(call using,$(HAVE_DM_IOCTL),struct dm_ioctl)
 1757 endif
 1758 
 1759 ifndef $(HAVE_FSVERITY_DIGEST)
 1760 HAVE_FSVERITY_DIGEST = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-fsverity_digest have_test_prog)
 1761 ifeq ($(HAVE_FSVERITY_DIGEST),1)
 1762 	CONFIG_CFLAGS += -DHAVE_FSVERITY_DIGEST
 1763 endif
 1764 $(call using,$(HAVE_FSVERITY_DIGEST),struct fsverity_digest)
 1765 endif
 1766 
 1767 ifndef $(HAVE_FSVERITY_ENABLE_ARG)
 1768 HAVE_FSVERITY_ENABLE_ARG = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-fsverity_enable_arg have_test_prog)
 1769 ifeq ($(HAVE_FSVERITY_ENABLE_ARG),1)
 1770 	CONFIG_CFLAGS += -DHAVE_FSVERITY_ENABLE_ARG
 1771 endif
 1772 $(call using,$(HAVE_FSVERITY_ENABLE_ARG),struct fsverity_enable_arg)
 1773 endif
 1774 
 1775 ifndef $(HAVE_IFCONF)
 1776 HAVE_IFCONF = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-ifconf have_test_prog)
 1777 ifeq ($(HAVE_IFCONF),1)
 1778 	CONFIG_CFLAGS += -DHAVE_IFCONF
 1779 endif
 1780 $(call using,$(HAVE_IFCONF),struct ifconf)
 1781 endif
 1782 
 1783 ifndef $(HAVE_ICMPHDR)
 1784 HAVE_ICMPHDR = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-icmphdr have_test_prog)
 1785 ifeq ($(HAVE_ICMPHDR),1)
 1786 	CONFIG_CFLAGS += -DHAVE_ICMPHDR
 1787 endif
 1788 $(call using,$(HAVE_ICMPHDR),struct iphdr and icmphdr)
 1789 endif
 1790 
 1791 ifndef $(HAVE_KBDIACRS)
 1792 HAVE_KBDIACRS = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-kbdiacrs have_test_prog)
 1793 ifeq ($(HAVE_KBDIACRS),1)
 1794 	CONFIG_CFLAGS += -DHAVE_KBDIACRS
 1795 endif
 1796 $(call using struct,$(HAVE_KBDIACRS),struct kbdiacrs)
 1797 endif
 1798 
 1799 ifndef $(HAVE_KBENTRY)
 1800 HAVE_KBENTRY = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-kbentry have_test_prog)
 1801 ifeq ($(HAVE_KBENTRY),1)
 1802 	CONFIG_CFLAGS += -DHAVE_KBENTRY
 1803 endif
 1804 $(call using,$(HAVE_KBENTRY),struct kbentry)
 1805 endif
 1806 
 1807 ifndef $(HAVE_KBKEYCODE)
 1808 HAVE_KBKEYCODE = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-kbkeycode have_test_prog)
 1809 ifeq ($(HAVE_KBKEYCODE),1)
 1810 	CONFIG_CFLAGS += -DHAVE_KBKEYCODE
 1811 endif
 1812 $(call using,$(HAVE_KBKEYCODE),struct kbkeycode)
 1813 endif
 1814 
 1815 ifndef $(HAVE_KBSENTRY)
 1816 HAVE_KBSENTRY = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-kbsentry have_test_prog)
 1817 ifeq ($(HAVE_KBSENTRY),1)
 1818 	CONFIG_CFLAGS += -DHAVE_KBSENTRY
 1819 endif
 1820 $(call using,$(HAVE_KBSENTRY),struct kbsentry)
 1821 endif
 1822 
 1823 ifndef $(HAVE_LANDLOCK_RULESET_ATTR)
 1824 HAVE_LANDLOCK_RULESET_ATTR = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-landlock_ruleset_attr have_test_prog)
 1825 ifeq ($(HAVE_LANDLOCK_RULESET_ATTR),1)
 1826 	CONFIG_CFLAGS += -DHAVE_LANDLOCK_RULESET_ATTR
 1827 endif
 1828 $(call using,$(HAVE_LANDLOCK_RULESET_ATTR),struct landlock_ruleset_attr)
 1829 endif
 1830 
 1831 ifndef $(HAVE_MEDIA_DEVICE_INFO)
 1832 HAVE_MEDIA_DEVICE_INFO = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-media_device_info have_test_prog)
 1833 ifeq ($(HAVE_MEDIA_DEVICE_INFO),1)
 1834 	CONFIG_CFLAGS += -DHAVE_MEDIA_DEVICE_INFO
 1835 endif
 1836 $(call using,$(HAVE_MEDIA_DEVICE_INFO),struct media_device_info)
 1837 endif
 1838 
 1839 ifndef $(HAVE_MSGINFO)
 1840 HAVE_MSGINFO = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-msginfo have_test_prog)
 1841 ifeq ($(HAVE_MSGINFO),1)
 1842 	CONFIG_CFLAGS += -DHAVE_MSGINFO
 1843 endif
 1844 $(call using,$(HAVE_MSGINFO),struct msginfo)
 1845 endif
 1846 
 1847 ifndef $(HAVE_MTRR_GENTRY)
 1848 HAVE_MTRR_GENTRY = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-mtrr_gentry have_test_prog)
 1849 ifeq ($(HAVE_MTRR_GENTRY),1)
 1850 	CONFIG_CFLAGS += -DHAVE_MTRR_GENTRY
 1851 endif
 1852 $(call using,$(HAVE_MTRR_GENTRY),struct mtrr_gentry)
 1853 endif
 1854 
 1855 ifndef $(HAVE_OPEN_HOW)
 1856 HAVE_OPEN_HOW = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-open_how have_test_prog)
 1857 ifeq ($(HAVE_OPEN_HOW),1)
 1858 	CONFIG_CFLAGS += -DHAVE_OPEN_HOW
 1859 endif
 1860 $(call using,$(HAVE_OPEN_HOW),struct open_how)
 1861 endif
 1862 
 1863 ifndef $(HAVE_RUSAGE_RU_MINFLT)
 1864 HAVE_RUSAGE_RU_MINFLT = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-rusage_ru_minflt have_test_prog)
 1865 ifeq ($(HAVE_RUSAGE_RU_MINFLT),1)
 1866 	CONFIG_CFLAGS += -DHAVE_RUSAGE_RU_MINFLT
 1867 endif
 1868 $(call using,$(HAVE_RUSAGE_RU_MINFLT),struct rusage.ru_minflt)
 1869 endif
 1870 
 1871 ifndef $(HAVE_RUSAGE_RU_NVCSW)
 1872 HAVE_RUSAGE_RU_NVCSW = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-rusage_ru_nvcsw have_test_prog)
 1873 ifeq ($(HAVE_RUSAGE_RU_NVCSW),1)
 1874 	CONFIG_CFLAGS += -DHAVE_RUSAGE_RU_NVCSW
 1875 endif
 1876 $(call using,$(HAVE_RUSAGE_RU_NVCSW),struct rusage.ru_nvcsw)
 1877 endif
 1878 
 1879 ifndef $(HAVE_SECCOMP_NOTIF_SIZES)
 1880 HAVE_SECCOMP_NOTIF_SIZES = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-seccomp_notif_sizes have_test_prog)
 1881 ifeq ($(HAVE_SECCOMP_NOTIF_SIZES),1)
 1882 	CONFIG_CFLAGS += -DHAVE_SECCOMP_NOTIF_SIZES
 1883 endif
 1884 $(call using,$(HAVE_SECCOMP_NOTIF_SIZES),struct seccomp_notif_sizes)
 1885 endif
 1886 
 1887 ifndef $(HAVE_SERIAL_ICOUNTER)
 1888 HAVE_SERIAL_ICOUNTER = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-serial-icounter have_test_prog)
 1889 ifeq ($(HAVE_SERIAL_ICOUNTER),1)
 1890 	CONFIG_CFLAGS += -DHAVE_SERIAL_ICOUNTER
 1891 endif
 1892 $(call using,$(HAVE_SERIAL_ICOUNTER),struct serial_icounter_struct)
 1893 endif
 1894 
 1895 ifndef $(HAVE_SERIAL_STRUCT)
 1896 HAVE_SERIAL_STRUCT = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-serial-struct have_test_prog)
 1897 ifeq ($(HAVE_SERIAL_STRUCT),1)
 1898 	CONFIG_CFLAGS += -DHAVE_SERIAL_STRUCT
 1899 endif
 1900 $(call using,$(HAVE_SERIAL_STRUCT),struct serial_struct)
 1901 endif
 1902 
 1903 ifndef $(HAVE_SHMID_DS)
 1904 HAVE_SHMID_DS = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-shmid-ds have_test_prog)
 1905 ifeq ($(HAVE_SHMID_DS),1)
 1906 	CONFIG_CFLAGS += -DHAVE_SHMID_DS
 1907 endif
 1908 $(call using,$(HAVE_SHMID_DS),struct shmid_ds)
 1909 endif
 1910 
 1911 ifndef $(HAVE_SHMINFO)
 1912 HAVE_SHMINFO = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-shminfo have_test_prog)
 1913 ifeq ($(HAVE_SHMINFO),1)
 1914 	CONFIG_CFLAGS += -DHAVE_SHMINFO
 1915 endif
 1916 $(call using,$(HAVE_SHMINFO),struct shminfo)
 1917 endif
 1918 
 1919 ifndef $(HAVE_SND_CTL_CARD_INFO)
 1920 HAVE_SND_CTL_CARD_INFO = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-snd_ctl_card_info have_test_prog)
 1921 ifeq ($(HAVE_SND_CTL_CARD_INFO),1)
 1922 	CONFIG_CFLAGS += -DHAVE_SND_CTL_CARD_INFO
 1923 endif
 1924 $(call using,$(HAVE_SND_CTL_CARD_INFO),struct snd_ctl_card_info)
 1925 endif
 1926 
 1927 ifndef $(HAVE_SND_CTL_TLV)
 1928 HAVE_SND_CTL_TLV = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-snd_ctl_tlv have_test_prog)
 1929 ifeq ($(HAVE_SND_CTL_TLV),1)
 1930 	CONFIG_CFLAGS += -DHAVE_SND_CTL_TLV
 1931 endif
 1932 $(call using,$(HAVE_SND_CTL_TLV),struct snd_ctl_tlv)
 1933 endif
 1934 
 1935 ifndef $(HAVE_SOCKADDR_UN)
 1936 HAVE_SOCKADDR_UN = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-sockaddr_un have_test_prog)
 1937 ifeq ($(HAVE_SOCKADDR_UN),1)
 1938 	CONFIG_CFLAGS += -DHAVE_SOCKADDR_UN
 1939 endif
 1940 $(call using,$(HAVE_SOCKADDR_UN),struct sockaddr_un)
 1941 endif
 1942 
 1943 ifndef $(HAVE_TERMIOS)
 1944 HAVE_TERMIOS = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-termios have_test_prog)
 1945 ifeq ($(HAVE_TERMIOS),1)
 1946 	CONFIG_CFLAGS += -DHAVE_TERMIOS
 1947 endif
 1948 $(call using,$(HAVE_TERMIOS),struct termios)
 1949 endif
 1950 
 1951 ifndef $(HAVE_UNIMAPDESC)
 1952 HAVE_UNIMAPDESC = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-unimapdesc have_test_prog)
 1953 ifeq ($(HAVE_UNIMAPDESC),1)
 1954 	CONFIG_CFLAGS += -DHAVE_UNIMAPDESC
 1955 endif
 1956 $(call using,$(HAVE_UNIMAPDESC),struct unimapdesc)
 1957 endif
 1958 
 1959 ifndef $(HAVE_USER_DESC)
 1960 HAVE_USER_DESC = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-user-desc have_test_prog)
 1961 ifeq ($(HAVE_USER_DESC),1)
 1962 	CONFIG_CFLAGS += -DHAVE_USER_DESC
 1963 endif
 1964 $(call using,$(HAVE_USER_DESC),struct user_desc)
 1965 endif
 1966 
 1967 ifndef $(HAVE_VT_CONSIZE)
 1968 HAVE_VT_CONSIZE = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-vt_consize have_test_prog)
 1969 ifeq ($(HAVE_VT_CONSIZE),1)
 1970 	CONFIG_CFLAGS += -DHAVE_VT_CONSIZE
 1971 endif
 1972 $(call using,$(HAVE_VT_CONSIZE),struct vt_consize)
 1973 endif
 1974 
 1975 ifndef $(HAVE_VT_MODE)
 1976 HAVE_VT_MODE = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-vt_mode have_test_prog)
 1977 ifeq ($(HAVE_VT_MODE),1)
 1978 	CONFIG_CFLAGS += -DHAVE_VT_MODE
 1979 endif
 1980 $(call using,$(HAVE_VT_MODE),struct vt_mode)
 1981 endif
 1982 
 1983 ifndef $(HAVE_VT_SIZES)
 1984 HAVE_VT_SIZES = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-vt_sizes have_test_prog)
 1985 ifeq ($(HAVE_VT_SIZES),1)
 1986 	CONFIG_CFLAGS += -DHAVE_VT_SIZES
 1987 endif
 1988 $(call using,$(HAVE_VT_SIZES),struct vt_sizes)
 1989 endif
 1990 
 1991 ifndef $(HAVE_VT_STAT)
 1992 HAVE_VT_STAT = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-vt_stat have_test_prog)
 1993 ifeq ($(HAVE_VT_STAT),1)
 1994 	CONFIG_CFLAGS += -DHAVE_VT_STAT
 1995 endif
 1996 $(call using,$(HAVE_VT_STAT),struct vt_stat)
 1997 endif
 1998 
 1999 ifndef $(HAVE_V4L2_AUDIO)
 2000 HAVE_V4L2_AUDIO = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-v4l2_audio have_test_prog)
 2001 ifeq ($(HAVE_V4L2_AUDIO),1)
 2002 	CONFIG_CFLAGS += -DHAVE_V4L2_AUDIO
 2003 endif
 2004 $(call using,$(HAVE_V4L2_AUDIO),struct v4l2_audio)
 2005 endif
 2006 
 2007 ifndef $(HAVE_V4L2_AUDIOOUT)
 2008 HAVE_V4L2_AUDIOOUT = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-v4l2_audioout have_test_prog)
 2009 ifeq ($(HAVE_V4L2_AUDIOOUT),1)
 2010 	CONFIG_CFLAGS += -DHAVE_V4L2_AUDIOOUT
 2011 endif
 2012 $(call using,$(HAVE_V4L2_AUDIOOUT),struct v4l2_audioout)
 2013 endif
 2014 
 2015 ifndef $(HAVE_V4L2_CAPABILITY)
 2016 HAVE_V4L2_CAPABILITY = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-v4l2_capability have_test_prog)
 2017 ifeq ($(HAVE_V4L2_CAPABILITY),1)
 2018 	CONFIG_CFLAGS += -DHAVE_V4L2_CAPABILITY
 2019 endif
 2020 $(call using,$(HAVE_V4L2_CAPABILITY),struct v4l2_capability)
 2021 endif
 2022 
 2023 ifndef $(HAVE_V4L2_DV_TIMINGS)
 2024 HAVE_V4L2_DV_TIMINGS = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-v4l2_dv_timings have_test_prog)
 2025 ifeq ($(HAVE_V4L2_DV_TIMINGS),1)
 2026 	CONFIG_CFLAGS += -DHAVE_V4L2_DV_TIMINGS
 2027 endif
 2028 $(call using,$(HAVE_V4L2_DV_TIMINGS),struct v4l2_dv_timings)
 2029 endif
 2030 
 2031 ifndef $(HAVE_V4L2_ENC_IDX)
 2032 HAVE_V4L2_ENC_IDX = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-v4l2_enc_idx  have_test_prog)
 2033 ifeq ($(HAVE_V4L2_ENC_IDX),1)
 2034 	CONFIG_CFLAGS += -DHAVE_V4L2_ENC_IDX
 2035 endif
 2036 $(call using,$(HAVE_V4L2_ENC_IDX),struct v4l2_enc_idx)
 2037 endif
 2038 
 2039 ifndef $(HAVE_V4L2_FRAMEBUFFER)
 2040 HAVE_V4L2_FRAMEBUFFER = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-v4l2_framebuffer have_test_prog)
 2041 ifeq ($(HAVE_V4L2_FRAMEBUFFER),1)
 2042 	CONFIG_CFLAGS += -DHAVE_V4L2_FRAMEBUFFER
 2043 endif
 2044 $(call using,$(HAVE_V4L2_FRAMEBUFFER),struct v4l2_framebuffer)
 2045 endif
 2046 
 2047 ifndef $(HAVE_V4L2_JPEGCOMPRESSION)
 2048 HAVE_V4L2_JPEGCOMPRESSION = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-v4l2_jpegcompression have_test_prog)
 2049 ifeq ($(HAVE_V4L2_JPEGCOMPRESSION),1)
 2050 	CONFIG_CFLAGS += -DHAVE_V4L2_JPEGCOMPRESSION
 2051 endif
 2052 $(call using,$(HAVE_V4L2_JPEGCOMPRESSION),struct v4l2_jpegcompression)
 2053 endif
 2054 
 2055 ifndef $(HAVE_V4L2_STD_ID)
 2056 HAVE_V4L2_STD_ID = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-v4l2_std_id have_test_prog)
 2057 ifeq ($(HAVE_V4L2_STD_ID),1)
 2058 	CONFIG_CFLAGS += -DHAVE_V4L2_STD_ID
 2059 endif
 2060 $(call using,$(HAVE_V4L2_STD_ID),type v4l2_std_id)
 2061 endif
 2062 
 2063 ifndef $(HAVE_WINSIZE)
 2064 HAVE_WINSIZE = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-winsize have_test_prog)
 2065 ifeq ($(HAVE_WINSIZE),1)
 2066 	CONFIG_CFLAGS += -DHAVE_WINSIZE
 2067 endif
 2068 $(call using,$(HAVE_WINSIZE),struct winsize)
 2069 endif
 2070 
 2071 
 2072 $(call check,functions and system calls)
 2073 
 2074 ifndef $(HAVE_ACCEPT4)
 2075 HAVE_ACCEPT4 = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-accept4 have_test_prog)
 2076 ifeq ($(HAVE_ACCEPT4),1)
 2077 	CONFIG_CFLAGS += -DHAVE_ACCEPT4
 2078 endif
 2079 $(call using,$(HAVE_ACCEPT4),accept4)
 2080 endif
 2081 
 2082 ifndef $(HAVE_ADJTIME)
 2083 HAVE_ADJTIME = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-adjtime have_test_prog)
 2084 ifeq ($(HAVE_ADJTIME),1)
 2085 	CONFIG_CFLAGS += -DHAVE_ADJTIME
 2086 endif
 2087 $(call using,$(HAVE_ADJTIME),adjtime)
 2088 endif
 2089 
 2090 ifndef $(HAVE_ADJTIMEX)
 2091 HAVE_ADJTIMEX = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-adjtimex have_test_prog)
 2092 ifeq ($(HAVE_ADJTIMEX),1)
 2093 	CONFIG_CFLAGS += -DHAVE_ADJTIMEX
 2094 endif
 2095 $(call using,$(HAVE_ADJTIMEX),adjtimex)
 2096 endif
 2097 
 2098 ifndef $(HAVE_AFFINITY)
 2099 HAVE_AFFINITY = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-affinity have_test_prog)
 2100 ifeq ($(HAVE_AFFINITY),1)
 2101 	CONFIG_CFLAGS += -DHAVE_AFFINITY
 2102 endif
 2103 $(call using,$(HAVE_AFFINITY),affinity scheduling CPU masks)
 2104 endif
 2105 
 2106 ifndef $(HAVE_AIO_CANCEL)
 2107 HAVE_AIO_CANCEL = $(shell $(MAKE) $(MAKE_OPTS) TEST_LIBS='$(CONFIG_LDFLAGS)' TEST_PROG=test-aio-cancel have_test_prog)
 2108 ifeq ($(HAVE_AIO_CANCEL),1)
 2109 	CONFIG_CFLAGS += -DHAVE_AIO_CANCEL
 2110 endif
 2111 $(call using,$(HAVE_AIO_CANCEL),aio_cancel)
 2112 endif
 2113 
 2114 ifndef $(HAVE_AIO_FSYNC)
 2115 HAVE_AIO_FSYNC = $(shell $(MAKE) $(MAKE_OPTS) TEST_LIBS='$(CONFIG_LDFLAGS)' TEST_PROG=test-aio-fsync have_test_prog)
 2116 ifeq ($(HAVE_AIO_FSYNC),1)
 2117 	CONFIG_CFLAGS += -DHAVE_AIO_FSYNC
 2118 endif
 2119 $(call using,$(HAVE_AIO_FSYNC),aio_fsync)
 2120 endif
 2121 
 2122 ifndef $(HAVE_AIO_READ)
 2123 HAVE_AIO_READ = $(shell $(MAKE) $(MAKE_OPTS) TEST_LIBS='$(CONFIG_LDFLAGS)' TEST_PROG=test-aio-read have_test_prog)
 2124 ifeq ($(HAVE_AIO_READ),1)
 2125 	CONFIG_CFLAGS += -DHAVE_AIO_READ
 2126 endif
 2127 $(call using,$(HAVE_AIO_READ),aio_read)
 2128 endif
 2129 
 2130 ifndef $(HAVE_AIO_WRITE)
 2131 HAVE_AIO_WRITE = $(shell $(MAKE) $(MAKE_OPTS) TEST_LIBS='$(CONFIG_LDFLAGS)' TEST_PROG=test-aio-write have_test_prog)
 2132 ifeq ($(HAVE_AIO_WRITE),1)
 2133 	CONFIG_CFLAGS += -DHAVE_AIO_WRITE
 2134 endif
 2135 $(call using,$(HAVE_AIO_WRITE),aio_write)
 2136 endif
 2137 
 2138 ifndef $(HAVE_ARCH_PRCTL)
 2139 HAVE_ARCH_PRCTL = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-arch_prctl have_test_prog)
 2140 ifeq ($(HAVE_ARCH_PRCTL),1)
 2141 	CONFIG_CFLAGS += -DHAVE_ARCH_PRCTL
 2142 endif
 2143 $(call using,$(HAVE_ARCH_PRCTL),arch_prctl)
 2144 endif
 2145 
 2146 ifndef $(HAVE_BRK)
 2147 HAVE_BRK = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-brk have_test_prog)
 2148 ifeq ($(HAVE_BRK),1)
 2149 	CONFIG_CFLAGS += -DHAVE_BRK
 2150 endif
 2151 $(call using,$(HAVE_BRK),brk)
 2152 endif
 2153 
 2154 ifndef $(HAVE_BUILTIN___CLEAR_CACHE)
 2155 HAVE_BUILTIN___CLEAR_CACHE= $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-builtin-__clear_cache have_test_prog)
 2156 ifeq ($(HAVE_BUILTIN___CLEAR_CACHE),1)
 2157 	CONFIG_CFLAGS += -DHAVE_BUILTIN___CLEAR_CACHE
 2158 endif
 2159 $(call using,$(HAVE_BUILTIN___CLEAR_CACHE),__builtin___clear_cache)
 2160 endif
 2161 
 2162 ifndef $(HAVE_BUILTIN_CABSL)
 2163 MATHFUNC=__builtin_cabsl
 2164 export MATHFUNC
 2165 HAVE_BUILTIN_CABSL = $(shell $(MAKE) $(MAKE_OPTS) MATHFUNC=__builtin_cabsl have_mathfunc)
 2166 ifeq ($(HAVE_BUILTIN_CABSL),1)
 2167 	CONFIG_CFLAGS += -DHAVE_BUILTIN_CABSL
 2168 endif
 2169 $(call using,$(HAVE_BUILTIN_CABSL),__builtin_cabsl)
 2170 endif
 2171 
 2172 ifndef $(HAVE_BUILTIN_CCOSL)
 2173 MATHFUNC=__builtin_ccosl
 2174 export MATHFUNC
 2175 HAVE_BUILTIN_CCOSL = $(shell $(MAKE) $(MAKE_OPTS) MATHFUNC=__builtin_ccosl have_mathfunc)
 2176 ifeq ($(HAVE_BUILTIN_CCOSL),1)
 2177 	CONFIG_CFLAGS += -DHAVE_BUILTIN_CCOSL
 2178 endif
 2179 $(call using,$(HAVE_BUILTIN_CCOSL),__builtin_ccosl)
 2180 endif
 2181 
 2182 ifndef $(HAVE_BUILTIN_COS)
 2183 MATHFUNC=__builtin_cos
 2184 export MATHFUNC
 2185 HAVE_BUILTIN_COS = $(shell $(MAKE) $(MAKE_OPTS) MATHFUNC=__builtin_cos have_mathfunc)
 2186 ifeq ($(HAVE_BUILTIN_COS),1)
 2187 	CONFIG_CFLAGS += -DHAVE_BUILTIN_COS
 2188 endif
 2189 $(call using,$(HAVE_BUILTIN_COS),__builtin_cos)
 2190 endif
 2191 
 2192 ifndef $(HAVE_BUILTIN_COSF)
 2193 MATHFUNC=__builtin_cosf
 2194 export MATHFUNC
 2195 HAVE_BUILTIN_COSF = $(shell $(MAKE) $(MAKE_OPTS) MATHFUNC=__builtin_cosf have_mathfunc)
 2196 ifeq ($(HAVE_BUILTIN_COSF),1)
 2197 	CONFIG_CFLAGS += -DHAVE_BUILTIN_COSF
 2198 endif
 2199 $(call using,$(HAVE_BUILTIN_COSL),__builtin_cosf)
 2200 endif
 2201 
 2202 ifndef $(HAVE_BUILTIN_COSL)
 2203 MATHFUNC=__builtin_cosl
 2204 export MATHFUNC
 2205 HAVE_BUILTIN_COSL = $(shell $(MAKE) $(MAKE_OPTS) MATHFUNC=__builtin_cosl have_mathfunc)
 2206 ifeq ($(HAVE_BUILTIN_COSL),1)
 2207 	CONFIG_CFLAGS += -DHAVE_BUILTIN_COSL
 2208 endif
 2209 $(call using,$(HAVE_BUILTIN_COSL),__builtin_cosl)
 2210 endif
 2211 
 2212 ifndef $(HAVE_BUILTIN_COSHL)
 2213 MATHFUNC=__builtin_coshl
 2214 export MATHFUNC
 2215 HAVE_BUILTIN_COSHL = $(shell $(MAKE) $(MAKE_OPTS) MATHFUNC=__builtin_coshl have_mathfunc)
 2216 ifeq ($(HAVE_BUILTIN_COSHL),1)
 2217 	CONFIG_CFLAGS += -DHAVE_BUILTIN_COSHL
 2218 endif
 2219 $(call using,$(HAVE_BUILTIN_COSL),__builtin_coshl)
 2220 endif
 2221 
 2222 ifndef $(HAVE_BUILTIN_CPOW)
 2223 MATHFUNC=__builtin_cpow_
 2224 export MATHFUNC
 2225 HAVE_BUILTIN_CPOW = $(shell $(MAKE) $(MAKE_OPTS) MATHFUNC=__builtin_cpow have_mathfunc)
 2226 ifeq ($(HAVE_BUILTIN_CPOW),1)
 2227 	CONFIG_CFLAGS += -DHAVE_BUILTIN_CPOW
 2228 endif
 2229 $(call using,$(HAVE_BUILTIN_CPOW),__builtin_cpow)
 2230 endif
 2231 
 2232 ifndef $(HAVE_BUILTIN_CSINF)
 2233 MATHFUNC=__builtin_csinf
 2234 export MATHFUNC
 2235 HAVE_BUILTIN_CSINF = $(shell $(MAKE) $(MAKE_OPTS) MATHFUNC=__builtin_csinf have_mathfunc)
 2236 ifeq ($(HAVE_BUILTIN_CSINF),1)
 2237 	CONFIG_CFLAGS += -DHAVE_BUILTIN_CSINF
 2238 endif
 2239 $(call using,$(HAVE_BUILTIN_CSINF),__builtin_csinf)
 2240 endif
 2241 
 2242 ifndef $(HAVE_BUILTIN_CSINL)
 2243 MATHFUNC=__builtin_csinl
 2244 export MATHFUNC
 2245 HAVE_BUILTIN_CSINL = $(shell $(MAKE) $(MAKE_OPTS) MATHFUNC=__builtin_csinl have_mathfunc)
 2246 ifeq ($(HAVE_BUILTIN_CSINL),1)
 2247 	CONFIG_CFLAGS += -DHAVE_BUILTIN_CSINL
 2248 endif
 2249 $(call using,$(HAVE_BUILTIN_CSINL),__builtin_csinl)
 2250 endif
 2251 
 2252 ifndef $(HAVE_BUILTIN_CTZ)
 2253 HAVE_BUILTIN_CTZ = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-builtin-ctz have_test_prog)
 2254 ifeq ($(HAVE_BUILTIN_CTZ),1)
 2255 	CONFIG_CFLAGS += -DHAVE_BUILTIN_CTZ
 2256 endif
 2257 $(call using,$(HAVE_BUILTIN_CTZ),__builtin_ctz)
 2258 endif
 2259 
 2260 ifndef $(HAVE_BUILTIN_CPU_IS_POWER9)
 2261 HAVE_BUILTIN_CPU_IS_POWER9 = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-builtin-cpu-is-power9 have_test_prog)
 2262 ifeq ($(HAVE_BUILTIN_CPU_IS_POWER9),1)
 2263 	CONFIG_CFLAGS += -DHAVE_BUILTIN_CPU_IS_POWER9
 2264 endif
 2265 $(call using,$(HAVE_BUILTIN_CPU_IS_POWER9),__builtin_cpu_is("power9"))
 2266 endif
 2267 
 2268 ifndef $(HAVE_BUILTIN_EXP)
 2269 MATHFUNC=__builtin_exp
 2270 export MATHFUNC
 2271 HAVE_BUILTIN_EXP = $(shell $(MAKE) $(MAKE_OPTS) MATHFUNC=__builtin_exp have_mathfunc)
 2272 ifeq ($(HAVE_BUILTIN_EXP),1)
 2273 	CONFIG_CFLAGS += -DHAVE_BUILTIN_EXP
 2274 endif
 2275 $(call using,$(HAVE_BUILTIN_EXP),__builtin_exp)
 2276 endif
 2277 
 2278 ifndef $(HAVE_BUILTIN_EXPECT)
 2279 HAVE_BUILTIN_EXPECT = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-builtin-expect have_test_prog)
 2280 ifeq ($(HAVE_BUILTIN_EXPECT),1)
 2281 	CONFIG_CFLAGS += -DHAVE_BUILTIN_EXPECT
 2282 endif
 2283 $(call using,$(HAVE_BUILTIN_EXPECT),__builtin_expect)
 2284 endif
 2285 
 2286 ifndef $(HAVE_BUILTIN_EXPL)
 2287 MATHFUNC=__builtin_expl
 2288 export MATHFUNC
 2289 HAVE_BUILTIN_EXPL = $(shell $(MAKE) $(MAKE_OPTS) MATHFUNC=__builtin_expl have_mathfunc)
 2290 ifeq ($(HAVE_BUILTIN_EXPL),1)
 2291 	CONFIG_CFLAGS += -DHAVE_BUILTIN_EXPL
 2292 endif
 2293 $(call using,$(HAVE_BUILTIN_EXPL),__builtin_expl)
 2294 endif
 2295 
 2296 ifndef $(HAVE_BUILTIN_FABS)
 2297 HAVE_BUILTIN_FABS = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-builtin-fabs TEST_LIBS=$(LIB_MATH) have_test_prog)
 2298 ifeq ($(HAVE_BUILTIN_FABS),1)
 2299 	CONFIG_CFLAGS += -DHAVE_BUILTIN_FABS
 2300 endif
 2301 $(call using,$(HAVE_BUILTIN_FABS),__builtin_fabs)
 2302 endif
 2303 
 2304 ifndef $(HAVE_BUILTIN_FABSL)
 2305 HAVE_BUILTIN_FABSL = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-builtin-fabsl TEST_LIBS=$(LIB_MATH) have_test_prog)
 2306 ifeq ($(HAVE_BUILTIN_FABSL),1)
 2307 	CONFIG_CFLAGS += -DHAVE_BUILTIN_FABSL
 2308 endif
 2309 $(call using,$(HAVE_BUILTIN_FABSL),__builtin_fabsl)
 2310 endif
 2311 
 2312 ifndef $(HAVE_BUILTIN_LGAMMAL)
 2313 MATHFUNC=__builtin_cabsl
 2314 export MATHFUNC
 2315 HAVE_BUILTIN_LGAMMAL = $(shell $(MAKE) $(MAKE_OPTS) MATHFUNC=__builtin_lgammal have_mathfunc)
 2316 ifeq ($(HAVE_BUILTIN_LGAMMAL),1)
 2317 	CONFIG_CFLAGS += -DHAVE_BUILTIN_LGAMMAL
 2318 endif
 2319 $(call using,$(HAVE_BUILTIN_LGAMMAL),__builtin_lgammal)
 2320 endif
 2321 
 2322 ifndef $(HAVE_BUILTIN_LOG)
 2323 MATHFUNC=__builtin_log
 2324 export MATHFUNC
 2325 HAVE_BUILTIN_LOG = $(shell $(MAKE) $(MAKE_OPTS) MATHFUNC=__builtin_log have_mathfunc)
 2326 ifeq ($(HAVE_BUILTIN_LOG),1)
 2327 	CONFIG_CFLAGS += -DHAVE_BUILTIN_LOG
 2328 endif
 2329 $(call using,$(HAVE_BUILTIN_LOG),__builtin_log)
 2330 endif
 2331 
 2332 ifndef $(HAVE_BUILTIN_LOGL)
 2333 MATHFUNC=__builtin_logl
 2334 export MATHFUNC
 2335 HAVE_BUILTIN_LOGL = $(shell $(MAKE) $(MAKE_OPTS) MATHFUNC=__builtin_log have_mathfunc)
 2336 ifeq ($(HAVE_BUILTIN_LOGL),1)
 2337 	CONFIG_CFLAGS += -DHAVE_BUILTIN_LOGL
 2338 endif
 2339 $(call using,$(HAVE_BUILTIN_LOGL),__builtin_logl)
 2340 endif
 2341 
 2342 ifndef $(HAVE_BUILTIN_MEMCPY)
 2343 HAVE_BUILTIN_MEMCPY = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-builtin-memcpy have_test_prog)
 2344 ifeq ($(HAVE_BUILTIN_MEMCPY),1)
 2345 	CONFIG_CFLAGS += -DHAVE_BUILTIN_MEMCPY
 2346 endif
 2347 $(call using,$(HAVE_BUILTIN_MEMCPY),__builtin_memcpy)
 2348 endif
 2349 
 2350 ifndef $(HAVE_BUILTIN_MEMMOVE)
 2351 HAVE_BUILTIN_MEMMOVE = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-builtin-memmove have_test_prog)
 2352 ifeq ($(HAVE_BUILTIN_MEMMOVE),1)
 2353 	CONFIG_CFLAGS += -DHAVE_BUILTIN_MEMMOVE
 2354 endif
 2355 $(call using,$(HAVE_BUILTIN_MEMMOVE),__builtin_memmove)
 2356 endif
 2357 
 2358 ifndef $(HAVE_BUILTIN_PARITY)
 2359 HAVE_BUILTIN_PARITY = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-builtin-parity have_test_prog)
 2360 ifeq ($(HAVE_BUILTIN_PARITY),1)
 2361 	CONFIG_CFLAGS += -DHAVE_BUILTIN_PARITY
 2362 endif
 2363 $(call using,$(HAVE_BUILTIN_PARITY),__builtin_parity)
 2364 endif
 2365 
 2366 ifndef $(HAVE_BUILTIN_POW)
 2367 MATHFUNC=__builtin_pow_
 2368 export MATHFUNC
 2369 HAVE_BUILTIN_POW = $(shell $(MAKE) $(MAKE_OPTS) MATHFUNC=__builtin_pow have_mathfunc)
 2370 ifeq ($(HAVE_BUILTIN_POW),1)
 2371 	CONFIG_CFLAGS += -DHAVE_BUILTIN_POW
 2372 endif
 2373 $(call using,$(HAVE_BUILTIN_POW),__builtin_pow)
 2374 endif
 2375 
 2376 ifndef $(HAVE_BUILTIN_PREFETCH)
 2377 HAVE_BUILTIN_PREFETCH = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-builtin-prefetch have_test_prog)
 2378 ifeq ($(HAVE_BUILTIN_PREFETCH),1)
 2379 	CONFIG_CFLAGS += -DHAVE_BUILTIN_PREFETCH
 2380 endif
 2381 $(call using,$(HAVE_BUILTIN_PREFETCH),__builtin_prefetch)
 2382 endif
 2383 
 2384 ifndef $(HAVE_BUILTIN_RINT)
 2385 HAVE_BUILTIN_RINT = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-builtin-rint TEST_LIBS=$(LIB_MATH) have_test_prog)
 2386 ifeq ($(HAVE_BUILTIN_RINT),1)
 2387 	CONFIG_CFLAGS += -DHAVE_BUILTIN_RINT
 2388 endif
 2389 $(call using,$(HAVE_BUILTIN_RINT),__builtin_rint)
 2390 endif
 2391 
 2392 ifndef $(HAVE_BUILTIN_RINTL)
 2393 HAVE_BUILTIN_RINTL = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-builtin-rintl TEST_LIBS=$(LIB_MATH) have_test_prog)
 2394 ifeq ($(HAVE_BUILTIN_RINTL),1)
 2395 	CONFIG_CFLAGS += -DHAVE_BUILTIN_RINTL
 2396 endif
 2397 $(call using,$(HAVE_BUILTIN_RINTL),__builtin_rintl)
 2398 endif
 2399 
 2400 ifndef $(HAVE_BUILTIN_SFENCE)
 2401 HAVE_BUILTIN_SFENCE = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-builtin-sfence have_test_prog)
 2402 ifeq ($(HAVE_BUILTIN_SFENCE),1)
 2403 	CONFIG_CFLAGS += -DHAVE_BUILTIN_SFENCE
 2404 endif
 2405 $(call using,$(HAVE_BUILTIN_SFENCE),__builtin_ia32_sfence)
 2406 endif
 2407 
 2408 ifndef $(HAVE_BUILTIN_SIN)
 2409 MATHFUNC=__builtin_sin
 2410 export MATHFUNC
 2411 HAVE_BUILTIN_SIN = $(shell $(MAKE) $(MAKE_OPTS) MATHFUNC=__builtin_sin have_mathfunc)
 2412 ifeq ($(HAVE_BUILTIN_SIN),1)
 2413 	CONFIG_CFLAGS += -DHAVE_BUILTIN_SIN
 2414 endif
 2415 $(call using,$(HAVE_BUILTIN_SIN),__builtin_sin)
 2416 endif
 2417 
 2418 ifndef $(HAVE_BUILTIN_SINHL)
 2419 MATHFUNC=__builtin_sinhl
 2420 export MATHFUNC
 2421 HAVE_BUILTIN_SINHL = $(shell $(MAKE) $(MAKE_OPTS) MATHFUNC=__builtin_sinhl have_mathfunc)
 2422 ifeq ($(HAVE_BUILTIN_SINHL),1)
 2423 	CONFIG_CFLAGS += -DHAVE_BUILTIN_SINHL
 2424 endif
 2425 $(call using,$(HAVE_BUILTIN_SINHL),__builtin_sinhl)
 2426 endif
 2427 
 2428 ifndef $(HAVE_BUILTIN_SINF)
 2429 MATHFUNC=__builtin_sinf
 2430 export MATHFUNC
 2431 HAVE_BUILTIN_SINF = $(shell $(MAKE) $(MAKE_OPTS) MATHFUNC=__builtin_sinf have_mathfunc)
 2432 ifeq ($(HAVE_BUILTIN_SINF),1)
 2433 	CONFIG_CFLAGS += -DHAVE_BUILTIN_SINF
 2434 endif
 2435 $(call using,$(HAVE_BUILTIN_SINL),__builtin_sinf)
 2436 endif
 2437 
 2438 ifndef $(HAVE_BUILTIN_SINL)
 2439 MATHFUNC=__builtin_sinl
 2440 export MATHFUNC
 2441 HAVE_BUILTIN_SINL = $(shell $(MAKE) $(MAKE_OPTS) MATHFUNC=__builtin_sinl have_mathfunc)
 2442 ifeq ($(HAVE_BUILTIN_SINL),1)
 2443 	CONFIG_CFLAGS += -DHAVE_BUILTIN_SINL
 2444 endif
 2445 $(call using,$(HAVE_BUILTIN_SINL),__builtin_sinl)
 2446 endif
 2447 
 2448 ifndef $(HAVE_BUILTIN_SQRT)
 2449 MATHFUNC=__builtin_sqrt
 2450 export MATHFUNC
 2451 HAVE_BUILTIN_SQRT = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-builtin-sqrt TEST_LIBS=$(LIB_MATH) have_test_prog)
 2452 ifeq ($(HAVE_BUILTIN_SQRT),1)
 2453 	CONFIG_CFLAGS += -DHAVE_BUILTIN_SQRT
 2454 endif
 2455 $(call using,$(HAVE_BUILTIN_SQRT),__builtin_sqrt)
 2456 endif
 2457 
 2458 ifndef $(HAVE_BUILTIN_SQRTL)
 2459 MATHFUNC=__builtin_sqrtl
 2460 export MATHFUNC
 2461 HAVE_BUILTIN_SQRTL = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-builtin-sqrtl TEST_LIBS=$(LIB_MATH) have_test_prog)
 2462 ifeq ($(HAVE_BUILTIN_SQRTL),1)
 2463 	CONFIG_CFLAGS += -DHAVE_BUILTIN_SQRTL
 2464 endif
 2465 $(call using,$(HAVE_BUILTIN_SQRTL),__builtin_sqrtl)
 2466 endif
 2467 
 2468 ifndef $(HAVE_CABSL)
 2469 MATHFUNC=cabsl
 2470 export MATHFUNC
 2471 HAVE_CABSL = $(shell $(MAKE) $(MAKE_OPTS) MATHFUNC=cabsl have_mathfunc)
 2472 ifeq ($(HAVE_CABSL),1)
 2473 	CONFIG_CFLAGS += -DHAVE_CABSL
 2474 endif
 2475 $(call using,$(HAVE_CABSL),cabsl)
 2476 endif
 2477 
 2478 ifndef $(HAVE_CCOSF)
 2479 MATHFUNC=ccosf
 2480 export MATHFUNC
 2481 HAVE_CCOSF = $(shell $(MAKE) $(MAKE_OPTS) MATHFUNC=ccosf have_mathfunc)
 2482 ifeq ($(HAVE_CCOSF),1)
 2483 	CONFIG_CFLAGS += -DHAVE_CCOSF
 2484 endif
 2485 $(call using,$(HAVE_CCOSF),ccosf)
 2486 endif
 2487 
 2488 ifndef $(HAVE_CCOSL)
 2489 MATHFUNC=ccosl
 2490 export MATHFUNC
 2491 HAVE_CCOSL = $(shell $(MAKE) $(MAKE_OPTS) MATHFUNC=ccosl have_mathfunc)
 2492 ifeq ($(HAVE_CCOSL),1)
 2493 	CONFIG_CFLAGS += -DHAVE_CCOSL
 2494 endif
 2495 $(call using,$(HAVE_CCOSL),ccosl)
 2496 endif
 2497 
 2498 ifndef $(HAVE_CHROOT)
 2499 HAVE_CHROOT = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-chroot have_test_prog)
 2500 ifeq ($(HAVE_CHROOT),1)
 2501 	CONFIG_CFLAGS += -DHAVE_CHROOT
 2502 endif
 2503 $(call using,$(HAVE_CHROOT),chroot)
 2504 endif
 2505 
 2506 ifndef $(HAVE_CIMAG)
 2507 MATHFUNC=cimag
 2508 export MATHFUNC
 2509 HAVE_CIMAG = $(shell $(MAKE) $(MAKE_OPTS) MATHFUNC=cimag have_mathfunc)
 2510 ifeq ($(HAVE_CIMAG),1)
 2511 	CONFIG_CFLAGS += -DHAVE_CIMAG
 2512 endif
 2513 $(call using,$(HAVE_CIMAG),cimag)
 2514 endif
 2515 
 2516 ifndef $(HAVE_CRYPT_R)
 2517 HAVE_CRYPT_R = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-crypt-r TEST_LIBS='$(CONFIG_LDFLAGS)' have_test_prog)
 2518 ifeq ($(HAVE_CRYPT_R),1)
 2519 	CONFIG_CFLAGS += -DHAVE_CRYPT_R
 2520 endif
 2521 $(call using,$(HAVE_CRYPT_R),crypt_r)
 2522 endif
 2523 
 2524 ifndef $(HAVE_CLEARENV)
 2525 HAVE_CLEARENV = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-clearenv have_test_prog)
 2526 ifeq ($(HAVE_CLEARENV),1)
 2527 	CONFIG_CFLAGS += -DHAVE_CLEARENV
 2528 endif
 2529 $(call using,$(HAVE_CLEARENV),clearenv)
 2530 endif
 2531 
 2532 ifndef $(HAVE_CLOCK_GETRES)
 2533 HAVE_CLOCK_GETRES = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-clock-getres have_test_prog)
 2534 ifeq ($(HAVE_CLOCK_GETRES),1)
 2535 	CONFIG_CFLAGS += -DHAVE_CLOCK_GETRES
 2536 endif
 2537 $(call using,$(HAVE_CLOCK_GETRES),clock_getres)
 2538 endif
 2539 
 2540 ifndef $(HAVE_CLOCK_GETTIME)
 2541 HAVE_CLOCK_GETTIME = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-clock-gettime have_test_prog)
 2542 ifeq ($(HAVE_CLOCK_GETTIME),1)
 2543 	CONFIG_CFLAGS += -DHAVE_CLOCK_GETTIME
 2544 endif
 2545 $(call using,$(HAVE_CLOCK_GETTIME),clock_gettime)
 2546 endif
 2547 
 2548 ifndef $(HAVE_CLOCK_NANOSLEEP)
 2549 HAVE_CLOCK_NANOSLEEP = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-clock-nanosleep have_test_prog)
 2550 ifeq ($(HAVE_CLOCK_NANOSLEEP),1)
 2551 	CONFIG_CFLAGS += -DHAVE_CLOCK_NANOSLEEP
 2552 endif
 2553 $(call using,$(HAVE_CLOCK_NANOSLEEP),clock_nanosleep)
 2554 endif
 2555 
 2556 ifndef $(HAVE_CLOCK_SETTIME)
 2557 HAVE_CLOCK_SETTIME = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-clock-settime have_test_prog)
 2558 ifeq ($(HAVE_CLOCK_SETTIME),1)
 2559 	CONFIG_CFLAGS += -DHAVE_CLOCK_SETTIME
 2560 endif
 2561 $(call using,$(HAVE_CLOCK_SETTIME),clock_settime)
 2562 endif
 2563 
 2564 ifndef $(HAVE_CLONE)
 2565 HAVE_CLONE = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-clone have_test_prog)
 2566 ifeq ($(HAVE_CLONE),1)
 2567 	CONFIG_CFLAGS += -DHAVE_CLONE
 2568 endif
 2569 $(call using,$(HAVE_CLONE),clone)
 2570 endif
 2571 
 2572 ifndef $(HAVE_COPY_FILE_RANGE)
 2573 HAVE_COPY_FILE_RANGE = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-copy-file-range have_test_prog)
 2574 ifeq ($(HAVE_COPY_FILE_RANGE),1)
 2575 	CONFIG_CFLAGS += -DHAVE_COPY_FILE_RANGE
 2576 endif
 2577 $(call using,$(HAVE_COPY_FILE_RANGE),copy_file_range)
 2578 endif
 2579 
 2580 ifndef $(HAVE_COSHL)
 2581 MATHFUNC=coshl
 2582 export MATHFUNC
 2583 HAVE_COSHL = $(shell $(MAKE) $(MAKE_OPTS) MATHFUNC=coshl have_mathfunc)
 2584 ifeq ($(HAVE_COSHL),1)
 2585 	CONFIG_CFLAGS += -DHAVE_COSHL
 2586 endif
 2587 $(call using,$(HAVE_COSHL),coshl)
 2588 endif
 2589 
 2590 ifndef $(HAVE_COSL)
 2591 MATHFUNC=cosl
 2592 export MATHFUNC
 2593 HAVE_COSL = $(shell $(MAKE) $(MAKE_OPTS) MATHFUNC=cosl have_mathfunc)
 2594 ifeq ($(HAVE_COSL),1)
 2595 	CONFIG_CFLAGS += -DHAVE_COSL
 2596 endif
 2597 $(call using,$(HAVE_COSL),cosl)
 2598 endif
 2599 
 2600 ifndef $(HAVE_CPOW)
 2601 MATHFUNC=cpow
 2602 export MATHFUNC
 2603 HAVE_CPOW = $(shell $(MAKE) $(MAKE_OPTS) MATHFUNC=cpow have_mathfunc)
 2604 ifeq ($(HAVE_CPOW),1)
 2605 	CONFIG_CFLAGS += -DHAVE_CPOW
 2606 endif
 2607 $(call using,$(HAVE_CPOW),cpow)
 2608 endif
 2609 
 2610 ifndef $(HAVE_CPUID)
 2611 HAVE_CPUID = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-cpuid have_test_prog)
 2612 ifeq ($(HAVE_CPUID),1)
 2613 	CONFIG_CFLAGS += -DHAVE_CPUID
 2614 endif
 2615 $(call using,$(HAVE_CPUID),cpuid)
 2616 endif
 2617 
 2618 ifndef $(HAVE_CREAL)
 2619 MATHFUNC=creal
 2620 export MATHFUNC
 2621 HAVE_CREAL = $(shell $(MAKE) $(MAKE_OPTS) MATHFUNC=creal have_mathfunc)
 2622 ifeq ($(HAVE_CREAL),1)
 2623 	CONFIG_CFLAGS += -DHAVE_CREAL
 2624 endif
 2625 $(call using,$(HAVE_CREAL),creal)
 2626 endif
 2627 
 2628 ifndef $(HAVE_CSINL)
 2629 MATHFUNC=csinl
 2630 export MATHFUNC
 2631 HAVE_CSINL = $(shell $(MAKE) $(MAKE_OPTS) MATHFUNC=csinl have_mathfunc)
 2632 ifeq ($(HAVE_CSINL),1)
 2633 	CONFIG_CFLAGS += -DHAVE_CSINL
 2634 endif
 2635 $(call using,$(HAVE_CSINL),csinl)
 2636 endif
 2637 
 2638 ifndef $(HAVE_DUP3)
 2639 HAVE_DUP3 = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-dup3 have_test_prog)
 2640 ifeq ($(HAVE_DUP3),1)
 2641 	CONFIG_CFLAGS += -DHAVE_DUP3
 2642 endif
 2643 $(call using,$(HAVE_DUP3),dup3)
 2644 endif
 2645 
 2646 ifndef $(HAVE_ENDPWENT)
 2647 HAVE_ENDPWENT = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-endpwent have_test_prog)
 2648 ifeq ($(HAVE_ENDPWENT),1)
 2649 	CONFIG_CFLAGS += -DHAVE_ENDPWENT
 2650 endif
 2651 $(call using,$(HAVE_ENDPWENT),endpwent)
 2652 endif
 2653 
 2654 ifndef $(HAVE_EPOLL_CREATE)
 2655 HAVE_EPOLL_CREATE = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-epoll-create have_test_prog)
 2656 ifeq ($(HAVE_EPOLL_CREATE),1)
 2657 	CONFIG_CFLAGS += -DHAVE_EPOLL_CREATE
 2658 endif
 2659 $(call using,$(HAVE_EPOLL_CREATE),epoll_create)
 2660 endif
 2661 
 2662 ifndef $(HAVE_EPOLL_CREATE1)
 2663 HAVE_EPOLL_CREATE1 = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-epoll-create1 have_test_prog)
 2664 ifeq ($(HAVE_EPOLL_CREATE1),1)
 2665 	CONFIG_CFLAGS += -DHAVE_EPOLL_CREATE1
 2666 endif
 2667 $(call using,$(HAVE_EPOLL_CREATE1),epoll_create1)
 2668 endif
 2669 
 2670 ifndef $(HAVE_EVENTFD)
 2671 HAVE_EVENTFD = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-eventfd have_test_prog)
 2672 ifeq ($(HAVE_EVENTFD),1)
 2673 	CONFIG_CFLAGS += -DHAVE_EVENTFD
 2674 endif
 2675 $(call using,$(HAVE_EVENTFD),eventfd)
 2676 endif
 2677 
 2678 ifndef $(HAVE_EXECVEAT)
 2679 HAVE_EXECVEAT = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-execveat have_test_prog)
 2680 ifeq ($(HAVE_EXECVEAT),1)
 2681 	CONFIG_CFLAGS += -DHAVE_EXECVEAT
 2682 endif
 2683 $(call using,$(HAVE_EXECVEAT),execveat)
 2684 endif
 2685 
 2686 ifndef $(HAVE_EXPL)
 2687 MATHFUNC=expl
 2688 export MATHFUNC
 2689 HAVE_EXPL = $(shell $(MAKE) $(MAKE_OPTS) MATHFUNC=expl have_mathfunc)
 2690 ifeq ($(HAVE_EXPL),1)
 2691 	CONFIG_CFLAGS += -DHAVE_EXPL
 2692 endif
 2693 $(call using,$(HAVE_EXPL),expl)
 2694 endif
 2695 
 2696 ifndef $(HAVE_EXECUTABLE_START)
 2697 HAVE_EXECUTABLE_START= $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-executable_start have_test_prog)
 2698 ifeq ($(HAVE_EXECUTABLE_START),1)
 2699 	CONFIG_CFLAGS += -DHAVE_EXECUTABLE_START
 2700 endif
 2701 $(call using,$(HAVE_EXECUTABLE_START),__executable_start)
 2702 endif
 2703 
 2704 ifndef $(HAVE_FACCESSAT)
 2705 HAVE_FACCESSAT = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-faccessat have_test_prog)
 2706 ifeq ($(HAVE_FACCESSAT),1)
 2707 	CONFIG_CFLAGS += -DHAVE_FACCESSAT
 2708 endif
 2709 $(call using,$(HAVE_FACCESSAT),faccessat)
 2710 endif
 2711 
 2712 ifndef $(HAVE_FACCESSAT2)
 2713 HAVE_FACCESSAT2 = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-faccessat2 have_test_prog)
 2714 ifeq ($(HAVE_FACCESSAT2),1)
 2715 	CONFIG_CFLAGS += -DHAVE_FACCESSAT2
 2716 endif
 2717 $(call using,$(HAVE_FACCESSAT2),faccessat2)
 2718 endif
 2719 
 2720 ifndef $(HAVE_FALLOCATE)
 2721 HAVE_FALLOCATE = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-fallocate have_test_prog)
 2722 ifeq ($(HAVE_FALLOCATE),1)
 2723 	CONFIG_CFLAGS += -DHAVE_FALLOCATE
 2724 endif
 2725 $(call using,$(HAVE_FALLOCATE),fallocate)
 2726 endif
 2727 
 2728 ifndef $(HAVE_FANOTIFY)
 2729 HAVE_FANOTIFY = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-fanotify have_test_prog)
 2730 ifeq ($(HAVE_FANOTIFY),1)
 2731 	CONFIG_CFLAGS += -DHAVE_FANOTIFY
 2732 endif
 2733 $(call using,$(HAVE_FANOTIFY),fanotify)
 2734 endif
 2735 
 2736 ifndef $(HAVE_FCHMODAT)
 2737 HAVE_FCHMODAT = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-fchmodat have_test_prog)
 2738 ifeq ($(HAVE_FCHMODAT),1)
 2739 	CONFIG_CFLAGS += -DHAVE_FCHMODAT
 2740 endif
 2741 $(call using,$(HAVE_FCHMODAT),fchmodat)
 2742 endif
 2743 
 2744 ifndef $(HAVE_FCHOWNAT)
 2745 HAVE_FCHOWNAT = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-fchownat have_test_prog)
 2746 ifeq ($(HAVE_FCHOWNAT),1)
 2747 	CONFIG_CFLAGS += -DHAVE_FCHOWNAT
 2748 endif
 2749 $(call using,$(HAVE_FCHOWNAT),fchownat)
 2750 endif
 2751 
 2752 ifndef $(HAVE_FDATASYNC)
 2753 HAVE_FDATASYNC = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-fdatasync have_test_prog)
 2754 ifeq ($(HAVE_FDATASYNC),1)
 2755 	CONFIG_CFLAGS += -DHAVE_FDATASYNC
 2756 endif
 2757 $(call using,$(HAVE_FDATASYNC),fdatasync)
 2758 endif
 2759 
 2760 ifndef $(HAVE_FGETXATTR)
 2761 HAVE_FGETXATTR = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-fgetxattr have_test_prog)
 2762 ifeq ($(HAVE_FGETXATTR),1)
 2763 	CONFIG_CFLAGS += -DHAVE_FGETXATTR
 2764 endif
 2765 $(call using,$(HAVE_FGETXATTR),fgetxattr)
 2766 endif
 2767 
 2768 ifndef $(HAVE_FLISTXATTR)
 2769 HAVE_FLISTXATTR = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-flistxattr have_test_prog)
 2770 ifeq ($(HAVE_FLISTXATTR),1)
 2771 	CONFIG_CFLAGS += -DHAVE_FLISTXATTR
 2772 endif
 2773 $(call using,$(HAVE_FLISTXATTR),flistxattr)
 2774 endif
 2775 
 2776 ifndef $(HAVE_FLOCK)
 2777 HAVE_FLOCK = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-flock have_test_prog)
 2778 ifeq ($(HAVE_FLOCK),1)
 2779 	CONFIG_CFLAGS += -DHAVE_FLOCK
 2780 endif
 2781 $(call using,$(HAVE_FLOCK),flock)
 2782 endif
 2783 
 2784 ifndef $(HAVE_FREMOVEXATTR)
 2785 HAVE_FREMOVEXATTR = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-fremovexattr have_test_prog)
 2786 ifeq ($(HAVE_FREMOVEXATTR),1)
 2787 	CONFIG_CFLAGS += -DHAVE_FREMOVEXATTR
 2788 endif
 2789 $(call using,$(HAVE_FREMOVEXATTR),fremovexattr)
 2790 endif
 2791 
 2792 ifndef $(HAVE_FSETXATTR)
 2793 HAVE_FSETXATTR = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-fsetxattr have_test_prog)
 2794 ifeq ($(HAVE_FSETXATTR),1)
 2795 	CONFIG_CFLAGS += -DHAVE_FSETXATTR
 2796 endif
 2797 $(call using,$(HAVE_FSETXATTR),fsetxattr)
 2798 endif
 2799 
 2800 ifndef $(HAVE_FSYNC)
 2801 HAVE_FSYNC = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-fsync have_test_prog)
 2802 ifeq ($(HAVE_FSYNC),1)
 2803 	CONFIG_CFLAGS += -DHAVE_FSYNC
 2804 endif
 2805 $(call using,$(HAVE_FSYNC),fsync)
 2806 endif
 2807 
 2808 ifndef $(HAVE_FUTIMENS)
 2809 HAVE_FUTIMENS = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-futimens have_test_prog)
 2810 ifeq ($(HAVE_FUTIMENS),1)
 2811 	CONFIG_CFLAGS += -DHAVE_FUTIMENS
 2812 endif
 2813 $(call using,$(HAVE_FUTIMENS),futimens)
 2814 endif
 2815 
 2816 ifndef $(HAVE_FUTIMES)
 2817 HAVE_FUTIMES = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-futimes have_test_prog)
 2818 ifeq ($(HAVE_FUTIMES),1)
 2819 	CONFIG_CFLAGS += -DHAVE_FUTIMES
 2820 endif
 2821 $(call using,$(HAVE_FUTIMES),futimes)
 2822 endif
 2823 
 2824 ifndef $(HAVE_FUTIMESAT)
 2825 HAVE_FUTIMESAT = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-futimesat have_test_prog)
 2826 ifeq ($(HAVE_FUTIMESAT),1)
 2827 	CONFIG_CFLAGS += -DHAVE_FUTIMESAT
 2828 endif
 2829 $(call using,$(HAVE_FUTIMESAT),futimesat)
 2830 endif
 2831 
 2832 ifndef $(HAVE___GET_CPUID)
 2833 HAVE___GET_CPUID = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-__get_cpuid have_test_prog)
 2834 ifeq ($(HAVE___GET_CPUID),1)
 2835 	CONFIG_CFLAGS += -DHAVE___GET_CPUID
 2836 endif
 2837 $(call using,$(HAVE___GET_CPUID),__get_cpuid)
 2838 endif
 2839 
 2840 ifndef $(HAVE_GETAUXVAL)
 2841 HAVE_GETAUXVAL = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-getauxval have_test_prog)
 2842 ifeq ($(HAVE_GETAUXVAL),1)
 2843 	CONFIG_CFLAGS += -DHAVE_GETAUXVAL
 2844 endif
 2845 $(call using,$(HAVE_GETAUXVAL),getauxval)
 2846 endif
 2847 
 2848 ifndef $(HAVE_GETDOMAINNAME)
 2849 HAVE_GETDOMAINNAME = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-getdomainname have_test_prog)
 2850 ifeq ($(HAVE_GETDOMAINNAME),1)
 2851 	CONFIG_CFLAGS += -DHAVE_GETDOMAINNAME
 2852 endif
 2853 $(call using,$(HAVE_GETDOMAINNAME),getdomainname)
 2854 endif
 2855 
 2856 ifndef $(HAVE_GETDTABLESIZE)
 2857 HAVE_GETDTABLESIZE = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-getdtablesize have_test_prog)
 2858 ifeq ($(HAVE_GETDTABLESIZE),1)
 2859 	CONFIG_CFLAGS += -DHAVE_GETDTABLESIZE
 2860 endif
 2861 $(call using,$(HAVE_GETDTABLESIZE),getdtablesize)
 2862 endif
 2863 
 2864 ifndef $(HAVE_GETHOSTNAME)
 2865 HAVE_GETHOSTNAME = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-gethostname have_test_prog)
 2866 ifeq ($(HAVE_GETHOSTNAME),1)
 2867 	CONFIG_CFLAGS += -DHAVE_GETHOSTNAME
 2868 endif
 2869 $(call using,$(HAVE_GETHOSTNAME),gethostname)
 2870 endif
 2871 
 2872 ifndef $(HAVE_GETHOSTID)
 2873 HAVE_GETHOSTID = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-gethostid have_test_prog)
 2874 ifeq ($(HAVE_GETHOSTID),1)
 2875 	CONFIG_CFLAGS += -DHAVE_GETHOSTID
 2876 endif
 2877 $(call using,$(HAVE_GETHOSTID),gethostid)
 2878 endif
 2879 
 2880 ifndef $(HAVE_GETMNTENT)
 2881 HAVE_GETMNTENT = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-getmntent have_test_prog)
 2882 ifeq ($(HAVE_GETMNTENT),1)
 2883 	CONFIG_CFLAGS += -DHAVE_GETMNTENT
 2884 endif
 2885 $(call using,$(HAVE_GETMNTENT),getmntent)
 2886 endif
 2887 
 2888 ifndef $(HAVE_GETMNTINFO)
 2889 HAVE_GETMNTINFO = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-getmntinfo have_test_prog)
 2890 ifeq ($(HAVE_GETMNTINFO),1)
 2891 	CONFIG_CFLAGS += -DHAVE_GETMNTINFO
 2892 endif
 2893 $(call using,$(HAVE_GETMNTINFO),getmntinfo)
 2894 endif
 2895 
 2896 ifndef $(HAVE_GETPAGESIZE)
 2897 HAVE_GETPAGESIZE = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-getpagesize have_test_prog)
 2898 ifeq ($(HAVE_GETPAGESIZE),1)
 2899 	CONFIG_CFLAGS += -DHAVE_GETPAGESIZE
 2900 endif
 2901 $(call using,$(HAVE_GETPAGESIZE),getpagesize)
 2902 endif
 2903 
 2904 ifndef $(HAVE_GETPGID)
 2905 HAVE_GETPGID = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-getpgid have_test_prog)
 2906 ifeq ($(HAVE_GETPGID),1)
 2907 	CONFIG_CFLAGS += -DHAVE_GETPGID
 2908 endif
 2909 $(call using,$(HAVE_GETPGID),getpgid)
 2910 endif
 2911 
 2912 ifndef $(HAVE_GETPGRP)
 2913 HAVE_GETPGRP = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-getpgrp have_test_prog)
 2914 ifeq ($(HAVE_GETPGRP),1)
 2915 	CONFIG_CFLAGS += -DHAVE_GETPGRP
 2916 endif
 2917 $(call using,$(HAVE_GETPGRP),getpgrp)
 2918 endif
 2919 
 2920 ifndef $(HAVE_GETPRIORITY)
 2921 HAVE_GETPRIORITY = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-getpriority have_test_prog)
 2922 ifeq ($(HAVE_GETPRIORITY),1)
 2923 	CONFIG_CFLAGS += -DHAVE_GETPRIORITY
 2924 endif
 2925 $(call using,$(HAVE_GETPRIORITY),getpriority)
 2926 endif
 2927 
 2928 ifndef $(HAVE_GETPWENT)
 2929 HAVE_GETPWENT = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-getpwent have_test_prog)
 2930 ifeq ($(HAVE_GETPWENT),1)
 2931 	CONFIG_CFLAGS += -DHAVE_GETPWENT
 2932 endif
 2933 $(call using,$(HAVE_GETPWENT),getpwent)
 2934 endif
 2935 
 2936 ifndef $(HAVE_GETRESGID)
 2937 HAVE_GETRESGID = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-getresgid have_test_prog)
 2938 ifeq ($(HAVE_GETRESGID),1)
 2939 	CONFIG_CFLAGS += -DHAVE_GETRESGID
 2940 endif
 2941 $(call using,$(HAVE_GETRESGID),getresgid)
 2942 endif
 2943 
 2944 ifndef $(HAVE_GETRESUID)
 2945 HAVE_GETRESUID = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-getresuid have_test_prog)
 2946 ifeq ($(HAVE_GETRESUID),1)
 2947 	CONFIG_CFLAGS += -DHAVE_GETRESUID
 2948 endif
 2949 $(call using,$(HAVE_GETRESUID),getresuid)
 2950 endif
 2951 
 2952 ifndef $(HAVE_GETRUSAGE)
 2953 HAVE_GETRUSAGE = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-getrusage have_test_prog)
 2954 ifeq ($(HAVE_GETRUSAGE),1)
 2955 	CONFIG_CFLAGS += -DHAVE_GETRUSAGE
 2956 endif
 2957 $(call using,$(HAVE_GETRUSAGE),getrusage)
 2958 endif
 2959 
 2960 ifndef $(HAVE_GETSID)
 2961 HAVE_GETSID = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-getsid have_test_prog)
 2962 ifeq ($(HAVE_GETSID),1)
 2963 	CONFIG_CFLAGS += -DHAVE_GETSID
 2964 endif
 2965 $(call using,$(HAVE_GETSID),getsid)
 2966 endif
 2967 
 2968 ifndef $(HAVE_GETXATTR)
 2969 HAVE_GETXATTR = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-getxattr have_test_prog)
 2970 ifeq ($(HAVE_GETXATTR),1)
 2971 	CONFIG_CFLAGS += -DHAVE_GETXATTR
 2972 endif
 2973 $(call using,$(HAVE_GETXATTR),getxattr)
 2974 endif
 2975 
 2976 ifndef $(HAVE_INOTIFY)
 2977 HAVE_INOTIFY = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-inotify have_test_prog)
 2978 ifeq ($(HAVE_INOTIFY),1)
 2979 	CONFIG_CFLAGS += -DHAVE_INOTIFY
 2980 endif
 2981 $(call using,$(HAVE_INOTIFY),inotify)
 2982 endif
 2983 
 2984 ifndef $(HAVE_INOTIFY1)
 2985 HAVE_INOTIFY1 = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-inotify1 have_test_prog)
 2986 ifeq ($(HAVE_INOTIFY1),1)
 2987 	CONFIG_CFLAGS += -DHAVE_INOTIFY1
 2988 endif
 2989 $(call using,$(HAVE_INOTIFY1),inotify1)
 2990 endif
 2991 
 2992 ifndef $(HAVE_IOPORT)
 2993 HAVE_IOPORT = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-ioport have_test_prog)
 2994 ifeq ($(HAVE_IOPORT),1)
 2995 	CONFIG_CFLAGS += -DHAVE_IOPORT
 2996 endif
 2997 $(call using,$(HAVE_IOPORT),ioport)
 2998 endif
 2999 
 3000 ifndef $(HAVE_IOPL)
 3001 HAVE_IOPL = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-iopl have_test_prog)
 3002 ifeq ($(HAVE_IOPL),1)
 3003 	CONFIG_CFLAGS += -DHAVE_IOPL
 3004 endif
 3005 $(call using,$(HAVE_IOPL),iopl)
 3006 endif
 3007 
 3008 ifndef $(HAVE_LGAMMAL)
 3009 MATHFUNC=lgammal
 3010 export MATHFUNC
 3011 HAVE_LGAMMAL = $(shell $(MAKE) $(MAKE_OPTS) MATHFUNC=lgammal have_mathfunc)
 3012 ifeq ($(HAVE_LGAMMAL),1)
 3013 	CONFIG_CFLAGS += -DHAVE_LGAMMAL
 3014 endif
 3015 $(call using,$(HAVE_LGAMMAL),lgammal)
 3016 endif
 3017 
 3018 ifndef $(HAVE_LGETXATTR)
 3019 HAVE_LGETXATTR = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-lgetxattr have_test_prog)
 3020 ifeq ($(HAVE_LGETXATTR),1)
 3021 	CONFIG_CFLAGS += -DHAVE_LGETXATTR
 3022 endif
 3023 $(call using,$(HAVE_LGETXATTR),lgetxattr)
 3024 endif
 3025 
 3026 ifndef $(HAVE_LINKAT)
 3027 HAVE_LINKAT = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-linkat have_test_prog)
 3028 ifeq ($(HAVE_LINKAT),1)
 3029 	CONFIG_CFLAGS += -DHAVE_LINKAT
 3030 endif
 3031 $(call using,$(HAVE_LINKAT),linkat)
 3032 endif
 3033 
 3034 ifndef $(HAVE_LISTXATTR)
 3035 HAVE_LISTXATTR = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-listxattr have_test_prog)
 3036 ifeq ($(HAVE_LISTXATTR),1)
 3037 	CONFIG_CFLAGS += -DHAVE_LISTXATTR
 3038 endif
 3039 $(call using,$(HAVE_LISTXATTR),listxattr)
 3040 endif
 3041 
 3042 ifndef $(HAVE_LLISTXATTR)
 3043 HAVE_LLISTXATTR = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-llistxattr have_test_prog)
 3044 ifeq ($(HAVE_LLISTXATTR),1)
 3045 	CONFIG_CFLAGS += -DHAVE_LLISTXATTR
 3046 endif
 3047 $(call using,$(HAVE_LLISTXATTR),llistxattr)
 3048 endif
 3049 
 3050 ifndef $(HAVE_LREMOVEXATTR)
 3051 HAVE_LREMOVEXATTR = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-lremovexattr have_test_prog)
 3052 ifeq ($(HAVE_LREMOVEXATTR),1)
 3053 	CONFIG_CFLAGS += -DHAVE_LREMOVEXATTR
 3054 endif
 3055 $(call using,$(HAVE_LREMOVEXATTR),lremovexattr)
 3056 endif
 3057 
 3058 ifndef $(HAVE_LOCKF)
 3059 HAVE_LOCKF = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-lockf have_test_prog)
 3060 ifeq ($(HAVE_LOCKF),1)
 3061 	CONFIG_CFLAGS += -DHAVE_LOCKF
 3062 endif
 3063 $(call using,$(HAVE_LOCKF),lockf)
 3064 endif
 3065 
 3066 ifndef $(HAVE_LOGL)
 3067 MATHFUNC=logl
 3068 export MATHFUNC
 3069 HAVE_LOGL = $(shell $(MAKE) $(MAKE_OPTS) MATHFUNC=logl have_mathfunc)
 3070 ifeq ($(HAVE_LOGL),1)
 3071 	CONFIG_CFLAGS += -DHAVE_LOGL
 3072 endif
 3073 $(call using,$(HAVE_LOGL),logl)
 3074 endif
 3075 
 3076 ifndef $(HAVE_LOOKUP_DCOOKIE)
 3077 HAVE_LOOKUP_DCOOKIE = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-lookup-dcookie have_test_prog)
 3078 ifeq ($(HAVE_LOOKUP_DCOOKIE),1)
 3079 	CONFIG_CFLAGS += -DHAVE_LOOKUP_DCOOKIE
 3080 endif
 3081 $(call using,$(HAVE_LOOKUP_DCOOKIE),lookup_dcookie)
 3082 endif
 3083 
 3084 ifndef $(HAVE_LSETXATTR)
 3085 HAVE_LSETXATTR = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-lsetxattr have_test_prog)
 3086 ifeq ($(HAVE_LSETXATTR),1)
 3087 	CONFIG_CFLAGS += -DHAVE_LSETXATTR
 3088 endif
 3089 $(call using,$(HAVE_LSETXATTR),lsetxattr)
 3090 endif
 3091 
 3092 ifndef $(HAVE_MADVISE)
 3093 HAVE_MADVISE = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-madvise have_test_prog)
 3094 ifeq ($(HAVE_MADVISE),1)
 3095 	CONFIG_CFLAGS += -DHAVE_MADVISE
 3096 endif
 3097 $(call using,$(HAVE_MADVISE),madvise)
 3098 endif
 3099 
 3100 ifndef $(HAVE_MALLOPT)
 3101 HAVE_MALLOPT = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-mallopt have_test_prog)
 3102 ifeq ($(HAVE_MALLOPT),1)
 3103 	CONFIG_CFLAGS += -DHAVE_MALLOPT
 3104 endif
 3105 $(call using,$(HAVE_MALLOPT),mallopt)
 3106 endif
 3107 
 3108 ifndef $(HAVE_MEMFD_CREATE)
 3109 HAVE_MEMFD_CREATE = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-memfd-create have_test_prog)
 3110 ifeq ($(HAVE_MEMFD_CREATE),1)
 3111 	CONFIG_CFLAGS += -DHAVE_MEMFD_CREATE
 3112 $(call using,$(HAVE_MEMFD_CREATE),memfd_create)
 3113 endif
 3114 endif
 3115 
 3116 ifndef $(HAVE_MINCORE)
 3117 HAVE_MINCORE = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-mincore have_test_prog)
 3118 ifeq ($(HAVE_MINCORE),1)
 3119 	CONFIG_CFLAGS += -DHAVE_MINCORE
 3120 endif
 3121 $(call using,$(HAVE_MINCORE),mincore)
 3122 endif
 3123 
 3124 ifndef $(HAVE_MKDIRAT)
 3125 HAVE_MKDIRAT = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-mkdirat have_test_prog)
 3126 ifeq ($(HAVE_MKDIRAT),1)
 3127 	CONFIG_CFLAGS += -DHAVE_MKDIRAT
 3128 endif
 3129 $(call using,$(HAVE_MKDIRAT),mkdirat)
 3130 endif
 3131 
 3132 ifndef $(HAVE_MKNODAT)
 3133 HAVE_MKNODAT = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-mknodat have_test_prog)
 3134 ifeq ($(HAVE_MKNODAT),1)
 3135 	CONFIG_CFLAGS += -DHAVE_MKNODAT
 3136 endif
 3137 $(call using,$(HAVE_MKNODAT),mknodat)
 3138 endif
 3139 
 3140 ifndef $(HAVE_MLOCK)
 3141 HAVE_MLOCK = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-mlock have_test_prog)
 3142 ifeq ($(HAVE_MLOCK),1)
 3143 	CONFIG_CFLAGS += -DHAVE_MLOCK
 3144 endif
 3145 $(call using,$(HAVE_MLOCK),mlock)
 3146 endif
 3147 
 3148 ifndef $(HAVE_MLOCK2)
 3149 HAVE_MLOCK2 = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-mlock2 have_test_prog)
 3150 ifeq ($(HAVE_MLOCK2),1)
 3151 	CONFIG_CFLAGS += -DHAVE_MLOCK2
 3152 endif
 3153 $(call using,$(HAVE_MLOCK2),mlock2)
 3154 endif
 3155 
 3156 ifndef $(HAVE_MLOCKALL)
 3157 HAVE_MLOCKALL = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-mlockall have_test_prog)
 3158 ifeq ($(HAVE_MLOCKALL),1)
 3159 	CONFIG_CFLAGS += -DHAVE_MLOCKALL
 3160 endif
 3161 $(call using,$(HAVE_MLOCKALL),mlockall)
 3162 endif
 3163 
 3164 ifndef $(HAVE_MODIFY_LDT)
 3165 HAVE_MODIFY_LDT = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-modify-ldt have_test_prog)
 3166 ifeq ($(HAVE_MODIFY_LDT),1)
 3167 	CONFIG_CFLAGS += -DHAVE_MODIFY_LDT
 3168 endif
 3169 $(call using,$(HAVE_MODIFY_LDT),modify_ldt)
 3170 endif
 3171 
 3172 ifndef $(HAVE_MPROTECT)
 3173 HAVE_MPROTECT = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-mprotect have_test_prog)
 3174 ifeq ($(HAVE_MPROTECT),1)
 3175 	CONFIG_CFLAGS += -DHAVE_MPROTECT
 3176 endif
 3177 $(call using,$(HAVE_MPROTECT),mprotect)
 3178 endif
 3179 
 3180 ifndef $(HAVE_MREMAP)
 3181 HAVE_MREMAP = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-mremap have_test_prog)
 3182 ifeq ($(HAVE_MREMAP),1)
 3183 	CONFIG_CFLAGS += -DHAVE_MREMAP
 3184 endif
 3185 $(call using,$(HAVE_MREMAP),mremap)
 3186 endif
 3187 
 3188 ifndef $(HAVE_MSYNC)
 3189 HAVE_MSYNC = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-msync have_test_prog)
 3190 ifeq ($(HAVE_MSYNC),1)
 3191 	CONFIG_CFLAGS += -DHAVE_MSYNC
 3192 endif
 3193 $(call using,$(HAVE_MSYNC),msync)
 3194 endif
 3195 
 3196 ifndef $(HAVE_MUNLOCK)
 3197 HAVE_MUNLOCK = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-munlock have_test_prog)
 3198 ifeq ($(HAVE_MUNLOCK),1)
 3199 	CONFIG_CFLAGS += -DHAVE_MUNLOCK
 3200 endif
 3201 $(call using,$(HAVE_MUNLOCK),munlock)
 3202 endif
 3203 
 3204 ifndef $(HAVE_MUNLOCKALL)
 3205 HAVE_MUNLOCKALL = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-munlockall have_test_prog)
 3206 ifeq ($(HAVE_MUNLOCKALL),1)
 3207 	CONFIG_CFLAGS += -DHAVE_MUNLOCKALL
 3208 endif
 3209 $(call using,$(HAVE_MUNLOCKALL),munlockall)
 3210 endif
 3211 
 3212 
 3213 ifndef $(HAVE_NAME_TO_HANDLE_AT)
 3214 HAVE_NAME_TO_HANDLE_AT = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-name-to-handle-at have_test_prog)
 3215 ifeq ($(HAVE_NAME_TO_HANDLE_AT),1)
 3216 	CONFIG_CFLAGS += -DHAVE_NAME_TO_HANDLE_AT
 3217 endif
 3218 $(call using,$(HAVE_NAME_TO_HANDLE_AT),name_to_handle_at)
 3219 endif
 3220 
 3221 ifndef $(HAVE_NANOSLEEP)
 3222 HAVE_NANOSLEEP = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-nanosleep have_test_prog)
 3223 ifeq ($(HAVE_NANOSLEEP),1)
 3224 	CONFIG_CFLAGS += -DHAVE_NANOSLEEP
 3225 endif
 3226 $(call using,$(HAVE_NANOSLEEP),nanosleep)
 3227 endif
 3228 
 3229 ifndef $(HAVE_NICE)
 3230 HAVE_NICE = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-nice have_test_prog)
 3231 ifeq ($(HAVE_NICE),1)
 3232 	CONFIG_CFLAGS += -DHAVE_NICE
 3233 endif
 3234 $(call using,$(HAVE_NICE),nice)
 3235 endif
 3236 
 3237 ifndef $(HAVE_OPENAT)
 3238 HAVE_OPENAT = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-openat have_test_prog)
 3239 ifeq ($(HAVE_OPENAT),1)
 3240 	CONFIG_CFLAGS += -DHAVE_OPENAT
 3241 endif
 3242 $(call using,$(HAVE_OPENAT),openat)
 3243 endif
 3244 
 3245 ifndef $(HAVE_OPENAT2)
 3246 HAVE_OPENAT2 = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-openat2 have_test_prog)
 3247 ifeq ($(HAVE_OPENAT2),1)
 3248 	CONFIG_CFLAGS += -DHAVE_OPENAT2
 3249 endif
 3250 $(call using,$(HAVE_OPENAT2),openat2)
 3251 endif
 3252 
 3253 ifndef $(HAVE_OPEN_BY_HANDLE_AT)
 3254 HAVE_OPEN_BY_HANDLE_AT = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-open-by-handle-at have_test_prog)
 3255 ifeq ($(HAVE_OPEN_BY_HANDLE_AT),1)
 3256 	CONFIG_CFLAGS += -DHAVE_OPEN_BY_HANDLE_AT
 3257 endif
 3258 $(call using,$(HAVE_OPEN_BY_HANDLE_AT),open_by_handle_at)
 3259 endif
 3260 
 3261 ifndef $(HAVE_PIDFD_GETFD)
 3262 HAVE_PIDFD_GETFD = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-pidfd-getfd have_test_prog)
 3263 ifeq ($(HAVE_PIDFD_GETFD),1)
 3264 	CONFIG_CFLAGS += -DHAVE_PIDFD_GETFD
 3265 endif
 3266 $(call using,$(HAVE_PIDFD_GETFD),pidfd_getfd)
 3267 endif
 3268 
 3269 ifndef $(HAVE_PIDFD_OPEN)
 3270 HAVE_PIDFD_OPEN = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-pidfd-open have_test_prog)
 3271 ifeq ($(HAVE_PIDFD_OPEN),1)
 3272 	CONFIG_CFLAGS += -DHAVE_PIDFD_OPEN
 3273 endif
 3274 $(call using,$(HAVE_PIDFD_OPEN),pidfd_open)
 3275 endif
 3276 
 3277 ifndef $(HAVE_PIDFD_SEND_SIGNAL)
 3278 HAVE_PIDFD_SEND_SIGNAL = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-pidfd-send-signal have_test_prog)
 3279 ifeq ($(HAVE_PIDFD_SEND_SIGNAL),1)
 3280 	CONFIG_CFLAGS += -DHAVE_PIDFD_SEND_SIGNAL
 3281 endif
 3282 $(call using,$(HAVE_PIDFD_SEND_SIGNAL),pidfd_send_signal)
 3283 endif
 3284 
 3285 ifndef $(HAVE_PERSONALITY)
 3286 HAVE_PERSONALITY = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-personality have_test_prog)
 3287 ifeq ($(HAVE_PERSONALITY),1)
 3288 	CONFIG_CFLAGS += -DHAVE_PERSONALITY
 3289 endif
 3290 $(call using,$(HAVE_PERSONALITY),personality)
 3291 endif
 3292 
 3293 ifndef $(HAVE_PIPE2)
 3294 HAVE_PIPE2 = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-pipe2 have_test_prog)
 3295 ifeq ($(HAVE_PIPE2),1)
 3296 	CONFIG_CFLAGS += -DHAVE_PIPE2
 3297 endif
 3298 $(call using,$(HAVE_PIPE2),pipe2)
 3299 endif
 3300 
 3301 ifndef $(HAVE_PKEY_ALLOC)
 3302 HAVE_PKEY_ALLOC = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-pkey-alloc have_test_prog)
 3303 ifeq ($(HAVE_PKEY_ALLOC),1)
 3304 	CONFIG_CFLAGS += -DHAVE_PKEY_ALLOC
 3305 endif
 3306 $(call using,$(HAVE_PKEY_ALLOC),pkey_alloc)
 3307 endif
 3308 
 3309 ifndef $(HAVE_PKEY_FREE)
 3310 HAVE_PKEY_FREE = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-pkey-free have_test_prog)
 3311 ifeq ($(HAVE_PKEY_FREE),1)
 3312 	CONFIG_CFLAGS += -DHAVE_PKEY_FREE
 3313 endif
 3314 $(call using,$(HAVE_PKEY_FREE),pkey_free)
 3315 endif
 3316 
 3317 ifndef $(HAVE_PKEY_GET)
 3318 HAVE_PKEY_GET = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-pkey-get have_test_prog)
 3319 ifeq ($(HAVE_PKEY_GET),1)
 3320 	CONFIG_CFLAGS += -DHAVE_PKEY_GET
 3321 endif
 3322 $(call using,$(HAVE_PKEY_GET),pkey_get)
 3323 endif
 3324 
 3325 ifndef $(HAVE_PKEY_SET)
 3326 HAVE_PKEY_SET = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-pkey-set have_test_prog)
 3327 ifeq ($(HAVE_PKEY_SET),1)
 3328 	CONFIG_CFLAGS += -DHAVE_PKEY_SET
 3329 endif
 3330 $(call using,$(HAVE_PKEY_SET),pkey_set)
 3331 endif
 3332 
 3333 ifndef $(HAVE_PKEY_MPROTECT)
 3334 HAVE_PKEY_MPROTECT = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-pkey-mprotect have_test_prog)
 3335 ifeq ($(HAVE_PKEY_MPROTECT),1)
 3336 	CONFIG_CFLAGS += -DHAVE_PKEY_MPROTECT
 3337 endif
 3338 $(call using,$(HAVE_PKEY_MPROTECT),pkey_mprotect)
 3339 endif
 3340 
 3341 ifndef $(HAVE_POSIX_FADVISE)
 3342 HAVE_POSIX_FADVISE = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-posix-fadvise have_test_prog)
 3343 ifeq ($(HAVE_POSIX_FADVISE),1)
 3344 	CONFIG_CFLAGS += -DHAVE_POSIX_FADVISE
 3345 endif
 3346 $(call using,$(HAVE_POSIX_FADVISE),posix_fadvise)
 3347 endif
 3348 
 3349 ifndef $(HAVE_POSIX_FALLOCATE)
 3350 HAVE_POSIX_FALLOCATE = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-posix-fallocate have_test_prog)
 3351 ifeq ($(HAVE_POSIX_FALLOCATE),1)
 3352 	CONFIG_CFLAGS += -DHAVE_POSIX_FALLOCATE
 3353 endif
 3354 $(call using,$(HAVE_POSIX_FALLOCATE),posix_fallocate)
 3355 endif
 3356 
 3357 ifndef $(HAVE_POSIX_MADVISE)
 3358 HAVE_POSIX_MADVISE = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-posix-madvise have_test_prog)
 3359 ifeq ($(HAVE_POSIX_MADVISE),1)
 3360 	CONFIG_CFLAGS += -DHAVE_POSIX_MADVISE
 3361 endif
 3362 $(call using,$(HAVE_POSIX_MADVISE),posix_madvise)
 3363 endif
 3364 
 3365 ifndef $(HAVE_POSIX_MEMALIGN)
 3366 HAVE_POSIX_MEMALIGN = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-posix-memalign have_test_prog)
 3367 ifeq ($(HAVE_POSIX_MEMALIGN),1)
 3368 	CONFIG_CFLAGS += -DHAVE_POSIX_MEMALIGN
 3369 endif
 3370 $(call using,$(HAVE_POSIX_MEMALIGN),posix_memalign)
 3371 endif
 3372 
 3373 ifndef $(HAVE_MQ_POSIX)
 3374 HAVE_MQ_POSIX = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-mq-posix TEST_LIBS='$(CONFIG_LDFLAGS)' have_test_prog)
 3375 ifeq ($(HAVE_MQ_POSIX),1)
 3376 	CONFIG_CFLAGS += -DHAVE_MQ_POSIX
 3377 endif
 3378 $(call using,$(HAVE_MQ_POSIX),POSIX message queues)
 3379 endif
 3380 
 3381 ifndef $(HAVE_PPC_GET_TIMEBASE)
 3382 HAVE_PPC_GET_TIMEBASE = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-ppc-get-timebase TEST_LIBS='$(CONFIG_LDFLAGS)' have_test_prog)
 3383 ifeq ($(HAVE_PPC_GET_TIMEBASE),1)
 3384 	CONFIG_CFLAGS += -DHAVE_PPC_GET_TIMEBASE
 3385 endif
 3386 $(call using,$(HAVE_PPC_GET_TIMEBASE),__ppc_get_timebase (powerpc))
 3387 endif
 3388 
 3389 ifndef $(HAVE_POSIX_OPENPT)
 3390 HAVE_POSIX_OPENPT = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-posix-openpt have_test_prog)
 3391 ifeq ($(HAVE_POSIX_OPENPT),1)
 3392 	CONFIG_CFLAGS += -DHAVE_POSIX_OPENPT
 3393 endif
 3394 $(call using,$(HAVE_POSIX_OPENPT),posix_openpt)
 3395 endif
 3396 
 3397 ifndef $(HAVE_QUOTACTL_FD)
 3398 HAVE_QUOTACTL_FD = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-quotactl-fd have_test_prog)
 3399 ifeq ($(HAVE_QUOTACTL_FD),1)
 3400 	CONFIG_CFLAGS += -DHAVE_QUOTACTL_FD
 3401 endif
 3402 $(call using,$(HAVE_QUOTACTL_FD),quotactl_fd)
 3403 endif
 3404 
 3405 ifndef $(HAVE_SEM_POSIX)
 3406 HAVE_SEM_POSIX = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-sem-posix TEST_LIBS='$(CONFIG_LDFLAGS)' have_test_prog)
 3407 ifeq ($(HAVE_SEM_POSIX),1)
 3408 	CONFIG_CFLAGS += -DHAVE_SEM_POSIX
 3409 endif
 3410 $(call using,$(HAVE_SEM_POSIX),POSIX semaphores)
 3411 endif
 3412 
 3413 ifndef $(HAVE_POSIX_SPAWN)
 3414 HAVE_POSIX_SPAWN = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-posix-spawn have_test_prog)
 3415 ifeq ($(HAVE_POSIX_SPAWN),1)
 3416 	CONFIG_CFLAGS += -DHAVE_POSIX_SPAWN
 3417 endif
 3418 $(call using,$(HAVE_POSIX_SPAWN),posix_spawn)
 3419 endif
 3420 
 3421 ifndef $(HAVE_POWL)
 3422 MATHFUNC=powl
 3423 export MATHFUNC
 3424 HAVE_POWL = $(shell $(MAKE) $(MAKE_OPTS) MATHFUNC=powl have_mathfunc)
 3425 ifeq ($(HAVE_POWL),1)
 3426 	CONFIG_CFLAGS += -DHAVE_POWL
 3427 endif
 3428 $(call using,$(HAVE_POWL),powl)
 3429 endif
 3430 
 3431 ifndef $(HAVE_PPOLL)
 3432 HAVE_PPOLL = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-ppoll have_test_prog)
 3433 ifeq ($(HAVE_PPOLL),1)
 3434 	CONFIG_CFLAGS += -DHAVE_PPOLL
 3435 endif
 3436 $(call using,$(HAVE_PPOLL),ppoll)
 3437 endif
 3438 
 3439 ifndef $(HAVE_PRCTL)
 3440 HAVE_PRCTL = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-prctl have_test_prog)
 3441 ifeq ($(HAVE_PRCTL),1)
 3442 	CONFIG_CFLAGS += -DHAVE_PRCTL
 3443 endif
 3444 $(call using,$(HAVE_PRCTL),prctl)
 3445 endif
 3446 
 3447 ifndef $(HAVE_PREADV)
 3448 HAVE_PREADV = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-preadv have_test_prog)
 3449 ifeq ($(HAVE_PREADV),1)
 3450 	CONFIG_CFLAGS += -DHAVE_PREADV
 3451 endif
 3452 $(call using,$(HAVE_PREADV),preadv)
 3453 endif
 3454 
 3455 ifndef $(HAVE_PREADV2)
 3456 HAVE_PREADV2 = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-preadv2 have_test_prog)
 3457 ifeq ($(HAVE_PREADV2),1)
 3458 	CONFIG_CFLAGS += -DHAVE_PREADV2
 3459 endif
 3460 $(call using,$(HAVE_PREADV2),preadv2)
 3461 endif
 3462 
 3463 ifndef $(HAVE_PRLIMIT)
 3464 HAVE_PRLIMIT = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-prlimit have_test_prog)
 3465 ifeq ($(HAVE_PRLIMIT),1)
 3466 	CONFIG_CFLAGS += -DHAVE_PRLIMIT
 3467 endif
 3468 $(call using,$(HAVE_PRLIMIT),prlimit)
 3469 endif
 3470 
 3471 ifndef $(HAVE_PROCESS_VM_READV)
 3472 HAVE_PROCESS_VM_READV = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-process-vm-readv have_test_prog)
 3473 ifeq ($(HAVE_PROCESS_VM_READV),1)
 3474 	CONFIG_CFLAGS += -DHAVE_PROCESS_VM_READV
 3475 endif
 3476 $(call using,$(HAVE_PROCESS_VM_READV),process_vm_readv)
 3477 endif
 3478 
 3479 ifndef $(HAVE_PROCESS_VM_WRITEV)
 3480 HAVE_PROCESS_VM_WRITEV = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-process-vm-writev have_test_prog)
 3481 ifeq ($(HAVE_PROCESS_VM_WRITEV),1)
 3482 	CONFIG_CFLAGS += -DHAVE_PROCESS_VM_WRITEV
 3483 endif
 3484 $(call using,$(HAVE_PROCESS_VM_WRITEV),process_vm_writev)
 3485 endif
 3486 
 3487 ifndef $(HAVE_PSELECT)
 3488 HAVE_PSELECT = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-pselect have_test_prog)
 3489 ifeq ($(HAVE_PSELECT),1)
 3490 	CONFIG_CFLAGS += -DHAVE_PSELECT
 3491 endif
 3492 $(call using,$(HAVE_PSELECT),pselect)
 3493 endif
 3494 
 3495 ifndef $(HAVE_PTHREAD_ATTR_SETSTACK)
 3496 HAVE_PTHREAD_ATTR_SETSTACK = $(shell $(MAKE) $(MAKE_OPTS) TEST_LIBS='$(CONFIG_LDFLAGS)' TEST_PROG=test-pthread-attr-setstack have_test_prog)
 3497 ifeq ($(HAVE_PTHREAD_ATTR_SETSTACK),1)
 3498 	CONFIG_CFLAGS += -DHAVE_PTHREAD_ATTR_SETSTACK
 3499 endif
 3500 $(call using,$(HAVE_PTHREAD_ATTR_SETSTACK),pthread_attr_setstack)
 3501 endif
 3502 
 3503 ifndef $(HAVE_PTHREAD_MUTEXATTR_DESTROY)
 3504 HAVE_PTHREAD_MUTEXATTR_DESTROY = $(shell $(MAKE) $(MAKE_OPTS) TEST_LIBS='$(CONFIG_LDFLAGS)' TEST_PROG=test-pthread-mutexattr-destroy have_test_prog)
 3505 ifeq ($(HAVE_PTHREAD_MUTEXATTR_DESTROY),1)
 3506 	CONFIG_CFLAGS += -DHAVE_PTHREAD_MUTEXATTR_DESTROY
 3507 endif
 3508 $(call using,$(HAVE_PTHREAD_MUTEXATTR_DESTROY),pthread_mutexattr_destroy)
 3509 endif
 3510 
 3511 ifndef $(HAVE_PTHREAD_MUTEXATTR_INIT)
 3512 HAVE_PTHREAD_MUTEXATTR_INIT = $(shell $(MAKE) $(MAKE_OPTS) TEST_LIBS='$(CONFIG_LDFLAGS)' TEST_PROG=test-pthread-mutexattr-init have_test_prog)
 3513 ifeq ($(HAVE_PTHREAD_MUTEXATTR_INIT),1)
 3514 	CONFIG_CFLAGS += -DHAVE_PTHREAD_MUTEXATTR_INIT
 3515 endif
 3516 $(call using,$(HAVE_PTHREAD_MUTEXATTR_INIT),pthread_mutexattr_init)
 3517 endif
 3518 
 3519 ifndef $(HAVE_PTHREAD_MUTEXATTR_SETPRIOCEILING)
 3520 HAVE_PTHREAD_MUTEXATTR_SETPRIOCEILING = $(shell $(MAKE) $(MAKE_OPTS) TEST_LIBS='$(CONFIG_LDFLAGS)' TEST_PROG=test-pthread-mutexattr-setprioceiling have_test_prog)
 3521 ifeq ($(HAVE_PTHREAD_MUTEXATTR_SETPRIOCEILING),1)
 3522 	CONFIG_CFLAGS += -DHAVE_PTHREAD_MUTEXATTR_SETPRIOCEILING
 3523 endif
 3524 $(call using,$(HAVE_PTHREAD_MUTEXATTR_SETPRIOCEILING),pthread_mutexattr_setprioceiling)
 3525 endif
 3526 
 3527 ifndef $(HAVE_PTHREAD_MUTEXATTR_SETPROTOCOL)
 3528 HAVE_PTHREAD_MUTEXATTR_SETPROTOCOL = $(shell $(MAKE) $(MAKE_OPTS) TEST_LIBS='$(CONFIG_LDFLAGS)' TEST_PROG=test-pthread-mutexattr-setprotocol have_test_prog)
 3529 ifeq ($(HAVE_PTHREAD_MUTEXATTR_SETPROTOCOL),1)
 3530 	CONFIG_CFLAGS += -DHAVE_PTHREAD_MUTEXATTR_SETPROTOCOL
 3531 endif
 3532 $(call using,$(HAVE_PTHREAD_MUTEXATTR_SETPROTOCOL),pthread_mutexattr_setprotocol)
 3533 endif
 3534 
 3535 ifndef $(HAVE_PTHREAD_SIGQUEUE)
 3536 HAVE_PTHREAD_SIGQUEUE = $(shell $(MAKE) $(MAKE_OPTS) TEST_LIBS='$(CONFIG_LDFLAGS)' TEST_PROG=test-pthread_sigqueue have_test_prog)
 3537 ifeq ($(HAVE_PTHREAD_SIGQUEUE),1)
 3538 	CONFIG_CFLAGS += -DHAVE_PTHREAD_SIGQUEUE
 3539 endif
 3540 $(call using,$(HAVE_PTHREAD_SIGQUEUE),pthread_sigqueue)
 3541 endif
 3542 
 3543 ifndef $(HAVE_PTRACE)
 3544 HAVE_PTRACE = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-ptrace have_test_prog)
 3545 ifeq ($(HAVE_PTRACE),1)
 3546 	CONFIG_CFLAGS += -DHAVE_PTRACE
 3547 endif
 3548 $(call using,$(HAVE_PTRACE),ptrace)
 3549 endif
 3550 
 3551 ifndef $(HAVE_PTSNAME)
 3552 HAVE_PTSNAME = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-ptsname have_test_prog)
 3553 ifeq ($(HAVE_PTSNAME),1)
 3554 	CONFIG_CFLAGS += -DHAVE_PTSNAME
 3555 endif
 3556 $(call using,$(HAVE_PTSNAME),ptsname)
 3557 endif
 3558 
 3559 ifndef $(HAVE_PWRITEV)
 3560 HAVE_PWRITEV = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-pwritev have_test_prog)
 3561 ifeq ($(HAVE_PWRITEV),1)
 3562 	CONFIG_CFLAGS += -DHAVE_PWRITEV
 3563 endif
 3564 $(call using,$(HAVE_PWRITEV),pwritev)
 3565 endif
 3566 
 3567 ifndef $(HAVE_PWRITEV2)
 3568 HAVE_PWRITEV2 = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-pwritev2 have_test_prog)
 3569 ifeq ($(HAVE_PWRITEV2),1)
 3570 	CONFIG_CFLAGS += -DHAVE_PWRITEV2
 3571 endif
 3572 $(call using,$(HAVE_PWRITEV2),pwritev2)
 3573 endif
 3574 
 3575 ifndef $(HAVE_READLINKAT)
 3576 HAVE_READLINKAT = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-readlinkat have_test_prog)
 3577 ifeq ($(HAVE_READLINKAT),1)
 3578 	CONFIG_CFLAGS += -DHAVE_READLINKAT
 3579 endif
 3580 $(call using,$(HAVE_READLINKAT),readlinkat)
 3581 endif
 3582 
 3583 ifndef $(HAVE_RECVMMSG)
 3584 HAVE_RECVMMSG = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-recvmmsg have_test_prog)
 3585 ifeq ($(HAVE_RECVMMSG),1)
 3586 	CONFIG_CFLAGS += -DHAVE_RECVMMSG
 3587 $(call using,$(HAVE_RECVMMSG),recvmmsg)
 3588 endif
 3589 endif
 3590 
 3591 ifndef $(HAVE_REMAP_FILE_PAGES)
 3592 HAVE_REMAP_FILE_PAGES = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-remap-file-pages have_test_prog)
 3593 ifeq ($(HAVE_REMAP_FILE_PAGES),1)
 3594 	CONFIG_CFLAGS += -DHAVE_REMAP_FILE_PAGES
 3595 endif
 3596 $(call using,$(HAVE_REMAP_FILE_PAGES),remap_file_pages)
 3597 endif
 3598 
 3599 ifndef $(HAVE_REMOVEXATTR)
 3600 HAVE_REMOVEXATTR = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-removexattr have_test_prog)
 3601 ifeq ($(HAVE_REMOVEXATTR),1)
 3602 	CONFIG_CFLAGS += -DHAVE_REMOVEXATTR
 3603 endif
 3604 $(call using,$(HAVE_REMOVEXATTR),removexattr)
 3605 endif
 3606 
 3607 ifndef $(HAVE_RENAMEAT)
 3608 HAVE_RENAMEAT = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-renameat have_test_prog)
 3609 ifeq ($(HAVE_RENAMEAT),1)
 3610 	CONFIG_CFLAGS += -DHAVE_RENAMEAT
 3611 endif
 3612 $(call using,$(HAVE_RENAMEAT),renameat)
 3613 endif
 3614 
 3615 ifndef $(HAVE_RENAMEAT2)
 3616 HAVE_RENAMEAT2 = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-renameat2 have_test_prog)
 3617 ifeq ($(HAVE_RENAMEAT2),1)
 3618 	CONFIG_CFLAGS += -DHAVE_RENAMEAT2
 3619 endif
 3620 $(call using,$(HAVE_RENAMEAT2),renameat2)
 3621 endif
 3622 
 3623 ifndef $(HAVE_RINTL)
 3624 MATHFUNC=rintl
 3625 export MATHFUNC
 3626 HAVE_RINTL = $(shell $(MAKE) $(MAKE_OPTS) MATHFUNC=rintl have_mathfunc)
 3627 ifeq ($(HAVE_RINTL),1)
 3628 	CONFIG_CFLAGS += -DHAVE_RINTL
 3629 endif
 3630 $(call using,$(HAVE_RINTL),rintl)
 3631 endif
 3632 
 3633 ifndef $(HAVE_SBRK)
 3634 HAVE_SBRK = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-sbrk have_test_prog)
 3635 ifeq ($(HAVE_SBRK),1)
 3636 	CONFIG_CFLAGS += -DHAVE_SBRK
 3637 endif
 3638 $(call using,$(HAVE_SBRK),sbrk)
 3639 endif
 3640 
 3641 ifndef $(HAVE_SCHED_GET_PRIORITY_MAX)
 3642 HAVE_SCHED_GET_PRIORITY_MAX = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-sched-get-priority-max have_test_prog)
 3643 ifeq ($(HAVE_SCHED_GET_PRIORITY_MAX),1)
 3644 	CONFIG_CFLAGS += -DHAVE_SCHED_GET_PRIORITY_MAX
 3645 endif
 3646 $(call using,$(HAVE_SCHED_GET_PRIORITY_MAX),sched_get_priority_max)
 3647 endif
 3648 
 3649 ifndef $(HAVE_SCHED_GET_PRIORITY_MIN)
 3650 HAVE_SCHED_GET_PRIORITY_MIN = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-sched-get-priority-min have_test_prog)
 3651 ifeq ($(HAVE_SCHED_GET_PRIORITY_MIN),1)
 3652 	CONFIG_CFLAGS += -DHAVE_SCHED_GET_PRIORITY_MIN
 3653 endif
 3654 $(call using,$(HAVE_SCHED_GET_PRIORITY_MIN),sched_get_priority_min)
 3655 endif
 3656 
 3657 ifndef $(HAVE_SCHED_GETAFFINITY)
 3658 HAVE_SCHED_GETAFFINITY = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-sched-getaffinity have_test_prog)
 3659 ifeq ($(HAVE_SCHED_GETAFFINITY),1)
 3660 	CONFIG_CFLAGS += -DHAVE_SCHED_GETAFFINITY
 3661 endif
 3662 $(call using,$(HAVE_SCHED_GETAFFINITY),sched_getaffinity)
 3663 endif
 3664 
 3665 ifndef $(HAVE_SCHED_GETCPU)
 3666 HAVE_SCHED_GETCPU = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-sched-getcpu have_test_prog)
 3667 ifeq ($(HAVE_SCHED_GETCPU),1)
 3668 	CONFIG_CFLAGS += -DHAVE_SCHED_GETCPU
 3669 endif
 3670 $(call using,$(HAVE_SCHED_GETAFFINITY),sched_getcpu)
 3671 endif
 3672 
 3673 ifndef $(HAVE_SCHED_RR_GET_INTERVAL)
 3674 HAVE_SCHED_RR_GET_INTERVAL = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-sched-rr-get-interval have_test_prog)
 3675 ifeq ($(HAVE_SCHED_RR_GET_INTERVAL),1)
 3676 	CONFIG_CFLAGS += -DHAVE_SCHED_RR_GET_INTERVAL
 3677 endif
 3678 $(call using,$(HAVE_SCHED_RR_GET_INTERVAL),sched_rr_get_interval)
 3679 endif
 3680 
 3681 ifndef $(HAVE_SCHED_SETSCHEDULER)
 3682 HAVE_SCHED_SETSCHEDULER = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-sched-setscheduler have_test_prog)
 3683 ifeq ($(HAVE_SCHED_SETSCHEDULER),1)
 3684 	CONFIG_CFLAGS += -DHAVE_SCHED_SETSCHEDULER
 3685 endif
 3686 $(call using,$(HAVE_SCHED_SETSCHEDULER),sched_setscheduler)
 3687 endif
 3688 
 3689 ifndef $(HAVE_SCHED_YIELD)
 3690 HAVE_SCHED_YIELD = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-sched-yield have_test_prog)
 3691 ifeq ($(HAVE_SCHED_YIELD),1)
 3692 	CONFIG_CFLAGS += -DHAVE_SCHED_YIELD
 3693 endif
 3694 $(call using,$(HAVE_SCHED_YIELD),sched_yield)
 3695 endif
 3696 
 3697 ifndef $(HAVE_SENDMMSG)
 3698 HAVE_SENDMMSG = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-sendmmsg have_test_prog)
 3699 ifeq ($(HAVE_SENDMMSG),1)
 3700 	CONFIG_CFLAGS += -DHAVE_SENDMMSG
 3701 endif
 3702 $(call using,$(HAVE_SENDMMSG),sendmmsg)
 3703 endif
 3704 
 3705 ifndef $(HAVE_SETDOMAINNAME)
 3706 HAVE_SETDOMAINNAME = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-setdomainname have_test_prog)
 3707 ifeq ($(HAVE_SETDOMAINNAME),1)
 3708 	CONFIG_CFLAGS += -DHAVE_SETDOMAINNAME
 3709 endif
 3710 $(call using,$(HAVE_SETDOMAINNAME),setdomainname)
 3711 endif
 3712 
 3713 ifndef $(HAVE_SETFSGID)
 3714 HAVE_SETFSGID = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-setfsgid have_test_prog)
 3715 ifeq ($(HAVE_SETFSGID),1)
 3716 	CONFIG_CFLAGS += -DHAVE_SETFSGID
 3717 endif
 3718 $(call using,$(HAVE_SETDOMAINNAME),setfsgid)
 3719 endif
 3720 
 3721 ifndef $(HAVE_SETFSUID)
 3722 HAVE_SETFSUID = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-setfsuid have_test_prog)
 3723 ifeq ($(HAVE_SETFSUID),1)
 3724 	CONFIG_CFLAGS += -DHAVE_SETFSUID
 3725 endif
 3726 $(call using,$(HAVE_SETFSUID),setfsuid)
 3727 endif
 3728 
 3729 ifndef $(HAVE_SETNS)
 3730 HAVE_SETNS = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-setns have_test_prog)
 3731 ifeq ($(HAVE_SETNS),1)
 3732 	CONFIG_CFLAGS += -DHAVE_SETNS
 3733 endif
 3734 $(call using,$(HAVE_SETNS),setns)
 3735 endif
 3736 
 3737 ifndef $(HAVE_SETPROCTITLE)
 3738 HAVE_SETPROCTITLE = $(shell $(MAKE) $(MAKE_OPTS) TEST_LIBS='$(CONFIG_LDFLAGS)' TEST_PROG=test-setproctitle have_test_prog)
 3739 ifeq ($(HAVE_SETPROCTITLE),1)
 3740 	CONFIG_CFLAGS += -DHAVE_SETPROCTITLE
 3741 endif
 3742 $(call using,$(HAVE_SETPROCTITLE),setproctitle)
 3743 endif
 3744 
 3745 ifndef $(HAVE_SETPGID)
 3746 HAVE_SETPGID = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-setpgid have_test_prog)
 3747 ifeq ($(HAVE_SETPGID),1)
 3748 	CONFIG_CFLAGS += -DHAVE_SETPGID
 3749 endif
 3750 $(call using,$(HAVE_SETPGID),setpgid)
 3751 endif
 3752 
 3753 ifndef $(HAVE_SETPGRP)
 3754 HAVE_SETPGRP = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-setpgrp have_test_prog)
 3755 ifeq ($(HAVE_SETPGRP),1)
 3756 	CONFIG_CFLAGS += -DHAVE_SETPGRP
 3757 endif
 3758 $(call using,$(HAVE_SETPGRP),setpgrp)
 3759 endif
 3760 
 3761 ifndef $(HAVE_SETPRIORITY)
 3762 HAVE_SETPRIORITY = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-setpriority have_test_prog)
 3763 ifeq ($(HAVE_SETPRIORITY),1)
 3764 	CONFIG_CFLAGS += -DHAVE_SETPRIORITY
 3765 endif
 3766 $(call using,$(HAVE_SETPRIORITY),setpriority)
 3767 endif
 3768 
 3769 ifndef $(HAVE_SETPWENT)
 3770 HAVE_SETPWENT = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-setpwent have_test_prog)
 3771 ifeq ($(HAVE_SETPWENT),1)
 3772 	CONFIG_CFLAGS += -DHAVE_SETPWENT
 3773 $(call using,$(HAVE_SETPWENT),setpwent)
 3774 endif
 3775 endif
 3776 
 3777 ifndef $(HAVE_SETREGID)
 3778 HAVE_SETREGID = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-setregid have_test_prog)
 3779 ifeq ($(HAVE_SETREGID),1)
 3780 	CONFIG_CFLAGS += -DHAVE_SETREGID
 3781 endif
 3782 $(call using,$(HAVE_SETREGID),setregid)
 3783 endif
 3784 
 3785 ifndef $(HAVE_SETRESGID)
 3786 HAVE_SETRESGID = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-setresgid have_test_prog)
 3787 ifeq ($(HAVE_SETRESGID),1)
 3788 	CONFIG_CFLAGS += -DHAVE_SETRESGID
 3789 endif
 3790 $(call using,$(HAVE_SETRESGID),setresgid)
 3791 endif
 3792 
 3793 ifndef $(HAVE_SETRESUID)
 3794 HAVE_SETRESUID = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-setresuid have_test_prog)
 3795 ifeq ($(HAVE_SETRESUID),1)
 3796 	CONFIG_CFLAGS += -DHAVE_SETRESUID
 3797 endif
 3798 $(call using,$(HAVE_SETRESUID),setresuid)
 3799 endif
 3800 
 3801 ifndef $(HAVE_SETREUID)
 3802 HAVE_SETREUID = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-setreuid have_test_prog)
 3803 ifeq ($(HAVE_SETREUID),1)
 3804 	CONFIG_CFLAGS += -DHAVE_SETREUID
 3805 endif
 3806 $(call using,$(HAVE_SETREUID),setreuid)
 3807 endif
 3808 
 3809 ifndef $(HAVE_SETTIMEOFDAY)
 3810 HAVE_SETTIMEOFDAY = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-settimeofday have_test_prog)
 3811 ifeq ($(HAVE_SETTIMEOFDAY),1)
 3812       CONFIG_CFLAGS += -DHAVE_SETTIMEOFDAY
 3813 endif
 3814 $(call using,$(HAVE_SETTIMEOFDAY),settimeofday)
 3815 endif
 3816 
 3817 ifndef $(HAVE_SETXATTR)
 3818 HAVE_SETXATTR = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-setxattr have_test_prog)
 3819 ifeq ($(HAVE_SETXATTR),1)
 3820 	CONFIG_CFLAGS += -DHAVE_SETXATTR
 3821 endif
 3822 $(call using,$(HAVE_SETXATTR),setxattr)
 3823 endif
 3824 
 3825 ifndef $(HAVE_SIGALTSTACK)
 3826 HAVE_SIGALTSTACK = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-sigaltstack have_test_prog)
 3827 ifeq ($(HAVE_SIGALTSTACK),1)
 3828 	CONFIG_CFLAGS += -DHAVE_SIGALTSTACK
 3829 endif
 3830 $(call using,$(HAVE_SIGALTSTACK),sigaltstack)
 3831 endif
 3832 
 3833 ifndef $(HAVE_SIGNALFD)
 3834 HAVE_SIGNALFD = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-signalfd have_test_prog)
 3835 ifeq ($(HAVE_SIGNALFD),1)
 3836 	CONFIG_CFLAGS += -DHAVE_SIGNALFD
 3837 endif
 3838 $(call using,$(HAVE_SIGNALFD),signalfd)
 3839 endif
 3840 
 3841 ifndef $(HAVE_SIGQUEUE)
 3842 HAVE_SIGQUEUE = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-sigqueue have_test_prog)
 3843 ifeq ($(HAVE_SIGQUEUE),1)
 3844 	CONFIG_CFLAGS += -DHAVE_SIGQUEUE
 3845 endif
 3846 $(call using,$(HAVE_SIGQUEUE),sigqueue)
 3847 endif
 3848 
 3849 ifndef $(HAVE_SIGWAITINFO)
 3850 HAVE_SIGWAITINFO = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-sigwaitinfo have_test_prog)
 3851 ifeq ($(HAVE_SIGWAITINFO),1)
 3852 	CONFIG_CFLAGS += -DHAVE_SIGWAITINFO
 3853 endif
 3854 $(call using,$(HAVE_SIGWAITINFO),sigwaitinfo)
 3855 endif
 3856 
 3857 ifndef $(HAVE_SINHL)
 3858 MATHFUNC=sinhl
 3859 export MATHFUNC
 3860 HAVE_SINHL = $(shell $(MAKE) $(MAKE_OPTS) MATHFUNC=sinhl have_mathfunc)
 3861 ifeq ($(HAVE_SINHL),1)
 3862 	CONFIG_CFLAGS += -DHAVE_SINHL
 3863 endif
 3864 $(call using,$(HAVE_SINHL),sinhl)
 3865 endif
 3866 
 3867 ifndef $(HAVE_SINL)
 3868 MATHFUNC=sinl
 3869 export MATHFUNC
 3870 HAVE_SINL = $(shell $(MAKE) $(MAKE_OPTS) MATHFUNC=sinl have_mathfunc)
 3871 ifeq ($(HAVE_SINL),1)
 3872 	CONFIG_CFLAGS += -DHAVE_SINL
 3873 endif
 3874 $(call using,$(HAVE_SINL),sinl)
 3875 endif
 3876 
 3877 ifndef $(HAVE_SPLICE)
 3878 HAVE_SPLICE = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-splice have_test_prog)
 3879 ifeq ($(HAVE_SPLICE),1)
 3880 	CONFIG_CFLAGS += -DHAVE_SPLICE
 3881 endif
 3882 $(call using,$(HAVE_SPLICE),splice)
 3883 endif
 3884 
 3885 ifndef $(HAVE_SQRTL)
 3886 MATHFUNC=sqrtl
 3887 export MATHFUNC
 3888 HAVE_SQRTL = $(shell $(MAKE) $(MAKE_OPTS) MATHFUNC=sqrtl have_mathfunc)
 3889 ifeq ($(HAVE_SQRTL),1)
 3890 	CONFIG_CFLAGS += -DHAVE_SQRTL
 3891 endif
 3892 $(call using,$(HAVE_SQRTL),sqrtl)
 3893 endif
 3894 
 3895 ifndef $(HAVE_STATFS)
 3896 HAVE_STATFS = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-statfs have_test_prog)
 3897 ifeq ($(HAVE_STATFS),1)
 3898 	CONFIG_CFLAGS += -DHAVE_STATFS
 3899 endif
 3900 $(call using,$(HAVE_STATFS),statfs)
 3901 endif
 3902 
 3903 ifndef $(HAVE_STIME)
 3904 HAVE_STIME = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-stime have_test_prog)
 3905 ifeq ($(HAVE_STIME),1)
 3906 	CONFIG_CFLAGS += -DHAVE_STIME
 3907 endif
 3908 $(call using,$(HAVE_STIME),stime (deprecated))
 3909 endif
 3910 
 3911 ifndef $(HAVE_STRLCAT)
 3912 STRFUNC=strlcat
 3913 export STRFUNC
 3914 HAVE_STRLCAT = $(shell $(MAKE) $(MAKE_OPTS) STRFUNC=strlcat have_strfunc)
 3915 ifeq ($(HAVE_STRLCAT),1)
 3916 	CONFIG_CFLAGS += -DHAVE_STRLCAT
 3917 endif
 3918 $(call using,$(HAVE_STRLCAT),strlcat)
 3919 endif
 3920 
 3921 ifndef $(HAVE_STRLCPY)
 3922 STRFUNC=strlcpy
 3923 export STRFUNC
 3924 HAVE_STRLCPY = $(shell $(MAKE) $(MAKE_OPTS) STRFUNC=strlcpy have_strfunc)
 3925 ifeq ($(HAVE_STRLCPY),1)
 3926 	CONFIG_CFLAGS += -DHAVE_STRLCPY
 3927 endif
 3928 $(call using,$(HAVE_STRLCPY),strlcpy)
 3929 endif
 3930 
 3931 ifndef $(HAVE_SWAPCONTEXT)
 3932 HAVE_SWAPCONTEXT = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-swapcontext have_test_prog)
 3933 ifeq ($(HAVE_SWAPCONTEXT),1)
 3934 	CONFIG_CFLAGS += -DHAVE_SWAPCONTEXT
 3935 endif
 3936 $(call using,$(HAVE_SWAPCONTEXT),swapcontext)
 3937 endif
 3938 
 3939 ifndef $(HAVE_SWAP)
 3940 HAVE_SWAP = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-swap have_test_prog)
 3941 ifeq ($(HAVE_SWAP),1)
 3942 	CONFIG_CFLAGS += -DHAVE_SWAP
 3943 endif
 3944 $(call using,$(HAVE_SWAP),swapon and swapoff)
 3945 endif
 3946 
 3947 ifndef $(HAVE_SYNC_FILE_RANGE)
 3948 HAVE_SYNC_FILE_RANGE = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-sync-file-range have_test_prog)
 3949 ifeq ($(HAVE_SYNC_FILE_RANGE),1)
 3950 	CONFIG_CFLAGS += -DHAVE_SYNC_FILE_RANGE
 3951 endif
 3952 $(call using,$(HAVE_SYNC_FILE_RANGE),sync_file_range)
 3953 endif
 3954 
 3955 ifndef $(HAVE_SYNCFS)
 3956 HAVE_SYNCFS = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-syncfs have_test_prog)
 3957 ifeq ($(HAVE_SYNCFS),1)
 3958 	CONFIG_CFLAGS += -DHAVE_SYNCFS
 3959 endif
 3960 $(call using,$(HAVE_SYNCFS),syncfs)
 3961 endif
 3962 
 3963 ifndef $(HAVE_SYSINFO)
 3964 HAVE_SYSINFO = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-sysinfo have_test_prog)
 3965 ifeq ($(HAVE_SYSINFO),1)
 3966 	CONFIG_CFLAGS += -DHAVE_SYSINFO
 3967 endif
 3968 $(call using,$(HAVE_SYSINFO),sysinfo)
 3969 endif
 3970 
 3971 ifndef $(HAVE_MQ_SYSV)
 3972 HAVE_MQ_SYSV = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-mq-sysv have_test_prog)
 3973 ifeq ($(HAVE_MQ_SYSV),1)
 3974 	CONFIG_CFLAGS += -DHAVE_MQ_SYSV
 3975 endif
 3976 $(call using,$(HAVE_MQ_SYSV),SYSV message queues)
 3977 endif
 3978 
 3979 ifndef $(HAVE_SEM_SYSV)
 3980 HAVE_SEM_SYSV = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-sem-sysv have_test_prog)
 3981 ifeq ($(HAVE_SEM_SYSV),1)
 3982 	CONFIG_CFLAGS += -DHAVE_SEM_SYSV
 3983 endif
 3984 $(call using,$(HAVE_SEM_SYSV),SYSV semaphores)
 3985 endif
 3986 
 3987 ifndef $(HAVE_SEMTIMEDOP)
 3988 HAVE_SEMTIMEDOP = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-semtimedop have_test_prog)
 3989 ifeq ($(HAVE_SEMTIMEDOP),1)
 3990 	CONFIG_CFLAGS += -DHAVE_SEMTIMEDOP
 3991 endif
 3992 $(call using,$(HAVE_SEMTIMEDOP),SYSV semtimedop)
 3993 endif
 3994 
 3995 ifndef $(HAVE_SHM_SYSV)
 3996 HAVE_SHM_SYSV = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-shm-sysv have_test_prog)
 3997 ifeq ($(HAVE_SHM_SYSV),1)
 3998 	CONFIG_CFLAGS += -DHAVE_SHM_SYSV
 3999 endif
 4000 $(call using,$(HAVE_SHM_SYSV),SYSV shared memory)
 4001 endif
 4002 
 4003 ifndef $(HAVE_TCDRAIN)
 4004 HAVE_TCDRAIN = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-tcdrain have_test_prog)
 4005 ifeq ($(HAVE_TCDRAIN),1)
 4006 	CONFIG_CFLAGS += -DHAVE_TCDRAIN
 4007 endif
 4008 $(call using,$(HAVE_TCDRAIN),tcdrain)
 4009 endif
 4010 
 4011 ifndef $(HAVE_TCFLOW)
 4012 HAVE_TCFLOW = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-tcflow have_test_prog)
 4013 ifeq ($(HAVE_TCFLOW),1)
 4014 	CONFIG_CFLAGS += -DHAVE_TCFLOW
 4015 endif
 4016 $(call using,$(HAVE_TCFLOW),tcflow)
 4017 endif
 4018 
 4019 ifndef $(HAVE_TCFLUSH)
 4020 HAVE_TCFLUSH = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-tcflush have_test_prog)
 4021 ifeq ($(HAVE_TCFLUSH),1)
 4022 	CONFIG_CFLAGS += -DHAVE_TCFLUSH
 4023 endif
 4024 $(call using,$(HAVE_TCFLUSH),tcflush)
 4025 endif
 4026 
 4027 ifndef $(HAVE_TCGETATTR)
 4028 HAVE_TCGETATTR = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-tcgetattr have_test_prog)
 4029 ifeq ($(HAVE_TCGETATTR),1)
 4030 	CONFIG_CFLAGS += -DHAVE_TCGETATTR
 4031 endif
 4032 $(call using,$(HAVE_TCGETATTR),tcgetattr)
 4033 endif
 4034 
 4035 ifndef $(HAVE_TEE)
 4036 HAVE_TEE = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-tee have_test_prog)
 4037 ifeq ($(HAVE_TEE),1)
 4038 	CONFIG_CFLAGS += -DHAVE_TEE
 4039 endif
 4040 $(call using,$(HAVE_TEE),tee)
 4041 endif
 4042 
 4043 #
 4044 #  signal.h may define HAVE_TGKILL, so add _LIBC to
 4045 #  avoid name clash
 4046 #
 4047 ifndef $(HAVE_TGKILL_LIBC)
 4048 HAVE_TGKILL_LIBC = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-tgkill have_test_prog)
 4049 ifeq ($(HAVE_TGKILL_LIBC),1)
 4050 	CONFIG_CFLAGS += -DHAVE_TGKILL_LIBC
 4051 endif
 4052 $(call using,$(HAVE_TGKILL_LIBC),tgkill)
 4053 endif
 4054 
 4055 ifndef $(HAVE_TIMER_CREATE)
 4056 HAVE_TIMER_CREATE = $(shell $(MAKE) $(MAKE_OPTS) TEST_LIBS='$(CONFIG_LDFLAGS)' TEST_PROG=test-timer-create have_test_prog)
 4057 ifeq ($(HAVE_TIMER_CREATE),1)
 4058 	CONFIG_CFLAGS += -DHAVE_TIMER_CREATE
 4059 endif
 4060 $(call using,$(HAVE_TIMER_CREATE),timer_create)
 4061 endif
 4062 
 4063 ifndef $(HAVE_TIMER_DELETE)
 4064 HAVE_TIMER_DELETE = $(shell $(MAKE) $(MAKE_OPTS) TEST_LIBS='$(CONFIG_LDFLAGS)' TEST_PROG=test-timer-delete have_test_prog)
 4065 ifeq ($(HAVE_TIMER_DELETE),1)
 4066 	CONFIG_CFLAGS += -DHAVE_TIMER_DELETE
 4067 endif
 4068 $(call using,$(HAVE_TIMER_DELETE),timer_delete)
 4069 endif
 4070 
 4071 ifndef $(HAVE_TIMER_GETTIME)
 4072 HAVE_TIMER_GETTIME = $(shell $(MAKE) $(MAKE_OPTS) TEST_LIBS='$(CONFIG_LDFLAGS)' TEST_PROG=test-timer-gettime  have_test_prog)
 4073 ifeq ($(HAVE_TIMER_GETTIME),1)
 4074 	CONFIG_CFLAGS += -DHAVE_TIMER_GETTIME
 4075 endif
 4076 $(call using,$(HAVE_TIMER_GETTIME),timer_gettime)
 4077 endif
 4078 
 4079 ifndef $(HAVE_TIMER_GETOVERRUN)
 4080 HAVE_TIMER_GETOVERRUN = $(shell $(MAKE) $(MAKE_OPTS) TEST_LIBS='$(CONFIG_LDFLAGS)' TEST_PROG=test-timer-getoverrun  have_test_prog)
 4081 ifeq ($(HAVE_TIMER_GETOVERRUN),1)
 4082 	CONFIG_CFLAGS += -DHAVE_TIMER_GETOVERRUN
 4083 endif
 4084 $(call using,$(HAVE_TIMER_GETOVERRUN),timer_getoverrrun)
 4085 endif
 4086 
 4087 ifndef $(HAVE_TIMER_SETTIME)
 4088 HAVE_TIMER_SETTIME = $(shell $(MAKE) $(MAKE_OPTS) TEST_LIBS='$(CONFIG_LDFLAGS)' TEST_PROG=test-timer-settime  have_test_prog)
 4089 ifeq ($(HAVE_TIMER_SETTIME),1)
 4090 	CONFIG_CFLAGS += -DHAVE_TIMER_SETTIME
 4091 endif
 4092 $(call using,$(HAVE_TIMER_SETTIME),timer_settime)
 4093 endif
 4094 
 4095 ifndef $(HAVE_TIMERFD_CREATE)
 4096 HAVE_TIMERFD_CREATE = $(shell $(MAKE) $(MAKE_OPTS) TEST_LIBS='$(CONFIG_LDFLAGS)' TEST_PROG=test-timerfd-create have_test_prog)
 4097 ifeq ($(HAVE_TIMERFD_CREATE),1)
 4098 	CONFIG_CFLAGS += -DHAVE_TIMERFD_CREATE
 4099 endif
 4100 $(call using,$(HAVE_TIMERFD_CREATE),timerfd_create)
 4101 endif
 4102 
 4103 ifndef $(HAVE_TIMERFD_GETTIME)
 4104 HAVE_TIMERFD_GETTIME = $(shell $(MAKE) $(MAKE_OPTS) TEST_LIBS='$(CONFIG_LDFLAGS)' TEST_PROG=test-timerfd-gettime  have_test_prog)
 4105 ifeq ($(HAVE_TIMERFD_GETTIME),1)
 4106 	CONFIG_CFLAGS += -DHAVE_TIMERFD_GETTIME
 4107 endif
 4108 $(call using,$(HAVE_TIMERFD_GETTIME),timerfd_gettime)
 4109 endif
 4110 
 4111 ifndef $(HAVE_TIMERFD_SETTIME)
 4112 HAVE_TIMERFD_SETTIME = $(shell $(MAKE) $(MAKE_OPTS) TEST_LIBS='$(CONFIG_LDFLAGS)' TEST_PROG=test-timerfd-settime  have_test_prog)
 4113 ifeq ($(HAVE_TIMERFD_SETTIME),1)
 4114 	CONFIG_CFLAGS += -DHAVE_TIMERFD_SETTIME
 4115 endif
 4116 $(call using,$(HAVE_TIMERFD_SETTIME),timerfd_settime)
 4117 endif
 4118 
 4119 
 4120 ifndef $(HAVE_TTYNAME)
 4121 HAVE_TTYNAME = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-ttyname have_test_prog)
 4122 ifeq ($(HAVE_TTYNAME),1)
 4123 	CONFIG_CFLAGS += -DHAVE_TTYNAME
 4124 endif
 4125 $(call using,$(HAVE_TTYNAME),ttyname)
 4126 endif
 4127 
 4128 ifndef $(HAVE_UMOUNT2)
 4129 HAVE_UMOUNT2 = $(shell $(MAKE) $(MAKE_OPTS) TEST_CFLAGS=-Werror TEST_PROG=test-umount2 have_test_prog)
 4130 ifeq ($(HAVE_UMOUNT2),1)
 4131 	CONFIG_CFLAGS += -DHAVE_UMOUNT2
 4132 endif
 4133 $(call using,$(HAVE_UMOUNT2),umount2)
 4134 endif
 4135 
 4136 ifndef $(HAVE_UNAME)
 4137 HAVE_UNAME = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-uname have_test_prog)
 4138 ifeq ($(HAVE_UNAME),1)
 4139 	CONFIG_CFLAGS += -DHAVE_UNAME
 4140 endif
 4141 $(call using,$(HAVE_UNAME),uname)
 4142 endif
 4143 
 4144 ifndef $(HAVE_UNLINKAT)
 4145 HAVE_UNLINKAT = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-unlinkat have_test_prog)
 4146 ifeq ($(HAVE_UNLINKAT),1)
 4147 	CONFIG_CFLAGS += -DHAVE_UNLINKAT
 4148 endif
 4149 $(call using,$(HAVE_UNLINKAT),unlinkat)
 4150 endif
 4151 
 4152 ifndef $(HAVE_UNSHARE)
 4153 HAVE_UNSHARE = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-unshare have_test_prog)
 4154 ifeq ($(HAVE_UNSHARE),1)
 4155 	CONFIG_CFLAGS += -DHAVE_UNSHARE
 4156 endif
 4157 $(call using,$(HAVE_UNSHARE),unshare)
 4158 endif
 4159 
 4160 ifndef $(HAVE_USTAT)
 4161 HAVE_USTAT = $(shell $(MAKE) $(MAKE_OPTS) TEST_CFLAGS=-Werror TEST_PROG=test-ustat have_test_prog)
 4162 ifeq ($(HAVE_USTAT),1)
 4163 	CONFIG_CFLAGS += -DHAVE_USTAT
 4164 endif
 4165 $(call using,$(HAVE_USTAT),ustat (deprecated))
 4166 endif
 4167 
 4168 ifndef $(HAVE_UTIMENSAT)
 4169 HAVE_UTIMENSAT = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-utimensat have_test_prog)
 4170 ifeq ($(HAVE_UTIMENSAT),1)
 4171 	CONFIG_CFLAGS += -DHAVE_UTIMENSAT
 4172 endif
 4173 $(call using,$(HAVE_UTIMENSAT),utimensat)
 4174 endif
 4175 
 4176 ifndef $(HAVE_VHANGUP)
 4177 HAVE_VHANGUP = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-vhangup have_test_prog)
 4178 ifeq ($(HAVE_VHANGUP),1)
 4179 	CONFIG_CFLAGS += -DHAVE_VHANGUP
 4180 endif
 4181 $(call using,$(HAVE_VHANGUP),vhangup)
 4182 endif
 4183 
 4184 ifndef $(HAVE_VMSPLICE)
 4185 HAVE_VMSPLICE = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-vmsplice have_test_prog)
 4186 ifeq ($(HAVE_VMSPLICE),1)
 4187 	CONFIG_CFLAGS += -DHAVE_VMSPLICE
 4188 endif
 4189 $(call using,$(HAVE_VMSPLICE),vmsplice)
 4190 endif
 4191 
 4192 ifndef $(HAVE_WAITID)
 4193 HAVE_WAITID = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-waitid have_test_prog)
 4194 ifeq ($(HAVE_WAITID),1)
 4195 	CONFIG_CFLAGS += -DHAVE_WAITID
 4196 endif
 4197 $(call using,$(HAVE_WAITID),waitid)
 4198 endif
 4199 
 4200 ifndef $(HAVE_WAIT3)
 4201 HAVE_WAIT3 = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-wait3 have_test_prog)
 4202 ifeq ($(HAVE_WAIT3),1)
 4203 	CONFIG_CFLAGS += -DHAVE_WAIT3
 4204 endif
 4205 $(call using,$(HAVE_WAIT3),wait3)
 4206 endif
 4207 
 4208 ifndef $(HAVE_WAIT4)
 4209 HAVE_WAIT4 = $(shell $(MAKE) $(MAKE_OPTS) TEST_PROG=test-wait4 have_test_prog)
 4210 ifeq ($(HAVE_WAIT4),1)
 4211 	CONFIG_CFLAGS += -DHAVE_WAIT4
 4212 endif
 4213 $(call using,$(HAVE_WAIT4),wait4)
 4214 endif
 4215 
 4216 ifndef $(HAVE_WCSCASECMP)
 4217 WCSFUNC=wcscasecmp
 4218 export WCSFUNC
 4219 HAVE_WCSCASECMP = $(shell $(MAKE) $(MAKE_OPTS) WCSFUNC=wcscasecmp have_wcsfunc)
 4220 ifeq ($(HAVE_WCSCASECMP),1)
 4221 	CONFIG_CFLAGS += -DHAVE_WCSCASECMP
 4222 endif
 4223 $(call using,$(HAVE_WCSCASECMP),wcscasecmp)
 4224 endif
 4225 
 4226 ifndef $(HAVE_WCSCAT)
 4227 WCSFUNC=wcscat
 4228 export WCSFUNC
 4229 HAVE_WCSCAT = $(shell $(MAKE) $(MAKE_OPTS) WCSFUNC=wcscat have_wcsfunc)
 4230 ifeq ($(HAVE_WCSCAT),1)
 4231 	CONFIG_CFLAGS += -DHAVE_WCSCAT
 4232 endif
 4233 $(call using,$(HAVE_WCSCAT),wcscat)
 4234 endif
 4235 
 4236 ifndef $(HAVE_WCSCHR)
 4237 WCSFUNC=wcschr
 4238 export WCSFUNC
 4239 HAVE_WCSCHR = $(shell $(MAKE) $(MAKE_OPTS) WCSFUNC=wcschr have_wcsfunc)
 4240 ifeq ($(HAVE_WCSCHR),1)
 4241 	CONFIG_CFLAGS += -DHAVE_WCSCHR
 4242 endif
 4243 $(call using,$(HAVE_WCSCHR),wcschr)
 4244 endif
 4245 
 4246 ifndef $(HAVE_WCSCMP)
 4247 WCSFUNC=wcscmp
 4248 export WCSFUNC
 4249 HAVE_WCSCMP = $(shell $(MAKE) $(MAKE_OPTS) WCSFUNC=wcscmp have_wcsfunc)
 4250 ifeq ($(HAVE_WCSCMP),1)
 4251 	CONFIG_CFLAGS += -DHAVE_WCSCMP
 4252 endif
 4253 $(call using,$(HAVE_WCSCMP),wcscmp)
 4254 endif
 4255 
 4256 ifndef $(HAVE_WCSCOLL)
 4257 WCSFUNC=wcscoll
 4258 export WCSFUNC
 4259 HAVE_WCSCOLL = $(shell $(MAKE) $(MAKE_OPTS) WCSFUNC=wcscoll have_wcsfunc)
 4260 ifeq ($(HAVE_WCSCOLL),1)
 4261 	CONFIG_CFLAGS += -DHAVE_WCSCOLL
 4262 endif
 4263 $(call using,$(HAVE_WCSCOLL),wcscoll)
 4264 endif
 4265 
 4266 ifndef $(HAVE_WCSCPY)
 4267 WCSFUNC=wcscpy
 4268 export WCSFUNC
 4269 HAVE_WCSCPY = $(shell $(MAKE) $(MAKE_OPTS) WCSFUNC=wcscpy have_wcsfunc)
 4270 ifeq ($(HAVE_WCSCPY),1)
 4271 	CONFIG_CFLAGS += -DHAVE_WCSCPY
 4272 endif
 4273 $(call using,$(HAVE_WCSCPY),wcscpy)
 4274 endif
 4275 
 4276 ifndef $(HAVE_WCSLCAT)
 4277 WCSFUNC=wcslcat
 4278 export WCSFUNC
 4279 HAVE_WCSLCAT = $(shell $(MAKE) $(MAKE_OPTS) WCSFUNC=wcslcat have_wcsfunc)
 4280 ifeq ($(HAVE_WCSLCAT),1)
 4281 	CONFIG_CFLAGS += -DHAVE_WCSLCAT
 4282 endif
 4283 $(call using,$(HAVE_WCSLCAT),wcslcat)
 4284 endif
 4285 
 4286 ifndef $(HAVE_WCSLCPY)
 4287 WCSFUNC=wcslcpy
 4288 export WCSFUNC
 4289 HAVE_WCSLCPY = $(shell $(MAKE) $(MAKE_OPTS) WCSFUNC=wcslcpy have_wcsfunc)
 4290 ifeq ($(HAVE_WCSLCPY),1)
 4291 	CONFIG_CFLAGS += -DHAVE_WCSLCPY
 4292 endif
 4293 $(call using,$(HAVE_WCSLCPY),wcslcpy)
 4294 endif
 4295 
 4296 ifndef $(HAVE_WCSLEN)
 4297 WCSFUNC=wcslen
 4298 export WCSFUNC
 4299 HAVE_WCSLEN = $(shell $(MAKE) $(MAKE_OPTS) WCSFUNC=wcslen have_wcsfunc)
 4300 ifeq ($(HAVE_WCSLEN),1)
 4301 	CONFIG_CFLAGS += -DHAVE_WCSLEN
 4302 endif
 4303 $(call using,$(HAVE_WCSLEN),wcslen)
 4304 endif
 4305 
 4306 ifndef $(HAVE_WCSNCASECMP)
 4307 WCSFUNC=wcsncasecmp
 4308 export WCSFUNC
 4309 HAVE_WCSNCASECMP = $(shell $(MAKE) $(MAKE_OPTS) WCSFUNC=wcsncasecmp have_wcsfunc)
 4310 ifeq ($(HAVE_WCSNCASECMP),1)
 4311 	CONFIG_CFLAGS += -DHAVE_WCSNCASECMP
 4312 endif
 4313 $(call using,$(HAVE_WCSNCASECMP),wcsncasecmp)
 4314 endif
 4315 
 4316 ifndef $(HAVE_WCSNCAT)
 4317 WCSFUNC=wcsncat
 4318 export WCSFUNC
 4319 HAVE_WCSNCAT = $(shell $(MAKE) $(MAKE_OPTS) WCSFUNC=wcsncat have_wcsfunc)
 4320 ifeq ($(HAVE_WCSNCAT),1)
 4321 	CONFIG_CFLAGS += -DHAVE_WCSNCAT
 4322 endif
 4323 $(call using,$(HAVE_WCSNCAT),wcsncat)
 4324 endif
 4325 
 4326 ifndef $(HAVE_WCSNCMP)
 4327 WCSFUNC=wcsncmp
 4328 export WCSFUNC
 4329 HAVE_WCSNCMP = $(shell $(MAKE) $(MAKE_OPTS) WCSFUNC=wcsncmp have_wcsfunc)
 4330 ifeq ($(HAVE_WCSNCMP),1)
 4331 	CONFIG_CFLAGS += -DHAVE_WCSNCMP
 4332 endif
 4333 $(call using,$(HAVE_WCSNCMP),wcsncmp)
 4334 endif
 4335 
 4336 ifndef $(HAVE_WCSRCHR)
 4337 WCSFUNC=wcsrchr
 4338 export WCSFUNC
 4339 HAVE_WCSRCHR = $(shell $(MAKE) $(MAKE_OPTS) WCSFUNC=wcsrchr have_wcsfunc)
 4340 ifeq ($(HAVE_WCSRCHR),1)
 4341 	CONFIG_CFLAGS += -DHAVE_WCSRCHR
 4342 endif
 4343 $(call using,$(HAVE_WCSRCHR),wcsrchr)
 4344 endif
 4345 
 4346 ifndef $(HAVE_WCSXFRM)
 4347 WCSFUNC=wcsxfrm
 4348 export WCSFUNC
 4349 HAVE_WCSXFRM = $(shell $(MAKE) $(MAKE_OPTS) WCSFUNC=wcsxfrm have_wcsfunc)
 4350 ifeq ($(HAVE_WCSXFRM),1)
 4351 	CONFIG_CFLAGS += -DHAVE_WCSXFRM
 4352 endif
 4353 $(call using,$(HAVE_WCSXFRM),wcsxfrm)
 4354 endif
 4355 
 4356 ifneq ($(VERBOSE),)
 4357 $(info $(newline)CONFIG_LDFLAGS: $(CONFIG_LDFLAGS))
 4358 $(info CONFIG_CFLAGS: $(CONFIG_CFLAGS)$(newline))
 4359 endif
 4360 
 4361 endif
 4362 
 4363 
 4364 .SUFFIXES: .c .o
 4365 
 4366 #
 4367 #  save configuration
 4368 #
 4369 .PHONY: save_config
 4370 save_config:
 4371 	@echo $(CONFIG_CFLAGS) | tr ' ' '\n' | grep "\-D" | sed s'/CONFIG_CFLAGS=//' | sed s'/-D/#define /' | sort > config.h
 4372 	@echo CONFIG_LDFLAGS=$(CONFIG_LDFLAGS) >> config
 4373 	@echo CONFIG_OBJS=$(CONFIG_OBJS) >> config
 4374 
 4375 #
 4376 #  check if we can build against AppArmor
 4377 #
 4378 .PHONY: have_apparmor
 4379 have_apparmor: $(DIR)/test-apparmor.c
 4380 	@$(CC) $(CFLAGS) $(CPPFLAGS) $(DIR)/test-apparmor.c $(LIB_APPARMOR) -o $(DIR)/test-apparmor 2> /dev/null || true
 4381 	@$(APPARMOR_PARSER) -Q usr.bin.pulseaudio.eg -o apparmor-data.bin 2> /dev/null; \
 4382 	if [ $$? -ne 0 ]; then \
 4383 		echo 0 ;\
 4384 	else \
 4385 		if [ -f $(DIR)/test-apparmor ]; then \
 4386 			if [ -x "$(APPARMOR_PARSER)" ]; then \
 4387 				if [ -f apparmor-data.bin ]; then \
 4388 					echo 1 ;\
 4389 				else \
 4390 					echo 0 ;\
 4391 				fi \
 4392 			else \
 4393 				echo 0 ;\
 4394 			fi \
 4395 		else \
 4396 			echo 0 ;\
 4397 		fi \
 4398 	fi
 4399 	@rm -f $(DIR)/test-apparmor apparmor-data.bin
 4400 
 4401 #
 4402 #  check if compiler supports a specific floating point decimal format
 4403 #
 4404 .PHONY: have_float
 4405 have_float:
 4406 	@$(CC) $(CFLAGS) $(CPPFLAGS) -DFLOAT=$(FLOAT_TYPE) -o $(DIR)/test-float $(DIR)/test-float.c -lm 2> /dev/null || true
 4407 	@if [ -f $(DIR)/test-float ]; then \
 4408 		echo 1 ;\
 4409 	else \
 4410 		echo 0 ;\
 4411 	fi
 4412 	@rm -f $(DIR)/test-float
 4413 
 4414 #
 4415 #  check if we have a specific header
 4416 #
 4417 .PHONY: have_header_h
 4418 have_header_h:
 4419 	@echo "#include <sys/types.h>" > $(DIR)/test-header.c
 4420 	@echo "#include <$(HEADER)>" >> $(DIR)/test-header.c
 4421 	@$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $(DIR)/test-header.o $(DIR)/test-header.c 2> /dev/null || true
 4422 	@if [ -f $(DIR)/test-header.o ]; then \
 4423 		echo 1 ;\
 4424 	else \
 4425 		echo 0 ;\
 4426 	fi
 4427 	@rm -f $(DIR)/test-header.o $(DIR)/test-header.c
 4428 
 4429 #
 4430 #  check if we can build using a specific test program
 4431 #
 4432 .PHONY: have_test_prog
 4433 have_test_prog: $(DIR)/$(TEST_PROG).c
 4434 	@$(CC) $(CFLAGS) $(CPPFLAGS) -Itest $(TEST_CFLAGS) $(DIR)/$(TEST_PROG).c $(TEST_LIBS) -o $(DIR)/$(TEST_PROG) $(LDFLAGS) 2> /dev/null || true
 4435 	@if [ -f $(DIR)/$(TEST_PROG) ]; then \
 4436 		echo 1 ;\
 4437 	else \
 4438 		echo 0 ;\
 4439 	fi
 4440 		@rm -rf $(DIR)/$(TEST_PROG)
 4441 
 4442 #
 4443 #  check if we can build vecmath related code
 4444 #
 4445 .PHONY: have_vecmath
 4446 have_vecmath: stress-vecmath.c
 4447 	@$(CC) $(CFLAGS) $(CPPFLAGS) -Itest -DHAVE_VECMATH -c -o stress-vecmath-test.o stress-vecmath.c 2> /dev/null || true
 4448 	@if [ -f stress-vecmath-test.o ]; then \
 4449 		echo 1 ;\
 4450 	else \
 4451 		echo 0 ;\
 4452 	fi
 4453 	@rm -rf stress-vecmath-test.o
 4454 
 4455 #
 4456 #  check if we can build atomic related code
 4457 #
 4458 .PHONY: have_atomic
 4459 have_atomic: stress-atomic.c
 4460 	@$(CC) $(CFLAGS) $(CPPFLAGS) -Itest -DTEST_ATOMIC_BUILD -DHAVE_ATOMIC stress-atomic.c $(LIB_ATOMIC) -o stress-atomic-test 2> /dev/null || true
 4461 	@if [ -f stress-atomic-test ]; then \
 4462 		(./stress-atomic-test > /dev/null 2>&1) && echo 1 || echo 0 ; \
 4463 	else \
 4464 		echo 0 ; \
 4465 	fi
 4466 	@rm -rf stress-atomic-test
 4467 
 4468 #
 4469 #  check if we have specific math functions
 4470 #
 4471 .PHONY: have_mathfunc
 4472 have_mathfunc: $(DIR)/test-mathfunc.c
 4473 	@$(CC) $(CFLAGS) $(CPPFLAGS) -DMATHFUNC=$(MATHFUNC) $(DIR)/test-mathfunc.c -o $(DIR)/test-mathfunc -lm 2> /dev/null || true
 4474 	@if [ -f $(DIR)/test-mathfunc ]; then \
 4475 		echo 1 ;\
 4476 	else \
 4477 		echo 0 ;\
 4478 	fi
 4479 	@rm -rf $(DIR)/test-mathfunc
 4480 
 4481 #
 4482 #  check if we have specific string str* functions
 4483 #
 4484 .PHONY: have_strfunc
 4485 have_strfunc: $(DIR)/test-strfunc.c
 4486 	@$(CC) $(CFLAGS) $(CPPFLAGS) -DSTRFUNC=$(STRFUNC) $(DIR)/test-strfunc.c -o $(DIR)/test-strfunc $(LIB_BSD) 2> /dev/null || true
 4487 	@if [ -f $(DIR)/test-strfunc ]; then \
 4488 		echo 1 ;\
 4489 	else \
 4490 		echo 0 ;\
 4491 	fi
 4492 	@rm -rf $(DIR)/test-strfunc
 4493 
 4494 #
 4495 #  check if we have specific wide string wcs* functions
 4496 #
 4497 .PHONY: have_wcsfunc
 4498 have_wcsfunc: $(DIR)/test-wcsfunc.c
 4499 	@$(CC) $(CFLAGS) $(CPPFLAGS) -DWCSFUNC=$(WCSFUNC) $(DIR)/test-wcsfunc.c -o $(DIR)/test-wcsfunc $(LIB_BSD) 2> /dev/null || true
 4500 	@if [ -f $(DIR)/test-wcsfunc ]; then \
 4501 		echo 1 ;\
 4502 	else \
 4503 		echo 0 ;\
 4504 	fi
 4505 	@rm -rf $(DIR)/test-wcsfunc