No need to include the OpenGL / OpenAL headers in aclocal.m4
[ghc-base.git] / aclocal.m4
index e95a970..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])])
@@ -191,9 +173,9 @@ for ac_lib in '' $4; do
     LIBS="-l$ac_lib $7 $ac_func_search_save_LIBS"
   fi
   AC_LINK_IFELSE([], [AS_VAR_SET([ac_Search], [$ac_res])])
-  AS_VAR_SET_IF([ac_Search], [break])dnl
+  AS_VAR_SET_IF([ac_Search], [break])
 done
-AS_VAR_SET_IF([ac_Search], , [AS_VAR_SET([ac_Search], [no])])dnl
+AS_VAR_SET_IF([ac_Search], , [AS_VAR_SET([ac_Search], [no])])
 rm conftest.$ac_ext
 LIBS=$ac_func_search_save_LIBS])
 ac_res=AS_VAR_GET([ac_Search])