Cross Reference: nspr-nss-config
xref
: /
solaris-desktop
/
ext-sources
/
nspr-nss-config
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
nspr-nss-config revision 16554
16554
N/A
#!/
bin
/
sh
16554
N/A
16554
N/A
# This is a wrapper of pkg-config to simulate
nspr-config
/
nss-config
.
16554
N/A
# Usage: nspr-nss-config nspr [--version] [--libs] [--cflags]
16554
N/A
# or nspr-nss-config nss [--version] [--libs] [--cflags]
16554
N/A
16554
N/A
if
test
$# -
eq
0
;
then
16554
N/A
exit
1
16554
N/A
fi
16554
N/A
16554
N/A
program_name
=$
1
16554
N/A
shift
16554
N/A
16554
N/A
if
test
"
$program_name
"
!=
"nspr"
&&
test
"
$program_name
"
!=
"nss"
;
then
16554
N/A
exit
1
16554
N/A
fi
16554
N/A
16554
N/A
while
test
$# -
gt
0
;
do
16554
N/A
case
$
1
in
16554
N/A
--
version
)
16554
N/A
echo_version
=
yes
16554
N/A
;;
16554
N/A
--
cflags
)
16554
N/A
echo_cflags
=
yes
16554
N/A
;;
16554
N/A
--
libs
)
16554
N/A
echo_libs
=
yes
16554
N/A
;;
16554
N/A
esac
16554
N/A
shift
16554
N/A
done
16554
N/A
16554
N/A
if
test
"
$echo_version
"
=
"yes"
;
then
16554
N/A
pkg
-
config
$program_name
--
modversion
16554
N/A
fi
16554
N/A
16554
N/A
if
test
"
$echo_cflags
"
=
"yes"
;
then
16554
N/A
pkg
-
config
$program_name
--
cflags
16554
N/A
fi
16554
N/A
16554
N/A
if
test
"
$echo_libs
"
=
"yes"
;
then
16554
N/A
echo
-
R
/
usr
/
lib
/
mps
`
pkg
-
config
$program_name
--
libs
`
16554
N/A
fi