bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TMPDIR added, Makefile still empty


From: Ralf Wildenhues
Subject: Re: TMPDIR added, Makefile still empty
Date: Mon, 16 Mar 2009 21:35:44 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

Hello Werner, Michael,

let's please keep the list in Cc:, otherwise the next user with a UWIN
problem will not be smarter that we are now.

* Werner LEMBERG wrote on Sun, Mar 15, 2009 at 01:26:41PM CET:
> 
> > I had a few minutes to look things over, discovered that there was
> > no TMPDIR variable, so I set it to /c/windows/temp. I then ran
> > configure alone, and then under 'ksh -x'. Both times, Makefile was
> > empty.
> 
> I think we should start to investigate the tools used by `configure'
> since it apparently runs fine.

Yes, good idea.

> As Ralf has mentioned already, there
> is a high chance that your `sed' program is broken.

That, or the shell.

> Ralf, can you advise a small `sed' test, giving the typical usage in a
> configure script?

Let's try the following.  Please apply the attached patch to the groff
configure script.  Here's what it does: undo removal of conf$$* files
which contain temporary date.  Then run configure again.  Then find any
conf[0-9]*.sh and conf[0-9]*.awk files, gzip them, and post them.
Thank you.

I'm guessing that the shell has troubles expanding variables in unquoted
here documents.  Please run this shell script and check whether the
shell adds a carriage return (\r) to 'file' even when the script has
unix line endings.

#! /bin/sh
var='contains
several
newlines'
cat > file << EOF
$var
EOF


> > Also, Ralf, I do not have perl installed. Do you believe it is
> > absolutely necessary to install perl?
> 
> No.  `sed' is needed for sure (BTW, I can't find a list of the
> required utility programs needed by `configure' in the info pages of
> autoconf 2.63 -- this might be a useful addition) and `awk' too,
> AFAIK.

Yes, awk is now needed, too.  The list of required tools is documented
in the GNU Coding Standards, see:
<http://www.gnu.org/prep/standards/html_node/Utilities-in-Makefiles.html>
<http://www.gnu.org/prep/standards/html_node/Install-Command-Categories.html>

Cheers,
Ralf

--- configure   2009-01-09 15:25:52.000000000 +0100
+++ configure   2009-03-16 21:34:02.000000000 +0100
@@ -1707,7 +1707,7 @@
     $as_echo "$as_me: exit $exit_status"
   } >&5
   rm -f core *.core core.conftest.* &&
-    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
+    rm -f -r conftest* confdefs* $ac_clean_files &&
     exit $exit_status
 ' 0
 for ac_signal in 1 2 13 15; do
@@ -13011,7 +13011,6 @@
     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
   fi
 done
-rm -f conf$$subs.sh
 
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
@@ -13059,7 +13058,6 @@
   s/\n//
 }
 ' >>$CONFIG_STATUS || ac_write_fail=1
-rm -f conf$$subs.awk
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 _ACAWK
 cat >>"\$tmp/subs1.awk" <<_ACAWK &&




reply via email to

[Prev in Thread] Current Thread [Next in Thread]