ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resnenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprno_listpersistent-indexerpthread-emulationqualifiedEnum
Last change
on this file since 2fd9f24 was
e523b07,
checked in by Thierry Delisle <tdelisle@…>, 6 years ago
|
Implemented the nolib configuration
|
-
Property mode set to
100644
|
File size:
2.1 KB
|
Rev | Line | |
---|
[c59712e] | 1 | # -*- Autoconf -*- |
---|
| 2 | # Process this file with autoconf to produce a configure script. |
---|
| 3 | |
---|
| 4 | AC_PREREQ([2.68]) |
---|
| 5 | AC_INIT([cfa-cc],[1.0.0.0],[cforall@plg.uwaterloo.ca]) |
---|
| 6 | AC_CONFIG_AUX_DIR([./automake]) |
---|
[575a6e5] | 7 | AM_SILENT_RULES([yes]) |
---|
[c59712e] | 8 | |
---|
[37fe352] | 9 | m4_include([../automake/cfa.m4]) |
---|
| 10 | |
---|
[c59712e] | 11 | AM_INIT_AUTOMAKE([subdir-objects]) |
---|
| 12 | |
---|
[575a6e5] | 13 | # don't use the default CFLAGS as they unconditonnaly add -O2 |
---|
| 14 | : ${CFLAGS=""} |
---|
| 15 | |
---|
[c59712e] | 16 | # Allow program name tansformation |
---|
| 17 | # will fill program_transform_name with appropriate sed regex |
---|
| 18 | AC_ARG_PROGRAM |
---|
| 19 | |
---|
[37fe352] | 20 | AC_ARG_VAR(ARCHITECTURE, [The architecture to use when building libcfa]) |
---|
[c59712e] | 21 | AC_ARG_VAR(CONFIGURATION, [The configuration to use when building libcfa, options are: deubg, nodebug, nolib (prelude-only)]) |
---|
[ff1e0f38] | 22 | AC_ARG_VAR(DRIVER_DIR, [The path to the cforall driver directory]) |
---|
| 23 | |
---|
| 24 | CFACC=${DRIVER_DIR}cfa |
---|
| 25 | CFACPP=${DRIVER_DIR}cfa-cpp |
---|
| 26 | AC_SUBST(CFACC) |
---|
| 27 | AC_SUBST(CFACPP) |
---|
| 28 | |
---|
[575a6e5] | 29 | #============================================================================== |
---|
| 30 | #Handle specific flags |
---|
[37fe352] | 31 | case $ARCHITECTURE in |
---|
| 32 | "x64" ) ARCH_FLAGS="-m64";; |
---|
| 33 | "x86" ) ARCH_FLAGS="-m32";; |
---|
| 34 | "arm" ) ARCH_FLAGS="";; |
---|
| 35 | esac |
---|
[ff1e0f38] | 36 | |
---|
[37fe352] | 37 | AC_SUBST(ARCH_FLAGS) |
---|
[ff1e0f38] | 38 | |
---|
[575a6e5] | 39 | case $CONFIGURATION in |
---|
| 40 | "debug" ) |
---|
| 41 | CONFIG_CFLAGS="-O0 -g" |
---|
| 42 | CONFIG_CFAFLAGS="-debug" |
---|
[e523b07] | 43 | CONFIG_BUILDLIB="yes" |
---|
[575a6e5] | 44 | ;; |
---|
| 45 | "nodebug" ) |
---|
| 46 | CONFIG_CFLAGS="-O2 -s" |
---|
| 47 | CONFIG_CFAFLAGS="-nodebug" |
---|
[e523b07] | 48 | CONFIG_BUILDLIB="yes" |
---|
[575a6e5] | 49 | ;; |
---|
| 50 | "nolib" ) |
---|
[e523b07] | 51 | CONFIG_CFLAGS="-O2 -s" |
---|
| 52 | CONFIG_CFAFLAGS="-nodebug" |
---|
| 53 | CONFIG_BUILDLIB="no" |
---|
[575a6e5] | 54 | ;; |
---|
| 55 | esac |
---|
| 56 | |
---|
| 57 | AC_SUBST(CONFIG_CFLAGS) |
---|
| 58 | AC_SUBST(CONFIG_CFAFLAGS) |
---|
[e523b07] | 59 | AC_SUBST(CONFIG_BUILDLIB) |
---|
| 60 | |
---|
| 61 | AM_CONDITIONAL([BUILDLIB], [test "x${CONFIG_BUILDLIB}" = "xyes"]) |
---|
[575a6e5] | 62 | |
---|
[37fe352] | 63 | #============================================================================== |
---|
| 64 | #Trasforming cc1 will break compilation |
---|
| 65 | M4CFA_PROGRAM_NAME |
---|
[ff1e0f38] | 66 | |
---|
[37fe352] | 67 | #============================================================================== |
---|
| 68 | # Installation paths |
---|
| 69 | M4CFA_PARSE_PREFIX |
---|
[c59712e] | 70 | |
---|
| 71 | # Checks for programs. |
---|
| 72 | AC_PROG_CXX |
---|
| 73 | AC_PROG_CC |
---|
| 74 | AM_PROG_AS |
---|
| 75 | AC_PROG_INSTALL |
---|
| 76 | AC_PROG_MAKE_SET |
---|
| 77 | AC_PROG_RANLIB |
---|
| 78 | |
---|
| 79 | AC_CONFIG_FILES([ |
---|
| 80 | Makefile |
---|
| 81 | src/Makefile |
---|
| 82 | prelude/Makefile |
---|
| 83 | ]) |
---|
| 84 | |
---|
| 85 | AC_OUTPUT() |
---|
| 86 | |
---|
| 87 | # Final text |
---|
| 88 | AC_MSG_RESULT(Cforall library configuraton completed. Type "make -j 8 install".) |
---|
Note: See
TracBrowser
for help on using the repository browser.