summaryrefslogtreecommitdiffstats
path: root/src/auto
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2015-09-08 20:00:22 +0200
committerBram Moolenaar <Bram@vim.org>2015-09-08 20:00:22 +0200
commit3cbe0c01ad71875bd662edb629f9e792a734f292 (patch)
treeb22088b5131151e038dbe253966750ead0ab1a5c /src/auto
parenta122b5e98afe18c9cfdab31b77d2a9fbb8e36416 (diff)
patch 7.4.861v7.4.861
Problem: pango_shape_full() is not always available. Solution: Add a configure check.
Diffstat (limited to 'src/auto')
-rwxr-xr-xsrc/auto/configure31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/auto/configure b/src/auto/configure
index cdefc9c299..3bd5685f58 100755
--- a/src/auto/configure
+++ b/src/auto/configure
@@ -12181,6 +12181,37 @@ else
$as_echo "yes" >&6; }
fi
+if test "x$GTK_CFLAGS" != "x"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pango_shape_full" >&5
+$as_echo_n "checking for pango_shape_full... " >&6; }
+ ac_save_CFLAGS="$CFLAGS"
+ ac_save_LIBS="$LIBS"
+ CFLAGS="$CFLAGS $GTK_CFLAGS"
+ LIBS="$LIBS $GTK_LIBS"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <gtk/gtk.h>
+int
+main ()
+{
+ pango_shape_full(NULL, 0, NULL, 0, NULL, NULL);
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }; $as_echo "#define HAVE_PANGO_SHAPE_FULL 1" >>confdefs.h
+
+else
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ CFLAGS="$ac_save_CFLAGS"
+ LIBS="$ac_save_LIBS"
+fi
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking --disable-gpm argument" >&5
$as_echo_n "checking --disable-gpm argument... " >&6; }
# Check whether --enable-gpm was given.