summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorTom Lane2006-11-29 20:12:31 +0000
committerTom Lane2006-11-29 20:12:31 +0000
commit59cf88da91bc88978b05275ebd94ac2d980c4047 (patch)
treef54c3f5ab134d7d2b8fe66bf7c44834cce844965 /configure
parentae8c1bea02382ff5d57806e8f40c9e58ebf7f3d3 (diff)
Ignore libedit/libreadline while probing for strlcpy and some other
standard functions. Per report from Stefan Kaltenbrunner.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure b/configure
index 194698cf8af..1d6e46fd656 100755
--- a/configure
+++ b/configure
@@ -14509,6 +14509,11 @@ done
fi
+# Some versions of libedit contain strlcpy(); so disregard that library while
+# checking for these standard libc functions.
+pgac_save_LIBS="$LIBS"
+LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'`
+
@@ -14635,6 +14640,8 @@ done
+LIBS="$pgac_save_LIBS"
+
# System's version of getaddrinfo(), if any, may be used only if we found
# a definition for struct addrinfo; see notes in src/include/getaddrinfo.h.
# (Note: the AC_REPLACE_FUNCS probe fails on Windows, where the available