]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
detect __func__ properly even if CFLAGS has -Werror in it
authorAnthony Minessale <anthony.minessale@gmail.com>
Wed, 14 Feb 2007 22:48:54 +0000 (22:48 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Wed, 14 Feb 2007 22:48:54 +0000 (22:48 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4278 d0543943-73ff-0310-b7d9-9358b9ac24b2

libs/sofia-sip/configure
libs/sofia-sip/m4/sac-general.m4

index a72bdc647967ffc5886ee4c08bf3dde5fc64388b..0046851089d93bfe82dcafb21fae913a46763090 100755 (executable)
@@ -20453,7 +20453,7 @@ cat >>conftest.$ac_ext <<_ACEOF
 int
 main ()
 {
-char *s = __func__;
+const char *s = __func__;
 
   ;
   return 0;
@@ -26933,7 +26933,7 @@ cat >>conftest.$ac_ext <<_ACEOF
 int
 main ()
 {
-char *s = __func__;
+const char *s = __func__;
 
   ;
   return 0;
index 87eeda613316867442a570a93c023ec5266144d6..b7acadb6ffea88a3bbb462fb97e42682dd89734c 100644 (file)
@@ -276,7 +276,7 @@ dnl ======================================================================
 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__])