#!/bin/sh -f

usage()
{
        cat <<EOF
Usage: mico-config [OPTIONS]
Options:
        [--prefix]
        [--version]
	[--target]
	[--build]
	[--host]
	[--cxx]
	[--cxxflags]
	[--picflags]
        [--libs]
	[--cosslibs]
EOF
        exit $1
}

if test $# -eq 0; then
        usage 1 1>&2
fi


for arg
do
  case "$arg" in
  --prefix)
    echo "/usr/local"
    ;;
  --version)
    echo "2.3.12"
    ;;
  --target)
    echo "amd64-portbld-freebsd9.1"
    ;;
  --build)
    echo "amd64-portbld-freebsd9.1"
    ;;
  --host)
    echo "amd64-portbld-freebsd9.1"
    ;;
  --cxx)
    echo "c++"
    ;;
  --cxxflags)
    echo "-I/usr/local/include  -O2 -pipe -fno-strict-aliasing  -Wall -pipe -fno-strict-aliasing  -Wno-unused -D_REENTRANT -D_THREAD_SAFE  "
    ;;
  --picflags)
    echo "-fPIC"
    ;;
  --libs)
    echo " -L/usr/local/lib -lmico2.3.12  -Wl,-rpath=/usr/lib:/usr/local/lib  -lcompat -lssl -lcrypto -lelf -lm  -lpthread"
    ;;
  --cosslibs)
    echo " -L/usr/local/lib -lmicocoss2.3.12 -lmico2.3.12  -Wl,-rpath=/usr/lib:/usr/local/lib  -lcompat -lssl -lcrypto -lelf -lm  -lpthread"
    ;;
  --help)
    usage
    ;;
  esac
done
