7fd305b
diff -up ./configure.in.sql ./configure.in
7fd305b
--- ./configure.in.sql	2013-11-14 13:19:19.231000002 +0100
7fd305b
+++ ./configure.in	2013-11-14 14:10:44.728997789 +0100
7fd305b
@@ -729,7 +729,18 @@ LIB_MYSQL=""
7fd305b
 
7fd305b
 case "$with_mysql" in
7fd305b
     no) true;;
7fd305b
-    notfound) AC_WARN([MySQL Library not found]); true;;
7fd305b
+    notfound) 
7fd305b
+     save_LDFLAGS=$LDFLAGS
7fd305b
+     LIB_MYSQL=`mysql_config --libs`
7fd305b
+     LIB_MYSQL="-lmysqlclient"
7fd305b
+     LDFLAGS="$LDFLAGS $LIB_MYSQL"
7fd305b
+     # CPPFLAGS="${CPPFLAGS} `mysql_config --include`"
7fd305b
+     AC_CHECK_LIB(mysqlclient, mysql_select_db,
7fd305b
+           AC_DEFINE(HAVE_MYSQL, [], [Do we have mysql support?]),
7fd305b
+           [AC_WARN([MySQL library mysqlclient does not work])
7fd305b
+            with_mysql=no])
7fd305b
+     LDFLAGS=$save_LDFLAGS
7fd305b
+     ;;
7fd305b
     *)
7fd305b
      if test -d ${with_mysql}/lib/mysql; then
7fd305b
 	CMU_ADD_LIBPATH_TO(${with_mysql}/lib/mysql, LIB_MYSQL)
7fd305b
@@ -750,6 +761,8 @@ case "$with_mysql" in
7fd305b
          CPPFLAGS="${CPPFLAGS} -I${with_mysql}/mysql/include"
7fd305b
      elif test -d ${with_mysql}/include; then
7fd305b
          CPPFLAGS="${CPPFLAGS} -I${with_mysql}/include"
7fd305b
+     elif test -d ${prefix}/include/mysql; then
7fd305b
+         CPPFLAGS="${CPPFLAGS} -I${prefix}/include/mysql"
7fd305b
      else
7fd305b
          CPPFLAGS="${CPPFLAGS} -I${with_mysql}"
7fd305b
      fi
7fd305b
@@ -793,7 +806,17 @@ LIB_PGSQL=""
7fd305b
 
7fd305b
 case "$with_pgsql" in
7fd305b
     no) true;;
7fd305b
-    notfound) AC_WARN([PostgreSQL Library not found]); true;;
7fd305b
+    notfound)
7fd305b
+     LIB_PGSQL="-lpq"
7fd305b
+     # CPPFLAGS="${CPPFLAGS} -I`pg_config --includedir`"
7fd305b
+     save_LDFLAGS=$LDFLAGS
7fd305b
+     LDFLAGS="$LDFLAGS $LIB_PGSQL"
7fd305b
+     AC_CHECK_LIB(pq, PQsetdbLogin, AC_DEFINE(HAVE_PGSQL,[],
7fd305b
+         [Do we have Postgres support?]),
7fd305b
+         [AC_WARN([PostgreSQL Library pq does not work])
7fd305b
+          with_pgsql=no])
7fd305b
+     LDFLAGS=$save_LDFLAGS
7fd305b
+     ;;
7fd305b
     *)
7fd305b
      if test -d ${with_pgsql}/lib/pgsql; then
7fd305b
 	CMU_ADD_LIBPATH_TO(${with_pgsql}/lib/pgsql, LIB_PGSQL)
7fd305b
@@ -814,6 +837,8 @@ case "$with_pgsql" in
7fd305b
          CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/pgsql/include"
7fd305b
      elif test -d ${with_pgsql}/include; then
7fd305b
          CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/include"
7fd305b
+     elif test -d ${prefix}/include; then
7fd305b
+         CPPFLAGS="${CPPFLAGS} -I${prefix}/include"
7fd305b
      else
7fd305b
          CPPFLAGS="${CPPFLAGS} -I${with_pgsql}"
7fd305b
      fi
7fd305b
diff -up ./configure.sql ./configure
7fd305b
--- ./configure.sql	2013-11-14 13:19:19.177000002 +0100
7fd305b
+++ ./configure	2013-11-14 14:10:50.848000001 +0100
7fd305b
@@ -4340,116 +4340,8 @@ $as_echo "$ac_cv___attribute__" >&6; }
7fd305b
 
7fd305b
 
7fd305b
    # CMU GUESS RUNPATH SWITCH
7fd305b
-  { $as_echo "$as_me:$LINENO: checking for runpath switch" >&5
7fd305b
-$as_echo_n "checking for runpath switch... " >&6; }
7fd305b
-if test "${andrew_cv_runpath_switch+set}" = set; then
7fd305b
-  $as_echo_n "(cached) " >&6
7fd305b
-else
7fd305b
-
7fd305b
-    # first, try -R
7fd305b
-    SAVE_LDFLAGS="${LDFLAGS}"
7fd305b
-    LDFLAGS="-R /usr/lib"
7fd305b
-    cat >conftest.$ac_ext <<_ACEOF
7fd305b
-/* confdefs.h.  */
7fd305b
-_ACEOF
7fd305b
-cat confdefs.h >>conftest.$ac_ext
7fd305b
-cat >>conftest.$ac_ext <<_ACEOF
7fd305b
-/* end confdefs.h.  */
7fd305b
-
7fd305b
-int
7fd305b
-main ()
7fd305b
-{
7fd305b
-
7fd305b
-  ;
7fd305b
-  return 0;
7fd305b
-}
7fd305b
-_ACEOF
7fd305b
-rm -f conftest.$ac_objext conftest$ac_exeext
7fd305b
-if { (ac_try="$ac_link"
7fd305b
-case "(($ac_try" in
7fd305b
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7fd305b
-  *) ac_try_echo=$ac_try;;
7fd305b
-esac
7fd305b
-eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7fd305b
-$as_echo "$ac_try_echo") >&5
7fd305b
-  (eval "$ac_link") 2>conftest.er1
7fd305b
-  ac_status=$?
7fd305b
-  grep -v '^ *+' conftest.er1 >conftest.err
7fd305b
-  rm -f conftest.er1
7fd305b
-  cat conftest.err >&5
7fd305b
-  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fd305b
-  (exit $ac_status); } && {
7fd305b
-	 test -z "$ac_c_werror_flag" ||
7fd305b
-	 test ! -s conftest.err
7fd305b
-       } && test -s conftest$ac_exeext && {
7fd305b
-	 test "$cross_compiling" = yes ||
7fd305b
-	 $as_test_x conftest$ac_exeext
7fd305b
-       }; then
7fd305b
-  andrew_cv_runpath_switch="-R"
7fd305b
-else
7fd305b
-  $as_echo "$as_me: failed program was:" >&5
7fd305b
-sed 's/^/| /' conftest.$ac_ext >&5
7fd305b
-
7fd305b
-
7fd305b
-  	LDFLAGS="-Wl,-rpath,/usr/lib"
7fd305b
-    cat >conftest.$ac_ext <<_ACEOF
7fd305b
-/* confdefs.h.  */
7fd305b
-_ACEOF
7fd305b
-cat confdefs.h >>conftest.$ac_ext
7fd305b
-cat >>conftest.$ac_ext <<_ACEOF
7fd305b
-/* end confdefs.h.  */
7fd305b
-
7fd305b
-int
7fd305b
-main ()
7fd305b
-{
7fd305b
-
7fd305b
-  ;
7fd305b
-  return 0;
7fd305b
-}
7fd305b
-_ACEOF
7fd305b
-rm -f conftest.$ac_objext conftest$ac_exeext
7fd305b
-if { (ac_try="$ac_link"
7fd305b
-case "(($ac_try" in
7fd305b
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7fd305b
-  *) ac_try_echo=$ac_try;;
7fd305b
-esac
7fd305b
-eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7fd305b
-$as_echo "$ac_try_echo") >&5
7fd305b
-  (eval "$ac_link") 2>conftest.er1
7fd305b
-  ac_status=$?
7fd305b
-  grep -v '^ *+' conftest.er1 >conftest.err
7fd305b
-  rm -f conftest.er1
7fd305b
-  cat conftest.err >&5
7fd305b
-  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fd305b
-  (exit $ac_status); } && {
7fd305b
-	 test -z "$ac_c_werror_flag" ||
7fd305b
-	 test ! -s conftest.err
7fd305b
-       } && test -s conftest$ac_exeext && {
7fd305b
-	 test "$cross_compiling" = yes ||
7fd305b
-	 $as_test_x conftest$ac_exeext
7fd305b
-       }; then
7fd305b
-  andrew_cv_runpath_switch="-Wl,-rpath,"
7fd305b
-else
7fd305b
-  $as_echo "$as_me: failed program was:" >&5
7fd305b
-sed 's/^/| /' conftest.$ac_ext >&5
7fd305b
-
7fd305b
-	andrew_cv_runpath_switch="none"
7fd305b
-fi
7fd305b
-
7fd305b
-rm -rf conftest.dSYM
7fd305b
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7fd305b
-      conftest$ac_exeext conftest.$ac_ext
7fd305b
-
7fd305b
-fi
7fd305b
-
7fd305b
-rm -rf conftest.dSYM
7fd305b
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7fd305b
-      conftest$ac_exeext conftest.$ac_ext
7fd305b
-  LDFLAGS="${SAVE_LDFLAGS}"
7fd305b
+    andrew_runpath_switch="none"
7fd305b
 
7fd305b
-fi
7fd305b
-{ $as_echo "$as_me:$LINENO: result: $andrew_cv_runpath_switch" >&5
7fd305b
-$as_echo "$andrew_cv_runpath_switch" >&6; }
7fd305b
 
7fd305b
 
7fd305b
 # Check whether --with-staticsasl was given.
7fd305b
@@ -4784,7 +4676,7 @@ test x"$silent" = xyes && libtool_flags=
7fd305b
 case "$lt_target" in
7fd305b
 *-*-irix6*)
7fd305b
   # Find out which ABI we are using.
7fd305b
-  echo '#line 4787 "configure"' > conftest.$ac_ext
7fd305b
+  echo '#line 4679 "configure"' > conftest.$ac_ext
7fd305b
   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7fd305b
   (eval $ac_compile) 2>&5
7fd305b
   ac_status=$?
7fd305b
@@ -11239,7 +11131,6 @@ $as_echo "$cyrus_krbinclude" >&6; }
7fd305b
        if test -n "${cyrus_krbinclude}"; then
7fd305b
          CPPFLAGS="$CPPFLAGS -I${cyrus_krbinclude}"
7fd305b
        fi
7fd305b
-       LDFLAGS="$LDFLAGS -L$krb4/lib"
7fd305b
     fi
7fd305b
 
7fd305b
     if test "$with_des" != no; then
7fd305b
@@ -13467,69 +13358,43 @@ _ACEOF
7fd305b
 fi
7fd305b
 done
7fd305b
 
7fd305b
+  if test "$ac_cv_func_gsskrb5_register_acceptor_identity" = no ; then
7fd305b
 
7fd305b
-for ac_func in gss_decapsulate_token
7fd305b
+for ac_header in gssapi/gssapi_krb5.h
7fd305b
 do
7fd305b
-as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7fd305b
-{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7fd305b
-$as_echo_n "checking for $ac_func... " >&6; }
7fd305b
-if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7fd305b
+as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7fd305b
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7fd305b
+  { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7fd305b
+$as_echo_n "checking for $ac_header... " >&6; }
7fd305b
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7fd305b
   $as_echo_n "(cached) " >&6
7fd305b
+fi
7fd305b
+ac_res=`eval 'as_val=${'$as_ac_Header'}
7fd305b
+		 $as_echo "$as_val"'`
7fd305b
+	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7fd305b
+$as_echo "$ac_res" >&6; }
7fd305b
 else
7fd305b
-  cat >conftest.$ac_ext <<_ACEOF
7fd305b
+  # Is the header compilable?
7fd305b
+{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7fd305b
+$as_echo_n "checking $ac_header usability... " >&6; }
7fd305b
+cat >conftest.$ac_ext <<_ACEOF
7fd305b
 /* confdefs.h.  */
7fd305b
 _ACEOF
7fd305b
 cat confdefs.h >>conftest.$ac_ext
7fd305b
 cat >>conftest.$ac_ext <<_ACEOF
7fd305b
 /* end confdefs.h.  */
7fd305b
-/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7fd305b
-   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7fd305b
-#define $ac_func innocuous_$ac_func
7fd305b
-
7fd305b
-/* System header to define __stub macros and hopefully few prototypes,
7fd305b
-    which can conflict with char $ac_func (); below.
7fd305b
-    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7fd305b
-    <limits.h> exists even on freestanding compilers.  */
7fd305b
-
7fd305b
-#ifdef __STDC__
7fd305b
-# include <limits.h>
7fd305b
-#else
7fd305b
-# include <assert.h>
7fd305b
-#endif
7fd305b
-
7fd305b
-#undef $ac_func
7fd305b
-
7fd305b
-/* Override any GCC internal prototype to avoid an error.
7fd305b
-   Use char because int might match the return type of a GCC
7fd305b
-   builtin and then its argument prototype would still apply.  */
7fd305b
-#ifdef __cplusplus
7fd305b
-extern "C"
7fd305b
-#endif
7fd305b
-char $ac_func ();
7fd305b
-/* The GNU C library defines this for functions which it implements
7fd305b
-    to always fail with ENOSYS.  Some functions are actually named
7fd305b
-    something starting with __ and the normal name is an alias.  */
7fd305b
-#if defined __stub_$ac_func || defined __stub___$ac_func
7fd305b
-choke me
7fd305b
-#endif
7fd305b
-
7fd305b
-int
7fd305b
-main ()
7fd305b
-{
7fd305b
-return $ac_func ();
7fd305b
-  ;
7fd305b
-  return 0;
7fd305b
-}
7fd305b
+$ac_includes_default
7fd305b
+#include <$ac_header>
7fd305b
 _ACEOF
