summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-gfx/asymptote/files/asymptote-2.21-configure-ac.patch')
-rw-r--r--media-gfx/asymptote/files/asymptote-2.21-configure-ac.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/media-gfx/asymptote/files/asymptote-2.21-configure-ac.patch b/media-gfx/asymptote/files/asymptote-2.21-configure-ac.patch
new file mode 100644
index 000000000000..e65c18dc455b
--- /dev/null
+++ b/media-gfx/asymptote/files/asymptote-2.21-configure-ac.patch
@@ -0,0 +1,32 @@
+Index: asymptote-2.21/configure.ac
+===================================================================
+--- asymptote-2.21.orig/configure.ac
++++ asymptote-2.21/configure.ac
+@@ -154,7 +154,7 @@ if test "x$ac_cv_use_gc" != "xno" ; then
+ fi
+ CPPFLAGS_SAVE=$CPPFLAGS
+ CPPFLAGS=$CPPFLAGS" $INCL"
+- AC_CHECK_HEADER(gc.h,
++ AC_CHECK_HEADER([gc/gc.h],
+ AC_CHECK_LIB([gc],[GC_malloc],[
+ LIBS=$LIBS"-lgc "
+ AC_MSG_NOTICE([enabling system $GCNAME])],[
+@@ -227,7 +227,17 @@ AC_MSG_ERROR([*** Please install libm on
+ AC_CHECK_LIB([z], [deflate],,
+ AC_MSG_ERROR([*** Please install libz on your system ***]))
+ AX_PTHREAD
+-AC_CHECK_LIB([sigsegv], [stackoverflow_install_handler])
++
++AC_ARG_WITH(sigsegv,
++ [ --with-sigsegv use libsigsegv],
++ [with_sigsegv=$withval],
++ [with_sigsegv="no"])
++if test "$with_sigsegv" = "yes"; then
++AC_CHECK_HEADER([sigsegv.h],
++ AC_CHECK_LIB([sigsegv], [stackoverflow_install_handler]),
++ AC_MSG_NOTICE([*** Header file sigsegv.h not found ***]))
++fi
++
+ AC_CHECK_LIB([rt], [sched_yield])
+
+ AC_ARG_ENABLE(readline,