diff options
author | Theodore Tso <tytso@mit.edu> | 1995-06-28 21:13:07 +0000 |
---|---|---|
committer | Theodore Tso <tytso@mit.edu> | 1995-06-28 21:13:07 +0000 |
commit | 5f71e52f0d2f6bb0adc602b8746604eef572dcff (patch) | |
tree | a728a15dc31e62f0d2eddd6bd6a82b6f5d22ff51 /src/configure.in | |
parent | 576defedaf239acd5efbb06710ccaf8fac3c6eee (diff) | |
download | krb5-5f71e52f0d2f6bb0adc602b8746604eef572dcff.zip krb5-5f71e52f0d2f6bb0adc602b8746604eef572dcff.tar.gz krb5-5f71e52f0d2f6bb0adc602b8746604eef572dcff.tar.bz2 |
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.)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6190 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/configure.in')
-rw-r--r-- | src/configure.in | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/src/configure.in b/src/configure.in index 5709898..e37fad2 100644 --- a/src/configure.in +++ b/src/configure.in @@ -12,7 +12,7 @@ case $krb5_cv_host 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" @@ -22,13 +22,13 @@ krb5_cv_noshlibs_ext=a 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= @@ -36,15 +36,18 @@ krb5_cv_staticlibs_enabled=yes 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" @@ -53,14 +56,14 @@ krb5_cv_staticlibs_enabled=yes 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" @@ -69,7 +72,7 @@ krb5_cv_noshlibs_ext=a 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 . |