/[jscoverage]/trunk/js/build/autoconf/nspr.m4
ViewVC logotype

Diff of /trunk/js/build/autoconf/nspr.m4

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 506 by siliconforks, Tue Dec 9 03:37:47 2008 UTC revision 507 by siliconforks, Sun Jan 10 07:23:34 2010 UTC
# Line 5  Line 5 
5    
6  dnl AM_PATH_NSPR([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])  dnl AM_PATH_NSPR([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
7  dnl Test for NSPR, and define NSPR_CFLAGS and NSPR_LIBS  dnl Test for NSPR, and define NSPR_CFLAGS and NSPR_LIBS
8    dnl
9    dnl If the nspr-config script is available, use it to find the
10    dnl appropriate CFLAGS and LIBS, and to check for the required
11    dnl version, and run ACTION-IF-FOUND.
12    dnl
13    dnl Otherwise, if NO_NSPR_CONFIG_SYSTEM_VERSION is set, we use it,
14    dnl NO_NSPR_CONFIG_SYSTEM_CFLAGS, and NO_NSPR_CONFIG_SYSTEM_LIBS to
15    dnl provide default values, and run ACTION-IF-FOUND.  (Some systems
16    dnl ship NSPR without nspr-config, but can glean the appropriate flags
17    dnl and version.)
18    dnl
19    dnl Otherwise, run ACTION-IF-NOT-FOUND.
20  AC_DEFUN([AM_PATH_NSPR],  AC_DEFUN([AM_PATH_NSPR],
21  [dnl  [dnl
22    
# Line 38  Line 50 
50          AC_MSG_CHECKING(for NSPR - version >= $min_nspr_version)          AC_MSG_CHECKING(for NSPR - version >= $min_nspr_version)
51    
52          no_nspr=""          no_nspr=""
53          if test "$NSPR_CONFIG" = "no"; then          if test "$NSPR_CONFIG" != "no"; then
                 no_nspr="yes"  
         else  
54                  NSPR_CFLAGS=`$NSPR_CONFIG $nspr_config_args --cflags`                  NSPR_CFLAGS=`$NSPR_CONFIG $nspr_config_args --cflags`
55                  NSPR_LIBS=`$NSPR_CONFIG $nspr_config_args --libs`                  NSPR_LIBS=`$NSPR_CONFIG $nspr_config_args --libs`
56                    NSPR_VERSION_STRING=`$NSPR_CONFIG $nspr_config_args --version`  
57            elif test -n "${NO_NSPR_CONFIG_SYSTEM_VERSION}"; then
58                NSPR_CFLAGS="${NO_NSPR_CONFIG_SYSTEM_CFLAGS}"
59                    NSPR_LIBS="${NO_NSPR_CONFIG_SYSTEM_LDFLAGS}"
60                    NSPR_VERSION_STRING="$NO_NSPR_CONFIG_SYSTEM_VERSION"
61            else
62                no_nspr="yes"
63            fi
64    
65                  nspr_config_major_version=`$NSPR_CONFIG $nspr_config_args --version | \          if test -z "$no_nspr"; then
66                    nspr_config_major_version=`echo $NSPR_VERSION_STRING | \
67                          sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`                          sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
68                  nspr_config_minor_version=`$NSPR_CONFIG $nspr_config_args --version | \                  nspr_config_minor_version=`echo $NSPR_VERSION_STRING | \
69                          sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`                          sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
70                  nspr_config_micro_version=`$NSPR_CONFIG $nspr_config_args --version | \                  nspr_config_micro_version=`echo $NSPR_VERSION_STRING | \
71                          sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`                          sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
72                  min_nspr_major_version=`echo $min_nspr_version | \                  min_nspr_major_version=`echo $min_nspr_version | \
73                          sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`                          sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`

Legend:
Removed from v.506  
changed lines
  Added in v.507

  ViewVC Help
Powered by ViewVC 1.1.24