Commit 36e8cd683492456def3b6a54c6dcb56cd6ee4bb4

frankheckenbach 2021-02-11T14:07:20

Merge pull request #14 from ryandesign/patch-1 Use correct syntax for the -dylib_file flag

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)])