File: gengameng-config.in

package info (click to toggle)
gengameng 4.1-7
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,468 kB
  • ctags: 177
  • sloc: sh: 8,342; cpp: 935; makefile: 110
file content (83 lines) | stat: -rwxr-xr-x 1,225 bytes parent folder | download | duplicates (2)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#!/bin/bash -e
# $Id$
# Configuration report script for @PACKAGE@ @VERSION@

prefix=@prefix@
exec_prefix=@exec_prefix@

sdl_cflags=`sdl-config --cflags`
sdl_libs="`sdl-config --libs` -lSDL_image"


# Remove any -rpath option from SDL_LIBS, so as not to hardcode
# the library path into the executable file:
#
sdl_libs=`echo $sdl_libs | sed 's:-Wl,-rpath,[^ ]*: :g'`


function usage()
{
	exit_code=$1

	cat <<__EOF__
Usage: @PACKAGE@-config [OPTION]...

Generic options
  --version   print @PACKAGE@ version information
  --help      print this help and exit

Compilation support options
  --cflags    print @PACKAGE@/SDL pre-processor and compiler flags
  --libs      print @PACKAGE@/SDL library linking information

Install directories @PACKAGE@ was configured to:
  --prefix
  --exec-prefix

__EOF__

	exit $exit_code
}



while test $# -gt 0; do

	case "$1" in

		--version)
			echo "@VERSION@"
			exit 0
			;;

		--help)
			usage 0
			;;

		--cflags)
			echo "-I@includedir@ $sdl_cflags"
			exit 0
			;;

		--libs)
			echo "-L@libdir@ -l@PACKAGE@ $sdl_libs"
			exit 0
			;;

		--prefix)
			echo "$prefix"
			exit 0
			;;

		--exec_prefix)
			echo "$exec_prefix"
			exit 0
			;;

		*)
			usage 1
			;;
	esac

	shift
done