[go: up one dir, main page]

File: configure.ac

package info (click to toggle)
freecontact 1.0.21-13
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,068 kB
  • sloc: sh: 11,174; xml: 1,497; cpp: 1,441; perl: 126; makefile: 112; f90: 99
file content (93 lines) | stat: -rw-r--r-- 3,064 bytes parent folder | download | duplicates (6)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#   FreeContact - program to predict protein residue contacts from a sufficiently large multiple alignment
#   Copyright (C) 2012-2013  Laszlo Kajan <lkajan@rostlab.org> Rost Lab, Technical University of Munich, Germany
#   
#   This program is free software: you can redistribute it and/or modify
#   it under the terms of the GNU General Public License as published by
#   the Free Software Foundation, either version 3 of the License, or
#   (at your option) any later version.
#   
#   This program is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#   GNU General Public License for more details.
#   
#   You should have received a copy of the GNU General Public License
#   along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
AC_INIT([freecontact], [1.0.21], [lkajan@rostlab.org])

AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SRCDIR([src/freecontact.cpp])
AC_CONFIG_HEADERS([lib/config.h:lib/config.hin])
AM_INIT_AUTOMAKE([no-dist-gzip dist-xz])

AC_PROG_CXX
# AX_LAPACK() needs this
AC_PROG_F77
AC_PROG_FC
AC_FC_LIBRARY_LDFLAGS
AC_PROG_LIBTOOL
AC_LANG([C++])

[{ t2=$(tempfile); t3=$(tempfile);
	trap "rm -f -- '$t2' '$t3'" EXIT
	$CXX -c -Q     --help=optimizers > $t2
	$CXX -c -Q -O3 --help=optimizers > $t3
	# We are especially interested in -ftree-vectorize.
	O3FLAGS=$(diff -u0 $t2 $t3 |grep enabled|sed -e 's/.* \(-f[[:alnum:]-]\+\).*/\1/;'|sed -e ':a; N; s/\n/ /; ta';);
	rm -f -- '$t2' '$t3';
	trap - EXIT;
}]
AC_SUBST(O3FLAGS)
AC_MSG_NOTICE([-O3 enables: $O3FLAGS])

AC_PROG_INSTALL
AX_BOOST_BASE
AX_BOOST_PROGRAM_OPTIONS
AC_CHECK_DECL([HAVE_BOOST_PROGRAM_OPTIONS],[],[AC_MSG_ERROR(could not find Boost::Program_Options)])

AX_OPENMP
AC_SUBST(OPENMP_CFLAGS)
AC_SUBST(OPENMP_CXXFLAGS)
AC_SUBST(OPENMP_FFLAGS)
AC_SUBST(OPENMP_FCFLAGS)

# the following calls AX_BLAS automatically
AX_LAPACK([],[AC_MSG_ERROR(could not find library implementing LAPACK)])

# for XML writing support, requires AX_PTHREAD
AX_PTHREAD([],[AC_MSG_WARN(could not find out how to build POSIX threads)])
AX_LIB_XERCES
AX_XSDCXX
AM_CONDITIONAL([HAVE_XSDCXX], [test -n "$XERCES_LDFLAGS" -a -n "$XSDCXX"])
AM_COND_IF([HAVE_XSDCXX],
	[AC_DEFINE(HAVE_XSDCXX,1,[Define if XSDCXX is enabled])],
    [AC_MSG_NOTICE([XSDCXX is not enabled])
        XERCES_CPPFLAGS=""
        XERCES_LDFLAGS=""
        XERCES_LIBS=""
    ])

AX_EXT

DX_DOT_FEATURE(OFF)
DX_PDF_FEATURE(OFF)
DX_PS_FEATURE(OFF)
DX_INIT_DOXYGEN([libfreecontact], [Doxyfile], [../doxygen-doc])

# lkajan: workaround for bug described below
BIOXSD=BioXSD-1.1
AC_SUBST(BIOXSD)

AC_CONFIG_FILES([
	Makefile
	lib/Doxyfile
	lib/Makefile
	src/Makefile
])
AC_OUTPUT

# lkajan: Workaround for apparent depfile commands (autoconf? libtool?) bug: we get freecontact-$(BIOXSD).Po created instead of the actual content of $(BIOXSD).
[{ if [ -e 'src/.deps/freecontact-$(BIOXSD)_xsd.Po' ]; then
	mv -f 'src/.deps/freecontact-$(BIOXSD)_xsd.Po' "src/.deps/freecontact-${BIOXSD}_xsd.Po";
fi; }]