*** pgsql/configure.in 2008/02/17 16:36:42 1.548 --- pgsql/configure.in 2008/02/18 21:46:22 1.549 *************** *** 1,5 **** dnl Process this file with autoconf to produce a configure script. ! dnl $PostgreSQL: pgsql/configure.in,v 1.547 2008/02/13 03:40:38 tgl Exp $ dnl dnl Developers, please strive to achieve this order: dnl --- 1,5 ---- dnl Process this file with autoconf to produce a configure script. ! dnl $PostgreSQL: pgsql/configure.in,v 1.548 2008/02/17 16:36:42 petere Exp $ dnl dnl Developers, please strive to achieve this order: dnl *************** fi *** 1080,1086 **** pgac_save_LIBS="$LIBS" LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'` ! AC_REPLACE_FUNCS([crypt fseeko getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul unsetenv]) LIBS="$pgac_save_LIBS" --- 1080,1086 ---- pgac_save_LIBS="$LIBS" LIBS=`echo "$LIBS" | sed -e 's/-ledit//g' -e 's/-lreadline//g'` ! AC_REPLACE_FUNCS([crypt getopt getrusage inet_aton random rint srandom strdup strerror strlcat strlcpy strtol strtoul unsetenv]) LIBS="$pgac_save_LIBS" *************** else *** 1102,1114 **** AC_LIBOBJ(getopt_long) fi - # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos - # We override the previous test that said fseeko/ftello didn't exist - # OS tests are also done in include/c.h and port/fseeko.c - case $host_os in bsdi*|netbsd*) - ac_cv_func_fseeko=yes - esac - # Win32 support if test "$PORTNAME" = "win32"; then AC_REPLACE_FUNCS(gettimeofday) --- 1102,1107 ---- *************** AC_CHECK_FUNCS(atexit, [], *** 1160,1166 **** [AC_CHECK_FUNCS(on_exit, [], [AC_MSG_ERROR([neither atexit() nor on_exit() found])])]) ! AC_FUNC_FSEEKO # # Pthreads --- 1153,1168 ---- [AC_CHECK_FUNCS(on_exit, [], [AC_MSG_ERROR([neither atexit() nor on_exit() found])])]) ! AC_REPLACE_FUNCS(fseeko) ! case $host_os in ! # BSD/OS & NetBSD use a custom fseeko/ftello built on fsetpos/fgetpos ! bsdi*|netbsd*) ! AC_DEFINE(HAVE_FSEEKO, 1, [Define to 1 because replacement version used.]) ! ac_cv_func_fseeko=yes;; ! *) ! AC_FUNC_FSEEKO;; ! esac ! # # Pthreads