svn path=/trunk/yasm/; revision=200
# $IdPath$
+if CHECK
noinst_LIBRARIES=libcheck.a
+TESTS =
+else
+noinst_LIBRARIES=
+TESTS = nocheck_error
+endif
libcheck_a_SOURCES = \
check.c \
list.c \
list.h
+nocheck_error:
+ @echo "Run configure with --enable-check before running make check"
+ @exit 1
+
if DEV
CFLAGS = -ansi -pedantic -Wall -g
endif
esac],[dev=false])
AM_CONDITIONAL(DEV, test x$dev = xtrue)
+AC_ARG_ENABLE(check,
+[ --disable-check Disable building of test suite and make check],
+[case "${enableval}" in
+ yes) check=true ;;
+ no) check=false ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-check) ;;
+esac],[check=true])
+AM_CONDITIONAL(CHECK, test x$check = xtrue)
+
AM_PROG_CC_STDC
ALL_LINGUAS=""
esac],[dev=false])
AM_CONDITIONAL(DEV, test x$dev = xtrue)
+AC_ARG_ENABLE(check,
+[ --disable-check Disable building of test suite and make check],
+[case "${enableval}" in
+ yes) check=true ;;
+ no) check=false ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --enable-check) ;;
+esac],[check=true])
+AM_CONDITIONAL(CHECK, test x$check = xtrue)
+
AM_PROG_CC_STDC
ALL_LINGUAS=""
# $IdPath$
+if CHECK
TESTS = \
bytecode_test
noinst_PROGRAMS = \
bytecode_test
+else
+TESTS =
+noinst_PROGRAMS =
+endif
bytecode_test_SOURCES = \
bytecode_test.c
# $IdPath$
+if CHECK
TESTS = \
bytecode_test
noinst_PROGRAMS = \
bytecode_test
+else
+TESTS =
+noinst_PROGRAMS =
+endif
bytecode_test_SOURCES = \
bytecode_test.c
# $IdPath$
+if CHECK
#TESTS = \
#noinst_PROGRAMS = \
+else
+#TESTS =
+#noinst_PROGRAMS =
+endif
INCLUDES= -I$(top_srcdir) -I$(top_srcdir)/src -I$(top_srcdir)/check
LDADD = \