?? configure.in
字號:
dnl Process this file with autoconf to produce a configure script.AC_INIT(TestGfxPrimitives.c)dnl Setup for automakeAM_INIT_AUTOMAKE(TestGfxPrimitives, 1.0)dnl SDL version requiredSDL_VERSION=1.2.0dnl Setup for automakednl Detect the canonical host and target build environmentAC_CANONICAL_HOSTAC_CANONICAL_TARGETdnl Check for compilersAC_LIBTOOL_WIN32_DLLAM_PROG_LIBTOOLAC_PROG_MAKE_SETAC_PROG_CCAC_PROG_CXXAC_PROG_INSTALLdnl Check for compiler environmentAC_C_CONSTdnl Set for C compiler by defaultAC_LANG_Cdnl Setup target flagswcase "$target" in *-*-cygwin* | *-*-mingw32*) CFLAGS="$CFLAGS -DWIN32" if test "$build" != "$target"; then # cross-compiling ac_default_prefix=/usr/local/cross-tools/i386-mingw32msvc fi ;; *) dnl nothing to do ;;esacdnl Figure out which math library to usecase "$target" in *-*-cygwin* | *-*-mingw32*) MATHLIB="" ;; *-*-beos*) MATHLIB="" ;; *-*-darwin*) MATHLIB="" ;; *-*-aix*) MATHLIB="-lm" if test x$ac_cv_prog_gcc = xyes; then CFLAGS="-mthreads" fi ;; *) MATHLIB="-lm" ;;esacAC_SUBST(MATHLIB)LIBS="$LIBS $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 the SDL_gfx libhave_sdlgfx=noAC_CHECK_LIB(SDL_gfx, pixelColor , have_sdlgfx=yes)if test x$have_sdlgfx = xyes; then LIBS="$LIBS -lSDL_gfx"else AC_MSG_ERROR([*** Unable to find SDL_gfx library])fi# Finally create all the generated filesAC_OUTPUT([Makefile])
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -