-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfigure.ac
71 lines (53 loc) · 1.52 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.64)
AC_INIT([Archimedes],[2.0.1],[[email protected]])
AC_CONFIG_SRCDIR([src/archimedes.c])
AC_CONFIG_HEADER([config.h])
AM_INIT_AUTOMAKE([gnu -Wall -Werror dist-bzip2])
# Checks for programs.
AC_PROG_CXX
# save CFLAGS because AC_PROG_CC want to put '-g -O2' if void
save_cflags="$CFLAGS"
AC_PROG_CC
CFLAGS="$save_cflags"
AC_PROG_CPP
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_RANLIB
AC_CHECK_PROGS(LATEX, latex latex2e, no)
#AC_CHECK_PROGS(PDFLATEX, pdflatex, no)
AC_CHECK_PROGS(DVIPS, dvips, no)
AC_CHECK_PROGS(DVIPDF, dvipdf, no)
# Checks for libraries.
AC_CHECK_LIB([m], [log])
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([memory.h stdlib.h string.h strings.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_INLINE
AC_STRUCT_TM
# Checks for library functions.
AC_CHECK_FUNCS([memset pow sqrt])
dnl Wether we want to create the LaTeX manual
MANUAL=nomanual
AC_ARG_ENABLE(manual,dnl
[ --enable-manual build LaTeX manual], [ with_manual=$enableval ])
dnl only if latex/2e is found
if test "$with_manual" = yes -a "$DVIPDF" != no ; then
MANUAL=manual
fi
AC_SUBST(LATEX)
#AC_SUBST(PDFLATEX)
AC_SUBST(MANUAL)
AC_SUBST(DVIPS)
AC_SUBST(DVIPDF)
AC_CONFIG_FILES([Makefile
doc/Makefile
src/Makefile])
AC_OUTPUT
if test "$MANUAL" = manual; then
AC_MSG_RESULT([ Build LaTeX manual])
fi