Building Anti-Grain Geometry without SDL

A short post about an annoying problem while building AGG 2.4:
If you don’t have SDL installed, the build fails because of warning: macro `AM_PATH_SDL' not found in library error: possibly undefined macro: AM_PATH_SDL
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.

Installing SDL solves this problem, but if you want to skip this, here’s a shorter workaround:

$ echo “AC_DEFUN([AM_PATH_SDL])” > acinclude.m4

Continue as usual with

$ source
$ ./configure
$ make
$ sudo make install

Leave a Reply