httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralf S. Engelschall" <...@engelschall.com>
Subject Re: [Patch] Support additional module subdirs
Date Fri, 17 Apr 1998 06:27:30 GMT

In article <E01E22F11C60D11183FC0000F81F9D1D515342@gensym-nt2.gensym.com> you wrote:

> Feel free to solve my problem anyway
> that strikes your fancy!  I like your solution
> more, but don't know why.

We have one more problem: the initial backslashes. So, I though about the
problem again and found that we only need a trivial change to the usage of AWK
to solve the problem. We simply replace the "manual expansion + BEGIN action"
with a "data stream + data action" variant. This way the AUTOLIBS can be
arbitrarily long.

Works fine for me. Please test this patch and if it also works fine for your
SunOS4 and SGI platforms, we can commit it.

Index: Configure
===================================================================
RCS file: /e/apache/REPOS/apache-1.3/src/Configure,v
retrieving revision 1.239
diff -u -r1.239 Configure
--- Configure	1998/04/16 17:30:47	1.239
+++ Configure	1998/04/17 06:22:28
@@ -1362,12 +1362,10 @@
 ## Now add the auto-generated library targets.  Need to use awk so we
 ## don't hang a continuation on the last line.
 ##
-$CAT > $awkfile <<EOF3
-    BEGIN {
-	split ("$AUTOLIBS", libs)
-EOF3
-$CAT >> $awkfile <<'EOF4'
+$CAT > $awkfile <<'EOF4'
+    {
 	z = 0
+	split ($0, libs)
 	for ( lib in libs ) {
 	    if (z != 0)
 		printf (" \\\n")
@@ -1379,7 +1377,7 @@
 	printf ("\n")
     }
 EOF4
-awk -f $awkfile >>Makefile </dev/null
+echo "$AUTOLIBS" | awk -f $awkfile >>Makefile
 echo "" >>Makefile
 
 ####################################################################

                                       Ralf S. Engelschall
                                       rse@engelschall.com
                                       www.engelschall.com

Mime
View raw message