summaryrefslogtreecommitdiff
path: root/databases/postgresql/patches/patch-ab
blob: 3d8a389c9bd9a89cd9b808ac6aa65b8bae8c80e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-ab,v 1.12 2001/07/27 17:52:33 jlam Exp $

--- config/programs.m4.orig	Sat Feb 10 14:31:42 2001
+++ config/programs.m4
@@ -85,7 +85,7 @@
   for pgac_rllib in -lreadline -ledit ; do
     pgac_save_LIBS=$LIBS
     LIBS="${pgac_rllib}${pgac_lib} $LIBS"
-    AC_TRY_LINK_FUNC([readline], [pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"; break 2])
+    AC_TRY_LINK_FUNC([readline], AC_TRY_RUN([int main() { return 0; }], [pgac_cv_check_readline="${pgac_rllib}${pgac_lib}"; break 2]))
     LIBS=$pgac_save_LIBS
   done
 done