configure: move definitions of private m4 macros before AC_INIT invocation
This way, no spurious comments nor whitespace will be propagated in the generated configure script. This change is a pure code movement (plus addition of a comment line). Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Stefano Lattarini committed
Mar 26, 2012 at 18:42 UTC
e9e8c8090e579da5b5f6d2437ecf271568d127ff
1 file changed
+13
-12
configure.ac
+13
-12
@@ -1,18 +1,6 @@
1
# -*- Autoconf -*-
2
# Process this file with autoconf to produce a configure script.
3
4
-AC_PREREQ(2.59)
5
-AC_INIT([git], [@@GIT_VERSION@@], [git@vger.kernel.org])
6
-
7
-AC_CONFIG_SRCDIR([git.c])
8
-
9
-config_file=config.mak.autogen
10
-config_append=config.mak.append
11
-config_in=config.mak.in
12
-
13
-echo "# ${config_append}. Generated by configure." > "${config_append}"
14
-
15
-
4
## Definitions of macros
5
# GIT_CONF_APPEND_LINE(LINE)
6
# --------------------------
@@ -137,6 +125,19 @@ if test -n "$1"; then
125
fi
126
])
127
128
+## Configure body starts here.
129
+
130
+AC_PREREQ(2.59)
131
+AC_INIT([git], [@@GIT_VERSION@@], [git@vger.kernel.org])
132
+
133
+AC_CONFIG_SRCDIR([git.c])
134
+
135
+config_file=config.mak.autogen
136
+config_append=config.mak.append
137
+config_in=config.mak.in
138
+
139
+echo "# ${config_append}. Generated by configure." > "${config_append}"
140
+
141
# Directories holding "saner" versions of common or POSIX binaries.
142
AC_ARG_WITH([sane-tool-path],
143
[AS_HELP_STRING(