config: Use --program-prefix=eu- by default.
authorMark Wielaard <mjw@redhat.com>
Wed, 2 Mar 2016 14:04:43 +0000 (15:04 +0100)
committerMark Wielaard <mjw@redhat.com>
Wed, 2 Mar 2016 16:13:53 +0000 (17:13 +0100)
We want eu- as default program prefix if none was given by the user.
But if the user explicitly provided --program-prefix="" then pretend
it wasn't set at all (NONE).

This makes sure all tools will be installed as eu-<program>.
We want this default since most tools would normally conflict with
the GNU binutils variants that have similar names.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
ChangeLog
NEWS
configure.ac

index 07b525c..9661977 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-03-02  Mark Wielaard  <mjw@redhat.com>
+
+       * configure.ac: Set program_prefix to eu- by default.
+       * NEWS (0.166): New sections, document --program-prefix default.
+
 2016-02-13  Mark Wielaard  <mjw@redhat.com>
 
        * configure.ac: Add check for whether gcc accepts -Wnull-dereference.
diff --git a/NEWS b/NEWS
index 53fe364..1a55d3a 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,8 @@
+Version 0.166
+
+config: The default program prefix for the installed tools is now eu-.
+        Use configure --program-prefix="" to not use a program prefix.
+
 Version 0.165
 
 elfcompress: New utility to compress or decompress ELF sections.
index df58b5b..dd510a0 100644 (file)
@@ -19,6 +19,19 @@ dnl  You should have received a copy of the GNU General Public License
 dnl  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 AC_INIT([elfutils],[0.165],[https://bugzilla.redhat.com/],[elfutils])
 
+# We want eu- as default program prefix if none was given by the user.
+# But if the user explicitly provided --program-prefix="" then pretend
+# it wasn't set at all (NONE). We want to test this really early before
+# configure has a chance to use the value.
+
+if test "x$program_prefix" = "xNONE"; then
+  AC_MSG_NOTICE([No --program-prefix given, using "eu-"])
+  program_prefix="eu-"
+elif test "x$program_prefix" = "x"; then
+  AC_MSG_NOTICE([Using no program-prefix])
+  program_prefix=NONE
+fi
+
 AC_CONFIG_AUX_DIR([config])
 AC_CONFIG_FILES([config/Makefile])