⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 configure.in

📁 LTris a tetris clone for Linux
💻 IN
字号:
dnl Process this file with autoconf to produce a configure script.AC_INIT(Makefile.am)AM_CONFIG_HEADER(config.h)AM_INIT_AUTOMAKE(ltris,1.0.6)dnl Checks for programs.AC_PROG_CCAC_PROG_RANLIBdnl Checks for libraries.AC_CHECK_LIB(m, main,, AC_MSG_ERROR(lib math is needed))dnl Get all warningsCFLAGS="$CFLAGS -Wall"dnl check SDL versionsdl_flag=""AM_PATH_SDL(1.0.0,, AC_MSG_ERROR(lib SDL is needed))CFLAGS="$CFLAGS $SDL_CFLAGS"LIBS="$LIBS $SDL_LIBS"AM_PATH_SDL(1.1.5, sdl_flag="-DSDL_1_1_5",)CFLAGS="$CFLAGS $sdl_flag"dnl check soundsound_flag="-DSOUND"mixer_flag="-lSDL_mixer"AC_ARG_ENABLE( sound,[  --disable-sound         Disables sound], sound_flag=""; mixer_flag="")dnl check if SDL_mixer's installeddnl if not: clear sound_flag and mixer_flagAC_CHECK_LIB(SDL_mixer, main,AC_MSG_RESULT("SDL_Mixer found"), AC_MSG_RESULT("SDL_Mixer NOT found: Audio disabled"); sound_flag=""; mixer_flag="")AC_SUBST(sound_flag)AC_SUBST(mixer_flag)dnl set sound buffer sizebuf_flag="-DAUDIO_BUFFER_SIZE=256"AC_ARG_WITH( buffer-size,[  --with-buffer-size=BUFSIZE       Set this value to 2048 if you encounter sound delay.],buf_flag="-DAUDIO_BUFFER_SIZE=$withval",)AC_SUBST(buf_flag)dnl installation pathinst_dir=$datadir/games/ltrishi_dir=/var/lib/gamesdnl check if installation was disableddis_flag=""AC_ARG_ENABLE( install,[  --disable-install           No installation. Played from the source directory.], inst_dir="." hi_dir="." dis_flag="-DDISABLE_INSTALL")dnl check if manually overwriting highscore pathAC_ARG_WITH( highscore-path,[  --with-highscore-path=HPATH  Directory where global highscore chart is saved.],hi_dir="$withval",)inst_flag="-DSRC_DIR=\\\"$inst_dir\\\""hi_inst_flag="-DHI_DIR=\\\"$hi_dir\\\""AC_SUBST(inst_dir)AC_SUBST(hi_dir)AC_SUBST(inst_flag)AC_SUBST(hi_inst_flag)AC_SUBST(dis_flag)AC_OUTPUT(Makefile src/Makefile icons/Makefile src/sounds/Makefile src/gfx/Makefile)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -