1.6.13-no-underlinking.patch 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. Makefile.am | 6 ++++--
  2. configure.ac | 24 ++++--------------------
  3. 2 files changed, 8 insertions(+), 22 deletions(-)
  4. diff --git a/Makefile.am b/Makefile.am
  5. index 99dbf8c..931ba16 100644
  6. --- a/Makefile.am
  7. +++ b/Makefile.am
  8. @@ -22,10 +22,12 @@ localedir = $(datadir)/locale
  9. DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
  10. # Make sure the gettext.h include file is found.
  11. -AM_CPPFLAGS = -I. -I$(srcdir) @GTK_CFLAGS@
  12. +AM_CPPFLAGS = -I. -I$(srcdir) @GTK_CFLAGS@ @EMFINCL@
  13. # Link time dependencies.
  14. -LDADD = @LIBINTL@ @GTK_LIBS@ @EMFLIBS@
  15. +LDADD = @LIBINTL@ @GTK_LIBS@ @EMFLIBS@ -lX11
  16. +
  17. +AM_CFLAGS = -DGTK2
  18. # Additional files to be distributed.
  19. EXTRA_DIST = autogen.sh autoclean.sh
  20. diff --git a/configure.ac b/configure.ac
  21. index 6d8c45a..c5fab42 100644
  22. --- a/configure.ac
  23. +++ b/configure.ac
  24. @@ -32,32 +32,14 @@ AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
  25. AC_MSG_CHECKING([for GTK version and compile options ])
  26. -if test x$PKG_CONFIG = xno -o x$enable_gtk1 = xyes ; then
  27. -AM_PATH_GTK(1.0.2, , exit 1)
  28. -else
  29. -if $PKG_CONFIG gtk+-2.0 --cflags ; then
  30. - GTK_CFLAGS="-DGTK2 `$PKG_CONFIG gtk+-2.0 --cflags` "
  31. - GTK_LIBS=`$PKG_CONFIG gtk+-2.0 --libs`
  32. -dnl use_gtk2=yes
  33. - AC_DEFINE([GTK2], [1], [the GTK2 library])
  34. - enable_stockgtk=yes
  35. -else
  36. -if $PKG_CONFIG --cflags gtk+ ; then
  37. - GTK_CFLAGS=`$PKG_CONFIG gtk+ --cflags`
  38. - GTK_LIBS=`$PKG_CONFIG gtk+ --libs`
  39. -dnl use_gtk2=no
  40. -fi
  41. -fi
  42. -fi
  43. -
  44. -dnl AC_MSG_RESULT using GTK2 : $use_gtk2
  45. +PKG_CHECK_MODULES([GTK],[gtk+-2.0])
  46. dnl Checks for header files.
  47. AC_PATH_XTRA
  48. AC_HEADER_DIRENT
  49. AC_HEADER_STDC
  50. -LDFLAGS="$X_LIBS"
  51. +LDFLAGS+="$X_LIBS"
  52. AC_CHECK_LIB([X11],[XOpenDisplay])
  53. dnl just an ugly hack to work around the more aggressive header checks
  54. dnl in recent autoconf. Not sure if we should really rely on include
  55. @@ -184,6 +166,7 @@ if test x$enable_emf = xyes; then
  56. AC_MSG_RESULT(yes)
  57. AC_DEFINE([EMF], [1], [use optional libEMF instead of fig2dev for EMF output])
  58. EMFLIBS="-lEMF -lstdc++"
  59. + EMFINCL="-I${includedir}libEMF"
  60. else
  61. AC_MSG_RESULT(no)
  62. EMFLIBS=""
  63. @@ -221,6 +204,7 @@ AC_SUBST(localedir)
  64. AC_SUBST(kdemimedir)
  65. AC_SUBST(gnomemimedir)
  66. AC_SUBST(EMFLIBS)
  67. +AC_SUBST(EMFINCL)
  68. AC_SUBST(MYGTKSRCS)
  69. AC_SUBST(MYGTKOBJS)
  70. AC_SUBST(GTK_CFLAGS)