You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2012/12/07 01:46:38 UTC
svn commit: r1418152 - in /incubator/mesos/trunk: Makefile.am configure.ac
configure.amazon-linux-64 configure.centos-5.4-64 configure.macosx
configure.ubuntu-lucid-64 configure.ubuntu-natty-64
Author: benh
Date: Fri Dec 7 00:46:37 2012
New Revision: 1418152
URL: http://svn.apache.org/viewvc?rev=1418152&view=rev
Log:
Removed OS specific configuration files.
From: Ben Mahler <be...@gmail.com>
Review: https://reviews.apache.org/r/8026
Removed:
incubator/mesos/trunk/configure.amazon-linux-64
incubator/mesos/trunk/configure.centos-5.4-64
incubator/mesos/trunk/configure.macosx
incubator/mesos/trunk/configure.ubuntu-lucid-64
incubator/mesos/trunk/configure.ubuntu-natty-64
Modified:
incubator/mesos/trunk/Makefile.am
incubator/mesos/trunk/configure.ac
Modified: incubator/mesos/trunk/Makefile.am
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/Makefile.am?rev=1418152&r1=1418151&r2=1418152&view=diff
==============================================================================
--- incubator/mesos/trunk/Makefile.am (original)
+++ incubator/mesos/trunk/Makefile.am Fri Dec 7 00:46:37 2012
@@ -35,11 +35,6 @@ EXTRA_DIST += bootstrap LICENSE NOTICE R
support/colors.sh
-# Extra configure scripts.
-EXTRA_DIST += configure.amazon-linux-64 configure.centos-5.4-64 \
- configure.macosx configure.ubuntu-lucid-64 configure.ubuntu-natty-64
-
-
# MPI framework.
EXTRA_DIST += mpi/README mpi/mpiexec-mesos.in mpi/mpiexec-mesos.py
Modified: incubator/mesos/trunk/configure.ac
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/configure.ac?rev=1418152&r1=1418151&r2=1418152&view=diff
==============================================================================
--- incubator/mesos/trunk/configure.ac (original)
+++ incubator/mesos/trunk/configure.ac Fri Dec 7 00:46:37 2012
@@ -196,6 +196,10 @@ AC_PROG_CC([gcc])
ACX_PTHREAD([], [AC_MSG_ERROR([failed to find pthreads])])
+# Check for libunwind, and link it in if present.
+AC_CHECK_LIB(unwind, backtrace, LIBS="$LIBS -lunwind")
+
+
# TODO(benh): Consider using AS_IF instead of just shell 'if'
# statements for better autoconf style (the AS_IF macros also make
# sure variable dependencies are handled appropriately).
@@ -255,6 +259,16 @@ __EOF__
# Determine preprocessor flags for Java if not set.
if test -z "$JAVA_CPPFLAGS"; then
JAVA_CPPFLAGS="-I$JAVA_HOME/include -I$JAVA_HOME/include/$OS_NAME"
+
+ # For OSX, set JAVA_CPPFLAGS for 10.7 and above since the JAVA_HOME
+ # discovered during configure using 'java.home' does not include
+ # the JNI headers. This happens when users have not configured
+ # their jdk using the 'Java Preferences' application.
+ if test "$OS_NAME" = "darwin"; then
+ if test ! -z `sw_vers -productVersion | grep -E '10.7|10.8'`; then
+ JAVA_CPPFLAGS="-I/System/Library/Frameworks/JavaVM.framework/Headers"
+ fi
+ fi
fi
# Determine linker flags for Java if not set.
@@ -325,7 +339,14 @@ AM_CONDITIONAL([HAS_JAVA], [test "x$has_
# Perform necessary configuration for building with Python.
if test "x$enable_python" = "xyes"; then
- AM_PATH_PYTHON() # A fatal error will occur if no interpreter is found.
+ AM_PATH_PYTHON([2.6],,
+ [AC_MSG_ERROR([mesos requires Python >= 2.6 to be installed
+ -------------------------------------------------------------------
+ If you already have Python 2.6 installed, please ensure you have
+ not set the PYTHON environment variable to point to an older
+ version of Python.
+ -------------------------------------------------------------------
+ ])])
# Determine how the generated Python egg's will get named, used in
# the Makefile to keep the targets from being rerun.