source: libcfa/configure.ac @ c6bbcdb

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resnenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprno_listpersistent-indexerpthread-emulationqualifiedEnum
Last change on this file since c6bbcdb was c6bbcdb, checked in by Thierry Delisle <tdelisle@…>, 7 years ago

Fixed shared library version number

  • Property mode set to 100644
File size: 2.2 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])
7AC_CONFIG_MACRO_DIRS([automake])
8AM_SILENT_RULES([yes])
9
10m4_include([../automake/cfa.m4])
11
12AM_INIT_AUTOMAKE([subdir-objects])
13
14# don't use the default CFLAGS as they unconditonnaly add -O2
15: ${CFLAGS=""}
16
17# Allow program name tansformation
18# will fill program_transform_name with appropriate sed regex
19AC_ARG_PROGRAM
20
21AC_ARG_VAR(ARCHITECTURE,  [The architecture  to use when building libcfa])
22AC_ARG_VAR(CONFIGURATION, [The configuration to use when building libcfa, options are: deubg, nodebug, nolib (prelude-only)])
23AC_ARG_VAR(DRIVER_DIR, [The path to the cforall driver directory])
24AC_ARG_VAR(CFA_VERSION, [The long version of cfa])
25
26CFACC=${DRIVER_DIR}cfa
27CFACPP=${DRIVER_DIR}cfa-cpp
28AC_SUBST(CFACC)
29AC_SUBST(CFACPP)
30AC_SUBST(CFA_VERSION)
31
32#==============================================================================
33#Handle specific flags
34case $ARCHITECTURE in
35        "x64"        ) ARCH_FLAGS="-m64";;
36        "x86"        ) ARCH_FLAGS="-m32";;
37        "arm"        ) ARCH_FLAGS="";;
38esac
39
40AC_SUBST(ARCH_FLAGS)
41
42case $CONFIGURATION in
43        "debug"   )
44                CONFIG_CFLAGS="-O0 -g"
45                CONFIG_CFAFLAGS="-debug"
46                CONFIG_BUILDLIB="yes"
47        ;;
48        "nodebug" )
49                CONFIG_CFLAGS="-O2 -s"
50                CONFIG_CFAFLAGS="-nodebug"
51                CONFIG_BUILDLIB="yes"
52        ;;
53        "nolib"   )
54                CONFIG_CFLAGS="-O2 -s"
55                CONFIG_CFAFLAGS="-nodebug"
56                CONFIG_BUILDLIB="no"
57        ;;
58esac
59
60AC_SUBST(CONFIG_CFLAGS)
61AC_SUBST(CONFIG_CFAFLAGS)
62AC_SUBST(CONFIG_BUILDLIB)
63
64AM_CONDITIONAL([BUILDLIB], [test "x${CONFIG_BUILDLIB}" = "xyes"])
65
66#==============================================================================
67#Trasforming cc1 will break compilation
68M4CFA_PROGRAM_NAME
69
70#==============================================================================
71# Installation paths
72M4CFA_PARSE_PREFIX
73
74# Checks for programs.
75LT_INIT
76
77AC_PROG_CXX
78AC_PROG_CC
79AM_PROG_AS
80AC_PROG_INSTALL
81AC_PROG_MAKE_SET
82
83AC_CONFIG_FILES([
84        Makefile
85        src/Makefile
86        prelude/Makefile
87        ])
88
89AC_OUTPUT()
90
91# Final text
92AC_MSG_RESULT(Cforall library configuraton completed. Type "make -j 8 install".)
Note: See TracBrowser for help on using the repository browser.