]> git.proxmox.com Git - ceph.git/blame - ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/libpq/patches/mingw/link-with-crypt32.patch
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / tools / vcpkg / ports / libpq / patches / mingw / link-with-crypt32.patch
CommitLineData
1e59de90
TL
1diff --git a/configure b/configure
2index 75210f0..6ea5e1f 100755
3--- a/configure
4+++ b/configure
5@@ -11708,6 +11708,62 @@ if test "$ac_res" != no; then :
6
7 fi
8
9+{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing CertOpenStore" >&5
10+$as_echo_n "checking for library containing CertOpenStore... " >&6; }
11+if ${ac_cv_search_CertOpenStore+:} false; then :
12+ $as_echo_n "(cached) " >&6
13+else
14+ ac_func_search_save_LIBS=$LIBS
15+cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16+/* end confdefs.h. */
17+
18+/* Override any GCC internal prototype to avoid an error.
19+ Use char because int might match the return type of a GCC
20+ builtin and then its argument prototype would still apply. */
21+#ifdef __cplusplus
22+extern "C"
23+#endif
24+char CertOpenStore ();
25+int
26+main ()
27+{
28+return CertOpenStore ();
29+ ;
30+ return 0;
31+}
32+_ACEOF
33+for ac_lib in '' crypt32; do
34+ if test -z "$ac_lib"; then
35+ ac_res="none required"
36+ else
37+ ac_res=-l$ac_lib
38+ LIBS="-l$ac_lib $ac_func_search_save_LIBS"
39+ fi
40+ if ac_fn_c_try_link "$LINENO"; then :
41+ ac_cv_search_CertOpenStore=$ac_res
42+fi
43+rm -f core conftest.err conftest.$ac_objext \
44+ conftest$ac_exeext
45+ if ${ac_cv_search_CertOpenStore+:} false; then :
46+ break
47+fi
48+done
49+if ${ac_cv_search_CertOpenStore+:} false; then :
50+
51+else
52+ ac_cv_search_CertOpenStore=no
53+fi
54+rm conftest.$ac_ext
55+LIBS=$ac_func_search_save_LIBS
56+fi
57+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_CertOpenStore" >&5
58+$as_echo "$ac_cv_search_CertOpenStore" >&6; }
59+ac_res=$ac_cv_search_CertOpenStore
60+if test "$ac_res" != no; then :
61+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
62+
63+fi
64+
65
66 if test "$with_readline" = yes; then
67
68diff --git a/configure.in b/configure.in
69index 0832636..0911ec0 100644
70--- a/configure.in
71+++ b/configure.in
72@@ -1158,6 +1158,7 @@ AC_SEARCH_LIBS(sched_yield, rt)
73 AC_SEARCH_LIBS(gethostbyname_r, nsl)
74 # Cygwin:
75 AC_SEARCH_LIBS(shmget, cygipc)
76+AC_SEARCH_LIBS(CertOpenStore, crypt32)
77
78 if test "$with_readline" = yes; then
79 PGAC_CHECK_READLINE