ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/trunk/src/libopm/configure.ac
Revision: 5214
Committed: Mon Dec 29 20:17:02 2014 UTC (11 years, 6 months ago) by michael
Content type: application/pkix-attr-cert
File size: 1345 byte(s)
Log Message:
- configure.ac: removed with-extra-fascism switch

File Contents

# User Rev Content
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 michael 5145 AC_CONFIG_HEADER(src/setup.h)
5 michael 5052 AM_INIT_AUTOMAKE()
6     AC_PREFIX_DEFAULT([/usr/local/libopm])
7     AM_MAINTAINER_MODE
8    
9     dnl Checks for programs.
10 michael 5059 AC_PROG_CC_C99
11     AS_IF([test "$ac_cv_prog_cc_c99" = "no"],
12     [AC_MSG_ERROR([no suitable C99 compiler found. Aborting.])])
13 michael 5052 AC_PROG_LIBTOOL
14     AC_SUBST(LIBTOOL_DEPS)
15    
16     dnl Checks for header files.
17     AC_CHECK_HEADERS(sys/poll.h, have_poll_sys_h=yes, have_sys_poll_h=no)
18    
19 michael 5209 AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h)
20 michael 5052
21     dnl Checks for typedefs, structures, and compiler characteristics.
22     AC_HEADER_TIME
23    
24     dnl if they want select() or they don't have poll() then we need to check
25     dnl that we actually have select()
26     if test "$have_sys_poll_h" = "no"; then
27     AC_CHECK_FUNCS(select, have_select=yes, have_select=no)
28     if test "$have_select" = "no"; then
29     AC_MSG_ERROR([No select() implementation found])
30     fi
31     fi
32    
33     dnl AIX fun
34     AC_C_BIGENDIAN
35    
36 michael 5062 AC_CHECK_FUNC(getaddrinfo, [], AC_SEARCH_LIBS(getaddrinfo, nsl))
37     AC_CHECK_FUNC(getnameinfo, [], AC_SEARCH_LIBS(getnameinfo, nsl))
38     AC_SEARCH_LIBS([socket],[socket],,[AC_MSG_ERROR([socket library not found])])
39 michael 5052
40     LTLIBOBJS=`echo "$LIB@&t@OBJS" |
41     sed 's,\.[[^.]]* ,.lo ,g;s,\.[[^.]]*$,.lo,'`
42     AC_SUBST(LTLIBOBJS)
43    
44 michael 5122 AC_CONFIG_FILES(Makefile src/Makefile)
45     AC_OUTPUT

Properties

Name Value
svn:eol-style native
svn:keywords Id