📄 configure.svn-base
字号:
#! /bin/sh## configure## $Id: //poco/1.3/dist/configure#3 $## Configuration script for POCO.## Usage:# configure [<options>...]## Options:# --config=<config_name> # Use the given build configuration# See $POCO_BASE/build/config for possible configs## --prefix=<install_prefix># Use the given install directory for make install.# Default is /usr/local## --no-tests# Do not build testsuites.## --no-samples# Do not build samples.## --no-wstring# Compile with -DPOCO_NO_WSTRING.## --no-fpenvironment# Compile with -DPOCO_NO_FPENVIRONMENT## save cwdbuild=`pwd`# get directory where we are locatedcd `dirname $0`base=`pwd`cd $buildtests="tests"samples="samples"flags=""# parse argumentswhile [ "$1" != "" ] ; do val=`expr -- $1 : '--config=\(.*\)'` if [ "$val" != "" ] ; then config=$val; fi val=`expr -- $1 : '--prefix=\(.*\)'` if [ "$val" != "" ] ; then prefix=$val fi if [ "$1" = "--no-samples" ] ; then samples="" fi if [ "$1" = "--no-tests" ] ; then tests="" fi if [ "$1" = "--no-wstring" ] ; then flags="$flags -DPOCO_NO_WSTRING" fi if [ "$1" = "--no-fpenvironment" ] ; then flags="$flags -DPOCO_NO_FPENVIRONMENT" fi shiftdoneif [ "$config" = "" ] ; then config=`uname` cyg=`expr -- $config : '\(CYGWIN\).*'` if [ "$cyg" = "CYGWIN" ] ; then config=CYGWIN fifiif [ ! -f "$base/build/config/$config" ] ; then echo "Unknown configuration: $config" echo "Please use the --config option to specify another build configuration" exit 1fiif [ "$prefix" = "" ] ; then prefix=/usr/localfi# copy Makefile to build dirif [ "$base" != "$build" ] ; then cp $base/Makefile $buildfi# create config.makeecho '# config.make generated by configure script' >$build/config.makeecho "POCO_CONFIG = $config" >>$build/config.makeecho "POCO_BASE = $base" >>$build/config.makeecho "POCO_BUILD = $build" >>$build/config.makeecho "POCO_PREFIX = $prefix" >>$build/config.makeecho "POCO_FLAGS = $flags" >>$build/config.makeecho "export POCO_CONFIG" >>$build/config.makeecho "export POCO_BASE" >>$build/config.makeecho "export POCO_BUILD" >>$build/config.makeecho "export POCO_PREFIX" >>$build/config.makeecho "export POCO_FLAGS" >>$build/config.makeecho ".PHONY: poco" >>$build/config.makeecho "poco: libexecs $tests $samples" >>$build/config.makeecho "Configured for $config"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -