X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=aclocal.m4;h=01e5c4fb405981754741d30590f07c6723f554cf;hb=2203c0cef25db52714de9bb33a5f3cde2d18b0f3;hp=0fb7fcd00643e1370d3b36c30bc7f08153999e49;hpb=cab3c5cb1a0038412472172cb0b25bc81dfdde8f;p=ghc-hetmet.git diff --git a/aclocal.m4 b/aclocal.m4 index 0fb7fcd..01e5c4f 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -372,10 +372,10 @@ else fi; changequote([, ])dnl ]) -dnl if test -d $srcdir/ghc -a ! -f $srcdir/ghc/compiler/parser/Lexer.hs; then -dnl FP_COMPARE_VERSIONS([$fptools_cv_alex_version],[-lt],[2.0], -dnl [AC_MSG_ERROR([Alex version 2.0 or later is required to compile GHC.])])[]dnl -dnl fi +if test -d $srcdir/ghc -a ! -f $srcdir/ghc/compiler/parser/Lexer.hs; then + FP_COMPARE_VERSIONS([$fptools_cv_alex_version],[-lt],[2.0], + [AC_MSG_ERROR([Alex version 2.0 or later is required to compile GHC.])])[]dnl +fi AlexVersion=$fptools_cv_alex_version; AC_SUBST(AlexVersion) ]) @@ -1057,7 +1057,9 @@ dnl and GL_X_LIBS/GLUT_X_LIBS. GL_CFLAGS= fi - LIBS="$GLUT_X_LIBS" + dnl Keep the GL/GLU/GLX libs, but expand the rest to what GLUT needs. + dnl (Some systems, like OpenBSD, need the GL/GLU libs.) + LIBS=`echo "$LIBS" | sed "s@$GL_X_LIBS@$GLUT_X_LIBS@"` FPTOOLS_SEARCH_LIBS([#include ], glutMainLoop, glut32 glut, have_glut=yes, have_glut=no)