7fd305b
-rm -f conftest.$ac_objext conftest$ac_exeext
7fd305b
-if { (ac_try="$ac_link"
7fd305b
+rm -f conftest.$ac_objext
7fd305b
+if { (ac_try="$ac_compile"
7fd305b
 case "(($ac_try" in
7fd305b
   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7fd305b
   *) ac_try_echo=$ac_try;;
7fd305b
 esac
7fd305b
 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7fd305b
 $as_echo "$ac_try_echo") >&5
7fd305b
-  (eval "$ac_link") 2>conftest.er1
7fd305b
+  (eval "$ac_compile") 2>conftest.er1
7fd305b
   ac_status=$?
7fd305b
   grep -v '^ *+' conftest.er1 >conftest.err
7fd305b
   rm -f conftest.er1
7fd305b
@@ -13538,139 +13403,178 @@ $as_echo "$ac_try_echo") >&5
7fd305b
   (exit $ac_status); } && {
7fd305b
 	 test -z "$ac_c_werror_flag" ||
7fd305b
 	 test ! -s conftest.err
7fd305b
-       } && test -s conftest$ac_exeext && {
7fd305b
-	 test "$cross_compiling" = yes ||
7fd305b
-	 $as_test_x conftest$ac_exeext
7fd305b
-       }; then
7fd305b
-  eval "$as_ac_var=yes"
7fd305b
+       } && test -s conftest.$ac_objext; then
7fd305b
+  ac_header_compiler=yes
7fd305b
 else
7fd305b
   $as_echo "$as_me: failed program was:" >&5
7fd305b
 sed 's/^/| /' conftest.$ac_ext >&5
7fd305b
 
7fd305b
-	eval "$as_ac_var=no"
7fd305b
-fi
7fd305b
-
7fd305b
-rm -rf conftest.dSYM
7fd305b
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7fd305b
-      conftest$ac_exeext conftest.$ac_ext
7fd305b
-fi
7fd305b
-ac_res=`eval 'as_val=${'$as_ac_var'}
7fd305b
-		 $as_echo "$as_val"'`
7fd305b
-	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7fd305b
-$as_echo "$ac_res" >&6; }
7fd305b
-as_val=`eval 'as_val=${'$as_ac_var'}
7fd305b
-		 $as_echo "$as_val"'`
7fd305b
-   if test "x$as_val" = x""yes; then
7fd305b
-  cat >>confdefs.h <<_ACEOF
7fd305b
-#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7fd305b
-_ACEOF
7fd305b
-
7fd305b
+	ac_header_compiler=no
7fd305b
 fi
7fd305b
-done
7fd305b
 
7fd305b
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7fd305b
+{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7fd305b
+$as_echo "$ac_header_compiler" >&6; }
7fd305b
 
7fd305b
-for ac_func in gss_encapsulate_token
7fd305b
-do
7fd305b
-as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7fd305b
-{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7fd305b
-$as_echo_n "checking for $ac_func... " >&6; }
7fd305b
-if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7fd305b
-  $as_echo_n "(cached) " >&6
7fd305b
-else
7fd305b
-  cat >conftest.$ac_ext <<_ACEOF
7fd305b
+# Is the header present?
7fd305b
+{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7fd305b
+$as_echo_n "checking $ac_header presence... " >&6; }
7fd305b
+cat >conftest.$ac_ext <<_ACEOF
7fd305b
 /* confdefs.h.  */
7fd305b
 _ACEOF
7fd305b
 cat confdefs.h >>conftest.$ac_ext
7fd305b
 cat >>conftest.$ac_ext <<_ACEOF
7fd305b
 /* end confdefs.h.  */
7fd305b
-/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7fd305b
-   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7fd305b
-#define $ac_func innocuous_$ac_func
7fd305b
-
7fd305b
-/* System header to define __stub macros and hopefully few prototypes,
7fd305b
-    which can conflict with char $ac_func (); below.
7fd305b
-    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7fd305b
-    <limits.h> exists even on freestanding compilers.  */
7fd305b
-
7fd305b
-#ifdef __STDC__
7fd305b
-# include <limits.h>
7fd305b
-#else
7fd305b
-# include <assert.h>
7fd305b
-#endif
7fd305b
-
7fd305b
-#undef $ac_func
7fd305b
-
7fd305b
-/* Override any GCC internal prototype to avoid an error.
7fd305b
-   Use char because int might match the return type of a GCC
7fd305b
-   builtin and then its argument prototype would still apply.  */
7fd305b
-#ifdef __cplusplus
7fd305b
-extern "C"
7fd305b
-#endif
7fd305b
-char $ac_func ();
7fd305b
-/* The GNU C library defines this for functions which it implements
7fd305b
-    to always fail with ENOSYS.  Some functions are actually named
7fd305b
-    something starting with __ and the normal name is an alias.  */
7fd305b
-#if defined __stub_$ac_func || defined __stub___$ac_func
7fd305b
-choke me
7fd305b
-#endif
7fd305b
-
7fd305b
-int
7fd305b
-main ()
7fd305b
-{
7fd305b
-return $ac_func ();
7fd305b
-  ;
7fd305b
-  return 0;
7fd305b
-}
7fd305b
+#include <$ac_header>
7fd305b
 _ACEOF
7fd305b
-rm -f conftest.$ac_objext conftest$ac_exeext
7fd305b
-if { (ac_try="$ac_link"
7fd305b
+if { (ac_try="$ac_cpp conftest.$ac_ext"
7fd305b
 case "(($ac_try" in
7fd305b
   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7fd305b
   *) ac_try_echo=$ac_try;;
7fd305b
 esac
7fd305b
 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7fd305b
 $as_echo "$ac_try_echo") >&5
7fd305b
-  (eval "$ac_link") 2>conftest.er1
7fd305b
+  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7fd305b
   ac_status=$?
7fd305b
   grep -v '^ *+' conftest.er1 >conftest.err
7fd305b
   rm -f conftest.er1
7fd305b
   cat conftest.err >&5
7fd305b
   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fd305b
-  (exit $ac_status); } && {
7fd305b
-	 test -z "$ac_c_werror_flag" ||
7fd305b
+  (exit $ac_status); } >/dev/null && {
7fd305b
+	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7fd305b
 	 test ! -s conftest.err
7fd305b
-       } && test -s conftest$ac_exeext && {
7fd305b
-	 test "$cross_compiling" = yes ||
7fd305b
-	 $as_test_x conftest$ac_exeext
7fd305b
        }; then
7fd305b
-  eval "$as_ac_var=yes"
7fd305b
+  ac_header_preproc=yes
7fd305b
 else
7fd305b
   $as_echo "$as_me: failed program was:" >&5
7fd305b
 sed 's/^/| /' conftest.$ac_ext >&5
7fd305b
 
7fd305b
-	eval "$as_ac_var=no"
7fd305b
+  ac_header_preproc=no
7fd305b
 fi
7fd305b
 
7fd305b
-rm -rf conftest.dSYM
7fd305b
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7fd305b
-      conftest$ac_exeext conftest.$ac_ext
7fd305b
+rm -f conftest.err conftest.$ac_ext
7fd305b
+{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7fd305b
+$as_echo "$ac_header_preproc" >&6; }
7fd305b
+
7fd305b
+# So?  What about this header?
7fd305b
+case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7fd305b
+  yes:no: )
7fd305b
+    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7fd305b
+$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7fd305b
+    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7fd305b
+$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7fd305b
+    ac_header_preproc=yes
7fd305b
+    ;;
7fd305b
+  no:yes:* )
7fd305b
+    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7fd305b
+$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7fd305b
+    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7fd305b
+$as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7fd305b
+    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7fd305b
+$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7fd305b
+    { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7fd305b
+$as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7fd305b
+    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7fd305b
+$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7fd305b
+    { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7fd305b
+$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7fd305b
+
7fd305b
+    ;;
7fd305b
+esac
7fd305b
+{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7fd305b
+$as_echo_n "checking for $ac_header... " >&6; }
7fd305b
+if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7fd305b
+  $as_echo_n "(cached) " >&6
7fd305b
+else
7fd305b
+  eval "$as_ac_Header=\$ac_header_preproc"
7fd305b
 fi
7fd305b
-ac_res=`eval 'as_val=${'$as_ac_var'}
7fd305b
+ac_res=`eval 'as_val=${'$as_ac_Header'}
7fd305b
 		 $as_echo "$as_val"'`
7fd305b
 	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7fd305b
 $as_echo "$ac_res" >&6; }
7fd305b
-as_val=`eval 'as_val=${'$as_ac_var'}
7fd305b
+
7fd305b
+fi
7fd305b
+as_val=`eval 'as_val=${'$as_ac_Header'}
7fd305b
 		 $as_echo "$as_val"'`
7fd305b
    if test "x$as_val" = x""yes; then
7fd305b
   cat >>confdefs.h <<_ACEOF
7fd305b
-#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7fd305b
+#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7fd305b
 _ACEOF
7fd305b
 
7fd305b
 fi
7fd305b
+
7fd305b
 done
7fd305b
 
7fd305b
+    if test "$ac_cv_header_gssapi_gssapi_krb5_h" = "yes"; then
7fd305b
+      { $as_echo "$as_me:$LINENO: checking whether gsskrb5_register_acceptor_identity is declared" >&5
7fd305b
+$as_echo_n "checking whether gsskrb5_register_acceptor_identity is declared... " >&6; }
7fd305b
+if test "${ac_cv_have_decl_gsskrb5_register_acceptor_identity+set}" = set; then
7fd305b
+  $as_echo_n "(cached) " >&6
7fd305b
+else
7fd305b
+  cat >conftest.$ac_ext <<_ACEOF
7fd305b
+/* confdefs.h.  */
7fd305b
+_ACEOF
7fd305b
+cat confdefs.h >>conftest.$ac_ext
7fd305b
+cat >>conftest.$ac_ext <<_ACEOF
7fd305b
+/* end confdefs.h.  */
7fd305b
+
7fd305b
+                    $ac_includes_default
7fd305b
+                    #include <gssapi/gssapi_krb5.h>
7fd305b
 
7fd305b
-for ac_func in gss_oid_equal
7fd305b
+
7fd305b
+int
7fd305b
+main ()
7fd305b
+{
7fd305b
+#ifndef gsskrb5_register_acceptor_identity
7fd305b
+  (void) gsskrb5_register_acceptor_identity;
7fd305b
+#endif
7fd305b
+
7fd305b
+  ;
7fd305b
+  return 0;
7fd305b
+}
7fd305b
+_ACEOF
7fd305b
+rm -f conftest.$ac_objext
7fd305b
+if { (ac_try="$ac_compile"
7fd305b
+case "(($ac_try" in
7fd305b
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7fd305b
+  *) ac_try_echo=$ac_try;;
7fd305b
+esac
7fd305b
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7fd305b
+$as_echo "$ac_try_echo") >&5
7fd305b
+  (eval "$ac_compile") 2>conftest.er1
7fd305b
+  ac_status=$?
7fd305b
+  grep -v '^ *+' conftest.er1 >conftest.err
7fd305b
+  rm -f conftest.er1
7fd305b
+  cat conftest.err >&5
7fd305b
+  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fd305b
+  (exit $ac_status); } && {
7fd305b
+	 test -z "$ac_c_werror_flag" ||
7fd305b
+	 test ! -s conftest.err
7fd305b
+       } && test -s conftest.$ac_objext; then
7fd305b
+  ac_cv_have_decl_gsskrb5_register_acceptor_identity=yes
7fd305b
+else
7fd305b
+  $as_echo "$as_me: failed program was:" >&5
7fd305b
+sed 's/^/| /' conftest.$ac_ext >&5
7fd305b
+
7fd305b
+	ac_cv_have_decl_gsskrb5_register_acceptor_identity=no
7fd305b
+fi
7fd305b
+
7fd305b
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7fd305b
+fi
7fd305b
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_gsskrb5_register_acceptor_identity" >&5
7fd305b
+$as_echo "$ac_cv_have_decl_gsskrb5_register_acceptor_identity" >&6; }
7fd305b
+if test "x$ac_cv_have_decl_gsskrb5_register_acceptor_identity" = x""yes; then
7fd305b
+
7fd305b
+cat >>confdefs.h <<\_ACEOF
7fd305b
+#define HAVE_GSSKRB5_REGISTER_ACCEPTOR_IDENTITY 1
7fd305b
+_ACEOF
7fd305b
+
7fd305b
+fi
7fd305b
+
7fd305b
+    fi
7fd305b
+  fi
7fd305b
+
7fd305b
+for ac_func in gss_decapsulate_token
7fd305b
 do
7fd305b
 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7fd305b
 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7fd305b
@@ -13770,12 +13674,8 @@ _ACEOF
7fd305b
 fi
7fd305b
 done
7fd305b
 
