+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
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
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.
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([
# 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
-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
-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