pdfdir = $(libdir)/mit-scheme/doc
AM_CPPFLAGS = -I@MIT_SCHEME_INCLUDEDIR@
+AM_CFLAGS = @MIT_CFLAGS@
blowfish_shim_la_LIBADD = blowfish-adapter.lo
blowfish_shim_la_LDFLAGS = -module -avoid-version -shared
AC_PROG_CPP
AC_PROG_INSTALL
+if test ${GCC} = yes; then
+
+ MIT_CFLAGS="-Wall -Wundef -Wpointer-arith -Winline"
+ MIT_CFLAGS="${MIT_CFLAGS} -Wstrict-prototypes -Wnested-externs"
+ MIT_CFLAGS="${MIT_CFLAGS} -Wredundant-decls"
+
+ AC_MSG_CHECKING([for GCC>=4])
+ AC_COMPILE_IFELSE(
+ [AC_LANG_PROGRAM(
+ [[
+ #if __GNUC__ >= 4
+ ;
+ #else
+ #error "gcc too old"
+ #endif
+ ]],
+ [[]]
+ )],
+ [
+ AC_MSG_RESULT([yes])
+ MIT_CFLAGS="${MIT_CFLAGS} -Wextra -Wno-sign-compare"
+ MIT_CFLAGS="${MIT_CFLAGS} -Wno-unused-parameter"
+ MIT_CFLAGS="${MIT_CFLAGS} -Wold-style-definition"
+ # The generated shim code violates this big-time.
+ # MIT_CFLAGS="${MIT_CFLAGS} -Wmissing-prototypes"
+ MIT_CFLAGS="${MIT_CFLAGS} -Wunreachable-code"
+ MIT_CFLAGS="${MIT_CFLAGS} -Wwrite-strings"
+ ],
+ [AC_MSG_RESULT([no])])
+fi
+
AC_ARG_WITH([openssl],
AS_HELP_STRING([--with-openssl],
[Use OpenSSL crypto library if available [[yes]]]))
${MIT_SCHEME_PKD}: stamp-scheme"
AC_SUBST([MIT_SCHEME_EXE])
+AC_SUBST([MIT_CFLAGS])
AC_SUBST([MIT_SCHEME_LIBDIR])
AC_SUBST([MIT_SCHEME_INCLUDEDIR])
AC_SUBST([MIT_SCHEME_PKD])
pdfdir = $(libdir)/mit-scheme/doc
AM_CPPFLAGS = -I@MIT_SCHEME_INCLUDEDIR@
+AM_CFLAGS = @MIT_CFLAGS@
gdbm_shim_la_LIBADD = gdbm-adapter.lo
gdbm_shim_la_LDFLAGS = -module -avoid-version -shared
AC_PROG_CPP
AC_PROG_INSTALL
+if test ${GCC} = yes; then
+
+ MIT_CFLAGS="-Wall -Wundef -Wpointer-arith -Winline"
+ MIT_CFLAGS="${MIT_CFLAGS} -Wstrict-prototypes -Wnested-externs"
+ MIT_CFLAGS="${MIT_CFLAGS} -Wredundant-decls"
+
+ AC_MSG_CHECKING([for GCC>=4])
+ AC_COMPILE_IFELSE(
+ [AC_LANG_PROGRAM(
+ [[
+ #if __GNUC__ >= 4
+ ;
+ #else
+ #error "gcc too old"
+ #endif
+ ]],
+ [[]]
+ )],
+ [
+ AC_MSG_RESULT([yes])
+ MIT_CFLAGS="${MIT_CFLAGS} -Wextra -Wno-sign-compare"
+ MIT_CFLAGS="${MIT_CFLAGS} -Wno-unused-parameter"
+ MIT_CFLAGS="${MIT_CFLAGS} -Wold-style-definition"
+ # The generated shim code violates this big-time.
+ # MIT_CFLAGS="${MIT_CFLAGS} -Wmissing-prototypes"
+ MIT_CFLAGS="${MIT_CFLAGS} -Wunreachable-code"
+ MIT_CFLAGS="${MIT_CFLAGS} -Wwrite-strings"
+ ],
+ [AC_MSG_RESULT([no])])
+fi
+
AC_CHECK_HEADER([gdbm.h],[],[
AC_MSG_ERROR([Header file <gdbm.h> not found.])])
MIT_SCHEME_DEPS="${MIT_SCHEME_DEPS}
${MIT_SCHEME_PKD}: stamp-scheme"
+AC_SUBST([MIT_CFLAGS])
AC_SUBST([MIT_SCHEME_EXE])
AC_SUBST([MIT_SCHEME_LIBDIR])
AC_SUBST([MIT_SCHEME_INCLUDEDIR])
pdfdir = $(libdir)/mit-scheme/doc
AM_CPPFLAGS = -I@MIT_SCHEME_INCLUDEDIR@
+AM_CFLAGS = @MIT_CFLAGS@
mcrypt_shim_la_LIBADD = mcrypt-adapter.lo
mcrypt_shim_la_LDFLAGS = -module -avoid-version -shared
AC_PROG_CPP
AC_PROG_INSTALL
+if test ${GCC} = yes; then
+
+ MIT_CFLAGS="-Wall -Wundef -Wpointer-arith -Winline"
+ MIT_CFLAGS="${MIT_CFLAGS} -Wstrict-prototypes -Wnested-externs"
+ MIT_CFLAGS="${MIT_CFLAGS} -Wredundant-decls"
+
+ AC_MSG_CHECKING([for GCC>=4])
+ AC_COMPILE_IFELSE(
+ [AC_LANG_PROGRAM(
+ [[
+ #if __GNUC__ >= 4
+ ;
+ #else
+ #error "gcc too old"
+ #endif
+ ]],
+ [[]]
+ )],
+ [
+ AC_MSG_RESULT([yes])
+ MIT_CFLAGS="${MIT_CFLAGS} -Wextra -Wno-sign-compare"
+ MIT_CFLAGS="${MIT_CFLAGS} -Wno-unused-parameter"
+ MIT_CFLAGS="${MIT_CFLAGS} -Wold-style-definition"
+ # The generated shim code violates this big-time.
+ # MIT_CFLAGS="${MIT_CFLAGS} -Wmissing-prototypes"
+ MIT_CFLAGS="${MIT_CFLAGS} -Wunreachable-code"
+ MIT_CFLAGS="${MIT_CFLAGS} -Wwrite-strings"
+ ],
+ [AC_MSG_RESULT([no])])
+fi
+
AC_CHECK_HEADER([mcrypt.h],[],[
AC_MSG_ERROR([Header file <mcrypt.h> not found.])])
MIT_SCHEME_DEPS="${MIT_SCHEME_DEPS}
${MIT_SCHEME_PKD}: stamp-scheme"
+AC_SUBST([MIT_CFLAGS])
AC_SUBST([MIT_SCHEME_EXE])
AC_SUBST([MIT_SCHEME_LIBDIR])
AC_SUBST([MIT_SCHEME_INCLUDEDIR])
pdfdir = $(libdir)/mit-scheme/doc
AM_CPPFLAGS = -I@MIT_SCHEME_INCLUDEDIR@
+AM_CFLAGS = @MIT_CFLAGS@
md5_shim_la_LIBADD = md5-adapter.lo
md5_shim_la_LDFLAGS = -module -avoid-version -shared
AC_PROG_CPP
AC_PROG_INSTALL
+if test ${GCC} = yes; then
+
+ MIT_CFLAGS="-Wall -Wundef -Wpointer-arith -Winline"
+ MIT_CFLAGS="${MIT_CFLAGS} -Wstrict-prototypes -Wnested-externs"
+ MIT_CFLAGS="${MIT_CFLAGS} -Wredundant-decls"
+
+ AC_MSG_CHECKING([for GCC>=4])
+ AC_COMPILE_IFELSE(
+ [AC_LANG_PROGRAM(
+ [[
+ #if __GNUC__ >= 4
+ ;
+ #else
+ #error "gcc too old"
+ #endif
+ ]],
+ [[]]
+ )],
+ [
+ AC_MSG_RESULT([yes])
+ MIT_CFLAGS="${MIT_CFLAGS} -Wextra -Wno-sign-compare"
+ MIT_CFLAGS="${MIT_CFLAGS} -Wno-unused-parameter"
+ MIT_CFLAGS="${MIT_CFLAGS} -Wold-style-definition"
+ # The generated shim code violates this big-time.
+ # MIT_CFLAGS="${MIT_CFLAGS} -Wmissing-prototypes"
+ MIT_CFLAGS="${MIT_CFLAGS} -Wunreachable-code"
+ MIT_CFLAGS="${MIT_CFLAGS} -Wwrite-strings"
+ ],
+ [AC_MSG_RESULT([no])])
+fi
+
AC_ARG_WITH([openssl],
AS_HELP_STRING([--with-openssl],
[Use OpenSSL crypto library if available [[yes]]]))
MIT_SCHEME_DEPS="${MIT_SCHEME_DEPS}
${MIT_SCHEME_PKD}: stamp-scheme"
+AC_SUBST([MIT_CFLAGS])
AC_SUBST([MIT_SCHEME_EXE])
AC_SUBST([MIT_SCHEME_LIBDIR])
AC_SUBST([MIT_SCHEME_INCLUDEDIR])
pdfdir = $(libdir)/mit-scheme/doc
AM_CPPFLAGS = -I@MIT_SCHEME_INCLUDEDIR@
+AM_CFLAGS = @MIT_CFLAGS@
mhash_shim_la_LIBADD = mhash-adapter.lo
mhash_shim_la_LDFLAGS = -module -avoid-version -shared
AC_PROG_CPP
AC_PROG_INSTALL
+if test ${GCC} = yes; then
+
+ MIT_CFLAGS="-Wall -Wundef -Wpointer-arith -Winline"
+ MIT_CFLAGS="${MIT_CFLAGS} -Wstrict-prototypes -Wnested-externs"
+ MIT_CFLAGS="${MIT_CFLAGS} -Wredundant-decls"
+
+ AC_MSG_CHECKING([for GCC>=4])
+ AC_COMPILE_IFELSE(
+ [AC_LANG_PROGRAM(
+ [[
+ #if __GNUC__ >= 4
+ ;
+ #else
+ #error "gcc too old"
+ #endif
+ ]],
+ [[]]
+ )],
+ [
+ AC_MSG_RESULT([yes])
+ MIT_CFLAGS="${MIT_CFLAGS} -Wextra -Wno-sign-compare"
+ MIT_CFLAGS="${MIT_CFLAGS} -Wno-unused-parameter"
+ MIT_CFLAGS="${MIT_CFLAGS} -Wold-style-definition"
+ # The generated shim code violates this big-time.
+ # MIT_CFLAGS="${MIT_CFLAGS} -Wmissing-prototypes"
+ MIT_CFLAGS="${MIT_CFLAGS} -Wunreachable-code"
+ MIT_CFLAGS="${MIT_CFLAGS} -Wwrite-strings"
+ ],
+ [AC_MSG_RESULT([no])])
+fi
+
AC_CHECK_HEADER([mhash.h],[],[
AC_MSG_ERROR([Header file <mhash.h> not found.])])
MIT_SCHEME_DEPS="${MIT_SCHEME_DEPS}
${MIT_SCHEME_PKD}: stamp-scheme"
+AC_SUBST([MIT_CFLAGS])
AC_SUBST([MIT_SCHEME_EXE])
AC_SUBST([MIT_SCHEME_LIBDIR])
AC_SUBST([MIT_SCHEME_INCLUDEDIR])
pdfdir = $(libdir)/mit-scheme/doc
AM_CPPFLAGS = -I@MIT_SCHEME_INCLUDEDIR@
-AM_CFLAGS = `pkg-config --cflags x11`
+AM_CFLAGS = @MIT_CFLAGS@
+AM_CFLAGS += `pkg-config --cflags x11`
LIBS = `pkg-config --libs x11`
x11_shim_la_LIBADD = x11base.lo x11color.lo x11graph.lo x11term.lo
AC_PROG_CPP
AC_PROG_INSTALL
+if test ${GCC} = yes; then
+
+ MIT_CFLAGS="-Wall -Wundef -Wpointer-arith -Winline"
+ MIT_CFLAGS="${MIT_CFLAGS} -Wstrict-prototypes -Wnested-externs"
+ MIT_CFLAGS="${MIT_CFLAGS} -Wredundant-decls"
+
+ AC_MSG_CHECKING([for GCC>=4])
+ AC_COMPILE_IFELSE(
+ [AC_LANG_PROGRAM(
+ [[
+ #if __GNUC__ >= 4
+ ;
+ #else
+ #error "gcc too old"
+ #endif
+ ]],
+ [[]]
+ )],
+ [
+ AC_MSG_RESULT([yes])
+ MIT_CFLAGS="${MIT_CFLAGS} -Wextra -Wno-sign-compare"
+ MIT_CFLAGS="${MIT_CFLAGS} -Wno-unused-parameter"
+ MIT_CFLAGS="${MIT_CFLAGS} -Wold-style-definition"
+ # The generated shim code violates this big-time.
+ # MIT_CFLAGS="${MIT_CFLAGS} -Wmissing-prototypes"
+ MIT_CFLAGS="${MIT_CFLAGS} -Wunreachable-code"
+ MIT_CFLAGS="${MIT_CFLAGS} -Wwrite-strings"
+ ],
+ [AC_MSG_RESULT([no])])
+fi
+
AC_CHECK_PROG([PKG_CONFIG], [pkg-config], [yes])
if ! pkg-config --exists x11 2>/dev/null; then
MIT_SCHEME_DEPS="${MIT_SCHEME_DEPS}
${MIT_SCHEME_PKD}: stamp-scheme"
+AC_SUBST([MIT_CFLAGS])
AC_SUBST([MIT_SCHEME_EXE])
AC_SUBST([MIT_SCHEME_LIBDIR])
AC_SUBST([MIT_SCHEME_INCLUDEDIR])