RPM Package Manager, CVS Repository http://rpm5.org/cvs/ ____________________________________________________________________________
Server: rpm5.org Name: Pinto Elia Root: /v/rpm/cvs Email: [email protected] Module: rpm Date: 23-Mar-2009 17:46:50 Branch: HEAD Handle: 2009032316465000 Modified files: rpm CHANGES configure.ac Log: Added AC_CPP_FUNC autofu portability macro Summary: Revision Changes Path 1.2862 +1 -0 rpm/CHANGES 2.348 +32 -0 rpm/configure.ac ____________________________________________________________________________ patch -p0 <<'@@ .' Index: rpm/CHANGES ============================================================================ $ cvs diff -u -r1.2861 -r1.2862 CHANGES --- rpm/CHANGES 21 Mar 2009 21:53:40 -0000 1.2861 +++ rpm/CHANGES 23 Mar 2009 16:46:50 -0000 1.2862 @@ -1,5 +1,6 @@ 5.2a3 -> 5.2a4: + - devzero2000: add autofu AC_CPP_FUNC portability macro - jbj: yarn: wire up rpmteFini, eliminate rpmteFree. - jbj: yarn: wire up rpmsxFini, eliminate rpmsxFree. - jbj: yarn: wire up rpmfiFini, eliminate rpmfiFree. @@ . patch -p0 <<'@@ .' Index: rpm/configure.ac ============================================================================ $ cvs diff -u -r2.347 -r2.348 configure.ac --- rpm/configure.ac 18 Mar 2009 17:12:22 -0000 2.347 +++ rpm/configure.ac 23 Mar 2009 16:46:50 -0000 2.348 @@ -109,6 +109,37 @@ AC_PROG_CPP AC_PROG_CXX +dnl Needed for the test support code; this was found at +dnl http://lists.gnu.org/archive/html/bug-autoconf/2002-07/msg00028.html + +# AC_CPP_FUNC +# ------------------ # +# Checks to see if ANSI C99 CPP variable __func__ works. +# If not, perhaps __FUNCTION__ works instead. +# If not, we'll just define __func__ to "". +AC_DEFUN([AC_CPP_FUNC], +[AC_REQUIRE([AC_PROG_CC_STDC])dnl +AC_CACHE_CHECK([for an ANSI C99-conforming __func__], ac_cv_cpp_func, +[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], +[[char *foo = __func__;]])], + [ac_cv_cpp_func=yes], + [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([], +[[char *foo = __FUNCTION__;]])], + [ac_cv_cpp_func=__FUNCTION__], + [ac_cv_cpp_func=no])])]) +if test $ac_cv_cpp_func = __FUNCTION__; then + AC_DEFINE(__func__,__FUNCTION__, + [Define to __FUNCTION__ or "" if `__func__' does not conform to +ANSI C.]) +elif test $ac_cv_cpp_func = no; then + AC_DEFINE(__func__,"", + [Define to __FUNCTION__ or "" if `__func__' does not conform to +ANSI C.]) +fi +])# AC_CPP_FUNC + +AC_CPP_FUNC + AC_USE_SYSTEM_EXTENSIONS AC_PROG_AWK @@ -118,6 +149,7 @@ AC_PROG_LIBTOOL AC_PROG_YACC + AC_PATH_PROG(AS, as, as) dnl # GCC specifics @@ . ______________________________________________________________________ RPM Package Manager http://rpm5.org CVS Sources Repository [email protected]
