Set default optimization flags to -xO5 if using Sun Studio

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@114 632fc199-4ca6-4c93-a231-07263d6284db
This commit is contained in:
DRC
2010-02-16 22:35:25 +00:00
parent 8a26fdea23
commit 1e2f298f94

View File

@@ -46,6 +46,16 @@ if test "x${GCC}" = "xyes"; then
fi fi
fi fi
AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"])
if test "x${SUNCC}" = "xyes"; then
if test "x${SAVED_CFLAGS}" = "x"; then
CFLAGS=-xO5
fi
if test "x${SAVED_CXXFLAGS}" = "x"; then
CXXFLAGS=-xO5
fi
fi
# Checks for libraries. # Checks for libraries.
# Checks for header files. # Checks for header files.