Opened 11 years ago

Closed 11 years ago

#8064 closed patch (fixed)

"unexpected operator" when mythtv/configure is run

Reported by: Bill Meek <llibkeem@…> Owned by: Isaac Richards
Priority: minor Milestone: unknown
Component: MythTV - General Version: head
Severity: low Keywords:
Cc: Ticket locked: no


When trunk/mythtv/configure is run, the following two errors print:

test: 3099: generic: unexpected operator
test: 3105: generic: unexpected operator

Probably exposed after removing lines in 23525. Unless this is unique to Apple, suggest:

Index: configure
--- configure	(revision 23541)
+++ configure	(working copy)
@@ -3094,13 +3094,13 @@
     # Apple GCC doesn't support march=core2 yet:
-    if test $cpu == "core2"; then
+    if test $cpu = "core2"; then
     # Core Duo might be identified as march=pentium3, which errors:
     # ...MachineExceptions.h:... error: '__m128i' does not name a type
     # ...MachineExceptions.h:... error: '__m128i' does not name a type
-    if test $cpu == "pentium3"; then
+    if test $cpu = "pentium3"; then
 check_optflags -fomit-frame-pointer

Change History (1)

comment:1 Changed 11 years ago by Janne Grunau

Resolution: fixed
Status: newclosed

(In [23543]) configure: fix merge error in [23525]. Refs #7233

move darwin-only -march= fixup under if test $target_os = darwin and fix test equal operator. Fixes #8064

Note: See TracTickets for help on using tickets.