glpk-4.57-debundle-system-libs.patch 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. Remove suitesparse (camd,colamd) and zlib bundles
  2. bicatali - apr 2014
  3. Updated for 4.57 by soap (Jan 2016)
  4. --- glpk-4.57/configure.ac
  5. +++ glpk-4.57/configure.ac
  6. @@ -59,6 +59,11 @@
  7. dnl Check for math library
  8. AC_CHECK_LIB([m], [exp])
  9. +AC_CHECK_LIB([amd], [amd_1])
  10. +AC_CHECK_LIB([colamd], [colamd])
  11. +AC_CHECK_HEADER([amd.h])
  12. +AC_CHECK_LIB([z], [gzopen])
  13. +
  14. dnl Check for <sys/time.h> header
  15. AC_CHECK_HEADER([sys/time.h],
  16. AC_DEFINE([HAVE_SYS_TIME_H], [1], [N/A]))
  17. --- glpk-4.57/src/Makefile.am
  18. +++ glpk-4.57/src/Makefile.am
  19. @@ -6,16 +6,13 @@
  20. libglpk_la_CPPFLAGS = \
  21. -I$(srcdir) \
  22. --I$(srcdir)/amd \
  23. -I$(srcdir)/bflib \
  24. -I$(srcdir)/cglib \
  25. --I$(srcdir)/colamd \
  26. -I$(srcdir)/env \
  27. -I$(srcdir)/minisat \
  28. -I$(srcdir)/misc \
  29. -I$(srcdir)/proxy \
  30. --I$(srcdir)/simplex \
  31. --I$(srcdir)/zlib
  32. +-I$(srcdir)/simplex
  33. libglpk_la_LDFLAGS = \
  34. -version-info 38:0:2 \
  35. @@ -90,18 +87,6 @@
  36. glpssx01.c \
  37. glpssx02.c \
  38. lux.c \
  39. -amd/amd_1.c \
  40. -amd/amd_2.c \
  41. -amd/amd_aat.c \
  42. -amd/amd_control.c \
  43. -amd/amd_defaults.c \
  44. -amd/amd_dump.c \
  45. -amd/amd_info.c \
  46. -amd/amd_order.c \
  47. -amd/amd_post_tree.c \
  48. -amd/amd_postorder.c \
  49. -amd/amd_preprocess.c \
  50. -amd/amd_valid.c \
  51. bflib/btf.c \
  52. bflib/btfint.c \
  53. bflib/fhv.c \
  54. @@ -115,7 +100,6 @@
  55. bflib/sva.c \
  56. cglib/cfg.c \
  57. cglib/cfg1.c \
  58. -colamd/colamd.c \
  59. env/alloc.c \
  60. env/dlsup.c \
  61. env/env.c \
  62. @@ -158,21 +142,6 @@
  63. simplex/spxprob.c \
  64. simplex/spychuzc.c \
  65. simplex/spychuzr.c \
  66. -simplex/spydual.c \
  67. -zlib/adler32.c \
  68. -zlib/compress.c \
  69. -zlib/crc32.c \
  70. -zlib/deflate.c \
  71. -zlib/gzclose.c \
  72. -zlib/gzlib.c \
  73. -zlib/gzread.c \
  74. -zlib/gzwrite.c \
  75. -zlib/inffast.c \
  76. -zlib/inflate.c \
  77. -zlib/inftrees.c \
  78. -zlib/trees.c \
  79. -zlib/uncompr.c \
  80. -zlib/zio.c \
  81. -zlib/zutil.c
  82. +simplex/spydual.c
  83. ## eof ##