summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5221ecb)
raw | patch | inline | side by side (parent: 5221ecb)
author | Jakub Narebski <jnareb@gmail.com> | |
Fri, 18 Jan 2008 01:03:51 +0000 (02:03 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 18 Jan 2008 07:35:36 +0000 (23:35 -0800) |
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>
(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>
Makefile | patch | blob | history | |
config.mak.in | patch | blob | history | |
configure.ac | patch | blob | history |
diff --git a/Makefile b/Makefile
index a566bd9aedaa6aa7fdc26cc94a77e07e4e220973..13aa24f91849859400f2c507f2b2d60cf3fae1dc 100644 (file)
--- a/Makefile
+++ b/Makefile
#
# Define NO_SETENV if you don't have setenv in the C library.
#
+# Define NO_UNSETENV if you don't have unsetenv in the C library.
+#
# Define NO_MKDTEMP if you don't have mkdtemp in the C library.
#
# Define NO_SYMLINK_HEAD if you never want .git/HEAD to be a symbolic link.
diff --git a/config.mak.in b/config.mak.in
index 15fb26cb9226bd8c65cb6869ef38fe0af0b1260c..40b14d985ac6815fb3467e1af06428bcf4e3f75d 100644 (file)
--- a/config.mak.in
+++ b/config.mak.in
NO_STRLCPY=@NO_STRLCPY@
NO_STRTOUMAX=@NO_STRTOUMAX@
NO_SETENV=@NO_SETENV@
+NO_UNSETENV=@NO_UNSETENV@
NO_MKDTEMP=@NO_MKDTEMP@
NO_ICONV=@NO_ICONV@
OLD_ICONV=@OLD_ICONV@
diff --git a/configure.ac b/configure.ac
index 6f641e32f0d9e802f6fff72cde7388b7a3521769..af177fdb4dbc1879112c27ecffa9c33c62c678ef 100644 (file)
--- a/configure.ac
+++ b/configure.ac
[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=],