Strip more autoconf stuff we don't need
We're not building on solaris.
This commit is contained in:
parent
2cabe5501c
commit
d58179dba7
|
@ -6,21 +6,7 @@ dnl with or without modifications, as long as this notice is preserved.
|
|||
AC_DEFUN([PANDORA_OPTIMIZE],[
|
||||
dnl Build optimized or debug version ?
|
||||
dnl First check for gcc and g++
|
||||
AS_IF([test "$GCC" = "yes" -a "$INTELCC" = "no"],[
|
||||
|
||||
dnl The following is required for portable results of floating point
|
||||
dnl calculations on PowerPC. The same must also be done for IA-64, but
|
||||
dnl this options is missing in the IA-64 gcc backend.
|
||||
case "$target_cpu" in
|
||||
*ppc* | *powerpc*)
|
||||
AM_CFLAGS="-mno-fused-madd ${AM_CFLAGS}"
|
||||
AM_CXXFLAGS="-mno-fused-madd ${AM_CXXFLAGS}"
|
||||
;;
|
||||
esac
|
||||
|
||||
dnl Once we can use a modern autoconf, we can replace the std=gnu99 here
|
||||
dnl with using AC_CC_STD_C99 above
|
||||
CC="${CC} -std=gnu99"
|
||||
AS_IF([test "$GCC" = "yes"],[
|
||||
|
||||
AM_CPPFLAGS="-g ${AM_CPPFLAGS}"
|
||||
|
||||
|
@ -30,33 +16,6 @@ AC_DEFUN([PANDORA_OPTIMIZE],[
|
|||
OPTIMIZE_CFLAGS="-O2"
|
||||
OPTIMIZE_CXXFLAGS="-O2"
|
||||
])
|
||||
AS_IF([test "$INTELCC" = "yes"],[
|
||||
AM_CPPFLAGS="-g ${AM_CPPFLAGS}"
|
||||
|
||||
DEBUG_CFLAGS="-O0"
|
||||
DEBUG_CXXFLAGS="-O0"
|
||||
|
||||
OPTIMIZE_CFLAGS="-xHOST -O2 -no-prec-div -static"
|
||||
OPTIMIZE_CXXFLAGS="${OPTIMIZE_CFLAGS}"
|
||||
|
||||
])
|
||||
AS_IF([test "$SUNCC" = "yes"],[
|
||||
dnl Once we can use a modern autoconf, we can replace the -xc99=all here
|
||||
dnl with using AC_CC_STD_C99 above
|
||||
CC="${CC} -xc99=all"
|
||||
CXX="${CXX} -xlang=c99"
|
||||
|
||||
AM_CFLAGS="-g -mt -xstrconst -Xa ${AM_CFLAGS}"
|
||||
AM_CXXFLAGS="-mt -compat=5 -library=stlport4 -library=Crun -template=no%extdef ${AM_CXXFLAGS}"
|
||||
|
||||
DEBUG_CXXFLAGS="-g"
|
||||
|
||||
dnl TODO: Make a test for -xO4 usability here
|
||||
OPTIMIZE_FLAGS="-xO3 -xlibmil -xdepend -xbuiltin"
|
||||
OPTIMIZE_CFLAGS="${OPTIMIZE_FLAGS}"
|
||||
OPTIMIZE_CXXFLAGS="-g0 ${OPTIMIZE_FLAGS}"
|
||||
|
||||
])
|
||||
|
||||
AC_ARG_WITH([debug],
|
||||
[AS_HELP_STRING([--with-debug],
|
||||
|
|
|
@ -77,6 +77,7 @@ AC_DEFUN([ZUUL_CANONICAL_TARGET],[
|
|||
|
||||
AC_REQUIRE([AC_PROG_CXX])
|
||||
AM_PROG_CC_C_O
|
||||
AC_PROG_CC_STDC
|
||||
|
||||
PANDORA_OPTIMIZE
|
||||
|
||||
|
|
Loading…
Reference in New Issue