wesnoth-cvs-commits
[Top][All Lists]
Advanced

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

[Wesnoth-cvs-commits] wesnoth configure.ac


From: Alfredo Beaumont
Subject: [Wesnoth-cvs-commits] wesnoth configure.ac
Date: Tue, 12 Oct 2004 06:12:40 -0400

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Alfredo Beaumont <address@hidden>       04/10/12 10:05:19

Modified files:
        .              : configure.ac 

Log message:
        Fixes bug #10196 with patch #3358 (kde and gnome installing functional).
        Added support for desktopdir and icondir customization.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/configure.ac.diff?tr1=1.91&tr2=1.92&r1=text&r2=text

Patches:
Index: wesnoth/configure.ac
diff -u wesnoth/configure.ac:1.91 wesnoth/configure.ac:1.92
--- wesnoth/configure.ac:1.91   Sun Oct 10 23:11:54 2004
+++ wesnoth/configure.ac        Tue Oct 12 10:05:18 2004
@@ -10,7 +10,7 @@
 dnl AC_DEFINE([WESNOTH_DEFAULT_SERVER], ["devsrv.wesnoth.org"], [The default 
server for this version])
 AC_DEFINE([WESNOTH_DEFAULT_SERVER], ["devsrv.wesnoth.org:14999"], [The default 
server for this version])
 
-AC_REVISION([$Revision: 1.91 $])
+AC_REVISION([$Revision: 1.92 $])
 
 AC_CONFIG_AUX_DIR([config])
 AM_INIT_AUTOMAKE([foreign 1.5])
@@ -79,6 +79,37 @@
 AC_SUBST([FULLLOCALEDIR])
 AC_SUBST([HAS_RELATIVE_LOCALEDIR])
 
+
+# icondir and desktopdir may differ from datadir (suggested by Gentoo)
+AC_ARG_WITH([icondir],
+                 [  --with-icondir=dir      change icon directory under gnome],
+                 [case "${withval}" in
+                  yes)
+                               ICONDIR="$(datadir)/icons"
+                               ;;
+                  no)
+                               ;;
+                  *)
+                               ICONDIR="${withval}"
+                               ;;
+                  esac])
+AC_SUBST([ICONDIR])
+
+AC_ARG_WITH([desktopdir],
+                 [  --with-desktopdir=dir   change desktop directory under 
gnome 2],
+                 [case "${withval}" in
+                  yes) 
+                               DESKTOPDIR="$(datadir)/applications"
+                               ;;
+                  no)
+                               ;;
+                  *)
+                               DESKTOPDIR="${withval}"
+                               ;;
+                  esac])
+AC_SUBST([DESKTOPDIR])
+
+
 AC_ARG_ENABLE([server],
              [  --enable-server         enable compilation of server],
              [server=$enableval],
@@ -102,17 +133,27 @@
 AC_ARG_ENABLE([kde],,[AC_MSG_ERROR([Please use --with-kde instead of obsolete 
--enable-kde])])
 AC_ARG_WITH([kde],
              [  --with-kde              enable installation of icon and KDE 
menu entry],
-             [kde=$enableval],
+             [kde=$withval],
              [kde=no])
 
 AC_ARG_ENABLE([gnome],,[AC_MSG_ERROR([Please use --with-gnome instead of 
obsolete --enable-gnome])])
 AC_ARG_WITH([gnome],
              [  --with-gnome            enable installation of icon and GNOME 
menu entry],
-             [gnome=$enableval],
+             [gnome=$withval],
              [gnome=no])
 
+AC_ARG_ENABLE([gnome1],
+              [  --disable-gnome1        disable installation of icon and menu 
entry in GNOME1],
+              [gnome1=$enableval],
+              [gnome1=yes])
+
+AC_ARG_ENABLE([gnome2],
+                 [  --disable-gnome2        disable installation of icon and 
menu entry in GNOME2],
+                 [gnome2=$enableval],
+                 [gnome2=yes])
+                       
 AC_ARG_ENABLE([wzip],
-             [  --enable-wzip           enable compilation of wesnoth_zip 
program],
+             [  --enable-wzip           enable compilation of wesnoth_zip 
program],
              [wzip=$enableval],
              [wzip=no])
 
@@ -121,9 +162,6 @@
 AM_CONDITIONAL([CAMPAIGNSERVER], [test x$campaignserver = xyes])
 AM_CONDITIONAL([EDITOR], [test x$editor = xyes])
 AM_CONDITIONAL([TOOLS], [test x$tools = xyes])
-AM_CONDITIONAL([KDE], [test x$kde = xyes && test x$kdefound = xyes])
-AM_CONDITIONAL([GNOME1], [test x$gnome = xyes && test x$gnome1found = xyes])
-AM_CONDITIONAL([GNOME2], [test x$gnome = xyes && test x$gnome1found = xno])
 AM_CONDITIONAL([GCC], [test x$GXX = xyes])
 AM_CONDITIONAL([WZIP], [test x$wzip = xyes])
 AM_CONDITIONAL([INCLUDEDINTL], [test x$nls_cv_use_gnu_gettext = xyes])
@@ -134,6 +172,8 @@
 
 AC_PROG_CXX
 AC_PROG_CC
+AC_PROG_INSTALL
+
 have_libx11='no'
 if test "$with_x" != 'no'; then
 
@@ -309,6 +349,9 @@
 AC_SUBST([KDE_DESKTOP])
 AC_SUBST([KDE_ICON])
 
+AM_CONDITIONAL([KDE], [test x$kde = xyes && test x$kdefound = xyes])
+AM_CONDITIONAL([GNOME1], [test x$gnome = xyes && test x$gnome1found = xyes && 
test x$gnome1 = xyes])
+AM_CONDITIONAL([GNOME2], [test x$gnome = xyes && test x$gnome2 = xyes])
 
 #######################################################################
 # Checks for types.                                                   #




reply via email to

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