myriscv-fesvr/configure.ac

115 lines
4.6 KiB
Plaintext

#=========================================================================
# Toplevel configure.ac for the Modular C++ Build System
#=========================================================================
# Please read the documenation in 'mcppbs-doc.txt' for more details on
# how the Modular C++ Build System works. For most new projects, a
# developer will only need to change the project metadata listed right
# below, and update which subprojects to include as part of this
# project. Do not place any configure checks here which will be used by
# a subproject - instead place such checks in the subproject's autoconf
# fragment.
#-------------------------------------------------------------------------
# Project metadata
#-------------------------------------------------------------------------
m4_define( proj_name, [Frontend Server])
m4_define( proj_maintainer, [Yunsup Lee])
m4_define( proj_abbreviation, [riscv-fesvr])
#-------------------------------------------------------------------------
# Project version information
#-------------------------------------------------------------------------
# Version information is meant to be managed through a version control
# system's tags and revision numbers. In a working copy the version will
# not be defined here (you should just use the version control system's
# mechanisms). When we make a distribution then we can set the version
# here as formed by the scripts/vcs-version.sh script so that the
# distribution knows what version it came from. If you are not using
# version control then it is fine to set this directly.
m4_define( proj_version, [?])
#-------------------------------------------------------------------------
# Setup
#-------------------------------------------------------------------------
AC_INIT(proj_name,proj_version,proj_maintainer,proj_abbreviation)
AC_CONFIG_SRCDIR([fesvr/htif.h])
AC_CONFIG_AUX_DIR([scripts])
AC_CANONICAL_BUILD
AC_CANONICAL_HOST
#-------------------------------------------------------------------------
# Basic checks
#-------------------------------------------------------------------------
# Check for C compiler and set default C compiler flags
AC_PROG_CC
AC_SUBST([CFLAGS],["-Wall -g -O3"])
# Check for C++ compiler and set default C++ compiler flags
AC_PROG_CXX
AC_SUBST([CXXFLAGS],["-std=c++0x -Wall -g -O3"])
# Check for tools to build libraries
AC_CHECK_TOOL([AR],[ar])
AC_CHECK_TOOL([RANLIB],[ranlib])
#-------------------------------------------------------------------------
# MCPPBS specific setup
#-------------------------------------------------------------------------
# Initialize the modular C++ build system
MCPPBS_INIT
# Checks for install script and the stow program. Setup --enable-stow
# command line flag for stow-based installs.
MCPPBS_PROG_INSTALL
#-------------------------------------------------------------------------
# MCPPBS subproject includes
#-------------------------------------------------------------------------
# Specify which subprojects make up this project. Subprojects can either
# be internal (ie. a subdirectory in the source directory) or external
# (ie. as an installed library). For external subprojects we use
# pkg-config to link against the appropriate library. Optional
# subprojects are denoted with an asterisk and are enabled with a
# --with-<subproject> configure command line option. Order the list so
# that subprojects only depend on those listed earlier. Here is an
# example project which includes four subprojects: the first is the
# standard utst subproject which has been installed and thus is being
# included as an external subproject. The second is an additional
# external subproject and the last is an optional internal subproject.
#
# MCPPBS_INCLUDE_EXTERNAL([utst])
# MCPPBS_INCLUDE_EXTERNAL([sproj-a])
# MCPPBS_INCLUDE_INTERNAL([sproj-b])
# MCPPBS_INCLUDE_INTERNAL([sproj-c*])
#
MCPPBS_INCLUDE_INTERNAL([fesvr])
#-------------------------------------------------------------------------
# MCPPBS subproject libraries to install
#-------------------------------------------------------------------------
# The libraries and headers for these subprojects will be installed. The
# subprojects must have a pkg-config file named sproj/sproj.pc.in which
# is setup to allow other projects to use the installed subproject. Here
# is an example which installs the sproj-b subproject and sproj-c
# subproject (see above).
#
# MCPPBS_INSTALL_LIBS([sproj-b,sproj-c])
#
MCPPBS_INSTALL_LIBS([fesvr])
#-------------------------------------------------------------------------
# Output
#-------------------------------------------------------------------------
AC_CONFIG_FILES([Makefile])
AC_OUTPUT