#!/bin/sh
# bin/ecl-config.pre.  Generated from ecl-config by configure.

usage()
{
  cat <<EOF
Usage: $0 [OPTIONS] [LIBS]
Options: 
	[--cflags]
	[--libs|--ldflags]
Libs:
	cmp
EOF
}

LDFLAGS="-lecl"
for i in $*; do
  case $i in
    --cflags|-c)
      echo_cflags=yes
      ;;
    --libs|--ldflags|-l)
      echo_ldflags=yes
      ;;
    cmp)
      LDFLAGS="$LDFLAGS -lcmp"
      ;;
    *)
      usage 1 >&2
      ;;
    esac;
done

if test "$echo_cflags" = "yes"; then
  echo "-Dopenbsd -I/usr/local/include  -I/usr/local/include"
fi

if test "$echo_ldflags" = "yes"; then
  echo "-Wl,--rpath,/usr/local/lib -L/usr/local/lib $LDFLAGS  -Wl,--rpath,/usr/local/lib -L/usr/local/lib   -Wl,--rpath,/usr/local/lib -L/usr/local/lib -lgc -lgc -lgc  -lpthread -lm  "
fi
