This is the mail archive of the
libc-ports@sources.redhat.com
mailing list for the libc-ports project.
[PATCH] [SUGGESTION?] remove obsolete case statement in configure.in
- From: Andreas Grapentin <andreas at grapentin dot org>
- To: libc-ports at sourceware dot org
- Date: Sun, 13 Jan 2013 20:32:09 +0100
- Subject: [PATCH] [SUGGESTION?] remove obsolete case statement in configure.in
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