diff options
author | Owen Taylor <otaylor@src.gnome.org> | 1997-12-18 02:17:14 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 1997-12-18 02:17:14 +0000 |
commit | d5d01a5af9aaa11762d7ba86760796df00af3786 (patch) | |
tree | c12bb7c7980b3177456cab8987755a976297b205 /configure.in | |
parent | 65e63db01e93820093c2eb5169d5f8c0be3fe4e5 (diff) | |
download | gtk+-d5d01a5af9aaa11762d7ba86760796df00af3786.tar.gz |
It's all in the changelog. Well, almost all.
-owt
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 53 |
1 files changed, 22 insertions, 31 deletions
diff --git a/configure.in b/configure.in index eda0652b66..4858d9078a 100644 --- a/configure.in +++ b/configure.in @@ -1,6 +1,9 @@ # Process this file with autoconf to produce a configure script. AC_INIT(gdk/gdktypes.h) +# Save this value here, since automake will set cflags later +cflags_set=${CFLAGS+set} + GTK_MAJOR_VERSION=0 GTK_MINOR_VERSION=99 GTK_MICRO_VERSION=0 @@ -13,6 +16,9 @@ PACKAGE=gtk+ # Configure glib AC_CONFIG_SUBDIRS(glib) +# Save this value here, since automake will set cflags later +cflags_set=${CFLAGS+set} + dnl Initialize automake stuff AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define) @@ -42,7 +48,7 @@ AC_ARG_WITH(locale, [ --with-locale=LOCALE locale name you want to use ]) AC_ARG_WITH(xinput, [ --with-xinput[=no/gxi/xfree] support XInput ]) if test -n "$DEBUGFLAG"; then - test "${CFLAGS+set}" = set || CFLAGS="$DEBUGFLAG" + test "$cflags_set" = set || CFLAGS="$DEBUGFLAG" else CFLAGS="$CFLAGS -DNDEBUG" fi @@ -104,7 +110,7 @@ x_ldflags="$X_LDFLAGS $X_LIBS" # set up things for XInput -if test "x$with_xinput" = "xgxi -o x$with_xinput" = "xyes"; then +if test "x$with_xinput" = "xgxi" -o "x$with_xinput" = "xyes"; then AC_DEFINE(XINPUT_GXI) xinput_progs=gxid x_libs="-lXi $x_libs" @@ -199,38 +205,23 @@ gtk_cv_display_resource_base="private3")]) AC_MSG_RESULT($gtk_cv_display_resource_base) AC_DEFINE_UNQUOTED(RESOURCE_BASE, gdk_display->$gtk_cv_display_resource_base) -# Look for wide string functions in wchar.h or wcstr.h - -AC_MSG_CHECKING(for <wchar.h> or <wcstr.h>) -AC_TRY_CPP([#include <wchar.h>], gtk_ok=yes, gtk_ok=no) -if test $gtk_ok = no; then - AC_TRY_CPP([#include <wcstr.h>], gtk_ok=yes, gtk_ok=no) - if test $gtk_ok = no; then - need_x_locale=yes - fi -fi - -AC_MSG_RESULT($gtk_ok) - # Check if X_LOCALE definition is necessary AC_MSG_CHECKING(need -DX_LOCALE) -if test x$need_x_locale = xyes; then - AC_MSG_RESULT([yes (C library doesn't include wide string functions)]) -else - AC_TRY_RUN([ - #include <stdio.h> - #include <locale.h> - - int - main () - { - return setlocale (LC_ALL, "${with_locale}") == NULL; - }], - need_x_locale=no, - need_x_locale=yes) - AC_MSG_RESULT($need_x_locale) -fi + +AC_TRY_RUN([ +#include <stdio.h> +#include <locale.h> + +int +main () +{ + return setlocale (LC_ALL, "${with_locale}") == NULL; +}], +need_x_locale=no, +need_x_locale=yes) +AC_MSG_RESULT($need_x_locale) + if test $need_x_locale = yes; then CFLAGS="$CFLAGS -DX_LOCALE" fi |