1 # Process this file with autoconf to produce a configure script.
2 AC_INIT([libatomic_ops],[1.2])
3 AC_CANONICAL_TARGET([])
4 AC_CONFIG_SRCDIR(src/atomic_ops.c)
8 AM_CONFIG_HEADER(src/config.h)
10 # Checks for programs.
15 # Checks for functions.
18 # Checks for header files.
20 # AC_CHECK_HEADERS([ ])
22 # Determine PIC flag, adjust default CFLAGS
25 AC_MSG_CHECKING(Determining PIC compiler flag)
26 if test "$GCC" = yes; then
34 if test "$GCC" != yes; then
35 CFLAGS="$CFLAGS +O2 -mt"
41 if test "$GCC" != yes; then
49 # Any Linux compiler had better be gcc compatible.
52 AC_MSG_RESULT("<none>")
56 CFLAGS="$CFLAGS -DNDEBUG"
61 AM_CONDITIONAL(NEED_ASM, test x$need_asm = xtrue)
63 AC_CONFIG_FILES([Makefile src/Makefile src/atomic_ops/Makefile src/atomic_ops/sysdeps/Makefile doc/Makefile tests/Makefile])
64 AC_CONFIG_COMMANDS([default],[[]],[[PICFLAG=${PICFLAG}