7fd305b
-  LIBS="$cmu_save_LIBS"
7fd305b
-
7fd305b
-  cmu_save_LIBS="$LIBS"
7fd305b
-  LIBS="$LIBS $GSSAPIBASE_LIBS"
7fd305b
 
7fd305b
-for ac_func in gss_get_name_attribute
7fd305b
+for ac_func in gss_encapsulate_token
7fd305b
 do
7fd305b
 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7fd305b
 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7fd305b
@@ -13875,20 +13775,14 @@ _ACEOF
7fd305b
 fi
7fd305b
 done
7fd305b
 
7fd305b
-  LIBS="$cmu_save_LIBS"
7fd305b
 
7fd305b
-  cmu_save_LIBS="$LIBS"
7fd305b
-  LIBS="$LIBS $GSSAPIBASE_LIBS"
7fd305b
-  { $as_echo "$as_me:$LINENO: checking for SPNEGO support in GSSAPI libraries" >&5
7fd305b
-$as_echo_n "checking for SPNEGO support in GSSAPI libraries... " >&6; }
7fd305b
-  if test "$cross_compiling" = yes; then
7fd305b
-  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7fd305b
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7fd305b
-{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7fd305b
-See \`config.log' for more details." >&5
7fd305b
-$as_echo "$as_me: error: cannot run test program while cross compiling
7fd305b
-See \`config.log' for more details." >&2;}
7fd305b
-   { (exit 1); exit 1; }; }; }
7fd305b
+for ac_func in gss_oid_equal
7fd305b
+do
7fd305b
+as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7fd305b
+{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7fd305b
+$as_echo_n "checking for $ac_func... " >&6; }
7fd305b
+if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7fd305b
+  $as_echo_n "(cached) " >&6
7fd305b
 else
7fd305b
   cat >conftest.$ac_ext <<_ACEOF
7fd305b
 /* confdefs.h.  */
7fd305b
@@ -13896,30 +13790,46 @@ _ACEOF
7fd305b
 cat confdefs.h >>conftest.$ac_ext
7fd305b
 cat >>conftest.$ac_ext <<_ACEOF
7fd305b
 /* end confdefs.h.  */
7fd305b
+/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7fd305b
+   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7fd305b
+#define $ac_func innocuous_$ac_func
7fd305b
 
7fd305b
-#ifdef HAVE_GSSAPI_H
7fd305b
-#include <gssapi.h>
7fd305b
+/* System header to define __stub macros and hopefully few prototypes,
7fd305b
+    which can conflict with char $ac_func (); below.
7fd305b
+    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7fd305b
+    <limits.h> exists even on freestanding compilers.  */
7fd305b
+
7fd305b
+#ifdef __STDC__
7fd305b
+# include <limits.h>
7fd305b
 #else
7fd305b
-#include <gssapi/gssapi.h>
7fd305b
+# include <assert.h>
7fd305b
 #endif
7fd305b
 
7fd305b
-int main(void)
7fd305b
-{
7fd305b
-    gss_OID_desc spnego_oid = { 6, (void *) "\x2b\x06\x01\x05\x05\x02" };
7fd305b
-    gss_OID_set mech_set;
7fd305b
-    OM_uint32 min_stat;
7fd305b
-    int have_spnego = 0;
7fd305b
+#undef $ac_func
7fd305b
 
7fd305b
-    if (gss_indicate_mechs(&min_stat, &mech_set) == GSS_S_COMPLETE) {
7fd305b
-	gss_test_oid_set_member(&min_stat, &spnego_oid, mech_set, &have_spnego);
7fd305b
-	gss_release_oid_set(&min_stat, &mech_set);
7fd305b
-    }
7fd305b
+/* Override any GCC internal prototype to avoid an error.
7fd305b
+   Use char because int might match the return type of a GCC
7fd305b
+   builtin and then its argument prototype would still apply.  */
7fd305b
+#ifdef __cplusplus
7fd305b
+extern "C"
7fd305b
+#endif
7fd305b
+char $ac_func ();
7fd305b
+/* The GNU C library defines this for functions which it implements
7fd305b
+    to always fail with ENOSYS.  Some functions are actually named
7fd305b
+    something starting with __ and the normal name is an alias.  */
7fd305b
+#if defined __stub_$ac_func || defined __stub___$ac_func
7fd305b
+choke me
7fd305b
+#endif
7fd305b
 
7fd305b
-    return (!have_spnego);  // 0 = success, 1 = failure
7fd305b
+int
7fd305b
+main ()
7fd305b
+{
7fd305b
+return $ac_func ();
7fd305b
+  ;
7fd305b
+  return 0;
7fd305b
 }
7fd305b
-
7fd305b
 _ACEOF
7fd305b
-rm -f conftest$ac_exeext
7fd305b
+rm -f conftest.$ac_objext conftest$ac_exeext
7fd305b
 if { (ac_try="$ac_link"
7fd305b
 case "(($ac_try" in
7fd305b
   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7fd305b
@@ -13927,63 +13837,259 @@ case "(($ac_try" in
7fd305b
 esac
7fd305b
 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7fd305b
 $as_echo "$ac_try_echo") >&5
7fd305b
-  (eval "$ac_link") 2>&5
7fd305b
-  ac_status=$?
7fd305b
-  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fd305b
-  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7fd305b
-  { (case "(($ac_try" in
7fd305b
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7fd305b
-  *) ac_try_echo=$ac_try;;
7fd305b
-esac
7fd305b
-eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7fd305b
-$as_echo "$ac_try_echo") >&5
7fd305b
-  (eval "$ac_try") 2>&5
7fd305b
+  (eval "$ac_link") 2>conftest.er1
7fd305b
   ac_status=$?
7fd305b
+  grep -v '^ *+' conftest.er1 >conftest.err
7fd305b
+  rm -f conftest.er1
7fd305b
+  cat conftest.err >&5
7fd305b
   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fd305b
-  (exit $ac_status); }; }; then
7fd305b
-
7fd305b
-cat >>confdefs.h <<\_ACEOF
7fd305b
-#define HAVE_GSS_SPNEGO /**/
7fd305b
-_ACEOF
7fd305b
-
7fd305b
-	{ $as_echo "$as_me:$LINENO: result: yes" >&5
7fd305b
-$as_echo "yes" >&6; }
7fd305b
+  (exit $ac_status); } && {
7fd305b
+	 test -z "$ac_c_werror_flag" ||
7fd305b
+	 test ! -s conftest.err
7fd305b
+       } && test -s conftest$ac_exeext && {
7fd305b
+	 test "$cross_compiling" = yes ||
7fd305b
+	 $as_test_x conftest$ac_exeext
7fd305b
+       }; then
7fd305b
+  eval "$as_ac_var=yes"
7fd305b
 else
7fd305b
-  $as_echo "$as_me: program exited with status $ac_status" >&5
7fd305b
-$as_echo "$as_me: failed program was:" >&5
7fd305b
+  $as_echo "$as_me: failed program was:" >&5
7fd305b
 sed 's/^/| /' conftest.$ac_ext >&5
7fd305b
 
7fd305b
-( exit $ac_status )
7fd305b
-{ $as_echo "$as_me:$LINENO: result: no" >&5
7fd305b
-$as_echo "no" >&6; }
7fd305b
+	eval "$as_ac_var=no"
7fd305b
 fi
7fd305b
+
7fd305b
 rm -rf conftest.dSYM
7fd305b
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7fd305b
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7fd305b
+      conftest$ac_exeext conftest.$ac_ext
7fd305b
 fi
7fd305b
+ac_res=`eval 'as_val=${'$as_ac_var'}
7fd305b
+		 $as_echo "$as_val"'`
7fd305b
+	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7fd305b
+$as_echo "$ac_res" >&6; }
7fd305b
+as_val=`eval 'as_val=${'$as_ac_var'}
7fd305b
+		 $as_echo "$as_val"'`
7fd305b
+   if test "x$as_val" = x""yes; then
7fd305b
+  cat >>confdefs.h <<_ACEOF
7fd305b
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7fd305b
+_ACEOF
7fd305b
 
7fd305b
-
7fd305b
-  LIBS="$cmu_save_LIBS"
7fd305b
-
7fd305b
-else
7fd305b
-  { $as_echo "$as_me:$LINENO: result: disabled" >&5
7fd305b
-$as_echo "disabled" >&6; }
7fd305b
 fi
7fd305b
+done
7fd305b
 
7fd305b
+  LIBS="$cmu_save_LIBS"
7fd305b
 
7fd305b
+  cmu_save_LIBS="$LIBS"
7fd305b
+  LIBS="$LIBS $GSSAPIBASE_LIBS"
7fd305b
 
