summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6462146)
raw | patch | inline | side by side (parent: 6462146)
author | Ben Walton <bwalton@artsci.utoronto.ca> | |
Thu, 12 Mar 2009 19:20:06 +0000 (15:20 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 13 Mar 2009 06:23:38 +0000 (23:23 -0700) |
Allow things set by the user (--with-lib, --with-iconv, etc) to set
variables for use by other parts of the script. Display values as
they're set.
Signed-off-by: Ben Walton <bwalton@artsci.utoronto.ca>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
variables for use by other parts of the script. Display values as
they're set.
Signed-off-by: Ben Walton <bwalton@artsci.utoronto.ca>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
configure.ac | patch | blob | history |
diff --git a/configure.ac b/configure.ac
index 082a03d3cf6e9416c80b5d486c3191d3ac64cca4..0b314d73593c18f92bb10ac9027e884aa602de32 100644 (file)
--- a/configure.ac
+++ b/configure.ac
if test "$withval" = "yes"; then \
AC_MSG_WARN([You should provide path for --with-$1=PATH]); \
else \
+ m4_toupper($1)_PATH=$withval; \
+ AC_MSG_NOTICE([Setting m4_toupper($1)_PATH to $withval]); \
GIT_CONF_APPEND_LINE(${PROGRAM}_PATH=$withval); \
fi; \
fi; \
m4_toupper(NO_$1)=; \
else \
m4_toupper(NO_$1)=; \
+ m4_toupper($1)DIR=$withval; \
+ AC_MSG_NOTICE([Setting m4_toupper($1)DIR to $withval]); \
GIT_CONF_APPEND_LINE(${PACKAGE}DIR=$withval); \
fi \
])# GIT_PARSE_WITH
[if test "$withval" = "no" || test "$withval" = "yes"; then \
AC_MSG_WARN([You should provide name for --with-lib=ARG]); \
else \
+ lib=$withval; \
+ AC_MSG_NOTICE([Setting lib to '$lib']); \
GIT_CONF_APPEND_LINE(lib=$withval); \
fi; \
],[])
+
+if test -z "$lib"; then
+ AC_MSG_NOTICE([Setting lib to 'lib' (the default)])
+ lib=lib
+fi
#
# Define SHELL_PATH to provide path to shell.
GIT_ARG_SET_PATH(shell)