From: Bastien N. <ha...@us...> - 2003-07-19 16:00:30
|
Update of /cvsroot/xine/xine-lib In directory sc8-pr-cvs1:/tmp/cvs-serv17112 Modified Files: autogen.sh configure.ac Log Message: - fix libtool version detection, add more warnings if gcc is used Index: autogen.sh =================================================================== RCS file: /cvsroot/xine/xine-lib/autogen.sh,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- autogen.sh 19 Jul 2003 00:08:58 -0000 1.10 +++ autogen.sh 19 Jul 2003 16:00:25 -0000 1.11 @@ -112,7 +112,7 @@ NUM_RESULT=$# RESULT_FILE=$3 if [ $RETVAL -eq 0 -a $NUM_RESULT -eq 3 -a -f "$RESULT_FILE" ]; then - LT="`libtool --version | awk '{ print $4 }' | sed -e 's/[a-zA-Z\ \.\(\)\-;]//g'`" + LT="`libtool --version | awk '{ print $4 }' | sed -e 's/[a-zA-Z\ \.\(\)\-]//g'`" LIBTOOL_MIN="`echo $LIBTOOL_MIN | sed -e 's/[a-zA-Z\ \.\(\)\-]//g'`" if test $LT -lt 100 ; then LT=`expr $LT \* 10` Index: configure.ac =================================================================== RCS file: /cvsroot/xine/xine-lib/configure.ac,v retrieving revision 1.153 retrieving revision 1.154 diff -u -r1.153 -r1.154 --- configure.ac 13 Jul 2003 14:44:15 -0000 1.153 +++ configure.ac 19 Jul 2003 16:00:26 -0000 1.154 @@ -1232,6 +1232,31 @@ ;; esac +if test "$GCC" = "yes" ; then + AC_MSG_RESULT(yes) + CFLAGS="\ + -Wall \ + -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes \ + -Wnested-externs -Wpointer-arith \ + -Wcast-align \ + $CFLAGS" + + for option in -Wno-strict-aliasing -Wno-sign-compare; do + SAVE_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $option" + AC_TRY_COMPILE([], [], + has_option=yes, + has_option=no,) + if test $has_option = no; then + CFLAGS="$SAVE_CFLAGS" + fi + unset has_option + unset SAVE_CFLAGS + done + unset option +fi + + CFLAGS="$CFLAGS $ALSA_CFLAGS $ESD_CFLAGS $ARTS_CFLAGS $IRIXAL_CFLAGS" DEBUG_CFLAGS="$DEBUG_CFLAGS $ALSA_CFLAGS $ESD_CFLAGS $ARTS_CFLAGS $IRIXAL_CFLAGS" |