summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorJINMEI Tatuya <jinmei@isc.org>2010-09-20 05:20:56 +0200
committerJINMEI Tatuya <jinmei@isc.org>2010-09-20 05:20:56 +0200
commit875c25cde193d9ec5c03e9f8f35ec5327439efed (patch)
treec59ca9a190e285e2c0cd53753ef994f8fdd39760 /configure.ac
parentDon't use + (plus) in automake variable names. (diff)
downloadkea-875c25cde193d9ec5c03e9f8f35ec5327439efed.tar.xz
kea-875c25cde193d9ec5c03e9f8f35ec5327439efed.zip
Addressed issues of trac #325:
- made --disable-static workable by linking the lib/config test with libcc instead of a specific .o file. (we can now safely to do so thanks to the refactoring of the test framework with mock classes). - don't set CXXFLAGS in configure.ac And one minor cleanup: don't bother to print the value of CFLAGS at the end of configure. we don't use it. git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@2976 e5f2f494-b856-4b98-b285-d166d9295462
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac10
1 files changed, 8 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 3acc03310e..07d98ccb92 100644
--- a/configure.ac
+++ b/configure.ac
@@ -40,6 +40,14 @@ AC_HELP_STRING([--enable-static-link],
[enable_static_link=yes], [enable_static_link=no])
AM_CONDITIONAL(USE_STATIC_LINK, test $enable_static_link = yes)
+# Check validity about some libtool options
+if test $enable_static_link = yes -a $enable_static = no; then
+ AC_MSG_ERROR([--enable-static-link requires --enable-static])
+fi
+if test $enable_shared = no; then
+ AC_MSG_ERROR([BIND 10 requires shared libraries to be built])
+fi
+
# OS dependent configuration
SET_ENV_LIBRARY_PATH=no
ENV_LIBRARY_PATH=LD_LIBRARY_PATH
@@ -167,7 +175,6 @@ LDFLAGS=$LDFLAGS_SAVED
# specify the default warning flags in CXXFLAGS and let specific modules
# "override" the default.
-CXXFLAGS=-g
werror_ok=0
# SunStudio compiler requires special compiler options for boost
@@ -543,7 +550,6 @@ Package:
Flags:
DEFS: $DEFS
CPPFLAGS: $CPPFLAGS
- CFLAGS: $CFLAGS
CXXFLAGS: $CXXFLAGS
B10_CXXFLAGS: $B10_CXXFLAGS
dnl includes too