--- configure.ac.orig	2016-08-19 06:18:02.000000000 -0700
+++ configure.ac	2016-09-05 10:20:10.000000000 -0700
@@ -713,6 +713,7 @@
 
 if [[ "x$WANT_MACOSX_GUI" = "xyes" ]]; then
   CPPFLAGS="$CPPFLAGS -I../MacOSX"
+  KEYCODES="keycodes"
   LIBS="$LIBS -framework CoreAudio -framework AudioUnit -framework AudioToolbox"
 
   EXTRASYSSRCS="$EXTRASYSSRCS ../MacOSX/Controller.mm"