Building pypoppler-0.12.1 on OS X 10.6 with the underlying poppler and gtk stuff supplied by fink...
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I/sw/include/python2.7 -I/sw/include -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include -I/sw/include/pygtk-2.0 -I/sw/include/gtk-2.0 -I/sw/lib/gtk-2.0/include -I/sw/include/atk-1.0 -I/sw/include/cairo -I/sw/include/pango-1.0 -I/sw/include -I/sw/include/freetype2 -I/sw/include/poppler/glib -I/usr/X11/include -I/sw/include/pycairo -I/sw/include/cairo -I/sw/include -I/sw/include/freetype2 -I/usr/X11/include -g -O2 -Wall -std=c9x -fno-strict-aliasing -MT poppler_la-popplermodule.lo -MD -MP -MF .deps/poppler_la-popplermodule.Tpo -c -o poppler_la-popplermodule.lo `test -f 'popplermodule.c' || echo './'`popplermodule.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I/sw/include/python2.7 -I/sw/include -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include -I/sw/include/pygtk-2.0 -I/sw/include/gtk-2.0 -I/sw/lib/gtk-2.0/include -I/sw/include/atk-1.0 -I/sw/include/cairo -I/sw/include/pango-1.0 -I/sw/include -I/sw/include/freetype2 -I/sw/include/poppler/glib -I/usr/X11/include -I/sw/include/pycairo -I/sw/include/cairo -I/sw/include -I/sw/include/freetype2 -I/usr/X11/include -g -O2 -Wall -std=c9x -fno-strict-aliasing -MT poppler_la-popplermodule.lo -MD -MP -MF .deps/poppler_la-popplermodule.Tpo -c popplermodule.c -fno-common -DPIC -o .libs/poppler_la-popplermodule.o
popplermodule.c:27:26: error: glib/poppler.h: No such file or directory
make[2]: *** [poppler_la-popplermodule.lo] Error 1
and likewise for poppler.override.
I do have that header (/sw/include/poppler/glib/poppler.h) and I can see the appropriate -I/sw/include/poppler/glib for it (as detected from configure's pkg-config check of poppler-glib, where poppler-0.22.1's poppler-glib.pc.in has: Cflags: -I${includedir}/poppler/glib.
So there's the problem: poppler publishes up through the glib/ subdir that contains poppler.h but pypoppler also includes that subdir in the #include. Solution is to #include <poppler.h> rather than <glib/poppler.h>