-
Notifications
You must be signed in to change notification settings - Fork 18
/
configure.ac
93 lines (67 loc) · 1.89 KB
/
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
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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.57)
AC_INIT([sixproc],[2014.5],[[email protected]])
if test -n "${CXXFLAGS}"; then
user_set_cxxflags=yes
fi
SWIN_OPTIONS_SET
AC_CONFIG_AUX_DIR([config])
#AC_CONFIG_SRCDIR([Makefile.am])
# Create static libraries by default
AC_DISABLE_SHARED
# Enable large-file support
AC_SYS_LARGEFILE
# Determine the machine endian
AC_C_BIGENDIAN
# Checks for programs.
AC_PROG_CXX
AC_PROG_CXXCPP
AC_PROG_CC
AC_PROG_CPP
AM_PROG_CC_C_O
AC_PROG_F77
AC_PROG_F77_C_O
AC_F77_LIBRARY_LDFLAGS
if test -n "${CXXFLAGS}"; then
user_set_cxxflags=yes
fi
AC_PROG_CXX
if test X$user_set_cxxflags != Xyes; then
CXXFLAGS="-O2"
fi
AC_PROG_INSTALL
AC_PROG_LIBTOOL
AM_PATH_XML2
SWIN_LIB_CFITSIO
SWIN_LIB_PGPLOT
MJK_LIB_PSRXML
SWIN_LIB_TEMPO2
AX_OPENMP([have_openmp=yes],[have_openmp=no])
if test X$have_openmp == Xyes; then
CFLAGS="$CFLAGS $OPENMP_CFLAGS -DHAVE_OPENMP"
CXXFLAGS="$CXXFLAGS $OPENMP_CFLAGS -DHAVE_OPENMP"
fi
AC_PATH_ZLIB
MJK_LIB_FFTW
if test X$have_fftw != Xyes; then
AC_WARN("No FFTW3 found... you will have to use the slower 'singleton' FFT. Specify location with --with-fftw-dir")
fi
if test X$have_openmp == Xno; then
AC_MSG_WARN([**OpenMP not detected, will compile only single threaded**])
fi
if test x"$have_tempo2" != xyes; then
AC_WARN("No TEMPO2 found... Cannot build software that depends on T2toolkit or tempo2")
fi
#AC_CHECK_HEADER(tempo2pred.h,have_tempo2=yes, have_tempo2=no)
#if test X$have_tempo2 == Xyes; then
# AC_CHECK_LIB(tempo2pred,T2Predictor_GetPhase,have_tempo2=yes, have_tempo2=no)
#fi
AM_CONDITIONAL(HAVE_T2PRED, [test x"$have_tempo2" = xyes])
AC_SUBST(XML_CPPFLAGS)
AC_SUBST(PSRXML_LIBS)
AC_SUBST(PSRXML_CFLAGS)
AM_INIT_AUTOMAKE([foreign subdir-objects])
AM_CONFIG_HEADER([config.h])
AC_CONFIG_FILES([Makefile src/Makefile])
AC_OUTPUT