Skip to content

Commit e9e8c80

Browse files
slattarinigitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b476064 commit e9e8c80

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

configure.ac

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,6 @@
11
# -*- Autoconf -*-
22
# Process this file with autoconf to produce a configure script.
33

4-
AC_PREREQ(2.59)
5-
AC_INIT([git], [@@GIT_VERSION@@], [[email protected]])
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-
164
## Definitions of macros
175
# GIT_CONF_APPEND_LINE(LINE)
186
# --------------------------
@@ -137,6 +125,19 @@ if test -n "$1"; then
137125
fi
138126
])
139127

128+
## Configure body starts here.
129+
130+
AC_PREREQ(2.59)
131+
AC_INIT([git], [@@GIT_VERSION@@], [[email protected]])
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+
140141
# Directories holding "saner" versions of common or POSIX binaries.
141142
AC_ARG_WITH([sane-tool-path],
142143
[AS_HELP_STRING(

0 commit comments

Comments
 (0)