From: Jakub Narebski Date: Thu, 15 Apr 2010 12:27:49 +0000 (-0700) Subject: autoconf: Check if exists and set HAVE_PATHS_H X-Git-Tag: v1.7.2-rc0~123^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=bb15e38281aab342a0e3ca7d5663b0c3f9d5e72e;p=git.git autoconf: Check if exists and set HAVE_PATHS_H Signed-off-by: Jakub Narebski Signed-off-by: Junio C Hamano --- diff --git a/config.mak.in b/config.mak.in index 6008ac9f1..0d4b64d07 100644 --- a/config.mak.in +++ b/config.mak.in @@ -31,6 +31,7 @@ NO_OPENSSL=@NO_OPENSSL@ NO_CURL=@NO_CURL@ NO_EXPAT=@NO_EXPAT@ NO_LIBGEN_H=@NO_LIBGEN_H@ +HAVE_PATHS_H=@HAVE_PATHS_H@ NEEDS_LIBICONV=@NEEDS_LIBICONV@ NEEDS_SOCKET=@NEEDS_SOCKET@ NEEDS_RESOLV=@NEEDS_RESOLV@ diff --git a/configure.ac b/configure.ac index 914ae5759..359053221 100644 --- a/configure.ac +++ b/configure.ac @@ -704,6 +704,12 @@ AC_CHECK_HEADER([libgen.h], [NO_LIBGEN_H=YesPlease]) AC_SUBST(NO_LIBGEN_H) # +# Define HAVE_PATHS_H if you have paths.h. +AC_CHECK_HEADER([paths.h], +[HAVE_PATHS_H=YesPlease], +[HAVE_PATHS_H=]) +AC_SUBST(HAVE_PATHS_H) +# # Define NO_STRCASESTR if you don't have strcasestr. GIT_CHECK_FUNC(strcasestr, [NO_STRCASESTR=],