2008-03-22 20:43:23 +01:00
|
|
|
AC_DEFUN([AC_AGI_COMPILE],[
|
|
|
|
aegisub_save_LDFLAGS="$LDFLAGS"
|
|
|
|
aegisub_save_CPPFLAGS="$CPPFLAGS"
|
|
|
|
CPPFLAGS="$3"
|
|
|
|
LDFLAGS="$4"
|
|
|
|
AC_CACHE_CHECK(
|
2008-03-24 00:08:41 +01:00
|
|
|
[whether $1 works], [agi_with_$2],
|
2008-03-23 00:10:55 +01:00
|
|
|
[AC_RUN_IFELSE([$5],
|
2008-03-22 20:43:23 +01:00
|
|
|
[eval agi_with_$2="yes"],
|
|
|
|
[eval agi_with_$2="no"])
|
|
|
|
])
|
|
|
|
CPPFLAGS="$aegisub_save_CPPFLAGS"
|
|
|
|
LDFLAGS="$aegisub_save_LDFLAGS"
|
|
|
|
])
|