Changes in / [210587b:7fb1db7]
- Files:
-
- 4 edited
-
configure (modified) (6 diffs)
-
configure.ac (modified) (2 diffs)
-
src/libcfa/Makefile.am (modified) (2 diffs)
-
src/libcfa/Makefile.in (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
configure
r210587b r7fb1db7 658 658 CFA_INCDIR 659 659 CFA_PREFIX 660 BUILD_CONCURRENCY_FALSE661 BUILD_CONCURRENCY_TRUE662 660 BUILD_NO_LIB_FALSE 663 661 BUILD_NO_LIB_TRUE … … 744 742 enable_target_release 745 743 enable_target_debug 746 enable_threading747 744 enable_dependency_tracking 748 745 ' … … 1389 1386 --enable-target-release Build and install the release target 1390 1387 --enable-target-debug Build and install the debug target 1391 --enable-threading Build and install libcfa with threading support1392 (Enabled by default)1393 1388 --disable-dependency-tracking speeds up one-time build 1394 1389 --enable-dependency-tracking do not reject slow dependency extractors … … 3128 3123 fi 3129 3124 3130 # Check whether --enable-threading was given.3131 if test "${enable_threading+set}" = set; then :3132 enableval=$enable_threading; case "${enableval}" in3133 yes) build_threading-"yes" ;;3134 no) build_threading="no" ;;3135 *) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;3136 esac3137 else3138 build_threading="yes"3139 fi3140 3141 3125 3142 3126 case "$enable_target_release" in … … 3213 3197 BUILD_NO_LIB_TRUE='#' 3214 3198 BUILD_NO_LIB_FALSE= 3215 fi3216 3217 if test "x$build_threading" = "xyes"; then3218 BUILD_CONCURRENCY_TRUE=3219 BUILD_CONCURRENCY_FALSE='#'3220 else3221 BUILD_CONCURRENCY_TRUE='#'3222 BUILD_CONCURRENCY_FALSE=3223 3199 fi 3224 3200 … … 6342 6318 if test -z "${BUILD_NO_LIB_TRUE}" && test -z "${BUILD_NO_LIB_FALSE}"; then 6343 6319 as_fn_error $? "conditional \"BUILD_NO_LIB\" was never defined. 6344 Usually this means the macro was only invoked conditionally." "$LINENO" 56345 fi6346 if test -z "${BUILD_CONCURRENCY_TRUE}" && test -z "${BUILD_CONCURRENCY_FALSE}"; then6347 as_fn_error $? "conditional \"BUILD_CONCURRENCY\" was never defined.6348 6320 Usually this means the macro was only invoked conditionally." "$LINENO" 5 6349 6321 fi -
configure.ac
r210587b r7fb1db7 57 57 AC_ARG_ENABLE(target-release, AS_HELP_STRING([--enable-target-release], [Build and install the release target])) 58 58 AC_ARG_ENABLE(target-debug, AS_HELP_STRING([--enable-target-debug], [Build and install the debug target])) 59 AC_ARG_ENABLE(threading, AS_HELP_STRING([--enable-threading], [Build and install libcfa with threading support (Enabled by default)]),60 [case "${enableval}" in61 yes) build_threading-"yes" ;;62 no) build_threading="no" ;;63 *) AC_MSG_ERROR([bad value ${enableval} for --enable-debug]) ;;64 esac],[build_threading="yes"])65 59 66 60 case "$enable_target_release" in … … 118 112 AM_CONDITIONAL([BUILD_DEBUG], [test "x$build_debug" = "xyes"]) 119 113 AM_CONDITIONAL([BUILD_NO_LIB], [test "x$build_release$build_debug" = "xnono"]) 120 AM_CONDITIONAL([BUILD_CONCURRENCY], [test "x$build_threading" = "xyes"])121 114 122 115 if test "x$prefix" = "xNONE"; then -
src/libcfa/Makefile.am
r210587b r7fb1db7 40 40 CC = ${abs_top_srcdir}/src/driver/cfa 41 41 42 headers = limits stdlib math iostream fstream iterator rational assert 43 44 # not all platforms support concurrency, add option do disable it 45 if BUILD_CONCURRENCY 46 headers += containers/vector concurrency/coroutines concurrency/threads concurrency/kernel 47 endif 48 42 headers = limits stdlib math iostream fstream iterator rational assert containers/vector concurrency/coroutines concurrency/threads concurrency/kernel 43 runtimehdrs = concurrency 49 44 libobjs = ${headers:=.o} 50 libsrc = libcfa-prelude.c ${headers:=.c}51 52 # not all platforms support concurrency, add option do disable it53 if BUILD_CONCURRENCY54 libsrc += concurrency/CtxSwitch-@MACHINE_TYPE@.S concurrency/invoke.c55 endif56 45 57 46 # extensionless header files are overridden by -o flag in default makerule => explicitly override default rule to silently do nothing … … 67 56 ${libobjs} : ${abs_top_srcdir}/src/driver/cfa-cpp ${cfalib_DATA} # add dependency to cfa-cpp so all libraries are rebuilt with new translator 68 57 58 libsrc = libcfa-prelude.c ${headers:=.c} concurrency/CtxSwitch-@MACHINE_TYPE@.S concurrency/invoke.c 69 59 70 60 libcfa_a_SOURCES = ${libsrc} -
src/libcfa/Makefile.in
r210587b r7fb1db7 41 41 @BUILD_RELEASE_TRUE@am__append_1 = libcfa.a 42 42 @BUILD_DEBUG_TRUE@am__append_2 = libcfa-d.a 43 44 # not all platforms support concurrency, add option do disable it45 @BUILD_CONCURRENCY_TRUE@am__append_3 = containers/vector concurrency/coroutines concurrency/threads concurrency/kernel46 47 # not all platforms support concurrency, add option do disable it48 @BUILD_CONCURRENCY_TRUE@am__append_4 = concurrency/CtxSwitch-@MACHINE_TYPE@.S concurrency/invoke.c49 43 subdir = src/libcfa 50 DIST_COMMON = $( am__nobase_cfa_include_HEADERS_DIST)\51 $(srcdir)/Makefile. am $(srcdir)/Makefile.in44 DIST_COMMON = $(nobase_cfa_include_HEADERS) $(srcdir)/Makefile.am \ 45 $(srcdir)/Makefile.in 52 46 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 53 47 am__aclocal_m4_deps = $(top_srcdir)/configure.ac … … 97 91 libcfa_d_a_AR = $(AR) $(ARFLAGS) 98 92 libcfa_d_a_LIBADD = 99 am__libcfa_d_a_SOURCES_DIST = libcfa-prelude.c limits.c stdlib.c \100 math.c iostream.c fstream.c iterator.c rational.c assert.c \101 containers/vector.c concurrency/coroutines.c \102 concurrency/threads.c concurrency/kernel.c \103 concurrency/CtxSwitch-@MACHINE_TYPE@.S concurrency/invoke.c104 93 am__dirstamp = $(am__leading_dot)dirstamp 105 @BUILD_CONCURRENCY_TRUE@am__objects_1 = containers/libcfa_d_a-vector.$(OBJEXT) \ 106 @BUILD_CONCURRENCY_TRUE@ concurrency/libcfa_d_a-coroutines.$(OBJEXT) \ 107 @BUILD_CONCURRENCY_TRUE@ concurrency/libcfa_d_a-threads.$(OBJEXT) \ 108 @BUILD_CONCURRENCY_TRUE@ concurrency/libcfa_d_a-kernel.$(OBJEXT) 109 am__objects_2 = libcfa_d_a-limits.$(OBJEXT) \ 94 am__objects_1 = libcfa_d_a-limits.$(OBJEXT) \ 110 95 libcfa_d_a-stdlib.$(OBJEXT) libcfa_d_a-math.$(OBJEXT) \ 111 96 libcfa_d_a-iostream.$(OBJEXT) libcfa_d_a-fstream.$(OBJEXT) \ 112 97 libcfa_d_a-iterator.$(OBJEXT) libcfa_d_a-rational.$(OBJEXT) \ 113 libcfa_d_a-assert.$(OBJEXT) $(am__objects_1) 114 @BUILD_CONCURRENCY_TRUE@am__objects_3 = concurrency/CtxSwitch-@MACHINE_TYPE@.$(OBJEXT) \ 115 @BUILD_CONCURRENCY_TRUE@ concurrency/libcfa_d_a-invoke.$(OBJEXT) 116 am__objects_4 = libcfa_d_a-libcfa-prelude.$(OBJEXT) $(am__objects_2) \ 117 $(am__objects_3) 118 am_libcfa_d_a_OBJECTS = $(am__objects_4) 98 libcfa_d_a-assert.$(OBJEXT) \ 99 containers/libcfa_d_a-vector.$(OBJEXT) \ 100 concurrency/libcfa_d_a-coroutines.$(OBJEXT) \ 101 concurrency/libcfa_d_a-threads.$(OBJEXT) \ 102 concurrency/libcfa_d_a-kernel.$(OBJEXT) 103 am__objects_2 = libcfa_d_a-libcfa-prelude.$(OBJEXT) $(am__objects_1) \ 104 concurrency/CtxSwitch-@MACHINE_TYPE@.$(OBJEXT) \ 105 concurrency/libcfa_d_a-invoke.$(OBJEXT) 106 am_libcfa_d_a_OBJECTS = $(am__objects_2) 119 107 libcfa_d_a_OBJECTS = $(am_libcfa_d_a_OBJECTS) 120 108 libcfa_a_AR = $(AR) $(ARFLAGS) 121 109 libcfa_a_LIBADD = 122 am__libcfa_a_SOURCES_DIST = libcfa-prelude.c limits.c stdlib.c math.c \ 123 iostream.c fstream.c iterator.c rational.c assert.c \ 124 containers/vector.c concurrency/coroutines.c \ 125 concurrency/threads.c concurrency/kernel.c \ 126 concurrency/CtxSwitch-@MACHINE_TYPE@.S concurrency/invoke.c 127 @BUILD_CONCURRENCY_TRUE@am__objects_5 = \ 128 @BUILD_CONCURRENCY_TRUE@ containers/libcfa_a-vector.$(OBJEXT) \ 129 @BUILD_CONCURRENCY_TRUE@ concurrency/libcfa_a-coroutines.$(OBJEXT) \ 130 @BUILD_CONCURRENCY_TRUE@ concurrency/libcfa_a-threads.$(OBJEXT) \ 131 @BUILD_CONCURRENCY_TRUE@ concurrency/libcfa_a-kernel.$(OBJEXT) 132 am__objects_6 = libcfa_a-limits.$(OBJEXT) libcfa_a-stdlib.$(OBJEXT) \ 110 am__objects_3 = libcfa_a-limits.$(OBJEXT) libcfa_a-stdlib.$(OBJEXT) \ 133 111 libcfa_a-math.$(OBJEXT) libcfa_a-iostream.$(OBJEXT) \ 134 112 libcfa_a-fstream.$(OBJEXT) libcfa_a-iterator.$(OBJEXT) \ 135 113 libcfa_a-rational.$(OBJEXT) libcfa_a-assert.$(OBJEXT) \ 136 $(am__objects_5) 137 @BUILD_CONCURRENCY_TRUE@am__objects_7 = concurrency/CtxSwitch-@MACHINE_TYPE@.$(OBJEXT) \ 138 @BUILD_CONCURRENCY_TRUE@ concurrency/libcfa_a-invoke.$(OBJEXT) 139 am__objects_8 = libcfa_a-libcfa-prelude.$(OBJEXT) $(am__objects_6) \ 140 $(am__objects_7) 141 am_libcfa_a_OBJECTS = $(am__objects_8) 114 containers/libcfa_a-vector.$(OBJEXT) \ 115 concurrency/libcfa_a-coroutines.$(OBJEXT) \ 116 concurrency/libcfa_a-threads.$(OBJEXT) \ 117 concurrency/libcfa_a-kernel.$(OBJEXT) 118 am__objects_4 = libcfa_a-libcfa-prelude.$(OBJEXT) $(am__objects_3) \ 119 concurrency/CtxSwitch-@MACHINE_TYPE@.$(OBJEXT) \ 120 concurrency/libcfa_a-invoke.$(OBJEXT) 121 am_libcfa_a_OBJECTS = $(am__objects_4) 142 122 libcfa_a_OBJECTS = $(am_libcfa_a_OBJECTS) 143 123 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) … … 167 147 am__v_GEN_0 = @echo " GEN " $@; 168 148 SOURCES = $(libcfa_d_a_SOURCES) $(libcfa_a_SOURCES) 169 DIST_SOURCES = $(am__libcfa_d_a_SOURCES_DIST) \ 170 $(am__libcfa_a_SOURCES_DIST) 171 am__nobase_cfa_include_HEADERS_DIST = limits stdlib math iostream \ 172 fstream iterator rational assert containers/vector \ 173 concurrency/coroutines concurrency/threads concurrency/kernel \ 174 ${shell echo stdhdr/*} concurrency/invoke.h 149 DIST_SOURCES = $(libcfa_d_a_SOURCES) $(libcfa_a_SOURCES) 175 150 HEADERS = $(nobase_cfa_include_HEADERS) 176 151 ETAGS = etags … … 301 276 EXTRA_FLAGS = -g -Wall -Wno-unused-function -I${abs_top_srcdir}/src/libcfa/libhdr -imacros libcfa-prelude.c @CFA_FLAGS@ 302 277 AM_CCASFLAGS = @CFA_FLAGS@ 303 headers = limits stdlib math iostream fstream iterator rational assert \304 $(am__append_3) 278 headers = limits stdlib math iostream fstream iterator rational assert containers/vector concurrency/coroutines concurrency/threads concurrency/kernel 279 runtimehdrs = concurrency 305 280 libobjs = ${headers:=.o} 306 libsrc = libcfa-prelude.c ${headers:=.c} $(am__append_4)281 libsrc = libcfa-prelude.c ${headers:=.c} concurrency/CtxSwitch-@MACHINE_TYPE@.S concurrency/invoke.c 307 282 libcfa_a_SOURCES = ${libsrc} 308 283 libcfa_a_CFLAGS = -nodebug -O2
Note:
See TracChangeset
for help on using the changeset viewer.