Skip to content

Commit

Permalink
configure: move definitions of private m4 macros before AC_INIT invoc…
Browse files Browse the repository at this point in the history
…ation

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>
  • Loading branch information
slattarini authored and gitster committed Mar 26, 2012
1 parent b476064 commit e9e8c80
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.59)
AC_INIT([git], [@@GIT_VERSION@@], [git@vger.kernel.org])

AC_CONFIG_SRCDIR([git.c])

config_file=config.mak.autogen
config_append=config.mak.append
config_in=config.mak.in

echo "# ${config_append}. Generated by configure." > "${config_append}"


## Definitions of macros
# GIT_CONF_APPEND_LINE(LINE)
# --------------------------
Expand Down Expand Up @@ -137,6 +125,19 @@ if test -n "$1"; then
fi
])

## Configure body starts here.

AC_PREREQ(2.59)
AC_INIT([git], [@@GIT_VERSION@@], [git@vger.kernel.org])

AC_CONFIG_SRCDIR([git.c])

config_file=config.mak.autogen
config_append=config.mak.append
config_in=config.mak.in

echo "# ${config_append}. Generated by configure." > "${config_append}"

# Directories holding "saner" versions of common or POSIX binaries.
AC_ARG_WITH([sane-tool-path],
[AS_HELP_STRING(
Expand Down

0 comments on commit e9e8c80

Please sign in to comment.