mate-desktop/mate-panel — pull request #19 by haxar (2012-04-06 03:47:38+00:00)
Title: g-ir-scanner: when configure prefix != /usr, add prefix to scanner include paths

This patch is to fix a build issue when the configure prefix path is not set to `/usr`.

Without this patch and when the configure prefix path is not `/usr` but is e.g. `/usr/local`, the following error occurs:

```
Making all in libmate-panel-applet
make[2]: Entering directory `/root/mate/mate-panel/libmate-panel-applet'
make all-am
make[3]: Entering directory `/root/mate/mate-panel/libmate-panel-applet'
/usr/bin/g-ir-scanner --warn-all --add-include-path=. --namespace=MatePanelApplet --nsversion=3.0 --libtool="/bin/bash ../libtool" --include=GObject-2.0 --include=Gtk-2.0 --include=MateConf-2.0 --library=libmate-panel-applet-3.la --strip-prefix=MatePanel --pkg-export=libmatepanelapplet-3.0 -DMATECORBA2=1 -pthread -I/usr/local/include/mateconf/2 -I/usr/local/include/matecorba-2.0 -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I../libmate-panel-applet -DMATELOCALEDIR=\""/usr/local/share/locale"\" mate-panel-applet.c mate-panel-applet.h mate-panel-applet-mateconf.c mate-panel-applet-mateconf.h mate-panel-applet-enums.c mate-panel-applet-enums.h libmate-panel-applet-3.la --output MatePanelApplet-3.0.gir
g-ir-scanner: warning: Option --strip-prefix has been deprecated;
see --identifier-prefix and --symbol-prefix.
Couldn't find include 'MateConf-2.0.gir' (search path: ['.', 'gir-1.0', '/usr/share/gir-1.0', '/usr/share/gir-1.0', '/usr/share/gir-1.0'])
make[3]: *** [MatePanelApplet-3.0.gir] Error 1
make[3]: Leaving directory `/root/mate/mate-panel/libmate-panel-applet'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/mate/mate-panel/libmate-panel-applet'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/mate/mate-panel'
make: *** [all] Error 2
```

Built with:
$ PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/:/usr/local/share/pkgconfig/ ACLOCAL_FLAGS="-I /usr/local/share/aclocal/" PYTHONPATH=${PYTHONPATH}:/usr/local/lib/python2.7/site-packages/ ./autogen.sh --prefix=/usr/local --sysconfdir=/etc --localstatedir=/var --disable-static
$ make -j2