~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/plugin.ac

MergedĀ inĀ pandora-build

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
         *solaris*|*SunOS*)
42
42
           AM_CFLAGS="$AM_CFLAGS -DUNIV_SOLARIS";;
43
43
  esac
44
 
  INNODB_DYNAMIC_CFLAGS="-DDRIZZLE_DYNAMIC_PLUGIN"
 
44
  INNODB_DYNAMIC_CFLAGS="-DPANDORA_DYNAMIC_PLUGIN"
45
45
  case "$target_cpu" in
46
46
        x86_64)
47
47
                # The AMD64 ABI forbids absolute addresses in shared libraries
76
76
      AC_MSG_RESULT(no)
77
77
    ]
78
78
    )
 
79
 
 
80
dnl Must be done once we turn on warnings and such
 
81
AC_CACHE_CHECK(
 
82
  [whether __attribute__ visibility "hidden" is supported],
 
83
  [ac_cv_can_use_hidden_],[
 
84
    AC_LANG_PUSH(C++)
 
85
    save_CXXFLAGS="${CXXFLAGS}"
 
86
    CXXFLAGS="${AM_CXXFLAGS} ${CXXFLAGS}"
 
87
    AC_LINK_IFELSE([
 
88
      AC_LANG_PROGRAM(
 
89
        [[
 
90
__attribute__((visibility ("hidden")))
 
91
void testme() {  }
 
92
        ]],[[testme()]]
 
93
      )],  
 
94
      [ac_cv_can_use_hidden_=yes],
 
95
      [ac_cv_can_use_hidden_=no])
 
96
    CXXFLAGS="${save_CXXFLAGS}"
 
97
    AC_LANG_POP()])
 
98
AS_IF([test "$ac_cv_can_use_hidden_" = "yes"],[
 
99
  AC_DEFINE(HAVE_ATTR_HIDDEN, 1,
 
100
  [Define to 1 if you have support for __attribute__((visibility("hidden")))])
 
101
])
 
102
 
79
103
  ])
80
104
 
81
105
AC_INNODB_ACTIONS