If I pass --disable-tools, then build fails on:
gcc -DHAVE_CONFIG_H -I. -I../.. -I../../common
-DLOCALEDIR=\"/usr/share/locale\" -DGNUPG_BINDIR="\"/usr/bin\""
-DGNUPG_LIBEXECDIR="\"/usr/libexec\"" -DGNUPG_LIBDIR="\"/usr/lib64/gnupg\""
-DGNUPG_DATADIR="\"/usr/share/gnupg\"" -DGNUPG_SYSCONFDIR="\"/etc/gnupg\""
-DGNUPG_LOCALSTATEDIR="\"/var\"" -Wall -Wno-pointer-sign -Wpointer-arith
-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -c -o
fake-pinentry.o fake-pinentry.c
gcc -Wall -Wno-pointer-sign -Wpointer-arith -O2 -g -pipe -Wall
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -Wl,-z,relro
-specs=/usr/lib/rpm/redhat/redhat-hardened-ld ../../tools/gpg-connect-agent.c
-o ../../tools/gpg-connect-agent
../../tools/gpg-connect-agent.c:21:10: fatal error: config.h: No such file or
directory
#include <config.h>
^~~~~~~~~~