From 357be8c974fc0039cca0c88590358205b83ad77d Mon Sep 17 00:00:00 2001
From: Bruce Momjian <bruce@momjian.us>
Date: Mon, 26 Mar 2007 21:30:56 +0000
Subject: [PATCH] Properly fix PORTNAME in configure.

---
 configure    | 6 +++---
 configure.in | 8 ++++----
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/configure b/configure
index d5cd3f158d..72d66b988a 100755
--- a/configure
+++ b/configure
@@ -21710,7 +21710,7 @@ fi
 
 
 
-if "$PORTNAME" != "win32"
+if test "$PORTNAME" != "win32"
 then
 echo "$as_me:$LINENO: checking for POSIX signal interface" >&5
 echo $ECHO_N "checking for POSIX signal interface... $ECHO_C" >&6
@@ -23252,7 +23252,7 @@ done
 # defined.  Cross compiling throws a warning.
 #
 if test "$enable_thread_safety_force" = yes; then
-if "$PORTNAME" != "win32"
+if test "$PORTNAME" != "win32"
 then
   { echo "$as_me:$LINENO: WARNING:
 *** Skipping thread test program.  --enable-thread-safety-force was used.
@@ -23269,7 +23269,7 @@ else
 echo "$as_me: WARNING: *** skipping thread test on Win32" >&2;}
 fi
 elif test "$enable_thread_safety" = yes; then
-if "$PORTNAME" != "win32"
+if test "$PORTNAME" != "win32"
 then
 echo "$as_me:$LINENO: checking thread safety of required library functions" >&5
 echo $ECHO_N "checking thread safety of required library functions... $ECHO_C" >&6
diff --git a/configure.in b/configure.in
index 5a06e22e5f..194c56a567 100644
--- a/configure.in
+++ b/configure.in
@@ -1,5 +1,5 @@
 dnl Process this file with autoconf to produce a configure script.
-dnl $PostgreSQL: pgsql/configure.in,v 1.505 2007/03/26 19:46:56 momjian Exp $
+dnl $PostgreSQL: pgsql/configure.in,v 1.506 2007/03/26 21:30:56 momjian Exp $
 dnl
 dnl Developers, please strive to achieve this order:
 dnl
@@ -1328,7 +1328,7 @@ AC_CHECK_TYPES([int8, uint8, int64, uint64], [], [],
 AC_CHECK_TYPES(sig_atomic_t, [], [], [#include <signal.h>])
 
 
-if "$PORTNAME" != "win32"
+if test "$PORTNAME" != "win32"
 then
 PGAC_FUNC_POSIX_SIGNALS
 if test "$pgac_cv_func_posix_signals" != yes -a "$enable_thread_safety" = yes; then
@@ -1415,7 +1415,7 @@ AC_CHECK_PROGS(SGMLSPL, sgmlspl)
 # defined.  Cross compiling throws a warning.
 #
 if test "$enable_thread_safety_force" = yes; then
-if "$PORTNAME" != "win32"
+if test "$PORTNAME" != "win32"
 then
   AC_MSG_WARN([
 *** Skipping thread test program.  --enable-thread-safety-force was used.
@@ -1426,7 +1426,7 @@ else
 AC_MSG_WARN([*** skipping thread test on Win32])
 fi
 elif test "$enable_thread_safety" = yes; then
-if "$PORTNAME" != "win32"
+if test "$PORTNAME" != "win32"
 then
 AC_MSG_CHECKING([thread safety of required library functions])