-AC_INIT
+AC_INIT([isl], [0.07], [isl-development@googlegroups.com])
AC_CONFIG_AUX_DIR([.])
AC_CONFIG_MACRO_DIR([m4])
-AM_INIT_AUTOMAKE(isl, 0.03)
+AM_INIT_AUTOMAKE([foreign])
+m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
AC_SUBST(versioninfo)
-versioninfo=3:0:0
+versioninfo=7:0:0
AC_PROG_CC
AX_CC_MAXOPT
AX_GCC_WARN_UNUSED_RESULT
+AX_C___ATTRIBUTE__
AC_PROG_LIBTOOL
AM_CONDITIONAL(GENERATE_DOC, test -n "$PERL" -a -n "$PDFLATEX" -a -n "$POD2HTML")
-AX_CREATE_STDINT_H(include/isl_stdint.h)
+AX_CREATE_STDINT_H(include/isl/stdint.h)
AX_SUBMODULE(gmp,system,system)
fi
AM_CONDITIONAL(HAVE_PIPLIB, test x$have_piplib = xtrue)
-PACKAGE_CFLAGS="-I$prefix/include/isl"
+AX_SET_WARNING_FLAGS
+
+AC_SUBST(WARNING_FLAGS)
+
+PACKAGE_CFLAGS="$GMP_CPPFLAGS"
+PACKAGE_LDFLAGS="$GMP_LDFLAGS"
+PACKAGE_LIBS="-lisl -lgmp"
AX_CREATE_PKGCONFIG_INFO
AX_DETECT_GIT_HEAD
echo '#define GIT_HEAD_ID "'$GIT_HEAD_ID'"' > gitversion.h
-AC_CONFIG_HEADERS(config.h)
-AC_CONFIG_HEADERS(include/isl_config.h)
+AH_BOTTOM([#include <isl_config_post.h>])
+AC_CONFIG_HEADERS(isl_config.h)
+AC_CONFIG_HEADERS(include/isl/config.h)
AC_CONFIG_FILES(Makefile)
AC_CONFIG_FILES(doc/Makefile)
+AC_CONFIG_FILES([bound_test.sh], [chmod +x bound_test.sh])
+AC_CONFIG_FILES([pip_test.sh], [chmod +x pip_test.sh])
AC_CONFIG_COMMANDS_POST([
dnl pass on arguments to subdir configures, but don't
dnl add them to config.status