POV-Ray / povray

The Persistence of Vision Raytracer (POV-Ray)
https://www.povray.org/
GNU Affero General Public License v3.0
1.37k stars 282 forks source link

Makefile.in does not get created #6

Closed ryandesign closed 10 years ago

ryandesign commented 10 years ago

I am a manager of the MacPorts package management system, trying to update our povray package to version 3.7.0.0. There appear to be numerous warnings, culminating in the configure script failing because Makefile.in did not get created. Here is a log of what happens on OS X 10.9.

https://gist.github.com/ryandesign/7622361

c-lipka commented 10 years ago

The problem appears to be related to the automake version used. See the following newsgroup discussions on povray.unix for details:

news://news.povray.org:119/web.5280fbd39c90a98b1f457b8f0@news.povray.org news://news.povray.org:119/slrnl8rua3.ipl.bisqwit@bisqwit.iki.fi

ryandesign commented 10 years ago

Thanks. I couldn't follow those links because I don't have a newsreader set up, but I found this discussion (which may be the same thing) and was able to get past the configure stage with automake 1.14 using this patch:

--- unix/prebuild.sh.orig   2013-11-06 14:28:15.000000000 -0600
+++ unix/prebuild.sh    2013-11-23 19:25:18.000000000 -0600
@@ -724,7 +724,7 @@
 autoheader --warnings=all

 # Create all Makefile.in's from Makefile.am's
-automake --warnings=all ###--ignore-deps
+automake --add-missing --warnings=all ###--ignore-deps

 # Create configure from configure.ac
 autoconf --warnings=all
ryandesign commented 10 years ago

Although a lot of extra warnings do disappear by also using the other part:

--- unix/configure.ac.orig  2013-11-06 14:28:15.000000000 -0600
+++ unix/configure.ac   2013-11-23 20:25:41.000000000 -0600
@@ -166,7 +166,7 @@
 AC_CANONICAL_BUILD
 AC_CANONICAL_HOST

-AM_INIT_AUTOMAKE([1.9 dist-bzip2])
+AM_INIT_AUTOMAKE([1.9 dist-bzip2 subdir-objects])
 AM_MAINTAINER_MODE

 AX_FIX_INCORRECT_PATH(C_INCLUDE_PATH, ".", [pov_warn_path="$pov_warn_path C_INCLUDE_PATH"])