added check for gcc version since -fno-gcse -fno-crossjumping
is not supported in older versions... git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1379 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
parent
eb4ef75c31
commit
06c60f4041
9
configure
vendored
9
configure
vendored
@ -2735,7 +2735,10 @@ then
|
|||||||
CFLAGS="-O -g -Wall -Wstrict-prototypes -Wmissing-prototypes"
|
CFLAGS="-O -g -Wall -Wstrict-prototypes -Wmissing-prototypes"
|
||||||
C_INTERF_FLAGS="-O -g -Wall -Wstrict-prototypes -Wmissing-prototypes"
|
C_INTERF_FLAGS="-O -g -Wall -Wstrict-prototypes -Wmissing-prototypes"
|
||||||
else
|
else
|
||||||
CFLAGS="-O3 -fno-gcse -fno-crossjumping -fomit-frame-pointer -Wall -Wstrict-prototypes -Wmissing-prototypes"
|
CFLAGS="-O3 -fomit-frame-pointer -Wall -Wstrict-prototypes -Wmissing-prototypes"
|
||||||
|
case "`$CC --version < /dev/null`" in
|
||||||
|
*3.4*) CFLAGS="-fno-gcse -fno-crossjumping $CFLAGS" ;;
|
||||||
|
esac
|
||||||
C_INTERF_FLAGS="-O3 -Wall -Wstrict-prototypes -Wmissing-prototypes"
|
C_INTERF_FLAGS="-O3 -Wall -Wstrict-prototypes -Wmissing-prototypes"
|
||||||
C_PARSER_FLAGS="-O3 -Wall -Wstrict-prototypes -Wmissing-prototypes"
|
C_PARSER_FLAGS="-O3 -Wall -Wstrict-prototypes -Wmissing-prototypes"
|
||||||
case "$target_cpu" in
|
case "$target_cpu" in
|
||||||
@ -3381,7 +3384,7 @@ fi
|
|||||||
yap_cv_readline=no
|
yap_cv_readline=no
|
||||||
if test "$prefix" = "NONE"
|
if test "$prefix" = "NONE"
|
||||||
then
|
then
|
||||||
prefix="c:/Program\\ Files/Yap"
|
prefix="c:/Yap"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
use_malloc="yes"
|
use_malloc="yes"
|
||||||
@ -3461,7 +3464,7 @@ fi
|
|||||||
|
|
||||||
if test "$prefix" = "NONE"
|
if test "$prefix" = "NONE"
|
||||||
then
|
then
|
||||||
prefix="c:/Program\\ Files/Yap"
|
prefix="c:/Yap"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
INSTALL_COMMAND="install_unix"
|
INSTALL_COMMAND="install_unix"
|
||||||
|
@ -242,7 +242,10 @@ then
|
|||||||
CFLAGS="-O -g -Wall -Wstrict-prototypes -Wmissing-prototypes"
|
CFLAGS="-O -g -Wall -Wstrict-prototypes -Wmissing-prototypes"
|
||||||
C_INTERF_FLAGS="-O -g -Wall -Wstrict-prototypes -Wmissing-prototypes"
|
C_INTERF_FLAGS="-O -g -Wall -Wstrict-prototypes -Wmissing-prototypes"
|
||||||
else
|
else
|
||||||
CFLAGS="-O3 -fno-gcse -fno-crossjumping -fomit-frame-pointer -Wall -Wstrict-prototypes -Wmissing-prototypes"
|
CFLAGS="-O3 -fomit-frame-pointer -Wall -Wstrict-prototypes -Wmissing-prototypes"
|
||||||
|
case "`$CC --version < /dev/null`" in
|
||||||
|
*3.4*) CFLAGS="-fno-gcse -fno-crossjumping $CFLAGS" ;;
|
||||||
|
esac
|
||||||
C_INTERF_FLAGS="-O3 -Wall -Wstrict-prototypes -Wmissing-prototypes"
|
C_INTERF_FLAGS="-O3 -Wall -Wstrict-prototypes -Wmissing-prototypes"
|
||||||
C_PARSER_FLAGS="-O3 -Wall -Wstrict-prototypes -Wmissing-prototypes"
|
C_PARSER_FLAGS="-O3 -Wall -Wstrict-prototypes -Wmissing-prototypes"
|
||||||
case "$target_cpu" in
|
case "$target_cpu" in
|
||||||
@ -344,7 +347,7 @@ then
|
|||||||
yap_cv_readline=no
|
yap_cv_readline=no
|
||||||
if test "$prefix" = "NONE"
|
if test "$prefix" = "NONE"
|
||||||
then
|
then
|
||||||
prefix="c:/Program\\ Files/Yap"
|
prefix="c:/Yap"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
use_malloc="yes"
|
use_malloc="yes"
|
||||||
@ -357,7 +360,7 @@ then
|
|||||||
AC_CHECK_LIB(wsock32,main)
|
AC_CHECK_LIB(wsock32,main)
|
||||||
if test "$prefix" = "NONE"
|
if test "$prefix" = "NONE"
|
||||||
then
|
then
|
||||||
prefix="c:/Program\\ Files/Yap"
|
prefix="c:/Yap"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
INSTALL_COMMAND="install_unix"
|
INSTALL_COMMAND="install_unix"
|
||||||
|
Reference in New Issue
Block a user