summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-db/libpq/files/libpq-7.3.20-autoconf.patch')
-rw-r--r--dev-db/libpq/files/libpq-7.3.20-autoconf.patch51
1 files changed, 51 insertions, 0 deletions
diff --git a/dev-db/libpq/files/libpq-7.3.20-autoconf.patch b/dev-db/libpq/files/libpq-7.3.20-autoconf.patch
new file mode 100644
index 0000000..df951f1
--- /dev/null
+++ b/dev-db/libpq/files/libpq-7.3.20-autoconf.patch
@@ -0,0 +1,51 @@
+diff --git a/config/programs.m4 b/config/programs.m4
+index 35d9e2b..c681983 100644
+--- a/config/programs.m4
++++ b/config/programs.m4
+@@ -153,13 +153,13 @@ AC_DEFUN([PGAC_CHECK_GETTEXT],
+ dnl FIXME: We should probably check for version >=0.10.36.
+ AC_CHECK_PROGS(XGETTEXT, xgettext)
+
+- # Note: share/locale is always the default, independent of $datadir
+- localedir='${prefix}/share/locale'
+- if test x"$prefix" = x"NONE"; then
+- exp_localedir="$ac_default_prefix/share/locale"
+- else
+- exp_localedir="$prefix/share/locale"
+- fi
++ # Note: share/locale *WAS* always the default, independent of $datadir
++ AC_ARG_WITH([locale-dir],
++ AC_HELP_STRING([--with-locale-dir],[Set path to locale files]),
++ [ localedir="${withval}" ],
++ [ localedir='${prefix}/share/locale' ]
++ )
++ exp_localedir="${localedir}"
+
+ AC_SUBST(localedir)
+ AC_DEFINE_UNQUOTED(LOCALEDIR, ["$exp_localedir"],
+diff --git a/configure.in b/configure.in
+index 83e8d46..22ea677 100644
+--- a/configure.in
++++ b/configure.in
+@@ -19,12 +19,7 @@ m4_pattern_forbid(^PGAC_)dnl to catch undefined macros
+ dnl
+ dnl The GNU folks apparently haven't heard that some people don't use
+ dnl Texinfo. Use this sorcery to use "docdir" instead of "infodir".
+-m4_define([info], [doc])
+-m4_define([infodir], [docdir])
+ AC_INIT([PostgreSQL], [7.3.20], [pgsql-bugs@postgresql.org])
+-m4_undefine([infodir])
+-m4_undefine([info])
+-AC_SUBST(docdir)
+
+ AC_PREREQ(2.53)
+ AC_COPYRIGHT([Copyright 2002 PostgreSQL Global Development Group])
+@@ -623,7 +618,7 @@ AC_CHECK_LIB(PW, main)
+ AC_CHECK_LIB(resolv, main)
+ AC_SEARCH_LIBS(getopt_long, [getopt gnugetopt])
+ # QNX:
+-AC_CHECK_LIB([[unix]], main)
++AC_CHECK_LIB([unix], main)
+ AC_SEARCH_LIBS(crypt, crypt)
+ # BeOS:
+ AC_CHECK_LIB(bind, __inet_ntoa)