source: git/libpolys/reporter/configure.ac @ 9a738f

spielwiese
Last change on this file since 9a738f was 9a738f, checked in by Mohamed Barakat <mohamed.barakat@…>, 13 years ago
migrated reporter to automake
  • Property mode set to 100644
File size: 1.3 KB
Line 
1#                                               -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ(2.61)
5AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS)
6AM_INIT_AUTOMAKE
7AC_CONFIG_SRCDIR([reporter.h])
8AC_CONFIG_HEADER([config.h])
9
10# Checks for programs.
11AC_PROG_CXX
12AC_PROG_CC
13AC_PROG_LN_S
14AC_PROG_INSTALL
15AC_PROG_RANLIB
16
17# Checks for libraries.
18
19# Checks for header files.
20AC_HEADER_STDC
21AC_CHECK_HEADERS([stdlib.h string.h unistd.h pwd.h])
22
23# Checks for typedefs, structures, and compiler characteristics.
24AC_C_CONST
25AC_C_INLINE
26
27# Checks for library functions.
28AC_FUNC_VPRINTF
29AC_CHECK_FUNC([vsnprintf], [AC_DEFINE([HAVE_VSNPRINTF], [1],
30                               [Define if vsnprintf exists.])])
31
32# check whether the compiler accepts -pipe
33if test x$ac_cv_c_cpp = xgcc2 -o  x$ac_cv_c_cpp = xgcc3
34then
35  AC_MSG_CHECKING(whether compiler accepts -pipe)
36  temp_cflags="${CFLAGS}"
37  CFLAGS="${CFLAGS} -pipe"
38  AC_CACHE_VAL(ac_cv_cxx_have_pipe,
39  AC_TRY_COMPILE(,,ac_cv_cxx_have_pipe=yes,ac_cv_cxx_have_pipe=no))
40  AC_MSG_RESULT(${ac_cv_cxx_have_pipe})
41  CFLAGS=${temp_cflags}
42else
43  ac_cv_cxx_have_pipe="no"
44fi
45
46if test "${ac_cv_cxx_have_pipe}" != yes; then
47  PIPE=
48else
49  PIPE="-pipe"
50fi
51AC_SUBST(PIPE)
52
53AC_CONFIG_FILES([Makefile])
54AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.