AM_CPPFLAGS = -I@MIT_SCHEME_INCLUDEDIR@
AM_CFLAGS = `pkg-config --cflags pangocairo`
+AM_CFLAGS += @MIT_CFLAGS@
LIBS = `pkg-config --libs pangocairo`
cairo_shim_la_LDFLAGS = -module -avoid-version -shared
AC_MSG_ERROR([Cairo not found.])
fi
+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
+
MIT_SCHEME_PROJECT=mit-scheme-pucked
: ${MIT_SCHEME_EXE=mit-scheme}
MIT_SCHEME_LIBDIR=`( echo "(display (->namestring" ;\
AC_SUBST([MIT_SCHEME_PROJECT])
AC_SUBST([MIT_SCHEME_EXE])
+AC_SUBST([MIT_CFLAGS])
AC_SUBST([MIT_SCHEME_LIBDIR])
AC_SUBST([MIT_SCHEME_INCLUDEDIR])
AC_SUBST([MIT_SCHEME_OS_SUFFIX])
AM_CPPFLAGS = -I@MIT_SCHEME_INCLUDEDIR@
AM_CFLAGS = `pkg-config --cflags gl glu gtk+-3.0`
+AM_CFLAGS += @MIT_CFLAGS@
LIBS = `pkg-config --libs gl glu gtk+-3.0`
gl_shim_la_LIBADD = gl-adapter.lo
AC_MSG_ERROR([libGL not found.])
fi
+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
+
MIT_SCHEME_PROJECT=mit-scheme-pucked
: ${MIT_SCHEME_EXE=mit-scheme}
MIT_SCHEME_LIBDIR=`( echo "(display (->namestring" ;\
AC_SUBST([MIT_SCHEME_PROJECT])
AC_SUBST([MIT_SCHEME_EXE])
+AC_SUBST([MIT_CFLAGS])
AC_SUBST([MIT_SCHEME_LIBDIR])
AC_SUBST([MIT_SCHEME_INCLUDEDIR])
AC_SUBST([MIT_SCHEME_OS_SUFFIX])
AM_CPPFLAGS = -I@MIT_SCHEME_INCLUDEDIR@
AM_CFLAGS = `pkg-config --cflags gio-2.0`
+AM_CFLAGS += @MIT_CFLAGS@
LIBS = `pkg-config --libs glib-2.0 gthread-2.0 gio-2.0`
glib_shim_la_LIBADD = glibio.lo
AC_MSG_ERROR([GLib 2.0 not found.])
fi
+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
+
MIT_SCHEME_PROJECT=mit-scheme-pucked
: ${MIT_SCHEME_EXE=mit-scheme}
MIT_SCHEME_LIBDIR=`( echo "(display (->namestring" ;\
AC_SUBST([MIT_SCHEME_PROJECT])
AC_SUBST([MIT_SCHEME_EXE])
+AC_SUBST([MIT_CFLAGS])
AC_SUBST([MIT_SCHEME_LIBDIR])
AC_SUBST([MIT_SCHEME_INCLUDEDIR])
AC_SUBST([MIT_SCHEME_OS_SUFFIX])
AM_CPPFLAGS = -I@MIT_SCHEME_INCLUDEDIR@
AM_CFLAGS = `pkg-config --cflags gtk+-3.0`
+AM_CFLAGS += @MIT_CFLAGS@
LIBS = `pkg-config --libs gtk+-3.0 gthread-2.0`
gtk_shim_la_LIBADD = gtkio.lo scmwidget.lo gtkpanedview.lo gtkscrolledview.lo
ln -sf gtkscrolledview-$GTK_VERSION.c gtkscrolledview.c
ln -sf gtkpanedview-$GTK_VERSION.c gtkpanedview.c
+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
+
MIT_SCHEME_PROJECT=mit-scheme-pucked
: ${MIT_SCHEME_EXE=mit-scheme}
MIT_SCHEME_LIBDIR=`( echo "(display (->namestring" ;\
AC_SUBST([MIT_SCHEME_PROJECT])
AC_SUBST([MIT_SCHEME_EXE])
+AC_SUBST([MIT_CFLAGS])
AC_SUBST([MIT_SCHEME_LIBDIR])
AC_SUBST([MIT_SCHEME_INCLUDEDIR])
AC_SUBST([MIT_SCHEME_OS_SUFFIX])
AM_CPPFLAGS = -I@MIT_SCHEME_INCLUDEDIR@
AM_CFLAGS = `pkg-config --cflags pango`
+AM_CFLAGS += @MIT_CFLAGS@
LIBS = `pkg-config --libs pango`
pango_shim_la_LDFLAGS = -module -avoid-version -shared
AC_MSG_ERROR([Pango not found.])
fi
+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
+
MIT_SCHEME_PROJECT=mit-scheme-pucked
: ${MIT_SCHEME_EXE=mit-scheme}
MIT_SCHEME_LIBDIR=`( echo "(display (->namestring" ;\
AC_SUBST([MIT_SCHEME_PROJECT])
AC_SUBST([MIT_SCHEME_EXE])
+AC_SUBST([MIT_CFLAGS])
AC_SUBST([MIT_SCHEME_LIBDIR])
AC_SUBST([MIT_SCHEME_INCLUDEDIR])
AC_SUBST([MIT_SCHEME_OS_SUFFIX])
#AM_MAKEINFOHTMLFLAGS = --no-split
AM_CPPFLAGS = -I@MIT_SCHEME_INCLUDEDIR@
-AM_CFLAGS = @MIT_CFLAGS@
-AM_CFLAGS += `pkg-config --cflags x11`
+AM_CFLAGS = `pkg-config --cflags x11`
+AM_CFLAGS += @MIT_CFLAGS@
LIBS = `pkg-config --libs x11`
x11_shim_la_LIBADD = x11base.lo x11color.lo x11graph.lo x11term.lo