Evas: improve jpeg m4 macro check

Use AC_LANG_PROGRAM instead of AC_LANG_SOURCE


SVN revision: 58097
This commit is contained in:
Vincent Torri 2011-03-26 17:09:44 +00:00
parent 6894af9d5e
commit 9cc1e2a01d
1 changed files with 13 additions and 11 deletions

View File

@ -114,17 +114,19 @@ if test "x${have_dep}" = "xyes" ; then
[jpeg_CreateDecompress], [jpeg_CreateDecompress],
[ [
evas_image_loader_[]$1[]_libs="-ljpeg" evas_image_loader_[]$1[]_libs="-ljpeg"
AC_COMPILE_IFELSE([AC_LANG_SOURCE([ AC_COMPILE_IFELSE(
#include <stdio.h> [AC_LANG_PROGRAM(
#include <jpeglib.h> [[
#include <setjmp.h> #include <stdio.h>
int main(int argc, char **argv) { #include <jpeglib.h>
struct jpeg_decompress_struct decomp; #include <setjmp.h>
decomp.region_x = 0; ]],
} [[
])], struct jpeg_decompress_struct decomp;
[have_jpeg_region="yes"], decomp.region_x = 0;
[have_jpeg_region="no"]) ]])],
[have_jpeg_region="yes"],
[have_jpeg_region="no"])
], ],
[have_dep="no"] [have_dep="no"]
) )