ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/SheepShaver/src/Unix/configure.ac
(Generate patch)

Comparing SheepShaver/src/Unix/configure.ac (file contents):
Revision 1.39 by gbeauche, 2005-08-18T22:32:31Z vs.
Revision 1.46 by gbeauche, 2006-01-22T00:08:32Z

# Line 1 | Line 1
1   dnl Process this file with autoconf to produce a configure script.
2   dnl Written in 2002 by Christian Bauer
3  
4 < AC_INIT([SheepShaver], 2.2, [Christian.Bauer@uni-mainz.de], SheepShaver)
4 > AC_INIT([SheepShaver], 2.3, [Christian.Bauer@uni-mainz.de], SheepShaver)
5   AC_CONFIG_SRCDIR(main_unix.cpp)
6   AC_PREREQ(2.52)
7   AC_CONFIG_HEADER(config.h)
# Line 125 | Line 125 | AC_SUBST(MONSRCS)
125  
126   dnl Checks for libraries.
127   AC_CHECK_LIB(posix4, sem_init)
128 + AC_CHECK_LIB(m, cos)
129  
130   dnl Do we need SDL?
131   WANT_SDL=no
# Line 439 | Line 440 | AC_DEFUN(AC_CHECK_FRAMEWORK, [
440      saved_LIBS="$LIBS"
441      LIBS="$LIBS -framework $1"
442      AC_TRY_LINK(
443 <      [$2], [int main(void) { return 0; }],
443 >      [$2], [],
444        [AS_VAR_SET(ac_Framework, yes)], [AS_VAR_SET(ac_Framework, no); LIBS="$saved_LIBS"]
445      )
446    ])
# Line 491 | Line 492 | darwin*)
492      EXTFSSRC=../MacOSX/extfs_macosx.mm
493    fi
494    ;;
495 + irix*)
496 +  ETHERSRC=ether_unix.cpp
497 +  AUDIOSRC=Irix/audio_irix.cpp
498 +  LIBS="$LIBS -laudio"
499 +  WANT_ESD=no
500 +
501 +  dnl Check if our compiler supports -IPA (MIPSPro)
502 +  HAVE_IPA=no
503 +  ocflags="$CFLAGS"
504 +  CFLAGS=`echo " $CFLAGS -IPA" | sed -e "s/ -g //g"`
505 +  AC_MSG_CHECKING(if "-IPA" works)
506 +  dnl Do a test compile of an empty function
507 +  AC_TRY_COMPILE([#if defined __GNUC__
508 +                  # error GCC does not support IPA yet
509 +                  #endif],, [AC_MSG_RESULT(yes); HAVE_IPA=yes], AC_MSG_RESULT(no))
510 +  CFLAGS="$ocflags"
511 +  ;;
512   esac
513  
514   dnl Is the slirp library supported?
# Line 1178 | Line 1196 | HAVE_GCC27=no
1196   AC_MSG_CHECKING(for GCC 2.7 or higher)
1197   AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#if ! (__GNUC__ - 1 > 1 || __GNUC_MINOR__ - 1 > 5)
1198                                       # error gcc < 2.7
1199 +                                     typedef syntax error;
1200                                       #endif
1201                                     ]])],
1202                    [AC_MSG_RESULT(yes); HAVE_GCC27=yes],
# Line 1188 | Line 1207 | HAVE_GCC30=no
1207   AC_MSG_CHECKING(for GCC 3.0 or higher)
1208   AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#if ! (__GNUC__ >= 3)
1209                                       # error gcc < 3
1210 +                                     typedef syntax error;
1211                                       #endif
1212                                     ]])],
1213                    [AC_MSG_RESULT(yes); HAVE_GCC30=yes],
# Line 1275 | Line 1295 | if [[ "x$EMULATED_PPC" = "xyes" ]]; then
1295        i?86:elf)
1296          ac_cv_use_dyngen=yes
1297          ;;
1298 +      mips:elf)
1299 +        ac_cv_use_dyngen=yes
1300 +        ;;
1301        powerpc:mach)
1302          ac_cv_use_dyngen=yes
1303          ;;
1304 +      i?86:mach)
1305 +        ac_cv_use_dyngen=yes
1306 +        ;;
1307        *:*)
1308          ac_cv_use_dyngen=no
1309          ;;
# Line 1287 | Line 1313 | if [[ "x$EMULATED_PPC" = "xyes" ]]; then
1313          if [[ "x$HAVE_GCC27" = "xyes" -a "x$HAVE_ICC" = "xno" ]]; then
1314            DYNGEN_CC=$CXX
1315          else
1316 <          for p in /usr/bin /usr/local/bin; do
1316 >          for p in /usr/bin /usr/local/bin /usr/freeware/bin; do
1317              gxx="$p/g++"
1318              if [[ -x "$gxx" ]]; then
1319                DYNGEN_CC="$gxx"
# Line 1302 | Line 1328 | if [[ "x$EMULATED_PPC" = "xyes" ]]; then
1328      if [[ "x$ac_cv_use_dyngen" = "xyes" ]]; then
1329        case $host_cpu in
1330        i?86)
1331 <        DYNGEN_OP_FLAGS="-fomit-frame-pointer -mpreferred-stack-boundary=2"
1331 >        DYNGEN_OP_FLAGS="-fomit-frame-pointer"
1332 >        ;;
1333 >      mips)
1334 >        DYNGEN_OP_FLAGS="-fno-delayed-branch -mno-abicalls"
1335          ;;
1336        powerpc)
1337          if [[ "x$ac_cv_object_format" = "xmach" ]]; then
# Line 1310 | Line 1339 | if [[ "x$EMULATED_PPC" = "xyes" ]]; then
1339          fi
1340          ;;
1341        esac
1342 <      if [[ "x$HAVE_GCC30" = "xyes" ]]; then
1342 >      have_dyngen_gcc3=no
1343 >      case "x`$DYNGEN_CC -dumpversion`" in
1344 >      x[12].*) ;;
1345 >      x*) have_dyngen_gcc3=yes ;;
1346 >      esac
1347 >      if [[ "x$have_dyngen_gcc3" = "xyes" ]]; then
1348          DYNGEN_OP_FLAGS="$DYNGEN_OP_FLAGS -falign-functions=0"
1349        else
1350          DYNGEN_OP_FLAGS="$DYNGEN_OP_FLAGS -malign-functions=0"
1351        fi
1352        DYNGEN_OP_FLAGS="$DYNGEN_OP_FLAGS -finline-functions -finline-limit=10000 -fno-exceptions -g0"
1353 <      if [[ "x$HAVE_GCC30" = "xyes" ]]; then
1353 >      if [[ "x$have_dyngen_gcc3" = "xyes" ]]; then
1354          DYNGEN_OP_FLAGS="$DYNGEN_OP_FLAGS -fno-reorder-blocks -fno-optimize-sibling-calls"
1355        fi
1356 +      if [[ "x$DYNGEN_CC" != "x$CXX" ]]; then
1357 +        DYNGEN_CFLAGS="-O2 $CFLAGS"
1358 +        DYNGEN_CXXFLAGS="-O2 $CXXFLAGS"
1359 +      else
1360 +        DYNGEN_CFLAGS="\$(CFLAGS)"
1361 +        DYNGEN_CXXFLAGS="\$(CXXFLAGS)"
1362 +      fi
1363      else
1364        WANT_JIT=no
1365      fi
# Line 1367 | Line 1408 | if [[ "x$WANT_JIT" = "xyes" ]]; then
1408    CPPFLAGS="$CPPFLAGS -DUSE_JIT"
1409   fi
1410  
1411 + dnl Higher level optimizations with MIPSPro compilers are possible
1412 + if [[ "x$HAVE_IPA" = "xyes" ]]; then
1413 +  CFLAGS="`echo $CFLAGS | sed -e 's/-g//g'` -O3 -OPT:Olimit=0 -IPA"
1414 +  CXXFLAGS="`echo $CXXFLAGS | sed -e 's/-g//g'` -O3 -OPT:Olimit=0 -IPA"
1415 +  CXXFLAGS="-LANG:std $CXXFLAGS"
1416 +  LDFLAGS="$LDFLAGS -O3 -OPT:Olimit=0 -IPA"
1417 + fi
1418 +
1419   dnl Generate Makefile.
1420   AC_SUBST(PERL)
1421   AC_SUBST(USE_DYNGEN, [$ac_cv_use_dyngen])
1422   AC_SUBST(DYNGENSRCS)
1423   AC_SUBST(DYNGEN_CC)
1424 + AC_SUBST(DYNGEN_CFLAGS)
1425 + AC_SUBST(DYNGEN_CXXFLAGS)
1426   AC_SUBST(DYNGEN_OP_FLAGS)
1427   AC_SUBST(SYSSRCS)
1428   AC_SUBST(CPUSRCS)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines