Skip to content

Commit

Permalink
Merge pull request #1 from DaveRandom/fix/bundled-libgd
Browse files Browse the repository at this point in the history
Check for bundled libgd
  • Loading branch information
damz authored Aug 21, 2018
2 parents 1486ea9 + d67eb6f commit 6cd696a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,15 @@ if test $PHP_ZBARCODE != "no"; then
AC_MSG_ERROR(not found. Run with --disable-zbarcode-gd to disable this feature)
fi

AC_MSG_CHECKING(bundled libgd)

PHP_GD_BUNDLED_LIBGD_CHECK_HEADER="`$PHP_CONFIG --include-dir`/ext/gd/libgd/gd.h"

if test -r $PHP_GD_BUNDLED_LIBGD_CHECK_HEADER; then
AC_MSG_RESULT(found.)
AC_DEFINE(HAVE_GD_BUNDLED,1,[ ])
fi

PHP_ADD_EXTENSION_DEP(zbarcode, gd)
AC_DEFINE(HAVE_ZBARCODE_GD,1,[ ])
fi
Expand Down

0 comments on commit 6cd696a

Please sign in to comment.