Fix the stack direction check again
authorMatthias Clasen <mclasen@redhat.com>
Sun, 24 Nov 2013 02:09:32 +0000 (21:09 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 24 Nov 2013 02:09:32 +0000 (21:09 -0500)
Turns out I got it wrong.

configure.ac

index 3811a26..428be67 100644 (file)
@@ -597,7 +597,7 @@ AC_CACHE_CHECK([for growing stack pointer],glib_cv_stack_grows,[
         AC_TRY_RUN([
        volatile int *a = 0, *b = 0;
        void f (int i) { volatile int x = 5; if (i == 0) b = &x; else f (i - 1); }
-       int main () { volatile int y = 7; a = &y; f (100); return b > a; }
+       int main () { volatile int y = 7; a = &y; f (100); return b > a ? 0 : 1; }
                ],
        glib_cv_stack_grows=yes
         ,