forked from nicmcd/sst-benchmark
-
Notifications
You must be signed in to change notification settings - Fork 2
/
autogen.sh
executable file
·45 lines (36 loc) · 1.05 KB
/
autogen.sh
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
#!/bin/bash
if [ -z $LIBTOOLIZE ] ; then
LIBTOOLIZE=$(type -P libtoolize)
if [ -z $LIBTOOLIZE ] ; then
LIBTOOLIZE=$(type -P glibtoolize)
fi
fi
if [ -z $LIBTOOL ] ; then
LIBTOOL=$(type -P "${LIBTOOLIZE%???}")
fi
if [ -z $LIBTOOL ] || [ -z $LIBTOOLIZE ] ; then
echo "Unable to find working libtool. [$LIBTOOL][$LIBTOOLIZE]"
exit 1
fi
# Make a new Makefile.am in src
BASE_DIR=`pwd`
echo "AC_DEFUN([SST_BENCHMARK_CONFIG_OUTPUT], [])" > config/sst_benchmark_config_output.m4
echo "dnl Automatically generated by SST configuration system" > config/sst_benchmark_include.m4
echo "Generating configure files..."
# Delete the old libtool output
rm -rf libltdl src/libltdl
echo "Running ${LIBTOOLIZE}..."
$LIBTOOLIZE --automake --copy --ltdl
if test -d libltdl; then
echo "Moving libltdl to src .."
mv libltdl ./src/
fi
if test ! -d src/libltdl ; then
echo "libltdl for benchmark exist. Aborting."
exit 1
fi
aclocal -I config
autoheader
autoconf
automake --foreign --add-missing --include-deps
autoreconf --force --install