I'm not an autotools expert, so not sure if it's the correct fix, but in works on FreeBSD.
The problem is that you need to explicitly link with gettext library (which is usually -lintl) on systems which don't have gettext functionality in libc.
I've added $LIBINTL to LIBS in configure.ac. That location is more suitable I think. Also since gettext.m4 version 0.11 it should be LIBINTL (though INTLLIBS is still defined for backward compatibility). I'm also not too familiar with gettext and macros, I just now read a bit about it and I always thought the AM_GNU_GETTEXT macro would add the library dependency directly to LIBS like other macros do but apparently it doesn't. Anyways, it should work now and use the internal intl stuff of the package although it is a complete mystery to me how it is supposed to find the necessary includes in ./intl. There is an INCINTL variable but it is not exported from the macro... Can you please test it? Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've added $LIBINTL to LIBS in configure.ac. That location is more suitable I think. Also since gettext.m4 version 0.11 it should be LIBINTL (though INTLLIBS is still defined for backward compatibility). I'm also not too familiar with gettext and macros, I just now read a bit about it and I always thought the AM_GNU_GETTEXT macro would add the library dependency directly to LIBS like other macros do but apparently it doesn't. Anyways, it should work now and use the internal intl stuff of the package although it is a complete mystery to me how it is supposed to find the necessary includes in ./intl. There is an INCINTL variable but it is not exported from the macro... Can you please test it? Thanks!