5 major_version
=@MOD_MAJOR_VERSION@
6 minor_version
=@MOD_MINOR_VERSION@
7 patch_version
=@MOD_PATCH_VERSION@
12 Usage: nspr-config [OPTIONS] [LIBRARIES]
29 if test $# -eq 0; then
37 while test $# -gt 0; do
39 -*=*) optarg
=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
69 echo ${major_version}.${minor_version}.${patch_version}
93 # Set variables that may be dependent upon other variables
94 if test -z "$exec_prefix"; then
95 exec_prefix
=@exec_prefix@
97 if test -z "$includedir"; then
98 includedir
=@includedir@
100 if test -z "$libdir"; then
104 if test "$echo_prefix" = "yes"; then
108 if test "$echo_exec_prefix" = "yes"; then
112 if test "$echo_includedir" = "yes"; then
116 if test "$echo_libdir" = "yes"; then
120 if test "$echo_cflags" = "yes"; then
124 if test "$echo_libs" = "yes"; then
126 if test -n "$lib_plds"; then
127 libdirs
="$libdirs -lplds${major_version}"
129 if test -n "$lib_plc"; then
130 libdirs
="$libdirs -lplc${major_version}"
132 if test -n "$lib_nspr"; then
133 libdirs
="$libdirs -lnspr${major_version}"
135 os_ldflags
="@LDFLAGS@"
136 for i
in $os_ldflags ; do
137 if echo $i |
grep \^
-L >/dev
/null
; then
138 libdirs
="$libdirs $i"
141 echo $libdirs @OS_LIBS@