File: configure.ac

package info (click to toggle)
config-manager 0.3-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 3,180 kB
  • ctags: 802
  • sloc: sh: 8,865; cpp: 2,630; python: 2,191; makefile: 127
file content (58 lines) | stat: -rw-r--r-- 1,176 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_INIT(src/cm.cc)
AC_PREREQ(2.52)
#dnl AC_CONFIG_AUX_DIR(cfgaux)

AM_INIT_AUTOMAKE(config-manager, 0.2--patch-102)
AC_CONFIG_SRCDIR([src/cm.cc])
AM_CONFIG_HEADER([autoconf.h])
AC_PREFIX_DEFAULT(/usr/local/cm)
AM_MAINTAINER_MODE

dnl user controlled options...
AC_ARG_VAR([LIBGETOPT], [The location of libgetopt++.la])

CMSUBDIRS=
if [test -z "$LIBGETOPT"] ; then
	LIBGETOPT=libgetopt/libgetopt++.la
	CMSUBDIRS=libgetopt
	CMINCLUDES="-I\$(top_srcdir)/libgetopt/include"
fi
AC_SUBST(CMSUBDIRS)
AC_SUBST(CMINCLUDES)


dnl Check for GNU cc
AC_LANG_CPLUSPLUS
AC_PROG_CXX
AM_PROG_CC_C_O
AC_CANONICAL_BUILD
AC_CANONICAL_HOST
AC_PROG_LIBTOOL

dnl find out the exe extension for this platform. If it's not empty, use it for CGI's as well.
AC_EXEEXT
AC_OBJEXT

AC_CHECK_HEADERS( \
	getopt++/GetOption.h
)

AC_C_CONST
AC_C_BIGENDIAN

AC_TYPE_SIZE_T 
AC_CHECK_TYPE(ssize_t, int)
AC_TYPE_PID_T
AC_TYPE_MODE_T

dnl Check for special functions
AC_FUNC_ALLOCA

dnl Check for needed libraries
AC_CONFIG_SUBDIRS(libgetopt)

AC_CONFIG_FILES([Makefile])
AC_OUTPUT