summaryrefslogtreecommitdiffstats
path: root/src/ConfigureChecks.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'src/ConfigureChecks.cmake')
-rw-r--r--src/ConfigureChecks.cmake18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/ConfigureChecks.cmake b/src/ConfigureChecks.cmake
new file mode 100644
index 0000000..5be8176
--- /dev/null
+++ b/src/ConfigureChecks.cmake
@@ -0,0 +1,18 @@
+#################################################
+#
+# (C) 2020 Michele Calgaro
+# michele (DOT) calgaro (AT) yahoo (DOT) it
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+## test for libXext
+pkg_search_module( XEXT xext )
+if( XEXT_FOUND )
+ check_include_file( "X11/extensions/shape.h" HAVE_X11_EXTENSIONS_SHAPE_H )
+else( )
+ tde_message_fatal( "Xext is required, but was not found on your system." )
+endif( )