📄 configure.in
字号:
dnl Configure script for Goosednl The argument is a file that must exist in the source directoryAC_INIT(./src/containers/RealSet.h)AM_CONFIG_HEADER(config.h)AC_CANONICAL_SYSTEM GOOSE_MAJOR_VERSION=0GOOSE_MINOR_VERSION=0GOOSE_MICRO_VERSION=11GOOSE_VERSION=$GOOSE_MAJOR_VERSION.$GOOSE_MINOR_VERSION.$GOOSE_MICRO_VERSIONAC_DEFINE_UNQUOTED(GOOSE_MAJOR_VERSION, $GOOSE_MAJOR_VERSION)AC_DEFINE_UNQUOTED(GOOSE_MINOR_VERSION, $GOOSE_MINOR_VERSION)AC_DEFINE_UNQUOTED(GOOSE_MICRO_VERSION, $GOOSE_MICRO_VERSION)dnl libtooldnl increment if the interface has additions, changes, removals.GOOSE_CURRENT=11dnl increment any time the source changes; set to dnl 0 if you increment CURRENTGOOSE_REVISION=0dnl increment if any interfaces have been added; set to 0dnl if any interfaces have been removed. removal has dnl precedence over adding, so set to 0 if both happened.GOOSE_AGE=0AM_INIT_AUTOMAKE(goose, $GOOSE_VERSION)AC_SUBST(GOOSE_MAJOR_VERSION)AC_SUBST(GOOSE_MINOR_VERSION)AC_SUBST(GOOSE_MICRO_VERSION)AC_SUBST(GOOSE_VERSION)AC_SUBST(GOOSE_CURRENT)AC_SUBST(GOOSE_REVISION)AC_SUBST(GOOSE_AGE)AM_PATH_GLIB(1.1.13)dnl GuileGoose stuffGUILEGOOSE_CURRENT=0GUILEGOOSE_REVISION=0GUILEGOOSE_AGE=0AC_SUBST(GUILEGOOSE_CURRENT)AC_SUBST(GUILEGOOSE_REVISION)AC_SUBST(GUILEGOOSE_AGE)AM_MAINTAINER_MODEdnl compilersAC_PROG_CCAC_STDC_HEADERSAC_PROG_CPPAC_PROG_CXXAC_PROG_CXXCPPCXXFLAGS="$CXXFLAGS -D_INCLUDE_POSIX_SOURCE"if test "x$GXX" = "xyes"; then CXXFLAGS="$CXXFLAGS -ansi -pedantic -Wall"fidnl Set lang to C++ after checking for C Gtk; checks after this will use CXX dnl instead of CCAC_LANG_CPLUSPLUSAC_CHECK_FUNCS(snprintf)AC_CHECK_FUNCS(erf)AC_CHECK_FUNCS(isnan)AC_CHECK_FUNCS(isinf)dnl Check for pthreadsAC_CHECK_LIB(pthread, pthread_create)dnl library toolsAM_PROG_LIBTOOLdnl ******** START OF GIANT GUILE-CHECKdnl ******** This is copied from gnome-guile-check.m4dnl ******** It will probably get "yes" from Guile 1.2 and then not work...dnl ******** It's also broken with post 1.3 guiles that don't link readline.saved_ldflags="$LDFLAGS"saved_cppflags="$CPPFLAGS"LDFLAGS="$LDFLAGS"AC_CHECK_LIB(qthreads,main,[ QTTHREADS_LIB="-lqthreads"],[ AC_CHECK_LIB(qt, qt_null, QTTHREADS_LIB="-lqt")],$LIBS)AC_SUBST(QTTHREADS_LIB)AC_CHECK_LIB(termcap,main,TERMCAP_LIB="-ltermcap")AC_CHECK_LIB(readline,main,READLINE_LIB="-lreadline",,$TERMCAP_LIB)if test "x$READLINE_LIB" = "x" ; thenAC_CHECK_LIB(curses,main,CURSES_LIB="-lcurses")AC_CHECK_LIB(readline,main,READLINE_LIB="-lreadline",,$CURSES_LIB)if test "x$READLINE_LIB" = "x" ; thenAC_CHECK_LIB(ncurses,main,CURSES_LIB="-lncurses")AC_CHECK_LIB(readline,main,READLINE_LIB="-lreadline",,$CURSES_LIB)fifiAC_SUBST(TERMCAP_LIB)AC_SUBST(READLINE_LIB)AC_SUBST(CURSES_LIB)if test "x$cross_compiling" = "xyes" ; then name_build_guile="$target_alias-guile-config"else name_build_guile="guile-config"fiAC_CHECK_PROG(BUILD_GUILE, $name_build_guile, yes, no)if test "x$BUILD_GUILE" = "xyes"; then AC_MSG_CHECKING(whether $name_build_guile works) if test x`$name_build_guile --version >/dev/null 2>&1 || \ echo no` = xno; then BUILD_GUILE=no fi AC_MSG_RESULT($BUILD_GUILE)else if test "x$cross_compiling" = "xyes" ; then name_build_guile="$target_alias-build-guile" else name_build_guile="build-guile" fi AC_CHECK_PROG(BUILD_GUILE, $name_build_guile, yes, no) if test "x$BUILD_GUILE" = "xyes"; then AC_MSG_CHECKING(whether $name_build_guile works) if test x`$name_build_guile --version >/dev/null 2>&1 || \ echo no` = xno; then BUILD_GUILE=no fi AC_MSG_RESULT($BUILD_GUILE) fifiAC_CHECK_LIB(m, sin)if test "x$BUILD_GUILE" = "xyes"; then AC_MSG_CHECKING(for guile libraries) GUILE_LIBS="`$name_build_guile link`" AC_MSG_RESULT($GUILE_LIBS) AC_MSG_CHECKING(for guile headers) GUILE_INCS="`$name_build_guile compile`" AC_MSG_RESULT($GUILE_INCS)else GUILE_LIBS="$GNOME_LIBDIR" GUILE_INCS="$GNOME_INCLUDEDIR" AC_CHECK_LIB(rx, main, GUILE_LIBS="-lrx $GUILE_LIBS") AC_CHECK_LIB(qt, main, GUILE_LIBS="-lqt $GUILE_LIBS") AC_CHECK_LIB(dl, dlopen, GUILE_LIBS="-ldl $GUILE_LIBS") AC_CHECK_LIB(nsl, t_accept, GUILE_LIBS="$GUILE_LIBS -lnsl") AC_CHECK_LIB(socket, socket, GUILE_LIBS="$GUILE_LIBS -lsocket") GUILE_LIBS="-lguile $GUILE_LIBS $QTTHREADS_LIB $READLINE_LIB $TERMCAP_LIB $CURSES_LIB"fiAC_SUBST(GUILE_LIBS)AC_SUBST(GUILE_INCS)saved_LIBS="$LIBS"LIBS="$LIBS $GUILE_LIBS"CPPFLAGS="$saved_cppflags $GUILE_INCS"AC_MSG_CHECKING(whether guile works)AC_TRY_LINK([ #include <libguile.h> #include <guile/gh.h>],[ gh_eval_str("(newline)"); scm_boot_guile(0,NULL,NULL,NULL);],[ ac_cv_guile_found=yes AC_DEFINE(HAVE_GUILE)],[ ac_cv_guile_found=no])AC_MSG_RESULT($ac_cv_guile_found)if test x$ac_cv_guile_found = xno ; then AC_MSG_WARN(Can not find Guile on this system) ac_cv_guile_found=no GUILE_LIBS= GUILE_INCS=fiLIBS="$saved_LIBS"LDFLAGS="$saved_ldflags"CPPFLAGS="$saved_cppflags"AC_SUBST(GUILE_LIBS)AM_CONDITIONAL(GUILE, test x$ac_cv_guile_found = xyes)dnl ******** END OF GIANT GUILE-CHECKAC_OUTPUT([Makefilegoose-configsrc/Makefilesrc/specfns/Makefilesrc/util/Makefilesrc/linear/Makefilesrc/containers/Makefilesrc/stats/Makefilesrc/guile/Makefileexamples/Makefiletest/Makefiledoc/Makefile],[case "$CONFIG_FILES" in*goose-config*)chmod +x goose-config;;esac])
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -