Skip to content

Commit 506a3ca

Browse files
committed
requires libtool 2.5.4
1 parent f457814 commit 506a3ca

File tree

5 files changed

+125
-5
lines changed

5 files changed

+125
-5
lines changed

.github/workflows/mac_mpich.yml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ on:
2424

2525
env:
2626
MPICH_VERSION: 4.2.0
27+
LIBTOOL_VERSION: 2.5.4
28+
M4_VERSION: 1.4.19
2729

2830
jobs:
2931
build:
@@ -37,7 +39,30 @@ jobs:
3739
# which gcc
3840
# gcc --version
3941
# which gfortran
40-
brew install automake autoconf libtool m4
42+
brew install automake autoconf
43+
autoconf --version
44+
automake --version
45+
- name: Clean up git untracked files
46+
run: |
47+
git clean -fx
48+
- name: Build GNU autotools
49+
run: |
50+
cd ${GITHUB_WORKSPACE}
51+
wget -q https://ftp.wayne.edu/gnu/libtool/libtool-${LIBTOOL_VERSION}.tar.gz
52+
gzip -dc libtool-${LIBTOOL_VERSION}.tar.gz | tar -xf -
53+
cd libtool-${LIBTOOL_VERSION}
54+
./configure --prefix=${GITHUB_WORKSPACE}/AUTOTOOLS \
55+
--silent
56+
make -s -j 8 install > qout 2>&1
57+
make -s -j 8 distclean >> qout 2>&1
58+
cd ${GITHUB_WORKSPACE}
59+
wget -q https://ftp.gnu.org/gnu/m4/m4-${M4_VERSION}.tar.gz
60+
gzip -dc m4-${M4_VERSION}.tar.gz | tar -xf -
61+
cd m4-${M4_VERSION}
62+
./configure --prefix=${GITHUB_WORKSPACE}/AUTOTOOLS \
63+
--silent
64+
make -s -j 8 install > qout 2>&1
65+
make -s -j 8 distclean >> qout 2>&1
4166
- name: Build MPICH
4267
run: |
4368
cd ${GITHUB_WORKSPACE}
@@ -57,6 +82,11 @@ jobs:
5782
- name: Build PnetCDF
5883
run: |
5984
cd ${GITHUB_WORKSPACE}
85+
export PATH="${GITHUB_WORKSPACE}/AUTOTOOLS/bin:${PATH}"
86+
export LD_LIBRARY_PATH="${GITHUB_WORKSPACE}/AUTOTOOLS/lib:${LD_LIBRARY_PATH}"
87+
m4 --version
88+
libtool --version
89+
libtoolize
6090
autoreconf -i
6191
mkdir -p pnetcdf_output
6292
./configure --enable-option-checking=fatal \

.github/workflows/mac_openmpi.yml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ on:
2424

2525
env:
2626
OPENMPI_VERSION: 5.0.2
27+
LIBTOOL_VERSION: 2.5.4
28+
M4_VERSION: 1.4.19
2729

2830
jobs:
2931
build:
@@ -37,7 +39,30 @@ jobs:
3739
# which gcc
3840
# gcc --version
3941
# which gfortran
40-
brew install automake autoconf libtool m4
42+
brew install automake autoconf
43+
autoconf --version
44+
automake --version
45+
- name: Clean up git untracked files
46+
run: |
47+
git clean -fx
48+
- name: Build GNU autotools
49+
run: |
50+
cd ${GITHUB_WORKSPACE}
51+
wget -q https://ftp.wayne.edu/gnu/libtool/libtool-${LIBTOOL_VERSION}.tar.gz
52+
gzip -dc libtool-${LIBTOOL_VERSION}.tar.gz | tar -xf -
53+
cd libtool-${LIBTOOL_VERSION}
54+
./configure --prefix=${GITHUB_WORKSPACE}/AUTOTOOLS \
55+
--silent
56+
make -s -j 8 install > qout 2>&1
57+
make -s -j 8 distclean >> qout 2>&1
58+
cd ${GITHUB_WORKSPACE}
59+
wget -q https://ftp.gnu.org/gnu/m4/m4-${M4_VERSION}.tar.gz
60+
gzip -dc m4-${M4_VERSION}.tar.gz | tar -xf -
61+
cd m4-${M4_VERSION}
62+
./configure --prefix=${GITHUB_WORKSPACE}/AUTOTOOLS \
63+
--silent
64+
make -s -j 8 install > qout 2>&1
65+
make -s -j 8 distclean >> qout 2>&1
4166
- name: Build OPENMPI
4267
run: |
4368
cd ${GITHUB_WORKSPACE}
@@ -59,6 +84,11 @@ jobs:
5984
- name: Build PnetCDF
6085
run: |
6186
cd ${GITHUB_WORKSPACE}
87+
export PATH="${GITHUB_WORKSPACE}/AUTOTOOLS/bin:${PATH}"
88+
export LD_LIBRARY_PATH="${GITHUB_WORKSPACE}/AUTOTOOLS/lib:${LD_LIBRARY_PATH}"
89+
m4 --version
90+
libtool --version
91+
libtoolize
6292
autoreconf -i
6393
mkdir -p pnetcdf_output
6494
./configure --enable-option-checking=fatal \

.github/workflows/ubuntu_mpich.yml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ on:
2020

2121
env:
2222
MPICH_VERSION: 4.2.0
23+
LIBTOOL_VERSION: 2.5.4
24+
M4_VERSION: 1.4.19
2325

