diff --git a/autoconf/configure.ac b/autoconf/configure.ac index 55c4d7e37c5..94b306f847c 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -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 diff --git a/configure b/configure index 5949627beea..b9c93934f95 100755 --- a/configure +++ b/configure @@ -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 &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 < conftest.$ac_ext <&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 < conftest.$ac_ext <&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 < conftest.$ac_ext <