CONFIG_SRCS="${CONFIG_SRCS} remote-nrom.c"
fi
-AC_ARG_ENABLE(warnings,
-[ --enable-build-warnings Enable compiler warnings if gcc is used],
-[case "${enableval}" in
-yes) enable_build_warnings=yes ;;
-no) enable_build_warnings=no ;;
-*) AC_MSG_ERROR(bad value ${enableval} given for warnings options) ;;
-esac])
-
-if test "x$enable_build_warnings" = xyes -a "x$GCC" = xyes
+AC_ARG_ENABLE(build-warnings,
+[ --enable-build-warnings Enable build-time compiler warnings if gcc is used],
+[build_warnings="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations"
+case "${enableval}" in
+ yes) ;;
+ no) build_warnings="-w";;
+dnl ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
+dnl build_warnings="${build_warnings} ${t}";;
+dnl *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
+dnl build_warnings="${t} ${build_warnings}";;
+dnl *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
+ *) ;;
+esac],[build_warnings=""])dnl
+
+if test "x${build_warnings}" != x -a "x$GCC" = xyes
then
- WARN_CFLAGS="-Wall -Wstrict-prototypes -Wmissing-prototypes"
+ WARN_CFLAGS="${build_warnings}"
else
WARN_CFLAGS=""
fi
AC_MSG_ERROR(bad value ${enableval} given for gdbtk option) ;;
esac],
[
-# Default is on for everything but go32 and cygwin32
+# Default is on for everything but go32 and Cygwin
case "$host" in
*go32* | *windows*)
;;
esac
])
-# In the cygwin32 environment, we need some additional flags.
+# In the Cygwin environment, we need some additional flags.
AC_CACHE_CHECK([for cygwin32], gdb_cv_os_cygwin32,
[AC_EGREP_CPP(lose, [
#ifdef __CYGWIN32__
TIXVERSION=4.1.8.0
. ${ac_cv_c_tclconfig}/tclConfig.sh
case "${host}" in
- *-*-cygwin32*)
+ *-*-cygwin*)
tixdir=../tix/win/tcl8.0
;;
*)
AC_ARG_WITH(sim-gpu2,
[ --with-sim-gpu2=DIR Use GPU2 library under given DIR],
[case "${target}" in
- mips*-sky-*)
+ mips*-sky*-*)
if test -d "${withval}"
then
LIBS="${LIBS} -L${withval}/lib -lgpu2 -L${x_libraries} -lX11 -lXext"
AC_ARG_WITH(sim-funit,
[ --with-sim-funit=DIR Use target FP lib under given DIR],
[case "${target}" in
- mips*-sky-*)
+ mips*-sky*-*)
if test -d "${withval}"
then
LIBS="${LIBS} -L${withval}/lib -lfunit"