7fd305b
-
7fd305b
-if test "$gssapi" != "no"; then
7fd305b
-
7fd305b
-cat >>confdefs.h <<\_ACEOF
7fd305b
-#define STATIC_GSSAPIV2 /**/
7fd305b
-_ACEOF
7fd305b
-
7fd305b
-  mutex_default="no"
7fd305b
-  if test "$gss_impl" = "mit"; then
7fd305b
-     mutex_default="yes"
7fd305b
-  fi
7fd305b
-  { $as_echo "$as_me:$LINENO: checking to use mutexes aroung GSS calls" >&5
7fd305b
-$as_echo_n "checking to use mutexes aroung GSS calls... " >&6; }
7fd305b
+for ac_func in gss_get_name_attribute
7fd305b
+do
7fd305b
+as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7fd305b
+{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7fd305b
+$as_echo_n "checking for $ac_func... " >&6; }
7fd305b
+if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7fd305b
+  $as_echo_n "(cached) " >&6
7fd305b
+else
7fd305b
+  cat >conftest.$ac_ext <<_ACEOF
7fd305b
+/* confdefs.h.  */
7fd305b
+_ACEOF
7fd305b
+cat confdefs.h >>conftest.$ac_ext
7fd305b
+cat >>conftest.$ac_ext <<_ACEOF
7fd305b
+/* end confdefs.h.  */
7fd305b
+/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7fd305b
+   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7fd305b
+#define $ac_func innocuous_$ac_func
7fd305b
+
7fd305b
+/* System header to define __stub macros and hopefully few prototypes,
7fd305b
+    which can conflict with char $ac_func (); below.
7fd305b
+    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7fd305b
+    <limits.h> exists even on freestanding compilers.  */
7fd305b
+
7fd305b
+#ifdef __STDC__
7fd305b
+# include <limits.h>
7fd305b
+#else
7fd305b
+# include <assert.h>
7fd305b
+#endif
7fd305b
+
7fd305b
+#undef $ac_func
7fd305b
+
7fd305b
+/* Override any GCC internal prototype to avoid an error.
7fd305b
+   Use char because int might match the return type of a GCC
7fd305b
+   builtin and then its argument prototype would still apply.  */
7fd305b
+#ifdef __cplusplus
7fd305b
+extern "C"
7fd305b
+#endif
7fd305b
+char $ac_func ();
7fd305b
+/* The GNU C library defines this for functions which it implements
7fd305b
+    to always fail with ENOSYS.  Some functions are actually named
7fd305b
+    something starting with __ and the normal name is an alias.  */
7fd305b
+#if defined __stub_$ac_func || defined __stub___$ac_func
7fd305b
+choke me
7fd305b
+#endif
7fd305b
+
7fd305b
+int
7fd305b
+main ()
7fd305b
+{
7fd305b
+return $ac_func ();
7fd305b
+  ;
7fd305b
+  return 0;
7fd305b
+}
7fd305b
+_ACEOF
7fd305b
+rm -f conftest.$ac_objext conftest$ac_exeext
7fd305b
+if { (ac_try="$ac_link"
7fd305b
+case "(($ac_try" in
7fd305b
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7fd305b
+  *) ac_try_echo=$ac_try;;
7fd305b
+esac
7fd305b
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7fd305b
+$as_echo "$ac_try_echo") >&5
7fd305b
+  (eval "$ac_link") 2>conftest.er1
7fd305b
+  ac_status=$?
7fd305b
+  grep -v '^ *+' conftest.er1 >conftest.err
7fd305b
+  rm -f conftest.er1
7fd305b
+  cat conftest.err >&5
7fd305b
+  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fd305b
+  (exit $ac_status); } && {
7fd305b
+	 test -z "$ac_c_werror_flag" ||
7fd305b
+	 test ! -s conftest.err
7fd305b
+       } && test -s conftest$ac_exeext && {
7fd305b
+	 test "$cross_compiling" = yes ||
7fd305b
+	 $as_test_x conftest$ac_exeext
7fd305b
+       }; then
7fd305b
+  eval "$as_ac_var=yes"
7fd305b
+else
7fd305b
+  $as_echo "$as_me: failed program was:" >&5
7fd305b
+sed 's/^/| /' conftest.$ac_ext >&5
7fd305b
+
7fd305b
+	eval "$as_ac_var=no"
7fd305b
+fi
7fd305b
+
7fd305b
+rm -rf conftest.dSYM
7fd305b
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7fd305b
+      conftest$ac_exeext conftest.$ac_ext
7fd305b
+fi
7fd305b
+ac_res=`eval 'as_val=${'$as_ac_var'}
7fd305b
+		 $as_echo "$as_val"'`
7fd305b
+	       { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7fd305b
+$as_echo "$ac_res" >&6; }
7fd305b
+as_val=`eval 'as_val=${'$as_ac_var'}
7fd305b
+		 $as_echo "$as_val"'`
7fd305b
+   if test "x$as_val" = x""yes; then
7fd305b
+  cat >>confdefs.h <<_ACEOF
7fd305b
+#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7fd305b
+_ACEOF
7fd305b
+
7fd305b
+fi
7fd305b
+done
7fd305b
+
7fd305b
+  LIBS="$cmu_save_LIBS"
7fd305b
+
7fd305b
+  cmu_save_LIBS="$LIBS"
7fd305b
+  LIBS="$LIBS $GSSAPIBASE_LIBS"
7fd305b
+  { $as_echo "$as_me:$LINENO: checking for SPNEGO support in GSSAPI libraries" >&5
7fd305b
+$as_echo_n "checking for SPNEGO support in GSSAPI libraries... " >&6; }
7fd305b
+  if test "$cross_compiling" = yes; then
7fd305b
+  { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7fd305b
+$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7fd305b
+{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7fd305b
+See \`config.log' for more details." >&5
7fd305b
+$as_echo "$as_me: error: cannot run test program while cross compiling
7fd305b
+See \`config.log' for more details." >&2;}
7fd305b
+   { (exit 1); exit 1; }; }; }
7fd305b
+else
7fd305b
+  cat >conftest.$ac_ext <<_ACEOF
7fd305b
+/* confdefs.h.  */
7fd305b
+_ACEOF
7fd305b
+cat confdefs.h >>conftest.$ac_ext
7fd305b
+cat >>conftest.$ac_ext <<_ACEOF
7fd305b
+/* end confdefs.h.  */
7fd305b
+
7fd305b
+#ifdef HAVE_GSSAPI_H
7fd305b
+#include <gssapi.h>
7fd305b
+#else
7fd305b
+#include <gssapi/gssapi.h>
7fd305b
+#endif
7fd305b
+
7fd305b
+int main(void)
7fd305b
+{
7fd305b
+    gss_OID_desc spnego_oid = { 6, (void *) "\x2b\x06\x01\x05\x05\x02" };
7fd305b
+    gss_OID_set mech_set;
7fd305b
+    OM_uint32 min_stat;
7fd305b
+    int have_spnego = 0;
7fd305b
+
7fd305b
+    if (gss_indicate_mechs(&min_stat, &mech_set) == GSS_S_COMPLETE) {
7fd305b
+	gss_test_oid_set_member(&min_stat, &spnego_oid, mech_set, &have_spnego);
7fd305b
+	gss_release_oid_set(&min_stat, &mech_set);
7fd305b
+    }
7fd305b
+
7fd305b
+    return (!have_spnego);  // 0 = success, 1 = failure
7fd305b
+}
7fd305b
+
7fd305b
+_ACEOF
7fd305b
+rm -f conftest$ac_exeext
7fd305b
+if { (ac_try="$ac_link"
7fd305b
+case "(($ac_try" in
7fd305b
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7fd305b
+  *) ac_try_echo=$ac_try;;
7fd305b
+esac
7fd305b
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7fd305b
+$as_echo "$ac_try_echo") >&5
7fd305b
+  (eval "$ac_link") 2>&5
7fd305b
+  ac_status=$?
7fd305b
+  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fd305b
+  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7fd305b
+  { (case "(($ac_try" in
7fd305b
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7fd305b
+  *) ac_try_echo=$ac_try;;
7fd305b
+esac
7fd305b
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7fd305b
+$as_echo "$ac_try_echo") >&5
7fd305b
+  (eval "$ac_try") 2>&5
7fd305b
+  ac_status=$?
7fd305b
+  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fd305b
+  (exit $ac_status); }; }; then
7fd305b
+
7fd305b
+cat >>confdefs.h <<\_ACEOF
7fd305b
+#define HAVE_GSS_SPNEGO /**/
7fd305b
+_ACEOF
7fd305b
+
7fd305b
+	{ $as_echo "$as_me:$LINENO: result: yes" >&5
7fd305b
+$as_echo "yes" >&6; }
7fd305b
+else
7fd305b
+  $as_echo "$as_me: program exited with status $ac_status" >&5
7fd305b
+$as_echo "$as_me: failed program was:" >&5
7fd305b
+sed 's/^/| /' conftest.$ac_ext >&5
7fd305b
+
7fd305b
+( exit $ac_status )
7fd305b
+{ $as_echo "$as_me:$LINENO: result: no" >&5
7fd305b
+$as_echo "no" >&6; }
7fd305b
+fi
7fd305b
+rm -rf conftest.dSYM
7fd305b
+rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7fd305b
+fi
7fd305b
+
7fd305b
+
7fd305b
+  LIBS="$cmu_save_LIBS"
7fd305b
+
7fd305b
+else
7fd305b
+  { $as_echo "$as_me:$LINENO: result: disabled" >&5
7fd305b
+$as_echo "disabled" >&6; }
7fd305b
+fi
7fd305b
+
7fd305b
+
7fd305b
+
7fd305b
+
7fd305b
+if test "$gssapi" != "no"; then
7fd305b
+
7fd305b
+cat >>confdefs.h <<\_ACEOF
7fd305b
+#define STATIC_GSSAPIV2 /**/
7fd305b
+_ACEOF
7fd305b
+
7fd305b
+  mutex_default="no"
7fd305b
+  if test "$gss_impl" = "mit"; then
7fd305b
+     mutex_default="yes"
7fd305b
+  fi
7fd305b
+  { $as_echo "$as_me:$LINENO: checking to use mutexes aroung GSS calls" >&5
7fd305b
+$as_echo_n "checking to use mutexes aroung GSS calls... " >&6; }
7fd305b
   # Check whether --enable-gss_mutexes was given.
7fd305b
 if test "${enable_gss_mutexes+set}" = set; then
7fd305b
   enableval=$enable_gss_mutexes; use_gss_mutexes=$enableval
7fd305b
@@ -14246,44 +14352,127 @@ LIB_MYSQL=""
7fd305b
 
7fd305b
 case "$with_mysql" in
7fd305b
     no) true;;
7fd305b
-    notfound) { $as_echo "$as_me:$LINENO: WARNING: MySQL Library not found" >&5
7fd305b
-$as_echo "$as_me: WARNING: MySQL Library not found" >&2;}; true;;
7fd305b
-    *)
7fd305b
-     if test -d ${with_mysql}/lib/mysql; then
7fd305b
-
7fd305b
-  # this is CMU ADD LIBPATH TO
7fd305b
-  if test "$andrew_cv_runpath_switch" = "none" ; then
7fd305b
-	LIB_MYSQL="-L${with_mysql}/lib/mysql ${LIB_MYSQL}"
7fd305b
-  else
7fd305b
-	LIB_MYSQL="-L${with_mysql}/lib/mysql ${LIB_MYSQL} $andrew_cv_runpath_switch${with_mysql}/lib/mysql"
7fd305b
-  fi
7fd305b
-
7fd305b
-     elif test -d ${with_mysql}/mysql/lib; then
7fd305b
-
7fd305b
-  # this is CMU ADD LIBPATH TO
7fd305b
-  if test "$andrew_cv_runpath_switch" = "none" ; then
7fd305b
-	LIB_MYSQL="-L${with_mysql}/mysql/lib ${LIB_MYSQL}"
7fd305b
-  else
7fd305b
-	LIB_MYSQL="-L${with_mysql}/mysql/lib ${LIB_MYSQL} $andrew_cv_runpath_switch${with_mysql}/mysql/lib"
7fd305b
-  fi
7fd305b
-
7fd305b
-     elif test -d ${with_mysql}/lib; then
7fd305b
-
7fd305b
-  # this is CMU ADD LIBPATH TO
7fd305b
-  if test "$andrew_cv_runpath_switch" = "none" ; then
7fd305b
-	LIB_MYSQL="-L${with_mysql}/lib ${LIB_MYSQL}"
7fd305b
-  else
7fd305b
-	LIB_MYSQL="-L${with_mysql}/lib ${LIB_MYSQL} $andrew_cv_runpath_switch${with_mysql}/lib"
7fd305b
-  fi
7fd305b
-
7fd305b
-     else
7fd305b
+    notfound)
7fd305b
+     save_LDFLAGS=$LDFLAGS
7fd305b
+     LIB_MYSQL=`mysql_config --libs`
7fd305b
+     LIB_MYSQL="-lmysqlclient"
7fd305b
+     LDFLAGS="$LDFLAGS $LIB_MYSQL"
7fd305b
+     # CPPFLAGS="${CPPFLAGS} `mysql_config --include`"
7fd305b
+     { $as_echo "$as_me:$LINENO: checking for mysql_select_db in -lmysqlclient" >&5
7fd305b
+$as_echo_n "checking for mysql_select_db in -lmysqlclient... " >&6; }
7fd305b
+if test "${ac_cv_lib_mysqlclient_mysql_select_db+set}" = set; then
7fd305b
+  $as_echo_n "(cached) " >&6
7fd305b
+else
7fd305b
+  ac_check_lib_save_LIBS=$LIBS
7fd305b
+LIBS="-lmysqlclient  $LIBS"
7fd305b
+cat >conftest.$ac_ext <<_ACEOF
7fd305b
+/* confdefs.h.  */
7fd305b
+_ACEOF
7fd305b
+cat confdefs.h >>conftest.$ac_ext
7fd305b
+cat >>conftest.$ac_ext <<_ACEOF
7fd305b
+/* end confdefs.h.  */
7fd305b
 
7fd305b
-  # this is CMU ADD LIBPATH TO
7fd305b
-  if test "$andrew_cv_runpath_switch" = "none" ; then
7fd305b
-	LIB_MYSQL="-L${with_mysql} ${LIB_MYSQL}"
7fd305b
-  else
7fd305b
-	LIB_MYSQL="-L${with_mysql} ${LIB_MYSQL} $andrew_cv_runpath_switch${with_mysql}"
7fd305b
-  fi
7fd305b
+/* Override any GCC internal prototype to avoid an error.
7fd305b
+   Use char because int might match the return type of a GCC
7fd305b
+   builtin and then its argument prototype would still apply.  */
7fd305b
+#ifdef __cplusplus
7fd305b
+extern "C"
7fd305b
+#endif
7fd305b
+char mysql_select_db ();
7fd305b
+int
7fd305b
+main ()
7fd305b
+{
7fd305b
+return mysql_select_db ();
7fd305b
+  ;
7fd305b
+  return 0;
7fd305b
+}
7fd305b
+_ACEOF
7fd305b
+rm -f conftest.$ac_objext conftest$ac_exeext
7fd305b
+if { (ac_try="$ac_link"
7fd305b
+case "(($ac_try" in
7fd305b
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7fd305b
+  *) ac_try_echo=$ac_try;;
7fd305b
+esac
7fd305b
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7fd305b
+$as_echo "$ac_try_echo") >&5
7fd305b
+  (eval "$ac_link") 2>conftest.er1
7fd305b
+  ac_status=$?
7fd305b
+  grep -v '^ *+' conftest.er1 >conftest.err
7fd305b
+  rm -f conftest.er1
7fd305b
+  cat conftest.err >&5
7fd305b
+  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fd305b
+  (exit $ac_status); } && {
7fd305b
+	 test -z "$ac_c_werror_flag" ||
7fd305b
+	 test ! -s conftest.err
7fd305b
+       } && test -s conftest$ac_exeext && {
7fd305b
+	 test "$cross_compiling" = yes ||
7fd305b
+	 $as_test_x conftest$ac_exeext
7fd305b
+       }; then
7fd305b
+  ac_cv_lib_mysqlclient_mysql_select_db=yes
7fd305b
+else
7fd305b
+  $as_echo "$as_me: failed program was:" >&5
7fd305b
+sed 's/^/| /' conftest.$ac_ext >&5
7fd305b
+
7fd305b
+	ac_cv_lib_mysqlclient_mysql_select_db=no
7fd305b
+fi
7fd305b
+
7fd305b
+rm -rf conftest.dSYM
7fd305b
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7fd305b
+      conftest$ac_exeext conftest.$ac_ext
7fd305b
+LIBS=$ac_check_lib_save_LIBS
7fd305b
+fi
7fd305b
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_mysql_select_db" >&5
7fd305b
+$as_echo "$ac_cv_lib_mysqlclient_mysql_select_db" >&6; }
7fd305b
+if test "x$ac_cv_lib_mysqlclient_mysql_select_db" = x""yes; then
7fd305b
+
7fd305b
+cat >>confdefs.h <<\_ACEOF
7fd305b
+#define HAVE_MYSQL /**/
7fd305b
+_ACEOF
7fd305b
+
7fd305b
+else
7fd305b
+  { $as_echo "$as_me:$LINENO: WARNING: MySQL library mysqlclient does not work" >&5
7fd305b
+$as_echo "$as_me: WARNING: MySQL library mysqlclient does not work" >&2;}
7fd305b
+            with_mysql=no
7fd305b
+fi
7fd305b
+
7fd305b
+     LDFLAGS=$save_LDFLAGS
7fd305b
+     ;;
7fd305b
+    *)
7fd305b
+     if test -d ${with_mysql}/lib/mysql; then
7fd305b
+
7fd305b
+  # this is CMU ADD LIBPATH TO
7fd305b
+  if test "$andrew_cv_runpath_switch" = "none" ; then
7fd305b
+	LIB_MYSQL="-L${with_mysql}/lib/mysql ${LIB_MYSQL}"
7fd305b
+  else
7fd305b
+	LIB_MYSQL="-L${with_mysql}/lib/mysql ${LIB_MYSQL} $andrew_cv_runpath_switch${with_mysql}/lib/mysql"
7fd305b
+  fi
7fd305b
+
7fd305b
+     elif test -d ${with_mysql}/mysql/lib; then
7fd305b
+
7fd305b
+  # this is CMU ADD LIBPATH TO
7fd305b
+  if test "$andrew_cv_runpath_switch" = "none" ; then
7fd305b
+	LIB_MYSQL="-L${with_mysql}/mysql/lib ${LIB_MYSQL}"
7fd305b
+  else
7fd305b
+	LIB_MYSQL="-L${with_mysql}/mysql/lib ${LIB_MYSQL} $andrew_cv_runpath_switch${with_mysql}/mysql/lib"
7fd305b
+  fi
7fd305b
+
7fd305b
+     elif test -d ${with_mysql}/lib; then
7fd305b
+
7fd305b
+  # this is CMU ADD LIBPATH TO
7fd305b
+  if test "$andrew_cv_runpath_switch" = "none" ; then
7fd305b
+	LIB_MYSQL="-L${with_mysql}/lib ${LIB_MYSQL}"
7fd305b
+  else
7fd305b
+	LIB_MYSQL="-L${with_mysql}/lib ${LIB_MYSQL} $andrew_cv_runpath_switch${with_mysql}/lib"
7fd305b
+  fi
7fd305b
+
7fd305b
+     else
7fd305b
+
7fd305b
+  # this is CMU ADD LIBPATH TO
7fd305b
+  if test "$andrew_cv_runpath_switch" = "none" ; then
7fd305b
+	LIB_MYSQL="-L${with_mysql} ${LIB_MYSQL}"
7fd305b
+  else
7fd305b
+	LIB_MYSQL="-L${with_mysql} ${LIB_MYSQL} $andrew_cv_runpath_switch${with_mysql}"
7fd305b
+  fi
7fd305b
 
7fd305b
      fi
7fd305b
 
7fd305b
@@ -14296,6 +14485,8 @@ $as_echo "$as_me: WARNING: MySQL Library
7fd305b
          CPPFLAGS="${CPPFLAGS} -I${with_mysql}/mysql/include"
7fd305b
      elif test -d ${with_mysql}/include; then
7fd305b
          CPPFLAGS="${CPPFLAGS} -I${with_mysql}/include"
7fd305b
+     elif test -d ${prefix}/include/mysql; then
7fd305b
+         CPPFLAGS="${CPPFLAGS} -I${prefix}/include/mysql"
7fd305b
      else
7fd305b
          CPPFLAGS="${CPPFLAGS} -I${with_mysql}"
7fd305b
      fi
7fd305b
@@ -14416,8 +14607,90 @@ LIB_PGSQL=""
7fd305b
 
7fd305b
 case "$with_pgsql" in
7fd305b
     no) true;;
7fd305b
-    notfound) { $as_echo "$as_me:$LINENO: WARNING: PostgreSQL Library not found" >&5
7fd305b
-$as_echo "$as_me: WARNING: PostgreSQL Library not found" >&2;}; true;;
7fd305b
+    notfound)
7fd305b
+     LIB_PGSQL="-lpq"
7fd305b
+     # CPPFLAGS="${CPPFLAGS} -I`pg_config --includedir`"
7fd305b
+     save_LDFLAGS=$LDFLAGS
7fd305b
+     LDFLAGS="$LDFLAGS $LIB_PGSQL"
7fd305b
+     { $as_echo "$as_me:$LINENO: checking for PQsetdbLogin in -lpq" >&5
7fd305b
+$as_echo_n "checking for PQsetdbLogin in -lpq... " >&6; }
7fd305b
+if test "${ac_cv_lib_pq_PQsetdbLogin+set}" = set; then
7fd305b
+  $as_echo_n "(cached) " >&6
7fd305b
+else
7fd305b
+  ac_check_lib_save_LIBS=$LIBS
7fd305b
+LIBS="-lpq  $LIBS"
7fd305b
+cat >conftest.$ac_ext <<_ACEOF
7fd305b
+/* confdefs.h.  */
7fd305b
+_ACEOF
7fd305b
+cat confdefs.h >>conftest.$ac_ext
7fd305b
+cat >>conftest.$ac_ext <<_ACEOF
7fd305b
+/* end confdefs.h.  */
7fd305b
+
7fd305b
+/* Override any GCC internal prototype to avoid an error.
7fd305b
+   Use char because int might match the return type of a GCC
7fd305b
+   builtin and then its argument prototype would still apply.  */
7fd305b
+#ifdef __cplusplus
7fd305b
+extern "C"
7fd305b
+#endif
7fd305b
+char PQsetdbLogin ();
7fd305b
+int
7fd305b
+main ()
7fd305b
+{
7fd305b
+return PQsetdbLogin ();
7fd305b
+  ;
7fd305b
+  return 0;
7fd305b
+}
7fd305b
+_ACEOF
7fd305b
+rm -f conftest.$ac_objext conftest$ac_exeext
7fd305b
+if { (ac_try="$ac_link"
7fd305b
+case "(($ac_try" in
7fd305b
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7fd305b
+  *) ac_try_echo=$ac_try;;
7fd305b
+esac
7fd305b
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7fd305b
+$as_echo "$ac_try_echo") >&5
7fd305b
+  (eval "$ac_link") 2>conftest.er1
7fd305b
+  ac_status=$?
7fd305b
+  grep -v '^ *+' conftest.er1 >conftest.err
7fd305b
+  rm -f conftest.er1
7fd305b
+  cat conftest.err >&5
7fd305b
+  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fd305b
+  (exit $ac_status); } && {
7fd305b
+	 test -z "$ac_c_werror_flag" ||
7fd305b
+	 test ! -s conftest.err
7fd305b
+       } && test -s conftest$ac_exeext && {
7fd305b
+	 test "$cross_compiling" = yes ||
7fd305b
+	 $as_test_x conftest$ac_exeext
7fd305b
+       }; then
7fd305b
+  ac_cv_lib_pq_PQsetdbLogin=yes
7fd305b
+else
7fd305b
+  $as_echo "$as_me: failed program was:" >&5
7fd305b
+sed 's/^/| /' conftest.$ac_ext >&5
7fd305b
+
7fd305b
+	ac_cv_lib_pq_PQsetdbLogin=no
7fd305b
+fi
7fd305b
+
7fd305b
+rm -rf conftest.dSYM
7fd305b
+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7fd305b
+      conftest$ac_exeext conftest.$ac_ext
7fd305b
+LIBS=$ac_check_lib_save_LIBS
7fd305b
+fi
7fd305b
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQsetdbLogin" >&5
7fd305b
+$as_echo "$ac_cv_lib_pq_PQsetdbLogin" >&6; }
7fd305b
+if test "x$ac_cv_lib_pq_PQsetdbLogin" = x""yes; then
7fd305b
+
7fd305b
+cat >>confdefs.h <<\_ACEOF
7fd305b
+#define HAVE_PGSQL /**/
7fd305b
+_ACEOF
7fd305b
+
7fd305b
+else
7fd305b
+  { $as_echo "$as_me:$LINENO: WARNING: PostgreSQL Library pq does not work" >&5
7fd305b
+$as_echo "$as_me: WARNING: PostgreSQL Library pq does not work" >&2;}
7fd305b
+          with_pgsql=no
7fd305b
+fi
7fd305b
+
7fd305b
+     LDFLAGS=$save_LDFLAGS
7fd305b
+     ;;
7fd305b
     *)
7fd305b
      if test -d ${with_pgsql}/lib/pgsql; then
7fd305b
 
7fd305b
@@ -14466,6 +14739,8 @@ $as_echo "$as_me: WARNING: PostgreSQL Li
7fd305b
          CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/pgsql/include"
7fd305b
      elif test -d ${with_pgsql}/include; then
7fd305b
          CPPFLAGS="${CPPFLAGS} -I${with_pgsql}/include"
7fd305b
+     elif test -d ${prefix}/include; then
7fd305b
+         CPPFLAGS="${CPPFLAGS} -I${prefix}/include"
7fd305b
      else
7fd305b
          CPPFLAGS="${CPPFLAGS} -I${with_pgsql}"
7fd305b
      fi
7fd305b
@@ -18166,116 +18441,989 @@ fi
7fd305b
 
7fd305b
 done
7fd305b
 
7fd305b
-ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "
7fd305b
-#ifdef HAVE_INTTYPES_H
7fd305b
-#include <inttypes.h>
7fd305b
-#endif
7fd305b
-"
7fd305b
-if test "x$ac_cv_type_long_long" = xyes; then :
7fd305b
-
7fd305b
-cat >>confdefs.h <<_ACEOF
7fd305b
-#define HAVE_LONG_LONG 1
7fd305b
+{ $as_echo "$as_me:$LINENO: checking for long long" >&5
7fd305b
+$as_echo_n "checking for long long... " >&6; }
7fd305b
+if test "${ac_cv_type_long_long+set}" = set; then
7fd305b
+  $as_echo_n "(cached) " >&6
7fd305b
+else
7fd305b
+  ac_cv_type_long_long=no
7fd305b
+cat >conftest.$ac_ext <<_ACEOF
7fd305b
+/* confdefs.h.  */
7fd305b
 _ACEOF
7fd305b
+cat confdefs.h >>conftest.$ac_ext
7fd305b
+cat >>conftest.$ac_ext <<_ACEOF
7fd305b
+/* end confdefs.h.  */
7fd305b
 
7fd305b
-
7fd305b
-fi
7fd305b
-ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "
7fd305b
 #ifdef HAVE_INTTYPES_H
7fd305b
 #include <inttypes.h>
7fd305b
 #endif
7fd305b
-"
7fd305b
-if test "x$ac_cv_type_int8_t" = xyes; then :
7fd305b
 
7fd305b
-cat >>confdefs.h <<_ACEOF
7fd305b
-#define HAVE_INT8_T 1
7fd305b
+int
7fd305b
+main ()
7fd305b
+{
7fd305b
+if (sizeof (long long))
7fd305b
+       return 0;
7fd305b
+  ;
7fd305b
+  return 0;
7fd305b
+}
7fd305b
 _ACEOF
7fd305b
-
7fd305b
-
7fd305b
-fi
7fd305b
-ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "
7fd305b
-#ifdef HAVE_INTTYPES_H
7fd305b
-#include <inttypes.h>
7fd305b
-#endif
7fd305b
-"
7fd305b
-if test "x$ac_cv_type_uint8_t" = xyes; then :
7fd305b
-
7fd305b
-cat >>confdefs.h <<_ACEOF
7fd305b
-#define HAVE_UINT8_T 1
7fd305b
+rm -f conftest.$ac_objext
7fd305b
+if { (ac_try="$ac_compile"
7fd305b
+case "(($ac_try" in
7fd305b
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7fd305b
+  *) ac_try_echo=$ac_try;;
7fd305b
+esac
7fd305b
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7fd305b
+$as_echo "$ac_try_echo") >&5
7fd305b
+  (eval "$ac_compile") 2>conftest.er1
7fd305b
+  ac_status=$?
7fd305b
+  grep -v '^ *+' conftest.er1 >conftest.err
7fd305b
+  rm -f conftest.er1
7fd305b
+  cat conftest.err >&5
7fd305b
+  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fd305b
+  (exit $ac_status); } && {
7fd305b
+	 test -z "$ac_c_werror_flag" ||
7fd305b
+	 test ! -s conftest.err
7fd305b
+       } && test -s conftest.$ac_objext; then
7fd305b
+  cat >conftest.$ac_ext <<_ACEOF
7fd305b
+/* confdefs.h.  */
7fd305b
 _ACEOF
7fd305b
+cat confdefs.h >>conftest.$ac_ext
7fd305b
+cat >>conftest.$ac_ext <<_ACEOF
7fd305b
+/* end confdefs.h.  */
7fd305b
 
7fd305b
-
7fd305b
-fi
7fd305b
-ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "
7fd305b
 #ifdef HAVE_INTTYPES_H
7fd305b
 #include <inttypes.h>
7fd305b
 #endif
7fd305b
-"
7fd305b
-if test "x$ac_cv_type_int16_t" = xyes; then :
7fd305b
 
7fd305b
-cat >>confdefs.h <<_ACEOF
7fd305b
-#define HAVE_INT16_T 1
7fd305b
+int
7fd305b
+main ()
7fd305b
+{
7fd305b
+if (sizeof ((long long)))
7fd305b
+	  return 0;
7fd305b
+  ;
7fd305b
+  return 0;
7fd305b
+}
7fd305b
 _ACEOF
7fd305b
-
7fd305b
-
7fd305b
-fi
7fd305b
-ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "
7fd305b
-#ifdef HAVE_INTTYPES_H
7fd305b
-#include <inttypes.h>
7fd305b
-#endif
7fd305b
-"
7fd305b
-if test "x$ac_cv_type_uint16_t" = xyes; then :
7fd305b
-
7fd305b
-cat >>confdefs.h <<_ACEOF
7fd305b
-#define HAVE_UINT16_T 1
7fd305b
+rm -f conftest.$ac_objext
7fd305b
+if { (ac_try="$ac_compile"
7fd305b
+case "(($ac_try" in
7fd305b
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7fd305b
+  *) ac_try_echo=$ac_try;;
7fd305b
+esac
7fd305b
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7fd305b
+$as_echo "$ac_try_echo") >&5
7fd305b
+  (eval "$ac_compile") 2>conftest.er1
7fd305b
+  ac_status=$?
7fd305b
+  grep -v '^ *+' conftest.er1 >conftest.err
7fd305b
+  rm -f conftest.er1
7fd305b
+  cat conftest.err >&5
7fd305b
+  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fd305b
+  (exit $ac_status); } && {
7fd305b
+	 test -z "$ac_c_werror_flag" ||
7fd305b
+	 test ! -s conftest.err
7fd305b
+       } && test -s conftest.$ac_objext; then
7fd305b
+  :
7fd305b
+else
7fd305b
+  $as_echo "$as_me: failed program was:" >&5
7fd305b
+sed 's/^/| /' conftest.$ac_ext >&5
7fd305b
+
7fd305b
+	ac_cv_type_long_long=yes
7fd305b
+fi
7fd305b
+
7fd305b
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7fd305b
+else
7fd305b
+  $as_echo "$as_me: failed program was:" >&5
7fd305b
+sed 's/^/| /' conftest.$ac_ext >&5
7fd305b
+
7fd305b
+
7fd305b
+fi
7fd305b
+
7fd305b
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7fd305b
+fi
7fd305b
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
7fd305b
+$as_echo "$ac_cv_type_long_long" >&6; }
7fd305b
+if test "x$ac_cv_type_long_long" = x""yes; then
7fd305b
+
7fd305b
+cat >>confdefs.h <<_ACEOF
7fd305b
+#define HAVE_LONG_LONG 1
7fd305b
 _ACEOF
7fd305b
 
7fd305b
 
7fd305b
 fi
7fd305b
-ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "
7fd305b
+{ $as_echo "$as_me:$LINENO: checking for int8_t" >&5
7fd305b
+$as_echo_n "checking for int8_t... " >&6; }
7fd305b
+if test "${ac_cv_type_int8_t+set}" = set; then
7fd305b
+  $as_echo_n "(cached) " >&6
7fd305b
+else
7fd305b
+  ac_cv_type_int8_t=no
7fd305b
+cat >conftest.$ac_ext <<_ACEOF
7fd305b
+/* confdefs.h.  */
7fd305b
+_ACEOF
7fd305b
+cat confdefs.h >>conftest.$ac_ext
7fd305b
+cat >>conftest.$ac_ext <<_ACEOF
7fd305b
+/* end confdefs.h.  */
7fd305b
+
7fd305b
 #ifdef HAVE_INTTYPES_H
7fd305b
 #include <inttypes.h>
7fd305b
 #endif
7fd305b
-"
7fd305b
-if test "x$ac_cv_type_int32_t" = xyes; then :
7fd305b
 
7fd305b
-cat >>confdefs.h <<_ACEOF
7fd305b
-#define HAVE_INT32_T 1
7fd305b
+int
7fd305b
+main ()
7fd305b
+{
7fd305b
+if (sizeof (int8_t))
7fd305b
+       return 0;
7fd305b
+  ;
7fd305b
+  return 0;
7fd305b
+}
7fd305b
 _ACEOF
7fd305b
+rm -f conftest.$ac_objext
7fd305b
+if { (ac_try="$ac_compile"
7fd305b
+case "(($ac_try" in
7fd305b
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7fd305b
+  *) ac_try_echo=$ac_try;;
7fd305b
+esac
7fd305b
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7fd305b
+$as_echo "$ac_try_echo") >&5
7fd305b
+  (eval "$ac_compile") 2>conftest.er1
7fd305b
+  ac_status=$?
7fd305b
+  grep -v '^ *+' conftest.er1 >conftest.err
7fd305b
+  rm -f conftest.er1
7fd305b
+  cat conftest.err >&5
7fd305b
+  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fd305b
+  (exit $ac_status); } && {
7fd305b
+	 test -z "$ac_c_werror_flag" ||
7fd305b
+	 test ! -s conftest.err
7fd305b
+       } && test -s conftest.$ac_objext; then
7fd305b
+  cat >conftest.$ac_ext <<_ACEOF
7fd305b
+/* confdefs.h.  */
7fd305b
+_ACEOF
7fd305b
+cat confdefs.h >>conftest.$ac_ext
7fd305b
+cat >>conftest.$ac_ext <<_ACEOF
7fd305b
+/* end confdefs.h.  */
7fd305b
 
7fd305b
-
7fd305b
-fi
7fd305b
-ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "
7fd305b
 #ifdef HAVE_INTTYPES_H
7fd305b
 #include <inttypes.h>
7fd305b
 #endif
7fd305b
-"
7fd305b
-if test "x$ac_cv_type_uint32_t" = xyes; then :
7fd305b
+
7fd305b
+int
7fd305b
+main ()
7fd305b
+{
7fd305b
+if (sizeof ((int8_t)))
7fd305b
+	  return 0;
7fd305b
+  ;
7fd305b
+  return 0;
7fd305b
+}
7fd305b
+_ACEOF
7fd305b
+rm -f conftest.$ac_objext
7fd305b
+if { (ac_try="$ac_compile"
7fd305b
+case "(($ac_try" in
7fd305b
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7fd305b
+  *) ac_try_echo=$ac_try;;
7fd305b
+esac
7fd305b
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7fd305b
+$as_echo "$ac_try_echo") >&5
7fd305b
+  (eval "$ac_compile") 2>conftest.er1
7fd305b
+  ac_status=$?
7fd305b
+  grep -v '^ *+' conftest.er1 >conftest.err
7fd305b
+  rm -f conftest.er1
7fd305b
+  cat conftest.err >&5
7fd305b
+  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fd305b
+  (exit $ac_status); } && {
7fd305b
+	 test -z "$ac_c_werror_flag" ||
7fd305b
+	 test ! -s conftest.err
7fd305b
+       } && test -s conftest.$ac_objext; then
7fd305b
+  :
7fd305b
+else
7fd305b
+  $as_echo "$as_me: failed program was:" >&5
7fd305b
+sed 's/^/| /' conftest.$ac_ext >&5
7fd305b
+
7fd305b
+	ac_cv_type_int8_t=yes
7fd305b
+fi
7fd305b
+
7fd305b
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7fd305b
+else
7fd305b
+  $as_echo "$as_me: failed program was:" >&5
7fd305b
+sed 's/^/| /' conftest.$ac_ext >&5
7fd305b
+
7fd305b
+
7fd305b
+fi
7fd305b
+
7fd305b
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7fd305b
+fi
7fd305b
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
7fd305b
+$as_echo "$ac_cv_type_int8_t" >&6; }
7fd305b
+if test "x$ac_cv_type_int8_t" = x""yes; then
7fd305b
 
7fd305b
 cat >>confdefs.h <<_ACEOF
7fd305b
-#define HAVE_UINT32_T 1
7fd305b
+#define HAVE_INT8_T 1
7fd305b
 _ACEOF
7fd305b
 
7fd305b
 
7fd305b
 fi
7fd305b
-ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "
7fd305b
+{ $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
7fd305b
+$as_echo_n "checking for uint8_t... " >&6; }
7fd305b
+if test "${ac_cv_type_uint8_t+set}" = set; then
7fd305b
+  $as_echo_n "(cached) " >&6
7fd305b
+else
7fd305b
+  ac_cv_type_uint8_t=no
7fd305b
+cat >conftest.$ac_ext <<_ACEOF
7fd305b
+/* confdefs.h.  */
7fd305b
+_ACEOF
7fd305b
+cat confdefs.h >>conftest.$ac_ext
7fd305b
+cat >>conftest.$ac_ext <<_ACEOF
7fd305b
+/* end confdefs.h.  */
7fd305b
+
7fd305b
 #ifdef HAVE_INTTYPES_H
7fd305b
 #include <inttypes.h>
7fd305b
 #endif
7fd305b
-"
7fd305b
-if test "x$ac_cv_type_int64_t" = xyes; then :
7fd305b
+
7fd305b
+int
7fd305b
+main ()
7fd305b
+{
7fd305b
+if (sizeof (uint8_t))
7fd305b
+       return 0;
7fd305b
+  ;
7fd305b
+  return 0;
7fd305b
+}
7fd305b
+_ACEOF
7fd305b
+rm -f conftest.$ac_objext
7fd305b
+if { (ac_try="$ac_compile"
7fd305b
+case "(($ac_try" in
7fd305b
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7fd305b
+  *) ac_try_echo=$ac_try;;
7fd305b
+esac
7fd305b
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7fd305b
+$as_echo "$ac_try_echo") >&5
7fd305b
+  (eval "$ac_compile") 2>conftest.er1
7fd305b
+  ac_status=$?
7fd305b
+  grep -v '^ *+' conftest.er1 >conftest.err
7fd305b
+  rm -f conftest.er1
7fd305b
+  cat conftest.err >&5
7fd305b
+  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fd305b
+  (exit $ac_status); } && {
7fd305b
+	 test -z "$ac_c_werror_flag" ||
7fd305b
+	 test ! -s conftest.err
7fd305b
+       } && test -s conftest.$ac_objext; then
7fd305b
+  cat >conftest.$ac_ext <<_ACEOF
7fd305b
+/* confdefs.h.  */
7fd305b
+_ACEOF
7fd305b
+cat confdefs.h >>conftest.$ac_ext
7fd305b
+cat >>conftest.$ac_ext <<_ACEOF
7fd305b
+/* end confdefs.h.  */
7fd305b
+
7fd305b
+#ifdef HAVE_INTTYPES_H
7fd305b
+#include <inttypes.h>
7fd305b
+#endif
7fd305b
+
7fd305b
+int
7fd305b
+main ()
7fd305b
+{
7fd305b
+if (sizeof ((uint8_t)))
7fd305b
+	  return 0;
7fd305b
+  ;
7fd305b
+  return 0;
7fd305b
+}
7fd305b
+_ACEOF
7fd305b
+rm -f conftest.$ac_objext
7fd305b
+if { (ac_try="$ac_compile"
7fd305b
+case "(($ac_try" in
7fd305b
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7fd305b
+  *) ac_try_echo=$ac_try;;
7fd305b
+esac
7fd305b
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7fd305b
+$as_echo "$ac_try_echo") >&5
7fd305b
+  (eval "$ac_compile") 2>conftest.er1
7fd305b
+  ac_status=$?
7fd305b
+  grep -v '^ *+' conftest.er1 >conftest.err
7fd305b
+  rm -f conftest.er1
7fd305b
+  cat conftest.err >&5
7fd305b
+  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fd305b
+  (exit $ac_status); } && {
7fd305b
+	 test -z "$ac_c_werror_flag" ||
7fd305b
+	 test ! -s conftest.err
7fd305b
+       } && test -s conftest.$ac_objext; then
7fd305b
+  :
7fd305b
+else
7fd305b
+  $as_echo "$as_me: failed program was:" >&5
7fd305b
+sed 's/^/| /' conftest.$ac_ext >&5
7fd305b
+
7fd305b
+	ac_cv_type_uint8_t=yes
7fd305b
+fi
7fd305b
+
7fd305b
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7fd305b
+else
7fd305b
+  $as_echo "$as_me: failed program was:" >&5
7fd305b
+sed 's/^/| /' conftest.$ac_ext >&5
7fd305b
+
7fd305b
+
7fd305b
+fi
7fd305b
+
7fd305b
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7fd305b
+fi
7fd305b
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
7fd305b
+$as_echo "$ac_cv_type_uint8_t" >&6; }
7fd305b
+if test "x$ac_cv_type_uint8_t" = x""yes; then
7fd305b
 
7fd305b
 cat >>confdefs.h <<_ACEOF
7fd305b
-#define HAVE_INT64_T 1
7fd305b
+#define HAVE_UINT8_T 1
7fd305b
 _ACEOF
7fd305b
 
7fd305b
 
7fd305b
 fi
7fd305b
-ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "
7fd305b
+{ $as_echo "$as_me:$LINENO: checking for int16_t" >&5
7fd305b
+$as_echo_n "checking for int16_t... " >&6; }
7fd305b
+if test "${ac_cv_type_int16_t+set}" = set; then
7fd305b
+  $as_echo_n "(cached) " >&6
7fd305b
+else
7fd305b
+  ac_cv_type_int16_t=no
7fd305b
+cat >conftest.$ac_ext <<_ACEOF
7fd305b
+/* confdefs.h.  */
7fd305b
+_ACEOF
7fd305b
+cat confdefs.h >>conftest.$ac_ext
7fd305b
+cat >>conftest.$ac_ext <<_ACEOF
7fd305b
+/* end confdefs.h.  */
7fd305b
+
7fd305b
 #ifdef HAVE_INTTYPES_H
7fd305b
 #include <inttypes.h>
7fd305b
 #endif
7fd305b
-"
7fd305b
-if test "x$ac_cv_type_uint64_t" = xyes; then :
7fd305b
+
7fd305b
+int
7fd305b
+main ()
7fd305b
+{
7fd305b
+if (sizeof (int16_t))
7fd305b
+       return 0;
7fd305b
+  ;
7fd305b
+  return 0;
7fd305b
+}
7fd305b
+_ACEOF
7fd305b
+rm -f conftest.$ac_objext
7fd305b
+if { (ac_try="$ac_compile"
7fd305b
+case "(($ac_try" in
7fd305b
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7fd305b
+  *) ac_try_echo=$ac_try;;
7fd305b
+esac
7fd305b
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7fd305b
+$as_echo "$ac_try_echo") >&5
7fd305b
+  (eval "$ac_compile") 2>conftest.er1
7fd305b
+  ac_status=$?
7fd305b
+  grep -v '^ *+' conftest.er1 >conftest.err
7fd305b
+  rm -f conftest.er1
7fd305b
+  cat conftest.err >&5
7fd305b
+  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fd305b
+  (exit $ac_status); } && {
7fd305b
+	 test -z "$ac_c_werror_flag" ||
7fd305b
+	 test ! -s conftest.err
7fd305b
+       } && test -s conftest.$ac_objext; then
7fd305b
+  cat >conftest.$ac_ext <<_ACEOF
7fd305b
+/* confdefs.h.  */
7fd305b
+_ACEOF
7fd305b
+cat confdefs.h >>conftest.$ac_ext
7fd305b
+cat >>conftest.$ac_ext <<_ACEOF
7fd305b
+/* end confdefs.h.  */
7fd305b
+
7fd305b
+#ifdef HAVE_INTTYPES_H
7fd305b
+#include <inttypes.h>
7fd305b
+#endif
7fd305b
+
7fd305b
+int
7fd305b
+main ()
7fd305b
+{
7fd305b
+if (sizeof ((int16_t)))
7fd305b
+	  return 0;
7fd305b
+  ;
7fd305b
+  return 0;
7fd305b
+}
7fd305b
+_ACEOF
7fd305b
+rm -f conftest.$ac_objext
7fd305b
+if { (ac_try="$ac_compile"
7fd305b
+case "(($ac_try" in
7fd305b
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7fd305b
+  *) ac_try_echo=$ac_try;;
7fd305b
+esac
7fd305b
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7fd305b
+$as_echo "$ac_try_echo") >&5
7fd305b
+  (eval "$ac_compile") 2>conftest.er1
7fd305b
+  ac_status=$?
7fd305b
+  grep -v '^ *+' conftest.er1 >conftest.err
7fd305b
+  rm -f conftest.er1
7fd305b
+  cat conftest.err >&5
7fd305b
+  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fd305b
+  (exit $ac_status); } && {
7fd305b
+	 test -z "$ac_c_werror_flag" ||
7fd305b
+	 test ! -s conftest.err
7fd305b
+       } && test -s conftest.$ac_objext; then
7fd305b
+  :
7fd305b
+else
7fd305b
+  $as_echo "$as_me: failed program was:" >&5
7fd305b
+sed 's/^/| /' conftest.$ac_ext >&5
7fd305b
+
7fd305b
+	ac_cv_type_int16_t=yes
7fd305b
+fi
7fd305b
+
7fd305b
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7fd305b
+else
7fd305b
+  $as_echo "$as_me: failed program was:" >&5
7fd305b
+sed 's/^/| /' conftest.$ac_ext >&5
7fd305b
+
7fd305b
+
7fd305b
+fi
7fd305b
+
7fd305b
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7fd305b
+fi
7fd305b
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
7fd305b
+$as_echo "$ac_cv_type_int16_t" >&6; }
7fd305b
+if test "x$ac_cv_type_int16_t" = x""yes; then
7fd305b
+
7fd305b
+cat >>confdefs.h <<_ACEOF
7fd305b
+#define HAVE_INT16_T 1
7fd305b
+_ACEOF
7fd305b
+
7fd305b
+
7fd305b
+fi
7fd305b
+{ $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
7fd305b
+$as_echo_n "checking for uint16_t... " >&6; }
7fd305b
+if test "${ac_cv_type_uint16_t+set}" = set; then
7fd305b
+  $as_echo_n "(cached) " >&6
7fd305b
+else
7fd305b
+  ac_cv_type_uint16_t=no
7fd305b
+cat >conftest.$ac_ext <<_ACEOF
7fd305b
+/* confdefs.h.  */
7fd305b
+_ACEOF
7fd305b
+cat confdefs.h >>conftest.$ac_ext
7fd305b
+cat >>conftest.$ac_ext <<_ACEOF
7fd305b
+/* end confdefs.h.  */
7fd305b
+
7fd305b
+#ifdef HAVE_INTTYPES_H
7fd305b
+#include <inttypes.h>
7fd305b
+#endif
7fd305b
+
7fd305b
+int
7fd305b
+main ()
7fd305b
+{
7fd305b
+if (sizeof (uint16_t))
7fd305b
+       return 0;
7fd305b
+  ;
7fd305b
+  return 0;
7fd305b
+}
7fd305b
+_ACEOF
7fd305b
+rm -f conftest.$ac_objext
7fd305b
+if { (ac_try="$ac_compile"
7fd305b
+case "(($ac_try" in
7fd305b
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7fd305b
+  *) ac_try_echo=$ac_try;;
7fd305b
+esac
7fd305b
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7fd305b
+$as_echo "$ac_try_echo") >&5
7fd305b
+  (eval "$ac_compile") 2>conftest.er1
7fd305b
+  ac_status=$?
7fd305b
+  grep -v '^ *+' conftest.er1 >conftest.err
7fd305b
+  rm -f conftest.er1
7fd305b
+  cat conftest.err >&5
7fd305b
+  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fd305b
+  (exit $ac_status); } && {
7fd305b
+	 test -z "$ac_c_werror_flag" ||
7fd305b
+	 test ! -s conftest.err
7fd305b
+       } && test -s conftest.$ac_objext; then
7fd305b
+  cat >conftest.$ac_ext <<_ACEOF
7fd305b
+/* confdefs.h.  */
7fd305b
+_ACEOF
7fd305b
+cat confdefs.h >>conftest.$ac_ext
7fd305b
+cat >>conftest.$ac_ext <<_ACEOF
7fd305b
+/* end confdefs.h.  */
7fd305b
+
7fd305b
+#ifdef HAVE_INTTYPES_H
7fd305b
+#include <inttypes.h>
7fd305b
+#endif
7fd305b
+
7fd305b
+int
7fd305b
+main ()
7fd305b
+{
7fd305b
+if (sizeof ((uint16_t)))
7fd305b
+	  return 0;
7fd305b
+  ;
7fd305b
+  return 0;
7fd305b
+}
7fd305b
+_ACEOF
7fd305b
+rm -f conftest.$ac_objext
7fd305b
+if { (ac_try="$ac_compile"
7fd305b
+case "(($ac_try" in
7fd305b
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7fd305b
+  *) ac_try_echo=$ac_try;;
7fd305b
+esac
7fd305b
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7fd305b
+$as_echo "$ac_try_echo") >&5
7fd305b
+  (eval "$ac_compile") 2>conftest.er1
7fd305b
+  ac_status=$?
7fd305b
+  grep -v '^ *+' conftest.er1 >conftest.err
7fd305b
+  rm -f conftest.er1
7fd305b
+  cat conftest.err >&5
7fd305b
+  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fd305b
+  (exit $ac_status); } && {
7fd305b
+	 test -z "$ac_c_werror_flag" ||
7fd305b
+	 test ! -s conftest.err
7fd305b
+       } && test -s conftest.$ac_objext; then
7fd305b
+  :
7fd305b
+else
7fd305b
+  $as_echo "$as_me: failed program was:" >&5
7fd305b
+sed 's/^/| /' conftest.$ac_ext >&5
7fd305b
+
7fd305b
+	ac_cv_type_uint16_t=yes
7fd305b
+fi
7fd305b
+
7fd305b
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7fd305b
+else
7fd305b
+  $as_echo "$as_me: failed program was:" >&5
7fd305b
+sed 's/^/| /' conftest.$ac_ext >&5
7fd305b
+
7fd305b
+
7fd305b
+fi
7fd305b
+
7fd305b
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7fd305b
+fi
7fd305b
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
7fd305b
+$as_echo "$ac_cv_type_uint16_t" >&6; }
7fd305b
+if test "x$ac_cv_type_uint16_t" = x""yes; then
7fd305b
+
7fd305b
+cat >>confdefs.h <<_ACEOF
7fd305b
+#define HAVE_UINT16_T 1
7fd305b
+_ACEOF
7fd305b
+
7fd305b
+
7fd305b
+fi
7fd305b
+{ $as_echo "$as_me:$LINENO: checking for int32_t" >&5
7fd305b
+$as_echo_n "checking for int32_t... " >&6; }
7fd305b
+if test "${ac_cv_type_int32_t+set}" = set; then
7fd305b
+  $as_echo_n "(cached) " >&6
7fd305b
+else
7fd305b
+  ac_cv_type_int32_t=no
7fd305b
+cat >conftest.$ac_ext <<_ACEOF
7fd305b
+/* confdefs.h.  */
7fd305b
+_ACEOF
7fd305b
+cat confdefs.h >>conftest.$ac_ext
7fd305b
+cat >>conftest.$ac_ext <<_ACEOF
7fd305b
+/* end confdefs.h.  */
7fd305b
+
7fd305b
+#ifdef HAVE_INTTYPES_H
7fd305b
+#include <inttypes.h>
7fd305b
+#endif
7fd305b
+
7fd305b
+int
7fd305b
+main ()
7fd305b
+{
7fd305b
+if (sizeof (int32_t))
7fd305b
+       return 0;
7fd305b
+  ;
7fd305b
+  return 0;
7fd305b
+}
7fd305b
+_ACEOF
7fd305b
+rm -f conftest.$ac_objext
7fd305b
+if { (ac_try="$ac_compile"
7fd305b
+case "(($ac_try" in
7fd305b
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7fd305b
+  *) ac_try_echo=$ac_try;;
7fd305b
+esac
7fd305b
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7fd305b
+$as_echo "$ac_try_echo") >&5
7fd305b
+  (eval "$ac_compile") 2>conftest.er1
7fd305b
+  ac_status=$?
7fd305b
+  grep -v '^ *+' conftest.er1 >conftest.err
7fd305b
+  rm -f conftest.er1
7fd305b
+  cat conftest.err >&5
7fd305b
+  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fd305b
+  (exit $ac_status); } && {
7fd305b
+	 test -z "$ac_c_werror_flag" ||
7fd305b
+	 test ! -s conftest.err
7fd305b
+       } && test -s conftest.$ac_objext; then
7fd305b
+  cat >conftest.$ac_ext <<_ACEOF
7fd305b
+/* confdefs.h.  */
7fd305b
+_ACEOF
7fd305b
+cat confdefs.h >>conftest.$ac_ext
7fd305b
+cat >>conftest.$ac_ext <<_ACEOF
7fd305b
+/* end confdefs.h.  */
7fd305b
+
7fd305b
+#ifdef HAVE_INTTYPES_H
7fd305b
+#include <inttypes.h>
7fd305b
+#endif
7fd305b
+
7fd305b
+int
7fd305b
+main ()
7fd305b
+{
7fd305b
+if (sizeof ((int32_t)))
7fd305b
+	  return 0;
7fd305b
+  ;
7fd305b
+  return 0;
7fd305b
+}
7fd305b
+_ACEOF
7fd305b
+rm -f conftest.$ac_objext
7fd305b
+if { (ac_try="$ac_compile"
7fd305b
+case "(($ac_try" in
7fd305b
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7fd305b
+  *) ac_try_echo=$ac_try;;
7fd305b
+esac
7fd305b
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7fd305b
+$as_echo "$ac_try_echo") >&5
7fd305b
+  (eval "$ac_compile") 2>conftest.er1
7fd305b
+  ac_status=$?
7fd305b
+  grep -v '^ *+' conftest.er1 >conftest.err
7fd305b
+  rm -f conftest.er1
7fd305b
+  cat conftest.err >&5
7fd305b
+  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fd305b
+  (exit $ac_status); } && {
7fd305b
+	 test -z "$ac_c_werror_flag" ||
7fd305b
+	 test ! -s conftest.err
7fd305b
+       } && test -s conftest.$ac_objext; then
7fd305b
+  :
7fd305b
+else
7fd305b
+  $as_echo "$as_me: failed program was:" >&5
7fd305b
+sed 's/^/| /' conftest.$ac_ext >&5
7fd305b
+
7fd305b
+	ac_cv_type_int32_t=yes
7fd305b
+fi
7fd305b
+
7fd305b
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7fd305b
+else
7fd305b
+  $as_echo "$as_me: failed program was:" >&5
7fd305b
+sed 's/^/| /' conftest.$ac_ext >&5
7fd305b
+
7fd305b
+
7fd305b
+fi
7fd305b
+
7fd305b
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7fd305b
+fi
7fd305b
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
7fd305b
+$as_echo "$ac_cv_type_int32_t" >&6; }
7fd305b
+if test "x$ac_cv_type_int32_t" = x""yes; then
7fd305b
+
7fd305b
+cat >>confdefs.h <<_ACEOF
7fd305b
+#define HAVE_INT32_T 1
7fd305b
+_ACEOF
7fd305b
+
7fd305b
+
7fd305b
+fi
7fd305b
+{ $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
7fd305b
+$as_echo_n "checking for uint32_t... " >&6; }
7fd305b
+if test "${ac_cv_type_uint32_t+set}" = set; then
7fd305b
+  $as_echo_n "(cached) " >&6
7fd305b
+else
7fd305b
+  ac_cv_type_uint32_t=no
7fd305b
+cat >conftest.$ac_ext <<_ACEOF
7fd305b
+/* confdefs.h.  */
7fd305b
+_ACEOF
7fd305b
+cat confdefs.h >>conftest.$ac_ext
7fd305b
+cat >>conftest.$ac_ext <<_ACEOF
7fd305b
+/* end confdefs.h.  */
7fd305b
+
7fd305b
+#ifdef HAVE_INTTYPES_H
7fd305b
+#include <inttypes.h>
7fd305b
+#endif
7fd305b
+
7fd305b
+int
7fd305b
+main ()
7fd305b
+{
7fd305b
+if (sizeof (uint32_t))
7fd305b
+       return 0;
7fd305b
+  ;
7fd305b
+  return 0;
7fd305b
+}
7fd305b
+_ACEOF
7fd305b
+rm -f conftest.$ac_objext
7fd305b
+if { (ac_try="$ac_compile"
7fd305b
+case "(($ac_try" in
7fd305b
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7fd305b
+  *) ac_try_echo=$ac_try;;
7fd305b
+esac
7fd305b
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7fd305b
+$as_echo "$ac_try_echo") >&5
7fd305b
+  (eval "$ac_compile") 2>conftest.er1
7fd305b
+  ac_status=$?
7fd305b
+  grep -v '^ *+' conftest.er1 >conftest.err
7fd305b
+  rm -f conftest.er1
7fd305b
+  cat conftest.err >&5
7fd305b
+  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fd305b
+  (exit $ac_status); } && {
7fd305b
+	 test -z "$ac_c_werror_flag" ||
7fd305b
+	 test ! -s conftest.err
7fd305b
+       } && test -s conftest.$ac_objext; then
7fd305b
+  cat >conftest.$ac_ext <<_ACEOF
7fd305b
+/* confdefs.h.  */
7fd305b
+_ACEOF
7fd305b
+cat confdefs.h >>conftest.$ac_ext
7fd305b
+cat >>conftest.$ac_ext <<_ACEOF
7fd305b
+/* end confdefs.h.  */
7fd305b
+
7fd305b
+#ifdef HAVE_INTTYPES_H
7fd305b
+#include <inttypes.h>
7fd305b
+#endif
7fd305b
+
7fd305b
+int
7fd305b
+main ()
7fd305b
+{
7fd305b
+if (sizeof ((uint32_t)))
7fd305b
+	  return 0;
7fd305b
+  ;
7fd305b
+  return 0;
7fd305b
+}
7fd305b
+_ACEOF
7fd305b
+rm -f conftest.$ac_objext
7fd305b
+if { (ac_try="$ac_compile"
7fd305b
+case "(($ac_try" in
7fd305b
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7fd305b
+  *) ac_try_echo=$ac_try;;
7fd305b
+esac
7fd305b
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7fd305b
+$as_echo "$ac_try_echo") >&5
7fd305b
+  (eval "$ac_compile") 2>conftest.er1
7fd305b
+  ac_status=$?
7fd305b
+  grep -v '^ *+' conftest.er1 >conftest.err
7fd305b
+  rm -f conftest.er1
7fd305b
+  cat conftest.err >&5
7fd305b
+  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fd305b
+  (exit $ac_status); } && {
7fd305b
+	 test -z "$ac_c_werror_flag" ||
7fd305b
+	 test ! -s conftest.err
7fd305b
+       } && test -s conftest.$ac_objext; then
7fd305b
+  :
7fd305b
+else
7fd305b
+  $as_echo "$as_me: failed program was:" >&5
7fd305b
+sed 's/^/| /' conftest.$ac_ext >&5
7fd305b
+
7fd305b
+	ac_cv_type_uint32_t=yes
7fd305b
+fi
7fd305b
+
7fd305b
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7fd305b
+else
7fd305b
+  $as_echo "$as_me: failed program was:" >&5
7fd305b
+sed 's/^/| /' conftest.$ac_ext >&5
7fd305b
+
7fd305b
+
7fd305b
+fi
7fd305b
+
7fd305b
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7fd305b
+fi
7fd305b
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
7fd305b
+$as_echo "$ac_cv_type_uint32_t" >&6; }
7fd305b
+if test "x$ac_cv_type_uint32_t" = x""yes; then
7fd305b
+
7fd305b
+cat >>confdefs.h <<_ACEOF
7fd305b
+#define HAVE_UINT32_T 1
7fd305b
+_ACEOF
7fd305b
+
7fd305b
+
7fd305b
+fi
7fd305b
+{ $as_echo "$as_me:$LINENO: checking for int64_t" >&5
7fd305b
+$as_echo_n "checking for int64_t... " >&6; }
7fd305b
+if test "${ac_cv_type_int64_t+set}" = set; then
7fd305b
+  $as_echo_n "(cached) " >&6
7fd305b
+else
7fd305b
+  ac_cv_type_int64_t=no
7fd305b
+cat >conftest.$ac_ext <<_ACEOF
7fd305b
+/* confdefs.h.  */
7fd305b
+_ACEOF
7fd305b
+cat confdefs.h >>conftest.$ac_ext
7fd305b
+cat >>conftest.$ac_ext <<_ACEOF
7fd305b
+/* end confdefs.h.  */
7fd305b
+
7fd305b
+#ifdef HAVE_INTTYPES_H
7fd305b
+#include <inttypes.h>
7fd305b
+#endif
7fd305b
+
7fd305b
+int
7fd305b
+main ()
7fd305b
+{
7fd305b
+if (sizeof (int64_t))
7fd305b
+       return 0;
7fd305b
+  ;
7fd305b
+  return 0;
7fd305b
+}
7fd305b
+_ACEOF
7fd305b
+rm -f conftest.$ac_objext
7fd305b
+if { (ac_try="$ac_compile"
7fd305b
+case "(($ac_try" in
7fd305b
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7fd305b
+  *) ac_try_echo=$ac_try;;
7fd305b
+esac
7fd305b
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7fd305b
+$as_echo "$ac_try_echo") >&5
7fd305b
+  (eval "$ac_compile") 2>conftest.er1
7fd305b
+  ac_status=$?
7fd305b
+  grep -v '^ *+' conftest.er1 >conftest.err
7fd305b
+  rm -f conftest.er1
7fd305b
+  cat conftest.err >&5
7fd305b
+  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fd305b
+  (exit $ac_status); } && {
7fd305b
+	 test -z "$ac_c_werror_flag" ||
7fd305b
+	 test ! -s conftest.err
7fd305b
+       } && test -s conftest.$ac_objext; then
7fd305b
+  cat >conftest.$ac_ext <<_ACEOF
7fd305b
+/* confdefs.h.  */
7fd305b
+_ACEOF
7fd305b
+cat confdefs.h >>conftest.$ac_ext
7fd305b
+cat >>conftest.$ac_ext <<_ACEOF
7fd305b
+/* end confdefs.h.  */
7fd305b
+
7fd305b
+#ifdef HAVE_INTTYPES_H
7fd305b
+#include <inttypes.h>
7fd305b
+#endif
7fd305b
+
7fd305b
+int
7fd305b
+main ()
7fd305b
+{
7fd305b
+if (sizeof ((int64_t)))
7fd305b
+	  return 0;
7fd305b
+  ;
7fd305b
+  return 0;
7fd305b
+}
7fd305b
+_ACEOF
7fd305b
+rm -f conftest.$ac_objext
7fd305b
+if { (ac_try="$ac_compile"
7fd305b
+case "(($ac_try" in
7fd305b
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7fd305b
+  *) ac_try_echo=$ac_try;;
7fd305b
+esac
7fd305b
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7fd305b
+$as_echo "$ac_try_echo") >&5
7fd305b
+  (eval "$ac_compile") 2>conftest.er1
7fd305b
+  ac_status=$?
7fd305b
+  grep -v '^ *+' conftest.er1 >conftest.err
7fd305b
+  rm -f conftest.er1
7fd305b
+  cat conftest.err >&5
7fd305b
+  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fd305b
+  (exit $ac_status); } && {
7fd305b
+	 test -z "$ac_c_werror_flag" ||
7fd305b
+	 test ! -s conftest.err
7fd305b
+       } && test -s conftest.$ac_objext; then
7fd305b
+  :
7fd305b
+else
7fd305b
+  $as_echo "$as_me: failed program was:" >&5
7fd305b
+sed 's/^/| /' conftest.$ac_ext >&5
7fd305b
+
7fd305b
+	ac_cv_type_int64_t=yes
7fd305b
+fi
7fd305b
+
7fd305b
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7fd305b
+else
7fd305b
+  $as_echo "$as_me: failed program was:" >&5
7fd305b
+sed 's/^/| /' conftest.$ac_ext >&5
7fd305b
+
7fd305b
+
7fd305b
+fi
7fd305b
+
7fd305b
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7fd305b
+fi
7fd305b
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
7fd305b
+$as_echo "$ac_cv_type_int64_t" >&6; }
7fd305b
+if test "x$ac_cv_type_int64_t" = x""yes; then
7fd305b
+
7fd305b
+cat >>confdefs.h <<_ACEOF
7fd305b
+#define HAVE_INT64_T 1
7fd305b
+_ACEOF
7fd305b
+
7fd305b
+
7fd305b
+fi
7fd305b
+{ $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
7fd305b
+$as_echo_n "checking for uint64_t... " >&6; }
7fd305b
+if test "${ac_cv_type_uint64_t+set}" = set; then
7fd305b
+  $as_echo_n "(cached) " >&6
7fd305b
+else
7fd305b
+  ac_cv_type_uint64_t=no
7fd305b
+cat >conftest.$ac_ext <<_ACEOF
7fd305b
+/* confdefs.h.  */
7fd305b
+_ACEOF
7fd305b
+cat confdefs.h >>conftest.$ac_ext
7fd305b
+cat >>conftest.$ac_ext <<_ACEOF
7fd305b
+/* end confdefs.h.  */
7fd305b
+
7fd305b
+#ifdef HAVE_INTTYPES_H
7fd305b
+#include <inttypes.h>
7fd305b
+#endif
7fd305b
+
7fd305b
+int
7fd305b
+main ()
7fd305b
+{
7fd305b
+if (sizeof (uint64_t))
7fd305b
+       return 0;
7fd305b
+  ;
7fd305b
+  return 0;
7fd305b
+}
7fd305b
+_ACEOF
7fd305b
+rm -f conftest.$ac_objext
7fd305b
+if { (ac_try="$ac_compile"
7fd305b
+case "(($ac_try" in
7fd305b
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7fd305b
+  *) ac_try_echo=$ac_try;;
7fd305b
+esac
7fd305b
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7fd305b
+$as_echo "$ac_try_echo") >&5
7fd305b
+  (eval "$ac_compile") 2>conftest.er1
7fd305b
+  ac_status=$?
7fd305b
+  grep -v '^ *+' conftest.er1 >conftest.err
7fd305b
+  rm -f conftest.er1
7fd305b
+  cat conftest.err >&5
7fd305b
+  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fd305b
+  (exit $ac_status); } && {
7fd305b
+	 test -z "$ac_c_werror_flag" ||
7fd305b
+	 test ! -s conftest.err
7fd305b
+       } && test -s conftest.$ac_objext; then
7fd305b
+  cat >conftest.$ac_ext <<_ACEOF
7fd305b
+/* confdefs.h.  */
7fd305b
+_ACEOF
7fd305b
+cat confdefs.h >>conftest.$ac_ext
7fd305b
+cat >>conftest.$ac_ext <<_ACEOF
7fd305b
+/* end confdefs.h.  */
7fd305b
+
7fd305b
+#ifdef HAVE_INTTYPES_H
7fd305b
+#include <inttypes.h>
7fd305b
+#endif
7fd305b
+
7fd305b
+int
7fd305b
+main ()
7fd305b
+{
7fd305b
+if (sizeof ((uint64_t)))
7fd305b
+	  return 0;
7fd305b
+  ;
7fd305b
+  return 0;
7fd305b
+}
7fd305b
+_ACEOF
7fd305b
+rm -f conftest.$ac_objext
7fd305b
+if { (ac_try="$ac_compile"
7fd305b
+case "(($ac_try" in
7fd305b
+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7fd305b
+  *) ac_try_echo=$ac_try;;
7fd305b
+esac
7fd305b
+eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7fd305b
+$as_echo "$ac_try_echo") >&5
7fd305b
+  (eval "$ac_compile") 2>conftest.er1
7fd305b
+  ac_status=$?
7fd305b
+  grep -v '^ *+' conftest.er1 >conftest.err
7fd305b
+  rm -f conftest.er1
7fd305b
+  cat conftest.err >&5
7fd305b
+  $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7fd305b
+  (exit $ac_status); } && {
7fd305b
+	 test -z "$ac_c_werror_flag" ||
7fd305b
+	 test ! -s conftest.err
7fd305b
+       } && test -s conftest.$ac_objext; then
7fd305b
+  :
7fd305b
+else
7fd305b
+  $as_echo "$as_me: failed program was:" >&5
7fd305b
+sed 's/^/| /' conftest.$ac_ext >&5
7fd305b
+
7fd305b
+	ac_cv_type_uint64_t=yes
7fd305b
+fi
7fd305b
+
7fd305b
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7fd305b
+else
7fd305b
+  $as_echo "$as_me: failed program was:" >&5
7fd305b
+sed 's/^/| /' conftest.$ac_ext >&5
7fd305b
+
7fd305b
+
7fd305b
+fi
7fd305b
+
7fd305b
+rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7fd305b
+fi
7fd305b
+{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
7fd305b
+$as_echo "$ac_cv_type_uint64_t" >&6; }
7fd305b
+if test "x$ac_cv_type_uint64_t" = x""yes; then
7fd305b
 
7fd305b
 cat >>confdefs.h <<_ACEOF
7fd305b
 #define HAVE_UINT64_T 1