1.0.10
* --disable-assert has been removed from configure, and --enable-assert has been added in its place.
+* Compiling fixes for Clang on OSX Mountain Lion.
1.0.9 Wed Jul 4 22:46:19 EDT 2012
if test -f configure; then make clean; make merge-clean; make distclean; fi;
-rm -r -f autom4te.cache
+rm -r -f autom4te.cache/ config.h config.log config.status
./config/autorun.sh
-./configure --enable-assert
+if [ $(uname) = "Darwin" ];
+then
+ ./configure CC=clang CXX=clang++ --enable-assert
+else
+ ./configure --enable-assert
+fi
make
#ifdef __cplusplus
-namespace org { namespace libmemcached { class Instance; } }
+namespace org { namespace libmemcached { struct Instance; } }
struct memcached_st;
struct memcached_stat_st;
namespace org {
namespace libmemcached {
+// @todo Complete class transformation
struct Instance {
in_port_t port() const
{
bool server_startup(server_startup_st& construct, const std::string& server_type, in_port_t try_port, int argc, const char *argv[], const bool opt_startup_message)
{
- construct.start_server(server_type, try_port, argc, argv, opt_startup_message);
+ return construct.start_server(server_type, try_port, argc, argv, opt_startup_message);
}
bool server_startup_st::start_server(const std::string& server_type, in_port_t try_port, int argc, const char *argv[], const bool opt_startup_message)
# modified version of the Autoconf Macro, you may extend this special
# exception to the GPL to apply to your modified version as well.
-#serial 17
+#serial 18
AU_ALIAS([ACX_PTHREAD], [AX_PTHREAD])
AC_DEFUN([AX_PTHREAD], [
# --thread-safe: KAI C++
# pthread-config: use pthread-config program (for GNU Pth library)
-case "${host_cpu}-${host_os}" in
- *solaris*)
+case ${host_os} in
+ solaris*)
# On Solaris (at least, for some versions), libc contains stubbed
# (non-functional) versions of the pthreads routines, so link-based
ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
;;
- *-darwin*)
+ darwin12*)
+ ax_pthread_flags="$ax_pthread_flags"
+ ;;
+
+ darwin*)
ax_pthread_flags="-pthread $ax_pthread_flags"
;;
esac
AC_MSG_CHECKING([if more special flags are required for pthreads])
flag=no
- case "${host_cpu}-${host_os}" in
- *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
- *-osf* | *-hpux*) flag="-D_REENTRANT";;
- *solaris*)
+ case ${host_os} in
+ aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
+ osf* | hpux*) flag="-D_REENTRANT";;
+ solaris*)
if test "$GCC" = "yes"; then
flag="-D_REENTRANT"
else
AC_CACHE_CHECK([whether it is safe to use -floop-parallelize-all],
[ac_cv_safe_to_use_floop_parallelize_all_],
[save_CFLAGS="$CFLAGS"
- CFLAGS="-floop-parallelize-all ${AM_CFLAGS} ${CFLAGS}"
+ CFLAGS="-Werror -floop-parallelize-all ${AM_CFLAGS} ${CFLAGS}"
AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM([],[])],
[ac_cv_safe_to_use_floop_parallelize_all_=yes],