[freestdf-commits] SF.net SVN: freestdf: [313] trunk/m4/stdf_gcc_attributes.m4
Status: Beta
Brought to you by:
vapier
From: <va...@us...> - 2007-12-15 19:33:41
|
Revision: 313 http://freestdf.svn.sourceforge.net/freestdf/?rev=313&view=rev Author: vapier Date: 2007-12-15 11:31:35 -0800 (Sat, 15 Dec 2007) Log Message: ----------- export attribute stuff to AC_CONFIG_FILES as well Modified Paths: -------------- trunk/m4/stdf_gcc_attributes.m4 Modified: trunk/m4/stdf_gcc_attributes.m4 =================================================================== --- trunk/m4/stdf_gcc_attributes.m4 2007-11-28 02:57:09 UTC (rev 312) +++ trunk/m4/stdf_gcc_attributes.m4 2007-12-15 19:31:35 UTC (rev 313) @@ -8,9 +8,16 @@ CFLAGS="$CFLAGS -Wattributes -Werror" AC_TRY_COMPILE([$3], [$4], [stdf_gcc_attr="yes"], [stdf_gcc_attr="no"]) if test x"$stdf_gcc_attr" = xyes ; then - AC_DEFINE(STDF_HAVE_GCC_ATTRIBUTE_$1, 1, [compiler supports __attribute__ (($1))]) + AC_DEFINE(STDF_HAVE_GCC_ATTRIBUTE_$1, 1, [compiler supports __attribute__ (($2))]) + STDF_HAVE_GCC_ATTRIBUTE_$1="1" + STDF_GCC_ATTRIBUTE_$1="__attribute__ (($2))" + else + STDF_HAVE_GCC_ATTRIBUTE_$1="0" + STDF_GCC_ATTRIBUTE_$1="" fi CFLAGS="$save_CFLAGS" + AC_SUBST(STDF_HAVE_GCC_ATTRIBUTE_$1) + AC_SUBST(STDF_GCC_ATTRIBUTE_$1) AC_MSG_RESULT($stdf_gcc_attr) ]) AC_DEFUN([AC_STDF_GCC_ATTRIBUTES], This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |