[mythtv-users] configure did not detect my cpu (E6400 Core 2 Duo)
Richard Dale
richard at interlink.com.au
Tue Oct 17 20:32:41 UTC 2006
> Your processor was added in changeset 11526.
>
> If you're using head can you edit that regular expression
> to make it work and send me an e-mail with the working
> expression?
Hi Daniel, it was SVN Head (revision 11530).
I see the problem in configure
elif expr "$processor" : "Intel(R).*Core(TM)2.*CPU.*" > /dev/null ; then
should read:
elif expr "$processor" : ".*Intel(R).*Core(TM)2.*CPU.*" > /dev/null ; then
The $processor variable actual starts with the string:
model name: Intel(R) ...
So adding .* to the front of the regexp fixed it.
Cheers,
Richard.
SVN Diff below:
Index: configure
===================================================================
--- configure (revision 11530)
+++ configure (working copy)
@@ -1619,7 +1619,7 @@
# Various Intel Duo processors
elif expr "$processor" : ".*Genuine.*Intel.*CPU" > /dev/null ; then
ARCHFLAGS="-march=pentium4"
- elif expr "$processor" : "Intel(R).*Core(TM)2.*CPU" > /dev/null ; then
+ elif expr "$processor" : ".*Intel(R).*Core(TM)2.*CPU.*" > /dev/null ;
then
ARCHFLAGS="-march=pentium4"
elif expr "$processor" : ".*Celeron(R) M processor" > /dev/null ; then
ARCHFLAGS="-march=pentium4"
More information about the mythtv-users
mailing list