summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorJakub Narebski <jnareb@gmail.com>2008-01-18 01:03:51 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-01-18 07:35:36 (GMT)
commitbfa8fccf477ed2567b035f1c6a3cb2b74ec4ef67 (patch)
treefcab0b25901bc62c0da2a6340888c7cbb149adde /configure.ac
parent5221ecbc51526da94f2ba0862c3958100592cf0b (diff)
downloadgit-bfa8fccf477ed2567b035f1c6a3cb2b74ec4ef67.zip
git-bfa8fccf477ed2567b035f1c6a3cb2b74ec4ef67.tar.gz
git-bfa8fccf477ed2567b035f1c6a3cb2b74ec4ef67.tar.bz2
autoconf: Add checking for unsetenv function
Update configure.ac (and config.mak.in) by adding test for unsetenv (NO_UNSETENV). Add comment about NO_UNSETENV to Makefile header, as original commit 731043fd adding compat/unsetenv.c didn't do that. Signed-off-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 6f641e3..af177fd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -356,6 +356,12 @@ AC_CHECK_FUNC(setenv,
[NO_SETENV=YesPlease])
AC_SUBST(NO_SETENV)
#
+# Define NO_UNSETENV if you don't have unsetenv in the C library.
+AC_CHECK_FUNC(unsetenv,
+[NO_UNSETENV=],
+[NO_UNSETENV=YesPlease])
+AC_SUBST(NO_UNSETENV)
+#
# Define NO_MKDTEMP if you don't have mkdtemp in the C library.
AC_CHECK_FUNC(mkdtemp,
[NO_MKDTEMP=],