-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure.ac
31 lines (26 loc) · 1000 Bytes
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Initialisation
AC_INIT([genome_painter], [0.0.7], [[email protected]])
AM_INIT_AUTOMAKE([foreign -Wall -Werror subdir-objects])
# Set default prefix
test "$program_prefix" == NONE &&
program_transform_name="s&^&genomepainter_&;$program_transform_name"
# Static compiler option
AC_ARG_ENABLE([static-compile], [AS_HELP_STRING([--enable-static-compile], [Compile static binary])],
[case "${enableval}" in
no) static_compile=false ;;
*) static_compile=true ;;
esac], [static_compile=false])
AM_CONDITIONAL([STATIC_COMPILE], [test "x$static_compile" = "xtrue"])
# Check out required programs and libraries
AC_PROG_RANLIB
AM_PROG_AR
AC_PROG_CXX
AC_CHECK_LIB([z], [inflate],
[], [AC_MSG_ERROR([could not find zlib])])
AC_CHECK_LIB([gomp], [main],
[], [AC_MSG_ERROR([could not find OpenMP])])
# Set config header output
AC_CONFIG_HEADERS([config.h])
# Declare Makefile outputs
AC_CONFIG_FILES([Makefile src/Makefile tests/Makefile])
AC_OUTPUT