changeset 16974:4e3c65e8bb0b

canonicalize: make the right guess when cross-compiling to GNU * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to determine whether cross-compiling to glibc systems, so as to include GNU/Hurd.
author Ludovic Courtès <ludo@gnu.org>
date Sat, 07 Jul 2012 02:04:54 +0200
parents 25f8f6627e1e
children cdd33aafded1
files ChangeLog m4/canonicalize.m4
diffstat 2 files changed, 13 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2012-07-07  Ludovic Courtès  <ludo@gnu.org>
+	    Bruno Haible  <bruno@clisp.org>
+
+	canonicalize: make the right guess when cross-compiling to GNU
+	* m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
+	determine whether cross-compiling to glibc systems, so as to
+	include GNU/Hurd.
+
 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
 
 	timespec-sub: avoid duplicate include
--- a/m4/canonicalize.m4
+++ b/m4/canonicalize.m4
@@ -1,4 +1,4 @@
-# canonicalize.m4 serial 24
+# canonicalize.m4 serial 25
 
 dnl Copyright (C) 2003-2007, 2009-2012 Free Software Foundation, Inc.
 
@@ -94,10 +94,10 @@
      [gl_cv_func_realpath_works=yes],
      [gl_cv_func_realpath_works=no],
      [case "$host_os" in
-                # Guess yes on glibc systems.
-        *-gnu*) gl_cv_func_realpath_works="guessing yes" ;;
-                # If we don't know, assume the worst.
-        *)      gl_cv_func_realpath_works="guessing no" ;;
+                       # Guess yes on glibc systems.
+        *-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;;
+                       # If we don't know, assume the worst.
+        *)             gl_cv_func_realpath_works="guessing no" ;;
       esac
      ])
     rm -rf conftest.a conftest.d