desktop: show the modem pppd command in the modem script
[barry.git] / gui / configure.ac
bloba500f2c244ac94bf2cc37dba37b941dc5f714c3a
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
4 AC_PREREQ(2.61)
5 AC_INIT([barry-backup], [0.18.0], [barry-devel@lists.sourceforge.net])
6 #AM_CONFIG_HEADER(config.h)
7 AC_CONFIG_SRCDIR([src/main.cc])
8 AC_CONFIG_HEADERS([config.h:config.h.in])
9 AC_CONFIG_AUX_DIR([.])
10 AC_CONFIG_MACRO_DIR([m4])
11 AM_INIT_AUTOMAKE
13 AM_GNU_GETTEXT([external])
14 AM_GNU_GETTEXT_VERSION([0.17])
16 # Checks for programs.
17 AC_PROG_CC
18 AC_PROG_CXX
19 AC_PROG_MAKE_SET
20 AC_PROG_LIBTOOL
22 AC_LANG([C++])
24 PKG_CHECK_MODULES([BARRY], [libbarry-0])
25 PKG_CHECK_MODULES([BARRYBACKUP], [libbarrybackup-0])
26 PKG_CHECK_MODULES([GTKMM], [gtkmm-2.4 libglademm-2.4 gthread-2.0])
28 # Carry the special tree build environment variables from parent configure,
29 # just in case user is doing a complete tree build with --enable-gui
30 AC_SUBST(TREE_BUILD_CXXFLAGS)
31 AC_SUBST(TREE_BUILD_LDFLAGS)
33 # Setup gladedir, so src/Makefile.am can use it for the compile
34 # and for the glade file installations. (glade_DATA)
35 gladedir="$datadir/barry/glade/"
36 AC_SUBST(gladedir)
38 # Checks for libraries.
39 #AC_CHECK_LIB([IOKit], [main])
40 AC_CHECK_LIB([pthread], [main])
41 #AC_CHECK_LIB([libusb], [libusb_init])
43 # Checks for header files.
44 AC_HEADER_DIRENT
45 AC_HEADER_STDC
46 AC_CHECK_HEADERS([assert.h stdint.h time.h])
48 # Checks for typedefs, structures, and compiler characteristics.
49 #AC_TYPE_SIZE_T
50 AC_HEADER_TIME
51 AC_STRUCT_TM
53 # Checks for library functions.
54 AC_FUNC_CLOSEDIR_VOID
55 AC_PROG_GCC_TRADITIONAL
56 AC_FUNC_MALLOC
57 AC_FUNC_MKTIME
58 AC_FUNC_REALLOC
59 AC_FUNC_SELECT_ARGTYPES
60 AC_FUNC_STAT
61 AC_CHECK_FUNCS([bzero gettimeofday memset select strcasecmp strchr strerror strtol strtoul])
63 AC_CONFIG_FILES([Makefile 
64                  po/Makefile.in
65                  src/Makefile
66                  man/Makefile])
67 AC_OUTPUT
71 # Add a special hack at the end, to let the user disable RPATH if he wants.
73 # http://wiki.debian.org/RpathIssue
74 # http://lists.debian.org/debian-devel/2003/debian-devel-200306/msg00569.html
75 # http://fedoraproject.org/wiki/Packaging:Guidelines#Removing_Rpath
77 AC_ARG_ENABLE([rpathhack],
78         [AC_HELP_STRING([--enable-rpathhack], [patch libtool to remove RPATH])],
79         [
80 AC_MSG_RESULT([patching libtool to fix HIDEOUS BREAKAGE])
81 sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
82 sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
83         ],
84         [])