comparison configure.in @ 57864:eee018b36c35

* configure.in (HAVE_GTK_FILE_CHOOSER, $HAVE_GTK_FILE_SELECTION): New tests for new and old GTK file dialogs. * configure: Rebuild
author Jan Djärv <jan.h.d@swipnet.se>
date Tue, 02 Nov 2004 07:33:51 +0000
parents a17f324d7b7f
children 2cc8d9bbb72b
comparison
equal deleted inserted replaced
57863:4dd40b6f4116 57864:eee018b36c35
1975 AC_CHECK_FUNCS(gdk_display_open, HAVE_GTK_MULTIDISPLAY=yes) 1975 AC_CHECK_FUNCS(gdk_display_open, HAVE_GTK_MULTIDISPLAY=yes)
1976 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then 1976 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
1977 AC_DEFINE(HAVE_GTK_MULTIDISPLAY, 1, 1977 AC_DEFINE(HAVE_GTK_MULTIDISPLAY, 1,
1978 [Define to 1 if GTK can handle more than one display.]) 1978 [Define to 1 if GTK can handle more than one display.])
1979 fi 1979 fi
1980 dnl Check if we have the old file selection dialog.
1981 dnl If gdk_display_open exists, assume all others are there also.
1982 HAVE_GTK_FILE_SELECTION=no
1983 AC_CHECK_FUNCS(gtk_file_selection_new, HAVE_GTK_FILE_SELECTION=yes)
1984
1985 dnl Check if we have the new file chooser dialog
1986 dnl If gdk_display_open exists, assume all others are there also.
1987 HAVE_GTK_FILE_CHOOSER=no
1988 AC_CHECK_FUNCS(gtk_file_chooser_dialog_new, HAVE_GTK_FILE_CHOOSER=yes)
1989
1990 if test "$HAVE_GTK_FILE_SELECTION" = yes \
1991 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
1992 AC_DEFINE(HAVE_GTK_FILE_BOTH, 1,
1993 [Define to 1 if GTK has both file selection and chooser dialog.])
1994 fi
1980 fi 1995 fi
1981 1996
1982 dnl Do not put whitespace before the #include statements below. 1997 dnl Do not put whitespace before the #include statements below.
1983 dnl Older compilers (eg sunos4 cc) choke on it. 1998 dnl Older compilers (eg sunos4 cc) choke on it.
1984 if test x"${USE_X_TOOLKIT}" = xmaybe; then 1999 if test x"${USE_X_TOOLKIT}" = xmaybe; then