fischer@iesd.auc.dk (Lars P. Fischer) (01/24/91)
During compilation of perl 3.0.44, I had the following problem: The Configure script would die at the following line: (cd ..; awk '' `awk '$1 !~ /PACKINGLIST/ {print $1}' MANIFEST` >/dev/null || kill $$) which is a, hmm, interesting way to check that a number of files is available. Now, I am using the GNU tools where possible and have these first in my path. It turns out that the GNU AWK does not like the empty program, ie. awk '' file will fail with awk: empty program text Replacing '' with '{}' turn out to work, and moreover also works with the awk program supplied by Sun. I therefore propose the patch below. Why GNU AWK refuses '' and allows '{}' is beyond me. A rose is a rose ... /Lars ----------------------------------------------------------------------------- *** Configure Tue Jan 22 21:20:13 1991 --- Configure.save Tue Jan 22 21:19:58 1991 *************** *** 258,264 **** : Now test for existence of everything in MANIFEST echo "First let's make sure your kit is complete. Checking..." ! (cd ..; awk '{}' `awk '$1 !~ /PACKINGLIST/ {print $1}' MANIFEST` >/dev/null || kill $$) echo "Looks good..." attrlist="mc68000 sun gcos unix ibm gimpel interdata tss os mert pyr" --- 258,264 ---- : Now test for existence of everything in MANIFEST echo "First let's make sure your kit is complete. Checking..." ! (cd ..; awk '' `awk '$1 !~ /PACKINGLIST/ {print $1}' MANIFEST` >/dev/null || kill $$) echo "Looks good..." attrlist="mc68000 sun gcos unix ibm gimpel interdata tss os mert pyr"