jiho wrote:
In fact I think this is to be automated by automake or configure or something like this = by what generates all the -I flags on the compilation command line. Usually we just have export CPPFLAGS="-I$FINK/include" with $FINK=/sw on OS X and then all subpaths (such as -I/sw/include/libpng12 -I/sw/ include/glib-2.0 are generated at configure time).
Since Cairo used pkg-config, it would simply be added to the PKG_CHECK_MODULES lines in configure.ac. Maybe something like this:
dnl ****************************** dnl Unconditional dependencies dnl ******************************
dnl *** NOTE: when we move to gtk 2.6 or later, we can remove the dnl ********* the override for g_ascii_strtod below... dnl sigc++-2.0 >= 2.0.12: using "visit_each" not available in 2.0.10 if test $cc_vers_major -gt 3; then PKG_CHECK_MODULES(INKSCAPE, gdkmm-2.4 glibmm-2.4 gtkmm-2.4 gtk+-2.0 >= 2.4.0 libxml-2.0 >= 2.6.11 libxslt >= 1.0.15 sigc++-2.0
= 2.0.12 cairo >= 1.0 $ink_spell_pkg gthread-2.0 >= 2.0 libpng >= 1.2)
else PKG_CHECK_MODULES(INKSCAPE, gdkmm-2.4 glibmm-2.4 gtkmm-2.4 gtk+-2.0 >= 2.4.0 libxml-2.0 >= 2.6.11 libxslt >= 1.0.15 sigc++-2.0
= 2.0.11 cairo >= 1.0 $ink_spell_pkg gthread-2.0 >= 2.0 libpng >= 1.2)
fi