comparison configure.in @ 464:5aa1854ad537 r21-2-47

Import from CVS: tag r21-2-47
author cvs
date Mon, 13 Aug 2007 11:45:51 +0200
parents 0784d089fdc9
children 6495d35ba9df
comparison
equal deleted inserted replaced
463:a158004111cd 464:5aa1854ad537
1882 c_switch_system="$xe_save_c_switch_system"]) 1882 c_switch_system="$xe_save_c_switch_system"])
1883 AC_MSG_RESULT($need_kalloca) 1883 AC_MSG_RESULT($need_kalloca)
1884 test "$need_kalloca" = "yes" && XE_APPEND(-Kalloca,c_switch_system) 1884 test "$need_kalloca" = "yes" && XE_APPEND(-Kalloca,c_switch_system)
1885 fi 1885 fi
1886 1886
1887 dnl Calculalate value of CFLAGS: 1887 dnl Calculate value of CFLAGS:
1888 dnl Use either command line flag, environment var, or autodetection 1888 dnl Use either command line flag, environment var, or autodetection
1889 if test "$cflags_specified" = "no"; then 1889 if test "$cflags_specified" = "no"; then
1890 dnl Following values of CFLAGS are known to work well. 1890 dnl Following values of CFLAGS are known to work well.
1891 dnl Should we take debugging options into consideration? 1891 dnl Should we take debugging options into consideration?
1892 if test "$GCC" = "yes"; then 1892 if test "$GCC" = "yes"; then
1893 CFLAGS="-g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes -Wshadow" 1893 CFLAGS="-g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes -Wshadow"
1894 dnl Yuck, bad compares have been worth at least 3 crashes!
1895 CFLAGS="$CFLAGS -Wsign-compare"
1894 dnl glibc is intentionally not `-Wpointer-arith'-clean. 1896 dnl glibc is intentionally not `-Wpointer-arith'-clean.
1895 dnl Ulrich Drepper has rejected patches to fix the glibc header files. 1897 dnl Ulrich Drepper has rejected patches to fix the glibc header files.
1896 test "$have_glibc" != "yes" && CFLAGS="$CFLAGS -Wpointer-arith" 1898 test "$have_glibc" != "yes" && CFLAGS="$CFLAGS -Wpointer-arith"
1897 dnl I'm not convinced this is a good idea any more. -sb 1899 dnl I'm not convinced this is a good idea any more. -sb
1898 dnl test "$opsys $machine" = "linux intel386" && \ 1900 dnl test "$opsys $machine" = "linux intel386" && \
2751 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make` 2753 xmkmf_defines=`${MAKE-make} xetest 2>/dev/null | grep -v make`
2752 fi 2754 fi
2753 cd .. 2755 cd ..
2754 rm -fr conftestdir 2756 rm -fr conftestdir
2755 for word in $xmkmf_defines; do 2757 for word in $xmkmf_defines; do
2756 case "$word" in -D* ) 2758 case "$word" in
2759 -D__STDC__*) ;;
2760 -D* )
2757 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'` 2761 sym=`echo '' $word | sed -e 's:^ *-D::' -e 's:=.*::'`
2758 case "$word" in 2762 case "$word" in
2759 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;; 2763 -D*=* ) val=`echo '' $word | sed -e 's:^.*=::'` ;;
2760 * ) val=1 ;; 2764 * ) val=1 ;;
2761 esac 2765 esac