[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
No dummy .dep/*.Po files on AIX
From: |
Mathias Froehlich |
Subject: |
No dummy .dep/*.Po files on AIX |
Date: |
Wed, 22 Jun 2005 10:20:38 +0200 |
User-agent: |
KMail/1.7.2 |
Hi,
I came accross a problem while building ImageMagick on AIX 5.1:
Past ./configure, the 'dummy' .Po files for that build where all missing
including the .deps directories. Consequently 'make' could not find the
required files to include and aborted.
I traced that down to config.status, which contains the result of the
_AM_OUTPUT_DEPENDENCY_COMMANDS macro, that checks if a file config.status
needs to output, is a Makefile or not.
This check is done using someting like
grep 'generated by Automake' Makefile.
With ImageMagick-6.2.3 it happens that some lines in the Makefiles are longer
than 2048 characters. And on our AIX 5.1 box, grep complains, about too long
lines and returns with an error. That means config.status believes that that
Makefile is not generated by automake and it does not need to create the .Po
files.
Would it be possible to replace that
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
with
if head -1 $mf | grep '^#.*generated by automake' > /dev/null 2>&1; then
in _AM_OUTPUT_DEPENDENCY_COMMANDS from depout.m4?
That would, in our case, work around that particular problem.
In general such a change would increase the probability that this test does
not fail due to such a line limit.
For the record:
ImageMagick-6.2.3 uses Autoconf-2.59/automake-1.9.5.
And some relevant commands issued on that AIX box:
address@hidden $ uname -a
AIX riekaan 1 5 005725AA4C00
address@hidden $ grep '^#.*generated by automake' Makefile
# Makefile.in generated by automake 1.9.5 from Makefile.am.
grep: Maximum line length of 2048 exceeded.
address@hidden $ echo $?
2
address@hidden $ head -1 Makefile | grep '^#.*generated by automake'
# Makefile.in generated by automake 1.9.5 from Makefile.am.
address@hidden $ echo $?
0
Greetings
Mathias
--
Dr. Mathias Fröhlich, science + computing ag, Software Solutions
Hagellocher Weg 71-75, D-72070 Tuebingen, Germany
Phone: +49 7071 9457-268, Fax: +49 7071 9457-511
- No dummy .dep/*.Po files on AIX,
Mathias Froehlich <=