ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/branches/1.0.x/src/libopm/configure.ac
Revision: 5113
Committed: Wed Dec 24 14:07:02 2014 UTC (9 years, 3 months ago) by michael
Content type: application/pkix-attr-cert
Original Path: hopm/trunk/src/libopm/configure.ac
File size: 1879 byte(s)
Log Message:
- Removed libopm/doc

File Contents

# Content
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 AC_ARG_WITH(extra-fascism,
10 AC_HELP_STRING([--with-extra-fascism],
11 [add extra gcc3-specific warning flags]),
12 [CFLAGS="$CFLAGS -g -O0 -W -Wall -Wfloat-equal -Wbad-function-cast -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs"])
13
14 dnl AC_ARG_WITH(faldo,
15 dnl AC_HELP_STRING([--with-faldo],
16 dnl [make some use of Nick Faldo]))
17
18 dnl Checks for programs.
19 AC_PROG_CC_C99
20 AS_IF([test "$ac_cv_prog_cc_c99" = "no"],
21 [AC_MSG_ERROR([no suitable C99 compiler found. Aborting.])])
22 AC_PROG_LIBTOOL
23 AC_SUBST(LIBTOOL_DEPS)
24
25 dnl Checks for header files.
26 AC_HEADER_STDC
27
28 AC_CHECK_HEADERS(sys/poll.h, have_poll_sys_h=yes, have_sys_poll_h=no)
29
30 AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h strings.h)
31
32 dnl Checks for typedefs, structures, and compiler characteristics.
33 AC_TYPE_SIZE_T
34 AC_HEADER_TIME
35
36 dnl if they want select() or they don't have poll() then we need to check
37 dnl that we actually have select()
38 if test "$have_sys_poll_h" = "no"; then
39 AC_CHECK_FUNCS(select, have_select=yes, have_select=no)
40 if test "$have_select" = "no"; then
41 AC_MSG_ERROR([No select() implementation found])
42 fi
43 fi
44
45 AC_CHECK_FUNCS(inet_aton inet_pton)
46
47 dnl Check if we can use gethostbyname2 for ipv6
48 AC_CHECK_FUNCS(gethostbyname)
49
50 dnl AIX fun
51 AC_C_BIGENDIAN
52
53 AC_CHECK_FUNC(getaddrinfo, [], AC_SEARCH_LIBS(getaddrinfo, nsl))
54 AC_CHECK_FUNC(getnameinfo, [], AC_SEARCH_LIBS(getnameinfo, nsl))
55 AC_SEARCH_LIBS([socket],[socket],,[AC_MSG_ERROR([socket library not found])])
56
57 LTLIBOBJS=`echo "$LIB@&t@OBJS" |
58 sed 's,\.[[^.]]* ,.lo ,g;s,\.[[^.]]*$,.lo,'`
59 AC_SUBST(LTLIBOBJS)
60
61 AC_OUTPUT(Makefile src/Makefile)