summaryrefslogtreecommitdiff
blob: 64d7ecd9ab169a58c0534cfc27ae4442bad75f99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
--- configure.ac 	1970-01-01 01:00:00.000000000 +0100
+++ configure.ac	2008-03-25 11:07:24.560995022 +0000
@@ -0,0 +1,53 @@
+# -*- Autoconf -*-
+AC_PREREQ(2.59)
+AC_INIT([metis], [5.0pre2], [metis@cs.umn.edu], [metis])
+AM_INIT_AUTOMAKE([foreign])
+
+AC_PROG_MAKE_SET
+AC_PROG_LIBTOOL
+AC_CHECK_LIB(m, [sqrt, pow, log])
+
+AC_ARG_ENABLE(openmp,
+    [AC_HELP_STRING([--enable-openmp],
+		    [compile with openmp])],
+     [enable_openmp=$enableval],
+     [enable_openmp="yes"])
+AC_MSG_RESULT($enable_openmp)
+if test x$enable_openmp = xyes; then
+   AC_CHECK_HEADERS(omp.h)  
+   OMP_CPPFLAGS=-D__OPENMP__
+   if test x$CC = xicc; then
+       OMP_CFLAGS="-openmp -openmp-report2"
+       OMP_LIBS=-openmp
+   else
+       OMP_CFLAGS=-fopenmp
+       OMP_LIBS=-lgomp
+   fi	
+fi
+
+AC_ARG_ENABLE(pcre,
+	[AC_HELP_STRING([--enable-pcre],
+			[Enable PCRE regex support])],
+     [enable_pcre=$enableval],
+     [enable_pcre="yes"])
+AC_MSG_RESULT($enable_pcre)
+if test x$enable_pcre = xyes; then
+  AC_PATH_PROGS(PCRE_CONFIG, pcre-config, no)
+  if test "$PCRE_CONFIG" = "no"; then
+      AC_MSG_ERROR(Unable to find pcre-config in path for PCRE support)
+  else
+      AC_CHECK_HEADERS(pcre.h)
+      PCRE="yes"
+      PCRE_CPPFLAGS=-D__WITHPCRE__
+      PCRE_LIBS=-lpcre
+  fi
+fi
+
+AC_CONFIG_FILES([
+    Makefile
+    metis.pc
+    GKlib/trunk/Makefile
+    libmetis/Makefile
+    programs/Makefile
+    test/Makefile])
+AC_OUTPUT
--- metis.pc.in 	1970-01-01 01:00:00.000000000 +0100
+++ metis.pc.in	2008-03-25 11:07:04.387845420 +0000
@@ -0,0 +1,10 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: METIS
+Description: Software for partioning unstructured graphes and meshes
+Version: @VERSION@
+Libs: -L${libdir} -lmetis
+Cflags: -I${includedir}
--- ./test/Makefile.am 	1970-01-01 01:00:00.000000000 +0100
+++ ./test/Makefile.am	2008-03-25 11:07:04.387845420 +0000
@@ -0,0 +1,10 @@
+AM_CPPFLAGS = \
+	-I$(top_srcdir)/include \
+	-I$(top_srcdir)/libmetis \
+	-I$(top_srcdir)/programs \
+	-I$(top_srcdir)/GKlib/trunk \
+	-DLINUX -DUNIX -D_FILE_OFFSET_BITS=64
+
+check_PROGRAMS = mtest
+mtest_SOURCES = mtest.c $(top_srcdir)/programs/io.c
+mtest_LDADD = $(top_builddir)/libmetis/libmetis.la
--- ./programs/Makefile.am 	1970-01-01 01:00:00.000000000 +0100
+++ ./programs/Makefile.am	2008-03-25 11:07:04.387845420 +0000
@@ -0,0 +1,19 @@
+AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/GKlib/trunk -DLINUX -DUNIX -D_FILE_OFFSET_BITS=64
+bin_PROGRAMS = cmetis graphchk kfmetis kmetis mesh2dual mesh2nodal metis \
+	oemetis onmetis partdmesh partnmesh pmetis
+
+# Differing from upstream, a lot of these get smbfactor.c as we need
+# ComputeFillIn2, which is referenced in proto.h <- metisbin.h
+LDADD = $(top_builddir)/libmetis/libmetis.la
+cmetis_SOURCES = cmetis.c io.c cmdline_cmetis.c 
+graphchk_SOURCES = graphchk.c io.c 
+kfmetis_SOURCES = kfmetis.c io.c cmdline_kfmetis.c
+kmetis_SOURCES = kmetis.c io.c 
+mesh2dual_SOURCES = mesh2dual.c io.c 
+mesh2nodal_SOURCES = mesh2nodal.c io.c 
+metis_SOURCES = metis.c io.c
+oemetis_SOURCES = oemetis.c io.c
+onmetis_SOURCES = onmetis.c io.c
+partdmesh_SOURCES = partdmesh.c io.c 
+partnmesh_SOURCES = partnmesh.c io.c 
+pmetis_SOURCES = pmetis.c io.c cmdline_pmetis.c 
--- ./GKlib/trunk/Makefile.am 	1970-01-01 01:00:00.000000000 +0100
+++ ./GKlib/trunk/Makefile.am	2008-03-25 11:07:04.387845420 +0000
@@ -0,0 +1,26 @@
+AM_CPPFLAGS = -DLINUX -D_FILE_OFFSET_BITS=6 $(PCRE_CPPFLAGS) $(OMP_CPPFLAGS)
+AM_CFLAGS = -std=c99 $(OMP_CFLAGS)
+
+noinst_LTLIBRARIES = libgklib.la
+noinst_HEADERS = GKlib.h
+
+libgklib_la_SOURCES = \
+	b64.c \
+	blas.c \
+	dfkvkselect.c \
+	dlmalloc.c \
+	error.c \
+	fs.c \
+	getopt.c \
+	htable.c \
+	io.c \
+	memory.c \
+	omp.c \
+	pdb.c \
+	seq.c \
+	sort.c \
+	string.c \
+	timers.c \
+	tokenizer.c \
+	util.c
+libgklib_la_LIBADD = $(OMP_LDFLAGS) $(PCRE_LDFLAGS)
--- ./libmetis/Makefile.am 	1970-01-01 01:00:00.000000000 +0100
+++ ./libmetis/Makefile.am	2008-03-25 11:07:04.387845420 +0000
@@ -0,0 +1,20 @@
+AM_CPPFLAGS = \
+	-I$(top_srcdir)/include \
+	-I$(top_srcdir)/GKlib/trunk \
+	-DLINUX -DUNIX -D_FILE_OFFSET_BITS=64
+
+lib_LTLIBRARIES = libmetis.la
+libmetis_la_SOURCES= \
+	balance.c bucketsort.c ccgraph.c checkgraph.c cmetis.c \
+	coarsen.c compress.c debug.c estmem.c fm.c fortran.c \
+	frename.c graph.c initpart.c kfmetis.c kmetis.c kvmetis.c \
+	kwayfm.c kwayrefine.c kwayvolfm.c kwayvolrefine.c match.c \
+	mbalance.c mbalance2.c mcoarsen.c memory.c mesh.c meshpart.c \
+	mfm.c mfm2.c mincover.c minitpart.c minitpart2.c mkmetis.c \
+	mkwayfmh.c mkwayrefine.c mmatch.c mmd.c mpmetis.c mrefine.c \
+	mrefine2.c mrkmetis.c mutil.c myqsort.c ometis.c parmetis.c \
+	pmetis.c pqueue.c refine.c rkmetis.c separator.c sfm.c \
+	srefine.c stat.c streamio.c subdomains.c timing.c util.c \
+	smbfactor.c
+libmetis_la_LIBADD = $(top_builddir)/GKlib/trunk/libgklib.la
+libmetis_la_LDFLAGS = -no-undefined -version-info 5:0:0
--- ./Makefile.am 	1970-01-01 01:00:00.000000000 +0100
+++ ./Makefile.am	2008-03-25 11:07:04.387845420 +0000
@@ -0,0 +1,3 @@
+SUBDIRS = GKlib/trunk libmetis programs test
+EXTRA_DIST = CHANGES.v4 CHANGES.v5
+include_HEADERS = include/metis.h