This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

configure.in tweak


The check for -Wno-long-long wasn't using the cache or other
higher-level autoconf functions.

2000-07-17  Jason Merrill  <jason@redhat.com>

	* configure.in (-Wno-long-long check): Use higher-level macros.

Index: configure.in
===================================================================
RCS file: /cvs/gcc/egcs/gcc/configure.in,v
retrieving revision 1.397
diff -c -p -r1.397 configure.in
*** configure.in	2000/07/17 09:23:14	1.397
--- configure.in	2000/07/17 20:46:39
*************** AC_SUBST(NO_MINUS_C_MINUS_O)
*** 332,346 ****
  
  gcc_AC_C_LONG_DOUBLE
  
! AC_MSG_CHECKING(whether ${CC-cc} accepts -Wno-long-long)
! echo 'void f(){}' > conftest.c
! if test -z "`${CC-cc} -Wno-long-long -c conftest.c 2>&1`"; then
!   ac_cv_prog_cc_no_long_long=yes
! else
!   ac_cv_prog_cc_no_long_long=no
! fi
! rm -f conftest*
! echo "$ac_t"$ac_cv_prog_cc_no_long_long 1>&6
  
  # If the native compiler is GCC, we can enable warnings even in stage1.  
  # That's useful for people building cross-compilers, or just running a
--- 332,344 ----
  
  gcc_AC_C_LONG_DOUBLE
  
! AC_CACHE_CHECK(whether ${CC-cc} accepts -Wno-long-long,
! ac_cv_prog_cc_no_long_long,
! [save_CFLAGS="$CFLAGS"
! CFLAGS="-Wno-long-long"
! AC_TRY_COMPILE(,,ac_cv_prog_cc_no_long_long=yes,
! 	       ac_cv_prog_cc_no_long_long=no)
! CFLAGS="$save_CFLAGS"])
  
  # If the native compiler is GCC, we can enable warnings even in stage1.  
  # That's useful for people building cross-compilers, or just running a

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]