]> granicus.if.org Git - postgresql/commitdiff
Send thread test output to file descriptor 5 like configure does rather
authorBruce Momjian <bruce@momjian.us>
Sat, 11 Sep 2004 02:12:17 +0000 (02:12 +0000)
committerBruce Momjian <bruce@momjian.us>
Sat, 11 Sep 2004 02:12:17 +0000 (02:12 +0000)
than /dev/null, which Win32 doesn't have.

config/acx_pthread.m4
configure

index a3d5faf39270c71b41707a6ddaa2bcb76648e262..5f9071056e59eb807eeba543fc4a824698b19f7d 100644 (file)
@@ -140,7 +140,7 @@ main ()
 }
 _ACEOF
             rm -f conftest.$ac_objext conftest$ac_exeext
-            if test "`(eval $ac_link 2>&1 >/dev/null)`" = ""; then
+            if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
                 # we continue with more flags because Linux needs -lpthread
                 # for libpq builds on PostgreSQL.  The test above only
                 # tests for building binaries, not shared libraries.
index 73591c6b3c7fa56bc2ee6a39d216a174a6d825e4..50143de69134b6561947f8c559149f60eca36b6f 100755 (executable)
--- a/configure
+++ b/configure
@@ -13336,7 +13336,7 @@ main ()
 }
 _ACEOF
             rm -f conftest.$ac_objext conftest$ac_exeext
-            if test "`(eval $ac_link 2>&1 >/dev/null)`" = ""; then
+            if test "`(eval $ac_link 2>&1 1>&5)`" = ""; then
                 # we continue with more flags because Linux needs -lpthread
                 # for libpq builds on PostgreSQL.  The test above only
                 # tests for building binaries, not shared libraries.