]> code.delx.au - pulseaudio/commitdiff
build: fix Mac OS X configure process
authorDeng Zhengrong <dzrongg@gmail.com>
Thu, 19 Jul 2012 08:41:31 +0000 (16:41 +0800)
committerColin Guthrie <colin@mageia.org>
Sun, 4 Nov 2012 09:07:31 +0000 (10:07 +0100)
The original header file doesn't exist on Lion (10.7.4).

configure.ac

index 5c70632ad9845f2f991a2c0228d0694529d29710..b63b0d28b00b7d1205e404f01a4e17dd14242804 100644 (file)
@@ -500,7 +500,10 @@ if test "x$os_is_darwin" = "x1" ; then
     # How do I check a framework "library" - AC_CHECK_LIB prob. won't work??, just assign LIBS & hope
     AC_CHECK_HEADER([/Developer/Headers/FlatCarbon/CoreServices.h],
         [LIBS="$LIBS -framework CoreServices"],
-        [AC_MSG_ERROR([CoreServices.h header file not found])]
+        [AC_CHECK_HEADERS([/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h],
+            [LIBS="$LIBS -framework CoreServices"],
+            [AC_MSG_ERROR([CoreServices.h header file not found])]
+        )]
     )
 
     AC_MSG_RESULT([ok])