+# BSD/OS has a custom fseeko/ftello built on fsetpos/fgetpos
+# We override the previous test that said fseeko/ftello didn't exist
+case $host_os in bsdi*)
+ac_cv_func_fseeko=yes
+esac
+
# Solaris has a very slow qsort in certain cases.
case $host_os in
solaris*) LIBOBJS="$LIBOBJS qsort.$ac_objext" ;;
done
-# BSD/OS has a custom fseeko/ftello built on fsetpos/fgetpos
-# We override the previous test that said fseeko/ftello didn't exist
-case $host_os in bsdi*)
-ac_cv_func_fseeko=yes
-esac
-
echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
if test "${ac_cv_sys_largefile_source+set}" = set; then
AC_REPLACE_FUNCS([fseeko gethostname getrusage inet_aton random srandom strcasecmp strdup strerror strtol strtoul])
+# BSD/OS has a custom fseeko/ftello built on fsetpos/fgetpos
+# We override the previous test that said fseeko/ftello didn't exist
+case $host_os in bsdi*)
+ac_cv_func_fseeko=yes
+esac
+
# Solaris has a very slow qsort in certain cases.
case $host_os in
solaris*) AC_LIBOBJ(qsort) ;;
[AC_CHECK_FUNCS(on_exit, [],
[AC_MSG_ERROR([neither atexit() nor on_exit() found])])])
-# BSD/OS has a custom fseeko/ftello built on fsetpos/fgetpos
-# We override the previous test that said fseeko/ftello didn't exist
-case $host_os in bsdi*)
-ac_cv_func_fseeko=yes
-esac
-
AC_FUNC_FSEEKO
#include <sys/timeb.h> /* for _ftime() */
#endif
+#ifndef WIN32
+#include <sys/ioctl.h> /* for ioctl() */
+#else
+#define popen(x,y) _popen(x,y)
+#define pclose(x) _pclose(x)
+#endif
+
+#ifdef HAVE_TERMIOS_H
+#include <termios.h>
+#endif
+
#include "libpq-fe.h"
#include "pqsignal.h"
#include <errno.h>
#ifndef WIN32
-#include <sys/ioctl.h> /* for ioctl() */
#ifdef HAVE_PWD_H
#include <pwd.h> /* for getpwuid() */
#endif
#include <math.h>
#include <signal.h>
-#ifndef WIN32
-#include <unistd.h> /* for isatty() */
-#include <sys/ioctl.h> /* for ioctl() */
-#else
-#define popen(x,y) _popen(x,y)
-#define pclose(x) _pclose(x)
-#endif
#include "pqsignal.h"
#include "libpq-fe.h"
#include "settings.h"
-#ifdef HAVE_TERMIOS_H
-#include <termios.h>
-#endif
-
#include "mbprint.h"
/*************************/