diff options
| author | Jason Evans <je@fb.com> | 2015-01-22 17:55:58 -0800 |
|---|---|---|
| committer | Jason Evans <je@fb.com> | 2015-01-22 17:55:58 -0800 |
| commit | bec6a8da39e8cb7e59550541d429cff5e3dfb6d8 (patch) | |
| tree | aec584b3cf1a12337e1f79bf11661c6df3003e76 /bin | |
| parent | 8afcaa9d8133f0a147820799222492d1c251d285 (diff) | |
| download | platform_external_jemalloc_new-bec6a8da39e8cb7e59550541d429cff5e3dfb6d8.tar.gz platform_external_jemalloc_new-bec6a8da39e8cb7e59550541d429cff5e3dfb6d8.tar.bz2 platform_external_jemalloc_new-bec6a8da39e8cb7e59550541d429cff5e3dfb6d8.zip | |
Implement the jemalloc-config script.
This resolves #133.
Diffstat (limited to 'bin')
| -rw-r--r-- | bin/jemalloc-config.in | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/bin/jemalloc-config.in b/bin/jemalloc-config.in new file mode 100644 index 00000000..b016c8d3 --- /dev/null +++ b/bin/jemalloc-config.in @@ -0,0 +1,79 @@ +#!/bin/sh + +usage() { + cat <<EOF +Usage: + @BINDIR@/jemalloc-config <option> +Options: + --help | -h : Print usage. + --version : Print jemalloc version. + --revision : Print shared library revision number. + --config : Print configure options used to build jemalloc. + --prefix : Print installation directory prefix. + --bindir : Print binary installation directory. + --datadir : Print data installation directory. + --includedir : Print include installation directory. + --libdir : Print library installation directory. + --mandir : Print manual page installation directory. + --cc : Print compiler used to build jemalloc. + --cflags : Print compiler flags used to build jemalloc. + --cppflags : Print preprocessor flags used to build jemalloc. + --ldflags : Print library flags used to build jemalloc. + --libs : Print libraries jemalloc was linked against. +EOF +} + +prefix="@prefix@" +exec_prefix="@exec_prefix@" + +case "$1" in +--help | -h) + usage + exit 0 + ;; +--version) + echo "@jemalloc_version@" + ;; +--revision) + echo "@rev@" + ;; +--config) + echo "@CONFIG@" + ;; +--prefix) + echo "@PREFIX@" + ;; +--bindir) + echo "@BINDIR@" + ;; +--datadir) + echo "@DATADIR@" + ;; +--includedir) + echo "@INCLUDEDIR@" + ;; +--libdir) + echo "@LIBDIR@" + ;; +--mandir) + echo "@MANDIR@" + ;; +--cc) + echo "@CC@" + ;; +--cflags) + echo "@CFLAGS@" + ;; +--cppflags) + echo "@CPPFLAGS@" + ;; +--ldflags) + echo "@LDFLAGS@ @EXTRA_LDFLAGS@" + ;; +--libs) + echo "@LIBS@" + ;; +*) + usage + exit 1 +esac |
