D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
td-agent
/
embedded
/
bin
/
Filename :
jemalloc-config
back
Copy
#!/bin/sh usage() { cat <<EOF Usage: /opt/td-agent/embedded/bin/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="/opt/td-agent/embedded" exec_prefix="/opt/td-agent/embedded" case "$1" in --help | -h) usage exit 0 ;; --version) echo "4.2.1-0-g3de035335255d553bdb344c32ffdb603816195d8" ;; --revision) echo "2" ;; --config) echo "--disable-debug --prefix=/opt/td-agent/embedded 'CFLAGS=-I/opt/td-agent/embedded/include -O2' 'LDFLAGS=-Wl,-rpath,/opt/td-agent/embedded/lib -L/opt/td-agent/embedded/lib' 'CPPFLAGS=-I/opt/td-agent/embedded/include -O2'" ;; --prefix) echo "/opt/td-agent/embedded" ;; --bindir) echo "/opt/td-agent/embedded/bin" ;; --datadir) echo "/opt/td-agent/embedded/share" ;; --includedir) echo "/opt/td-agent/embedded/include" ;; --libdir) echo "/opt/td-agent/embedded/lib" ;; --mandir) echo "/opt/td-agent/embedded/share/man" ;; --cc) echo "gcc" ;; --cflags) echo "-I/opt/td-agent/embedded/include -O2 -fvisibility=hidden" ;; --cppflags) echo "-I/opt/td-agent/embedded/include -O2 -D_GNU_SOURCE -D_REENTRANT" ;; --ldflags) echo "-Wl,-rpath,/opt/td-agent/embedded/lib -L/opt/td-agent/embedded/lib " ;; --libs) echo " -lpthread" ;; *) usage exit 1 esac