+2011-08-11 Ivan Maidanski <ivmai@mail.ru> (really Petter Urkedal)
+
+ * configure.ac: Since we no longer bundle libatomic_ops, we must
+ check for the sub-directory before using it, in case we didn't
+ find an installed version.
+ * Makefile.am: Don't include libatomic_ops in the distribution.
+ * Makefile.in: Regenerate.
+ * configure: Ditto.
+
2011-08-09 Ivan Maidanski <ivmai@mail.ru> (really Jie Liu)
* configure.ac: Add GC_RTEMS_PTHREADS AH_TEMPLATE and configure
# files used by makefiles other than Makefile.am
#
-
-# The libatomic_ops library. This is not ideal, since we pick up junk from
-# there.
EXTRA_DIST = gc_cpp.cpp README.QUICK BCC_MAKEFILE NT_MAKEFILE \
OS2_MAKEFILE PCR-Makefile digimars.mak EMX_MAKEFILE \
Makefile.direct Makefile.dj Makefile.DLLs SMakefile.amiga \
mach_dep.c extra/setjmp_t.c extra/threadlibs.c extra/AmigaOS.c \
Mac_files/datastart.c Mac_files/dataend.c \
Mac_files/MacOS_config.h Mac_files/MacOS_Test_config.h \
- include/private/msvc_dbg.h extra/msvc_dbg.c libatomic_ops \
- cord/cordbscs.c cord/cordtest.c cord/de.c cord/cordprnt.c \
- cord/cordxtra.c cord/de_cmds.h cord/de_win.h cord/de_win.c \
- cord/de_win.RC cord/de_win.ICO
+ include/private/msvc_dbg.h extra/msvc_dbg.c cord/cordbscs.c \
+ cord/cordtest.c cord/de.c cord/cordprnt.c cord/cordxtra.c \
+ cord/de_cmds.h cord/de_win.h cord/de_win.c cord/de_win.RC \
+ cord/de_win.ICO
# C Library
# ---------
fi
+# If we have neither an external or an internal version, offer a useful hint
+# and exit.
+if test x"$with_libatomic_ops" = xno -a ! -e "$srcdir/libatomic_ops"; then :
+ as_fn_error $? "libatomic_ops is required. You can either install it on your system, or fetch and unpack a resent version into the source directory and link or rename it to libatomic_ops." "$LINENO" 5
+fi
+
# Finally, emit the definitions for bundled or pre-installed AO.
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which libatomic_ops to use" >&5
$as_echo_n "checking which libatomic_ops to use... " >&6; }
ATOMIC_OPS_LIBS="-latomic_ops"
else
- { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5
-$as_echo "bundled" >&6; }
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
+$as_echo "internal" >&6; }
subdirs="$subdirs libatomic_ops"