2426
jobs:
2527
build:
@@ -30,7 +32,9 @@ jobs:
3032
- name: Set up dependencies
3133
run: |
3234
sudo apt-get update
33-
sudo apt-get install automake autoconf libtool libtool-bin m4
35+
sudo apt-get install automake autoconf
36+
autoconf --version
37+
automake --version
3438
# install gfortran
3539
version=12
3640
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
@@ -45,6 +49,27 @@ jobs:
4549
which gfortran
4650
gcc --version
4751
gfortran --version
52+
- name: Clean up git untracked files
53+
run: |
54+
git clean -fx
55+
- name: Build GNU autotools
56+
run: |
57+
cd ${GITHUB_WORKSPACE}
58+
wget -q https://ftp.wayne.edu/gnu/libtool/libtool-${LIBTOOL_VERSION}.tar.gz
59+
gzip -dc libtool-${LIBTOOL_VERSION}.tar.gz | tar -xf -
60+
cd libtool-${LIBTOOL_VERSION}
61+
./configure --prefix=${GITHUB_WORKSPACE}/AUTOTOOLS \
62+
--silent
63+
make -s -j 8 install > qout 2>&1
64+
make -s -j 8 distclean >> qout 2>&1
65+
cd ${GITHUB_WORKSPACE}
66+
wget -q https://ftp.gnu.org/gnu/m4/m4-${M4_VERSION}.tar.gz
67+
gzip -dc m4-${M4_VERSION}.tar.gz | tar -xf -
68+
cd m4-${M4_VERSION}
69+
./configure --prefix=${GITHUB_WORKSPACE}/AUTOTOOLS \
70+
--silent
71+
make -s -j 8 install > qout 2>&1
72+
make -s -j 8 distclean >> qout 2>&1
4873
- name: Build MPICH
4974
run: |
5075
cd ${GITHUB_WORKSPACE}
@@ -71,6 +96,11 @@ jobs:
7196
- name: Build PnetCDF
7297
run: |
7398
cd ${GITHUB_WORKSPACE}
99+
export PATH="${GITHUB_WORKSPACE}/AUTOTOOLS/bin:${PATH}"
100+
export LD_LIBRARY_PATH="${GITHUB_WORKSPACE}/AUTOTOOLS/lib:${LD_LIBRARY_PATH}"
101+
m4 --version
102+
libtool --version
103+
libtoolize
74104
autoreconf -i
75105
./configure --prefix=${GITHUB_WORKSPACE}/PnetCDF \
76106
--enable-option-checking=fatal \

.github/workflows/ubuntu_openmpi.yml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ on:
2020

2121
env:
2222
OPENMPI_VERSION: 5.0.2
23+
LIBTOOL_VERSION: 2.5.4
24+
M4_VERSION: 1.4.19
2325

2426
jobs:
2527
build:
@@ -30,7 +32,9 @@ jobs:
3032
- name: Set up dependencies
3133
run: |
3234
sudo apt-get update
33-
sudo apt-get install automake autoconf libtool libtool-bin m4
35+
sudo apt-get install automake autoconf
36+
autoconf --version
37+
automake --version
3438
# install gfortran
3539
version=12
3640
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
@@ -45,6 +49,27 @@ jobs:
4549
which gfortran
4650
gcc --version
4751
gfortran --version
52+
- name: Clean up git untracked files
53+
run: |
54+
git clean -fx
55+
- name: Build GNU autotools
56+
run: |
57+
cd ${GITHUB_WORKSPACE}
58+
wget -q https://ftp.wayne.edu/gnu/libtool/libtool-${LIBTOOL_VERSION}.tar.gz
59+
gzip -dc libtool-${LIBTOOL_VERSION}.tar.gz | tar -xf -
60+
cd libtool-${LIBTOOL_VERSION}
61+
./configure --prefix=${GITHUB_WORKSPACE}/AUTOTOOLS \
62+
--silent
63+
make -s -j 8 install > qout 2>&1
64+
make -s -j 8 distclean >> qout 2>&1
65+
cd ${GITHUB_WORKSPACE}
66+
wget -q https://ftp.gnu.org/gnu/m4/m4-${M4_VERSION}.tar.gz
67+
gzip -dc m4-${M4_VERSION}.tar.gz | tar -xf -
68+
cd m4-${M4_VERSION}
69+
./configure --prefix=${GITHUB_WORKSPACE}/AUTOTOOLS \
70+
--silent
71+
make -s -j 8 install > qout 2>&1
72+
make -s -j 8 distclean >> qout 2>&1
4873
- name: Build OPENMPI
4974
run: |
5075
cd ${GITHUB_WORKSPACE}
@@ -65,6 +90,11 @@ jobs:
6590
- name: Build PnetCDF
6691
run: |
6792
cd ${GITHUB_WORKSPACE}
93+
export PATH="${GITHUB_WORKSPACE}/AUTOTOOLS/bin:${PATH}"
94+
export LD_LIBRARY_PATH="${GITHUB_WORKSPACE}/AUTOTOOLS/lib:${LD_LIBRARY_PATH}"
95+
m4 --version
96+
libtool --version
97+
libtoolize
6898
autoreconf -i
6999
mkdir -p pnetcdf_output
70100
./configure --prefix=${GITHUB_WORKSPACE}/PnetCDF \

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ dnl AC_PROG_RANLIB
453453

454454
dnl libtool v2.4.6 was released in 2015-02-15
455455
dnl Travis CI only has v2.4.2
456-
LT_PREREQ([2.4.6])
456+
LT_PREREQ([2.5.4])
457457
dnl LT_INIT([dlopen disable-shared])
458458
dnl LT_INIT([dlopen])
459459
dnl LT_INIT([disable-shared]) # build without shared libraries

0 commit comments

Comments
 (0)