aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Djärv2004-12-07 08:29:07 +0000
committerJan Djärv2004-12-07 08:29:07 +0000
commitb8bdffbe5849b8975d3c3701565f6bd8686d2fbf (patch)
treedbd0ab97a7d1304e9e3033e6539a7ce73ba14007
parent9a38524cc2b64b9919316094bd9770ce1afaf7f6 (diff)
downloademacs-b8bdffbe5849b8975d3c3701565f6bd8686d2fbf.tar.gz
emacs-b8bdffbe5849b8975d3c3701565f6bd8686d2fbf.zip
* configure.in: If $HAVE_GTK_FILE_CHOOSER = yes, check for
pthreads and define HAVE_GTK_AND_PTHREAD. * configure: Regenerate.
-rw-r--r--ChangeLog6
-rwxr-xr-xconfigure232
-rw-r--r--configure.in15
3 files changed, 253 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 96f12535bdb..192f56b1de0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
12004-12-07 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
2
3 * configure.in: If $HAVE_GTK_FILE_CHOOSER = yes, check for
4 pthreads and define HAVE_GTK_AND_PTHREAD.
5 * configure: Regenerate.
6
12004-12-05 Richard M. Stallman <rms@gnu.org> 72004-12-05 Richard M. Stallman <rms@gnu.org>
2 8
3 * Makefile.in (info): Ignore errors building info files. 9 * Makefile.in (info): Ignore errors building info files.
diff --git a/configure b/configure
index d4c7ae27f4c..4ae0be0ae95 100755
--- a/configure
+++ b/configure
@@ -10127,6 +10127,238 @@ cat >>confdefs.h <<\_ACEOF
10127_ACEOF 10127_ACEOF
10128 10128
10129 fi 10129 fi
10130
10131 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
10132 HAVE_GTK_AND_PTHREAD=no
10133
10134for ac_header in pthread.h
10135do
10136as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10137if eval "test \"\${$as_ac_Header+set}\" = set"; then
10138 echo "$as_me:$LINENO: checking for $ac_header" >&5
10139echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10140if eval "test \"\${$as_ac_Header+set}\" = set"; then
10141 echo $ECHO_N "(cached) $ECHO_C" >&6
10142fi
10143echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10144echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10145else
10146 # Is the header compilable?
10147echo "$as_me:$LINENO: checking $ac_header usability" >&5
10148echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10149cat >conftest.$ac_ext <<_ACEOF
10150/* confdefs.h. */
10151_ACEOF
10152cat confdefs.h >>conftest.$ac_ext
10153cat >>conftest.$ac_ext <<_ACEOF
10154/* end confdefs.h. */
10155$ac_includes_default
10156#include <$ac_header>
10157_ACEOF
10158rm -f conftest.$ac_objext
10159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10160 (eval $ac_compile) 2>conftest.er1
10161 ac_status=$?
10162 grep -v '^ *+' conftest.er1 >conftest.err
10163 rm -f conftest.er1
10164 cat conftest.err >&5
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); } &&
10167 { ac_try='test -z "$ac_c_werror_flag"
10168 || test ! -s conftest.err'
10169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10170 (eval $ac_try) 2>&5
10171 ac_status=$?
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); }; } &&
10174 { ac_try='test -s conftest.$ac_objext'
10175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10176 (eval $ac_try) 2>&5
10177 ac_status=$?
10178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); }; }; then
10180 ac_header_compiler=yes
10181else
10182 echo "$as_me: failed program was:" >&5
10183sed 's/^/| /' conftest.$ac_ext >&5
10184
10185ac_header_compiler=no
10186fi
10187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10188echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10189echo "${ECHO_T}$ac_header_compiler" >&6
10190
10191# Is the header present?
10192echo "$as_me:$LINENO: checking $ac_header presence" >&5
10193echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10194cat >conftest.$ac_ext <<_ACEOF
10195/* confdefs.h. */
10196_ACEOF
10197cat confdefs.h >>conftest.$ac_ext
10198cat >>conftest.$ac_ext <<_ACEOF
10199/* end confdefs.h. */
10200#include <$ac_header>
10201_ACEOF
10202if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10203 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10204 ac_status=$?
10205 grep -v '^ *+' conftest.er1 >conftest.err
10206 rm -f conftest.er1
10207 cat conftest.err >&5
10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); } >/dev/null; then
10210 if test -s conftest.err; then
10211 ac_cpp_err=$ac_c_preproc_warn_flag
10212 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10213 else
10214 ac_cpp_err=
10215 fi
10216else
10217 ac_cpp_err=yes
10218fi
10219if test -z "$ac_cpp_err"; then
10220 ac_header_preproc=yes
10221else
10222 echo "$as_me: failed program was:" >&5
10223sed 's/^/| /' conftest.$ac_ext >&5
10224
10225 ac_header_preproc=no
10226fi
10227rm -f conftest.err conftest.$ac_ext
10228echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10229echo "${ECHO_T}$ac_header_preproc" >&6
10230
10231# So? What about this header?
10232case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10233 yes:no: )
10234 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10235echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10237echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10238 ac_header_preproc=yes
10239 ;;
10240 no:yes:* )
10241 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10242echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10243 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10244echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10245 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10246echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10247 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10248echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10250echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10251 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10252echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10253 (
10254 cat <<\_ASBOX
10255## ------------------------------------------ ##
10256## Report this to the AC_PACKAGE_NAME lists. ##
10257## ------------------------------------------ ##
10258_ASBOX
10259 ) |
10260 sed "s/^/$as_me: WARNING: /" >&2
10261 ;;
10262esac
10263echo "$as_me:$LINENO: checking for $ac_header" >&5
10264echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10265if eval "test \"\${$as_ac_Header+set}\" = set"; then
10266 echo $ECHO_N "(cached) $ECHO_C" >&6
10267else
10268 eval "$as_ac_Header=\$ac_header_preproc"
10269fi
10270echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10271echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10272
10273fi
10274if test `eval echo '${'$as_ac_Header'}'` = yes; then
10275 cat >>confdefs.h <<_ACEOF
10276#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10277_ACEOF
10278
10279fi
10280
10281done
10282
10283 if test "$ac_cv_header_pthread_h"; then
10284 echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
10285echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6
10286if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
10287 echo $ECHO_N "(cached) $ECHO_C" >&6
10288else
10289 ac_check_lib_save_LIBS=$LIBS
10290LIBS="-lpthread $LIBS"
10291cat >conftest.$ac_ext <<_ACEOF
10292/* confdefs.h. */
10293_ACEOF
10294cat confdefs.h >>conftest.$ac_ext
10295cat >>conftest.$ac_ext <<_ACEOF
10296/* end confdefs.h. */
10297
10298/* Override any gcc2 internal prototype to avoid an error. */
10299#ifdef __cplusplus
10300extern "C"
10301#endif
10302/* We use char because int might match the return type of a gcc2
10303 builtin and then its argument prototype would still apply. */
10304char pthread_self ();
10305int
10306main ()
10307{
10308pthread_self ();
10309 ;
10310 return 0;
10311}
10312_ACEOF
10313rm -f conftest.$ac_objext conftest$ac_exeext
10314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10315 (eval $ac_link) 2>conftest.er1
10316 ac_status=$?
10317 grep -v '^ *+' conftest.er1 >conftest.err
10318 rm -f conftest.er1
10319 cat conftest.err >&5
10320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 (exit $ac_status); } &&
10322 { ac_try='test -z "$ac_c_werror_flag"
10323 || test ! -s conftest.err'
10324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10325 (eval $ac_try) 2>&5
10326 ac_status=$?
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); }; } &&
10329 { ac_try='test -s conftest$ac_exeext'
10330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10331 (eval $ac_try) 2>&5
10332 ac_status=$?
10333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334 (exit $ac_status); }; }; then
10335 ac_cv_lib_pthread_pthread_self=yes
10336else
10337 echo "$as_me: failed program was:" >&5
10338sed 's/^/| /' conftest.$ac_ext >&5
10339
10340ac_cv_lib_pthread_pthread_self=no
10341fi
10342rm -f conftest.err conftest.$ac_objext \
10343 conftest$ac_exeext conftest.$ac_ext
10344LIBS=$ac_check_lib_save_LIBS
10345fi
10346echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
10347echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6
10348if test $ac_cv_lib_pthread_pthread_self = yes; then
10349 HAVE_GTK_AND_PTHREAD=yes
10350fi
10351
10352 fi
10353 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
10354 GTK_LIBS="$GTK_LIBS -lpthread"
10355
10356cat >>confdefs.h <<\_ACEOF
10357#define HAVE_GTK_AND_PTHREAD 1
10358_ACEOF
10359
10360 fi
10361 fi
10130fi 10362fi
10131 10363
10132if test x"${USE_X_TOOLKIT}" = xmaybe; then 10364if test x"${USE_X_TOOLKIT}" = xmaybe; then
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
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
1997fi 2012fi
1998 2013
1999dnl Do not put whitespace before the #include statements below. 2014dnl Do not put whitespace before the #include statements below.