diff mbox series

[v2] configure: default to --prefix=/usr on GNU/Linux

Message ID xnsesxkwf5.fsf@greed.delorie.com
State New
Headers show
Series [v2] configure: default to --prefix=/usr on GNU/Linux | expand

Commit Message

DJ Delorie Oct. 15, 2024, 7:17 p.m. UTC
Andreas Schwab <schwab@linux-m68k.org> writes:
>> +ac_default_prefix=/usr
>
> AC_PREFIX_DEFAULT([/usr])

Fixed:

I'm getting tired of always typing --prefix=/usr
so making it the default.

Comments

Maciej W. Rozycki Oct. 15, 2024, 7:32 p.m. UTC | #1
On Tue, 15 Oct 2024, DJ Delorie wrote:

> --- a/sysdeps/unix/sysv/linux/configure
> +++ b/sysdeps/unix/sysv/linux/configure
> @@ -1,3 +1,4 @@
> +ac_default_prefix=/usr
>  # This file is generated from configure.ac by Autoconf.  DO NOT EDIT!
>   # Local configure fragment for sysdeps/unix/sysv/linux.
>  

 This seems weird.

  Maciej
diff mbox series

Patch

diff --git a/sysdeps/unix/sysv/linux/configure b/sysdeps/unix/sysv/linux/configure
old mode 100644
new mode 100755
index 4d642e953b..8cda8e9451
--- a/sysdeps/unix/sysv/linux/configure
+++ b/sysdeps/unix/sysv/linux/configure
@@ -1,3 +1,4 @@ 
+ac_default_prefix=/usr
 # This file is generated from configure.ac by Autoconf.  DO NOT EDIT!
  # Local configure fragment for sysdeps/unix/sysv/linux.
 
@@ -116,7 +117,9 @@  if test -n "$sysheaders"; then
   CPPFLAGS=$OLD_CPPFLAGS
 fi
 
-if test "$prefix" = "/usr/local" -o "$prefix" = "/usr/local/" -o "$prefix" = "NONE"; then
+
+
+if test "$prefix" = "/usr/local" -o "$prefix" = "/usr/local/"; then
   if test $enable_sanity = yes; then
     echo "\
 *** On GNU/Linux systems the GNU C Library should not be installed into
diff --git a/sysdeps/unix/sysv/linux/configure.ac b/sysdeps/unix/sysv/linux/configure.ac
index c177e082a9..4c43cda877 100644
--- a/sysdeps/unix/sysv/linux/configure.ac
+++ b/sysdeps/unix/sysv/linux/configure.ac
@@ -71,7 +71,9 @@  if test -n "$sysheaders"; then
   CPPFLAGS=$OLD_CPPFLAGS
 fi
 
-if test "$prefix" = "/usr/local" -o "$prefix" = "/usr/local/" -o "$prefix" = "NONE"; then
+AC_PREFIX_DEFAULT([/usr])
+
+if test "$prefix" = "/usr/local" -o "$prefix" = "/usr/local/"; then
   if test $enable_sanity = yes; then
     echo "\
 *** On GNU/Linux systems the GNU C Library should not be installed into