Skip to content

Commit 2e91d33

Browse files
committed
try again again
1 parent f63e7d0 commit 2e91d33

File tree

2 files changed

+19
-110
lines changed

2 files changed

+19
-110
lines changed

postgresql-libpq-configure/configure

Lines changed: 2 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -1520,53 +1520,6 @@ printf "%s\n" "$ac_res" >&6; }
15201520
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
15211521
15221522
} # ac_fn_c_check_header_compile
1523-
1524-
# ac_fn_c_try_link LINENO
1525-
# -----------------------
1526-
# Try to link conftest.$ac_ext, and return whether this succeeded.
1527-
ac_fn_c_try_link ()
1528-
{
1529-
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1530-
rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1531-
if { { ac_try="$ac_link"
1532-
case "(($ac_try" in
1533-
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1534-
*) ac_try_echo=$ac_try;;
1535-
esac
1536-
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1537-
printf "%s\n" "$ac_try_echo"; } >&5
1538-
(eval "$ac_link") 2>conftest.err
1539-
ac_status=$?
1540-
if test -s conftest.err; then
1541-
grep -v '^ *+' conftest.err >conftest.er1
1542-
cat conftest.er1 >&5
1543-
mv -f conftest.er1 conftest.err
1544-
fi
1545-
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1546-
test $ac_status = 0; } && {
1547-
test -z "$ac_c_werror_flag" ||
1548-
test ! -s conftest.err
1549-
} && test -s conftest$ac_exeext && {
1550-
test "$cross_compiling" = yes ||
1551-
test -x conftest$ac_exeext
1552-
}
1553-
then :
1554-
ac_retval=0
1555-
else $as_nop
1556-
printf "%s\n" "$as_me: failed program was:" >&5
1557-
sed 's/^/| /' conftest.$ac_ext >&5
1558-
1559-
ac_retval=1
1560-
fi
1561-
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1562-
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1563-
# interfere with the next link command; also delete a directory that is
1564-
# left behind by Apple's compiler. We do this before executing the actions.
1565-
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1566-
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1567-
as_fn_set_status $ac_retval
1568-
1569-
} # ac_fn_c_try_link
15701523
ac_configure_args_raw=
15711524
for ac_arg
15721525
do
@@ -3911,14 +3864,10 @@ if test ${ac_cv_POSTGRESQL_LIBS+y}
39113864
then :
39123865
printf %s "(cached) " >&6
39133866
else $as_nop
3914-
ac_cv_POSTGRESQL_LIBS="`"$PG_CONFIG" --libs`" || _AX_LIB_POSTGRESQL_OLD_fail=yes
3867+
ac_cv_POSTGRESQL_LIBS="-lpq"
39153868
fi
39163869
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_POSTGRESQL_LIBS" >&5
39173870
printf "%s\n" "$ac_cv_POSTGRESQL_LIBS" >&6; }
3918-
if test "X$_AX_LIB_POSTGRESQL_OLD_fail" = "Xyes"
3919-
then :
3920-
break
3921-
fi
39223871
POSTGRESQL_LIBS="$ac_cv_POSTGRESQL_LIBS"
39233872
39243873
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the PostgreSQL version" >&5
@@ -4021,46 +3970,7 @@ fi
40213970
then :
40223971
break
40233972
fi
4024-
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the PostgreSQL library linking is working" >&5
4025-
printf %s "checking for the PostgreSQL library linking is working... " >&6; }
4026-
if test ${ac_cv_postgresql_found+y}
4027-
then :
4028-
printf %s "(cached) " >&6
4029-
else $as_nop
4030-
4031-
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4032-
/* end confdefs.h. */
4033-
4034-
4035-
#include <libpq-fe.h>
4036-
4037-
int
4038-
main (void)
4039-
{
4040-
4041-
char conninfo[]="dbname = postgres";
4042-
PGconn *conn;
4043-
conn = PQconnectdb(conninfo);
4044-
4045-
4046-
;
4047-
return 0;
4048-
}
4049-
4050-
_ACEOF
4051-
if ac_fn_c_try_link "$LINENO"
4052-
then :
4053-
ac_cv_postgresql_found=yes
4054-
else $as_nop
4055-
ac_cv_postgresql_found=no
4056-
fi
4057-
rm -f core conftest.err conftest.$ac_objext conftest.beam \
4058-
conftest$ac_exeext conftest.$ac_ext
4059-
4060-
fi
4061-
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_postgresql_found" >&5
4062-
printf "%s\n" "$ac_cv_postgresql_found" >&6; }
4063-
found_postgresql="$ac_cv_postgresql_found"
3973+
found_postgresql="$ac_cv_postgresql_found"
40643974
if test "X$found_postgresql" = "Xno"
40653975
then :
40663976
break

postgresql-libpq-configure/m4/ax_lib_postgresql.m4

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@ AC_DEFUN([_AX_LIB_POSTGRESQL_OLD],[
7575
POSTGRESQL_LDFLAGS="$ac_cv_POSTGRESQL_LDFLAGS"
7676
7777
AC_CACHE_CHECK([for the PostgreSQL libraries LIBS],[ac_cv_POSTGRESQL_LIBS],
78-
[ac_cv_POSTGRESQL_LIBS="`"$PG_CONFIG" --libs`" || _AX_LIB_POSTGRESQL_OLD_fail=yes])
79-
AS_IF([test "X$_AX_LIB_POSTGRESQL_OLD_fail" = "Xyes"],[break])
78+
[ac_cv_POSTGRESQL_LIBS="-lpq"])
8079
POSTGRESQL_LIBS="$ac_cv_POSTGRESQL_LIBS"
8180
8281
AC_CACHE_CHECK([for the PostgreSQL version],[ac_cv_POSTGRESQL_VERSION],
@@ -207,22 +206,22 @@ AC_DEFUN([AX_LIB_POSTGRESQL],
207206
AC_CHECK_HEADER([libpq-fe.h],[],[found_postgresql=no])
208207
AS_IF([test "X$found_postgresql" = "Xno"],[break])
209208
dnl try now to link
210-
AC_CACHE_CHECK([for the PostgreSQL library linking is working],[ac_cv_postgresql_found],
211-
[
212-
AC_LINK_IFELSE([
213-
AC_LANG_PROGRAM(
214-
[
215-
#include <libpq-fe.h>
216-
],
217-
[[
218-
char conninfo[]="dbname = postgres";
219-
PGconn *conn;
220-
conn = PQconnectdb(conninfo);
221-
]]
222-
)
223-
],[ac_cv_postgresql_found=yes],
224-
[ac_cv_postgresql_found=no])
225-
])
209+
dnl AC_CACHE_CHECK([for the PostgreSQL library linking is working],[ac_cv_postgresql_found],
210+
dnl [
211+
dnl AC_LINK_IFELSE([
212+
dnl AC_LANG_PROGRAM(
213+
dnl [
214+
dnl #include <libpq-fe.h>
215+
dnl ],
216+
dnl [[
217+
dnl char conninfo[]="dbname = postgres";
218+
dnl PGconn *conn;
219+
dnl conn = PQconnectdb(conninfo);
220+
dnl ]]
221+
dnl )
222+
dnl ],[ac_cv_postgresql_found=yes],
223+
dnl [ac_cv_postgresql_found=no])
224+
dnl ])
226225
found_postgresql="$ac_cv_postgresql_found"
227226
AS_IF([test "X$found_postgresql" = "Xno"],[break])
228227
break

0 commit comments

Comments
 (0)