diff --git a/configure.ac b/configure.ac index 630158d..44464e1 100644 --- a/configure.ac +++ b/configure.ac @@ -64,12 +64,16 @@ AC_CONFIG_SRCDIR([src/tomb]) dnl Checks for reguired programs. AC_PROG_CC +AC_PROG_CXX AC_PROG_INSTALL AC_CHECK_PROG(have_zsh,zsh,yes,no) AC_CHECK_PROG(have_cryptsetup,cryptsetup,yes,no) - +PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.16, :, + AC_MSG_ERROR([*** Gtk+2 >=2.16 development files not found!])) +AC_SUBST([GTK2_CFLAGS]) +AC_SUBST([GTK2_LIBS]) dnl alphabetic order on dir/subdir, but Makefile sorts before everything AC_CONFIG_FILES([ diff --git a/src/Makefile.am b/src/Makefile.am index b1d1899..ad84cf2 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,2 +1,7 @@ bin_SCRIPTS = tomb + +bin_PROGRAMS = tomb-gtk +tomb_gtk_SOURCES = tomb-gtk.cpp +tomb_gtk_LDADD = @GTK2_LIBS@ +tomb_gtk_CXXFLAGS = @GTK2_CFLAGS@ \ No newline at end of file