2 # Process this file with autoconf to produce a configure script.
5 AC_INIT([barry-backup], [0.1], [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])
11 # Checks for programs.
20 [ --with-libtar=<path> root path of libtar install],
21 [LIBTAR_CFLAGS="-I$with_libtar/include"
22 LIBTAR_LIBS="-L$with_libtar/lib -ltar"],
23 [echo "Guessing libtar location... may not compile...";
26 AC_SUBST(LIBTAR_CFLAGS)
30 [ --with-zlib=<path> root path of zlib install],
31 [LIBZ_CFLAGS="-I$with_libtar/include"
32 LIBZ_LIBS="-L$with_libtar/lib -ltar"],
33 [echo "Guessing zlib location... may not compile...";
39 PKG_CHECK_MODULES([BARRY], [libbarry-0 libusb])
40 PKG_CHECK_MODULES([GTKMM], [gtkmm-2.4 libglademm-2.4 gthread-2.0])
42 # Setup gladedir, so src/Makefile.am can use it for the compile
43 # and for the glade file installations. (glade_DATA)
44 gladedir="$datadir/barry/glade/"
47 # Checks for libraries.
48 #AC_CHECK_LIB([IOKit], [main])
49 AC_CHECK_LIB([pthread], [main])
50 #AC_CHECK_LIB([libusb], [libusb_init])
52 # Checks for header files.
55 AC_CHECK_HEADERS([assert.h stdint.h time.h])
57 # Checks for typedefs, structures, and compiler characteristics.
62 # Checks for library functions.
64 AC_PROG_GCC_TRADITIONAL
68 AC_FUNC_SELECT_ARGTYPES
70 AC_CHECK_FUNCS([bzero gettimeofday memset select strcasecmp strchr strerror strtol strtoul])
72 AC_CONFIG_FILES([Makefile