Skip to content

Commit

Permalink
DRAFT 88 - test removal of PKG_CHECK_MODULES
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmai committed May 17, 2018
1 parent bb8e97c commit f9544f4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 26 deletions.
10 changes: 2 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ matrix:
- AUTOMAKE_VER=1.15
- M4_VER=1.4.18
- LIBTOOL_VER=2.4.6
- PKG_CONFIG_VER=0.29.2
- NO_CLONE_LIBATOMIC_OPS=true
- os: linux
env:
Expand Down Expand Up @@ -124,6 +123,7 @@ matrix:
compiler: gcc
env:
- CFLAGS_EXTRA="-m32 -D MARK_BIT_PER_OBJ"
- CONF_OPTIONS="--disable-munmap"
- os: linux
compiler: gcc
env:
Expand Down Expand Up @@ -517,7 +517,7 @@ before_install:
make --directory ~/cppcheck -j CXXFLAGS="-O3 -march=native -D NDEBUG";
fi
- if [[ "$AUTOMAKE_VER" != "" || "$LIBTOOL_VER" != ""
|| "$M4_VER" != "" || "$PKG_CONFIG_VER" != "" ]]; then
|| "$M4_VER" != "" ]]; then
GNUTOOLS_ROOT=`pwd`/../gnu-tools;
export PATH=$GNUTOOLS_ROOT/bin:$PATH;
fi
Expand All @@ -536,17 +536,11 @@ before_install:
wget -O - $AUTOMAKE_XZ_URL | tar xf - --xz --directory ~;
(cd ~/automake-$AUTOMAKE_VER && ./configure --prefix=$GNUTOOLS_ROOT && make -j && make install);
fi
- if [[ "$PKG_CONFIG_VER" != "" ]]; then
PKG_CONFIG_GZ_URL=https://pkgconfig.freedesktop.org/releases/pkg-config-$PKG_CONFIG_VER.tar.gz;
wget -O - $PKG_CONFIG_GZ_URL | tar xf - --gz --directory ~;
(cd ~/pkg-config-$PKG_CONFIG_VER && ./configure --with-internal-glib --prefix=$GNUTOOLS_ROOT && make -j check && make install);
fi
- if [[ "$MAKEFILE_TARGETS" == *"dist"* ]]; then
autoconf --version;
automake --version;
m4 --version;
libtool --version || true;
pkg-config --version;
fi
- if [[ "$MAKEFILE_NAME" == "" ]]; then MAKEFILE_NAME=Makefile; fi
- if [[ "$MAKEFILE_TARGETS" == "" ]]; then MAKEFILE_TARGETS="check"; fi
Expand Down
11 changes: 0 additions & 11 deletions appveyor.yml

This file was deleted.

10 changes: 3 additions & 7 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1015,13 +1015,9 @@ missing_libatomic_ops=false
AS_IF([test x"$with_libatomic_ops" != xno -a x"$with_libatomic_ops" != xnone],
[ missing_libatomic_ops=true ])

# Note: "syntax error near unexpected token ATOMIC_OPS" reported by configure
# means Autotools pkg.m4 file was not found during aclocal.m4 generation;
# in this case, most probably, you should run pkg-config once before running
# autogen.sh (autoreconf); alternatively, comment out the following 3 lines.
AS_IF([test x$missing_libatomic_ops = xtrue],
[ PKG_CHECK_MODULES([ATOMIC_OPS], [atomic_ops],
[ missing_libatomic_ops=false ], [ [] ]) ])
# AS_IF([test x$missing_libatomic_ops = xtrue],
# [ PKG_CHECK_MODULES([ATOMIC_OPS], [atomic_ops],
# [ missing_libatomic_ops=false ], [ [] ]) ])

# Retry with AC_CHECK_HEADER if PKG_CHECK_MODULES failed.
AS_IF([test x$missing_libatomic_ops = xtrue],
Expand Down

0 comments on commit f9544f4

Please sign in to comment.