summaryrefslogtreecommitdiff
path: root/data/libassuan/gnupth.diff
blob: 17d5940ec3fcb893369160e65aa55847fcc0fcbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
diff -ru libassuan-1.0.4/m4/gnupg-pth.m4 libassuan-1.0.4+iPhone/m4/gnupg-pth.m4
--- libassuan-1.0.4/m4/gnupg-pth.m4	2007-05-30 10:42:41.000000000 +0000
+++ libassuan-1.0.4+iPhone/m4/gnupg-pth.m4	2008-01-01 11:43:08.000000000 +0000
@@ -51,9 +51,9 @@
          _gnupg_pth_save_cflags=$CFLAGS
          _gnupg_pth_save_ldflags=$LDFLAGS
          _gnupg_pth_save_libs=$LIBS
-         CFLAGS="$CFLAGS `$PTH_CONFIG --cflags`"
-         LDFLAGS="$LDFLAGS `$PTH_CONFIG --ldflags`"
-         LIBS="$LIBS `$PTH_CONFIG --libs --all`"
+         CFLAGS=
+         LDFLAGS=
+         LIBS=-lpth
          AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <pth.h>
                                          ],
                                          [[ pth_init ();]])],
@@ -92,9 +92,8 @@
   if test "$PTH_CONFIG" != "no"; then
     GNUPG_PTH_VERSION_CHECK($tmp)
     if test $have_pth = yes; then      
-       PTH_CFLAGS=`$PTH_CONFIG --cflags`
-       PTH_LIBS=`$PTH_CONFIG --ldflags`
-       PTH_LIBS="$PTH_LIBS `$PTH_CONFIG --libs --all`"
+       PTH_CFLAGS=
+       PTH_LIBS=-lpth
        AC_DEFINE(HAVE_PTH, 1,
                 [Defined if the GNU Pth is available])
     fi