|
|
| version 1.335, 2004/04/26 13:14:48 | version 1.336, 2004/04/26 19:08:57 |
|---|---|
| Line 1 | Line 1 |
| dnl Process this file with autoconf to produce a configure script. | dnl Process this file with autoconf to produce a configure script. |
| dnl $PostgreSQL: pgsql-server/configure.in,v 1.334 2004/04/26 04:04:42 momjian Exp $ | dnl $PostgreSQL: pgsql-server/configure.in,v 1.335 2004/04/26 13:14:48 momjian Exp $ |
| dnl | dnl |
| dnl Developers, please strive to achieve this order: | dnl Developers, please strive to achieve this order: |
| dnl | dnl |
| Line 1235 if test cross_compiling != yes; then | Line 1235 if test cross_compiling != yes; then |
| # compile (to simulate a configure failure). | # compile (to simulate a configure failure). |
| # | # |
| AC_MSG_CHECKING([thread safety of required library functions]) | AC_MSG_CHECKING([thread safety of required library functions]) |
| if ! $MAKE -C $srcdir/src/tools/thread clean >&5 | if ! $MAKE -C src/tools/thread clean >&5 |
| then rm -f $srcdir/src/Makefile.global | then rm -f src/Makefile.global |
| AC_MSG_ERROR([Can not clean thread test directory.]) | AC_MSG_ERROR([Can not clean thread test directory.]) |
| fi | fi |
| if ! $MAKE -C $srcdir/src/tools/thread >&5 | if ! $MAKE -C src/tools/thread >&5 |
| then rm -f $srcdir/src/Makefile.global | then rm -f src/Makefile.global |
| AC_MSG_ERROR([Can not build thread test proram.]) | AC_MSG_ERROR([Can not build thread test proram.]) |
| fi | fi |
| if ! $srcdir/src/tools/thread/thread_test >&5 | if ! src/tools/thread/thread_test >&5 |
| then rm -f $srcdir/src/Makefile.global | then rm -f src/Makefile.global |
| echo "no" | echo "no" |
| echo | echo |
| $srcdir/src/tools/thread/thread_test | src/tools/thread/thread_test |
| echo | echo |
| AC_MSG_ERROR([Thread test program failed. Your platform is not thread-safe.]) | AC_MSG_ERROR([Thread test program failed. Your platform is not thread-safe.]) |
| fi | fi |
| if ! $MAKE -C $srcdir/src/tools/thread clean >&5 | if ! $MAKE -C src/tools/thread clean >&5 |
| then rm -f $srcdir/src/Makefile.global | then rm -f src/Makefile.global |
| AC_MSG_ERROR([Can not clean thread test directory.]) | AC_MSG_ERROR([Can not clean thread test directory.]) |
| fi | fi |
| echo "yes" | echo "yes" |
| else | else |
| AC_MSG_WARN([ | AC_MSG_WARN([ |
| *** Skipping thread test program because of cross-compile build. | *** Skipping thread test program because of cross-compile build. |
| *** Run the program in $srcdir/src/tools/thread on the target matchine. | *** Run the program in src/tools/thread on the target matchine. |
| ]) | ]) |
| fi | fi |
| fi | fi |