Wireshark-dev: Re: [Wireshark-dev] Cross-compile wireshark, without using gnutls

From: Sebastien Tandel <sebastien@xxxxxxxxx>
Date: Fri, 23 Feb 2007 00:20:43 +0100
Hi,

  It should work with this patch. After applying, pleaser run
"./autogen.sh" then "./configure --disable-gnutls"

Hope this helps,
Sebastien Tandel

Luis Ontanon wrote:
> fixing automake scripts that takes a long long time...
> what you can try is renaming <gnutls/gnutls.h> in your system to
> something else before calling ./configure and rename it back after
> configure has run. That way the configure script will fail finding an
> usable gnutls and will refuse it.
>
> On 2/22/07, David Wuertele <dave-gmane@xxxxxxxxx> wrote:
>   
>> Luis Ontanon <luis.ontanon@...> writes:
>>
>>     
>>> --without-gnutls ?
>>>
>>>       
>> That was one of the first things I tried.  Unfortunately, my host has gnutls
>> installed, and the configure script finds it despite my admonitions not to.
>>
>> I tried the following configure arguments:
>>
>> --without-gnutls
>> --with-gnutls=no
>> --with-libgnutls-prefix=/nowhere
>> --disable-gnutls
>> --enable-gnutls=no
>>
>> and the following environment variables:
>>
>> LIBGNUTLS_CONFIG=no LIBGNUTLS_CFLAGS= LIBGNUTLS_LIBS= no_libgnutls=yes
>>
>> All to no avail.
>>
>> Dave
>>
>> _______________________________________________
>> Wireshark-dev mailing list
>> Wireshark-dev@xxxxxxxxxxxxx
>> http://www.wireshark.org/mailman/listinfo/wireshark-dev
>>
>>     
>
>
>   

Index: configure.in
===================================================================
--- configure.in	(révision 20799)
+++ configure.in	(copie de travail)
@@ -75,7 +75,12 @@
 AC_CHECK_PROG(HAVE_DOXYGEN, doxygen, "yes", "no")
 AM_CONDITIONAL(HAVE_DOXYGEN, test x$HAVE_DOXYGEN = xyes)
 
+
+AC_ARG_ENABLE(gnutls,
+[  --enable-gnutls        build with gnutls. [default=yes]],enable_gnutls=$enableval,enable_wireshark=yes)
+
 # gnu tls
+if test "x$enable_gnutls" = "x$enableval" ; then
 AM_PATH_LIBGNUTLS(1.0.0,
         [
                 echo "gnuTLS found, enabling ssl decryption"
@@ -91,6 +96,9 @@
                 fi
         ]
 )
+else
+tls_message="no"
+fi
 
 # libgrypt
 AM_PATH_LIBGCRYPT(1.1.42,