@@ -7,7 +7,7 @@ dnl This program is distributed under the terms of the GPL v2.0
77dnl Download the GNU Public License (GPL) from www.gnu.org
88dnl
99
10- AC_INIT ( [ smallbasic] , [ 0.11.11 ] )
10+ AC_INIT ( [ smallbasic] , [ 0.11.12 ] )
1111AC_CONFIG_SRCDIR ( [ configure.ac] )
1212
1313AC_CANONICAL_TARGET
@@ -88,12 +88,12 @@ function checkDebugMode() {
8888 AC_MSG_RESULT ( [ $with_debug] )
8989 if test "$with_debug" = "yes" || test "$with_debug" = "full"
9090 then
91- CFLAGS="-g -O0"
92- CXXFLAGS="-g -O0"
91+ CFLAGS="${CFLAGS} -g -O0"
92+ CXXFLAGS="${CXXFLAGS} -g -O0"
9393 AC_DEFINE ( _DEBUG , 1 , [ debugging build enabled] )
9494 else
95- CFLAGS="-O3 -Os"
96- CXXFLAGS="-O3 -Os"
95+ CFLAGS="${CFLAGS} -O3 -Os"
96+ CXXFLAGS="${CXXFLAGS} -O3 -Os"
9797 fi
9898 AC_SUBST ( CFLAGS )
9999}
@@ -522,6 +522,9 @@ function buildAndroid() {
522522
523523 BUILD_SUBDIRS="src/platform/android"
524524 AC_SUBST ( BUILD_SUBDIRS )
525+
526+ TEST_DIR="src/platform/android"
527+ AC_SUBST ( TEST_DIR )
525528}
526529
527530function buildConsole() {
@@ -582,6 +585,8 @@ function buildConsole() {
582585 AC_CHECK_HEADER ( readline/readline.h , [ ] , [ AC_MSG_ERROR ( "install libreadline-dev" ) ] )
583586 PACKAGE_LIBS="${PACKAGE_LIBS} -lm -ldl -lpthread -lncurses -lreadline"
584587 BUILD_SUBDIRS="src/common src/platform/unix"
588+ TEST_DIR="src/platform/unix"
589+ AC_SUBST ( TEST_DIR )
585590 fi
586591
587592 AC_SUBST ( BUILD_SUBDIRS )
0 commit comments