1 # Process this file with autoconf to produce a configure script.
2 AC_INIT([libatomic_ops],[1.0])
3 AC_CANONICAL_TARGET([])
4 AC_CONFIG_SRCDIR(src/atomic_ops.c)
8 AM_CONFIG_HEADER(src/config.h)
10 # Checks for programs.
14 # Checks for functions.
17 # Checks for header files.
19 # AC_CHECK_HEADERS([ ])
21 # Determine PIC flag, adjust default CFLAGS
24 AC_MSG_CHECKING(Determining PIC compiler flag)
25 if test "$GCC" = yes; then
33 if test "$GCC" != yes; then
34 CFLAGS="$CFLAGS +O2 -mt"
40 if test "$GCC" != yes; then
48 # Any Linux compiler had better be gcc compatible.
51 AC_MSG_RESULT("<none>")
55 CFLAGS="$CFLAGS -DNDEBUG"
60 AM_CONDITIONAL(NEED_ASM, test x$need_asm = xtrue)
62 AC_CONFIG_FILES([Makefile src/Makefile src/atomic_ops/Makefile src/atomic_ops/sysdeps/Makefile doc/Makefile tests/Makefile])
63 AC_CONFIG_COMMANDS([default],[[]],[[PICFLAG=${PICFLAG}