From d901d7b89aa45e2dc9eb2af3aeddc5efabdb2a66 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Sun, 25 Feb 1996 00:08:27 +0000 Subject: [PATCH] Add support for shared libraries under HPUX and Sinix (SysVR4 under mips) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7530 dc483132-0cff-0310-8789-dd5450dbe970 --- src/ChangeLog | 5 +++++ src/configure.in | 58 ++++++++++++++++++++++++++++++++++++++++-------- 2 files changed, 54 insertions(+), 9 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index cdd54f838..d282f680d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +Sat Feb 24 19:07:15 1996 Theodore Y. Ts'o + + * configure.in: Add support for shared libraries under HPUX and + Sinix (SysVR4 under mips) + Wed Feb 21 23:31:09 1996 Richard Basch * aclocal.m4: diff --git a/src/configure.in b/src/configure.in index 46d403ccd..9ac8428d7 100644 --- a/src/configure.in +++ b/src/configure.in @@ -63,17 +63,18 @@ krb5_cv_shlibs_versioned_filenames=yes # version in filename of library echo "Enabling shared libraries for AIX...." krb5_cv_shlibs_cflags= krb5_cv_shlibs_ext=a - krb5_cv_shlibs_need_nover=no # need_nover *must* be no if versioned_filenames = no +# need_nover *must* be no if versioned_filenames = no + krb5_cv_shlibs_need_nover=no krb5_cv_shlibs_versioned_filenames=no krb5_cv_noshlibs_ext=do-not-make krb5_cv_shlibs_dir= if test $krb5_cv_prog_gcc = yes ; then - krb5_cv_shlibs_ldflag="-Xlinker -bex4:\$(BUILDTOP)/util/aix.bincmds" - krb5_cv_noshlibs_ldflag= -else - krb5_cv_shlibs_ldflag="-bex4:\$(BUILDTOP)/util/aix.bincmds" - krb5_cv_noshlibs_ldflag= -fi + krb5_cv_shlibs_ldflag="-Xlinker -bex4:\$(BUILDTOP)/util/aix.bincmds" + krb5_cv_noshlibs_ldflag= + else + krb5_cv_shlibs_ldflag="-bex4:\$(BUILDTOP)/util/aix.bincmds" + krb5_cv_noshlibs_ldflag= + fi krb5_cv_shlibs_sym_ufo= krb5_cv_shlibs_dirhead="-L" krb5_cv_exe_need_dirs=yes @@ -82,7 +83,30 @@ fi krb5_cv_staticlibs_enabled= krb5_cv_shlibs_tail_comp= krb5_cv_shlibs_enabled=yes -;; + ;; +mips-sni-sysv4) + echo "Enabling shared libraries for Sinix...." + if test $krb5_cv_prog_gcc = yes; then + krb5_cv_shlibs_cflags=-fpic + else + krb5_cv_shlibs_cflags=-Kpic + fi + krb5_cv_shlibs_ext=so + krb5_cv_noshlibs_ext=a + krb5_cv_shlibs_versioned_filenames=yes + krb5_cv_shlibs_need_nover=yes + krb5_cv_shlibs_dir=shared + krb5_cv_shlibs_ldflag="-dy" + krb5_cv_noshlibs_ldflag="-dn" + krb5_cv_shlibs_sym_ufo="-u " + krb5_cv_shlibs_dirhead="-R" + krb5_cv_exe_need_dirs=yes + krb5_cv_shlibs_use_dirs=yes + krb5_cv_shlibs_use_colon_dirs=no + krb5_cv_shlibs_tail_comp= + krb5_cv_staticlibs_enabled=yes + krb5_cv_shlibs_enabled=yes + ;; *-*-solaris*) echo "Enabling shared libraries for Solaris...." if test $krb5_cv_prog_gcc = yes; then @@ -132,7 +156,23 @@ krb5_cv_shlibs_versioned_filenames=yes krb5_cv_noshlibs_ldflag="-static" fi ;; - +*-*-hpux*) + echo "Enabling shared libraries for HP-UX >=9.x ...." + krb5_cv_shlibs_cflags=+z + krb5_cv_shlibs_ext=sl + krb5_cv_noshlibs_ext=a + krb5_cv_shlibs_dir=shared + krb5_cv_shlibs_ldflag="-Wl,-a,default" + krb5_cv_noshlibs_ldflag= + krb5_cv_shlibs_sym_ufo= + krb5_cv_shlibs_dirhead="-Wl,+b," + krb5_cv_exe_need_dirs=yes + krb5_cv_shlibs_use_dirs=yes + krb5_cv_shlibs_use_colon_dirs=yes + krb5_cv_shlibs_tail_comp= + krb5_cv_shlibs_enabled=yes + krb5_cv_staticlibs_enabled=yes + ;; *) echo " " echo "Shared libraries not supported on $krb5_cv_host" -- 2.26.2