tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/webapp/support wa_apxs.m4
Date Wed, 01 May 2002 14:19:42 GMT
pier        02/05/01 07:19:42

  Modified:    webapp/support wa_apxs.m4
  Log:
  Correctly handle the value of APXS when this is specified as an ABSOLUTE
  file name (AC_PATH_PROG doesn't like full paths).
  
  Revision  Changes    Path
  1.2       +9 -2      jakarta-tomcat-connectors/webapp/support/wa_apxs.m4
  
  Index: wa_apxs.m4
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/webapp/support/wa_apxs.m4,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- wa_apxs.m4	1 May 2002 00:25:49 -0000	1.1
  +++ wa_apxs.m4	1 May 2002 14:19:42 -0000	1.2
  @@ -57,7 +57,7 @@
   
   dnl --------------------------------------------------------------------------
   dnl Author Pier Fumagalli <pier@betaversion.org>
  -dnl Version $Id: wa_apxs.m4,v 1.1 2002/05/01 00:25:49 pier Exp $
  +dnl Version $Id: wa_apxs.m4,v 1.2 2002/05/01 14:19:42 pier Exp $
   dnl --------------------------------------------------------------------------
   
   dnl --------------------------------------------------------------------------
  @@ -86,7 +86,14 @@
           esac
         ])
       AC_MSG_RESULT([${tempval}])
  -    AC_PATH_PROG($1,[${tempval}])
  +    if test -x "${tempval}" ; then
  +      tempdir=`dirname "${tempval}"`
  +      tempfil=`basename "${tempval}"`
  +      WA_PATH_DIR([tempdir],[${tempdir}],[apxs])
  +      $1="${tempdir}/${tempfil}"
  +    else
  +      AC_PATH_PROG($1,[${tempval}])
  +    fi
       
       if test -z "${$1}" ; then
         AC_MSG_ERROR([cannot find apxs utility "${tempval}"])
  
  
  

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message