summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@users.sourceforge.net>2003-07-19 16:00:25 +0000
committerBastien Nocera <hadess@users.sourceforge.net>2003-07-19 16:00:25 +0000
commitf8efba7eed3bf478b8b47bbf644482a0a097350f (patch)
tree788386e93faffe246e86968f7725e3a4fd03853e
parente21c45eea50e76f6ddef30982ab70d7a7a52ee8d (diff)
downloadxine-lib-f8efba7eed3bf478b8b47bbf644482a0a097350f.tar.gz
xine-lib-f8efba7eed3bf478b8b47bbf644482a0a097350f.tar.bz2
- fix libtool version detection, add more warnings if gcc is used
CVS patchset: 5189 CVS date: 2003/07/19 16:00:25
-rwxr-xr-xautogen.sh4
-rw-r--r--configure.ac25
2 files changed, 27 insertions, 2 deletions
diff --git a/autogen.sh b/autogen.sh
index 42dcbf082..1b9d8e3f5 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -18,7 +18,7 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
#
-# $Id: autogen.sh,v 1.10 2003/07/19 00:08:58 komadori Exp $
+# $Id: autogen.sh,v 1.11 2003/07/19 16:00:25 hadess Exp $
#
# Maintained by Stephen Torri <storri@users.sourceforge.net>
#
@@ -112,7 +112,7 @@ detect_libtool() {
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`
diff --git a/configure.ac b/configure.ac
index 4ded26c6f..5b48f8a95 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1232,6 +1232,31 @@ case "$host_or_hostalias" in
;;
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"