httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject cvs commit: apache-1.3/src Configure
Date Thu, 10 Oct 2002 16:36:22 GMT
martin      2002/10/10 09:36:22

  Modified:    src      Configure
  Log:
  Some versions of tr (noticed on a special Solaris8 version) fail to accept
  the "tr '[a-z]' '[A-Z]'" syntax.  Fall back to some heuristics to create
  a workable ap_config_auto.h anyway.
  
  Revision  Changes    Path
  1.460     +8 -1      apache-1.3/src/Configure
  
  Index: Configure
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/Configure,v
  retrieving revision 1.459
  retrieving revision 1.460
  diff -u -r1.459 -r1.460
  --- Configure	3 Oct 2002 19:58:08 -0000	1.459
  +++ Configure	10 Oct 2002 16:36:21 -0000	1.460
  @@ -1005,6 +1005,13 @@
   echo "#ifndef AP_CONFIG_AUTO_H" >>$AP_CONFIG_AUTO_H
   echo "#define AP_CONFIG_AUTO_H" >>$AP_CONFIG_AUTO_H
   
  +for uppercase in "tr [a-z] [A-Z]" "tr [:lower:] [:upper:]" "sed y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/"
  +do
  +  case `echo Apache | $uppercase` in
  +    APACHE) break;;
  +  esac
  +done
  +echo " + using \"$uppercase\" to uppercase"
   echo " + checking for system header files"
   CHECK_FOR_HEADERS="dlfcn.h dl.h bstring.h crypt.h unistd.h sys/resource.h sys/select.h
sys/processor.h sys/param.h"
   (
  @@ -1012,7 +1019,7 @@
   for header in $CHECK_FOR_HEADERS; do
       echo "" >>$AP_CONFIG_AUTO_H
       echo "/* check: #include <$header> */" >>$AP_CONFIG_AUTO_H
  -    name="`echo $header | sed -e 's:/:_:g' -e 's:\.:_:g' | tr '[a-z]' '[A-Z]'`"
  +    name="`echo $header | sed -e 's:/:_:g' -e 's:\.:_:g' | $uppercase`"
       ./helpers/checkheader.sh $header
       if [ $? -eq 0 ]; then
   	echo "#ifndef HAVE_${name}" >>$AP_CONFIG_AUTO_H
  
  
  

Mime
View raw message