Lucas De Marchi | ecd40ee | 2011-11-21 12:35:15 -0200 | [diff] [blame^] | 1 | AC_PREREQ(2.60) |
| 2 | AC_INIT([libabc], |
| 3 | [1], |
| 4 | [libabc-devel@example.com], |
| 5 | [libabc], |
| 6 | [http://www.example.com/libs/libabc/]) |
| 7 | AC_CONFIG_SRCDIR([libabc/libabc.c]) |
| 8 | AC_CONFIG_AUX_DIR([build-aux]) |
| 9 | AM_INIT_AUTOMAKE([check-news foreign 1.11 -Wall -Wno-portability silent-rules tar-pax dist-bzip2 subdir-objects]) |
| 10 | AC_PROG_CC_STDC |
| 11 | AC_USE_SYSTEM_EXTENSIONS |
| 12 | AC_SYS_LARGEFILE |
| 13 | AC_CONFIG_MACRO_DIR([m4]) |
| 14 | AM_SILENT_RULES([yes]) |
| 15 | LT_INIT([disable-static pic-only]) |
| 16 | AC_PREFIX_DEFAULT([/usr]) |
| 17 | |
| 18 | AC_ARG_ENABLE([logging], |
| 19 | AS_HELP_STRING([--disable-logging], [disable system logging @<:@default=enabled@:>@]), |
| 20 | [], enable_logging=yes) |
| 21 | AS_IF([test "x$enable_logging" = "xyes"], [ |
| 22 | AC_DEFINE(ENABLE_LOGGING, [1], [System logging.]) |
| 23 | ]) |
| 24 | |
| 25 | AC_ARG_ENABLE([debug], |
| 26 | AS_HELP_STRING([--enable-debug], [enable debug messages @<:@default=disabled@:>@]), |
| 27 | [], [enable_debug=no]) |
| 28 | AS_IF([test "x$enable_debug" = "xyes"], [ |
| 29 | AC_DEFINE(ENABLE_DEBUG, [1], [Debug messages.]) |
| 30 | ]) |
| 31 | |
| 32 | AC_CONFIG_HEADERS(config.h) |
| 33 | AC_CONFIG_FILES([ |
| 34 | Makefile |
| 35 | libabc/libabc.pc |
| 36 | ]) |
| 37 | |
| 38 | AC_OUTPUT |
| 39 | AC_MSG_RESULT([ |
| 40 | $PACKAGE $VERSION |
| 41 | ======== |
| 42 | |
| 43 | prefix: ${prefix} |
| 44 | sysconfdir: ${sysconfdir} |
| 45 | libdir: ${libdir} |
| 46 | includedir: ${includedir} |
| 47 | |
| 48 | compiler: ${CC} |
| 49 | cflags: ${CFLAGS} |
| 50 | ldflags: ${LDFLAGS} |
| 51 | |
| 52 | logging: ${enable_logging} |
| 53 | debug: ${enable_debug} |
| 54 | ]) |