📄 configure.in
字号:
dnl ***************************************************************************dnldnl The following code is released by Synopsys, Inc., Copyright (c) 1996-2001,dnl Synopsys, Inc., CoWare, Inc., Frontier Design, Inc. and others.dnl All Rights reserved.dnldnl The contents of this file are subject to the restrictions and limitationsdnl set forth in the SystemC Open Source License Version 2.2 (the "License");dnl You may not use this file except in compliance with such restrictions anddnl limitations. You may obtain instructions on how to receive a copy of thednl License at http://www.systemc.org/. Software distributed by Contributorsdnl under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OFdnl ANY KIND, either express or implied. See the License for the specificdnl language governing rights and limitations under the License.dnldnl ***************************************************************************dnldnl configure.in --dnl Process this file with autoconf to produce a configure script.dnldnl Original Author: Martin Janssen, Synopsys, Inc., 2001-05-21dnldnl ***************************************************************************dnldnl MODIFICATION LOG - modifiers, enter your name, affiliation, date anddnl changes you are making here.dnldnl Name, Affiliation, Date:dnl Description of Modification:dnldnl ***************************************************************************dnldnl Initialization.dnlAC_INIT(NEWS)AC_CONFIG_AUX_DIR(config)dnldnl Some simple checks.dnlAC_CANONICAL_SYSTEMAM_INIT_AUTOMAKE(package,version,do-no-define)AC_PROG_CCAC_PROG_CXXAC_PROG_RANLIBAC_PROG_INSTALLdnldnl Set the compiler flags and target architecture.dnlCXX_COMP=`basename $CXX`AR_TOOL="ar cru"case "$target" in sparc-sun-solaris*) case "$CXX_COMP" in CC) EXTRA_CXXFLAGS="" DEBUG_CXXFLAGS="-g " OPT_CXXFLAGS="-O3" TARGET_ARCH=sparcOS5 AR_TOOL="CC -xar -o" CC="cc" CFLAGS="-xO2" ;; c++ | g++) EXTRA_CXXFLAGS="-Wall" DEBUG_CXXFLAGS="-g -O0" OPT_CXXFLAGS="-O3" TARGET_ARCH=gccsparcOS5 CC="gcc -ansi -Wall -pedantic" CFLAGS="-O2" ;; *) AC_MSG_ERROR("sorry...compiler not supported") ;; esac QT_ARCH="sparc-os2" ;; *linux*) case "$CXX_COMP" in c++ | g++) EXTRA_CXXFLAGS="-Wall" DEBUG_CXXFLAGS="-g -O0" OPT_CXXFLAGS="-O3" TARGET_ARCH=linux CC="gcc -ansi -Wall -pedantic" CFLAGS="-O2" ;; *) AC_MSG_ERROR("sorry...compiler not supported") ;; esac QT_ARCH="iX86" ;; *hpux10*) case "$CXX_COMP" in aCC) EXTRA_CXXFLAGS="-Aa +DA2.0 +DS2.0" DEBUG_CXXFLAGS="-g " OPT_CXXFLAGS="+O1" TARGET_ARCH=hpux10 CC="cc -Ae +DA2.0 +DS2.0" CFLAGS="-O" ;; c++ | g++) EXTRA_CXXFLAGS="-Wall" DEBUG_CXXFLAGS="-g -O0" OPT_CXXFLAGS="-O3" TARGET_ARCH=gcchpux10 CC="gcc -ansi -Wall -pedantic" CFLAGS="-O2" ;; *) AC_MSG_ERROR("sorry...compiler not supported") ;; esac QT_ARCH="hppa" ;; *hpux11*) case "$CXX_COMP" in aCC) EXTRA_CXXFLAGS="-Aa +DA2.0 +DS2.0" DEBUG_CXXFLAGS="-g " OPT_CXXFLAGS="+O1" TARGET_ARCH=hpux11 CC="cc -Ae +DA2.0 +DS2.0" CFLAGS="-O" ;; *) AC_MSG_ERROR("sorry...compiler not supported") ;; esac QT_ARCH="hppa" ;; *) AC_MSG_ERROR("sorry...architecture not supported") ;;esacdnldnl The fixed-point datatypes "package" (default included).dnlSYSTEMC_CORE_DIR="systemc_core"AC_ARG_WITH(systemc_core,[ --with-systemc-core="" location of systemc core libraries],[ if test "x$with_systemc_core" != x ; then SYSTEMC_CORE_DIR=$with_systemc_core; EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS -I${SYSTEMC_CORE_DIR}/include/"; fi])CXXFLAGS="$EXTRA_CXXFLAGS $OPT_CXXFLAGS"dnldnl Set the default prefix and make sure the prefix is absolute.dnltest "x$prefix" = xNONE && prefix=$srcdircurrent_dir=`pwd`; cd $prefix; prefix=`pwd`; cd $current_dirdnldnl Substitution variables.dnlAC_SUBST(EXTRA_CXXFLAGS)AC_SUBST(DEBUG_CXXFLAGS)AC_SUBST(OPT_CXXFLAGS)AC_SUBST(TARGET_ARCH)AC_SUBST(FX_DIR)AC_SUBST(QT_ARCH)AC_SUBST(AR_TOOL)dnldnl Create the Makefiles.dnlAC_OUTPUT(Makefile src/Makefile src/sc_ms/Makefile examples/Makefile examples/sc_ms/Makefile)dnl Taf!
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -