1 |
bicatali 08/02/05 18:28:02 |
2 |
|
3 |
Added: cholmod-1.6.0-autotools.patch |
4 |
Log: |
5 |
Initial import. Thanks to Justin Bronder for his work, closing bug #173900 |
6 |
(Portage version: 2.1.4) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 sci-libs/cholmod/files/cholmod-1.6.0-autotools.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/cholmod/files/cholmod-1.6.0-autotools.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/cholmod/files/cholmod-1.6.0-autotools.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: cholmod-1.6.0-autotools.patch |
15 |
=================================================================== |
16 |
--- configure.ac 1970-01-01 01:00:00.000000000 +0100 |
17 |
+++ configure.ac 2008-02-01 19:12:59.582510299 +0000 |
18 |
@@ -0,0 +1,137 @@ |
19 |
+# -*- Autoconf -*- |
20 |
+AC_PREREQ(2.59) |
21 |
+AC_INIT(cholmod, 1.6.0, davis@××××××××.edu) |
22 |
+AM_INIT_AUTOMAKE([foreign]) |
23 |
+AC_PROG_INSTALL |
24 |
+AC_PROG_LIBTOOL |
25 |
+ |
26 |
+AC_CHECK_LIB(m, sqrt) |
27 |
+AC_CHECK_HEADERS(UFconfig.h) |
28 |
+ |
29 |
+AC_ARG_ENABLE(mod-check, |
30 |
+ [AC_HELP_STRING([--enable-mod-check], |
31 |
+ [build the check module])], |
32 |
+ [mod_check=$enableval], |
33 |
+ [mod_check="yes"]) |
34 |
+AC_MSG_RESULT($mod_check) |
35 |
+ |
36 |
+AC_ARG_ENABLE(mod-cholesky, |
37 |
+ [AC_HELP_STRING([--enable-mod-cholesky], |
38 |
+ [build the cholesky module])], |
39 |
+ [mod_cholesky=$enableval], |
40 |
+ [mod_cholesky="yes"]) |
41 |
+AC_MSG_RESULT($mod_cholesky) |
42 |
+ |
43 |
+AC_ARG_ENABLE(mod-partition, |
44 |
+ [AC_HELP_STRING([--enable-mod-partition], |
45 |
+ [build the partition module])], |
46 |
+ [mod_partition=$enableval], |
47 |
+ [mod_partition="yes"]) |
48 |
+AC_MSG_RESULT($mod_partition) |
49 |
+ |
50 |
+AC_ARG_ENABLE(mod-matrixops, |
51 |
+ [AC_HELP_STRING([--enable-mod-matrixops], |
52 |
+ [build the matrixops module])], |
53 |
+ [mod_matrixops=$enableval], |
54 |
+ [mod_matrixops="yes"]) |
55 |
+AC_MSG_RESULT($mod_matrixops) |
56 |
+ |
57 |
+AC_ARG_ENABLE(mod-modify, |
58 |
+ [AC_HELP_STRING([--enable-mod-modify], |
59 |
+ [build the modify module])], |
60 |
+ [mod_modify=$enableval], |
61 |
+ [mod_modify="yes"]) |
62 |
+AC_MSG_RESULT($mod_modify) |
63 |
+ |
64 |
+AC_ARG_ENABLE(mod-supernodal, |
65 |
+ [AC_HELP_STRING([--enable-mod-supernodal], |
66 |
+ [build the supernodal module])], |
67 |
+ [mod_supernodal=$enableval], |
68 |
+ [mod_supernodal="yes"]) |
69 |
+AC_MSG_RESULT($mod_supernodal) |
70 |
+ |
71 |
+if test x$mod_check = xno; then |
72 |
+ AC_DEFINE(NCHECK) |
73 |
+else |
74 |
+ MODULES="$MODULES Check" |
75 |
+fi |
76 |
+ |
77 |
+if test x$mod_cholesky = xno; then |
78 |
+ AC_DEFINE(NCHOLESKY) |
79 |
+else |
80 |
+ MODULES="$MODULES Cholesky" |
81 |
+fi |
82 |
+ |
83 |
+if test x$mod_partition = xno; then |
84 |
+ AC_DEFINE(NPARTITION) |
85 |
+else |
86 |
+ MODULES="$MODULES Partition" |
87 |
+ AC_CHECK_HEADERS(metis.h) |
88 |
+ AC_CHECK_LIB(metis, METIS_NodeND, [], \ |
89 |
+ [AC_MSG_ERROR([Cannot find libmetis])]) |
90 |
+ |
91 |
+ AC_CHECK_HEADERS(ccolamd.h) |
92 |
+ AC_CHECK_LIB(ccolamd, ccolamd_report, [], \ |
93 |
+ [AC_MSG_ERROR([Cannot find libccolamd])]) |
94 |
+ |
95 |
+ AC_CHECK_HEADERS(camd.h) |
96 |
+ AC_CHECK_LIB(camd, camd_info, [], \ |
97 |
+ [AC_MSG_ERROR([Cannot find libcamd])]) |
98 |
+fi |
99 |
+ |
100 |
+if test x$mod_matrixops = xno; then |
101 |
+ AC_DEFINE(NMATRIXOPS) |
102 |
+else |
103 |
+ MODULES="$MODULES MatrixOps" |
104 |
+fi |
105 |
+ |
106 |
+if test x$mod_modify = xno; then |
107 |
+ AC_DEFINE(NMODIFY) |
108 |
+else |
109 |
+ MODULES="$MODULES Modify" |
110 |
+fi |
111 |
+ |
112 |
+if test x$mod_supernodal = xno; then |
113 |
+ AC_DEFINE(NSUPERNODAL) |
114 |
+else |
115 |
+ MODULES="$MODULES Supernodal" |
116 |
+ sinclude(acx_blas.m4) |
117 |
+ sinclude(acx_lapack.m4) |
118 |
+ ACX_LAPACK |
119 |
+ |
120 |
+ if test x"$BLAS_LIBS" = x; then |
121 |
+ AC_MSG_ERROR([Cannot find blas libraries]) |
122 |
+ fi |
123 |
+ |
124 |
+ if test x"$LAPACK_LIBS" = x; then |
125 |
+ AC_MSG_ERROR([Cannot find lapack libraries]) |
126 |
+ fi |
127 |
+fi |
128 |
+ |
129 |
+AC_SUBST([MODULES]) |
130 |
+AM_CONDITIONAL([MOD_CHECK], [test x$mod_check = xyes]) |
131 |
+AM_CONDITIONAL([MOD_CHOLESKY], [test x$mod_cholesky = xyes]) |
132 |
+AM_CONDITIONAL([MOD_PARTITION], [test x$mod_partition = xyes]) |
133 |
+AM_CONDITIONAL([MOD_MATRIXOPS], [test x$mod_matrixops = xyes]) |
134 |
+AM_CONDITIONAL([MOD_MODIFY], [test x$mod_modify = xyes]) |
135 |
+AM_CONDITIONAL([MOD_SUPERNODAL], [test x$mod_supernodal = xyes]) |
136 |
+AC_CHECK_HEADERS(amd.h) |
137 |
+AC_CHECK_LIB(amd, amd_info, [], \ |
138 |
+ [AC_MSG_ERROR([Cannot find libamd])]) |
139 |
+ |
140 |
+AC_CHECK_HEADERS(colamd.h) |
141 |
+AC_CHECK_LIB(colamd, colamd_recommended, [], \ |
142 |
+ [AC_MSG_ERROR([Cannot find libcolamd])]) |
143 |
+ |
144 |
+AC_CONFIG_FILES( |
145 |
+ Makefile \ |
146 |
+ Check/Makefile \ |
147 |
+ Cholesky/Makefile \ |
148 |
+ Core/Makefile \ |
149 |
+ Include/Makefile \ |
150 |
+ MatrixOps/Makefile \ |
151 |
+ Modify/Makefile \ |
152 |
+ Partition/Makefile \ |
153 |
+ Supernodal/Makefile \ |
154 |
+ Demo/Makefile) |
155 |
+AC_OUTPUT |
156 |
--- acx_blas.m4 1970-01-01 01:00:00.000000000 +0100 |
157 |
+++ acx_blas.m4 2008-02-01 18:53:12.284468336 +0000 |
158 |
@@ -0,0 +1,191 @@ |
159 |
+##### http://autoconf-archive.cryp.to/acx_blas.html |
160 |
+# |
161 |
+# SYNOPSIS |
162 |
+# |
163 |
+# ACX_BLAS([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) |
164 |
+# |
165 |
+# DESCRIPTION |
166 |
+# |
167 |
+# This macro looks for a library that implements the BLAS |
168 |
+# linear-algebra interface (see http://www.netlib.org/blas/). On |
169 |
+# success, it sets the BLAS_LIBS output variable to hold the |
170 |
+# requisite library linkages. |
171 |
+# |
172 |
+# To link with BLAS, you should link with: |
173 |
+# |
174 |
+# $BLAS_LIBS $LIBS $FLIBS |
175 |
+# |
176 |
+# in that order. FLIBS is the output variable of the |
177 |
+# AC_F77_LIBRARY_LDFLAGS macro (called if necessary by ACX_BLAS), and |
178 |
+# is sometimes necessary in order to link with F77 libraries. Users |
179 |
+# will also need to use AC_F77_DUMMY_MAIN (see the autoconf manual), |
180 |
+# for the same reason. |
181 |
+# |
182 |
+# Many libraries are searched for, from ATLAS to CXML to ESSL. The |
183 |
+# user may also use --with-blas=<lib> in order to use some specific |
184 |
+# BLAS library <lib>. In order to link successfully, however, be |
185 |
+# aware that you will probably need to use the same Fortran compiler |
186 |
+# (which can be set via the F77 env. var.) as was used to compile the |
187 |
+# BLAS library. |
188 |
+# |
189 |
+# ACTION-IF-FOUND is a list of shell commands to run if a BLAS |
190 |
+# library is found, and ACTION-IF-NOT-FOUND is a list of commands to |
191 |
+# run it if it is not found. If ACTION-IF-FOUND is not specified, the |
192 |
+# default action will define HAVE_BLAS. |
193 |
+# |
194 |
+# This macro requires autoconf 2.50 or later. |
195 |
+# |
196 |
+# LAST MODIFICATION |
197 |
+# |
198 |
+# 2007-07-29 |
199 |
+# |
200 |
+# COPYLEFT |
201 |
+# |
202 |
+# Copyright (c) 2007 Steven G. Johnson <stevenj@××××××××.edu> |
203 |
+# |
204 |
+# This program is free software: you can redistribute it and/or |
205 |
+# modify it under the terms of the GNU General Public License as |
206 |
+# published by the Free Software Foundation, either version 3 of the |
207 |
+# License, or (at your option) any later version. |
208 |
+# |
209 |
+# This program is distributed in the hope that it will be useful, but |
210 |
+# WITHOUT ANY WARRANTY; without even the implied warranty of |
211 |
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
212 |
+# General Public License for more details. |
213 |
+# |
214 |
+# You should have received a copy of the GNU General Public License |
215 |
+# along with this program. If not, see |
216 |
+# <http://www.gnu.org/licenses/>. |
217 |
+# |
218 |
+# As a special exception, the respective Autoconf Macro's copyright |
219 |
+# owner gives unlimited permission to copy, distribute and modify the |
220 |
+# configure scripts that are the output of Autoconf when processing |
221 |
+# the Macro. You need not follow the terms of the GNU General Public |
222 |
+# License when using or distributing such scripts, even though |
223 |
+# portions of the text of the Macro appear in them. The GNU General |
224 |
+# Public License (GPL) does govern all other use of the material that |
225 |
+# constitutes the Autoconf Macro. |
226 |
+# |
227 |
+# This special exception to the GPL applies to versions of the |
228 |
+# Autoconf Macro released by the Autoconf Macro Archive. When you |
229 |
+# make and distribute a modified version of the Autoconf Macro, you |
230 |
+# may extend this special exception to the GPL to apply to your |
231 |
+# modified version as well. |
232 |
+ |
233 |
+AC_DEFUN([ACX_BLAS], [ |
234 |
+AC_PREREQ(2.50) |
235 |
+AC_REQUIRE([AC_F77_LIBRARY_LDFLAGS]) |
236 |
+acx_blas_ok=no |
237 |
+ |
238 |
+AC_ARG_WITH(blas, |
239 |
+ [AC_HELP_STRING([--with-blas=<lib>], [use BLAS library <lib>])]) |
240 |
+case $with_blas in |
241 |
+ yes | "") ;; |
242 |
+ no) acx_blas_ok=disable ;; |
243 |
+ -* | */* | *.a | *.so | *.so.* | *.o) BLAS_LIBS="$with_blas" ;; |
244 |
+ *) BLAS_LIBS="-l$with_blas" ;; |
245 |
+esac |
246 |
+ |
247 |
+# Get fortran linker names of BLAS functions to check for. |
248 |
+AC_F77_FUNC(sgemm) |
249 |
+AC_F77_FUNC(dgemm) |
250 |
+ |
251 |
+acx_blas_save_LIBS="$LIBS" |
252 |
+LIBS="$LIBS $FLIBS" |
253 |
+ |
254 |
+# First, check BLAS_LIBS environment variable |
255 |
+if test $acx_blas_ok = no; then |
256 |
+if test "x$BLAS_LIBS" != x; then |
257 |
+ save_LIBS="$LIBS"; LIBS="$BLAS_LIBS $LIBS" |
258 |
+ AC_MSG_CHECKING([for $sgemm in $BLAS_LIBS]) |
259 |
+ AC_TRY_LINK_FUNC($sgemm, [acx_blas_ok=yes], [BLAS_LIBS=""]) |
260 |
+ AC_MSG_RESULT($acx_blas_ok) |
261 |
+ LIBS="$save_LIBS" |
262 |
+fi |
263 |
+fi |
264 |
+ |
265 |
+# BLAS linked to by default? (happens on some supercomputers) |
266 |
+if test $acx_blas_ok = no; then |
267 |
+ save_LIBS="$LIBS"; LIBS="$LIBS" |
268 |
+ AC_CHECK_FUNC($sgemm, [acx_blas_ok=yes]) |
269 |
+ LIBS="$save_LIBS" |
270 |
+fi |
271 |
+ |
272 |
+# BLAS in ATLAS library? (http://math-atlas.sourceforge.net/) |
273 |
+if test $acx_blas_ok = no; then |
274 |
+ AC_CHECK_LIB(atlas, ATL_xerbla, |
275 |
+ [AC_CHECK_LIB(f77blas, $sgemm, |
276 |
+ [AC_CHECK_LIB(cblas, cblas_dgemm, |
277 |
+ [acx_blas_ok=yes |
278 |
+ BLAS_LIBS="-lcblas -lf77blas -latlas"], |
279 |
+ [], [-lf77blas -latlas])], |
280 |
+ [], [-latlas])]) |
281 |
+fi |
282 |
+ |
283 |
+# BLAS in PhiPACK libraries? (requires generic BLAS lib, too) |
284 |
+if test $acx_blas_ok = no; then |
285 |
+ AC_CHECK_LIB(blas, $sgemm, |
286 |
+ [AC_CHECK_LIB(dgemm, $dgemm, |
287 |
+ [AC_CHECK_LIB(sgemm, $sgemm, |
288 |
+ [acx_blas_ok=yes; BLAS_LIBS="-lsgemm -ldgemm -lblas"], |
289 |
+ [], [-lblas])], |
290 |
+ [], [-lblas])]) |
291 |
+fi |
292 |
+ |
293 |
+# BLAS in Alpha CXML library? |
294 |
+if test $acx_blas_ok = no; then |
295 |
+ AC_CHECK_LIB(cxml, $sgemm, [acx_blas_ok=yes;BLAS_LIBS="-lcxml"]) |
296 |
+fi |
297 |
+ |
298 |
+# BLAS in Alpha DXML library? (now called CXML, see above) |
299 |
+if test $acx_blas_ok = no; then |
300 |
+ AC_CHECK_LIB(dxml, $sgemm, [acx_blas_ok=yes;BLAS_LIBS="-ldxml"]) |
301 |
+fi |
302 |
+ |
303 |
+# BLAS in Sun Performance library? |
304 |
+if test $acx_blas_ok = no; then |
305 |
+ if test "x$GCC" != xyes; then # only works with Sun CC |
306 |
+ AC_CHECK_LIB(sunmath, acosp, |
307 |
+ [AC_CHECK_LIB(sunperf, $sgemm, |
308 |
+ [BLAS_LIBS="-xlic_lib=sunperf -lsunmath" |
309 |
+ acx_blas_ok=yes],[],[-lsunmath])]) |
310 |
+ fi |
311 |
+fi |
312 |
+ |
313 |
+# BLAS in SCSL library? (SGI/Cray Scientific Library) |
314 |
+if test $acx_blas_ok = no; then |
315 |
+ AC_CHECK_LIB(scs, $sgemm, [acx_blas_ok=yes; BLAS_LIBS="-lscs"]) |
316 |
+fi |
317 |
+ |
318 |
+# BLAS in SGIMATH library? |
319 |
+if test $acx_blas_ok = no; then |
320 |
+ AC_CHECK_LIB(complib.sgimath, $sgemm, |
321 |
+ [acx_blas_ok=yes; BLAS_LIBS="-lcomplib.sgimath"]) |
322 |
+fi |
323 |
+ |
324 |
+# BLAS in IBM ESSL library? (requires generic BLAS lib, too) |
325 |
+if test $acx_blas_ok = no; then |
326 |
+ AC_CHECK_LIB(blas, $sgemm, |
327 |
+ [AC_CHECK_LIB(essl, $sgemm, |
328 |
+ [acx_blas_ok=yes; BLAS_LIBS="-lessl -lblas"], |
329 |
+ [], [-lblas $FLIBS])]) |
330 |
+fi |
331 |
+ |
332 |
+# Generic BLAS library? |
333 |
+if test $acx_blas_ok = no; then |
334 |
+ AC_CHECK_LIB(blas, $sgemm, [acx_blas_ok=yes; BLAS_LIBS="-lblas"]) |
335 |
+fi |
336 |
+ |
337 |
+AC_SUBST(BLAS_LIBS) |
338 |
+ |
339 |
+LIBS="$acx_blas_save_LIBS" |
340 |
+ |
341 |
+# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: |
342 |
+if test x"$acx_blas_ok" = xyes; then |
343 |
+ ifelse([$1],,AC_DEFINE(HAVE_BLAS,1,[Define if you have a BLAS library.]),[$1]) |
344 |
+ : |
345 |
+else |
346 |
+ acx_blas_ok=no |
347 |
+ $2 |
348 |
+fi |
349 |
+])dnl ACX_BLAS |
350 |
--- acx_lapack.m4 1970-01-01 01:00:00.000000000 +0100 |
351 |
+++ acx_lapack.m4 2008-02-01 18:53:12.284468336 +0000 |
352 |
@@ -0,0 +1,133 @@ |
353 |
+##### http://autoconf-archive.cryp.to/acx_lapack.html |
354 |
+# |
355 |
+# SYNOPSIS |
356 |
+# |
357 |
+# ACX_LAPACK([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) |
358 |
+# |
359 |
+# DESCRIPTION |
360 |
+# |
361 |
+# This macro looks for a library that implements the LAPACK |
362 |
+# linear-algebra interface (see http://www.netlib.org/lapack/). On |
363 |
+# success, it sets the LAPACK_LIBS output variable to hold the |
364 |
+# requisite library linkages. |
365 |
+# |
366 |
+# To link with LAPACK, you should link with: |
367 |
+# |
368 |
+# $LAPACK_LIBS $BLAS_LIBS $LIBS $FLIBS |
369 |
+# |
370 |
+# in that order. BLAS_LIBS is the output variable of the ACX_BLAS |
371 |
+# macro, called automatically. FLIBS is the output variable of the |
372 |
+# AC_F77_LIBRARY_LDFLAGS macro (called if necessary by ACX_BLAS), and |
373 |
+# is sometimes necessary in order to link with F77 libraries. Users |
374 |
+# will also need to use AC_F77_DUMMY_MAIN (see the autoconf manual), |
375 |
+# for the same reason. |
376 |
+# |
377 |
+# The user may also use --with-lapack=<lib> in order to use some |
378 |
+# specific LAPACK library <lib>. In order to link successfully, |
379 |
+# however, be aware that you will probably need to use the same |
380 |
+# Fortran compiler (which can be set via the F77 env. var.) as was |
381 |
+# used to compile the LAPACK and BLAS libraries. |
382 |
+# |
383 |
+# ACTION-IF-FOUND is a list of shell commands to run if a LAPACK |
384 |
+# library is found, and ACTION-IF-NOT-FOUND is a list of commands to |
385 |
+# run it if it is not found. If ACTION-IF-FOUND is not specified, the |
386 |
+# default action will define HAVE_LAPACK. |
387 |
+# |
388 |
+# LAST MODIFICATION |
389 |
+# |
390 |
+# 2007-07-29 |
391 |
+# |
392 |
+# COPYLEFT |
393 |
+# |
394 |
+# Copyright (c) 2007 Steven G. Johnson <stevenj@××××××××.edu> |
395 |
+# |
396 |
+# This program is free software: you can redistribute it and/or |
397 |
+# modify it under the terms of the GNU General Public License as |
398 |
+# published by the Free Software Foundation, either version 3 of the |
399 |
+# License, or (at your option) any later version. |
400 |
+# |
401 |
+# This program is distributed in the hope that it will be useful, but |
402 |
+# WITHOUT ANY WARRANTY; without even the implied warranty of |
403 |
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
404 |
+# General Public License for more details. |
405 |
+# |
406 |
+# You should have received a copy of the GNU General Public License |
407 |
+# along with this program. If not, see |
408 |
+# <http://www.gnu.org/licenses/>. |
409 |
+# |
410 |
+# As a special exception, the respective Autoconf Macro's copyright |
411 |
+# owner gives unlimited permission to copy, distribute and modify the |
412 |
+# configure scripts that are the output of Autoconf when processing |
413 |
+# the Macro. You need not follow the terms of the GNU General Public |
414 |
+# License when using or distributing such scripts, even though |
415 |
+# portions of the text of the Macro appear in them. The GNU General |
416 |
+# Public License (GPL) does govern all other use of the material that |
417 |
+# constitutes the Autoconf Macro. |
418 |
+# |
419 |
+# This special exception to the GPL applies to versions of the |
420 |
+# Autoconf Macro released by the Autoconf Macro Archive. When you |
421 |
+# make and distribute a modified version of the Autoconf Macro, you |
422 |
+# may extend this special exception to the GPL to apply to your |
423 |
+# modified version as well. |
424 |
+ |
425 |
+AC_DEFUN([ACX_LAPACK], [ |
426 |
+AC_REQUIRE([ACX_BLAS]) |
427 |
+acx_lapack_ok=no |
428 |
+ |
429 |
+AC_ARG_WITH(lapack, |
430 |
+ [AC_HELP_STRING([--with-lapack=<lib>], [use LAPACK library <lib>])]) |
431 |
+case $with_lapack in |
432 |
+ yes | "") ;; |
433 |
+ no) acx_lapack_ok=disable ;; |
434 |
+ -* | */* | *.a | *.so | *.so.* | *.o) LAPACK_LIBS="$with_lapack" ;; |
435 |
+ *) LAPACK_LIBS="-l$with_lapack" ;; |
436 |
+esac |
437 |
+ |
438 |
+# Get fortran linker name of LAPACK function to check for. |
439 |
+AC_F77_FUNC(cheev) |
440 |
+ |
441 |
+# We cannot use LAPACK if BLAS is not found |
442 |
+if test "x$acx_blas_ok" != xyes; then |
443 |
+ acx_lapack_ok=noblas |
444 |
+fi |
445 |
+ |
446 |
+# First, check LAPACK_LIBS environment variable |
447 |
+if test "x$LAPACK_LIBS" != x; then |
448 |
+ save_LIBS="$LIBS"; LIBS="$LAPACK_LIBS $BLAS_LIBS $LIBS $FLIBS" |
449 |
+ AC_MSG_CHECKING([for $cheev in $LAPACK_LIBS]) |
450 |
+ AC_TRY_LINK_FUNC($cheev, [acx_lapack_ok=yes], [LAPACK_LIBS=""]) |
451 |
+ AC_MSG_RESULT($acx_lapack_ok) |
452 |
+ LIBS="$save_LIBS" |
453 |
+ if test acx_lapack_ok = no; then |
454 |
+ LAPACK_LIBS="" |
455 |
+ fi |
456 |
+fi |
457 |
+ |
458 |
+# LAPACK linked to by default? (is sometimes included in BLAS lib) |
459 |
+if test $acx_lapack_ok = no; then |
460 |
+ save_LIBS="$LIBS"; LIBS="$LIBS $BLAS_LIBS $FLIBS" |
461 |
+ AC_CHECK_FUNC($cheev, [acx_lapack_ok=yes]) |
462 |
+ LIBS="$save_LIBS" |
463 |
+fi |
464 |
+ |
465 |
+# Generic LAPACK library? |
466 |
+for lapack in lapack lapack_rs6k; do |
467 |
+ if test $acx_lapack_ok = no; then |
468 |
+ save_LIBS="$LIBS"; LIBS="$BLAS_LIBS $LIBS" |
469 |
+ AC_CHECK_LIB($lapack, $cheev, |
470 |
+ [acx_lapack_ok=yes; LAPACK_LIBS="-l$lapack"], [], [$FLIBS]) |
471 |
+ LIBS="$save_LIBS" |
472 |
+ fi |
473 |
+done |
474 |
+ |
475 |
+AC_SUBST(LAPACK_LIBS) |
476 |
+ |
477 |
+# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: |
478 |
+if test x"$acx_lapack_ok" = xyes; then |
479 |
+ ifelse([$1],,AC_DEFINE(HAVE_LAPACK,1,[Define if you have LAPACK library.]),[$1]) |
480 |
+ : |
481 |
+else |
482 |
+ acx_lapack_ok=no |
483 |
+ $2 |
484 |
+fi |
485 |
+])dnl ACX_LAPACK |
486 |
--- ./Core/Makefile.am 1970-01-01 01:00:00.000000000 +0100 |
487 |
+++ ./Core/Makefile.am 2008-02-01 18:53:12.288468564 +0000 |
488 |
@@ -0,0 +1,19 @@ |
489 |
+AM_CPPFLAGS = -I$(top_srcdir)/Include |
490 |
+noinst_LTLIBRARIES = libcore.la libcorel.la |
491 |
+libcore_la_SOURCES = cholmod_aat.c \ |
492 |
+ cholmod_add.c \ |
493 |
+ cholmod_band.c \ |
494 |
+ cholmod_change_factor.c \ |
495 |
+ cholmod_common.c \ |
496 |
+ cholmod_complex.c \ |
497 |
+ cholmod_copy.c \ |
498 |
+ cholmod_dense.c \ |
499 |
+ cholmod_error.c \ |
500 |
+ cholmod_factor.c \ |
501 |
+ cholmod_memory.c \ |
502 |
+ cholmod_sparse.c \ |
503 |
+ cholmod_transpose.c \ |
504 |
+ cholmod_triplet.c |
505 |
+ |
506 |
+libcorel_la_SOURCES = $(libcore_la_SOURCES) |
507 |
+libcorel_la_CPPFLAGS = $(AM_CPPFLAGS) -DDLONG |
508 |
--- ./Demo/Makefile.am 1970-01-01 01:00:00.000000000 +0100 |
509 |
+++ ./Demo/Makefile.am 2008-02-01 18:53:12.288468564 +0000 |
510 |
@@ -0,0 +1,28 @@ |
511 |
+AM_CPPFLAGS = -I$(top_srcdir)/Include |
512 |
+if MOD_PARTITION |
513 |
+LMETIS = -lmetis -lccolamd -lcamd |
514 |
+endif |
515 |
+ |
516 |
+if MOD_SUPERNODAL |
517 |
+LSUPERNODAL = $(LAPACK_LIBS) $(BLAS_LIBS) |
518 |
+endif |
519 |
+ |
520 |
+LDADD = $(top_builddir)/libcholmod.la $(LMETIS) $(LSUPERNODAL) |
521 |
+ |
522 |
+check_PROGRAMS = cholmod_demo cholmod_l_demo cholmod_simple |
523 |
+cholmod_demo_SOURCES = cholmod_demo.c |
524 |
+cholmod_l_demo_SOURCES = cholmod_l_demo.c |
525 |
+cholmod_simple_SOURCES = cholmod_simple.c |
526 |
+ |
527 |
+test: check |
528 |
+ ./cholmod_demo < Matrix/bcsstk01.tri || exit 1 |
529 |
+ ./cholmod_l_demo < Matrix/bcsstk01.tri || exit 1 |
530 |
+ ./cholmod_demo < Matrix/lp_afiro.tri || exit 1 |
531 |
+ ./cholmod_l_demo < Matrix/lp_afiro.tri || exit 1 |
532 |
+ ./cholmod_demo < Matrix/can___24.mtx || exit 1 |
533 |
+ ./cholmod_l_demo < Matrix/can___24.mtx || exit 1 |
534 |
+ ./cholmod_demo < Matrix/c.tri || exit 1 |
535 |
+ ./cholmod_l_demo < Matrix/c.tri || exit 1 |
536 |
+ ./cholmod_simple < Matrix/c.tri || exit 1 |
537 |
+ ./cholmod_simple < Matrix/can___24.mtx || exit 1 |
538 |
+ ./cholmod_simple < Matrix/bcsstk01.tri || exit 1 |
539 |
--- ./Check/Makefile.am 1970-01-01 01:00:00.000000000 +0100 |
540 |
+++ ./Check/Makefile.am 2008-02-01 18:53:12.284468336 +0000 |
541 |
@@ -0,0 +1,5 @@ |
542 |
+AM_CPPFLAGS = -I$(top_srcdir)/Include |
543 |
+noinst_LTLIBRARIES = libcheck.la libcheckl.la |
544 |
+libcheck_la_SOURCES = cholmod_check.c cholmod_read.c cholmod_write.c |
545 |
+libcheckl_la_SOURCES = $(libcheck_la_SOURCES) |
546 |
+libcheckl_la_CPPFLAGS = $(AM_CPPFLAGS) -DDLONG |
547 |
--- ./Supernodal/Makefile.am 1970-01-01 01:00:00.000000000 +0100 |
548 |
+++ ./Supernodal/Makefile.am 2008-02-01 18:53:12.292468792 +0000 |
549 |
@@ -0,0 +1,5 @@ |
550 |
+AM_CPPFLAGS = -I$(top_srcdir)/Include |
551 |
+noinst_LTLIBRARIES = libsnod.la libsnodl.la |
552 |
+libsnod_la_SOURCES = cholmod_super_numeric.c cholmod_super_symbolic.c cholmod_super_solve.c |
553 |
+libsnodl_la_SOURCES = $(libsnod_la_SOURCES) |
554 |
+libsnodl_la_CPPFLAGS = $(AM_CPPFLAGS) -DDLONG |
555 |
--- ./Modify/Makefile.am 1970-01-01 01:00:00.000000000 +0100 |
556 |
+++ ./Modify/Makefile.am 2008-02-01 18:53:12.292468792 +0000 |
557 |
@@ -0,0 +1,5 @@ |
558 |
+AM_CPPFLAGS = -I$(top_srcdir)/Include |
559 |
+noinst_LTLIBRARIES = libmodify.la libmodifyl.la |
560 |
+libmodify_la_SOURCES = cholmod_rowadd.c cholmod_updown.c cholmod_rowdel.c |
561 |
+libmodifyl_la_SOURCES = $(libmodify_la_SOURCES) |
562 |
+libmodifyl_la_CPPFLAGS = $(AM_CPPFLAGS) -DDLONG |
563 |
--- ./Cholesky/Makefile.am 1970-01-01 01:00:00.000000000 +0100 |
564 |
+++ ./Cholesky/Makefile.am 2008-02-01 18:53:12.284468336 +0000 |
565 |
@@ -0,0 +1,17 @@ |
566 |
+AM_CPPFLAGS = -I$(top_srcdir)/Include |
567 |
+noinst_LTLIBRARIES = libcholesky.la libcholeskyl.la |
568 |
+libcholesky_la_SOURCES = cholmod_amd.c \ |
569 |
+ cholmod_analyze.c \ |
570 |
+ cholmod_colamd.c \ |
571 |
+ cholmod_etree.c \ |
572 |
+ cholmod_factorize.c \ |
573 |
+ cholmod_postorder.c \ |
574 |
+ cholmod_rcond.c \ |
575 |
+ cholmod_resymbol.c \ |
576 |
+ cholmod_rowcolcounts.c \ |
577 |
+ cholmod_rowfac.c \ |
578 |
+ cholmod_solve.c \ |
579 |
+ cholmod_spsolve.c |
580 |
+ |
581 |
+libcholeskyl_la_SOURCES = $(libcholesky_la_SOURCES) |
582 |
+libcholeskyl_la_CPPFLAGS = $(AM_CPPFLAGS) -DDLONG |
583 |
--- ./MatrixOps/Makefile.am 1970-01-01 01:00:00.000000000 +0100 |
584 |
+++ ./MatrixOps/Makefile.am 2008-02-01 18:53:12.288468564 +0000 |
585 |
@@ -0,0 +1,14 @@ |
586 |
+AM_CPPFLAGS = -I$(top_srcdir)/Include |
587 |
+noinst_LTLIBRARIES = libmops.la libmopsl.la |
588 |
+libmops_la_SOURCES = cholmod_drop.c \ |
589 |
+ cholmod_horzcat.c \ |
590 |
+ cholmod_norm.c \ |
591 |
+ cholmod_scale.c \ |
592 |
+ cholmod_sdmult.c \ |
593 |
+ cholmod_ssmult.c \ |
594 |
+ cholmod_submatrix.c \ |
595 |
+ cholmod_symmetry.c \ |
596 |
+ cholmod_vertcat.c |
597 |
+ |
598 |
+libmopsl_la_SOURCES = $(libmops_la_SOURCES) |
599 |
+libmopsl_la_CPPFLAGS = $(AM_CPPFLAGS) -DDLONG |
600 |
--- ./Include/Makefile.am 1970-01-01 01:00:00.000000000 +0100 |
601 |
+++ ./Include/Makefile.am 2008-02-01 18:53:12.288468564 +0000 |
602 |
@@ -0,0 +1,29 @@ |
603 |
+if MOD_CHECK |
604 |
+CHECK = cholmod_check.h |
605 |
+endif |
606 |
+ |
607 |
+if MOD_CHOLESKY |
608 |
+CHOLESKY = cholmod_cholesky.h |
609 |
+endif |
610 |
+ |
611 |
+if MOD_PARTITION |
612 |
+PARTITION = cholmod_partition.h |
613 |
+endif |
614 |
+ |
615 |
+if MOD_MATRIXOPS |
616 |
+MATRIXOPS = cholmod_matrixops.h |
617 |
+endif |
618 |
+ |
619 |
+if MOD_MODIFY |
620 |
+MODIFY = cholmod_modify.h |
621 |
+endif |
622 |
+ |
623 |
+if MOD_SUPERNODAL |
624 |
+SUPERNODAL = cholmod_supernodal.h |
625 |
+endif |
626 |
+ |
627 |
+include_HEADERS = $(CHECK) $(CHOLESKY) $(PARTITIOn) $(MATRIXOPS) $(MODIFY) $(SUPERNODAL) \ |
628 |
+ cholmod.h \ |
629 |
+ cholmod_config.h \ |
630 |
+ cholmod_core.h \ |
631 |
+ cholmod_io64.h |
632 |
--- ./Partition/Makefile.am 1970-01-01 01:00:00.000000000 +0100 |
633 |
+++ ./Partition/Makefile.am 2008-02-01 18:53:12.292468792 +0000 |
634 |
@@ -0,0 +1,6 @@ |
635 |
+AM_CPPFLAGS = -I$(top_srcdir)/Include |
636 |
+noinst_LTLIBRARIES = libpart.la libpartl.la |
637 |
+libpart_la_SOURCES = cholmod_camd.c cholmod_csymamd.c cholmod_nesdis.c cholmod_ccolamd.c cholmod_metis.c |
638 |
+ |
639 |
+libpartl_la_SOURCES = $(libpart_la_SOURCES) |
640 |
+libpartl_la_CPPFLAGS = $(AM_CPPFLAGS) -DDLONG |
641 |
--- ./Makefile.am 1970-01-01 01:00:00.000000000 +0100 |
642 |
+++ ./Makefile.am 2008-02-01 18:53:12.288468564 +0000 |
643 |
@@ -0,0 +1,42 @@ |
644 |
+SUBDIRS = Include Demo Core $(MODULES) |
645 |
+EXTRA_DIST = README.txt |
646 |
+ |
647 |
+lib_LTLIBRARIES = libcholmod.la |
648 |
+ |
649 |
+if MOD_CHECK |
650 |
+CHECK = $(top_builddir)/Check/libcheck.la \ |
651 |
+ $(top_builddir)/Check/libcheckl.la |
652 |
+endif |
653 |
+ |
654 |
+if MOD_CHOLESKY |
655 |
+CHOLESKY = $(top_builddir)/Cholesky/libcholesky.la \ |
656 |
+ $(top_builddir)/Cholesky/libcholeskyl.la |
657 |
+endif |
658 |
+ |
659 |
+if MOD_PARTITION |
660 |
+PARTITION = $(top_builddir)/Partition/libpart.la \ |
661 |
+ $(top_builddir)/Partition/libpartl.la \ |
662 |
+ -lmetis -lccolamd -lcamd |
663 |
+endif |
664 |
+ |
665 |
+if MOD_MATRIXOPS |
666 |
+MATRIXOPS = $(top_builddir)/MatrixOps/libmops.la \ |
667 |
+ $(top_builddir)/MatrixOps/libmopsl.la |
668 |
+endif |
669 |
+ |
670 |
+if MOD_MODIFY |
671 |
+MODIFY = $(top_builddir)/Modify/libmodify.la \ |
672 |
+ $(top_builddir)/Modify/libmodifyl.la |
673 |
+endif |
674 |
+ |
675 |
+if MOD_SUPERNODAL |
676 |
+SUPERNODAL = $(top_builddir)/Supernodal/libsnod.la \ |
677 |
+ $(top_builddir)/Supernodal/libsnodl.la \ |
678 |
+ $(LAPACK_LIBS) $(BLAS_LIBS) |
679 |
+endif |
680 |
+ |
681 |
+libcholmod_la_SOURCES = |
682 |
+libcholmod_la_LIBADD = $(CHECK) $(CHOLESKY) $(PARTITION) $(MATRIXOPS) \ |
683 |
+ $(MODIFY) $(SUPERNODAL) -lcolamd -lamd \ |
684 |
+ $(top_builddir)/Core/libcore.la \ |
685 |
+ $(top_builddir)/Core/libcorel.la |
686 |
|
687 |
|
688 |
|
689 |
-- |
690 |
gentoo-commits@l.g.o mailing list |