Author: cazfi
Date: Sun Jul  6 23:25:33 2014
New Revision: 25402

URL: http://svn.gna.org/viewcvs/freeciv?rev=25402&view=rev
Log:
Add "-lintl" to UTILITY_LIBS when we notice that we need it.

See bug #22266

Modified:
    trunk/configure.ac

Modified: trunk/configure.ac
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/configure.ac?rev=25402&r1=25401&r2=25402&view=diff
==============================================================================
--- trunk/configure.ac  (original)
+++ trunk/configure.ac  Sun Jul  6 23:25:33 2014
@@ -521,9 +521,10 @@
      FC_CHECK_NGETTEXT_RUNTIME(,have_working_ngettext=1,)],)
 
   if test "$have_working_ngettext" = "0"; then
-    AC_CHECK_LIB(intl, ngettext,
-      [AC_MSG_CHECKING(whether libintl's ngettext works at runtime)
-       FC_CHECK_NGETTEXT_RUNTIME("-lintl",have_working_ngettext=1,)],)
+    AC_CHECK_LIB([intl], [ngettext],
+      [AC_MSG_CHECKING([whether libintl's ngettext works at runtime])
+       FC_CHECK_NGETTEXT_RUNTIME(["-lintl"],[have_working_ngettext=1
+UTILITY_LIBS="${UTILITY_LIBS} -lintl"],)],)
   fi
 
   if test "$have_working_ngettext" = "0"; then


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to