]> saetta.ns0.it Git - libgtkdateentry/commitdiff
Some adjustments to autotools files.
authorAndrea Zagli <azagli@libero.it>
Fri, 22 Dec 2006 10:18:43 +0000 (10:18 +0000)
committerAndrea Zagli <azagli@libero.it>
Fri, 22 Dec 2006 10:18:43 +0000 (10:18 +0000)
ChangeLog
configure.ac
docs/reference/Makefile.am
src/Makefile.am
tests/Makefile.am

index c03c7150738d0e046bbbfd8aca5fa9e7544cdd80..66f3afdcc6fd8644daff92d9c4267d8d9d198289 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2006-12-22 Andrea Zagli <azagli@inwind.it>
+
+       * some adjustments to autotools files
+
 2006-12-20 Andrea Zagli <azagli@inwind.it>
 
        * gtkdateentry.c: gtk_date_set_date_strf rewrited
index 9a1a92ed65c183b0f39e697414b3aca48213c18f..ea138b55567a5096a331f14d63ba138bbbaec48a 100644 (file)
@@ -1,6 +1,7 @@
 AC_PREREQ(2.59)
 AC_INIT([GtkDateEntry], [0.0.2], [azagli@inwind.it])
 AC_CONFIG_SRCDIR([src/gtkdateentry.c])
+AC_CONFIG_HEADER([config.h])
 
 AM_INIT_AUTOMAKE
 
@@ -10,7 +11,12 @@ AC_CANONICAL_SYSTEM
 
 AC_LIBTOOL_WIN32_DLL
 
+AC_PROG_CXX
 AC_PROG_CC
+AC_PROG_CPP
+AC_PROG_INSTALL
+AC_PROG_LN_S
+AC_PROG_MAKE_SET
 AC_PROG_LIBTOOL
 
 # Checks for header files.
@@ -23,25 +29,11 @@ AC_STRUCT_TM
 
 GTK_DOC_CHECK(1.0)
 
-GTK_REQUIRED=2.6.8
-GTKMASKEDENTRY_REQUIRED=0.0.1
+PKG_CHECK_MODULES(GTKDATEENTRY, [gtk+-2.0 >= 2.6.8
+                                 libgtkmaskedentry >= 0.0.1])
 
-dnl Check for pkgconfig first
-AC_CHECK_PROG(HAVE_PKGCONFIG, pkg-config, yes, no)
-
-dnl Give error and exit if we don't have pkgconfig
-if test "x$HAVE_PKGCONFIG" = "xno"; then
-  AC_MSG_ERROR(you need to have pkgconfig installed !)
-fi
-
-PKG_CHECK_MODULES(GTK, gtk+-2.0 >= $GTK_REQUIRED)
-PKG_CHECK_MODULES(GTKMASKEDENTRY, libgtkmaskedentry >= $GTKMASKEDENTRY_REQUIRED)
-
-AC_SUBST(GTK_CFLAGS)
-AC_SUBST(GTK_LIBS)
-
-AC_SUBST(GTKMASKEDENTRY_CFLAGS)
-AC_SUBST(GTKMASKEDENTRY_LIBS)
+AC_SUBST(GTKDATEENTRY_CFLAGS)
+AC_SUBST(GTKDATEENTRY_LIBS)
 
 # Output files
 AC_CONFIG_FILES([
index 3db3a8f22bcb9a975a69f34a6c52b8b15d7c36d1..aa0dbe53f6d6980e3f873d4a6b6cfeca9e928edf 100644 (file)
@@ -67,8 +67,8 @@ expand_content_files=
 # signals and properties.
 # e.g. INCLUDES=-I$(top_srcdir) -I$(top_builddir) $(GTK_DEBUG_FLAGS)
 # e.g. GTKDOC_LIBS=$(top_builddir)/gtk/$(gtktargetlib)
-INCLUDES = -I$(top_srcdir)/src $(GTK_CFLAGS) $(GTKMASKEDENTRY_CFLAGS)
-GTKDOC_LIBS = $(top_srcdir)/src/libgtkdateentry.la $(GTK_LIBS) $(GTKMASKEDENTRY_LIBS)
+INCLUDES = -I$(top_srcdir)/src $(GTKDATEENTRY_CFLAGS)
+GTKDOC_LIBS = $(top_srcdir)/src/libgtkdateentry.la $(GTKDATEENTRY_LIBS)
 
 # This includes the standard gtk-doc make rules, copied by gtkdocize.
 include $(top_srcdir)/gtk-doc.make
index 30fc9bd04b3784369c24da879046809d5183b575..2093681dd7978fa579aa5549a235bb2bbbf7d398 100644 (file)
@@ -1,10 +1,8 @@
-INCLUDES = $(WARN_CFLAGS) \
-           $(DISABLE_DEPRECATED_CFLAGS) \
-           $(GTK_CFLAGS) \
-           $(GTKMASKEDENTRY_CFLAGS)
+AM_CPPFLAGS = $(WARN_CFLAGS) \
+              $(DISABLE_DEPRECATED_CFLAGS) \
+              $(GTKDATEENTRY_CFLAGS)
 
-LIBS = $(GTK_LIBS) \
-       $(GTKMASKEDENTRY_LIBS)
+LIBS = $(GTKDATEENTRY_LIBS)
 
 lib_LTLIBRARIES = libgtkdateentry.la
 
index 8b07ba1ee16a7360846e714213418508a5de0e9d..0fdc73f060cc859cd254e0e3e28d203dce71c1f3 100644 (file)
@@ -1,10 +1,8 @@
-INCLUDES = \
-       $(WARN_CFLAGS) \
-       $(DISABLE_DEPRECATED_CFLAGS) \
-       $(GTK_CFLAGS) \
-       -I../src
+AM_CPPFLAGS = $(WARN_CFLAGS) \
+             $(DISABLE_DEPRECATED_CFLAGS) \
+             $(GTKDATEENTRY_CFLAGS)
+             -I../src
 
 LDADD = ../src/libgtkdateentry.la
 
-noinst_PROGRAMS = \
-       date_entry
+noinst_PROGRAMS = date_entry