From 530c5da1d759dd96c2e69e0fc7e7ed34685828fa Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Mon, 16 Nov 1998 17:58:42 +0000 Subject: [PATCH] aclocal.m4: Add support for FreeBSD systems using ELF (and not just a.out systems). Also remove the definition for the KRB5_POSIX_LOCKS test, since it is no longer needed. (See ChangeLog for lib/krb5/os/lock_file.c for more details.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11040 dc483132-0cff-0310-8789-dd5450dbe970 --- src/ChangeLog | 7 +++++++ src/aclocal.m4 | 35 ++++++++++++++--------------------- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 512128edd..42cc98fc8 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,10 @@ +1998-11-14 Theodore Ts'o + + * aclocal.m4: Add support for FreeBSD systems using ELF (and not + just a.out systems). Also remove the definition for + the KRB5_POSIX_LOCKS test, since it is no longer needed. + (See ChangeLog for lib/krb5/os/lock_file.c for more details.) + 1998-09-22 Theodore Ts'o * aclocal.m4 (AC_PROG_LEX): Autoconf "fixed" AC_PROG_LEX long diff --git a/src/aclocal.m4 b/src/aclocal.m4 index f7f5dac65..aca3d0bc7 100644 --- a/src/aclocal.m4 +++ b/src/aclocal.m4 @@ -410,7 +410,8 @@ define(K5_AC_OUTPUT,[AC_OUTPUT($krb5_output_list)])dnl dnl dnl K5_OUTPUT_FILES dnl -dnl This is for compatibility purposes, and is deprecated... +dnl This is for compatibility purposes, and can be removed (once all the +dnl Makefile.in's have been checked in.) dnl define(K5_OUTPUT_FILES,[K5_AC_OUTPUT])dnl dnl @@ -496,24 +497,6 @@ AC_FUNC_CHECK(updwtmp,AC_DEFINE(HAVE_UPDWTMP)) AC_FUNC_CHECK(updwtmpx,AC_DEFINE(HAVE_UPDWTMPX)) ])dnl dnl -dnl -dnl Check for POSIX_FILE_LOCKS - used be include/krb5 and appl/popper -dnl -AC_DEFUN([KRB5_POSIX_LOCKS],[dnl -AC_HEADER_CHECK(flock.h,[echo found flock.h for non-posix locks], - [AC_MSG_CHECKING([POSIX file locking -- structs and flags]) - AC_CACHE_VAL(krb5_cv_struct_flock, -[AC_TRY_LINK(dnl -[#include -#include ], -[struct flock f; 1+F_SETLK;], - krb5_cv_struct_flock=yes, krb5_cv_struct_flock=no)]) - AC_MSG_RESULT($krb5_cv_struct_flock) - if test $krb5_cv_struct_flock = yes; then - AC_DEFINE(POSIX_FILE_LOCKS) - fi -])])dnl -dnl dnl WITH_NETLIB dnl dnl @@ -1077,12 +1060,22 @@ mips-*-netbsd*) ;; *-*-freebsd*) + if test -x /usr/bin/objformat ; then + objformat=`/usr/bin/objformat` + else + objformat="aout" + fi PICFLAGS=-fpic - SHLIBVEXT='.so.$(LIBMAJOR).$(LIBMINOR)' + if test "x$objformat" = "xelf" ; then + SHLIBVEXT='.so.$(LIBMAJOR)' + CC_LINK_SHARED='$(CC) $(PROG_LIBPATH) -Wl,-rpath -Wl,-R$(PROG_RPATH)' + else + SHLIBVEXT='.so.$(LIBMAJOR).$(LIBMINOR)' + CC_LINK_SHARED='$(CC) $(PROG_LIBPATH) -R$(PROG_RPATH)' + fi SHLIBEXT=.so LDCOMBINE='ld -Bshareable' SHLIB_EXPFLAGS='-R$(SHLIB_RDIRS) $(SHLIB_DIRS) $(SHLIB_EXPLIBS)' - CC_LINK_SHARED='$(CC) $(PROG_LIBPATH) -R$(PROG_RPATH)' CC_LINK_STATIC='$(CC) $(PROG_LIBPATH)' RUN_ENV='LD_LIBRARY_PATH=`echo $(PROG_LIBPATH) | sed -e "s/-L//g" -e "s/ /:/g"`; export LD_LIBRARY_PATH;' PROFFLAGS=-pg -- 2.26.2