- dnl We need to inject error into the cflags to test if visibility works or not
- dnl save_CFLAGS="${CFLAGS}"
- dnl CFLAGS="${CFLAGS} -Werror"
- dnl gl_VISIBILITY
- dnl CFLAGS="${save_CFLAGS}"
+ m4_if(PCT_USE_VISIBILITY,[yes],[
+ dnl We need to inject error into the cflags to test if visibility works or not
+ save_CFLAGS="${CFLAGS}"
+ CFLAGS="${CFLAGS} -Werror"
+ gl_VISIBILITY
+ CFLAGS="${save_CFLAGS}"
+ ])