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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5110 - (hide annotations)
Wed Dec 24 13:37:32 2014 UTC (7 years, 9 months ago) by michael
File size: 2058 byte(s)
- configure.ac: minor cleanups

1 michael 5052 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 michael 5059 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 michael 5052 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_TYPE_SIZE_T
43     AC_HEADER_TIME
44    
45     dnl if they want select() or they don't have poll() then we need to check
46     dnl that we actually have select()
47     if test "$have_sys_poll_h" = "no"; then
48     AC_CHECK_FUNCS(select, have_select=yes, have_select=no)
49     if test "$have_select" = "no"; then
50     AC_MSG_ERROR([No select() implementation found])
51     fi
52     fi
53    
54     AC_CHECK_FUNCS(inet_aton inet_pton)
55    
56     dnl Check if we can use gethostbyname2 for ipv6
57 michael 5110 AC_CHECK_FUNCS(gethostbyname)
58 michael 5052
59     dnl AIX fun
60     AC_C_BIGENDIAN
61    
62 michael 5062 AC_CHECK_FUNC(getaddrinfo, [], AC_SEARCH_LIBS(getaddrinfo, nsl))
63     AC_CHECK_FUNC(getnameinfo, [], AC_SEARCH_LIBS(getnameinfo, nsl))
64     AC_SEARCH_LIBS([socket],[socket],,[AC_MSG_ERROR([socket library not found])])
65 michael 5052
66     LTLIBOBJS=`echo "$LIB@&t@OBJS" |
67     sed 's,\.[[^.]]* ,.lo ,g;s,\.[[^.]]*$,.lo,'`
68     AC_SUBST(LTLIBOBJS)
69    
70     AC_OUTPUT(Makefile src/Makefile doc/Makefile doc/Doxyfile)

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