I've been working on sorting out some crappiness in our build system, in part evidenced by an Ubuntu user attempting to compile pacman. This sort of snowballed and I took the liberty of cleaning up a few other things as well. Basically, the changes fall into a few categories: * use pkg-config for more accurate library detection * avoid touching LDFLAGS, CFLAGS, and CPPFLAGS * move files out of the repo root The last patch is none of the above, but it's good juju anyways. I definitely won't call myself an autotools guru and will point out that what I've done here is based on what I've gleaned from some other autotools-based projects. That said, I think these changes all make sense, and the Ubuntu user was certainly happy that the configure script was doing a better job of library autodetection. Dave Reisner (11): buildsys: add pkg-config m4 macros buildsys: use pkg-config for openssl detection buildsys: use pkg-config for libarchive detection buildsys: use pkg-config for libcurl detection buildsys: handle gpgme libs and cflags separately buildsys: use AC_DEFINE for CYGWIN macro buildsys: define warning CFLAGS in separate var buildsys: cleanup libtool and autoconf initialization buildsys: move acinclude.m4 to m4/ buildsys: move autotools bloat to build-aux autoclean.sh: abide by POSIX shebang autoclean.sh | 24 +-- config.guess => build-aux/config.guess | 0 config.rpath => build-aux/config.rpath | 0 config.sub => build-aux/config.sub | 0 depcomp => build-aux/depcomp | 0 install-sh => build-aux/install-sh | 0 ltmain.sh => build-aux/ltmain.sh | 0 missing => build-aux/missing | 0 mkinstalldirs => build-aux/mkinstalldirs | 0 configure.ac | 63 ++++---- lib/libalpm/Makefile.am | 19 ++- acinclude.m4 => m4/acinclude.m4 | 0 m4/libcurl.m4 | 250 ------------------------------ m4/pkg.m4 | 159 +++++++++++++++++++ src/pacman/Makefile.am | 2 +- src/util/Makefile.am | 4 +- 16 files changed, 220 insertions(+), 301 deletions(-) rename config.guess => build-aux/config.guess (100%) rename config.rpath => build-aux/config.rpath (100%) rename config.sub => build-aux/config.sub (100%) rename depcomp => build-aux/depcomp (100%) rename install-sh => build-aux/install-sh (100%) rename ltmain.sh => build-aux/ltmain.sh (100%) rename missing => build-aux/missing (100%) rename mkinstalldirs => build-aux/mkinstalldirs (100%) rename acinclude.m4 => m4/acinclude.m4 (100%) delete mode 100644 m4/libcurl.m4 create mode 100644 m4/pkg.m4 -- 1.7.9.5