[patch] Fix a couple of libstdc++ failures on uclinux

Benjamin Kosnik bkoz@redhat.com
Fri Apr 27 11:00:00 GMT 2007


> +# Use the strongest available test out of AC_TRY_COMPILE and AC_TRY_LINK.
> +AC_DEFUN([GCC_TRY_COMPILE_OR_LINK],
> +[if test x$gcc_no_link = xyes; then
> +  AC_TRY_COMPILE([$1], [$2], [$3], [$4])
> +else
> +  AC_TRY_LINK([$1], [$2], [$3], [$4])
> +fi])

I like where you are going with this.

It seems like this could be used more consistently. Now we have

AC_TRY_LINK
AC_TRY_COMPILE

you are proposing:
AC_TRY_COMPILE_OR_LINK (via GCC_TRY_COMPILE_OR_LINK)

for a long time in libstdc++ we had:
AC_TRY_COMPILE_AND_LINK

The -fno-exceptions thing seems fine to me.

-benjamin



More information about the Libstdc++ mailing list