1
dnl Process this file with autoconf to produce a configure script.
3
AC_CONFIG_SRCDIR([src/backbuffer.h])
5
AM_INIT_AUTOMAKE(zipios++,0.1.5)
6
AC_CONFIG_HEADERS([zipios++/zipios-config.h])
9
dnl Add -mno-cygwin to CXXFLAGS and CFLAGS if working under cygwin
10
dnl if test "$host_os in *cygwin*"; then
11
dnl CXXFLAGS="$CXXFLAGS -mno-cygwin"
12
dnl CFLAGS="$CFLAGS -mno-cygwin"
15
dnl to run test progs with CXX: AC_LANG([C++])
17
dnl Use std compliant iostream library if present?
18
AC_ARG_WITH(std-compliant-iostream,
19
[ --with-std-compliant-iostream
20
Include iostream (if present) instead of iostream.h. (Default is yes) ] )
22
if test -n "$with_std_compliant_iostream" -a \
23
"$with_std_compliant_iostream" != "no" -a \
24
"$with_std_compliant_iostream" != "yes" ; then
26
[illegal argument specified for --with-std-compliant-iostream.
27
Only 'yes' and 'no' are accepted.])
29
if test -z "$with_std_compliant_iostream" -o \
30
"$with_std_compliant_iostream" = "yes" ; then
31
AC_DEFINE(USE_STD_IOSTREAM, 1, [Define if the std compliant iostream library should be used (if present)])
34
dnl Checks for programs.
41
dnl Checks for libraries.
42
AC_CHECK_LIB(z, inflate, [cv_libz=yes], [cv_libz=no])
44
if test "$cv_libz" != "yes"; then
45
AC_MSG_ERROR([zlib is required to compile $PACKAGE.])
48
dnl acconfig.h file added (with #undef for HAVE_ZERROR), which is required
49
dnl for symbols defined "manually" with AC_DEFINE
50
AC_CHECK_LIB(z, zError, AC_DEFINE(HAVE_ZERROR, 1, [Define if zlib has zError]) )
52
dnl Checks for header files.
54
AC_CHECK_HEADERS(unistd.h)
57
dnl Not necessary anymore: AC_CXX_HAVE_SSTREAM
58
AC_CXX_HAVE_STD_IOSTREAM
60
dnl Checks for typedefs, structures, and compiler characteristics.
64
dnl Checks for library functions.
66
AC_CONFIG_FILES([Makefile zipios++/Makefile src/Makefile])