forked from mia/Aegisub
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.
15 lines
373 B
Plaintext
15 lines
373 B
Plaintext
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"
|
|
])
|