Added configure option --enable-debug.
[gedcom-parse.git] / configure.in
index b13d759b2e1e94f80358b479b1d214078e297e48..7e267e57f8a4bbeb32b3e59b77d4d952c9458567 100644 (file)
@@ -35,6 +35,16 @@ case "$host_os" in
  darwin*) AC_MSG_WARN([Disabling smart preprocessing])
           EXTRA_CFLAGS="-no-cpp-precomp";;
 esac
+
+AC_ARG_ENABLE(debug,
+[  --enable-debug          Compilation flags to allow debugging [default=yes]],
+  if test $enableval == "yes"
+  then
+    EXTRA_CFLAGS="-g $EXTRA_CFLAGS"
+  fi,
+  EXTRA_CFLAGS="-g $EXTRA_CFLAGS"
+)
+
 AC_SUBST(EXTRA_CFLAGS)
 
 dnl =============================================================