From 0959854e8a222a638631d9ebe8ffe4d5f4cfc7b0 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Wed, 31 Oct 2007 05:40:23 +0000 Subject: [PATCH] Use ac_cv_c_compiler_gnu instead of copying it to krb5_cv_prog_gcc git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20154 dc483132-0cff-0310-8789-dd5450dbe970 --- src/aclocal.m4 | 1 - src/appl/telnet/configure.in | 2 +- src/config/shlib.conf | 18 +++++++++--------- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/src/aclocal.m4 b/src/aclocal.m4 index f29446a1f..a7f6a2f12 100644 --- a/src/aclocal.m4 +++ b/src/aclocal.m4 @@ -594,7 +594,6 @@ dnl AC_DEFUN(WITH_CC,[dnl AC_REQUIRE([KRB5_AC_CHECK_FOR_CFLAGS])dnl AC_REQUIRE([AC_PROG_CC])dnl -krb5_cv_prog_gcc=$ac_cv_c_compiler_gnu if test $ac_cv_c_compiler_gnu = yes ; then HAVE_GCC=yes else HAVE_GCC= diff --git a/src/appl/telnet/configure.in b/src/appl/telnet/configure.in index d4870ec08..7285696bc 100644 --- a/src/appl/telnet/configure.in +++ b/src/appl/telnet/configure.in @@ -36,7 +36,7 @@ AC_FUNC_VFORK AC_HEADER_STDARG case $krb5_cv_host in *-*-solaris*) - if test "$krb5_cv_prog_gcc" = yes; then + if test "$ac_cv_c_compiler_gnu" = yes; then # Solaris 8 at least has curses.h that is noisy under gcc ac_cv_header_curses_h=yes fi diff --git a/src/config/shlib.conf b/src/config/shlib.conf index 5f5b95dd5..197e744c8 100644 --- a/src/config/shlib.conf +++ b/src/config/shlib.conf @@ -67,7 +67,7 @@ alpha*-dec-osf*) PROFFLAGS=-pg RPATH_FLAG='-Wl,-rpath -Wl,' CC_LINK_SHARED='$(CC) $(PROG_LIBPATH) $(RPATH_FLAG)$(PROG_RPATH) $(CFLAGS) $(PTHREAD_CFLAGS) $(LDFLAGS)' - if test "$krb5_cv_prog_gcc" = yes \ + if test "$ac_cv_c_compiler_gnu" = yes \ && test "$krb5_cv_prog_gnu_ld" = yes; then # Really should check for gnu ld vs system ld, too. CC_LINK_STATIC='$(CC) $(PROG_LIBPATH) $(CFLAGS) $(PTHREAD_CFLAGS) $(LDFLAGS)' @@ -108,7 +108,7 @@ alpha*-dec-osf*) SHLIBVEXT='.$(LIBMAJOR).$(LIBMINOR)' SHLIBSEXT='.$(LIBMAJOR)' RPATH_FLAG='-Wl,+b,' - if test "$krb5_cv_prog_gcc" = yes; then + if test "$ac_cv_c_compiler_gnu" = yes; then PICFLAGS=-fPIC SHLIB_EXPFLAGS='-Wl,+s -Wl,+b,$(SHLIB_RDIRS) $(SHLIB_DIRS) $(SHLIB_EXPLIBS)' LDCOMBINE='gcc -fPIC -shared -Wl,+h,$(LIBPREFIX)$(LIBBASE)$(SHLIBSEXT) -Wl,-c,hpux10.exports' @@ -138,7 +138,7 @@ mips-sgi-irix6.3) # This is a Kludge; see below SHLIBEXT=.so SHOBJEXT=.o # Kludge follows: (gcc makes n32 object files but ld expects o32, so we reeducate ld) - if test "$krb5_cv_prog_gcc" = yes; then + if test "$ac_cv_c_compiler_gnu" = yes; then LDCOMBINE='ld -n32 -shared -ignore_unresolved -update_registry $(BUILDTOP)/so_locations -soname $(LIBPREFIX)$(LIBBASE)$(SHLIBSEXT)' else LDCOMBINE='ld -shared -ignore_unresolved -update_registry $(BUILDTOP)/so_locations -soname $(LIBPREFIX)$(LIBBASE)$(SHLIBSEXT)' @@ -171,7 +171,7 @@ mips-sgi-irix*) SHLIBSEXT='.so.$(LIBMAJOR)' SHLIBEXT=.so SHOBJEXT=.o - if test "$krb5_cv_prog_gcc" = yes; then + if test "$ac_cv_c_compiler_gnu" = yes; then LDCOMBINE_TAIL="" INIT_FINI_PREP="initfini=" else @@ -182,7 +182,7 @@ mips-sgi-irix*) fi opts='-Wl,-ignore_unresolved -Wl,-update_registry -Wl,$(BUILDTOP)/so_locations' - if test "$krb5_cv_prog_gcc" = yes \ + if test "$ac_cv_c_compiler_gnu" = yes \ && test "$krb5_cv_prog_gnu_ld" = yes; then opts='' fi @@ -212,7 +212,7 @@ mips-sgi-irix*) # untested... mips-sni-sysv4) - if test "$krb5_cv_prog_gcc" = yes; then + if test "$ac_cv_c_compiler_gnu" = yes; then PICFLAGS=-fpic LDCOMBINE='$(CC) -G -Wl,-h -Wl,$(LIBPREFIX)$(LIBBASE)$(SHLIBSEXT)' else @@ -316,7 +316,7 @@ mips-*-netbsd*) ;; *-*-solaris*) - if test "$krb5_cv_prog_gcc" = yes; then + if test "$ac_cv_c_compiler_gnu" = yes; then PICFLAGS=-fPIC LDCOMBINE='$(CC) $(CFLAGS) -shared -h $(LIBPREFIX)$(LIBBASE)$(SHLIBSEXT)' else @@ -399,7 +399,7 @@ mips-*-netbsd*) SHOBJEXT=.o SHLIB_EXPFLAGS=' $(SHLIB_DIRS) $(SHLIB_EXPLIBS)' PROFFLAGS=-pg - if test "$krb5_cv_prog_gcc" = "yes" ; then + if test "$ac_cv_c_compiler_gnu" = "yes" ; then wl_prefix=-Wl, RPATH_FLAG='-Wl,-blibpath:' LDCOMBINE='$(CC) -shared -v -o $@ $$objlist -nostartfiles -Xlinker -bgcbypass:1 -Xlinker -bfilelist -Xlinker -bM:SRE -Xlinker -bE:$(SHLIB_EXPORT_FILE) -Xlinker -bernotok -Xlinker -brtl $(SHLIB_EXPFLAGS) -lc $$initfini' @@ -430,7 +430,7 @@ mips-*-netbsd*) # make archives like for shared libraries. DYNOBJEXT=.so # - if test "$krb5_cv_prog_gcc" = "yes" ; then + if test "$ac_cv_c_compiler_gnu" = "yes" ; then wl_prefix=-Wl, RPATH_FLAG='-Wl,-blibpath:' LDCOMBINE='$(CC) -shared -v -o shr.o.$(LIBMAJOR).$(LIBMINOR) $$objlist -nostartfiles -Xlinker -bgcbypass:1 -Xlinker -bfilelist -Xlinker -bM:SRE -Xlinker -bE:$(SHLIB_EXPORT_FILE) -Xlinker -bernotok $(SHLIB_EXPFLAGS) -lc $$initfini' -- 2.26.2