Repository navigation
Expand file tree
/
Copy pathconfigure.ac
More file actions
78 lines (71 loc) · 2.32 KB
/
Copy pathconfigure.ac
File metadata and controls
78 lines (71 loc) · 2.32 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
dnl This file is part of yazpp
dnl Copyright (C) Index Data
AC_PREREQ([2.69])
AC_INIT([yazpp],[m4_esyscmd([. ./IDMETA; printf $VERSION])],[info@indexdata.com])
AC_CONFIG_HEADERS([include/config.h])
AC_CONFIG_SRCDIR([configure.ac])
AC_CONFIG_AUX_DIR([config])
AM_INIT_AUTOMAKE([1.9])
AC_PROG_CC
AC_PROG_CPP
AC_PROG_CXX
AC_PROG_EGREP
LT_INIT
YAZ_INIT([],[5.35.0])
if test -z "$YAZLIB"; then
AC_MSG_ERROR([YAZ development libraries missing])
fi
YAZ_DOC
AC_CHECK_HEADERS([unistd.h sys/stat.h sys/time.h sys/types.h fcntl.h])
AC_ARG_ENABLE([zoom],[ --disable-zoom disable ZOOM (for old C++ compilers)],[enable_zoom=$enableval],[enable_zoom=yes])
AM_CONDITIONAL([ZOOM], [test $enable_zoom = "yes"])
AC_CONFIG_FILES([
Doxyfile
Makefile
src/Makefile
include/Makefile
include/yazpp/Makefile
zlint/Makefile
yazpp-config
zoom/Makefile
doc/Makefile
doc/local0.ent
doc/common/Makefile
doc/common/print.dsl
yazpp.pc
])
AC_CONFIG_COMMANDS([default],[
sed -e 's%echo_source=yes%echo_source=no%g; s%src_root=.*$%%g; s%build_root=.*%%g' \
< yazpp-config >src/yazpp-config && chmod +x yazpp-config src/yazpp-config
if ! diff doc/local.ent doc/local0.ent >/dev/null 2>/dev/null; then
# Reuse distributed entities through VPATH without rebuilding documentation.
if diff "$srcdir/doc/local.ent" doc/local0.ent >/dev/null 2>/dev/null; then
rm -f doc/local.ent
else
cp doc/local0.ent doc/local.ent
fi
fi
],[])
AC_OUTPUT
echo \
"------------------------------------------------------------------------
YAZPP Package: ${PACKAGE}
YAZPP Version: ${VERSION}
Source code location: ${srcdir}
CPP Preprocessor: ${CPP}
CPP Preprocessor flags: ${CPPFLAGS}
CXX Compiler: ${CXX}
CXX Compiler flags: ${CXXFLAGS}
Linker flags: ${LDFLAGS}
Linked libs: ${LIBS}
Host System Type: ${host}
Install path: ${prefix}
Automake: ${AUTOMAKE}
Archiver: ${AR}
Ranlib: ${RANLIB}
YAZ Version: ${YAZVERSION}
YAZ Include: ${YAZINC}
YAZ La Lib: ${YAZLALIB}
YAZ Lib: ${YAZLIB}
Bugreport: ${PACKAGE_BUGREPORT}
------------------------------------------------------------------------"