]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/minidom/minidom-config
This commit was manufactured by cvs2svn to create branch 'helm'.
[helm.git] / helm / minidom / minidom-config
diff --git a/helm/minidom/minidom-config b/helm/minidom/minidom-config
new file mode 100755 (executable)
index 0000000..0fd0a89
--- /dev/null
@@ -0,0 +1,56 @@
+#!/bin/sh
+
+VERSION="0.1.0"
+libdir="/usr/local/lib"
+pkglibdir="/usr/local/lib/minidom"
+includedir="/usr/local/include"
+pkgincludedir="/usr/local/include/minidom"
+
+
+usage()
+{
+       cat <<EOF
+Usage: minidom-config [OPTIONS]
+Options:
+       [--version]
+       [--libs]
+       [--cflags]
+EOF
+       exit $1
+}
+
+if test $# -eq 0; then
+       usage 1 1>&2
+fi
+
+while test $# -gt 0; do
+  case "$1" in
+  -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
+  *) optarg= ;;
+  esac
+
+  case $1 in
+    --version)
+      echo $VERSION
+      ;;
+    --cflags)
+      echo_cflags=yes
+      ;;
+    --libs)
+      echo_libs=yes
+      ;;
+    *)
+      usage 1 1>&2
+      ;;
+  esac
+  shift
+done
+
+if test "$echo_cflags" = "yes"; then
+    echo `xml-config --cflags` -I$pkgincludedir
+fi
+
+if test "$echo_libs" = "yes"; then
+    echo `xml-config --libs` -L$libdir -lminidom
+fi      
+