- # 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="-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"
- else
- FLAGS=""
+ # 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="-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"