summaryrefslogtreecommitdiff
blob: 811b72332ca442535e863e2ed57dd7dadd3d7295 (plain)
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
http://bugs.gentoo.org/show_bug.cgi?id=248573

--- src/Makefile.am
+++ src/Makefile.am
@@ -6,11 +6,8 @@
 						prefs_dialog.c prefs_dialog.h prog.c prog.h \
 						prog_single.c prog_single.h prog_tar.c prog_tar.h prog_zip.c prog_zip.h
 
-CFLAGS   += -Wall -g
-
-LDFLAGS  += `pkg-config --libs gtk+-2.0 gnome-vfs-2.0`
-
-INCLUDES += `pkg-config --cflags gtk+-2.0 gnome-vfs-2.0`
+lintar_LDADD  = @DEPS_LIBS@
+lintar_CFLAGS = @DEPS_CFLAGS@
 
 CLEANFILES      = *~
 DISTCLEANFILES  = .deps/*.P
--- configure.ac
+++ configure.ac
@@ -1,6 +1,7 @@
 # Process this file with autoconf to produce a configure script.
 AC_INIT(lintar, 0.6.2, jrh@gps.tsc.upc.es)
 AM_INIT_AUTOMAKE(lintar, 0.6.2)
+AC_USE_SYSTEM_EXTENSIONS
 
 AC_CONFIG_SRCDIR([src/lintar_global.c])
 
@@ -9,12 +10,13 @@
 
 # Checks for programs.
 AC_PROG_CC
+AM_PROG_CC_C_O
 
 AC_PATH_PROG(USE_PKG_CONFIG, pkg-config,,)
 if test -z $USE_PKG_CONFIG; then
    AC_MSG_ERROR([[Need pkg-config to compile lintar.]])
 fi
-
+PKG_CHECK_MODULES(DEPS, gtk+-2.0 gnome-vfs-2.0 )
 
 AC_PATH_PROG(LINTAR_PROG_CP, cp,,)
 if test -z $LINTAR_PROG_CP; then