You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by mt...@apache.org on 2010/05/21 09:47:29 UTC
svn commit: r946922 - /trafficserver/traffic/trunk/configure.ac
Author: mturk
Date: Fri May 21 07:47:29 2010
New Revision: 946922
URL: http://svn.apache.org/viewvc?rev=946922&view=rev
Log:
Fix typos and remove duplicate code
Modified:
trafficserver/traffic/trunk/configure.ac
Modified: trafficserver/traffic/trunk/configure.ac
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/configure.ac?rev=946922&r1=946921&r2=946922&view=diff
==============================================================================
--- trafficserver/traffic/trunk/configure.ac (original)
+++ trafficserver/traffic/trunk/configure.ac Fri May 21 07:47:29 2010
@@ -153,9 +153,6 @@ AC_ARG_ENABLE([debug],
[enable_debug=no]
)
AC_MSG_RESULT([$enable_debug])
-AS_IF([test "x$enable_debug" = "xyes"],
- [AC_DEFINE([DEBUG])]
-)
#
# Diags
@@ -321,14 +318,6 @@ AS_IF([test "x$enable_cli2" = "xyes"],
[AC_SUBST([CLI_DIR],[cli2])]
)
-AC_ARG_WITH([architecture],
- [AS_HELP_STRING([--with-architecture], [explicitly specify architecture for compiler])],
- [with_architecture=$withval],
- [with_architecture=no]
-)
-AS_IF([test "x$with_architecture" = "xyes"], [echo "--with-architecture needs an argument"; AS_EXIT()]
-)
-
# Google profiler
AC_MSG_CHECKING([whether to enable profiler])
AC_ARG_WITH([profiler],
@@ -555,12 +544,10 @@ AC_ARG_WITH(architecture, [AC_HELP_STRIN
fi
])
-AS_IF([test "x$cpu_architecture" != "x"],
-[
+if test "x$cpu_architecture" != "x"; then
ATS_ADDTO(CFLAGS, [$cpu_architecture])
- ATS_ADDTO(CXXFLAGS [$cpu_architecture])
-]
-)
+ ATS_ADDTO(CXXFLAGS, [$cpu_architecture])
+fi
# GCC atomics
AC_CACHE_CHECK([for gcc atomic builtins],[support_cv_atomic],
@@ -600,11 +587,12 @@ esac
# existing CFLAGS/CXXFLAGS if some special values had been set.
#
if test "x${enable_debug}" = "xyes" ;then
- CFLAGS="${cc_oflag_dbg} ${CFLAGS}"
- CXXFLAGS="${cxx_oflag_dbg} ${CXXFLAGS}"
+ ATS_ADDTO(CFLAGS, [${cc_oflag_dbg}])
+ ATS_ADDTO(CXXFLAGS, [${cxx_oflag_dbg}])
+ ATS_ADDTO(CPPFLAGS, [-DDEBUG -D_DEBUG])
else
- CFLAGS="${cc_oflag_opt} ${CFLAGS}"
- CXXFLAGS="${cxx_oflag_opt} ${CXXFLAGS}"
+ ATS_ADDTO(CFLAGS, [${cc_oflag_opt}])
+ ATS_ADDTO(CXXFLAGS, [${cxx_oflag_opt}])
fi
#