Update and clean up autoconf template files. This is needed for compatibility with newer autoconf: * Removed macro GINAC_STD_CXX_HEADERS (we use AX_CXX_COMPILE_STDCXX). * Updated m4/* files from upstream. * Ran autoupdate on acinclude.m4 and configure.ac. Tested successfully with autoconf 1.69 and 1.71.
Clean up some header files and fix compilation with MSC. On MSC there is no <unistd.h>. It turns out that we need to #include <io.h> in order to use close(3). This fixes the build failure introduced in 8305ec38. Thanks to Jan Rheinländer for reporting this.
Prefer C library wrappers over C headers, where possible.
Remove extra cases for missing <stdint.h>. Use <cstdint> unconditionally -- it's been standardized in C++11.
Standard header cleanup. Sanitize some standard headers, remove include directives of unused headers, complete configure check for used standard headers.
[build] Move library version info into the version.h file. The point is to have this info easily available for both build systems.
[build] Define package version number in version.h (for non autotools build).
./configure now gives more information/warnings about missing utilities.
Stupid error: did the revert on the wrong branch (master instead of ginac_1-4). Revert "Revert "[portability] GiNaC::compile_ex works on OpenBSD now."" This reverts commit a6854a8a0f1e5db722320f5d7ccb9097053500cf.
Revert "[portability] GiNaC::compile_ex works on OpenBSD now." This reverts commit 375a7aa1f13fa6061c278eb2c2447fd91521b45d.
[portability] GiNaC::compile_ex works on OpenBSD now. * acinclude.m4: check for dlopen() in libdl and in libc itself. Thanks to Paul Irofti for a bug report and a suggestion.
Allow user to disable GiNaC::compile_ex (e.g. for security reasons). configure takes --{disable,enable}-excompiler argument now. It can be used to disable GiNaC::compile_ex (default is to enable it). acinclude.m4: GINAC_EXCOMPILER: new macro. Checks for libdl, allows user to disable GiNaC::compile_ex. Also it doesn't bother to check for libdl on MinGW. configure.ac: use GINAC_EXCOMPILER to check for libdl.
build: faster check for standard C++ headers. Include them all into a test program and check if it compiles (in order to reduce the run time of the `configure' script).
build: don't run any ${host} binaries while checking for readline. Now GiNaC (to be more precise, ginsh) can be easily cross compiled. However, ancient versions of readline (<= 4.2) are not supported any more.
* Fixed macro checking for version of libreadline (Mac OS X) [Sheplyakov].
Synced to ginac_1-3: Fixed libreadline version detection [A.Sheplyakov]
Patch from Alexei for enabling compilation on MinGW.
* Avoid getrusage(2) on systems that don't have it (by ASheplyakov Alexei and Richy Kreckel).
main() -> int main() (C++ standard says so)
Synced to HEAD.