-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigure.ac
More file actions
33 lines (26 loc) · 812 Bytes
/
configure.ac
File metadata and controls
33 lines (26 loc) · 812 Bytes
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
32
33
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.61])
AC_INIT([untangle], [1.0], [mp15@sanger.ac.uk])
AM_INIT_AUTOMAKE([-Wall foreign])
AC_CONFIG_SRCDIR([src/main.c])
AC_CONFIG_HEADERS([config.h])
# Checks for programs.
AC_PROG_CC
AC_PROG_CC_C99
# Checks for libraries.
LDFLAGS="-pthread"
AC_CHECK_LIB([hts], [hts_open])
if test "$ac_cl_lib_hts" == no
then
AC_MSG_WARN([No htslib found])
fi
AC_CHECK_LIB([z], [zlib])
# Checks for header files.
CFLAGS="-DPOSIX_SOURCE -g -I../../htslib -DPOSIX_SOURCE"
LDFLAGS+=" -L../../htslib/htslib -lz -lhts"
LIBS="-lz -lhts"
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
AC_CONFIG_FILES([Makefile src/Makefile])
AC_OUTPUT