NingSun | 0c89b3c | 2018-02-08 08:34:03 -0800 | [diff] [blame^] | 1 | AC_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 | ]) |