Explicitly handle default cases when neither --enable-shared or
authorPaul Park <pjpark@mit.edu>
Fri, 16 Jun 1995 15:28:24 +0000 (15:28 +0000)
committerPaul Park <pjpark@mit.edu>
Fri, 16 Jun 1995 15:28:24 +0000 (15:28 +0000)
--with-shared is specified.

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

src/aclocal.m4
src/configure.in

index c8dcf5465c218d6443fee7699d98f12cb45ddde9..54942e252e0f081281314542b934e74bc1ccab01 100644 (file)
@@ -785,7 +785,8 @@ AC_ARG_WITH([shared],
 ,
 withval=yes
 )dnl
-if test "$withval" = yes; then
+if test "$krb5_cv_shlibs_enabled" = yes ; then
+  if test "$withval" = yes; then
        AC_MSG_RESULT(Using shared libraries)
        LDARGS="$krb5_cv_shlibs_ldflag -L[$](TOPLIBD) $LDARGS"
        if test "$krb5_cv_exe_need_dirs" = yes; then
@@ -793,9 +794,12 @@ if test "$withval" = yes; then
        fi
        SHLIB_TAIL_COMP=$krb5_cv_shlibs_tail_comp
        AC_SUBST(SHLIB_TAIL_COMP)
-else
+  else
        AC_MSG_RESULT(Using archive libraries)
        LDARGS="$krb5_cv_noshlibs_ldflag -L[$](TOPLIBD) $LDARGS"
+  fi
+else
+  LDARGS="-L[$](TOPLIBD) $LDARGS"
 fi
 AC_SUBST(LDARGS)
 ])dnl
index e61dd622063a6f66dd99191e852c712e70296a6b..5c2934f9bf28182fe72a9a7147ab24e81e05c988 100644 (file)
@@ -20,6 +20,7 @@ case $krb5_cv_host in
        krb5_cv_exe_need_dirs=yes
        krb5_cv_shlibs_use_dirs=yes
        krb5_cv_shlibs_tail_comp=
+       krb5_cv_shlibs_enabled=yes
        ;;
 *-*-solaris*)
        echo "Enabling shared libraries for Solaris...."
@@ -33,6 +34,7 @@ case $krb5_cv_host in
        krb5_cv_exe_need_dirs=yes
        krb5_cv_shlibs_use_dirs=yes
        krb5_cv_shlibs_tail_comp=
+       krb5_cv_shlibs_enabled=yes
        ;;
 alpha-dec-osf*)
        echo "Enabling shared libraries for Alpha OSF...."
@@ -46,6 +48,7 @@ alpha-dec-osf*)
        krb5_cv_exe_need_dirs=no
        krb5_cv_shlibs_use_dirs=yes
        krb5_cv_shlibs_tail_comp=
+       krb5_cv_shlibs_enabled=yes
        if test ! -f so_locations; then
                cp -p /usr/shlib/so_locations .
        fi
@@ -63,7 +66,8 @@ krb5_cv_shlibs_ldflag=
 krb5_cv_noshlibs_ldflag=
 krb5_cv_shlibs_sym_ufo=
 krb5_cv_shlibs_dirhead=
-krb5_cv_shlibs_tail_comp=])
+krb5_cv_shlibs_tail_comp=
+krb5_cv_shlibs_enabled=])
 AC_ARG_ENABLE([athena],
 [  --enable-athena         build with MIT Project Athena configuration],,)
 if test -z "$KRB4_LIB"; then