default or selected kernelversion does not have config value CONFIG_HAVE_GPIO_LIB.
Result is shown for kernelversion 5.19-rc1

CONFIG_HAVE_GPIO_LIB (not configurable)

modulename: gpiolib.ko

configname: CONFIG_HAVE_GPIO_LIB

Linux Kernel Configuration
└─>Device Drivers
└─>HAVE_GPIO_LIB
In linux kernel since version 2.6.25 (release Date: 2008-04-16)  
Platforms select gpiolib if they use this infrastructure
for all their GPIOs, usually starting with ones integrated
into SOC processors.

source code: