Browse Source

Bugfix in version declaration

Yann Weber 4 years ago
parent
commit
5c3202dbf8
3 changed files with 5 additions and 7 deletions
  1. 1
    3
      configure.ac
  2. 3
    3
      include/config.h.in
  3. 1
    1
      src/conf.c

+ 1
- 3
configure.ac View File

@@ -1,10 +1,8 @@
1 1
 #                                               -*- Autoconf -*-
2 2
 # Process this file with autoconf to produce a configure script.
3 3
 
4
-VERSION=0.0.1
5
-
6 4
 AC_PREREQ([2.69])
7
-AC_INIT([PyFCGI], VERSION, [yann.weber@member.fsf.org])
5
+AC_INIT([PyFCGI], [0.0.1], [yann.weber@member.fsf.org])
8 6
 AC_CONFIG_SRCDIR([src/main.c])
9 7
 AC_CONFIG_HEADERS([include/config.h])
10 8
 

+ 3
- 3
include/config.h.in View File

@@ -1,5 +1,8 @@
1 1
 /* include/config.h.in.  Generated from configure.ac by autoheader.  */
2 2
 
3
+/* Version number of package */
4
+#undef VERSION
5
+
3 6
 /* Define to 1 if you have the <syslog.h> header file. */
4 7
 #undef HAVE_SYSLOG_H
5 8
 
@@ -55,9 +58,6 @@
55 58
 #endif
56 59
 
57 60
 
58
-/* Version number of package */
59
-#undef VERSION
60
-
61 61
 /* Define to 1 if on MINIX. */
62 62
 #undef _MINIX
63 63
 

+ 1
- 1
src/conf.c View File

@@ -32,7 +32,7 @@ void usage()
32 32
 
33 33
 void print_version(int fd)
34 34
 {
35
-
35
+	dprintf(fd, "%s\n", PACKAGE_STRING);
36 36
 }
37 37
 
38 38
 int parse_args(int argc, char *argv[])

Loading…
Cancel
Save