X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=configure.ac;h=9267e807d9756934773b1a42cc19f172acc6505b;hp=c5ac1f048170e206ca6eaa05bc8f9187b3cd5671;hb=29e3d45f7bbbf31eadf793c41ff2b3d9c47b7539;hpb=5e5a883d665b09cc725c9c2baaaa98703c85c30e diff --git a/configure.ac b/configure.ac index c5ac1f0..9267e80 100644 --- a/configure.ac +++ b/configure.ac @@ -70,13 +70,13 @@ AC_ARG_WITH([assetdir], [eval DATADIR="$datarootdir/yoink"]) AC_SUBST([DATADIR]) - AC_DEFINE_UNQUOTED([YOINK_DATADIR], ["$DATADIR"], [Define to path of game asset directory.]) -AC_DEFINE_UNQUOTED([YOINK_CONFIGFILES], - ["\$HOME/.yoinkrc:/etc/yoinkrc:$DATADIR/yoinkrc"], - [Define to colon-delimited config file paths.]) +CONFIGFILES="\$HOME/.yoinkrc:/etc/yoinkrc" + +AC_DEFINE_UNQUOTED([YOINK_CONFIGFILES], ["$CONFIGFILES"], + [Define to colon-delimited configuration file paths.]) # @@ -101,9 +101,12 @@ AC_SEARCH_LIBS([IMG_Load], [SDL_image],, AC_SEARCH_LIBS([glBegin], [GL],, [AC_MSG_ERROR([libGL is required])]) +AC_SEARCH_LIBS([gluPerspective], [GLU],, + [AC_MSG_ERROR([libGLU is required])]) + AC_SEARCH_LIBS([clock_gettime], [rt], - [AC_DEFINE([HAVE_LIBRT], 1, - [Define to 1 if you have the 'rt' library.])]) + [AC_DEFINE([HAVE_CLOCK_GETTIME], 1, + [Define to 1 if you have the 'clock_gettime' function.])]) # @@ -135,7 +138,7 @@ AC_TYPE_SSIZE_T AC_FUNC_ERROR_AT_LINE AC_FUNC_STRTOD -AC_CHECK_FUNCS([strchr strcspn strrchr strstr]) +AC_CHECK_FUNCS([nanosleep strchr strcspn strrchr strstr]) # @@ -153,9 +156,9 @@ AC_SUBST([DATA_FILES]) AC_CONFIG_FILES([Makefile data/Makefile - src/Makefile doc/Makefile doc/yoink.6 + src/Makefile yajl/Makefile]) AC_CONFIG_HEADERS([src/config.h])