pier        02/05/14 17:25:49

  Modified:    webapp/support wa_ant.m4 wa_apxs.m4 wa_perl.m4 wa_util.m4
  Log:
  Fix (again) AC_PATH_PROG which is _so_broken_ when trying to resolve
  full-specified-paths wich are not in $PATH
  
  Revision  Changes    Path
  1.5       +4 -4      jakarta-tomcat-connectors/webapp/support/wa_ant.m4
  
  Index: wa_ant.m4
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/webapp/support/wa_ant.m4,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- wa_ant.m4 14 May 2002 20:21:06 -0000      1.4
  +++ wa_ant.m4 15 May 2002 00:25:49 -0000      1.5
  @@ -57,7 +57,7 @@
   
   dnl --------------------------------------------------------------------------
   dnl Author Pier Fumagalli <[EMAIL PROTECTED]>
  -dnl Version $Id: wa_ant.m4,v 1.4 2002/05/14 20:21:06 pier Exp $
  +dnl Version $Id: wa_ant.m4,v 1.5 2002/05/15 00:25:49 pier Exp $
   dnl --------------------------------------------------------------------------
   
   dnl --------------------------------------------------------------------------
  @@ -89,7 +89,7 @@
           *)
             AC_MSG_RESULT([yes (${withval})])
             wa_ant_enabled="yes"
  -          AC_PATH_PROG([wa_ant_tempval],[${withval}],[])
  +          WA_PATH_PROG([wa_ant_tempval],[${withval}],[])
             if test -z "${wa_ant_tempval}" ; then
               AC_MSG_ERROR([${withval} is invalid])
             fi
  @@ -103,10 +103,10 @@
         wa_ant_tempval=""
       else
         if test -z "${wa_ant_tempval}" ; then
  -        AC_PATH_PROG([wa_ant_tempval],[ant],[])
  +        WA_PATH_PROG([wa_ant_tempval],[ant],[])
         fi
         if test -z "${wa_ant_tempval}" ; then
  -        AC_PATH_PROG([wa_ant_tempval],[ant.sh],[])
  +        WA_PATH_PROG([wa_ant_tempval],[ant.sh],[])
         fi
         if test -z "${wa_ant_tempval}" ; then
           if test "${wa_ant_enabled}" = "yes" ; then
  
  
  
  1.8       +3 -3      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.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- wa_apxs.m4        13 May 2002 23:23:19 -0000      1.7
  +++ wa_apxs.m4        15 May 2002 00:25:49 -0000      1.8
  @@ -57,7 +57,7 @@
   
   dnl --------------------------------------------------------------------------
   dnl Author Pier Fumagalli <[EMAIL PROTECTED]>
  -dnl Version $Id: wa_apxs.m4,v 1.7 2002/05/13 23:23:19 pier Exp $
  +dnl Version $Id: wa_apxs.m4,v 1.8 2002/05/15 00:25:49 pier Exp $
   dnl --------------------------------------------------------------------------
   
   dnl --------------------------------------------------------------------------
  @@ -86,7 +86,7 @@
           esac
         ])
       AC_MSG_RESULT([${wa_apxs_tempval}])
  -    WA_PATH_PROG([$1],[${wa_apxs_tempval}],[apxs])
  +    WA_PATH_PROG_FAIL([$1],[${wa_apxs_tempval}],[apxs])
       unset wa_apxs_tempval
     ])
   
  @@ -155,7 +155,7 @@
       WA_APXS_GET([wa_apxs_server_sbindir],[$2],[SBINDIR])
       WA_APXS_GET([wa_apxs_server_target],[$2],[TARGET])
       wa_apxs_server_daemon="${wa_apxs_server_sbindir}/${wa_apxs_server_target}"
  -    WA_PATH_PROG([wa_apxs_server_daemon],[${wa_apxs_server_daemon}],[httpd])
  +    WA_PATH_PROG_FAIL([wa_apxs_server_daemon],[${wa_apxs_server_daemon}],[httpd])
       AC_MSG_CHECKING([httpd version])
       wa_apxs_server_info="`${wa_apxs_server_daemon} -v | head -1`"
       wa_apxs_server_info="`echo ${wa_apxs_server_info} | cut -d: -f2`"
  
  
  
  1.3       +3 -3      jakarta-tomcat-connectors/webapp/support/wa_perl.m4
  
  Index: wa_perl.m4
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/webapp/support/wa_perl.m4,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- wa_perl.m4        14 May 2002 20:21:06 -0000      1.2
  +++ wa_perl.m4        15 May 2002 00:25:49 -0000      1.3
  @@ -57,7 +57,7 @@
   
   dnl --------------------------------------------------------------------------
   dnl Author Pier Fumagalli <[EMAIL PROTECTED]>
  -dnl Version $Id: wa_perl.m4,v 1.2 2002/05/14 20:21:06 pier Exp $
  +dnl Version $Id: wa_perl.m4,v 1.3 2002/05/15 00:25:49 pier Exp $
   dnl --------------------------------------------------------------------------
   
   dnl --------------------------------------------------------------------------
  @@ -89,7 +89,7 @@
           *)
             AC_MSG_RESULT([yes (${withval})])
             wa_perl_enabled="yes"
  -          AC_PATH_PROG([wa_perl_tempval],[${withval}],[])
  +          WA_PATH_PROG([wa_perl_tempval],[${withval}],[])
             if test -z "${wa_perl_tempval}" ; then
               AC_MSG_ERROR([${withval} is invalid])
             fi
  @@ -103,7 +103,7 @@
         wa_perl_tempval=""
       else
         if test -z "${wa_perl_tempval}" ; then
  -        AC_PATH_PROG([wa_perl_tempval],[perl],[])
  +        WA_PATH_PROG([wa_perl_tempval],[perl],[])
         fi
         if test -z "${wa_perl_tempval}" ; then
           if test "${wa_perl_enabled}" = "yes" ; then
  
  
  
  1.7       +18 -2     jakarta-tomcat-connectors/webapp/support/wa_util.m4
  
  Index: wa_util.m4
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/webapp/support/wa_util.m4,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- wa_util.m4        14 May 2002 21:45:43 -0000      1.6
  +++ wa_util.m4        15 May 2002 00:25:49 -0000      1.7
  @@ -57,7 +57,7 @@
   
   dnl --------------------------------------------------------------------------
   dnl Author Pier Fumagalli <[EMAIL PROTECTED]>
  -dnl Version $Id: wa_util.m4,v 1.6 2002/05/14 21:45:43 pier Exp $
  +dnl Version $Id: wa_util.m4,v 1.7 2002/05/15 00:25:49 pier Exp $
   dnl --------------------------------------------------------------------------
   
   dnl --------------------------------------------------------------------------
  @@ -140,14 +140,30 @@
     [
       wa_path_prog_tempval="`echo $2`"
       if test -x "${wa_path_prog_tempval}" ; then
  +      AC_MSG_CHECKING([for $3])
         wa_path_prog_tempdir=`dirname "${wa_path_prog_tempval}"`
         wa_path_prog_tempfil=`basename "${wa_path_prog_tempval}"`
         WA_PATH_DIR([wa_path_prog_tempdir],[${wa_path_prog_tempdir}],[$3])
         $1="${wa_path_prog_tempdir}/${wa_path_prog_tempfil}"
  +      AC_MSG_RESULT([${$1}])
       else
         AC_PATH_PROG($1,[${wa_path_prog_tempval}])
       fi
  -    AC_MSG_CHECKING([for $3 binary path])
  +  ])
  +
  +
  +dnl --------------------------------------------------------------------------
  +dnl WA_PATH_PROG_FAIL
  +dnl   Resolve the FULL path name of an executable and fail if not found.
  +dnl   $1 => The variable where the full path name will be stored.
  +dnl   $2 => The executable to resolve.
  +dnl   $3 => The description of what we're trying to locate.
  +dnl --------------------------------------------------------------------------
  +AC_DEFUN(
  +  [WA_PATH_PROG_FAIL],
  +  [
  +    WA_PATH_PROG($1,$2,$3)
  +    AC_MSG_CHECKING([for $3 availability])
       if test -z "${$1}" ; then
         AC_MSG_ERROR([cannot find $3 "${wa_apxs_tempval}"])
         exit 1
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to