forked from nanograv/tempo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
45 lines (37 loc) · 1.06 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
AC_INIT([tempo], [12.000])
AC_CONFIG_AUX_DIR([config])
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
AC_PROG_CC
# Copied the list of fortran compilers from autoconf, and moved gfortran
# to the front so that it is preferred if available. Would be nice if
# there were a less kludgey way to do this..
AC_PROG_F77([gfortran g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 \
xlf90 f90 pgf90 pghpf epcf90 g95 xlf95 f95 \
fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor])
case "$F77" in
*gfortran*) FFLAGS+=" -ffixed-form -ffixed-line-length-none -std=legacy"
;;
esac
AC_C_BIGENDIAN([BIGENDIAN=".true."], [BIGENDIAN=".false."])
AC_SUBST(BIGENDIAN)
AC_CHECK_HEADERS([malloc.h])
AX_LAPACK
AM_CONDITIONAL([HAVE_LAPACK],[test x"$ax_lapack_ok" = xyes])
AC_CONFIG_FILES([
Makefile
src/Makefile
tempo.cfg
src/config.h
clock/Makefile
ephem/Makefile
test/Makefile
tzpar/Makefile
util/print_resid/Makefile
])
AC_OUTPUT
# Misc messages
echo
echo "Tempo is ready to be compiled. Please run 'make'."
echo
echo "'make install' will copy 'tempo' to $prefix/bin."
echo