?? configure.ac
字號(hào):
## This file is a part of the Bayes Blocks library## Copyright (C) 2001-2006 Markus Harva, Antti Honkela, Alexander# Ilin, Tapani Raiko, Harri Valpola and Tomas 謘tman.## This program is free software; you can redistribute it and/or modify# it under the terms of the GNU General Public License as published by# the Free Software Foundation; either version 2, or (at your option)# any later version.## This program is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the# GNU General Public License (included in file License.txt in the# program package) for more details.## $Id: configure.ac 5 2006-10-26 09:44:54Z ah $#AC_REVISION($Revision: 1.3 $)AC_INIT(Bayes Blocks, 1.1, bayeslib@cis.hut.fi)AC_CONFIG_HEADER(src/config.h)AC_PROG_CXX(CC cxx g++)AC_LANG_CPLUSPLUSAC_SUBST(CXX)ac_uname=`uname`SHARED="-shared"STRIPPED="-Wl,-s"INCLUDES="-Isrc -I$srcdir"case $ac_uname inIRIX*) CXXFLAGS="-g -O -LANG:std -woff 1682 -no_auto_include -LANG:libc_in_namespace_std=off" SHARELDFLAGS= LDFLAGS="$LDFLAGS -LANG:std" ;;OSF1*) CXXFLAGS="-g3 -O -D__USE_STD_IOSTREAM -ieee" SHARELDFLAGS="-Wl,-expect_unresolved,'*',-hidden" ;;SunOS*) CXXFLAGS="-g0 -O2 -xlibmieee" SHARED="-G" STRIPPED="-s" ;;Linux*) CXXFLAGS="-g -O2 -fPIC" SHARELDFLAGS= ;;*) SHARELDFLAGS= ;;esacAC_SUBST(SHARED)AC_SUBST(STRIPPED)AC_MSG_CHECKING([for broken C++ string library])AC_TRY_COMPILE([ #include <string>],[ std::string s("foobar"); (void)s.compare(0, 3, std::string("foo"));],[ AC_MSG_RESULT(no)],[ AC_MSG_RESULT(yes) AC_DEFINE(BROKEN_STRING)])AC_MSG_CHECKING(whether to compile with Matlab)AC_ARG_WITH(matlab,[AC_HELP_STRING([--with-matlab], [Use Matlab (default).])AC_HELP_STRING([--without-matlab], [Don't use Matlab.])],[ case "$withval" in "no") AC_MSG_RESULT(no) with_matlab=no ;; *) AC_MSG_RESULT(yes) MATLAB="$withval" with_matlab=yes ;; esac ],[ AC_MSG_RESULT(yes (default)) with_matlab=yes ])if test "$with_matlab" != "no" -a \( -z "$MATLAB" -o "$MATLAB" = "yes" \) ; then AC_PATH_PROG(MATLAB, matlab)fiif test "$MATLAB" -a ! -x "$MATLAB" ; then AC_PATH_PROG(MATLAB, "$MATLAB")fiif test -x "$MATLAB" ; then AC_DEFINE(WITH_MATLAB)else if test "$with_matlab" = "yes" ; then AC_MSG_WARN(Matlab binary not found, compiling without Matlab support) with_matlab=no fifidnl echo "MATLAB = \"$MATLAB\""if test "$with_matlab" != "no" ; then AC_MSG_NOTICE(Testing Matlab parameters) AC_MSG_CHECKING(for Matlab root directory) MATROOT=`${MATLAB} -n | grep ' r MATLAB ' | cut -b 31-` AC_MSG_RESULT($MATROOT) AC_MSG_CHECKING(for Matlab architecture) MATARCH=`${MATLAB} -n | grep ' r ARCH ' | cut -b 31-` AC_MSG_RESULT($MATARCH) if test -z "$MATROOT" -o -z "$MATARCH" ; then AC_MSG_ERROR([Cannot determine Matlab root directory and architecture, please check Matlab binary location]) fi INCLUDES="$INCLUDES -I$MATROOT/extern/include" LIBS="$LIBS -lmat -lmx" case "$ac_uname" in IRIX*) LDFLAGS="$LDFLAGS -L$MATROOT/bin/$MATARCH -rpath $MATROOT/bin/$MATARCH" ;; OSF1*) LDFLAGS="$LDFLAGS -L$MATROOT/bin/$MATARCH -rpath $MATROOT/bin/$MATARCH" ;; Linux) LDFLAGS="$LDFLAGS -L$MATROOT/bin/$MATARCH -Wl,-rpath,$MATROOT/bin/$MATARCH:$MATROOT/sys/os/$MATARCH -Wl,--disable-new-dtags" ;; SunOS) LDFLAGS="$LDFLAGS -L$MATROOT/bin/$MATARCH -R$MATROOT/bin/$MATARCH" ;; *) LDFLAGS="$LDFLAGS -L$MATROOT/bin/$MATARCH -Wl,-rpath,$MATROOT/bin/$MATARCH" ;; esacelse MATROOT= MATARCH=fiAC_SUBST(MATROOT)AC_SUBST(MATARCH)LIBS="$LIBS -lm"if test $ac_uname = "SunOS" ; then LIBS="$LIBS -lCstd -lCrun"fiAC_SUBST(SHARELDFLAGS)AC_SUBST(LIBS)AC_SUBST(LDFLAGS)AC_SUBST(INCLUDES)AC_CONFIG_FILES([Makefile])AC_OUTPUT
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -