/[svn]/hopm/trunk/src/libopm/configure.ac
ViewVC logotype

Contents of /hopm/trunk/src/libopm/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5096 - (show annotations)
Tue Dec 23 20:44:28 2014 UTC (7 years, 9 months ago) by michael
File size: 2084 byte(s)
- Update configure.ac. Removed useless noise

1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT(libopm, [0.1])
3 AC_CONFIG_SRCDIR(src/libopm.h)
4 AM_CONFIG_HEADER(src/setup.h)
5 AM_INIT_AUTOMAKE()
6 AC_PREFIX_DEFAULT([/usr/local/libopm])
7 AM_MAINTAINER_MODE
8
9 # for documentation purposes
10 DOX_DIR_HTML=api
11 DOX_DIR_LATEX=latex
12 DOX_DIR_MAN=man
13
14 AC_SUBST(DOX_DIR_HTML)
15 AC_SUBST(DOX_DIR_LATEX)
16 AC_SUBST(DOX_DIR_MAN)
17
18 AC_ARG_WITH(extra-fascism,
19 AC_HELP_STRING([--with-extra-fascism],
20 [add extra gcc3-specific warning flags]),
21 [CFLAGS="$CFLAGS -g -O0 -W -Wall -Wfloat-equal -Wbad-function-cast -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs"])
22
23 dnl AC_ARG_WITH(faldo,
24 dnl AC_HELP_STRING([--with-faldo],
25 dnl [make some use of Nick Faldo]))
26
27 dnl Checks for programs.
28 AC_PROG_CC_C99
29 AS_IF([test "$ac_cv_prog_cc_c99" = "no"],
30 [AC_MSG_ERROR([no suitable C99 compiler found. Aborting.])])
31 AC_PROG_LIBTOOL
32 AC_SUBST(LIBTOOL_DEPS)
33
34 dnl Checks for header files.
35 AC_HEADER_STDC
36
37 AC_CHECK_HEADERS(sys/poll.h, have_poll_sys_h=yes, have_sys_poll_h=no)
38
39 AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h strings.h)
40
41 dnl Checks for typedefs, structures, and compiler characteristics.
42 AC_C_CONST
43 AC_TYPE_SIZE_T
44 AC_HEADER_TIME
45
46 dnl if they want select() or they don't have poll() then we need to check
47 dnl that we actually have select()
48 if test "$have_sys_poll_h" = "no"; then
49 AC_CHECK_FUNCS(select, have_select=yes, have_select=no)
50 if test "$have_select" = "no"; then
51 AC_MSG_ERROR([No select() implementation found])
52 fi
53 fi
54
55 AC_CHECK_FUNCS(inet_aton inet_pton)
56
57 dnl Check if we can use gethostbyname2 for ipv6
58 AC_CHECK_FUNCS(gethostbyname gethostbyname2)
59
60 dnl AIX fun
61 AC_C_BIGENDIAN
62
63 AC_CHECK_FUNC(getaddrinfo, [], AC_SEARCH_LIBS(getaddrinfo, nsl))
64 AC_CHECK_FUNC(getnameinfo, [], AC_SEARCH_LIBS(getnameinfo, nsl))
65 AC_SEARCH_LIBS([socket],[socket],,[AC_MSG_ERROR([socket library not found])])
66
67 LTLIBOBJS=`echo "$LIB@&t@OBJS" |
68 sed 's,\.[[^.]]* ,.lo ,g;s,\.[[^.]]*$,.lo,'`
69 AC_SUBST(LTLIBOBJS)
70
71 AC_OUTPUT(Makefile src/Makefile doc/Makefile doc/Doxyfile)

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28