~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/plugin.ac

Moved InnoDB specific code to InnoDB.
Removed unused variables.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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