Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1OqmTC-00084Y-V2 for mharc-grub-devel@gnu.org; Wed, 01 Sep 2010 08:31:15 -0400 Received: from [140.186.70.92] (port=58128 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OqmT6-0007uQ-8Z for grub-devel@gnu.org; Wed, 01 Sep 2010 08:31:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OqmT3-00072M-HA for grub-devel@gnu.org; Wed, 01 Sep 2010 08:31:08 -0400 Received: from smtpout01s1.x-echo.com ([193.252.149.37]:35389) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OqmT3-00071Y-Bo for grub-devel@gnu.org; Wed, 01 Sep 2010 08:31:05 -0400 Received: from colinux.localdomain (localhost.localdomain [127.0.0.1]) by colinux.localdomain (SMTP Server) with ESMTP id 97F281000E for ; Wed, 1 Sep 2010 14:25:45 +0200 (CEST) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=MIMEBOUNDARY To: grub-devel@gnu.org From: Yves Blusseau Date: Wed, 01 Sep 2010 14:25:45 +0200 Message-ID: <20100901122545.7615.28170.stgit@colinux.localdomain> In-Reply-To: <20100901122511.7615.48954.stgit@colinux.localdomain> References: <20100901122511.7615.48954.stgit@colinux.localdomain> User-Agent: StGit/0.15-97-g9680 X-AV-Checked: ClamAV using ClamSMTP X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: [PATCH 1/2] Define some usefull variables X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Sep 2010 12:31:12 -0000 This is a MIME message. --MIMEBOUNDARY Content-Disposition: inline MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit * configure.ac: Define some usefull variables. --- ChangeLog.new-variables | 2 ++ configure.ac | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 0 deletions(-) create mode 100644 ChangeLog.new-variables --MIMEBOUNDARY Content-Disposition: attachment; filename=new-variables.patch MIME-Version: 1.0 Content-Type: text/plain; name=new-variables.patch; charset="utf-8" Content-Transfer-Encoding: 7bit diff --git a/ChangeLog.new-variables b/ChangeLog.new-variables new file mode 100644 index 0000000..c069d97 --- /dev/null +++ b/ChangeLog.new-variables @@ -0,0 +1,2 @@ +Define some usefull variables + * configure.ac: Define some usefull variables. diff --git a/configure.ac b/configure.ac index 9fa4606..b167408 100644 --- a/configure.ac +++ b/configure.ac @@ -176,6 +176,21 @@ AC_SUBST(host_kernel) AC_SUBST(target_cpu) AC_SUBST(platform) +# Define default variables +grubname=`echo $PACKAGE | sed "$program_transform_name"` +AC_SUBST(grubname) + +case "$host_os" in + netbsd* | openbsd*) + # Because /boot is used for the boot block in NetBSD and OpenBSD, + default_bootdirname='' ;; + *) default_bootdirname='boot' ;; +esac +AC_SUBST(default_bootdirname) + +default_grubdirname="$grubname" +AC_SUBST(default_grubdirname) + # # Checks for build programs. # --MIMEBOUNDARY--