ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/releases/1.0.4/configure.ac
Revision: 5206
Committed: Mon Dec 29 19:36:12 2014 UTC (9 years, 3 months ago) by michael
Content type: application/pkix-attr-cert
Original Path: hopm/branches/1.0.x/configure.ac
File size: 2292 byte(s)
Log Message:
- Removed AC_HEADER_STDC configure test

File Contents

# User Rev Content
1 michael 5052 dnl Process this file with autoconf to produce a configure script.
2 michael 5061 AC_INIT(hopm, [1.0.0beta1])
3 michael 5052 AC_CONFIG_SRCDIR(src/opercmd.h)
4 michael 5144 AC_CONFIG_HEADER(src/setup.h)
5 michael 5052 AM_INIT_AUTOMAKE()
6 michael 5061 AC_PREFIX_DEFAULT([\${HOME}/hopm])
7 michael 5052 AM_MAINTAINER_MODE
8    
9     AC_ARG_WITH(extra-fascism,
10 michael 5122 AS_HELP_STRING([--with-extra-fascism],
11 michael 5052 [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 ipv6?
15     dnl AC_ARG_ENABLE(ipv6,
16 michael 5122 dnl AS_HELP_STRING([--enable-ipv6], [Enable IPV6 support]),
17 michael 5052 dnl [ac_cv_ipv6=$enableval], [ac_cv_ipv6="no"])
18    
19     dnl AC_MSG_CHECKING([whether to enable IPv6 features])
20    
21     dnl if test "$ac_cv_ipv6" = "yes" ; then
22     dnl AC_DEFINE(IPV6, 1, [Use Ipv6 Support])
23     dnl AC_MSG_RESULT([yes])
24     dnl else
25     dnl AC_MSG_RESULT([no])
26     dnl fi
27    
28     dnl Checks for programs.
29 michael 5059 AC_PROG_CC_C99
30     AS_IF([test "$ac_cv_prog_cc_c99" = "no"],
31     [AC_MSG_ERROR([no suitable C99 compiler found. Aborting.])])
32 michael 5052 AC_PROG_LIBTOOL
33    
34     dnl Checks for libraries.
35    
36     dnl Checks for header files.
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_HEADER_TIME
43     AC_STRUCT_TM
44    
45     dnl check for yacc
46     AC_PROG_INSTALL
47     AC_PROG_YACC
48    
49     dnl check for lexx
50     AM_PROG_LEX
51    
52     dnl check if we need -lsocket or -lnsl
53 michael 5062 AC_SEARCH_LIBS([socket],[socket],,[AC_MSG_ERROR([socket library not found])])
54     AC_CHECK_FUNC(getaddrinfo, [], AC_SEARCH_LIBS(getaddrinfo, nsl))
55     AC_CHECK_FUNC(getnameinfo, [], AC_SEARCH_LIBS(getnameinfo, nsl))
56 michael 5052
57 michael 5173 AC_CHECK_FUNCS(strlcpy strlcat socket)
58 michael 5052
59     dnl Check if we can use gethostbyname2 for ipv6
60 michael 5110 AC_CHECK_FUNCS(gethostbyname)
61 michael 5052
62     dnl AIX fun
63     AC_C_BIGENDIAN
64    
65    
66     AC_CONFIG_SUBDIRS(src/libopm)
67    
68 michael 5122 AC_CONFIG_FILES(Makefile doc/Makefile src/Makefile)
69     AC_OUTPUT
70 michael 5052
71    
72 michael 5110 echo "###############################################################################"
73     echo "Configuration complete. Type make (or gmake on some *BSD machines) to compile."
74 michael 5052 echo
75 michael 5110 echo "HOPM will be installed in ${prefix}. To change this, run:"
76 michael 5052 echo " ./configure --prefix=DIRECTORY"
77 michael 5110 echo "###############################################################################"

Properties

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