Mercurial > hg > chrpath
comparison configure.ac @ 0:b8f7423e385c
import 0.13
author | Peter Meerwald <pmeerw@pmeerw.net> |
---|---|
date | Fri, 20 Jul 2012 01:51:24 +0200 |
parents | |
children | bbbfb3f97919 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:b8f7423e385c |
---|---|
1 dnl Process this file with autoconf to produce a configure script. | |
2 | |
3 AC_INIT("chrpath", "0.13", pere@hungry.com) | |
4 | |
5 AC_CANONICAL_TARGET | |
6 | |
7 AM_INIT_AUTOMAKE("chrpath", "0.13") | |
8 | |
9 AC_CONFIG_SRCDIR(chrpath.c) | |
10 AM_CONFIG_HEADER(config.h) | |
11 | |
12 AM_MAINTAINER_MODE | |
13 | |
14 CHRPATH_LDRPATH_OPTION | |
15 | |
16 dnl Checks for programs. | |
17 AC_PROG_CC | |
18 AC_PROG_INSTALL | |
19 | |
20 dnl Checks for libraries. | |
21 | |
22 dnl Checks for header files. | |
23 AC_HEADER_STDC | |
24 AC_CHECK_HEADERS([getopt.h elf.h fcntl.h unistd.h link.h sys/link.h]) | |
25 | |
26 dnl Checks for typedefs, structures, and compiler characteristics. | |
27 AC_C_CONST | |
28 AC_C_BIGENDIAN | |
29 AC_CHECK_SIZEOF(void *) | |
30 | |
31 dnl Checks for library functions. | |
32 AC_CHECK_FUNCS(getopt_long) | |
33 | |
34 if eval "test x$GCC = xyes"; then | |
35 for flag in \ | |
36 -ansi \ | |
37 -pedantic \ | |
38 -W \ | |
39 -Wall \ | |
40 -Wcast-align \ | |
41 -Wcast-qual \ | |
42 -Wcomments \ | |
43 -Wmissing-declarations \ | |
44 -Wmissing-prototypes \ | |
45 -Wpointer-arith \ | |
46 -Wreturn-type \ | |
47 -Wstrict-prototypes | |
48 do | |
49 JAPHAR_GREP_CFLAGS($flag, [ CFLAGS="$CFLAGS $flag" ]) | |
50 done | |
51 fi | |
52 | |
53 AC_ARG_WITH(coverage, [Enable coverage testing], | |
54 [ | |
55 JAPHAR_GREP_CFLAGS(-g, [ CFLAGS="$CFLAGS -g" ]) | |
56 JAPHAR_GREP_CFLAGS(-fprofile-arcs, [ CFLAGS="$CFLAGS -fprofile-arcs" ]) | |
57 JAPHAR_GREP_CFLAGS(-ftest-coverage, [ CFLAGS="$CFLAGS -ftest-coverage" ]) | |
58 ], []) | |
59 | |
60 AC_CONFIG_FILES([ | |
61 Makefile \ | |
62 testsuite/Makefile \ | |
63 deb/Makefile \ | |
64 ]) | |
65 AC_OUTPUT | |
66 | |
67 if test ! -d debian ; then | |
68 ln -s deb debian | |
69 fi | |
70 | |
71 echo "Configure status:" | |
72 echo "-----------------" | |
73 echo " CC = $CC" | |
74 echo " CFLAGS = $CFLAGS" | |
75 echo " LDRPATH= $LDRPATH" | |
76 echo |