comparison configure.in @ 94119:5b10e5646973

* configure.in (SYNC_INPUT): Use OPTION_DEFAULT_ON and AC_DEFINE rather than change CPPFLAGS. (HAVE_GTK): Rename to USE_GTK. * Makefile.in: Don't use HAVE_GTK and don't -DUSE_GTK since it's now done in config.h.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Wed, 16 Apr 2008 19:53:06 +0000
parents 4bbc5d00d3eb
children dfdc13740582
comparison
equal deleted inserted replaced
94118:75036e17da20 94119:5b10e5646973
97 AC_DEFINE(HESIOD, 1, [Define to support using a Hesiod database to find the POP server.]) 97 AC_DEFINE(HESIOD, 1, [Define to support using a Hesiod database to find the POP server.])
98 fi 98 fi
99 99
100 OPTION_DEFAULT_ON([sound],[don't compile with sound support]) 100 OPTION_DEFAULT_ON([sound],[don't compile with sound support])
101 101
102 OPTION_DEFAULT_ON([sync-input],[Process async input synchronously])
103 if test "$with_sync_input" = yes; then
104 AC_DEFINE(SYNC_INPUT, 1, [Process async input synchronously.])
105 fi
106
102 dnl FIXME currently it is not the last. 107 dnl FIXME currently it is not the last.
103 dnl This should be the last --with option, because --with-x is 108 dnl This should be the last --with option, because --with-x is
104 dnl added later on when we find the path of X, and it's best to 109 dnl added later on when we find the path of X, and it's best to
105 dnl keep them together visually. 110 dnl keep them together visually.
106 AC_ARG_WITH([x-toolkit],[AS_HELP_STRING([--with-x-toolkit=KIT], 111 AC_ARG_WITH([x-toolkit],[AS_HELP_STRING([--with-x-toolkit=KIT],
170 ## Enabled by default. 175 ## Enabled by default.
171 AC_ARG_ENABLE(font-backend, 176 AC_ARG_ENABLE(font-backend,
172 [AS_HELP_STRING([--disable-font-backend],[don't compile font-backend support])], 177 [AS_HELP_STRING([--disable-font-backend],[don't compile font-backend support])],
173 USE_FONT_BACKEND=$enableval, 178 USE_FONT_BACKEND=$enableval,
174 USE_FONT_BACKEND=yes) 179 USE_FONT_BACKEND=yes)
175
176 ## Enabled by default.
177 AC_ARG_ENABLE(sync-input,
178 [AS_HELP_STRING([--disable-sync-input], [don't compile code with sync-input])],
179 USE_SYNC_INPUT=$enableval,
180 USE_SYNC_INPUT=yes)
181 180
182 AC_ARG_ENABLE(asserts, 181 AC_ARG_ENABLE(asserts,
183 [AS_HELP_STRING([--enable-asserts], [compile code with asserts enabled])], 182 [AS_HELP_STRING([--enable-asserts], [compile code with asserts enabled])],
184 USE_XASSERTS=$enableval, 183 USE_XASSERTS=$enableval,
185 USE_XASSERTS=no) 184 USE_XASSERTS=no)
1668 if test "$USE_X_TOOLKIT" != "maybe"; then 1667 if test "$USE_X_TOOLKIT" != "maybe"; then
1669 AC_MSG_ERROR([Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?]); 1668 AC_MSG_ERROR([Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?]);
1670 fi 1669 fi
1671 else 1670 else
1672 HAVE_GTK=yes 1671 HAVE_GTK=yes
1673 AC_DEFINE(HAVE_GTK, 1, [Define to 1 if using GTK.]) 1672 AC_DEFINE(USE_GTK, 1, [Define to 1 if using GTK.])
1674 USE_X_TOOLKIT=none 1673 USE_X_TOOLKIT=none
1675 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then 1674 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
1676 : 1675 :
1677 else 1676 else
1678 AC_MSG_WARN([[Your version of Gtk+ will have problems with 1677 AC_MSG_WARN([[Your version of Gtk+ will have problems with
3006 if test $USE_XASSERTS = yes; then 3005 if test $USE_XASSERTS = yes; then
3007 echo " Compiling with asserts turned on." 3006 echo " Compiling with asserts turned on."
3008 CPPFLAGS="$CPPFLAGS -DXASSERTS=1" 3007 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
3009 fi 3008 fi
3010 3009
3011 if test $USE_SYNC_INPUT = yes; then
3012 echo " Compiling with sync input."
3013 CPPFLAGS="$CPPFLAGS -DSYNC_INPUT=1"
3014 fi
3015
3016 echo 3010 echo
3017 3011
3018 if test "$USE_X_TOOLKIT" = GTK; then 3012 if test "$USE_X_TOOLKIT" = GTK; then
3019 case "$canonical" in 3013 case "$canonical" in
3020 *cygwin*) 3014 *cygwin*)