/[vps]/baselayout-vserver/trunk/src/core/configure.ac
Gentoo

Contents of /baselayout-vserver/trunk/src/core/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log


Revision 236 - (show annotations) (download)
Tue Feb 14 13:00:44 2006 UTC (8 years, 10 months ago) by phreak
File size: 2426 byte(s)
Merging r1881
1 AC_PREREQ([2.59])
2 AC_INIT([rcscript-core], [0.1], [base-system@gentoo.org])
3 AM_INIT_AUTOMAKE
4 AC_CONFIG_HEADER([config.h])
5
6 dnl Checks for programs.
7 AC_PROG_CC
8 AC_ISC_POSIX
9 AC_PROG_INSTALL
10 AC_PROG_MAKE_SET
11 AC_PROG_AWK
12
13 AC_ENABLE_SHARED
14 AC_DISABLE_STATIC
15 dnl Next four lines is a hack to prevent libtool checking for CXX/F77
16 m4_undefine([AC_PROG_CXX])
17 m4_defun([AC_PROG_CXX],[])
18 m4_undefine([AC_PROG_F77])
19 m4_defun([AC_PROG_F77],[])
20 AC_PROG_LIBTOOL
21
22 AC_PREFIX_DEFAULT([])
23
24 dnl Checks for libraries.
25 dnl Checks for header files.
26 AC_FUNC_ALLOCA
27 AC_HEADER_STDC
28
29 dnl Checks for typedefs, structures, and compiler characteristics.
30 AC_C_CONST
31 AC_TYPE_UID_T
32 AC_TYPE_MODE_T
33 AC_TYPE_SIZE_T
34
35 dnl Checks for library functions.
36 AC_FUNC_FORK
37 AC_FUNC_LSTAT
38 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
39 AC_TYPE_SIGNAL
40 AC_FUNC_STAT
41 AC_CHECK_FUNCS([remove])
42
43 dnl Check if gcc provides va_copy or __va_copy
44 AC_MSG_CHECKING([for va_copy])
45 AC_TRY_COMPILE([
46 #include <stdarg.h>
47 ], [
48 va_list ap, aq;
49 va_copy(ap, aq);
50 ],
51 [va_copy="va_copy"],
52 [AC_TRY_COMPILE([
53 #include <stdarg.h>
54 ], [
55 va_list ap, aq;
56 __va_copy(ap, aq);
57 ],
58 [va_copy="__va_copy"],
59 [AC_MSG_ERROR([Unable to determine name of va_copy macro])]
60 )]
61 )
62 AC_MSG_RESULT([$va_copy])
63 if test x"$va_copy" != xva_copy ; then
64 AC_DEFINE_UNQUOTED([va_copy], [$va_copy],
65 [Define to name of va_copy macro proviced by gcc if its not `va_copy'.]
66 )
67 fi
68
69 dnl Check if we want SELinux support
70 AC_ARG_ENABLE([selinux],
71 AS_HELP_STRING([--enable-selinux],
72 [enable SELinux support (default=disabled)]),
73 [enable_selinux="$enableval"],
74 [enable_selinux="no"]
75 )
76
77 if test x"$enable_selinux" != xno ; then
78 AC_DEFINE([WANT_SELINUX], [], [Define if SELinux support is required.])
79 fi
80
81 dnl Check if we want debugging
82 AC_ARG_ENABLE([debug],
83 AS_HELP_STRING([--enable-debug],
84 [enable debugging - very verbose (default=disabled)]),
85 [enable_debug="$enableval"],
86 [enable_debug="no"]
87 )
88
89 if test x"$enable_debug" != xno ; then
90 CFLAGS="$CFLAGS -ggdb -DRC_DEBUG -Wshadow -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs"
91 fi
92
93 CFLAGS="$CFLAGS -Wall"
94
95 RCSCRIPTS_DEFINES='-DETCDIR="\"$(sysconfdir)\"" -DLIBDIR="\"$(libdir)\"" -DBINDIR="\"$(bindir)\"" -DSBINDIR="\"$(sbindir)\""'
96 AC_SUBST([RCSCRIPTS_DEFINES])
97
98 AC_OUTPUT([
99 Makefile
100 scripts/Makefile
101 data/Makefile
102 librcscripts/Makefile
103 src/Makefile
104 tests/Makefile
105 ])

  ViewVC Help
Powered by ViewVC 1.1.20