Hi All,
I just got KDE vaguely running on FreeBSD 5.1 and started working on a
port of pga3.
First problem, FreeBSD seems to evaluate:
if test "$pgsql_cv_libpq" == "yes" -a "$pgsql_cv_libpqfe_h" == "yes"
to false, even if both variables do actually equal yes. Please see
attached logfile.
As a test, I commented out the if statement:
# if test "$pgsql_cv_libpq" == "yes" -a "$pgsql_cv_libpqfe_h" ==
"yes"
# then
AC_MSG_CHECKING(pgsql in ${LIBPQ_HOME})
AC_MSG_RESULT(ok)
if test "$pg_static_build" == "yes"
then
LIBS="$LIBS ${LIBPQ_HOME}/lib/libpq.a -lcrypt"
else
LIBS="$LIBS -lpq"
fi
# else
# AC_MSG_CHECKING(pgsql in ${LIBPQ_HOME})
# AC_MSG_RESULT(failed)
# LDFLAGS="$PGSQL_OLD_LDFLAGS"
# CPPFLAGS="$PGSQL_OLD_CPPFLAGS"
# AC_MSG_ERROR([you must specify a valid pgsql installation with
--with-pgsql=DIR])
# fi
fi
])
and associated bits such that it just ran the static build test and
then carried on. This built successfully (yay!), however, (second
problem) although it statically linked the wx stuff as I wanted, it
dynamically linked libpq.
So, does this mean 'if test' is broken on FreeBSD?
Aside from those relatively minor build issues, in my 2 minute test,
pgAdmin 3 seems to run OK on FreeBSD 5.1!!
Regards, Dave