2 # Process this file with autoconf to produce a configure script.
5 AC_INIT([ust], [0.0], [pierre-marc dot fournier at polymtl dot ca])
6 AC_CONFIG_AUX_DIR(make_scripts)
7 AM_INIT_AUTOMAKE([0.0 foreign])
8 AC_CONFIG_SRCDIR([ust/localerr.h])
9 AC_CONFIG_HEADERS([config.h])
11 # Checks for programs.
16 ## Checks for libraries.
17 ## FIXME: Replace `main' with a function in `-ldl':
18 #AC_CHECK_LIB([dl], [main])
19 ## FIXME: Replace `main' with a function in `-lmarkers':
20 #AC_CHECK_LIB([markers], [main])
21 ## FIXME: Replace `main' with a function in `-lpthread':
22 #AC_CHECK_LIB([pthread], [main])
23 ## FIXME: Replace `main' with a function in `-ltracectl':
24 #AC_CHECK_LIB([tracectl], [main])
25 ## FIXME: Replace `main' with a function in `-ltracing':
26 #AC_CHECK_LIB([tracing], [main])
27 ## FIXME: Replace `main' with a function in `-lurcu':
28 #AC_CHECK_LIB([urcu], [main])
30 # Checks for header files.
31 #AC_CHECK_HEADERS([fcntl.h stdint.h stdlib.h string.h sys/socket.h sys/time.h unistd.h])
33 # Checks for typedefs, structures, and compiler characteristics.
46 #AC_CHECK_TYPES([ptrdiff_t])
48 # Checks for library functions.
50 AC_CHECK_FUNCS([gettimeofday munmap socket strerror strtol])
52 AC_ARG_WITH(urcu, [ --with-urcu path Path to userspace RCU source], URCU_PATH="$withval", AC_MSG_ERROR([Must specify urcu path.]))
53 AC_CHECK_FILE("$URCU_PATH/urcu.h", , AC_MSG_ERROR([Cannot find urcu.h in urcu directory]))
54 AC_ARG_WITH(kcompat, [ --with-kcompat path Path to userspace kcompat source], KCOMPAT_PATH="$withval", AC_MSG_ERROR([Must specify kcompat path.]))
55 AC_CHECK_FILE("$KCOMPAT_PATH/kcompat.h", , AC_MSG_ERROR([Cannot find kcompat.h in kcompat directory]))
57 AC_SUBST(KCOMPAT_PATH)
59 #AC_CONFIG_FILES([Makefile
61 # libmallocwrap/Makefile
63 # libtracectl/Makefile
68 AC_CONFIG_FILES([Makefile libust/Makefile hello/Makefile libmallocwrap/Makefile ustd/Makefile ust/Makefile])