Package: ncurses-hexedit / 0.9.7+orig-7

autoconf_2.69.patch Patch series | download
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
From: Carlos Maddela <e7appew@gmail.com>
Date: Sat, 9 Sep 2017 18:26:08 +1000
Subject: Update autoconf files for version 2.69.

Description: Update autoconf files for version 2.69.
Author: Carlos Maddela <e7appew@gmail.com>
Last-Update: 2017-09-09
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
---
 acconfig.h   |  38 ---------------------
 configure.ac | 109 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 configure.in | 106 ---------------------------------------------------------
 3 files changed, 109 insertions(+), 144 deletions(-)
 delete mode 100644 acconfig.h
 create mode 100644 configure.ac
 delete mode 100644 configure.in

diff --git a/acconfig.h b/acconfig.h
deleted file mode 100644
index 4f4e656..0000000
--- a/acconfig.h
+++ /dev/null
@@ -1,38 +0,0 @@
-   /* Name of package */
-#undef PACKAGE
-
-   /* Version of package */
-#undef VERSION
-
-   /* Enable GNU extensions */
-#undef _GNU_SOURCE
-
-   /* Curses library */
-#undef HAVE_CURSES_H
-
-   /* NCurses library */
-#undef HAVE_NCURSES_H
-
-   /* termio */
-#undef HAVE_TERMIO_H
-
-   /* termios */
-#undef HAVE_TERMIOS_H
-
-   /* sys/termio */
-#undef HAVE_SYS_TERMIO_H
-
-   /* sys/termios */
-#undef HAVE_SYS_TERMIOS_H
-
-   /* getopt.h */
-#undef HAVE_GETOPT_H
-
-   /* getopt_long () */
-#undef HAVE_GETOPT_LONG
-
-   /* snprintf () */
-#undef HAVE_SNPRINTF
-
-   /* isprint () */
-#undef HAVE_ISPRINT
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..3c63f4d
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,109 @@
+dnl configure.in for hexedit
+dnl April 23rd, 1999 Adam Rogoyski <apoc@laker.net>
+dnl see COPYING for terms of copying under the GNU General Public License
+
+AC_INIT([[[N]] Curses Hexedit],
+        [0.9.7], 
+        [Adam Rogoyski <apoc@laker.net>],
+        [hexedit])
+
+AM_INIT_AUTOMAKE
+AM_CONFIG_HEADER(config.h:config.in)
+
+AC_PROG_CC
+if test "$GCC" = "yes"; then
+  CFLAGS="$CFLAGS -Wall"
+fi
+
+AC_PROG_INSTALL
+
+AC_DEFINE([_GNU_SOURCE], [1], [Enable GNU extensions])
+
+AC_HEADER_STDC
+AC_PROG_GCC_TRADITIONAL
+
+AC_CHECK_HEADERS(ncurses.h)
+if test "$ac_cv_header_ncurses_h" = "no"; then
+  AC_CHECK_HEADERS(curses.h)
+  if test "$ac_cv_header_curses_h" = "no"; then
+    echo "*** Cannot find Curses headers, probably not installed"
+    echo "*** Hexedit will not run without the curses library"
+  fi
+fi
+
+AC_CHECK_HEADERS(fcntl.h getopt.h limits.h sys/ioctl.h unistd.h)
+AC_HEADER_DIRENT
+AC_C_CONST
+AC_STRUCT_TM
+AC_CHECK_FUNCS(snprintf isprint)
+AC_CHECK_FUNCS(getopt_long,AC_DEFINE([HAVE_GETOPT_LONG], [1], [getopt_long ()]))
+
+
+dnl find TIOCGWINSZ if possible
+
+AC_MSG_CHECKING([for TIOCGWINSZ])
+AC_EGREP_CPP(rogoyski_hexedit_termio,
+[
+#include <termio.h>
+#ifdef TIOCGWINSZ
+  rogoyski_hexedit_termio
+#endif
+], hex_termio_h=yes)
+
+if test "$hex_termio_h" = "yes"; then
+  AC_DEFINE([HAVE_TERMIO_H], [1], [termio])
+  AC_MSG_RESULT([yes, found in termio.h])
+else
+
+  AC_EGREP_CPP(rogoyski_hexedit_termios,
+  [
+  #include <termios.h>
+  #ifdef TIOCGWINSZ
+    rogoyski_hexedit_termios
+  #endif
+  ], hex_termios_h=yes)
+
+  if test "$hex_termios_h" = "yes"; then
+    AC_DEFINE([HAVE_TERMIOS_H], [1], [termios])
+    AC_MSG_RESULT([yes, found in termios.h])
+  else
+
+    AC_EGREP_CPP(rogoyski_hexedit_sys_termio,
+    [
+    #include <sys/termio.h>
+    #ifdef TIOCGWINSZ
+      rogoyski_hexedit_sys_termio
+    #endif
+    ], hex_sys_termio_h=yes)
+
+    if test "$hex_sys_termio_h" = "yes"; then
+      AC_DEFINE([HAVE_SYS_TERMIO_H], [1], [sys/termio])
+      AC_MSG_RESULT([yes, found in sys/termio.h])
+    else
+
+      AC_EGREP_CPP(rogoyski_hexedit_sys_termios,
+      [
+      #include <sys/termios.h>
+      #ifdef TIOCGWINSZ
+        rogoyski_hexedit_sys_termios
+      #endif
+      ], hex_sys_termios_h=yes)
+
+      if test "$hex_sys_termios_h" = "yes"; then
+        AC_DEFINE([HAVE_SYS_TERMIOS_H], [1], [sys/termios])
+        AC_MSG_RESULT([yes, found in sys/termios.h])
+      else
+        AC_MSG_RESULT([no])
+      fi
+    fi
+  fi
+fi
+
+AC_CHECK_LIB(ncurses, newwin, ,
+    AC_CHECK_LIB(curses, newwin), ,
+    echo "Hexedit requires the curses library"
+    echo "Ncurses is freely available: ftp://ftp.gnu.org/pub/gnu/"
+    exit 1)
+
+
+AC_OUTPUT(Makefile docs/Makefile gnu/Makefile src/Makefile)
diff --git a/configure.in b/configure.in
deleted file mode 100644
index 429d5e0..0000000
--- a/configure.in
+++ /dev/null
@@ -1,106 +0,0 @@
-dnl configure.in for hexedit
-dnl April 23rd, 1999 Adam Rogoyski <apoc@laker.net>
-dnl see COPYING for terms of copying under the GNU General Public License
-
-AC_INIT(src/main.c)
-
-AM_INIT_AUTOMAKE(hexedit, 0.9.7)
-AM_CONFIG_HEADER(config.h:config.in)
-
-AC_PROG_CC
-if test "$GCC" = "yes"; then
-  CFLAGS="$CFLAGS -Wall"
-fi
-
-AC_PROG_INSTALL
-
-AC_DEFINE(_GNU_SOURCE)
-
-AC_HEADER_STDC
-AC_PROG_GCC_TRADITIONAL
-
-AC_CHECK_HEADERS(ncurses.h)
-if test "$ac_cv_header_ncurses_h" = "no"; then
-  AC_CHECK_HEADERS(curses.h)
-  if test "$ac_cv_header_curses_h" = "no"; then
-    echo "*** Cannot find Curses headers, probably not installed"
-    echo "*** Hexedit will not run without the curses library"
-  fi
-fi
-
-AC_CHECK_HEADERS(fcntl.h getopt.h limits.h sys/ioctl.h unistd.h)
-AC_HEADER_DIRENT
-AC_C_CONST
-AC_STRUCT_TM
-AC_CHECK_FUNCS(snprintf isprint)
-AC_CHECK_FUNCS(getopt_long,AC_DEFINE(HAVE_GETOPT_LONG))
-
-
-dnl find TIOCGWINSZ if possible
-
-AC_MSG_CHECKING([for TIOCGWINSZ])
-AC_EGREP_CPP(rogoyski_hexedit_termio,
-[
-#include <termio.h>
-#ifdef TIOCGWINSZ
-  rogoyski_hexedit_termio
-#endif
-], hex_termio_h=yes)
-
-if test "$hex_termio_h" = "yes"; then
-  AC_DEFINE(HAVE_TERMIO_H)
-  AC_MSG_RESULT([yes, found in termio.h])
-else
-
-  AC_EGREP_CPP(rogoyski_hexedit_termios,
-  [
-  #include <termios.h>
-  #ifdef TIOCGWINSZ
-    rogoyski_hexedit_termios
-  #endif
-  ], hex_termios_h=yes)
-
-  if test "$hex_termios_h" = "yes"; then
-    AC_DEFINE(HAVE_TERMIOS_H)
-    AC_MSG_RESULT([yes, found in termios.h])
-  else
-
-    AC_EGREP_CPP(rogoyski_hexedit_sys_termio,
-    [
-    #include <sys/termio.h>
-    #ifdef TIOCGWINSZ
-      rogoyski_hexedit_sys_termio
-    #endif
-    ], hex_sys_termio_h=yes)
-
-    if test "$hex_sys_termio_h" = "yes"; then
-      AC_DEFINE(HAVE_SYS_TERMIO_H)
-      AC_MSG_RESULT([yes, found in sys/termio.h])
-    else
-
-      AC_EGREP_CPP(rogoyski_hexedit_sys_termios,
-      [
-      #include <sys/termios.h>
-      #ifdef TIOCGWINSZ
-        rogoyski_hexedit_sys_termios
-      #endif
-      ], hex_sys_termios_h=yes)
-
-      if test "$hex_sys_termios_h" = "yes"; then
-        AC_DEFINE(HAVE_SYS_TERMIOS_H)
-        AC_MSG_RESULT([yes, found in sys/termios.h])
-      else
-        AC_MSG_RESULT([no])
-      fi
-    fi
-  fi
-fi
-
-AC_CHECK_LIB(ncurses, newwin, ,
-    AC_CHECK_LIB(curses, newwin), ,
-    echo "Hexedit requires the curses library"
-    echo "Ncurses is freely available: ftp://ftp.gnu.org/pub/gnu/"
-    exit 1)
-
-
-AC_OUTPUT(Makefile docs/Makefile gnu/Makefile src/Makefile)