branch Attitude Adjustment packages
[12.09/packages.git] / net / ettercap / patches / 003-automake-compat.patch
1 --- a/configure.in
2 +++ b/configure.in
3 @@ -197,6 +197,9 @@ dnl ========================
4  dnl   Libtool related...
5  dnl ========================
6  
7 +LT_INIT
8 +LTDL_INIT
9 +LT_CONFIG_LTDL_DIR([libltdl])
10  AC_DISABLE_STATIC
11  AC_LIBTOOL_WIN32_DLL
12  AC_LIBTOOL_DLOPEN
13 --- a/include/ec_os_mingw.h
14 +++ b/include/ec_os_mingw.h
15 @@ -163,7 +163,7 @@ EC_API_EXTERN const char *ec_win_get_ec_
16   */
17  #if !defined(HAVE_DLOPEN)
18     #define RTLD_NOW 0
19 -   #define LTDL_SHLIB_EXT       "*.dll"
20 +   #define LT_MODULE_EXT       ".dll"
21  
22     #define dlopen(dll,flg)      ec_win_dlopen (dll, flg)
23     #define lt_dlopen(dll)       ec_win_dlopen (dll, 0)
24 --- a/src/ec_plugins.c
25 +++ b/src/ec_plugins.c
26 @@ -131,7 +131,7 @@ int plugin_filter(struct dirent *d)
27  int plugin_filter(const struct dirent *d)
28  #endif
29  {
30 -   if ( match_pattern(d->d_name, PLUGIN_PATTERN LTDL_SHLIB_EXT) )
31 +   if ( match_pattern(d->d_name, PLUGIN_PATTERN LT_MODULE_EXT) )
32        return 1;
33  
34     return 0;