Browse Source

Use config.h to reduce `-D' options in Makefile

lolilolicon 4 years ago
parent
commit
f737d162c3
2 changed files with 3 additions and 1 deletions
  1. 2
    1
      configure.ac
  2. 1
    0
      xrectsel.c

+ 2
- 1
configure.ac View File

@@ -1,7 +1,8 @@
1 1
 AC_INIT([xrectsel], [0.3])
2 2
 AC_CONFIG_AUX_DIR([build-aux])
3
-AM_INIT_AUTOMAKE([foreign subdir-objects])
3
+AM_INIT_AUTOMAKE([foreign subdir-objects -Wall -Werror])
4 4
 AC_PROG_CC
5 5
 AC_SEARCH_LIBS([XOpenDisplay], [X11], , AC_MSG_ERROR([libx11 is required]))
6
+AC_CONFIG_HEADERS([config.h])
6 7
 AC_CONFIG_FILES([Makefile])
7 8
 AC_OUTPUT

+ 1
- 0
xrectsel.c View File

@@ -16,6 +16,7 @@
16 16
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
17 17
 */
18 18
 
19
+#include <config.h>
19 20
 #include <stdio.h>
20 21
 #include <stdlib.h>
21 22
 #include <stdarg.h>