main ()
{
char *data, *data2, *data3;
+ const char *cdata2;
int i, pagesize;
int fd, fd2;
fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
if (fd2 < 0)
return 4;
- data2 = "";
- if (write (fd2, data2, 1) != 1)
+ cdata2 = "";
+ if (write (fd2, cdata2, 1) != 1)
return 5;
- data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
+ data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
if (data2 == MAP_FAILED)
return 6;
for (i = 0; i < pagesize; ++i)
rm -f core conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
- LIBS="${saved_LIBS}"
- CFLAGS="${saved_CFLAGS}"
-
if test "$support_tls" = "yes"; then
$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
$as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
fi
-else
- support_tls="no"
- support_crypto="no"
- OPENSSL_LIBS=""
- OPENSSL_INC=""
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
-$as_echo "$support_tls" >&6; }
-if test "$support_tls" = "no"; then
- OPENSSL_LIBS=""
- OPENSSL_INC=""
-fi
-if test "$support_crypto" = "no"; then
- OPENSSL_LIBS=""
- OPENSSL_INC=""
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lssl" >&5
+ if test "$support_crypto" = "yes"; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lssl" >&5
$as_echo_n "checking for EVP_PKEY_encrypt_old in -lssl... " >&6; }
if test "${ac_cv_lib_ssl_EVP_PKEY_encrypt_old+set}" = set; then :
$as_echo_n "(cached) " >&6
fi
+ fi
+
+ LIBS="${saved_LIBS}"
+ CFLAGS="${saved_CFLAGS}"
+else
+ support_tls="no"
+ support_crypto="no"
+ OPENSSL_LIBS=""
+ OPENSSL_INC=""
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
+$as_echo "$support_tls" >&6; }
+
+if test "$support_tls" = "no"; then
+ OPENSSL_LIBS=""
+ OPENSSL_INC=""
+fi
+if test "$support_crypto" = "no"; then
+ OPENSSL_LIBS=""
+ OPENSSL_INC=""
fi
fi
+if test x$support_batch_insert = xno; then
+ if test x$DB_TYPE = xmysql; then
+ A=`test -f $MYSQL_LIBDIR/libmysqlclient_r.so && nm -D $MYSQL_LIBDIR/libmysqlclient_r.so | grep pthread_mutex_lock`
+ pkg=$?
+ if test $pkg = 0; then
+ support_batch_insert=yes
+ # Check whether --enable-batch-insert was given.
+if test "${enable_batch_insert+set}" = set; then :
+ enableval=$enable_batch_insert;
+ if test x$enableval = xno; then
+ support_batch_insert=no
+ else
+ support_batch_insert=yes
+ fi
+
+
+fi
+
+ fi
+ fi
+fi
+
saved_LIBS="${LIBS}"
LIBS="${saved_LIBS} ${SQL_LFLAGS}"
if test x$DB_TYPE = xpostgresql; then
+ support_batch_insert=yes
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
$as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then :
fi
- if test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
- then
- support_batch_insert=no
+ test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"
+ pkg=$?
+ if test $pkg = 0; then
+ # Check whether --enable-batch-insert was given.
+if test "${enable_batch_insert+set}" = set; then :
+ enableval=$enable_batch_insert;
+ if test x$enableval = xno; then
+ support_batch_insert=no
+ fi
+
+
+fi
+
+ else
+ support_batch_insert=no
fi
fi
fi
- test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
+ test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"
pkg=$?
fi
fi
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
+$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
+if test "${ac_cv_c_bigendian+set}" = set; then :
+ $as_echo_n "(cached) " >&6
+else
+ ac_cv_c_bigendian=unknown
+ # See if we're dealing with a universal compiler.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#ifndef __APPLE_CC__
+ not a universal capable compiler
+ #endif
+ typedef int dummy;
+
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+
+ # Check for potential -arch flags. It is not universal unless
+ # there are at least two -arch flags with different values.
+ ac_arch=
+ ac_prev=
+ for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
+ if test -n "$ac_prev"; then
+ case $ac_word in
+ i?86 | x86_64 | ppc | ppc64)
+ if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
+ ac_arch=$ac_word
+ else
+ ac_cv_c_bigendian=universal
+ break
+ fi
+ ;;
+ esac
+ ac_prev=
+ elif test "x$ac_word" = "x-arch"; then
+ ac_prev=arch
+ fi
+ done
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ if test $ac_cv_c_bigendian = unknown; then
+ # See if sys/param.h defines the BYTE_ORDER macro.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <sys/types.h>
+ #include <sys/param.h>
+
+int
+main ()
+{
+#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
+ && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
+ && LITTLE_ENDIAN)
+ bogus endian macros
+ #endif
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ # It does; now see whether it defined to BIG_ENDIAN or not.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <sys/types.h>
+ #include <sys/param.h>
+
+int
+main ()
+{
+#if BYTE_ORDER != BIG_ENDIAN
+ not big endian
+ #endif
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_cv_c_bigendian=yes
+else
+ ac_cv_c_bigendian=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ fi
+ if test $ac_cv_c_bigendian = unknown; then
+ # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <limits.h>
+
+int
+main ()
+{
+#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
+ bogus endian macros
+ #endif
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ # It does; now see whether it defined to _BIG_ENDIAN or not.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+#include <limits.h>
+
+int
+main ()
+{
+#ifndef _BIG_ENDIAN
+ not big endian
+ #endif
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ ac_cv_c_bigendian=yes
+else
+ ac_cv_c_bigendian=no
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+ fi
+ if test $ac_cv_c_bigendian = unknown; then
+ # Compile a test program.
+ if test "$cross_compiling" = yes; then :
+ # Try to guess by grepping values from an object file.
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+short int ascii_mm[] =
+ { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
+ short int ascii_ii[] =
+ { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
+ int use_ascii (int i) {
+ return ascii_mm[i] + ascii_ii[i];
+ }
+ short int ebcdic_ii[] =
+ { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
+ short int ebcdic_mm[] =
+ { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
+ int use_ebcdic (int i) {
+ return ebcdic_mm[i] + ebcdic_ii[i];
+ }
+ extern int foo;
+
+int
+main ()
+{
+return use_ascii (foo) == use_ebcdic (foo);
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_compile "$LINENO"; then :
+ if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
+ ac_cv_c_bigendian=yes
+ fi
+ if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
+ if test "$ac_cv_c_bigendian" = unknown; then
+ ac_cv_c_bigendian=no
+ else
+ # finding both strings is unlikely to happen, but who knows?
+ ac_cv_c_bigendian=unknown
+ fi
+ fi
+fi
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
+else
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h. */
+$ac_includes_default
+int
+main ()
+{
+
+ /* Are we little or big endian? From Harbison&Steele. */
+ union
+ {
+ long int l;
+ char c[sizeof (long int)];
+ } u;
+ u.l = 1;
+ return u.c[sizeof (long int) - 1] == 1;
+
+ ;
+ return 0;
+}
+_ACEOF
+if ac_fn_c_try_run "$LINENO"; then :
+ ac_cv_c_bigendian=no
+else
+ ac_cv_c_bigendian=yes
+fi
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
+ conftest.$ac_objext conftest.beam conftest.$ac_ext
+fi
+
+ fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
+$as_echo "$ac_cv_c_bigendian" >&6; }
+ case $ac_cv_c_bigendian in #(
+ yes)
+
+$as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
+;; #(
+ no)
+
+$as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
+ ;; #(
+ universal)
+
+$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
+
+ ;; #(
+ *)
+ as_fn_error "unknown endianness
+ presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
+ esac
+
+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
$as_echo_n "checking how to get filesystem type... " >&6; }
fstype=no
fi
- ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
+
+ ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
if test "x$ac_cv_func_acl_get_file" = x""yes; then :
have_acl=yes
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
+fi
+
+
+ if test $have_acl = no; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
$as_echo_n "checking for acl_get_file in -lacl... " >&6; }
if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then :
$as_echo_n "(cached) " >&6
$as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then :
- have_acl=yes;
- if test $have_afs = yes; then
- if test -d /usr/lib64/; then
- FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
- else
- FDLIBS="-L/usr/lib -lacl $FDLIBS"
- fi
- else
- FDLIBS="-lacl $FDLIBS"
- fi
+ have_acl=yes
+ if test $have_afs = yes; then
+ if test -d /usr/lib64/; then
+ FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
+ else
+ FDLIBS="-L/usr/lib -lacl $FDLIBS"
+ fi
+ else
+ FDLIBS="-lacl $FDLIBS"
+ fi
+
-else
+fi
+
+ fi
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
+ if test $have_acl = no; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
$as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then :
$as_echo_n "(cached) " >&6
$as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
if test "x$ac_cv_lib_pacl_acl_get_file" = x""yes; then :
- have_acl=yes;
- FDLIBS="-lpacl $FDLIBS"
+ have_acl=yes
+ FDLIBS="-lpacl $FDLIBS"
-else
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
+fi
+
+ fi
+
+ if test $have_acl = no; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
$as_echo_n "checking for acltotext in -lsec... " >&6; }
if test "${ac_cv_lib_sec_acltotext+set}" = set; then :
$as_echo_n "(cached) " >&6
$as_echo "$ac_cv_lib_sec_acltotext" >&6; }
if test "x$ac_cv_lib_sec_acltotext" = x""yes; then :
- have_acl=yes;
- FDLIBS="-lsec $FDLIBS"
+ have_acl=yes
+ FDLIBS="-lsec $FDLIBS"
- { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
$as_echo_n "checking for acl_totext in -lsec... " >&6; }
if test "${ac_cv_lib_sec_acl_totext+set}" = set; then :
$as_echo_n "(cached) " >&6
$as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
if test "x$ac_cv_lib_sec_acl_totext" = x""yes; then :
- have_extended_acl=yes
+ have_extended_acl=yes
fi
fi
+ fi
+ if test $have_acl = no; then
+ ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
+if test "x$ac_cv_func_acl_get" = x""yes; then :
-fi
+ have_acl=yes
+
+ ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
+if test "x$ac_cv_func_aclx_get" = x""yes; then :
+ have_extended_acl=yes
fi
fi
+ fi
if test x$support_acl = xyes -a $have_acl != yes; then
as_fn_error "acl support explicitly enabled but no supported acl implementation found,
fi
+ fi
+ fi
+
+ if test $have_xattr = no; then
+ ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
+if test "x$ac_cv_header_sys_ea_h" = x""yes; then :
+
+$as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
+
+fi
+
+
+ for ac_func in llistea lgetea lsetea
+do :
+ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
+ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
+eval as_val=\$$as_ac_var
+ if test "x$as_val" = x""yes; then :
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
+
+ have_xattr=yes
+
+$as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
+
+
+$as_echo "#define HAVE_LGETEA 1" >>confdefs.h
+
+
+$as_echo "#define HAVE_LSETEA 1" >>confdefs.h
+
+
+
+fi
+done
+
+
+ if test $have_xattr = no; then
+ for ac_func in listea getea setea
+do :
+ as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
+ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
+eval as_val=\$$as_ac_var
+ if test "x$as_val" = x""yes; then :
+ cat >>confdefs.h <<_ACEOF
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
+_ACEOF
+
+ have_xattr=yes
+
+$as_echo "#define HAVE_LISTEA 1" >>confdefs.h
+
+
+$as_echo "#define HAVE_GETEA 1" >>confdefs.h
+
+
+$as_echo "#define HAVE_SETEA 1" >>confdefs.h
+
+
+
+fi
+done
+
fi
fi
fi
fi
- if test $have_xattr = no; then
+ if test $have_xattr = no -a `uname -s` = SunOS; then
ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
if test "x$ac_cv_header_sys_attr_h" = x""yes; then :
+
: ${CONFIG_STATUS=./config.status}
ac_write_fail=0
ac_clean_files_save=$ac_clean_files