I know your not supposed to pass CFLAGS to configure, but this one keeps messing me up when I have -Werror in an exported CFLAGS and it's an easy fix.
Mike Log: detect __func__ properly even if CFLAGS has -Werror in it Modified: freeswitch/trunk/libs/sofia-sip/m4/sac-general.m4 ======================================================================== ====== --- freeswitch/trunk/libs/sofia-sip/m4/sac-general.m4 (original) +++ freeswitch/trunk/libs/sofia-sip/m4/sac-general.m4 Wed Feb 14 17:48:54 2007 @@ -276,7 +276,7 @@ AC_DEFUN([AC_C_VAR_FUNC], [AC_REQUIRE([AC_PROG_CC]) AC_CACHE_CHECK(whether $CC recognizes __func__, ac_cv_c_var_func, -AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[char *s = __func__; +AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[const char *s = __func__; ]])],[ac_cv_c_var_func=yes],[ac_cv_c_var_func=no])) if test $ac_cv_c_var_func = "yes"; then AC_DEFINE([HAVE_FUNC], 1, [Define to 1 if the C compiler supports __func__]) ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Sofia-sip-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel
