Skip to content

Commit

Permalink
[configure] Delete CAN_TEST_SCRIPT
Browse files Browse the repository at this point in the history
A CairoScript interpreter is built under utils and so is always available.
  • Loading branch information
Chris Wilson committed Nov 16, 2008
1 parent d7873ee commit bf309aa
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
3 changes: 0 additions & 3 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,7 @@ dnl ===========================================================================

any2ppm_cs=no
CAIRO_ENABLE_SURFACE_BACKEND(script, script, no, [
test_script=yes
any2ppm_cs=yes
AC_DEFINE([CAIRO_CAN_TEST_SCRIPT_SURFACE], 1,
[Define to 1 if the CairoScript backend can be tested])
])

dnl ===========================================================================
Expand Down
8 changes: 0 additions & 8 deletions test/any2ppm.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,6 @@ write_ppm (cairo_surface_t *surface, int fd)
return NULL;
}

#if CAIRO_CAN_TEST_SCRIPT_SURFACE
static cairo_surface_t *
_create_image (void *closure,
double width, double height)
Expand Down Expand Up @@ -293,13 +292,6 @@ cs_convert (char **argv, int fd)

return err;
}
#else
static const char *
cs_convert (char **argv, int fd)
{
return "compiled without CairoScript support.";
}
#endif

#if CAIRO_CAN_TEST_PDF_SURFACE
/* adapted from pdf2png.c */
Expand Down

0 comments on commit bf309aa

Please sign in to comment.