Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 19e3359

Browse files
author
Gregory L. Lee
committedNov 2, 2012
removed graphlib 1.X support
1 parent 665970b commit 19e3359

13 files changed

+31
-328
lines changed
 

‎ChangeLog

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
2012-11-02 Gregory L. Lee <lee218@llnl.gov>
2+
* src/STAT_*.[C,h], config/x_ac_graphlib.m4 : removed graphlib 1.X support
23
* src/STAT_*.[C,h], config/x_ac_mrnet.m4 : removed MRNet 2.X support
34

45
2012-11-01 Gregory L. Lee <lee218@llnl.gov>

‎INSTALL

+7-5
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,17 @@ Dependent Packages
1111
STAT has several dependencies
1212

1313
Table 1. STAT Dependent Packages
14-
Package What It Does
14+
Package What It Does
1515
Package Web Page
16-
Graphlib Graph creation, merging, and export
16+
Graphlib version 2.0 or greater Graph creation, merging, and
17+
export
1718
https://outreach.scidac.gov/projects/stat/
18-
Launchmon Scalable daemon co-location
19+
Launchmon Scalable daemon co-location
1920
http://sourceforge.net/projects/launchmon/
20-
Libdwarf Debug information parsing (Required by StackWalker)
21+
Libdwarf Debug information parsing (Required by StackWalker)
2122
http://reality.sgiweb.org/davea/dwarf.html
22-
MRNet Scalable multicast and reduction network
23+
MRNet version 3.0 or greater Scalable multicast and reduction
24+
network
2325
http://www.paradyn.org/mrnet/
2426
StackWalker Lightweight stack trace sampling
2527
http://www.paradyn.org/html/downloads.html

‎config.h.in

-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
/* Define DEBUG flag */
1010
#undef DEBUG
1111

12-
/* Graphlib 1.6 */
13-
#undef GRAPHLIB16
14-
1512
/* Graphlib 2.0 */
1613
#undef GRAPHLIB20
1714

‎config/x_ac_graphlib.m4

