X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4bdad4464ecbeca9c95420991878707ea8712455..8480b297e70a29b785421ded6db22ae024e35038:/configure.in 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