summaryrefslogtreecommitdiffstats
path: root/src/aclocal.m4
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2006-07-21 19:03:02 +0000
committerKen Raeburn <raeburn@mit.edu>2006-07-21 19:03:02 +0000
commitdedcfc188f4f9a30f136d4fe145b5bc545d220b9 (patch)
treec7e51345a5e5e559e156e65a43541075a81f22d3 /src/aclocal.m4
parent30db231de0763c37b482013e25eadcfc7bfdb304 (diff)
downloadkrb5-dedcfc188f4f9a30f136d4fe145b5bc545d220b9.tar.gz
krb5-dedcfc188f4f9a30f136d4fe145b5bc545d220b9.tar.xz
krb5-dedcfc188f4f9a30f136d4fe145b5bc545d220b9.zip
* aclocal.m4 (KRB5_LIB_AUX): Disallow --enable-profiled and --disable-shared
options as well. Don't generate help messages for these options. ticket: 4036 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18352 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/aclocal.m4')
-rw-r--r--src/aclocal.m421
1 files changed, 15 insertions, 6 deletions
diff --git a/src/aclocal.m4 b/src/aclocal.m4
index 17e3cf84d..51ca472f4 100644
--- a/src/aclocal.m4
+++ b/src/aclocal.m4
@@ -1220,9 +1220,9 @@ AC_DEFUN(KRB5_LIB_AUX,
[AC_REQUIRE([KRB5_LIB_PARAMS])dnl
# Check whether to build static libraries.
-AC_ARG_ENABLE([static],
-AC_HELP_STRING([--enable-static],[build static libraries @<:@disabled for most platforms@:>@])
-AC_HELP_STRING([--disable-static],[don't build static libraries]), ,
+dnl AC_HELP_STRING([--enable-static],[build static libraries @<:@disabled for most platforms@:>@])
+dnl AC_HELP_STRING([--disable-static],[don't build static libraries])
+AC_ARG_ENABLE([static],, ,
[enable_static=$default_static])
if test "$enable_static" = yes; then
@@ -1245,10 +1245,15 @@ fi
# Check whether to build shared libraries.
AC_ARG_ENABLE([shared],
-AC_HELP_STRING([--enable-shared],[build shared libraries @<:@enabled for most platforms@:>@])
-AC_HELP_STRING([--disable-shared],[don't build shared libraries]), ,
+dnl AC_HELP_STRING([--enable-shared],[build shared libraries @<:@enabled for most platforms@:>@])
+dnl AC_HELP_STRING([--disable-shared],[don't build shared libraries])
+, ,
[enable_shared=$default_shared])
+if test "$enable_shared" != yes; then
+ AC_MSG_ERROR([Sorry, this release builds only shared libraries, cannot disable them.])
+fi
+
if test "$enable_shared" = yes; then
case "$SHLIBEXT" in
.so-nobuild)
@@ -1311,8 +1316,12 @@ fi
# Check whether to build profiled libraries.
AC_ARG_ENABLE([profiled],
-[ --enable-profiled build profiled libraries @<:@disabled@:>@],
+dnl [ --enable-profiled build profiled libraries @<:@disabled@:>@]
+,
[if test "$enableval" = yes; then
+ AC_MSG_ERROR([Sorry, profiled libraries do not work in this release.])
+fi
+if false; then
case $PFLIBEXT in
.po-nobuild)
AC_MSG_WARN([Profiled libraries not supported on this architecture.])