VirtualBox

source: vbox/trunk/src/libs/xpcom18a4/nsprpub/config/nspr-config.in@ 62890

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
3prefix=@prefix@
4exec_prefix=@exec_prefix@
5exec_prefix_set=no
6
7major_version=@MOD_MAJOR_VERSION@
8minor_version=@MOD_MINOR_VERSION@
9patch_version=@MOD_PATCH_VERSION@
10
11usage()
12{
13 cat <<EOF
14Usage: nspr-config [OPTIONS] [LIBRARIES]
15Options:
16 [--prefix[=DIR]]
17 [--exec-prefix[=DIR]]
18 [--version]
19 [--libs]
20 [--cflags]
21Libraries:
22 nspr
23 plc
24 plds
25EOF
26 exit $1
27}
28
29if test $# -eq 0; then
30 usage 1 1>&2
31fi
32
33lib_nspr=yes
34lib_plc=yes
35lib_plds=yes
36
37while 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
83done
84
85if test "$echo_prefix" = "yes"; then
86 echo $prefix
87fi
88
89if test "$echo_exec_prefix" = "yes"; then
90 echo $exec_prefix
91fi
92
93if test "$echo_cflags" = "yes"; then
94 echo -I${prefix}/include/nspr
95fi
96
97if 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@
115fi
116
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette