From 0adcad8b86cb5838d58dd5a2be46daa25ab7363a Mon Sep 17 00:00:00 2001 From: "Roy T. Fielding" Date: Tue, 10 Jul 2001 02:35:24 +0000 Subject: [PATCH] Use the autoconf variable "host" consistently for platform checks. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89527 13f79535-47bb-0310-9956-ffa450edef68 --- configure.in | 8 ++++---- os/config.m4 | 5 +---- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/configure.in b/configure.in index a95ce36415..dd2ced0f8f 100644 --- a/configure.in +++ b/configure.in @@ -92,7 +92,7 @@ echo $ac_n "${nl}Applying OS-specific hints for httpd ...${nl}" AC_CANONICAL_SYSTEM -case "$host_alias" in +case $host in *os2*) # Use a custom made libtool replacement echo "using aplibtool" @@ -112,7 +112,7 @@ case "$host_alias" in ;; esac -case "$host" in +case $host in *-apple-aux3*) APR_SETVAR(APACHE_MPM, [prefork]) APR_SETVAR(SINGLE_LISTEN_UNSERIALIZED_ACCEPT, [1]) @@ -235,7 +235,7 @@ POST_SHARED_CMDS='echo ""' if test "$apache_need_shared" = "yes"; then $SHELL $ac_aux_dir/ltconfig --output=shlibtool --disable-static --srcdir=$ac_aux_dir --cache-file=./config.cache $ac_aux_dir/ltmain.sh - case "$host" in + case $host in *-ibm-aix*) HTTPD_LDFLAGS="$HTTPD_LDFLAGS -Wl,-bE:$abs_srcdir/server/httpd.exp" SH_LDFLAGS="$SH_LDFLAGS -Wl,-bI:$abs_srcdir/server/httpd.exp" @@ -370,7 +370,7 @@ AC_SUBST(perlbin) dnl If we are running on BSD/OS, we need to use the BSD .include syntax. BSD_MAKEFILE=no -case "$host_alias" in +case $host in *bsdi*) # Check whether they've installed GNU make if make --version > /dev/null 2>&1; then diff --git a/os/config.m4 b/os/config.m4 index 7442325d73..669c0bd67a 100644 --- a/os/config.m4 +++ b/os/config.m4 @@ -1,9 +1,6 @@ AC_MSG_CHECKING(for target platform) -#PLATFORM=`${CONFIG_SHELL-/bin/sh} $ac_config_guess` -PLATFORM=$host - -case "$PLATFORM" in +case $host in *beos*) OS="beos" OS_DIR=$OS -- 2.50.1