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

📄 configure.in

📁 汇编语言编程源代码
💻 IN
字号:
# Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.#  # $Id: configure.in,v 1.18 2002/04/08 00:29:59 jao Exp $## This file is free software; as a special exception the author gives# unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved.# # This program is distributed in the hope that it will be useful, but# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.AC_INIT(mixlib/mix.h)AM_CONFIG_HEADER(config.h)AM_INIT_AUTOMAKE(mdk,1.0)AM_MAINTAINER_MODEAC_ISC_POSIXAC_PROG_CCAM_PROG_CC_STDCAC_HEADER_STDCAM_PROG_LEXAC_PROG_RANLIBdnl i18n stuffALL_LINGUAS=""AM_GNU_GETTEXTtest "x$prefix" = xNONE && prefix=$ac_default_prefixAC_DEFINE_UNQUOTED(LOCALEDIR, "${prefix}/share/locale")dnl Check for readline and historyAC_ARG_WITH(readline,[  --with-readline         build mixvm with readline support],[case "${withval}" in  yes) readl=true ;;  no)  readl=false ;;  *) AC_MSG_ERROR(bad value ${withval} for --with-readline) ;;esac], [readl=true])if test x$readl = xtrue; then  AC_CHECK_LIB(ncurses, initscr, ,               [AC_MSG_WARN(Cannot find ncurses lib) readl=false])fiif test x$readl = xtrue; then  AC_CHECK_LIB(readline, readline, ,               [AC_MSG_WARN(Cannot find GNU readline lib) readl=false])fiif test x$readl = xtrue; thenAC_CHECK_LIB(history, add_history, ,             [AC_MSG_WARN(Cannot find GNU history lib) readl=false])dnl old versions of readline use completion_matches insteaddnl of rl_completion_matchesAC_CHECK_FUNCS(rl_completion_matches,,)fidnl Check for guileAC_ARG_WITH(guile,[  --with-guile         build MDK with Guile support],[case "${withval}" in  yes) wguile=true ;;  no)  wguile=false ;;  *) AC_MSG_ERROR(bad value ${withval} for --with-guile) ;;esac], [wguile=true])if test x$wguile = xtrue; then  AC_MSG_CHECKING(for Guile)  guile-config link > /dev/null || {    AC_MSG_RESULT(no)    wguile=false  }fiif test x$wguile = xtrue; then  GUILE_CFLAGS="`guile-config compile`"  GUILE_LDFLAGS="`guile-config link`"  LIBS="$LIBS $GUILE_LDFLAGS"  CFLAGS="$CFLAGS $GUILE_CFLAGS"  AC_SUBST(MAKE_GUILE)  AC_MSG_RESULT(yes)fiAM_CONDITIONAL(MAKE_GUILE, test x$wguile = xtrue)dnl Check for glibAM_PATH_GLIB(1.2.0,             [LIBS="$LIBS $GLIB_LIBS" CFLAGS="$CFLAGS $GLIB_CFLAGS"],	     AC_MSG_ERROR(Cannot find GLIB), "gmodule" )dnl Check if the gtk gui is requiredAC_ARG_ENABLE(gui,[  --enable-gui          build the GTK+ GUI for mixvm (gmixvm)],[case "${enableval}" in  yes) gui=true ;;  no)  gui=false ;;  *) AC_MSG_ERROR(bad value ${enableval} for --enable-gui) ;;esac],[gui=true])dnl Check for gtk+if test x$gui = xtrue; thenAM_PATH_GTK(1.2.0,	[LIBS="$LIBS $GTK_LIBS" CFLAGS="$CFLAGS $GTK_CFLAGS"],[AC_MSG_WARN(Cannot find GTK+: the GUI shall not be built)  gui=false],"gmodule" )fidnl Check for libgladeif test x$gui = xtrue; then  AM_PATH_LIBGLADE([LIBS="$LIBS $LIBGLADE_LIBS"          CFLAGS="$CFLAGS $LIBGLADE_CFLAGS"],     	  gui=false)fidnl use the provided getopt if gnu getopt is not availableAC_REPLACE_FUNCS(getopt_long)AM_CONDITIONAL(MAKE_GUI, test x$gui = xtrue)AC_CANONICAL_HOSTcase "${host_os}" indarwin*) CFLAGS="$CFLAGS -Wall -traditional-cpp";;*)  CFLAGS="$CFLAGS -Wall";;esacAC_SUBST(CFLAGS)AC_OUTPUT(Makefiledoc/Makefiledoc/img/Makefilemixlib/Makefilemixlib/testsuite/Makefilemixguile/Makefilemixutils/Makefilemixgtk/Makefilelib/Makefilemisc/Makefileintl/Makefilesamples/Makefilepo/Makefile.in)if test x$readl = xtrue; then  rlinfo=", with readline support"fiif test x$wguile = xtrue; then  guileinfo=", with guile support"fiechoecho "*** GNU MDK $VERSION has been successfully configured. ***"echoecho "Type 'make' to build the following utilities:"echo "    - mixasm (MIX assembler)"echo "    - mixvm (MIX virtual machine${rlinfo}${guileinfo})"if test x$gui = xtrue; thenecho "    - gmixvm (mixvm GTK+ GUI${guileinfo})"fiif test x$wguile = xtrue; thenecho "    - mixguile (the mixvm guile shell)"fiecho

⌨️ 快捷键说明

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