File: pike-config.in

package info (click to toggle)
pike7.8 7.8.866-7
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 69,304 kB
  • ctags: 28,082
  • sloc: ansic: 252,877; xml: 36,537; makefile: 4,214; sh: 2,879; lisp: 655; asm: 591; objc: 212; pascal: 157; sed: 34
file content (36 lines) | stat: -rw-r--r-- 715 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/sh
#
# $Id: 163cf5b94b7319af72bd94742ae232744add868e $
#

MY_CFLAGS="@CFLAGS@"
MY_LDFLAGS="@LDFLAGS@"
MY_VERSION="@MAJOR@.@MINOR@.@BUILD@"

if test -z "$1"; then
  cat <<EOF
Usage: pike-config [--cflags] [--ldflags] [--version]

  --cflags        Print the compiler flags required to compile a module
  --ldflags       Print the linker flags required to link a module
  --version       Print the pike version for which the compilation is taking
                  place

EOF
  exit 1
fi

while true; do
  if test -z "$1"; then
    break
  fi

  case $1 in
    --cflags) echo -n "${MY_CFLAGS} " ;;
    --ldflags) echo -n "${MY_LDFLAGS} " ;;
    --version) echo -n "${MY_VERSION} " ;;
  esac
  shift
done

echo