forked from mia/Aegisub
7a87d3a2ee
only checks if the program links correctly, this way we can make functional programs to check for library sanity. Also disable the GL check until amz writes us a slice that uses gl.h/glext.h. Originally committed to SVN as r2117.
14 lines
373 B
Text
14 lines
373 B
Text
AC_DEFUN([AC_AGI_COMPILE],[
|
|
aegisub_save_LDFLAGS="$LDFLAGS"
|
|
aegisub_save_CPPFLAGS="$CPPFLAGS"
|
|
CPPFLAGS="$3"
|
|
LDFLAGS="$4"
|
|
AC_CACHE_CHECK(
|
|
[wether $1 works], [agi_with_$2],
|
|
[AC_RUN_IFELSE([$5],
|
|
[eval agi_with_$2="yes"],
|
|
[eval agi_with_$2="no"])
|
|
])
|
|
CPPFLAGS="$aegisub_save_CPPFLAGS"
|
|
LDFLAGS="$aegisub_save_LDFLAGS"
|
|
])
|