File: configure.in

package info (click to toggle)
cxref 1.6a-1.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,124 kB
  • ctags: 1,502
  • sloc: ansic: 18,209; yacc: 2,086; sh: 917; lex: 460; perl: 452; makefile: 418; lisp: 256; cpp: 188; python: 80
file content (48 lines) | stat: -rw-r--r-- 1,046 bytes parent folder | download | duplicates (3)
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
dnl Process this file with autoconf to produce a configure script.
AC_INIT(src/cxref.c)

dnl Specify the autoconf file.
AC_CONFIG_HEADER(src/autoconfig.h)

dnl Check the page size
PAGE=A4
AC_ARG_ENABLE(us-paper,
[  --enable-us-paper      use US paper instead of A4],
[if test "$enableval" = "yes"; then PAGE=US; fi])
AC_SUBST(PAGE)

dnl Checks for programs.
AC_PROG_CC
AC_PROG_AWK
AC_PROG_YACC
AC_PROG_CPP
AC_PROG_LEX
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_CHECK_PROG(PERL, perl, perl, )
AC_CHECK_PROG(LATEX, latex, latex, )
AC_CHECK_PROG(DVIPS, dvips, dvips, )

dnl Checks for libraries.

dnl Checks for header files.
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS(malloc.h unistd.h)

dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_PID_T

dnl Checks for library functions.
AC_CHECK_FUNCS(getcwd mkdir strerror strstr)

objdir=`pwd`
AC_SUBST(objdir)

dnl Check the cpp directory
AC_CONFIG_SUBDIRS(cpp)

dnl Create the output files.
AC_OUTPUT(Makefile src/Makefile doc/Makefile query/Makefile)