Return-Path: Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 8235 invoked by uid 500); 10 Oct 2002 16:36:23 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 8219 invoked by uid 500); 10 Oct 2002 16:36:23 -0000 Delivered-To: apmail-apache-1.3-cvs@apache.org Date: 10 Oct 2002 16:36:22 -0000 Message-ID: <20021010163622.47283.qmail@icarus.apache.org> From: martin@apache.org To: apache-1.3-cvs@apache.org Subject: cvs commit: apache-1.3/src Configure X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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