* aclocal.m4 (KRB5_LIB_AUX): Smash some shared lib file extensions
authorTom Yu <tlyu@mit.edu>
Mon, 29 Jan 2001 00:04:18 +0000 (00:04 +0000)
committerTom Yu <tlyu@mit.edu>
Mon, 29 Jan 2001 00:04:18 +0000 (00:04 +0000)
so that AIX doesn't break, since static and shared libs are
mutually exclusive on AIX.

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

src/ChangeLog
src/aclocal.m4

index b7e4858b2106c3114ea3091dfe4187098814b471..6cda13bbeaec09dd28b294d43659d6d76b3dab26 100644 (file)
@@ -1,3 +1,9 @@
+2001-01-28  Tom Yu  <tlyu@mit.edu>
+
+       * aclocal.m4 (KRB5_LIB_AUX): Smash some shared lib file extensions
+       so that AIX doesn't break, since static and shared libs are
+       mutually exclusive on AIX.
+
 2001-01-16  Ken Raeburn  <raeburn@mit.edu>
 
        * acconfig.h (HAVE_SA_LEN): Undef.
index 902c8091c257a55b5f3faec4be8b45ab03d29b58..cf775b7cf2f3e57fd5074fb5d0081b34e7adc566 100644 (file)
@@ -1063,8 +1063,18 @@ AC_ARG_ENABLE([shared],
                        AC_MSG_RESULT([Forcing static libraries.])
                        # avoid duplicate rules generation for AIX and such
                        SHLIBEXT=.so-nobuild
+                       SHLIBVEXT=.so.v-nobuild
+                       SHLIBSEXT=.so.s-nobuild
                else
                        AC_MSG_RESULT([Enabling shared libraries.])
+                       # Clear some stuff in case of AIX, etc.
+                       if test "$STLIBEXT" = "$SHLIBEXT" ; then
+                               STLIBEXT=.a-nobuild
+                               LIBLIST=
+                               LIBLINKS=
+                               OBJLISTS=
+                               LIBINSTLIST=
+                       fi
                        LIBLIST="$LIBLIST "'lib$(LIB)$(SHLIBEXT)'
                        LIBLINKS="$LIBLINKS "'$(TOPLIBD)/lib$(LIB)$(SHLIBEXT) $(TOPLIBD)/lib$(LIB)$(SHLIBVEXT)'
                        case "$SHLIBSEXT" in
@@ -1080,10 +1090,6 @@ AC_ARG_ENABLE([shared],
                        OBJLISTS="$OBJLISTS OBJS.SH"
                fi
                CC_LINK="$CC_LINK_SHARED"
-               if test "$STLIBEXT" = "$SHLIBEXT" ; then
-                 STLIBEXT=".a-no-build"
-                 LIBINSTLIST="install-shared" #don't install static
-               fi
                ;;
        esac
 else
@@ -1095,6 +1101,9 @@ else
 fi],
        RUN_ENV=
        CC_LINK="$CC_LINK_STATIC"
+       SHLIBEXT=.so-nobuild
+       SHLIBVEXT=.so.v-nobuild
+       SHLIBSEXT=.so.s-nobuild
 )dnl
 
 if test -n "$EXTRA_LIB_TARGETS"; then