diff options
author | Werner Koch <wk@gnupg.org> | 2014-01-09 19:14:09 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2014-01-24 17:41:20 +0100 |
commit | f209d163a8167caa6910cd367aba923f703ac69e (patch) | |
tree | da4a07bdfa7648ce05c0165b68c53b83b577b555 /src/gpg-error-config.in | |
parent | 4e8a88e7632b1f1d2b31ae738a159802549882c3 (diff) | |
download | libgpg-error-f209d163a8167caa6910cd367aba923f703ac69e.tar.gz |
Make multi-threading flags available via gpg-error-config.
* m4/threadlib.m4: Set THREADLIB_CPPFLAGS.
* src/gpg-error-config.in: Add option --mt.
* configure.ac: Add support for the --mt option.
* src/gpg-error.m4: Add ac_subst GPG_ERROR_MT_CFLAGS and
GPG_ERROR_MT_LIBS.
--
Although, libgpg-error does not yet provide an API for multi-thread
support, it is useful to add the already available detection to the
config script. This allows the latest Libgcrypt to take advantage of
this in its regression tests. In particular for the regression tests
a gpgrt_thread functions would be useful and eventually added to
libgpg-error. The new gpg-error.m4 script should already be used by
other packages to be prepared for future updates.
Diffstat (limited to 'src/gpg-error-config.in')
-rw-r--r-- | src/gpg-error-config.in | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gpg-error-config.in b/src/gpg-error-config.in index b132314..bc1c583 100644 --- a/src/gpg-error-config.in +++ b/src/gpg-error-config.in @@ -17,12 +17,14 @@ libdir=@libdir@ isubdirafter="@GPG_ERROR_CONFIG_ISUBDIRAFTER@" output="" +mt=no usage() { cat <<EOF Usage: gpg-error-config [OPTIONS] Options: + [--mt] (must be the first option) [--prefix] [--exec-prefix] [--version] @@ -47,6 +49,9 @@ while test $# -gt 0; do esac case $1 in + --mt) + mt=yes + ;; --prefix) output="$output $prefix" ;; @@ -67,6 +72,9 @@ while test $# -gt 0; do output="$output -idirafter ${includedir}/${i}" done output="$output @GPG_ERROR_CONFIG_CFLAGS@" + if test $mt = yes ; then + output="$output @GPG_ERROR_CONFIG_MT_CFLAGS@" + fi ;; --libs) case "$libdir" in @@ -76,6 +84,9 @@ while test $# -gt 0; do ;; esac output="$output @GPG_ERROR_CONFIG_LIBS@" + if test $mt = yes ; then + output="$output @GPG_ERROR_CONFIG_MT_LIBS@" + fi ;; --host) echo "@GPG_ERROR_CONFIG_HOST@" |