dnl As AC_CHECK_LIB except "function" must be a fully valid function call and "header" the header file in which that function is defined. The benefit is that this can find functions whose symbols have been decorated, e.g. a lot of MinGW stuff.
AC_DEFUN([AX_CHECK_LIB_USING_HEADER],
[
dnl # On Windows OpenGL functions' library symbols don't match their function names. So we have to do it the hard way.