[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: checking Mac OS X headers
From: |
Vincent Torri |
Subject: |
Re: checking Mac OS X headers |
Date: |
Mon, 14 Dec 2009 10:54:24 +0100 (CET) |
On Mon, 14 Dec 2009, Vincent Torri wrote:
is it possible, without having an objc compiler, to have that code:
AC_LANG_PUSH([Objective C])
AC_CHECK_HEADERS([/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h],
[
have_dep="yes"
evas_engine_[]$1[]_libs="-framework Cocoa"
],
[have_dep="no"])
AC_LANG_POP([Objective C])
working ?
I can maybe execute that code if the host is darwin, but it is not the
standard way of checking features, iirc
that is, something like:
if test "x${ac_cv_objc_compiler_gnu}" = "xyes" ; then
AC_LANG_PUSH([Objective C])
AC_CHECK_HEADER([Cocoa/Cocoa.h],
[
have_quartz="yes"
evas_engine_[]$1[]_libs="-framework Cocoa"
],
[have_quartz="no"])
AC_LANG_POP([Objective C])
fi
is good enough ?
Vincent Torri