Commit d44133ec49e27ca5c7b6bfcb7f8ec1c6be585d5b

Ryan Schmidt 2021-02-10T21:35:59

Use AC_ARG_WITH correctly so that the advertised configure options actually exist under their expected names.

diff --git a/m4/gl.m4 b/m4/gl.m4
index 4a1bc48..09c84ca 100644
--- a/m4/gl.m4
+++ b/m4/gl.m4
@@ -7,11 +7,11 @@ AC_REQUIRE([AC_PROG_CC])
 AC_REQUIRE([AC_PATH_X])
 AC_REQUIRE([AC_PATH_XTRA])
 
-AC_ARG_WITH([--with-gl-inc],
+AC_ARG_WITH([gl-inc],
     AC_HELP_STRING([--with-gl-inc=DIR],[Directory where GL/gl.h is installed]))
-AC_ARG_WITH([--with-gl-lib],
+AC_ARG_WITH([gl-lib],
     AC_HELP_STRING([--with-gl-lib=DIR],[Directory where OpenGL libraries are installed]))
-AC_ARG_WITH([--with-glu-lib],
+AC_ARG_WITH([glu-lib],
     AC_HELP_STRING([--with-glu-lib=DIR],[Directory where OpenGL GLU library is installed]))
 
 AC_LANG_SAVE
diff --git a/m4/glut.m4 b/m4/glut.m4
index 4a2b0b8..4508249 100644
--- a/m4/glut.m4
+++ b/m4/glut.m4
@@ -8,9 +8,9 @@ AC_REQUIRE([AC_PATH_X])dnl
 AC_REQUIRE([AC_PATH_XTRA])dnl
 AC_REQUIRE([FTGL_CHECK_GL])dnl
 
-AC_ARG_WITH([--with-glut-inc],
+AC_ARG_WITH([glut-inc],
     AC_HELP_STRING([--with-glut-inc=DIR],[Directory where GL/glut.h is installed (optional)]))
-AC_ARG_WITH([--with-glut-lib],
+AC_ARG_WITH([glut-lib],
     AC_HELP_STRING([--with-glut-lib=DIR],[Directory where GLUT libraries are installed (optional)]))
 
 AC_LANG_SAVE