You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
2.2 KiB

  1. diff -u --recursive php-5.6.6-vanilla/configure.in php-5.6.6/configure.in
  2. --- php-5.6.6-vanilla/configure.in 2015-02-26 22:10:51.865487530 -0500
  3. +++ php-5.6.6/configure.in 2015-02-26 22:29:59.043102135 -0500
  4. @@ -453,7 +453,10 @@
  5. PHP_CHECK_FUNC(gethostbyaddr, nsl)
  6. PHP_CHECK_FUNC(yp_get_default_domain, nsl)
  7. -PHP_CHECK_FUNC(dlopen, dl)
  8. +PHP_ADD_LIBRARY(dl)
  9. +PHP_DEF_HAVE(dlopen)
  10. +PHP_DEF_HAVE(libdl)
  11. +ac_cv_func_dlopen=yes
  12. if test "$ac_cv_func_dlopen" = "yes"; then
  13. AC_DEFINE(HAVE_LIBDL, 1, [ ])
  14. fi
  15. diff -u --recursive php-5.6.6-vanilla/ext/fileinfo/config.m4 php-5.6.6/ext/fileinfo/config.m4
  16. --- php-5.6.6-vanilla/ext/fileinfo/config.m4 2015-02-26 22:10:51.639487135 -0500
  17. +++ php-5.6.6/ext/fileinfo/config.m4 2015-02-26 22:22:47.645609128 -0500
  18. @@ -46,6 +46,10 @@
  19. AC_MSG_RESULT(no)
  20. AC_MSG_NOTICE(using libmagic strcasestr implementation)
  21. libmagic_sources="$libmagic_sources libmagic/strcasestr.c"
  22. + ],[
  23. + dnl cross-compiling; assume not present
  24. + AC_MSG_NOTICE(using libmagic strcasestr implementation)
  25. + libmagic_sources="$libmagic_sources libmagic/strcasestr.c"
  26. ])
  27. PHP_NEW_EXTENSION(fileinfo, fileinfo.c $libmagic_sources, $ext_shared,,-I@ext_srcdir@/libmagic)
  28. diff -u --recursive php-5.6.6-vanilla/ext/opcache/config.m4 php-5.6.6/ext/opcache/config.m4
  29. --- php-5.6.6-vanilla/ext/opcache/config.m4 2015-02-26 22:10:51.790487399 -0500
  30. +++ php-5.6.6/ext/opcache/config.m4 2015-02-26 22:34:19.240414394 -0500
  31. @@ -341,7 +341,14 @@
  32. flock_type=linux
  33. AC_DEFINE([HAVE_FLOCK_LINUX], [], [Struct flock is Linux-type])
  34. AC_MSG_RESULT("yes")
  35. -], AC_MSG_RESULT("no") )
  36. +], [
  37. + AC_MSG_RESULT("no")
  38. +], [
  39. + dnl cross-compiling; assume Linux
  40. + flock_type=linux
  41. + AC_DEFINE([HAVE_FLOCK_LINUX], [], [Struct flock is Linux-type])
  42. + AC_MSG_RESULT("yes")
  43. +])
  44. AC_MSG_CHECKING("whether flock struct is BSD ordered")
  45. AC_TRY_RUN([
  46. @@ -357,7 +364,12 @@
  47. flock_type=bsd
  48. AC_DEFINE([HAVE_FLOCK_BSD], [], [Struct flock is BSD-type])
  49. AC_MSG_RESULT("yes")
  50. -], AC_MSG_RESULT("no") )
  51. +], [
  52. + AC_MSG_RESULT("no")
  53. +], [
  54. + dnl cross-compiling; assume Linux
  55. + AC_MSG_RESULT("no")
  56. +])
  57. if test "$flock_type" == "unknown"; then
  58. AC_MSG_ERROR([Don't know how to define struct flock on this system[,] set --enable-opcache=no])