Home | History | Annotate | Download | only in bin
      1 #!/bin/sh
      2 
      3 usage() {
      4 	cat <<EOF
      5 Usage:
      6   @BINDIR@/jemalloc-config <option>
      7 Options:
      8   --help | -h  : Print usage.
      9   --version    : Print jemalloc version.
     10   --revision   : Print shared library revision number.
     11   --config     : Print configure options used to build jemalloc.
     12   --prefix     : Print installation directory prefix.
     13   --bindir     : Print binary installation directory.
     14   --datadir    : Print data installation directory.
     15   --includedir : Print include installation directory.
     16   --libdir     : Print library installation directory.
     17   --mandir     : Print manual page installation directory.
     18   --cc         : Print compiler used to build jemalloc.
     19   --cflags     : Print compiler flags used to build jemalloc.
     20   --cppflags   : Print preprocessor flags used to build jemalloc.
     21   --ldflags    : Print library flags used to build jemalloc.
     22   --libs       : Print libraries jemalloc was linked against.
     23 EOF
     24 }
     25 
     26 prefix="@prefix@"
     27 exec_prefix="@exec_prefix@"
     28 
     29 case "$1" in
     30 --help | -h)
     31 	usage
     32 	exit 0
     33 	;;
     34 --version)
     35 	echo "@jemalloc_version@"
     36 	;;
     37 --revision)
     38 	echo "@rev@"
     39 	;;
     40 --config)
     41 	echo "@CONFIG@"
     42 	;;
     43 --prefix)
     44 	echo "@PREFIX@"
     45 	;;
     46 --bindir)
     47 	echo "@BINDIR@"
     48 	;;
     49 --datadir)
     50 	echo "@DATADIR@"
     51 	;;
     52 --includedir)
     53 	echo "@INCLUDEDIR@"
     54 	;;
     55 --libdir)
     56 	echo "@LIBDIR@"
     57 	;;
     58 --mandir)
     59 	echo "@MANDIR@"
     60 	;;
     61 --cc)
     62 	echo "@CC@"
     63 	;;
     64 --cflags)
     65 	echo "@CFLAGS@"
     66 	;;
     67 --cppflags)
     68 	echo "@CPPFLAGS@"
     69 	;;
     70 --ldflags)
     71 	echo "@LDFLAGS@ @EXTRA_LDFLAGS@"
     72 	;;
     73 --libs)
     74 	echo "@LIBS@"
     75 	;;
     76 *)
     77 	usage
     78 	exit 1
     79 esac
     80