On Thu, Feb 16, 2012 at 03:28:18PM +0100, Kai Sterker wrote: > In general, the aclocal stuff is still a bit of a mystery to me. > What's a good way to make sure people don't run into such problems, > especially for packages that are optional like SDL 2? OTOH, with an > official source tarball, the configure script is present already and > there's no need to run autogen.sh. But for people building directly > from GIT, how can autogen.sh be made more foolproof?
I think that's what the m4/ directory is for (might be named differently in different projects). I add the following to Makefile.am: ACLOCAL_FLAGS = -I m4 ACLOCAL_AMFLAGS = -I m4 And the following to configure.ac: AC_CONFIG_MACRO_DIR([m4]) Then I drop any m4 files in that directory that cannot be reliably found on the system. Hopefully both SDL 1 and 2 can coexist in the same configure, and you can use AC_ARG_WITH to let the user configure which library to use at compile time. - Chris _______________________________________________ Adonthell-general mailing list Adonthell-general@nongnu.org https://lists.nongnu.org/mailman/listinfo/adonthell-general