View | Details | Raw Unified
Collapse All | Expand All

(-) configure.ac (-13 / +29 lines)
 Lines 26-32    Link Here 
extern "C" {
extern "C" {
#endif
#endif
#if defined(__GNUC__) && __GNUC__ >= 4
#include <config.h>
#ifdef HAVE_VISIBILITY_HIDDEN
#    define EXPORT_SYMBOL __attribute__((visibility("default")))
#    define EXPORT_SYMBOL __attribute__((visibility("default")))
#else
#else
#    define EXPORT_SYMBOL
#    define EXPORT_SYMBOL
 Lines 36-42    Link Here 
INCLUDES = -I$(srcdir)/../include
INCLUDES = -I$(srcdir)/../include
AM_CFLAGS = $(GLIB_CFLAGS) -DG_DISABLE_DEPRECATED -D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 -D_REENTRANT -Wall -Waggregate-return -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes -Winline -pipe $(FVISIBILITY)
AM_CFLAGS = $(GLIB_CFLAGS) -DG_DISABLE_DEPRECATED \
	-D_LARGEFILE_SOURCE=1 -D_LARGE_FILES -D_FILE_OFFSET_BITS=64 \
	-D_REENTRANT -Wall -Waggregate-return -Wmissing-declarations \
	-Wmissing-prototypes -Wredundant-decls -Wshadow -Wstrict-prototypes \
	-Winline -pipe @GCC_FVISIBILITY_HIDDEN@
install-data-hook:
install-data-hook:
	( \
	( \
 Lines 48-67    Link Here 
AC_PROG_CC
AC_PROG_CC
# GCC 4.x -fvisibility=hidden {
# GCC 4.x -fvisibility=hidden {
FVISIBILITY=""
AC_DEFUN([CHECK_GCC_FVISIBILITY],
[
AC_LANG_PUSH(C)
AC_LANG_PUSH(C)
saved_cflags="$CFLAGS"
saved_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -fvisibility=hidden"
CFLAGS="$saved_CFLAGS -fvisibility=hidden"
AC_CACHE_CHECK([whether $CC supports -fvisibility=hidden], [ac_cv_gcc_fvis],
AC_CACHE_CHECK([whether compiler accepts -fvisibility=hidden],
    [AC_COMPILE_IFELSE([ ], [ac_cv_gcc_fvis=yes], [ac_cv_gcc_fvis=no])])
[cv_fvisibility_hidden],
CFLAGS="$saved_cflags"
	AC_COMPILE_IFELSE(
if test "$ac_cv_gcc_fvis" = yes; then
		AC_LANG_PROGRAM(
    FVISIBILITY="-fvisibility=hidden"
		[],
else
		[]),
    FVISIBILITY=""
		[cv_fvisibility_hidden=yes],
		[cv_fvisibility_hidden=no]
	)
)
if test "$cv_fvisibility_hidden" = "yes"; then
AC_DEFINE(HAVE_VISIBILITY_HIDDEN, [],
        [True if compiler supports -fvisibility=hidden])
AC_SUBST(GCC_FVISIBILITY_HIDDEN, [-fvisibility=hidden])
fi
fi
AC_SUBST(FVISIBILITY)
CFLAGS="$saved_CFLAGS"
AC_LANG_POP(C)
AC_LANG_POP(C)
])dnl
CHECK_GCC_FVISIBILITY()
# }
# }
AC_PROG_INSTALL
AC_PROG_INSTALL