public inbox for libc-ports@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] [SUGGESTION?] remove obsolete case statement in configure.in
@ 2013-01-13 19:32 Andreas Grapentin
  2013-01-13 19:38 ` Andreas Schwab
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Grapentin @ 2013-01-13 19:32 UTC (permalink / raw)
  To: libc-ports

Hi,

I'm currently in the process of understanding the build process of
glibc, and during that I was reading, and trying to grasp the
configure.in file. Am I correct, that the attached patch transforms a
case with only one relevant branch into a (probably better to
understand) if statement  that makes more sense?

Cheers, Andy

diff --git a/configure.in b/configure.in
index 16497fa..7c908cc 100644
--- a/configure.in
+++ b/configure.in
@@ -327,13 +327,9 @@ AC_ARG_ENABLE([nscd],
 # i486-pc-linux-gnu fully from i486-pc-gnu.  So we mutate a $host_os
 # of `gnu*' here to be `gnu-gnu*' just so that shlib-versions can
 # tell.  This doesn't get used much beyond that, so it's fairly safe.
-case "$host_os" in
-linux*)
-  ;;
-gnu*)
+if test "$host_os" = gnu*; then
   host_os=`echo $host_os | sed -e 's/gnu/gnu-gnu/'`
-  ;;
-esac
+fi
 
 # We keep the original values in `$config_*' and never modify them, so we
 # can write them unchanged into config.make.  Everything else uses

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-01-13 19:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-13 19:32 [PATCH] [SUGGESTION?] remove obsolete case statement in configure.in Andreas Grapentin
2013-01-13 19:38 ` Andreas Schwab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).