Last change
on this file since 62890 was 1, checked in by vboxsync, 55 years ago |
import
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
1.9 KB
|
Line | |
---|
1 | #!/bin/sh
|
---|
2 |
|
---|
3 | prefix=@prefix@
|
---|
4 | exec_prefix=@exec_prefix@
|
---|
5 | exec_prefix_set=no
|
---|
6 |
|
---|
7 | major_version=@MOD_MAJOR_VERSION@
|
---|
8 | minor_version=@MOD_MINOR_VERSION@
|
---|
9 | patch_version=@MOD_PATCH_VERSION@
|
---|
10 |
|
---|
11 | usage()
|
---|
12 | {
|
---|
13 | cat <<EOF
|
---|
14 | Usage: nspr-config [OPTIONS] [LIBRARIES]
|
---|
15 | Options:
|
---|
16 | [--prefix[=DIR]]
|
---|
17 | [--exec-prefix[=DIR]]
|
---|
18 | [--version]
|
---|
19 | [--libs]
|
---|
20 | [--cflags]
|
---|
21 | Libraries:
|
---|
22 | nspr
|
---|
23 | plc
|
---|
24 | plds
|
---|
25 | EOF
|
---|
26 | exit $1
|
---|
27 | }
|
---|
28 |
|
---|
29 | if test $# -eq 0; then
|
---|
30 | usage 1 1>&2
|
---|
31 | fi
|
---|
32 |
|
---|
33 | lib_nspr=yes
|
---|
34 | lib_plc=yes
|
---|
35 | lib_plds=yes
|
---|
36 |
|
---|
37 | while test $# -gt 0; do
|
---|
38 | case "$1" in
|
---|
39 | -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
|
---|
40 | *) optarg= ;;
|
---|
41 | esac
|
---|
42 |
|
---|
43 | case $1 in
|
---|
44 | --prefix=*)
|
---|
45 | prefix=$optarg
|
---|
46 | if test $exec_prefix_set = no ; then
|
---|
47 | exec_prefix=$optarg
|
---|
48 | fi
|
---|
49 | ;;
|
---|
50 | --prefix)
|
---|
51 | echo_prefix=yes
|
---|
52 | ;;
|
---|
53 | --exec-prefix=*)
|
---|
54 | exec_prefix=$optarg
|
---|
55 | exec_prefix_set=yes
|
---|
56 | ;;
|
---|
57 | --exec-prefix)
|
---|
58 | echo_exec_prefix=yes
|
---|
59 | ;;
|
---|
60 | --version)
|
---|
61 | echo ${major_version}.${minor_version}.${patch_version}
|
---|
62 | ;;
|
---|
63 | --cflags)
|
---|
64 | echo_cflags=yes
|
---|
65 | ;;
|
---|
66 | --libs)
|
---|
67 | echo_libs=yes
|
---|
68 | ;;
|
---|
69 | nspr)
|
---|
70 | lib_nspr=yes
|
---|
71 | ;;
|
---|
72 | plc)
|
---|
73 | lib_plc=yes
|
---|
74 | ;;
|
---|
75 | plds)
|
---|
76 | lib_plds=yes
|
---|
77 | ;;
|
---|
78 | *)
|
---|
79 | usage 1 1>&2
|
---|
80 | ;;
|
---|
81 | esac
|
---|
82 | shift
|
---|
83 | done
|
---|
84 |
|
---|
85 | if test "$echo_prefix" = "yes"; then
|
---|
86 | echo $prefix
|
---|
87 | fi
|
---|
88 |
|
---|
89 | if test "$echo_exec_prefix" = "yes"; then
|
---|
90 | echo $exec_prefix
|
---|
91 | fi
|
---|
92 |
|
---|
93 | if test "$echo_cflags" = "yes"; then
|
---|
94 | echo -I${prefix}/include/nspr
|
---|
95 | fi
|
---|
96 |
|
---|
97 | if test "$echo_libs" = "yes"; then
|
---|
98 | libdirs=-L${exec_prefix}/lib
|
---|
99 | if test -n "$lib_plds"; then
|
---|
100 | libdirs="$libdirs -lplds${major_version}"
|
---|
101 | fi
|
---|
102 | if test -n "$lib_plc"; then
|
---|
103 | libdirs="$libdirs -lplc${major_version}"
|
---|
104 | fi
|
---|
105 | if test -n "$lib_nspr"; then
|
---|
106 | libdirs="$libdirs -lnspr${major_version}"
|
---|
107 | fi
|
---|
108 | os_ldflags="@LDFLAGS@"
|
---|
109 | for i in $os_ldflags ; do
|
---|
110 | if echo $i | grep \^-L >/dev/null; then
|
---|
111 | libdirs="$libdirs $i"
|
---|
112 | fi
|
---|
113 | done
|
---|
114 | echo $libdirs @OS_LIBS@
|
---|
115 | fi
|
---|
116 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.