1 patch glib-config so it indirects to pkgconfig for cflags and libs
4 # Patch managed by http://www.holgerschurig.de/patcher.html
7 --- glib-1.2.10/glib-config.in~glib-config-use-pkg-config
8 +++ glib-1.2.10/glib-config.in
15 while test $# -gt 0; do
17 -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
36 + --cflags | --libs | glib | gmodule | gthread)
38 + echo_pkgconfig="yes"
43 if test "$echo_exec_prefix" = "yes"; then
46 -if test "$echo_cflags" = "yes"; then
48 - if test "$lib_gthread" = "yes"; then
49 - cflags="$cflags @G_THREAD_CFLAGS@"
51 - echo -I@includedir@/glib-1.2 -I@libdir@/glib/include $includes $cflags
53 -if test "$echo_libs" = "yes"; then
56 - if test "$lib_glib" = "yes"; then
57 - libsp="$libsp -lglib"
59 - if test "$lib_gthread" = "yes"; then
60 - libsp="-lgthread $libsp"
61 - libsa="$libsa @G_THREAD_LIBS@"
63 - if test "$lib_gmodule" = "yes"; then
64 - libsp="@G_MODULE_LDFLAGS@ -lgmodule $libsp"
65 - libsa="$libsa @G_MODULE_LIBS@"
67 - echo -L@libdir@ $libsp $libsa
68 +if test "$echo_pkgconfig" = "yes"; then