comparison configure.in @ 58820:209a5436a8b4

* configure.in: If $HAVE_GTK_FILE_CHOOSER = yes, check for pthreads and define HAVE_GTK_AND_PTHREAD. * configure: Regenerate.
author Jan Djärv <jan.h.d@swipnet.se>
date Tue, 07 Dec 2004 08:29:07 +0000
parents 66817306c030
children c85be9a6f1d2
comparison
equal deleted inserted replaced
58819:856c9ea2409a 58820:209a5436a8b4
1992 if test "$HAVE_GTK_FILE_SELECTION" = yes \ 1992 if test "$HAVE_GTK_FILE_SELECTION" = yes \
1993 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then 1993 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
1994 AC_DEFINE(HAVE_GTK_FILE_BOTH, 1, 1994 AC_DEFINE(HAVE_GTK_FILE_BOTH, 1,
1995 [Define to 1 if GTK has both file selection and chooser dialog.]) 1995 [Define to 1 if GTK has both file selection and chooser dialog.])
1996 fi 1996 fi
1997
1998 dnl Check if pthreads are available. Emacs only needs this when using
1999 dnl gtk_file_chooser under Gnome.
2000 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
2001 HAVE_GTK_AND_PTHREAD=no
2002 AC_CHECK_HEADERS(pthread.h)
2003 if test "$ac_cv_header_pthread_h"; then
2004 AC_CHECK_LIB(pthread, pthread_self, HAVE_GTK_AND_PTHREAD=yes)
2005 fi
2006 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
2007 GTK_LIBS="$GTK_LIBS -lpthread"
2008 AC_DEFINE(HAVE_GTK_AND_PTHREAD, 1,
2009 [Define to 1 if you have GTK and pthread (-lpthread).])
2010 fi
2011 fi
1997 fi 2012 fi
1998 2013
1999 dnl Do not put whitespace before the #include statements below. 2014 dnl Do not put whitespace before the #include statements below.
2000 dnl Older compilers (eg sunos4 cc) choke on it. 2015 dnl Older compilers (eg sunos4 cc) choke on it.
2001 if test x"${USE_X_TOOLKIT}" = xmaybe; then 2016 if test x"${USE_X_TOOLKIT}" = xmaybe; then