mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 15:43:32 +01:00
Run check-spaces only when Perl is available
Also permit users to override the Perl variable with relative paths.
This commit is contained in:
parent
e8760b6e51
commit
032da29d28
@ -181,11 +181,13 @@ coverage-html-full: all
|
|||||||
# Avoid strlcpy.c, strlcat.c, aes.c, OpenBSD_malloc_Linux.c, sha256.c,
|
# Avoid strlcpy.c, strlcat.c, aes.c, OpenBSD_malloc_Linux.c, sha256.c,
|
||||||
# tinytest*.[ch]
|
# tinytest*.[ch]
|
||||||
check-spaces:
|
check-spaces:
|
||||||
$(top_srcdir)/scripts/maint/checkSpace.pl -C \
|
if USE_PERL
|
||||||
|
$(PERL) $(top_srcdir)/scripts/maint/checkSpace.pl -C \
|
||||||
$(top_srcdir)/src/common/*.[ch] \
|
$(top_srcdir)/src/common/*.[ch] \
|
||||||
$(top_srcdir)/src/or/*.[ch] \
|
$(top_srcdir)/src/or/*.[ch] \
|
||||||
$(top_srcdir)/src/test/*.[ch] \
|
$(top_srcdir)/src/test/*.[ch] \
|
||||||
$(top_srcdir)/src/tools/*.[ch]
|
$(top_srcdir)/src/tools/*.[ch]
|
||||||
|
endif
|
||||||
|
|
||||||
check-docs: all
|
check-docs: all
|
||||||
$(PERL) $(top_builddir)/scripts/maint/checkOptionDocs.pl
|
$(PERL) $(top_builddir)/scripts/maint/checkOptionDocs.pl
|
||||||
|
@ -195,7 +195,9 @@ AC_PROG_CPP
|
|||||||
AC_PROG_MAKE_SET
|
AC_PROG_MAKE_SET
|
||||||
AC_PROG_RANLIB
|
AC_PROG_RANLIB
|
||||||
|
|
||||||
AC_PATH_PROG([PERL], [perl])
|
AC_ARG_VAR([PERL], [path to Perl binary])
|
||||||
|
AC_CHECK_PROGS([PERL], [perl])
|
||||||
|
AM_CONDITIONAL(USE_PERL, [test "x$ac_cv_prog_PERL" != "x"])
|
||||||
|
|
||||||
dnl autoconf 2.59 appears not to support AC_PROG_SED
|
dnl autoconf 2.59 appears not to support AC_PROG_SED
|
||||||
AC_CHECK_PROG([SED],[sed],[sed],[/bin/false])
|
AC_CHECK_PROG([SED],[sed],[sed],[/bin/false])
|
||||||
|
Loading…
Reference in New Issue
Block a user