reject configure option for static libraries
authorKen Raeburn <raeburn@mit.edu>
Fri, 21 Jul 2006 17:41:43 +0000 (17:41 +0000)
committerKen Raeburn <raeburn@mit.edu>
Fri, 21 Jul 2006 17:41:43 +0000 (17:41 +0000)
We shouldn't accept --enable-static at configure time when we know
it's not going to work at build time.

* aclocal.m4 (KRB5_LIB_AUX): Error out if --enable-static.

ticket: new
target_version: 1.5.1
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18348 dc483132-0cff-0310-8789-dd5450dbe970

src/aclocal.m4

index 79ea8de465068a049109c2e72f9a66f1fb28bc54..17e3cf84d3271680097c47371f75d434e24333a8 100644 (file)
@@ -1225,6 +1225,10 @@ AC_HELP_STRING([--enable-static],[build static libraries @<:@disabled for most p
 AC_HELP_STRING([--disable-static],[don't build static libraries]), ,
 [enable_static=$default_static])
 
+if test "$enable_static" = yes; then
+  AC_MSG_ERROR([Sorry, static libraries do not work in this release.])
+fi
+
 if test "$enable_static" = no && test "$krb5_force_static" != yes; then
        AC_MSG_NOTICE([disabling static libraries])
        LIBLINKS=