source: libcfa/configure.ac @ 37fe352

aaron-thesisarm-ehcleanup-dtorsdeferred_resndemanglerjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprno_listpersistent-indexer
Last change on this file since 37fe352 was 37fe352, checked in by Thierry Delisle <tdelisle@…>, 3 years ago

Added proper multi-lib handling, tests still do not work and arm support is broken

  • Property mode set to 100644
File size: 1.4 KB
Line 
1#                                               -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ([2.68])
5AC_INIT([cfa-cc],[1.0.0.0],[cforall@plg.uwaterloo.ca])
6AC_CONFIG_AUX_DIR([./automake])
7
8m4_include([../automake/cfa.m4])
9
10AM_INIT_AUTOMAKE([subdir-objects])
11
12# Allow program name tansformation
13# will fill program_transform_name with appropriate sed regex
14AC_ARG_PROGRAM
15
16AC_ARG_VAR(ARCHITECTURE,  [The architecture  to use when building libcfa])
17AC_ARG_VAR(CONFIGURATION, [The configuration to use when building libcfa, options are: deubg, nodebug, nolib (prelude-only)])
18AC_ARG_VAR(DRIVER_DIR, [The path to the cforall driver directory])
19
20CFACC=${DRIVER_DIR}cfa
21CFACPP=${DRIVER_DIR}cfa-cpp
22AC_SUBST(CFACC)
23AC_SUBST(CFACPP)
24
25case $ARCHITECTURE in
26        "x64"        ) ARCH_FLAGS="-m64";;
27        "x86"        ) ARCH_FLAGS="-m32";;
28        "arm"        ) ARCH_FLAGS="";;
29esac
30
31AC_SUBST(ARCH_FLAGS)
32
33#==============================================================================
34#Trasforming cc1 will break compilation
35M4CFA_PROGRAM_NAME
36
37#==============================================================================
38# Installation paths
39M4CFA_PARSE_PREFIX
40
41# Checks for programs.
42AC_PROG_CXX
43AC_PROG_CC
44AM_PROG_AS
45AC_PROG_INSTALL
46AC_PROG_MAKE_SET
47AC_PROG_RANLIB
48
49AC_CONFIG_FILES([
50        Makefile
51        src/Makefile
52        prelude/Makefile
53        ])
54
55AC_OUTPUT()
56
57# Final text
58AC_MSG_RESULT(Cforall library configuraton completed. Type "make -j 8 install".)
Note: See TracBrowser for help on using the repository browser.