blob: 589a72ec7fe6f73277aa96b5c3c40733703c22d9 [file] [log] [blame]
NingSun0c89b3c2018-02-08 08:34:03 -08001AC_DEFUN([ACX_VISIBILITY],[
2 AC_ARG_ENABLE(
3 [visibility],
4 [AS_HELP_STRING([--disable-visibility],[disable hidden visibilty link mode @<:@enabled@:>@])],
5 [enable_visibility="${enableval}"],
6 [enable_visibility="yes"]
7 )
8 if test "${enable_visibility}" = "yes"; then
9 CFLAGS="${CFLAGS} -fvisibility=hidden"
10 CXXFLAGS="${CXXFLAGS} -fvisibility=hidden"
11 AC_DEFINE(CRYPTOKI_VISIBILITY, 1,
12 [Define to default visibility of PKCS@%:@11 entry points])
13 fi
14])