From b9fa850da1ba81192889e47f5b23283250101fa9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Karsten=20Ball=C3=BCder?= Date: Mon, 31 Jan 2000 16:08:09 +0000 Subject: [PATCH] gtk-config now checks for gthread git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5757 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- configure.in | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/configure.in b/configure.in index 83014388dc..17f158dfd9 100644 --- a/configure.in +++ b/configure.in @@ -38,7 +38,7 @@ AC_DEFUN(AM_PATH_GTK, no_gtk="" if test "$GTK_CONFIG" != "no" ; then GTK_CFLAGS=`$GTK_CONFIG --cflags` - GTK_LIBS=`$GTK_CONFIG --libs` + GTK_LIBS=`$GTK_CONFIG --libs gthread` ac_save_CFLAGS="$CFLAGS" ac_save_LIBS="$LIBS" CFLAGS="$CFLAGS $GTK_CFLAGS" @@ -1525,13 +1525,20 @@ dnl ) dnl ) TOOLKIT_INCLUDE="$GTK_CFLAGS" -dnl On FreeBSD, the libs are called gtk12 etc, so we must append gthread12 - echo $GTK_LIBS | fgrep -q "glib12" - if test $? = 0 ; then - GUI_TK_LIBRARY="$GTK_LIBS -gthread12" - else - GUI_TK_LIBRARY="$GTK_LIBS -lgthread" - fi + +dnl Appending gthreads as it was done here is not portable, instead +dnl we now call "gtk-config --libs gthread" which sets the right library +dnl name for us. The following hacks are no longer required. + + GUI_TK_LIBRARY="$GTK_LIBS" + +dnl dnl On FreeBSD, the libs are called gtk12 etc, so we must append gthread12 +dnl echo $GTK_LIBS | fgrep -q "glib12" +dnl if test $? = 0 ; then +dnl GUI_TK_LIBRARY="$GTK_LIBS -gthread12" +dnl else +dnl GUI_TK_LIBRARY="$GTK_LIBS -lgthread" +dnl fi TOOLKIT=GTK AFMINSTALL=afminstall -- 2.47.2