From: Peter Verthez Date: Sun, 8 Dec 2002 16:01:23 +0000 (+0000) Subject: Added configure option --enable-debug. X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=13206019511132a89823d875c9cbf4c9c8ed8c0d;p=gedcom-parse.git Added configure option --enable-debug. --- diff --git a/configure.in b/configure.in index b13d759..7e267e5 100644 --- a/configure.in +++ b/configure.in @@ -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 ============================================================= diff --git a/gedcom/Makefile.am b/gedcom/Makefile.am index f219f9a..a10810e 100644 --- a/gedcom/Makefile.am +++ b/gedcom/Makefile.am @@ -10,7 +10,7 @@ INCLUDES = -I $(srcdir)/../intl -I $(srcdir)/../include -I $(srcdir)/calendar \ -DPKGDATADIR=\"$(pkgdatadir)\" -DLOCALEDIR=\"$(localedir)\" YFLAGS = --debug --defines LFLAGS = -8 -CFLAGS = -g -O2 -W -Wall -pedantic -Wno-long-long @EXTRA_CFLAGS@ +CFLAGS = -O2 -W -Wall -pedantic -Wno-long-long @EXTRA_CFLAGS@ lib_LTLIBRARIES = libgedcom.la libgedcom_la_SOURCES = lex.gedcom_1byte_.c \ diff --git a/gom/Makefile.am b/gom/Makefile.am index 9e6b12c..ad7df33 100644 --- a/gom/Makefile.am +++ b/gom/Makefile.am @@ -3,7 +3,7 @@ # $Name$ INCLUDES = -I $(srcdir)/../intl -I $(srcdir)/../include -I $(srcdir)/../utf8 -CFLAGS = -g -O2 -W -Wall -pedantic -Wno-long-long @EXTRA_CFLAGS@ +CFLAGS = -O2 -W -Wall -pedantic -Wno-long-long @EXTRA_CFLAGS@ lib_LTLIBRARIES = libgedcom_gom.la libgedcom_gom_la_SOURCES = gom.c \ diff --git a/iconv/glibc/Makefile.am b/iconv/glibc/Makefile.am index d9921d4..805e747 100644 --- a/iconv/glibc/Makefile.am +++ b/iconv/glibc/Makefile.am @@ -1,7 +1,7 @@ ## Process this file with automake to produce Makefile.in # $Id$ # $Name$ -CFLAGS = -g -O2 +CFLAGS = -O2 @EXTRA_CFLAGS@ INCLUDES = -I$(srcdir)/.. libdir = $(pkgdatadir) diff --git a/t/src/Makefile.am b/t/src/Makefile.am index 0244bf7..333bd0a 100644 --- a/t/src/Makefile.am +++ b/t/src/Makefile.am @@ -4,7 +4,7 @@ INCLUDES = -DPKGDATADIR=\"$(pkgdatadir)\" -I $(srcdir)/../../include \ -I $(srcdir)/../../utf8 -CFLAGS = -g -O2 @EXTRA_CFLAGS@ +CFLAGS = -O2 @EXTRA_CFLAGS@ noinst_PROGRAMS = testgedcom pathtest gomtest updatetest testintl updategomtest \ writegomtest diff --git a/utf8/Makefile.am b/utf8/Makefile.am index 7b67f46..b0419e5 100644 --- a/utf8/Makefile.am +++ b/utf8/Makefile.am @@ -5,7 +5,7 @@ SUBDIRS = @LCS_SUBDIRS@ . INCLUDES = @LCS_INCLUDES@ -CFLAGS = -g -O2 -W -Wall -pedantic -Wno-long-long +CFLAGS = -O2 -W -Wall -pedantic -Wno-long-long @EXTRA_CFLAGS@ noinst_LTLIBRARIES = libutf8.la libutf8_la_SOURCES = utf8-locale.c utf8.c utf8-convert.c