From 3f25ae9b43febf3cfc2f5a34184ff53b2589b857 Mon Sep 17 00:00:00 2001 From: "Julio M. Merino Vidal" Date: Fri, 1 Dec 2006 18:48:22 +0000 Subject: Use the AS_HELP_STRING macro to format help messages. Fixes bug #337068. 2006-12-19 Julio M. Merino Vidal * configure.in: * libgtop-sysdeps.m4: Use the AS_HELP_STRING macro to format help messages. Fixes bug #337068. --- ChangeLog | 8 ++++++++ configure.in | 18 ++++++++++++++---- libgtop-sysdeps.m4 | 9 ++++++--- 3 files changed, 28 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 47c6aa58..bc4bfa60 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2006-12-01 Julio M. Merino Vidal + + * configure.in: + * libgtop-sysdeps.m4: + + Use the AS_HELP_STRING macro to format help messages. + Fixes bug #337068. + 2006-11-27 BenoƮt Dejean * libgtop-sysdeps.m4: diff --git a/configure.in b/configure.in index 7b23c7ac..1ad11e7f 100644 --- a/configure.in +++ b/configure.in @@ -25,6 +25,7 @@ m4_define([libgtop_server_version], [5]) # Version code calculation m4_define([libgtop_version_code], [m4_eval(libgtop_major_version * 1000000 + libgtop_minor_version * 1000 + libgtop_micro_version)]) +AC_PREREQ(2.59) AC_INIT([libgtop], [libgtop_version], [http://bugzilla.gnome.org/enter_bug.cgi?product=libgtop]) AC_CONFIG_SRCDIR(copyright.txt) @@ -87,8 +88,10 @@ GNOME_LIBGTOP_SYSDEPS GNOME_LIBGTOP_TYPES AC_ARG_WITH(libgtop-inodedb, -[ --with-libgtop-inodedb Build the inodedb stuff (default=no)], -[build_inodedb="$withval"], [build_inodedb=no]) + AS_HELP_STRING([--with-libgtop-inodedb], + [Build the inodedb stuff @<:@default=no@:>@]), + [build_inodedb="$withval"], + [build_inodedb=no]) LIBGTOP_EXTRA_LIBS= @@ -279,8 +282,15 @@ dnl For diskusage stuff GNOME_FILEUTILS_CHECKS dnl Debugging -AC_ARG_ENABLE(debug, [ --enable-debug turn on debugging [default=no]],AC_DEFINE(LIBGTOP_ENABLE_DEBUG, 1, [Define to enable debugging]),) -AC_ARG_ENABLE(fatal-warnings, [ --enable-fatal-warnings make all warnings fatal [debug=no]],AC_DEFINE(LIBGTOP_FATAL_WARNINGS, 1, [Define to enable fatal warnings]),) +AC_ARG_ENABLE(debug, + AS_HELP_STRING([--enable-debug], + [Turn on debugging @<:@default=no@:>@]), + AC_DEFINE(LIBGTOP_ENABLE_DEBUG, 1, [Define to enable debugging])) +AC_ARG_ENABLE(fatal-warnings, + AS_HELP_STRING([--enable-fatal-warnings], + [Make all warnings fatal @<:@debug=no@:>@]), + AC_DEFINE(LIBGTOP_FATAL_WARNINGS, 1, + [Define to enable fatal warnings])) dnl These definitions are expanded in make. LIBGTOP_LIBS='-L$(libdir)' diff --git a/libgtop-sysdeps.m4 b/libgtop-sysdeps.m4 index 79338666..3fa48aae 100644 --- a/libgtop-sysdeps.m4 +++ b/libgtop-sysdeps.m4 @@ -18,19 +18,22 @@ AC_DEFUN([GNOME_LIBGTOP_SYSDEPS],[ AC_SUBST(libgtop_need_server) AC_ARG_WITH(libgtop-examples, - [ --with-libgtop-examples Build the libgtop examples (default=no)],[ + AS_HELP_STRING([--with-libgtop-examples], + [Build the libgtop examples @<:@default=no@:>@]),[ build_examples="$withval"], [build_examples=no]) AM_CONDITIONAL(EXAMPLES, test x"$build_examples" = xyes) AC_ARG_ENABLE(hacker-mode, - [ --enable-hacker-mode Enable building of unstable sysdeps], + AS_HELP_STRING([--enable-hacker-mode], + [Enable building of unstable sysdeps]), [hacker_mode="$enableval"], [hacker_mode=no]) AM_CONDITIONAL(HACKER_MODE, test x"$hacker_mode" = xyes) AC_ARG_WITH(libgtop-smp, - [ --with-libgtop-smp Enable SMP support (default-auto)],[ + AS_HELP_STRING([--with-libgtop-smp], + [Enable SMP support @<:@default-auto@:>@]),[ libgtop_smp="$withval"],[libgtop_smp=auto]) if test $libgtop_smp = auto ; then -- cgit v1.2.1