File: configure.ac

package info (click to toggle)
libbase58 0.1.4-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 180 kB
  • ctags: 19
  • sloc: ansic: 288; makefile: 58; sh: 32
file content (49 lines) | stat: -rw-r--r-- 1,255 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
dnl * Copyright 2012-2014 Luke Dashjr
dnl *
dnl * This program is free software; you can redistribute it and/or modify it
dnl * under the terms of the standard MIT license.  See COPYING for more details.

AC_INIT(
	[libbase58],
	[0.1.4],
	[luke_libbase58@dashjr.org],
	[libbase58])
AC_CONFIG_AUX_DIR([.])
AC_PREREQ([2.59])
AM_INIT_AUTOMAKE([1.11 -Wall dist-xz foreign])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])

AC_PROG_CC_C99
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
LT_INIT([])

# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
AC_SUBST([LIBBASE58_SO_VERSION], [0:2:0])

AC_CONFIG_FILES([Makefile
	libbase58.pc:libbase58.pc.in
])

AC_CHECK_LIB([ws2_32], [strchr])

m4_ifdef([AM_PATH_LIBGCRYPT], [
	AC_ARG_ENABLE([tool],
		[AC_HELP_STRING([--disable-tool],[Compile command line base58 tool (default enabled)])],
		[use_tool=$enableval],
		[use_tool=auto])
	if test x$use_tool != xno; then
		AM_PATH_LIBGCRYPT([],[
			use_tool=yes
		],[
			if test x$use_tool = xyes; then
				AC_MSG_ERROR([libgcrypt not found; use --disable-tool])
			fi
			use_tool=no
		])
	fi
],[
	m4_warn([syntax], [AM_PATH_LIBGCRYPT missing; CLI tool will not be available])
])
AM_CONDITIONAL([USE_TOOL], [test x$use_tool = xyes])

AC_OUTPUT