# Process this file with autoconf to produce a configure script.
m4_define([AC_PACKAGE_URL], [http://www.example.com/])
AC_INIT([mod_example], [0.0.0], [contact@example.com])
AC_CONFIG_SRCDIR([src/mod_example.c])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([foreign no-dist subdir-objects])
# disable libtool fortran and c++ checks
m4_defun([_LT_AC_LANG_F77_CONFIG], [:])
m4_defun([_LT_AC_LANG_CXX_CONFIG], [:])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AC_PATH_PROG([PKG_CONFIG], [pkg-config], ["no"])
AS_IF([test "x${PKG_CONFIG}" = "xno"],
[AC_MSG_ERROR([Cannot find pkg-config, make sure it is installed in your PATH])]
AC_MSG_RESULT([${as_nl}<<>> Compiler vendor and features])
AM_CONDITIONAL([CC_VENDOR_GNU], [test "x${ax_cv_c_compiler_vendor}" = "xgnu"])
AM_CONDITIONAL([CC_VENDOR_SUN], [test "x${ax_cv_c_compiler_vendor}" = "xsun"])
## Compiler vendor and flag checks
AC_ARG_ENABLE([visibility],
[AS_HELP_STRING([--disable-visibility], [Disable symbol visibility support (default: enabled, if available)])],
yes|no) enable_visibility="${enableval}" ;;
*) AC_MSG_ERROR([Invalid value ${enableval} for parameter --disable-visibility]) ;;
[enable_visibility="yes"]
case "${ax_cv_c_compiler_vendor}" in
AC_MSG_CHECKING([whether the compiler supports -fvisibility=hidden])