?? configure.in
字號:
# This first line initializes autoconf and gives it a file that it can# look for to make sure the source distribution is complete.AC_INIT(README)dnl Set various version strings - taken gratefully from the SDL sourcesMAJOR_VERSION=0MINOR_VERSION=10MICRO_VERSION=3SDLGUI_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSIONAC_SUBST(MAJOR_VERSION)AC_SUBST(MINOR_VERSION)AC_SUBST(MICRO_VERSION)AC_SUBST(SDLGUI_VERSION)# The AM_INIT_AUTOMAKE macro tells automake the name and version number# of the software package so it can generate rules for building a source# archive.AM_INIT_AUTOMAKE(SDL_gui, $SDLGUI_VERSION)dnl Detect the canonical host and target build environmentAC_CANONICAL_HOSTAC_CANONICAL_TARGETdnl Check for toolsAC_LIBTOOL_WIN32_DLLAM_PROG_LIBTOOLAC_PROG_MAKE_SETAC_PROG_CCAC_PROG_CXXAC_PROG_INSTALLdnl Check for compiler environmentAC_C_CONSTcase "$target" in alpha*-*-linux*) CFLAGS="$CFLAGS -mcpu=ev4 -Wa,-mall" ;; *-*-cygwin* | *-*-mingw*) if test "$build" != "$target"; then # cross-compiling ac_default_prefix=/usr/local/cross-tools/i386-mingw32msvc fi SYS_GL_LIBS="-lopengl32 -lglu32" ;; *-*-linux*) SYS_GL_LIBS="-L/usr/X11R6/lib -lGL" ;; *) SYS_GL_LIBS="-lGL" ;;esac# Use the macro SDL provides to check the installed version of the SDL# development environment. Abort the configuration process if the# minimum version we require isn't available.SDL_VERSION=1.1.2AM_PATH_SDL($SDL_VERSION, :, AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]))# Add the SDL preprocessor flags and libraries to the build processCFLAGS="$CFLAGS $SDL_CFLAGS"LIBS="$LIBS $SDL_LIBS"# Look for a working SDL_image libraryAC_CHECK_LIB(SDL_image, IMG_Load_RW, have_SDL_image=yes)if test x$have_SDL_image != xyes; then AC_MSG_ERROR([*** SDL_image library not found!Try: http://www.libsdl.org/projects/SDL_image/])fiLIBS="$LIBS -lSDL_image"# Look for a working SDL_ttf libraryAC_CHECK_LIB(SDL_ttf, TTF_FontDescent, have_SDL_ttf=yes)if test x$have_SDL_ttf != xyes; then AC_MSG_ERROR([*** SDL_ttf library not found!Try: http://www.libsdl.org/projects/SDL_ttf/])fidnl Expand the include directories for building SDLCFLAGS="-Wall -Werror -I\$(top_srcdir)/include $CFLAGS"CXXFLAGS="$CXXFLAGS $CFLAGS"# Finally create all the generated files# The configure script takes "file.in" and substitutes variables to produce# "file". In this case we are just generating the Makefiles, but this could# be used to generate any number of automatically generated files.AC_OUTPUT([MakefileSDL_gui.specsrc/Makefileinclude/Makefile])
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -