📄 configure.in
字号:
dnl Process this file with autoconf to produce a configure script.AC_INIT(README)dnl Setup for automakeSDL_VERSION=1.2.3dnl Detect the canonical host and target build environmentAC_CANONICAL_HOSTAC_CANONICAL_TARGETdnl Setup for automakeAM_INIT_AUTOMAKE(SDL_tests, $SDL_VERSION)dnl Check for toolsAC_PROG_CCdnl Check for compiler environmentAC_C_CONSTdnl Figure out which math library to usecase "$target" in *-*-cygwin* | *-*-mingw32*) MATHLIB="" SYS_GL_LIBS="-lopengl32" ;; *-*-beos*) MATHLIB="" SYS_GL_LIBS="-lGL" ;; *-*-darwin*) MATHLIB="" SYS_GL_LIBS="" ;; *-*-aix*) if test x$ac_cv_prog_gcc = xyes; then CFLAGS="-mthreads" fi SYS_GL_LIBS="" ;; *) MATHLIB="-lm" AC_PATH_X AC_PATH_XTRA if test x$have_x = xyes; then CFLAGS="$CFLAGS $X_CFLAGS" SYS_GL_LIBS="$X_LIBS -lGL" else SYS_GL_LIBS="-lGL" fi ;;esacAC_SUBST(MATHLIB)dnl Check for SDLAM_PATH_SDL($SDL_VERSION, :, AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]))CFLAGS="$CFLAGS $SDL_CFLAGS"LIBS="$LIBS $SDL_LIBS"dnl Check for OpenGLAC_MSG_CHECKING(for OpenGL support)have_opengl=noAC_TRY_COMPILE([ #include "SDL_opengl.h"],[],[have_opengl=yes])AC_MSG_RESULT($have_opengl)if test x$have_opengl = xyes; then CFLAGS="$CFLAGS -DHAVE_OPENGL" GL_LIBS="$SYS_GL_LIBS"else GL_LIBS=""fiAC_SUBST(GL_LIBS)# Finally create all the generated filesAC_OUTPUT([Makefile])
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -