From: Martin Kraemer Date: Thu, 10 Oct 2002 16:36:21 +0000 (+0000) Subject: Some versions of tr (noticed on a special Solaris8 version) fail to accept X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90e7451de80b76f45c2fb1b8a576f7bfac22d32f;p=thirdparty%2Fapache%2Fhttpd.git 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. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@97174 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/Configure b/src/Configure index 71be31ff522..7b01132b58c 100755 --- a/src/Configure +++ b/src/Configure @@ -1005,6 +1005,13 @@ echo "" >>$AP_CONFIG_AUTO_H 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 @@ export CPP 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