- AC_MSG_RESULT([yes, version $mips_pro_ver.])
- AC_MSG_CHECKING(for -LANG:std in CXXFLAGS)
- lang_std_not_set=`echo $CXXFLAGS | grep "\-LANG:std"`
- if test "x$lang_std_not_set" = "x"; then
- AC_MSG_RESULT([not set, setting.])
- FLAGS="-LANG:std"
- else
- AC_MSG_RESULT([already set.])
- fi
+ FLAGS="-DNDEBUG -DG_DISABLE_ASSERT"
+ fi
+
+ # Check what compiler we are using
+ AC_MSG_CHECKING([for GNU CC])
+ if test "$GCC" = "yes"; then
+ AC_MSG_RESULT([yes])
+ if test "$DEBUG" = "yes"; then
+ FLAGS="$FLAGS -g -fno-inline"
+ FLAGS="$FLAGS -Wall -Wsign-compare -Waggregate-return"
+ FLAGS="$FLAGS -Wcast-qual -Wbad-function-cast -Wpointer-arith"
+ # for Python.h
+ #FLAGS="$FLAGS -Wno-long-long"
+ fi
+ if test "$STRICT" = "yes"; then
+ FLAGS="$FLAGS -ansi -pedantic -D_XOPEN_SOURCE"
+ fi
+ fi
+ AC_MSG_CHECKING([for compiler specific flags])
+ AC_MSG_RESULT([$FLAGS])
+ CFLAGS="$CFLAGS $FLAGS"
+])
+
+AC_DEFUN([OB_NLS],
+[
+ AC_ARG_ENABLE([nls],
+ [ --enable-nls Enable NLS translations default=yes],
+ [NLS=$enableval], [NLS="yes"])
+
+ if test "$NLS" = yes; then
+ DEFS="$DEFS -DENABLE_NLS"