configure
上传用户:tsgydb
上传日期:2007-04-14
资源大小:10674k
文件大小:301k
- echo "configure:3672: checking for _LARGE_FILES" >&5
- if eval "test "`echo '$''{'ac_cv_sys_large_files'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_cv_sys_large_files=no
- case "$host_os" in
- # AIX 4.2 and later
- aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
- ac_cv_sys_large_files=1 ;;
- esac
- for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
- case "$ac_flag" in
- -D_LARGE_FILES)
- ac_cv_sys_large_files=1 ;;
- -D_LARGE_FILES=*)
- ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=(.*)'` ;;
- esac
- done
-
- fi
- echo "$ac_t""$ac_cv_sys_large_files" 1>&6
- if test "$ac_cv_sys_large_files" != no; then
- cat >> confdefs.h <<EOF
- #define _LARGE_FILES $ac_cv_sys_large_files
- EOF
- fi
- fi
-
- # Types that must be checked AFTER large file support is checked
- echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
- echo "configure:3705: checking for ANSI C header files" >&5
- if eval "test "`echo '$''{'ac_cv_header_stdc'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3710 "configure"
- #include "confdefs.h"
- #include <stdlib.h>
- #include <stdarg.h>
- #include <string.h>
- #include <float.h>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:3718: "$ac_try") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- ac_cv_header_stdc=yes
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_header_stdc=no
- fi
- rm -f conftest*
- if test $ac_cv_header_stdc = yes; then
- # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
- cat > conftest.$ac_ext <<EOF
- #line 3735 "configure"
- #include "confdefs.h"
- #include <string.h>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "memchr" >/dev/null 2>&1; then
- :
- else
- rm -rf conftest*
- ac_cv_header_stdc=no
- fi
- rm -f conftest*
- fi
- if test $ac_cv_header_stdc = yes; then
- # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
- cat > conftest.$ac_ext <<EOF
- #line 3753 "configure"
- #include "confdefs.h"
- #include <stdlib.h>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "free" >/dev/null 2>&1; then
- :
- else
- rm -rf conftest*
- ac_cv_header_stdc=no
- fi
- rm -f conftest*
- fi
- if test $ac_cv_header_stdc = yes; then
- # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
- if test "$cross_compiling" = yes; then
- :
- else
- cat > conftest.$ac_ext <<EOF
- #line 3774 "configure"
- #include "confdefs.h"
- #include <ctype.h>
- #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
- #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
- #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
- int main () { int i; for (i = 0; i < 256; i++)
- if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
- exit (0); }
- EOF
- if { (eval echo configure:3785: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- :
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_header_stdc=no
- fi
- rm -fr conftest*
- fi
- fi
- fi
- echo "$ac_t""$ac_cv_header_stdc" 1>&6
- if test $ac_cv_header_stdc = yes; then
- cat >> confdefs.h <<EOF
- #define STDC_HEADERS 1
- EOF
- fi
- echo $ac_n "checking for size_t""... $ac_c" 1>&6
- echo "configure:3809: checking for size_t" >&5
- if eval "test "`echo '$''{'ac_cv_type_size_t'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3814 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #if STDC_HEADERS
- #include <stdlib.h>
- #include <stddef.h>
- #endif
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
- rm -rf conftest*
- ac_cv_type_size_t=yes
- else
- rm -rf conftest*
- ac_cv_type_size_t=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_type_size_t" 1>&6
- if test $ac_cv_type_size_t = no; then
- cat >> confdefs.h <<EOF
- #define size_t unsigned
- EOF
- fi
- #--------------------------------------------------------------------
- # Check for system header files
- #--------------------------------------------------------------------
- ac_header_dirent=no
- for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
- echo "configure:3851: checking for $ac_hdr that defines DIR" >&5
- if eval "test "`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3856 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #include <$ac_hdr>
- int main() {
- DIR *dirp = 0;
- ; return 0; }
- EOF
- if { (eval echo configure:3864: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- eval "ac_cv_header_dirent_$ac_safe=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_dirent_$ac_safe=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_header_dirent_'$ac_safe`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
- ac_header_dirent=$ac_hdr; break
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
- if test $ac_header_dirent = dirent.h; then
- echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
- echo "configure:3889: checking for opendir in -ldir" >&5
- ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-ldir $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 3897 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char opendir();
- int main() {
- opendir()
- ; return 0; }
- EOF
- if { (eval echo configure:3908: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- LIBS="$LIBS -ldir"
- else
- echo "$ac_t""no" 1>&6
- fi
- else
- echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
- echo "configure:3930: checking for opendir in -lx" >&5
- ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lx $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 3938 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char opendir();
- int main() {
- opendir()
- ; return 0; }
- EOF
- if { (eval echo configure:3949: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- LIBS="$LIBS -lx"
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
- echo "configure:3972: checking for ANSI C header files" >&5
- if eval "test "`echo '$''{'ac_cv_header_stdc'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 3977 "configure"
- #include "confdefs.h"
- #include <stdlib.h>
- #include <stdarg.h>
- #include <string.h>
- #include <float.h>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:3985: "$ac_try") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- ac_cv_header_stdc=yes
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_header_stdc=no
- fi
- rm -f conftest*
- if test $ac_cv_header_stdc = yes; then
- # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
- cat > conftest.$ac_ext <<EOF
- #line 4002 "configure"
- #include "confdefs.h"
- #include <string.h>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "memchr" >/dev/null 2>&1; then
- :
- else
- rm -rf conftest*
- ac_cv_header_stdc=no
- fi
- rm -f conftest*
- fi
- if test $ac_cv_header_stdc = yes; then
- # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
- cat > conftest.$ac_ext <<EOF
- #line 4020 "configure"
- #include "confdefs.h"
- #include <stdlib.h>
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "free" >/dev/null 2>&1; then
- :
- else
- rm -rf conftest*
- ac_cv_header_stdc=no
- fi
- rm -f conftest*
- fi
- if test $ac_cv_header_stdc = yes; then
- # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
- if test "$cross_compiling" = yes; then
- :
- else
- cat > conftest.$ac_ext <<EOF
- #line 4041 "configure"
- #include "confdefs.h"
- #include <ctype.h>
- #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
- #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
- #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
- int main () { int i; for (i = 0; i < 256; i++)
- if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
- exit (0); }
- EOF
- if { (eval echo configure:4052: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- :
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_header_stdc=no
- fi
- rm -fr conftest*
- fi
- fi
- fi
- echo "$ac_t""$ac_cv_header_stdc" 1>&6
- if test $ac_cv_header_stdc = yes; then
- cat >> confdefs.h <<EOF
- #define STDC_HEADERS 1
- EOF
- fi
- echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
- echo "configure:4076: checking for sys/wait.h that is POSIX.1 compatible" >&5
- if eval "test "`echo '$''{'ac_cv_header_sys_wait_h'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4081 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #include <sys/wait.h>
- #ifndef WEXITSTATUS
- #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
- #endif
- #ifndef WIFEXITED
- #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
- #endif
- int main() {
- int s;
- wait (&s);
- s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
- ; return 0; }
- EOF
- if { (eval echo configure:4097: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_header_sys_wait_h=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_header_sys_wait_h=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
- if test $ac_cv_header_sys_wait_h = yes; then
- cat >> confdefs.h <<EOF
- #define HAVE_SYS_WAIT_H 1
- EOF
- fi
- for ac_hdr in fcntl.h float.h floatingpoint.h ieeefp.h limits.h
- memory.h pwd.h select.h
- stdlib.h stddef.h
- strings.h string.h synch.h sys/mman.h sys/socket.h netinet/in.h arpa/inet.h
- sys/timeb.h sys/types.h sys/un.h sys/vadvise.h sys/wait.h term.h
- unistd.h utime.h sys/utime.h termio.h termios.h sched.h crypt.h alloca.h
- sys/ioctl.h
- do
- ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
- echo "configure:4127: checking for $ac_hdr" >&5
- if eval "test "`echo '$''{'ac_cv_header_$ac_safe'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4132 "configure"
- #include "confdefs.h"
- #include <$ac_hdr>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:4137: "$ac_try") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_header_'$ac_safe`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_hdr 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- #--------------------------------------------------------------------
- # Check for system libraries. Adds the library to $LIBS
- # and defines HAVE_LIBM etc
- #--------------------------------------------------------------------
- echo $ac_n "checking for floor in -lm""... $ac_c" 1>&6
- echo "configure:4170: checking for floor in -lm" >&5
- ac_lib_var=`echo m'_'floor | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lm $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4178 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char floor();
- int main() {
- floor()
- ; return 0; }
- EOF
- if { (eval echo configure:4189: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g'
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_lib 1
- EOF
- LIBS="-lm $LIBS"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for __infinity in -lm""... $ac_c" 1>&6
- echo "configure:4215: checking for __infinity in -lm" >&5
- ac_lib_var=`echo m'_'__infinity | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lm $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4223 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char __infinity();
- int main() {
- __infinity()
- ; return 0; }
- EOF
- if { (eval echo configure:4234: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo m | sed -e 's/^a-zA-Z0-9_/_/g'
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_lib 1
- EOF
- LIBS="-lm $LIBS"
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- echo $ac_n "checking for gethostbyname_r""... $ac_c" 1>&6
- echo "configure:4264: checking for gethostbyname_r" >&5
- if eval "test "`echo '$''{'ac_cv_func_gethostbyname_r'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4269 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char gethostbyname_r(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char gethostbyname_r();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
- choke me
- #else
- gethostbyname_r();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4292: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_gethostbyname_r=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_gethostbyname_r=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'gethostbyname_r`" = yes"; then
- echo "$ac_t""yes" 1>&6
- :
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for gethostbyname_r in -lnsl_r""... $ac_c" 1>&6
- echo "configure:4311: checking for gethostbyname_r in -lnsl_r" >&5
- ac_lib_var=`echo nsl_r'_'gethostbyname_r | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lnsl_r $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4319 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char gethostbyname_r();
- int main() {
- gethostbyname_r()
- ; return 0; }
- EOF
- if { (eval echo configure:4330: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo nsl_r | sed -e 's/[^a-zA-Z0-9_]/_/g'
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_lib 1
- EOF
- LIBS="-lnsl_r $LIBS"
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for gethostbyname_r in -lnsl""... $ac_c" 1>&6
- echo "configure:4356: checking for gethostbyname_r in -lnsl" >&5
- ac_lib_var=`echo nsl'_'gethostbyname_r | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lnsl $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4364 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char gethostbyname_r();
- int main() {
- gethostbyname_r()
- ; return 0; }
- EOF
- if { (eval echo configure:4375: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g'
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_lib 1
- EOF
- LIBS="-lnsl $LIBS"
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- fi
- echo $ac_n "checking for setsockopt""... $ac_c" 1>&6
- echo "configure:4407: checking for setsockopt" >&5
- if eval "test "`echo '$''{'ac_cv_func_setsockopt'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4412 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char setsockopt(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char setsockopt();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_setsockopt) || defined (__stub___setsockopt)
- choke me
- #else
- setsockopt();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4435: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_setsockopt=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_setsockopt=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'setsockopt`" = yes"; then
- echo "$ac_t""yes" 1>&6
- :
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for setsockopt in -lsocket""... $ac_c" 1>&6
- echo "configure:4453: checking for setsockopt in -lsocket" >&5
- ac_lib_var=`echo socket'_'setsockopt | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lsocket $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4461 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char setsockopt();
- int main() {
- setsockopt()
- ; return 0; }
- EOF
- if { (eval echo configure:4472: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g'
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_lib 1
- EOF
- LIBS="-lsocket $LIBS"
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- echo $ac_n "checking for yp_get_default_domain""... $ac_c" 1>&6
- echo "configure:4502: checking for yp_get_default_domain" >&5
- if eval "test "`echo '$''{'ac_cv_func_yp_get_default_domain'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4507 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char yp_get_default_domain(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char yp_get_default_domain();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_yp_get_default_domain) || defined (__stub___yp_get_default_domain)
- choke me
- #else
- yp_get_default_domain();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4530: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_yp_get_default_domain=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_yp_get_default_domain=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'yp_get_default_domain`" = yes"; then
- echo "$ac_t""yes" 1>&6
- :
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for yp_get_default_domain in -lnsl""... $ac_c" 1>&6
- echo "configure:4548: checking for yp_get_default_domain in -lnsl" >&5
- ac_lib_var=`echo nsl'_'yp_get_default_domain | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lnsl $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4556 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char yp_get_default_domain();
- int main() {
- yp_get_default_domain()
- ; return 0; }
- EOF
- if { (eval echo configure:4567: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g'
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_lib 1
- EOF
- LIBS="-lnsl $LIBS"
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- echo $ac_n "checking for p2open""... $ac_c" 1>&6
- echo "configure:4597: checking for p2open" >&5
- if eval "test "`echo '$''{'ac_cv_func_p2open'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4602 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char p2open(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char p2open();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_p2open) || defined (__stub___p2open)
- choke me
- #else
- p2open();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4625: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_p2open=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_p2open=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'p2open`" = yes"; then
- echo "$ac_t""yes" 1>&6
- :
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for p2open in -lgen""... $ac_c" 1>&6
- echo "configure:4643: checking for p2open in -lgen" >&5
- ac_lib_var=`echo gen'_'p2open | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lgen $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4651 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char p2open();
- int main() {
- p2open()
- ; return 0; }
- EOF
- if { (eval echo configure:4662: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/^a-zA-Z0-9_/_/g'
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_lib 1
- EOF
- LIBS="-lgen $LIBS"
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- # This may get things to compile even if bind-8 is installed
- echo $ac_n "checking for bind""... $ac_c" 1>&6
- echo "configure:4693: checking for bind" >&5
- if eval "test "`echo '$''{'ac_cv_func_bind'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4698 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char bind(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char bind();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_bind) || defined (__stub___bind)
- choke me
- #else
- bind();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4721: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_bind=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_bind=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'bind`" = yes"; then
- echo "$ac_t""yes" 1>&6
- :
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for bind in -lbind""... $ac_c" 1>&6
- echo "configure:4739: checking for bind in -lbind" >&5
- ac_lib_var=`echo bind'_'bind | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lbind $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4747 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char bind();
- int main() {
- bind()
- ; return 0; }
- EOF
- if { (eval echo configure:4758: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/^a-zA-Z0-9_/_/g'
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_lib 1
- EOF
- LIBS="-lbind $LIBS"
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- # For crypt() on Linux
- echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
- echo "configure:4789: checking for crypt in -lcrypt" >&5
- ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lcrypt $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 4797 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char crypt();
- int main() {
- crypt()
- ; return 0; }
- EOF
- if { (eval echo configure:4808: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g'
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_lib 1
- EOF
- LIBS="-lcrypt $LIBS"
- else
- echo "$ac_t""no" 1>&6
- fi
- echo $ac_n "checking for crypt""... $ac_c" 1>&6
- echo "configure:4836: checking for crypt" >&5
- if eval "test "`echo '$''{'ac_cv_func_crypt'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4841 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char crypt(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char crypt();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_crypt) || defined (__stub___crypt)
- choke me
- #else
- crypt();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:4864: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_crypt=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_crypt=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'crypt`" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<EOF
- #define HAVE_CRYPT 1
- EOF
- else
- echo "$ac_t""no" 1>&6
- fi
-
- # For compress in zlib
- save_LIBS="$LIBS"
- LIBS="-l$with_named_zlib $LIBS"
- echo $ac_n "checking if libz with compress""... $ac_c" 1>&6
- echo "configure:4892: checking if libz with compress" >&5
- if eval "test "`echo '$''{'mysql_cv_compress'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4897 "configure"
- #include "confdefs.h"
- #include <zlib.h>
- #ifdef __cplusplus
- extern "C"
- #endif
- int main() {
- return compress(0, (unsigned long*) 0, "", 0);
- ; return 0; }
- EOF
- if { (eval echo configure:4909: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- mysql_cv_compress=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- mysql_cv_compress=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$mysql_cv_compress" 1>&6
- if test "$mysql_cv_compress" = "yes"
- then
- cat >> confdefs.h <<EOF
- #define HAVE_COMPRESS 1
- EOF
- else
- LIBS="$save_LIBS"
- fi
- #--------------------------------------------------------------------
- # Check for TCP wrapper support
- #--------------------------------------------------------------------
- # Check whether --with-libwrap or --without-libwrap was given.
- if test "${with_libwrap+set}" = set; then
- withval="$with_libwrap"
-
- case "$with_libwrap" in
- no) : ;;
- yes|*)
- _cppflags=${CPPFLAGS}
- _ldflags=${LDFLAGS}
- if test "$with_libwrap" != "yes"; then
- CPPFLAGS="${CPPFLAGS} -I$with_libwrap/include"
- LDFLAGS="${LDFLAGS} -L$with_libwrap/lib"
- fi
- _libs=${LIBS}
- ac_safe=`echo "tcpd.h" | sed 'y%./+-%__p_%'`
- echo $ac_n "checking for tcpd.h""... $ac_c" 1>&6
- echo "configure:4955: checking for tcpd.h" >&5
- if eval "test "`echo '$''{'ac_cv_header_$ac_safe'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 4960 "configure"
- #include "confdefs.h"
- #include <tcpd.h>
- EOF
- ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
- { (eval echo configure:4965: "$ac_try") 1>&5; (eval $ac_try) 2>&5; }
- ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}$"`
- if test -z "$ac_err"; then
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=yes"
- else
- echo "$ac_err" >&5
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_header_$ac_safe=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_header_'$ac_safe`" = yes"; then
- echo "$ac_t""yes" 1>&6
- LIBS="$LIBS -lwrap"
- echo $ac_n "checking for TCP wrappers library -lwrap""... $ac_c" 1>&6
- echo "configure:4983: checking for TCP wrappers library -lwrap" >&5
- cat > conftest.$ac_ext <<EOF
- #line 4985 "configure"
- #include "confdefs.h"
- #include <tcpd.h>
- int allow_severity = 0;
- int deny_severity = 0;
- struct request_info *req;
- int main() {
- hosts_access (req)
- ; return 0; }
- EOF
- if { (eval echo configure:4997: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<EOF
- #define LIBWRAP 1
- EOF
- cat >> confdefs.h <<EOF
- #define HAVE_LIBWRAP 1
- EOF
- WRAPLIBS="-L$with_libwrap/lib -lwrap"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- echo "$ac_t""no" 1>&6
- CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
- fi
- rm -f conftest*
- else
- echo "$ac_t""no" 1>&6
- CPPFLAGS=${_cppflags} LDFLAGS=${_ldflags}
- fi
- LDFLAGS=${_ldflags} LIBS=${_libs}
- ;;
- esac
- fi
- if test "$IS_LINUX" = "true"; then
- echo $ac_n "checking for atomic operations""... $ac_c" 1>&6
- echo "configure:5032: checking for atomic operations" >&5
- atom_ops=
- if test "$cross_compiling" = yes; then
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- #line 5039 "configure"
- #include "confdefs.h"
- #include <asm/atomic.h>
- int main()
- {
- atomic_t v;
- atomic_set(&v, 23);
- atomic_add(5, &v);
- return atomic_read(&v) == 28 ? 0 : -1;
- }
-
- EOF
- if { (eval echo configure:5053: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- cat >> confdefs.h <<EOF
- #define HAVE_ATOMIC_ADD 1
- EOF
- atom_ops="${atom_ops}atomic_add "
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -fr conftest*
- fi
- if test "$cross_compiling" = yes; then
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- #line 5070 "configure"
- #include "confdefs.h"
- #include <asm/atomic.h>
- int main()
- {
- atomic_t v;
- atomic_set(&v, 23);
- atomic_sub(5, &v);
- return atomic_read(&v) == 18 ? 0 : -1;
- }
-
- EOF
- if { (eval echo configure:5084: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- cat >> confdefs.h <<EOF
- #define HAVE_ATOMIC_SUB 1
- EOF
- atom_ops="${atom_ops}atomic_sub "
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -fr conftest*
- fi
- if test -z "$atom_ops"; then atom_ops="no"; fi
- echo "$ac_t""$atom_ops" 1>&6
- fi
- # Check for gtty if termio.h doesn't exists
- if test "$ac_cv_header_termio_h" = "no" -a "$ac_cv_header_termios_h" = "no"
- then
- echo $ac_n "checking for gtty""... $ac_c" 1>&6
- echo "configure:5106: checking for gtty" >&5
- if eval "test "`echo '$''{'ac_cv_func_gtty'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 5111 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char gtty(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char gtty();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_gtty) || defined (__stub___gtty)
- choke me
- #else
- gtty();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:5134: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_gtty=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_gtty=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'gtty`" = yes"; then
- echo "$ac_t""yes" 1>&6
- :
- else
- echo "$ac_t""no" 1>&6
- echo $ac_n "checking for gtty in -lcompat""... $ac_c" 1>&6
- echo "configure:5152: checking for gtty in -lcompat" >&5
- ac_lib_var=`echo compat'_'gtty | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lcompat $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 5160 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char gtty();
- int main() {
- gtty()
- ; return 0; }
- EOF
- if { (eval echo configure:5171: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo compat | sed -e 's/^a-zA-Z0-9_/_/g'
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_lib 1
- EOF
- LIBS="-lcompat $LIBS"
- else
- echo "$ac_t""no" 1>&6
- fi
- fi
- fi
- # We make a special variable for client library's to avoid including
- # thread libs in the client.
- NON_THREADED_CLIENT_LIBS="$LIBS"
- echo $ac_n "checking for int8""... $ac_c" 1>&6
- echo "configure:5206: checking for int8" >&5
- if test "$cross_compiling" = yes; then
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- #line 5211 "configure"
- #include "confdefs.h"
- #ifdef HAVE_STDLIB_H
- #include <stdlib.h>
- #endif
- #ifdef HAVE_STDDEF_H
- #include <stddef.h>
- #endif
- #ifdef HAVE_SYS_TYPES_H
- #include <sys/types.h>
- #endif
- int main()
- {
- int8 i;
- return 0;
- }
- EOF
- if { (eval echo configure:5233: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- cat >> confdefs.h <<EOF
- #define HAVE_INT_8_16_32 1
- EOF
- echo "$ac_t""yes" 1>&6
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- echo "$ac_t""no" 1>&6
- fi
- rm -fr conftest*
- fi
- #
- # Some system specific hacks
- #
- MAX_C_OPTIMIZE="-O6"
- case $SYSTEM_TYPE in
- *solaris2.7*)
- # Solaris 2.7 has a broken /usr/include/widec.h
- # Make a fixed copy in ./include
- echo "Fixing broken include files for $SYSTEM_TYPE"
- echo " - Creating local copy of widec.h"
- if test ! -d include
- then
- mkdir ./include
- fi
- builddir=`pwd`
- sed -e "s|^#if[ ]*!defined(lint) && !defined(__lint)|#if !defined(lint) && !defined(__lint) && !defined(getwc)|" < /usr/include/widec.h > include/widec.h
- CFLAGS="$CFLAGS -DHAVE_CURSES_H -I$builddir/include -DHAVE_RWLOCK_T"
- CXXFLAGS="$CXXFLAGS -DHAVE_CURSES_H -I$builddir/include -DHAVE_RWLOCK_T"
- ;;
- *solaris2.8*)
- # Solaris 2.8 has a broken /usr/include/widec.h
- # Make a fixed copy in ./include
- echo "Fixing broken include files for $SYSTEM_TYPE"
- echo " - Creating local copy of widec.h"
- if test ! -d include
- then
- mkdir ./include
- fi
- builddir=`pwd`
- sed -e "s|^#if[ ]*!defined(__lint)|#if !defined(__lint) && !defined(getwc)|" < /usr/include/widec.h > include/widec.h
- CFLAGS="$CFLAGS -DHAVE_CURSES_H -I$builddir/include -DHAVE_RWLOCK_T"
- CXXFLAGS="$CXXFLAGS -DHAVE_CURSES_H -I$builddir/include -DHAVE_RWLOCK_T"
- ;;
- *solaris2.5.1*)
- echo "Enabling getpass() workaround for Solaris 2.5.1"
- CFLAGS="$CFLAGS -DHAVE_BROKEN_GETPASS -DSOLARIS -DHAVE_RWLOCK_T";
- CXXFLAGS="$CXXFLAGS -DHAVE_RWLOCK_T -DSOLARIS"
- ;;
- *solaris*)
- CFLAGS="$CFLAGS -DHAVE_RWLOCK_T"
- CXXFLAGS="$CXXFLAGS -DHAVE_RWLOCK_T"
- ;;
- *SunOS*)
- echo "Enabling getpass() workaround for SunOS"
- CFLAGS="$CFLAGS -DHAVE_BROKEN_GETPASS -DSOLARIS";
- ;;
- *hpux10.20*)
- echo "Enabling snprintf workaround for hpux 10.20"
- CFLAGS="$CFLAGS -DHAVE_BROKEN_SNPRINTF"
- CXXFLAGS="$CXXFLAGS -DHAVE_BROKEN_SNPRINTF -D_INCLUDE_LONGLONG"
- ;;
- *hpux11.*)
- echo "Enabling pread/pwrite workaround for hpux 11"
- CFLAGS="$CFLAGS -DHAVE_BROKEN_PREAD -DDONT_USE_FINITE -DHAVE_BROKEN_GETPASS -DNO_FCNTL_NONBLOCK"
- CXXFLAGS="$CXXFLAGS -DHAVE_BROKEN_PREAD -DDONT_USE_FINITE -D_INCLUDE_LONGLONG -DNO_FCNTL_NONBLOCK"
- if test "$with_named_thread" = "no"
- then
- echo "Using --with-named-thread=-lpthread"
- with_named_thread="-lpthread"
- fi
- ;;
- *rhapsody*)
- if test "$ac_cv_prog_gcc" = "yes"
- then
- CPPFLAGS="$CPPFLAGS -traditional-cpp "
- CFLAGS="-DHAVE_CTHREADS_WRAPPER -DDO_NOT_REMOVE_THREAD_WRAPPERS"
- CXXFLAGS="-DHAVE_CTHREADS_WRAPPER"
- if test $with_named_curses = "no"
- then
- with_named_curses=""
- fi
- fi
- ;;
- *darwin*)
- if test "$ac_cv_prog_gcc" = "yes"
- then
- CFLAGS="$CFLAGS -traditional-cpp -DHAVE_DARWIN_THREADS"
- CXXFLAGS="$CXXFLAGS -traditional-cpp -DHAVE_DARWIN_THREADS"
- CFLAGS="$CFLAGS -traditional-cpp -DHAVE_DARWIN_THREADS -D_P1003_1B_VISIBLE"
- CXXFLAGS="$CXXFLAGS -traditional-cpp -DHAVE_DARWIN_THREADS -D_P1003_1B_VISIBLE"
- MAX_C_OPTIMIZE="-O"
- with_named_curses=""
- fi
- ;;
- *freebsd*)
- echo "Adding fix for interrupted reads"
- CXXFLAGS="$CXXFLAGS -DMYSQLD_NET_RETRY_COUNT=1000000"
- ;;
- *bsdi*)
- echo "Adding fix for BSDI"
- CFLAGS="$CFLAGS -D__BSD__ -DHAVE_BROKEN_REALPATH"
- cat >> confdefs.h <<EOF
- #define SOCKOPT_OPTLEN_TYPE size_t
- EOF
- ;;
- *sgi-irix6*)
- if test "$with_named_thread" = "no"
- then
- echo "Using --with-named-thread=-lpthread"
- with_named_thread="-lpthread"
- fi
- CXXFLAGS="-D_BOOL"
- ;;
- *aix4.3*)
- echo "Adding defines for AIX"
- CFLAGS="$CFLAGS -Wa,-many -DUNDEF_HAVE_INITGROUPS"
- CXXFLAGS="$CXXFLAGS -Wa,-many -DUNDEF_HAVE_INITGROUPS"
- ;;
- esac
- #---START: Used in for client configure
- # Check if we threads are in libc or if we should use
- # -lpthread, -lpthreads or mit-pthreads
- # We have to check libc last because else it fails on Solaris 2.6
- with_posix_threads="no"
- # Hack for DEC-UNIX (OSF1)
- if test "$with_named_thread" = "no" -a "$with_mit_threads" = "no"
- then
- # Look for LinuxThreads.
- echo $ac_n "checking "LinuxThreads"""... $ac_c" 1>&6
- echo "configure:5374: checking "LinuxThreads"" >&5
- res=`grep Linuxthreads /usr/include/pthread.h 2>/dev/null | wc -l`
- if test "$res" -gt 0
- then
- echo "$ac_t"""Found"" 1>&6
- cat >> confdefs.h <<EOF
- #define HAVE_LINUXTHREADS 1
- EOF
- # Linux 2.0 sanity check
- cat > conftest.$ac_ext <<EOF
- #line 5385 "configure"
- #include "confdefs.h"
- #include <sched.h>
- int main() {
- int a = sched_get_priority_min(1);
- ; return 0; }
- EOF
- if { (eval echo configure:5392: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- :
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- { echo "configure: error: Syntax error in sched.h. Change _P to __P in the /usr/include/sched.h file. See the Installation chapter in the Reference Manual" 1>&2; exit 1; }
- fi
- rm -f conftest*
- # RedHat 5.0 does not work with dynamic linking of this. -static also
- # gives a spped increase in linux so it does not hurt on other systems.
- with_named_thread="-lpthread"
- else
- echo "$ac_t"""Not found"" 1>&6
- # If this is a linux machine we should barf
- if test "$IS_LINUX" = "true"
- then
- { echo "configure: error: This is a linux system and Linuxthreads was not
- found. On linux Linuxthreads should be used. So install Linuxthreads
- (or a new glibc) and try again. See the Installation chapter in the
- Reference Manual." 1>&2; exit 1; }
- else
- echo $ac_n "checking "DEC threads"""... $ac_c" 1>&6
- echo "configure:5415: checking "DEC threads"" >&5
- if test -f /usr/shlib/libpthread.so -a -f /usr/lib/libmach.a -a -f /usr/ccs/lib/cmplrs/cc/libexc.a
- then
- with_named_thread="-lpthread -lmach -lexc"
- #with_named_thread="-lpthread -lmach -lexc -lc"
- cat >> confdefs.h <<EOF
- #define HAVE_DEC_THREADS 1
- EOF
- echo "$ac_t"""yes"" 1>&6
- else
- echo "$ac_t"""no"" 1>&6
- echo $ac_n "checking "DEC 3.2 threads"""... $ac_c" 1>&6
- echo "configure:5428: checking "DEC 3.2 threads"" >&5
- if test -f /usr/shlib/libpthreads.so -a -f /usr/lib/libmach.a -a -f /usr/ccs/lib/cmplrs/cc/libexc.a
- then
- with_named_thread="-lpthreads -lmach -lc_r"
- cat >> confdefs.h <<EOF
- #define HAVE_DEC_THREADS 1
- EOF
- cat >> confdefs.h <<EOF
- #define HAVE_DEC_3_2_THREADS 1
- EOF
- with_osf32_threads="yes"
- MYSQLD_DEFAULT_SWITCHES="--skip-thread-priority"
- echo "$ac_t"""yes"" 1>&6
- else
- echo "$ac_t"""no"" 1>&6
- fi
- fi
- fi
- fi
- fi
- # Hack for SCO UNIX
- if test "$with_named_thread" = "no"
- then
- echo $ac_n "checking "SCO threads"""... $ac_c" 1>&6
- echo "configure:5457: checking "SCO threads"" >&5
- if expr "$SYSTEM_TYPE" : ".*sco.*" > /dev/null
- then
- if test -f /usr/lib/libgthreads.a -o -f /usr/lib/libgthreads.so
- then
-
- LIBS=`echo " $LIBS " | sed -e 's/ -lsocket / /g'`
- with_named_thread="-lgthreads -lsocket -lgthreads"
- # sched.h conflicts with fsu-threads
- touch ./include/sched.h
- # We must have gcc
- if expr "$CC" : ".*gcc.*"
- then
- echo "$ac_t"""yes"" 1>&6
- else
- { echo "configure: error: On SCO UNIX MySQL must be compiled with gcc. See the Installation chapter in the Reference Manual." 1>&2; exit 1; };
- fi
- echo "$ac_t"""yes"" 1>&6
- elif test -f /usr/local/lib/libpthread.a -o -f /usr/local/lib/libpthread.so
- then
-
- LIBS=`echo " $LIBS " | sed -e 's/ -lsocket / /g'`
- with_named_thread="-lpthread -lsocket"
- # sched.h conflicts with fsu-threads
- # touch ./include/sched.h
- echo $ac_n "checking "for gcc"""... $ac_c" 1>&6
- echo "configure:5487: checking "for gcc"" >&5
- # We must have gcc
- if expr "$CC" : ".*gcc.*"
- then
- echo "$ac_t"""yes"" 1>&6
- else
- { echo "configure: error: On SCO UNIX MySQL must be compiled with gcc. See the Installation chapter in the Reference Manual." 1>&2; exit 1; };
- fi
- echo "$ac_t"""yes"" 1>&6
- # Hack for SCO UnixWare 7.1
- #
- elif test "$with_named_thread" = "no"
- then
- echo "$ac_t"""no"" 1>&6
- echo $ac_n "checking "SCO UnixWare 7.1 native threads"""... $ac_c" 1>&6
- echo "configure:5502: checking "SCO UnixWare 7.1 native threads"" >&5
- if expr "$SYSTEM_TYPE" : ".*sco.*" > /dev/null
- then
- if test -f /usr/lib/libthread.so -o -f /usr/lib/libthreadT.so
- then
-
- LIBS=`echo " $LIBS " | sed -e 's/ -lsocket / /g'`
- if expr "$CC" : ".*gcc.*"
- then
- with_named_thread="-pthread -lsocket -lnsl"
- else
- with_named_thread="-Kthread -lsocket -lnsl"
- fi
- if expr "$SYSTEM_TYPE" : ".*unixware7.0.0" > /dev/null
- then
- cat >> confdefs.h <<EOF
- #define HAVE_UNIXWARE7_THREADS 1
- EOF
- else
- cat >> confdefs.h <<EOF
- #define HAVE_UNIXWARE7_POSIX 1
- EOF
- fi
- echo "$ac_t"""yes"" 1>&6
- # We must have cc
- echo $ac_n "checking "for gcc"""... $ac_c" 1>&6
- echo "configure:5531: checking "for gcc"" >&5
- if expr "$CC" : ".*gcc.*"
- then
- CC="$CC -pthread -DUNIXWARE_7";
- CXX="$CXX -pthread -DUNIXWARE_7";
- else
- CC="$CC -Kthread -DUNIXWARE_7";
- CXX="$CXX -Kthread -DUNIXWARE_7";
- fi
- else
- { echo "configure: error: Can't find thread libs on SCO UnixWare7. See the Installation chapter in the Reference Manual." 1>&2; exit 1; };
- fi
- else
- echo "$ac_t"""no"" 1>&6
- fi
- else
- { echo "configure: error: On SCO UNIX MySQL requires that the FSUThreads package is installed. See the Installation chapter in the Reference Manual." 1>&2; exit 1; };
- fi
- else
- echo "$ac_t"""no"" 1>&6
- fi
- fi
- # Hack for SCO UnixWare7
- #
- if test "$with_named_thread" = "no"
- then
- echo $ac_n "checking "SCO UnixWare7 native threads"""... $ac_c" 1>&6
- echo "configure:5558: checking "SCO UnixWare7 native threads"" >&5
- if expr "$SYSTEM_TYPE" : ".*unixware7*" > /dev/null
- then
- if test -f /usr/lib/libthread.so -o -f /usr/lib/libthreadT.so
- then
-
- LIBS=`echo " $LIBS " | sed -e 's/ -lsocket / /g'`
- with_named_thread="-Kthread -lsocket -lnsl"
- if expr "$SYSTEM_TYPE" : ".*unixware7.0.0" > /dev/null
- then
- cat >> confdefs.h <<EOF
- #define HAVE_UNIXWARE7_THREADS 1
- EOF
- else
- cat >> confdefs.h <<EOF
- #define HAVE_UNIXWARE7_POSIX 1
- EOF
- fi
- # We must have cc
- echo $ac_n "checking "for gcc"""... $ac_c" 1>&6
- echo "configure:5581: checking "for gcc"" >&5
- if expr "$CC" : ".*gcc.*"
- then
- { echo "configure: error: On SCO UnixWare7 MySQL must be compiled with cc. See the Installation chapter in the Reference Manual." 1>&2; exit 1; };
- else
- CC="$CC -Kthread -DUNIXWARE_7";
- CXX="$CXX -Kthread -DUNIXWARE_7";
- fi
- echo "$ac_t"""yes"" 1>&6
- else
- { echo "configure: error: Can't find thread libs on SCO UnixWare7. See the Installation chapter in the Reference Manual." 1>&2; exit 1; };
- fi
- else
- echo "$ac_t"""no"" 1>&6
- fi
- fi
- # Hack for Siemens UNIX
- if test "$with_named_thread" = "no" -a "$with_mit_threads" = "no"
- then
- echo $ac_n "checking "Siemens threads"""... $ac_c" 1>&6
- echo "configure:5602: checking "Siemens threads"" >&5
- if test -f /usr/lib/libxnet.so -a "$SYSTEM_TYPE" = "sni-sysv4"
- then
- LIBS="-lxnet $LIBS"
- NON_THREADED_CLIENT_LIBS="$NON_THREADED_CLIENT_LIBS -lxnet"
- with_named_thread="-Kthread $LDFLAGS -lxnet"
- LD_FLAGS=""
- CFLAGS="-Kthread $CFLAGS"
- CXXFLAGS="-Kthread $CXXFLAGS"
- echo "$ac_t"""yes"" 1>&6
- else
- echo "$ac_t"""no"" 1>&6
- fi
- fi
- # Use library named -lpthread
- if test "$with_named_thread" = "no" -a "$with_pthread" = "yes"
- then
- with_named_thread="-lpthread"
- fi
- #---END:
- # Hack for Solaris >= 2.5
- # We want both the new and the old interface
-
- if test "$with_named_thread" = "no" -a "$with_mit_threads" = "no"
- then
- echo $ac_n "checking "Solaris threads"""... $ac_c" 1>&6
- echo "configure:5631: checking "Solaris threads"" >&5
- if test -f /usr/lib/libpthread.so -a -f /usr/lib/libthread.so
- then
- with_named_thread="-lpthread -lthread"
- echo "$ac_t"""yes"" 1>&6
- else
- echo "$ac_t"""no"" 1>&6
- fi
- fi
- # Should we use named pthread library ?
- echo $ac_n "checking "named thread libs:"""... $ac_c" 1>&6
- echo "configure:5643: checking "named thread libs:"" >&5
- if test "$with_named_thread" != "no"
- then
- LIBS="$LIBS $with_named_thread"
- with_posix_threads="yes"
- with_mit_threads="no"
- echo "$ac_t"""$with_named_thread"" 1>&6
- else
- echo "$ac_t"""no"" 1>&6
- if test "$with_mit_threads" = "no"
- then
- # pthread_create is in standard libraries (As in BSDI 3.0)
- echo $ac_n "checking "for pthread_create in -libc"""... $ac_c" 1>&6
- echo "configure:5656: checking "for pthread_create in -libc"" >&5;
- cat > conftest.$ac_ext <<EOF
- #line 5658 "configure"
- #include "confdefs.h"
- #include <pthread.h>
- int main() {
- (void) pthread_create((pthread_t*) 0,(pthread_attr_t*) 0, 0, 0);
- ; return 0; }
- EOF
- if { (eval echo configure:5665: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- with_posix_threads=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- with_posix_threads=no
- fi
- rm -f conftest*
- echo "$ac_t"""$with_posix_threads"" 1>&6
- if test "$with_posix_threads" = "no"
- then
- echo $ac_n "checking "for pthread_create in -lpthread"""... $ac_c" 1>&6
- echo "configure:5679: checking "for pthread_create in -lpthread"" >&5;
- ac_save_LIBS="$LIBS"
- LIBS="$LIBS -lpthread"
- cat > conftest.$ac_ext <<EOF
- #line 5683 "configure"
- #include "confdefs.h"
- #include <pthread.h>
- int main() {
- (void) pthread_create((pthread_t*) 0,(pthread_attr_t*) 0, 0, 0);
- ; return 0; }
- EOF
- if { (eval echo configure:5690: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- with_posix_threads=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- with_posix_threads=no
- fi
- rm -f conftest*
- echo "$ac_t"""$with_posix_threads"" 1>&6
- if test "$with_posix_threads" = "no"
- then
- LIBS=" $ac_save_LIBS -lpthreads"
- echo $ac_n "checking "for pthread_create in -lpthreads"""... $ac_c" 1>&6
- echo "configure:5705: checking "for pthread_create in -lpthreads"" >&5;
- cat > conftest.$ac_ext <<EOF
- #line 5707 "configure"
- #include "confdefs.h"
- #include <pthread.h>
- int main() {
- pthread_create((pthread_t*) 0,(pthread_attr_t*) 0, 0, 0);
- ; return 0; }
- EOF
- if { (eval echo configure:5714: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- with_posix_threads=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- with_posix_threads=no
- fi
- rm -f conftest*
- echo "$ac_t"""$with_posix_threads"" 1>&6
- if test "$with_posix_threads" = "no"
- then
- # This is for FreeBSD
- LIBS="$ac_save_LIBS -pthread"
- echo $ac_n "checking "for pthread_create in -pthread"""... $ac_c" 1>&6
- echo "configure:5730: checking "for pthread_create in -pthread"" >&5;
- cat > conftest.$ac_ext <<EOF
- #line 5732 "configure"
- #include "confdefs.h"
- #include <pthread.h>
- int main() {
- pthread_create((pthread_t*) 0,(pthread_attr_t*) 0, 0, 0);
- ; return 0; }
- EOF
- if { (eval echo configure:5739: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- with_posix_threads=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- with_posix_threads=no
- fi
- rm -f conftest*
- echo "$ac_t"""$with_posix_threads"" 1>&6
- if test "$with_posix_threads" = "no"
- then
- with_mit_threads="yes"
- LIBS="$ac_save_LIBS"
- fi
- fi
- fi
- fi
- fi
- fi
- #---START: Used in for client configure
- # Must be checked after, because strtok_r may be in -lpthread
- # On AIX strtok_r is in libc_r
- my_save_LIBS="$LIBS"
- echo $ac_n "checking for strtok_r in -lpthread""... $ac_c" 1>&6
- echo "configure:5767: checking for strtok_r in -lpthread" >&5
- ac_lib_var=`echo pthread'_'strtok_r | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lpthread $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 5775 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char strtok_r();
- int main() {
- strtok_r()
- ; return 0; }
- EOF
- if { (eval echo configure:5786: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g'
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_lib 1
- EOF
- LIBS="-lpthread $LIBS"
- else
- echo "$ac_t""no" 1>&6
- fi
- LIBS="$my_save_LIBS"
- if test "$ac_cv_lib_pthread_strtok_r" = "no"
- then
- my_save_LIBS="$LIBS"
- echo $ac_n "checking for strtok_r in -lc_r""... $ac_c" 1>&6
- echo "configure:5818: checking for strtok_r in -lc_r" >&5
- ac_lib_var=`echo c_r'_'strtok_r | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-lc_r $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 5826 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char strtok_r();
- int main() {
- strtok_r()
- ; return 0; }
- EOF
- if { (eval echo configure:5837: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo c_r | sed -e 's/[^a-zA-Z0-9_]/_/g'
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_lib 1
- EOF
- LIBS="-lc_r $LIBS"
- else
- echo "$ac_t""no" 1>&6
- fi
- if test "$with_osf32_threads" = "yes" -o "$target_os" = "FreeBSD" -o "$target_os" = "freebsd"
- then
- LIBS="$my_save_LIBS"
- fi
- for ac_func in strtok_r pthread_init
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:5871: checking for $ac_func" >&5
- if eval "test "`echo '$''{'ac_cv_func_$ac_func'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 5876 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:5899: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- else
- for ac_func in strtok_r
- do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:5927: checking for $ac_func" >&5
- if eval "test "`echo '$''{'ac_cv_func_$ac_func'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 5932 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:5955: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_func 1
- EOF
-
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- fi
- #---END:
- # for user definable functions (must be checked after threads on AIX)
- echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
- echo "configure:5984: checking for dlopen in -ldl" >&5
- ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
- if eval "test "`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_save_LIBS="$LIBS"
- LIBS="-ldl $LIBS"
- cat > conftest.$ac_ext <<EOF
- #line 5992 "configure"
- #include "confdefs.h"
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char dlopen();
- int main() {
- dlopen()
- ; return 0; }
- EOF
- if { (eval echo configure:6003: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_lib_$ac_lib_var=no"
- fi
- rm -f conftest*
- LIBS="$ac_save_LIBS"
- fi
- if eval "test "`echo '$ac_cv_lib_'$ac_lib_var`" = yes"; then
- echo "$ac_t""yes" 1>&6
- ac_tr_lib=HAVE_LIB`echo dl | sed -e 's/[^a-zA-Z0-9_]/_/g'
- -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
- cat >> confdefs.h <<EOF
- #define $ac_tr_lib 1
- EOF
- LIBS="-ldl $LIBS"
- else
- echo "$ac_t""no" 1>&6
- fi
- # System characteristics
- echo $ac_n "checking for restartable system calls""... $ac_c" 1>&6
- echo "configure:6033: checking for restartable system calls" >&5
- if eval "test "`echo '$''{'ac_cv_sys_restartable_syscalls'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test "$cross_compiling" = yes; then
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- #line 6041 "configure"
- #include "confdefs.h"
- /* Exit 0 (true) if wait returns something other than -1,
- i.e. the pid of the child, which means that wait was restarted
- after getting the signal. */
- #include <sys/types.h>
- #include <signal.h>
- ucatch (isig) { }
- main () {
- int i = fork (), status;
- if (i == 0) { sleep (3); kill (getppid (), SIGINT); sleep (3); exit (0); }
- signal (SIGINT, ucatch);
- status = wait(&i);
- if (status == -1) wait(&i);
- exit (status == -1);
- }
- EOF
- if { (eval echo configure:6059: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- ac_cv_sys_restartable_syscalls=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_sys_restartable_syscalls=no
- fi
- rm -fr conftest*
- fi
- fi
- echo "$ac_t""$ac_cv_sys_restartable_syscalls" 1>&6
- if test $ac_cv_sys_restartable_syscalls = yes; then
- cat >> confdefs.h <<EOF
- #define HAVE_RESTARTABLE_SYSCALLS 1
- EOF
- fi
- # Build optimized or debug version ?
- # First check for gcc and g++
- if test "$ac_cv_prog_gcc" = "yes"
- then
- DEBUG_CFLAGS="-g"
- DEBUG_OPTIMIZE_CC="-O"
- OPTIMIZE_CFLAGS="$MAX_C_OPTIMIZE"
- else
- DEBUG_CFLAGS="-g"
- DEBUG_OPTIMIZE_CC=""
- OPTIMIZE_CFLAGS="-O"
- fi
- if test "$ac_cv_prog_cxx_g" = "yes"
- then
- DEBUG_CXXFLAGS="-g"
- DEBUG_OPTIMIZE_CXX="-O"
- OPTIMIZE_CXXFLAGS="-O3"
- else
- DEBUG_CXXFLAGS="-g"
- DEBUG_OPTIMIZE_CXX=""
- OPTIMIZE_CXXFLAGS="-O"
- fi
- # Check whether --with-debug or --without-debug was given.
- if test "${with_debug+set}" = set; then
- withval="$with_debug"
- with_debug=$withval
- else
- with_debug=no
- fi
- if test "$with_debug" = "yes"
- then
- # Medium debug.
- CFLAGS="$DEBUG_CFLAGS $DEBUG_OPTIMIZE_CC -DDBUG_ON -DSAFE_MUTEX $CFLAGS"
- CXXFLAGS="$DEBUG_CXXFLAGS $DEBUG_OPTIMIZE_CXX -DSAFE_MUTEX $CXXFLAGS"
- elif test "$with_debug" = "full"
- then
- # Full debug. Very slow in some cases
- CFLAGS="$DEBUG_CFLAGS -DDBUG_ON -DSAFE_MUTEX -DSAFEMALLOC $CFLAGS"
- CXXFLAGS="$DEBUG_CXXFLAGS -DSAFE_MUTEX -DSAFEMALLOC $CXXFLAGS"
- else
- # Optimized version. No debug
- CFLAGS="$OPTIMIZE_CFLAGS -DDBUG_OFF $CFLAGS"
- CXXFLAGS="$OPTIMIZE_CXXFLAGS -DDBUG_OFF $CXXFLAGS"
- fi
- # Force static compilation to avoid linking probles/get more speed
- # Check whether --with-mysqld-ldflags or --without-mysqld-ldflags was given.
- if test "${with_mysqld_ldflags+set}" = set; then
- withval="$with_mysqld_ldflags"
- MYSQLD_EXTRA_LDFLAGS=$withval
- else
- MYSQLD_EXTRA_LDFLAGS=
- fi
- # Check whether --with-client-ldflags or --without-client-ldflags was given.
- if test "${with_client_ldflags+set}" = set; then
- withval="$with_client_ldflags"
- CLIENT_EXTRA_LDFLAGS=$withval
- else
- CLIENT_EXTRA_LDFLAGS=
- fi
- # Avoid stupid bug on some OS
- # Check whether --with-low-memory or --without-low-memory was given.
- if test "${with_low_memory+set}" = set; then
- withval="$with_low_memory"
- with_lowmem=$withval
- else
- with_lowmem=no
- fi
- if test "$with_lowmem" = "yes"
- then
- if test "$ac_cv_prog_gcc" = "yes"
- then
- LM_CFLAGS="-fno-inline"
- else
- LM_CFLAGS="-O0"
- fi
- else
- LM_CFLAGS=""
- fi
- # Check whether --with-comment or --without-comment was given.
- if test "${with_comment+set}" = set; then
- withval="$with_comment"
- with_comment=$withval
- else
- with_comment=no
- fi
- if test "$with_comment" != "no"
- then
- COMPILATION_COMMENT=$with_comment
- else
- COMPILATION_COMMENT="Source distribution"
- fi
- echo $ac_n "checking "need of special linking flags"""... $ac_c" 1>&6
- echo "configure:6188: checking "need of special linking flags"" >&5
- if test "$IS_LINUX" = "true"
- then
- LDFLAGS="$LDFLAGS -rdynamic"
- echo "$ac_t"""-rdynamic"" 1>&6
- else
- echo "$ac_t"""none"" 1>&6
- fi
- echo $ac_n "checking for working const""... $ac_c" 1>&6
- echo "configure:6198: checking for working const" >&5
- if eval "test "`echo '$''{'ac_cv_c_const'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 6203 "configure"
- #include "confdefs.h"
- int main() {
- /* Ultrix mips cc rejects this. */
- typedef int charset[2]; const charset x;
- /* SunOS 4.1.1 cc rejects this. */
- char const *const *ccp;
- char **p;
- /* NEC SVR4.0.2 mips cc rejects this. */
- struct point {int x, y;};
- static struct point const zero = {0,0};
- /* AIX XL C 1.02.0.0 rejects this.
- It does not let you subtract one const X* pointer from another in an arm
- of an if-expression whose if-part is not a constant expression */
- const char *g = "string";
- ccp = &g + (g ? g-g : 0);
- /* HPUX 7.0 cc rejects these. */
- ++ccp;
- p = (char**) ccp;
- ccp = (char const *const *) p;
- { /* SCO 3.2v4 cc rejects this. */
- char *t;
- char const *s = 0 ? (char *) 0 : (char const *) 0;
- *t++ = 0;
- }
- { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
- int x[] = {25, 17};
- const int *foo = &x[0];
- ++foo;
- }
- { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
- typedef const int *iptr;
- iptr p = 0;
- ++p;
- }
- { /* AIX XL C 1.02.0.0 rejects this saying
- "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
- struct s { int j; const int *ap[3]; };
- struct s *b; b->j = 5;
- }
- { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
- const int foo = 10;
- }
- ; return 0; }
- EOF
- if { (eval echo configure:6252: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_c_const=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_c_const=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_c_const" 1>&6
- if test $ac_cv_c_const = no; then
- cat >> confdefs.h <<EOF
- #define const
- EOF
- fi
- echo $ac_n "checking for inline""... $ac_c" 1>&6
- echo "configure:6273: checking for inline" >&5
- if eval "test "`echo '$''{'ac_cv_c_inline'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_cv_c_inline=no
- for ac_kw in inline __inline__ __inline; do
- cat > conftest.$ac_ext <<EOF
- #line 6280 "configure"
- #include "confdefs.h"
- int main() {
- } $ac_kw foo() {
- ; return 0; }
- EOF
- if { (eval echo configure:6287: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_c_inline=$ac_kw; break
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -f conftest*
- done
- fi
- echo "$ac_t""$ac_cv_c_inline" 1>&6
- case "$ac_cv_c_inline" in
- inline | yes) ;;
- no) cat >> confdefs.h <<EOF
- #define inline
- EOF
- ;;
- *) cat >> confdefs.h <<EOF
- #define inline $ac_cv_c_inline
- EOF
- ;;
- esac
- echo $ac_n "checking for off_t""... $ac_c" 1>&6
- echo "configure:6313: checking for off_t" >&5
- if eval "test "`echo '$''{'ac_cv_type_off_t'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 6318 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #if STDC_HEADERS
- #include <stdlib.h>
- #include <stddef.h>
- #endif
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
- rm -rf conftest*
- ac_cv_type_off_t=yes
- else
- rm -rf conftest*
- ac_cv_type_off_t=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_type_off_t" 1>&6
- if test $ac_cv_type_off_t = no; then
- cat >> confdefs.h <<EOF
- #define off_t long
- EOF
- fi
- echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
- echo "configure:6346: checking for st_rdev in struct stat" >&5
- if eval "test "`echo '$''{'ac_cv_struct_st_rdev'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 6351 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #include <sys/stat.h>
- int main() {
- struct stat s; s.st_rdev;
- ; return 0; }
- EOF
- if { (eval echo configure:6359: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_struct_st_rdev=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_struct_st_rdev=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
- if test $ac_cv_struct_st_rdev = yes; then
- cat >> confdefs.h <<EOF
- #define HAVE_ST_RDEV 1
- EOF
- fi
- echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
- echo "configure:6380: checking whether time.h and sys/time.h may both be included" >&5
- if eval "test "`echo '$''{'ac_cv_header_time'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 6385 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #include <sys/time.h>
- #include <time.h>
- int main() {
- struct tm *tp;
- ; return 0; }
- EOF
- if { (eval echo configure:6394: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_header_time=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_header_time=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_header_time" 1>&6
- if test $ac_cv_header_time = yes; then
- cat >> confdefs.h <<EOF
- #define TIME_WITH_SYS_TIME 1
- EOF
- fi
- echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
- echo "configure:6415: checking whether struct tm is in sys/time.h or time.h" >&5
- if eval "test "`echo '$''{'ac_cv_struct_tm'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 6420 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #include <time.h>
- int main() {
- struct tm *tp; tp->tm_sec;
- ; return 0; }
- EOF
- if { (eval echo configure:6428: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_struct_tm=time.h
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_struct_tm=sys/time.h
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_struct_tm" 1>&6
- if test $ac_cv_struct_tm = sys/time.h; then
- cat >> confdefs.h <<EOF
- #define TM_IN_SYS_TIME 1
- EOF
- fi
- # AC_CHECK_SIZEOF return 0 when it does not find the size of a
- # type. We want a error instead.
- echo $ac_n "checking size of char""... $ac_c" 1>&6
- echo "configure:6451: checking size of char" >&5
- if eval "test "`echo '$''{'ac_cv_sizeof_char'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test "$cross_compiling" = yes; then
- ac_cv_sizeof_char=1
- else
- cat > conftest.$ac_ext <<EOF
- #line 6459 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- main()
- {
- FILE *f=fopen("conftestval", "w");
- if (!f) exit(1);
- fprintf(f, "%dn", sizeof(char));
- exit(0);
- }
- EOF
- if { (eval echo configure:6470: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- ac_cv_sizeof_char=`cat conftestval`
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_sizeof_char=0
- fi
- rm -fr conftest*
- fi
- fi
- echo "$ac_t""$ac_cv_sizeof_char" 1>&6
- cat >> confdefs.h <<EOF
- #define SIZEOF_CHAR $ac_cv_sizeof_char
- EOF
- if test "$ac_cv_sizeof_char" -eq 0
- then
- { echo "configure: error: No size for char type.
- A likely cause for this could be that there isn't any
- static libraries installed. You can verify this by checking if you have libm.a
- in /lib, /usr/lib or some other standard place. If this is the problem,
- install the static libraries and try again. If this isn't the problem,
- examine config.log for possible errors. If you want to report this, use
- 'scripts/mysqlbug' and include at least the last 20 rows from config.log!" 1>&2; exit 1; }
- fi
- echo $ac_n "checking size of int""... $ac_c" 1>&6
- echo "configure:6500: checking size of int" >&5
- if eval "test "`echo '$''{'ac_cv_sizeof_int'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test "$cross_compiling" = yes; then
- ac_cv_sizeof_int=4
- else
- cat > conftest.$ac_ext <<EOF
- #line 6508 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- main()
- {
- FILE *f=fopen("conftestval", "w");
- if (!f) exit(1);
- fprintf(f, "%dn", sizeof(int));
- exit(0);
- }
- EOF
- if { (eval echo configure:6519: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- ac_cv_sizeof_int=`cat conftestval`
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_sizeof_int=0
- fi
- rm -fr conftest*
- fi
- fi
- echo "$ac_t""$ac_cv_sizeof_int" 1>&6
- cat >> confdefs.h <<EOF
- #define SIZEOF_INT $ac_cv_sizeof_int
- EOF
- if test "$ac_cv_sizeof_int" -eq 0
- then
- { echo "configure: error: "No size for int type."" 1>&2; exit 1; }
- fi
- echo $ac_n "checking size of long""... $ac_c" 1>&6
- echo "configure:6543: checking size of long" >&5
- if eval "test "`echo '$''{'ac_cv_sizeof_long'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test "$cross_compiling" = yes; then
- ac_cv_sizeof_long=4
- else
- cat > conftest.$ac_ext <<EOF
- #line 6551 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- main()
- {
- FILE *f=fopen("conftestval", "w");
- if (!f) exit(1);
- fprintf(f, "%dn", sizeof(long));
- exit(0);
- }
- EOF
- if { (eval echo configure:6562: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- ac_cv_sizeof_long=`cat conftestval`
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_sizeof_long=0
- fi
- rm -fr conftest*
- fi
- fi
- echo "$ac_t""$ac_cv_sizeof_long" 1>&6
- cat >> confdefs.h <<EOF
- #define SIZEOF_LONG $ac_cv_sizeof_long
- EOF
- if test "$ac_cv_sizeof_long" -eq 0
- then
- { echo "configure: error: "No size for long type."" 1>&2; exit 1; }
- fi
- echo $ac_n "checking size of long long""... $ac_c" 1>&6
- echo "configure:6586: checking size of long long" >&5
- if eval "test "`echo '$''{'ac_cv_sizeof_long_long'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test "$cross_compiling" = yes; then
- ac_cv_sizeof_long_long=8
- else
- cat > conftest.$ac_ext <<EOF
- #line 6594 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- main()
- {
- FILE *f=fopen("conftestval", "w");
- if (!f) exit(1);
- fprintf(f, "%dn", sizeof(long long));
- exit(0);
- }
- EOF
- if { (eval echo configure:6605: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- ac_cv_sizeof_long_long=`cat conftestval`
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_sizeof_long_long=0
- fi
- rm -fr conftest*
- fi
- fi
- echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
- cat >> confdefs.h <<EOF
- #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
- EOF
- if test "$ac_cv_sizeof_long_long" -eq 0
- then
- { echo "configure: error: "MySQL needs a long long type."" 1>&2; exit 1; }
- fi
- # off_t is not a builtin type
- echo $ac_n "checking size of off_t""... $ac_c" 1>&6
- echo "configure:6630: checking size of off_t" >&5
- if eval "test "`echo '$''{'ac_cv_sizeof_off_t'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test "$cross_compiling" = yes; then
- ac_cv_sizeof_off_t=4
- else
- cat > conftest.$ac_ext <<EOF
- #line 6638 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- #include <sys/types.h>
- #if STDC_HEADERS
- #include <stdlib.h>
- #include <stddef.h>
- #endif
- main()
- {
- FILE *f=fopen("conftestval", "w");
- if (!f) exit(1);
- fprintf(f, "%dn", sizeof(off_t));
- exit(0);
- }
- EOF
- if { (eval echo configure:6654: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- ac_cv_sizeof_off_t=`cat conftestval`
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_sizeof_off_t=0
- fi
- rm -fr conftest*
- fi
- fi
- echo "$ac_t""$ac_cv_sizeof_off_t" 1>&6
- cat >> confdefs.h <<EOF
- #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
- EOF
- if test "$ac_cv_sizeof_off_t" -eq 0
- then
- { echo "configure: error: "MySQL needs a off_t type."" 1>&2; exit 1; }
- fi
- # This always gives a warning. Ignore it unless you are cross compiling
- echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
- echo "configure:6679: checking whether byte ordering is bigendian" >&5
- if eval "test "`echo '$''{'ac_cv_c_bigendian'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- ac_cv_c_bigendian=unknown
- # See if sys/param.h defines the BYTE_ORDER macro.
- cat > conftest.$ac_ext <<EOF
- #line 6686 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #include <sys/param.h>
- int main() {
- #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
- bogus endian macros
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:6697: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- # It does; now see whether it defined to BIG_ENDIAN or not.
- cat > conftest.$ac_ext <<EOF
- #line 6701 "configure"
- #include "confdefs.h"
- #include <sys/types.h>
- #include <sys/param.h>
- int main() {
- #if BYTE_ORDER != BIG_ENDIAN
- not big endian
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:6712: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- ac_cv_c_bigendian=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_c_bigendian=no
- fi
- rm -f conftest*
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -f conftest*
- if test $ac_cv_c_bigendian = unknown; then
- if test "$cross_compiling" = yes; then
- { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
- else
- cat > conftest.$ac_ext <<EOF
- #line 6732 "configure"
- #include "confdefs.h"
- main () {
- /* Are we little or big endian? From Harbison&Steele. */
- union
- {
- long l;
- char c[sizeof (long)];
- } u;
- u.l = 1;
- exit (u.c[sizeof (long) - 1] == 1);
- }
- EOF
- if { (eval echo configure:6745: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- ac_cv_c_bigendian=no
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_c_bigendian=yes
- fi
- rm -fr conftest*
- fi
- fi
- fi
- echo "$ac_t""$ac_cv_c_bigendian" 1>&6
- if test $ac_cv_c_bigendian = yes; then
- cat >> confdefs.h <<EOF
- #define WORDS_BIGENDIAN 1
- EOF
- fi
- #---START: Used in for client configure
- # Check base type of last arg to accept
- ac_save_CXXFLAGS="$CXXFLAGS"
- echo $ac_n "checking base type of last arg to accept""... $ac_c" 1>&6
- echo "configure:6772: checking base type of last arg to accept" >&5
- if eval "test "`echo '$''{'mysql_cv_btype_last_arg_accept'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
-
- ac_ext=C
- # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CXXCPP $CPPFLAGS'
- ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cxx_cross
- if test "$ac_cv_prog_gxx" = "yes"
- then
- CXXFLAGS="$CXXFLAGS -Werror"
- fi
- mysql_cv_btype_last_arg_accept=none
- cat > conftest.$ac_ext <<EOF
- #line 6790 "configure"
- #include "confdefs.h"
- #if defined(inline)
- #undef inline
- #endif
- #include <stdlib.h>
- #include <sys/types.h>
- #include <sys/socket.h>
- int main() {
- int a = accept(1, (struct sockaddr *) 0, (socklen_t *) 0); return (a != 0);
- ; return 0; }
- EOF
- if { (eval echo configure:6803: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- mysql_cv_btype_last_arg_accept=socklen_t
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -f conftest*
- if test $mysql_cv_btype_last_arg_accept = none; then
- cat > conftest.$ac_ext <<EOF
- #line 6813 "configure"
- #include "confdefs.h"
- #if defined(inline)
- #undef inline
- #endif
- #include <stdlib.h>
- #include <sys/types.h>
- #include <sys/socket.h>
- int main() {
- int a = accept(1, (struct sockaddr *) 0, (size_t *) 0); return (a != 0);
- ; return 0; }
- EOF
- if { (eval echo configure:6826: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- mysql_cv_btype_last_arg_accept=size_t
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- fi
- rm -f conftest*
- fi
- if test $mysql_cv_btype_last_arg_accept = none; then
- mysql_cv_btype_last_arg_accept=int
- fi
- fi
- echo "$ac_t""$mysql_cv_btype_last_arg_accept" 1>&6
- ac_ext=c
- # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
- ac_cpp='$CPP $CPPFLAGS'
- ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
- ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
- cross_compiling=$ac_cv_prog_cc_cross
- cat >> confdefs.h <<EOF
- #define SOCKET_SIZE_TYPE $mysql_cv_btype_last_arg_accept
- EOF
- CXXFLAGS="$ac_save_CXXFLAGS"
- #---END:
- # Find where the stack goes
- echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
- echo "configure:6858: checking stack direction for C alloca" >&5
- if eval "test "`echo '$''{'ac_cv_c_stack_direction'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test "$cross_compiling" = yes; then
- ac_cv_c_stack_direction=0
- else
- cat > conftest.$ac_ext <<EOF
- #line 6866 "configure"
- #include "confdefs.h"
- find_stack_direction ()
- {
- static char *addr = 0;
- auto char dummy;
- if (addr == 0)
- {
- addr = &dummy;
- return find_stack_direction ();
- }
- else
- return (&dummy > addr) ? 1 : -1;
- }
- main ()
- {
- exit (find_stack_direction() < 0);
- }
- EOF
- if { (eval echo configure:6885: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- ac_cv_c_stack_direction=1
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_c_stack_direction=-1
- fi
- rm -fr conftest*
- fi
- fi
- echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
- cat >> confdefs.h <<EOF
- #define STACK_DIRECTION $ac_cv_c_stack_direction
- EOF
- # We want to skip alloca on irix unconditionally. It may work on some version..
- # Since we have heard that alloca fails on IRIX never define it on a SGI machine
- if test ! "$host_vendor" = "sgi"
- then
- # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
- # for constant arguments. Useless!
- echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
- echo "configure:6913: checking for working alloca.h" >&5
- if eval "test "`echo '$''{'ac_cv_header_alloca_h'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 6918 "configure"
- #include "confdefs.h"
- #include <alloca.h>
- int main() {
- char *p = alloca(2 * sizeof(int));
- ; return 0; }
- EOF
- if { (eval echo configure:6925: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- ac_cv_header_alloca_h=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_header_alloca_h=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
- if test $ac_cv_header_alloca_h = yes
- then
- cat >> confdefs.h <<EOF
- #define HAVE_ALLOCA 1
- EOF
- fi
-
- echo $ac_n "checking for alloca""... $ac_c" 1>&6
- echo "configure:6947: checking for alloca" >&5
- if eval "test "`echo '$''{'ac_cv_func_alloca_works'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 6952 "configure"
- #include "confdefs.h"
- #ifdef __GNUC__
- # define alloca __builtin_alloca
- #else
- # if HAVE_ALLOCA_H
- # include <alloca.h>
- # else
- # ifdef _AIX
- #pragma alloca
- # else
- # ifndef alloca /* predefined by HP cc +Olibcalls */
- char *alloca ();
- # endif
- # endif
- # endif
- #endif
-
- int main() {
- char *p = (char *) alloca(1);
- ; return 0; }
- EOF
- if { (eval echo configure:6975: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- ac_cv_func_alloca_works=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- ac_cv_func_alloca_works=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
- if test $ac_cv_func_alloca_works = yes; then
- cat >> confdefs.h <<EOF
- #define HAVE_ALLOCA 1
- EOF
- fi
-
- if test $ac_cv_func_alloca_works = no; then
- # The SVR3 libPW and SVR4 libucb both contain incompatible functions
- # that cause trouble. Some versions do not even contain alloca or
- # contain a buggy version. If you still want to use their alloca,
- # use ar to extract alloca.o from them instead of compiling alloca.c.
- ALLOCA=alloca.o
- cat >> confdefs.h <<EOF
- #define C_ALLOCA 1
- EOF
-
- echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
- echo "configure:7007: checking whether alloca needs Cray hooks" >&5
- if eval "test "`echo '$''{'ac_cv_os_cray'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 7012 "configure"
- #include "confdefs.h"
- #if defined(CRAY) && ! defined(CRAY2)
- webecray
- #else
- wenotbecray
- #endif
-
- EOF
- if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
- egrep "webecray" >/dev/null 2>&1; then
- rm -rf conftest*
- ac_cv_os_cray=yes
- else
- rm -rf conftest*
- ac_cv_os_cray=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$ac_cv_os_cray" 1>&6
- if test $ac_cv_os_cray = yes; then
- for ac_func in _getb67 GETB67 getb67; do
- echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
- echo "configure:7037: checking for $ac_func" >&5
- if eval "test "`echo '$''{'ac_cv_func_$ac_func'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 7042 "configure"
- #include "confdefs.h"
- /* System header to define __stub macros and hopefully few prototypes,
- which can conflict with char $ac_func(); below. */
- #include <assert.h>
- /* Override any gcc2 internal prototype to avoid an error. */
- /* We use char because int might match the return type of a gcc2
- builtin and then its argument prototype would still apply. */
- char $ac_func();
- int main() {
- /* The GNU C library defines this for functions which it implements
- to always fail with ENOSYS. Some functions are actually named
- something starting with __ and the normal name is an alias. */
- #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
- choke me
- #else
- $ac_func();
- #endif
- ; return 0; }
- EOF
- if { (eval echo configure:7065: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=yes"
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- eval "ac_cv_func_$ac_func=no"
- fi
- rm -f conftest*
- fi
- if eval "test "`echo '$ac_cv_func_'$ac_func`" = yes"; then
- echo "$ac_t""yes" 1>&6
- cat >> confdefs.h <<EOF
- #define CRAY_STACKSEG_END $ac_func
- EOF
- break
- else
- echo "$ac_t""no" 1>&6
- fi
- done
- fi
- fi
- else
- echo "$ac_t"""Skipped alloca tests"" 1>&6
- fi
- # Do struct timespec have members tv_sec or ts_sec
- echo $ac_n "checking if struct timespec has a ts_sec member""... $ac_c" 1>&6
- echo "configure:7097: checking if struct timespec has a ts_sec member" >&5
- if eval "test "`echo '$''{'mysql_cv_timespec_ts'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 7102 "configure"
- #include "confdefs.h"
- #include <pthread.h>
- #ifdef __cplusplus
- extern "C"
- #endif
- int main() {
- struct timespec abstime;
- abstime.ts_sec = time(NULL)+1;
- abstime.ts_nsec = 0;
- ; return 0; }
- EOF
- if { (eval echo configure:7117: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- mysql_cv_timespec_ts=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- mysql_cv_timespec_ts=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$mysql_cv_timespec_ts" 1>&6
- if test "$mysql_cv_timespec_ts" = "yes"
- then
- cat >> confdefs.h <<EOF
- #define HAVE_TIMESPEC_TS_SEC 1
- EOF
- fi
- # Do we have the tzname variable
- echo $ac_n "checking if we have tzname variable""... $ac_c" 1>&6
- echo "configure:7140: checking if we have tzname variable" >&5
- if eval "test "`echo '$''{'mysql_cv_tzname'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- cat > conftest.$ac_ext <<EOF
- #line 7145 "configure"
- #include "confdefs.h"
- #include <time.h>
- #ifdef __cplusplus
- extern "C"
- #endif
- int main() {
- tzset();
- return tzname[0] != 0;
- ; return 0; }
- EOF
- if { (eval echo configure:7158: "$ac_compile") 1>&5; (eval $ac_compile) 2>&5; }; then
- rm -rf conftest*
- mysql_cv_tzname=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -rf conftest*
- mysql_cv_tzname=no
- fi
- rm -f conftest*
- fi
- echo "$ac_t""$mysql_cv_tzname" 1>&6
- if test "$mysql_cv_tzname" = "yes"
- then
- cat >> confdefs.h <<EOF
- #define HAVE_TZNAME 1
- EOF
- fi
- # Do the system files define ulong
- echo $ac_n "checking for type ulong""... $ac_c" 1>&6
- echo "configure:7181: checking for type ulong" >&5
- if eval "test "`echo '$''{'ac_cv_ulong'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test "$cross_compiling" = yes; then
- ac_cv_ulong=no
- else
- cat > conftest.$ac_ext <<EOF
- #line 7189 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- #include <sys/types.h>
- main()
- {
- ulong foo;
- foo++;
- exit(0);
- }
- EOF
- if { (eval echo configure:7200: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- ac_cv_ulong=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_ulong=no
- fi
- rm -fr conftest*
- fi
- fi
- echo "$ac_t""$ac_cv_ulong" 1>&6
- if test "$ac_cv_ulong" = "yes"
- then
- cat >> confdefs.h <<EOF
- #define HAVE_ULONG 1
- EOF
- fi
- # Do the system files define uchar
- echo $ac_n "checking for type uchar""... $ac_c" 1>&6
- echo "configure:7225: checking for type uchar" >&5
- if eval "test "`echo '$''{'ac_cv_uchar'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test "$cross_compiling" = yes; then
- ac_cv_uchar=no
- else
- cat > conftest.$ac_ext <<EOF
- #line 7233 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- #include <sys/types.h>
- main()
- {
- uchar foo;
- foo++;
- exit(0);
- }
- EOF
- if { (eval echo configure:7244: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- ac_cv_uchar=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_uchar=no
- fi
- rm -fr conftest*
- fi
- fi
- echo "$ac_t""$ac_cv_uchar" 1>&6
- if test "$ac_cv_uchar" = "yes"
- then
- cat >> confdefs.h <<EOF
- #define HAVE_UCHAR 1
- EOF
- fi
- # Do the system files define uint
- echo $ac_n "checking for type uint""... $ac_c" 1>&6
- echo "configure:7269: checking for type uint" >&5
- if eval "test "`echo '$''{'ac_cv_uint'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test "$cross_compiling" = yes; then
- ac_cv_uint=no
- else
- cat > conftest.$ac_ext <<EOF
- #line 7277 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- #include <sys/types.h>
- main()
- {
- uint foo;
- foo++;
- exit(0);
- }
- EOF
- if { (eval echo configure:7288: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- ac_cv_uint=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_uint=no
- fi
- rm -fr conftest*
- fi
- fi
- echo "$ac_t""$ac_cv_uint" 1>&6
- if test "$ac_cv_uint" = "yes"
- then
- cat >> confdefs.h <<EOF
- #define HAVE_UINT 1
- EOF
- fi
- #Check for fp_except in ieeefp.h
- echo $ac_n "checking for type fp_except""... $ac_c" 1>&6
- echo "configure:7313: checking for type fp_except" >&5
- if eval "test "`echo '$''{'ac_cv_fp_except'+set}'`" = set"; then
- echo $ac_n "(cached) $ac_c" 1>&6
- else
- if test "$cross_compiling" = yes; then
- ac_cv_fp_except=no
- else
- cat > conftest.$ac_ext <<EOF
- #line 7321 "configure"
- #include "confdefs.h"
- #include <stdio.h>
- #include <sys/types.h>
- #include <ieeefp.h>
- main()
- {
- fp_except foo;
- foo++;
- exit(0);
- }
- EOF
- if { (eval echo configure:7333: "$ac_link") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
- then
- ac_cv_fp_except=yes
- else
- echo "configure: failed program was:" >&5
- cat conftest.$ac_ext >&5
- rm -fr conftest*
- ac_cv_fp_except=no
- fi