@@ -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
15701523ac_configure_args_raw=
15711524for ac_arg
15721525do
@@ -3911,14 +3864,10 @@ if test ${ac_cv_POSTGRESQL_LIBS+y}
39113864then :
39123865 printf %s " (cached) " >&6
39133866else $as_nop
3914- ac_cv_POSTGRESQL_LIBS=" ` " $PG_CONFIG " --libs ` " || _AX_LIB_POSTGRESQL_OLD_fail=yes
3867+ ac_cv_POSTGRESQL_LIBS=" -lpq "
39153868fi
39163869{ printf " %s\n" " $as_me :${as_lineno-$LINENO } : result: $ac_cv_POSTGRESQL_LIBS " >&5
39173870printf " %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
40213970then :
40223971 break
40233972fi
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"
40653975then :
40663976 break
0 commit comments