1219820Sjeffdnl Process this file with autoconf to produce a configure script.
2219820Sjeff
3219820SjeffAC_PREREQ(2.57)
4219820SjeffAC_INIT(libibcommon, 1.2.0, general@lists.openfabrics.org)
5219820SjeffAC_CONFIG_SRCDIR([src/stack.c])
6219820SjeffAC_CONFIG_AUX_DIR(config)
7219820SjeffAM_CONFIG_HEADER(config.h)
8219820SjeffAM_INIT_AUTOMAKE
9219820Sjeff
10219820SjeffAC_SUBST(RELEASE, ${RELEASE:-unknown})
11219820SjeffAC_SUBST(TARBALL, ${TARBALL:-${PACKAGE}-${VERSION}.tar.gz})
12219820Sjeff
13219820Sjeffdnl the library version info is available in the file: libibcommon.ver
14219820Sjeffibcommon_api_version=`grep LIBVERSION $srcdir/libibcommon.ver | sed 's/LIBVERSION=//'`
15219820Sjeffif test -z $ibcommon_api_version; then
16219820Sjeff    ibcommon_api_version=1:0:0
17219820Sjefffi
18219820SjeffAC_SUBST(ibcommon_api_version)
19219820Sjeff
20219820Sjeffdnl Checks for programs
21219820SjeffAC_PROG_CC
22219820SjeffAC_PROG_CPP
23219820SjeffAC_PROG_INSTALL
24219820SjeffAC_PROG_LN_S
25219820SjeffAC_PROG_MAKE_SET
26219820SjeffAM_PROG_LIBTOOL
27219820Sjeff
28219820Sjeffdnl Checks for header files.
29219820SjeffAC_HEADER_STDC
30219820SjeffAC_CHECK_HEADERS([fcntl.h inttypes.h netinet/in.h stdint.h stdlib.h string.h sys/ioctl.h syslog.h unistd.h])
31219820Sjeff
32219820Sjeffdnl Checks for library functions
33219820SjeffAC_TYPE_SIGNAL
34219820SjeffAC_FUNC_VPRINTF
35219820SjeffAC_CHECK_FUNCS([strrchr strtoul strtoull])
36219820Sjeff
37219820Sjeffdnl Checks for typedefs, structures, and compiler characteristics.
38219820SjeffAC_C_CONST
39219820SjeffAC_C_INLINE
40219820SjeffAC_STRUCT_TM
41219820Sjeff
42219820SjeffAC_CACHE_CHECK(whether ld accepts --version-script, ac_cv_version_script,
43219820Sjeff    if test -n "`$LD --help < /dev/null 2>/dev/null | grep version-script`"; then
44219820Sjeff        ac_cv_version_script=yes
45219820Sjeff    else
46219820Sjeff        ac_cv_version_script=no
47219820Sjeff    fi)
48219820Sjeff
49219820SjeffAM_CONDITIONAL(HAVE_LD_VERSION_SCRIPT, test "$ac_cv_version_script" = "yes")
50219820Sjeff
51219820SjeffAC_CONFIG_FILES([Makefile libibcommon.spec])
52219820SjeffAC_OUTPUT
53