X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=configure.ac;h=adb31915b501f082e366c2297169df9189147948;hb=359b5c8eb45ff56c62032cf147fcdb3723d54324;hp=e951a286b2e884128d2b821b05ed612956052c21;hpb=e22a72c66a2d876f2ebe4bd6384b246af92cda4d;p=PuTTY.git diff --git a/configure.ac b/configure.ac index e951a286..adb31915 100644 --- a/configure.ac +++ b/configure.ac @@ -42,6 +42,18 @@ AS_IF([test "x$setidtype" = "xsetgid"], AC_SUBST(SETID_CMD) AC_SUBST(SETID_MODE) +AC_ARG_ENABLE([git-commit], + [AS_HELP_STRING([--disable-git-commit], + [disable embedding current git HEAD in binaries])], + [], + [if test -d "$srcdir/.git"; then + enable_git_commit=yes; else enable_git_commit=no; fi]) + +if test "x$enable_git_commit" = "xyes" -a ! -d "$srcdir/.git"; then + AC_ERROR([Cannot --enable-git-commit when source tree is not a git checkout]) +fi +AM_CONDITIONAL(AUTO_GIT_COMMIT, [test "x$enable_git_commit" = "xyes"]) + AC_ARG_WITH([gssapi], [AS_HELP_STRING([--without-gssapi], [disable GSSAPI support])],