[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 4/8] clean up configure.ac syntax
From: |
Sami Kerola |
Subject: |
[PATCH 4/8] clean up configure.ac syntax |
Date: |
Wed, 9 Oct 2013 20:20:13 +0100 |
* Add hello project web url.
* Use dnl for comments.
* Prefer AS_IF() instead of shell 'if'.
---
configure.ac | 34 +++++++++++++++++-----------------
1 file changed, 17 insertions(+), 17 deletions(-)
diff --git a/configure.ac b/configure.ac
index 7a5bec0..f33d65a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -8,41 +8,41 @@ dnl This program is distributed in the hope that it will be
useful, but
dnl WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
dnl implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-AC_INIT([GNU Hello], [2.8], address@hidden)
+AC_INIT([GNU Hello], [2.8],
address@hidden,,[http://www.gnu.org/software/hello/])
dnl Must come before AM_INIT_AUTOMAKE.
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([1.11.1 readme-alpha parallel-tests])
-# Minimum Autoconf version required.
+dnl Minimum Autoconf version required.
AC_PREREQ([2.62])
-# Where to generate output; srcdir location.
+dnl Where to generate output; srcdir location.
AC_CONFIG_HEADERS([config.h:config.in])dnl Keep filename to 8.3 for MS-DOS.
AC_CONFIG_SRCDIR([src/hello.c])
dnl Checks for programs.
-# We need a C compiler.
+dnl We need a C compiler.
AC_PROG_CC
-# Since we use gnulib: gl_EARLY must be called as soon as possible after
-# the C compiler is checked. The others could be later, but we just
-# keep everything together.
+dnl Since we use gnulib: gl_EARLY must be called as soon as possible after
+dnl the C compiler is checked. The others could be later, but we just
+dnl keep everything together.
gl_EARLY
gl_INIT
-# GNU help2man creates man pages from --help output; in many cases, this
-# is sufficient, and obviates the need to maintain man pages separately.
-# However, this means invoking executables, which we generally cannot do
-# when cross-compiling, so we test to avoid that (the variable
-# "cross_compiling" is set by AC_PROG_CC).
-if test $cross_compiling = no; then
- AM_MISSING_PROG(HELP2MAN, help2man)
-else
+dnl GNU help2man creates man pages from --help output; in many cases, this
+dnl is sufficient, and obviates the need to maintain man pages separately.
+dnl However, this means invoking executables, which we generally cannot do
+dnl when cross-compiling, so we test to avoid that (the variable
+dnl "cross_compiling" is set by AC_PROG_CC).
+AS_IF([test $cross_compiling = no], [
+ AM_MISSING_PROG([HELP2MAN], [help2man])
+], [
HELP2MAN=:
-fi
+])
-# i18n support from GNU gettext.
+dnl i18n support from GNU gettext.
AM_GNU_GETTEXT_VERSION([0.18.1])
AM_GNU_GETTEXT([external])
--
1.8.2.3
- [PATCH 1/8] allow user message to use new-generation greeting format, Sami Kerola, 2013/10/09
- [PATCH 2/8] bootstrap: update from gnulib, Sami Kerola, 2013/10/09
- [PATCH 4/8] clean up configure.ac syntax,
Sami Kerola <=
- [PATCH 3/8] reuse AM_INIT_AUTOMAKE bug-email address, Sami Kerola, 2013/10/09
- [PATCH 5/8] use PACKAGE_NAME from config.h, Sami Kerola, 2013/10/09
- [PATCH 6/8] re-indent to match with gnu coding style, Sami Kerola, 2013/10/09
- [PATCH 7/8] make copyright year pseudo dynamic, Sami Kerola, 2013/10/09
- [PATCH 8/8] make hello unicode aware, Sami Kerola, 2013/10/09