394ad895ec
64-bit archs and apply a patch from upstream to properly fix the regression. from Brad (maintainer)
76 lines
2.7 KiB
Plaintext
76 lines
2.7 KiB
Plaintext
$OpenBSD: patch-configure_in,v 1.33 2011/01/11 11:03:03 ajacoutot Exp $
|
|
--- configure.in.orig Mon Nov 29 05:38:01 2010
|
|
+++ configure.in Fri Jan 7 19:15:03 2011
|
|
@@ -464,44 +464,7 @@ AC_SUBST(ABI_CHECK)
|
|
AC_PATH_PROG(PS, ps, ps)
|
|
AC_MSG_CHECKING("how to check if pid exists")
|
|
PS=$ac_cv_path_PS
|
|
-# Linux style
|
|
-if $PS wwwp $$ 2> /dev/null | grep -- "$0" > /dev/null
|
|
-then
|
|
- FIND_PROC="$PS wwwp \$\$PID | grep -v \" grep\" | grep -v mysqld_safe | grep -- \"\$\$MYSQLD\" > /dev/null"
|
|
-# Solaris
|
|
-elif $PS -fp $$ 2> /dev/null | grep -- $0 > /dev/null
|
|
-then
|
|
- FIND_PROC="$PS -p \$\$PID | grep -v \" grep\" | grep -v mysqld_safe | grep -- \"\$\$MYSQLD\" > /dev/null"
|
|
-# BSD style
|
|
-elif $PS -uaxww 2> /dev/null | grep -- $0 > /dev/null
|
|
-then
|
|
- FIND_PROC="$PS -uaxww | grep -v \" grep\" | grep -v mysqld_safe | grep -- \"\$\$MYSQLD\" | grep \" \$\$PID \" > /dev/null"
|
|
-# SysV style
|
|
-elif $PS -ef 2> /dev/null | grep -- $0 > /dev/null
|
|
-then
|
|
- FIND_PROC="$PS -ef | grep -v \" grep\" | grep -v mysqld_safe | grep -- \"\$\$MYSQLD\" | grep \" \$\$PID \" > /dev/null"
|
|
-# Do anybody use this?
|
|
-elif $PS $$ 2> /dev/null | grep -- $0 > /dev/null
|
|
-then
|
|
- FIND_PROC="$PS \$\$PID | grep -v \" grep\" | grep -v mysqld_safe | grep -- \"\$\$MYSQLD\" > /dev/null"
|
|
-else
|
|
- case $SYSTEM_TYPE in
|
|
- *freebsd*|*dragonfly*)
|
|
- FIND_PROC="$PS p \$\$PID | grep -v \" grep\" | grep -v mysqld_safe | grep -- \"\$\$MYSQLD\" > /dev/null"
|
|
- ;;
|
|
- *darwin*)
|
|
- FIND_PROC="$PS -uaxww | grep -v \" grep\" | grep -v mysqld_safe | grep -- \"\$\$MYSQLD\" | grep \" \$\$PID \" > /dev/null"
|
|
- ;;
|
|
- *cygwin*)
|
|
- FIND_PROC="$PS -e | grep -v \" grep\" | grep -v mysqld_safe | grep -- \"\$\$MYSQLD\" | grep \" \$\$PID \" > /dev/null"
|
|
- ;;
|
|
- *netware*)
|
|
- FIND_PROC=
|
|
- ;;
|
|
- *)
|
|
- AC_MSG_ERROR([Could not find the right ps and/or grep switches. Which OS is this? See the Installation chapter in the Reference Manual.])
|
|
- esac
|
|
-fi
|
|
+FIND_PROC="$PS -uaxww | grep -v \" grep\" | grep -v mysqld_safe | grep -- \"\$\$MYSQLD\" | grep \" \$\$PID \" > /dev/null"
|
|
AC_SUBST(FIND_PROC)
|
|
AC_MSG_RESULT("$FIND_PROC")
|
|
|
|
@@ -888,7 +851,8 @@ AC_ARG_WITH(libwrap,
|
|
AC_CHECK_HEADER(tcpd.h,
|
|
LIBS="-lwrap $LIBS"
|
|
AC_MSG_CHECKING(for TCP wrappers library -lwrap)
|
|
- AC_TRY_LINK([#include <tcpd.h>
|
|
+ AC_TRY_LINK([#include <stdio.h>
|
|
+#include <tcpd.h>
|
|
int allow_severity = 0;
|
|
int deny_severity = 0;
|
|
|
|
@@ -1884,6 +1848,15 @@ dnl
|
|
|
|
MYSQL_CHECK_TIME_T
|
|
|
|
+dnl
|
|
+dnl check size of time_t
|
|
+dnl
|
|
+
|
|
+AC_CHECK_SIZEOF(time_t, 8)
|
|
+if test "$ac_cv_sizeof_time_t" -eq 0
|
|
+then
|
|
+ AC_MSG_ERROR("MySQL needs a time_t type.")
|
|
+fi
|
|
|
|
# do we need #pragma interface/#pragma implementation ?
|
|
# yes if it's gcc 2.x, and not icc pretending to be gcc, and not cygwin
|