[mythtv] MythTV on Mac OS X for Intel

Nigel Pearson nigel at ind.tansu.com.au
Tue Mar 21 06:28:04 UTC 2006


> I used these arguments to configure:
>
> env QMAKESPEC=/opt/local/share/qt3/mkspecs/macx-g++ \
> LD_LIBRARY_PATH=/opt/local/lib \
>    ./configure --prefix=/opt/myth --arch=i686 \
>              --disable-distcc \
>              "--extra-cflags=-msse -msse2" \
>              "--extra-cxxflags=-msse -msse2" \
>              --cc=gcc


	Kris, Todd, others.

	Could I get you to try these configure changes?
I am hoping it will now auto-configure on an Intel Mac.
The tuning flags are probably wrong, but we can argue
those later.


Index: configure
===================================================================
--- configure   (revision 9412)
+++ configure   (working copy)
@@ -221,6 +221,18 @@
      processor_flags=`cat /proc/cpuinfo | grep "flags" | head -n 1`
  fi

+# Mac OS X equivalent
+if test -x /usr/sbin/system_profiler ; then
+    processor=`/usr/sbin/system_profiler SPHardwareDataType \
+               | grep 'CPU Type' | sed 's/CPU Type: //'`
+    if [ x"$processor" = x"Intel Core Solo" \
+         -o x"$processor" = x"Intel Core Duo" ]; then
+      # Override the default (useless) i386 for auto-MMX detection 
later
+      cpu="pentium-m"
+      cpu_raw=$cpu
+    fi
+fi
+
  # These have to be looked up early for some types of cross-compiling 
to work
  cpu_overide="no"
  for opt do
@@ -487,6 +499,7 @@
  strip="strip -x"
  LDFLAGS="-Wl,-search_paths_first"
  FFSLDFLAGS=-Wl,-bind_at_load
+memalignhack="yes"   # Probably not useful, but needed on Intel?
  ;;
  MINGW32*)
  # Note: the rest of the mingw32 config is done afterwards as mingw32
@@ -1279,6 +1292,10 @@
         optimize="small"
         cpu_raw="c3"

+# Intel Core
+   elif expr "$processor" : ".*Intel Core" > /dev/null ; then
+       ARCHFLAGS="-march=pentium-m -msse -msse2 -msse3 -mfpmath=sse 
-ffast-math"
+
  # if no known processor info, tune base on cpu_raw info
     elif test x"$cpu_raw" = x"i686" -a x"$mmx" = x"yes" ; then
         ARCHFLAGS="-march=pentium2"

--
Nigel Pearson, nigel at ind.tansu.com.au|  "Let's see how Spike is going"
Telstra Net. Eng., Sydney, Australia |              ...
Office: 9814 4803    Fax:  9814 4897 |"I'd like to keep Spike as my 
pet."
Mobile: 0408 664435  Home: 9792 6998 |        Illyria - Angel



More information about the mythtv-dev mailing list