source: git/findexec/configure.ac @ e078e0

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