source: git/reporter/configure.in @ f093ba

spielwiese
Last change on this file since f093ba was f093ba, checked in by Mohamed Barakat <mohamed.barakat@…>, 13 years ago
reporter works with the new configure.in
  • Property mode set to 100644
File size: 1.8 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)
6AC_CONFIG_SRCDIR([reporter.h])
7AC_CONFIG_HEADER([config.h])
8
9# Checks for programs.
10AC_PROG_CXX
11AC_PROG_CC
12AC_PROG_LN_S
13AC_PROG_INSTALL
14
15# Checks for libraries.
16
17# Checks for header files.
18AC_HEADER_STDC
19AC_CHECK_HEADERS([stdlib.h string.h unistd.h pwd.h])
20
21# Checks for typedefs, structures, and compiler characteristics.
22AC_C_CONST
23AC_C_INLINE
24
25# Checks for library functions.
26AC_FUNC_VPRINTF
27AC_CHECK_FUNC([vsnprintf], [AC_DEFINE([HAVE_VSNPRINTF], [1],
28                               [Define if vsnprintf exists.])])
29
30# check whether the compiler accepts -pipe
31if test x$ac_cv_c_cpp = xgcc2 -o  x$ac_cv_c_cpp = xgcc3
32then
33  AC_MSG_CHECKING(whether compiler accepts -pipe)
34  temp_cflags="${CFLAGS}"
35  CFLAGS="${CFLAGS} -pipe"
36  AC_CACHE_VAL(ac_cv_cxx_have_pipe,
37  AC_TRY_COMPILE(,,ac_cv_cxx_have_pipe=yes,ac_cv_cxx_have_pipe=no))
38  AC_MSG_RESULT(${ac_cv_cxx_have_pipe})
39  CFLAGS=${temp_cflags}
40else
41  ac_cv_cxx_have_pipe="no"
42fi
43
44if test "${ac_cv_cxx_have_pipe}" != yes; then
45  PIPE=
46else
47  PIPE="-pipe"
48fi
49AC_SUBST(PIPE)
50
51dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
52dnl path stuff
53dnl
54
55project=singular
56component=reporter
57
58dnl set exec_prefix, libdir, includedir to some sensible values
59dnl if they are not yet already set
60
61# expand prefix
62test "x$prefix" = xNONE && prefix=$ac_default_prefix
63
64# expand exec_prefixad
65if test "x$exec_prefix" = xNONE; then
66 exec_prefix=${prefix}
67fi
68
69# expand libdir
70test "x$libdir" = 'x${exec_prefix}/lib'&& libdir="${exec_prefix}/lib/${project}/${component}"
71
72# expand includedir
73test "x$includedir" = 'x${prefix}/include' && includedir="${exec_prefix}/include/${project}/${component}"
74
75AC_CONFIG_FILES([Makefile])
76AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.