{"push_id":1263173063,"size":1,"distinct_size":1,"ref":"refs/heads/build-autotools","head":"95f2ed64fb210211e512d590a79c6254a981dadf","before":"27eba740923d8141023cee211b8bf879bd27dc5f","commits":[{"sha":"95f2ed64fb210211e512d590a79c6254a981dadf","author":{"name":"Guilherme Maciel Ferreira","email":"8790fc5b4e083a55c0c470b62e78342ad6e9669b@gmail.com"},"message":"Change build system from GNU Make to Autotools\n\n---------------------------------------------------------------------\n Advantages\n---------------------------------------------------------------------\n\n1. Automatically find the Paho MQTT C library. Which is required by\n   Paho MQTT C++ library;\n\n2. Detect if the doxygen program is available in order to build (or\n   not) the documentation;\n\n3. Detect if the compiler supports C++11;\n\n4. Choose whether to build static, dynamic or both kinds of libraries;\n\n5. Choose whether or not to build documentation or sample programs;\n\n6. Easier cross compilation;\n\n7. Adds standard make targets, like \"install\";\n\n8. Automatic handling of portability issues. For example, library\n   naming differs accross OS;\n\n---------------------------------------------------------------------\n Build instructions\n---------------------------------------------------------------------\n\nThe first step is to run the bootstrap script:\n\n  $ ./bootstrap\n\nNext, in order to build only the static library:\n\n  $ ./configure --disable-shared --enable-static\n  $ make\n\nthe commands above build\n\n  libpaho-mqttpp3.a\n\nOr, in order to build only the dynamic library:\n\n  $ ./configure --enable-shared --disable-static\n  $ make\n\nthe previous commands build:\n\n  libpaho-mqttpp3.so.0.2\n\nand its respective link and soname.\n\nIf the Paho MQTT C is installed on a non-standard directory, you can\nprovide the path to the configure script:\n\n  $ ./configure --with-paho-mqtt-c=/opt/paho.mqtt.c/\n\n---------------------------------------------------------------------\n Remarks\n---------------------------------------------------------------------\n\nThe regular Make version is around 2.5 times faster than the Autotools\nversion. The overall time for Autotools include the time of bootstrap,\nconfigure and make. The regular Make time include only the make command.\n\nRemove the .dep files from \"src/obj/\" directory. The \"make\" sets its\ncurrent directory to \"src/obj/\" in order to compile. And \"make\" does\nfind the libtool script, because its current directory should be \"src/\".\n\nSuccessfully built on with C++11 restriction:\n- Ubuntu 10.04 (x86 32-bit) with g++ 4.8.2, GNU libc 2.11.1 and libstdc++ 6.0.13;\n- Fedora 23.10 (64-bit) with g++ 5.3.1, GNU libc 2.22 and libstdc++ 6.0.21;\n- FreeBSD 10.3 (64-bit) with clang++ 3.4.1;\n\nSigned-off-by: Guilherme Maciel Ferreira <guilherme.maciel.ferreira@gmail.com>","distinct":true,"url":"https://api.github.com/repos/guilhermeferreira/paho.mqtt.cpp/commits/95f2ed64fb210211e512d590a79c6254a981dadf"}]}
{"actor":{"display_login":"guilhermeferreira"}}