pull up r18348 from trunk
authorTom Yu <tlyu@mit.edu>
Wed, 2 Aug 2006 16:41:08 +0000 (16:41 +0000)
committerTom Yu <tlyu@mit.edu>
Wed, 2 Aug 2006 16:41:08 +0000 (16:41 +0000)
 r18348@cathode-dark-space:  raeburn | 2006-07-21 13:41:43 -0400
 ticket: new
 subject: reject configure option for static libraries
 target_version: 1.5.1
 tags: pullup

 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: 4036
version_fixed: 1.5.1

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-5@18401 dc483132-0cff-0310-8789-dd5450dbe970

src/aclocal.m4

index 8fd2f8d3449673a09cdcabf4e29aeabceb34b053..77598867b523c00f53309c5a1ce3de36281b49f2 100644 (file)
@@ -1216,6 +1216,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=