comparison 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
comparison
equal deleted inserted replaced
11861:83e2fa10df1c 11862:f8cd06753755
237 AM_CONDITIONAL(STATIC_SIMPLE, test "x$static_simple" = "xyes") 237 AM_CONDITIONAL(STATIC_SIMPLE, test "x$static_simple" = "xyes")
238 AM_CONDITIONAL(STATIC_TOC, test "x$static_toc" = "xyes") 238 AM_CONDITIONAL(STATIC_TOC, test "x$static_toc" = "xyes")
239 AM_CONDITIONAL(STATIC_YAHOO, test "x$static_yahoo" = "xyes") 239 AM_CONDITIONAL(STATIC_YAHOO, test "x$static_yahoo" = "xyes")
240 AM_CONDITIONAL(STATIC_ZEPHYR, test "x$static_zephyr" = "xyes") 240 AM_CONDITIONAL(STATIC_ZEPHYR, test "x$static_zephyr" = "xyes")
241 AC_SUBST(STATIC_LINK_LIBS) 241 AC_SUBST(STATIC_LINK_LIBS)
242 AC_DEFINE_UNQUOTED(STATIC_PROTO_INIT, $extern_init void static_proto_init() { $load_proto }, 242 AC_DEFINE_UNQUOTED(STATIC_PROTO_INIT, $extern_init static void static_proto_init() { $load_proto },
243 [Loads static protocol plugin module initialization functions.]) 243 [Loads static protocol plugin module initialization functions.])
244 244
245 AC_ARG_WITH(dynamic_prpls, [AC_HELP_STRING([--with-dynamic-prpls], [specify which protocols to build dynamically])], [DYNAMIC_PRPLS=`echo $withval | $sedpath 's/,/ /g'`]) 245 AC_ARG_WITH(dynamic_prpls, [AC_HELP_STRING([--with-dynamic-prpls], [specify which protocols to build dynamically])], [DYNAMIC_PRPLS=`echo $withval | $sedpath 's/,/ /g'`])
246 if test "x$DYNAMIC_PRPLS" = "xall" ; then 246 if test "x$DYNAMIC_PRPLS" = "xall" ; then
247 DYNAMIC_PRPLS="bonjour gg irc jabber msn novell oscar sametime silc simple yahoo zephyr" 247 DYNAMIC_PRPLS="bonjour gg irc jabber msn novell oscar sametime silc simple yahoo zephyr"
305 AC_CHECK_HEADER(sys/utsname.h) 305 AC_CHECK_HEADER(sys/utsname.h)
306 AC_CHECK_FUNC(uname) 306 AC_CHECK_FUNC(uname)
307 307
308 if test "$enable_debug" = yes ; then 308 if test "$enable_debug" = yes ; then
309 AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.]) 309 AC_DEFINE(DEBUG, 1, [Define if debugging is enabled.])
310 for newflag in "-Werror-implicit-function-declaration" "-Wdeclaration-after-statement"; do
311 orig_CFLAGS="$CFLAGS"
312 CFLAGS="$CFLAGS $newflag"
313 AC_MSG_CHECKING(for $newflag option to gcc)
314 AC_TRY_COMPILE([], [
315 void main() {};
316 ], [
317 AC_MSG_RESULT(yes)
318 ], [
319 AC_MSG_RESULT(no)
320 CFLAGS="$orig_CFLAGS"
321 ])
322 done
310 fi 323 fi
311 324
312 if test "x$enable_deprecated" = no; then 325 if test "x$enable_deprecated" = no; then
313 DEBUG_CFLAGS="$DEBUG_CFLAGS -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED" 326 DEBUG_CFLAGS="$DEBUG_CFLAGS -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED"
314 fi 327 fi