1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 12:43:36 +01:00

Recognize Interix systems as if they were SunOS and make sure we don't

attempt to configure for "Unknown" system types.

llvm-svn: 16120
This commit is contained in:
Reid Spencer 2004-08-31 01:34:10 +00:00
parent f50551771b
commit 9ebc2640d4
2 changed files with 48 additions and 28 deletions

View File

@ -128,6 +128,10 @@ case $build in
AC_SUBST(OS,[AIX])
platform_type="AIX"
;;
*-*-interix*)
AC_SUBST(OS,[SunOS])
platform_type="SunOS"
;;
*-*-win32*)
AC_SUBST(OS,[Win32])
platform_type="Win32"
@ -138,6 +142,11 @@ case $build in
;;
esac
dnl Make sure we aren't attempting to configure for an unknown system
if test $platform_type -eq "Unknown" ; then
AC_MSG_ERROR([Platform is unknown, configure can't continue])
fi
dnl Make a link from lib/System/platform to lib/System/$platform_type
dnl This helps the #inclusion of the system specific include files
dnl for the operating system abstraction library

67
configure vendored
View File

@ -1925,6 +1925,11 @@ case $build in
platform_type="AIX"
;;
*-*-interix*)
OS=SunOS
platform_type="SunOS"
;;
*-*-win32*)
OS=Win32
@ -1937,6 +1942,12 @@ case $build in
;;
esac
if test $platform_type -eq "Unknown" ; then
{ { echo "$as_me:$LINENO: error: Platform is unknown, configure can't continue" >&5
echo "$as_me: error: Platform is unknown, configure can't continue" >&2;}
{ (exit 1); exit 1; }; }
fi
ac_config_links="$ac_config_links lib/System/platform:lib/System/$platform_type"
@ -4237,7 +4248,7 @@ ia64-*-hpux*)
;;
*-*-irix6*)
# Find out which ABI we are using.
echo '#line 4240 "configure"' > conftest.$ac_ext
echo '#line 4251 "configure"' > conftest.$ac_ext
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
(eval $ac_compile) 2>&5
ac_status=$?
@ -5111,7 +5122,7 @@ fi
# Provide some information about the compiler.
echo "$as_me:5114:" \
echo "$as_me:5125:" \
"checking for Fortran 77 compiler version" >&5
ac_compiler=`set X $ac_compile; echo $2`
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
@ -6142,11 +6153,11 @@ else
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:6145: $lt_compile\"" >&5)
(eval echo "\"\$as_me:6156: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
echo "$as_me:6149: \$? = $ac_status" >&5
echo "$as_me:6160: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings
@ -6374,11 +6385,11 @@ else
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:6377: $lt_compile\"" >&5)
(eval echo "\"\$as_me:6388: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
echo "$as_me:6381: \$? = $ac_status" >&5
echo "$as_me:6392: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings
@ -6441,11 +6452,11 @@ else
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:6444: $lt_compile\"" >&5)
(eval echo "\"\$as_me:6455: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
echo "$as_me:6448: \$? = $ac_status" >&5
echo "$as_me:6459: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
@ -8559,7 +8570,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
#line 8562 "configure"
#line 8573 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@ -8657,7 +8668,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
#line 8660 "configure"
#line 8671 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@ -10813,11 +10824,11 @@ else
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:10816: $lt_compile\"" >&5)
(eval echo "\"\$as_me:10827: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
echo "$as_me:10820: \$? = $ac_status" >&5
echo "$as_me:10831: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings
@ -10880,11 +10891,11 @@ else
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:10883: $lt_compile\"" >&5)
(eval echo "\"\$as_me:10894: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
echo "$as_me:10887: \$? = $ac_status" >&5
echo "$as_me:10898: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
@ -12209,7 +12220,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
#line 12212 "configure"
#line 12223 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@ -12307,7 +12318,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
#line 12310 "configure"
#line 12321 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@ -13129,11 +13140,11 @@ else
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:13132: $lt_compile\"" >&5)
(eval echo "\"\$as_me:13143: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
echo "$as_me:13136: \$? = $ac_status" >&5
echo "$as_me:13147: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings
@ -13196,11 +13207,11 @@ else
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:13199: $lt_compile\"" >&5)
(eval echo "\"\$as_me:13210: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
echo "$as_me:13203: \$? = $ac_status" >&5
echo "$as_me:13214: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
@ -15162,11 +15173,11 @@ else
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:15165: $lt_compile\"" >&5)
(eval echo "\"\$as_me:15176: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
echo "$as_me:15169: \$? = $ac_status" >&5
echo "$as_me:15180: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings
@ -15394,11 +15405,11 @@ else
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:15397: $lt_compile\"" >&5)
(eval echo "\"\$as_me:15408: $lt_compile\"" >&5)
(eval "$lt_compile" 2>conftest.err)
ac_status=$?
cat conftest.err >&5
echo "$as_me:15401: \$? = $ac_status" >&5
echo "$as_me:15412: \$? = $ac_status" >&5
if (exit $ac_status) && test -s "$ac_outfile"; then
# The compiler can only warn and ignore the option if not recognized
# So say no if there are warnings
@ -15461,11 +15472,11 @@ else
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
-e 's:$: $lt_compiler_flag:'`
(eval echo "\"\$as_me:15464: $lt_compile\"" >&5)
(eval echo "\"\$as_me:15475: $lt_compile\"" >&5)
(eval "$lt_compile" 2>out/conftest.err)
ac_status=$?
cat out/conftest.err >&5
echo "$as_me:15468: \$? = $ac_status" >&5
echo "$as_me:15479: \$? = $ac_status" >&5
if (exit $ac_status) && test -s out/conftest2.$ac_objext
then
# The compiler can only warn and ignore the option if not recognized
@ -17579,7 +17590,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
#line 17582 "configure"
#line 17593 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@ -17677,7 +17688,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
#line 17680 "configure"
#line 17691 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H