source: gaycko/configure.ac @ 4716

Last change on this file since 4716 was 4716, checked in by Jean-Yves Lamoureux, 9 years ago
  • Initial commit -This line, and those below, will be ignored--

A gaycko/tests
A gaycko/tests/lnx.html
A gaycko/tests/html.html
A gaycko/tests/simple.html
A gaycko/configure.ac
A gaycko/src
A gaycko/src/dom
A gaycko/src/dom/dom.c
A gaycko/src/dom/dom.h
A gaycko/src/helpers
A gaycko/src/helpers/str.c
A gaycko/src/helpers/str.h
A gaycko/src/gaycko.h
A gaycko/src/parsing
A gaycko/src/parsing/parse.h
A gaycko/src/parsing/parse.c
A gaycko/src/io
A gaycko/src/io/file.c
A gaycko/src/io/http.c
A gaycko/src/io/file.h
A gaycko/src/io/http.h
A gaycko/src/io/io.c
A gaycko/src/io/io.h
A gaycko/src/Makefile.am
A gaycko/src/gaycko.c
A gaycko/Makefile.am
AM gaycko/bootstrap

File size: 2.4 KB
Line 
1AC_INIT(gaycko, 01)
2AC_PREREQ(2.50)
3AC_CONFIG_AUX_DIR(.auto)
4
5
6AC_CANONICAL_SYSTEM
7AM_INIT_AUTOMAKE([no-define tar-ustar])
8dnl AM_MAINTAINER_MODE
9
10AM_CONFIG_HEADER(config.h)
11
12LT_MAJOR="0"
13LT_MINOR="1"
14LT_MICRO="0"
15AC_SUBST(LT_MAJOR)
16AC_SUBST(LT_MINOR)
17AC_SUBST(LT_MICRO)
18LT_VERSION="$LT_MAJOR:$LT_MINOR:$LT_MICRO"
19AC_SUBST(LT_VERSION)
20
21
22AM_PROG_CC_C_O
23AC_PROG_CPP
24AC_PROG_CXX
25AC_PROG_CXXCPP
26OBJC="${CC}"
27AM_PROG_AS
28
29AC_LIBTOOL_WIN32_DLL
30AM_PROG_LIBTOOL
31AC_LIBTOOL_CXX
32
33AC_C_CONST
34AC_C_INLINE
35AC_TYPE_SIGNAL
36
37dnl AC_PROG_EGREP only exists in autoconf 2.54+, so we use AC_EGREP_CPP right
38dnl now otherwise it might be set in an obscure if statement. Same thing for
39dnl PKG_PROG_PKG_CONFIG which needs to be called first.
40AC_EGREP_CPP(yes, foo)
41PKG_PROG_PKG_CONFIG()
42m4_pattern_allow([^PKG_CONFIG_LIBDIR$])
43if test "${build}" != "${host}" -a "${PKG_CONFIG_LIBDIR}" = ""; then
44  export PKG_CONFIG_LIBDIR=/dev/null
45fi
46
47AC_MSG_CHECKING(for suffix of libraries)
48case "$shrext_cmds" in
49  .dll) eval LT_SUFFIX="-$LT_MAJOR$shrext_cmds" ;;
50  "") LT_SUFFIX=".so.$LT_MAJOR" ;;
51  *) eval LT_SUFFIX="$shrext_cmds.$LT_MAJOR" ;;
52esac
53AC_MSG_RESULT($LT_SUFFIX)
54AC_SUBST(LT_SUFFIX)
55
56
57
58AC_CHECK_HEADERS(stdio.h stdarg.h signal.h sys/ioctl.h sys/time.h endian.h unistd.h  errno.h locale.h getopt.h dlfcn.h termios.h)
59AC_CHECK_FUNCS(signal ioctl snprintf vsnprintf getenv putenv strcasecmp htons)
60AC_CHECK_FUNCS(usleep gettimeofday atexit)
61
62
63
64CACA_INCLUDES="  `pkg-config --cflags caca`"
65CACA_LIBS="  `pkg-config --libs caca`"
66
67have_caca=no
68save_CFLAGS=${CFLAGS}
69AC_CHECK_LIB(caca,      caca_create_canvas,
70        [AC_CHECK_HEADERS([caca.h],have_caca=yes,
71        AC_MSG_RESULT(You have libcaca but not the development headers))],
72        AC_MSG_RESULT(libcaca not found),)
73AC_MSG_CHECKING([for libcaca]) 
74AC_MSG_RESULT([$have_caca])
75
76
77XML2_INCLUDES="`xml2-config  --cflags`"
78XML2_LIBS="`xml2-config  --libs `"
79CURL_INCLUDES=""
80CURL_LIBS="-lcurl"
81TIDY_INCLUDES="-I/usr/include/tidy"
82TIDY_LIBS="-ltidy"
83
84
85CFLAGS="${CFLAGS} -Wall -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -std=c99 -O0 -g -ggdb"
86
87
88AC_SUBST(CACA_LIBS)
89AC_SUBST(CACA_INCLUDES)
90AC_SUBST(XML2_LIBS)
91AC_SUBST(XML2_INCLUDES)
92AC_SUBST(CURL_INCLUDES)
93AC_SUBST(CURL_LIBS)
94AC_SUBST(TIDY_INCLUDES)
95AC_SUBST(TIDY_LIBS)
96
97AC_SUBST(LIBS)
98
99AC_MSG_RESULT([${LIBS}])
100
101AC_CONFIG_FILES([
102  Makefile
103  src/Makefile
104])
105AC_OUTPUT
106
Note: See TracBrowser for help on using the repository browser.