summaryrefslogtreecommitdiff
path: root/packages/ettercap/ettercap-0.6.b/configure.patch
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2005-06-30 08:19:37 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-06-30 08:19:37 +0000
commitc8e5702127e507e82e6f68a4b8c546803accea9d (patch)
tree00583491f40ecc640f2b28452af995e3a63a09d7 /packages/ettercap/ettercap-0.6.b/configure.patch
parent87ec8ca4d2e2eb4d1c1e1e1a6b46a395d56805b9 (diff)
import clean BK tree at cset 1.3670
Diffstat (limited to 'packages/ettercap/ettercap-0.6.b/configure.patch')
-rw-r--r--packages/ettercap/ettercap-0.6.b/configure.patch165
1 files changed, 165 insertions, 0 deletions
diff --git a/packages/ettercap/ettercap-0.6.b/configure.patch b/packages/ettercap/ettercap-0.6.b/configure.patch
index e69de29bb2..89132125b8 100644
--- a/packages/ettercap/ettercap-0.6.b/configure.patch
+++ b/packages/ettercap/ettercap-0.6.b/configure.patch
@@ -0,0 +1,165 @@
+--- tmp/base/ettercap-0.6.b-r0/ettercap-0.6.b/acinclude.m4 Thu Jul 10 03:25:31 2003
++++ ettercap-0.6.b/acinclude.m4 Thu Nov 6 18:25:39 2003
+@@ -182,9 +182,11 @@
+ dnl HAVE_SOCKLEN_T
+ dnl
+
+-AC_DEFUN(EC_SOCKLEN_CHECK,
+- [AC_MSG_CHECKING(for socklen_t in sys/socket.h)
++samba_cv_socklen_t
+
++AC_DEFUN(EC_SOCKLEN_CHECK,
++ [AC_CACHE_CHECK([for socklen_t in sys/socket.h],
++ [ettercap_cv_type_socklen_t],
+ AC_TRY_RUN([
+ #include <sys/types.h>
+ #include <sys/socket.h>
+@@ -197,14 +199,12 @@
+ return 0;
+ }
+ ],
+- [ AC_MSG_RESULT(yes)
+- AC_DEFINE(HAVE_SOCKLEN_T)
+- ],
+- AC_MSG_RESULT(no);
+- ,
+- AC_MSG_RESULT(unkown when cross-compiling)
+- )
++ [ettercap_cv_type_socklen_t=yes],
++ [ettercap_cv_type_socklen_t=no]))
+
++ if test X$ettercap_cv_type_socklen_t = Xyes; then
++ AC_DEFINE(HAVE_SOCKLEN_T)
++ fi
+ ])
+
+
+@@ -377,24 +377,78 @@
+
+ AC_DEFUN(EC_NS_GET,[
+
+- AC_MSG_CHECKING(for NS_GET32)
+- AC_TRY_RUN([
+- #include <arpa/nameser.h>
++AC_CACHE_CHECK([for NS_GET32],
++ ec_cv_func_ns_get32,
++ [AC_TRY_LINK([
++ #include <arpa/nameser.h>
++ ],
++ [
++ int i;
++ char *p = "\x01\x02\x03\x04";
++ NS_GET32(i, p);
++ ],
++ ec_cv_func_ns_get32=yes,
++ ec_cv_func_ns_get32=no)
++ if test X$ec_cv_func_ns_get32 = Xyes; then
++ AC_DEFINE(HAVE_NS_GET,1)
++ fi])
++])
+
+- int main()
+- {
+- int i;
+- char *p = "\x01\x02\x03\x04";
+- NS_GET32(i, p);
++dnl vim:ts=3:expandtab
+
+- return 0;
+- }
+- ],
+- [ AC_MSG_RESULT(yes)
+- AC_DEFINE(HAVE_NS_GET,1) ],
+- [ AC_MSG_RESULT(no); ]
+- )
++dnl PKG_CHECK_MODULES(GSTUFF, gtk+-2.0 >= 1.3 glib = 1.3.4, action-if, action-not)
++dnl defines GSTUFF_LIBS, GSTUFF_CFLAGS, see pkg-config man page
++dnl also defines GSTUFF_PKG_ERRORS on error
++AC_DEFUN(PKG_CHECK_MODULES, [
++ succeeded=no
++
++ if test -z "$PKG_CONFIG"; then
++ AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
++ fi
++
++ if test "$PKG_CONFIG" = "no" ; then
++ echo "*** The pkg-config script could not be found. Make sure it is"
++ echo "*** in your path, or set the PKG_CONFIG environment variable"
++ echo "*** to the full path to pkg-config."
++ echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
++ else
++ PKG_CONFIG_MIN_VERSION=0.9.0
++ if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
++ AC_MSG_CHECKING(for $2)
++
++ if $PKG_CONFIG --exists "$2" ; then
++ AC_MSG_RESULT(yes)
++ succeeded=yes
++
++ AC_MSG_CHECKING($1_CFLAGS)
++ $1_CFLAGS=`$PKG_CONFIG --cflags "$2"`
++ AC_MSG_RESULT($$1_CFLAGS)
++
++ AC_MSG_CHECKING($1_LIBS)
++ $1_LIBS=`$PKG_CONFIG --libs "$2"`
++ AC_MSG_RESULT($$1_LIBS)
++ else
++ $1_CFLAGS=""
++ $1_LIBS=""
++ ## If we have a custom action on failure, don't print errors, but
++ ## do set a variable so people can do so.
++ $1_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
++ ifelse([$4], ,echo $$1_PKG_ERRORS,)
++ fi
++
++ AC_SUBST($1_CFLAGS)
++ AC_SUBST($1_LIBS)
++ else
++ echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
++ echo "*** See http://www.freedesktop.org/software/pkgconfig"
++ fi
++ fi
+
++ if test $succeeded = yes; then
++ ifelse([$3], , :, [$3])
++ else
++ ifelse([$4], , AC_MSG_ERROR([Library requirements ($2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.]), [$4])
++ fi
+ ])
+
+-dnl vim:ts=3:expandtab
++
+--- tmp/base/ettercap-0.6.b-r0/ettercap-0.6.b/configure.in Thu Jul 10 03:25:31 2003
++++ ettercap-0.6.b/configure.in Thu Nov 6 18:13:44 2003
+@@ -20,9 +20,10 @@
+ dnl $Id: configure.in,v 1.69 2003/06/30 19:57:41 alor Exp $
+ dnl
+
+-AC_PREREQ([2.50])
++AC_PREREQ(2.57)
+
+-AC_INIT(src/ec_main.c)
++AC_INIT
++AC_CONFIG_SRCDIR([src/ec_main.c])
+ AC_CONFIG_HEADER(config.h)
+
+ echo "char configure_line[[]] = \"$0 $*\";" > ./src/include/ec_debug_info.h
+@@ -77,7 +78,7 @@
+ dnl Check the OS
+ dnl ================
+
+-AC_CANONICAL_SYSTEM
++AC_CANONICAL_TARGET([])
+ case "$target_os" in
+ *linux*)
+ EC_LINUX_KERNEL()
+@@ -868,7 +869,8 @@
+
+ AC_SUBST(MAKEPLUG)
+
+-AC_OUTPUT(ettercap.spec ettercap.8 Makefile $makeplug win32/ettercap.nsi)
++AC_CONFIG_FILES([ettercap.spec ettercap.8 Makefile $makeplug win32/ettercap.nsi])
++AC_OUTPUT
+
+ dnl ============================
+ dnl FOR DEBUGING INFORMATIONS