diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2021-03-07 18:29:00 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2021-03-07 18:30:08 -0800 |
commit | 91c031678d6d39a1bfad9d9d483fae75c02f9418 (patch) | |
tree | 48a7a854c860ec989bfa4dbf4cc74f50824b4eac | |
parent | 5227d66b3c4f7035d4ac69f613b62d68345cb362 (diff) | |
download | tar-91c031678d6d39a1bfad9d9d483fae75c02f9418.tar.gz |
Tune for single-threaded tar
This takes advantage of recent optimizations in Gnulib
for single-threaded programs.
* configure.ac (GNULIB_EXCLUDE_SINGLE_THREAD)
(GNULIB_MBRTOWC_SINGLE_THREAD, GNULIB_REGEX_SINGLE_THREAD)
(GNULIB_WCHAR_SINGLE_LOCALE): Define.
-rw-r--r-- | configure.ac | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 87f69087..d09789af 100644 --- a/configure.ac +++ b/configure.ac @@ -102,6 +102,20 @@ gt_TYPE_SSIZE_T # gnulib modules gl_INIT +AC_DEFINE([GNULIB_EXCLUDE_SINGLE_THREAD], [1], + [Define if all programs in this package call functions of the Gnulib + 'exclude' module only from a single thread.]) +AC_DEFINE([GNULIB_MBRTOWC_SINGLE_THREAD], [1], + [Define if all programs in this package call functions of the Gnulib + 'mbtowc' module only from a single thread.]) +AC_DEFINE([GNULIB_REGEX_SINGLE_THREAD], [1], + [Define if all programs in this package call functions of the Gnulib + 'regex' module only from a single thread.]) +AC_DEFINE([GNULIB_WCHAR_SINGLE_LOCALE], [1], + [Define if all programs in this package call locale-sensitive functions + like mbrtowc only after setting the locale, and never change the + locale once set.]) + if test $ac_cv_lib_error_at_line = no; then # This means that the error() function is not present in libc, so # the one from gnulib will be used instead. This function precedes |