Debian Codegraph @

third-party/pjproject/patches/0000-configure-ssl-library-path.patch

raw
1 diff --git a/aconfigure b/aconfigure
2 index d6f0e8809..9dcd46398 100755
3 --- a/aconfigure
4 +++ b/aconfigure
5 @@ -9768,7 +9768,11 @@
6 if test "x$with_ssl" != "xno" -a "x$with_ssl" != "x"; then
7 CFLAGS="$CFLAGS -I$with_ssl/include"
8 CPPFLAGS="$CPPFLAGS -I$with_ssl/include"
9 - LDFLAGS="$LDFLAGS -L$with_ssl/lib"
10 + if test -d $with_ssl/lib; then
11 + LDFLAGS="$LDFLAGS -L$with_ssl/lib"
12 + else
13 + LDFLAGS="$LDFLAGS -L$with_ssl"
14 + fi
15 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using SSL prefix... $with_ssl" >&5
16 printf "%s\n" "Using SSL prefix... $with_ssl" >&6; }
17 fi
18 diff --git a/aconfigure.ac b/aconfigure.ac
19 index 16b311045..849da81ab 100644
20 --- a/aconfigure.ac
21 +++ b/aconfigure.ac
22 @@ -2172,7 +2172,11 @@
23 if test "x$with_ssl" != "xno" -a "x$with_ssl" != "x"; then
24 CFLAGS="$CFLAGS -I$with_ssl/include"
25 CPPFLAGS="$CPPFLAGS -I$with_ssl/include"
26 - LDFLAGS="$LDFLAGS -L$with_ssl/lib"
27 + if test -d $with_ssl/lib; then
28 + LDFLAGS="$LDFLAGS -L$with_ssl/lib"
29 + else
30 + LDFLAGS="$LDFLAGS -L$with_ssl"
31 + fi
32 AC_MSG_RESULT([Using SSL prefix... $with_ssl])
33 fi
34