summaryrefslogtreecommitdiffstats
path: root/indexlib/indexlib-config.in
diff options
context:
space:
mode:
Diffstat (limited to 'indexlib/indexlib-config.in')
-rw-r--r--indexlib/indexlib-config.in60
1 files changed, 60 insertions, 0 deletions
diff --git a/indexlib/indexlib-config.in b/indexlib/indexlib-config.in
new file mode 100644
index 000000000..f478bad4c
--- /dev/null
+++ b/indexlib/indexlib-config.in
@@ -0,0 +1,60 @@
+#!/bin/sh
+
+usage()
+{
+ echo "usage: $0 [OPTIONS]"
+cat << EOH
+
+options:
+ [--libs]
+ [--cflags]
+ [--version]
+ [--prefix]
+EOH
+}
+
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+flags=""
+
+if test $# -eq 0 ; then
+ usage
+ exit 0
+fi
+
+while test $# -gt 0
+do
+ case $1 in
+ --libs)
+ flags="$flags -L$libdir -lindex"
+ ;;
+ --cflags)
+ flags="$flags -I$includedir/index"
+ ;;
+ --version)
+ echo 0.94
+ ;;
+ --prefix)
+ echo $prefix
+ ;;
+ --help)
+ usage
+ exit 0
+ ;;
+ *)
+ echo "$0: unknown option $1"
+ echo
+ usage
+ exit 1
+ ;;
+ esac
+ shift
+done
+
+if test -n "$flags"
+then
+ echo $flags
+fi