Mon, 20 Nov 2017 16:10:23 +0100
restructures documentation + adds some examples for sstr_t
universe@256 | 1 | # |
universe@256 | 2 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. |
universe@256 | 3 | # |
universe@259 | 4 | # Copyright 2017 Mike Becker, Olaf Wintermann All rights reserved. |
universe@256 | 5 | # |
universe@256 | 6 | # Redistribution and use in source and binary forms, with or without |
universe@256 | 7 | # modification, are permitted provided that the following conditions are met: |
universe@256 | 8 | # |
universe@256 | 9 | # 1. Redistributions of source code must retain the above copyright |
universe@256 | 10 | # notice, this list of conditions and the following disclaimer. |
universe@256 | 11 | # |
universe@256 | 12 | # 2. Redistributions in binary form must reproduce the above copyright |
universe@256 | 13 | # notice, this list of conditions and the following disclaimer in the |
universe@256 | 14 | # documentation and/or other materials provided with the distribution. |
universe@256 | 15 | # |
universe@256 | 16 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
universe@256 | 17 | # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
universe@256 | 18 | # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
universe@256 | 19 | # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE |
universe@256 | 20 | # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
universe@256 | 21 | # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
universe@256 | 22 | # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
universe@256 | 23 | # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
universe@256 | 24 | # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
universe@256 | 25 | # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
universe@256 | 26 | # POSSIBILITY OF SUCH DAMAGE. |
universe@256 | 27 | # |
universe@256 | 28 | |
universe@253 | 29 | # the package version must match the macros in ucx.h |
universe@253 | 30 | # if you change the package version, don't forget to adjust the library version |
universe@259 | 31 | AC_INIT([ucx], [1.0], [olaf.wintermann@gmail.com]) |
universe@255 | 32 | |
universe@255 | 33 | # don't place everything in the project root |
universe@252 | 34 | AC_CONFIG_AUX_DIR([build-aux]) |
universe@252 | 35 | AC_CONFIG_MACRO_DIR([m4]) |
universe@255 | 36 | |
universe@255 | 37 | # we use our own directory structure |
universe@252 | 38 | AM_INIT_AUTOMAKE([foreign -Wall -Werror]) |
universe@255 | 39 | |
universe@255 | 40 | # if there is an archiver, use it |
universe@252 | 41 | m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) |
universe@255 | 42 | |
universe@255 | 43 | # we are compiling a library |
universe@252 | 44 | LT_INIT |
universe@255 | 45 | |
universe@255 | 46 | # we are dealing with C source code |
universe@252 | 47 | AC_PROG_CC |
universe@255 | 48 | |
universe@255 | 49 | # we want to support automake < 1.14, so we need this deprecated macro |
universe@255 | 50 | # it tests, whether the compiler allows -c and -o simultaneously |
universe@255 | 51 | # in modern versions of autoconf, this is done by AC_PROG_CC |
universe@255 | 52 | AM_PROG_CC_C_O |
universe@255 | 53 | |
universe@255 | 54 | # we require the current C standard |
universe@252 | 55 | AC_PROG_CC_STDC |
universe@255 | 56 | |
universe@255 | 57 | # where to place config macros |
universe@252 | 58 | AC_CONFIG_HEADERS([config.h]) |
universe@255 | 59 | |
universe@255 | 60 | # our Makefiles |
universe@252 | 61 | AC_CONFIG_FILES([Makefile src/Makefile test/Makefile]) |
universe@255 | 62 | |
universe@255 | 63 | # GO |
universe@252 | 64 | AC_OUTPUT |
universe@252 | 65 |