After upgrading to Apple's Xcode 5.0, gnupg2 2.0.21 would no longer compile.
For some reason or other, sm/stdint.h could not resolve certain typedefs.
Workaround was to crassly force typedef resolution in sm/stdint.h with these
lines after #include <stdint.h> :
typedef long intptr_t;
typedef long long intmax_t;
typedef unsigned long uintptr_t;
typedef unsigned long long uintmax_t;
After that everything compiled and all make checks passed.