diff options
author | Jakub Narebski <jnareb@gmail.com> | 2008-01-18 02:03:51 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-01-17 23:35:36 -0800 |
commit | bfa8fccf477ed2567b035f1c6a3cb2b74ec4ef67 (patch) | |
tree | fcab0b25901bc62c0da2a6340888c7cbb149adde | |
parent | 5221ecbc51526da94f2ba0862c3958100592cf0b (diff) | |
download | git-bfa8fccf477ed2567b035f1c6a3cb2b74ec4ef67.tar.gz |
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>
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | config.mak.in | 1 | ||||
-rw-r--r-- | configure.ac | 6 |
3 files changed, 9 insertions, 0 deletions
@@ -38,6 +38,8 @@ all:: # # 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 15fb26cb92..40b14d985a 100644 --- a/config.mak.in +++ b/config.mak.in @@ -40,6 +40,7 @@ NO_MEMMEM=@NO_MEMMEM@ 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 6f641e32f0..af177fdb4d 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=], |