| 1 | #!/bin/sh |
| 2 | # @configure_input@ |
| 3 | |
| 4 | usage() |
| 5 | { |
| 6 | cat <<EOF |
| 7 | Usage: $0 [OPTIONS] [LIBS] |
| 8 | Options: |
| 9 | [--cflags] |
| 10 | [--libs|--ldflags] |
| 11 | Libs: |
| 12 | cmp |
| 13 | EOF |
| 14 | } |
| 15 | |
| 16 | LDFLAGS="-lecl" |
| 17 | for i in $*; do |
| 18 | case $i in |
| 19 | --cflags|-c) |
| 20 | echo_cflags=yes |
| 21 | ;; |
| 22 | --libs|--ldflags|-l) |
| 23 | echo_ldflags=yes |
| 24 | ;; |
| 25 | cmp) |
| 26 | LDFLAGS="$LDFLAGS -lcmp" |
| 27 | ;; |
| 28 | *) |
| 29 | usage 1 >&2 |
| 30 | ;; |
| 31 | esac; |
| 32 | done |
| 33 | |
| 34 | if test "$echo_cflags" = "yes"; then |
| 35 | echo "@ECL_CFLAGS@ @GMP_CPPFLAGS@ @DEBUG_CFLAGS@ -I@includedir\@" |
| 36 | fi |
| 37 | |
| 38 | if test "$echo_ldflags" = "yes"; then |
| 39 | echo "@ECL_LDRPATH@ -L@libdir\@ $LDFLAGS @LDFLAGS@ @GMP_LDFLAGS@ @LIBS@" |
| 40 | fi |