+Wed Jun 28 17:07:08 1995 Theodore Y. Ts'o <tytso@dcl>
+
+ * aclocal.m4 (KRB_INCLUDE): Search the build directories before
+ the source directories. (Doesn't hurt anything, and it
+ helps in a few cases of user error.)
+
+ * configure.in: Conditionalize on the name of CC to determine
+ whether to use the gcc or suncc flags for shared
+ libraries. (This is a little bit ugly; we might want to
+ use a better test later on.)
+
Wed Jun 28 10:43:10 1995 <tytso@rsx-11.mit.edu>
* aclocal.m4 (INSTALL_VARIABLE_HACKSRCTOP): Work around bug in
echo "Enabling shared libraries for Linux...."
krb5_cv_shlibs_cflags=-fPIC
krb5_cv_shlibs_ext=so
-krb5_cv_noshlibs_ext=a
+ krb5_cv_noshlibs_ext=a
krb5_cv_shlibs_dir=shared
krb5_cv_shlibs_ldflag="-dy"
krb5_cv_noshlibs_ldflag="-dn"
krb5_cv_shlibs_use_dirs=yes
krb5_cv_shlibs_tail_comp=
krb5_cv_shlibs_enabled=yes
-krb5_cv_staticlibs_enabled=yes
+ krb5_cv_staticlibs_enabled=yes
;;
*-*-aix*)
echo "Enabling shared libraries for AIX...."
krb5_cv_shlibs_cflags=
krb5_cv_shlibs_ext=a
- krb5_cv_noshlibs_ext=do-not-make
+ krb5_cv_noshlibs_ext=do-not-make
krb5_cv_shlibs_dir=
krb5_cv_shlibs_ldflag="-bex4:\$(BUILDTOP)/util/aix.bincmds"
krb5_cv_noshlibs_ldflag=
krb5_cv_shlibs_dirhead="-L"
krb5_cv_exe_need_dirs=yes
krb5_cv_shlibs_use_dirs=no
- krb5_cv_staticlibs_enabled=
+ krb5_cv_staticlibs_enabled=
krb5_cv_shlibs_tail_comp=
krb5_cv_shlibs_enabled=yes
;;
*-*-solaris*)
echo "Enabling shared libraries for Solaris...."
- krb5_cv_shlibs_cflags=-Kpic
+ case "${CC}" in
+ gcc|*/gcc|gcc-*|*/gcc-*) krb5_cv_shlibs_cflags=-fpic ;;
+ *) krb5_cv_shlibs_cflags=-Kpic ;;
+ esac
krb5_cv_shlibs_ext=so
- krb5_cv_noshlibs_ext=a
+ krb5_cv_noshlibs_ext=a
krb5_cv_shlibs_dir=shared
krb5_cv_shlibs_ldflag="-dy"
krb5_cv_noshlibs_ldflag="-dn"
krb5_cv_exe_need_dirs=yes
krb5_cv_shlibs_use_dirs=yes
krb5_cv_shlibs_tail_comp=
- krb5_cv_staticlibs_enabled=yes
+ krb5_cv_staticlibs_enabled=yes
krb5_cv_shlibs_enabled=yes
;;
alpha-dec-osf*)
echo "Enabling shared libraries for Alpha OSF...."
krb5_cv_shlibs_cflags=
krb5_cv_shlibs_ext=so
-krb5_cv_noshlibs_ext=a
+ krb5_cv_noshlibs_ext=a
krb5_cv_shlibs_dir=
krb5_cv_shlibs_ldflag="-call_shared"
krb5_cv_noshlibs_ldflag="-non_shared"
krb5_cv_exe_need_dirs=no
krb5_cv_shlibs_use_dirs=yes
krb5_cv_shlibs_tail_comp=
- krb5_cv_staticlibs_enabled=yes
+ krb5_cv_staticlibs_enabled=yes
krb5_cv_shlibs_enabled=yes
if test ! -f so_locations; then
cp -p /usr/shlib/so_locations .