tools: added libbarry to bdptest build (needed on opensuse?)
[barry.git] / gui / configure.ac
blob2703b08499b30229bd3a7262b16da897523dfd06
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
4 AC_PREREQ(2.61)
5 AC_INIT([barry-backup], [0.17], [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])
15 # Checks for programs.
16 AC_PROG_CC
17 AC_PROG_CXX
18 AC_PROG_MAKE_SET
19 AC_PROG_LIBTOOL
21 AC_LANG([C++])
23 AC_ARG_WITH(libtar,
24         [  --with-libtar=<path>    root path of libtar install],
25         [LIBTAR_CFLAGS="-I$with_libtar/include"
26          LIBTAR_LIBS="-L$with_libtar/lib -ltar"],
27         [echo "Guessing libtar location... may not compile...";
28          LIBTAR_CFLAGS=""
29          LIBTAR_LIBS="-ltar"])
30 AC_SUBST(LIBTAR_CFLAGS)
31 AC_SUBST(LIBTAR_LIBS)
33 AC_ARG_WITH(libz,
34         [  --with-zlib=<path>      root path of zlib install],
35         [LIBZ_CFLAGS="-I$with_libtar/include"
36          LIBZ_LIBS="-L$with_libtar/lib -ltar"],
37         [echo "Guessing zlib location... may not compile...";
38          LIBZ_CFLAGS=""
39          LIBZ_LIBS="-lz"])
40 AC_SUBST(LIBZ_CFLAGS)
41 AC_SUBST(LIBZ_LIBS)
43 PKG_CHECK_MODULES([BARRY], [libbarry-0])
44 PKG_CHECK_MODULES([GTKMM], [gtkmm-2.4 libglademm-2.4 gthread-2.0])
46 # Carry the special tree build environment variables from parent configure,
47 # just in case user is doing a complete tree build with --enable-gui
48 AC_SUBST(TREE_BUILD_CXXFLAGS)
49 AC_SUBST(TREE_BUILD_LDFLAGS)
51 # Setup gladedir, so src/Makefile.am can use it for the compile
52 # and for the glade file installations. (glade_DATA)
53 gladedir="$datadir/barry/glade/"
54 AC_SUBST(gladedir)
56 # Checks for libraries.
57 #AC_CHECK_LIB([IOKit], [main])
58 AC_CHECK_LIB([pthread], [main])
59 #AC_CHECK_LIB([libusb], [libusb_init])
61 # Checks for header files.
62 AC_HEADER_DIRENT
63 AC_HEADER_STDC
64 AC_CHECK_HEADERS([assert.h stdint.h time.h])
66 # Checks for typedefs, structures, and compiler characteristics.
67 #AC_TYPE_SIZE_T
68 AC_HEADER_TIME
69 AC_STRUCT_TM
71 # Checks for library functions.
72 AC_FUNC_CLOSEDIR_VOID
73 AC_PROG_GCC_TRADITIONAL
74 AC_FUNC_MALLOC
75 AC_FUNC_MKTIME
76 AC_FUNC_REALLOC
77 AC_FUNC_SELECT_ARGTYPES
78 AC_FUNC_STAT
79 AC_CHECK_FUNCS([bzero gettimeofday memset select strcasecmp strchr strerror strtol strtoul])
81 AC_CONFIG_FILES([Makefile 
82                  po/Makefile.in
83                  src/Makefile
84                  man/Makefile])
85 AC_OUTPUT