Commit 97d2ccfbfdbaa9d19620117fdcc4e278e44a3469

Ryan Schmidt 2021-02-10T23:54:59

Use correct syntax for the -dylib_file flag Use correct syntax for the -dylib_file flag (no space after colon). Fixes configure failure on macOS Big Sur and later.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/m4/gl.m4 b/m4/gl.m4
index 09c84ca..a4c789f 100644
--- a/m4/gl.m4
+++ b/m4/gl.m4
@@ -50,7 +50,7 @@ LIBS="$LIBS -Xlinker -framework -Xlinker OpenGL"
 # -Xlinker is used because libtool is busted prior to 1.6 wrt frameworks
 AC_TRY_LINK([#include <OpenGL/gl.h>], [glBegin(GL_POINTS)],
     [GL_DYLIB="/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib"
-     FRAMEWORK_OPENGL="-Xlinker -framework -Xlinker OpenGL -dylib_file $GL_DYLIB: $GL_DYLIB"
+     FRAMEWORK_OPENGL="-Xlinker -framework -Xlinker OpenGL -dylib_file $GL_DYLIB:$GL_DYLIB"
      ac_cv_search_glBegin="$FRAMEWORK_OPENGL"
      AC_MSG_RESULT(yes)],
     [AC_MSG_RESULT(no)])