source: git/findexec/configure.ac @ b4a676

jengelh-datetimespielwiese
Last change on this file since b4a676 was b4a676, checked in by Oleksandr Motsak <motsak@…>, 11 years ago
made findexec into a standalone library + removal of resources add: findexec/configure.ac del: removed the rests of libpolys/resources & references to it from everywhere fix: findexec/feResource.cc should better not use S_UNAME chg: factory should only need findexec & omalloc for testing
  • Property mode set to 100644
File size: 1.7 KB
Line 
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
9AM_INIT_AUTOMAKE([-Wall foreign])
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
34# Turn off shared libraries during beta-testing, since they
35# make the build process take too long.
36LT_INIT
37# ([shared])
38# LT_INIT(dlopen disable-static) # doesn't work on PowerPC!
39
40AM_PROG_CC_C_O
41AC_PROG_LN_S
42AC_PROG_INSTALL
43
44AC_FUNC_MALLOC
45AC_HEADER_STDC
46AC_CHECK_HEADERS([stdlib.h string.h unistd.h pwd.h sys/param.h sys/stat.h sys/types.h])
47AC_CHECK_FUNCS(readlink getcwd getwd setenv putenv)
48
49
50
51# Checks for typedefs, structures, and compiler characteristics.
52AC_C_CONST
53AC_C_INLINE
54AC_HEADER_STDBOOL
55AC_TYPE_SIZE_T
56
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.