URL:
  <http://gna.org/bugs/?24907>

                 Summary: Generating the configure-script fails in old Ubuntu
                 Project: Freeciv
            Submitted by: mlinnaka
            Submitted on: Tue 02 Aug 2016 06:44:12 PM EEST
                Category: bootstrap
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: 2.5.5
         Discussion Lock: Any
        Operating System: GNU/Linux
         Planned Release: 
 Contains string changes: No

    _______________________________________________________

Details:

Generation of the configure-script (by typing command ./autogen.sh) fails in
Ubuntu 9.10. It has autoconf 2.64 and automake 1.11, satisfying the
requirements (autoconf >= 2.61 and automake >= 1.9) stated in the "INSTALL"
file, and enforced by the autogen.sh script.

Seems the problem is caused by macro processor m4 (GNU M4 1.4.13) getting
confused with two particular occurrances of nested brackets. I managed to fix
it changing the inner brackets into parentheses:

------------ proposed fix begins ------------

--- configure.ac        (revision 33419)
+++ configure.ac        (working copy)
@@ -438,12 +438,12 @@
 [test "x$ai_mod_static_threaded" = "xyes"])
 
 AC_ARG_WITH([default-ai],
-  AS_HELP_STRING([--with-default-ai], [default ai type [first static]]),
+  AS_HELP_STRING([--with-default-ai], [default ai type (first static)]),
   [default_ai_set="${withval}"],
   [])
 
 AC_ARG_WITH([ai-lib],
-  AS_HELP_STRING([--with-ai-lib], [build in default AI code [if needed]]),
+  AS_HELP_STRING([--with-ai-lib], [build in default AI code (if needed)]),
   [ai_mod_default_needed=yes], [])
 
 AM_CONDITIONAL([AI_MOD_DEFAULT_NEEDED],

------------ proposed fix ends ------------

This fix did not disturb compilation on my Ubuntu 16.04 which has GNU M4
1.4.17, so I suggest committing it to SVN.

The problem has been there for quite some time, possibly originally caused by
commit 22318 in year 2013.





    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?24907>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to