configure: Fix source tree detection to enable more warnings

Related: https://pagure.io/freeipa/issue/8351
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
Peter Keresztes Schmidt
2020-06-05 12:35:45 +02:00
committed by Florence Blanc-Renaud
parent f3f9672d52
commit 54b42f72fb

View File

@@ -455,7 +455,7 @@ AC_ARG_ENABLE(more-warnings,
[AC_HELP_STRING([--enable-more-warnings],
[Maximum compiler warnings])],
set_more_warnings="$enableval",[
if test -d $srcdir/../.hg; then
if test -d $srcdir/.git; then
set_more_warnings=yes
else
set_more_warnings=no