Fix bug 3152: when searching for igemacintegration manually set GTK_LIBS to
authormorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 22 Dec 2008 16:10:14 +0000 (16:10 +0000)
committermorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 22 Dec 2008 16:10:14 +0000 (16:10 +0000)
the found library (AC_SEARCH_LIBS sets the LIBS variable but we really don't
want that).

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27088 f5534014-38df-0310-8fa8-9805f1628bb7

acinclude.m4

index 528936c49813132a627dc83181f5962d231829fd..6b7cd9f41ce2efc5f1d91962ad97bfb47a84176e 100644 (file)
@@ -1572,10 +1572,23 @@ AC_DEFUN([AC_WIRESHARK_IGE_MAC_INTEGRATION_CHECK],
        ac_save_LIBS="$LIBS"
        CFLAGS="$CFLAGS $GTK_CFLAGS"
        LIBS="$GTK_LIBS $LIBS"
-       AC_SEARCH_LIBS(ige_mac_menu_set_menu_bar, Gtk igemacintegration,
+       AC_SEARCH_LIBS(ige_mac_menu_set_menu_bar, Gtk,
        [
                AC_DEFINE(HAVE_IGE_MAC_INTEGRATION, 1,
                        [Define to 1 if the the Gtk+ framework or a separate library inclues the Imendio IGE Mac OS X Integration functions.])
+               # We don't want gtk stuff in LIBS (which is reset below) so
+               # manually set GTK_LIBS (which is more appropriate)
+               GTK_LIBS="$GTK_LIBS -lGtk"
+       ]
+       [
+               AC_SEARCH_LIBS(ige_mac_menu_set_menu_bar, igemacintegration,
+               [
+                       AC_DEFINE(HAVE_IGE_MAC_INTEGRATION, 1,
+                               [Define to 1 if the the Gtk+ framework or a separate library inclues the Imendio IGE Mac OS X Integration functions.])
+                       # We don't want gtk stuff in LIBS (which is reset below) so
+                       # manually set GTK_LIBS (which is more appropriate)
+                       GTK_LIBS="$GTK_LIBS -ligemacintegration"
+               ])
        ])
        CFLAGS="$ac_save_CFLAGS"
        LIBS="$ac_save_LIBS"