From 3d23ab250e18153fcb39652aa35ac40745dc9509 Mon Sep 17 00:00:00 2001 From: Tim Janik Date: Mon, 15 Feb 1999 06:51:28 +0000 Subject: [PATCH] default to yes for development trees. Mon Feb 15 07:45:28 1999 Tim Janik * configure.in (--enable-debug): default to yes for development trees. --- ChangeLog | 4 ++++ ChangeLog.pre-2-0 | 4 ++++ ChangeLog.pre-2-10 | 4 ++++ ChangeLog.pre-2-2 | 4 ++++ ChangeLog.pre-2-4 | 4 ++++ ChangeLog.pre-2-6 | 4 ++++ ChangeLog.pre-2-8 | 4 ++++ configure.in | 20 +++++++++++++++++++- 8 files changed, 47 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 41f69f14fe..e8ad7db355 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Mon Feb 15 07:45:28 1999 Tim Janik + + * configure.in (--enable-debug): default to yes for development trees. + Fri Feb 12 00:08:01 1999 Lars Hamann * gtk/gtklist.c (gtk_list_remove_items_internal): don't autoselect diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 41f69f14fe..e8ad7db355 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,7 @@ +Mon Feb 15 07:45:28 1999 Tim Janik + + * configure.in (--enable-debug): default to yes for development trees. + Fri Feb 12 00:08:01 1999 Lars Hamann * gtk/gtklist.c (gtk_list_remove_items_internal): don't autoselect diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 41f69f14fe..e8ad7db355 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,7 @@ +Mon Feb 15 07:45:28 1999 Tim Janik + + * configure.in (--enable-debug): default to yes for development trees. + Fri Feb 12 00:08:01 1999 Lars Hamann * gtk/gtklist.c (gtk_list_remove_items_internal): don't autoselect diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 41f69f14fe..e8ad7db355 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,7 @@ +Mon Feb 15 07:45:28 1999 Tim Janik + + * configure.in (--enable-debug): default to yes for development trees. + Fri Feb 12 00:08:01 1999 Lars Hamann * gtk/gtklist.c (gtk_list_remove_items_internal): don't autoselect diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 41f69f14fe..e8ad7db355 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,7 @@ +Mon Feb 15 07:45:28 1999 Tim Janik + + * configure.in (--enable-debug): default to yes for development trees. + Fri Feb 12 00:08:01 1999 Lars Hamann * gtk/gtklist.c (gtk_list_remove_items_internal): don't autoselect diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 41f69f14fe..e8ad7db355 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,7 @@ +Mon Feb 15 07:45:28 1999 Tim Janik + + * configure.in (--enable-debug): default to yes for development trees. + Fri Feb 12 00:08:01 1999 Lars Hamann * gtk/gtklist.c (gtk_list_remove_items_internal): don't autoselect diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 41f69f14fe..e8ad7db355 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,7 @@ +Mon Feb 15 07:45:28 1999 Tim Janik + + * configure.in (--enable-debug): default to yes for development trees. + Fri Feb 12 00:08:01 1999 Lars Hamann * gtk/gtklist.c (gtk_list_remove_items_internal): don't autoselect diff --git a/configure.in b/configure.in index cc5eeb53ac..37cb0dc10b 100644 --- a/configure.in +++ b/configure.in @@ -15,6 +15,10 @@ AC_INIT(gdk/gdktypes.h) # Save this value here, since automake will set cflags later cflags_set=${CFLAGS+set} +dnl we to AC_DIVERT_PUSH/AC_DIVERT_POP these variable definitions so they +dnl are available for $ac_help expansion (don't we all *love* autoconf?) +AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl +# # Making releases: # GTK_MICRO_VERSION += 1; # GTK_INTERFACE_AGE += 1; @@ -29,6 +33,9 @@ GTK_MICRO_VERSION=15 GTK_INTERFACE_AGE=1 GTK_BINARY_AGE=1 GTK_VERSION=$GTK_MAJOR_VERSION.$GTK_MINOR_VERSION.$GTK_MICRO_VERSION +dnl +AC_DIVERT_POP()dnl + AC_SUBST(GTK_MAJOR_VERSION) AC_SUBST(GTK_MINOR_VERSION) AC_SUBST(GTK_MICRO_VERSION) @@ -67,9 +74,20 @@ AM_MAINTAINER_MODE AC_CANONICAL_HOST +dnl figure debugging default, prior to $ac_help setup +dnl +AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl +if test `expr $GTK_MINOR_VERSION \% 2` = 1 ; then + debug_default=yes +else + debug_default=minimum +fi +AC_DIVERT_POP()dnl + +dnl declare --enable-* args and collect ac_help strings +AC_ARG_ENABLE(debug, [ --enable-debug=[no/minimum/yes] turn on debugging [default=$debug_default]],,enable_debug=$debug_default) AC_ARG_ENABLE(shm, [ --enable-shm support shared memory if available [default=yes]], echo $enable_shm, enable_shm="yes") -AC_ARG_ENABLE(debug, [ --enable-debug=[no/minimum/yes] turn on debugging [default=minimum]],,enable_debug=minimum) AC_ARG_ENABLE(ansi, [ --enable-ansi turn on strict ansi [default=no]], , enable_ansi=no) AC_ARG_WITH(glib, [ --with-glib=DIR Use uninstalled copy of glib])