+7-15
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
AC_DEFUN([X_AC_GRAPHLIB], [
2+
23
AM_CONDITIONAL([ENABLE_GRAPHLIB20], false)
4+
35
AC_ARG_WITH(graphlib,
46
[AS_HELP_STRING([--with-graphlib=prefix],
57
[Add the compile and link search paths for graphlib]
@@ -12,11 +14,13 @@ AC_DEFUN([X_AC_GRAPHLIB], [
1214
[CXXFLAGS="$CXXFLAGS"]
1315
)
1416
AC_LANG_PUSH(C++)
17+
1518
AC_CHECK_HEADER(graphlib.h,
1619
[],
1720
[AC_MSG_ERROR([graphlib.h is required. Specify graphlib prefix with --with-graphlib])],
1821
AC_INCLUDES_DEFAULT
1922
)
23+
2024
AC_MSG_CHECKING([Checking Graphlib Version])
2125
graphlib_vers=1
2226
AC_COMPILE_IFELSE([#include "graphlib.h"
@@ -28,29 +32,17 @@ AC_DEFUN([X_AC_GRAPHLIB], [
2832
return 0;
2933
}],
3034
[AC_DEFINE([GRAPHLIB20], [], [Graphlib 2.0])
31-
AC_DEFINE([GRAPHLIB16], [], [Graphlib 1.6])
3235
graphlib_vers=2.0
3336
AM_CONDITIONAL([ENABLE_GRAPHLIB20], true)
3437
]
3538
)
36-
if test $graphlib_vers = 1; then
37-
AC_COMPILE_IFELSE([#include "graphlib.h"
38-
#include <stdlib.h>
39-
#include <stdio.h>
40-
int main()
41-
{
42-
unsigned long bufLength;
43-
graphlib_serializeGraph(NULL, NULL, &bufLength);
44-
}],
45-
[AC_DEFINE([GRAPHLIB16], [], [Graphlib 1.6])
46-
graphlib_vers=1.6
47-
]
48-
)
39+
if test "$graphlib_vers" = 1 ; then
40+
AC_MSG_ERROR([STAT requires graphlib 2.0 or greater. Specify graphlib prefix with --with-graphlib])
4941
fi
5042
AC_MSG_RESULT([$graphlib_vers])
5143
AC_CHECK_LIB(lnlgraph,graphlib_newGraph,liblnlgraph_found=yes,liblnlgraph_found=no)
5244
if test "$liblnlgraph_found" = yes; then
53-
CXXFLAGS="$CXXFLAGS -DSTAT_BITVECTOR -DGRL_DYNAMIC_NODE_NAME"
45+
CXXFLAGS="$CXXFLAGS"
5446
FELIBS="$FELIBS -llnlgraph"
5547
BELIBS="$BELIBS -llnlgraph"
5648
MWLIBS="$MWLIBS -llnlgraph"

‎configure

+9-51
Original file line numberDiff line numberDiff line change
@@ -16380,6 +16380,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
1638016380

1638116381

1638216382

16383+
1638316384
if false; then
1638416385
ENABLE_GRAPHLIB20_TRUE=
1638516386
ENABLE_GRAPHLIB20_FALSE='#'
@@ -16389,6 +16390,7 @@ else
1638916390
fi
1639016391

1639116392

16393+
1639216394
# Check whether --with-graphlib was given.
1639316395
if test "${with_graphlib+set}" = set; then
1639416396
withval=$with_graphlib; CXXFLAGS="$CXXFLAGS -I${withval}/include"
@@ -16407,6 +16409,7 @@ ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1640716409
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1640816410
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1640916411

16412+
1641016413
{ $as_echo "$as_me:$LINENO: checking for graphlib.h" >&5
1641116414
$as_echo_n "checking for graphlib.h... " >&6; }
1641216415
if test "${ac_cv_header_graphlib_h+set}" = set; then
@@ -16462,6 +16465,7 @@ $as_echo "$as_me: error: graphlib.h is required. Specify graphlib prefix with -
1646216465
fi
1646316466

1646416467

16468+
1646516469
{ $as_echo "$as_me:$LINENO: checking Checking Graphlib Version" >&5
1646616470
$as_echo_n "checking Checking Graphlib Version... " >&6; }
1646716471
graphlib_vers=1
@@ -16498,11 +16502,6 @@ cat >>confdefs.h <<\_ACEOF
1649816502
#define GRAPHLIB20 /**/
1649916503
_ACEOF
1650016504

16501-
16502-
cat >>confdefs.h <<\_ACEOF
16503-
#define GRAPHLIB16 /**/
16504-
_ACEOF
16505-
1650616505
graphlib_vers=2.0
1650716506
if true; then
1650816507
ENABLE_GRAPHLIB20_TRUE=
@@ -16522,51 +16521,10 @@ sed 's/^/| /' conftest.$ac_ext >&5
1652216521
fi
1652316522

1652416523
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16525-
if test $graphlib_vers = 1; then
16526-
cat >conftest.$ac_ext <<_ACEOF
16527-
#include "graphlib.h"
16528-
#include <stdlib.h>
16529-
#include <stdio.h>
16530-
int main()
16531-
{
16532-
unsigned long bufLength;
16533-
graphlib_serializeGraph(NULL, NULL, &bufLength);
16534-
}
16535-
_ACEOF
16536-
rm -f conftest.$ac_objext
16537-
if { (ac_try="$ac_compile"
16538-
case "(($ac_try" in
16539-
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16540-
*) ac_try_echo=$ac_try;;
16541-
esac
16542-
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16543-
$as_echo "$ac_try_echo") >&5
16544-
(eval "$ac_compile") 2>conftest.er1
16545-
ac_status=$?
16546-
grep -v '^ *+' conftest.er1 >conftest.err
16547-
rm -f conftest.er1
16548-
cat conftest.err >&5
16549-
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550-
(exit $ac_status); } && {
16551-
test -z "$ac_cxx_werror_flag" ||
16552-
test ! -s conftest.err
16553-
} && test -s conftest.$ac_objext; then
16554-
16555-
cat >>confdefs.h <<\_ACEOF
16556-
#define GRAPHLIB16 /**/
16557-
_ACEOF
16558-
16559-
graphlib_vers=1.6
16560-
16561-
16562-
else
16563-
$as_echo "$as_me: failed program was:" >&5
16564-
sed 's/^/| /' conftest.$ac_ext >&5
16565-
16566-
16567-
fi
16568-
16569-
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16524+
if test "$graphlib_vers" = 1 ; then
16525+
{ { $as_echo "$as_me:$LINENO: error: STAT requires graphlib 2.0 or greater. Specify graphlib prefix with --with-graphlib" >&5
16526+
$as_echo "$as_me: error: STAT requires graphlib 2.0 or greater. Specify graphlib prefix with --with-graphlib" >&2;}
16527+
{ (exit 1); exit 1; }; }
1657016528
fi
1657116529
{ $as_echo "$as_me:$LINENO: result: $graphlib_vers" >&5
1657216530
$as_echo "$graphlib_vers" >&6; }
@@ -16642,7 +16600,7 @@ else
1664216600
fi
1664316601

1664416602
if test "$liblnlgraph_found" = yes; then
16645-
CXXFLAGS="$CXXFLAGS -DSTAT_BITVECTOR -DGRL_DYNAMIC_NODE_NAME"
16603+
CXXFLAGS="$CXXFLAGS"
1664616604
FELIBS="$FELIBS -llnlgraph"
1664716605
BELIBS="$BELIBS -llnlgraph"
1664816606
MWLIBS="$MWLIBS -llnlgraph"

‎doc/quickstart/stat_quickstart.pdf

0 Bytes
Binary file not shown.

‎doc/src/stat_dependencies.sgml

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ STAT has several dependencies
1616
</thead>
1717
<tbody>
1818
<row rowsep="0">
19-
<entry>Graphlib</entry>
19+
<entry>Graphlib version 2.0 or greater</entry>
2020
<entry>Graph creation, merging, and export</entry>
2121
</row>
2222
<row rowsep="1">
@@ -37,7 +37,7 @@ STAT has several dependencies
3737
<entry namest="c1" nameend="c2"><ulink url="http://reality.sgiweb.org/davea/dwarf.html"></ulink></entry>
3838
</row>
3939
<row>
40-
<entry>MRNet</entry>
40+
<entry>MRNet version 3.0 or greater</entry>
4141
<entry>Scalable multicast and reduction network</entry>
4242
</row>
4343
<row rowsep="1">

‎doc/userguide/stat_userguide.pdf

21 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)
Please sign in to comment.