summaryrefslogtreecommitdiff
path: root/academic/suitesparseconfig/autotoolize.diff
diff options
context:
space:
mode:
Diffstat (limited to 'academic/suitesparseconfig/autotoolize.diff')
-rw-r--r--academic/suitesparseconfig/autotoolize.diff19
1 files changed, 13 insertions, 6 deletions
diff --git a/academic/suitesparseconfig/autotoolize.diff b/academic/suitesparseconfig/autotoolize.diff
index 495a940f10..2ac9afc27e 100644
--- a/academic/suitesparseconfig/autotoolize.diff
+++ b/academic/suitesparseconfig/autotoolize.diff
@@ -2,7 +2,7 @@ diff --git a/Makefile.am b/Makefile.am
new file mode 100644
--- /dev/null
+++ b/Makefile.am
-@@ -0,0 +1,15 @@
+@@ -0,0 +1,16 @@
+SUBDIRS = xerbla
+
+EXTRA_DIST = README.txt
@@ -17,17 +17,18 @@ new file mode 100644
+
+lib_LTLIBRARIES = libsuitesparseconfig.la
+libsuitesparseconfig_la_SOURCES = SuiteSparse_config.c
-+libsuitesparseconfig_la_LDFLAGS = -no-undefined -version-number 4:2:1
++libsuitesparseconfig_la_LIBADD = -lm
++libsuitesparseconfig_la_LDFLAGS = -no-undefined -release $(PACKAGE_VERSION)
diff --git a/configure.ac b/configure.ac
new file mode 100644
--- /dev/null
+++ b/configure.ac
-@@ -0,0 +1,32 @@
+@@ -0,0 +1,37 @@
+# -*- Autoconf -*-
+# Process this file with autoconf to produce a configure script.
+
+AC_PREREQ([2.69])
-+AC_INIT([SuiteSparse_config],[4.2.1],[DrTimothyAldenDavis@gmail.com],[suitesparseconfig],[http://www.suitesparse.com/])
++AC_INIT([SuiteSparse_config],[4.4.4],[DrTimothyAldenDavis@gmail.com],[suitesparseconfig],[http://www.suitesparse.com/])
+AC_CONFIG_SRCDIR([SuiteSparse_config.c])
+AC_CONFIG_HEADERS([config.h])
+AM_INIT_AUTOMAKE([foreign])
@@ -38,7 +39,10 @@ new file mode 100644
+AC_PROG_CC
+AC_PROG_F77
+
++LIBS_SAVED=$LIBS
++
+# Checks for libraries.
++AC_CHECK_LIB([m], [sqrt])
+
+# Checks for header files.
+AC_CHECK_HEADERS([limits.h stdlib.h])
@@ -48,7 +52,9 @@ new file mode 100644
+
+# Checks for library functions.
+AC_FUNC_MALLOC
-+AC_CHECK_FUNCS([clock_gettime])
++AC_CHECK_FUNCS([clock_gettime sqrt])
++
++LIBS=$LIBS_SAVED
+
+AC_CONFIG_FILES([
+ suitesparseconfig.pc
@@ -59,7 +65,7 @@ diff --git a/suitesparseconfig.pc.in b/suitesparseconfig.pc.in
new file mode 100644
--- /dev/null
+++ b/suitesparseconfig.pc.in
-@@ -0,0 +1,11 @@
+@@ -0,0 +1,12 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
@@ -70,6 +76,7 @@ new file mode 100644
+Version: @PACKAGE_VERSION@
+URL: @PACKAGE_URL@
+Libs: -L${libdir} -lsuitesparseconfig
++Libs.private: -lm
+Cflags: -I${includedir}
diff --git a/xerbla/Makefile.am b/xerbla/Makefile.am
new file mode 100644