blob: 19c8f638accb241e4fc628a13911617c2db4c31a (
plain)
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
|
dnl Process this file with autoconf to produce a configure script.
dnl Note: the banner comments below are intentionally done in shell syntax.
dnl These help me identify sections of the configure script produced
dnl by autoconf. Some comments might appear inane and obvious, but again
dnl they are there to delimit sections in the output configure script.
##############################################################################
################ Setup #######################################################
##############################################################################
AC_INIT(src/mkid.c)
AC_CONFIG_HEADER(config.h)
AC_PREREQ(2.10)
AC_ARG_PROGRAM
##############################################################################
################ Identify Package ############################################
##############################################################################
PACKAGE=id-utils
VERSION=3.0.9
PACKAGE_VERSION="$PACKAGE-$VERSION"
AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE")
AC_DEFINE_UNQUOTED(VERSION, "$VERSION")
AC_DEFINE_UNQUOTED(PACKAGE_VERSION, "$PACKAGE_VERSION")
AC_SUBST(PACKAGE)
AC_SUBST(VERSION)
AC_SUBST(PACKAGE_VERSION)
##############################################################################
################ Maintainer Stuff ############################################
##############################################################################
jm_MAINTAINER_MODE
ALL_LINGUAS="de fr"
changequote(,)dnl
case $VERSION in
*.*.*) README_ALPHA=README-alpha;;
*) README_ALPHA=;;
esac
changequote([, ])dnl
AC_SUBST(README_ALPHA)
##############################################################################
################ Check for tools #############################################
##############################################################################
AC_PROG_CC
AC_PROG_LN_S
fp_PROG_INSTALL
AC_PROG_MAKE_SET
AC_PROG_CPP
AC_PROG_GCC_TRADITIONAL
AC_PROG_RANLIB
AC_AIX
AC_MINIX
AC_ISC_POSIX
##############################################################################
################ Check for libraries #########################################
##############################################################################
dnl no library checks
##############################################################################
################ Check for header files ######################################
##############################################################################
AC_HEADER_DIRENT
AC_HEADER_STDC
AC_HEADER_STAT
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS(limits.h sys/types.h sys/param.h stdlib.h unistd.h string.h)
AC_CHECK_HEADERS(malloc.h sys/ioctl.h termios.h termio.h sgtty.h regex.h)
##############################################################################
################ Check for typedefs, structs, and compiler params ############
##############################################################################
AC_C_CONST
fp_C_PROTOTYPES
AC_TYPE_SIGNAL
AC_TYPE_OFF_T
AC_TYPE_SIZE_T
##############################################################################
################ Set default compilation flags ###############################
##############################################################################
: ${CFLAGS=-g}
: ${LDFLAGS=-g}
AC_SUBST(CFLAGS)
AC_SUBST(LDFLAGS)
##############################################################################
################ Check for library functions & system calls ##################
##############################################################################
AC_FUNC_ALLOCA
gm_DECL_SBRK
gm_DECL_SYS_ERRLIST
ud_WITH_REGEX
AC_CHECK_FUNCS(getwd getcwd link)
AC_REPLACE_FUNCS(strcasecmp strdup strndup strtok fnmatch)
AC_REPLACE_FUNCS(basename dirname error memcpy memset)
AC_REPLACE_GNU_GETOPT
AC_REPLACE_OBSTACK
##############################################################################
################ Internationalization ########################################
##############################################################################
ud_GNU_GETTEXT
AC_LINK_FILES($nls_cv_header_libgt, $nls_cv_header_intl)
##############################################################################
################ Generate the configure script ###############################
##############################################################################
AC_OUTPUT([Makefile doc/Makefile lib/Makefile src/Makefile intl/Makefile po/Makefile.in],
[sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile; \
test -z "$CONFIG_HEADERS" || echo timestamp >stamp-h])
##############################################################################
################ Done ########################################################
##############################################################################
|