📄 configure.in
字号:
dnl Process this file with autoconf to produce a configure script.dnl ====================================================================dnldnl configure.indnldnl Host side implementation of the eCos infrastructure.dnldnl ====================================================================dnl####COPYRIGHTBEGIN####dnl dnl ----------------------------------------------------------------------------dnl Copyright (C) 1998, 1999, 2000 Red Hat, Inc.dnldnl This file is part of the eCos host tools.dnldnl This program is free software; you can redistribute it and/or modify it dnl under the terms of the GNU General Public License as published by the Free dnl Software Foundation; either version 2 of the License, or (at your option) dnl any later version.dnl dnl This program is distributed in the hope that it will be useful, but WITHOUT dnl ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or dnl FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for dnl more details.dnl dnl You should have received a copy of the GNU General Public License along withdnl this program; if not, write to the Free Software Foundation, Inc., dnl 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.dnldnl ----------------------------------------------------------------------------dnl dnl####COPYRIGHTEND####dnl ====================================================================dnl#####DESCRIPTIONBEGIN####dnldnl Author(s): bartvdnl Contact(s): bartvdnl Date: 1998/07/13dnl Version: 0.01dnldnl####DESCRIPTIONEND####dnl ====================================================================dnl No infrastructure is complete without assertions.AC_INIT(assert.cxx)dnl Pick up the support files from the top-level of the host source treeAC_CONFIG_AUX_DIR(..)dnl Other standard options.AC_CANONICAL_HOSTdnl This package is called cyginfra. Hopefully this will not clashdnl with any other Red Hat packages. The generated header file maydnl get #include'd indirectly by other packages, so it is not adnl good idea to define package and version.AM_INIT_AUTOMAKE(cyginfra, 0.1,0)CYG_AC_SUBST_VERSION(CYGNUM_INFRA_VERSION)AM_MAINTAINER_MODEdnl The package contains a library implemented in C++. It has to bednl buildable under NT. Only a static version of the library isdnl of interest at the moment.AC_PROG_MAKE_SETAC_PROG_CCAC_PROG_CXXAC_PROG_RANLIBAC_OBJEXTAC_EXEEXTCYG_AC_PROG_MSVCCYG_AC_PROG_STANDARD_COMPILER_FLAGSdnl Work out the endianness. The standard macro for this is useddnl even though it will give warnings at autoconf time.AC_C_BIGENDIANdnl Work out a suitable datatype for 64 bit arithmetic.CYG_AC_TYPE_64bitdnl Check the sizes of the pointer and long data types, so thatdnl CYG_ADDRWORD can be defined correctly.AC_CHECK_SIZEOF(int *)AC_CHECK_SIZEOF(long)dnl See whether or not the compiler provides __PRETTY_FUNCTION__CYG_AC_C_PRETTY_FUNCTIONdnl What version of Tcl should be used?CYG_AC_PATH_TCLdnl --------------------------------------------------------------------dnl User-settable options. Currently these are handled via --enablednl command line options, in the absence of an accepted and more rationaldnl alternative.AC_ARG_ENABLE(tracebufsize,[ --enable-tracebufsize=X size of the trace buffer],[ if test "$enableval" = "no" -o "$enableval" = "yes"; then AC_MSG_ERROR("--enable-tracebufsize should be given a suitable value") else AC_DEFINE_UNQUOTED(CYGNUM_INFRA_TRACE_VECTOR_SIZE,$enableval) fi])dnl --------------------------------------------------------------------dnl Directory structures.dnldnl The purpose of this infrastructure implementation is to provide a waydnl of giving host code access to the same set of assertions and tracingdnl facilities as are available on the target side. The implementationsdnl of these facilities has to be rather different, for example the hostdnl side has to worry about running in both command-line and GUI tools,dnl not to mention supporting different languages such as Tcl as welldnl as C and C++.dnldnl After a successful build there should be a library libcyginfra.adnl which can be linked with the application code and which can getdnl installed. In addition there will be a set of header files.dnldnl The infrastructure exports four main header files:dnldnl cyg/infra/cyg_type.h data types, useful macros, and adnl few compiler-related odds and endsdnldnl cyg/infra/cyg_ass.h lots of lovely assertion macrosdnldnl cyg/infra/cyg_trac.h lots of lovely trace macrosdnldnl cyg/infra/testcase.h routines for use in testcasesdnldnl These header files are shared between host and target side, to makednl sure that a consistent set of macros is used between the two. Therednl are a number of host-specific extensions in the header files asdnl well.dnldnl The header files rely on a number of other header files:dnldnl pkgconf/infra.hdnl cyg/hal/basetype.hdnl dnl Obviously cyg/hal/basetype.h cannot be shared between host and target,dnl instead it has to depend on autoconf information.dnldnl Sharing pkgconf/infra.h between host and target is slightly more feasible,dnl especially if we get the configuration tool to a point where it candnl be used for both host and target. However for now this would create adnl bit of confusion because two configuration systems would be in use, anddnl it seems better to stick with just autoconf for now. Thereforednl pkgconf/infra.h #include's the file generated by autoconf anddnl generates the appropriate #define's (it is not a good idea to havednl autoconf generate pkgconf/infra.h directly, autoconf is slightly toodnl eager to do substitutions).dnldnl The configuration header file that is normally generated isdnl config.h. It is more in keeping with eCos conventions to havednl a different header file hostinfra.h instead. This candnl achieved using the appropriate AM_CONFIG_HEADER macro.dnldnl Making the copies of cyg_type.h etc. is the responsibility ofdnl Makefile.am, configure is responsible only for the makefile and fordnl hostinfra.h.AM_CONFIG_HEADER(hostinfra.h:config.h.in)AC_OUTPUT(Makefile:Makefile.in testsuite/Makefile:testsuite/Makefile.in)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -