From 91eb0d0019d9cce8fa4944c4a756305c938cafd1 Mon Sep 17 00:00:00 2001 From: Alberto Massari <amassari@apache.org> Date: Sun, 1 Oct 2006 00:45:16 +0000 Subject: [PATCH] Regenerate git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@451702 13f79535-47bb-0310-9956-ffa450edef68 --- config.h.in | 3 + configure | 210 +++++++++++++++++++++++++++++++++++++++++++++++----- 2 files changed, 194 insertions(+), 19 deletions(-) diff --git a/config.h.in b/config.h.in index 95b48dc0c..833b6e8b8 100644 --- a/config.h.in +++ b/config.h.in @@ -240,6 +240,9 @@ /* Define to 1 if you have the <wctype.h> header file. */ #undef HAVE_WCTYPE_H +/* Define to 1 if you have the <winsock2.h> header file. */ +#undef HAVE_WINSOCK2_H + /* Define to 1 if the system has the type `_Bool'. */ #undef HAVE__BOOL diff --git a/configure b/configure index 838175b1d..bbbdde2ed 100755 --- a/configure +++ b/configure @@ -25912,11 +25912,180 @@ echo "${ECHO_T}no" >&6; } fi ;; - windows* | mingw*) + windows* | mingw* | cygwin*) list_add= + no_winsock=false + +for ac_header in winsock2.h +do +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + { echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +fi +ac_res=`eval echo '${'$as_ac_Header'}'` + { echo "$as_me:$LINENO: result: $ac_res" >&5 +echo "${ECHO_T}$ac_res" >&6; } +else + # Is the header compilable? +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +#include <$ac_header> +_ACEOF +rm -f conftest.$ac_objext +if { (ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_try") 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_header_compiler=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_compiler=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 +echo "${ECHO_T}$ac_header_compiler" >&6; } + +# Is the header present? +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include <$ac_header> +_ACEOF +if { (ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + ac_header_preproc=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_preproc=no +fi + +rm -f conftest.err conftest.$ac_ext +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 +echo "${ECHO_T}$ac_header_preproc" >&6; } + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in + yes:no: ) + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} + ac_header_preproc=yes + ;; + no:yes:* ) + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} + + ;; +esac +{ echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + eval "$as_ac_Header=\$ac_header_preproc" +fi +ac_res=`eval echo '${'$as_ac_Header'}'` + { echo "$as_me:$LINENO: result: $ac_res" >&5 +echo "${ECHO_T}$ac_res" >&6; } + +fi +if test `eval echo '${'$as_ac_Header'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + +else + no_winsock=true +fi + +done + { echo "$as_me:$LINENO: checking whether we can support the WinSock NetAccessor (Windows)" >&5 echo $ECHO_N "checking whether we can support the WinSock NetAccessor (Windows)... $ECHO_C" >&6; } - # Check whether --enable-netaccessor-winsock was given. + if ! $no_winsock; then + + # Check whether --enable-netaccessor-winsock was given. if test "${enable_netaccessor_winsock+set}" = set; then enableval=$enable_netaccessor_winsock; if test x"$enableval" = xyes; then list_add=WINSOCK @@ -25924,6 +26093,9 @@ fi else list_add=winsock +fi + + fi if test x"$list_add" != x; then @@ -25957,17 +26129,6 @@ echo $ECHO_N "checking for which NetAccessor to use (choices:$na_list)... $ECHO_ # Check for each netaccessor, in implicit rank order case $na_list in - *-curl-*) - netaccessor=curl - -cat >>confdefs.h <<\_ACEOF -#define XERCES_USE_NETACCESSOR_CURL 1 -_ACEOF - - LIBS="${LIBS} -L${xerces_cv_curl_prefix}/lib -lcurl" - break - ;; - *-cfurl-*) netaccessor=cfurl @@ -25993,6 +26154,17 @@ _ACEOF break ;; + *-curl-*) + netaccessor=curl + +cat >>confdefs.h <<\_ACEOF +#define XERCES_USE_NETACCESSOR_CURL 1 +_ACEOF + + LIBS="${LIBS} -L${xerces_cv_curl_prefix}/lib -lcurl" + break + ;; + *-winsock-*) netaccessor=winsock @@ -26925,21 +27097,21 @@ _ACEOF break ;; - *-iconv-*) - transcoder=iconv + *-windows-*) + transcoder=windows cat >>confdefs.h <<\_ACEOF -#define XERCES_USE_TRANSCODER_ICONV 1 +#define XERCES_USE_TRANSCODER_WINDOWS 1 _ACEOF break ;; - *-windows-*) - transcoder=windows + *-iconv-*) + transcoder=iconv cat >>confdefs.h <<\_ACEOF -#define XERCES_USE_TRANSCODER_WINDOWS 1 +#define XERCES_USE_TRANSCODER_ICONV 1 _ACEOF break -- GitLab