aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorCori Barker <coribarker2@gmail.com>2026-04-19 20:43:24 +0100
committerCori Barker <coribarker2@gmail.com>2026-04-19 20:43:24 +0100
commitd311c0726e5864bd01f30f3cbefc9a2bb3ad2159 (patch)
treed803d2d008d52efd962168e5c76e96f2f7e4b36e /configure.ac
parent2aa179fdd5033148c885056ea4953eae6426a5b3 (diff)
Changed build options for debug and release
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 1297f0d..1772671 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,5 +1,6 @@
AC_INIT([blc], [0.1.0])
AM_INIT_AUTOMAKE([foreign subdir-objects -Wall])
+
AC_PROG_CXX
AC_PROG_INSTALL
@@ -10,4 +11,12 @@ AC_CONFIG_FILES([
src/Makefile
])
+# Debug flag
+AC_ARG_ENABLE([debug],
+ AS_HELP_STRING([--enable-debug], [Build with debug flags]),
+ [debug=$enableval],
+ [debug=no])
+
+AM_CONDITIONAL([DEBUG], [test "$debug" = "yes"])
+
AC_OUTPUT