No need to include the OpenGL / OpenAL headers in aclocal.m4
[ghc-base.git] / aclocal.m4
index 14f0275..5e82969 100644 (file)
@@ -113,24 +113,6 @@ AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h>
 # endif
 #endif
 
-#if defined(HAVE_GL_GL_H)
-# include <GL/gl.h>
-#elif defined(HAVE_OPENGL_GL_H)
-# include <OpenGL/gl.h>
-#endif
-
-#if defined(HAVE_AL_AL_H)
-# include <AL/al.h>
-#elif defined(HAVE_OPENAL_AL_H)
-# include <OpenAL/al.h>
-#endif
-
-#if defined(HAVE_AL_ALC_H)
-# include <AL/alc.h>
-#elif defined(HAVE_OPENAL_ALC_H)
-# include <OpenAL/alc.h>
-#endif
-
 #if HAVE_SYS_RESOURCE_H
 # include <sys/resource.h>
 #endif
@@ -179,7 +161,7 @@ undefine([AC_CV_NAME_supported])dnl
 # prototype text as its second argument. It also calls AC_LANG_PROGRAM
 # instead of AC_LANG_CALL
 AC_DEFUN([FP_SEARCH_LIBS_PROTO],
-[AS_VAR_PUSHDEF([ac_Search], [ac_cv_search_$3])dnl
+[AS_VAR_PUSHDEF([ac_Search], [ac_cv_search_$1])dnl
 AC_CACHE_CHECK([for library containing $1], [ac_Search],
 [ac_func_search_save_LIBS=$LIBS
 AC_LANG_CONFTEST([AC_LANG_PROGRAM([$2], [$3])])