Very minor stuff.
[platform/upstream/glib.git] / glib-config.in
index 7e4fed6..c36b667 100644 (file)
@@ -17,6 +17,7 @@ Options:
 Libraries:
        glib
        gmodule
+       gthread
 EOF
        exit $1
 }
@@ -69,6 +70,9 @@ while test $# -gt 0; do
     gmodule)
       lib_gmodule=yes
       ;;
+    gthread)
+      lib_gthread=yes
+      ;;
     *)
       usage 1 1>&2
       ;;
@@ -83,15 +87,25 @@ if test "$echo_exec_prefix" = "yes"; then
        echo $exec_prefix
 fi
 if test "$echo_cflags" = "yes"; then
-       echo -I@libdir@/glib/include $includes
+       cflags=""
+       if test "$lib_gthread" = "yes"; then
+               cflags="$cflags @G_THREAD_CFLAGS@"
+       fi
+       echo -I@libdir@/glib/include $includes $cflags
 fi
 if test "$echo_libs" = "yes"; then
-       libs=""
+       libsp=""
+       libsa=""
        if test "$lib_glib" = "yes"; then
-               libs="$libs -lglib-@LT_RELEASE@"
+               libsp="$libsp -lglib"
+       fi
+       if test "$lib_gthread" = "yes"; then
+               libsp="-lgthread $libsp"
+               libsa="$libsa @G_THREAD_LIBS@"
        fi
        if test "$lib_gmodule" = "yes"; then
-               libs="@G_MODULE_LDFLAGS@ -lgmodule-@LT_RELEASE@ $libs @G_MODULE_LIBS@"
+               libsp="@G_MODULE_LDFLAGS@ -lgmodule $libsp"
+               libsa="$libsa @G_MODULE_LIBS@"
        fi
-       echo "-L@libdir@ $libs"
+       echo -L@libdir@ $libsp $libsa
 fi