Mercurial > pidgin
diff configure.ac @ 11862:f8cd06753755
[gaim-migrate @ 14153]
Make "make distcheck" work, which also makes the perl plugin loader loadable
when installed to a non-standard prefix (it still can't find Gaim.pm though)
Add some extra warning CFLAGS if a) --enable-debug was used and b) your
compiler supports them.
Plug a couple of leaks
The gaimrc plugin's GtkTreeView expander_size setting now works (but doesn't
seem to instant-apply - should it?)
staticify some functions that don't need to be exposed
probably something else I forgot about
committer: Tailor Script <tailor@pidgin.im>
| author | Stu Tomlinson <stu@nosnilmot.com> |
|---|---|
| date | Thu, 27 Oct 2005 20:43:43 +0000 |
| parents | f244cd5647af |
| children | f3a0cefa8e35 |
line wrap: on
line diff
--- a/configure.ac Thu Oct 27 20:22:27 2005 +0000 +++ b/configure.ac Thu Oct 27 20:43:43 2005 +0000 @@ -239,7 +239,7 @@ AM_CONDITIONAL(STATIC_YAHOO, test "x$static_yahoo" = "xyes") AM_CONDITIONAL(STATIC_ZEPHYR, test "x$static_zephyr" = "xyes") AC_SUBST(STATIC_LINK_LIBS) -AC_DEFINE_UNQUOTED(STATIC_PROTO_INIT, $extern_init void static_proto_init() { $load_proto }, +AC_DEFINE_UNQUOTED(STATIC_PROTO_INIT, $extern_init static void static_proto_init() { $load_proto }, [Loads static protocol plugin module initialization functions.]) AC_ARG_WITH(dynamic_prpls, [AC_HELP_STRING([--with-dynamic-prpls], [specify which protocols to build dynamically])], [DYNAMIC_PRPLS=`echo $withval | $sedpath 's/,/ /g'`]) @@ -307,6 +307,19 @@ if test "$enable_debug" = yes ; then AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.]) + for newflag in "-Werror-implicit-function-declaration" "-Wdeclaration-after-statement"; do + orig_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $newflag" + AC_MSG_CHECKING(for $newflag option to gcc) + AC_TRY_COMPILE([], [ + void main() {}; + ], [ + AC_MSG_RESULT(yes) + ], [ + AC_MSG_RESULT(no) + CFLAGS="$orig_CFLAGS" + ]) + done fi if test "x$enable_deprecated" = no; then
