2 # Process this file with autoconf to produce a configure script.
5 AC_INIT([libmar], [1.0], [jason@sigio.com])
6 AM_INIT_AUTOMAKE([foreign])
7 AC_CONFIG_SRCDIR([tool/mar.c])
8 AC_CONFIG_HEADER([config.h])
10 # Check for MAR_CHANNEL_ID:
11 AC_ARG_WITH([marchannelid],
12 [ --with-marchannelid=channelname default name for MAR channel (default is blank)],
13 [mar_channel_id=${withval}],
15 AC_DEFINE_UNQUOTED([MAR_CHANNEL_ID], ["${mar_channel_id}"], [Default MAR_CHANNEL_ID])
17 # Check for MOZ_APP_VERSION
18 AC_ARG_WITH([mozappversion],
19 [ --with-mozappversion=appversion default version for app (default is 19.0.1)],
20 [moz_app_version=${withval}],
21 [moz_app_version="19.0.1"])
22 AC_DEFINE_UNQUOTED([MOZ_APP_VERSION], ["${moz_app_version}"], [Default MOZ_APP_VERSION])
25 # Checks for programs.
29 # Checks for libraries.
30 AC_CHECK_LIB([bz2],[BZ2_bzCompressInit],,AC_MSG_ERROR(*** OpenILS requires libbz2))
32 # Checks for header files.
33 AC_CHECK_HEADERS([err.h fcntl.h netinet/in.h stdint.h stdio.h stdlib.h string.h sys/stat.h sys/types.h unistd.h])
35 # Checks for typedefs, structures, and compiler characteristics.
41 # Checks for library functions.
45 AC_CHECK_FUNCS([memset mkdir strdup strrchr])
47 AC_CONFIG_FILES([Makefile