Clean up configure messaging and avoid a compiler warning by
checking for HAVE_PGPORT after config.h is included
(cherry picked from commit
be933801d527caa7c88df622b6ec351668189281)
Conflicts:
RELEASE
src/slonik/slonik.c
#+OPTIONS: ^:{}
* Slony-I Release Notes
+- No bug :: add --with-pgport option to configure and when set to yes let slonik use these functions to determine
+ the PGSHARE directory at runtime. This defaults to no
+
- Bug #240 :: Improve notes on VACUUM
- Bug #278 :: assorted spelling fixes
AC_MSG_CHECKING(for pgport)
AC_DEFINE(HAVE_PGPORT)
LIBS="$LIBS -lpgport"
- AC_TRY_LINK_FUNC(find_my_exec,HAVE_PGPORT=1, AC_MSG_ERROR("pgport was not found. build without --with-pgport=yes to disable"))
+ AC_TRY_LINK_FUNC(find_my_exec,[HAVE_PGPORT=1
+ AC_MSG_RESULT(yes)],
+ AC_MSG_ERROR("pgport was not found. build without --with-pgport=yes to disable"))
fi
AC_LANG_RESTORE
#include "libpq-fe.h"
#include "slonik.h"
-#ifdef HAVE_PGPORT
-#undef USE_REPL_SNPRINTF
-#include "port.h"
-#endif
#ifdef MSVC
#include "config_msvc.h"
#include "../parsestatements/scanner.h"
extern int STMTS[MAXSTATEMENTS];
+
+#ifdef HAVE_PGPORT
+#undef USE_REPL_SNPRINTF
+#include "port.h"
+#endif
+
#define MAXPGPATH 256
/*