Skip to content

Commit

Permalink
WIP2
Browse files Browse the repository at this point in the history
  • Loading branch information
phadej committed Aug 19, 2024
1 parent 40433a3 commit f33b316
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion postgresql-libpq-pgconfig/configure
Original file line number Diff line number Diff line change
Expand Up @@ -4003,14 +4003,16 @@ then :
_AX_LIB_POSTGRESQL_OLD_LIBS="$LIBS"
LIBS="$LIBS $POSTGRESQL_LIBS"
while true; do
ac_fn_c_check_header_compile "$LINENO" "libpq-fe.h" "ac_cv_header_libpq_fe_h" "$ac_includes_default"
echo "foo $CPPFLAGS $LDFLAGS $LIBS"
ac_fn_c_check_header_compile "$LINENO" "libpq-fe.h" "ac_cv_header_libpq_fe_h" "$ac_includes_default"
if test "x$ac_cv_header_libpq_fe_h" = xyes
then :
else $as_nop
found_postgresql=no
fi
echo "foo $found_postgresql"
if test "X$found_postgresql" = "Xno"
then :
break
Expand Down
2 changes: 2 additions & 0 deletions postgresql-libpq-pgconfig/m4/ax_lib_postgresql.m4
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,9 @@ AC_DEFUN([AX_LIB_POSTGRESQL],
LIBS="$LIBS $POSTGRESQL_LIBS"
while true; do
dnl try to compile
echo "foo $CPPFLAGS $LDFLAGS $LIBS"
AC_CHECK_HEADER([libpq-fe.h],[],[found_postgresql=no])
echo "foo $found_postgresql"
AS_IF([test "X$found_postgresql" = "Xno"],[break])
dnl try now to link
AC_CACHE_CHECK([for the PostgreSQL library linking is working],[ac_cv_postgresql_found],
Expand Down

0 comments on commit f33b316

Please sign in to comment.