configure.ac

changeset 367
e54e0b24e98e
parent 362
39cef8f37eb5
child 368
97c53f7ef5e4
equal deleted inserted replaced
366:41a7cef34c19 367:e54e0b24e98e
26 # POSSIBILITY OF SUCH DAMAGE. 26 # POSSIBILITY OF SUCH DAMAGE.
27 # 27 #
28 28
29 # the package version must match the macros in ucx.h 29 # the package version must match the macros in ucx.h
30 # the lib version must follow the libtool versioning convention 30 # the lib version must follow the libtool versioning convention
31 AC_PREREQ([2.60])
31 AC_INIT([ucx], [2.1.0], [olaf.wintermann@gmail.com]) 32 AC_INIT([ucx], [2.1.0], [olaf.wintermann@gmail.com])
32 AC_SUBST([UCX_LIB_VERSION], [4:0:1]) 33 AC_SUBST([UCX_LIB_VERSION], [4:0:1])
33 34
34 # don't place everything in the project root 35 # don't place everything in the project root
35 AC_CONFIG_AUX_DIR([build-aux]) 36 AC_CONFIG_AUX_DIR([build-aux])
42 m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) 43 m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
43 44
44 # we are compiling a library 45 # we are compiling a library
45 LT_INIT 46 LT_INIT
46 47
47 # we are dealing with C source code 48 # we want c11, and may fall back to c99
48 AC_PROG_CC 49 AX_CHECK_COMPILE_FLAG([-std=c11],
50 [AX_APPEND_FLAG([-std=c11])],
51 AC_PROG_CC_C99
52 )
49 53
50 # we want to support automake < 1.14, so we need this deprecated macro 54 # we want to support automake < 1.14, so we need this deprecated macro
51 # it tests, whether the compiler allows -c and -o simultaneously 55 # it tests, whether the compiler allows -c and -o simultaneously
52 # in modern versions of autoconf, this is done by AC_PROG_CC 56 # in modern versions of autoconf, this is done by AC_PROG_CC
53 AM_PROG_CC_C_O 57 AM_PROG_CC_C_O
54
55 # we want c11, and may fall back to c99
56 AX_CHECK_COMPILE_FLAG([-std=c11],
57 [AX_APPEND_FLAG([-std=c11])],
58 [AC_PROG_CC_C99]
59 )
60 58
61 # where to place config macros 59 # where to place config macros
62 AC_CONFIG_HEADERS([config.h]) 60 AC_CONFIG_HEADERS([config.h])
63 61
64 # our Makefiles 62 # our Makefiles

mercurial