#!/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 "/opt/local"
    ;;
  --version)
    echo "2.3.13"
    ;;
  --target)
    echo "i686-apple-darwin11.4.2"
    ;;
  --build)
    echo "i686-apple-darwin11.4.2"
    ;;
  --host)
    echo "i686-apple-darwin11.4.2"
    ;;
  --cxx)
    echo "/usr/bin/clang++"
    ;;
  --cxxflags)
    echo "-I/opt/local/include -I/opt/local/include -O2  -Wall -Wwrite-strings -pipe -Os -stdlib=libc++ -arch x86_64 -fno-strict-aliasing -D_REENTRANT  "
    ;;
  --picflags)
    echo ""
    ;;
  --libs)
    echo " -L/opt/local/lib -lmico2.3.13 -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64  -lssl -lcrypto -ldl -lm  -lpthread"
    ;;
  --cosslibs)
    echo " -L/opt/local/lib -lmicocoss2.3.13 -lmico2.3.13 -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64  -lssl -lcrypto -ldl -lm  -lpthread"
    ;;
  --help)
    usage
    ;;
  esac
done
