思路有点阻塞了
[microcai-thesis-at-zstu.git] / configure.ac
blob8bf65e6b68572a164a9b1d4eceaa067f6e721bfc
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
4 AC_PREREQ([2.53])
5 AC_INIT([G07710219-thesis], [0.0.1], [microcaicai@gmail.com])
6 AC_CONFIG_SRCDIR([src/parser.y])
8 AM_INIT_AUTOMAKE([-Wall])
9 # Checks for programs.
10 AC_PROG_INSTALL
11 AC_PROG_CC
12 AC_PROG_YACC # Bison detect, ^_^
13 PKG_PROG_PKG_CONFIG
15 ## Default font settings
16 songti="Adobe Song Std"
17 songtibold="song-bold"
18 monohei="WenQuanYi Zen Hei Mono"
19 heiti="Adobe Heiti Std"
20 TimesFont="Nimbus Roman No9 L"
22 LATEX=xelatex
23 AC_SUBST(LATEX)
26 AC_ARG_WITH(fontsong,[AC_HELP_STRING([--with-fontsong],[font used to set CJK song, default is Adobe Song Std])],[],[])
27 AC_ARG_WITH(fontsongbold,[AC_HELP_STRING([--with-fontsongbold],[font used to set CJK bold song, default is song-bold])],[],[])
28 AC_ARG_WITH(fontmonohei,[AC_HELP_STRING([--with-fontmonohei],[font used to set CJK mono font, default is WenQuanYi Zen Hei Mono])],[],[])
29 AC_ARG_WITH(heiti,[AC_HELP_STRING([--with-heiti],[font used to set CJK heiti font, default is Adobe Heiti Std])],[],[])
30 AC_ARG_WITH(TimesFont,[AC_HELP_STRING([--with-TimesFont],[font used to set English Times font.default is Nimbus Roman No9 L(type1)])],[],[])
32 # Checks for libraries.
33 PKG_CHECK_MODULES([PARSER],[libxml-2.0 glib-2.0])
34 # Checks for header files.
36 # Checks for typedefs, structures, and compiler characteristics.
38 # Checks for library functions.
39 AC_CHECK_LIB(fl,yyerror)
41 AC_SUBST(songti)
42 AC_SUBST(songtibold)
43 AC_SUBST(monohei)
44 AC_SUBST(heiti)
45 AC_SUBST(TimesFont)
46 AC_CONFIG_FILES([doc/common/setup_font.tex
47                 Makefile
48                 src/Makefile
49                 doc/Makefile
50                 doc/commitment/Makefile
51                 doc/thesis/Makefile
52                 doc/Topic_Declaration/Makefile
53                 doc/Mission_statement/Makefile
54                 doc/Opening_report/Makefile
55                 doc/Literature_Review/Makefile])
57 AC_OUTPUT