]> git.eshelyaron.com Git - emacs.git/commitdiff
Auto-commit of generated files.
authorGlenn Morris <rgm@gnu.org>
Tue, 4 Sep 2012 10:17:39 +0000 (06:17 -0400)
committerGlenn Morris <rgm@gnu.org>
Tue, 4 Sep 2012 10:17:39 +0000 (06:17 -0400)
autogen/config.in
autogen/configure

index c39453938bed62e7a6820023a616f9b6ef738916..59bc8dca231ddd46e6fd3d56e598346589605019 100644 (file)
@@ -1542,10 +1542,12 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
    declarations. Define as empty for no equivalent. */
 #undef __restrict_arr
 
-/* Some platforms redefine this. */
+/* Define to longjmp if _setjmp and _longjmp do not work. Because longjmp may
+   alter signal masks, callers of _longjmp should not assume that it leaves
+   signal masks alone. */
 #undef _longjmp
 
-/* Some platforms redefine this. */
+/* Define to setjmp if _setjmp and _longjmp do not work. See _longjmp. */
 #undef _setjmp
 
 /* Some platforms that do not use configure define this to include extra
index 122398186951ddec87fd9bf12e6264a3b8064072..885b6f4b471b4a3c5ac1dcc51195305ab8a58b51 100755 (executable)
@@ -7218,6 +7218,7 @@ fi
   nw="$nw -Wswitch-default"         # Too many warnings for now
   nw="$nw -Wfloat-equal"            # warns about high-quality code
   nw="$nw -Winline"                 # OK to ignore 'inline'
+  nw="$nw -Wjump-misses-init"       # We sometimes safely jump over init.
   nw="$nw -Wsync-nand"              # irrelevant here, and provokes ObjC warning
   nw="$nw -Wunsafe-loop-optimizations" # OK to suppress unsafe optimizations
 
@@ -15480,15 +15481,46 @@ else
       ;;
   esac
 fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _setjmp" >&5
+$as_echo_n "checking for _setjmp... " >&6; }
+if test "${emacs_cv_func__setjmp+set}" = set; then :
+  $as_echo_n "(cached) " >&6
+else
+  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+#include <setjmp.h>
 
-case $opsys in
-  sol2* | unixware )
+int
+main ()
+{
+jmp_buf j;
+        if (! _setjmp (j))
+          _longjmp (j, 1);
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+  emacs_cv_func__setjmp=yes
+else
+  emacs_cv_func__setjmp=no
+fi
+rm -f core conftest.err conftest.$ac_objext \
+    conftest$ac_exeext conftest.$ac_ext
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_func__setjmp" >&5
+$as_echo "$emacs_cv_func__setjmp" >&6; }
+if test $emacs_cv_func__setjmp = no; then
 
 $as_echo "#define _setjmp setjmp" >>confdefs.h
 
 
 $as_echo "#define _longjmp longjmp" >>confdefs.h
 
+fi
+
+case $opsys in
+  sol2* | unixware )
 
 $as_echo "#define TIOCSIGSEND TIOCSIGNAL" >>confdefs.h