http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50777
--- Comment #3 from Ian Lance Taylor <ian at airs dot com> 2011-10-18 21:07:12 UTC --- I would advise handling madvise in the same way that we handle AM_ICONV in gcc/configure.ac, to work around a similar issue.