1 |
grozin 08/10/07 06:14:55 |
2 |
|
3 |
Added: asymptote-1.43-r1-configure-ac.patch |
4 |
Log: |
5 |
Dependencies corrected, less documentation is produced with USE=-doc. Closing bugs #238108, #238121, #239063. |
6 |
(Portage version: 2.2_rc11/cvs/Linux 2.6.25-tuxonice-r1 i686) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 media-gfx/asymptote/files/asymptote-1.43-r1-configure-ac.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/asymptote/files/asymptote-1.43-r1-configure-ac.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/asymptote/files/asymptote-1.43-r1-configure-ac.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: asymptote-1.43-r1-configure-ac.patch |
15 |
=================================================================== |
16 |
diff -U2 -r asymptote-1.43.orig/configure.ac asymptote-1.43/configure.ac |
17 |
--- asymptote-1.43.orig/configure.ac 2008-06-12 14:42:50.000000000 +0700 |
18 |
+++ asymptote-1.43/configure.ac 2008-10-03 20:15:51.000000000 +0700 |
19 |
@@ -77,8 +77,14 @@ |
20 |
fi |
21 |
|
22 |
-AC_CHECK_HEADER(fftw3.h, |
23 |
- AC_CHECK_LIB([fftw3], fftw_execute,, |
24 |
+AC_ARG_WITH([fftw], |
25 |
+ [ --with-fftw use fftw3], |
26 |
+ [with_fftw=$withval], |
27 |
+ [with_fftw="no"]) |
28 |
+if test "$with_fftw" = "yes"; then |
29 |
+AC_CHECK_HEADER([fftw3.h], |
30 |
+ AC_CHECK_LIB([fftw3], [fftw_execute],, |
31 |
AC_MSG_NOTICE([*** Could not find libfftw3: will compile without optional fast Fourier transforms. ***])), |
32 |
AC_MSG_NOTICE([*** Header file fftw3.h not found: will compile without optional fast Fourier transforms. ***])) |
33 |
+fi |
34 |
|
35 |
GCVERSION=gc-7.1 |
36 |
@@ -117,5 +123,5 @@ |
37 |
CPPFLAGS_SAVE=$CPPFLAGS |
38 |
CPPFLAGS=$CPPFLAGS" $INCL" |
39 |
- AC_CHECK_HEADER(gc.h, |
40 |
+ AC_CHECK_HEADER([gc/gc.h], |
41 |
AC_CHECK_LIB([gc],[GC_malloc],[ |
42 |
LIBS=$LIBS"-lgc " |
43 |
@@ -182,5 +188,14 @@ |
44 |
AC_CHECK_LIB([curses], [setupterm])) |
45 |
AC_CHECK_LIB([m], [sqrt]) |
46 |
-AC_CHECK_LIB([sigsegv], [stackoverflow_install_handler]) |
47 |
+ |
48 |
+AC_ARG_WITH(sigsegv, |
49 |
+ [ --with-sigsegv use libsigsegv], |
50 |
+ [with_sigsegv=$withval], |
51 |
+ [with_sigsegv="no"]) |
52 |
+if test "$with_sigsegv" = "yes"; then |
53 |
+AC_CHECK_HEADER(sigsegv.h, |
54 |
+ AC_CHECK_LIB([sigsegv], [stackoverflow_install_handler]), |
55 |
+ AC_MSG_NOTICE([*** Header file sigsegv.h not found ***])) |
56 |
+fi |
57 |
|
58 |
AC_CHECK_LIB([readline], [rl_completion_matches],, |
59 |
@@ -198,4 +213,9 @@ |
60 |
AC_MSG_WARN([*** Broken rpc headers; XDR support disabled ***])) |
61 |
|
62 |
+AC_ARG_WITH(gsl, |
63 |
+ [ --with-gsl use gsl libraries], |
64 |
+ [with_gsl=$withval], |
65 |
+ [with_gsl="no"]) |
66 |
+if test "$with_gsl" = "yes"; then |
67 |
AC_CHECK_HEADER(gsl/gsl_sf.h, |
68 |
AC_CHECK_LIB([gsl], gsl_sf_Si, [AC_DEFINE(HAVE_LIBGSL, 1, |
69 |
@@ -203,4 +223,5 @@ |
70 |
AC_MSG_NOTICE([*** Could not find libgsl: will compile without optional special functions. ***]),[-lgslcblas]), |
71 |
AC_MSG_NOTICE([*** Header file gsl_sf.h not found: will compile without optional special functions. ***])) |
72 |
+fi |
73 |
|
74 |
TRIANGLE=Delaunay |