📄 configure.in
字号:
dnl Process this file with autoconf to produce a configure script.AC_INIT(includes/wgui.h)AM_CONFIG_HEADER(includes/wgui_config.h:includes/wgui_config.h.in)WGUI_VERSION_MAJOR=0WGUI_VERSION_MINOR=3WGUI_VERSION_REVISION=0WGUI_VERSION=$WGUI_VERSION_MAJOR.$WGUI_VERSION_MINOR.$WGUI_VERSION_REVISIONVERSION=$WGUI_VERSIONPACKAGE=wGuiAC_SUBST(WGUI_VERSION_MAJOR)AC_SUBST(WGUI_VERSION_MINOR)AC_SUBST(WGUI_VERSION_REVISION)AC_SUBST(WGUI_VERSION)AC_SUBST(VERSION)AC_SUBST(PACKAGE)AM_INIT_AUTOMAKE($PACKAGE, $WGUI_VERSION)dnl Checks for programs.AC_PROG_CXXAC_PROG_CCAC_PROG_RANLIBAC_PROG_MAKE_SETAC_PROG_INSTALLAC_PROG_LN_Sdnl Add verbose warnings by default, and allow ANSI compliance checkingAC_ARG_ENABLE(strict-ansi,[ --enable-strict-ansi Enable strict ANSI compliance build[default=no]], , enable_strict_ansi=no)if test x$ac_cv_prog_gcc = xyes; then CFLAGS="$CFLAGS -Wall" if test x$enable_strict_ansi = xyes; then CFLAGS="$CFLAGS -ansi -pedantic" fifidnl Checks for libraries.SDL_VERSION=1.2.0AM_PATH_SDL($SDL_VERSION, :, AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]))ft2test=yesAC_ARG_ENABLE(ft2test, [ --disable-ft2test disable the freetype check], ft2test=no)if test "$ft2test" = "yes"; then dnl Check for freetype2 with a reasonable fallback in case dnl freetype-config is missing. have_freetype=no AC_PATH_PROG(freetype_config,freetype-config,no) if test "$ac_cv_path_freetype_config" != "no"; then have_freetype=yes FREETYPE_CFLAGS="`$ac_cv_path_freetype_config --cflags`" FREETYPE_LIBS="`$ac_cv_path_freetype_config --libs`" else AC_CHECK_LIB(freetype,FT_Init_FreeType,have_freetype=yes) AC_CHECK_HEADER(ft2build.h,have_ft2build=yes) if test "$have_ft2build" != "yes"; then have_freetype="no" elif test "$have_freetype" = "yes"; then FREETYPE_LIBS="-lfreetype" ft2inc="no" AC_MSG_CHECKING(freetype2 include directory) if test -d /usr/local/include/freetype2; then ft2inc="/usr/local/include/freetype2" elif test -d /usr/include/freetype2; then ft2inc="/usr/include/freetype2" fi AC_MSG_RESULT($ft2inc) FREETYPE_CFLAGS="-I$ft2inc" fi fi if test x$have_freetype = xno; then AC_MSG_ERROR([*** Unable to find the FreeType 2 library(http://www.freetype.org/)]) fifidnl The composite lib and cflagsWGUI_CFLAGS="$CFLAGS $FREETYPE_CFLAGS $SDL_CFLAGS"WGUI_LIBS="$LIBS $FREETYPE_LIBS $SDL_LIBS -L../src -lwguid"WGUI_INCLUDES="$FREETYPE_INCLUDES $SDL_INCLUDES"AC_SUBST(WGUI_CFLAGS)AC_SUBST(WGUI_LIBS)AC_SUBST(WGUI_INCLUDES)dnl Checks for header files.dnl Checks for typedefs, structures, and compiler characteristics.dnl Checks for library functions.dnl Now generate the MakefilesAC_OUTPUT([Makefileincludes/Makefilesrc/Makefiletests/Makefiledocs/Makefilefonts/Makefile])
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -