2 # This Source Code Form is subject to the terms of the Mozilla Public
3 # License, v. 2.0. If a copy of the MPL was not distributed with this
4 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 major_version
=@MOD_MAJOR_VERSION@
10 minor_version
=@MOD_MINOR_VERSION@
11 patch_version
=@MOD_PATCH_VERSION@
16 Usage: nspr-config [OPTIONS] [LIBRARIES]
33 if test $# -eq 0; then
41 while test $# -gt 0; do
43 -*=*) optarg
=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
73 echo ${major_version}.${minor_version}.${patch_version}
97 # Set variables that may be dependent upon other variables
98 if test -z "$exec_prefix"; then
99 exec_prefix
=@exec_prefix@
101 if test -z "$includedir"; then
102 includedir
=@includedir@
104 if test -z "$libdir"; then
108 if test "$echo_prefix" = "yes"; then
112 if test "$echo_exec_prefix" = "yes"; then
116 if test "$echo_includedir" = "yes"; then
120 if test "$echo_libdir" = "yes"; then
124 if test "$echo_cflags" = "yes"; then
128 if test "$echo_libs" = "yes"; then
130 if test -n "$lib_plds"; then
131 libdirs
="$libdirs -lplds${major_version}"
133 if test -n "$lib_plc"; then
134 libdirs
="$libdirs -lplc${major_version}"
136 if test -n "$lib_nspr"; then
137 libdirs
="$libdirs -lnspr${major_version}"
139 os_ldflags
="@LDFLAGS@"
140 for i
in $os_ldflags ; do
141 if echo $i |
grep \^
-L >/dev
/null
; then
142 libdirs
="$libdirs $i"
145 echo $libdirs @OS_LIBS@