myriscv-fesvr/configure.ac

102 lines
4.0 KiB
Plaintext
Raw Normal View History

2011-06-20 11:47:29 +08:00
#=========================================================================
# 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
2014-01-24 17:03:22 +08:00
# developer will only need to make the following changes:
#
# - change the project metadata listed right below
# - update the list of subprojects via the 'MCPPBS_SUBPROJECTS' macro
# - possibly add subproject groups if needed to ease configuration
# - add more configure checks for platform specific configuration
#
2011-06-20 11:47:29 +08:00
#-------------------------------------------------------------------------
# Project metadata
#-------------------------------------------------------------------------
2014-01-24 17:03:22 +08:00
m4_define( proj_name, [RISC-V Frontend Server])
m4_define( proj_maintainer, [Andrew Waterman])
m4_define( proj_abbreviation, [fesvr])
2011-06-20 11:47:29 +08:00
#-------------------------------------------------------------------------
# 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)
2011-06-28 06:56:40 +08:00
AC_CONFIG_SRCDIR([fesvr/htif.h])
2011-06-20 11:47:29 +08:00
AC_CONFIG_AUX_DIR([scripts])
AC_CANONICAL_BUILD
AC_CANONICAL_HOST
#-------------------------------------------------------------------------
2014-01-24 17:03:22 +08:00
# Checks for programs
2011-06-20 11:47:29 +08:00
#-------------------------------------------------------------------------
AC_PROG_CC
AC_PROG_CXX
AC_CHECK_TOOL([AR],[ar])
AC_CHECK_TOOL([RANLIB],[ranlib])
#-------------------------------------------------------------------------
# MCPPBS specific program check
2011-06-20 11:47:29 +08:00
#-------------------------------------------------------------------------
# This macro check to see if we can do a stow-based install.
2011-06-20 11:47:29 +08:00
2014-01-24 17:03:22 +08:00
MCPPBS_PROG_INSTALL
#-------------------------------------------------------------------------
# Checks for header files
#-------------------------------------------------------------------------
2011-06-20 11:47:29 +08:00
2014-01-24 17:03:22 +08:00
AC_HEADER_STDC
2011-06-20 11:47:29 +08:00
2014-01-24 17:03:22 +08:00
#-------------------------------------------------------------------------
# Default compiler flags
#-------------------------------------------------------------------------
2011-06-20 11:47:29 +08:00
2014-01-24 17:03:22 +08:00
AC_SUBST([CFLAGS], ["-Wall -O2"])
AC_SUBST([CXXFLAGS],["-Wall -O2 -std=c++11"])
2011-06-20 11:47:29 +08:00
#-------------------------------------------------------------------------
2014-01-24 17:03:22 +08:00
# MCPPBS subproject list
2011-06-20 11:47:29 +08:00
#-------------------------------------------------------------------------
2014-01-24 17:03:22 +08:00
# Order list so that subprojects only depend on those listed earlier.
# The '*' suffix indicates an optional subproject. The '**' suffix
# indicates an optional subproject which is also the name of a group.
2011-06-20 11:47:29 +08:00
2014-01-24 17:03:22 +08:00
MCPPBS_SUBPROJECTS([fesvr])
2011-06-20 11:47:29 +08:00
#-------------------------------------------------------------------------
2014-01-24 17:03:22 +08:00
# MCPPBS subproject groups
2011-06-20 11:47:29 +08:00
#-------------------------------------------------------------------------
2014-01-24 17:03:22 +08:00
# If a group has the same name as a subproject then you must add the
# '**' suffix in the subproject list above. The list of subprojects in a
# group should be ordered so that subprojets only depend on those listed
# earlier. Here is an example:
2011-06-20 11:47:29 +08:00
#
2014-01-24 17:03:22 +08:00
# MCPPBS_GROUP( [group-name], [sproja,sprojb,...] )
2011-06-20 11:47:29 +08:00
#
#-------------------------------------------------------------------------
# Output
#-------------------------------------------------------------------------
2014-01-24 17:03:22 +08:00
AC_CONFIG_HEADERS([config.h])
2011-06-20 11:47:29 +08:00
AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([riscv-fesvr.pc])
2011-06-20 11:47:29 +08:00
AC_OUTPUT