-# fmodl.m4 serial 3
+# fmodl.m4 serial 4
dnl Copyright (C) 2011-2012 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
AC_REQUIRE([gl_LONG_DOUBLE_VS_DOUBLE])
AC_REQUIRE([gl_FUNC_FMOD])
+ dnl Persuade glibc <math.h> to declare fmodl().
+ AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
+
dnl Test whether fmodl() is declared.
dnl AIX 5.1 has fmodl() in libc but doesn't declare it in <math.h>, and the
dnl function produces NaN results for finite values.