summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorThomas Weber <tweber@debian.org>2017-01-28 16:57:41 +0100
committerThomas Weber <tweber@debian.org>2017-02-02 09:42:07 +0100
commitab1093539b4287c233aca6a3cf53b234faceb792 (patch)
tree57cf8b445bc69380b977cce4427af83251758698 /configure.ac
parent06662a755525586223efe1790da1497d5b2d9e67 (diff)
downloadlcms2-ab1093539b4287c233aca6a3cf53b234faceb792.tar.gz
Check availibility of 'visibility' function attribute in compiler
Supported by at least GCC and Clang
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 319a006..e087cfa 100644
--- a/configure.ac
+++ b/configure.ac
@@ -83,6 +83,10 @@ AM_MAINTAINER_MODE
AC_C_INLINE
AC_SUBST(inline)
+# Check if the C compiler supports the "visibility" function attribute
+# If supported, defines HAVE_FUNC_ATTRIBUTE_VISIBILITY
+AX_GCC_FUNC_ATTRIBUTE(visibility)
+
# If words are stored with the most significant byte first (like
# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
AC_C_BIGENDIAN