]> git.pld-linux.org Git - packages/wget.git/blob - wget-ac.patch
- remove m4 part
[packages/wget.git] / wget-ac.patch
1 diff -urN wget-1.9-beta3.org/configure.in wget-1.9-beta3/configure.in
2 --- wget-1.9-beta3.org/configure.in     2003-10-03 12:07:14.000000000 +0200
3 +++ wget-1.9-beta3/configure.in 2003-10-03 12:15:57.000000000 +0200
4 @@ -46,14 +46,14 @@
5  dnl Get cannonical host
6  dnl
7  AC_CANONICAL_HOST
8 -AC_DEFINE_UNQUOTED(OS_TYPE, "$host_os")
9 +AC_DEFINE_UNQUOTED(OS_TYPE, "$host_os", [OS type])
10  
11  dnl
12  dnl Process features.
13  dnl
14  AC_ARG_WITH(socks,
15  [  --with-socks            use the socks library],
16 -[AC_DEFINE(HAVE_SOCKS)])
17 +[AC_DEFINE(HAVE_SOCKS,,[Use the socks library])])
18  
19  AC_ARG_WITH(ssl,
20  [[  --with-ssl[=SSL-ROOT]   link with SSL support [default=auto]
21 @@ -62,17 +62,17 @@
22  AC_ARG_ENABLE(opie,
23  [  --disable-opie          disable support for opie or s/key FTP login],
24  USE_OPIE=$enableval, USE_OPIE=yes)
25 -test x"${USE_OPIE}" = xyes && AC_DEFINE(USE_OPIE)
26 +test x"${USE_OPIE}" = xyes && AC_DEFINE(USE_OPIE,,[FTP opie or s/key login support])
27  
28  AC_ARG_ENABLE(digest,
29  [  --disable-digest        disable support for HTTP digest authorization],
30  USE_DIGEST=$enableval, USE_DIGEST=yes)
31 -test x"${USE_DIGEST}" = xyes && AC_DEFINE(USE_DIGEST)
32 +test x"${USE_DIGEST}" = xyes && AC_DEFINE(USE_DIGEST,,[HTTP digest authorization support])
33  
34  AC_ARG_ENABLE(debug,
35  [  --disable-debug         disable support for debugging output],
36  ENABLE_DEBUG=$enableval, ENABLE_DEBUG=yes)
37 -test x"${ENABLE_DEBUG}" = xyes && AC_DEFINE(ENABLE_DEBUG)
38 +test x"${ENABLE_DEBUG}" = xyes && AC_DEFINE(ENABLE_DEBUG,,[Support for debugging output])
39  
40  wget_need_md5=no
41  
42 @@ -374,7 +374,7 @@
43      dnl AC_MSG_RESULT doesn't look right here, but I'm not sure what
44      dnl to use instead.
45      AC_MSG_RESULT([Compiling in support for SSL in $ssl_root])
46 -    AC_DEFINE(HAVE_SSL)
47 +    AC_DEFINE(HAVE_SSL,,[SSL support])
48      AC_SUBST(SSL_INCLUDES)
49      SSL_OBJ='gen_sslfunc$o'
50      AC_SUBST(SSL_OBJ)
51 @@ -416,7 +416,7 @@
52    dnl specific to the Solaris MD5 library.
53    if test x"$found_md5" = xno; then
54      AC_CHECK_LIB(md5, md5_calc, [
55 -      AC_DEFINE(HAVE_SOLARIS_MD5)
56 +      AC_DEFINE(HAVE_SOLARIS_MD5,,[Use Solaris MD5])
57        LIBS="-lmd5 $LIBS"
58        found_md5=yes
59      ])
60 @@ -426,19 +426,19 @@
61    dnl implementation.
62    if test x"$found_md5" = xno; then
63      if test x"$ssl_success" = xyes; then
64 -      AC_DEFINE(HAVE_OPENSSL_MD5)
65 +      AC_DEFINE(HAVE_OPENSSL_MD5,,[Use OpenSSL MD5])
66        found_md5=yes
67      fi
68    fi
69  
70    dnl If none of the above worked, use the one we ship with Wget.
71    if test x"$found_md5" = xno; then
72 -    AC_DEFINE(HAVE_BUILTIN_MD5)
73 +    AC_DEFINE(HAVE_BUILTIN_MD5,,[Use builtin MD5])
74      found_md5=yes
75      MD5_OBJ="$MD5_OBJ gnu-md5\$o"
76    fi
77  fi
78 -AC_DEFINE(HAVE_MD5)
79 +AC_DEFINE(HAVE_MD5,,[Have MD5])
80  AC_SUBST(MD5_OBJ)
81  
82  dnl **********************************************************************
83 @@ -522,7 +522,7 @@
84  dnl new language was added.
85  
86  dnl internationalization macros
87 -WGET_WITH_NLS
88 +AM_GNU_GETTEXT
89  
90  dnl
91  dnl Find makeinfo.  If makeinfo is not found, look for Emacs.  If
92 diff -urN wget-1.9-beta3.org/src/main.c wget-1.9-beta3/src/main.c
93 --- wget-1.9-beta3.org/src/main.c       2003-10-03 12:07:14.000000000 +0200
94 +++ wget-1.9-beta3/src/main.c   2003-10-03 12:07:21.000000000 +0200
95 @@ -44,11 +44,11 @@
96  #ifdef HAVE_SIGNAL_H
97  # include <signal.h>
98  #endif
99 -#ifdef HAVE_NLS
100 +#ifdef ENABLE_NLS
101  #ifdef HAVE_LOCALE_H
102  # include <locale.h>
103  #endif /* HAVE_LOCALE_H */
104 -#endif /* HAVE_NLS */
105 +#endif /* ENABLE_NLS */
106  #include <errno.h>
107  
108  #include "wget.h"
109 @@ -98,9 +98,9 @@
110  static void
111  i18n_initialize (void)
112  {
113 -  /* If HAVE_NLS is defined, assume the existence of the three
114 +  /* If ENABLE_NLS is defined, assume the existence of the three
115       functions invoked here.  */
116 -#ifdef HAVE_NLS
117 +#ifdef ENABLE_NLS
118    /* Set the current locale.  */
119    /* Here we use LC_MESSAGES instead of LC_ALL, for two reasons.
120       First, message catalogs are all of I18N Wget uses anyway.
121 @@ -117,7 +117,7 @@
122    /* Set the text message domain.  */
123    bindtextdomain ("wget", LOCALEDIR);
124    textdomain ("wget");
125 -#endif /* HAVE_NLS */
126 +#endif /* ENABLE_NLS */
127  }
128  \f
129  /* Print the usage message.  */
130 diff -urN wget-1.9-beta3.org/src/wget.h wget-1.9-beta3/src/wget.h
131 --- wget-1.9-beta3.org/src/wget.h       2003-10-03 12:07:14.000000000 +0200
132 +++ wget-1.9-beta3/src/wget.h   2003-10-03 12:07:21.000000000 +0200
133 @@ -53,14 +53,12 @@
134  
135  /* `gettext (FOO)' is long to write, so we use `_(FOO)'.  If NLS is
136     unavailable, _(STRING) simply returns STRING.  */
137 -#ifdef HAVE_NLS
138 +#ifdef ENABLE_NLS
139  # define _(string) gettext (string)
140 -# ifdef HAVE_LIBINTL_H
141  #  include <libintl.h>
142 -# endif /* HAVE_LIBINTL_H */
143 -#else  /* not HAVE_NLS */
144 +#else  /* not ENABLE_NLS */
145  # define _(string) string
146 -#endif /* not HAVE_NLS */
147 +#endif /* not ENABLE_NLS */
148  
149  /* No-op version of gettext, used for constant strings. */
150  #define N_(string) (string)
151
This page took 0.061215 seconds and 4 git commands to generate.