source: git/resources/configure.ac @ 35564a5

spielwiese
Last change on this file since 35564a5 was e62a1d, checked in by Oleksandr Motsak <motsak@…>, 11 years ago
Disable debug by default (separated into m4/options.m4)
  • Property mode set to 100644
File size: 1.8 KB
RevLine 
[2c889f]1AC_INIT([libresources], [3.1.4.sw])
[b4a676]2
3AC_CONFIG_MACRO_DIR([../m4])
4AC_CONFIG_AUX_DIR([.])
5AC_CONFIG_SRCDIR([omFindExec.h])
6AC_CONFIG_HEADER([config.h])
7
8AM_MAINTAINER_MODE
[24a77fb]9AM_INIT_AUTOMAKE([-Wall foreign subdir-objects]) # -Wno-extra-portability -Werror silent-rules
[2e984a]10m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES])
[280286e]11m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
[2e984a]12
[b4a676]13
14dnl Check if build env is sane
15AM_SANITY_CHECK
16
17#
18# - Check for CC and CXX but be careful about CFLAGS.
19#
20test "${CFLAGS+set}" = set || cflags_expl_set=no
21AC_PROG_CC
22test "${CXXFLAGS+set}" = set || cxxflags_expl_set=no
23AC_PROG_CXX
24if test "x$GCC" != xyes && test "x$GXX" != xyes; then
25  AC_MSG_WARN(you better use gcc to compile Factory)
26else
27  if test "x$GXX" = xyes && test "x$cxxflags_expl_set" = xno; then
28    AC_MSG_WARN([we use \`' as default for \`CXXFLAGS'
29                    (instead of the configure default \`-g -O')])
30  fi
31  if test "x$GCC" = xyes && test "x$cflags_expl_set" = xno; then
32    AC_MSG_WARN([we use \`' as default for \`CFLAGS'
33                    (instead of the configure default \`-g -O')])
34  fi
35fi
36
37AM_PROG_CC_C_O
[e078e0]38# AM_PROG_AR
39
[b4a676]40AC_PROG_LN_S
41AC_PROG_INSTALL
42
43AC_FUNC_MALLOC
44AC_HEADER_STDC
45AC_CHECK_HEADERS([stdlib.h string.h unistd.h pwd.h sys/param.h sys/stat.h sys/types.h])
[24db42]46AC_CHECK_FUNCS(readlink getcwd getwd getpwnam setenv putenv)
[b4a676]47
48# Checks for typedefs, structures, and compiler characteristics.
49AC_C_CONST
50AC_C_INLINE
51AC_HEADER_STDBOOL
52AC_TYPE_SIZE_T
53
[e078e0]54# Turn off shared libraries during beta-testing, since they
55# make the build process take too long.
56LT_INIT
57# ([shared])
58# LT_INIT(dlopen disable-static) # doesn't work on PowerPC!
59
[b4a676]60
61SING_CHECK_PIPE
[e62a1d]62SING_CHECK_DEBUG
[b4a676]63
64# CFLAGS
65if test "x$GCC" = xyes && test "x$cflags_expl_set" = xno; then
66  CFLAGS=""
67fi
68 
69# CXXFLAGS
70if test "x$GXX" = xyes && test "x$cxxflags_expl_set" = xno; then
71  CXXFLAGS=""
72fi
73
74AC_CONFIG_FILES([Makefile])
75AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.