dnl it under the terms of the GNU General Public License as published by
dnl the Free Software Foundation; either version 3 of the License, or
dnl (at your option) any later version.
-dnl
+dnl
dnl This program is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
dnl GNU General Public License for more details.
-dnl
+dnl
dnl You should have received a copy of the GNU General Public License
dnl along with this program; see the file COPYING3. If not see
dnl <http://www.gnu.org/licenses/>.
# Decide features one by one.
AC_MSG_CHECKING(for default configuration of --enable-dx-regs)
- if test "x${enable_dx_regs}" == xyes; then
+ if test "x${enable_dx_regs}" = xyes; then
AC_DEFINE(NDS32_DEFAULT_DX_REGS, 1,
[Define value for nds32_dx_regs])
else
AC_MSG_RESULT($enable_dx_regs)
AC_MSG_CHECKING(for default configuration of --enable-perf-ext)
- if test "x${enable_perf_ext}" == xno; then
+ if test "x${enable_perf_ext}" = xno; then
AC_DEFINE(NDS32_DEFAULT_PERF_EXT, 0,
[Define value for nds32_perf_ext])
else
AC_MSG_RESULT($enable_perf_ext)
AC_MSG_CHECKING(for default configuration of --enable-perf-ext2)
- if test "x${enable_perf_ext2}" == xno; then
+ if test "x${enable_perf_ext2}" = xno; then
AC_DEFINE(NDS32_DEFAULT_PERF_EXT2, 0,
[Define value for nds32_perf_ext2])
else
AC_MSG_RESULT($enable_perf_ext2)
AC_MSG_CHECKING(for default configuration of --enable-string-ext)
- if test "x${enable_string_ext}" == xno; then
+ if test "x${enable_string_ext}" = xno; then
AC_DEFINE(NDS32_DEFAULT_STRING_EXT, 0,
[Define value for nds32_string_ext])
else
AC_MSG_RESULT($enable_string_ext)
AC_MSG_CHECKING(for default configuration of --enable-audio-ext)
- if test "x${enable_audio_ext}" == xno; then
+ if test "x${enable_audio_ext}" = xno; then
AC_DEFINE(NDS32_DEFAULT_AUDIO_EXT, 0,
[Define value for nds32_audio_ext])
else
GAS_CHECK_DECL_NEEDED(sbrk, f, char *(*f)(), $gas_test_headers)
GAS_CHECK_DECL_NEEDED(strstr, f, char *(*f)(), $gas_test_headers)
-AC_CHECK_DECLS([free, getenv, malloc, mempcpy, realloc, stpcpy, strstr, vsnprintf])
+AC_CHECK_DECLS([free, getenv, malloc, mempcpy, realloc, stpcpy, strstr, vsnprintf, asprintf])
BFD_BINARY_FOPEN