Theme engine using TQt for GTK+ 3.x
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

configure.in.in 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. #MIN_CONFIG(3.2.0)
  2. AM_INIT_AUTOMAKE(tdegtk3, 0.1)
  3. AC_C_BIGENDIAN
  4. AC_CHECK_KDEMAXPATHLEN
  5. # C support
  6. AM_PROG_CC_C_O
  7. # --- Cairo check ---
  8. KDE_FIND_PATH(pkg-config, PKGCONFIG, [${prefix}/bin ${exec_prefix}/bin /usr/bin /usr/local/bin /opt/local/bin], [
  9. AC_MSG_WARN([Could not find pkg-config])
  10. ])
  11. AC_MSG_CHECKING([for Cairo])
  12. if test -n "$PKGCONFIG"; then
  13. vers=`$PKGCONFIG cairo --modversion 2>/dev/null`
  14. if test -n "$vers"
  15. then
  16. CAIRO_LIBS="`$PKGCONFIG cairo --libs`"
  17. CAIRO_RPATH=
  18. for args in $CAIRO_LIBS; do
  19. case $args in
  20. -L*)
  21. CAIRO_RPATH="$CAIRO_RPATH $args"
  22. ;;
  23. esac
  24. done
  25. CAIRO_RPATH=`echo $CAIRO_RPATH | $SED -e "s/-L/-R/g"`
  26. CAIRO_CFLAGS="`$PKGCONFIG cairo --cflags`"
  27. AC_DEFINE_UNQUOTED(HAVE_CAIRO, 1, [Defines if your system has the Cairo library])
  28. fi
  29. fi
  30. if test ! "$USE_RPATH" = "yes"; then
  31. CAIRO_RPATH=
  32. fi
  33. if test -n "$CAIRO_LIBS"
  34. then
  35. AC_MSG_RESULT([yes])
  36. else
  37. AC_MSG_RESULT([not found])
  38. fi
  39. AC_SUBST(CAIRO_LIBS)
  40. AC_SUBST(CAIRO_CFLAGS)
  41. AC_SUBST(CAIRO_RPATH)
  42. AM_CONDITIONAL(have_openexr, test -n "$CAIRO_LIBS")
  43. # --- End of Cairo check ---
  44. # --- GTK3 check ---
  45. KDE_FIND_PATH(pkg-config, PKGCONFIG, [${prefix}/bin ${exec_prefix}/bin /usr/bin /usr/local/bin /opt/local/bin], [
  46. AC_MSG_WARN([Could not find pkg-config])
  47. ])
  48. AC_MSG_CHECKING([for GTK3])
  49. if test -n "$PKGCONFIG"; then
  50. vers=`$PKGCONFIG gtk+-3.0 --modversion 2>/dev/null`
  51. if test -n "$vers"
  52. then
  53. GTK3_LIBS="`$PKGCONFIG gtk+-3.0 --libs`"
  54. GTK3_RPATH=
  55. for args in $GTK3_LIBS; do
  56. case $args in
  57. -L*)
  58. GTK3_RPATH="$GTK3_RPATH $args"
  59. ;;
  60. esac
  61. done
  62. GTK3_RPATH=`echo $GTK3_RPATH | $SED -e "s/-L/-R/g"`
  63. GTK3_CFLAGS="`$PKGCONFIG gtk+-3.0 --cflags`"
  64. GTK3_PREFIX=`$PKG_CONFIG --variable=prefix gtk+-3.0`
  65. GTK3_VERSION=`$PKG_CONFIG --variable=gtk_binary_version gtk+-3.0`
  66. GTK3_LIBDIR=`$PKG_CONFIG --variable=libdir gtk+-3.0`
  67. AC_DEFINE_UNQUOTED(HAVE_GTK3, 1, [Defines if your system has the GTK3 library])
  68. fi
  69. fi
  70. if test ! "$USE_RPATH" = "yes"; then
  71. GTK3_RPATH=
  72. fi
  73. if test -n "$GTK3_LIBS"
  74. then
  75. AC_MSG_RESULT([yes])
  76. else
  77. AC_MSG_RESULT([not found])
  78. fi
  79. AC_SUBST(GTK3_LIBS)
  80. AC_SUBST(GTK3_CFLAGS)
  81. AC_SUBST(GTK3_RPATH)
  82. AC_SUBST(GTK3_PREFIX)
  83. AC_SUBST(GTK3_LIBDIR)
  84. AC_SUBST(GTK3_VERSION)
  85. AM_CONDITIONAL(have_openexr, test -n "$GTK3_LIBS")
  86. # --- End of GTK3 check ---
  87. # --- Pango check ---
  88. KDE_FIND_PATH(pkg-config, PKGCONFIG, [${prefix}/bin ${exec_prefix}/bin /usr/bin /usr/local/bin /opt/local/bin], [
  89. AC_MSG_WARN([Could not find pkg-config])
  90. ])
  91. AC_MSG_CHECKING([for Pango])
  92. if test -n "$PKGCONFIG"; then
  93. vers=`$PKGCONFIG pango --modversion 2>/dev/null`
  94. if test -n "$vers"
  95. then
  96. PANGO_LIBS="`$PKGCONFIG pango --libs`"
  97. PANGO_RPATH=
  98. for args in $PANGO_LIBS; do
  99. case $args in
  100. -L*)
  101. PANGO_RPATH="$PANGO_RPATH $args"
  102. ;;
  103. esac
  104. done
  105. PANGO_RPATH=`echo $PANGO_RPATH | $SED -e "s/-L/-R/g"`
  106. PANGO_CFLAGS="`$PKGCONFIG pango --cflags`"
  107. AC_DEFINE_UNQUOTED(HAVE_PANGO, 1, [Defines if your system has the Pango library])
  108. fi
  109. fi
  110. if test ! "$USE_RPATH" = "yes"; then
  111. PANGO_RPATH=
  112. fi
  113. if test -n "$PANGO_LIBS"
  114. then
  115. AC_MSG_RESULT([yes])
  116. else
  117. AC_MSG_RESULT([not found])
  118. fi
  119. AC_SUBST(PANGO_LIBS)
  120. AC_SUBST(PANGO_CFLAGS)
  121. AC_SUBST(PANGO_RPATH)
  122. AM_CONDITIONAL(have_openexr, test -n "$PANGO_LIBS")
  123. # --- End of Pango check ---