Added options to make Robodoc more customizable.
[robodoc.git] / configure.in
1 dnl Process this file with autoconf to produce a configure script.
2
3 dnl TODO FS   Document this.
4 dnl TODO FS   Figure out how this really works.
5
6 AC_INIT(robodoc, 4.99.36)
7 AC_CONFIG_SRCDIR(Source/robodoc.h)
8 AC_DEFINE_UNQUOTED([ROBO_PREFIX],"$prefix", [default location for robodoc.rc])
9
10 AM_CONFIG_HEADER(Source/config.h)
11 AM_INIT_AUTOMAKE(robodoc, 4.99.36)
12
13 AC_PROG_MAKE_SET
14
15 dnl Checks for programs.
16 AC_PROG_CC
17
18 dnl Do a cross compile under cygwin
19 if test "`uname -o 2>/dev/null`" = Cygwin; then
20   CFLAGS="$CFLAGS -mno-cygwin";
21 fi
22
23 dnl Checks for libraries.
24
25 dnl Checks for header files.
26 AC_HEADER_STDC
27 AC_CANONICAL_HOST
28
29 dnl Test for Mac OS X
30 case ${host} in
31 *-apple-darwin*)
32         OSTYPE="DARWIN"
33
34         ;;
35 esac
36
37 AM_CONDITIONAL([FINK], [test "x$OSTYPE" = "xDARWIN"])
38
39 dnl Add DARWIN flag for Mac OS X
40 if test "x$OSTYPE" = "xDARWIN";then
41         CFLAGS="$CFLAGS -DDARWIN"
42 fi
43
44
45 dnl The value of --prefix is used in the sources
46 dnl so make a define for it.
47
48
49
50 dnl Checks for typedefs, structures, and compiler characteristics.
51 AC_C_CONST
52 AC_TYPE_SIZE_T
53
54 dnl Checks for library functions.
55 AC_FUNC_STRFTIME
56 AC_FUNC_VPRINTF
57 AC_FUNC_FORK
58 AC_CHECK_FUNCS(strstr)
59
60 AC_CONFIG_FILES([makefile Docs/makefile Docs/robodoc.1 Source/makefile])
61 AC_OUTPUT