summaryrefslogtreecommitdiff
path: root/configure.ac
Commit message (Collapse)AuthorAgeFilesLines
* Always define word-wide CAS for x86 (MS VC++ 8 or later)Ivan Maidanski2017-01-201-3/+0
| | | | | | | | | | | | | | | | | | | Visual Studio 2005 (MS VC++ 8.0) discontinued support of Windows 95. This patch deprecates AO_ASSUME_WINDOWS98 macro. * configure.ac (AO_ASSUME_WINDOWS98): Remove AH template. * doc/README.txt (AO_ASSUME_WINDOWS98): Remove documentation (as relates only to Win95). * doc/README_win32.txt (AO_ASSUME_WINDOWS98): Likwise. * doc/README_win32.txt (AO_ASSUME_VISTA): Update documentation. * src/Makefile.msft (CFLAGS): Remove "-D AO_ASSUME_WINDOWS98". * src/Makefile.msft (test_atomic_w95): Remove target. * src/Makefile.msft (check): Do not call test_atomic_w95; remove the corresponding printed message. * src/atomic_ops/sysdeps/msftc/x86.h: Remove AO_ASSUME_WINDOWS98 from comment. * src/atomic_ops/sysdeps/msftc/x86.h (AO_ASSUME_WINDOWS98): Define (implicitly) if _MSC_VER >= 1400.
* Fix turn off optimization in case of configure --enable-gcovIvan Maidanski2017-01-191-1/+1
| | | | | | | | (fix commit 0d0a16d) * configure.ac [enable_gcov] (CFLAGS): Change sed regular expression to avoid [] (as they are not properly handled during autogen), and to also filter out -Os and -Ofast (-O0 is ignored).
* Add configure --enable-gcov option (enable code coverage analysis)Ivan Maidanski2017-01-131-0/+8
| | | | | | * configure.ac (gcov): New --enable-* option. * configure.ac [enable_gcov] (CFLAGS): Add "--coverage" option; filter out "-O" options.
* Support CFLAGS_EXTRA to pass extra user-defined compiler flags (configure)Ivan Maidanski2016-12-101-0/+3
| | | | | | * configure.ac: Add AC_SUBST(CFLAGS_EXTRA). * src/Makefile.am (CFLAGS): Append $(CFLAGS_EXTRA). * tests/Makefile.am (CFLAGS): Likewise.
* Fix GCC -Wpedantic checking in configureIvan Maidanski2016-11-221-1/+3
| | | | | | | (fix commit 96a8fd9) * configure.ac [GCC] (ac_cv_cc_pedantic): Compile code that contains "extern int quiet" (since the translation unit cannot be empty).
* Report gcc/clang pedantic warnings (configure)Ivan Maidanski2016-11-221-1/+9
| | | | | | * configure.ac [GCC] (WPEDANTIC): New variable (set to "-Wpedantic -Wno-long-long" if supported by the compiler). * configure.ac [GCC] (CFLAGS): Add $WPEDANTIC.
* Add configure '--disable-atomic-intrinsics' optionIvan Maidanski2016-08-151-2/+8
| | | | | | * configure.ac (atomic-intrinsics): New configure option. * configure.ac (AO_DISABLE_GCC_ATOMICS): Replace AH_TEMPLATE with AC_DEFINE depending atomic-intrinsics option.
* Add AO_DISABLE_GCC_ATOMICS, AO_PREFER_BUILTIN_ATOMICS macros to configureIvan Maidanski2016-04-191-0/+6
| | | | | * configure.ac (AO_DISABLE_GCC_ATOMICS, AO_PREFER_BUILTIN_ATOMICS): Declare and document (using AH_TEMPLATE).
* Fix typo in configure.ac (in description of AO_ASM_X64_AVAILABLE)Ivan Maidanski2016-04-191-1/+1
| | | | * configure.ac (AO_ASM_X64_AVAILABLE): Fix typo ("available").
* New configure option (--enable-werror) to treat warnings as compiler errorsIvan Maidanski2015-05-171-0/+6
| | | | | * configure.ac (werror): Test --enable-werror option to add -Werror to CFLAGS.
* Update emails/links due to project site transitionIvan Maidanski2014-02-211-1/+1
| | | | | | | | * AUTHORS: Update email. * README.md: Update links to BDWGC/libatomic_ops site. * doc/README_stack.txt: Likewise. * README.md: Update mailing list info. * configure.ac: Likewise.
* Bump atomic_ops versionIvan Maidanski2014-01-311-1/+1
| | | | | | * README.md: Bump version to 7.5.0. * configure.ac: Likewise. * src/atomic_ops/ao_version.h (AO_VERSION_MINOR): Likewise.
* [7.4.0]libatomic_ops-7_4_0Ivan Maidanski2013-11-171-1/+1
| | | | | | | | | | | Bump version to 7.4.0; change policy regarding version numbers * ChangeLog: Update. * README.md: Bump version. * configure.ac (AC_INIT): Likewise. * src/atomic_ops/ao_version.h (AO_VERSION_MINOR): Likewise. * src/atomic_ops/ao_version.h (AO_VERSION_ALPHA): Replace to AO_VERSION_MICRO; add comment.
* Define AO_NO_PTHREADS in configure if no pthreads (Win32 and VxWorks)Ivan Maidanski2013-05-261-5/+11
| | | | | | * configure.ac (have_pthreads): Do not define to true if check for pthread_self failed. * configure.ac (AO_NO_PTHREADS): Define if not have_pthreads.
* Better document configure THREADDLLIBS variableIvan Maidanski2013-05-261-2/+8
| | | | * configure.ac (THREADDLLIBS, have_pthreads): Add comments.
* Fix AM_CONFIG_HEADER in configure for autoconf-2.69-1Manuel Serrano2013-04-031-1/+1
| | | | | * configure.ac (AM_CONFIG_HEADER): Replace obsolete macro with with AC_CONFIG_HEADERS one.
* Remove unsafe emulation-based implementation of double CAS (SunCC/x86)Ivan Maidanski2012-09-291-1/+1
| | | | | | | | | | | | * src/atomic_ops/sysdeps/sunc/x86.h (AO_compare_double_and_swap_double_full): Do not test AO_WEAK_DOUBLE_CAS_EMULATION and remove emulation-based implementation since it is unsafe (not atomic with respect to other kinds of updates) leading to test_stack failure. * configure.ac (AO_WEAK_DOUBLE_CAS_EMULATION): Update and refine documentation. * src/atomic_ops/sysdeps/sunc/x86.h (AO_compare_double_and_swap_double_full): Likewise.
* Bump libatomic_ops versionIvan Maidanski2012-05-151-1/+1
| | | | | | * README: Bump version to 7.3alpha3. * configure.ac: Likewise. * src/atomic_ops/ao_version.h (AO_VERSION_ALPHA): Likewise.
* [7.3alpha2]libatomic_ops-7_3alpha2Ivan Maidanski2012-05-151-1/+1
| | | | | | | | | Bump libatomic_ops version to 7.3alpha2 * ChangeLog: Set release dates. * README: Bump version to 7.3alpha2. * configure.ac: Likewise. * src/atomic_ops/ao_version.h (AO_VERSION_ALPHA): Likewise.
* Fix configure to define __PIC__ macro explicitly only if not done by GCCIvan Maidanski2012-03-281-8/+16
| | | | | | | | * configure.ac (PICFLAG): Adjust AC_MSG_CHECKING message; report "none" result if no -fPIC is needed (for Cygwin/MinGW); determine whether GCC -fPIC option causes __PIC__ macro definition; pass -D __PIC__ to PICFLAG (instead of CFLAGS) only if not defined automatically in case -fPIC specified; update comment.
* configure: Require automake 2.61 instead of 2.63Ivan Maidanski2012-03-051-1/+1
| | | | | * configure.ac (AC_PREREQ): Use value of 2.63 (relax requirement to enable autoreconf on current Mac OS X).
* configure: Require automake 2.63 (widely spread) instead of 2.64Ivan Maidanski2012-02-171-1/+1
| | | | * configure.ac (AC_PREREQ): Use value of 2.63 (instead of 2.64).
* configure: Specify bug reports email in AC_INITIvan Maidanski2012-01-201-1/+1
|
* configure: Do not pass '-Wextra' option to GCC if unsupportedIvan Maidanski2011-12-131-1/+9
| | | | | | * configure.ac (WEXTRA): New variable (set to "-Wextra" if the latter is supported by GCC, otherwise to "-W"). * configure.ac (CFLAGS): Use WEXTRA variable.
* Define NDEBUG via config.h instead of CFLAGS;Ivan Maidanski2011-12-121-1/+7
| | | | | | | | | do not define NDEBUG if '--enable-assertions' passed to configure * configure.ac (CFLAGS): Do not add "-DNDEBUG". * configure.ac (assertions): New AC argument. * configure.ac (NDEBUG): New AC macro (defined only if "assertions" AC argument is not set to "yes").
* Add new macro (AO_PREFER_GENERALIZED) to favor generalized primitivesIvan Maidanski2011-12-081-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | over direct assembly-based ones * configure.ac (AO_PREFER_GENERALIZED): New AC template. * src/atomic_ops/sysdeps/armcc/arm_v6.h (AO_test_and_set, AO_HAVE_test_and_set, AO_fetch_and_add, AO_HAVE_fetch_and_add, AO_fetch_and_add1, AO_HAVE_fetch_and_add1, AO_fetch_and_sub1, AO_HAVE_fetch_and_sub1): Do not define if AO_PREFER_GENERALIZED. * src/atomic_ops/sysdeps/gcc/arm.h (AO_test_and_set, AO_HAVE_test_and_set, AO_fetch_and_add, AO_HAVE_fetch_and_add, AO_fetch_and_add1, AO_HAVE_fetch_and_add1, AO_fetch_and_sub1, AO_HAVE_fetch_and_sub1): Likewise. * src/atomic_ops/sysdeps/gcc/avr32.h (AO_test_and_set_full, AO_HAVE_test_and_set_full): Likewise. * src/atomic_ops/sysdeps/gcc/hexagon.h (AO_fetch_and_add, AO_HAVE_fetch_and_add, AO_test_and_set, AO_HAVE_test_and_set): Likewise. * src/atomic_ops/sysdeps/gcc/ia64.h (AO_fetch_and_add1_acquire, AO_HAVE_fetch_and_add1_acquire, AO_fetch_and_add1_release, AO_HAVE_fetch_and_add1_release, AO_fetch_and_sub1_acquire, AO_HAVE_fetch_and_sub1_acquire, AO_fetch_and_sub1_release, AO_HAVE_fetch_and_sub1_release, AO_int_fetch_and_add1_acquire, AO_HAVE_int_fetch_and_add1_acquire, AO_int_fetch_and_add1_release, AO_HAVE_int_fetch_and_add1_release, AO_int_fetch_and_sub1_acquire, AO_HAVE_int_fetch_and_sub1_acquire, AO_int_fetch_and_sub1_release, AO_HAVE_int_fetch_and_sub1_release): Likewise. * src/atomic_ops/sysdeps/gcc/powerpc.h (AO_test_and_set, AO_HAVE_test_and_set, AO_test_and_set_acquire, AO_HAVE_test_and_set_acquire, AO_test_and_set_release, AO_HAVE_test_and_set_release, AO_test_and_set_full, AO_HAVE_test_and_set_full): Likewise. * src/atomic_ops/sysdeps/gcc/x86.h (AO_fetch_and_add_full, AO_HAVE_fetch_and_add_full, AO_and_full, AO_HAVE_and_full, AO_or_full, AO_HAVE_or_full, AO_xor_full, AO_HAVE_xor_full): Likewise. * src/atomic_ops/sysdeps/gcc/x86_64.h (AO_fetch_and_add_full, AO_HAVE_fetch_and_add_full, AO_and_full, AO_HAVE_and_full, AO_or_full, AO_HAVE_or_full, AO_xor_full, AO_HAVE_xor_full): Likewise. * src/atomic_ops/sysdeps/hpc/ia64.h (AO_fetch_and_add1_acquire, AO_HAVE_fetch_and_add1_acquire, AO_fetch_and_add1_release, AO_HAVE_fetch_and_add1_release, AO_fetch_and_sub1_acquire, AO_HAVE_fetch_and_sub1_acquire, AO_fetch_and_sub1_release, AO_HAVE_fetch_and_sub1_release): Likewise. * src/atomic_ops/sysdeps/ibmc/powerpc.h (AO_test_and_set_acquire, AO_HAVE_test_and_set_acquire, AO_test_and_set_release, AO_HAVE_test_and_set_release, AO_test_and_set_full, AO_HAVE_test_and_set_full): Likewise. * src/atomic_ops/sysdeps/icc/ia64.h (AO_fetch_and_add1_acquire, AO_HAVE_fetch_and_add1_acquire, AO_fetch_and_add1_release, AO_HAVE_fetch_and_add1_release, AO_fetch_and_sub1_acquire, AO_HAVE_fetch_and_sub1_acquire, AO_fetch_and_sub1_release, AO_HAVE_fetch_and_sub1_release): Likewise. * src/atomic_ops/sysdeps/msftc/x86_64.h (AO_fetch_and_add_full, AO_HAVE_fetch_and_add_full, AO_fetch_and_add1_full, AO_HAVE_fetch_and_add1_full, AO_fetch_and_sub1_full, AO_HAVE_fetch_and_sub1_full): Likewise. * src/atomic_ops/sysdeps/sunc/x86.h (AO_fetch_and_add_full, AO_HAVE_fetch_and_add_full, AO_and_full, AO_HAVE_and_full, AO_or_full, AO_HAVE_or_full, AO_xor_full, AO_HAVE_xor_full): Likewise. * src/atomic_ops/sysdeps/sunc/x86_64.h (AO_fetch_and_add_full, AO_HAVE_fetch_and_add_full, AO_and_full, AO_HAVE_and_full, AO_or_full, AO_HAVE_or_full, AO_xor_full, AO_HAVE_xor_full): Likewise. * src/atomic_ops/sysdeps/gcc/arm.h (AO_test_and_set_full, AO_HAVE_test_and_set_full): Do not define if AO_PREFER_GENERALIZED (but only in case of ARMv6+). * src/atomic_ops/sysdeps/msftc/common32_defs.h (_InterlockedIncrement, _InterlockedDecrement, _InterlockedExchangeAdd): Do not declare intrinsic if both AO_PREFER_GENERALIZED and AO_ASSUME_WINDOWS98. * src/atomic_ops/sysdeps/msftc/common32_defs.h (AO_fetch_and_add_full, AO_HAVE_fetch_and_add_full, AO_fetch_and_add1_full, AO_HAVE_fetch_and_add1_full, AO_fetch_and_sub1_full, AO_HAVE_fetch_and_sub1_full): Do not define if both AO_PREFER_GENERALIZED and AO_ASSUME_WINDOWS98. * src/atomic_ops/sysdeps/msftc/x86_64.h (_InterlockedIncrement64, _InterlockedDecrement64, _InterlockedExchangeAdd64): Do not declare intrinsic if AO_PREFER_GENERALIZED.
* Add all AO control macros to configure (as templates)Ivan Maidanski2011-12-011-0/+45
| | | | | | | | | | | * configure.ac (AO_USE_NANOSLEEP, AO_USE_NO_SIGNALS, AO_USE_WIN32_PTHREADS, AO_TRACE_MALLOC, AO_GENERALIZE_ASM_BOOL_CAS, AO_USE_PTHREAD_DEFS, AO_ASM_X64_AVAILABLE, AO_ASSUME_VISTA, AO_ASSUME_WINDOWS98, AO_CMPXCHG16B_AVAILABLE, AO_FORCE_USE_SWP, AO_NO_SPARC_V9, AO_OLD_STYLE_INTERLOCKED_COMPARE_EXCHANGE, AO_UNIPROCESSOR, AO_USE_INTERLOCKED_INTRINSICS, AO_USE_PENTIUM4_INSTRS, AO_USE_SYNC_CAS_BUILTIN, AO_WEAK_DOUBLE_CAS_EMULATION): New AC template.
* On altering CFLAGS value in configure place client flags at endIvan Maidanski2011-12-011-5/+5
| | | | | * configure.ac (CFLAGS): Always append old CFLAGS value (instead of placing it at start).
* Fix configure for mingw-w64/32.Ivan Maidanski2011-09-211-2/+8
| | | | | | | | | | | | | | * configure.ac (PICFLAG, THREADDLLIBS): Define as empty for MinGW. * configure.ac (have_pthreads): New definition (set to true unless MinGW). * configure.ac (HAVE_PTHREAD_H): New AM conditional (based on have_pthreads value). * tests/Makefile.am (test_atomic_pthreads_SOURCES, test_atomic_pthreads_CPPFLAGS, test_atomic_pthreads_LDADD): Define only if HAVE_PTHREAD_H. * tests/Makefile.am (TESTS): Don't include test_atomic_pthreads unless HAVE_PTHREAD_H. * tests/Makefile.am (check_PROGRAMS): Define to TESTS value.
* Bump libatomic_ops version to 7.3alpha1 (next major release development).Ivan Maidanski2011-09-081-1/+1
| | | | | * README: Change version to 7.3alpha1. * configure.ac (AC_INIT): Likewise.
* Do not pass -fPIC to Cygwin gcc.Ivan Maidanski2011-08-171-8/+15
| | | | * configure.ac (PICFLAG): Set to -fPIC if GCC but not Gygwin.
* Add -uninstalled pkg-config file, move them to pkgconfig/.Petter Urkedal2011-08-141-2/+8
| | | | | | * atomic_ops.pc.in -> pkgconfig/atomic_ops.pc.in: Moved. * pkgconfig/atomic_ops-uninstalled.pc.in: Added developer version. * configure.ac, Makefile.am: Update accordingly.
* Use libtool for linking but keep the libraries static.Petter Urkedal2011-08-141-2/+2
| | | | | | | | * configure.ac: Use LT_INIT([disable-shared]) instead of AC_PROG_RANLIB. Also, re-enable the m4 macro directory. * Makefile.am (ACLOCAL_AMFLAGS): Add -I m4. * m4/.keep: Create the m4 directory to avoid problems due to the above m4 flag when running autoreconf for the first time.
* Merge all Makefile.am in /src tree (to have less auto-generated filesIvan Maidanski2011-08-091-1/+1
| | | | | | | | | | | | | | in the project subdirectories). * configure.ac (AC_CONFIG_FILES): Remove src/atomic_ops/Makefile, src/atomic_ops/sysdeps/Makefile. * src/Makefile.am (SUBDIRS): Remove. * src/Makefile.am (EXTRA_DIST, privatedir, private_HEADERS): Add from src/atomic_ops/Makefile.am and src/atomic_ops/sysdeps/Makefile.am. * src/Makefile.am (generalize-small): Move from src/atomic_ops/Makefile.am. * src/atomic_ops/Makefile.am, src/atomic_ops/sysdeps/Makefile.am: Remove.
* Do not run reconf on configure. Ensure proper autoconf version.Ivan Maidanski2011-08-081-5/+4
| | | | | | | | | * configure.ac (AC_PREREQ, AM_MAINTAINER_MODE): New macro. * configure.ac (AM_INIT_AUTOMAKE): Add options. * configure.ac (AC_HEADER_STDC): Remove (as not needed). * Makefile.in, aclocal.m4, configure, doc/Makefile.in, src/Makefile.in, src/atomic_ops/Makefile.in, src/atomic_ops/sysdeps/Makefile.in, tests/Makefile.in: Regenerate.
* Show extra compiler warnings (GCC).Ivan Maidanski2011-08-081-0/+2
| | | | | * configure.ac (CFLAGS): Add -Wall -Wextra (GCC only). * configure: Regenerate.
* Add atomic_ops.pc.Ivan Maidanski2011-08-041-2/+3
| | | | | | | | * .cvsignore, .gitignore: ignore atomic_ops.pc. * atomic_ops.pc.in: new file. * Makefile.am (pkgconfigdir, pkgconfig_DATA): new items. * configure.ac (AC_CONFIG_FILES): add atomic_ops.pc. * configure, Makefile.in: Regenerate.
* 2011-06-15 Ivan Maidanski <ivmai@mail.ru>ivmai2011-07-251-1/+1
| | | | | | * include/gc_version.h, configure.ac, doc/README: Change to version 7.2alpha7. * configure: Regenerate.
* 2011-06-14 Ivan Maidanski <ivmai@mail.ru>libatomic_ops-7_2alpha6ivmai2011-07-251-1/+1
| | | | | | * include/gc_version.h, configure.ac, doc/README: Change to version 7.2alpha6. * configure: Regenerate.
* 2011-06-01 Ivan Maidanski <ivmai@mail.ru>ivmai2011-07-251-2/+21
| | | | | | | | | | | | | | | | * configure.ac (_PTHREADS): New template (used for NetBSD). * configure.ac (THREADDLLIBS): New macro. * tests/Makefile.am (test_atomic_LDADD, test_stack_LDADD, test_atomic_pthreads_LDADD, test_malloc_LDADD): Use THREADDLLIBS instead of "-lpthread". * configure: Regenerate. * Makefile.in: Ditto. * doc/Makefile.in: Ditto. * src/Makefile.in: Ditto. * src/atomic_ops/Makefile.in: Ditto. * src/atomic_ops/sysdeps/Makefile.in: Ditto. * src/config.h.in: Ditto. * tests/Makefile.in: Ditto.
* 2011-05-30 Ivan Maidanski <ivmai@mail.ru>ivmai2011-07-251-7/+9
| | | | | | | | | | | | | | | | | | | * configure.ac (PIC): Add workaround for GCC v3.4.6 which does not define the corresponding macro. * configure.ac: Don't check for GCC twice. * configure: Regenerate. * tests/test_malloc.c (DEFAULT_NTHREADS): New macro. * tests/test_malloc.c (run_one_test): Refine printed message (in case of HAVE_MMAP). * tests/test_malloc.c (main): Use DEFAULT_NTHREADS. * tests/test_stack.c (main): Cast AO_stack_pop() returned pointer. * src/atomic_ops_malloc.c (USE_MMAP_ANON, GC_MMAP_FLAGS, OPT_MAP_ANON): New macro. * src/atomic_ops_malloc.c (get_mmaped): Pass -1 (instead of 0) as file descriptor to mmap() if MAP_ANONYMOUS (same as for MAP_ANON). * src/atomic_ops_malloc.c (get_mmaped): Use USE_MMAP_ANON, GC_MMAP_FLAGS and OPT_MAP_ANON macros; reformat code; check open() returned value.
* 2009-12-04 Ivan Maidanski <ivmai@mail.ru>ivmai2011-07-251-1/+1
| | | | | | * include/gc_version.h, configure.ac, doc/README: Change to version 7.2alpha5. * configure: Regenerate.
* 2009-12-02 Ivan Maidanski <ivmai@mail.ru>libatomic_ops-7_2alpha4ivmai2011-07-251-1/+1
| | | | | * configure.ac, README: Change to version 7.2alpha4. * configure: Regenerate.
* 2009-12-01 Ivan Maidanski <ivmai@mail.ru>ivmai2011-07-251-1/+1
| | | | | | * include/gc_version.h, configure.ac, doc/README: Change to version 7.2alpha4. * configure: Regenerate.
* 2009-11-21 Ivan Maidanski <ivmai@mail.ru> (really Daniel R. Grayson)ivmai2011-07-251-3/+5
| | | | | | * configure.ac (AC_CONFIG_COMMANDS): Quote PICFLAG, CC, DEFS values. * configure: Regenerate.
* 2009-09-25 Ivan Maidanski <ivmai@mail.ru> (really Petter Urkedal)ivmai2011-07-251-1/+1
| | | | * configure.ac: Replace AC_PROG_CC with AM_PROG_CC_C_O.
* libatomic_ops-1.2 tarball importlibatomic_ops-1_2Ivan Maidanski2011-07-251-1/+1
|
* libatomic_ops-1.1 tarball importlibatomic_ops-1_1Ivan Maidanski2011-07-251-1/+1
|
* libatomic_ops-1.0 tarball importlibatomic_ops-1_0Ivan Maidanski2011-07-251-0/+66