diff options
author | Jan Djärv <jan.h.d@swipnet.se> | 2004-12-07 08:29:07 +0000 |
---|---|---|
committer | Jan Djärv <jan.h.d@swipnet.se> | 2004-12-07 08:29:07 +0000 |
commit | b8bdffbe5849b8975d3c3701565f6bd8686d2fbf (patch) | |
tree | dbd0ab97a7d1304e9e3033e6539a7ce73ba14007 /configure.in | |
parent | 9a38524cc2b64b9919316094bd9770ce1afaf7f6 (diff) | |
download | emacs-b8bdffbe5849b8975d3c3701565f6bd8686d2fbf.tar.gz |
* configure.in: If $HAVE_GTK_FILE_CHOOSER = yes, check for
pthreads and define HAVE_GTK_AND_PTHREAD.
* configure: Regenerate.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 5a02beda097..34f268c7160 100644 --- a/configure.in +++ b/configure.in @@ -1994,6 +1994,21 @@ if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then AC_DEFINE(HAVE_GTK_FILE_BOTH, 1, [Define to 1 if GTK has both file selection and chooser dialog.]) fi + + dnl Check if pthreads are available. Emacs only needs this when using + dnl gtk_file_chooser under Gnome. + if test "$HAVE_GTK_FILE_CHOOSER" = yes; then + HAVE_GTK_AND_PTHREAD=no + AC_CHECK_HEADERS(pthread.h) + if test "$ac_cv_header_pthread_h"; then + AC_CHECK_LIB(pthread, pthread_self, HAVE_GTK_AND_PTHREAD=yes) + fi + if test "$HAVE_GTK_AND_PTHREAD" = yes; then + GTK_LIBS="$GTK_LIBS -lpthread" + AC_DEFINE(HAVE_GTK_AND_PTHREAD, 1, + [Define to 1 if you have GTK and pthread (-lpthread).]) + fi + fi fi dnl Do not put whitespace before the #include statements below. |