There is an error in the latest 4.2.2 release due to an undeclared variable:
dgif_lib.c: In function 'DGifOpenFileHandle':
dgif_lib.c:152:3: error: 'Error' undeclared (first use in this function)
dgif_lib.c:152:3: note: each undeclared identifier is reported only once for each function it appears in
Trivial fix attached.
"make distcheck" is your friend ;)