fix framework detection on OSX/intel with newer compiler that compiler that

fully obsoleted nested functions support (my fault anyway)
This commit is contained in:
gbeauche 2006-01-15 11:41:23 +00:00
parent 2bc7887bc1
commit bde3eb7972

View File

@ -440,7 +440,7 @@ AC_DEFUN(AC_CHECK_FRAMEWORK, [
saved_LIBS="$LIBS"
LIBS="$LIBS -framework $1"
AC_TRY_LINK(
[$2], [int main(void) { return 0; }],
[$2], [],
[AS_VAR_SET(ac_Framework, yes)], [AS_VAR_SET(ac_Framework, no); LIBS="$saved_LIBS"]
)
])