Re: New gnucap development snapshot
Dan McMahill <[email protected]>
| Newsgroups | gmane.comp.gnu.gnucap.devel |
|---|---|
| Message-ID | <[email protected]> |
al davis wrote:
> There is a new development snapshot of gnucap available.
>
> There's a package at:
> http://www.gnucap.org/devel/gnucap-2006-12-04.tar.gz
> http://geda.seul.org/dist/gnucap-2006-12-04.tar.gz
> As usual, I am asking for feedback, particularly on non-Linux
> and non-GNU systems.
Builds ok and seems to run some of the examples ok on both
solaris-2.9/sparc and NetBSD-2.0/alpha both using gcc3. You already
know of the issues with the sun studio compilers.
In terms of the __func__ bit not being defined everywhere, this seems to
work although I don't need that with gcc and the sun compilers are the
only non-gcc compilers I have access to.
##############################################################
# Test for __func__
#
AC_MSG_CHECKING([For a working C99 __func__])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],
[[const char *foo = __func__;]])],
[ac_cv_cpp_func=yes],
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],
[[const char *foo = __FUNCTION__;]])],
[ac_cv_cpp_func=__FUNCTION__],
[ac_cv_cpp_func=no])]
)
if test "$ac_cv_cpp_func" = "__FUNCTION__"; then
CPPFLAGS="$CPPFLAGS -D__func__=__FUNCTION__"
AC_MSG_RESULT([__FUNCTION__])
elif test "$ac_cv_cpp_func" = "yes" ; then
AC_MSG_RESULT([__func__])
else
CPPFLAGS="$CPPFLAGS -D__func__='\"\"'"
AC_MSG_RESULT([no])
fi
#
##############################################################
-Dan